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