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