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