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