gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * linux-nat.c (linux_handle_extended_wait): Handle case when
4 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
5
6 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7
8 Code cleanup.
9 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
10 linux_nat_wait_1. Use always LP->STATUS afterwards.
11
12 2010-07-20 Hui Zhu <teawater@gmail.com>
13
14 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
15 (inf_ptrace_attach): Ditto.
16
17 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
18
19 Make core files the process_stratum.
20 * corefile.c (core_target): New variable.
21 (core_file_command): Remove variable t, use core_target.
22 * corelow.c (core_ops): Make it static.
23 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
24 * defs.h (make_cleanup_unpush_target): New prototype.
25 * gdbarch.h: Regenerate.
26 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
27 * gdbcore.h (core_target): New declaration.
28 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
29 variables ops_already_pushed and back_to. Use push_target,
30 make_cleanup_unpush_target and discard_cleanups calls.
31 * record.c (record_open): Replace core_stratum by a core_bfd check.
32 * target.c (target_is_pushed): New function.
33 (find_core_target): Remove.
34 * target.h (enum strata) <core_stratum>: Remove.
35 (target_is_pushed): New declaration.
36 (find_core_target): Remove declaration.
37 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
38 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
39
40 2010-07-19 Hui Zhu <teawater@gmail.com>
41
42 * breakpoint.c (single_step_breakpoints_inserted): New
43 function.
44 * breakpoint.h (single_step_breakpoints_inserted): Extern.
45 * infrun.c (maybe_software_singlestep): Add check code.
46 * record.c (record_resume): Add code for software single step.
47 (record_wait): Ditto.
48
49 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
50
51 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
52 a more inner block. Remove its unused declaration initializer.
53
54 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
55
56 * NEWS: Mention support for the new ptrace interface and hardware
57 accelerated watchpoint conditions on powerpc-linux.
58
59 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
60
61 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
62 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
63 and host_address_to_string() and %s for pointers.
64 (debug_to_remove_breakpoint): Likewise.
65 (debug_to_region_ok_for_hw_watchpoint): Likewise.
66 (debug_to_can_accel_watchpoint_condition): Likewise.
67 (debug_to_stopped_data_address): Likewise.
68 (debug_to_watchpoint_addr_within_range): Likewise.
69 (debug_to_insert_hw_breakpoint): Likewise.
70 (debug_to_remove_hw_breakpoint): Likewise.
71 (debug_to_insert_watchpoint): Likewise.
72 (debug_to_remove_watchpoint): Likewise.
73
74 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
75
76 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
77 argument.
78 (cplus_specific): New struct.
79 * symtab.c (symbol_set_demangled_name): Updated.
80 Use cplus_specific for cplus symbols.
81 (symbol_get_demangled_name): Retrive the name from the cplus_specific
82 struct for cplus symbols.
83 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
84 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
85 * symtab.c (symbol_init_cplus_specific): New function.
86
87 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
88
89 * symtab.h (symbol_set_demangled_name): New function.
90 (symbol_get_demangled_name): New function.
91 * symtab.c (symbol_set_demangled_name): New function.
92 (symbol_get_demangled_name): New function.
93 (symbol_init_language_specific): Use demangled_name setter and getter.
94 (symbol_set_names): Ditto.
95 (symbol_natural_name): Ditto.
96 (symbol_demangled_name): Ditto.
97 * dwarf2read.c (new_symbol): Ditto.
98
99 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
100
101 * symtab.h: Renamed cplus_specific to mangled_lang.
102 * symtab.c (symbol_init_language_specific): Updated.
103 (symbol_set_names): Updated.
104 (symbol_natural_name): Updated.
105 (symbol_demangled_name): Updated.
106 * ada-lang.c (ada_decode_symbol): Updated.
107 * dwarf2read.c (new_symbol): Updated.
108
109 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
110
111 * valops.c (value_assign): Do not call to value_coerce_to_target.
112 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
113
114 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
115
116 * MAINTAINERS: Add myself for write after approval privileges.
117
118 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
119
120 * c-valprint.c (c_val_print): Add embedded_offset to address in
121 call to val_print_array_elements.
122
123 2010-07-13 Tom Tromey <tromey@redhat.com>
124
125 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
126
127 2010-07-13 Tom Tromey <tromey@redhat.com>
128
129 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
130 objfile.
131
132 2010-07-13 Tom Tromey <tromey@redhat.com>
133
134 * symfile.c (set_initial_language): Update.
135 (deduce_language_from_filename): Argument type now const.
136 * symtab.h (find_main_filename): Update.
137 (deduce_language_from_filename): Update.
138 * symtab.c (find_main_filename): Make result const.
139 * dwarf2read.c (dw2_find_symbol_file): Change return type.
140 * psymtab.c (find_symbol_file_from_partial): Change return type.
141 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
142 Make result const.
143
144 2010-07-13 Tom Tromey <tromey@redhat.com>
145
146 * breakpoint.c (save_cmdlist): No longer static.
147 * gdbcmd.h (save_cmdlist): Declare.
148 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
149 OBJF_READNOW on objfile if readnow_symbol_files.
150 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
151 (elf_sym_fns_gdb_index): New global.
152 * dwarf2read.c: Include exceptions.h.
153 (offset_type): New.
154 (struct mapped_index): New.
155 (dwarf2_per_cu_data_ptr): New typedef.
156 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
157 New fields.
158 (GDB_INDEX_SECTION): New define.
159 (struct dwarf2_per_cu_quick_data): New.
160 (struct dwarf2_per_cu_data) <objfile>: New field.
161 <psymtab>: Removed.
162 <v>: New field.
163 (byte_swap): New function.
164 (MAYBE_SWAP): New macro.
165 (INDEX_SUFFIX): New macro.
166 (dw2_do_instantiate_symtab): New function.
167 (dw2_instantiate_symtab): Likewise.
168 (create_cus_from_index): Likewise.
169 (create_addrmap_from_index): Likewise.
170 (mapped_index_string_hash): Likewise.
171 (find_slot_in_mapped_hash): Likewise.
172 (dwarf2_read_index): Likewise.
173 (dw2_setup): Likewise.
174 (dw2_require_line_header): Likewise.
175 (dw2_require_full_path): Likewise.
176 (dw2_find_last_source_symtab): Likewise.
177 (dw2_forget_cached_source_info): Likewise.
178 (dw2_lookup_symtab): Likewise.
179 (dw2_lookup_symbol): Likewise.
180 (dw2_do_expand_symtabs_matching): Likewise.
181 (dw2_pre_expand_symtabs_matching): Likewise.
182 (dw2_print_stats): Likewise.
183 (dw2_dump): Likewise.
184 (dw2_relocate): Likewise.
185 (dw2_expand_symtabs_for_function): Likewise.
186 (dw2_expand_all_symtabs): Likewise.
187 (dw2_expand_symtabs_with_filename): Likewise.
188 (dw2_find_symbol_file): Likewise.
189 (dw2_map_ada_symtabs): Likewise.
190 (dw2_expand_symtabs_matching): Likewise.
191 (dw2_find_pc_sect_symtab): Likewise.
192 (dw2_map_symbol_names): Likewise.
193 (dw2_map_symbol_filenames): Likewise.
194 (dw2_has_symbols): Likewise.
195 (dwarf2_gdb_index_functions): New global.
196 (dwarf2_initialize_objfile): New function.
197 (process_psymtab_comp_unit): Update.
198 (add_partial_subprogram): Likewise.
199 (dwarf2_psymtab_to_symtab): Likewise.
200 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
201 (process_full_comp_unit): Update.
202 (find_file_and_directory): New function.
203 (read_file_scope): Use find_file_and_directory.
204 (dwarf2_per_cu_objfile): Update.
205 (dwarf2_per_cu_addr_size): Update.
206 (dwarf2_per_cu_offset_size): Update.
207 (dwarf2_free_objfile): Free the index, if needed.
208 (dwarf2_per_objfile_free): Unmap the index, if needed.
209 (struct strtab_entry): New.
210 (hash_strtab_entry): New function.
211 (eq_strtab_entry): Likewise.
212 (create_strtab): Likewise.
213 (add_string): Likewise.
214 (struct symtab_index_entry): New.
215 (struct mapped_symtab): New.
216 (hash_symtab_entry): New function.
217 (eq_symtab_entry): Likewise.
218 (delete_symtab_entry): Likewise.
219 (create_index_table): Likewise.
220 (create_mapped_symtab): Likewise.
221 (cleanup_mapped_symtab): Likewise.
222 (find_slot): Likewise.
223 (hash_expand): Likewise.
224 (add_index_entry): Likewise.
225 (add_indices_to_cpool): Likewise.
226 (write_hash_table): Likewise.
227 (add_address_entry): Likewise.
228 (write_psymbols): Likewise.
229 (write_obstack): Likewise.
230 (unlink_if_set): Likewise.
231 (write_psymtabs_to_index): Likewise.
232 (save_gdb_index_command): Likewise.
233 (_initialize_dwarf2_read): Install "save gdb-index"
234 command.
235 (create_all_comp_units): Initialize 'objfile' field of CU.
236 (dwarf2_locate_sections): Check for .gdb_index.
237 * psymtab.h (dwarf2_gdb_index_functions): Declare.
238 * symfile.h (dwarf2_initialize_objfile): Declare.
239
240 2010-07-13 Tom Tromey <tromey@redhat.com>
241
242 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
243 (basic_lookup_transparent_type): Likewise.
244 * symfile.h (struct quick_symbol_functions)
245 <pre_expand_symtabs_matching>: New field.
246 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
247 (psym_functions): Update.
248
249 2010-07-13 Tom Tromey <tromey@redhat.com>
250
251 PR breakpoints/8357:
252 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
253 * linespec.c (decode_line_1): Update comment. Call decode_label.
254 (decode_label): New function.
255 (symbol_found): Handle LOC_LABEL.
256 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
257 domain. Call add_symbol_to_list.
258
259 2010-07-13 Tom Tromey <tromey@redhat.com>
260
261 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
262 * dwarf2loc.c (find_location_expression): Use
263 dwarf2_per_cu_text_offset.
264 (dwarf2_evaluate_loc_desc): Likewise.
265 (dwarf2_loc_desc_needs_frame): Likewise.
266 (compile_dwarf_to_ax): Likewise.
267 (loclist_describe_location): Likewise.
268 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
269 (dwarf2_per_cu_objfile): Update comment.
270
271 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
272
273 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
274 * p-lang.c (pascal_printstr): Likewise.
275
276 2010-07-09 Tom Tromey <tromey@redhat.com>
277
278 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
279 'hint' if it is NULL.
280
281 2010-07-09 Hui Zhu <teawater@gmail.com>
282
283 * source.c (print_source_lines_base): Add check for noprint.
284
285 2010-07-08 Joel Brobecker <brobecker@adacore.com>
286
287 * python/python-config.py: Resync with Python 2.7 version of this
288 script.
289
290 2010-07-08 Joel Brobecker <brobecker@adacore.com>
291
292 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
293
294 2010-07-07 Joel Brobecker <brobecker@adacore.com>
295
296 * NEWS: Create a new section for the next release branch.
297 Rename the section of the current branch, now that it has
298 been cut.
299
300 2010-07-07 Joel Brobecker <brobecker@adacore.com>
301
302 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
303 * version.in: Bump version to 7.2.50.20100707-cvs.
304
305 2010-07-07 Tom Tromey <tromey@redhat.com>
306
307 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
308 LOC_COMPUTED symbol.
309 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
310 (dwarf2_loc_desc_needs_frame): Likewise.
311 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
312 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
313 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
314 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
315 'offset' argument.
316 (struct dwarf2_frame_cache) <text_offset>: New field.
317 (dwarf2_frame_cache): Set new field.
318 (dwarf2_frame_prev_register): Update.
319 (dwarf2_frame_sniffer): Update.
320 (dwarf2_frame_base_sniffer): Update.
321 (dwarf2_frame_find_fde): Add 'out_offset' argument.
322
323 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
324 Thiago Jung Bauermann <bauerman@br.ibm.com>
325
326 Support for hw accelerated condition watchpoints in booke powerpc.
327
328 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
329 and move to eval.c. Change callers.
330 (insert_bp_location): Pass watchpoint condition in
331 target_insert_watchpoint.
332 (remove_breakpoint_1) Pass watchpoint condition in
333 target_remove_watchpoint.
334 (watchpoint_locations_match): Call
335 target_can_accel_watchpoint_condition.
336 * eval.c: Include wrapper.h.
337 (fetch_subexp_value): Moved from breakpoint.c.
338 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
339 Formatting fix.
340 (can_use_watchpoint_cond_accel): New function.
341 (calculate_dvc): Likewise.
342 (num_memory_accesses): Likewise.
343 (check_condition): Likewise.
344 (ppc_linux_can_accel_watchpoint_condition): Likewise
345 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
346 check_condition and calculate_dvc.
347 (ppc_linux_remove_watchpoint): Likewise.
348 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
349 ppc_linux_can_accel_watchpoint_condition
350 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
351 condition.
352 (debug_to_remove_watchpoint): Likewise.
353 (debug_to_can_accel_watchpoint_condition): New function.
354 (update_current_target): Set to_can_accel_watchpoint_condition.
355 (setup_target_debug): Set to_can_accel_watchpoint_condition.
356 * target.h: Add opaque declaration for struct expression.
357 (struct target_ops) <to_insert_watchpoint>,
358 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
359 <to_can_accel_watchpoint_condition>: New member.
360 condition. Update all callers and implementations.
361 (target_can_accel_watchpoint_condition): New macro.
362 * value.c (free_value_chain): New function.
363 * value.h (fetch_subexp_value): New prototype.
364 (free_value_chain): Likewise.
365
366 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
367
368 * linux-nat.c (linux_nat_do_thread_registers): Use section size
369 from gdbarch_core_regset_sections also for .reg if present.
370
371 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
372 section size for .reg.
373 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
374 (ppc_linux_vmx_regset_sections): Likewise.
375 (ppc_linux_fp_regset_sections): Likewise.
376 (ppc64_linux_vsx_regset_sections): New variable.
377 (ppc64_linux_vmx_regset_sections): Likewise.
378 (ppc64_linux_fp_regset_sections): Likewise.
379 (ppc_linux_init_abi): Install core_regset_section lists appropriate
380 for current word size.
381
382 2010-07-06 Joel Brobecker <brobecker@adacore.com>
383
384 * server.c (myresume): Make static.
385
386 2010-07-06 Tom Tromey <tromey@redhat.com>
387
388 * configure, config.in: Rebuild.
389 * configure.ac (HAVE_LIBPYTHON2_7): New define.
390 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
391
392 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
393
394 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
395 "clear".
396
397 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
398
399 * gdbtypes.h (floatformats_ieee_half): Add declaration.
400 * gdbtypes.c (floatformats_ieee_half): New variable.
401 * doublest.c (floatformat_from_length): Set format to
402 gdbarch_half_format if length matches.
403 * gdbarch.sh (half_bit): New architecture method.
404 (half_format): Likewise.
405 * gdbarch.h: Regenerate.
406 * gdbarch.c: Likewise.
407
408 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
409 Joel Brobecker <brobecker@adacore.com>
410
411 Fix re-run of PIE executable, PR shlibs/11776.
412 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
413 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
414
415 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
416 Joel Brobecker <brobecker@adacore.com>
417
418 * auxv.c (memory_xfer_auxv): Update attach comment.
419 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
420 svr4_relocate_main_executable.
421 (svr4_solib_create_inferior_hook): Make the call to
422 svr4_relocate_main_executable unconditional.
423
424 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
425 Joel Brobecker <brobecker@adacore.com>
426
427 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
428
429 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
430 Joel Brobecker <brobecker@adacore.com>
431
432 Fix attaching to PIEs prelinked on the disk after the process was
433 started.
434 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
435 Verify it against bfd_get_arch_size. Try to match arbitrary
436 displacement for the phdrs comparison.
437
438 2010-07-02 Tom Tromey <tromey@redhat.com>
439
440 PR exp/11780:
441 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
442 value as optimized-out.
443
444 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
445 Thiago Jung Bauermann <bauerman@br.ibm.com>
446
447 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
448 represent?" question in comment. Change comment to a proper sentence.
449
450 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
451
452 * c-valprint.c (c_val_print): Fix printing of character vectors.
453
454 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
457 create_breakpoint prototype.
458
459 2010-07-01 Pedro Alves <pedro@codesourcery.com>
460
461 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
462 usefulness suggestion of multiple breakpoints at same location.
463
464 2010-07-01 Pedro Alves <pedro@codesourcery.com>
465
466 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
467
468 2010-07-01 Pedro Alves <pedro@codesourcery.com>
469
470 * dwarf2loc.c (locexpr_tracepoint_var_ref)
471 (loclist_tracepoint_var_ref): Handle optimized out values.
472
473 2010-07-01 Pedro Alves <pedro@codesourcery.com>
474
475 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
476 unnecessary space in string.
477 * filesystem.c (_initialize_filesystem): Ditto.
478 * frame.c (_initialize_frame): Ditto.
479 * infcmd.c (step_once): Ditto.
480 * infrun.c (_initialize_infrun): Ditto.
481 * linux-nat.c (linux_child_follow_fork): Ditto.
482 * maint.c (maintenance_deprecate): Ditto.
483 * memattr.c (_initialize_mem): Ditto.
484 * mips-tdep.c (_initialize_mips_tdep): Ditto.
485 * monitor.c (monitor_open): Ditto.
486 * procfs.c (procfs_xfer_memory): Ditto.
487 * reverse.c (bookmarks_info): Ditto.
488 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
489 * stack.c (_initialize_stack): Ditto.
490 * tracepoint.c (_initialize_tracepoint): Ditto.
491 * xtensa-tdep.c (xtensa_supply_gregset,
492 xtensa_regset_from_core_section): Ditto.
493
494 2010-07-01 Tom Tromey <tromey@redhat.com>
495
496 * value.h (struct lval_funcs) <check_any_valid>: Rename from
497 check_all_valid.
498 * value.c (value_entirely_optimized_out): Invert result. Update
499 for new function name.
500
501 2010-07-01 Pedro Alves <pedro@codesourcery.com>
502
503 Static tracepoints support.
504
505 * NEWS: Mention new support for static tracepoints.
506 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
507 qXfer:statictrace:read.
508 (New features in the GDB remote stub, GDBserver): Mention static
509 tracepoints support using an UST based backend.
510 (New commands): Mention "info static-tracepoint-markers" and
511 "strace".
512 * breakpoint.c (is_marker_spec): New.
513 (is_tracepoint): Handle static tracepoints.
514 (validate_commands_for_breakpoint): Static tracepoints can't do
515 while-stepping.
516 (static_tracepoints_here): New.
517 (bpstat_what): Handle static tracepoints.
518 (print_one_breakpoint_location, allocate_bp_location, mention):
519 Ditto.
520 (create_breakpoint_sal): Ditto.
521 (decode_static_tracepoint_spec): New.
522 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
523 `type_wanted'. Adjust. Handle static tracepoint marker
524 locations.
525 (break_command_1): Adjust.
526 (update_static_tracepoint): New.
527 (update_breakpoint_locations): Handle static tracepoints.
528 (breakpoint_re_set_one): Handle static tracepoint marker
529 locations.
530 (disable_command, enable_command): Handle static tracepoints.
531 (trace_command, ftrace_command): Adjust.
532 (strace_command): New.
533 (create_tracepoint_from_upload): Adjust.
534 (save_breakpoints): Handle static tracepoints.
535 (_initialize_breakpoint): Install the "strace" command.
536 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
537 (struct breakpoint): New fields static_trace_marker_id and
538 static_trace_marker_id_idx.
539 (breakpoints_here_p): Declare.
540 (create_breakpoint): Adjust.
541 (static_tracepoints_here): Declare.
542 * remote.c (struct remote_state) <static_tracepoints>: New field.
543 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
544 (remote_static_tracepoint_marker_at): New.
545 (remote_static_tracepoint_markers_by_strid): New.
546 (remote_static_tracepoint_feature): New.
547 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
548 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
549 (remote_supports_static_tracepoints): New.
550 (remote_download_tracepoint): Download static tracepoints.
551 (init_remote_ops): Install remote_static_tracepoint_marker_at and
552 remote_static_tracepoint_markers_by_strid.
553 (_initialize_remote): Install set|show remote static-tracepoints,
554 and set|show remote read-sdata-object commands.
555 * target.c (update_current_target): Inherit and default
556 to_static_tracepoint_marker_at, and
557 to_static_tracepoint_markers_by_strid.
558 * target.h (static_tracepoint_marker): Forward declare.
559 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
560 (static_tracepoint_marker_p): New typedef.
561 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
562 (struct target_ops): New fields to_static_tracepoint_marker_at and
563 to_static_tracepoint_markers_by_strid.
564 (target_static_tracepoint_marker_at)
565 (target_static_tracepoint_markers_by_strid): New.
566 * tracepoint.c: Include source.h.
567 (validate_actionline): Handle $_sdata.
568 (struct collection_list): New field strace_data.
569 (add_static_trace_data): New.
570 (clear_collection_list): Clear strace_data.
571 (stringify_collection_list): Account for a possible static trace
572 data collection.
573 (encode_actions_1): Encode an $_sdata collection.
574 (parse_tracepoint_definition): Handle static tracepoints.
575 (parse_static_tracepoint_marker_definition): New.
576 (release_static_tracepoint_marker): New.
577 (print_one_static_tracepoint_marker): New.
578 (info_static_tracepoint_markers_command): New.
579 (sdata_make_value): New.
580 (_initialize_tracepoint): Create the $_sdata convenience variable.
581 Add the "info static-tracepoint-markers" command.
582 Mention $_sdata in the "collect" command's help output.
583 * tracepoint.h (struct static_tracepoint_marker): New.
584 (parse_static_tracepoint_marker_definition)
585 (release_static_tracepoint_marker): Declare.
586 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
587 * python/py-breakpoint.c (bppy_new): Adjust.
588
589 2010-06-30 Joel Brobecker <brobecker@adacore.com>
590
591 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
592 including Python.h.
593
594 2010-06-29 Doug Evans <dje@google.com>
595
596 PR gdb/11702
597 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
598 DW_AT_external is present.
599
600 PR gdb/11702
601 * NEWS: Add entry.
602 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
603 create a symbol for the field and record the value.
604 (new_symbol): Handle DW_TAG_member.
605 * gdbtypes.c (field_is_static): Remove FIXME.
606 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
607 only ignore LOC_CONST symbols that are enums.
608
609 * dwarf2read.c: Remove trailing whitespace.
610
611 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
612 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
613 (struct main_type, field loc): Delete dwarf_block.
614 (FIELD_DWARF_BLOCK): Delete.
615 (SET_FIELD_DWARF_BLOCK): Delete.
616 (TYPE_FIELD_DWARF_BLOCK): Delete.
617 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
618 Update.
619
620 2010-06-29 Hui Zhu <teawater@gmail.com>
621
622 * record.c (set_record_pic_cmdlist,
623 show_record_pic_cmdlist): New variables.
624 (set_record_pic_command,
625 show_record_pic_command): New functions.
626 (record_pic_function, record_pic_line, record_pic_enum,
627 set_record_pic_type, record_pic_hide_nofunction,
628 record_pic_hide_nosource, record_pic_hide_same): New variables.
629 (record_pic_fputs): New function.
630 (function_list, node_list, edge_list): New struct.
631 (function_list, node_list, edge_list): New variables.
632 (record_pic_cleanups, record_pic_node,
633 record_pic_edge, cmd_record_pic): New functions.
634 (_initialize_record): Add new commands for record pic.
635
636 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
637
638 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
639 ALLOCATE_CPLUS_STRUCT_TYPE.
640
641 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
642 Tom Tromey <tromey@redhat.com>
643 Thiago Jung Bauermann <bauerman@br.ibm.com>
644
645 * value.c (pack_unsigned_long): New function.
646 (value_from_ulongest): New function.
647 * value.h (value_from_ulongest): Declare.
648 * python/python.c (_initialize_python): Call
649 gdbpy_initialize_thread and gdbpy_initialize_inferior.
650 * python/python-internal.h: Define thread_object.
651 (gdbpy_inferiors, gdbpy_selected_thread)
652 (frame_info_to_frame_object, create_thread_object)
653 (find_thread_object, find_inferior_object)
654 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
655 (gdbpy_is_value_object, get_addr_from_python): Declare.
656 * python/py-value.c (builtin_type_upylong): Define.
657 (convert_value_from_python): Add logic for ulongest.
658 (gdbpy_is_value_object): New function.
659 * python/py-utils.c (get_addr_from_python): New function.
660 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
661 (gdbpy_selected_frame): Use PyObject over frame_info.
662 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
663 py-infthread.
664 (SUBDIR_PYTHON_SRCS): Likewise.
665 (py-inferior.o): New Rule.
666 (py-infthread.o): New Rule.
667 * python/py-inferior.c: New File.
668 * python/py-infthread.c: New File.
669
670 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 * c-typeprint.c (c_type_print_base): For no fields check include also
673 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
674 * dwarf2read.c (struct typedef_field_list)
675 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
676 (dwarf2_add_typedef): New.
677 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
678 Copy also FI.TYPEDEF_FIELD_LIST.
679 * gdbtypes.h (struct typedef_field)
680 (struct cplus_struct_type) <typedef_field, typedef_field_count>
681 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
682 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
683
684 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
685
686 * cp-namespace.c (cp_lookup_nested_type): New variable
687 concatenated_name. Turn the current return condition into a reverse
688 one. Call also lookup_static_symbol_aux on the constructed qualified
689 name.
690 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
691 other files into a called ...
692 (lookup_static_symbol_aux): ... new function here.
693 * symtab.h (lookup_static_symbol_aux): New prototype.
694 * valops.c (value_maybe_namespace_elt): Call also
695 lookup_static_symbol_aux if we failed otherwise.
696
697 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
698
699 Fix PR c++/11703 and PR gdb/1448.
700 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
701 FIRST_ITER check.
702
703 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
704
705 Fix modification of cplus_struct_default.
706 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
707 Call ALLOCATE_CPLUS_STRUCT_TYPE.
708 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
709
710 2010-06-28 Joel Brobecker <brobecker@adacore.com>
711
712 * NEWS: Add entry announcing the python directory.
713
714 2010-06-28 Tom Tromey <tromey@redhat.com>
715
716 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
717
718 2010-06-28 Doug Evans <dje@google.com>
719
720 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
721 All callers updated.
722
723 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
724
725 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
726 obstack_begin after each obstack_free.
727
728 2010-06-27 Doug Evans <dje@google.com>
729
730 * value.c (value_static_field): Use `switch' instead of `if'.
731 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
732
733 * valops.c (search_struct_field): Fix typo in error message.
734
735 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
736
737 * dwarf2expr.c (execute_stack_op): Place preprocessor
738 directives at the start of the source line.
739
740 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
741
742 * defs.h (make_command_stats_cleanup): Declare.
743 (set_display_time): Declare.
744 (set_display_space): Declare.
745 * event-top.c (command_handler): Use make_command_stats_cleanup.
746 * main.c (display_time, display_space): Move definitions to utils.c.
747 (captured_main): Use make_command_stats_cleanup to get start-up
748 statistics.
749 Use set_display_time and set_display_space for processing OPT_STATISTICS
750 case.
751 * maint.c (maintenance_time_display): Use set_display_time.
752 (maintenance_space_display): Use set_display_space.
753 * top.c (execute_command): Remove obsolete 'maint time' code.
754 (command_loop): Use make_command_stats_cleanup.
755 * utils.c (struct cmd_stats): Structure for storing initial time
756 and space usage.
757 (display_time, display_space): Move definitions here from utils.c.
758 (set_display_time): New function.
759 (set_display_space): New function.
760 (make_command_stats_cleanup): New function.
761 (report_command_stats): New auxiliary function for
762 make_command_stats_cleanup.
763
764 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
765
766 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
767 hosts where CORE_ADDR is long long.
768
769 2010-06-25 Tom Tromey <tromey@redhat.com>
770
771 PR python/10808:
772 * python/python.c (execute_gdb_command): Add keywords. Accept
773 "to_string" argument.
774 (struct restore_ui_file_closure): New.
775 (restore_ui_file): New function.
776 (make_cleanup_restore_ui_file): Likewise.
777 (GdbMethods) <execute>: Update.
778
779 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
780
781 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
782 during inferior call stack frame setup.
783
784 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
785
786 * solib-spu.c: Include "exception.h".
787 (ocl_program_data_key): New variable.
788 (append_ocl_sos): New function.
789 (ocl_enable_break): Likewise.
790 (spu_current_sos): Call append_ocl_sos.
791 (spu_solib_loaded): Call ocl_enable_break.
792 (_initialize_spu_solib): Register ocl_program_data_key.
793
794 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
795
796 * cp-support.c (reset_directive_searched): New function.
797 (make_symbol_overload_list_using): Prevent recursive calls.
798
799 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
800
801 * printcmd.c (print_variable_and_value): Print error message on
802 caught exception.
803
804 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
805
806 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
807 of stack values.
808 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
809 "value" member.
810 (dwarf_expr_push): Change input type to ULONGEST.
811 (dwarf_expr_fetch): Change return type to ULONGEST.
812 (dwarf_expr_fetch_address): Add prototype.
813 (dwarf2_read_address): Remove prototype.
814 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
815 Truncate stack values to ctx->addr_size bytes.
816 (dwarf_expr_fetch): Change return value to ULONGEST.
817 (dwarf_expr_fetch_address): New function.
818 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
819 when appropriate. Update for struct dwarf_expr_piece changes.
820 (dwarf2_read_address): Remove.
821 (unsigned_address_type): Remove.
822 (signed_address_type): Remove.
823 (execute_stack_op): Use dwarf_expr_fetch_address instead of
824 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
825 values. Perform operations on ULONGEST instead of on GDB values,
826 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
827 values and DW_OP_deref results as unsigned integers.
828 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
829 changes.
830 (write_pieced_value): Likewise.
831 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
832 dwarf_expr_fetch when appropriate.
833 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
834 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
835 instead of dwarf_expr_fetch when appropriate.
836
837 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
838
839 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
840
841 2010-06-24 Joel Brobecker <brobecker@adacore.com>
842
843 * python/python.c (_initialize_python): Add new "constant"
844 PYTHONDIR in gdb module. Insert this path at the head of
845 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
846 exec its __init__.py script if it exists in that directory.
847
848 2010-06-24 Kevin Buettner <kevinb@redhat.com>
849
850 * rx-tdep.c (RX_ACC_REGNUM): Define.
851 (RX_NUM_REGS): Redefine to 26.
852 (rx_register_name): Add register "acc". Change order of several
853 registers. Change name of "vct" register to "fintv" to match RX
854 documentation.
855 (rx_register_type): Add case for RX_ACC_REGNUM.
856
857 2010-06-24 Tom Tromey <tromey@redhat.com>
858
859 * psymtab.c (lookup_partial_symbol): Mark definition as static.
860
861 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
862 Tom Tromey <tromey@redhat.com>
863
864 Fix GDB startup on readonly filesystem.
865 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
866
867 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
868 Pedro Alves <pedro@codesourcery.com>
869
870 Fix PR 9436.
871 * breakpoint.c (handle_jit_event): New function.
872 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
873 jit, err, table and bs_class. New variables shlib_event, jit_event,
874 this_action and bptype. Change bs_class assignments to this_action
875 assignments. new unhandled bptype internal error. Move here
876 shlib_event and jit_event handling from handle_inferior_event.
877 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
878 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
879 BPSTAT_WHAT_CHECK_JIT.
880 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
881 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
882 (handle_inferior_event): Reinitialize frame and gdbarch after
883 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
884 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
885 gdbarch when frame gets reinitialized.
886
887 2010-06-24 Hui Zhu <teawater@gmail.com>
888
889 * printcmd.c (ui_printf): New function.
890 (printf_command): Call ui_printf.
891 (_initialize_printcmd): New command "eval".
892
893 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
894
895 * infrun.c (handle_inferior_event): Handle presence of single-step
896 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
897 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
898 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
899 * breakpoint.c (detach_single_step_breakpoints): New function.
900 (detach_breakpoints): Call it.
901 (cancel_single_step_breakpoints): New function.
902 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
903
904 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
905 (spu_gdbarch_init): Install it.
906
907 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
908
909 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
910 * configure: Regenerate.
911
912 2010-06-22 Hui Zhu <teawater@gmail.com>
913
914 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
915 (i386_process_record): Ditto.
916 * record.c (record_memory_query): New variable.
917 (_initialize_record): New command "set record memory-query".
918 * record.h (record_memory_query): New extern.
919
920 2010-06-21 Doug Evans <dje@google.com>
921
922 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
923 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
924 (i386_syscall_p): Change type of lengthp to int.
925 (i386_displaced_step_fixup): Handle kernels that run one past a
926 syscall insn.
927 * i386-linux-tdep.c (i386_linux_init_abi): Use
928 i386_displaced_step_copy_insn instead of
929 simple_displaced_step_copy_insn.
930
931 2010-06-21 Tom Tromey <tromey@redhat.com>
932
933 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
934 (dwarf_type_encoding_name): Likewise.
935
936 2010-06-21 Tom Tromey <tromey@redhat.com>
937
938 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
939 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
940 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
941 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
942 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
943 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
944 * dwarf2read.c (tag_type_to_type): Create a new error type on
945 failure.
946 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
947 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
948
949 2010-06-21 Michael Snyder <msnyder@vmware.com>
950
951 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
952 not add_abbrev_prefix_cmd, for "enable breakpoints".
953
954 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
955
956 * dwarf2loc.c (find_location_expression): Add relocation offset
957 to base-address-selection entry base addresses. Read addresses
958 (and offsets) as signed/unsigned integers, depending on the
959 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
960 (loclist_describe_location): Likewise.
961 (disassemble_dwarf_expression): Read DW_OP_addr operand as
962 unsigned integer. Do not call dwarf2_read_address.
963 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
964
965 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
966
967 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
968 value instead of hard-coded SPU_LS_SIZE.
969 (spu_software_single_step): Likewise.
970 * spu-tdep.h (SPU_LS_SIZE): Remove.
971
972 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
973
974 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
975 limit on local store memory accesses.
976 * spu-linux-nat.c (spu_xfer_partial): Likewise.
977 * spu-tdep.c (spu_lslr): Remove.
978 (spu_pointer_to_address): Do not truncate addresses.
979 (spu_integer_to_address): Likewise.
980 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
981 * spu-tdep.h: Add comments.
982 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
983 (SPU_OVERLAY_LMA): Define.
984
985 2010-06-18 Stan Shebs <stan@codesourcery.com>
986
987 * osdata.c (get_osdata): Warn separately if target does not report
988 type list.
989 (info_osdata_command): Allow empty type, report error if target
990 does not return available types of OS data.
991 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
992 types if no annex supplied.
993
994 * thread.c (thread_id_make_value): Make a value representing the
995 current thread.
996 (_initialize_thread): Create $_thread.
997
998 2010-06-17 Joel Brobecker <brobecker@adacore.com>
999
1000 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
1001 last local variable declaration. No real code change.
1002
1003 2010-06-17 Tom Tromey <tromey@redhat.com>
1004
1005 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
1006 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
1007 temporary obstack.
1008
1009 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
1010 Jan Kratochvil <jan.kratochvil@redhat.com>
1011
1012 * breakpoint.c: Include parser-defs.h.
1013 (watchpoint_exp_is_const): New function.
1014 (watch_command_1): Call watchpoint_exp_is_const to check
1015 if the expression is constant.
1016
1017 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
1018
1019 * configure.ac: Check for RDYNAMIC also for cross builds.
1020 * configure: Regenerate.
1021
1022 2010-06-15 Pedro Alves <pedro@codesourcery.com>
1023
1024 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1025 (SFILES): Remove solib-null.c, add solib-target.c.
1026 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
1027 (ALLDEPFILES): Remove solib-target.c.
1028 * solib-target.c (_initialize_solib_target): Set
1029 current_target_so_ops to solib_target_so_ops if not already set.
1030 * solib-null.c: Delete.
1031
1032 2010-06-14 Pedro Alves <pedro@codesourcery.com>
1033
1034 * NEWS: Mention GDBserver's JIT compilation of tracepoint
1035 bytecode.
1036
1037 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1038
1039 * cp-valprint.c (cp_print_static_field): Members of
1040 dont_print_stat_array_obstack are of type "struct type *".
1041 (_initialize_cp_valprint): Likewise.
1042
1043 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1044
1045 * frame.c (frame_register_unwind): Do not access contents
1046 of "optimized out" unwound register value.
1047
1048 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1049
1050 * ada-lang.h (ada_print_type): Make varstring const.
1051 * ada-typeprint.c (print_func_type): Make name const.
1052 (ada_print_type): Make varstring const.
1053 * c-lang.h (c_print_type): Make varstring const.
1054 * c-typeprint.c (c_print_type): Likewise.
1055 * f-lang.h (f_print_type): Likewise.
1056 * f-typeprint.c (f_print_type): Likewise.
1057 * jv-lang.h (java_print_type): Likewise.
1058 * jv-typeprint.c (java_print_type): Likewise.
1059 * language.c (unk_lang_print_type): Likewise.
1060 * language.h (struct language_defn) <la_print_type>: Likewise.
1061 * m2-lang.h (m2_print_type): Likewise.
1062 * m2-typeprint.c (m2_print_type): Likewise.
1063 * p-lang.h (pascal_print_type): Likewise.
1064 * p-typeprint.c (pascal_print_type): Likewise.
1065
1066 2010-06-11 Stan Shebs <stan@codesourcery.com>
1067
1068 Add per-operation permission flags.
1069
1070 * target.h (struct target_ops): New method to_set_permissions.
1071 (target_set_permissions): New macro.
1072 (target_insert_breakpoint): Change macro to function.
1073 (target_remove_breakpoint): Ditto.
1074 (target_stop): Ditto.
1075 (may_write_registers): Declare.
1076 (may_write_memory): Declare.
1077 (may_insert_breakpoints): Declare.
1078 (may_insert_tracepoints): Declare.
1079 (may_insert_fast_tracepoints): Declare.
1080 (may_stop): Declare.
1081 * target.c (may_write_registers, may_write_registers_1): New globals.
1082 (may_write_memory, may_write_memory_1): New globals.
1083 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
1084 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
1085 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
1086 globals.
1087 (may_stop, may_stop_1): New global.
1088 (target_xfer_partial): Test for write permission.
1089 (target_store_registers): Ditto.
1090 (target_insert_breakpoint): New function.
1091 (target_remove_breakpoint): New function.
1092 (target_stop): New function.
1093 (_initialize_targets): Add new set/show variables.
1094 (set_write_memory_permission): New function.
1095 (update_target_permissions): New function.
1096 (set_target_permissions): New function.
1097 (update_current_target): Default to_set_permissions.
1098 (_initialize_targets): Use new globals and setter function.
1099 * tracepoint.c (start_tracing): Test for permission.
1100 * inferior.h (update_observer_mode): Declare.
1101 * infrun.c (non_stop_1): Define earlier.
1102 (observer_mode, observer_mode_1): New globals.
1103 (set_observer_mode, show_observer_mode): New functions.
1104 (update_observer_mode): New function.
1105 (_initialize_infrun): Define "set observer" command.
1106 * remote.c (PACKET_QAllow): New optional packet.
1107 (remote_protocol_features): Add QAllow.
1108 (remote_set_permissions): New function.
1109 (remote_start_remote): Call it.
1110 (init_remote_ops): Add it to target vector.
1111 (_initialize_remote): Add config command for QAllow.
1112
1113 2010-06-11 Tom Tromey <tromey@redhat.com>
1114
1115 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
1116 DW_AT_vtable_elem_location even when GCC extension is seen.
1117
1118 2010-06-11 Tom Tromey <tromey@redhat.com>
1119
1120 PR gdb/9977, PR exp/11636:
1121 * value.h (value_offset): Update.
1122 (struct lval_funcs) <check_validity>: New field.
1123 <copy_closure>: Make argument const.
1124 (value_computed_closure): Update.
1125 (value_contents_for_printing): Declare.
1126 (value_bits_valid): Likewise.
1127 (val_print): Likewise.
1128 (set_value_component_location): Update.
1129 (value_entirely_optimized_out): Declare.
1130 * value.c (value_offset): Argument now const.
1131 (require_not_optimized_out): New function.
1132 (value_contents_for_printing): New function.
1133 (value_contents_all): Call require_not_optimized_out.
1134 (value_contents): Likewise.
1135 (value_bits_valid): New function.
1136 (value_computed_closure): Argument now const.
1137 (set_value_component_location): Make 'whole' argument const.
1138 (value_entirely_optimized_out): New function.
1139 (value_bitsize): Argument now 'const'.
1140 (value_bitpos): Likewise.
1141 (value_type): Likewise.
1142 * valprint.h (val_print_array_elements): Update.
1143 * valprint.c (val_print): Add 'val' argument. Use
1144 valprint_check_validity.
1145 (valprint_check_validity): New function.
1146 (value_check_printable): Use value_entirely_optimized_out.
1147 (common_val_print): Update.
1148 (value_print): Likewise.
1149 (val_print_array_elements): Add 'val' argument.
1150 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
1151 value_bits_valid. Reinit frame cache for lval_computed.
1152 * sh64-tdep.c (sh64_do_register): Update.
1153 * scm-valprint.c (scm_val_print): Add 'val' argument.
1154 * scm-lang.h (scm_val_print): Update.
1155 * python/python.h (apply_val_pretty_printer): Update.
1156 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
1157 argument. Call set_value_component_location.
1158 * printcmd.c (print_scalar_formatted): Update.
1159 * p-valprint.c (pascal_val_print): Add 'val' argument.
1160 (pascal_object_print_value_fields): Likewise.
1161 (pascal_object_print_value): Likewise.
1162 (pascal_object_print_static_field): Update.
1163 * p-lang.h (pascal_val_print): Update.
1164 (pascal_object_print_value_fields): Update.
1165 * mt-tdep.c (mt_registers_info): Update.
1166 * mi/mi-main.c (get_register): Update.
1167 (mi_cmd_data_evaluate_expression): Use common_val_print.
1168 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
1169 (m2_print_unbounded_array): Likewise.
1170 (m2_val_print): Likewise.
1171 * m2-lang.h (m2_val_print): Update.
1172 * language.h (struct language_defn) <la_val_print>: Add 'val'
1173 argument.
1174 (LA_VAL_PRINT): Likewise.
1175 * language.c (unk_lang_val_print): Add 'val' argument.
1176 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
1177 (java_val_print): Likewise.
1178 * jv-lang.h (java_val_print): Add 'val' argument.
1179 * infcmd.c (default_print_registers_info): Update.
1180 * f-valprint.c (f77_print_array_1): Add 'val' argument.
1181 (f77_print_array): Likewise.
1182 (f_val_print): Likewise.
1183 * f-lang.h (f_val_print): Add 'val' argument.
1184 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
1185 value_bitpos.
1186 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
1187 set_value_optimized_out.
1188 (write_pieced_value): Use value_bitsize and value_bitpos.
1189 <default>: Don't exit loop.
1190 (check_pieced_value_validity): New function.
1191 (pieced_value_funcs): Reference check_pieced_value_validity,
1192 check_pieced_value_invalid.
1193 (copy_pieced_value_closure): Update.
1194 (check_pieced_value_bits): New function.
1195 (check_pieced_value_invalid): New function.
1196 * d-valprint.c (dynamic_array_type): Add 'val' argument.
1197 (d_val_print): Likewise.
1198 * d-lang.h (d_val_print): Update.
1199 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
1200 (cp_print_value_fields_rtti): Likewise.
1201 (cp_print_value): Likewise.
1202 (cp_print_static_field): Update.
1203 * c-valprint.c (c_val_print): Add 'val' argument.
1204 (c_value_print): Update.
1205 * c-lang.h (c_val_print): Update.
1206 (cp_print_value_fields): Likewise.
1207 (cp_print_value_fields_rtti): Likewise.
1208 * ada-valprint.c (struct ada_val_print_args): Remove.
1209 (val_print_packed_array_elements): Add 'val' argument.
1210 (ada_val_print): Likewise. Rewrite.
1211 (ada_val_print_stub): Remove.
1212 (ada_val_print_array): Add 'val' argument.
1213 (ada_val_print_1): Likewise.
1214 (print_variant_part): Likewise.
1215 (ada_value_print): Update.
1216 (print_record): Add 'val' argument.
1217 (print_field_values): Likewise.
1218 * ada-lang.h (ada_val_print): Update.
1219
1220 2010-06-11 Tom Tromey <tromey@redhat.com>
1221
1222 * vec.h (VEC_cleanup): New macro.
1223 (DEF_VEC_ALLOC_FUNC_I): Update.
1224 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1225 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1226 * dwarf2loc.c (struct axs_var_loc): Remove.
1227 (unimplemented): New function.
1228 (translate_register): Likewise.
1229 (access_memory): Likewise.
1230 (compile_dwarf_to_ax): Likewise.
1231 (dwarf2_tracepoint_var_loc): Remove.
1232 (dwarf2_tracepoint_var_access): Likewise.
1233 (dwarf2_tracepoint_var_ref): Likewise.
1234 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
1235 (loclist_tracepoint_var_ref): Likewise.
1236 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
1237 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
1238 require_composition. No longer static.
1239 (execute_stack_op): Update.
1240 * ax-gdb.h (trace_kludge): Declare.
1241
1242 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1243
1244 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
1245 (should_be_inserted): Return zero also on NULL OWNER.
1246 (breakpoint_program_space_exit): New OWNER comment.
1247 (insert_breakpoint_locations): Extend comment for OWNER.
1248 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
1249 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
1250 New OWNER comment.
1251 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
1252 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
1253 (bpstat_check_location): New assert on OWNER.
1254 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
1255 and B initializations to the code block. New assert on them.
1256 (print_one_breakpoint_location): New OWNER comment.
1257 (watchpoint_locations_match): Assert on OWNER.
1258 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
1259 initializations to the code block. New assert on OWNER.
1260 (set_breakpoint_location_function): New assert on OWNER.
1261 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
1262 (bp_location_compare, update_global_location_list)
1263 (update_global_location_list): New OWNER comment.
1264
1265 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1266
1267 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
1268
1269 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1270
1271 * config/nm-linux.h (struct target_ops): Remove forward declaration.
1272 (lin_thread_get_thread_signals): Remove prototype.
1273 (GET_THREAD_SIGNALS): Remove.
1274 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
1275 * linux-thread-db.c (check_thread_signals): Directly call
1276 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
1277
1278 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
1279
1280 * gregset.h (GDB_FPXREGSET_T): Remove.
1281 (gdb_fpxregset_t): Likewise.
1282 (supply_fpxregset): Remove prototype.
1283 (fill_fpxregset): Likewise.
1284 * i386-linux-nat.c (supply_fpxregset): Remove.
1285 (fill_fpxregset): Likewise.
1286 (fetch_fpxregs): Inline supply_fpxregset call.
1287 (store_fpxregs): Inline fill_fpxregset call.
1288
1289 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
1290 * config/i386/nm-linux.h: Remove file.
1291
1292 2010-06-09 Michael Snyder <msnyder@vmware.com>
1293
1294 * target.c (update_current_target): Fix spelling error in comment.
1295 (target_mourn_inferior): Fix spelling error in error message.
1296
1297 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
1298
1299 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
1300 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
1301
1302 2010-06-08 Michael Snyder <msnyder@vmware.com>
1303
1304 * remote.c (remote_close): Set inferior_ptid to null_ptid.
1305
1306 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1307
1308 * configure.ac <"${have_libpython}" != no>: New workaround of
1309 python#4434.
1310 * configure: Regenerate.
1311
1312 2010-06-08 Hui Zhu <teawater@gmail.com>
1313
1314 * record.c (record_wait): Move signal out of replay code.
1315
1316 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1317
1318 Fix PR 10640.
1319 * dwarf2-frame.c (no_dwarf_call): New function.
1320 (execute_stack_op): Set CTX->DWARF_CALL.
1321 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
1322 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
1323 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
1324 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
1325 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
1326 (needs_frame_dwarf_call): New function.
1327 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
1328 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
1329 Update the comment. Move variables die, offset and error call to ...
1330 (follow_die_ref): ... a new function.
1331 (dwarf2_fetch_die_location_block): New function.
1332 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
1333
1334 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
1337 (dwarf_expr_tls_address): Use per_cu instead of objfile.
1338 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
1339 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
1340 this change.
1341 (struct needs_frame_baton): New field per_cu.
1342 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
1343 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
1344
1345 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1346
1347 * cp-support.c (make_symbol_overload_list_namespace): Only search
1348 static and global blocks.
1349 (make_symbol_overload_list_block): New function.
1350 (make_symbol_overload_list): Separate namespace search from block
1351 search.
1352 (make_symbol_overload_list_qualified): Use
1353 make_symbol_overload_list_block.
1354
1355 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1356
1357 * value.h: Created oload_search_type enum.
1358 (find_overload_match): Use oload_search_type enum.
1359 * valops.c (find_overload_match): Support combined member and
1360 non-member search.
1361 * eval.c (evaluate_subexp_standard): Calls to
1362 find_overload_match now use oload_search_type enum.
1363 (oload_method_static): Verify index is a proper value.
1364 * valarith.c (value_user_defined_cpp_op): Search for and handle
1365 both member and non-member operators.
1366 (value_user_defined_cpp_op): New function.
1367 (value_user_defined_op): New function.
1368 (value_x_unop): Use value_user_defined_op.
1369 (value_x_binop): Ditto.
1370 * cp-support.c (make_symbol_overload_list_using): Added block
1371 iteration.
1372 Add check for namespace aliases and imported declarations.
1373
1374 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1375
1376 * breakpoint.h (owner): Extend the comment.
1377
1378 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1379
1380 Clear stale specific bp_location from former whole breakpoint.
1381 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
1382 code ...
1383 (free_bp_location): ... here. Rename there the called function to
1384 bpstat_remove_bp_location_callback.
1385 (bpstat_remove_breakpoint_callback): Rename to ...
1386 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
1387 to struct bp_location. Change the called function to
1388 bpstat_remove_bp_location. Create new declaration for the function.
1389 (bpstat_remove_breakpoint): Rename to ...
1390 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
1391 code for the new parameter type.
1392
1393 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
1394
1395 * README: Make version-agnostic.
1396
1397 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1398
1399 Fix duplicate types for single DIE.
1400 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
1401 set_die_type.
1402 (read_array_type): Remove type initialization. Recheck get_die_type
1403 after initial die_type. Move set_die_type before set_descriptive_type.
1404 (read_set_type): New variable domain_type. Recheck get_die_type after
1405 initial die_type. Move attr initialization later.
1406 (read_tag_pointer_type, read_tag_reference_type): New variable
1407 target_type. Recheck get_die_type after initial die_type.
1408 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
1409 die_type and die_containing_type.
1410 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
1411 Recheck get_die_type after initial die_type.
1412 (read_subrange_type): Recheck get_die_type after initial die_type.
1413 Move set_die_type before set_descriptive_type.
1414 (set_die_type): Extend the function comment. Call complaint if DIE has
1415 some type already set.
1416
1417 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
1418
1419 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
1420 for current naming of thread groups (iN, not N).
1421
1422 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1423
1424 * ada-lang.c (ada_operator_length): Constify `struct expression'.
1425 * parse.c (operator_length): Likewise.
1426 (operator_length_standard): Likewise.
1427 * parser-defs.h (operator_length): Likewise.
1428 (operator_length_standard): Likewise.
1429 (struct exp_descriptor <operator_length>): Likewise.
1430
1431 2010-06-04 Doug Evans <dje@google.com>
1432
1433 Add support for enabling/disabling individual pretty-printers.
1434 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
1435 * python/python-internal.h (gdbpy_enabled_cst): Declare.
1436 * python/python.c (gdbpy_enabled_cst): Define.
1437 (_initialize_python): Initialize gdbpy_enabled_cst.
1438 * NEWS: Add entry.
1439
1440 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1441
1442 * breakpoint.c (update_global_location_list): Fix comment typo.
1443
1444 2010-06-04 Hui Zhu <teawater@gmail.com>
1445
1446 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
1447
1448 2010-06-03 Doug Evans <dje@google.com>
1449
1450 * configure.ac: Don't fail if python is unusable when
1451 configured with --with-python=auto.
1452 * configure: Regenerate.
1453
1454 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
1455
1456 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
1457
1458 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
1459
1460 * valprint.h (get_array_bounds): Change low and high parameter types
1461 to LONGEST *.
1462 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
1463 compute bounds.
1464 (val_print_array_elements): Adapt to change above.
1465 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
1466 * p-valprint.c (pascal_val_print): Likewise.
1467
1468 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1469
1470 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1471 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1472 .F08.
1473
1474 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 Support DW_TAG_module as separate namespaces.
1477 * dwarf2read.c (typename_concat): New parameter physname.
1478 (read_module_type): New function and declaration.
1479 (scan_partial_symbols): Scan also DW_TAG_module children.
1480 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1481 to typename_concat backward compatible physname value 0.
1482 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1483 backward compatible physname value 0.
1484 (add_partial_module, read_module): Remove FIXME comment.
1485 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1486 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1487 DIEs under DW_TAG_module.
1488 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1489 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1490 && physname and return there instead of just setting NAME. Extend
1491 the main block for language_fortran. Pass physname parameter to the
1492 typename_concat call.
1493 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1494 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1495 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1496 missing from SYMBOL_SET_NAMES in the language_fortran case.
1497 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1498 variables.
1499 (read_type_die) <DW_TAG_module>: New.
1500 (MAX_SEP_LEN): Increase to 7.
1501 (typename_concat): New parameter physname. New variable lead. Support
1502 also language_fortran.
1503 * f-exp.y (yylex): Consider : also as a symbol name character class.
1504 * f-lang.c: Include cp-support.h.
1505 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1506 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1507 f_word_break_characters and f_make_symbol_completion_list.
1508 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1509 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1510 * symtab.c (symbol_init_language_specific): Support language_fortran.
1511 (symbol_find_demangled_name): New comment on language_fortran.
1512 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1513 for language_fortran.
1514 (lookup_symbol_aux_local): Check imports also for language_fortran.
1515 (default_make_symbol_completion_list): Rename to ...
1516 (default_make_symbol_completion_list_break_on): ... this name. New
1517 parameter break_on, use it.
1518 (default_make_symbol_completion_list): New stub.
1519 * symtab.h (default_make_symbol_completion_list_break_on): New
1520 prototype.
1521
1522 2010-06-02 Joel Brobecker <brobecker@adacore.com>
1523
1524 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1525 to error.
1526
1527 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 * dwarf2read.c (typename_concat): Add const to the variable sep.
1530
1531 2010-06-02 Tom Tromey <tromey@redhat.com>
1532
1533 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1534 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1535 type is const. Add 'def' argument. Add missing operators, remove
1536 unhandled ones.
1537 (decode_locdesc): Update.
1538 (dwarf2_always_disassemble): New global.
1539 (show_dwarf2_always_disassemble): New function.
1540 (_initialize_dwarf2_read): Add always-disassemble.
1541 (dwarf2_per_cu_offset_size): New function.
1542 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1543 (piece_end_p): New function.
1544 (locexpr_describe_location_piece): Replace 'size' argument with
1545 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1546 some constants. Remove errors.
1547 (disassemble_dwarf_expression): New function.
1548 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1549 Add 'offset_size' argument.
1550 (loclist_describe_location): Change output formatting.
1551 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1552
1553 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1554
1555 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1556 anonymous type case.
1557
1558 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1559
1560 * dwarf2read.c (read_subrange_type): Handle missing base type
1561 according to Dwarf-2 specifications.
1562
1563 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1564
1565 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1566 BINOP_EXCL.
1567 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1568 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1569 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1570 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1571 UNOP_CHMAX, UNOP_CHMIN.
1572 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1573 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1574 UNOP_CHMIN>: Remove opcodes.
1575
1576 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1577
1578 * dwarf2read.c (read_func_scope): Do not complain for
1579 external function if bounds are not found.
1580
1581 2010-06-01 Pedro Alves <pedro@codesourcery.com>
1582
1583 * NEWS: Mention gdbserver fast tracepoints support.
1584
1585 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1586
1587 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1588 New macros.
1589 (windows_set_console_info): New function.
1590 (windows_create_inferior): Call windows_set_console_info
1591 if NEW_CONSOLE is true.
1592 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1593 (_initialize_loadable): Initialize GetConsoleFontSize and
1594 GetCurrentConsoleFont.
1595
1596 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1597
1598 * Makefile.in (RDYNAMIC): New.
1599 (SFILES): Add proc-service.list.
1600 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1601 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1602 * config/arm/linux.mh: Likewise.
1603 * config/i386/linux.mh: Likewise.
1604 * config/i386/linux64.mh: Likewise.
1605 * config/ia64/linux.mh: Likewise.
1606 * config/m32r/linux.mh: Likewise.
1607 * config/m68k/linux.mh: Likewise.
1608 * config/mips/linux.mh: Likewise.
1609 * config/pa/linux.mh: Likewise.
1610 * config/powerpc/linux.mh: Likewise.
1611 * config/powerpc/ppc64-linux.mh: Likewise.
1612 * config/s390/s390.mh: Likewise.
1613 * config/sparc/linux.mh: Likewise.
1614 * config/sparc/linux64.mh: Likewise.
1615 * config/xtensa/linux.mh: Likewise.
1616 * configure.ac: New RDYNAMIC on native host and GCC.
1617 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1618 * configure: Regenerate.
1619 * proc-service.list: New.
1620
1621 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1622
1623 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1624 CONTENT.
1625
1626 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1627
1628 * linux-nat.c (linux_nat_wait_1): Do not call
1629 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1630 TARGET_WAITKIND_SIGNALLED.
1631
1632 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1633
1634 * ada-lang.c (ada_inferior_data): New struct.
1635 (ada_inferior_data): New static global.
1636 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1637 (ada_get_tsd_type): New functions.
1638 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1639 to look the tsd type up.
1640 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1641 event. Set ada_inferior_data.
1642
1643 2010-05-27 Pedro Alves <pedro@codesourcery.com>
1644
1645 * remote.c (unpack_varlen_hex): Remove forward declaration.
1646 (remote_console_output): Make static, and add forward declaration.
1647 * remote.h: Drop FIXME comment.
1648 (unpack_varlen_hex): Declare.
1649 (remote_console_output, remote_cisco_objfile_relocate)
1650 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1651 Delete declarations.
1652 * tracepoint.c: Include "remote.h".
1653 (unpack_varlen_hex): Delete declaration.
1654
1655 2010-05-27 Tom Tromey <tromey@redhat.com>
1656
1657 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1658 (allocate_piece_closure): Initialize refc.
1659 (copy_pieced_value_closure): Use refc.
1660 (free_pieced_value_closure): Likewise.
1661
1662 2010-05-27 Tom Tromey <tromey@redhat.com>
1663
1664 * arm-tdep.c (push_stack_item): 'contents' now const.
1665 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1666 value_contents_writeable. Introduce new temporary.
1667
1668 2010-05-27 Tom Tromey <tromey@redhat.com>
1669
1670 * findcmd.c (parse_find_args): Use value_contents, not
1671 value_contents_raw.
1672
1673 2010-05-27 Tom Tromey <tromey@redhat.com>
1674
1675 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1676 const. Use value_contents, not value_contents_writeable.
1677
1678 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1681 by call to value_contents.
1682
1683 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1684
1685 * MAINTAINERS: Add myself for write after approval privileges.
1686
1687 2010-05-26 Doug Evans <dje@google.com>
1688
1689 Allow python to find its files if moved from original location.
1690 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1691 (GDB_AC_WITH_DIR): Call it.
1692 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1693 python installation directory.
1694 * config.in: Regenerate.
1695 * configure: Regenerate.
1696 * defs.h (python_libdir): Declare.
1697 * main.c (python_libdir): Define.
1698 (captured_main): Initialize python_libdir.
1699 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1700 call Py_SetProgramName to make sure python can find its libraries
1701 and modules.
1702
1703 * configure.ac: Try to use python's distutils to fetch compilation
1704 parameters.
1705 * configure: Regenerate.
1706 * python/python-config.py: New file.
1707
1708 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1709
1710 * ser-tcp.c (net_open): Check error return from socket() call by its
1711 equality to -1 not by it being negative.
1712 (net_close): Likewise.
1713
1714 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1715
1716 * NEWS: Mention the `qRelocInsn' feature.
1717 * gdbarch.sh (relocate_instruction): New.
1718 * amd64-tdep.c (rip_relative_offset): New.
1719 (append_insns): New.
1720 (amd64_relocate_instruction): New.
1721 (amd64_init_abi): Install it.
1722 * i386-tdep.c (append_insns): New.
1723 (i386_relocate_instruction): New.
1724 (i386_gdbarch_init): Install it.
1725 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1726 * gdbarch.h, gdbarch.c: Regenerate.
1727
1728 2010-05-26 Tom Tromey <tromey@redhat.com>
1729
1730 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1731 (struct dwarf2_loclist_baton) <data>: Likewise.
1732 * dwarf2loc.c (find_location_expression): Constify return type.
1733 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1734 (dwarf2_loc_desc_needs_frame): Likewise.
1735 (loclist_read_variable): Constify.
1736 (loclist_describe_location): Likewise.
1737 (loclist_tracepoint_var_ref): Likewise.
1738
1739 2010-05-25 Tom Tromey <tromey@redhat.com>
1740
1741 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1742 (dwarf_expr_frame_base_1): Likewise.
1743 (read_pieced_value): Update.
1744 (needs_frame_frame_base): Constify.
1745 (dwarf2_tracepoint_var_loc): Likewise.
1746 (dwarf2_tracepoint_var_access): Likewise.
1747 (locexpr_describe_location_piece): Likewise.
1748 (locexpr_describe_location_1): Likewise.
1749 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1750 Constify.
1751 (data): Now const.
1752 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1753 (dwarf_expr_eval, read_uleb128, read_sleb128)
1754 (dwarf2_read_address): Update.
1755 * dwarf2expr.c (dwarf_expr_eval): Constify.
1756 (read_uleb128): Likewise.
1757 (read_sleb128): Likewise.
1758 (dwarf2_read_address): Likewise.
1759 (require_composition): Likewise.
1760 (execute_stack_op): Likewise.
1761 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1762 "const gdb_byte *".
1763 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1764 Now const.
1765 (no_get_frame_base): Constify.
1766 (execute_stack_op): Likewise.
1767 (execute_cfa_program): Likewise.
1768 (read_encoded_value): Likewise.
1769
1770 2010-05-25 Doug Evans <dje@google.com>
1771
1772 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1773
1774 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1775 * event-loop.c: ... here.
1776 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1777 `error' for clarity.
1778 (tui_getc): Pass correct value for `error' parameter to
1779 tui_readline_output.
1780
1781 Add python gdb.GdbError and gdb.string_to_argv.
1782 * NEWS: Document them.
1783 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1784 the exception is gdb.GdbError. Print a second traceback if there's
1785 an error computing the error message.
1786 (gdbpy_string_to_argv): New function.
1787 * python/py-utils.c (gdbpy_obj_to_string): New function.
1788 (gdbpy_exception_to_string): New function.
1789 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1790 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1791 (gdbpy_gdberror_exc): Declare.
1792 * python/python.c (gdbpy_gdberror_exc): New global.
1793 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1794 gdb.GdbError.
1795 (GdbMethods): Add string_to_argv.
1796
1797 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1798
1799 * windows-nat.c (display_selector): Call GetLastError to give better
1800 failure explanation.
1801
1802 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1803
1804 * config.in: Regenerate.
1805
1806 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1807
1808 Code cleanup.
1809 * target.c (push_target): Return only void. Remove the return value
1810 comment.
1811 * target.h (push_target): Return only void.
1812
1813 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1814
1815 Update gnulib from latest git.
1816 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1817
1818 * gnulib/memcmp.c: Removed.
1819 * gnulib/memchr.valgrind: New.
1820 * gnulib/stddef.in.h: New.
1821 * gnulib/Makefile.am: Updated.
1822 * gnulib/memchr.c: Updated.
1823 * gnulib/memmem.c: Updated.
1824 * gnulib/stdint.in.h: Updated.
1825 * gnulib/str-two-way.h: Updated.
1826 * gnulib/string.in.h: Updated.
1827 * gnulib/wchar.in.h: Updated.
1828
1829 * gnulib/extra/link-warning.h: Removed.
1830 * gnulib/extra/c++defs.h: New.
1831 * gnulib/extra/warn-on-use.h: New.
1832 * gnulib/extra/arg-nonnull.h: Updated.
1833
1834 * gnulib/m4/extensions.m4: Updated.
1835 * gnulib/m4/gnulib-cache.m4: Updated.
1836 * gnulib/m4/gnulib-common.m4: Updated.
1837 * gnulib/m4/gnulib-comp.m4: Updated.
1838 * gnulib/m4/gnulib-tool.m4: Updated.
1839 * gnulib/m4/include_next.m4: Updated.
1840 * gnulib/m4/longlong.m4: Updated.
1841 * gnulib/m4/memchr.m4: Updated.
1842 * gnulib/m4/memmem.m4: Updated.
1843 * gnulib/m4/stdint.m4: Updated.
1844 * gnulib/m4/string_h.m4: Updated.
1845 * gnulib/m4/memcmp.m4: Removed.
1846 * gnulib/m4/onceonly_2_57.m4: Removed.
1847 * gnulib/m4/00gnulib.m4: New.
1848 * gnulib/m4/mmap-anon.m4: New.
1849 * gnulib/m4/multiarch.m4: New.
1850 * gnulib/m4/onceonly.m4: New.
1851 * gnulib/m4/stddef_h.m4: New.
1852 * gnulib/m4/warn-on-use.m4: New.
1853 * gnulib/m4/wchar.m4: Removed.
1854 * gnulib/m4/wchar_h.m4: New.
1855 * gnulib/m4/wchar_t.m4: New.
1856 * gnulib/m4/wint_t.m4: New.
1857
1858 * aclocal.m4: Regenerate.
1859 * config.in: Likewise.
1860 * configure: Likewise.
1861 * gnulib/Makefile.in: Likewise.
1862
1863 2010-05-21 Tom Tromey <tromey@redhat.com>
1864
1865 * dwarf2loc.c (extract_bits_primitive): New function.
1866 (extract_bits): Likewise.
1867 (insert_bits): Likewise.
1868 (copy_bitwise): Likewise.
1869 (read_pieced_value): Do all operations in bits.
1870 (write_pieced_value): Likewise.
1871 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1872 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1873 Always use xrealloc to resize piece array.
1874 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1875 <DW_OP_piece>: Update.
1876 <DW_OP_bit_piece>: New case.
1877
1878 2010-05-21 Tom Tromey <tromey@redhat.com>
1879
1880 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1881 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1882 * dwarf2expr.h (enum dwarf_value_location)
1883 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1884 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1885 (add_piece): Handle empty piece.
1886 (execute_stack_op) <DW_OP_piece>: Handle
1887 DWARF_VALUE_OPTIMIZED_OUT.
1888
1889 2010-05-21 Tom Tromey <tromey@redhat.com>
1890
1891 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1892 evaluate_subexp, not evaluate_subexp_with_coercion.
1893
1894 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1895
1896 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1897 attribute.
1898
1899 2010-05-21 Tom Tromey <tromey@redhat.com>
1900
1901 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1902 offset.
1903 (write_pieced_value): Likewise.
1904
1905 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1906
1907 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1908 and DW_TAG_volatile_type.
1909 (new_symbol): Likewise.
1910
1911 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1912
1913 * p-valprint.c (pascal_val_print): Call get_array_bounds
1914 to obtain the number of elements in an array.
1915
1916 2010-05-19 Doug Evans <dje@google.com>
1917
1918 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1919
1920 * python.c (source_python_script): Add comment.
1921 (source_python_script_for_objfile): Remove unnecessary call to
1922 gdbpy_print_stack.
1923
1924 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1925 Sergio Durigan Junior <sergiodj@redhat.com>
1926
1927 Code cleanup.
1928 * parse.c (exp_iterate): Use operator_length wrapper function.
1929
1930 2010-05-18 Michael Snyder <msnyder@vmware.com>
1931
1932 * ada-lang.c: White space.
1933 * ada-typeprint.c: White space.
1934 * ada-valprint.c: White space.
1935 * addrmap.c: White space.
1936 * auxv.c: White space.
1937 * ax-gdb.c: White space.
1938
1939 2010-05-18 Hui Zhu <teawater@gmail.com>
1940
1941 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1942 for oldfp.
1943 (inferior_call_waitpid): Move make_cleanup out of check.
1944 Check the return of waitpid.
1945 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1946
1947 2010-05-17 Michael Snyder <msnyder@vmware.com>
1948
1949 * tui/tui.c: White space.
1950 * tui/tui-data.c: White space.
1951 * tui/tui-disasm.c: White space.
1952 * tui/tui-file.c: White space.
1953 * tui/tui-interp.c: White space.
1954 * tui/tui-main.c: White space.
1955 * tui/tui-out.c: White space.
1956 * tui/tui-regs.c: White space.
1957 * tui/tui-source.c: White space.
1958 * tui/tui-stack.c: White space.
1959 * tui/tui-win.c: White space.
1960 * tui/tui-winsource.c: White space.
1961
1962 * procfs.c: White space.
1963
1964 * python/py-auto-load.c: White space.
1965 * python/py-block.c: White space.
1966 * python/py-breakpoint.c: White space.
1967 * python/py-cmd.c: White space.
1968 * python/py-function.c: White space.
1969 * python/py-lazy-string.c: White space.
1970 * python/py-objfile.c: White space.
1971 * python/py-param.c: White space.
1972 * python/py-prettyprint.c: White space.
1973 * python/py-progspace.c: White space.
1974 * python/py-symtab.c: White space.
1975 * python/python.c: White space.
1976 * python/py-type.c: White space.
1977 * python/py-utils.c: White space.
1978 * python/py-value.c: White space.
1979
1980 * mi/mi-cmd-break.c: White space.
1981 * mi/mi-cmd-env.c: White space.
1982 * mi/mi-cmds.c: White space.
1983 * mi/mi-cmd-stack.c: White space.
1984 * mi/mi-cmd-var.c: White space.
1985 * mi/mi-console.c: White space.
1986 * mi/mi-getopt.c: White space.
1987 * mi/mi-interp.c: White space.
1988 * mi/mi-main.c: White space.
1989 * mi/mi-out.c: White space.
1990 * mi/mi-parse.c: White space.
1991
1992 * cli/cli-cmds.c: White space.
1993 * cli/cli-decode.c: White space.
1994 * cli/cli-dump.c: White space.
1995 * cli/cli-interp.c: White space.
1996 * cli/cli-logging.c: White space.
1997 * cli/cli-script.c: White space.
1998 * cli/cli-setshow.c: White space.
1999
2000 * valarith.c: White space.
2001 * valops.c: White space.
2002 * valprint.c: White space.
2003 * value.c: White space.
2004 * varobj.c: White space.
2005 * xcoffread.c: White space.
2006 * xml-support.c: White space.
2007 * xml-tdesc.c: White space.
2008
2009 2010-05-17 Andreas Schwab <schwab@redhat.com>
2010
2011 PR gdb/11092
2012 * c-lang.c (c_printstr): Compute real length of NUL terminated
2013 string at first.
2014
2015 2010-05-17 Joel Brobecker <brobecker@adacore.com>
2016
2017 * parse.c (parse_exp_in_context): When block is not NULL, use
2018 its associated language to parse the expression instead of
2019 the current_language.
2020
2021 2010-05-17 Joel Brobecker <brobecker@adacore.com>
2022
2023 * jv-lang.c (java_lookup_class): Remove commented out code.
2024 (type_from_class): Likewise.
2025 (java_op_print_tab): Remove commented-out elements.
2026
2027 2010-05-17 Joel Brobecker <brobecker@adacore.com>
2028
2029 * ada-lang.c (to_fixed_range_type): The the raw index type as
2030 argument instead of the raw type name. Remove orig_type parameter.
2031 Update calls throughout.
2032 (ada_fixup_array_indexes_type): New function.
2033 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
2034 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
2035 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
2036 Remove name parameter.
2037 (print_array_type): Add call to ada_fixup_array_indexes_type.
2038 Update calls to print_range_type.
2039 (ada_print_type): Update calls to print_range_type.
2040
2041 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2042
2043 * dwarf2read.c (read_set_type): Set type length if
2044 DW_AT_byte_size attribute is present.
2045
2046 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
2047
2048 * p-valprint.c (pascal_val_print): Handle set type if range limits
2049 are undefined but size is known.
2050
2051 2010-05-17 Pedro Alves <pedro@codesourcery.com>
2052
2053 * procfs.c: Reformat.
2054
2055 2010-05-16 Michael Snyder <msnyder@vmware.com>
2056
2057 * target.c: White space.
2058 * target-descriptions.c: White space.
2059 * target-memory.c: White space.
2060 * thread.c: White space.
2061 * top.c: White space.
2062 * tracepoint.c: White space.
2063 * trad-frame.c: White space.
2064 * tramp-frame.c: White space.
2065 * ui-file.c: White space.
2066 * ui-out.c: White space.
2067 * user-regs.c: White space.
2068 * utils.c: White space.
2069
2070 * scm-exp.c: White space.
2071 * scm-lang.c: White space.
2072 * scm-valprint.c: White space.
2073 * sentinel-frame.c: White space.
2074 * ser-base.c: White space.
2075 * ser-go32.c: White space.
2076 * serial.c: White space.
2077 * ser-mingw.c: White space.
2078 * ser-pipe.c: White space.
2079 * ser-tcp.c: White space.
2080 * ser-unix.c: White space.
2081 * solib.c: White space.
2082 * solib-darwin.c: White space.
2083 * solib-frv.c: White space.
2084 * solib-irix.c: White space.
2085 * solib-osf.c: White space.
2086 * solib-pa64.c: White space.
2087 * solib-som.c: White space.
2088 * solib-spu.c: White space.
2089 * solib-svr4.c: White space.
2090 * solib-target.c: White space.
2091 * source.c: White space.
2092 * stabsread.c: White space.
2093 * stack.c: White space.
2094 * std-regs.c: White space.
2095 * symfile.c: White space.
2096 * symmisc.c: White space.
2097 * symtab.c: White space.
2098
2099 2010-05-16 Michael Snyder <msnyder@vmware.com>
2100
2101 * source.c (_initialize_source): Add "rev" as an abbreviation
2102 for the "reverse-search" command.
2103
2104 2010-05-16 Michael Snyder <msnyder@vmware.com>
2105
2106 * record.c: White space.
2107 * regcache.c: White space.
2108 * reggroups.c: White space.
2109 * remote-fileio.c: White space.
2110 * remote-m32r-sdi.c: White space.
2111 * remote-mips.c: White space.
2112 * remote-sim.c: White space.
2113 * remote.c: White space.
2114 (process_g_packet): Remove orphan braces.
2115
2116 2010-05-15 Michael Snyder <msnyder@vmware.com>
2117
2118 * parse.c: White space.
2119 * p-lang.c: White space.
2120 * posix-hdep.c: White space.
2121 * printcmd.c: White space.
2122 * progspace.c: White space.
2123 * prologue-value.c: White space.
2124 * psymtab.c: White space.
2125 * p-typeprint.c: White space.
2126 * p-valprint.c: White space.
2127
2128 * objc-lang.c: White space.
2129 * objfiles.c: White space.
2130 * observer.c: White space.
2131 * osabi.c: White space.
2132 * osdata.c: White space.
2133
2134 * m2-lang.c: White space.
2135 * m2-valprint.c: White space.
2136 * macrocmd.c: White space.
2137 * macroexp.c: White space.
2138 * macroscope.c: White space.
2139 * macrotab.c: White space.
2140 * main.c: White space.
2141 * maint.c: White space.
2142 * mdebugread.c: White space.
2143 * memattr.c: White space.
2144 * minsyms.c: White space.
2145 * monitor.c: White space.
2146
2147 2010-05-14 Michael Snyder <msnyder@vmware.com>
2148
2149 * jv-lang.c: White space.
2150 * jv-typeprint.c: White space.
2151 * jv-valprint.c: White space.
2152 * language.c: White space.
2153 * libunwind-frame.c: White space.
2154 * linespec.c: White space.
2155 * linux-nat.c: White space.
2156 * linux-record.c: White space.
2157 * linux-thread-db.c: White space.
2158
2159 * infcall.c: White space.
2160 * inf-child.c: White space.
2161 * infcmd.c: White space.
2162 * inferior.c: White space.
2163 * inf-loop.c: White space.
2164 * inflow.c: White space.
2165 * inline-frame.c: White space.
2166 * interps.c: White space.
2167
2168 * gcore.c: White space.
2169 * gdb.c: White space.
2170 * gdbtypes.c: White space.
2171 * gnu-nat.c: White space.
2172 * gnu-v2-abi.c: White space.
2173 * gnu-v3-abi.c: White space.
2174
2175 * findcmd.c: White space.
2176 * findvar.c: White space.
2177 * fork-child.c: White space.
2178 * frame-base.c: White space.
2179 * frame.c: White space.
2180 * frame-unwind.c: White space.
2181 * f-valprint.c: White space.
2182
2183 * elfread.c: White space.
2184 * environ.c: White space.
2185 * eval.c: White space.
2186 * event-loop.c: White space.
2187 * event-top.c: White space.
2188 * exceptions.c: White space.
2189 * exec.c: White space.
2190 * expprint.c: White space.
2191
2192 * dbxread.c: White space.
2193 * dcache.c: White space.
2194 * disasm.c: White space.
2195 * doublest.c: White space.
2196 * dsrec.c: White space.
2197 * dummy-frame.c: White space.
2198 * dwarf2expr.c: White space.
2199 * dwarf2-frame.c: White space.
2200 * dwarf2loc.c: White space.
2201 * dwarf2read.c: White space.
2202
2203 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
2204
2205 PR python/11482
2206
2207 * python/py-value.c (valpy_hash): New function.
2208 (value_object_type): Register valpy_hash.
2209
2210 2010-05-14 Hui Zhu <teawater@gmail.com>
2211 Michael Snyder <msnyder@vmware.com>
2212
2213 * linux-fork.c (gdbthread.h): New include.
2214 (fork_info): Add parent_ptid.
2215 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
2216 functions.
2217 (delete_checkpoint_command): Call inferior_call_waitpid.
2218 (checkpoint_command): Set parent_ptid.
2219
2220 2010-05-13 Michael Snyder <msnyder@vmware.com>
2221
2222 * dictionary.c: Re-indent to GNU coding standard.
2223
2224 * charset.c: White space.
2225 * c-lang.c: White space.
2226 * cli-out.c: White space.
2227 * coffread.c: White space.
2228 * complaints.c: White space.
2229 * completer.c: White space.
2230 * corefile.c: White space.
2231 * corelow.c: White space.
2232 * cp-abi.c: White space.
2233 * cp-namespace.c: White space.
2234 * cp-support.c: White space.
2235 * cp-valprint.c: White space.
2236 * c-typeprint.c: White space.
2237 * c-valprint.c: White space.
2238 * blockframe.c: White space.
2239 * breakpoint.c: White space.
2240 * buildsym.c: White space.
2241 * blockframe.c: White space.
2242 * bcache.c: White space.
2243 * gdbarch.sh: White space, add blank lines.
2244 * arch-utils.c: Ditto.
2245 * gdbarch.c: Regenerate.
2246 * frame.c: White space, add blank lines.
2247 * stack.c: White space, add blank lines.
2248 (initialize_stack): Remove long-dead code.
2249
2250 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2251
2252 Code cleanup.
2253 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
2254 (locexpr_read_variable, loclist_read_variable): Update the callers.
2255
2256 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2257
2258 Code cleanup.
2259 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
2260 Remove check of NULL returned by tag_type_to_type.
2261 (die_containing_type): Remove variable type. Remove type_die variable
2262 initialization. Remove check of NULL returned by tag_type_to_type.
2263
2264 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
2265
2266 PR exp/11530.
2267 * gdbtypes.c (lookup_struct_elt_type): Also lookup
2268 names of unnamed structures or unions.
2269
2270 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
2271
2272 * procfs.c (proc_watchpoint_address): New function.
2273 (procfs_stopped_by_watchpoint): Remove useless check after
2274 find_procinfo_or_die call.
2275 (procfs_stopped_data_address): New function.
2276 (procfs_use_watchpoints): Register new watchpoint related function.
2277
2278 2010-05-11 Tom Tromey <tromey@redhat.com>
2279
2280 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
2281
2282 2010-05-10 Michael Snyder <msnyder@vmware.com>
2283
2284 * utils.c: White space cleanup.
2285
2286 2010-05-10 Tom Tromey <tromey@redhat.com>
2287
2288 * eval.c (ptrmath_type_p): Add 'lang' argument.
2289 (evaluate_subexp_standard): Update.
2290 (evaluate_subexp_with_coercion): Update.
2291 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
2292
2293 2010-05-10 Michael Snyder <msnyder@vmware.com>
2294
2295 * utils.c (do_fclose_cleanup) Restore local variable.
2296
2297 2010-05-09 Doug Evans <dje@google.com>
2298
2299 * record.c (init_record_core_ops): Rename record_core to record-core.
2300
2301 2010-05-08 Joel Brobecker <brobecker@adacore.com>
2302
2303 Implement task switching on pa-hpux.
2304 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
2305 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
2306
2307 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
2308
2309 * valops.c (find_overload_match): Add missing i18n markup.
2310
2311 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
2312
2313 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
2314
2315 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2316
2317 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
2318 list for the obconcat call.
2319 * mdebugread.c (parse_symbol): Likewise.
2320 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
2321 Likewise.
2322 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
2323 New variable ap. Remove variables len and val.
2324 * symfile.h (obconcat): Likewise for the prototype.
2325
2326 2010-05-07 Michael Snyder <msnyder@vmware.com>
2327
2328 * python/python.c (execute_gdb_command): Remove unused variables.
2329 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
2330 * python/py-breakpoint.c (gdbpy_breakpoint_created):
2331 Remove unused variable.
2332 * python/py-cmd.c (cmdpy_function): Remove unused variable.
2333 (cmdpy_completer): Remove unused variable.
2334 * python/py-frame.c (frapy_find_sal): Remove unused variable.
2335 * python/py-function.c (fnpy_call): Remove unused variable.
2336 * python/py-objfile.c (objfile_to_objfile_object):
2337 Remove unused variable.
2338 * python/py-param.c (parmpy_init): Remove unused variable.
2339 * python/py-prettyprint.c (apply_varobj_pretty_printer):
2340 Remove unused variable.
2341 (gdbpy_default_visualizer): Remove unused variable.
2342 * python/py-progspace.c (pspace_to_pspace_object):
2343 Remove unused variable.
2344 * python/py-symtab.c (symtab_and_line_to_sal_object):
2345 Remove unused variable.
2346 * python/py-type.c (typy_template_argument):
2347 Remove unused variable.
2348 * python/py-value.c (valpy_string): Remove unused variable.
2349 (convert_value_from_python): Remove unused variables.
2350
2351 2010-05-07 Michael Snyder <msnyder@vmware.com>
2352
2353 * valops.c (value_cast_pointers): Restore unused variable 'type1',
2354 and use it to compute variable 't1'.
2355
2356 2010-05-07 Joel Brobecker <brobecker@adacore.com>
2357
2358 * ada-lang.c (assign_aggregate): Remove unused variable.
2359
2360 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
2361
2362 PR C++/7943:
2363 * valops.c (find_overload_match): Handle fsym == NULL case.
2364 Add int no_adl argument.
2365 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
2366 when appropriate.
2367 Add int no_adl argument.
2368 (find_oload_champ_namespace): Add int no_adl argument.
2369 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
2370 expression.
2371 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
2372 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
2373 Evaluate arguments and use them to perform ADL lookup.
2374 Pass no_adl argument to find_overload_match.
2375 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
2376 * cp-support.h: Added prototype for
2377 make_symbol_overload_list_namespace.
2378 * cp-support.c (make_symbol_overload_list_namespace): New function.
2379 (make_symbol_overload_list_adl_namespace): New function.
2380 (make_symbol_overload_list_adl): New function.
2381 (make_symbol_overload_list_using): Moved code to add function to
2382 overload set to make_symbol_overload_list_namespace.
2383 * c-exp.y: create UNKNOWN_CPP_NAME token.
2384 Add parse rule for ADL functions.
2385 (classify_name): Recognize an UNKNOWN_CPP_NAME.
2386
2387 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
2390 sentinel.
2391
2392 2010-05-07 Joel Brobecker <brobecker@adacore.com>
2393
2394 Implement task switching on solaris targets.
2395 * sol-thread.c (thread_db_find_thread_from_tid)
2396 (sol_get_ada_task_ptid): New functions.
2397 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2398
2399 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2400
2401 * remote.c (remote_query_supported_append): Use reconcat.
2402 (remote_query_supported): Install a cleanup. Use reconcat.
2403
2404 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2405
2406 * gdbarch.sh (qsupported): Delete.
2407 * gdbarch.h, gdbarch.c: Regenerate.
2408 * remote.c (remote_query_supported): Remove use of
2409 gdbarch_qsupported.
2410
2411 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2412
2413 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
2414 function.
2415
2416 2010-05-06 Michael Snyder <msnyder@vmware.com>
2417
2418 * xml-support.c (xinclude_start_include): Delete unused variable.
2419 (xml_process_xincludes): Delete unused variable.
2420 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
2421 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
2422 (tdesc_find_arch_register): Delete unused variable.
2423 (tdesc_use_registers): Delete unused variable.
2424 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
2425 * inferior.c (print_inferior): Delete unused variable.
2426 * record.c (record_open_1): Delete unused variable.
2427 (record_restore): Delete unused variable.
2428 (cmd_record_save): Delete unused variable.
2429 * gcore.c (derive_heap_segment): Delete unused variable.
2430 (objfile_find_memory_regions): Use unused variable.
2431 * jit.c (jit_inferior_init): Delete unused variable.
2432 * progspace.c (clone_program_space): Delete unused variable.
2433 (pspace_empty_p): Delete unused variable.
2434
2435 * frame-unwind.c (frame_unwind_find_by_frame):
2436 Delete unused variable.
2437 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
2438 * cp-support.c (mangled_name_to_comp): Delete unused variable.
2439 (method_name_from_physname): Delete unused variable.
2440 (cp_func_name): Delete unused variable.
2441 (cp_validate_operator): Delete unused variable.
2442 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
2443 Delete unused variable.
2444 * trad-frame.c (trad_frame_get_prev_register):
2445 Delete unused variable.
2446 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
2447
2448 * serial.c (serial_for_fd): Delete unused variable.
2449 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
2450 * top.c (execute_command): Delete unused variable.
2451 (init_main): Delete unused variable.
2452 * utils.c (do_fclose_cleanup): Delete unused variable.
2453 (do_all_inferior_continuations): Delete unused variable.
2454 (initialize_utils): Delete unused variable.
2455 (internal_problem_mode): Delete unused global.
2456 * frame.c (get_prev_frame): Delete unused global.
2457 (get_frame_locals_address): Delete unused global.
2458 (get_frame_args_address): Delete unused global.
2459
2460 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
2461 (pascal_type_print_varspec_prefix): Delete unused variable.
2462 * f-typeprint.c (f_type_print_base): Delete unused variable.
2463 (f_type_print_varspec_suffix): Delete unused variable.
2464 * m2-typeprint.c (m2_print_type): Delete unused variable.
2465 (m2_long_set): Delete unused variable.
2466 * ada-valprint.c (ada_val_print_1): Delete unused variable.
2467 * d-valprint.c (dynamic_array_type): Delete unused variable.
2468 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
2469 Delete unused variable.
2470 (f77_create_arrayprint_offset_tbl): Delete unused variable.
2471 * m2-valprint.c (m2_val_print): Delete unused variable.
2472
2473 * ui-out.c (ui_out_field_int): Delete unused variable.
2474 (ui_out_field_fmt_int): Delete unused variable.
2475 * varobj.c (varobj_list_children): Delete unused variable.
2476 (varobj_set_value): Delete unused variable.
2477 (install_new_value_visualizer): Delete unused variable.
2478 (varobj_set_visualizer): Delete unused variable.
2479 (varobj_update): Delete unused variable.
2480 (varobj_editable_p): Delete unused variable.
2481 (c_value_of_root): Delete unused variable.
2482 (cplus_describe_child): Delete unused variable.
2483
2484 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2485 (decode_constrained_packed_array_type): Delete unused variable.
2486 (add_defn_to_vec): Delete unused variable.
2487 (symbol_completion_match): Delete unused variable.
2488 (value_tag_from_contents_and_address): Delete unused variable.
2489 (ada_evaluate_subexp): Delete unused variable.
2490 * c-lang.c (classify_type): Delete unused variable.
2491 * f-lang.c (f_printstr): Delete unused variable.
2492 * objc-lang.c (objc_printstr): Delete unused variable.
2493 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2494 * jv-lang.c (type_from_class): ifdef unused variable.
2495 (java_class_name_from_physname): Delete unused variable.
2496 * m2-lang.c (m2_printstr): Delete unused variable.
2497
2498 * objfiles.c (objfile_relocate): Delete unused variable.
2499 * maint.c (_initialize_maint_cmds): Delete unused variable.
2500 * demangle.c (_initialize_demangler): Delete unused variable.
2501 * corefile.c (reopen_exec_file): Delete unused variable.
2502 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2503 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2504
2505 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2506 * memattr.c (mem_delete): Delete unused variable.
2507 (invalidate_target_mem_regions): Delete unused variable.
2508 * mem-break.c (default_memory_insert_breakpoint):
2509 Delete unused variable.
2510 * target.c (target_get_osdata): Delete unused variable.
2511 * parse.c (length_of_subexp): Delete unused variable.
2512 (prefixify_subexp): Delete unused variable.
2513 (exp_iterate): Delete unused variable.
2514 * reverse.c (delete_bookmark_command): Delete unused variable.
2515
2516 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2517 * macroexp.c (gather_arguments): Delete unused variable.
2518 (substitute_args): Delete unused variable.
2519 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2520 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2521 (_initialize_gdbarch): Delete unused variable.
2522 * gdbarch.c, gdbarch.h: Regenerate.
2523 * arch-utils.c (initialize_current_architecture):
2524 Delete unused variable.
2525 (_initialize_gdbarch_utils): Delete unused variable.
2526 * gdbtypes.c (make_cv_type): Delete unused variable.
2527 (make_type_with_address_space): Delete unused variable.
2528
2529 * linespec.c (decode_compound): Delete unused variable.
2530 * dictionary.c (iterator_next_hashed): Delete unused variable.
2531 * infcall.c (call_function_by_hand): Delete unused variable.
2532 * infcmd.c (step_1): Delete unused variable.
2533 (registers_info): Delete unused variable.
2534 (attach_command): Delete unused variable.
2535 * infrun.c (follow_exec): Delete unused variable.
2536 (handle_step_into_function_backwards): Delete unused variable.
2537 (_initialize_infrun): Delete unused variable.
2538 * stack.c (parse_frame_specification_1): Delete unused variable.
2539 (frame_info): Delete unused variable.
2540 (backtrace_command_1): Delete unused variable.
2541 (catch_info): Delete unused variable.
2542
2543 * eval.c (evaluate_subexp_standard): Delete unused variable.
2544 * valops.c (value_cast_pointers): Delete unused variable.
2545 (value_dynamic_cast): Delete unused variable.
2546 (value_array): Delete unused variable.
2547 (find_overload_match): Delete unused variable.
2548 * valarith.c (value_subscript): Delete unused variable.
2549 (value_binop): Delete unused variable.
2550 * valprint.c (_initialize_valprint): Delete unused variable.
2551 * printcmd.c (print_command_1): Delete unused variable.
2552 (address_info): Delete unused variable.
2553 (printf_command): Delete unused variable.
2554
2555 * auxv.c (target_auxv_search): Delete unused variable.
2556 * blockframe.c (get_frame_block): Delete unused variable.
2557 * regcache.c (regcache_cpy): Delete unused variable.
2558 (regcache_cpy_no_passthrough): Delete unused variable.
2559 * charset.c (wchar_iterate): Delete unused variable.
2560 (find_charset_names): Delete unused variable.
2561 (_initialize_charset): Delete unused variable.
2562 * disasm.c (do_mixed_source_and_assembly):
2563 Delete unused variable.
2564 * source.c (set_default_source_symtab_and_line):
2565 Delete unused variable.
2566 (set_substitute_path_command): Delete unused variable.
2567 * value.c (preserve_values): Delete unused variable.
2568 (value_from_double): Delete unused variable.
2569
2570 2010-05-05 Michael Snyder <msnyder@vmware.com>
2571
2572 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2573 (find_last_source_symtab_from_partial): Delete unused variable.
2574 * symfile.c (place_section): Delete unused variable.
2575 (default_symfile_offsets): Delete unused variable.
2576 (get_debug_link_info): Delete unused variable.
2577 (find_separate_debug_file_by_debuglink): Delete unused variable.
2578 (add_symbol_file_command): Delete unused variable.
2579 (symfile_find_segment_sections): Delete unused variable.
2580 * symmisc.c (free_symtab): Delete unused variable.
2581 (dump_symtab_1): Delete unused variable.
2582 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2583 (find_pc_sect_symtab): Delete unused variable.
2584 (skip_prologue_using_lineinfo): Delete unused variable.
2585 (sources_info): Delete unused variable.
2586 (completion_list_add_name): Delete unused variable.
2587 (expand_line_sal): Delete unused variable.
2588
2589 * breakpoint.c (validate_commands_for_breakpoint):
2590 Delete unused variables.
2591 (insert_catchpoint): Delete unused variable.
2592 (update_watchpoint): Delete unused variable.
2593 (insert_bp_location): Delete unused variable.
2594 (insert_breakpoint_locations): Delete unused variable.
2595 (remove_breakpoint_1): Delete unused variable.
2596 (software_breakpoint_inserted_here_p): Delete unused variable.
2597 (watchpoints_triggered): Delete unused variable.
2598 (bpstat_check_watchpoint): Delete unused variable.
2599 (bpstat_stop_status): Delete unused variable.
2600 (print_one_breakpoint_location): Delete unused variable.
2601 (allocate_bp_location): Delete unused variable.
2602 (create_breakpoint): Delete unused variable.
2603 (watch_command_1): Delete unused variable.
2604 (catch_exception_command_1): Delete unused variable.
2605 (catch_ada_exception_command): Delete unused variable.
2606 (delete_breakpoint): Delete unused variable.
2607 (breakpoint_re_set_one): Delete unused variable.
2608 (do_enable_breakpoint): Delete unused variable.
2609
2610 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2611
2612 * amd64-tdep.c: Include disasm.h.
2613 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2614 (amd64_insn_length): Moved to disasm.c and renamed.
2615 (fixup_riprel): Adjust.
2616 * disasm.c (do_ui_file_delete): New.
2617 (gdb_insn_length): New.
2618 (gdb_buffered_insn_length_fprintf)
2619 (gdb_buffered_insn_length_init_dis)
2620 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2621 renamed.
2622 * disasm.h (gdb_insn_length): Declare.
2623 (gdb_buffered_insn_length): Declare.
2624
2625 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2626
2627 * remote.c (clear_threads_parsing_context): New.
2628 (remote_threads_info): Delete unused null_cleanup. Install a
2629 cleanup to clear the threads_parsing_context in case parsing
2630 throws.
2631
2632 2010-05-05 Michael Snyder <msnyder@vmware.com>
2633
2634 * c-exp.y (parse_string_or_char): Delete unused variable.
2635 (c_lex): Delete unused variable.
2636 * cp-name-parser.y (cpname_lex): Delete unused variable.
2637 * ada-exp.y (find_primitive_type): Delete unused variable.
2638 (write_var_or_type): Delete unused variable.
2639 * jv-exp.y (java_parse): Delete unused variable.
2640 (push_expression_name): Delete unused variable.
2641 * p-exp.y (pascal_lex): Delete unused variable.
2642
2643 2010-05-05 Pedro Alves <pedro@codesourcery.com>
2644
2645 * remote.c (remote_threads_info): Really revert previous previous
2646 change.
2647
2648 2010-05-05 Michael Snyder <msnyder@vmware.com>
2649
2650 * elfread.c (elf_symtab_read): Delete unused variable.
2651 (find_separate_debug_file_by_buildid): Delete unused variables.
2652 (elf_symfile_read): Delete unused variable.
2653
2654 * coffread.c (coff_symfile_read): Delete unused variables.
2655
2656 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2657 (read_pe_exported_syms): Delete unused variable.
2658
2659 * stabsread.c (define_symbol): Delete unused variable.
2660
2661 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2662 (process_psymtab_comp_unit): Delete unused variable.
2663 (dwarf2_build_psymtabs_hard): Delete unused variable.
2664 (load_partial_comp_unit): Delete unused variable.
2665 (create_all_comp_units): Delete unused variable.
2666 (scan_partial_symbols): Delete unused variable.
2667 (add_partial_symbol): Delete unused variable.
2668 (add_partial_namespace): Delete unused variable.
2669 (add_partial_enumeration): Delete unused variable.
2670 (load_full_comp_unit): Delete unused variable.
2671 (process_full_comp_unit): Delete unused variable.
2672 (read_file_scope): Delete unused variable.
2673 (read_type_unit_scope): Delete unused variable.
2674 (process_structure_scope): Delete unused variable.
2675 (process_enumeration_scope): Delete unused variable.
2676 (read_tag_ptr_to_member_type): Delete unused variable.
2677 (read_typedef): Delete unused variable.
2678 (read_partial_die): Delete unused variable.
2679 (decode_locdesc): Delete unused variable.
2680 (zeroed_partial_die): Delete unused global variable.
2681
2682 * tui/tui-interp.c (_initialize_tui_interp):
2683 Delete unused variable.
2684 * tui/tui-regs.c tui_display_registers_from):
2685 Delete unused variable.
2686 (tui_check_register_values): Delete unused variable.
2687 (tui_register_format): Delete unused variable.
2688 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2689 * tui/tui-windata.c (tui_display_data_from_line):
2690 Delete unused variables.
2691 (tui_vertical_data_scroll): Delete unused variables.
2692
2693 2010-05-05 Michael Snyder <msnyder@vmware.com>
2694
2695 * remote.c (remote_threads_info): Revert questionable part of
2696 the previous change.
2697
2698 2010-05-05 Michael Snyder <msnyder@vmware.com>
2699
2700 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2701 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2702 (mi_cmd_var_list_children): Delete unused variable.
2703 (varobj_update_one): Delete unused variable.
2704 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2705 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2706 Delete unused variable.
2707 (mi_cmd_stack_list_variables): Delete unused variable.
2708 (list_args_or_locals): Delete unused variable.
2709 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2710 Delete unused variables.
2711 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2712 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2713 Delete unused variable.
2714 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2715 (mi_cmd_interpreter_exec): Delete unused variable.
2716 (mi_on_normal_stop): Delete unused variable.
2717 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2718 (print_one_inferior): Delete unused variables.
2719 (mi_execute_command): Delete unused variable.
2720 (mi_cmd_execute): Delete unused variable.
2721 (timestamp): Delete unused variable.
2722
2723 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2724 (restore_binary_file): Delete unused variable.
2725 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2726 * cli/cli-script.c (define_command): Delete unused variables.
2727 (recurse_read_control_structure): Delete unused variable.
2728 (script_from_file): Delete unused variable.
2729 * cli/cli-cmds.c (complete_command): Delete unused variable.
2730 (disassemble_command): Delete unused variable.
2731
2732 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2733 * tracepoint.c (delete_trace_variable_command):
2734 Delete unused variables.
2735 (encode_actions_1): Delete unused variables.
2736 (start_tracing): Delete unused variable.
2737 (trace_status_mi): Delete unused variable.
2738 (tfind_1): Delete unused variable.
2739 (trace_find_pc_command): Delete unused variable.
2740 (trace_find_line_command): Delete unused variables.
2741 (trace_find_range_command): Delete unused variables.
2742 (trace_find_outside_command): Delete unused variables.
2743 (parse_tracepoint_definition): Delete unused variables.
2744 (tfile_fetch_registers): Delete unused variable.
2745
2746 * dcache.c (dcache_init): Delete unused variable.
2747 (dcache_info): Delete unused variable.
2748
2749 * remote.c (remote_threads_info): Delete unused variable.
2750 (process_stop_reply) :Delete unused variable.
2751 (remote_get_trace_status): Delete unused variables.
2752
2753 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2754 (thread_from_lwp): Delete unused variable.
2755 (enable_thread_event_reporting): Delete unused variable.
2756 (check_for_thread_db): Delete unused variables.
2757 (thread_db_find_new_threads_2): Delete unused variable.
2758
2759 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2760 (checkpoint_command): Delete unused variable.
2761 (linux_fork_context): Delete unused variables.
2762
2763 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2764 (linux_tracefork_child): Delete unused variable.
2765 (linux_child_follow_fork): Delete unused variable.
2766 (linux_nat_detach): Delete unused variable.
2767 (linux_handle_extended_wait): Delete unused variable.
2768 (linux_nat_has_pending_sigint): Delete unused variable.
2769 (linux_nat_find_memory_regions): Delete unused variable.
2770 (linux_nat_make_corefile_notes): Delete unused variables.
2771 (linux_nat_info_proc_cmd): Delete unused variable.
2772 (linux_proc_pending_signals): Delete unused variable.
2773 (linux_nat_stop_lwp): Delete unused variables.
2774 (_initialize_linux_nat): Delete unused variable.
2775
2776 * ser-pipe.c (pipe_ops): Delete unused global variable.
2777
2778 * linux-record.c (record_linux_system_call):
2779 Delete unused variables.
2780
2781 * corelow.c (core_xfer_partial): Delete unused variables.
2782
2783 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2784 (svr4_solib_create_inferior_hook): Add ifdef around
2785 conditionally-used variable declarations.
2786
2787 * solib.c (solib_find): Delete unused variable.
2788 (free_so_symbols): Delete unused variable.
2789 (info_sharedlibrary_command): Delete unused variable.
2790 (reload_shared_libraries_1): Delete unused variable.
2791 (_initialize_solib): Delete unused variable.
2792
2793 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2794 (i386_collect_xstateregset): Delete unused variable.
2795 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2796
2797 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2798 Delete unused variable 'type'.
2799
2800 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2801
2802 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2803 ada-lang.c: Remove comment mentioning these macros.
2804 * m2-exp.y: Delete commented out code.
2805
2806 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2807
2808 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2809 for array types.
2810 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2811
2812 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2813
2814 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2815 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2816 ATTRIBUTE_UNUSED.
2817 (cleanup_kernel_helper_return): Likewise.
2818 * arm-tdep.c (copy_unmodified): Likewise.
2819 (copy_preload): Likewise.
2820 (copy_copro_load_store): Likewise.
2821 (cleanup_branch): Likewise.
2822 (copy_b_bl_blx): Likewise.
2823 (copy_bx_blx_reg): Likewise.
2824 (copy_alu_imm): Likewise.
2825 (copy_alu_reg): Likewise.
2826 (copy_alu_shifted_reg): Likewise.
2827 (cleanup_load): Likewise.
2828 (cleanup_store): Likewise.
2829 (cleanup_block_load_pc): Likewise.
2830 (cleanup_svc): Likewise.
2831 (copy_undef): Likewise.
2832 (copy_unpred): Likewise.
2833 * remote.c (register_remote_support_xml): Likewise.
2834
2835 2010-05-05 Hui Zhu <teawater@gmail.com>
2836
2837 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2838
2839 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2840
2841 * remote.c (register_remote_support_xml)
2842 (remote_query_supported_append, remote_query_supported): Add cast
2843 to NULL used as sentinel.
2844 * tracepoint.c (tvariables_info_1): Likewise.
2845 * utils.c (add_internal_problem_command): Likewise.
2846
2847 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2848
2849 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2850 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2851 registers gracefully.
2852
2853 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2854
2855 * exec.c (print_section_info): Display entry point without arch
2856 specific parts.
2857
2858 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2859
2860 PR exp/11349.
2861 * printcmd.c (x_command): Only dereference once implicitly for
2862 TYPE_CODE_REF.
2863
2864 2010-05-03 Doug Evans <dje@google.com>
2865
2866 * event-loop.c (gdb_timer): Delete unused global.
2867 (create_timer): Update.
2868
2869 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2872 CURRENT->DECLARATION case.
2873 * cp-support.h (struct using_direct): Provide extended comment.
2874
2875 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2876
2877 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2878 HPPABSD_SIZEOF_GREGS.
2879 (HPPAOBSD_SIZEOF_FPREGS): New define.
2880 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2881 (hppaobsd_supply_fpregset): New function.
2882 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2883 (hppaobsd_fpregset): New variable.
2884 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2885 (_initialize_hppabsd_tdep): Remove spurious blank line.
2886
2887 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2888
2889 PR pascal/11349.
2890 * p-valprint.c (pascal_value_print): Always dereference a value with
2891 type code TYPE_CODE_REF.
2892
2893 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2894
2895 * remote.c (remote_notice_signals): New.
2896 (remote_start_remote): In non-stop mode, update the remote end on
2897 which signals it can silently pass.
2898 (init_remote_ops): Install remote_notice_signals.
2899
2900 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2901
2902 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2903 * command.h (error_no_arg): ... here. Remove NORETURN, change
2904 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2905 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2906 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2907 (internal_verror, internal_error, nomem): Remove NORETURN, change
2908 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2909 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2910 (throw_vfatal, throw_error): Remove NORETURN.
2911 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2912 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2913 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2914 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2915 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2916 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2917 NORETURN.
2918 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2919 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2920 ATTRIBUTE_NORETURN.
2921 * target.c (tcomplain): Likewise.
2922 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2923 ATTRIBUTE_NORETURN.
2924 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2925 (internal_error, perror_with_name, nomem): Remove NORETURN.
2926 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2927 ATTRIBUTE_NORETURN.
2928
2929 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
2931 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2932 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2933 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2934 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2935 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2936 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2937 * complaints.h (complaint, internal_complaint): Likewise.
2938 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2939 (ATTR_FORMAT): Remove.
2940 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2941 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2942 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2943 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2944 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2945 (internal_error, internal_vwarning, internal_warning, warning)
2946 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2947 * disasm.c (fprintf_disasm): Likewise.
2948 * exceptions.c (throw_it): Likewise.
2949 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2950 (throw_error): Likewise.
2951 * language.h (type_error, range_error): Likewise.
2952 * linespec.c (cplusplus_error): Likewise.
2953 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2954 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2955 * monitor.c (monitor_debug): Likewise.
2956 * parser-defs.h (parser_fprintf): Likewise.
2957 * serial.h (serial_printf): Likewise.
2958 * tui/tui-hooks.c (tui_query_hook): Likewise.
2959 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2960 (uo_message): Likewise.
2961 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2962 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2963 Likewise.
2964 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2965
2966 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2967
2968 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2969 (cli_table_header, cli_begin, cli_end, cli_field_int)
2970 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2971 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2972 Delete forward declarations.
2973 (cli_ui_out_impl): Move below the callbacks.
2974 (_initialize_cli_out): Delete.
2975
2976 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2977
2978 * README: Use consistent `GDB' and `GDBserver' spellings.
2979
2980 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2981
2982 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2983
2984 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2985
2986 * infrun.c (prepare_for_detach): In non-stop, context switch to
2987 the thread that got the event before handling the event.
2988
2989 2010-04-30 Tom Tromey <tromey@redhat.com>
2990
2991 * symtab.c (symbol_set_names): Fix typo.
2992
2993 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2994
2995 * python/py-param.c (parm_constants): Avoid ARI warning
2996 by adding ARI comment.
2997 (parmpy_init): Likewise.
2998
2999 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3000
3001 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
3002 and created type for re-use.
3003
3004 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
3005
3006 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
3007
3008 2010-04-29 Doug Evans <dje@google.com>
3009
3010 * ser-base.h (reschedule): Delete prototype.
3011 * ser-base.c (reschedule): Make static.
3012
3013 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3014
3015 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
3016 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
3017 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
3018 EABI.
3019 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
3020 use.
3021
3022 2010-04-29 Pedro Alves <pedro@codesourcery.com>
3023
3024 PR gdb/11557
3025
3026 * regcache.c (registers_changed): Rename to ...
3027 (registers_changed_ptid): ... this, and only delete register cache
3028 entries matching the ptid filter argument.
3029 (registers_changed): Reimplement on top of registers_changed_ptid.
3030 * regcache.h (registers_changed_ptid): Declare.
3031 * target.c (target_resume): Flush register caches.
3032
3033 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
3034 Tom Tromey <tromey@redhat.com>
3035 Thiago Jung Bauermann <bauerman@br.ibm.com>
3036
3037 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
3038 (SUBDIR_PYTHON_SRCS): Likewise.
3039 (py-parameter.o): New rule.
3040 * python/py-parameter.c: New file.
3041 * python/python-internal.h (gdbpy_initialize_parameter)
3042 (gdbpy_parameter, gdbpy_parameter_value)
3043 (gdbpy_parse_command_name): Declare.
3044 * python/py-cmd.c (parse_command_name): Rename to
3045 gdbpy_parse_command_name.
3046 (gdbpy_parse_command_name): Accept a starting list parameter and
3047 use over cmdlist.
3048 (cmdpy_init): Use gdbpy_parse_command_name.
3049 * python/python.c (parameter_to_python): Rename to
3050 gdbpy_parameter_to_python. Accept enum var_types and value.
3051 (gdbpy_parameter): Use gdbpy_parameter_value.
3052 (_initialize_python): Call gdbpy_initialize_parameters.
3053
3054 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3055
3056 * MAINTAINERS: Add myself for write after approval privileges.
3057
3058 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
3059
3060 D language support.
3061 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
3062 (COMMON_OBS): Add d-lang.o d-valprint.o.
3063 (HFILES_NO_SRCDIR): Add d-lang.h.
3064 * NEWS: Mention D language support.
3065 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
3066 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
3067 * d-lang.c: New file.
3068 * d-lang.h: New file.
3069 * d-valprint.c: New file.
3070 * defs.h (enum language): Add language_d.
3071 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
3072 * language.c (binop_result_type, integral_type, character_type)
3073 (string_type, boolean_type, structured_type): Add language_d.
3074 * symfile.c (init_filename_language_table): Add language_d.
3075 * symtab.c: Include d-lang.h.
3076 (symbol_init_language_specific, symbol_find_demangled_name)
3077 (symbol_natural_name, lookup_symbol_in_language)
3078 (symbol_demangled_name, symbol_matches_domain): Add language_d.
3079
3080 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3081
3082 * solib-svr4.c (solib_svr4_r_map): Expand function description.
3083
3084 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3085
3086 * symfile.c (init_filename_language_table): Register .dg files
3087 with language_ada.
3088
3089 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3090
3091 * gdbtypes.h (struct main_type): Expand comment about target_type
3092 field.
3093
3094 2010-04-27 Pedro Alves <pedro@codesourcery.com>
3095 Tristan Gingold <gingold@adacore.com>
3096
3097 * symfile.c (reread_symbols): Also search for file in libraries.
3098 Update comment.
3099
3100 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3101
3102 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
3103 in terms of configuration.
3104
3105 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3106
3107 * objfiles.c: Include solist.h.
3108 (free_all_objfiles): New variable so. Check stale solist objfiles.
3109 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
3110 and no_shared_libraries.
3111
3112 2010-04-27 Joel Brobecker <brobecker@adacore.com>
3113
3114 ARI warning fix.
3115 * python/py-auto-load.c (source_section_scripts): Remove trailing
3116 new-line in i18n string.
3117
3118 2010-04-26 Doug Evans <dje@google.com>
3119
3120 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
3121
3122 2010-04-26 Tom Tromey <tromey@redhat.com>
3123
3124 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
3125 command list.
3126
3127 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3128
3129 Removal of config/i386/nm-i386sol2.h native configuration file.
3130 * config/i386/nm-i386sol2.h: Remove file.
3131 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
3132 * config/i386/sol2-64.mh: Idem.
3133 * config/djgpp/fnchange.lst: Remove reference to that file.
3134 * Makefile.in (HFILES_NO_SRCDIR): Idem.
3135
3136 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
3137
3138 PR breakpoints/11531.
3139 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
3140 macro definition and related comment.
3141 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
3142 (resume): Remove code and comment related to this macro.
3143
3144 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
3147 Fix whitespace.
3148
3149 2010-04-24 Pedro Alves <pedro@codesourcery.com>
3150
3151 * defs.h: Adjust comment.
3152 * filesystem.h, filesystem.c: New files.
3153 * Makefile.in (SFILES): Add filesystem.c.
3154 (COMMON_OBS): Add filesystem.o.
3155 * solib.c (solib_find): Handle DOS-based filesystems. Handle
3156 different target and host path flavours.
3157 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3158 has_dos_based_file_system on the gdbarch.
3159 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
3160 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
3161 * i386-tdep.c (i386_go32_init_abi): Ditto.
3162 * gdbarch.sh (has_dos_based_file_system): New.
3163 * gdbarch.h, gdbarch.c: Regenerate.
3164 * NEWS: Mention improved support for remote targets with DOS-based
3165 filesystems. Mention new `set/show target-file-system-kind'
3166 commands.
3167
3168 2010-04-23 Stan Shebs <stan@codesourcery.com>
3169
3170 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
3171 comments.
3172 (struct agent_reqs): Remove.
3173 (ax_reg_mask): Declare.
3174 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
3175 (free_agent_expr): Free reg_mask.
3176 (ax_print): Add scope and register mask info.
3177 (ax_reqs): Remove agent_reqs argument, use agent expression
3178 fields, and move part of register mask computation to...
3179 (ax_reg_mask): New function.
3180 * ax-gdb.c (gen_trace_static_fields): Call it.
3181 (gen_traced_pop): Ditto.
3182 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
3183 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
3184 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
3185 (gen_eval_for_expr): Ditto, and require an rvalue.
3186 (agent_command): Call ax_reqs.
3187 (agent_eval_command): Ditto.
3188 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
3189 (validate_action_line): Ditto.
3190 (collect_symbol): Ditto.
3191 (encode_actions_1): Ditto.
3192
3193 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
3194 Paul Pluzhnikov <ppluzhnikov@google.com>
3195 Jan Kratochvil <jan.kratochvil@redhat.com>
3196
3197 Fix deadlock on looped list of loaded shared objects.
3198 * solib-svr4.c (LM_PREV): New function.
3199 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
3200 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
3201 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
3202 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
3203
3204 2010-04-23 Doug Evans <dje@google.com>
3205
3206 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
3207 python.
3208 * configure: Regenerate.
3209 * main.c: #include "python/python.h".
3210 (captured_main): Defer loading auto-loaded scripts until after
3211 local_gdbinit has been sourced.
3212 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
3213 (load_auto_scripts_for_objfile): New function.
3214 (auto_load_new_objfile): Call it.
3215 * python/python.h (gdbpy_global_auto_load): Declare.
3216 (load_auto_scripts_for_objfile): Declare.
3217
3218 Add support for auto-loading scripts from .debug_gdb_scripts section.
3219 * NEWS: Add entry for .debug_gdb_scripts.
3220 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
3221 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
3222 (py-auto-load.o): New rule.
3223 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
3224 * cli/cli-cmds.h (find_and_open_script): Update prototype.
3225 * python/py-auto-load.c: New file.
3226 * python/python-internal.h: #include <stdio.h>.
3227 (set_python_list, show_python_list): Declare.
3228 (gdbpy_initialize_auto_load): Declare.
3229 (source_python_script_for_objfile): Declare.
3230 * python/python.c: Remove #include of observer.h.
3231 (gdbpy_auto_load): Moved to py-auto-load.c.
3232 (GDBPY_AUTO_FILENAME): Ditto.
3233 (gdbpy_new_objfile): Delete.
3234 (source_python_script_for_objfile): New function.
3235 (set_python_list, show_python_list): Make externally visible.
3236 (_initialize_python): Move "auto-load" command to py-auto-load.c
3237 and observer_attach_new_objfile to py-auto-load.c.
3238
3239 2010-04-23 Jerome Guitton <guitton@adacore.com>
3240
3241 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
3242 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
3243 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
3244 New constants.
3245 (alpha_heuristic_analyze_probing_loop): New function.
3246 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
3247 and handle cases when a stack probe loop is generated.
3248 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
3249 (alpha_mdebug_max_frame_size_exceeded): New function.
3250 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
3251 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
3252 Return 0 when the maximum debuggable frame size has been exceeded.
3253
3254 2010-04-23 Joel Brobecker <brobecker@adacore.com>
3255
3256 Fix ARI warning.
3257 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
3258
3259 2010-04-20 Chris Moller <cmoller@redhat.com>
3260
3261 PR 10179
3262
3263 * symtab.c (rbreak_command): Added code to include a filename
3264 specification in the rbreak argument.
3265 * NEWS: Added a brief description of filename-qualified rbreak.
3266
3267 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 Fix crashes on dangling display expressions.
3270 * ada-lang.c (ada_operator_check): New function.
3271 (ada_exp_descriptor): Fill-in the field operator_check.
3272 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
3273 * jv-lang.c (exp_descriptor_java): Likewise.
3274 * m2-lang.c (exp_descriptor_modula2): Likewise.
3275 * scm-lang.c (exp_descriptor_scm): Likewise.
3276 * parse.c (exp_descriptor_standard): Likewise.
3277 (operator_check_standard): New function.
3278 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
3279 * parser-defs.h (struct exp_descriptor): New field operator_check.
3280 (operator_check_standard, exp_uses_objfile): New declarations.
3281 * printcmd.c: Remove the inclusion of solib.h.
3282 (display_uses_solib_p): Remove the function.
3283 (clear_dangling_display_expressions): Call lookup_objfile_from_block
3284 and exp_uses_objfile instead of display_uses_solib_p.
3285 * solist.h (struct so_list) <objfile>: New comment.
3286 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
3287 * symtab.h (lookup_objfile_from_block): New declaration.
3288 (struct general_symbol_info) <obj_section>: Extend the comment.
3289
3290 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3291 Thiago Jung Bauermann <bauerman@br.ibm.com>
3292
3293 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
3294 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
3295 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
3296 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
3297 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
3298 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
3299 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
3300 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
3301 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
3302 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
3303 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
3304 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
3305 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
3306 Define, in case <ptrace.h> doesn't provide it.
3307 (booke_debug_info): New variable.
3308 (max_slots_number): Ditto.
3309 (hw_break_tuple): New struct.
3310 (thread_points): Ditto.
3311 (ppc_threads): New variable.
3312 (PPC_DEBUG_CURRENT_VERSION): New define.
3313 (have_ptrace_new_debug_booke): New function.
3314 (ppc_linux_check_watch_resources): Renamed to ...
3315 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
3316 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
3317 (booke_cmp_hw_point): New function.
3318 (booke_find_thread_points_by_tid): Ditto.
3319 (booke_insert_point): Ditto.
3320 (booke_remove_point): Ditto.
3321 (ppc_linux_insert_hw_breakpoint): Ditto.
3322 (ppc_linux_remove_hw_breakpoint): Ditto.
3323 (get_trigger_type): Ditto.
3324 (ppc_linux_insert_watchpoint): Handle BookE processors.
3325 (ppc_linux_remove_watchpoint): Ditto.
3326 (ppc_linux_new_thread): Ditto.
3327 (ppc_linux_thread_exit): New function..
3328 (ppc_linux_stopped_data_address): Handle BookE processors.
3329 (ppc_linux_watchpoint_addr_within_range): Ditto.
3330 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
3331 to_remove_hw_breakpoint fields of the target operations struct.
3332 Add observe for the thread_exit event.
3333
3334 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3335
3336 * i386-linux-nat.c (regmap): Removed.
3337 (fetch_register): Replace regmap with
3338 i386_linux_gregset_reg_offset.
3339 (store_register): Likewise.
3340 (supply_gregset): Likewise.
3341 (fill_gregset): Likewise.
3342
3343 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
3344 global.
3345
3346 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
3347
3348 2010-04-22 Chris Moller <cmoller@redhat.com>
3349
3350 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3351 method of popping recursion-detection stack with a method based on
3352 obstack_object_size(). (Similar to the PR9167 patch below, but for
3353 the static array obstack rather than the static member obstack.)
3354
3355 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3356
3357 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
3358 (_initialize_amd64_linux_nat): Replace
3359 amd64_linux_gregset64_reg_offset with
3360 amd64_linux_gregset_reg_offset.
3361
3362 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
3363 global.
3364
3365 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
3366
3367 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3368
3369 PR stabs/11479.
3370 * stabsread.c (set_length_in_type_chain): New function.
3371 (read_struct_type): Call set_length_in_type_chain function.
3372 (read_enum_type): Idem.
3373
3374 2010-04-21 Stan Shebs <stan@codesourcery.com>
3375 Nathan Sidwell <nathan@codesourcery.com>
3376
3377 * tracepoint.c (trace_save): Open in binary mode.
3378
3379 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3380
3381 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
3382 fields.
3383 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
3384 builtin_char32 fields.
3385 * printcmd.c (decode_format): Set char size to '\0'
3386 for strings unless explicit size is given.
3387 (print_formatted): Correct calculation of NEXT_ADDRESS
3388 for 16 or 32 bit strings.
3389 (do_examine): Do not force byte size for strings.
3390 Use builtin_char16 and builtin_char32 types to display
3391 16 or 32 bit-wide strings.
3392 (x_command): Set LAST_SIZE to 'b' for string type.
3393
3394 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
3395
3396 PR corefiles/11523
3397 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3398 XCR0 first.
3399
3400 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
3401 there is no .reg-xstate section.
3402 (i386_linux_core_read_description): Check XCR0 first.
3403
3404 2010-04-21 Mike Frysinger <vapier@gentoo.org>
3405
3406 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
3407 for len <= 8.
3408
3409 2010-04-21 Chris Moller <cmoller@redhat.com>
3410
3411 PR 9167
3412 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3413 method of popping recursion-detection stack with a method based on
3414 obstack_object_size().
3415
3416 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3417
3418 PR pascal/11492.
3419 * p-valprint.c (pascal_val_print): Fix default printing of integer
3420 arrays.
3421
3422 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3423
3424 Fix compilation warning on gcc-4.1.2.
3425 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
3426 local variable`pc' to zero.
3427
3428 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3429
3430 Implement thread support with core files on alpha-tru64.
3431 * dec-thread.c (dec_thread_find_new_threads): New function,
3432 extracted from resync_thread_list.
3433 (resync_thread_list): Add OPS parameter. Replace extracted-out
3434 code by call to dec_thread_find_new_threads.
3435 (dec_thread_wait): Update call to resync_thread_list.
3436 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
3437
3438 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3439
3440 * ada-lang.c (value_pointer): New function.
3441 (make_array_descriptor): Call value_pointer to convert addresses to
3442 pointers.
3443
3444 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3445
3446 * rs6000-aix-tdep.c: #include exceptions.h.
3447 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
3448 while reading the memory at ADDR, then ADDR cannot be a function
3449 descriptor.
3450
3451 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3452
3453 * ada-typeprint.c (ada_print_typedef): New function.
3454 * ada-lang.h (ada_print_typedef): Add declaration.
3455 * ada-lang.c (ada_language_defn): set la_print_typdef field
3456 to ada_print_typedef.
3457
3458 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3459
3460 * procfs.c (procfs_address_to_host_pointer): Only define when used.
3461
3462 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3463
3464 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
3465 (iterate_over_mappings): Adjust function profile. Add declaration.
3466 (insert_dbx_link_bpt_in_region, info_mappings_callback):
3467 Adjust accordingly.
3468
3469 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3470
3471 * procfs.c (solib_mappings_callback): Move function up to avoid
3472 a compiler warning.
3473
3474 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3475
3476 * procfs.c (find_signalled_thread, find_stop_signal): Move
3477 these functions down to define them only when used.
3478
3479 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3480
3481 * valprint.c (common_val_print): Fix the value before extracting
3482 its contents.
3483 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3484 * ada-lang.h (ada_to_fixed_value): New function declaration.
3485 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3486 to avoid code duplication and fix a bug in the handling of
3487 fixed types contents.
3488
3489 2010-04-20 Tom Tromey <tromey@redhat.com>
3490
3491 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3492 (read_partial_die): Likewise.
3493 (dwarf_attr_name): Likewise.
3494
3495 2010-04-20 Chris Moller <cmoller@redhat.com>
3496
3497 PR 10867
3498
3499 * cp-valprint.c (global): Adding new static array recursion
3500 detection obstack.
3501 (cp_print_value_fields, cp_print_static_field): Added new static
3502 array recursion detection code.
3503
3504 2010-04-20 Mark Kettenis <kettenis@gnu.org>
3505
3506 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3507 general-purpose register set should be 68 instead of 144.
3508 (i386_linux_sse_regset_sections): Likewise.
3509 (i386_linux_avx_regset_sections): Likewise.
3510
3511 2010-04-20 Stan Shebs <stan@codesourcery.com>
3512 Nathan Sidwell <nathan@codesourcery.com>
3513
3514 * dwarf2loc.c (struct axs_var_loc): New struct.
3515 (dwarf2_tracepoint_var_loc): New function.
3516 (dwarf2_tracepoint_var_access): New function.
3517 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3518 with DW_OP_piece.
3519 (locexpr_describe_location_piece): New function.
3520 (locexpr_describe_location_1): New function.
3521 (locexpr_describe_location): Call it, update signature.
3522 (loclist_describe_location): Rewrite to loop over locations,
3523 update signature.
3524 * symtab.h (struct symbol_computed_ops): Add address to
3525 describe_location arguments, return void.
3526 * printcmd.c (address_info): Get context PC, pass to computed
3527 location description.
3528 * tracepoint.c (scope_info): Ditto.
3529 * ax-gdb.c (trace_kludge): Export.
3530
3531 2010-04-20 Tom Tromey <tromey@redhat.com>
3532
3533 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3534 (struct dwarf2_cie) <segment_size>: New field.
3535 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3536 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3537 DW_FORM_exprloc.
3538 (read_attribute_value): Handle DW_FORM_flag_present,
3539 DW_FORM_sec_offset, DW_FORM_exprloc.
3540 (dump_die_shallow): Likewise.
3541 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3542 (dwarf2_const_value): Handle DW_FORM_exprloc.
3543 (attr_form_is_block): Likewise.
3544 (struct line_header) <maximum_ops_per_instruction>: New field.
3545 (dwarf_decode_line_header): Set new field.
3546 (dwarf_decode_lines): Handle new field.
3547
3548 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3549
3550 * f-exp.y: Add new production to recognize the `logical*8' type.
3551 (LOGICAL_S8_KEYWORD): New token.
3552 * f-lang.c (enum f_primitive_types)
3553 <f_primitive_type_logical_s8>: New field.
3554 (f_language_arch_info): Handling `logical*8' type.
3555 (build_fortran_types): Building `logical*8' type.
3556 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3557
3558 2010-04-19 Doug Evans <dje@google.com>
3559
3560 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3561 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3562 (pipe_close): Ditto.
3563
3564 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3565
3566 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3567
3568 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3569
3570 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3571 type to void function.
3572
3573 2010-04-19 Stan Shebs <stan@codesourcery.com>
3574 Vladimir Prus <vladimir@codesourcery.com>
3575
3576 * tracepoint.c (tfind_1): Add missing newline, report exit from
3577 tfind mode as such.
3578 * target.c (update_current_target): Make default
3579 to_trace_find return -1.
3580
3581 2010-04-19 Mike Frysinger <vapier@gentoo.org>
3582
3583 * objc-lang.c (find_methods): Move symname check up.
3584
3585 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3586
3587 * ada-lang.c (print_recreate_exception)
3588 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3589 not "catch unhandled".
3590
3591 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3592
3593 PR breakpoints/8554.
3594
3595 Implement `save-breakpoints'.
3596
3597 * breakpoint.c (save_cmdlist): New.
3598 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3599 to save_cmdlist.
3600 (print_recreate_catch_fork): New.
3601 (catch_fork_breakpoint_ops): Install it.
3602 (print_recreate_catch_vfork): New.
3603 (catch_vfork_breakpoint_ops): Install it.
3604 (print_recreate_catch_syscall): New.
3605 (catch_syscall_breakpoint_ops): Install it.
3606 (print_recreate_catch_exec): New.
3607 (catch_exec_breakpoint_ops): Install it.
3608 (print_recreate_exception_catchpoint): New.
3609 (gnu_v3_exception_catchpoint_ops): Install it.
3610 (save_breakpoints): New, based on tracepoint_save_command, but
3611 handle all breakpoint types.
3612 (save_breakpoints_command): New.
3613 (tracepoint_save_command): Rename to...
3614 (save_tracepoints_command): ... this, and reimplement using
3615 save_breakpoints.
3616 (save_command): New.
3617 (_initialize_breakpoints): Install the "save" command prefix.
3618 Install the "save breakpoints" command. Make "save-tracepoints" a
3619 deprecated alias for "save tracepoints".
3620 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3621 * ada-lang.c (print_recreate_exception): New.
3622 (print_recreate_catch_exception): New.
3623 (catch_exception_breakpoint_ops): Install it.
3624 (print_recreate_catch_exception_unhandled): New.
3625 (catch_exception_unhandled_breakpoint_ops): Install it.
3626 (print_recreate_catch_assert): New.
3627 (catch_assert_breakpoint_ops): Install it.
3628
3629 * NEWS: Mention the new `save breakpoints' command. Mention the
3630 new `save tracepoints' alias and that `save-tracepoints' is now
3631 deprecated.
3632
3633 2010-04-18 Pedro Alves <pedro@codesourcery.com>
3634
3635 PR tui/9217
3636
3637 * tui/tui-out.c: Include cli-out.h.
3638 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3639 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3640 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3641 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3642 declarations.
3643 (struct ui_out_data): Rename to...
3644 (struct tui_ui_out_data): ... this. Remove `stream' and
3645 `suppress_output' fields, and inherit cli_ui_out_data.
3646 (tui_out_data): New typedef.
3647 (tui_ui_out_impl): Don't initialize fields staticaly.
3648 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3649 (tui_begin, tui_end): Delete.
3650 (tui_field_int): Adjust to delegate most work to the base type.
3651 (tui_field_skip): Delete.
3652 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3653 delegate most work to the base type.
3654 (tui_spaces): Delete.
3655 (tui_text): Adjust to delegate most work to the base type.
3656 (tui_message): Delete.
3657 (tui_wrap_hint): Delete.
3658 (tui_flush): Delete.
3659 (out_field_fmt): Delete.
3660 (field_separator): Delete.
3661 (tui_out_new): Adjust to initialize the base type.
3662 (_initialize_tui_out): Initialize tui_ui_out_impl.
3663 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3664 cli_ui_out_data.
3665 (cli_out_data): Adjust.
3666 (cli_ui_out_impl): Make extern.
3667 (cli_table_header, cli_field_int, cli_field_skip): Use
3668 uo_field_string instead of cli_field_string.
3669 (cli_redirect): Adjust to use cli_out_data.
3670 (cli_out_data_ctor): New.
3671 (cli_out_new): Use it.
3672 * cli-out.h (struct ui_file): Remove forward declaration.
3673 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3674 (cli_ui_out_impl): Declare.
3675 (cli_out_data_ctor): Declare.
3676 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3677 (uo_field_string): No longer static.
3678 (ui_out_data): Change return type to void pointer.
3679 (ui_out_new): Change `data' parameter type to void pointer.
3680 * ui-out.h (struct ui_out_data): Don't forward declare.
3681 (ui_out_data): Change return type to void pointer.
3682 (ui_out_new): Change `data' parameter type to void pointer.
3683 (uo_field_string): Declare.
3684
3685 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3686
3687 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3688 instead of always false.
3689
3690 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3691
3692 PR corefiles/11511
3693 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3694 orig_rax.
3695
3696 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3697
3698 * breakpoint.c (watchpoints_triggered): Use
3699 is_hardware_watchpoint.
3700 (watchpoints_triggered): Ditto.
3701 (bpstat_check_location): Use is_watchpoint and
3702 is_hardware_watchpoint.
3703 (bpstat_check_watchpoint): Use is_watchpoint and
3704 is_hardware_watchpoint.
3705 (bpstat_stop_status): Fix comment.
3706 (user_settable_breakpoint): Use is_watchpoint.
3707 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3708 (disable_watchpoints_before_interactive_call_start): Use
3709 is_watchpoint.
3710 (enable_watchpoints_after_interactive_call_stop): Use
3711 is_watchpoint.
3712 (clear_command): Use is_watchpoint.
3713 (do_enable_breakpoint): Use is_watchpoint.
3714
3715 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3716
3717 * solib-frv.c (enable_break1_done): Delete.
3718 (enable_break2): Do not check enable_break1_done. Move the
3719 enable_break2_done setting and call to
3720 remove_solib_event_breakpoints() to the end. Return without
3721 warning when the contents of _dl_debug_addr are 0.
3722 (enable_break): Do not set enable_break1_done.
3723 (frv_clear_solib): Likewise.
3724
3725 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3726
3727 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3728 instead of an error if no PLT entry is found. Return a
3729 potentially useful result.
3730 (m32c_m16c_pointer_to_address): Add code to search for function
3731 address when no .plt entry is found.
3732
3733 2010-04-16 Stan Shebs <stan@codesourcery.com>
3734
3735 * tracepoint.c (trace_variable_command): Run a cleanup.
3736
3737 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3738
3739 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3740
3741 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3742
3743 Support for Windows OS Thread Information Block.
3744 * NEWS: Document new feature.
3745 * remote.c (PACKET_qGetTIBAddr): New enum element.
3746 (remote_get_tib_address): New function.
3747 (init_remote_ops): Set to_get_tib_address field
3748 to remote_get_tib_address.
3749 (_initialize_remote): Add add_packet_config_cmd
3750 for PACKET_qGetTIBAddr.
3751 * target.c (update_current_target): Set default value for
3752 new to_get_tib_address field.
3753 * target.h (target_ops): New field to_get_tib_address.
3754 (target_get_tib_address): New macro.
3755 * windows-nat.c (thread_info): Add thread_local_base field.
3756 (windows_add_thread): Add tlb argument of type 'void *'.
3757 (fake_create_process): Adapt windows_add_thread call.
3758 (get_windows_debug_event): Idem.
3759 (windows_get_tib_address): New function.
3760 (init_windows_ops): Set to_get_tib_address field
3761 to remote_get_tib_address.
3762 (_initialize_windows_nat): Replace info_w32_cmdlist
3763 initialization by a call to init_w32_command_list.
3764 (info_w32_command, info_w32_cmdlist): Removed from here...
3765 to windows-tdep.c file.
3766 * windows-tdep.h (info_w32_cmdlist): Declare.
3767 (init_w32_command_list): New external function
3768 declaration.
3769 * windows-tdep.c: Add several headers.
3770 (info_w32_cmdlist): to here, made global.
3771 (thread_information_32): New struct.
3772 (thread_information_64): New struct.
3773 (TIB_NAME): New char array.
3774 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3775 (maint_display_all_tib): New static variable.
3776 (windows_get_tlb_type): New function.
3777 (tlb_value_read, tlb_value_write): New functions.
3778 (tlb_value_funcs): New static struct.
3779 (tlb_make_value): New function.
3780 (display_one_tib): New function.
3781 (display_tib): New function.
3782 (show_maint_show_all_tib):New function.
3783 (info_w32_command): Moved from windows-nat.c.
3784 (init_w32_command_list): New function.
3785 (_initialize_windows_tdep): New function.
3786 New "maint set/show show-all-tib" command
3787 New "$_tlb" internal variable.
3788
3789 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3790
3791 * tui/tui-regs.c (tui_display_register): Add comment about
3792 a couple of casts.
3793 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3794
3795 2010-04-15 Stan Shebs <stan@codesourcery.com>
3796
3797 * frame.c: Include tracepoint.h.
3798 (get_current_frame): Allow a trace frame to be an alternate source
3799 of stack frame data.
3800 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3801 it won't succeed.
3802
3803 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3804
3805 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3806 flags.
3807 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3808
3809 2010-04-15 Doug Evans <dje@google.com>
3810
3811 * NEWS: Add entry for python program space support.
3812 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3813 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3814 (py-progspace.o): New rule.
3815 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3816 function.
3817 (find_pretty_printer_from_progspace): New function.
3818 (find_pretty_printer_from_gdb): New function.
3819 (find_pretty_printer): Rewrite.
3820 * python/py-progspace.c: New file.
3821 * python/python-internal.h (program_space): Add forward decl.
3822 (pspace_to_pspace_object, pspy_get_printers): Declare.
3823 (gdbpy_initialize_pspace): Declare.
3824 * python/python.c: #include "progspace.h".
3825 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3826 (_initialize_python): Call gdbpy_initialize_pspace.
3827 (GdbMethods): Add current_progspace, progspaces.
3828
3829 Add -s option to source command.
3830 * NEWS: Document new option.
3831 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3832 Delete from_tty and cleanupp args. Split filep arg into file and
3833 full_pathp. New arg search_path.
3834 (source_script_from_stream): New function.
3835 (source_script_with_search): New function.
3836 (source_script): Rewrite.
3837 (source_command): Parse "-s" option.
3838 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3839 * python/python.c (source_python_script): Make file arg a const char *.
3840 Don't call fclose, leave for caller.
3841 * python/python.h (source_python_script): Update.
3842
3843 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3844 Pedro Alves <pedro@codesourcery.com>
3845
3846 Avoid rereading shared libraries that haven't changed.
3847
3848 * solib.c (free_so_symbols): New function, from ...
3849 (free_so): ... here. Call it.
3850 (solib_read_symbols): Don't warn here if symbols have already been
3851 loaded.
3852 (solib_add): Warn here instead, if a pattern was specified.
3853 (reload_shared_libraries_1): New.
3854 (reload_shared_libraries): Rewrite to not fetch the library list.
3855
3856 2010-04-14 Doug Evans <dje@google.com>
3857
3858 * source.c (openp): Strip DOS drive letter if present before
3859 concatenating string to search path.
3860
3861 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3862
3863 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3864 * objfiles.c (gdb_bfd_close_or_warn): New.
3865 * corelow.c: Include objfiles.h
3866 (core_close): Use gdb_bfd_close_or_warn.
3867 * elfread.c (build_id_verify): Ditto.
3868 * exec.c (exec_close, exec_close_1): Ditto.
3869
3870 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3871 Pedro Alves <pedro@codesourcery.com>
3872
3873 Group errors for many missing shared libraries.
3874
3875 * solist.h (struct so_list): Remove from_tty.
3876 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3877 (solib_map_sections): Take so_list argument. Return 0 if we
3878 failed to open a BFD. Add target sections here.
3879 (symbol_add_stub): Delete.
3880 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3881 not from_tty copied from the so_list. Don't warn a second time
3882 for a missing library.
3883 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3884 add to the section table here. Print out a single warning for all
3885 missing libraries.
3886 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3887 flags.
3888
3889 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3890
3891 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3892 error/warning messages. Capitalize and use complete sentences.
3893 (blpy_block_syms_iternext): Likewise.
3894 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3895 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3896 (frame_info_to_frame_object, frapy_read_var)
3897 (gdbpy_frame_stop_reason_string): Likewise.
3898 * python/py-lazy-string.c (stpy_convert_to_value)
3899 (gdbpy_create_lazy_string_object): Likewise.
3900 * python/py-objfile.c (objfpy_set_printers): Likewise.
3901 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3902 * python/python.c (parameter_to_python): Likewise.
3903 * python/py-type.c (typy_range, typy_target): Likewise.
3904 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3905 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3906
3907
3908 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3909
3910 PR python/11381
3911
3912 * python/py-prettyprint.c (pretty_print_one_value): Test for
3913 Py_None.
3914 (print_string_repr): Test for Py_None. Set flags accordingly.
3915 Return value depending on return type.
3916 (print_children): Take a value indicating whether data was printed
3917 before this function was called. Alter output accordingly.
3918 (apply_val_pretty_printer): Capture return value from
3919 print_string_repr and pass to print_children.
3920
3921 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3922
3923 PR corefiles/11481
3924 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3925 register note sections.
3926 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3927 New variables.
3928 (i386_linux_init_abi): Install list of supported register note
3929 sections that matches the target description.
3930
3931 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3932
3933 * remote.c (remote_get_noisy_reply): Don't error out on empty
3934 replies.
3935 (remote_start_remote): Update and merge tracepoints and trace
3936 state variables as long as the target supports tracepoints.
3937 (remote_trace_init): Fix prototype.
3938 (remote_download_trace_state_variable): Validate reply.
3939 (remote_trace_set_readonly_regions): Fix prototype.
3940 (remote_trace_start): Fix prototype. Check for empty reply.
3941 (remote_get_trace_status): Small cleanup.
3942 (remote_trace_stop): Fix prototype. Check for empty reply.
3943 (remote_trace_find): Check for empty reply.
3944 (remote_save_trace_data): Validate reply.
3945 (remote_set_disconnected_tracing): Check for empty reply, and
3946 validate reply.
3947 (remote_set_circular_trace_buffer): Ditto.
3948
3949 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3950
3951 Suppress unused value warning during compilation.
3952 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3953 calls to void.
3954 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3955
3956 2010-04-12 Stan Shebs <stan@codesourcery.com>
3957
3958 * tracepoint.c (tfile_xfer_partial): Check read result.
3959
3960 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3961
3962 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3963 * remote-sim.c (gdbsim_files_info): Likewise.
3964
3965 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3966
3967 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3968 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3969 variable.
3970 (fetch_vfp_registers): New function to fetch VFP registers.
3971 (store_vfp_registers): New function to store VFP registers.
3972 (arm_linux_fetch_inferior_registers): Add support for VFP
3973 registers.
3974 (arm_linux_store_inferior_registers): Likewise.
3975 (arm_linux_read_description): Likewise.
3976 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3977 until we need it.
3978
3979 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3980
3981 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3982 tdep.
3983 (amd64_collect_xstateregset): Likewise.
3984
3985 2010-04-09 Stan Shebs <stan@codesourcery.com>
3986
3987 * tracepoint.c (trace_status_mi): Report frames created.
3988
3989 * tracepoint.c (trace_dump_command): Include default-collect
3990 expressions.
3991
3992 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3993
3994 * symtab.c (find_function_start_sal): Never return SAL pointing
3995 before function start address, even if line info is missing.
3996
3997 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3998
3999 * NEWS: Mention tracepoints support.
4000
4001 2010-04-09 Pedro Alves <pedro@codesourcery.com>
4002
4003 * tracepoint.c (trace_status_mi): Report disconnected tracing and
4004 circular trace buffer statuses.
4005
4006 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4007
4008 * config/djgpp/fnchange.lst: Fix typo in translations for
4009 symbol-without-target_section.exp and symbol-without-target_section.c.
4010
4011 2010-04-09 Pedro Alves <pedro@codesourcery.com>
4012
4013 * breakpoint.c (condition_command): Pass condition expression to
4014 set_breakpoint_condition stripped from breakpoint number.
4015
4016 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
4017 Thiago Jung Bauermann <bauerman@br.ibm.com>
4018 Tom Tromey <tromey@redhat.com>
4019
4020 * breakpoint.c (condition_command): Simplify. Move condition
4021 setting code to ...
4022 (set_breakpoint_condition): ... here. New function.
4023 * breakpoint.h (set_breakpoint_condition): Declare.
4024 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
4025 (SUBDIR_PYTHON_SRCS): Likewise.
4026 (py-breakpoint.o): New rule.
4027 * python/py-breakpoint.c: New file.
4028 * python/python-internal.h (gdbpy_breakpoints)
4029 (gdbpy_initialize_breakpoints): Declare.
4030 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
4031
4032 2010-04-09 Pedro Alves <pedro@codesourcery.com>
4033
4034 * regformats/regdat.sh: Include server.h. Don't include
4035 regcache.h.
4036
4037 2010-04-08 Stan Shebs <stan@codesourcery.com>
4038 Pedro Alves <pedro@codesourcery.com>
4039
4040 * tracepoint.h (struct trace_status): New fields disconnected_tracing
4041 and circular_buffer.
4042 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
4043 * tracepoint.c (trace_status_command): Display target's status for
4044 disconnected tracing and circular buffer.
4045 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
4046 query for non-disconnected-tracing case, remove the stop_tracing
4047 call.
4048 (tfile_open): Clear disconnected and circular buffer status.
4049 (trace_save): Save disconnected and circular buffer status.
4050 (parse_trace_status): Parse disconnected and circular buffer status,
4051 also recognize disconnected as a stop reason.
4052 * remote.c (remote_set_disconnected_tracing): Only set
4053 QTDisconnected if the remote end supports disconnected tracing.
4054 Warn otherwise, if trying to enable disconnected tracing.
4055 * infcmd.c (detach_command): Update disconnect_tracing call.
4056 * cli/cli-cmds.c (quit_command): Ditto.
4057
4058 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4059
4060 * i387-tdep.c (i387_collect_xsave): Replace abort with
4061 internal_error.
4062
4063 2010-04-08 Stan Shebs <stan@codesourcery.com>
4064
4065 * breakpoint.c (default_collect_info): New function.
4066 (breakpoints_info): Call it.
4067 (maintenance_info_breakpoints): Ditto.
4068 (tracepoints_info): Ditto.
4069
4070 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4071
4072 * i387-tdep.c (i387_collect_xsave): Re-indent.
4073
4074 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
4075
4076 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
4077 if HAVE_PTRACE_GETFPXREGS is defined.
4078 (i386_linux_read_description): Set have_ptrace_getfpxregs and
4079 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
4080
4081 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
4082 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
4083 if .reg-xfp section doesn't exist.
4084 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
4085
4086 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
4087
4088 * i386-tdep.c: Include "features/i386/i386-mmx.c".
4089 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
4090 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
4091 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
4092 (i386_gdbarch_init): Update comments.
4093 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
4094
4095 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
4096
4097 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
4098
4099 * features/Makefile (i386/i386-mmx-expedite): New.
4100 (i386/i386-mmx-linux-expedite): Likewise.
4101 ($(outdir)/i386/i386-mmx.dat): Likewise.
4102 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
4103
4104 * features/i386/i386-mmx-linux.c: New.
4105 * features/i386/i386-mmx-linux.xml: Likewise.
4106 * features/i386/i386-mmx.c: Likewise.
4107 * features/i386/i386-mmx.xml: Likewise.
4108 * regformats/i386/i386-mmx-linux.dat: Likewise.
4109 * regformats/i386/i386-mmx.dat: Likewise.
4110
4111 * features/Makefile (WHICH): Add i386/i386-mmx and
4112 i386/i386-mmx-linux.
4113
4114 2010-04-08 Doug Evans <dje@google.com>
4115
4116 * source.c (openp): Skip $cdir in PATH.
4117
4118 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
4119
4120 PR python/11417
4121 * python/py-lazy-string.c (stpy_convert_to_value): Check for
4122 a NULL address.
4123 (gdbpy_create_lazy_string_object): Allow strings with a NULL
4124 address and a zero length.
4125
4126 2010-04-08 Hui Zhu <teawater@gmail.com>
4127
4128 * i386-tdep.c (i386_process_record): Add support for insn
4129 rdtsc.
4130
4131 2010-04-07 Doug Evans <dje@google.com>
4132
4133 * python/python.c (source_python_script): Use ensure_python_env
4134 to prepare environment for script.
4135
4136 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4137
4138 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
4139 <sys/uio.h> and "i386-xstate.h".
4140 (PTRACE_GETREGSET): New.
4141 (PTRACE_SETREGSET): Likewise.
4142 (have_ptrace_getregset): Likewise.
4143 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
4144 registers.
4145 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
4146 registers.
4147 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
4148 (amd64_linux_store_inferior_registers): Likewise.
4149 (amd64_linux_read_description): Check and enable AVX target
4150 descriptions.
4151
4152 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
4153 and "features/i386/amd64-avx-linux.c".
4154 (amd64_linux_regset_sections): New.
4155 (amd64_linux_core_read_description): Check and enable AVX
4156 target description.
4157 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
4158 set_gdbarch_core_regset_sections.
4159 (_initialize_amd64_linux_tdep): Call
4160 initialize_tdesc_amd64_avx_linux.
4161
4162 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
4163 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
4164 (tdesc_amd64_avx_linux): New.
4165 (amd64_linux_update_xstateregset): Likewise.
4166
4167 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
4168 (amd64_ymm_names): New.
4169 (amd64_ymmh_names): Likewise.
4170 (amd64_register_name): Likewise.
4171 (amd64_supply_xstateregset): Likewise.
4172 (amd64_collect_xstateregset): Likewise.
4173 (amd64_supply_xsave): Likewise.
4174 (amd64_collect_xsave): Likewise.
4175 (AMD64_NUM_REGS): Removed.
4176 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
4177 %xmmN if AVX is available.
4178 (amd64_pseudo_register_name): Support pseudo YMM registers.
4179 (amd64_regset_from_core_section): Support .reg-xstate section.
4180 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
4181 and ymm0h_regnum. Call set_gdbarch_register_name.
4182 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
4183
4184 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
4185 AMD64_YMM15H_REGNUM.
4186 (AMD64_NUM_REGS): New.
4187 (amd64_supply_xsave): Likewise.
4188 (amd64_collect_xsave): Likewise.
4189 (amd64_register_name): Removed.
4190 (amd64_register_type): Likewise.
4191
4192 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4193
4194 * i387-tdep.c: Include "i386-xstate.h".
4195 (XSAVE_XSTATE_BV_ADDR): New.
4196 (xsave_avxh_offset): Likewise.
4197 (XSAVE_AVXH_ADDR): Likewise.
4198 (i387_supply_xsave): Likewise.
4199 (i387_collect_xsave): Likewise.
4200
4201 * i387-tdep.h (I387_NUM_YMM_REGS): New.
4202 (I387_YMM0H_REGNUM): Likewise.
4203 (I387_YMMENDH_REGNUM): Likewise.
4204 (i387_supply_xsave): Likewise.
4205 (i387_collect_xsave): Likewise.
4206
4207 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4208
4209 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
4210 <sys/uio.h> and "i386-xstate.h".
4211 (PTRACE_GETREGSET): New.
4212 (PTRACE_SETREGSET): Likewise.
4213 (fetch_xstateregs): Likewise.
4214 (store_xstateregs): Likewise.
4215 (GETXSTATEREGS_SUPPLIES): Likewise.
4216 (regmap): Include 8 upper YMM registers.
4217 (i386_linux_fetch_inferior_registers): Support XSAVE extended
4218 state.
4219 (i386_linux_store_inferior_registers): Likewise.
4220 (i386_linux_read_description): Check and enable AVX target
4221 descriptions.
4222
4223 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
4224 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
4225 (i386_linux_regset_sections): Add ".reg-xstate".
4226 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
4227 (i386_linux_core_read_xcr0): New.
4228 (i386_linux_core_read_description): Check and enable AVX target
4229 description.
4230 (i386_linux_init_abi): Set xsave_xcr0_offset.
4231 (_initialize_i386_linux_tdep): Call
4232 initialize_tdesc_i386_avx_linux.
4233
4234 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
4235 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
4236 (i386_linux_core_read_xcr0): New.
4237 (tdesc_i386_avx_linux): Likewise.
4238 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
4239
4240 * i386-tdep.c: Include "i386-xstate.h" and
4241 "features/i386/i386-avx.c".
4242 (i386_ymm_names): New.
4243 (i386_ymmh_names): Likewise.
4244 (i386_ymmh_regnum_p): Likewise.
4245 (i386_ymm_regnum_p): Likewise.
4246 (i386_xmm_regnum_p): Likewise.
4247 (i386_register_name): Likewise.
4248 (i386_ymm_type): Likewise.
4249 (i386_supply_xstateregset): Likewise.
4250 (i386_collect_xstateregset): Likewise.
4251 (i386_sse_regnum_p): Removed.
4252 (i386_pseudo_register_name): Support pseudo YMM registers.
4253 (i386_pseudo_register_type): Likewise.
4254 (i386_pseudo_register_read): Likewise.
4255 (i386_pseudo_register_write): Likewise.
4256 (i386_dbx_reg_to_regnum): Return %ymmN register number for
4257 %xmmN if AVX is available.
4258 (i386_regset_from_core_section): Support .reg-xstate section.
4259 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
4260 (i386_process_record): Replace i386_sse_regnum_p with
4261 i386_xmm_regnum_p.
4262 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
4263 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
4264 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
4265 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
4266 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
4267 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
4268 Set ymm0_regnum.
4269 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
4270
4271 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
4272 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
4273 i386_ymm_type.
4274 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
4275 (I386_AVX_NUM_REGS): New.
4276 (i386_xmm_regnum_p): Likewise.
4277 (i386_ymm_regnum_p): Likewise.
4278 (i386_ymmh_regnum_p): Likewise.
4279
4280 * common/i386-xstate.h: New.
4281
4282 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
4283
4284 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
4285
4286 * features/Makefile (WHICH): Add i386/i386-avx,
4287 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
4288 (i386/i386-avx-expedite): New.
4289 (i386/i386-avx-linux-expedite): Likewise.
4290 (i386/x86-64-avx-expedite):Likewise.
4291 (i386/x86-64-avx-linux-expedite): Likewise.
4292 ($(outdir)/i386/i386-avx.dat): New dependency.
4293 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
4294 ($(outdir)/i386/x86-avx-64.dat): Likewise.
4295 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
4296
4297 * features/i386/32bit-avx.xml: New.
4298 * features/i386/64bit-avx.xml: Likewise.
4299 * features/i386/i386-avx-linux.c: Likewise.
4300 * features/i386/i386-avx-linux.xml: Likewise.
4301 * features/i386/i386-avx.c: Likewise.
4302 * features/i386/i386-avx.xml: Likewise.
4303 * features/i386/x86-64-avx-linux.c: Likewise.
4304 * features/i386/x86-64-avx-linux.xml: Likewise.
4305 * features/i386/x86-64-avx.c: Likewise.
4306 * features/i386/x86-64-avx.xml: Likewise.
4307 * regformats/i386/i386-avx-linux.dat: Likewise.
4308 * regformats/i386/i386-avx.dat: Likewise.
4309 * regformats/i386/x86-64-avx-linux.dat: Likewise.
4310 * regformats/i386/x86-64-avx.dat: Likewise.
4311
4312 2010-04-07 Doug Evans <dje@google.com>
4313
4314 * top.c (source_file_name): Make const char *.
4315 * top.h (source_file_name): Update.
4316 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
4317 const char *.
4318 (script_from_file): Change `file' arg to const char *.
4319 * cli/cli-script.h (script_from_file): Update.
4320
4321 2010-04-06 Doug Evans <dje@google.com>
4322
4323 * cli/cli-cmds.c (source_command): Run cleanups.
4324
4325 2010-04-06 Stan Shebs <stan@codesourcery.com>
4326
4327 * defs.h (char_ptr): Move typedef here from...
4328 * ada-lang.c (char_ptr): Remove.
4329 * charset.c (char_ptr): Remove.
4330 * tracepoint.h (struct uploaded_string): Remove.
4331 (struct uploaded_tp): Use vectors for string arrays.
4332 * tracepoint.c (trace_save): Use vectors of actions.
4333 (parse_tracepoint_definition): Ditto.
4334 (get_uploaded_tp): Clear vectors.
4335 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
4336 (next_cmd): Change to an int.
4337 (read_next_cmd): Use vector of command strings.
4338
4339 2010-04-06 Doug Evans <dje@google.com>
4340
4341 * top.h (source_script, cd_command): Delete.
4342 * main.c: #include "cli/cli-cmds.h"
4343
4344 2010-04-06 Kevin Buettner <kevinb@redhat.com>
4345
4346 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
4347 type in bytes, not bits.
4348
4349 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4350
4351 * stabsread.c (define_symbol): Add support for char
4352 and string constants.
4353
4354 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4355
4356 Remove remaining "%ll" uses.
4357 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
4358 hex_string call.
4359 * rs6000-nat.c (rs6000_ptrace64): Idem.
4360 * solib-pa64.c (pa64_current_sos): Idem.
4361 * solib-spu.c (spu_current_sos): Idem.
4362 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
4363 plongest call.
4364 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
4365 phex (VAR, 8) call.
4366 * sh64-tdep.c (sh64_show_media_regs): Idem.
4367
4368 2010-04-05 Stan Shebs <stan@codesourcery.com>
4369
4370 * tracepoint.c: Include gdbcore.h.
4371 (tfile_xfer_partial): Return partial results, also try reading
4372 from executable.
4373 (tfile_has_all_memory): New function.
4374 (init_tfile_ops): Use it.
4375
4376 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
4377
4378 PR gdb/10736:
4379 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
4380 the changes in data-directory.
4381 (init_sysinfo): Reload the syscall XML file if the data-directory
4382 has changed.
4383
4384 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4385
4386 Code cleanup.
4387 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
4388
4389 2010-04-04 Stan Shebs <stan@codesourcery.com>
4390 Nathan Sidwell <nathan@codesourcery.com>
4391
4392 * breakpoint.c (breakpoint_1): Add filter argument, return number of
4393 breakpoints printed.
4394 (is_hardware_watchpoint): Make argument const.
4395 (is_watchpoint): Ditto.
4396 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
4397 use it everywhere.
4398 (breakpoints_info): Pass NULL to breakpoint_1.
4399 (maintenance_info_breakpoints): Ditto.
4400 (watchpoints_info): New function.
4401 (tracepoints_info): Use breakpoint_1 filter.
4402 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
4403 (_initialize_breakpoint): Make "info watchpoints" its own command.
4404 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
4405 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
4406
4407 2010-04-04 Stan Shebs <stan@codesourcery.com>
4408
4409 * tracepoint.c (tfile_fetch_registers): Add fallback case.
4410
4411 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4412
4413 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
4414 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
4415
4416 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4417
4418 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
4419 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
4420
4421 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4422
4423 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
4424 code form.
4425
4426 2010-04-02 Hui Zhu <teawater@gmail.com>
4427
4428 * i386-tdep.c (OT_DQUAD): New enum.
4429 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
4430 SSE3, SSSE3 and SSE4.
4431
4432 2010-04-02 Hui Zhu <teawater@gmail.com>
4433
4434 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
4435 "*addr = 0".
4436
4437 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4438
4439 * tracepoint.c (trace_dump_actions): New, factored out from
4440 trace_dump_command, and adjusted to recurse into while-stepping's
4441 action list.
4442 (trace_dump_command): Use it.
4443
4444 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4445
4446 * breakpoint.h (struct counted_command_line): Moved definition to
4447 breakpoint.c, and forward declare.
4448 (breakpoint_commands): Declare.
4449 * breakpoint.c (struct counted_command_line): Moved here.
4450 (breakpoint_commands): New.
4451 * tracepoint.c (encode_actions): Use breakpoint_commands.
4452 * remote.c (remote_download_tracepoint): Ditto.
4453
4454 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4455
4456 * remote.c (remote_parse_stop_reply): Use hex_string instead
4457 of phex_nz for error.
4458
4459 2010-04-01 Stan Shebs <stan@codesourcery.com>
4460 Nathan Sidwell <nathan@codesourcery.com>
4461
4462 * tracepoint.h (enum actionline_type): Remove.
4463 (validate_actionline): Change return to void.
4464 * tracepoint.c (report_agent_reqs_errors): New function.
4465 (validate_actionline): Call it, change return to void, report errors
4466 more consistently.
4467 (collect_symbol): Call report_agent_reqs_errors.
4468 (encode_actions_1): Ditto.
4469 (encode_actions): Don't expect a result from validate_actionline.
4470
4471 2010-04-01 Stan Shebs <stan@codesourcery.com>
4472
4473 * tracepoint.c (trace_start_command): Confirm if trace is running.
4474 (trace_stop_command): Error if trace not running.
4475
4476 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4477
4478 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4479 (AMD64_NUM_LOWER_BYTE_REGS): New.
4480 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4481 (amd64_pseudo_register_write): Likewise.
4482 (amd64_init_abi): Set num_byte_regs to 20.
4483
4484 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4485
4486 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4487 (prev_breakpoint_count): New.
4488 (set_breakpoint_count): Adjust.
4489 (rbreak_start_breakpoint_count): New.
4490 (start_rbreak_breakpoints): Adjust.
4491 (end_rbreak_breakpoints): Adjust.
4492 (struct commands_info) <arg>: New field.
4493 (do_map_commands_command): Tweak output to include breakpoint spec
4494 range.
4495 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4496 ARG was empty on entry. Set INFO's arg.
4497 (create_breakpoint): Adjust.
4498
4499 * NEWS: Clarify `commands' changes.
4500
4501 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4502
4503 * tracepoint.c: Include stack.h.
4504 (struct add_local_symbols_data): New.
4505 (do_collect_symbol): New.
4506 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4507 iterate_over_block_local_vars.
4508 * stack.c (print_block_frame_locals): Rewrite as ...
4509 (iterate_over_block_locals): ... this. Take a callback function
4510 pointer and generic data pointer, and call that instead of
4511 print_variable_and_value.
4512 (struct print_variable_and_value_data): New.
4513 (do_print_variable_and_value): New.
4514 (iterate_over_block_local_vars): New, abstracted out from
4515 print_frame_local_vars.
4516 (print_frame_local_vars): Rewrite using
4517 iterate_over_block_local_vars.
4518 (iterate_over_block_arg_vars): New, abstracted out from
4519 print_frame_arg_vars.
4520 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4521 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4522 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4523
4524 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
4525
4526 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
4527 instructions. Use the PC+4 if the base of the TBB or TBH is the
4528 PC register.
4529
4530 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4531
4532 Fix crash on reading wrong function declaration DWARF.
4533 * dwarf2read.c (read_subroutine_type): New variable void_type.
4534 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4535 more close to their use.
4536
4537 2010-03-31 Stan Shebs <stan@codesourcery.com>
4538
4539 * breakpoint.c (tracepoint_save_command): Include variables,
4540 conditionals, tracepoint types, and default-collect.
4541 * tracepoint.c (save_trace_state_variables): New function.
4542 * tracepoint.h (save_trace_state_variables): Declare it.
4543
4544 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4545
4546 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
4547
4548 2010-03-30 Keith Seitz <keiths@redhat.com>
4549
4550 * c-typeprint.c (c_type_print_args): Don't print "void"
4551 for java, regardless of whether it is TYPE_PROTOTYPED.
4552 Use the passed-in language instead of current_language.
4553 (c_type_print_varspec_suffix): Use current_language instead
4554 of assuming language_c.
4555 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4556 any return type specifier from the physname.
4557
4558 2010-03-30 Pedro Alves <pedro@codesourcery.com>
4559
4560 * tui/tui-interp.c (tui_is_toplevel): New.
4561 (tui_init): Set it.
4562 (tui_allowed_p): New.
4563 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4564 enabling it.
4565 * tui/tui.h (tui_allowed_p): Declare.
4566
4567 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4568
4569 * serial.h: Include winsock2.h before windows.h.
4570
4571 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4572
4573 * NEWS: Mention xmlRegisters= in qSupported packet.
4574
4575 * i386-tdep.c: Include "remote.h".
4576 (_initialize_i386_tdep): Call register_remote_support_xml.
4577
4578 * remote.c (remote_support_xml): New.
4579 (register_remote_support_xml): Likewise.
4580 (remote_query_supported_append): Likewise.
4581 (remote_query_supported): Support remote_support_xml.
4582
4583 * remote.h (register_remote_support_xml): New.
4584
4585 2010-03-29 Stan Shebs <stan@codesourcery.com>
4586
4587 * tracepoint.c (trace_find_line_command): Remove dead code.
4588
4589 * tracepoint.h (struct uploaded_string): New struct.
4590 (struct uploaded_tp): New fields for source strings.
4591 * breakpoint.c (this_utp, next_cmd): New globals.
4592 (read_uploaded_action): New function.
4593 (create_tracepoint_from_upload): Fill in more parts
4594 of a tracepoint.
4595 * tracepoint.c (encode_source_string): New function.
4596 (trace_save): Write out source strings, fix error checks.
4597 (parse_tracepoint_definition): Add source string parsing.
4598 * remote.c (PACKET_TracepointSource): New packet type.
4599 (remote_download_command_source): New function.
4600 (remote_download_tracepoint): Download source pieces also.
4601 (_initialize_remote): Add packet config command.
4602
4603 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4604 expression handler.
4605
4606 * tracepoint.c (start_tracing): Check tracepoints before sending
4607 commands to target, don't start if all tracepoints disabled.
4608
4609 2010-03-28 Pedro Alves <pedro@codesourcery.com>
4610
4611 * cli/cli-script.c (process_next_line): Handle 'stepping'.
4612
4613 2010-03-26 Stan Shebs <stan@codesourcery.com>
4614
4615 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4616
4617 2010-03-26 Tom Tromey <tromey@redhat.com>
4618
4619 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4620
4621 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4622
4623 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4624 (skip_prologue_sal): Remove local definition.
4625 (resolve_sal_pc): Remove now unnecessary code.
4626 * linespec.c (minsym_found): Call skip_prologue_sal.
4627 * symtab.c (find_function_start_pc): Remove.
4628 (find_function_start_sal): Extract prologue skipping into ...
4629 (skip_prologue_sal): ... this new function. Handle code both
4630 with and without debug info. Respect SAL's explicit_pc and
4631 explicit_line flags. Inline old find_function_start_pc.
4632 * symtab.h (find_function_start_pc): Remove.
4633 (skip_prologue_sal): Add prototype.
4634
4635 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4636
4637 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4638 for DW_TAG_imported_module children.
4639
4640 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4641
4642 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4643 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4644 * completer.c (add_struct_fields): Fix inverted logic.
4645
4646 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4647
4648 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4649
4650 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4651
4652 * tracepoint.c (current_trace_status): Don't make sure error_desc
4653 is non-NULL here.
4654 (parse_trace_status): Release a previous error_desc string, and
4655 set it to NULL by default. If stop reason is tracepoint_error,
4656 make sure error_desc is not left NULL.
4657
4658 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4659
4660 * tracepoint.c (trace_save): Remove X from tracepoint error
4661 description.
4662
4663 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4664
4665 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4666 the terror description. Don't expect an X prefix.
4667
4668 2010-03-25 Stan Shebs <stan@codesourcery.com>
4669
4670 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4671 (struct trace_status): New field error_desc.
4672 * tracepoint.c (stop_reason_names): Add terror.
4673 (current_trace_status): Ensure non-NULL error description.
4674 (trace_status_command): Add error report.
4675 (trace_status_mi): Ditto.
4676 (trace_save): Add special case for error description.
4677 (parse_trace_status): Add case for errors.
4678
4679 2010-03-25 Keith Seitz <keiths@redhat.com>
4680
4681 * dwarf2read.c (read_subroutine_type): If the compilation unit
4682 language is Java, mark any formal parameter named "this" as
4683 artificial (GCC/43521).
4684 (dwarf2_name): Add special handling for Java constructors.
4685
4686 2010-03-25 Tom Tromey <tromey@redhat.com>
4687
4688 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4689 * infrun.c (handle_inferior_event): Change initialization of
4690 stop_stack_dummy.
4691 (handle_inferior_event): Change assignment to stop_stack_dummy.
4692 (normal_stop): Update use of stop_stack_dummy.
4693 (struct inferior_status) <stop_stack_dummy>: Change type.
4694 * inferior.h (stop_stack_dummy): Update.
4695 * infcmd.c (stop_stack_dummy): Change type.
4696 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4697 function.
4698 (call_function_by_hand): Call set_std_terminate_breakpoint.
4699 Rewrite std::terminate handling.
4700 * breakpoint.h (enum bptype) <bp_std_terminate,
4701 bp_std_terminate_master>: New.
4702 (enum stop_stack_kind): New.
4703 (struct bpstat_what) <call_dummy>: Change type.
4704 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4705 Declare.
4706 * breakpoint.c (create_std_terminate_master_breakpoint): New
4707 function.
4708 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4709 Call create_std_terminate_master_breakpoint.
4710 (print_it_typical): Handle new breakpoint kinds.
4711 (bpstat_stop_status): Handle bp_std_terminate_master.
4712 (bpstat_what): Correctly set call_dummy field. Handle
4713 bp_std_terminate_master and bp_std_terminate.
4714 (print_one_breakpoint_location): Update.
4715 (allocate_bp_location): Update.
4716 (set_std_terminate_breakpoint): New function.
4717 (delete_std_terminate_breakpoint): Likewise.
4718 (create_thread_event_breakpoint): Update.
4719 (delete_command): Update.
4720 (breakpoint_re_set_one): Update.
4721 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4722
4723 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4724
4725 * symfile.c (build_section_addr_info_from_bfd): New.
4726 (build_section_addr_info_from_objfile): Base it on
4727 build_section_addr_info_from_bfd.
4728 (addrs_section_compar, addrs_section_sort): New.
4729 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4730 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4731 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4732
4733 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4734
4735 * elfread.c (find_separate_debug_file_by_buildid):
4736 Remove unused local variable.
4737
4738 2010-03-24 Tom Tromey <tromey@redhat.com>
4739
4740 PR breakpoints/9352:
4741 * NEWS: Mention changes to `commands' and `rbreak'.
4742 * symtab.c (do_end_rbreak_breakpoints): New function.
4743 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4744 end_rbreak_breakpoints.
4745 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4746 (set_breakpoint_count): Likewise. Clear last_was_multi.
4747 (multi_start, multi_end, last_was_multi): New globals.
4748 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4749 functions.
4750 (struct commands_info): New
4751 (do_map_commands_command): New function.
4752 (commands_command_1): New function.
4753 (commands_command): Use it.
4754 (commands_from_control_command): Likewise.
4755 (do_delete_breakpoint): New function.
4756 (delete_command): Use it.
4757 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4758 (do_map_disable_breakpoint): New function.
4759 (disable_command): Use it.
4760 (do_map_enable_breakpoint): New function.
4761 (enable_command): Use it.
4762 (enable_once_breakpoint): Add argument.
4763 (enable_once_command): Update.
4764 (enable_delete_breakpoint): Add argument.
4765 (enable_delete_command): Update.
4766 (break_command_really): Set last_was_multi when needed.
4767 (check_tracepoint_command): Fix formatting.
4768 (validate_commands_for_breakpoint): New function.
4769 (breakpoint_set_commands): Use it.
4770 (tracepoint_save_command): Update.
4771 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4772 Declare.
4773
4774 2010-03-24 Tom Tromey <tromey@redhat.com>
4775
4776 * breakpoint.h (struct counted_command_line): New struct.
4777 (struct breakpoint) <commands>: Change type.
4778 (struct bpstats) <commands>: Change type.
4779 <commands_left>: New field.
4780 * breakpoint.c (alloc_counted_command_line): New function.
4781 (incref_counted_command_line): Likewise.
4782 (decref_counted_command_line): Likewise.
4783 (do_cleanup_counted_command_line): Likewise.
4784 (make_cleanup_decref_counted_command_line): Likewise.
4785 (breakpoint_set_commands): Use decref_counted_command_line and
4786 alloc_counted_command_line.
4787 (commands_command): Don't error if breakpoint commands are
4788 executing.
4789 (commands_from_control_command): Likewise.
4790 (bpstat_free): Update.
4791 (bpstat_copy): Likewise.
4792 (bpstat_clear_actions): Likewise.
4793 (bpstat_do_actions_1): Likewise.
4794 (bpstat_stop_status): Likewise.
4795 (print_one_breakpoint_location): Likewise.
4796 (delete_breakpoint): Likewise.
4797 (bpstat_alloc): Initialize new field.
4798 (tracepoint_save_command): Update.
4799 * tracepoint.c (encode_actions): Update.
4800 (trace_dump_command): Update.
4801
4802 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4803
4804 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4805 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4806 (read_structure_type): For RealView, set TYPE_STUB on structures with
4807 no byte size and no children.
4808 (read_subroutine_type): Mark functions as prototyped by default.
4809 * symtab.c (producer_is_realview): New function.
4810 * symtab.h (expand_line_sal): Fix declaration formatting.
4811 (producer_is_realview): Declare.
4812
4813 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4814
4815 * arm-tdep.c (skip_prologue_function): New function.
4816 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4817 (thumb_analyze_prologue): Document return value. Recognize more
4818 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4819 Add debug output.
4820 (arm_skip_prologue): Remove call dummy check. Check the prologue
4821 for non-GNU compilers.
4822 (arm_instruction_changes_pc): New function.
4823 (arm_analyze_prologue): New function, broken out from
4824 arm_scan_prologue. Recognize more ARM instructions and skippable
4825 calls. Update comments. Handle NULL cache. Return the address
4826 of the first unrecognized instruction. Do not skip past other
4827 instructions which change control flow. Add debug output.
4828 (arm_scan_prologue): Use arm_analyze_prologue.
4829 (ARM_PC_32): Delete.
4830 (shifted_reg_val): Simplify ARM_PC_32 check.
4831
4832 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4833
4834 * tracepoint.c (tvariables_info_1): Actually compute
4835 the number of rows in the result.
4836
4837 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4838
4839 * remote.c (crc32): Constify `buf' parameter.
4840 (remote_verify_memory): New, abstracted out from...
4841 (compare_sections_command): ... this. Remove hardcoded target
4842 checks.
4843 (init_remote_ops): Install remote_verify_memory.
4844 * target.c (target_verify_memory): New.
4845 * target.h (struct target_ops) <to_verify_memory>: New field.
4846 (target_verify_memory): Declare.
4847
4848 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4849
4850 Implement -trace-save.
4851
4852 * mi-cmds.h (mi_cmds_trace_save): Declare.
4853 * mi-cmds.c (mi_cmds): Register -trace-save.
4854 * mi/mi-main.c (mi_cmd_trace_save): New.
4855 * remote.c (remote_save_trace_data): Take const parameter.
4856 * target.h (struct target_ops::to_save_trace_data): Take
4857 const parameter.
4858 * target.c (update_current_target): Adjust to the above.
4859 * tracepoint.c (trave_save): New, extracted from
4860 (trace_save_command): ...this.
4861 (tfile_trace_find): Remove message that is unnecessary now
4862 that 'tfind' reports found frame.
4863 * tracepoint.h (trace_save): Declare.
4864
4865 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4866
4867 Implement -trace-find.
4868
4869 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4870 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4871 * mi/mi-main.c (mi_cmd_trace_find): New.
4872 * target.h (struct target_ops): Document to_trace_find.
4873 * tracepoint.h (tfind_1): Declare.
4874 * tracepoint.c (finish_tfind_command): Rename to...
4875 (tfind_1): ...this.
4876 * remote.c (remote_trace_find): Return -1 if target say
4877 there's no frame. Improve error diagnostics.
4878
4879 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4880
4881 -trace-define-variable and -trace-list-variables.
4882
4883 * tracepoint.c (create_trace_state_variable): Make
4884 private copy of name, as opposed to assuming the
4885 pointer lives forever.
4886 (tvariables_info_1): New.
4887 (tvariables_info): Use the above.
4888 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4889 Declare.
4890 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4891 and -trace-list-variables.
4892 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4893 (mi_cmd_trace_list_variables): New.
4894 * mi/mi-main.c (mi_cmd_trace_define_variable)
4895 (mi_cmd_trace_list_variables): New.
4896
4897 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4898
4899 Implement -break-passcount.
4900
4901 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4902 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4903 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4904
4905 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4906
4907 -trace-start/-trace-end/-trace-status.
4908
4909 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4910 and -trace-stop.
4911 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4912 (mi_cmd_trace_stop): Declare.
4913 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4914 (mi_cmd_trace_stop): New.
4915 * tracepoint.c (start_tracing): New, extracted from...
4916 (trace_start_command): ...this.
4917 (trace_status_mi): New.
4918 * tracepoint.h (struct trace_status): Document
4919 stopping_tracepoint.
4920 (start_tracing, stop_tracing, trace_status_mi): Declare.
4921
4922 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4923
4924 Implement creating tracepoints with -break-insert.
4925
4926 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4927 to mean that tracepoint should be created.
4928
4929 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4930
4931 * breakpoint.c (check_no_tracepoint_commands): Use
4932 current spelling of 'teval'.
4933
4934 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4935
4936 Unify actions and commands
4937
4938 * defs.h (read_command_lines, read_command_lines_1): New
4939 parameters validator and closure.
4940 * tracepoint.h (struct action_line): Remove.
4941 * breakpoint.h (struct breakpoint): Remove the 'actions'
4942 field.
4943 * defs.h (enum command_control_type): New value
4944 while_stepping_control.
4945 (struct command_line): Add comments.
4946 * breakpoint.c (breakoint_is_tracepoint): New.
4947 (breakpoint_set_commands): For tracepoints,
4948 verify the commands are permissible.
4949 (check_tracepoint_commands): New.
4950 (commands_command): Require that each new line is validated using
4951 check_tracepoint_command, if we set commands for a tracepoint.
4952 (create_tracepoint_from_upload): Likewise.
4953 (print_one_breakpoint_location): Remove the code to print
4954 actions specifically.
4955 (tracepoint_save_command): Relay to print_command_lines.
4956 * cli/cli-script.c (process_next_line): New parameters validator
4957 and closure. Handle 'while-stepping'. Call validator if not null.
4958 (read_command_lines, read_command_lines1): Likewise.
4959 (recurse_read_control_structure): New parameters validator and
4960 closure. Handle while_stepping_control.
4961 (print_command_lines): Handle while-stepping.
4962 (get_command_line, define_command, document_command): Adjust.
4963 * remote.c (remote_download_tracepoint): Adjust.
4964 * tracepoint.c (make_cleanup_free_actions, read_actions)
4965 (free_actions, do_free_actions_cleanup): Remove.
4966 (trace_actions_command): Use read_command_lines.
4967 (validate_actionline): Use error in one place.
4968 (encode_actions_1): New, extracted from...
4969 (encode_actions): ...this. Also use cleanups for exception
4970 safety.
4971 (trace_dump_command): Adjust.
4972 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4973 it's tracepoint.
4974
4975 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4976
4977 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4978
4979 2010-03-22 Stan Shebs <stan@codesourcery.com>
4980
4981 * value.c (value_static_field): Be lazy about the field's value.
4982
4983 2010-03-22 Reid Kleckner <reid@kleckner.net>
4984
4985 PR gdb/11094
4986 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4987 bp_jit_event.
4988 (disable_breakpoints_in_shlibs): Likewise.
4989
4990 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4991
4992 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4993 GCC 4.1 debug info generation (GCC PR c++/28460).
4994 (determine_prefix): Likewise.
4995
4996 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4997
4998 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4999 get_current_arch.
5000 * tui/tui-layout.c (extract_display_start_addr): Likewise.
5001
5002 2010-03-19 Stan Shebs <stan@codesourcery.com>
5003
5004 * ax-gdb.c (gen_fetch): Handle bool.
5005 (gen_usual_unary): Ditto.
5006 (gen_cast): Ditto.
5007 (gen_equal): New function.
5008 (gen_less): New function.
5009 (gen_expr_binop_rest): Call them, also return integer type from
5010 logical operations.
5011 (gen_expr): Ditto.
5012
5013 2010-03-19 Tom Tromey <tromey@redhat.com>
5014
5015 * jv-lang.c (jv_dynamics_objfile_data_key)
5016 (jv_type_objfile_data_key): New globals.
5017 (class_symtab): Move earlier.
5018 (jv_per_objfile_free): New function.
5019 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
5020 parameter.
5021 Remove ancient #if 1.
5022 (add_class_symbol): Remove redundant declaration.
5023 (java_lookup_class): Use alloc_type, not alloc_type_arch.
5024 (java_link_class_type): Mark as static. Update.
5025 (jv_clear_object_type): New function.
5026 (set_java_object_type): Likewise.
5027 (get_java_object_type): Use set_java_object_type.
5028 (is_object_type): Likewise.
5029 (_initialize_java_language): Register new objfile keys.
5030 (get_java_class_symtab): Add 'gdbarch' parameter.
5031 (add_class_symtab_symbol): Update.
5032 (type_from_class): Update.
5033
5034 2010-03-19 Stan Shebs <stan@codesourcery.com>
5035
5036 * ax-general.c (ax_const_l): Fix a sizing bug.
5037
5038 2010-03-18 Joel Brobecker <brobecker@adacore.com>
5039
5040 GDB 7.1 released.
5041
5042 2010-03-18 Stan Shebs <stan@codesourcery.com>
5043 Pedro Alves <pedro@codesourcery.com>
5044
5045 * target.h (struct target_ops): New method
5046 to_set_circular_trace_buffer.
5047 (target_set_circular_trace_buffer): New macro.
5048 * target.c (update_current_target): Add
5049 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
5050 default behavior.
5051 * remote.c (remote_set_circular_trace_buffer): New function.
5052 (init_remote_ops): Add it to vector.
5053 * tracepoint.h (struct trace_status): New field traceframes_created,
5054 change buffer_size and buffer_free to int.
5055 * tracepoint.c (circular_trace_buffer): New global.
5056 (start_tracing): Send values of disconnected tracing and circular
5057 trace buffer settings.
5058 (set_circular_trace_buffer): New function.
5059 (parse_trace_state): Handle total space and frames created.
5060 (trace_status_command): Display total space and total frames
5061 created.
5062 (trace_save): Write out new status values.
5063 (parse_trace_status): Set traceframe_count, traceframes_created,
5064 buffer_free and buffer_size to -1 by default.
5065 (_initialize_tracepoint): New setshow for circular-trace-buffer.
5066 * NEWS: Mention the circular trace buffer option.
5067
5068 2010-03-18 Tom Tromey <tromey@redhat.com>
5069
5070 * infcmd.c (finish_command_continuation): Wrap print_return_value
5071 in TRY_CATCH.
5072
5073 2010-03-18 Joel Brobecker <brobecker@adacore.com>
5074
5075 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
5076 DIE has a name before creating the associated partial symbol.
5077 (read_func_scope): Emit a complaint if the subprogram does not
5078 have a name or when we can't extract the subprogram PC bounds.
5079
5080 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
5081
5082 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
5083 instead of selected frame architecture.
5084
5085 2010-03-18 Pedro Alves <pedro@codesourcery.com>
5086
5087 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
5088 a valid selected thread, and that it is not running.
5089 (advance_command): Ditto.
5090 (finish_command): Ditto.
5091
5092 2010-03-17 Stan Shebs <stan@codesourcery.com>
5093
5094 * ax-gdb.c (require_rvalue): Disallow non-scalars.
5095
5096 * infcall.c: Include tracepoint.h.
5097 (call_function_by_hand): Disallow calls in tfind mode.
5098 * infcmd.c: Include tracepoint.h.
5099 (ensure_not_tfind_mode): New function.
5100 (continue_1): Call it.
5101 (step_1) Ditto.
5102 (jump_command): Ditto.
5103 (signal_command): Ditto.
5104 (advance_command): Ditto.
5105 (until_command): Ditto.
5106 (finish_command): Ditto.
5107 * tracepoint.h (disconnect_or_stop_tracing): Declare.
5108
5109 * ax-gdb.h (struct axs_value): New field optimized_out.
5110 (gen_trace_for_var): Add gdbarch argument.
5111 * ax-gdb.c (gen_trace_static_fields): New function.
5112 (gen_traced_pop): Call it, add gdbarch argument.
5113 (gen_trace_for_expr): Update call to it.
5114 (gen_trace_for_var): Ditto, and report optimized-out variables.
5115 (gen_struct_ref_recursive): Check for optimized-out value.
5116 (gen_struct_elt_for_reference): Ditto.
5117 (gen_static_field): Pass gdbarch instead of expression, assume
5118 optimization if field not found.
5119 (gen_var_ref): Set the optimized_out flag.
5120 (gen_expr): Error on optimized-out variable.
5121 * tracepoint.c (collect_symbol): Handle struct-valued vars as
5122 expressions, skip optimized-out variables with computed locations.
5123 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
5124 erroring out if location expression missing.
5125 (loclist_tracepoint_var_ref): Don't error out here.
5126
5127 2010-03-17 Tom Tromey <tromey@redhat.com>
5128
5129 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
5130 DWARF data is available.
5131
5132 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
5133
5134 * symfile.c (generic_load): Reset breakpoints after loading.
5135
5136 2010-03-17 Tom Tromey <tromey@redhat.com>
5137
5138 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
5139
5140 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5141
5142 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
5143 create_breakpoint call, adjust the parameters.
5144
5145 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5146 Chandru <chandru@in.ibm.com>
5147
5148 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
5149 * valarith.c (value_subscripted_rvalue): Suppress error if
5150 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
5151
5152 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
5153
5154 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
5155
5156 2010-03-16 Joel Brobecker <brobecker@adacore.com>
5157
5158 * ada-tasks.c (task_command_1): Check that the task ptid is valid
5159 before doing the associated thread switch.
5160
5161 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
5162
5163 * MAINTAINERS: Update my email address.
5164
5165 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
5166
5167 Simplify MI breakpoint setting.
5168
5169 * breakpoint.c (break_command_really): Make nonstatic and
5170 rename to...
5171 (create_breakpoint): ...this. Rename prior function by this name
5172 to...
5173 (create_breakpoint_sal): ...this.
5174 (create_breakpoints): Rename to...
5175 (create_breakpoints_sal): ...this.
5176 (set_breakpoint): Remove.
5177 * breakpoint.h: Adjust to above changes.
5178 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
5179
5180 2010-03-15 Stan Shebs <stan@codesourcery.com>
5181
5182 * ax-gdb.c: Include cp-support.h.
5183 (find_field): Remove.
5184 (gen_primitive_field): New function.
5185 (gen_struct_ref_recursive): New function.
5186 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
5187 of find_field.
5188 (gen_static_field): New function.
5189 (gen_struct_elt_for_reference): New.
5190 (gen_namespace_elt): New.
5191 (gen_maybe_namespace_elt): New.
5192 (gen_aggregate_elt_ref): New.
5193 (gen_expr): Add OP_SCOPE, display opcode name in error message.
5194
5195 2010-03-15 Tom Tromey <tromey@redhat.com>
5196
5197 * dwarf2read.c (die_needs_namespace): Also return 0 for
5198 DW_TAG_subprogram.
5199
5200 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
5201
5202 PR c++/7936:
5203 * cp-support.h: Added char *declaration element to using_direct
5204 data struct.
5205 (cp_add_using): Added char *declaration argument.
5206 (cp_add_using_directive): Ditto.
5207 (cp_lookup_symbol_imports): made extern.
5208 * cp-namespace.c: Updated with the above changes.
5209 * dwarf2read.c (read_import_statement): Ditto.
5210 (read_namespace): Ditto.
5211 (read_import_statement): Support import declarations.
5212 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
5213 declarations.
5214 Added support for 'declaration_only' search.
5215 (cp_lookup_symbol_namespace): Attempt to search for the name as
5216 is before consideration of imports.
5217 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
5218 search at every block level search.
5219 Now takes language argument.
5220 (lookup_symbol_aux): Updated.
5221
5222 2010-03-15 Tom Tromey <tromey@redhat.com>
5223
5224 * c-exp.y (name_not_typename): Add 'operator' clause.
5225
5226 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
5227
5228 * configure.ac: Exit if ${gdb_target_obs}" is not set.
5229 * configure: Regenerate.
5230
5231 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5232
5233 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
5234 and ".sdynbss". Update the comment.
5235
5236 2010-03-15 Jie Zhang <jie@codesourcery.com>
5237
5238 * MAINTAINERS: Update my email address.
5239
5240 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5241
5242 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
5243
5244 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
5245
5246 * charset.c [USE_WIN32API]: Include <windows.h>.
5247 (_initialize_charset): Correct type of w32_host_default_charset.
5248
5249 2010-03-14 Pedro Alves <pedro@codesourcery.com>
5250
5251 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
5252
5253 2010-03-12 Tom Tromey <tromey@redhat.com>
5254
5255 PR c++/9708:
5256 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
5257 in a lexical block does not need a namespace.
5258 (new_symbol) <DW_TAG_variable>: Put extern variables on
5259 list_in_scope in all cases.
5260
5261 2010-03-12 Stan Shebs <stan@codesourcery.com>
5262
5263 * ax-gdb.c (gen_expr): Add shift expressions.
5264 (gen_expr_binop_rest): Ditto.
5265
5266 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
5267
5268 * buildsym.c (finish_block): Reset using_directives pointer
5269 after block initialization.
5270
5271 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
5272
5273 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
5274 * i386-tdep.c (i386_word_names): Likewise.
5275
5276 2010-03-12 Pedro Alves <pedro@codesourcery.com>
5277
5278 * target.c (memory_xfer_partial): Don't use the stack cache if
5279 inspecting trace frames.
5280 * tracepoint.c (finish_tfind_command): Invalidate the target
5281 dcache.
5282
5283 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
5286 for the PIC displacement, print also the displacement value.
5287 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
5288
5289 2010-03-10 Kevin Buettner <kevinb@redhat.com>
5290
5291 * remote-mips.c (close_ports, mips_initialize_cleanups)
5292 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
5293 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
5294 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
5295 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
5296 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
5297 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
5298 comments describing each of these functions.
5299 (mips_enter_debug, mips_exit_debug, common_open)
5300 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
5301 blank line after the comment describing the function.
5302
5303 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5304
5305 * solib-svr4.c (svr4_exec_displacement): Return now success, new
5306 parameter displacementp. Update comment.
5307 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
5308 element exists. Return if svr4_exec_displacement was not successful.
5309 Update comment.
5310
5311 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5312 Daniel Jacobowitz <dan@codesourcery.com>
5313
5314 * solib-svr4.c (read_program_header): Support type == -1 to read
5315 all program headers.
5316 (read_program_headers_from_bfd): New function.
5317 (svr4_static_exec_displacement): Remove and move the comment ...
5318 (svr4_exec_displacement): ... here. Remove variable found. New
5319 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
5320 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
5321 targets using read_program_headers_from_bfd. Remove the call of
5322 svr4_static_exec_displacement.
5323
5324 2010-03-10 Tom Tromey <tromey@redhat.com>
5325
5326 * dwarf2read.c (struct pubnames_header): Remove.
5327 (_PUBNAMES_HEADER): Remove.
5328 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
5329 (struct aranges_header): Remove.
5330 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
5331 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
5332 (PUBNAMES_SECTION): Remove.
5333 (ARANGES_SECTION): Remove.
5334 (dwarf2_locate_sections): Don't handle pubnames or aranges.
5335 (dwarf2_build_psymtabs): Remove dead code.
5336 (dwarf2_build_psymtabs_easy): Remove.
5337
5338 2010-03-10 Tom Tromey <tromey@redhat.com>
5339
5340 * elfread.c (elf_symfile_read): Don't call
5341 dwarf2_build_frame_info.
5342 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
5343 (struct dwarf2_per_objfile) <objfile>: New field.
5344 (dwarf2_has_info): Now idempotent. Set objfile field.
5345 (dwarf2_read_section): Check and set readin field. Call
5346 posix_madvise.
5347 (dwarf2_build_psymtabs): Don't read all sections.
5348 (read_type_comp_unit_head): Read types section.
5349 (create_debug_types_hash_table): Likewise.
5350 (init_cu_die_reader): Add asserts.
5351 (process_type_comp_unit): Add assert.
5352 (dwarf2_build_psymtabs_hard): Read info section.
5353 (load_partial_comp_unit): Add assert.
5354 (create_all_comp_units): Read info section.
5355 (load_full_comp_unit): Likewise.
5356 (dwarf2_ranges_read): Read ranges section.
5357 (dwarf2_record_block_ranges): Add assert.
5358 (dwarf2_read_abbrevs): Read abbrev section.
5359 (read_indirect_string): Read str section.
5360 (dwarf_decode_line_header): Read line section.
5361 (read_signatured_type_at_offset): Read types section.
5362 (dwarf_decode_macros): Read macinfo section.
5363 (dwarf2_symbol_mark_computed): Read loc section.
5364 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
5365 dwarf2_build_frame_info.
5366 (dwarf2_build_frame_info): Unconditionally set
5367 dwarf2_frame_objfile_data on the objfile.
5368 * configure.ac: Check for posix_madvise.
5369 * config.in, configure: Rebuild.
5370
5371 2010-03-10 Tom Tromey <tromey@redhat.com>
5372
5373 * xcoffread.c (xcoff_start_psymtab): Update.
5374 (xcoff_end_psymtab): Update.
5375 * psymtab.c (allocate_psymtab): Remove dead code.
5376 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
5377 void*.
5378 * mdebugread.c (parse_partial_symbols): Update.
5379 (new_psymtab): Likewise.
5380 * dwarf2read.c (process_psymtab_comp_unit): Update.
5381 (psymtab_to_symtab_1): Update.
5382 * dbxread.c (start_psymtab): Update.
5383 (end_psymtab): Likewise.
5384
5385 2010-03-10 Tom Tromey <tromey@redhat.com>
5386
5387 * xcoffread.c: Include psymtab.h.
5388 (xcoff_sym_fns): Update.
5389 * symtab.h (struct partial_symbol): Remove.
5390 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
5391 (struct partial_symtab): Remove.
5392 (PSYMTAB_TO_SYMTAB): Remove.
5393 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
5394 (find_pc_sect_psymtab): Remove.
5395 (find_pc_sect_symtab_via_partial): Declare.
5396 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
5397 (find_main_psymtab): Remove.
5398 (find_main_filename): Declare.
5399 (fixup_psymbol_section): Remove.
5400 (fixup_section): Declare.
5401 * symtab.c: Include psymtab.h.
5402 (lookup_symtab): Use lookup_symtab method.
5403 (lookup_partial_symtab): Remove.
5404 (find_pc_sect_psymtab_closer): Remove.
5405 (find_pc_sect_psymtab): Remove.
5406 (find_pc_sect_symtab_via_partial): New function.
5407 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
5408 (fixup_section): No longer static.
5409 (fixup_psymbol_section): Remove.
5410 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
5411 (lookup_global_symbol_from_objfile): Likewise.
5412 (lookup_symbol_aux_psymtabs): Remove.
5413 (lookup_symbol_aux_quick): New function.
5414 (lookup_symbol_global): Use lookup_symbol_aux_quick.
5415 (lookup_partial_symbol): Remove.
5416 (basic_lookup_transparent_type_quick): New function.
5417 (basic_lookup_transparent_type): Use it.
5418 (find_main_psymtab): Remove.
5419 (find_main_filename): New function.
5420 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
5421 (find_line_symtab): Use expand_symtabs_with_filename method.
5422 (output_partial_symbol_filename): New function.
5423 (sources_info): Use map_partial_symbol_filenames.
5424 (struct search_symbols_data): New type.
5425 (search_symbols_file_matches): New function.
5426 (search_symbols_name_matches): Likewise.
5427 (search_symbols): Use expand_symtabs_matching method.
5428 (struct add_name_data): Rename from add_macro_name_data.
5429 (add_macro_name): Update.
5430 (add_partial_symbol_name): New function.
5431 (default_make_symbol_completion_list): Use
5432 map_partial_symbol_names.
5433 (struct add_partial_symbol_name): New type.
5434 (maybe_add_partial_symtab_filename): New function.
5435 (make_source_files_completion_list): Use
5436 map_partial_symbol_filenames.
5437 (expand_line_sal): Use expand_symtabs_with_filename method.
5438 * symmisc.c: Include psymtab.h.
5439 (print_objfile_statistics): Use print_stats method.
5440 (dump_objfile): Use dump method.
5441 (dump_psymtab, maintenance_print_psymbols)
5442 (maintenance_info_psymtabs, maintenance_check_symtabs)
5443 (extend_psymbol_list): Remove.
5444 * symfile.h (struct quick_symbol_functions): New struct.
5445 (struct sym_fns) <qf>: New field.
5446 (sort_pst_symbols): Remove.
5447 (increment_reading_symtab): Declare.
5448 * symfile.c: Include psymtab.h.
5449 (compare_psymbols, sort_pst_symbols): Remove.
5450 (psymtab_to_symtab): Remove.
5451 (increment_reading_symtab): New function.
5452 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
5453 method.
5454 (set_initial_language): Use find_main_filename.
5455 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
5456 (free_named_symtabs): Remove unused code.
5457 (start_psymtab_common, add_psymbol_to_bcache)
5458 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
5459 Remove.
5460 * stack.c: Include psymtab.h, symfile.h.
5461 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
5462 * source.h (psymtab_to_fullname): Don't declare.
5463 * source.c: Include psymtab.h.
5464 (select_source_symtab): Use find_last_source_symtab method.
5465 (forget_cached_source_info): Use forget_cached_source_info
5466 method.
5467 (find_and_open_source): No longer static.
5468 (psymtab_to_fullname): Remove.
5469 * somread.c: Include psymtab.h.
5470 (som_sym_fns): Update.
5471 * psympriv.h: New file.
5472 * psymtab.h: New file.
5473 * psymtab.c: New file.
5474 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5475 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5476 * objfiles.c: Include psymtab.h.
5477 (objfile_relocate1): Use relocate method.
5478 (objfile_has_partial_symbols): Use has_symbols method.
5479 * mipsread.c: Include psymtab.h.
5480 (ecoff_sym_fns): Update.
5481 * mi/mi-cmd-file.c: Include psymtab.h.
5482 (print_partial_file_name): New function.
5483 (mi_cmd_file_list_exec_source_files): Use
5484 map_partial_symbol_filenames.
5485 * mdebugread.c: Include psympriv.h.
5486 * machoread.c: Include psympriv.h.
5487 (macho_sym_fns): Update.
5488 * m2-exp.y (yylex): Use lookup_symtab.
5489 * elfread.c: Include psympriv.h.
5490 (elf_sym_fns): Update.
5491 * dwarf2read.c: Include psympriv.h.
5492 * dbxread.c: Include psympriv.h.
5493 (aout_sym_fns): Update.
5494 * cp-support.c: Include psymtab.h.
5495 (read_in_psymtabs): Remove.
5496 (make_symbol_overload_list_qualified): Use
5497 expand_symtabs_for_function method.
5498 * coffread.c: Include psympriv.h.
5499 (coff_sym_fns): Update.
5500 * blockframe.c: Include psymtab.h.
5501 (find_pc_partial_function): Use find_pc_sect_symtab method.
5502 * ada-lang.h (ada_update_initial_language): Update.
5503 * ada-lang.c: Include psymtab.h.
5504 (ada_update_initial_language): Remove 'main_pst' argument.
5505 (ada_lookup_partial_symbol): Remove.
5506 (struct ada_psym_data): New type.
5507 (ada_add_psyms): New function.
5508 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5509 (struct add_partial_datum): New type.
5510 (ada_add_partial_symbol_completions): New function.
5511 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5512 (ada_exception_support_info_sniffer): Update.
5513 * Makefile.in (SFILES): Add psymtab.c.
5514 (COMMON_OBS): Add psymtab.o.
5515 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5516
5517 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5518
5519 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5520
5521 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5522
5523 PR C++/11236:
5524 * cp-namespace.c (cp_add_using): Deleted.
5525 (cp_add_using_directive): Use obstack allocations.
5526 Merged the function cp_add_using into this one.
5527 Added 'struct obstack *' argument.
5528 (cp_scan_for_anonymous_namespaces): Updated.
5529 * cp-support.h: Updated.
5530 * dwarf2read.c (read_import_statement): Updated.
5531 (read_namespace): Updated.
5532
5533 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5534
5535 * windows-nat.c (cygwin_conv_path): Remove old macro.
5536
5537 2010-03-10 Pedro Alves <pedro@codesourcery.com>
5538
5539 * breakpoint.c (condition_command): Handle watchpoint conditions.
5540 (is_hardware_watchpoint): Add comment.
5541 (is_watchpoint): New.
5542 (update_watchpoint): Don't reparse the watchpoint's condition
5543 unless necessary.
5544 (WP_IGNORE): New.
5545 (watchpoint_check): Use it.
5546 (bpstat_check_watchpoint): Handle it.
5547 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5548 conditions in a frame where it makes sense.
5549 (watch_command_1): Store the innermost block of the condition
5550 expression.
5551 (delete_breakpoint): Delete the watchpoint condition expression.
5552 * breakpoint.h (struct bp_location) <cond>: Update comment.
5553 (struct breakpoint): New field `cond_exp_valid_block'.
5554
5555 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5556
5557 Adjust handling of Ada DIEs after dwarf2_physname patch.
5558 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5559
5560 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5561 Pierre Muller <muller@ics.u-strasbg.fr>
5562
5563 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5564 from/to posix/win32.
5565 (windows_make_so): Use non-Cygwin 1.7 specific function.
5566 (windows_create_inferior): Make sure that cygallargs points to
5567 original args in non Cygwin 1.7. case.
5568
5569 2010-03-09 Michael Snyder <msnyder@vmware.com>
5570
5571 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5572 after target_read_memory to get host byte order.
5573 (i386_process_record): Ditto.
5574
5575 2010-03-09 Keith Seitz <keiths@redhat.com>
5576
5577 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5578 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5579 print out const or volatile qualifiers, too.
5580 (c_type_print_args): Add parameters show_artificial and language.
5581 Skip artificial parameters when requested.
5582 Use the appropriate language printer.
5583 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5584 parameters and pass language_c.
5585 * dwarf2read.c (die_list): New file global.
5586 (struct partial_die_info): Update comments for name field.
5587 (pdi_needs_namespace): Renamed to ...
5588 (die_needs_namespace): ... this. Rewrite.
5589 (dwarf2_linkage_name): Remove.
5590 (add_partial_symbol): Do not predicate the call to
5591 partial_die_full_name based on pdi_needs_namespace.
5592 Remove call to cp_check_possible_namespace_symbols and associated
5593 outdated comments.
5594 (guess_structure_name): Do not inspect child subprogram DIEs.
5595 (dwarf2_fullname): Update comments.
5596 Use die_needs_namespace to assist in computing the name.
5597 (read_func_scope): Use dwarf2_name to get the DIE's name.
5598 Use dwarf2_physname to get the "linkage name" of the DIE.
5599 (dwarf2_add_member_field): Use dwarf2_physname instead of
5600 dwarf2_linkage_name.
5601 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5602 (determine_class): Remove.
5603 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5604 except Ada.
5605 (new_symbol): Unconditionally call dwarf2_name.
5606 Compute the "linkage name" using dwarf2_physname.
5607 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5608 When determining to scan for anonymous C++ namespaces, ignore
5609 the linkage name.
5610 (dwarf2_physname): New function.
5611 (dwarf2_full_name): Move content to new function and call
5612 that.
5613 (dwarf2_compute_name): "New" function.
5614 (_initialize_dwarf2_read): Initialize die_list.
5615 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5616 physname.
5617 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5618 without a demangled name.
5619 Print out type information for non-virtual methods.
5620 * linespec.c (decode_line_1): Force ANY string using "::" (or
5621 "." for java) to use decode_compound, and clean up any stray quoting.
5622 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5623 (decode_compound): Stop consuming at an open parenthesis.
5624 Keep template parameters.
5625 Keep any overload information.
5626 Keep keywords like "const".
5627 Remove paren_pointer.
5628 Move is_quoted check from set_flags to here.
5629 Remove #if 0 code from 2000. Ten years is long enough.
5630 (find_method): Before comparing symbol names, canonicalize the string
5631 from the user.
5632 If a specific overload is requested, find it. Otherwise throw an error.
5633 (find_method_overload_end): New function.
5634 (set_flags): Remove.
5635 (decode_compound): Assume that parentheses are matched.
5636 It's a lot easier.
5637 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5638 to cplus_demangle.
5639 * linespec.c (decode_line_1): Keep important keywords like
5640 "const" and "volatile".
5641 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5642 * typeprint.h (c_type_print_args): Add declaration.
5643 * ui-file.c (do_ui_file_obsavestring): New function.
5644 (ui_file_obsavestring): New function.
5645 * ui-file.h (ui_file_obsavestring): Add declaration.
5646 * valops.c (find_overload_match): Resolve the object to
5647 a non-pointer type.
5648 If the object is a data member, search the object for the member
5649 and return with staticp set.
5650 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5651 Do not attempt to extract a function name from non-function types.
5652 If the extracted function name and the original name are the same,
5653 we don't have a C++ method.
5654
5655 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5656 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
5657
5658 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5659 and arguments from symbol lookups.
5660 * ax-gdb.c (gen_expr): Likewise.
5661 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5662 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5663 lookup_possible_namespace_symbol): Likewise.
5664 * cp-support.c (read_in_psymtabs): Likewise.
5665 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5666 * language.h (la_lookup_symbol_nonlocal): Likewise.
5667 * scm-valprint.c (scm_inferior_print): Likewise.
5668 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5669 * solib-svr.c (elf_lookup_lib): Likewise.
5670 * solib.c (show_auto_solib_add): Likewise.
5671 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5672 * symmisc.c (maintenance_check_symtabs): Likewise.
5673 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5674 lookup_symbol_aux_local, lookup_symbol_aux_block,
5675 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5676 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5677 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5678 basic_lookup_transparent_type, find_main_psymtab,
5679 lookup_block_symbol): Likewise.
5680 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5681 lookup_symbol_global, lookup_symbol_aux_block,
5682 lookup_symbol_partial_symbol, lookup_block_symbol,
5683 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5684
5685 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5686
5687 * python/python-internal.h: Include symtab.h.
5688
5689 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5690 Pierre Muller <muller@ics.u-strasbg.fr>
5691
5692 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5693 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5694 indentation.
5695
5696 2010-03-08 Tom Tromey <tromey@redhat.com>
5697
5698 * breakpoint.c (breakpoint_1): Add "QUIT".
5699
5700 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5701 Pedro Alves <pedro@codesourcery.com>
5702
5703 * solib.c (solib_find): Replace extension if
5704 solib_symbols_extension is set in the target gdbarch.
5705 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5706 solib_symbols_extension to "sym".
5707 * gdbarch.sh (solib_symbols_extension): New variable.
5708 (pstring): New function.
5709 * gdbarch.h, gdbarch.c: Regenerate.
5710
5711 2010-03-08 Tom Tromey <tromey@redhat.com>
5712
5713 PR cli/9591:
5714 * NEWS: Update.
5715 * utils.c: Include main.h.
5716 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5717 (defaulted_query): Use default answer if `batch_flag'.
5718 * main.h (batch_flag): Declare.
5719 * main.c (batch_flag): New global.
5720 (captured_main): Remove 'batch'. Update.
5721
5722 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5723
5724 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5725 and Kevin Buettner:
5726
5727 * remote-mips.c (rockhopper_ops): New target_ops struct.
5728 (MON_ROCKHOPPER): New mips_monitor_type.
5729 (read_hex_value): New function.
5730 (mips_request): Send 8-byte values with a 'T' packet. Read the
5731 packet argument as a string and use read_hex_value to parse it.
5732 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5733 (rockhopper_open): New function.
5734 (mips_wait): Read the PC, FP and SP fields as strings. Use
5735 read_hex_value to parse them and mips_set_register to commit them.
5736 (mips_set_register): New function.
5737 (mips_fetch_registers): Do not cast register value to "unsigned"
5738 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5739 (mips_store_registers): Use a 'T' packet to set registers when
5740 using MON_ROCKHOPPER.
5741 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5742 and expect the total to be printed before the entry address.
5743 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5744
5745 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5746
5747 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5748 Change return value to int. Store value fetched in location
5749 addressed by `val'. Use function's return value as success
5750 or failure indicator. Adjust all callers.
5751
5752 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5753
5754 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5755
5756 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5757 Hui Zhu <teawater@gmail.com>
5758
5759 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5760 tmp_to_stopped_data_address.
5761 (record_open): Reset tmp_to_stopped_by_watchpoint and
5762 tmp_to_stopped_data_address.
5763 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5764 to_stopped_data_address.
5765
5766 2010-03-08 Hui Zhu <teawater@gmail.com>
5767
5768 * i386-tdep.c (i386_process_record): Initialize regnum.
5769
5770 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5771
5772 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5773 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5774
5775 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5776
5777 Memory error when reading wrong core file.
5778 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5779 errors while reading the inferior memory, and return zero if
5780 an exception was raised.
5781
5782 2010-03-07 Michael Snyder <msnyder@vmware.com>
5783
5784 * record.c (record_restore): Rename tmpu8 to rectype.
5785
5786 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5787 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5788
5789 (i386_record_push): Rename local tmpulongest to addr.
5790
5791 (i386_process_record): Rename local tmpulongest to addr.
5792
5793 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5794 addr64.
5795
5796 Rename local variable tmpu8 to opcode8 and regnum.
5797
5798 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5799
5800 * remote.c (remote_get_ada_task_ptid): New function.
5801 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5802
5803 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5804
5805 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5806 block. Define helper macros to reduce ifdefs in code.
5807 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5808 size. Call unadorned GetModuleFileNameEx rather than
5809 GetModuleFileNameEx*.
5810 (windows_make_so): Use __PMAX to denote maximum buffer size and
5811 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5812 appropriate.
5813 (get_image_name): Use __PMAX to denote maximum buffer size.
5814 (handle_load_dll): Likewise.
5815 (windows_pid_to_exec_file): Likewise.
5816 (windows_create_inferior): Add many accommodations for older Cygwin and
5817 non-Cygwin.
5818 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5819 __USEWIDE conditional.
5820 (bad_GetModuleFileNameExA): Likewise.
5821 (_initialize_loadable): Just use real function names without the dyn_
5822 part since they are defined earlier.
5823
5824 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5825 Tom Tromey <tromey@redhat.com>
5826
5827 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5828 (parse_escape): Likewise.
5829 * python/py-utils.c (unicode_to_target_string): Update.
5830 (unicode_to_target_python_string): Update.
5831 (target_string_to_unicode): Update.
5832 * printcmd.c (printf_command): Update.
5833 * p-exp.y (yylex): Update.
5834 * objc-exp.y (yylex): Update.
5835 * mi/mi-parse.c: Include charset.h.
5836 (mi_parse_escape): New function.
5837 (mi_parse_argv): Use it.
5838 * jv-exp.y (yylex): Update.
5839 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5840 function.
5841 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5842 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5843 * gdbarch.c: Rebuild.
5844 * gdbarch.h: Rebuild.
5845 * defs.h (parse_escape): Update.
5846 * cli/cli-setshow.c: Include arch-utils.h.
5847 (do_setshow_command): Update.
5848 * cli/cli-cmds.c (echo_command): Update.
5849 * charset.h (target_charset, target_wide_charset): Update.
5850 * charset.c: Include arch-utils.h.
5851 (target_charset_name): Default to "auto".
5852 (target_wide_charset_name): Likewise.
5853 (show_target_charset_name): Handle "auto".
5854 (show_target_wide_charset_name): Likewise.
5855 (be_le_arch): New global.
5856 (set_be_le_names): Add 'gdbarch' argument.
5857 (validate): Likewise. Don't call set_be_le_names.
5858 (set_charset_sfunc, set_host_charset_sfunc)
5859 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5860 Update.
5861 (target_charset): Add 'gdbarch' argument.
5862 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5863 (auto_target_charset_name): New global.
5864 (default_auto_charset, default_auto_wide_charset): New functions.
5865 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5866 for target charsets. Copy result of nl_langinfo. Use GetACP if
5867 USE_WIN32API.
5868 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5869 remove 'byte_order' argument. Update.
5870 (classify_type): Likewise.
5871 (c_emit_char): Update.
5872 (c_printchar): Update.
5873 (c_printstr): Update.
5874 (c_get_string): Update.
5875 (evaluate_subexp_c): Update.
5876 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5877 Declare.
5878 * python/python.c (gdbpy_target_charset): New function.
5879 (gdbpy_target_wide_charset): Likewise.
5880 (GdbMethods): Update.
5881 * NEWS: Update.
5882
5883 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5884
5885 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5886 off high address bits.
5887
5888 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5889
5890 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5891 address as UnsignedLongLong, not LongLong.
5892
5893 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5894 Pedro Alves <pedro@codesourcery.com>
5895
5896 * remote-mips.c (gdbthread.h): Include.
5897 (remote_mips_ptid): Declare.
5898 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5899 (common_open): Set inferior_ptid, add it as an inferior, and
5900 as a thread too. Delete FIXME comment regarding start_remote().
5901 (mips_close): Invoke generic_mourn_inferior().
5902 (mips_kill): Make sure that target_mourn_inferior is invoked.
5903 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5904 it's now invoked from mips_close().
5905 (mips_load): Don't null out inferior_ptid. Don't call
5906 clear_symtab_users().
5907 (mips_thread_alive, mips_pid_to_str): New functions.
5908 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5909 to_thread_alive and to_pid_to_str operations.
5910
5911 2010-03-04 Tom Tromey <tromey@redhat.com>
5912
5913 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5914 in DWARF 3 and later.
5915 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5916
5917 2010-03-04 Keith Seitz <keiths@redhat.com>
5918
5919 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5920 If the filename portion of the linespec was quoted, recheck the
5921 remainder for additional quoting.
5922 (locate_first_half): Skip over completer chars, too.
5923
5924 2010-03-04 Tom Tromey <tromey@redhat.com>
5925
5926 * printcmd.c (printf_command): Pass dummy argument to
5927 printf_filtered.
5928
5929 2010-03-04 Doug Evans <dje@google.com>
5930
5931 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5932 unwound_fp.
5933
5934 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5935
5936 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5937
5938 * breakpoint.c (update_watchpoint): Create a sentinel location if
5939 the software watchpoint isn't watching any memory.
5940 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5941
5942 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5943
5944 * utils.c (fputs_maybe_filtered): Check if there's already a top
5945 level interpreter before dereferencing it. If there isn't one,
5946 don't paginate either.
5947
5948 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5949
5950 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5951 the state right when single stepping.
5952 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5953 Get the next PC along with the instruction state.
5954 (thumb_get_next_pc): Remove.
5955 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5956
5957 2010-03-04 Hui Zhu <teawater@gmail.com>
5958
5959 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5960
5961 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5962
5963 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5964 top level interpreter is MI.
5965
5966 2010-03-03 Stan Shebs <stan@codesourcery.com>
5967
5968 * remote.c (remote_download_tracepoint): Iterate over locations.
5969 * tracepoint.c (validate_actionline): Ditto.
5970 (encode_actions): Add location argument.
5971 (trace_dump_command): Check all locations to see if stepping
5972 frame.
5973
5974 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5975 Eli Zaretskii <eliz@gnu.org>
5976
5977 * NEWS: Add X86 general purpose registers section.
5978
5979 2010-03-03 Tom Tromey <tromey@redhat.com>
5980
5981 PR mi/11098:
5982 * varobj.c (install_new_value): Handle case where new print_value
5983 is NULL.
5984
5985 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5986
5987 PR gdb/11345:
5988 * printcmd.c (printf_command): Print end of format string using
5989 printf_filtered.
5990
5991 2010-03-02 Tom Tromey <tromey@redhat.com>
5992
5993 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5994 * defs.h (read_command_lines_1): Add missing 'void'.
5995 * cli/cli-script.c (recurse_read_control_structure): Add missing
5996 'void'.
5997 (read_next_line): Likewise.
5998 (read_command_lines_1): Likewise.
5999
6000 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6001
6002 * spu-tdep.c (spu_analyze_prologue): Track instruction to
6003 store backchain as part of prologue.
6004
6005 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
6006
6007 * progspace.c (update_address_spaces): Update inferior address spaces
6008 also.
6009
6010 2010-03-02 Doug Evans <dje@google.com>
6011
6012 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
6013 lowpc,highpc args to addrmap_set_empty.
6014
6015 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
6016
6017 * amd64-tdep.c (amd64_byte_names): New.
6018 (amd64_word_names): Likewise.
6019 (amd64_dword_names): Likewise.
6020 (amd64_pseudo_register_name): Likewise.
6021 (amd64_pseudo_register_read): Likewise.
6022 (amd64_pseudo_register_write): Likewise.
6023 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
6024 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
6025 set_gdbarch_pseudo_register_write and
6026 set_tdesc_pseudo_register_name. Don't call
6027 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
6028
6029 * i386-tdep.c (i386_num_mmx_regs): Removed.
6030 (i386_num_pseudo_regs): Likewise.
6031 (i386_byte_names): New.
6032 (i386_word_names): Likewise.
6033 (i386_byte_regnum_p): Likewise.
6034 (i386_word_regnum_p): Likewise.
6035 (i386_mmx_regnum_p): Updated.
6036 (i386_pseudo_register_name): Make it global. Handle byte and
6037 word pseudo-registers.
6038 (i386_pseudo_register_read): Likewise.
6039 (i386_pseudo_register_write): Likewise.
6040 (i386_pseudo_register_type): Handle byte, word and dword
6041 pseudo-registers
6042 (i386_register_reggroup_p): Don't include pseudo
6043 registers, except for MXX, in any register groups. Don't
6044 include pseudo byte, word, dword registers in general_reggroup.
6045 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
6046 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
6047 pseudo-registers after word pseudo-registers. Call
6048 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
6049
6050 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
6051 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
6052 eax_regnum.
6053 (i386_byte_regnum_p): New.
6054 (i386_word_regnum_p): Likewise.
6055 (i386_dword_regnum_p): Likewise.
6056 (i386_pseudo_register_name): Likewise.
6057 (i386_pseudo_register_read): Likewise.
6058 (i386_pseudo_register_write): Likewise.
6059
6060 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6061
6062 * target-descriptions.c (tdesc_type): Remove
6063 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6064 (tdesc_predefined_types): Likewise.
6065 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
6066 if flag name is empty.
6067 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
6068
6069 * features/i386/32bit-core.xml: Define i386_eflags.
6070 * features/i386/64bit-core.xml: Likewise.
6071
6072 * features/i386/32bit-sse.xml: Define i386_mxcsr.
6073 * features/i386/64bit-sse.xml: Likewise.
6074
6075 * features/i386/amd64-linux.c: Regenerated.
6076 * features/i386/amd64.c: Likewise.
6077 * features/i386/i386-linux.c: Likewise.
6078 * features/i386/i386.c: Likewise.
6079
6080 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
6081
6082 * gdbtypes.c (append_composite_type_field_raw): New.
6083 (append_composite_type_field_aligned): Use the new function.
6084 * gdbtypes.h (append_composite_type_field_raw): Declare.
6085 * target-descriptions.c (struct tdesc_type_field): Add start and end.
6086 (struct tdesc_type_flag): New type.
6087 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
6088 kind. Add size to u.u. Add u.f for flags.
6089 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
6090 (tdesc_free_type): Likewise.
6091 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
6092 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
6093 (tdesc_add_bitfield, tdesc_add_flag): New.
6094 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
6095 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
6096 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
6097 current_type. Add current_type_size and current_type_is_flags.
6098 (tdesc_start_union): Clear the new fields.
6099 (tdesc_start_struct, tdesc_start_flags): New.
6100 (tdesc_start_field): Handle struct fields, including bitfields.
6101 (field_attributes): Make type optional. Add start and end.
6102 (union_children): Rename to struct_union_children.
6103 (union_attributes): Rename to struct_union_attributes. Add optional
6104 size.
6105 (flags_attributes): New.
6106 (feature_children): Add struct and flags.
6107 * features/gdb-target.dtd: Add flags and struct to features.
6108 Make field type optional. Add field start and end.
6109
6110 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6111
6112 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
6113 (amd64_linux_read_description): Likewise.
6114 (_initialize_amd64_linux_nat): Set to_read_description to
6115 amd64_linux_read_description.
6116
6117 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
6118 (amd64_linux_register_name): Removed.
6119 (amd64_linux_register_type): Likewise.
6120 (amd64_linux_core_read_description): New.
6121 (amd64_linux_init_abi): Set target description to
6122 tdesc_amd64_linux if needed. Support orig_rax in target
6123 description. Don't call set_gdbarch_register_name nor
6124 set_gdbarch_register_type. Call
6125 set_gdbarch_core_read_description.
6126 (_initialize_amd64_linux_tdep): Call
6127 initialize_tdesc_amd64_linux.
6128
6129 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
6130
6131 * amd64-tdep.c: Include "features/i386/amd64.c".
6132 (amd64_register_names): Removed.
6133 (amd64_register_name): Likewise.
6134 (amd64_register_type): Likewise.
6135 (amd64_init_abi): Set num_core_regs and register_names. Set
6136 target description to tdesc_amd64 if needed. Don't call
6137 set_gdbarch_register_name nor set_gdbarch_register_type.
6138 (_initialize_amd64_tdep): New.
6139
6140 * i386-linux-nat.c (i386_linux_read_description): New.
6141 (_initialize_i386_linux_nat): Set to_read_description to
6142 i386_linux_read_description.
6143
6144 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
6145 (i386_linux_register_name): Removed.
6146 (i386_linux_core_read_description): New.
6147 (i386_linux_read_description): Likewise.
6148 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
6149 Set target description to tdesc_i386_linux if needed. Support
6150 orig_eax. Set register_reggroup_p. Call
6151 set_gdbarch_core_read_description.
6152 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
6153
6154 * i386-linux-tdep.h (tdesc_i386_linux): New.
6155
6156 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
6157 with I387_NUM_REGS.
6158
6159 * i386-tdep.c: Include "features/i386/i386.c".
6160 (i386_register_names): Make it const.
6161 (i386_mmx_names): Likewise.
6162 (i386_num_register_names): Removed.
6163 (i386_register_name): Likewise.
6164 (i386_eflags_type): Likewise.
6165 (i386_mxcsr_type): Likewise.
6166 (i386_sse_type): Likewise.
6167 (i386_register_type): Likewise.
6168 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
6169 (i386_pseudo_register_name): New.
6170 (i386_pseudo_register_type): Likewise.
6171 (i386_mmx_type): Make it static.
6172 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
6173 I387_NUM_REGS. Set num_core_regs and register_names. Don't
6174 call set_gdbarch_register_name nor set_gdbarch_register_type.
6175 Set register_reggroup_p. Set target description to tdesc_i386
6176 if needed. Call set_tdesc_pseudo_register_type,
6177 set_tdesc_pseudo_register_name and tdesc_use_registers.
6178 (_initialize_i386_tdep): Call initialize_tdesc_i386.
6179 initialize_tdesc_x86_64.
6180
6181 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
6182 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
6183 register_names, tdesc and register_reggroup_p.
6184 (I386_NUM_FREGS): Removed.
6185 (i386_eflags_type): Likewise.
6186 (i386_mxcsr_type): Likewise.
6187 (i386_mmx_type): Likewise.
6188 (i386_sse_type): Likewise.
6189 (i386_register_name): Likewise.
6190 (i386_regnum): Add I386_MXCSR_REGNUM.
6191 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
6192
6193 * i387-tdep.h (I387_NUM_REGS): New.
6194
6195 * regformats/i386/i386-linux.dat: Generated.
6196 * regformats/i386/i386.dat: Likewise.
6197 * regformats/i386/amd64-linux.dat: Likewise.
6198 * regformats/i386/amd64.dat: Likewise.
6199
6200 * regformats/reg-i386-linux.dat: Removed.
6201 * regformats/reg-i386.dat: Likewise.
6202 * regformats/reg-x86-64-linux.dat: Likewise.
6203 * regformats/reg-x86-64.dat: Likewise.
6204
6205 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
6206
6207 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
6208 cygwin_conv_path API rather than the deprecated
6209 cygwin_conv_to_full_posix_path.
6210 * windows-nat.c:
6211 (GetModuleFileNameExA): Undefine for Cygwin.
6212 (GetModuleFileNameExW): Define for Cygwin.
6213 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
6214 Call GetModuleFileNameExW and convert path to POSIX using
6215 cygwin_conv_path.
6216 (windows_make_so): Always define p. Drop unused variable m.
6217 Don't use Win32 functions to check file existance, rather use
6218 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
6219 Use canonicalize_file_name to get full path.
6220 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
6221 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
6222 use correct target buffer size in call to WideCharToMultiByte.
6223 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
6224 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
6225 (windows_create_inferior): Convert all paths and arguments to wchar_t
6226 and use CreateProcessW on Cygwin.
6227 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
6228 (bad_GetModuleFileNameExA): Undefine for Cygwin.
6229 (bad_GetModuleFileNameExW): Define for Cygwin.
6230 (_initialize_loadable): Load GetModuleFileNameExW into
6231 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
6232
6233 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
6234
6235 PR python/11036
6236 * python/py-frame.c (frapy_read_var): Add block argument and logic
6237 to cope with user provided blocks.
6238
6239 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6240
6241 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
6242 New comment.
6243
6244 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
6245
6246 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
6247 (COMMON_OBS): ... to here since it's used unconditionally.
6248 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
6249 (SFILES): To here.
6250
6251 2010-02-26 David Daney <ddaney@caviumnetworks.com>
6252
6253 * mips-linux-tdep.c: Update struct sigframe comments.
6254 (SIGFRAME_CODE_OFFSET): Delete macro.
6255 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
6256 this_frame's sp.
6257 (mips_linux_n32n64_sigframe_init): Same.
6258
6259 2010-02-26 Kevin Buettner <kevinb@redhat.com>
6260
6261 * remote-mips.c (mips_load): Don't use pseudo-register when
6262 invalidating regcache.
6263
6264 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
6265
6266 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
6267
6268 2010-02-26 Pedro Alves <pedro@codesourcery.com>
6269
6270 * NEWS: Add "New targets" section, and mention ARM Symbian
6271 support.
6272
6273 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
6274
6275 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
6276 add ADDR_SIZE member.
6277 (allocate_piece_closure): Update.
6278 (copy_pieced_value_closure): Likewise.
6279 (dwarf2_evaluate_loc_desc): Likewise.
6280 (read_pieced_value): Use DWARF address size instead of
6281 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
6282
6283 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
6284 Tom Tromey <tromey@redhat.com>
6285
6286 * python/py-type.c (typy_lookup_typename): Add in block argument.
6287 If provided restrict lookup to specified blocks.
6288 (gdbpy_lookup_type): Likewise.
6289 (typy_lookup_type): Likewise.
6290
6291 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
6292
6293 Symbian config
6294
6295 gdb/
6296 * arm-symbian-tdep.c: New.
6297 * configure.tgt (arm*-*-symbianelf*): New target.
6298 (*-*-symbianelf*): New OS.
6299 * osabi.c (gdb_osabi_names): Add Symbian.
6300 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
6301 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
6302 (ALLDEPFILES): Add arm-symbian-tdep.c.
6303
6304 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
6305
6306 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
6307
6308 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6309
6310 * mi/mi-main.c (mi_cmd_execute): Fix typo.
6311
6312 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
6313 Tom Tromey <tromey@redhat.com>
6314 Thiago Jung Bauermann <bauerman@br.ibm.com>
6315
6316 * python/python.c (_initialize_python): Call
6317 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
6318 gdbpy_initialize_blocks.
6319 * python/python-internal.h: Declare struct symbol, block and
6320 symtab_and_line. Declare block_object_type and
6321 symbol_object_type
6322 (gdbpy_lookup_symbol gdbpy_block_for_pc)
6323 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
6324 (symbol_to_symbol_object, block_to_block_object)
6325 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
6326 (gdbpy_initialize_blocks ): Declare.
6327 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
6328 (frapy_select): Add methods.
6329 (frapy_read_var): Add symbol branch.
6330 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
6331 py-block.
6332 (SUBDIR_PYTHON_SRCS): Likewise.
6333 (py-symbol.o): New rule.
6334 (py-symtab.o): Likewise.
6335 (py-block.o): Likewise.
6336 * python/py-symbol.c: New file.
6337 * python/py-symtab.c: Likewise.
6338 * python/py-block.c: Likewise.
6339
6340 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6341
6342 PR gdb/11321
6343
6344 * inferior.h (prepare_for_detach): Declare.
6345 (struct inferior) <detaching>: New field.
6346 * infrun.c (prepare_for_detach): New.
6347 (handle_inferior_event) <random signal>: Don't stop if detaching.
6348 * target.c (target_detach): Call prepare_for_detach.
6349
6350 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6351
6352 Per-process displaced stepping queue.
6353
6354 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
6355 (displaced_step_gdbarch, displaced_step_closure,
6356 (displaced_step_original, displaced_step_copy): Move globals to
6357 this...
6358 (struct displaced_step_inferior_state): ... new structure.
6359 (displaced_step_inferior_states): New global.
6360 (get_displaced_stepping_state, add_displaced_stepping_state)
6361 (remove_displaced_stepping_state, infrun_inferior_exit): New
6362 functions.
6363 (displaced_step_clear): Add displaced_step_inferior_state
6364 parameter, and adjust to handle it.
6365 (displaced_step_clear_cleanup): Parameter is now a
6366 displaced_step_inferior_state. Adjust.
6367 (displaced_step_prepare): Adjust.
6368 (displaced_step_fixup, displaced_step_fixup)
6369 (infrun_thread_ptid_changed, resume): Adjust.
6370 (init_wait_for_inferior): Don't call displaced_step_clear.
6371 (infrun_thread_stop_requested): Rewrite.
6372 (_initialize_infrun): Install infrun_inferior_exit as
6373 inferior_exit observer.
6374
6375 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6376
6377 * inferior.h (ptid_match): Declare.
6378 * infrun.c (ptid_match): New.
6379 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
6380 (handle_notification): Add debug output.
6381 * linux-nat.c (ptid_match): Delete.
6382
6383 2010-02-24 David S. Miller <davem@davemloft.net>
6384
6385 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
6386 * syscalls/sparc-linux.xml: New.
6387 * syscalls/sparc64-linux.xml: New.
6388 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
6389 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
6390 (sparc32_linux_get_syscall_number): New function.
6391 (sparc32_linux_init_abi): Set syscall XML file name and hook up
6392 syscall number fetcher.
6393 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
6394 (sparc64_linux_get_syscall_number): New function.
6395 (sparc64_linux_init_abi): Set syscall XML file name and hook up
6396 syscall number fetcher.
6397
6398 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6399
6400 Multiexec MI
6401
6402 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
6403 * inferior.c (add_inferior_silent): Notify inferior_added
6404 observer.
6405 (delete_inferior_1): Notify inferior_removed observer.
6406 (exit_inferior_1): Pass inferior, not pid, to observer.
6407 (inferior_appeared): Likewise.
6408 (add_inferior_with_spaces): New.
6409 (add_inferior_command): Use the above.
6410 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
6411 Declare.
6412
6413 * inflow.c (inflow_inferior_exit): Likewise.
6414 * jit.c (jit_inferior_exit_hook): Likewise.
6415
6416 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
6417 remove-inferior.
6418 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6419 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
6420 (report_initial_inferior): New.
6421 (mi_inferior_removed): Register the above. Make sure
6422 inferior_added observer is called on the first inferior.
6423 (mi_new_thread, mi_thread_exit): Thread group is now identified by
6424 inferior number, not pid.
6425 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
6426 affected.
6427 * mi/mi-main.c (current_context): New.
6428 (proceed_thread_callback): Use typed closure.
6429 Proceed everything if pid is 0. Most implementation split into
6430 (proceed_thread): ... this.
6431 (run_one_inferior): New.
6432 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
6433 Adjust for multiexec behaviour.
6434 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6435 (mi_cmd_execute): Handle the 'thread-group' option here.
6436 Do some extra checks.
6437 * mi-parse.c (mi_parse): Handle the --all and --thread-group
6438 options.
6439 * mi-parse.h (struct mi_parse): New fields all and thread_group.
6440
6441 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6442
6443 Make -exec-run a proper MI commands.
6444
6445 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6446 * mi/mi-cmds.c (mi_cmds): Adjust.
6447 * mi/mi-main.c (mi_cmd_exec_run): New.
6448
6449 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6450 Stan Shebs <stan@codesourcery.com>
6451
6452 * tracepoint.h (set_traceframe_number)
6453 (cleanup_restore_current_traceframe): Declare.
6454 * tracepoint.c (set_traceframe_number): New.
6455 (struct current_traceframe_cleanup): New.
6456 (do_restore_current_traceframe_cleanup)
6457 (restore_current_traceframe_cleanup_dtor)
6458 (make_cleanup_restore_current_traceframe): New.
6459 * infrun.c: Include tracepoint.h.
6460 (fetch_inferior_event): Switch out and in of tfind mode.
6461
6462 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6463
6464 * breakpoint.c (breakpoint_init_inferior): Also delete
6465 bp_shlib_event breakpoints.
6466 * solib-frv.c (enable_break): Remove call to
6467 remove_solib_event_breakpoints.
6468 * solib-svr4.c (enable_break): Ditto.
6469 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6470 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6471 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6472 * solib-spu.c (spu_enable_break): Ditto.
6473
6474 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6475
6476 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6477
6478 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6479
6480 * varobj.c (varobj_update): Avoid non-constants in initializers.
6481
6482 2010-02-23 Tom Tromey <tromey@redhat.com>
6483
6484 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6485 handle big-endian values.
6486 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6487
6488 2010-02-22 Pedro Alves <pedro@codesourcery.com>
6489
6490 PR9605
6491
6492 gdb/
6493 * breakpoint.c (insert_bp_location): If inserting the read
6494 watchpoint failed, fallback to an access watchpoint.
6495 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6496 if the value changed, if not watching the same memory for writes.
6497 (watchpoint_locations_match): Add comment.
6498 (update_global_location_list): Copy the location's watchpoint type.
6499 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6500 handle read watchpoints here.
6501 (i386_insert_watchpoint): Read watchpoints aren't supported.
6502 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6503 packets.
6504 * target.h (target_insert_watchpoint): Update description.
6505
6506 2010-02-19 Tom Tromey <tromey@redhat.com>
6507
6508 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6509 * m2-typeprint.c (m2_print_type): Update.
6510 * gdbtypes.c (recursive_dump_type): Update.
6511 (copy_type_recursive): Update.
6512 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6513 (c_type_print_base): Update.
6514 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6515 Remove.
6516 (struct cplus_struct_type) <ntemplate_args>: Remove.
6517 <struct template_arg>: Remove.
6518 <is_dynamic>: Move earlier.
6519 (TYPE_TEMPLATE_ARGS): Remove.
6520 (TYPE_NTEMPLATE_ARGS): Remove.
6521 (TYPE_TEMPLATE_ARG): Remove.
6522
6523 2010-02-19 Tom Tromey <tromey@redhat.com>
6524
6525 PR c++/8693, PR c++/9496:
6526 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6527 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6528 write_dollar_variable. Don't try to classify NAME tokens.
6529 (token_and_value): New type.
6530 (token_fifo, popping, name_obstack): New globals.
6531 (classify_name): New function.
6532 (classify_inner_name): Likewise.
6533 (yylex): Likewise.
6534 (VARIABLE): Now has type sval.
6535 (exp : VARIABLE): Call write_dollar_variable.
6536 (qualified_name): Use TYPENAME, not typebase. Add production for
6537 multiple "::" instances.
6538 (variable): Use name_not_typename.
6539 (qualified_type): Remove.
6540 (typebase): Update.
6541
6542 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6543
6544 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6545 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6546 found by bfd_get_section_by_name.
6547 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6548
6549 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6550
6551 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6552 7.0 section" into "Changes in 7.1".
6553
6554 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6555
6556 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6557 * version.in: Bump version to 7.1.50.20100219-cvs.
6558
6559 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6560
6561 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6562 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6563
6564 2010-02-17 Tom Tromey <tromey@redhat.com>
6565
6566 * NEWS: Add Python API Improvements section.
6567
6568 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6569
6570 * NEWS: Correct typo.
6571
6572 2010-02-17 Tom Tromey <tromey@redhat.com>
6573
6574 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6575
6576 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6577
6578 * symfile.c (build_section_addr_info_from_objfile): Include sections
6579 only if they are SEC_ALLOC or SEC_LOAD.
6580
6581 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6582
6583 PR shlibs/11293
6584 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6585 of ULONGEST for address size.
6586
6587 2010-02-17 Tom Tromey <tromey@redhat.com>
6588
6589 * NEWS: Add C++ improvements section.
6590
6591 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6592
6593 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6594 PyThreadState_Swap): Avoid "statement with no effect" warning.
6595
6596 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6597
6598 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6599 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6600
6601 2010-02-17 Tristan Gingold <gingold@adacore.com>
6602 Petr Hluzin <petr.hluzin@gmail.com>
6603
6604 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6605 gdb_assert. Fix info->size for SIG prologue.
6606
6607 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6608
6609 * infcmd.c (show_inferior_tty_command): Check for NULL.
6610 Correct output message.
6611
6612 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6613
6614 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6615 FUNCTION contains parentheses. Improve removal of a trailing
6616 single quote.
6617
6618 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6619
6620 * gcore.c (do_bfd_delete_cleanup): New function.
6621 (gcore_command): Use it. Discard the cleanup after success.
6622 (gcore_copy_callback): Delete dead code.
6623
6624 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6625
6626 * symfile.c (addr_info_make_relative): Always use
6627 find_lowest_section.
6628
6629 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6630
6631 * NEWS: Added entry for namespace fixes.
6632
6633 2010-02-15 Tom Tromey <tromey@redhat.com>
6634
6635 * dwarf2read.c (guess_structure_name): Allocate name on the
6636 objfile obstack.
6637
6638 2010-02-15 Tom Tromey <tromey@redhat.com>
6639
6640 * c-typeprint.c (c_type_print_base): Reverse order of test.
6641
6642 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6643
6644 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6645 initialize it from ELF BFD. Extend the prelink condition by it.
6646
6647 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6648
6649 * defs.h (parse_pid_to_attach): New.
6650 * utils.c (parse_pid_to_attach): New.
6651 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6652 * gnu-nat.c (gnu_attach): Likewise.
6653 * nto-procfs.c (procfs_attach): Likewise.
6654 * procfs.c (procfs_attach): Likewise.
6655 * windows-nat.c (windows_attach): Likewise.
6656 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6657 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6658 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6659 check.
6660
6661 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
6662
6663 * MAINTAINERS: Add myself for write after approval privileges.
6664
6665 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6666
6667 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6668 block.
6669
6670 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6671
6672 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6673 only if INFO_VERBOSE.
6674
6675 2010-02-12 Tomas Holmberg <th@virtutech.com>
6676
6677 * mi/mi-main.c: Added the --reverse flag to the following MI
6678 commands: exec-continue, exec-finish, exec-next, exec-step,
6679 exec-next-instruction, exec-step-instruction. This is to
6680 support reverse execution over the MI interface to gdb.
6681
6682 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6683
6684 * tracepoint.c (_initialize_tracepoint): Specify that the address
6685 range of `tfind outsize' is exclusive, and that the address range
6686 of `tfind range' is inclusive, in the commands' help strings.
6687
6688 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6689
6690 Spurious "dll not found" error messages on x64-windows.
6691 * windows-nat.c: Add include of complaints.h.
6692 (handle_unload_dll): Change dll-not-found error into a complaint.
6693
6694 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6695
6696 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6697 bp_tracepoint and bp_fast_tracepoint, not
6698 bp_loc_software_breakpoint.
6699 (update_global_location_list): Tracepoints are never duplicates of
6700 anything.
6701
6702 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6703
6704 * breakpoint.c (break_command_really): Change return type to int.
6705 Return false if no breakpoint was created, true otherwise.
6706 (trace_command): Don't set the tracepoint count if no tracepoint
6707 was created.
6708 (ftrace_command): Ditto.
6709 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6710 created in the breakpoints table.
6711
6712 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6713 Ulrich Weigand <uweigand@de.ibm.com>
6714
6715 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6716
6717 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6718
6719 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6720 the offset value isn't of integral type.
6721
6722 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6723
6724 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6725 New.
6726
6727 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6728
6729 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6730 non-subscriptable types.
6731 * valarith.c (binop_types_user_defined_p): New, abstracted out
6732 from ...
6733 (binop_user_defined_p): ... this.
6734 * value.h (binop_types_user_defined_p): Declare.
6735
6736 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6737
6738 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6739 Merge uploaded TSVs before merging uploaded tracepoints.
6740
6741 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6742
6743 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6744
6745 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6746
6747 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6748 whitespace character after a dot in comment.
6749 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6750 Likewise.
6751 (list_args_or_locals): For the 'all' (that is
6752 -stack-list-variables) case, always output list of tuples.
6753 Output 'arg' field if variable is argument.
6754
6755 2010-02-10 Tom Tromey <tromey@redhat.com>
6756
6757 * parser-defs.h (parser_debug): Declare.
6758 * parse.c (_initialize_parse): Install "debug parser" set/show
6759 command.
6760 (parser_debug): New global.
6761 (show_parserdebug): New function.
6762 * c-exp.y (c_parse): Set yydebug.
6763
6764 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6765
6766 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6767 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6768 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6769 i386_mxcsr.
6770 (tdesc_find_type): New.
6771 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6772 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6773
6774 * target-descriptions.h (tdesc_find_type): New.
6775
6776 2010-02-10 Michael Snyder <msnyder@vmware.com>
6777
6778 * gdb-gdb.py: Comment fix.
6779
6780 2010-02-09 Tristan Gingold <gingold@adacore.com>
6781
6782 * machoread.c (macho_symfile_relocate): New function.
6783 (macho_sym_fns): Use macho_symfile_relocate instead of
6784 default_symfile_relocate.
6785 (macho_oso_data): New type.
6786 (current_oso): New variable.
6787 (macho_add_oso_symfile): Do not compute section_addr_info, but
6788 instead set vma of sections.
6789 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6790 Set and clear current_oso.
6791
6792 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6793
6794 Wrong type description for tagged type parameter.
6795 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6796 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6797 reference to a tagged type.
6798
6799 2010-02-09 Tristan Gingold <gingold@adacore.com>
6800
6801 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6802 brothers of the parent.
6803
6804 2010-02-08 Tom Tromey <tromey@redhat.com>
6805
6806 PR c++/8017:
6807 * value.h: Update.
6808 * valops.c (search_struct_field): Make 'name' const.
6809 (search_struct_method): Likewise.
6810 (find_method_list): Make 'method' const.
6811 (value_struct_elt): Make 'name' and 'err' const.
6812 (value_find_oload_method_list): Make 'method' const.
6813 (find_overload_match): Make 'name' const.
6814 * eval.c (evaluate_subexp_standard): New locals function,
6815 function_name.
6816 <OP_FUNCALL>: Handle OP_SCOPE specially.
6817
6818 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6819
6820 * infrun.c (handle_inferior_event): Do not look up regcache
6821 for exited processes.
6822
6823 2010-02-08 Chris Moller <moller@mollerware.com>
6824
6825 PR gdb/10728
6826 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6827 warn if found, and assume length = 1.
6828
6829 2010-02-08 Chris Moller <cmoller@redhat.com>
6830
6831 PR gdb/9067
6832 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6833 (cp_print_static_field) Fix use of obstacks.
6834
6835 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6836
6837 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6838 resumed LWPs as resumed.
6839 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6840 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6841 of throwing an internal error. If an LWP of a process we're not
6842 waiting for reports a signal, don't force collecting a SIGSTOP,
6843 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6844 go through all LWPs cancelling breakpoints in non-stop mode.
6845 (resume_stopped_resumed_lwps): New.
6846 (linux_nat_wait): Use it.
6847
6848 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6849
6850 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6851 i386/amd64 and i386/amd64-linux.
6852 (i386/i386-expedite): New.
6853 (i386/i386-linux-expedite): Likewise.
6854 (i386/amd64-expedite):Likewise.
6855 (i386/amd64-linux-expedite): Likewise.
6856 ($(outdir)/i386/i386-linux.dat): Likewise.
6857 ($(outdir)/i386/amd64.dat): Likewise.
6858 ($(outdir)/i386/amd64-linux.dat): Likewise.
6859
6860 * features/i386/32bit-core.xml: New.
6861 * features/i386/32bit-linux.xml: Likewise.
6862 * features/i386/32bit-sse.xml: Likewise.
6863 * features/i386/64bit-core.xml: Likewise.
6864 * features/i386/64bit-linux.xml: Likewise.
6865 * features/i386/64bit-sse.xml: Likewise.
6866 * features/i386/i386-linux.xml: Likewise.
6867 * features/i386/i386.xml: Likewise.
6868 * features/i386/amd64-linux.xml: Likewise.
6869 * features/i386/amd64.xml: Likewise.
6870 * features/i386/i386-linux.c: Likewise.
6871 * features/i386/i386.c: Likewise.
6872 * features/i386/amd64-linux.c: Likewise.
6873 * features/i386/amd64.c: Likewise.
6874
6875 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6876
6877 PR c++/7935:
6878 * cp-support.h: Added char* alias element to using_direct data
6879 struct.
6880 (cp_add_using): Added char* alias argument.
6881 (cp_add_using_directive): Ditto.
6882 * cp-namespace.c: Updated with the above changes.
6883 (cp_lookup_symbol_imports): Check for aliases.
6884 * dwarf2read.c (read_import_statement): Figure out local alias
6885 for the import and pass it on to cp_add_using.
6886 (read_namespace): Pass alias argument to cp_add_using.
6887
6888 2010-02-05 Hui Zhu <teawater@gmail.com>
6889
6890 * defs.h (gdb_bfd_errmsg): New extern.
6891 * exec.c (exec_file_attach): Change bfd_errmsg to
6892 gdb_bfd_errmsg.
6893 * utils.c (AMBIGUOUS_MESS1): New macro.
6894 (AMBIGUOUS_MESS2): New macro.
6895 (gdb_bfd_errmsg): New function.
6896
6897 2010-02-04 Doug Evans <dje@google.com>
6898
6899 * solib-svr4.c (enable_break): Add comment.
6900
6901 2010-02-04 Anthony Green <green@moxielogic.com>
6902
6903 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6904 gracefully.
6905
6906 2010-02-04 Tom Tromey <tromey@redhat.com>
6907
6908 * valops.c (search_struct_field): Account for
6909 value_embedded_offset. Fix check for virtual base past the end of
6910 the object. Use value_copy when making a slice of the value.
6911
6912 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6913
6914 PR tui/9622
6915 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6916 only if gdb_stdout is a tty.
6917
6918 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6919
6920 * target-descriptions.c: Include "osabi.h".
6921 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6922 OSABI.
6923
6924 2010-02-04 Tristan Gingold <gingold@adacore.com>
6925
6926 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6927 (macho_symtab_read): Adjust calls to macho_add_oso.
6928 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6929 (macho_symfile_read): Adjust call to macho_oso_symfile.
6930 (macho_new_init): Move this function after declarations.
6931 (macho_symfile_init): Ditto.
6932 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6933 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6934
6935 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6936
6937 Include MI command in remotelog.
6938
6939 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6940
6941 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6942
6943 * remote.c (remote_state): Remove gdbarch.
6944 (init_remote_state): Don't set gdbarch.
6945 (remote_query_supported): Pass target_gdbarch instead of
6946 rs->gdbarch to gdbarch_qsupported.
6947
6948 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6949
6950 * gdbarch.sh: Add qsupported.
6951
6952 * gdbarch.c: Regenerated.
6953 * gdbarch.h: Likewise.
6954
6955 * remote.c (remote_state): Add gdbarch.
6956 (init_remote_state): Set gdbarch.
6957 (remote_query_supported): Support gdbarch_qsupported.
6958
6959 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6960
6961 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6962 __FreeBSD_kernel_version.
6963
6964 2010-02-03 Tristan Gingold <gingold@adacore.com>
6965
6966 * symfile.h (struct sym_fns): Add sym_relocate field.
6967 (default_symfile_relocate): New prototype.
6968 (symfile_relocate_debug_section): First argument is now an objfile.
6969 * symfile.c (default_symfile_relocate): Rename from
6970 symfile_relocate_debug_section, first argument is now an objfile.
6971 (symfile_relocate_debug_section): New function.
6972 * coffread.c (coff_sym_fns): Set sym_relocate field.
6973 * somread.c (som_sym_fns): Ditto.
6974 * mipsread.c (ecoff_sym_fns): Ditto.
6975 * machoread.c (macho_sym_fns): Ditto.
6976 * elfread.c (elf_sym_fns): Ditto.
6977 * dwarf2read.c (dwarf2_read_section): Ditto.
6978 * xcoffread.c (xcoff_sym_fns): Ditto.
6979 * dbxread.c (aout_sym_fns): Ditto.
6980 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6981 (elfstab_build_psymtabs): Ditto.
6982
6983 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6984
6985 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6986
6987 2010-02-02 Tom Tromey <tromey@redhat.com>
6988
6989 * valops.c (value_cast_structs): Try downcasting using the RTTI
6990 type.
6991
6992 2010-02-02 Tom Tromey <tromey@redhat.com>
6993
6994 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6995 (gnuv2_baseclass_offset): Now static.
6996 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6997 * gnu-v2-abi.h: Remove.
6998
6999 2010-02-02 Tom Tromey <tromey@redhat.com>
7000
7001 * m2-typeprint.c (m2_record_fields): Don't use
7002 TYPE_DECLARED_TYPE.
7003 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
7004 (struct main_type) <flag_declared_class>: New field.
7005 (struct cplus_struct_type) <declared_type>: Remove.
7006 <ntemplate_args>: Move earlier.
7007 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
7008 (DECLARED_TYPE_TEMPLATE): Remove.
7009 (TYPE_DECLARED_TYPE): Remove.
7010 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
7011 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
7012 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
7013 TYPE_DECLARED_TYPE.
7014
7015 2010-02-02 Tom Tromey <tromey@redhat.com>
7016
7017 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
7018 * valops.c (search_struct_field): Compute nbases after calling
7019 CHECK_TYPEDEF.
7020 (check_field): Call CHECK_TYPEDEF.
7021 * cp-valprint.c (cp_print_value): Pass correct address to
7022 baseclass_offset. Fix check for virtual base past the end of the
7023 object. Don't offset address passed to cp_print_value_fields or
7024 apply_val_pretty_printer.
7025 (cp_print_value_fields): Fix call to val_print.
7026 (cp_print_value_fields_rtti): New function.
7027 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
7028 * p-valprint.c (pascal_object_print_value_fields): Fix call to
7029 val_print.
7030 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
7031 offset to address.
7032 * language.h (struct language_defn) <la_val_print>: Document.
7033 * c-lang.h (cp_print_value_fields_rtti): Declare.
7034
7035 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7036
7037 PR libc/11214:
7038 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7039 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
7040 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7041
7042 2010-02-01 Michael Matz <matz@suse.de>
7043 Daniel Jacobowitz <dan@codesourcery.com>
7044
7045 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7046 functions use a frame pointer.
7047
7048 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7049
7050 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
7051 by a conditional setting DYN_ADDR. Use DYN_ADDR.
7052 * config/djgpp/fnchange.lst: Add translations for
7053 symbol-without-target_section.exp and symbol-without-target_section.c.
7054
7055 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7056
7057 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
7058 (remote_breakpoint_for_pc): Correct invalid_p check.
7059 * gdbarch.c: Regenerated.
7060
7061 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7062
7063 * arm-tdep.c (arm_find_mapping_symbol): New function, from
7064 arm_pc_is_thumb.
7065 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
7066 (extend_buffer_earlier): New function.
7067 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
7068 (arm_adjust_breakpoint_address): New function.
7069 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
7070
7071 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7072
7073 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
7074 (arm_linux_thumb2_le_breakpoint): New constants.
7075 (arm_linux_init_abi): Set thumb2_breakpoint and
7076 thumb2_breakpoint_size.
7077 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
7078 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
7079 Implement support for single stepping through IT blocks if
7080 a 32-bit Thumb breakpoint instruction is available.
7081 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
7082 is available, use it when needed.
7083 (arm_remote_breakpoint_from_pc): New function.
7084 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
7085 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
7086 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
7087
7088 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
7089
7090 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
7091 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
7092 * gdbarch.c, gdbarch.h: Regenerated.
7093 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
7094 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
7095 gdbarch_remote_breakpoint_from_pc.
7096
7097 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
7098
7099 * infrun.c (prepare_to_proceed): Handle other signals which might
7100 match a breakpoint.
7101 (handle_inferior_event): Move the check for unusual breakpoint
7102 signals earlier.
7103
7104 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
7105
7106 amd64 - function returning record with field straddling 2 registers.
7107 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
7108 a record of length <= 16 in which a field straddles the two
7109 eightbytes.
7110
7111 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7112
7113 Implement return values on amd64-windows.
7114 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
7115 (amd64_windows_return_value): New function.
7116 (amd64_windows_init_abi): Call set_gdbarch_return_value with
7117 amd64_windows_return_value.
7118
7119 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7120
7121 amd64-windows: 32 bytes allocated on stack by caller for integer
7122 parameter registers.
7123 * i386-tdep.h (struct gdbarch_tdep): Add new field
7124 integer_param_regs_saved_in_caller_frame.
7125 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7126 tdep->integer_param_regs_saved_in_caller_frame to 1.
7127 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
7128 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
7129
7130 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7131
7132 amd64-windows: memory args passed by pointer during function calls.
7133 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
7134 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
7135 where tdep->memory_args_by_pointer is non-zero.
7136 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7137 tdep->memory_args_by_pointer to 1.
7138
7139 2010-01-29 Joel Brobecker <brobecker@adacore.com>
7140
7141 amd64-windows: Integer parameters in function calls.
7142 * i386-tdep.h (enum amd64_reg_class): New, moved here from
7143 amd64-tdep.c.
7144 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
7145 call_dummy_integer_regs, and classify.
7146 * amd64-tdep.h (amd64_classify): Add declaration.
7147 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
7148 (amd64_reg_class): Delete, moved to i386-tdep.h.
7149 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
7150 Replace call to amd64_classify by call to tdep->classify.
7151 (amd64_push_arguments): Get the list of registers to use for
7152 passing integer parameters from the gdbarch tdep structure,
7153 rather than using a hardcoded one. Replace calls to amd64_classify
7154 by calls to tdep->classify.
7155 (amd64_push_dummy_call): Get the register number used for
7156 the "hidden" argument from tdep->call_dummy_integer_regs.
7157 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
7158 and tdep->call_dummy_integer_regs. Set tdep->classify.
7159 * amd64-windows-tdep.c: Add include of gdbtypes.h.
7160 (amd64_windows_dummy_call_integer_regs): New static global.
7161 (amd64_windows_classify): New function.
7162 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
7163 tdep->call_dummy_integer_regs and tdep->classify.
7164
7165 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
7166
7167 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
7168 for the new regcache. All callers updated.
7169 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
7170 (get_thread_arch_regcache): Do not set aspace here.
7171 * regcache.h (regcache_xmalloc): Update declaration.
7172
7173 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
7174 regcache_xmalloc updated.
7175
7176 2010-01-28 Joel Brobecker <brobecker@adacore.com>
7177
7178 Another -Wunused-function error in procfs.c (sparc-solaris)
7179 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
7180 Only define if SYS_syssgi is defined.
7181 (remove_dbx_link_breakpoint): Delete declaration. Move up.
7182 (dbx_link_addr, insert_dbx_link_bpt_in_file)
7183 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
7184 is itself defined.
7185
7186 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
7187
7188 * windows-nat.c (windows_initialization_done): New variable.
7189 (get_windows_debug_event): Issue error when process dies before
7190 completely initializing.
7191 (do_initial_windows_stuff): Set flag to indicate when we are done with
7192 the initial steps of attaching to the child.
7193
7194 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7195
7196 * symtab.h (struct symbol <symtab>): New comment on NULL values.
7197
7198 2010-01-27 Doug Evans <dje@google.com>
7199
7200 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
7201
7202 * breakpoint.c (bpstat_stop_status): Delete useless code.
7203
7204 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7205
7206 * printcmd.c (display_uses_solib_p): Remove variable section. Access
7207 objfile via SYMBOL_SYMTAB.
7208
7209 2010-01-26 Tom Tromey <tromey@redhat.com>
7210
7211 PR exp/7643:
7212 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
7213 coerce_array on result.
7214
7215 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
7216
7217 * cp-namespace.c (cp_lookup_symbol_namespace): Added
7218 search_parent argument.
7219 (cp_add_using): Initialize 'searched' field.
7220 (reset_directive_searched): New function.
7221 * cp-support.h: Add 'searched' field to using_direct struct.
7222 (cp_lookup_symbol_imports): Ditto.
7223 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
7224 Perform recursive search.
7225 Implement non parent search.
7226 * valops.c (value_maybe_namespace_elt): Updated.
7227
7228 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
7229
7230 PR gdb/10929:
7231 * dwarf2read.c (read_lexical_block_scope): Create blocks for
7232 scopes which contain using directives even if they contain no
7233 declarations.
7234 * symtab.c (lookup_symbol_aux): Pass lowest level block to
7235 la_lookup_symbol_nonlocal.
7236 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
7237 cp_lookup_symbol_namespace.
7238 (cp_lookup_symbol_namespace): Perform an import lookup at every
7239 block level.
7240 (cp_lookup_symbol_imports): New function.
7241 (cp_lookup_symbol_in_namespace): New function.
7242
7243 2010-01-25 Tom Tromey <tromey@redhat.com>
7244
7245 PR gdb/11049:
7246 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
7247 result.
7248
7249 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7250
7251 * configure.ac: Only use host_os part when disabling TUI on osf.
7252 Use test to check variables, prefix strings with x.
7253 * configure: Regenerate.
7254
7255 * solib-osf.c (osf_current_sos): Initialize tail.
7256
7257 2010-01-25 gingold <gingold@adacore.com>
7258
7259 * windows-nat.c (windows_continue): Use %x to print thread id.
7260 (get_windows_debug_event): Ditto.
7261
7262 2010-01-22 Tom Tromey <tromey@redhat.com>
7263
7264 PR symtab/11199:
7265 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
7266 type and arguments. Use smash_to_methodptr_type.
7267 (read_structure_type): Call quirk_gcc_member_function_pointer
7268 later.
7269 * gdbtypes.h (smash_to_methodptr_type): Declare.
7270 * gdbtypes.c (smash_to_methodptr_type): New function.
7271 (lookup_methodptr_type): Use it.
7272
7273 2010-01-21 Tom Tromey <tromey@redhat.com>
7274
7275 PR symtab/11198:
7276 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
7277 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
7278 * glibc-tdep.c (find_minsym_and_objfile): Remove.
7279 (glibc_skip_solib_resolver): Use
7280 lookup_minimal_symbol_and_objfile.
7281
7282 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
7283
7284 * inflow.c (check_syscall): Guard by #if clause for GO32 and
7285 WIN32 targets.
7286
7287 2010-01-20 Tom Tromey <tromey@redhat.com>
7288
7289 PR backtrace/10770:
7290 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
7291 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
7292 * dwarf2expr.c (new_dwarf_expr_context): Allocate
7293 dwarf_stack_values, not CORE_ADDRs.
7294 (execute_stack_op): Change DW_OP_div and comparison operators to
7295 use signed operands.
7296
7297 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
7298
7299 Per-inferior args and tty and environment.
7300
7301 * infcmd.c (inferior_args): Rename to ...
7302 (inferior_args_scratch): ... this.
7303 (inferior_io_terminal): Rename to ...
7304 (inferior_io_terminal_scratch): ... this.
7305 (inferior_argc, inferior_argv): Remove.
7306 (set_inferior_io_terminal, get_inferior_io_terminal): Store
7307 inside current_inferior().
7308 (set_inferior_tty_command, show_inferior_tty_command): New.
7309 (get_inferior_args, set_inferior_args): Store inside
7310 current_inferior().
7311 (notice_args_set): Likewise and rename to...
7312 (set_args_command): ... this.
7313 (set_inferior_args_vector): Likewise.
7314 (notice_args_read): Rename to...
7315 (show_args_command): ...new.
7316 (tty_command): Remove.
7317 (run_command_1): Don't free old args, as they are freed by
7318 set_inferior_arg now.
7319 (run_no_args_command): Likewise.
7320 (inferior_environ): Remove.
7321 (run_command_1): Use environment of the current inferior.
7322 (environment_info, set_environment_command)
7323 (unset_environment_command, path_info, path_command): Likewise.
7324 (_initialize_infcmd): Adjust for function and variable renames.
7325 Do not init inferior_environ.
7326 * inferior.h (set_inferior_arg): Adjust prototype.
7327 (struct inferior): New fields args, argc, argv, terminal, environment.
7328 (inferior_environ): Remove declaration.
7329 * inferior.c (free_inferior): Free new fields.
7330 (add_inferior_silent): Initialize 'environment' field.
7331 * main.c (captured_main): Set arguments only after the initial
7332 inferior has been created. Set set_inferior_io_terminal,
7333 not tty_command.
7334 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
7335 inferior.
7336 (_initialize_mi_cmd_env): Adjust for disappearance of global
7337 inferior_environ.
7338 * solib.c (solib_find): Use environment of the current inferior.
7339
7340 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7341
7342 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
7343 HAVE_PYTHON.
7344 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
7345
7346 2010-01-20 Joel Brobecker <brobecker@adacore.com>
7347
7348 Get rid of ada-lang.c:function_name_from_pc.
7349 * ada-lang.c: Add "stack.h" #include.
7350 (function_name_from_pc): Delete.
7351 (is_known_support_routine): Replace call to function_name_from_pc
7352 by call to find_frame_funname.
7353 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7354
7355 2010-01-19 Tom Tromey <tromey@redhat.com>
7356
7357 PR c++/11026:
7358 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
7359 objfile obstack.
7360
7361 2010-01-19 Tom Tromey <tromey@redhat.com>
7362
7363 * top.c (stop_sig, float_handler, do_nothing): Remove.
7364
7365 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7366
7367 * breakpoint.c (watchpoint_check): Check the call
7368 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
7369 Extend the comment.
7370 * config/djgpp/fnchange.lst: Add translations for
7371 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
7372 watchpoint-cond-gone-stripped.c.
7373
7374 2010-01-19 Tom Tromey <tromey@redhat.com>
7375
7376 PR c++/8000:
7377 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
7378 into parent scope, and enumerator into grandparent scope.
7379
7380 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7381
7382 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
7383
7384 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7385
7386 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
7387 i[34567]86-*-solaris2.1[0-9]*.
7388 * configure.tgt: Likewise.
7389
7390 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7391
7392 * NEWS: Document the source command enhancement allowing it
7393 to load Python scripts. Document the "set/show script-extension"
7394 commands.
7395
7396 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7397
7398 Add -Wunused-function to compile flags.
7399 * configure.ac: Add -Wunused-function to build_warnings.
7400 * configure: Regenerate.
7401
7402 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7403
7404 "delete" ada-lex.c:input function, not used.
7405 * ada-lex.l: #define YY_NO_INPUT.
7406
7407 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7408
7409 Delete free_named_symtabs and associated cleanup.
7410 * symfile.h (free_named_symtabs): Delete declaration.
7411 * symfile.c: Remove some commented out code (clear_symtab_users_once).
7412 (cashier_psymtab): Comment function out.
7413 Delete declaration.
7414 (free_named_symtabs): Delete.
7415 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
7416 * dbxread.c (end_psymtab): Likewise.
7417 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
7418 * exec.c (exec_close_1): Ditto.
7419 * xcoffread.c (xcoff_end_psymtab): Likewise.
7420
7421 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7422
7423 * stack.c (print_block_frame_labels): Comment function out.
7424
7425 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7426
7427 Delete unused or undefined functions.
7428 * breakpoint.c (ep_parse_optional_filename): Delete.
7429 * dcache.c (dcache_write_line): Remove declaration.
7430 * infrun.c (build_infrun): Remove declaration.
7431 * tracepoint.c (tracepoint_save_command): Remove declaration.
7432 * linux-nat.c (init_lwp_list): Delete. No longer used.
7433 * event-loop.c (check_async_signal_handlers): Delete declaration.
7434 * infrun.c (init_execution_control_state): Delete.
7435 (proceed): Update comment to avoid mentioning
7436 init_execution_control_state.
7437 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
7438 * ada-lang.c (ada_to_static_fixed_value): Delete.
7439 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
7440 * cp-namespace.c (cp_copy_usings): Delete.
7441 * xml-syscall.c (xml_number_of_syscalls): Delete.
7442 * progspace.c (find_program_space_by_num): Delete.
7443 * inflow.c (handle_sigio): Delete declaration.
7444 * hppa-tdep.c (hppa_alignof): Delete.
7445 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
7446 (mipsnbsd_core_osabi_sniffer): Delete.
7447
7448 2010-01-18 Tom Tromey <tromey@redhat.com>
7449
7450 PR c++/9680:
7451 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
7452 (CONST_CAST): New tokens.
7453 (exp): Add new productions.
7454 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
7455 reinterpret_cast.
7456 (is_cast_operator): New function.
7457 (yylex): Handle cast operators specially.
7458 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
7459 UNOP_REINTERPRET_CAST>: New cases.
7460 * expprint.c (print_subexp_standard): Likewise.
7461 (op_name_standard): Likewise.
7462 (dump_subexp_body_standard): Likewise.
7463 * parse.c (operator_length_standard): Likewise.
7464 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
7465 UNOP_REINTERPRET_CAST.
7466 * gdbtypes.c (class_types_same_p): New function.
7467 (is_ancestor): Use it.
7468 (is_public_ancestor): New function.
7469 (is_unique_ancestor_worker): Likewise.
7470 (is_unique_ancestor): Likewise.
7471 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7472 (is_unique_ancestor): Declare.
7473 * valops.c (value_reinterpret_cast): New function.
7474 (dynamic_cast_check_1): Likewise.
7475 (dynamic_cast_check_2): Likewise.
7476 (value_dynamic_cast): Likewise.
7477 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7478
7479 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7480
7481 Fix build failure when building without Python support.
7482 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7483 is not defined.
7484
7485 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7486
7487 Use XVS field type instead of doing a parallel lookup.
7488 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7489 if it is a reference type instead of doing a type lookup using
7490 the XVS field name.
7491
7492 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7493
7494 Trust PAD types instead of using PAD___XVS.
7495 * ada-lang.c (trust_pad_over_xvs): New static variable.
7496 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7497 parallel XVS type, follow the XVS type instead of the PAD type.
7498 (unwrap_value): Make sure that there is no parallel XVE type
7499 before returning the value as is.
7500 (set_ada_list, show_ada_list): New static variables.
7501 (set_ada_command, show_ada_command): New functions.
7502 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7503 Add new "set/show ada trust-PAD-over-XVS" setting.
7504
7505 2010-01-18 Tom Tromey <tromey@redhat.com>
7506 Thiago Jung Bauermann <bauerman@br.ibm.com>
7507
7508 Allow "source" to load python scripts.
7509 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7510 * python/python.c (source_python_script): New function.
7511 * python/python.h (source_python_script): Add declaration.
7512 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7513 (script_ext_off, script_ext_soft, script_ext_strict)
7514 (script_ext_enums, script_ext_mode): New static constants.
7515 (show_script_ext_mode, find_and_open_script): New functions.
7516 (source_script): Enhance to handle Python scripts.
7517 (init_cli_cmds): Add set/show script-extension commands.
7518
7519 2010-01-16 Stan Shebs <stan@codesourcery.com>
7520
7521 * tracepoint.h (struct trace_status): Use unsigned long long
7522 instead of size_t.
7523 * tracepoint.c (trace_status_command): Fix printf directive.
7524 (trace_save_command): Check fwrite returns, fix printf directive.
7525 (trace_filename): New global.
7526 (tfile_open): Set it, check read returns.
7527 (tfile_close): Free trace_filename.
7528 (tfile_get_traceframe_address): Check read returns.
7529 (tfile_trace_find): Ditto.
7530 (tfile_fetch_registers): Ditto.
7531 (tfile_xfer_partial): Ditto.
7532 (tfile_get_trace_state_variable_value): Ditto.
7533
7534 2010-01-15 Stan Shebs <stan@codesourcery.com>
7535
7536 Add trace file support.
7537 * tracepoint.h (enum trace_stop_reason): New enum.
7538 (struct trace_status): New struct.
7539 (parse_trace_status): Declare.
7540 (struct uploaded_tp): Move here from remote.c,
7541 add fields for actions.
7542 (struct uploaded_tsv): New struct.
7543 * tracepoint.c (tfile_ops): New target vector.
7544 (trace_fd): New global.
7545 (tfile_open): New function.
7546 (tfile_close): New function.
7547 (tfile_files_info): New function.
7548 (tfile_get_trace_status): New function.
7549 (tfile_get_traceframe_address): New function.
7550 (tfile_trace_find): New function.
7551 (tfile_fetch_registers): New function.
7552 (tfile_xfer_partial): New function.
7553 (tfile_get_trace_state_variable_value): New function.
7554 (init_tfile_ops): New function.
7555 (_initialize_tracepoint): Call it, add tfile target.
7556 (trace_status): New global.
7557 (current_trace_status): New function.
7558 (trace_running_p): Remove, change all users to get from
7559 current_trace_status()->running.
7560 (get_trace_status): Remove.
7561 (trace_status_command): Call target_get_trace_status directly,
7562 report more detail including tracing stop reasons.
7563 (trace_find_command): Always allow tfind on a file.
7564 (trace_find_pc_command): Ditto.
7565 (trace_find_tracepoint_command): Ditto.
7566 (trace_find_line_command): Ditto.
7567 (trace_find_range_command): Ditto.
7568 (trace_find_outside_command): Ditto.
7569 (trace_frames_offset, cur_offset): Declare as off_t.
7570 (trace_regblock_size): Rename from reg_size, update users.
7571 (parse_trace_status): New function.
7572 (tfile_interp_line): New function.
7573 (disconnect_or_stop_tracing): Ensure current trace
7574 status before asking what to do.
7575 (stop_reason_names): New global.
7576 (trace_save_command): New command.
7577 (get_uploaded_tp): Move here from remote.c.
7578 (find_matching_tracepoint): Ditto.
7579 (merge_uploaded_tracepoints): New function.
7580 (parse_trace_status): Use stop_reason_names.
7581 (_initialize_tracepoint): Define tsave command.
7582 * target.h (target_ops): New fields to_save_trace_data,
7583 to_upload_tracepoints, to_upload_trace_state_variables,
7584 to_get_raw_trace_data, change to_get_trace_status
7585 to take a pointer to a status struct.
7586 (target_save_trace_data): New macro.
7587 (target_upload_tracepoints): New macro.
7588 (target_upload_trace_state_variables): New macro.
7589 (target_get_raw_trace_data): New macro.
7590 * target.c (update_current_target): Add new methods, change
7591 signature of to_get_trace_status.
7592 * remote.c (hex2bin): Make globally visible.
7593 (bin2hex): Ditto.
7594 (remote_download_trace_state_variable): Download name also.
7595 (remote_get_trace_status): Update parameter, use
7596 parse_trace_status.
7597 (remote_save_trace_data): New function.
7598 (remote_upload_tracepoints): New function.
7599 (remote_upload_trace_state_variables): New function.
7600 (remote_get_raw_trace_data): New function.
7601 (remote_start_remote): Use them.
7602 (_initialize_remote_ops): Add operations.
7603 * ax-gdb.c: Include breakpoint.h.
7604 * breakpoint.c (create_tracepoint_from_upload): Use
7605 break_command_really, return tracepoint, warn about unimplemented
7606 parts.
7607 * NEWS: Mention trace file addition.
7608
7609 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7610
7611 Fix compilation warning on gcc-3.4.
7612 * exec.c (print_section_info): Move the `displacement' variable
7613 initialization to its declaration.
7614
7615 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7616
7617 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7618 comparison.
7619
7620 2010-01-15 Eric Botcazou <botcazou@adacore.com>
7621
7622 "info tasks" broken by typedefs in ATCB type definitions.
7623 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7624 ada_check_typedef before retrieving the length of the type for
7625 regular fields.
7626
7627 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7628
7629 Do not use name-based lookup for unconstrained packed arrays.
7630 * ada-lang.c (find_parallel_type_by_descriptive_type):
7631 Limit the fallback to name-based lookups to the case where
7632 the type is a constrained packed array.
7633
7634 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7635
7636 Enhance gdb-gdb.py to handle main_type.type_specific.
7637 * gdb-gdb.py: Print the type-specific part of struct main_type.
7638
7639 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7640
7641 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7642 * configure: Regenerate.
7643 * config.in: Regenerate.
7644 * utils.c: Include sys/resource.h.
7645 (dump_core, can_dump_core): New.
7646 (internal_vproblem): Update the comment. Check can_dump_core while
7647 setting dump_core_p. Replace two abort calls by dump_core calls.
7648
7649 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7650 Eli Zaretskii <eliz@gnu.org>
7651
7652 * NEWS: Document the PIE support.
7653
7654 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7655
7656 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7657 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7658
7659 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7660
7661 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7662 Replace exec_entry_point call by bfd_get_start_address.
7663
7664 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7665
7666 Support Valgrind attachments broken by the PIE support.
7667 * auxv.c: Include gdbcore.h.
7668 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7669 parameters ops, object and annex. Remove their assertions.
7670 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7671 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7672 (memory_xfer_auxv): ... here.
7673 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7674 memory_xfer_auxv.
7675 * procfs.c (procfs_xfer_partial): Likewise.
7676 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7677 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7678 (svr4_solib_create_inferior_hook): Conditionalize the
7679 svr4_relocate_main_executable call.
7680
7681 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7682
7683 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7684 target_section. Find SECT in current_target_sections, gdb_assert it.
7685 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7686 New variable abfd.
7687 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7688 of separate debug info file.
7689
7690 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7691
7692 Support PIEs with no symfile_objfile.
7693 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7694 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7695
7696 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7697
7698 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7699 code part to ...
7700 (svr4_static_exec_displacement): ... a new function.
7701 (svr4_exec_displacement): New function.
7702 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7703 new_offsets using alloca now. Remove variable old_chain and changed.
7704 Call objfile_relocate unconditionally now.
7705
7706 2010-01-14 Doug Evans <dje@google.com>
7707
7708 * gdbtypes.c (arch_flags_type): Fix comment.
7709 * gdbtypes.h (arch_composite_type): Fix comment.
7710
7711 2009-01-14 Tristan Gingold <gingold@adacore.com>
7712
7713 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7714 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7715 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7716 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7717 macho_add_oso_symfile.
7718 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7719
7720 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7721
7722 Tru64: Dead threads are never deleted.
7723 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7724 (dec_thread_count_gdb_threads): Fix counter increment.
7725 (dec_thread_add_gdb_thread): Fix *listp increment.
7726 (resync_thread_list): Fix bug in deletion of dead threads that
7727 caused all threads to be deleted, instead of just the dead ones.
7728
7729 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7730
7731 PR python/10705
7732
7733 * python/python-internal.h: Add lazy_string_object_type
7734 definition.
7735 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7736 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7737 * python/py-value.c (valpy_lazy_string): New function.
7738 (convert_value_from_python): Add lazy string conversion.
7739 * python/py-prettyprint.c (pretty_print_one_value): Check if
7740 return is also a lazy string.
7741 (print_string_repr): Add lazy string printing branch.
7742 (print_children): Likewise.
7743 * python/py-lazy-string.c: New file. Implement lazy strings.
7744 * python/python.c (_initialize_python): Call
7745 gdbpy_initialize_lazy_string.
7746 * varobj.c (value_get_print_value): Add lazy string printing
7747 branch. Account for encoding.
7748 * c-lang.c (c_printstr): Account for new encoding argument. If
7749 encoding is NULL, find encoding suited for type, otherwise use
7750 user encoding.
7751 * language.h (language_defn): Add encoding argument.
7752 (LA_PRINT_STRING): Likewise.
7753 * language.c (unk_lang_printstr): Update to reflect new encoding
7754 argument to language_defn.
7755 * ada-lang.h (ada_printstr): Likewise.
7756 * c-lang.h (c_printstr): Likewise.
7757 * p-lang.h (pascal_printstr);
7758 * f-lang.c (f_printstr): Likewise.
7759 * m2-lang.c (m2_printstr): Likewise.
7760 * objc-lang.c (objc_printstr): Likewise.
7761 * p-lang.c (pascal_printstr): Likewise.
7762 * scm-lang.c (scm_printstr): Likewise.
7763 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7764 encoding argument.
7765 * ada-valprint.c (ada_printstr): Likewise.
7766 * f-valprint.c (f_val_print): Likewise
7767 * m2-valprint.c (m2_val_print): Likewise.
7768 * p-valprint.c (pascal_val_print): Likewise.
7769 * expprint.c (print_subexp_standard): Likewise.
7770 * valprint.c (val_print_string): Likewise.
7771 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7772 (SUBDIR_PYTHON_SRCS): Likewise.
7773 (py-lazy-string.o): New rule.
7774
7775 2010-01-13 Doug Evans <dje@google.com>
7776
7777 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7778 uninitialized" warning from gcc on local `tree'.
7779
7780 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7781
7782 Implement core awareness.
7783
7784 * bcache.c (compare_ints): Remove
7785 (print_percentage): Use compare_positive_ints.
7786 * defs.h (compare_positive_ints): Declare.
7787 * linux-nat.h (struct lin_lwp): New field core.
7788 (linux_nat_core_of_thread_1): Declare.
7789 * linux-nat.c (add_lwp): Init the 'core' field.
7790 (linux_nat_wait_1): Record the core.
7791 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7792 (linux_nat_add_target): Register the above.
7793 * linux-thread-db.c (update_thread_core): New.
7794 (thread_db_find_new_threads): Update core information for
7795 every thread.
7796 * remote.c (struct private_thread_info): New.
7797 (free_private_thread_info, demand_private_info): New.
7798 (PACKET_qXfer_threads, use_osdata_threads): New.
7799 (struct thread_item, threads_parsing_context
7800 (start_thread, end_thread, thread_attributes)
7801 (thread_children, threads_children, threads_elements): New.
7802 (remote_threads_info): Try qXfer:threads before anything
7803 else.
7804 (remote_protocol_packets): Register qXfer:threads.
7805 (remote_open_1): Init use_osdata_threads.
7806 (struct stop_reply): New field 'core'.
7807 (remote_parse_stop_reply): Parse core number.
7808 (process_stop_reply): Record core number.
7809 (remote_xfer_partial): Handle qXfer:threads.
7810 (remote_core_of_thread): New.
7811 (init_remote_ops): Register remote_core_of_thread.
7812 (_initialize_remote): Register qXfer:read.
7813 * target.c (target_core_of_thread): New
7814 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7815 (struct target_ops): New field to_core_of_threads.
7816 (target_core_of_thread): Declare.
7817 * gdbthread.h (struct thread_info): New field private_dtor.
7818 * thread.c (print_thread_info): Report the core.
7819 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7820 * utils.c (compare_positive_ints): New.
7821 * features/threads.dtd: New.
7822 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7823 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7824 (do_nothing, free_vector_of_osdata_items)
7825 (splay_tree_int_comparator, free_splay_tree): New.
7826 (print_one_inferior_data): Implemented printing of selected
7827 inferiors. Collect and print cores.
7828 (output_cores): New.
7829 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7830 thread groups together with --available.
7831
7832 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7833
7834 * configure: Regenerate (for _STRUCTURED_PROC).
7835
7836 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7837
7838 Delete dead function.
7839 * ada-lang.c (extract_string): Delete. No longer used.
7840
7841 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7842
7843 Fix -Wunused warning in dec-thread.c.
7844 * dec-thread.c (dec_thread_count_gdb_threads)
7845 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7846
7847 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7848
7849 * ada-valprint.c (ada_print_floating): Remove trailing space.
7850
7851 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7852
7853 Add support for DW_AT_GNAT_descriptive_type.
7854 * gdbtypes.h (enum type_specific_kind): New enum.
7855 (struct main_type) [type_specific_field]: New component.
7856 [type_specific]: Add new component "gnat_stuff".
7857 (struct gnat_aux_type): New type.
7858 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7859 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7860 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7861 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7862 (TYPE_SPECIFIC_FIELD): New macros.
7863 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7864 type does not hold any cplus-specific data.
7865 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7866 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7867 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7868 cplus-specific data.
7869 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7870 Set new component TYPE_SPECIFIC_FIELD (type).
7871 (gnat_aux_default): New constant.
7872 (allocate_gnat_aux_type): New function.
7873 (init_type): Add initialization the type-specific stuff for
7874 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7875 (print_gnat_stuff): New function.
7876 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7877 specific data. Adjust code that prints the contents of the
7878 type-specific union using the TYPE_SPECIFIC_FIELD value.
7879 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7880 the type cplus stuff for Ada types.
7881 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7882 Error out if these routines are called with an Ada type.
7883 (read_structure_type, read_array_type, read_subrange_type):
7884 Add call to set_descriptive_type.
7885 (set_die_type): Initialize the gnat-specific data if necessary.
7886 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7887 New functions.
7888 * ada-lang.c (decode_constrained_packed_array_type): Use
7889 decode_constrained_packed_array_type instead of doing a standard
7890 lookup to locate a parallel type.
7891 (find_parallel_type_by_descriptive_type): New function.
7892 (ada_find_parallel_type_with_name): New function.
7893 (ada_find_parallel_type): Reimplement using
7894 ada_find_parallel_type_with_name.
7895 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7896 to check if type has a cplus stuff.
7897 * linespec.c (total_number_of_methods): Likewise.
7898 * mdebugread.c (new_type): Likewise.
7899
7900 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7901
7902 * NEWS: Document the 0b binary number prefix parsing.
7903
7904 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7905
7906 * objfiles.c (objfile_relocate1): Change the return type to int.
7907 Describe the new return value. Return non-zero if data changed.
7908 (objfile_relocate): New variable changed. Set it. Call
7909 breakpoint_re_set depending on CHANGED.
7910
7911 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 Implement binary numbers parsing.
7914 * c-exp.y (parse_number): New case 'b' and 'B'.
7915
7916 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7917 Tristan Gingold <gingold@adacore.com>
7918
7919 * solib.c (info_sharedlibrary_command): Replace
7920 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7921 objfile_has_symbols.
7922
7923 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7924
7925 * NEWS: Document the improvements made to the mips-irix port.
7926
7927 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7928
7929 Fix the documentation of valprint.c:value_print.
7930 * valprint.c (value_print): Update the function description to
7931 mention that the syntax of the output follows the current_language,
7932 not necessarily C.
7933
7934 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7935
7936 Fix displacement of separate debug info files.
7937 * objfiles.c (objfile_relocate): Rename to ...
7938 (objfile_relocate1): ... here and make it static. Extend the comment.
7939 (objfile_relocate): New function.
7940 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7941 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7942 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7943 allocated using alloca.
7944 * symfile.c (copy_section_addr_info): Remove.
7945 (build_section_addr_info_from_objfile): Make it global. New variables
7946 addr_bit and mask, use them.
7947 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7948 (copy_section_addr_info): Remove.
7949
7950 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7951
7952 Signal unwinder for mips-irix N32.
7953 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7954 tramp-frame.h.
7955 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7956 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7957 (SIGCONTEXT_LO_OFF): New macros.
7958 (mips_irix_n32_tramp_frame_init): New function.
7959 (mips_irix_n32_tramp_frame): New static constant.
7960 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7961
7962 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7963
7964 Breakpoint in shared library does not work on mips-irix.
7965 * procfs.c: #include "observer.h".
7966 (procfs_inferior_created): New function, moving here the code
7967 which unsets the syssgi syscall-exit notifications.
7968 (procfs_create_inferior): Remove the code which unsets the syssgi
7969 syscall-exit notifications. It is too early to do this here.
7970 (_initialize_procfs): Attach the procfs_inferior_created observer.
7971
7972 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7973
7974 Wrong return convention for arrays (mips-irix).
7975 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7976 128 bits or smaller are returned the same way as structs
7977 and unions of the the same size.
7978
7979 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7980
7981 Cannot set the PC on mips-irix.
7982 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7983 register number, no the cooked one.
7984
7985 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7986
7987 Error while loading core file on mips-irix.
7988 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7989 if debugging from a core file.
7990
7991 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7992
7993 GDB hangs when attaching to process on mips-irix.
7994 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7995 attaching to a process.
7996
7997 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7998
7999 Use the correct breakpoint instruction on mips-irix.
8000 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
8001 containing the correct breakpoint instruction to use on mips-irix.
8002 Use it when the osabi is GDB_OSABI_IRIX.
8003
8004 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8005
8006 -Wunused warning in procfs.c (mips-irix only).
8007 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
8008 throughout instead of using praddset and prdelset respectively.
8009
8010 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8011
8012 GDB crash while stepping into function.
8013 * infrun.c (handle_inferior_event): Refetch the current frame
8014 after handling what.main_action, in case that pointer became
8015 dangling.
8016
8017 2010-01-09 Joel Brobecker <brobecker@adacore.com>
8018
8019 Fix build failure of solaris-hosted cross debuggers.
8020 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
8021
8022 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
8023
8024 Fix build failure on sparc-solaris.
8025 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
8026
8027 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8028
8029 Move some symfile code into subroutines.
8030 * symfile.h (relative_addr_info_to_section_offsets)
8031 (addr_info_make_relative): New prototypes.
8032 * symfile.c (default_symfile_offsets): Move a part to ...
8033 (relative_addr_info_to_section_offsets): ... this new function.
8034 (default_symfile_offsets): Call it.
8035 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
8036 this part to ...
8037 (addr_info_make_relative): ... this new function.
8038
8039 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8040
8041 Add from_tty to solib_create_inferior_hook.
8042 * infcmd.c (post_create_inferior): Move solib_add after
8043 solib_create_inferior_hook. Pass from_tty to
8044 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
8045 0 from_tty and comment why.
8046 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
8047 * linux-nat.c (linux_child_follow_fork): Likewise.
8048 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
8049 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
8050 from_tty.
8051 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
8052 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
8053 * solib-null.c (null_solib_create_inferior_hook): Likewise.
8054 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
8055 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
8056 * solib-som.c (som_solib_create_inferior_hook): Likewise.
8057 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
8058 Pass it to svr4_so_ops.solib_create_inferior_hook.
8059 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
8060 from_tty.
8061 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
8062 solib_add.
8063 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
8064 enable_break.
8065 * solib-target.c (solib_target_solib_create_inferior_hook): New
8066 parameter from_tty.
8067 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
8068 it to ops->solib_create_inferior_hook.
8069 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
8070 Move solib_add after solib_create_inferior_hook, call it now with
8071 from_tty as 0. New comment there.
8072 * solib.h (solib_create_inferior_hook): New parameter from_tty.
8073 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
8074 Likewise.
8075
8076 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
8077
8078 Fix multiexec race.
8079 * infrun.c (handle_inferior_event): Use get_thread_regcache
8080 with events ptid, not get_current_regcache.
8081
8082 2009-01-08 Joel Brobecker <brobecker@adacore.com>
8083
8084 GDB crash with empty executable name (MinGW).
8085 * source.c (openp): Add assert that parameter string is not NULL.
8086 if parameter string is an empty string, then return with a failure
8087 immediately.
8088
8089 2009-01-08 Joel Brobecker <brobecker@adacore.com>
8090
8091 Get rid of support for VAX Floats.
8092 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8093 (ada_vax_float_print_function): Delete.
8094 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8095 (ada_vax_float_print_function): Delete.
8096 * ada-typeprint.c (print_vax_floating_point_type): Delete.
8097 (ada_print_type): Remove support for VAX floats.
8098 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
8099
8100 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8101
8102 * stabsread.c (read_args): Handle zero arguments.
8103
8104 2009-01-08 Joel Brobecker <brobecker@adacore.com>
8105
8106 Cannot find in-tree libiconv.a after reconfigure.
8107 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
8108 that we can use, then cache the path to this archive.
8109 * configure: Regenerate.
8110
8111 2010-01-07 Stan Shebs <stan@codesourcery.com>
8112
8113 Make tracepoint operations go through target vector.
8114 * target.h (enum trace_find_type): New enum.
8115 (struct target_ops): New fields to_trace_init,
8116 to_download_tracepoint, to_download_trace_state_variable,
8117 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
8118 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
8119 to_set_disconnected_tracing.
8120 (target_trace_init): New macro.
8121 (target_download_tracepoint): New macro.
8122 (target_download_trace_state_variable): New macro.
8123 (target_trace_start): New macro.
8124 (target_trace_set_readonly_regions): New macro.
8125 (target_get_trace_status): New macro.
8126 (target_trace_stop): New macro.
8127 (target_trace_find): New macro.
8128 (target_get_trace_state_variable_value): New macro.
8129 (target_set_disconnected_tracing): New macro.
8130 * target.c (update_current_target): Inherit and set defaults for
8131 tracepoint operations.
8132 * tracepoint.c (default_collect): Make globally visible.
8133 (target_is_remote): Remove, along with all calls.
8134 (tvariables_info): Call target_get_trace_state_variable_value.
8135 (remote_set_transparent_ranges): Remove.
8136 (trace_start_command): Call target_trace_init,
8137 target_download_tracepoint, etc.
8138 (download_tracepoint): Remove.
8139 (trace_stop_command): Simplify.
8140 (stop_tracing): Call target_trace_stop.
8141 (get_trace_status): Call target_get_trace_status.
8142 (trace_status_command): Add case for targets that cannot trace.
8143 (finish_tfind_command): Change to take numerical arguments, call
8144 target_trace_find.
8145 (trace_find_command): Update call to finish_tfind_command.
8146 (trace_find_pc_command): Ditto.
8147 (trace_find_tracepoint_command): Ditto.
8148 (trace_find_line_command): Ditto.
8149 (trace_find_range_command): Ditto.
8150 (trace_find_outside_command): Ditto.
8151 (set_disconnected_tracing_value): Call
8152 target_set_disconnected_tracing.
8153 * remote.c: Add protocol encoding bits from tracepoint.c.
8154 (trace_error): Move from tracepoint.c.
8155 (remote_get_noisy_reply): Ditto.
8156 (free_actions_list_cleanup_wrapper): Ditto.
8157 (free_actions_list): Ditto.
8158 (remote_trace_init): New function.
8159 (remote_download_tracepoint): New function.
8160 (remote_download_trace_state_variable): New function.
8161 (remote_trace_set_readonly_regions): New function.
8162 (remote_trace_start): New function.
8163 (remote_get_trace_status): New function.
8164 (remote_trace_stop): New function.
8165 (remote_trace_find): New function.
8166 (remote_download_trace_state_variable): New function.
8167 (remote_set_disconnected_tracing): New function.
8168 (init_remote_ops): Add tracepoint operations.
8169
8170 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
8171
8172 2010-01-07 Tristan Gingold <gingold@adacore.com>
8173
8174 * symfile.c (build_section_addr_info_from_objfile): New function.
8175 (symbol_file_add_separate): Don't use offsets from objfile but
8176 built an addr info.
8177
8178 2010-01-06 Stan Shebs <stan@codesourcery.com>
8179
8180 Support disconnected tracing.
8181 * infcmd.c (detach_command): Ask whether to stop tracing.
8182 * cli/cli-cmds.c (quit_command): Ditto.
8183 * breakpoint.h (struct breakpoint): New field number_on_target.
8184 * breakpoint.c (create_tracepoint_from_upload): New function.
8185 (get_tracepoint_by_number_on_target): New function.
8186 * remote.c (struct remote): New field disconnected_tracing.
8187 (remote_disconnected_tracing_feature): New function.
8188 (remote_protocol_features): Add DisconnectedTracing.
8189 (struct uploaded_tp): New struct.
8190 (uploaded_tps): New global.
8191 (get_uploaded_tp): New function.
8192 (find_matching_tracepoint): New function.
8193 (remote_get_tracing_state): New function.
8194 (remote_start_remote): Call it.
8195 * tracepoint.c (disconnected_tracing): New global.
8196 (trace_start_command): Initialize number_on_target.
8197 (stop_tracing): New function, split out from...
8198 (trace_stop_command): Call stop_tracing.
8199 (get_trace_status): New function, split out from...
8200 (trace_status_command): Call get_trace_status, add info on
8201 disconnection behavior.
8202 (disconnect_or_stop_tracing): New function.
8203 (finish_tfind_command): Translate from number on target.
8204 (trace_find_tracepoint_command): Translate to number on target.
8205 (send_disconnected_tracing_value): New function.
8206 (set_disconnected_tracing): New function.
8207 (_initialize_tracepoint): Add disconnected-tracing variable.
8208 * NEWS: Mention disconnected tracing.
8209
8210 2010-01-06 Tristan Gingold <gingold@adacore.com>
8211
8212 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
8213 parameter to main_objfile. Iterate on all separate debug objfiles.
8214 * symfile.h (symbol_file_add_separate)
8215 (find_separate_debug_file_by_debuglink): Remove parameter names.
8216 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
8217 (reread_symbols): Use free_objfile_separate_debug.
8218 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
8219 Adjust comment.
8220 (objfile_separate_debug_iterate, add_separate_debug_objfile)
8221 (free_objfile_separate_debug): New prototypes.
8222 * objfiles.c (objfile_separate_debug_iterate): New function.
8223 (add_separate_debug_objfile, free_objfile_separate_debug): New
8224 functions.
8225 (free_objfile): Use free_objfile_separate_debug. Adjust for
8226 multiple separate debug objfile.
8227 (objfile_has_symbols): Adjust comment. Iterate on all separate
8228 debug objfiles.
8229 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
8230 debug objfile.
8231 (lookup_minimal_symbol_text): Ditto.
8232 (lookup_minimal_symbol_by_pc_name): Ditto.
8233 (lookup_minimal_symbol_solib_trampoline): Ditto.
8234 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
8235 debug objfiles.
8236
8237 2010-01-05 Stan Shebs <stan@codesourcery.com>
8238
8239 Add fast tracepoints.
8240 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
8241 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
8242 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
8243 * breakpoint.c (tracepoint_type): New function.
8244 (ALL_TRACEPOINTS): Use it.
8245 (should_be_inserted): Ditto.
8246 (bpstat_check_location): Ditto.
8247 (print_one_breakpoint_location): Ditto.
8248 (user_settable_breakpoint): Ditto.
8249 (set_breakpoint_location_function): Ditto.
8250 (disable_breakpoints_in_shlibs): Ditto.
8251 (delete_trace_command): Ditto.
8252 (print_it_typical): Add bp_fast_tracepoint case.
8253 (bpstat_what): Ditto.
8254 (print_one_breakpoint_location): Ditto.
8255 (allocate_bp_location): Ditto.
8256 (mention): Ditto.
8257 (breakpoint_re_set_one): Ditto.
8258 (disable_command): Ditto.
8259 (enable_command): Ditto.
8260 (check_fast_tracepoint_sals): New function.
8261 (break_command_really): Call it.
8262 (ftrace_command): New function.
8263 (_initialize_breakpoint): Add ftrace command.
8264 * gdbarch.sh (fast_tracepoint_valid_at): New.
8265 * gdbarch.h, gdbarch.c: Regenerate.
8266 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
8267 (i386_gdbarch_init): Use it.
8268 * remote.c (struct remote_state): New field fast_tracepoints.
8269 (PACKET_FastTracepoints): New packet config type.
8270 (remote_fast_tracepoint_feature): New function.
8271 (remote_protocol_features): Add FastTracepoints.
8272 (remote_supports_fast_tracepoints): New function.
8273 (_initialize_remote): Add FastTracepoints.
8274 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
8275 * NEWS: Mention fast tracepoints.
8276
8277 2010-01-06 Joel Brobecker <brobecker@adacore.com>
8278
8279 * gdb-gdb.py: New file.
8280
8281 2010-01-05 Michael Snyder <msnyder@vmware.com>
8282
8283 * infrun.c (handle_inferior_event): Fix typo in comment.
8284
8285 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8286
8287 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
8288
8289 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8290
8291 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
8292 and s390x-linux64.
8293 (s390-linux32-expedite): Define.
8294 (s390-linux64-expedite): Define.
8295 (s390x-linux64-expedite): Define.
8296 * features/s390-acr.xml: New file.
8297 * features/s390-fpr.xml: New file.
8298 * features/s390-core32.xml: New file.
8299 * features/s390-core64.xml: New file.
8300 * features/s390x-core64.xml: New file.
8301 * features/s390-linux32.xml: New file.
8302 * features/s390-linux64.xml: New file.
8303 * features/s390x-linux64.xml: New file.
8304 * features/s390-linux32.c: New generated file.
8305 * features/s390-linux64.c: New generated file.
8306 * features/s390x-linux64.c: New generated file.
8307
8308 * regformats/s390-linux32.dat: New generated file.
8309 * regformats/s390-linux64.dat: New generated file.
8310 * regformats/s390x-linux64.dat: New generated file.
8311 * regformats/reg-s390.dat: Remove.
8312 * regformats/reg-s390x.dat: Remove.
8313
8314 * s390-nat.c: Include "auxv.h" and <elf.h>.
8315 (HWCAP_S390_HIGH_GPRS): Define if undefined.
8316 (s390_target_wordsize): New function.
8317 (s390_auxv_parse): Likewise.
8318 (s390_get_hwcap): Likewise.
8319 (s390_read_description): Likewise.
8320 (_initialize_s390_nat): Install s390_auxv_parse and
8321 s390_read_description.
8322
8323 * s390-tdep.c: Include "features/s390-linux32.c",
8324 "features/s390-linux64.c", and "features/s390x-linux64.c".
8325 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
8326 (s390_register_call_saved): New function.
8327 (s390_register_name): Remove.
8328 (s390_register_type): Remove.
8329 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
8330 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
8331 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
8332 (s390_pseudo_register_name): New function.
8333 (s390_pseudo_register_type): New function.
8334 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
8335 Handle full GPR pesudos and varying pseudo register numbers.
8336 (s390_pseudo_register_write): Likewise
8337 (s390x_pseudo_register_read): Remove.
8338 (s390x_pseudo_register_write): Likewise.
8339 (s390_register_group): Remove.
8340 (s390_pseudo_register_group): New function.
8341 (s390_regmap_gregset): Add GPR upper halves.
8342 (s390x_regmap_gregset): Likewise.
8343 (s390_regmap_fpregset): Likewise.
8344 (s390_regmap_upper): New global variable.
8345 (s390_upper_regset): New global variable.
8346 (s390_upper_regset_sections): New global variable.
8347 (s390_regset_from_core_section): Handle GPR upper halves.
8348 (s390_core_read_description): New function.
8349 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
8350 register information. Handle varying pseudo register numbers.
8351 (s390_backchain_frame_unwind_cache): Likewise.
8352 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
8353 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
8354 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
8355 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
8356 Handle varying pseudo register numbers.
8357 (s390_unwind_pc): Handle varying pseudo register numbers.
8358 (s390_dwarf2_prev_register): New function.
8359 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
8360 register information. Handle varying pseudo register numbers.
8361 Install s390_dwarf2_prev_register to unwind full GPRs.
8362 (s390_gdbarch_init): Handle target descriptions. Assign varying
8363 pseudo register numbers. Install s390_adjust_frame_regnum.
8364 (_initialize_s390_tdep): Initialize target descriptions.
8365
8366 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
8367 (S390_NUM_REGS): Redefine to include upper half registers.
8368 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
8369 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
8370 (tdesc_s390_linux32): Add declaration.
8371 (tdesc_s390_linux64): Likewise.
8372 (tdesc_s390x_linux64): Likewise.
8373
8374 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8375
8376 * regset.h (struct core_regset_section): Add HUMAN_NAME.
8377 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
8378 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
8379 (ppc_linux_vmx_regset_sections): Likewise.
8380 (ppc_linux_fp_regset_sections): Likewise.
8381
8382 * corelow.c (get_core_register_section): Constify arguments.
8383 (get_core_registers): Use gdbarch_core_regset_sections instead
8384 of hard-coded platform-specific register section names.
8385
8386 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8387
8388 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
8389 a register, assume the least-significant part is used.
8390 (write_pieced_value): Likewise.
8391
8392 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8393
8394 * printcmd.c: Include "arch-utils.h".
8395 (do_one_display): Re-parse expression if current architecture changed.
8396
8397 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8398 Joel Brobecker <brobecker@adacore.com>
8399
8400 * gdbtypes.c (check_typedef): New comment on type length.
8401 * value.c (allocate_value_lazy): Remove the unused atype variable. New
8402 comment on type length.
8403 (value_primitive_field): Keep the original TYPE value, new comment.
8404
8405 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8406
8407 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
8408 p_start. Change != comparisons to > and < comparisons.
8409
8410 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8411
8412 * cli/cli-script.c (process_next_line): Check P2 overrun.
8413
8414 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8415
8416 Update the copyright hearder to add year 2010 for most GDB files.
8417
8418 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8419
8420 Fix build failure in inf-ptrace.c.
8421 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
8422
8423 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8424
8425 * top.c (print_gdb_version): Update copyright year.
8426
8427 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
8428
8429 Fix break *FUN'address thread NUM.
8430 * ada-lex.l (task): Expand rule to also match the thread keyword.
8431
8432 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8433
8434 Fix break *FUN'address task NUM.
8435 * ada-lex.l (task): New rule.
8436 * ada-lang.c (valid_task_id): Make sure the Ada task list has
8437 been built before using it.
8438
8439 For older changes see ChangeLog-2009.
8440 \f
8441 Local Variables:
8442 mode: change-log
8443 left-margin: 8
8444 fill-column: 74
8445 version-control: never
8446 coding: utf-8
8447 End:
This page took 0.203895 seconds and 4 git commands to generate.