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