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