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