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