3907fa30f1b53dcf6a810131ef6353ea1e449e59
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * ada-lang.h (ada_print_type): Make varstring const.
4 * ada-typeprint.c (print_func_type): Make name const.
5 (ada_print_type): Make varstring const.
6 * c-lang.h (c_print_type): Make varstring const.
7 * c-typeprint.c (c_print_type): Likewise.
8 * f-lang.h (f_print_type): Likewise.
9 * f-typeprint.c (f_print_type): Likewise.
10 * jv-lang.h (java_print_type): Likewise.
11 * jv-typeprint.c (java_print_type): Likewise.
12 * language.c (unk_lang_print_type): Likewise.
13 * language.h (struct language_defn) <la_print_type>: Likewise.
14 * m2-lang.h (m2_print_type): Likewise.
15 * m2-typeprint.c (m2_print_type): Likewise.
16 * p-lang.h (pascal_print_type): Likewise.
17 * p-typeprint.c (pascal_print_type): Likewise.
18
19 2010-06-11 Stan Shebs <stan@codesourcery.com>
20
21 Add per-operation permission flags.
22
23 * target.h (struct target_ops): New method to_set_permissions.
24 (target_set_permissions): New macro.
25 (target_insert_breakpoint): Change macro to function.
26 (target_remove_breakpoint): Ditto.
27 (target_stop): Ditto.
28 (may_write_registers): Declare.
29 (may_write_memory): Declare.
30 (may_insert_breakpoints): Declare.
31 (may_insert_tracepoints): Declare.
32 (may_insert_fast_tracepoints): Declare.
33 (may_stop): Declare.
34 * target.c (may_write_registers, may_write_registers_1): New globals.
35 (may_write_memory, may_write_memory_1): New globals.
36 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
37 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
38 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
39 globals.
40 (may_stop, may_stop_1): New global.
41 (target_xfer_partial): Test for write permission.
42 (target_store_registers): Ditto.
43 (target_insert_breakpoint): New function.
44 (target_remove_breakpoint): New function.
45 (target_stop): New function.
46 (_initialize_targets): Add new set/show variables.
47 (set_write_memory_permission): New function.
48 (update_target_permissions): New function.
49 (set_target_permissions): New function.
50 (update_current_target): Default to_set_permissions.
51 (_initialize_targets): Use new globals and setter function.
52 * tracepoint.c (start_tracing): Test for permission.
53 * inferior.h (update_observer_mode): Declare.
54 * infrun.c (non_stop_1): Define earlier.
55 (observer_mode, observer_mode_1): New globals.
56 (set_observer_mode, show_observer_mode): New functions.
57 (update_observer_mode): New function.
58 (_initialize_infrun): Define "set observer" command.
59 * remote.c (PACKET_QAllow): New optional packet.
60 (remote_protocol_features): Add QAllow.
61 (remote_set_permissions): New function.
62 (remote_start_remote): Call it.
63 (init_remote_ops): Add it to target vector.
64 (_initialize_remote): Add config command for QAllow.
65
66 2010-06-11 Tom Tromey <tromey@redhat.com>
67
68 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
69 DW_AT_vtable_elem_location even when GCC extension is seen.
70
71 2010-06-11 Tom Tromey <tromey@redhat.com>
72
73 PR gdb/9977, PR exp/11636:
74 * value.h (value_offset): Update.
75 (struct lval_funcs) <check_validity>: New field.
76 <copy_closure>: Make argument const.
77 (value_computed_closure): Update.
78 (value_contents_for_printing): Declare.
79 (value_bits_valid): Likewise.
80 (val_print): Likewise.
81 (set_value_component_location): Update.
82 (value_entirely_optimized_out): Declare.
83 * value.c (value_offset): Argument now const.
84 (require_not_optimized_out): New function.
85 (value_contents_for_printing): New function.
86 (value_contents_all): Call require_not_optimized_out.
87 (value_contents): Likewise.
88 (value_bits_valid): New function.
89 (value_computed_closure): Argument now const.
90 (set_value_component_location): Make 'whole' argument const.
91 (value_entirely_optimized_out): New function.
92 (value_bitsize): Argument now 'const'.
93 (value_bitpos): Likewise.
94 (value_type): Likewise.
95 * valprint.h (val_print_array_elements): Update.
96 * valprint.c (val_print): Add 'val' argument. Use
97 valprint_check_validity.
98 (valprint_check_validity): New function.
99 (value_check_printable): Use value_entirely_optimized_out.
100 (common_val_print): Update.
101 (value_print): Likewise.
102 (val_print_array_elements): Add 'val' argument.
103 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
104 value_bits_valid. Reinit frame cache for lval_computed.
105 * sh64-tdep.c (sh64_do_register): Update.
106 * scm-valprint.c (scm_val_print): Add 'val' argument.
107 * scm-lang.h (scm_val_print): Update.
108 * python/python.h (apply_val_pretty_printer): Update.
109 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
110 argument. Call set_value_component_location.
111 * printcmd.c (print_scalar_formatted): Update.
112 * p-valprint.c (pascal_val_print): Add 'val' argument.
113 (pascal_object_print_value_fields): Likewise.
114 (pascal_object_print_value): Likewise.
115 (pascal_object_print_static_field): Update.
116 * p-lang.h (pascal_val_print): Update.
117 (pascal_object_print_value_fields): Update.
118 * mt-tdep.c (mt_registers_info): Update.
119 * mi/mi-main.c (get_register): Update.
120 (mi_cmd_data_evaluate_expression): Use common_val_print.
121 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
122 (m2_print_unbounded_array): Likewise.
123 (m2_val_print): Likewise.
124 * m2-lang.h (m2_val_print): Update.
125 * language.h (struct language_defn) <la_val_print>: Add 'val'
126 argument.
127 (LA_VAL_PRINT): Likewise.
128 * language.c (unk_lang_val_print): Add 'val' argument.
129 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
130 (java_val_print): Likewise.
131 * jv-lang.h (java_val_print): Add 'val' argument.
132 * infcmd.c (default_print_registers_info): Update.
133 * f-valprint.c (f77_print_array_1): Add 'val' argument.
134 (f77_print_array): Likewise.
135 (f_val_print): Likewise.
136 * f-lang.h (f_val_print): Add 'val' argument.
137 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
138 value_bitpos.
139 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
140 set_value_optimized_out.
141 (write_pieced_value): Use value_bitsize and value_bitpos.
142 <default>: Don't exit loop.
143 (check_pieced_value_validity): New function.
144 (pieced_value_funcs): Reference check_pieced_value_validity,
145 check_pieced_value_invalid.
146 (copy_pieced_value_closure): Update.
147 (check_pieced_value_bits): New function.
148 (check_pieced_value_invalid): New function.
149 * d-valprint.c (dynamic_array_type): Add 'val' argument.
150 (d_val_print): Likewise.
151 * d-lang.h (d_val_print): Update.
152 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
153 (cp_print_value_fields_rtti): Likewise.
154 (cp_print_value): Likewise.
155 (cp_print_static_field): Update.
156 * c-valprint.c (c_val_print): Add 'val' argument.
157 (c_value_print): Update.
158 * c-lang.h (c_val_print): Update.
159 (cp_print_value_fields): Likewise.
160 (cp_print_value_fields_rtti): Likewise.
161 * ada-valprint.c (struct ada_val_print_args): Remove.
162 (val_print_packed_array_elements): Add 'val' argument.
163 (ada_val_print): Likewise. Rewrite.
164 (ada_val_print_stub): Remove.
165 (ada_val_print_array): Add 'val' argument.
166 (ada_val_print_1): Likewise.
167 (print_variant_part): Likewise.
168 (ada_value_print): Update.
169 (print_record): Add 'val' argument.
170 (print_field_values): Likewise.
171 * ada-lang.h (ada_val_print): Update.
172
173 2010-06-11 Tom Tromey <tromey@redhat.com>
174
175 * vec.h (VEC_cleanup): New macro.
176 (DEF_VEC_ALLOC_FUNC_I): Update.
177 (DEF_VEC_ALLOC_FUNC_P): Likewise.
178 (DEF_VEC_ALLOC_FUNC_O): Likewise.
179 * dwarf2loc.c (struct axs_var_loc): Remove.
180 (unimplemented): New function.
181 (translate_register): Likewise.
182 (access_memory): Likewise.
183 (compile_dwarf_to_ax): Likewise.
184 (dwarf2_tracepoint_var_loc): Remove.
185 (dwarf2_tracepoint_var_access): Likewise.
186 (dwarf2_tracepoint_var_ref): Likewise.
187 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
188 (loclist_tracepoint_var_ref): Likewise.
189 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
190 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
191 require_composition. No longer static.
192 (execute_stack_op): Update.
193 * ax-gdb.h (trace_kludge): Declare.
194
195 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
196
197 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
198 (should_be_inserted): Return zero also on NULL OWNER.
199 (breakpoint_program_space_exit): New OWNER comment.
200 (insert_breakpoint_locations): Extend comment for OWNER.
201 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
202 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
203 New OWNER comment.
204 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
205 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
206 (bpstat_check_location): New assert on OWNER.
207 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
208 and B initializations to the code block. New assert on them.
209 (print_one_breakpoint_location): New OWNER comment.
210 (watchpoint_locations_match): Assert on OWNER.
211 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
212 initializations to the code block. New assert on OWNER.
213 (set_breakpoint_location_function): New assert on OWNER.
214 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
215 (bp_location_compare, update_global_location_list)
216 (update_global_location_list): New OWNER comment.
217
218 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
219
220 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
221
222 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
223
224 * config/nm-linux.h (struct target_ops): Remove forward declaration.
225 (lin_thread_get_thread_signals): Remove prototype.
226 (GET_THREAD_SIGNALS): Remove.
227 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
228 * linux-thread-db.c (check_thread_signals): Directly call
229 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
230
231 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
232
233 * gregset.h (GDB_FPXREGSET_T): Remove.
234 (gdb_fpxregset_t): Likewise.
235 (supply_fpxregset): Remove prototype.
236 (fill_fpxregset): Likewise.
237 * i386-linux-nat.c (supply_fpxregset): Remove.
238 (fill_fpxregset): Likewise.
239 (fetch_fpxregs): Inline supply_fpxregset call.
240 (store_fpxregs): Inline fill_fpxregset call.
241
242 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
243 * config/i386/nm-linux.h: Remove file.
244
245 2010-06-09 Michael Snyder <msnyder@vmware.com>
246
247 * target.c (update_current_target): Fix spelling error in comment.
248 (target_mourn_inferior): Fix spelling error in error message.
249
250 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
251
252 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
253 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
254
255 2010-06-08 Michael Snyder <msnyder@vmware.com>
256
257 * remote.c (remote_close): Set inferior_ptid to null_ptid.
258
259 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
260
261 * configure.ac <"${have_libpython}" != no>: New workaround of
262 python#4434.
263 * configure: Regenerate.
264
265 2010-06-08 Hui Zhu <teawater@gmail.com>
266
267 * record.c (record_wait): Move signal out of replay code.
268
269 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
270
271 Fix PR 10640.
272 * dwarf2-frame.c (no_dwarf_call): New function.
273 (execute_stack_op): Set CTX->DWARF_CALL.
274 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
275 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
276 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
277 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
278 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
279 (needs_frame_dwarf_call): New function.
280 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
281 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
282 Update the comment. Move variables die, offset and error call to ...
283 (follow_die_ref): ... a new function.
284 (dwarf2_fetch_die_location_block): New function.
285 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
286
287 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
288
289 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
290 (dwarf_expr_tls_address): Use per_cu instead of objfile.
291 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
292 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
293 this change.
294 (struct needs_frame_baton): New field per_cu.
295 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
296 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
297
298 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
299
300 * cp-support.c (make_symbol_overload_list_namespace): Only search
301 static and global blocks.
302 (make_symbol_overload_list_block): New function.
303 (make_symbol_overload_list): Separate namespace search from block
304 search.
305 (make_symbol_overload_list_qualified): Use
306 make_symbol_overload_list_block.
307
308 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
309
310 * value.h: Created oload_search_type enum.
311 (find_overload_match): Use oload_search_type enum.
312 * valops.c (find_overload_match): Support combined member and
313 non-member search.
314 * eval.c (evaluate_subexp_standard): Calls to
315 find_overload_match now use oload_search_type enum.
316 (oload_method_static): Verify index is a proper value.
317 * valarith.c (value_user_defined_cpp_op): Search for and handle
318 both member and non-member operators.
319 (value_user_defined_cpp_op): New function.
320 (value_user_defined_op): New function.
321 (value_x_unop): Use value_user_defined_op.
322 (value_x_binop): Ditto.
323 * cp-support.c (make_symbol_overload_list_using): Added block
324 iteration.
325 Add check for namespace aliases and imported declarations.
326
327 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
328
329 * breakpoint.h (owner): Extend the comment.
330
331 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
332
333 Clear stale specific bp_location from former whole breakpoint.
334 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
335 code ...
336 (free_bp_location): ... here. Rename there the called function to
337 bpstat_remove_bp_location_callback.
338 (bpstat_remove_breakpoint_callback): Rename to ...
339 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
340 to struct bp_location. Change the called function to
341 bpstat_remove_bp_location. Create new declaration for the function.
342 (bpstat_remove_breakpoint): Rename to ...
343 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
344 code for the new parameter type.
345
346 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
347
348 * README: Make version-agnostic.
349
350 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
351
352 Fix duplicate types for single DIE.
353 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
354 set_die_type.
355 (read_array_type): Remove type initialization. Recheck get_die_type
356 after initial die_type. Move set_die_type before set_descriptive_type.
357 (read_set_type): New variable domain_type. Recheck get_die_type after
358 initial die_type. Move attr initialization later.
359 (read_tag_pointer_type, read_tag_reference_type): New variable
360 target_type. Recheck get_die_type after initial die_type.
361 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
362 die_type and die_containing_type.
363 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
364 Recheck get_die_type after initial die_type.
365 (read_subrange_type): Recheck get_die_type after initial die_type.
366 Move set_die_type before set_descriptive_type.
367 (set_die_type): Extend the function comment. Call complaint if DIE has
368 some type already set.
369
370 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
371
372 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
373 for current naming of thread groups (iN, not N).
374
375 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
376
377 * ada-lang.c (ada_operator_length): Constify `struct expression'.
378 * parse.c (operator_length): Likewise.
379 (operator_length_standard): Likewise.
380 * parser-defs.h (operator_length): Likewise.
381 (operator_length_standard): Likewise.
382 (struct exp_descriptor <operator_length>): Likewise.
383
384 2010-06-04 Doug Evans <dje@google.com>
385
386 Add support for enabling/disabling individual pretty-printers.
387 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
388 * python/python-internal.h (gdbpy_enabled_cst): Declare.
389 * python/python.c (gdbpy_enabled_cst): Define.
390 (_initialize_python): Initialize gdbpy_enabled_cst.
391 * NEWS: Add entry.
392
393 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 * breakpoint.c (update_global_location_list): Fix comment typo.
396
397 2010-06-04 Hui Zhu <teawater@gmail.com>
398
399 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
400
401 2010-06-03 Doug Evans <dje@google.com>
402
403 * configure.ac: Don't fail if python is unusable when
404 configured with --with-python=auto.
405 * configure: Regenerate.
406
407 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
408
409 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
410
411 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
412
413 * valprint.h (get_array_bounds): Change low and high parameter types
414 to LONGEST *.
415 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
416 compute bounds.
417 (val_print_array_elements): Adapt to change above.
418 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
419 * p-valprint.c (pascal_val_print): Likewise.
420
421 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
422
423 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
424 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
425 .F08.
426
427 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 Support DW_TAG_module as separate namespaces.
430 * dwarf2read.c (typename_concat): New parameter physname.
431 (read_module_type): New function and declaration.
432 (scan_partial_symbols): Scan also DW_TAG_module children.
433 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
434 to typename_concat backward compatible physname value 0.
435 (partial_die_full_name, read_namespace_type): Pass to typename_concat
436 backward compatible physname value 0.
437 (add_partial_module, read_module): Remove FIXME comment.
438 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
439 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
440 DIEs under DW_TAG_module.
441 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
442 DW_AT_MIPS_linkage_name first, extend it for language_fortran
443 && physname and return there instead of just setting NAME. Extend
444 the main block for language_fortran. Pass physname parameter to the
445 typename_concat call.
446 (read_import_statement, read_func_scope, get_scope_pc_bounds)
447 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
448 (new_symbol): Fill in cplus_specific.demangled_name if it is still
449 missing from SYMBOL_SET_NAMES in the language_fortran case.
450 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
451 variables.
452 (read_type_die) <DW_TAG_module>: New.
453 (MAX_SEP_LEN): Increase to 7.
454 (typename_concat): New parameter physname. New variable lead. Support
455 also language_fortran.
456 * f-exp.y (yylex): Consider : also as a symbol name character class.
457 * f-lang.c: Include cp-support.h.
458 (f_word_break_characters, f_make_symbol_completion_list): New functions.
459 (f_language_defn): Use cp_lookup_symbol_nonlocal,
460 f_word_break_characters and f_make_symbol_completion_list.
461 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
462 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
463 * symtab.c (symbol_init_language_specific): Support language_fortran.
464 (symbol_find_demangled_name): New comment on language_fortran.
465 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
466 for language_fortran.
467 (lookup_symbol_aux_local): Check imports also for language_fortran.
468 (default_make_symbol_completion_list): Rename to ...
469 (default_make_symbol_completion_list_break_on): ... this name. New
470 parameter break_on, use it.
471 (default_make_symbol_completion_list): New stub.
472 * symtab.h (default_make_symbol_completion_list_break_on): New
473 prototype.
474
475 2010-06-02 Joel Brobecker <brobecker@adacore.com>
476
477 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
478 to error.
479
480 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
481
482 * dwarf2read.c (typename_concat): Add const to the variable sep.
483
484 2010-06-02 Tom Tromey <tromey@redhat.com>
485
486 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
487 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
488 type is const. Add 'def' argument. Add missing operators, remove
489 unhandled ones.
490 (decode_locdesc): Update.
491 (dwarf2_always_disassemble): New global.
492 (show_dwarf2_always_disassemble): New function.
493 (_initialize_dwarf2_read): Add always-disassemble.
494 (dwarf2_per_cu_offset_size): New function.
495 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
496 (piece_end_p): New function.
497 (locexpr_describe_location_piece): Replace 'size' argument with
498 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
499 some constants. Remove errors.
500 (disassemble_dwarf_expression): New function.
501 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
502 Add 'offset_size' argument.
503 (loclist_describe_location): Change output formatting.
504 * dwarf2expr.h (dwarf_stack_op_name): Declare.
505
506 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
507
508 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
509 anonymous type case.
510
511 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
512
513 * dwarf2read.c (read_subrange_type): Handle missing base type
514 according to Dwarf-2 specifications.
515
516 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
517
518 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
519 BINOP_EXCL.
520 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
521 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
522 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
523 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
524 UNOP_CHMAX, UNOP_CHMIN.
525 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
526 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
527 UNOP_CHMIN>: Remove opcodes.
528
529 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
530
531 * dwarf2read.c (read_func_scope): Do not complain for
532 external function if bounds are not found.
533
534 2010-06-01 Pedro Alves <pedro@codesourcery.com>
535
536 * NEWS: Mention gdbserver fast tracepoints support.
537
538 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
539
540 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
541 New macros.
542 (windows_set_console_info): New function.
543 (windows_create_inferior): Call windows_set_console_info
544 if NEW_CONSOLE is true.
545 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
546 (_initialize_loadable): Initialize GetConsoleFontSize and
547 GetCurrentConsoleFont.
548
549 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 * Makefile.in (RDYNAMIC): New.
552 (SFILES): Add proc-service.list.
553 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
554 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
555 * config/arm/linux.mh: Likewise.
556 * config/i386/linux.mh: Likewise.
557 * config/i386/linux64.mh: Likewise.
558 * config/ia64/linux.mh: Likewise.
559 * config/m32r/linux.mh: Likewise.
560 * config/m68k/linux.mh: Likewise.
561 * config/mips/linux.mh: Likewise.
562 * config/pa/linux.mh: Likewise.
563 * config/powerpc/linux.mh: Likewise.
564 * config/powerpc/ppc64-linux.mh: Likewise.
565 * config/s390/s390.mh: Likewise.
566 * config/sparc/linux.mh: Likewise.
567 * config/sparc/linux64.mh: Likewise.
568 * config/xtensa/linux.mh: Likewise.
569 * configure.ac: New RDYNAMIC on native host and GCC.
570 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
571 * configure: Regenerate.
572 * proc-service.list: New.
573
574 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
577 CONTENT.
578
579 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
580
581 * linux-nat.c (linux_nat_wait_1): Do not call
582 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
583 TARGET_WAITKIND_SIGNALLED.
584
585 2010-05-27 Joel Brobecker <brobecker@adacore.com>
586
587 * ada-lang.c (ada_inferior_data): New struct.
588 (ada_inferior_data): New static global.
589 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
590 (ada_get_tsd_type): New functions.
591 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
592 to look the tsd type up.
593 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
594 event. Set ada_inferior_data.
595
596 2010-05-27 Pedro Alves <pedro@codesourcery.com>
597
598 * remote.c (unpack_varlen_hex): Remove forward declaration.
599 (remote_console_output): Make static, and add forward declaration.
600 * remote.h: Drop FIXME comment.
601 (unpack_varlen_hex): Declare.
602 (remote_console_output, remote_cisco_objfile_relocate)
603 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
604 Delete declarations.
605 * tracepoint.c: Include "remote.h".
606 (unpack_varlen_hex): Delete declaration.
607
608 2010-05-27 Tom Tromey <tromey@redhat.com>
609
610 * dwarf2loc.c (struct piece_closure) <refc>: New field.
611 (allocate_piece_closure): Initialize refc.
612 (copy_pieced_value_closure): Use refc.
613 (free_pieced_value_closure): Likewise.
614
615 2010-05-27 Tom Tromey <tromey@redhat.com>
616
617 * arm-tdep.c (push_stack_item): 'contents' now const.
618 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
619 value_contents_writeable. Introduce new temporary.
620
621 2010-05-27 Tom Tromey <tromey@redhat.com>
622
623 * findcmd.c (parse_find_args): Use value_contents, not
624 value_contents_raw.
625
626 2010-05-27 Tom Tromey <tromey@redhat.com>
627
628 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
629 const. Use value_contents, not value_contents_writeable.
630
631 2010-05-27 Joel Brobecker <brobecker@adacore.com>
632
633 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
634 by call to value_contents.
635
636 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
637
638 * MAINTAINERS: Add myself for write after approval privileges.
639
640 2010-05-26 Doug Evans <dje@google.com>
641
642 Allow python to find its files if moved from original location.
643 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
644 (GDB_AC_WITH_DIR): Call it.
645 * configure.ac: Define WITH_PYTHON_PATH if we can find the
646 python installation directory.
647 * config.in: Regenerate.
648 * configure: Regenerate.
649 * defs.h (python_libdir): Declare.
650 * main.c (python_libdir): Define.
651 (captured_main): Initialize python_libdir.
652 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
653 call Py_SetProgramName to make sure python can find its libraries
654 and modules.
655
656 * configure.ac: Try to use python's distutils to fetch compilation
657 parameters.
658 * configure: Regenerate.
659 * python/python-config.py: New file.
660
661 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
662
663 * ser-tcp.c (net_open): Check error return from socket() call by its
664 equality to -1 not by it being negative.
665 (net_close): Likewise.
666
667 2010-05-26 Pedro Alves <pedro@codesourcery.com>
668
669 * NEWS: Mention the `qRelocInsn' feature.
670 * gdbarch.sh (relocate_instruction): New.
671 * amd64-tdep.c (rip_relative_offset): New.
672 (append_insns): New.
673 (amd64_relocate_instruction): New.
674 (amd64_init_abi): Install it.
675 * i386-tdep.c (append_insns): New.
676 (i386_relocate_instruction): New.
677 (i386_gdbarch_init): Install it.
678 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
679 * gdbarch.h, gdbarch.c: Regenerate.
680
681 2010-05-26 Tom Tromey <tromey@redhat.com>
682
683 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
684 (struct dwarf2_loclist_baton) <data>: Likewise.
685 * dwarf2loc.c (find_location_expression): Constify return type.
686 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
687 (dwarf2_loc_desc_needs_frame): Likewise.
688 (loclist_read_variable): Constify.
689 (loclist_describe_location): Likewise.
690 (loclist_tracepoint_var_ref): Likewise.
691
692 2010-05-25 Tom Tromey <tromey@redhat.com>
693
694 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
695 (dwarf_expr_frame_base_1): Likewise.
696 (read_pieced_value): Update.
697 (needs_frame_frame_base): Constify.
698 (dwarf2_tracepoint_var_loc): Likewise.
699 (dwarf2_tracepoint_var_access): Likewise.
700 (locexpr_describe_location_piece): Likewise.
701 (locexpr_describe_location_1): Likewise.
702 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
703 Constify.
704 (data): Now const.
705 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
706 (dwarf_expr_eval, read_uleb128, read_sleb128)
707 (dwarf2_read_address): Update.
708 * dwarf2expr.c (dwarf_expr_eval): Constify.
709 (read_uleb128): Likewise.
710 (read_sleb128): Likewise.
711 (dwarf2_read_address): Likewise.
712 (require_composition): Likewise.
713 (execute_stack_op): Likewise.
714 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
715 "const gdb_byte *".
716 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
717 Now const.
718 (no_get_frame_base): Constify.
719 (execute_stack_op): Likewise.
720 (execute_cfa_program): Likewise.
721 (read_encoded_value): Likewise.
722
723 2010-05-25 Doug Evans <dje@google.com>
724
725 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
726
727 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
728 * event-loop.c: ... here.
729 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
730 `error' for clarity.
731 (tui_getc): Pass correct value for `error' parameter to
732 tui_readline_output.
733
734 Add python gdb.GdbError and gdb.string_to_argv.
735 * NEWS: Document them.
736 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
737 the exception is gdb.GdbError. Print a second traceback if there's
738 an error computing the error message.
739 (gdbpy_string_to_argv): New function.
740 * python/py-utils.c (gdbpy_obj_to_string): New function.
741 (gdbpy_exception_to_string): New function.
742 * python/python-internal.h (gdbpy_string_to_argv): Declare.
743 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
744 (gdbpy_gdberror_exc): Declare.
745 * python/python.c (gdbpy_gdberror_exc): New global.
746 (_initialize_python): Initialize gdbpy_gdberror_exc and create
747 gdb.GdbError.
748 (GdbMethods): Add string_to_argv.
749
750 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
751
752 * windows-nat.c (display_selector): Call GetLastError to give better
753 failure explanation.
754
755 2010-05-24 Pedro Alves <pedro@codesourcery.com>
756
757 * config.in: Regenerate.
758
759 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
760
761 Code cleanup.
762 * target.c (push_target): Return only void. Remove the return value
763 comment.
764 * target.h (push_target): Return only void.
765
766 2010-05-23 Pedro Alves <pedro@codesourcery.com>
767
768 Update gnulib from latest git.
769 (250b80067c1e1d8faa0c42fb572f721975b929c5)
770
771 * gnulib/memcmp.c: Removed.
772 * gnulib/memchr.valgrind: New.
773 * gnulib/stddef.in.h: New.
774 * gnulib/Makefile.am: Updated.
775 * gnulib/memchr.c: Updated.
776 * gnulib/memmem.c: Updated.
777 * gnulib/stdint.in.h: Updated.
778 * gnulib/str-two-way.h: Updated.
779 * gnulib/string.in.h: Updated.
780 * gnulib/wchar.in.h: Updated.
781
782 * gnulib/extra/link-warning.h: Removed.
783 * gnulib/extra/c++defs.h: New.
784 * gnulib/extra/warn-on-use.h: New.
785 * gnulib/extra/arg-nonnull.h: Updated.
786
787 * gnulib/m4/extensions.m4: Updated.
788 * gnulib/m4/gnulib-cache.m4: Updated.
789 * gnulib/m4/gnulib-common.m4: Updated.
790 * gnulib/m4/gnulib-comp.m4: Updated.
791 * gnulib/m4/gnulib-tool.m4: Updated.
792 * gnulib/m4/include_next.m4: Updated.
793 * gnulib/m4/longlong.m4: Updated.
794 * gnulib/m4/memchr.m4: Updated.
795 * gnulib/m4/memmem.m4: Updated.
796 * gnulib/m4/stdint.m4: Updated.
797 * gnulib/m4/string_h.m4: Updated.
798 * gnulib/m4/memcmp.m4: Removed.
799 * gnulib/m4/onceonly_2_57.m4: Removed.
800 * gnulib/m4/00gnulib.m4: New.
801 * gnulib/m4/mmap-anon.m4: New.
802 * gnulib/m4/multiarch.m4: New.
803 * gnulib/m4/onceonly.m4: New.
804 * gnulib/m4/stddef_h.m4: New.
805 * gnulib/m4/warn-on-use.m4: New.
806 * gnulib/m4/wchar.m4: Removed.
807 * gnulib/m4/wchar_h.m4: New.
808 * gnulib/m4/wchar_t.m4: New.
809 * gnulib/m4/wint_t.m4: New.
810
811 * aclocal.m4: Regenerate.
812 * config.in: Likewise.
813 * configure: Likewise.
814 * gnulib/Makefile.in: Likewise.
815
816 2010-05-21 Tom Tromey <tromey@redhat.com>
817
818 * dwarf2loc.c (extract_bits_primitive): New function.
819 (extract_bits): Likewise.
820 (insert_bits): Likewise.
821 (copy_bitwise): Likewise.
822 (read_pieced_value): Do all operations in bits.
823 (write_pieced_value): Likewise.
824 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
825 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
826 Always use xrealloc to resize piece array.
827 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
828 <DW_OP_piece>: Update.
829 <DW_OP_bit_piece>: New case.
830
831 2010-05-21 Tom Tromey <tromey@redhat.com>
832
833 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
834 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
835 * dwarf2expr.h (enum dwarf_value_location)
836 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
837 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
838 (add_piece): Handle empty piece.
839 (execute_stack_op) <DW_OP_piece>: Handle
840 DWARF_VALUE_OPTIMIZED_OUT.
841
842 2010-05-21 Tom Tromey <tromey@redhat.com>
843
844 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
845 evaluate_subexp, not evaluate_subexp_with_coercion.
846
847 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
848
849 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
850 attribute.
851
852 2010-05-21 Tom Tromey <tromey@redhat.com>
853
854 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
855 offset.
856 (write_pieced_value): Likewise.
857
858 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
859
860 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
861 and DW_TAG_volatile_type.
862 (new_symbol): Likewise.
863
864 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
865
866 * p-valprint.c (pascal_val_print): Call get_array_bounds
867 to obtain the number of elements in an array.
868
869 2010-05-19 Doug Evans <dje@google.com>
870
871 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
872
873 * python.c (source_python_script): Add comment.
874 (source_python_script_for_objfile): Remove unnecessary call to
875 gdbpy_print_stack.
876
877 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
878 Sergio Durigan Junior <sergiodj@redhat.com>
879
880 Code cleanup.
881 * parse.c (exp_iterate): Use operator_length wrapper function.
882
883 2010-05-18 Michael Snyder <msnyder@vmware.com>
884
885 * ada-lang.c: White space.
886 * ada-typeprint.c: White space.
887 * ada-valprint.c: White space.
888 * addrmap.c: White space.
889 * auxv.c: White space.
890 * ax-gdb.c: White space.
891
892 2010-05-18 Hui Zhu <teawater@gmail.com>
893
894 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
895 for oldfp.
896 (inferior_call_waitpid): Move make_cleanup out of check.
897 Check the return of waitpid.
898 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
899
900 2010-05-17 Michael Snyder <msnyder@vmware.com>
901
902 * tui/tui.c: White space.
903 * tui/tui-data.c: White space.
904 * tui/tui-disasm.c: White space.
905 * tui/tui-file.c: White space.
906 * tui/tui-interp.c: White space.
907 * tui/tui-main.c: White space.
908 * tui/tui-out.c: White space.
909 * tui/tui-regs.c: White space.
910 * tui/tui-source.c: White space.
911 * tui/tui-stack.c: White space.
912 * tui/tui-win.c: White space.
913 * tui/tui-winsource.c: White space.
914
915 * procfs.c: White space.
916
917 * python/py-auto-load.c: White space.
918 * python/py-block.c: White space.
919 * python/py-breakpoint.c: White space.
920 * python/py-cmd.c: White space.
921 * python/py-function.c: White space.
922 * python/py-lazy-string.c: White space.
923 * python/py-objfile.c: White space.
924 * python/py-param.c: White space.
925 * python/py-prettyprint.c: White space.
926 * python/py-progspace.c: White space.
927 * python/py-symtab.c: White space.
928 * python/python.c: White space.
929 * python/py-type.c: White space.
930 * python/py-utils.c: White space.
931 * python/py-value.c: White space.
932
933 * mi/mi-cmd-break.c: White space.
934 * mi/mi-cmd-env.c: White space.
935 * mi/mi-cmds.c: White space.
936 * mi/mi-cmd-stack.c: White space.
937 * mi/mi-cmd-var.c: White space.
938 * mi/mi-console.c: White space.
939 * mi/mi-getopt.c: White space.
940 * mi/mi-interp.c: White space.
941 * mi/mi-main.c: White space.
942 * mi/mi-out.c: White space.
943 * mi/mi-parse.c: White space.
944
945 * cli/cli-cmds.c: White space.
946 * cli/cli-decode.c: White space.
947 * cli/cli-dump.c: White space.
948 * cli/cli-interp.c: White space.
949 * cli/cli-logging.c: White space.
950 * cli/cli-script.c: White space.
951 * cli/cli-setshow.c: White space.
952
953 * valarith.c: White space.
954 * valops.c: White space.
955 * valprint.c: White space.
956 * value.c: White space.
957 * varobj.c: White space.
958 * xcoffread.c: White space.
959 * xml-support.c: White space.
960 * xml-tdesc.c: White space.
961
962 2010-05-17 Andreas Schwab <schwab@redhat.com>
963
964 PR gdb/11092
965 * c-lang.c (c_printstr): Compute real length of NUL terminated
966 string at first.
967
968 2010-05-17 Joel Brobecker <brobecker@adacore.com>
969
970 * parse.c (parse_exp_in_context): When block is not NULL, use
971 its associated language to parse the expression instead of
972 the current_language.
973
974 2010-05-17 Joel Brobecker <brobecker@adacore.com>
975
976 * jv-lang.c (java_lookup_class): Remove commented out code.
977 (type_from_class): Likewise.
978 (java_op_print_tab): Remove commented-out elements.
979
980 2010-05-17 Joel Brobecker <brobecker@adacore.com>
981
982 * ada-lang.c (to_fixed_range_type): The the raw index type as
983 argument instead of the raw type name. Remove orig_type parameter.
984 Update calls throughout.
985 (ada_fixup_array_indexes_type): New function.
986 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
987 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
988 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
989 Remove name parameter.
990 (print_array_type): Add call to ada_fixup_array_indexes_type.
991 Update calls to print_range_type.
992 (ada_print_type): Update calls to print_range_type.
993
994 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
995
996 * dwarf2read.c (read_set_type): Set type length if
997 DW_AT_byte_size attribute is present.
998
999 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1000
1001 * p-valprint.c (pascal_val_print): Handle set type if range limits
1002 are undefined but size is known.
1003
1004 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1005
1006 * procfs.c: Reformat.
1007
1008 2010-05-16 Michael Snyder <msnyder@vmware.com>
1009
1010 * target.c: White space.
1011 * target-descriptions.c: White space.
1012 * target-memory.c: White space.
1013 * thread.c: White space.
1014 * top.c: White space.
1015 * tracepoint.c: White space.
1016 * trad-frame.c: White space.
1017 * tramp-frame.c: White space.
1018 * ui-file.c: White space.
1019 * ui-out.c: White space.
1020 * user-regs.c: White space.
1021 * utils.c: White space.
1022
1023 * scm-exp.c: White space.
1024 * scm-lang.c: White space.
1025 * scm-valprint.c: White space.
1026 * sentinel-frame.c: White space.
1027 * ser-base.c: White space.
1028 * ser-go32.c: White space.
1029 * serial.c: White space.
1030 * ser-mingw.c: White space.
1031 * ser-pipe.c: White space.
1032 * ser-tcp.c: White space.
1033 * ser-unix.c: White space.
1034 * solib.c: White space.
1035 * solib-darwin.c: White space.
1036 * solib-frv.c: White space.
1037 * solib-irix.c: White space.
1038 * solib-osf.c: White space.
1039 * solib-pa64.c: White space.
1040 * solib-som.c: White space.
1041 * solib-spu.c: White space.
1042 * solib-svr4.c: White space.
1043 * solib-target.c: White space.
1044 * source.c: White space.
1045 * stabsread.c: White space.
1046 * stack.c: White space.
1047 * std-regs.c: White space.
1048 * symfile.c: White space.
1049 * symmisc.c: White space.
1050 * symtab.c: White space.
1051
1052 2010-05-16 Michael Snyder <msnyder@vmware.com>
1053
1054 * source.c (_initialize_source): Add "rev" as an abbreviation
1055 for the "reverse-search" command.
1056
1057 2010-05-16 Michael Snyder <msnyder@vmware.com>
1058
1059 * record.c: White space.
1060 * regcache.c: White space.
1061 * reggroups.c: White space.
1062 * remote-fileio.c: White space.
1063 * remote-m32r-sdi.c: White space.
1064 * remote-mips.c: White space.
1065 * remote-sim.c: White space.
1066 * remote.c: White space.
1067 (process_g_packet): Remove orphan braces.
1068
1069 2010-05-15 Michael Snyder <msnyder@vmware.com>
1070
1071 * parse.c: White space.
1072 * p-lang.c: White space.
1073 * posix-hdep.c: White space.
1074 * printcmd.c: White space.
1075 * progspace.c: White space.
1076 * prologue-value.c: White space.
1077 * psymtab.c: White space.
1078 * p-typeprint.c: White space.
1079 * p-valprint.c: White space.
1080
1081 * objc-lang.c: White space.
1082 * objfiles.c: White space.
1083 * observer.c: White space.
1084 * osabi.c: White space.
1085 * osdata.c: White space.
1086
1087 * m2-lang.c: White space.
1088 * m2-valprint.c: White space.
1089 * macrocmd.c: White space.
1090 * macroexp.c: White space.
1091 * macroscope.c: White space.
1092 * macrotab.c: White space.
1093 * main.c: White space.
1094 * maint.c: White space.
1095 * mdebugread.c: White space.
1096 * memattr.c: White space.
1097 * minsyms.c: White space.
1098 * monitor.c: White space.
1099
1100 2010-05-14 Michael Snyder <msnyder@vmware.com>
1101
1102 * jv-lang.c: White space.
1103 * jv-typeprint.c: White space.
1104 * jv-valprint.c: White space.
1105 * language.c: White space.
1106 * libunwind-frame.c: White space.
1107 * linespec.c: White space.
1108 * linux-nat.c: White space.
1109 * linux-record.c: White space.
1110 * linux-thread-db.c: White space.
1111
1112 * infcall.c: White space.
1113 * inf-child.c: White space.
1114 * infcmd.c: White space.
1115 * inferior.c: White space.
1116 * inf-loop.c: White space.
1117 * inflow.c: White space.
1118 * inline-frame.c: White space.
1119 * interps.c: White space.
1120
1121 * gcore.c: White space.
1122 * gdb.c: White space.
1123 * gdbtypes.c: White space.
1124 * gnu-nat.c: White space.
1125 * gnu-v2-abi.c: White space.
1126 * gnu-v3-abi.c: White space.
1127
1128 * findcmd.c: White space.
1129 * findvar.c: White space.
1130 * fork-child.c: White space.
1131 * frame-base.c: White space.
1132 * frame.c: White space.
1133 * frame-unwind.c: White space.
1134 * f-valprint.c: White space.
1135
1136 * elfread.c: White space.
1137 * environ.c: White space.
1138 * eval.c: White space.
1139 * event-loop.c: White space.
1140 * event-top.c: White space.
1141 * exceptions.c: White space.
1142 * exec.c: White space.
1143 * expprint.c: White space.
1144
1145 * dbxread.c: White space.
1146 * dcache.c: White space.
1147 * disasm.c: White space.
1148 * doublest.c: White space.
1149 * dsrec.c: White space.
1150 * dummy-frame.c: White space.
1151 * dwarf2expr.c: White space.
1152 * dwarf2-frame.c: White space.
1153 * dwarf2loc.c: White space.
1154 * dwarf2read.c: White space.
1155
1156 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1157
1158 PR python/11482
1159
1160 * python/py-value.c (valpy_hash): New function.
1161 (value_object_type): Register valpy_hash.
1162
1163 2010-05-14 Hui Zhu <teawater@gmail.com>
1164 Michael Snyder <msnyder@vmware.com>
1165
1166 * linux-fork.c (gdbthread.h): New include.
1167 (fork_info): Add parent_ptid.
1168 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1169 functions.
1170 (delete_checkpoint_command): Call inferior_call_waitpid.
1171 (checkpoint_command): Set parent_ptid.
1172
1173 2010-05-13 Michael Snyder <msnyder@vmware.com>
1174
1175 * dictionary.c: Re-indent to GNU coding standard.
1176
1177 * charset.c: White space.
1178 * c-lang.c: White space.
1179 * cli-out.c: White space.
1180 * coffread.c: White space.
1181 * complaints.c: White space.
1182 * completer.c: White space.
1183 * corefile.c: White space.
1184 * corelow.c: White space.
1185 * cp-abi.c: White space.
1186 * cp-namespace.c: White space.
1187 * cp-support.c: White space.
1188 * cp-valprint.c: White space.
1189 * c-typeprint.c: White space.
1190 * c-valprint.c: White space.
1191 * blockframe.c: White space.
1192 * breakpoint.c: White space.
1193 * buildsym.c: White space.
1194 * blockframe.c: White space.
1195 * bcache.c: White space.
1196 * gdbarch.sh: White space, add blank lines.
1197 * arch-utils.c: Ditto.
1198 * gdbarch.c: Regenerate.
1199 * frame.c: White space, add blank lines.
1200 * stack.c: White space, add blank lines.
1201 (initialize_stack): Remove long-dead code.
1202
1203 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1204
1205 Code cleanup.
1206 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1207 (locexpr_read_variable, loclist_read_variable): Update the callers.
1208
1209 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1210
1211 Code cleanup.
1212 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1213 Remove check of NULL returned by tag_type_to_type.
1214 (die_containing_type): Remove variable type. Remove type_die variable
1215 initialization. Remove check of NULL returned by tag_type_to_type.
1216
1217 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1218
1219 PR exp/11530.
1220 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1221 names of unnamed structures or unions.
1222
1223 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1224
1225 * procfs.c (proc_watchpoint_address): New function.
1226 (procfs_stopped_by_watchpoint): Remove useless check after
1227 find_procinfo_or_die call.
1228 (procfs_stopped_data_address): New function.
1229 (procfs_use_watchpoints): Register new watchpoint related function.
1230
1231 2010-05-11 Tom Tromey <tromey@redhat.com>
1232
1233 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1234
1235 2010-05-10 Michael Snyder <msnyder@vmware.com>
1236
1237 * utils.c: White space cleanup.
1238
1239 2010-05-10 Tom Tromey <tromey@redhat.com>
1240
1241 * eval.c (ptrmath_type_p): Add 'lang' argument.
1242 (evaluate_subexp_standard): Update.
1243 (evaluate_subexp_with_coercion): Update.
1244 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1245
1246 2010-05-10 Michael Snyder <msnyder@vmware.com>
1247
1248 * utils.c (do_fclose_cleanup) Restore local variable.
1249
1250 2010-05-09 Doug Evans <dje@google.com>
1251
1252 * record.c (init_record_core_ops): Rename record_core to record-core.
1253
1254 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1255
1256 Implement task switching on pa-hpux.
1257 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1258 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1259
1260 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1261
1262 * valops.c (find_overload_match): Add missing i18n markup.
1263
1264 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1265
1266 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1267
1268 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1269
1270 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1271 list for the obconcat call.
1272 * mdebugread.c (parse_symbol): Likewise.
1273 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1274 Likewise.
1275 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1276 New variable ap. Remove variables len and val.
1277 * symfile.h (obconcat): Likewise for the prototype.
1278
1279 2010-05-07 Michael Snyder <msnyder@vmware.com>
1280
1281 * python/python.c (execute_gdb_command): Remove unused variables.
1282 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1283 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1284 Remove unused variable.
1285 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1286 (cmdpy_completer): Remove unused variable.
1287 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1288 * python/py-function.c (fnpy_call): Remove unused variable.
1289 * python/py-objfile.c (objfile_to_objfile_object):
1290 Remove unused variable.
1291 * python/py-param.c (parmpy_init): Remove unused variable.
1292 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1293 Remove unused variable.
1294 (gdbpy_default_visualizer): Remove unused variable.
1295 * python/py-progspace.c (pspace_to_pspace_object):
1296 Remove unused variable.
1297 * python/py-symtab.c (symtab_and_line_to_sal_object):
1298 Remove unused variable.
1299 * python/py-type.c (typy_template_argument):
1300 Remove unused variable.
1301 * python/py-value.c (valpy_string): Remove unused variable.
1302 (convert_value_from_python): Remove unused variables.
1303
1304 2010-05-07 Michael Snyder <msnyder@vmware.com>
1305
1306 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1307 and use it to compute variable 't1'.
1308
1309 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1310
1311 * ada-lang.c (assign_aggregate): Remove unused variable.
1312
1313 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1314
1315 PR C++/7943:
1316 * valops.c (find_overload_match): Handle fsym == NULL case.
1317 Add int no_adl argument.
1318 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1319 when appropriate.
1320 Add int no_adl argument.
1321 (find_oload_champ_namespace): Add int no_adl argument.
1322 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1323 expression.
1324 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1325 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1326 Evaluate arguments and use them to perform ADL lookup.
1327 Pass no_adl argument to find_overload_match.
1328 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1329 * cp-support.h: Added prototype for
1330 make_symbol_overload_list_namespace.
1331 * cp-support.c (make_symbol_overload_list_namespace): New function.
1332 (make_symbol_overload_list_adl_namespace): New function.
1333 (make_symbol_overload_list_adl): New function.
1334 (make_symbol_overload_list_using): Moved code to add function to
1335 overload set to make_symbol_overload_list_namespace.
1336 * c-exp.y: create UNKNOWN_CPP_NAME token.
1337 Add parse rule for ADL functions.
1338 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1339
1340 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1341
1342 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1343 sentinel.
1344
1345 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1346
1347 Implement task switching on solaris targets.
1348 * sol-thread.c (thread_db_find_thread_from_tid)
1349 (sol_get_ada_task_ptid): New functions.
1350 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1351
1352 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1353
1354 * remote.c (remote_query_supported_append): Use reconcat.
1355 (remote_query_supported): Install a cleanup. Use reconcat.
1356
1357 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1358
1359 * gdbarch.sh (qsupported): Delete.
1360 * gdbarch.h, gdbarch.c: Regenerate.
1361 * remote.c (remote_query_supported): Remove use of
1362 gdbarch_qsupported.
1363
1364 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1365
1366 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1367 function.
1368
1369 2010-05-06 Michael Snyder <msnyder@vmware.com>
1370
1371 * xml-support.c (xinclude_start_include): Delete unused variable.
1372 (xml_process_xincludes): Delete unused variable.
1373 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1374 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1375 (tdesc_find_arch_register): Delete unused variable.
1376 (tdesc_use_registers): Delete unused variable.
1377 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1378 * inferior.c (print_inferior): Delete unused variable.
1379 * record.c (record_open_1): Delete unused variable.
1380 (record_restore): Delete unused variable.
1381 (cmd_record_save): Delete unused variable.
1382 * gcore.c (derive_heap_segment): Delete unused variable.
1383 (objfile_find_memory_regions): Use unused variable.
1384 * jit.c (jit_inferior_init): Delete unused variable.
1385 * progspace.c (clone_program_space): Delete unused variable.
1386 (pspace_empty_p): Delete unused variable.
1387
1388 * frame-unwind.c (frame_unwind_find_by_frame):
1389 Delete unused variable.
1390 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1391 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1392 (method_name_from_physname): Delete unused variable.
1393 (cp_func_name): Delete unused variable.
1394 (cp_validate_operator): Delete unused variable.
1395 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1396 Delete unused variable.
1397 * trad-frame.c (trad_frame_get_prev_register):
1398 Delete unused variable.
1399 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1400
1401 * serial.c (serial_for_fd): Delete unused variable.
1402 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1403 * top.c (execute_command): Delete unused variable.
1404 (init_main): Delete unused variable.
1405 * utils.c (do_fclose_cleanup): Delete unused variable.
1406 (do_all_inferior_continuations): Delete unused variable.
1407 (initialize_utils): Delete unused variable.
1408 (internal_problem_mode): Delete unused global.
1409 * frame.c (get_prev_frame): Delete unused global.
1410 (get_frame_locals_address): Delete unused global.
1411 (get_frame_args_address): Delete unused global.
1412
1413 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1414 (pascal_type_print_varspec_prefix): Delete unused variable.
1415 * f-typeprint.c (f_type_print_base): Delete unused variable.
1416 (f_type_print_varspec_suffix): Delete unused variable.
1417 * m2-typeprint.c (m2_print_type): Delete unused variable.
1418 (m2_long_set): Delete unused variable.
1419 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1420 * d-valprint.c (dynamic_array_type): Delete unused variable.
1421 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1422 Delete unused variable.
1423 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1424 * m2-valprint.c (m2_val_print): Delete unused variable.
1425
1426 * ui-out.c (ui_out_field_int): Delete unused variable.
1427 (ui_out_field_fmt_int): Delete unused variable.
1428 * varobj.c (varobj_list_children): Delete unused variable.
1429 (varobj_set_value): Delete unused variable.
1430 (install_new_value_visualizer): Delete unused variable.
1431 (varobj_set_visualizer): Delete unused variable.
1432 (varobj_update): Delete unused variable.
1433 (varobj_editable_p): Delete unused variable.
1434 (c_value_of_root): Delete unused variable.
1435 (cplus_describe_child): Delete unused variable.
1436
1437 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1438 (decode_constrained_packed_array_type): Delete unused variable.
1439 (add_defn_to_vec): Delete unused variable.
1440 (symbol_completion_match): Delete unused variable.
1441 (value_tag_from_contents_and_address): Delete unused variable.
1442 (ada_evaluate_subexp): Delete unused variable.
1443 * c-lang.c (classify_type): Delete unused variable.
1444 * f-lang.c (f_printstr): Delete unused variable.
1445 * objc-lang.c (objc_printstr): Delete unused variable.
1446 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1447 * jv-lang.c (type_from_class): ifdef unused variable.
1448 (java_class_name_from_physname): Delete unused variable.
1449 * m2-lang.c (m2_printstr): Delete unused variable.
1450
1451 * objfiles.c (objfile_relocate): Delete unused variable.
1452 * maint.c (_initialize_maint_cmds): Delete unused variable.
1453 * demangle.c (_initialize_demangler): Delete unused variable.
1454 * corefile.c (reopen_exec_file): Delete unused variable.
1455 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1456 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1457
1458 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1459 * memattr.c (mem_delete): Delete unused variable.
1460 (invalidate_target_mem_regions): Delete unused variable.
1461 * mem-break.c (default_memory_insert_breakpoint):
1462 Delete unused variable.
1463 * target.c (target_get_osdata): Delete unused variable.
1464 * parse.c (length_of_subexp): Delete unused variable.
1465 (prefixify_subexp): Delete unused variable.
1466 (exp_iterate): Delete unused variable.
1467 * reverse.c (delete_bookmark_command): Delete unused variable.
1468
1469 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1470 * macroexp.c (gather_arguments): Delete unused variable.
1471 (substitute_args): Delete unused variable.
1472 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1473 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1474 (_initialize_gdbarch): Delete unused variable.
1475 * gdbarch.c, gdbarch.h: Regenerate.
1476 * arch-utils.c (initialize_current_architecture):
1477 Delete unused variable.
1478 (_initialize_gdbarch_utils): Delete unused variable.
1479 * gdbtypes.c (make_cv_type): Delete unused variable.
1480 (make_type_with_address_space): Delete unused variable.
1481
1482 * linespec.c (decode_compound): Delete unused variable.
1483 * dictionary.c (iterator_next_hashed): Delete unused variable.
1484 * infcall.c (call_function_by_hand): Delete unused variable.
1485 * infcmd.c (step_1): Delete unused variable.
1486 (registers_info): Delete unused variable.
1487 (attach_command): Delete unused variable.
1488 * infrun.c (follow_exec): Delete unused variable.
1489 (handle_step_into_function_backwards): Delete unused variable.
1490 (_initialize_infrun): Delete unused variable.
1491 * stack.c (parse_frame_specification_1): Delete unused variable.
1492 (frame_info): Delete unused variable.
1493 (backtrace_command_1): Delete unused variable.
1494 (catch_info): Delete unused variable.
1495
1496 * eval.c (evaluate_subexp_standard): Delete unused variable.
1497 * valops.c (value_cast_pointers): Delete unused variable.
1498 (value_dynamic_cast): Delete unused variable.
1499 (value_array): Delete unused variable.
1500 (find_overload_match): Delete unused variable.
1501 * valarith.c (value_subscript): Delete unused variable.
1502 (value_binop): Delete unused variable.
1503 * valprint.c (_initialize_valprint): Delete unused variable.
1504 * printcmd.c (print_command_1): Delete unused variable.
1505 (address_info): Delete unused variable.
1506 (printf_command): Delete unused variable.
1507
1508 * auxv.c (target_auxv_search): Delete unused variable.
1509 * blockframe.c (get_frame_block): Delete unused variable.
1510 * regcache.c (regcache_cpy): Delete unused variable.
1511 (regcache_cpy_no_passthrough): Delete unused variable.
1512 * charset.c (wchar_iterate): Delete unused variable.
1513 (find_charset_names): Delete unused variable.
1514 (_initialize_charset): Delete unused variable.
1515 * disasm.c (do_mixed_source_and_assembly):
1516 Delete unused variable.
1517 * source.c (set_default_source_symtab_and_line):
1518 Delete unused variable.
1519 (set_substitute_path_command): Delete unused variable.
1520 * value.c (preserve_values): Delete unused variable.
1521 (value_from_double): Delete unused variable.
1522
1523 2010-05-05 Michael Snyder <msnyder@vmware.com>
1524
1525 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1526 (find_last_source_symtab_from_partial): Delete unused variable.
1527 * symfile.c (place_section): Delete unused variable.
1528 (default_symfile_offsets): Delete unused variable.
1529 (get_debug_link_info): Delete unused variable.
1530 (find_separate_debug_file_by_debuglink): Delete unused variable.
1531 (add_symbol_file_command): Delete unused variable.
1532 (symfile_find_segment_sections): Delete unused variable.
1533 * symmisc.c (free_symtab): Delete unused variable.
1534 (dump_symtab_1): Delete unused variable.
1535 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1536 (find_pc_sect_symtab): Delete unused variable.
1537 (skip_prologue_using_lineinfo): Delete unused variable.
1538 (sources_info): Delete unused variable.
1539 (completion_list_add_name): Delete unused variable.
1540 (expand_line_sal): Delete unused variable.
1541
1542 * breakpoint.c (validate_commands_for_breakpoint):
1543 Delete unused variables.
1544 (insert_catchpoint): Delete unused variable.
1545 (update_watchpoint): Delete unused variable.
1546 (insert_bp_location): Delete unused variable.
1547 (insert_breakpoint_locations): Delete unused variable.
1548 (remove_breakpoint_1): Delete unused variable.
1549 (software_breakpoint_inserted_here_p): Delete unused variable.
1550 (watchpoints_triggered): Delete unused variable.
1551 (bpstat_check_watchpoint): Delete unused variable.
1552 (bpstat_stop_status): Delete unused variable.
1553 (print_one_breakpoint_location): Delete unused variable.
1554 (allocate_bp_location): Delete unused variable.
1555 (create_breakpoint): Delete unused variable.
1556 (watch_command_1): Delete unused variable.
1557 (catch_exception_command_1): Delete unused variable.
1558 (catch_ada_exception_command): Delete unused variable.
1559 (delete_breakpoint): Delete unused variable.
1560 (breakpoint_re_set_one): Delete unused variable.
1561 (do_enable_breakpoint): Delete unused variable.
1562
1563 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1564
1565 * amd64-tdep.c: Include disasm.h.
1566 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1567 (amd64_insn_length): Moved to disasm.c and renamed.
1568 (fixup_riprel): Adjust.
1569 * disasm.c (do_ui_file_delete): New.
1570 (gdb_insn_length): New.
1571 (gdb_buffered_insn_length_fprintf)
1572 (gdb_buffered_insn_length_init_dis)
1573 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1574 renamed.
1575 * disasm.h (gdb_insn_length): Declare.
1576 (gdb_buffered_insn_length): Declare.
1577
1578 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1579
1580 * remote.c (clear_threads_parsing_context): New.
1581 (remote_threads_info): Delete unused null_cleanup. Install a
1582 cleanup to clear the threads_parsing_context in case parsing
1583 throws.
1584
1585 2010-05-05 Michael Snyder <msnyder@vmware.com>
1586
1587 * c-exp.y (parse_string_or_char): Delete unused variable.
1588 (c_lex): Delete unused variable.
1589 * cp-name-parser.y (cpname_lex): Delete unused variable.
1590 * ada-exp.y (find_primitive_type): Delete unused variable.
1591 (write_var_or_type): Delete unused variable.
1592 * jv-exp.y (java_parse): Delete unused variable.
1593 (push_expression_name): Delete unused variable.
1594 * p-exp.y (pascal_lex): Delete unused variable.
1595
1596 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1597
1598 * remote.c (remote_threads_info): Really revert previous previous
1599 change.
1600
1601 2010-05-05 Michael Snyder <msnyder@vmware.com>
1602
1603 * elfread.c (elf_symtab_read): Delete unused variable.
1604 (find_separate_debug_file_by_buildid): Delete unused variables.
1605 (elf_symfile_read): Delete unused variable.
1606
1607 * coffread.c (coff_symfile_read): Delete unused variables.
1608
1609 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1610 (read_pe_exported_syms): Delete unused variable.
1611
1612 * stabsread.c (define_symbol): Delete unused variable.
1613
1614 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1615 (process_psymtab_comp_unit): Delete unused variable.
1616 (dwarf2_build_psymtabs_hard): Delete unused variable.
1617 (load_partial_comp_unit): Delete unused variable.
1618 (create_all_comp_units): Delete unused variable.
1619 (scan_partial_symbols): Delete unused variable.
1620 (add_partial_symbol): Delete unused variable.
1621 (add_partial_namespace): Delete unused variable.
1622 (add_partial_enumeration): Delete unused variable.
1623 (load_full_comp_unit): Delete unused variable.
1624 (process_full_comp_unit): Delete unused variable.
1625 (read_file_scope): Delete unused variable.
1626 (read_type_unit_scope): Delete unused variable.
1627 (process_structure_scope): Delete unused variable.
1628 (process_enumeration_scope): Delete unused variable.
1629 (read_tag_ptr_to_member_type): Delete unused variable.
1630 (read_typedef): Delete unused variable.
1631 (read_partial_die): Delete unused variable.
1632 (decode_locdesc): Delete unused variable.
1633 (zeroed_partial_die): Delete unused global variable.
1634
1635 * tui/tui-interp.c (_initialize_tui_interp):
1636 Delete unused variable.
1637 * tui/tui-regs.c tui_display_registers_from):
1638 Delete unused variable.
1639 (tui_check_register_values): Delete unused variable.
1640 (tui_register_format): Delete unused variable.
1641 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1642 * tui/tui-windata.c (tui_display_data_from_line):
1643 Delete unused variables.
1644 (tui_vertical_data_scroll): Delete unused variables.
1645
1646 2010-05-05 Michael Snyder <msnyder@vmware.com>
1647
1648 * remote.c (remote_threads_info): Revert questionable part of
1649 the previous change.
1650
1651 2010-05-05 Michael Snyder <msnyder@vmware.com>
1652
1653 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1654 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1655 (mi_cmd_var_list_children): Delete unused variable.
1656 (varobj_update_one): Delete unused variable.
1657 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1658 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1659 Delete unused variable.
1660 (mi_cmd_stack_list_variables): Delete unused variable.
1661 (list_args_or_locals): Delete unused variable.
1662 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1663 Delete unused variables.
1664 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1665 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1666 Delete unused variable.
1667 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1668 (mi_cmd_interpreter_exec): Delete unused variable.
1669 (mi_on_normal_stop): Delete unused variable.
1670 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1671 (print_one_inferior): Delete unused variables.
1672 (mi_execute_command): Delete unused variable.
1673 (mi_cmd_execute): Delete unused variable.
1674 (timestamp): Delete unused variable.
1675
1676 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1677 (restore_binary_file): Delete unused variable.
1678 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1679 * cli/cli-script.c (define_command): Delete unused variables.
1680 (recurse_read_control_structure): Delete unused variable.
1681 (script_from_file): Delete unused variable.
1682 * cli/cli-cmds.c (complete_command): Delete unused variable.
1683 (disassemble_command): Delete unused variable.
1684
1685 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1686 * tracepoint.c (delete_trace_variable_command):
1687 Delete unused variables.
1688 (encode_actions_1): Delete unused variables.
1689 (start_tracing): Delete unused variable.
1690 (trace_status_mi): Delete unused variable.
1691 (tfind_1): Delete unused variable.
1692 (trace_find_pc_command): Delete unused variable.
1693 (trace_find_line_command): Delete unused variables.
1694 (trace_find_range_command): Delete unused variables.
1695 (trace_find_outside_command): Delete unused variables.
1696 (parse_tracepoint_definition): Delete unused variables.
1697 (tfile_fetch_registers): Delete unused variable.
1698
1699 * dcache.c (dcache_init): Delete unused variable.
1700 (dcache_info): Delete unused variable.
1701
1702 * remote.c (remote_threads_info): Delete unused variable.
1703 (process_stop_reply) :Delete unused variable.
1704 (remote_get_trace_status): Delete unused variables.
1705
1706 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1707 (thread_from_lwp): Delete unused variable.
1708 (enable_thread_event_reporting): Delete unused variable.
1709 (check_for_thread_db): Delete unused variables.
1710 (thread_db_find_new_threads_2): Delete unused variable.
1711
1712 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1713 (checkpoint_command): Delete unused variable.
1714 (linux_fork_context): Delete unused variables.
1715
1716 * linux-nat.c (linux_parent_pid): Delete unused global variable.
1717 (linux_tracefork_child): Delete unused variable.
1718 (linux_child_follow_fork): Delete unused variable.
1719 (linux_nat_detach): Delete unused variable.
1720 (linux_handle_extended_wait): Delete unused variable.
1721 (linux_nat_has_pending_sigint): Delete unused variable.
1722 (linux_nat_find_memory_regions): Delete unused variable.
1723 (linux_nat_make_corefile_notes): Delete unused variables.
1724 (linux_nat_info_proc_cmd): Delete unused variable.
1725 (linux_proc_pending_signals): Delete unused variable.
1726 (linux_nat_stop_lwp): Delete unused variables.
1727 (_initialize_linux_nat): Delete unused variable.
1728
1729 * ser-pipe.c (pipe_ops): Delete unused global variable.
1730
1731 * linux-record.c (record_linux_system_call):
1732 Delete unused variables.
1733
1734 * corelow.c (core_xfer_partial): Delete unused variables.
1735
1736 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1737 (svr4_solib_create_inferior_hook): Add ifdef around
1738 conditionally-used variable declarations.
1739
1740 * solib.c (solib_find): Delete unused variable.
1741 (free_so_symbols): Delete unused variable.
1742 (info_sharedlibrary_command): Delete unused variable.
1743 (reload_shared_libraries_1): Delete unused variable.
1744 (_initialize_solib): Delete unused variable.
1745
1746 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1747 (i386_collect_xstateregset): Delete unused variable.
1748 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1749
1750 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
1751 Delete unused variable 'type'.
1752
1753 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1754
1755 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
1756 ada-lang.c: Remove comment mentioning these macros.
1757 * m2-exp.y: Delete commented out code.
1758
1759 2010-05-05 Joel Brobecker <brobecker@adacore.com>
1760
1761 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
1762 for array types.
1763 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
1764
1765 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1766
1767 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
1768 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
1769 ATTRIBUTE_UNUSED.
1770 (cleanup_kernel_helper_return): Likewise.
1771 * arm-tdep.c (copy_unmodified): Likewise.
1772 (copy_preload): Likewise.
1773 (copy_copro_load_store): Likewise.
1774 (cleanup_branch): Likewise.
1775 (copy_b_bl_blx): Likewise.
1776 (copy_bx_blx_reg): Likewise.
1777 (copy_alu_imm): Likewise.
1778 (copy_alu_reg): Likewise.
1779 (copy_alu_shifted_reg): Likewise.
1780 (cleanup_load): Likewise.
1781 (cleanup_store): Likewise.
1782 (cleanup_block_load_pc): Likewise.
1783 (cleanup_svc): Likewise.
1784 (copy_undef): Likewise.
1785 (copy_unpred): Likewise.
1786 * remote.c (register_remote_support_xml): Likewise.
1787
1788 2010-05-05 Hui Zhu <teawater@gmail.com>
1789
1790 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
1791
1792 2010-05-04 Mark Kettenis <kettenis@gnu.org>
1793
1794 * remote.c (register_remote_support_xml)
1795 (remote_query_supported_append, remote_query_supported): Add cast
1796 to NULL used as sentinel.
1797 * tracepoint.c (tvariables_info_1): Likewise.
1798 * utils.c (add_internal_problem_command): Likewise.
1799
1800 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1801
1802 * dwarf2loc.c (read_pieced_value, write_pieced_value,
1803 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
1804 registers gracefully.
1805
1806 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1807
1808 * exec.c (print_section_info): Display entry point without arch
1809 specific parts.
1810
1811 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
1812
1813 PR exp/11349.
1814 * printcmd.c (x_command): Only dereference once implicitly for
1815 TYPE_CODE_REF.
1816
1817 2010-05-03 Doug Evans <dje@google.com>
1818
1819 * event-loop.c (gdb_timer): Delete unused global.
1820 (create_timer): Update.
1821
1822 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1823
1824 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
1825 CURRENT->DECLARATION case.
1826 * cp-support.h (struct using_direct): Provide extended comment.
1827
1828 2010-05-03 Mark Kettenis <kettenis@gnu.org>
1829
1830 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
1831 HPPABSD_SIZEOF_GREGS.
1832 (HPPAOBSD_SIZEOF_FPREGS): New define.
1833 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
1834 (hppaobsd_supply_fpregset): New function.
1835 (hppaobsd_gregset): Renamed from hppabsd_gregset.
1836 (hppaobsd_fpregset): New variable.
1837 (hppaobsd_regset_from_core_section): Handle floating-point registers.
1838 (_initialize_hppabsd_tdep): Remove spurious blank line.
1839
1840 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1841
1842 PR pascal/11349.
1843 * p-valprint.c (pascal_value_print): Always dereference a value with
1844 type code TYPE_CODE_REF.
1845
1846 2010-05-03 Pedro Alves <pedro@codesourcery.com>
1847
1848 * remote.c (remote_notice_signals): New.
1849 (remote_start_remote): In non-stop mode, update the remote end on
1850 which signals it can silently pass.
1851 (init_remote_ops): Install remote_notice_signals.
1852
1853 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1854
1855 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
1856 * command.h (error_no_arg): ... here. Remove NORETURN, change
1857 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1858 * defs.h (NORETURN, ATTR_NORETURN): Remove.
1859 (perror_with_name, verror, error, error_stream, vfatal, fatal)
1860 (internal_verror, internal_error, nomem): Remove NORETURN, change
1861 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1862 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
1863 (throw_vfatal, throw_error): Remove NORETURN.
1864 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
1865 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
1866 (throw_error, deprecated_throw_reason): Remove NORETURN, change
1867 ATTR_NORETURN to ATTRIBUTE_NORETURN.
1868 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
1869 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
1870 NORETURN.
1871 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
1872 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
1873 ATTRIBUTE_NORETURN.
1874 * target.c (tcomplain): Likewise.
1875 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
1876 ATTRIBUTE_NORETURN.
1877 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
1878 (internal_error, perror_with_name, nomem): Remove NORETURN.
1879 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
1880 ATTRIBUTE_NORETURN.
1881
1882 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1883
1884 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1885 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
1886 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
1887 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1888 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
1889 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1890 * complaints.h (complaint, internal_complaint): Likewise.
1891 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
1892 (ATTR_FORMAT): Remove.
1893 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
1894 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
1895 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
1896 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
1897 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
1898 (internal_error, internal_vwarning, internal_warning, warning)
1899 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
1900 * disasm.c (fprintf_disasm): Likewise.
1901 * exceptions.c (throw_it): Likewise.
1902 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
1903 (throw_error): Likewise.
1904 * language.h (type_error, range_error): Likewise.
1905 * linespec.c (cplusplus_error): Likewise.
1906 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
1907 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
1908 * monitor.c (monitor_debug): Likewise.
1909 * parser-defs.h (parser_fprintf): Likewise.
1910 * serial.h (serial_printf): Likewise.
1911 * tui/tui-hooks.c (tui_query_hook): Likewise.
1912 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
1913 (uo_message): Likewise.
1914 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
1915 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
1916 Likewise.
1917 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
1918
1919 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1920
1921 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
1922 (cli_table_header, cli_begin, cli_end, cli_field_int)
1923 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
1924 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
1925 Delete forward declarations.
1926 (cli_ui_out_impl): Move below the callbacks.
1927 (_initialize_cli_out): Delete.
1928
1929 2010-05-02 Pedro Alves <pedro@codesourcery.com>
1930
1931 * README: Use consistent `GDB' and `GDBserver' spellings.
1932
1933 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
1936
1937 2010-05-01 Pedro Alves <pedro@codesourcery.com>
1938
1939 * infrun.c (prepare_for_detach): In non-stop, context switch to
1940 the thread that got the event before handling the event.
1941
1942 2010-04-30 Tom Tromey <tromey@redhat.com>
1943
1944 * symtab.c (symbol_set_names): Fix typo.
1945
1946 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1947
1948 * python/py-param.c (parm_constants): Avoid ARI warning
1949 by adding ARI comment.
1950 (parmpy_init): Likewise.
1951
1952 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1953
1954 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
1955 and created type for re-use.
1956
1957 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
1958
1959 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
1960
1961 2010-04-29 Doug Evans <dje@google.com>
1962
1963 * ser-base.h (reschedule): Delete prototype.
1964 * ser-base.c (reschedule): Make static.
1965
1966 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1967
1968 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
1969 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
1970 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
1971 EABI.
1972 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
1973 use.
1974
1975 2010-04-29 Pedro Alves <pedro@codesourcery.com>
1976
1977 PR gdb/11557
1978
1979 * regcache.c (registers_changed): Rename to ...
1980 (registers_changed_ptid): ... this, and only delete register cache
1981 entries matching the ptid filter argument.
1982 (registers_changed): Reimplement on top of registers_changed_ptid.
1983 * regcache.h (registers_changed_ptid): Declare.
1984 * target.c (target_resume): Flush register caches.
1985
1986 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
1987 Tom Tromey <tromey@redhat.com>
1988 Thiago Jung Bauermann <bauerman@br.ibm.com>
1989
1990 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
1991 (SUBDIR_PYTHON_SRCS): Likewise.
1992 (py-parameter.o): New rule.
1993 * python/py-parameter.c: New file.
1994 * python/python-internal.h (gdbpy_initialize_parameter)
1995 (gdbpy_parameter, gdbpy_parameter_value)
1996 (gdbpy_parse_command_name): Declare.
1997 * python/py-cmd.c (parse_command_name): Rename to
1998 gdbpy_parse_command_name.
1999 (gdbpy_parse_command_name): Accept a starting list parameter and
2000 use over cmdlist.
2001 (cmdpy_init): Use gdbpy_parse_command_name.
2002 * python/python.c (parameter_to_python): Rename to
2003 gdbpy_parameter_to_python. Accept enum var_types and value.
2004 (gdbpy_parameter): Use gdbpy_parameter_value.
2005 (_initialize_python): Call gdbpy_initialize_parameters.
2006
2007 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2008
2009 * MAINTAINERS: Add myself for write after approval privileges.
2010
2011 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2012
2013 D language support.
2014 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2015 (COMMON_OBS): Add d-lang.o d-valprint.o.
2016 (HFILES_NO_SRCDIR): Add d-lang.h.
2017 * NEWS: Mention D language support.
2018 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2019 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2020 * d-lang.c: New file.
2021 * d-lang.h: New file.
2022 * d-valprint.c: New file.
2023 * defs.h (enum language): Add language_d.
2024 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2025 * language.c (binop_result_type, integral_type, character_type)
2026 (string_type, boolean_type, structured_type): Add language_d.
2027 * symfile.c (init_filename_language_table): Add language_d.
2028 * symtab.c: Include d-lang.h.
2029 (symbol_init_language_specific, symbol_find_demangled_name)
2030 (symbol_natural_name, lookup_symbol_in_language)
2031 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2032
2033 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2034
2035 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2036
2037 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2038
2039 * symfile.c (init_filename_language_table): Register .dg files
2040 with language_ada.
2041
2042 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2043
2044 * gdbtypes.h (struct main_type): Expand comment about target_type
2045 field.
2046
2047 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2048 Tristan Gingold <gingold@adacore.com>
2049
2050 * symfile.c (reread_symbols): Also search for file in libraries.
2051 Update comment.
2052
2053 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2054
2055 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2056 in terms of configuration.
2057
2058 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2059
2060 * objfiles.c: Include solist.h.
2061 (free_all_objfiles): New variable so. Check stale solist objfiles.
2062 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2063 and no_shared_libraries.
2064
2065 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2066
2067 ARI warning fix.
2068 * python/py-auto-load.c (source_section_scripts): Remove trailing
2069 new-line in i18n string.
2070
2071 2010-04-26 Doug Evans <dje@google.com>
2072
2073 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2074
2075 2010-04-26 Tom Tromey <tromey@redhat.com>
2076
2077 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2078 command list.
2079
2080 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2081
2082 Removal of config/i386/nm-i386sol2.h native configuration file.
2083 * config/i386/nm-i386sol2.h: Remove file.
2084 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2085 * config/i386/sol2-64.mh: Idem.
2086 * config/djgpp/fnchange.lst: Remove reference to that file.
2087 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2088
2089 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2090
2091 PR breakpoints/11531.
2092 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2093 macro definition and related comment.
2094 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2095 (resume): Remove code and comment related to this macro.
2096
2097 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2098
2099 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2100 Fix whitespace.
2101
2102 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2103
2104 * defs.h: Adjust comment.
2105 * filesystem.h, filesystem.c: New files.
2106 * Makefile.in (SFILES): Add filesystem.c.
2107 (COMMON_OBS): Add filesystem.o.
2108 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2109 different target and host path flavours.
2110 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2111 has_dos_based_file_system on the gdbarch.
2112 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2113 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2114 * i386-tdep.c (i386_go32_init_abi): Ditto.
2115 * gdbarch.sh (has_dos_based_file_system): New.
2116 * gdbarch.h, gdbarch.c: Regenerate.
2117 * NEWS: Mention improved support for remote targets with DOS-based
2118 filesystems. Mention new `set/show target-file-system-kind'
2119 commands.
2120
2121 2010-04-23 Stan Shebs <stan@codesourcery.com>
2122
2123 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2124 comments.
2125 (struct agent_reqs): Remove.
2126 (ax_reg_mask): Declare.
2127 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2128 (free_agent_expr): Free reg_mask.
2129 (ax_print): Add scope and register mask info.
2130 (ax_reqs): Remove agent_reqs argument, use agent expression
2131 fields, and move part of register mask computation to...
2132 (ax_reg_mask): New function.
2133 * ax-gdb.c (gen_trace_static_fields): Call it.
2134 (gen_traced_pop): Ditto.
2135 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2136 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2137 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2138 (gen_eval_for_expr): Ditto, and require an rvalue.
2139 (agent_command): Call ax_reqs.
2140 (agent_eval_command): Ditto.
2141 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2142 (validate_action_line): Ditto.
2143 (collect_symbol): Ditto.
2144 (encode_actions_1): Ditto.
2145
2146 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2147 Paul Pluzhnikov <ppluzhnikov@google.com>
2148 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 Fix deadlock on looped list of loaded shared objects.
2151 * solib-svr4.c (LM_PREV): New function.
2152 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2153 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2154 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2155 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2156
2157 2010-04-23 Doug Evans <dje@google.com>
2158
2159 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2160 python.
2161 * configure: Regenerate.
2162 * main.c: #include "python/python.h".
2163 (captured_main): Defer loading auto-loaded scripts until after
2164 local_gdbinit has been sourced.
2165 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2166 (load_auto_scripts_for_objfile): New function.
2167 (auto_load_new_objfile): Call it.
2168 * python/python.h (gdbpy_global_auto_load): Declare.
2169 (load_auto_scripts_for_objfile): Declare.
2170
2171 Add support for auto-loading scripts from .debug_gdb_scripts section.
2172 * NEWS: Add entry for .debug_gdb_scripts.
2173 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2174 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2175 (py-auto-load.o): New rule.
2176 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2177 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2178 * python/py-auto-load.c: New file.
2179 * python/python-internal.h: #include <stdio.h>.
2180 (set_python_list, show_python_list): Declare.
2181 (gdbpy_initialize_auto_load): Declare.
2182 (source_python_script_for_objfile): Declare.
2183 * python/python.c: Remove #include of observer.h.
2184 (gdbpy_auto_load): Moved to py-auto-load.c.
2185 (GDBPY_AUTO_FILENAME): Ditto.
2186 (gdbpy_new_objfile): Delete.
2187 (source_python_script_for_objfile): New function.
2188 (set_python_list, show_python_list): Make externally visible.
2189 (_initialize_python): Move "auto-load" command to py-auto-load.c
2190 and observer_attach_new_objfile to py-auto-load.c.
2191
2192 2010-04-23 Jerome Guitton <guitton@adacore.com>
2193
2194 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2195 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2196 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2197 New constants.
2198 (alpha_heuristic_analyze_probing_loop): New function.
2199 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2200 and handle cases when a stack probe loop is generated.
2201 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2202 (alpha_mdebug_max_frame_size_exceeded): New function.
2203 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2204 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2205 Return 0 when the maximum debuggable frame size has been exceeded.
2206
2207 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2208
2209 Fix ARI warning.
2210 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2211
2212 2010-04-20 Chris Moller <cmoller@redhat.com>
2213
2214 PR 10179
2215
2216 * symtab.c (rbreak_command): Added code to include a filename
2217 specification in the rbreak argument.
2218 * NEWS: Added a brief description of filename-qualified rbreak.
2219
2220 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2221
2222 Fix crashes on dangling display expressions.
2223 * ada-lang.c (ada_operator_check): New function.
2224 (ada_exp_descriptor): Fill-in the field operator_check.
2225 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2226 * jv-lang.c (exp_descriptor_java): Likewise.
2227 * m2-lang.c (exp_descriptor_modula2): Likewise.
2228 * scm-lang.c (exp_descriptor_scm): Likewise.
2229 * parse.c (exp_descriptor_standard): Likewise.
2230 (operator_check_standard): New function.
2231 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2232 * parser-defs.h (struct exp_descriptor): New field operator_check.
2233 (operator_check_standard, exp_uses_objfile): New declarations.
2234 * printcmd.c: Remove the inclusion of solib.h.
2235 (display_uses_solib_p): Remove the function.
2236 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2237 and exp_uses_objfile instead of display_uses_solib_p.
2238 * solist.h (struct so_list) <objfile>: New comment.
2239 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2240 * symtab.h (lookup_objfile_from_block): New declaration.
2241 (struct general_symbol_info) <obj_section>: Extend the comment.
2242
2243 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2244 Thiago Jung Bauermann <bauerman@br.ibm.com>
2245
2246 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2247 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2248 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2249 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2250 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2251 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2252 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2253 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2254 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2255 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2256 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2257 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2258 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2259 Define, in case <ptrace.h> doesn't provide it.
2260 (booke_debug_info): New variable.
2261 (max_slots_number): Ditto.
2262 (hw_break_tuple): New struct.
2263 (thread_points): Ditto.
2264 (ppc_threads): New variable.
2265 (PPC_DEBUG_CURRENT_VERSION): New define.
2266 (have_ptrace_new_debug_booke): New function.
2267 (ppc_linux_check_watch_resources): Renamed to ...
2268 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2269 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2270 (booke_cmp_hw_point): New function.
2271 (booke_find_thread_points_by_tid): Ditto.
2272 (booke_insert_point): Ditto.
2273 (booke_remove_point): Ditto.
2274 (ppc_linux_insert_hw_breakpoint): Ditto.
2275 (ppc_linux_remove_hw_breakpoint): Ditto.
2276 (get_trigger_type): Ditto.
2277 (ppc_linux_insert_watchpoint): Handle BookE processors.
2278 (ppc_linux_remove_watchpoint): Ditto.
2279 (ppc_linux_new_thread): Ditto.
2280 (ppc_linux_thread_exit): New function..
2281 (ppc_linux_stopped_data_address): Handle BookE processors.
2282 (ppc_linux_watchpoint_addr_within_range): Ditto.
2283 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2284 to_remove_hw_breakpoint fields of the target operations struct.
2285 Add observe for the thread_exit event.
2286
2287 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2288
2289 * i386-linux-nat.c (regmap): Removed.
2290 (fetch_register): Replace regmap with
2291 i386_linux_gregset_reg_offset.
2292 (store_register): Likewise.
2293 (supply_gregset): Likewise.
2294 (fill_gregset): Likewise.
2295
2296 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2297 global.
2298
2299 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2300
2301 2010-04-22 Chris Moller <cmoller@redhat.com>
2302
2303 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2304 method of popping recursion-detection stack with a method based on
2305 obstack_object_size(). (Similar to the PR9167 patch below, but for
2306 the static array obstack rather than the static member obstack.)
2307
2308 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2309
2310 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2311 (_initialize_amd64_linux_nat): Replace
2312 amd64_linux_gregset64_reg_offset with
2313 amd64_linux_gregset_reg_offset.
2314
2315 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2316 global.
2317
2318 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2319
2320 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2321
2322 PR stabs/11479.
2323 * stabsread.c (set_length_in_type_chain): New function.
2324 (read_struct_type): Call set_length_in_type_chain function.
2325 (read_enum_type): Idem.
2326
2327 2010-04-21 Stan Shebs <stan@codesourcery.com>
2328 Nathan Sidwell <nathan@codesourcery.com>
2329
2330 * tracepoint.c (trace_save): Open in binary mode.
2331
2332 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2333
2334 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2335 fields.
2336 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2337 builtin_char32 fields.
2338 * printcmd.c (decode_format): Set char size to '\0'
2339 for strings unless explicit size is given.
2340 (print_formatted): Correct calculation of NEXT_ADDRESS
2341 for 16 or 32 bit strings.
2342 (do_examine): Do not force byte size for strings.
2343 Use builtin_char16 and builtin_char32 types to display
2344 16 or 32 bit-wide strings.
2345 (x_command): Set LAST_SIZE to 'b' for string type.
2346
2347 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2348
2349 PR corefiles/11523
2350 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2351 XCR0 first.
2352
2353 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2354 there is no .reg-xstate section.
2355 (i386_linux_core_read_description): Check XCR0 first.
2356
2357 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2358
2359 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2360 for len <= 8.
2361
2362 2010-04-21 Chris Moller <cmoller@redhat.com>
2363
2364 PR 9167
2365 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2366 method of popping recursion-detection stack with a method based on
2367 obstack_object_size().
2368
2369 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2370
2371 PR pascal/11492.
2372 * p-valprint.c (pascal_val_print): Fix default printing of integer
2373 arrays.
2374
2375 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2376
2377 Fix compilation warning on gcc-4.1.2.
2378 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2379 local variable`pc' to zero.
2380
2381 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2382
2383 Implement thread support with core files on alpha-tru64.
2384 * dec-thread.c (dec_thread_find_new_threads): New function,
2385 extracted from resync_thread_list.
2386 (resync_thread_list): Add OPS parameter. Replace extracted-out
2387 code by call to dec_thread_find_new_threads.
2388 (dec_thread_wait): Update call to resync_thread_list.
2389 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2390
2391 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2392
2393 * ada-lang.c (value_pointer): New function.
2394 (make_array_descriptor): Call value_pointer to convert addresses to
2395 pointers.
2396
2397 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2398
2399 * rs6000-aix-tdep.c: #include exceptions.h.
2400 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2401 while reading the memory at ADDR, then ADDR cannot be a function
2402 descriptor.
2403
2404 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2405
2406 * ada-typeprint.c (ada_print_typedef): New function.
2407 * ada-lang.h (ada_print_typedef): Add declaration.
2408 * ada-lang.c (ada_language_defn): set la_print_typdef field
2409 to ada_print_typedef.
2410
2411 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2412
2413 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2414
2415 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2416
2417 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2418 (iterate_over_mappings): Adjust function profile. Add declaration.
2419 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2420 Adjust accordingly.
2421
2422 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2423
2424 * procfs.c (solib_mappings_callback): Move function up to avoid
2425 a compiler warning.
2426
2427 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2428
2429 * procfs.c (find_signalled_thread, find_stop_signal): Move
2430 these functions down to define them only when used.
2431
2432 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2433
2434 * valprint.c (common_val_print): Fix the value before extracting
2435 its contents.
2436 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2437 * ada-lang.h (ada_to_fixed_value): New function declaration.
2438 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2439 to avoid code duplication and fix a bug in the handling of
2440 fixed types contents.
2441
2442 2010-04-20 Tom Tromey <tromey@redhat.com>
2443
2444 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2445 (read_partial_die): Likewise.
2446 (dwarf_attr_name): Likewise.
2447
2448 2010-04-20 Chris Moller <cmoller@redhat.com>
2449
2450 PR 10867
2451
2452 * cp-valprint.c (global): Adding new static array recursion
2453 detection obstack.
2454 (cp_print_value_fields, cp_print_static_field): Added new static
2455 array recursion detection code.
2456
2457 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2458
2459 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2460 general-purpose register set should be 68 instead of 144.
2461 (i386_linux_sse_regset_sections): Likewise.
2462 (i386_linux_avx_regset_sections): Likewise.
2463
2464 2010-04-20 Stan Shebs <stan@codesourcery.com>
2465 Nathan Sidwell <nathan@codesourcery.com>
2466
2467 * dwarf2loc.c (struct axs_var_loc): New struct.
2468 (dwarf2_tracepoint_var_loc): New function.
2469 (dwarf2_tracepoint_var_access): New function.
2470 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2471 with DW_OP_piece.
2472 (locexpr_describe_location_piece): New function.
2473 (locexpr_describe_location_1): New function.
2474 (locexpr_describe_location): Call it, update signature.
2475 (loclist_describe_location): Rewrite to loop over locations,
2476 update signature.
2477 * symtab.h (struct symbol_computed_ops): Add address to
2478 describe_location arguments, return void.
2479 * printcmd.c (address_info): Get context PC, pass to computed
2480 location description.
2481 * tracepoint.c (scope_info): Ditto.
2482 * ax-gdb.c (trace_kludge): Export.
2483
2484 2010-04-20 Tom Tromey <tromey@redhat.com>
2485
2486 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2487 (struct dwarf2_cie) <segment_size>: New field.
2488 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2489 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2490 DW_FORM_exprloc.
2491 (read_attribute_value): Handle DW_FORM_flag_present,
2492 DW_FORM_sec_offset, DW_FORM_exprloc.
2493 (dump_die_shallow): Likewise.
2494 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2495 (dwarf2_const_value): Handle DW_FORM_exprloc.
2496 (attr_form_is_block): Likewise.
2497 (struct line_header) <maximum_ops_per_instruction>: New field.
2498 (dwarf_decode_line_header): Set new field.
2499 (dwarf_decode_lines): Handle new field.
2500
2501 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 * f-exp.y: Add new production to recognize the `logical*8' type.
2504 (LOGICAL_S8_KEYWORD): New token.
2505 * f-lang.c (enum f_primitive_types)
2506 <f_primitive_type_logical_s8>: New field.
2507 (f_language_arch_info): Handling `logical*8' type.
2508 (build_fortran_types): Building `logical*8' type.
2509 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2510
2511 2010-04-19 Doug Evans <dje@google.com>
2512
2513 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2514 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2515 (pipe_close): Ditto.
2516
2517 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2518
2519 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2520
2521 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2522
2523 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2524 type to void function.
2525
2526 2010-04-19 Stan Shebs <stan@codesourcery.com>
2527 Vladimir Prus <vladimir@codesourcery.com>
2528
2529 * tracepoint.c (tfind_1): Add missing newline, report exit from
2530 tfind mode as such.
2531 * target.c (update_current_target): Make default
2532 to_trace_find return -1.
2533
2534 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2535
2536 * objc-lang.c (find_methods): Move symname check up.
2537
2538 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2539
2540 * ada-lang.c (print_recreate_exception)
2541 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2542 not "catch unhandled".
2543
2544 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2545
2546 PR breakpoints/8554.
2547
2548 Implement `save-breakpoints'.
2549
2550 * breakpoint.c (save_cmdlist): New.
2551 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2552 to save_cmdlist.
2553 (print_recreate_catch_fork): New.
2554 (catch_fork_breakpoint_ops): Install it.
2555 (print_recreate_catch_vfork): New.
2556 (catch_vfork_breakpoint_ops): Install it.
2557 (print_recreate_catch_syscall): New.
2558 (catch_syscall_breakpoint_ops): Install it.
2559 (print_recreate_catch_exec): New.
2560 (catch_exec_breakpoint_ops): Install it.
2561 (print_recreate_exception_catchpoint): New.
2562 (gnu_v3_exception_catchpoint_ops): Install it.
2563 (save_breakpoints): New, based on tracepoint_save_command, but
2564 handle all breakpoint types.
2565 (save_breakpoints_command): New.
2566 (tracepoint_save_command): Rename to...
2567 (save_tracepoints_command): ... this, and reimplement using
2568 save_breakpoints.
2569 (save_command): New.
2570 (_initialize_breakpoints): Install the "save" command prefix.
2571 Install the "save breakpoints" command. Make "save-tracepoints" a
2572 deprecated alias for "save tracepoints".
2573 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2574 * ada-lang.c (print_recreate_exception): New.
2575 (print_recreate_catch_exception): New.
2576 (catch_exception_breakpoint_ops): Install it.
2577 (print_recreate_catch_exception_unhandled): New.
2578 (catch_exception_unhandled_breakpoint_ops): Install it.
2579 (print_recreate_catch_assert): New.
2580 (catch_assert_breakpoint_ops): Install it.
2581
2582 * NEWS: Mention the new `save breakpoints' command. Mention the
2583 new `save tracepoints' alias and that `save-tracepoints' is now
2584 deprecated.
2585
2586 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2587
2588 PR tui/9217
2589
2590 * tui/tui-out.c: Include cli-out.h.
2591 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2592 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2593 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2594 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2595 declarations.
2596 (struct ui_out_data): Rename to...
2597 (struct tui_ui_out_data): ... this. Remove `stream' and
2598 `suppress_output' fields, and inherit cli_ui_out_data.
2599 (tui_out_data): New typedef.
2600 (tui_ui_out_impl): Don't initialize fields staticaly.
2601 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2602 (tui_begin, tui_end): Delete.
2603 (tui_field_int): Adjust to delegate most work to the base type.
2604 (tui_field_skip): Delete.
2605 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2606 delegate most work to the base type.
2607 (tui_spaces): Delete.
2608 (tui_text): Adjust to delegate most work to the base type.
2609 (tui_message): Delete.
2610 (tui_wrap_hint): Delete.
2611 (tui_flush): Delete.
2612 (out_field_fmt): Delete.
2613 (field_separator): Delete.
2614 (tui_out_new): Adjust to initialize the base type.
2615 (_initialize_tui_out): Initialize tui_ui_out_impl.
2616 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2617 cli_ui_out_data.
2618 (cli_out_data): Adjust.
2619 (cli_ui_out_impl): Make extern.
2620 (cli_table_header, cli_field_int, cli_field_skip): Use
2621 uo_field_string instead of cli_field_string.
2622 (cli_redirect): Adjust to use cli_out_data.
2623 (cli_out_data_ctor): New.
2624 (cli_out_new): Use it.
2625 * cli-out.h (struct ui_file): Remove forward declaration.
2626 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2627 (cli_ui_out_impl): Declare.
2628 (cli_out_data_ctor): Declare.
2629 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2630 (uo_field_string): No longer static.
2631 (ui_out_data): Change return type to void pointer.
2632 (ui_out_new): Change `data' parameter type to void pointer.
2633 * ui-out.h (struct ui_out_data): Don't forward declare.
2634 (ui_out_data): Change return type to void pointer.
2635 (ui_out_new): Change `data' parameter type to void pointer.
2636 (uo_field_string): Declare.
2637
2638 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2639
2640 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2641 instead of always false.
2642
2643 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2644
2645 PR corefiles/11511
2646 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2647 orig_rax.
2648
2649 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2650
2651 * breakpoint.c (watchpoints_triggered): Use
2652 is_hardware_watchpoint.
2653 (watchpoints_triggered): Ditto.
2654 (bpstat_check_location): Use is_watchpoint and
2655 is_hardware_watchpoint.
2656 (bpstat_check_watchpoint): Use is_watchpoint and
2657 is_hardware_watchpoint.
2658 (bpstat_stop_status): Fix comment.
2659 (user_settable_breakpoint): Use is_watchpoint.
2660 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2661 (disable_watchpoints_before_interactive_call_start): Use
2662 is_watchpoint.
2663 (enable_watchpoints_after_interactive_call_stop): Use
2664 is_watchpoint.
2665 (clear_command): Use is_watchpoint.
2666 (do_enable_breakpoint): Use is_watchpoint.
2667
2668 2010-04-16 Mike Frysinger <vapier@gentoo.org>
2669
2670 * solib-frv.c (enable_break1_done): Delete.
2671 (enable_break2): Do not check enable_break1_done. Move the
2672 enable_break2_done setting and call to
2673 remove_solib_event_breakpoints() to the end. Return without
2674 warning when the contents of _dl_debug_addr are 0.
2675 (enable_break): Do not set enable_break1_done.
2676 (frv_clear_solib): Likewise.
2677
2678 2010-04-16 Kevin Buettner <kevinb@redhat.com>
2679
2680 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2681 instead of an error if no PLT entry is found. Return a
2682 potentially useful result.
2683 (m32c_m16c_pointer_to_address): Add code to search for function
2684 address when no .plt entry is found.
2685
2686 2010-04-16 Stan Shebs <stan@codesourcery.com>
2687
2688 * tracepoint.c (trace_variable_command): Run a cleanup.
2689
2690 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2691
2692 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2693
2694 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2695
2696 Support for Windows OS Thread Information Block.
2697 * NEWS: Document new feature.
2698 * remote.c (PACKET_qGetTIBAddr): New enum element.
2699 (remote_get_tib_address): New function.
2700 (init_remote_ops): Set to_get_tib_address field
2701 to remote_get_tib_address.
2702 (_initialize_remote): Add add_packet_config_cmd
2703 for PACKET_qGetTIBAddr.
2704 * target.c (update_current_target): Set default value for
2705 new to_get_tib_address field.
2706 * target.h (target_ops): New field to_get_tib_address.
2707 (target_get_tib_address): New macro.
2708 * windows-nat.c (thread_info): Add thread_local_base field.
2709 (windows_add_thread): Add tlb argument of type 'void *'.
2710 (fake_create_process): Adapt windows_add_thread call.
2711 (get_windows_debug_event): Idem.
2712 (windows_get_tib_address): New function.
2713 (init_windows_ops): Set to_get_tib_address field
2714 to remote_get_tib_address.
2715 (_initialize_windows_nat): Replace info_w32_cmdlist
2716 initialization by a call to init_w32_command_list.
2717 (info_w32_command, info_w32_cmdlist): Removed from here...
2718 to windows-tdep.c file.
2719 * windows-tdep.h (info_w32_cmdlist): Declare.
2720 (init_w32_command_list): New external function
2721 declaration.
2722 * windows-tdep.c: Add several headers.
2723 (info_w32_cmdlist): to here, made global.
2724 (thread_information_32): New struct.
2725 (thread_information_64): New struct.
2726 (TIB_NAME): New char array.
2727 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2728 (maint_display_all_tib): New static variable.
2729 (windows_get_tlb_type): New function.
2730 (tlb_value_read, tlb_value_write): New functions.
2731 (tlb_value_funcs): New static struct.
2732 (tlb_make_value): New function.
2733 (display_one_tib): New function.
2734 (display_tib): New function.
2735 (show_maint_show_all_tib):New function.
2736 (info_w32_command): Moved from windows-nat.c.
2737 (init_w32_command_list): New function.
2738 (_initialize_windows_tdep): New function.
2739 New "maint set/show show-all-tib" command
2740 New "$_tlb" internal variable.
2741
2742 2010-04-16 Joel Brobecker <brobecker@adacore.com>
2743
2744 * tui/tui-regs.c (tui_display_register): Add comment about
2745 a couple of casts.
2746 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2747
2748 2010-04-15 Stan Shebs <stan@codesourcery.com>
2749
2750 * frame.c: Include tracepoint.h.
2751 (get_current_frame): Allow a trace frame to be an alternate source
2752 of stack frame data.
2753 * tracepoint.c (tfind_1): Don't try to get current stack frame if
2754 it won't succeed.
2755
2756 2010-04-15 Pedro Alves <pedro@codesourcery.com>
2757
2758 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
2759 flags.
2760 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
2761
2762 2010-04-15 Doug Evans <dje@google.com>
2763
2764 * NEWS: Add entry for python program space support.
2765 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
2766 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
2767 (py-progspace.o): New rule.
2768 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
2769 function.
2770 (find_pretty_printer_from_progspace): New function.
2771 (find_pretty_printer_from_gdb): New function.
2772 (find_pretty_printer): Rewrite.
2773 * python/py-progspace.c: New file.
2774 * python/python-internal.h (program_space): Add forward decl.
2775 (pspace_to_pspace_object, pspy_get_printers): Declare.
2776 (gdbpy_initialize_pspace): Declare.
2777 * python/python.c: #include "progspace.h".
2778 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
2779 (_initialize_python): Call gdbpy_initialize_pspace.
2780 (GdbMethods): Add current_progspace, progspaces.
2781
2782 Add -s option to source command.
2783 * NEWS: Document new option.
2784 * cli/cli-cmds.c (find_and_open_script): Add function comment.
2785 Delete from_tty and cleanupp args. Split filep arg into file and
2786 full_pathp. New arg search_path.
2787 (source_script_from_stream): New function.
2788 (source_script_with_search): New function.
2789 (source_script): Rewrite.
2790 (source_command): Parse "-s" option.
2791 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
2792 * python/python.c (source_python_script): Make file arg a const char *.
2793 Don't call fclose, leave for caller.
2794 * python/python.h (source_python_script): Update.
2795
2796 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2797 Pedro Alves <pedro@codesourcery.com>
2798
2799 Avoid rereading shared libraries that haven't changed.
2800
2801 * solib.c (free_so_symbols): New function, from ...
2802 (free_so): ... here. Call it.
2803 (solib_read_symbols): Don't warn here if symbols have already been
2804 loaded.
2805 (solib_add): Warn here instead, if a pattern was specified.
2806 (reload_shared_libraries_1): New.
2807 (reload_shared_libraries): Rewrite to not fetch the library list.
2808
2809 2010-04-14 Doug Evans <dje@google.com>
2810
2811 * source.c (openp): Strip DOS drive letter if present before
2812 concatenating string to search path.
2813
2814 2010-04-14 Pedro Alves <pedro@codesourcery.com>
2815
2816 * objfiles.h (gdb_bfd_close_or_warn): Declare.
2817 * objfiles.c (gdb_bfd_close_or_warn): New.
2818 * corelow.c: Include objfiles.h
2819 (core_close): Use gdb_bfd_close_or_warn.
2820 * elfread.c (build_id_verify): Ditto.
2821 * exec.c (exec_close, exec_close_1): Ditto.
2822
2823 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
2824 Pedro Alves <pedro@codesourcery.com>
2825
2826 Group errors for many missing shared libraries.
2827
2828 * solist.h (struct so_list): Remove from_tty.
2829 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
2830 (solib_map_sections): Take so_list argument. Return 0 if we
2831 failed to open a BFD. Add target sections here.
2832 (symbol_add_stub): Delete.
2833 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
2834 not from_tty copied from the so_list. Don't warn a second time
2835 for a missing library.
2836 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
2837 add to the section table here. Print out a single warning for all
2838 missing libraries.
2839 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
2840 flags.
2841
2842 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2843
2844 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
2845 error/warning messages. Capitalize and use complete sentences.
2846 (blpy_block_syms_iternext): Likewise.
2847 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
2848 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
2849 (frame_info_to_frame_object, frapy_read_var)
2850 (gdbpy_frame_stop_reason_string): Likewise.
2851 * python/py-lazy-string.c (stpy_convert_to_value)
2852 (gdbpy_create_lazy_string_object): Likewise.
2853 * python/py-objfile.c (objfpy_set_printers): Likewise.
2854 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
2855 * python/python.c (parameter_to_python): Likewise.
2856 * python/py-type.c (typy_range, typy_target): Likewise.
2857 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
2858 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
2859
2860
2861 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
2862
2863 PR python/11381
2864
2865 * python/py-prettyprint.c (pretty_print_one_value): Test for
2866 Py_None.
2867 (print_string_repr): Test for Py_None. Set flags accordingly.
2868 Return value depending on return type.
2869 (print_children): Take a value indicating whether data was printed
2870 before this function was called. Alter output accordingly.
2871 (apply_val_pretty_printer): Capture return value from
2872 print_string_repr and pass to print_children.
2873
2874 2010-04-13 Mark Kettenis <kettenis@gnu.org>
2875
2876 PR corefiles/11481
2877 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
2878 register note sections.
2879 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2880 New variables.
2881 (i386_linux_init_abi): Install list of supported register note
2882 sections that matches the target description.
2883
2884 2010-04-13 Pedro Alves <pedro@codesourcery.com>
2885
2886 * remote.c (remote_get_noisy_reply): Don't error out on empty
2887 replies.
2888 (remote_start_remote): Update and merge tracepoints and trace
2889 state variables as long as the target supports tracepoints.
2890 (remote_trace_init): Fix prototype.
2891 (remote_download_trace_state_variable): Validate reply.
2892 (remote_trace_set_readonly_regions): Fix prototype.
2893 (remote_trace_start): Fix prototype. Check for empty reply.
2894 (remote_get_trace_status): Small cleanup.
2895 (remote_trace_stop): Fix prototype. Check for empty reply.
2896 (remote_trace_find): Check for empty reply.
2897 (remote_save_trace_data): Validate reply.
2898 (remote_set_disconnected_tracing): Check for empty reply, and
2899 validate reply.
2900 (remote_set_circular_trace_buffer): Ditto.
2901
2902 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
2903
2904 Suppress unused value warning during compilation.
2905 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
2906 calls to void.
2907 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2908
2909 2010-04-12 Stan Shebs <stan@codesourcery.com>
2910
2911 * tracepoint.c (tfile_xfer_partial): Check read result.
2912
2913 2010-04-12 Mike Frysinger <vapier@gentoo.org>
2914
2915 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
2916 * remote-sim.c (gdbsim_files_info): Likewise.
2917
2918 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2919
2920 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
2921 * arm-linux-nat.c (arm_linux_vfp_register_count): New
2922 variable.
2923 (fetch_vfp_registers): New function to fetch VFP registers.
2924 (store_vfp_registers): New function to store VFP registers.
2925 (arm_linux_fetch_inferior_registers): Add support for VFP
2926 registers.
2927 (arm_linux_store_inferior_registers): Likewise.
2928 (arm_linux_read_description): Likewise.
2929 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
2930 until we need it.
2931
2932 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
2933
2934 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
2935 tdep.
2936 (amd64_collect_xstateregset): Likewise.
2937
2938 2010-04-09 Stan Shebs <stan@codesourcery.com>
2939
2940 * tracepoint.c (trace_status_mi): Report frames created.
2941
2942 * tracepoint.c (trace_dump_command): Include default-collect
2943 expressions.
2944
2945 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
2946
2947 * symtab.c (find_function_start_sal): Never return SAL pointing
2948 before function start address, even if line info is missing.
2949
2950 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2951
2952 * NEWS: Mention tracepoints support.
2953
2954 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2955
2956 * tracepoint.c (trace_status_mi): Report disconnected tracing and
2957 circular trace buffer statuses.
2958
2959 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2960
2961 * config/djgpp/fnchange.lst: Fix typo in translations for
2962 symbol-without-target_section.exp and symbol-without-target_section.c.
2963
2964 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2965
2966 * breakpoint.c (condition_command): Pass condition expression to
2967 set_breakpoint_condition stripped from breakpoint number.
2968
2969 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
2970 Thiago Jung Bauermann <bauerman@br.ibm.com>
2971 Tom Tromey <tromey@redhat.com>
2972
2973 * breakpoint.c (condition_command): Simplify. Move condition
2974 setting code to ...
2975 (set_breakpoint_condition): ... here. New function.
2976 * breakpoint.h (set_breakpoint_condition): Declare.
2977 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
2978 (SUBDIR_PYTHON_SRCS): Likewise.
2979 (py-breakpoint.o): New rule.
2980 * python/py-breakpoint.c: New file.
2981 * python/python-internal.h (gdbpy_breakpoints)
2982 (gdbpy_initialize_breakpoints): Declare.
2983 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
2984
2985 2010-04-09 Pedro Alves <pedro@codesourcery.com>
2986
2987 * regformats/regdat.sh: Include server.h. Don't include
2988 regcache.h.
2989
2990 2010-04-08 Stan Shebs <stan@codesourcery.com>
2991 Pedro Alves <pedro@codesourcery.com>
2992
2993 * tracepoint.h (struct trace_status): New fields disconnected_tracing
2994 and circular_buffer.
2995 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
2996 * tracepoint.c (trace_status_command): Display target's status for
2997 disconnected tracing and circular buffer.
2998 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
2999 query for non-disconnected-tracing case, remove the stop_tracing
3000 call.
3001 (tfile_open): Clear disconnected and circular buffer status.
3002 (trace_save): Save disconnected and circular buffer status.
3003 (parse_trace_status): Parse disconnected and circular buffer status,
3004 also recognize disconnected as a stop reason.
3005 * remote.c (remote_set_disconnected_tracing): Only set
3006 QTDisconnected if the remote end supports disconnected tracing.
3007 Warn otherwise, if trying to enable disconnected tracing.
3008 * infcmd.c (detach_command): Update disconnect_tracing call.
3009 * cli/cli-cmds.c (quit_command): Ditto.
3010
3011 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3012
3013 * i387-tdep.c (i387_collect_xsave): Replace abort with
3014 internal_error.
3015
3016 2010-04-08 Stan Shebs <stan@codesourcery.com>
3017
3018 * breakpoint.c (default_collect_info): New function.
3019 (breakpoints_info): Call it.
3020 (maintenance_info_breakpoints): Ditto.
3021 (tracepoints_info): Ditto.
3022
3023 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3024
3025 * i387-tdep.c (i387_collect_xsave): Re-indent.
3026
3027 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3028
3029 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3030 if HAVE_PTRACE_GETFPXREGS is defined.
3031 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3032 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3033
3034 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3035 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3036 if .reg-xfp section doesn't exist.
3037 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3038
3039 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3040
3041 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3042 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3043 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3044 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3045 (i386_gdbarch_init): Update comments.
3046 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3047
3048 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3049
3050 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3051
3052 * features/Makefile (i386/i386-mmx-expedite): New.
3053 (i386/i386-mmx-linux-expedite): Likewise.
3054 ($(outdir)/i386/i386-mmx.dat): Likewise.
3055 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3056
3057 * features/i386/i386-mmx-linux.c: New.
3058 * features/i386/i386-mmx-linux.xml: Likewise.
3059 * features/i386/i386-mmx.c: Likewise.
3060 * features/i386/i386-mmx.xml: Likewise.
3061 * regformats/i386/i386-mmx-linux.dat: Likewise.
3062 * regformats/i386/i386-mmx.dat: Likewise.
3063
3064 * features/Makefile (WHICH): Add i386/i386-mmx and
3065 i386/i386-mmx-linux.
3066
3067 2010-04-08 Doug Evans <dje@google.com>
3068
3069 * source.c (openp): Skip $cdir in PATH.
3070
3071 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3072
3073 PR python/11417
3074 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3075 a NULL address.
3076 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3077 address and a zero length.
3078
3079 2010-04-08 Hui Zhu <teawater@gmail.com>
3080
3081 * i386-tdep.c (i386_process_record): Add support for insn
3082 rdtsc.
3083
3084 2010-04-07 Doug Evans <dje@google.com>
3085
3086 * python/python.c (source_python_script): Use ensure_python_env
3087 to prepare environment for script.
3088
3089 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3090
3091 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3092 <sys/uio.h> and "i386-xstate.h".
3093 (PTRACE_GETREGSET): New.
3094 (PTRACE_SETREGSET): Likewise.
3095 (have_ptrace_getregset): Likewise.
3096 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3097 registers.
3098 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3099 registers.
3100 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3101 (amd64_linux_store_inferior_registers): Likewise.
3102 (amd64_linux_read_description): Check and enable AVX target
3103 descriptions.
3104
3105 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3106 and "features/i386/amd64-avx-linux.c".
3107 (amd64_linux_regset_sections): New.
3108 (amd64_linux_core_read_description): Check and enable AVX
3109 target description.
3110 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3111 set_gdbarch_core_regset_sections.
3112 (_initialize_amd64_linux_tdep): Call
3113 initialize_tdesc_amd64_avx_linux.
3114
3115 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3116 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3117 (tdesc_amd64_avx_linux): New.
3118 (amd64_linux_update_xstateregset): Likewise.
3119
3120 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3121 (amd64_ymm_names): New.
3122 (amd64_ymmh_names): Likewise.
3123 (amd64_register_name): Likewise.
3124 (amd64_supply_xstateregset): Likewise.
3125 (amd64_collect_xstateregset): Likewise.
3126 (amd64_supply_xsave): Likewise.
3127 (amd64_collect_xsave): Likewise.
3128 (AMD64_NUM_REGS): Removed.
3129 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3130 %xmmN if AVX is available.
3131 (amd64_pseudo_register_name): Support pseudo YMM registers.
3132 (amd64_regset_from_core_section): Support .reg-xstate section.
3133 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3134 and ymm0h_regnum. Call set_gdbarch_register_name.
3135 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3136
3137 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3138 AMD64_YMM15H_REGNUM.
3139 (AMD64_NUM_REGS): New.
3140 (amd64_supply_xsave): Likewise.
3141 (amd64_collect_xsave): Likewise.
3142 (amd64_register_name): Removed.
3143 (amd64_register_type): Likewise.
3144
3145 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3146
3147 * i387-tdep.c: Include "i386-xstate.h".
3148 (XSAVE_XSTATE_BV_ADDR): New.
3149 (xsave_avxh_offset): Likewise.
3150 (XSAVE_AVXH_ADDR): Likewise.
3151 (i387_supply_xsave): Likewise.
3152 (i387_collect_xsave): Likewise.
3153
3154 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3155 (I387_YMM0H_REGNUM): Likewise.
3156 (I387_YMMENDH_REGNUM): Likewise.
3157 (i387_supply_xsave): Likewise.
3158 (i387_collect_xsave): Likewise.
3159
3160 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3161
3162 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3163 <sys/uio.h> and "i386-xstate.h".
3164 (PTRACE_GETREGSET): New.
3165 (PTRACE_SETREGSET): Likewise.
3166 (fetch_xstateregs): Likewise.
3167 (store_xstateregs): Likewise.
3168 (GETXSTATEREGS_SUPPLIES): Likewise.
3169 (regmap): Include 8 upper YMM registers.
3170 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3171 state.
3172 (i386_linux_store_inferior_registers): Likewise.
3173 (i386_linux_read_description): Check and enable AVX target
3174 descriptions.
3175
3176 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3177 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3178 (i386_linux_regset_sections): Add ".reg-xstate".
3179 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3180 (i386_linux_core_read_xcr0): New.
3181 (i386_linux_core_read_description): Check and enable AVX target
3182 description.
3183 (i386_linux_init_abi): Set xsave_xcr0_offset.
3184 (_initialize_i386_linux_tdep): Call
3185 initialize_tdesc_i386_avx_linux.
3186
3187 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3188 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3189 (i386_linux_core_read_xcr0): New.
3190 (tdesc_i386_avx_linux): Likewise.
3191 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3192
3193 * i386-tdep.c: Include "i386-xstate.h" and
3194 "features/i386/i386-avx.c".
3195 (i386_ymm_names): New.
3196 (i386_ymmh_names): Likewise.
3197 (i386_ymmh_regnum_p): Likewise.
3198 (i386_ymm_regnum_p): Likewise.
3199 (i386_xmm_regnum_p): Likewise.
3200 (i386_register_name): Likewise.
3201 (i386_ymm_type): Likewise.
3202 (i386_supply_xstateregset): Likewise.
3203 (i386_collect_xstateregset): Likewise.
3204 (i386_sse_regnum_p): Removed.
3205 (i386_pseudo_register_name): Support pseudo YMM registers.
3206 (i386_pseudo_register_type): Likewise.
3207 (i386_pseudo_register_read): Likewise.
3208 (i386_pseudo_register_write): Likewise.
3209 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3210 %xmmN if AVX is available.
3211 (i386_regset_from_core_section): Support .reg-xstate section.
3212 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3213 (i386_process_record): Replace i386_sse_regnum_p with
3214 i386_xmm_regnum_p.
3215 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3216 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3217 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3218 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3219 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3220 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3221 Set ymm0_regnum.
3222 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3223
3224 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3225 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3226 i386_ymm_type.
3227 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3228 (I386_AVX_NUM_REGS): New.
3229 (i386_xmm_regnum_p): Likewise.
3230 (i386_ymm_regnum_p): Likewise.
3231 (i386_ymmh_regnum_p): Likewise.
3232
3233 * common/i386-xstate.h: New.
3234
3235 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3236
3237 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3238
3239 * features/Makefile (WHICH): Add i386/i386-avx,
3240 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3241 (i386/i386-avx-expedite): New.
3242 (i386/i386-avx-linux-expedite): Likewise.
3243 (i386/x86-64-avx-expedite):Likewise.
3244 (i386/x86-64-avx-linux-expedite): Likewise.
3245 ($(outdir)/i386/i386-avx.dat): New dependency.
3246 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3247 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3248 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3249
3250 * features/i386/32bit-avx.xml: New.
3251 * features/i386/64bit-avx.xml: Likewise.
3252 * features/i386/i386-avx-linux.c: Likewise.
3253 * features/i386/i386-avx-linux.xml: Likewise.
3254 * features/i386/i386-avx.c: Likewise.
3255 * features/i386/i386-avx.xml: Likewise.
3256 * features/i386/x86-64-avx-linux.c: Likewise.
3257 * features/i386/x86-64-avx-linux.xml: Likewise.
3258 * features/i386/x86-64-avx.c: Likewise.
3259 * features/i386/x86-64-avx.xml: Likewise.
3260 * regformats/i386/i386-avx-linux.dat: Likewise.
3261 * regformats/i386/i386-avx.dat: Likewise.
3262 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3263 * regformats/i386/x86-64-avx.dat: Likewise.
3264
3265 2010-04-07 Doug Evans <dje@google.com>
3266
3267 * top.c (source_file_name): Make const char *.
3268 * top.h (source_file_name): Update.
3269 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3270 const char *.
3271 (script_from_file): Change `file' arg to const char *.
3272 * cli/cli-script.h (script_from_file): Update.
3273
3274 2010-04-06 Doug Evans <dje@google.com>
3275
3276 * cli/cli-cmds.c (source_command): Run cleanups.
3277
3278 2010-04-06 Stan Shebs <stan@codesourcery.com>
3279
3280 * defs.h (char_ptr): Move typedef here from...
3281 * ada-lang.c (char_ptr): Remove.
3282 * charset.c (char_ptr): Remove.
3283 * tracepoint.h (struct uploaded_string): Remove.
3284 (struct uploaded_tp): Use vectors for string arrays.
3285 * tracepoint.c (trace_save): Use vectors of actions.
3286 (parse_tracepoint_definition): Ditto.
3287 (get_uploaded_tp): Clear vectors.
3288 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3289 (next_cmd): Change to an int.
3290 (read_next_cmd): Use vector of command strings.
3291
3292 2010-04-06 Doug Evans <dje@google.com>
3293
3294 * top.h (source_script, cd_command): Delete.
3295 * main.c: #include "cli/cli-cmds.h"
3296
3297 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3298
3299 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3300 type in bytes, not bits.
3301
3302 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3303
3304 * stabsread.c (define_symbol): Add support for char
3305 and string constants.
3306
3307 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3308
3309 Remove remaining "%ll" uses.
3310 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3311 hex_string call.
3312 * rs6000-nat.c (rs6000_ptrace64): Idem.
3313 * solib-pa64.c (pa64_current_sos): Idem.
3314 * solib-spu.c (spu_current_sos): Idem.
3315 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3316 plongest call.
3317 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3318 phex (VAR, 8) call.
3319 * sh64-tdep.c (sh64_show_media_regs): Idem.
3320
3321 2010-04-05 Stan Shebs <stan@codesourcery.com>
3322
3323 * tracepoint.c: Include gdbcore.h.
3324 (tfile_xfer_partial): Return partial results, also try reading
3325 from executable.
3326 (tfile_has_all_memory): New function.
3327 (init_tfile_ops): Use it.
3328
3329 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3330
3331 PR gdb/10736:
3332 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3333 the changes in data-directory.
3334 (init_sysinfo): Reload the syscall XML file if the data-directory
3335 has changed.
3336
3337 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3338
3339 Code cleanup.
3340 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3341
3342 2010-04-04 Stan Shebs <stan@codesourcery.com>
3343 Nathan Sidwell <nathan@codesourcery.com>
3344
3345 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3346 breakpoints printed.
3347 (is_hardware_watchpoint): Make argument const.
3348 (is_watchpoint): Ditto.
3349 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3350 use it everywhere.
3351 (breakpoints_info): Pass NULL to breakpoint_1.
3352 (maintenance_info_breakpoints): Ditto.
3353 (watchpoints_info): New function.
3354 (tracepoints_info): Use breakpoint_1 filter.
3355 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3356 (_initialize_breakpoint): Make "info watchpoints" its own command.
3357 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3358 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3359
3360 2010-04-04 Stan Shebs <stan@codesourcery.com>
3361
3362 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3363
3364 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3365
3366 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3367 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3368
3369 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3370
3371 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3372 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3373
3374 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3375
3376 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3377 code form.
3378
3379 2010-04-02 Hui Zhu <teawater@gmail.com>
3380
3381 * i386-tdep.c (OT_DQUAD): New enum.
3382 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3383 SSE3, SSSE3 and SSE4.
3384
3385 2010-04-02 Hui Zhu <teawater@gmail.com>
3386
3387 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3388 "*addr = 0".
3389
3390 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3391
3392 * tracepoint.c (trace_dump_actions): New, factored out from
3393 trace_dump_command, and adjusted to recurse into while-stepping's
3394 action list.
3395 (trace_dump_command): Use it.
3396
3397 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3398
3399 * breakpoint.h (struct counted_command_line): Moved definition to
3400 breakpoint.c, and forward declare.
3401 (breakpoint_commands): Declare.
3402 * breakpoint.c (struct counted_command_line): Moved here.
3403 (breakpoint_commands): New.
3404 * tracepoint.c (encode_actions): Use breakpoint_commands.
3405 * remote.c (remote_download_tracepoint): Ditto.
3406
3407 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3408
3409 * remote.c (remote_parse_stop_reply): Use hex_string instead
3410 of phex_nz for error.
3411
3412 2010-04-01 Stan Shebs <stan@codesourcery.com>
3413 Nathan Sidwell <nathan@codesourcery.com>
3414
3415 * tracepoint.h (enum actionline_type): Remove.
3416 (validate_actionline): Change return to void.
3417 * tracepoint.c (report_agent_reqs_errors): New function.
3418 (validate_actionline): Call it, change return to void, report errors
3419 more consistently.
3420 (collect_symbol): Call report_agent_reqs_errors.
3421 (encode_actions_1): Ditto.
3422 (encode_actions): Don't expect a result from validate_actionline.
3423
3424 2010-04-01 Stan Shebs <stan@codesourcery.com>
3425
3426 * tracepoint.c (trace_start_command): Confirm if trace is running.
3427 (trace_stop_command): Error if trace not running.
3428
3429 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3430
3431 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3432 (AMD64_NUM_LOWER_BYTE_REGS): New.
3433 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3434 (amd64_pseudo_register_write): Likewise.
3435 (amd64_init_abi): Set num_byte_regs to 20.
3436
3437 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3438
3439 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3440 (prev_breakpoint_count): New.
3441 (set_breakpoint_count): Adjust.
3442 (rbreak_start_breakpoint_count): New.
3443 (start_rbreak_breakpoints): Adjust.
3444 (end_rbreak_breakpoints): Adjust.
3445 (struct commands_info) <arg>: New field.
3446 (do_map_commands_command): Tweak output to include breakpoint spec
3447 range.
3448 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3449 ARG was empty on entry. Set INFO's arg.
3450 (create_breakpoint): Adjust.
3451
3452 * NEWS: Clarify `commands' changes.
3453
3454 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3455
3456 * tracepoint.c: Include stack.h.
3457 (struct add_local_symbols_data): New.
3458 (do_collect_symbol): New.
3459 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3460 iterate_over_block_local_vars.
3461 * stack.c (print_block_frame_locals): Rewrite as ...
3462 (iterate_over_block_locals): ... this. Take a callback function
3463 pointer and generic data pointer, and call that instead of
3464 print_variable_and_value.
3465 (struct print_variable_and_value_data): New.
3466 (do_print_variable_and_value): New.
3467 (iterate_over_block_local_vars): New, abstracted out from
3468 print_frame_local_vars.
3469 (print_frame_local_vars): Rewrite using
3470 iterate_over_block_local_vars.
3471 (iterate_over_block_arg_vars): New, abstracted out from
3472 print_frame_arg_vars.
3473 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3474 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3475 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3476
3477 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3478
3479 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3480 instructions. Use the PC+4 if the base of the TBB or TBH is the
3481 PC register.
3482
3483 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3484
3485 Fix crash on reading wrong function declaration DWARF.
3486 * dwarf2read.c (read_subroutine_type): New variable void_type.
3487 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3488 more close to their use.
3489
3490 2010-03-31 Stan Shebs <stan@codesourcery.com>
3491
3492 * breakpoint.c (tracepoint_save_command): Include variables,
3493 conditionals, tracepoint types, and default-collect.
3494 * tracepoint.c (save_trace_state_variables): New function.
3495 * tracepoint.h (save_trace_state_variables): Declare it.
3496
3497 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3498
3499 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3500
3501 2010-03-30 Keith Seitz <keiths@redhat.com>
3502
3503 * c-typeprint.c (c_type_print_args): Don't print "void"
3504 for java, regardless of whether it is TYPE_PROTOTYPED.
3505 Use the passed-in language instead of current_language.
3506 (c_type_print_varspec_suffix): Use current_language instead
3507 of assuming language_c.
3508 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3509 any return type specifier from the physname.
3510
3511 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3512
3513 * tui/tui-interp.c (tui_is_toplevel): New.
3514 (tui_init): Set it.
3515 (tui_allowed_p): New.
3516 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3517 enabling it.
3518 * tui/tui.h (tui_allowed_p): Declare.
3519
3520 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3521
3522 * serial.h: Include winsock2.h before windows.h.
3523
3524 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3525
3526 * NEWS: Mention xmlRegisters= in qSupported packet.
3527
3528 * i386-tdep.c: Include "remote.h".
3529 (_initialize_i386_tdep): Call register_remote_support_xml.
3530
3531 * remote.c (remote_support_xml): New.
3532 (register_remote_support_xml): Likewise.
3533 (remote_query_supported_append): Likewise.
3534 (remote_query_supported): Support remote_support_xml.
3535
3536 * remote.h (register_remote_support_xml): New.
3537
3538 2010-03-29 Stan Shebs <stan@codesourcery.com>
3539
3540 * tracepoint.c (trace_find_line_command): Remove dead code.
3541
3542 * tracepoint.h (struct uploaded_string): New struct.
3543 (struct uploaded_tp): New fields for source strings.
3544 * breakpoint.c (this_utp, next_cmd): New globals.
3545 (read_uploaded_action): New function.
3546 (create_tracepoint_from_upload): Fill in more parts
3547 of a tracepoint.
3548 * tracepoint.c (encode_source_string): New function.
3549 (trace_save): Write out source strings, fix error checks.
3550 (parse_tracepoint_definition): Add source string parsing.
3551 * remote.c (PACKET_TracepointSource): New packet type.
3552 (remote_download_command_source): New function.
3553 (remote_download_tracepoint): Download source pieces also.
3554 (_initialize_remote): Add packet config command.
3555
3556 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3557 expression handler.
3558
3559 * tracepoint.c (start_tracing): Check tracepoints before sending
3560 commands to target, don't start if all tracepoints disabled.
3561
3562 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3563
3564 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3565
3566 2010-03-26 Stan Shebs <stan@codesourcery.com>
3567
3568 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3569
3570 2010-03-26 Tom Tromey <tromey@redhat.com>
3571
3572 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3573
3574 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3575
3576 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3577 (skip_prologue_sal): Remove local definition.
3578 (resolve_sal_pc): Remove now unnecessary code.
3579 * linespec.c (minsym_found): Call skip_prologue_sal.
3580 * symtab.c (find_function_start_pc): Remove.
3581 (find_function_start_sal): Extract prologue skipping into ...
3582 (skip_prologue_sal): ... this new function. Handle code both
3583 with and without debug info. Respect SAL's explicit_pc and
3584 explicit_line flags. Inline old find_function_start_pc.
3585 * symtab.h (find_function_start_pc): Remove.
3586 (skip_prologue_sal): Add prototype.
3587
3588 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3589
3590 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3591 for DW_TAG_imported_module children.
3592
3593 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3594
3595 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3596 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3597 * completer.c (add_struct_fields): Fix inverted logic.
3598
3599 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3600
3601 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3602
3603 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3604
3605 * tracepoint.c (current_trace_status): Don't make sure error_desc
3606 is non-NULL here.
3607 (parse_trace_status): Release a previous error_desc string, and
3608 set it to NULL by default. If stop reason is tracepoint_error,
3609 make sure error_desc is not left NULL.
3610
3611 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3612
3613 * tracepoint.c (trace_save): Remove X from tracepoint error
3614 description.
3615
3616 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3617
3618 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3619 the terror description. Don't expect an X prefix.
3620
3621 2010-03-25 Stan Shebs <stan@codesourcery.com>
3622
3623 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3624 (struct trace_status): New field error_desc.
3625 * tracepoint.c (stop_reason_names): Add terror.
3626 (current_trace_status): Ensure non-NULL error description.
3627 (trace_status_command): Add error report.
3628 (trace_status_mi): Ditto.
3629 (trace_save): Add special case for error description.
3630 (parse_trace_status): Add case for errors.
3631
3632 2010-03-25 Keith Seitz <keiths@redhat.com>
3633
3634 * dwarf2read.c (read_subroutine_type): If the compilation unit
3635 language is Java, mark any formal parameter named "this" as
3636 artificial (GCC/43521).
3637 (dwarf2_name): Add special handling for Java constructors.
3638
3639 2010-03-25 Tom Tromey <tromey@redhat.com>
3640
3641 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3642 * infrun.c (handle_inferior_event): Change initialization of
3643 stop_stack_dummy.
3644 (handle_inferior_event): Change assignment to stop_stack_dummy.
3645 (normal_stop): Update use of stop_stack_dummy.
3646 (struct inferior_status) <stop_stack_dummy>: Change type.
3647 * inferior.h (stop_stack_dummy): Update.
3648 * infcmd.c (stop_stack_dummy): Change type.
3649 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3650 function.
3651 (call_function_by_hand): Call set_std_terminate_breakpoint.
3652 Rewrite std::terminate handling.
3653 * breakpoint.h (enum bptype) <bp_std_terminate,
3654 bp_std_terminate_master>: New.
3655 (enum stop_stack_kind): New.
3656 (struct bpstat_what) <call_dummy>: Change type.
3657 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3658 Declare.
3659 * breakpoint.c (create_std_terminate_master_breakpoint): New
3660 function.
3661 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3662 Call create_std_terminate_master_breakpoint.
3663 (print_it_typical): Handle new breakpoint kinds.
3664 (bpstat_stop_status): Handle bp_std_terminate_master.
3665 (bpstat_what): Correctly set call_dummy field. Handle
3666 bp_std_terminate_master and bp_std_terminate.
3667 (print_one_breakpoint_location): Update.
3668 (allocate_bp_location): Update.
3669 (set_std_terminate_breakpoint): New function.
3670 (delete_std_terminate_breakpoint): Likewise.
3671 (create_thread_event_breakpoint): Update.
3672 (delete_command): Update.
3673 (breakpoint_re_set_one): Update.
3674 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3675
3676 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3677
3678 * symfile.c (build_section_addr_info_from_bfd): New.
3679 (build_section_addr_info_from_objfile): Base it on
3680 build_section_addr_info_from_bfd.
3681 (addrs_section_compar, addrs_section_sort): New.
3682 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3683 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3684 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3685
3686 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3687
3688 * elfread.c (find_separate_debug_file_by_buildid):
3689 Remove unused local variable.
3690
3691 2010-03-24 Tom Tromey <tromey@redhat.com>
3692
3693 PR breakpoints/9352:
3694 * NEWS: Mention changes to `commands' and `rbreak'.
3695 * symtab.c (do_end_rbreak_breakpoints): New function.
3696 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3697 end_rbreak_breakpoints.
3698 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3699 (set_breakpoint_count): Likewise. Clear last_was_multi.
3700 (multi_start, multi_end, last_was_multi): New globals.
3701 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3702 functions.
3703 (struct commands_info): New
3704 (do_map_commands_command): New function.
3705 (commands_command_1): New function.
3706 (commands_command): Use it.
3707 (commands_from_control_command): Likewise.
3708 (do_delete_breakpoint): New function.
3709 (delete_command): Use it.
3710 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3711 (do_map_disable_breakpoint): New function.
3712 (disable_command): Use it.
3713 (do_map_enable_breakpoint): New function.
3714 (enable_command): Use it.
3715 (enable_once_breakpoint): Add argument.
3716 (enable_once_command): Update.
3717 (enable_delete_breakpoint): Add argument.
3718 (enable_delete_command): Update.
3719 (break_command_really): Set last_was_multi when needed.
3720 (check_tracepoint_command): Fix formatting.
3721 (validate_commands_for_breakpoint): New function.
3722 (breakpoint_set_commands): Use it.
3723 (tracepoint_save_command): Update.
3724 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3725 Declare.
3726
3727 2010-03-24 Tom Tromey <tromey@redhat.com>
3728
3729 * breakpoint.h (struct counted_command_line): New struct.
3730 (struct breakpoint) <commands>: Change type.
3731 (struct bpstats) <commands>: Change type.
3732 <commands_left>: New field.
3733 * breakpoint.c (alloc_counted_command_line): New function.
3734 (incref_counted_command_line): Likewise.
3735 (decref_counted_command_line): Likewise.
3736 (do_cleanup_counted_command_line): Likewise.
3737 (make_cleanup_decref_counted_command_line): Likewise.
3738 (breakpoint_set_commands): Use decref_counted_command_line and
3739 alloc_counted_command_line.
3740 (commands_command): Don't error if breakpoint commands are
3741 executing.
3742 (commands_from_control_command): Likewise.
3743 (bpstat_free): Update.
3744 (bpstat_copy): Likewise.
3745 (bpstat_clear_actions): Likewise.
3746 (bpstat_do_actions_1): Likewise.
3747 (bpstat_stop_status): Likewise.
3748 (print_one_breakpoint_location): Likewise.
3749 (delete_breakpoint): Likewise.
3750 (bpstat_alloc): Initialize new field.
3751 (tracepoint_save_command): Update.
3752 * tracepoint.c (encode_actions): Update.
3753 (trace_dump_command): Update.
3754
3755 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3756
3757 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
3758 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
3759 (read_structure_type): For RealView, set TYPE_STUB on structures with
3760 no byte size and no children.
3761 (read_subroutine_type): Mark functions as prototyped by default.
3762 * symtab.c (producer_is_realview): New function.
3763 * symtab.h (expand_line_sal): Fix declaration formatting.
3764 (producer_is_realview): Declare.
3765
3766 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
3767
3768 * arm-tdep.c (skip_prologue_function): New function.
3769 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
3770 (thumb_analyze_prologue): Document return value. Recognize more
3771 Thumb instructions, skippable calls, and some Thumb-2 instructions.
3772 Add debug output.
3773 (arm_skip_prologue): Remove call dummy check. Check the prologue
3774 for non-GNU compilers.
3775 (arm_instruction_changes_pc): New function.
3776 (arm_analyze_prologue): New function, broken out from
3777 arm_scan_prologue. Recognize more ARM instructions and skippable
3778 calls. Update comments. Handle NULL cache. Return the address
3779 of the first unrecognized instruction. Do not skip past other
3780 instructions which change control flow. Add debug output.
3781 (arm_scan_prologue): Use arm_analyze_prologue.
3782 (ARM_PC_32): Delete.
3783 (shifted_reg_val): Simplify ARM_PC_32 check.
3784
3785 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3786
3787 * tracepoint.c (tvariables_info_1): Actually compute
3788 the number of rows in the result.
3789
3790 2010-03-24 Pedro Alves <pedro@codesourcery.com>
3791
3792 * remote.c (crc32): Constify `buf' parameter.
3793 (remote_verify_memory): New, abstracted out from...
3794 (compare_sections_command): ... this. Remove hardcoded target
3795 checks.
3796 (init_remote_ops): Install remote_verify_memory.
3797 * target.c (target_verify_memory): New.
3798 * target.h (struct target_ops) <to_verify_memory>: New field.
3799 (target_verify_memory): Declare.
3800
3801 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3802
3803 Implement -trace-save.
3804
3805 * mi-cmds.h (mi_cmds_trace_save): Declare.
3806 * mi-cmds.c (mi_cmds): Register -trace-save.
3807 * mi/mi-main.c (mi_cmd_trace_save): New.
3808 * remote.c (remote_save_trace_data): Take const parameter.
3809 * target.h (struct target_ops::to_save_trace_data): Take
3810 const parameter.
3811 * target.c (update_current_target): Adjust to the above.
3812 * tracepoint.c (trave_save): New, extracted from
3813 (trace_save_command): ...this.
3814 (tfile_trace_find): Remove message that is unnecessary now
3815 that 'tfind' reports found frame.
3816 * tracepoint.h (trace_save): Declare.
3817
3818 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3819
3820 Implement -trace-find.
3821
3822 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
3823 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
3824 * mi/mi-main.c (mi_cmd_trace_find): New.
3825 * target.h (struct target_ops): Document to_trace_find.
3826 * tracepoint.h (tfind_1): Declare.
3827 * tracepoint.c (finish_tfind_command): Rename to...
3828 (tfind_1): ...this.
3829 * remote.c (remote_trace_find): Return -1 if target say
3830 there's no frame. Improve error diagnostics.
3831
3832 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3833
3834 -trace-define-variable and -trace-list-variables.
3835
3836 * tracepoint.c (create_trace_state_variable): Make
3837 private copy of name, as opposed to assuming the
3838 pointer lives forever.
3839 (tvariables_info_1): New.
3840 (tvariables_info): Use the above.
3841 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
3842 Declare.
3843 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
3844 and -trace-list-variables.
3845 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
3846 (mi_cmd_trace_list_variables): New.
3847 * mi/mi-main.c (mi_cmd_trace_define_variable)
3848 (mi_cmd_trace_list_variables): New.
3849
3850 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3851
3852 Implement -break-passcount.
3853
3854 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
3855 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
3856 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
3857
3858 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3859
3860 -trace-start/-trace-end/-trace-status.
3861
3862 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
3863 and -trace-stop.
3864 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
3865 (mi_cmd_trace_stop): Declare.
3866 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
3867 (mi_cmd_trace_stop): New.
3868 * tracepoint.c (start_tracing): New, extracted from...
3869 (trace_start_command): ...this.
3870 (trace_status_mi): New.
3871 * tracepoint.h (struct trace_status): Document
3872 stopping_tracepoint.
3873 (start_tracing, stop_tracing, trace_status_mi): Declare.
3874
3875 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3876
3877 Implement creating tracepoints with -break-insert.
3878
3879 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
3880 to mean that tracepoint should be created.
3881
3882 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3883
3884 * breakpoint.c (check_no_tracepoint_commands): Use
3885 current spelling of 'teval'.
3886
3887 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
3888
3889 Unify actions and commands
3890
3891 * defs.h (read_command_lines, read_command_lines_1): New
3892 parameters validator and closure.
3893 * tracepoint.h (struct action_line): Remove.
3894 * breakpoint.h (struct breakpoint): Remove the 'actions'
3895 field.
3896 * defs.h (enum command_control_type): New value
3897 while_stepping_control.
3898 (struct command_line): Add comments.
3899 * breakpoint.c (breakoint_is_tracepoint): New.
3900 (breakpoint_set_commands): For tracepoints,
3901 verify the commands are permissible.
3902 (check_tracepoint_commands): New.
3903 (commands_command): Require that each new line is validated using
3904 check_tracepoint_command, if we set commands for a tracepoint.
3905 (create_tracepoint_from_upload): Likewise.
3906 (print_one_breakpoint_location): Remove the code to print
3907 actions specifically.
3908 (tracepoint_save_command): Relay to print_command_lines.
3909 * cli/cli-script.c (process_next_line): New parameters validator
3910 and closure. Handle 'while-stepping'. Call validator if not null.
3911 (read_command_lines, read_command_lines1): Likewise.
3912 (recurse_read_control_structure): New parameters validator and
3913 closure. Handle while_stepping_control.
3914 (print_command_lines): Handle while-stepping.
3915 (get_command_line, define_command, document_command): Adjust.
3916 * remote.c (remote_download_tracepoint): Adjust.
3917 * tracepoint.c (make_cleanup_free_actions, read_actions)
3918 (free_actions, do_free_actions_cleanup): Remove.
3919 (trace_actions_command): Use read_command_lines.
3920 (validate_actionline): Use error in one place.
3921 (encode_actions_1): New, extracted from...
3922 (encode_actions): ...this. Also use cleanups for exception
3923 safety.
3924 (trace_dump_command): Adjust.
3925 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
3926 it's tracepoint.
3927
3928 2010-03-23 Mike Frysinger <vapier@gentoo.org>
3929
3930 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
3931
3932 2010-03-22 Stan Shebs <stan@codesourcery.com>
3933
3934 * value.c (value_static_field): Be lazy about the field's value.
3935
3936 2010-03-22 Reid Kleckner <reid@kleckner.net>
3937
3938 PR gdb/11094
3939 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
3940 bp_jit_event.
3941 (disable_breakpoints_in_shlibs): Likewise.
3942
3943 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
3944
3945 * dwarf2read.c (partial_die_parent_scope): Work around buggy
3946 GCC 4.1 debug info generation (GCC PR c++/28460).
3947 (determine_prefix): Likewise.
3948
3949 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
3950
3951 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
3952 get_current_arch.
3953 * tui/tui-layout.c (extract_display_start_addr): Likewise.
3954
3955 2010-03-19 Stan Shebs <stan@codesourcery.com>
3956
3957 * ax-gdb.c (gen_fetch): Handle bool.
3958 (gen_usual_unary): Ditto.
3959 (gen_cast): Ditto.
3960 (gen_equal): New function.
3961 (gen_less): New function.
3962 (gen_expr_binop_rest): Call them, also return integer type from
3963 logical operations.
3964 (gen_expr): Ditto.
3965
3966 2010-03-19 Tom Tromey <tromey@redhat.com>
3967
3968 * jv-lang.c (jv_dynamics_objfile_data_key)
3969 (jv_type_objfile_data_key): New globals.
3970 (class_symtab): Move earlier.
3971 (jv_per_objfile_free): New function.
3972 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
3973 parameter.
3974 Remove ancient #if 1.
3975 (add_class_symbol): Remove redundant declaration.
3976 (java_lookup_class): Use alloc_type, not alloc_type_arch.
3977 (java_link_class_type): Mark as static. Update.
3978 (jv_clear_object_type): New function.
3979 (set_java_object_type): Likewise.
3980 (get_java_object_type): Use set_java_object_type.
3981 (is_object_type): Likewise.
3982 (_initialize_java_language): Register new objfile keys.
3983 (get_java_class_symtab): Add 'gdbarch' parameter.
3984 (add_class_symtab_symbol): Update.
3985 (type_from_class): Update.
3986
3987 2010-03-19 Stan Shebs <stan@codesourcery.com>
3988
3989 * ax-general.c (ax_const_l): Fix a sizing bug.
3990
3991 2010-03-18 Joel Brobecker <brobecker@adacore.com>
3992
3993 GDB 7.1 released.
3994
3995 2010-03-18 Stan Shebs <stan@codesourcery.com>
3996 Pedro Alves <pedro@codesourcery.com>
3997
3998 * target.h (struct target_ops): New method
3999 to_set_circular_trace_buffer.
4000 (target_set_circular_trace_buffer): New macro.
4001 * target.c (update_current_target): Add
4002 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4003 default behavior.
4004 * remote.c (remote_set_circular_trace_buffer): New function.
4005 (init_remote_ops): Add it to vector.
4006 * tracepoint.h (struct trace_status): New field traceframes_created,
4007 change buffer_size and buffer_free to int.
4008 * tracepoint.c (circular_trace_buffer): New global.
4009 (start_tracing): Send values of disconnected tracing and circular
4010 trace buffer settings.
4011 (set_circular_trace_buffer): New function.
4012 (parse_trace_state): Handle total space and frames created.
4013 (trace_status_command): Display total space and total frames
4014 created.
4015 (trace_save): Write out new status values.
4016 (parse_trace_status): Set traceframe_count, traceframes_created,
4017 buffer_free and buffer_size to -1 by default.
4018 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4019 * NEWS: Mention the circular trace buffer option.
4020
4021 2010-03-18 Tom Tromey <tromey@redhat.com>
4022
4023 * infcmd.c (finish_command_continuation): Wrap print_return_value
4024 in TRY_CATCH.
4025
4026 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4027
4028 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4029 DIE has a name before creating the associated partial symbol.
4030 (read_func_scope): Emit a complaint if the subprogram does not
4031 have a name or when we can't extract the subprogram PC bounds.
4032
4033 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4034
4035 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4036 instead of selected frame architecture.
4037
4038 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4039
4040 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4041 a valid selected thread, and that it is not running.
4042 (advance_command): Ditto.
4043 (finish_command): Ditto.
4044
4045 2010-03-17 Stan Shebs <stan@codesourcery.com>
4046
4047 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4048
4049 * infcall.c: Include tracepoint.h.
4050 (call_function_by_hand): Disallow calls in tfind mode.
4051 * infcmd.c: Include tracepoint.h.
4052 (ensure_not_tfind_mode): New function.
4053 (continue_1): Call it.
4054 (step_1) Ditto.
4055 (jump_command): Ditto.
4056 (signal_command): Ditto.
4057 (advance_command): Ditto.
4058 (until_command): Ditto.
4059 (finish_command): Ditto.
4060 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4061
4062 * ax-gdb.h (struct axs_value): New field optimized_out.
4063 (gen_trace_for_var): Add gdbarch argument.
4064 * ax-gdb.c (gen_trace_static_fields): New function.
4065 (gen_traced_pop): Call it, add gdbarch argument.
4066 (gen_trace_for_expr): Update call to it.
4067 (gen_trace_for_var): Ditto, and report optimized-out variables.
4068 (gen_struct_ref_recursive): Check for optimized-out value.
4069 (gen_struct_elt_for_reference): Ditto.
4070 (gen_static_field): Pass gdbarch instead of expression, assume
4071 optimization if field not found.
4072 (gen_var_ref): Set the optimized_out flag.
4073 (gen_expr): Error on optimized-out variable.
4074 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4075 expressions, skip optimized-out variables with computed locations.
4076 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4077 erroring out if location expression missing.
4078 (loclist_tracepoint_var_ref): Don't error out here.
4079
4080 2010-03-17 Tom Tromey <tromey@redhat.com>
4081
4082 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4083 DWARF data is available.
4084
4085 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4086
4087 * symfile.c (generic_load): Reset breakpoints after loading.
4088
4089 2010-03-17 Tom Tromey <tromey@redhat.com>
4090
4091 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4092
4093 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4094
4095 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4096 create_breakpoint call, adjust the parameters.
4097
4098 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4099 Chandru <chandru@in.ibm.com>
4100
4101 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4102 * valarith.c (value_subscripted_rvalue): Suppress error if
4103 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4104
4105 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4106
4107 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4108
4109 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4110
4111 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4112 before doing the associated thread switch.
4113
4114 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4115
4116 * MAINTAINERS: Update my email address.
4117
4118 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4119
4120 Simplify MI breakpoint setting.
4121
4122 * breakpoint.c (break_command_really): Make nonstatic and
4123 rename to...
4124 (create_breakpoint): ...this. Rename prior function by this name
4125 to...
4126 (create_breakpoint_sal): ...this.
4127 (create_breakpoints): Rename to...
4128 (create_breakpoints_sal): ...this.
4129 (set_breakpoint): Remove.
4130 * breakpoint.h: Adjust to above changes.
4131 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4132
4133 2010-03-15 Stan Shebs <stan@codesourcery.com>
4134
4135 * ax-gdb.c: Include cp-support.h.
4136 (find_field): Remove.
4137 (gen_primitive_field): New function.
4138 (gen_struct_ref_recursive): New function.
4139 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4140 of find_field.
4141 (gen_static_field): New function.
4142 (gen_struct_elt_for_reference): New.
4143 (gen_namespace_elt): New.
4144 (gen_maybe_namespace_elt): New.
4145 (gen_aggregate_elt_ref): New.
4146 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4147
4148 2010-03-15 Tom Tromey <tromey@redhat.com>
4149
4150 * dwarf2read.c (die_needs_namespace): Also return 0 for
4151 DW_TAG_subprogram.
4152
4153 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4154
4155 PR c++/7936:
4156 * cp-support.h: Added char *declaration element to using_direct
4157 data struct.
4158 (cp_add_using): Added char *declaration argument.
4159 (cp_add_using_directive): Ditto.
4160 (cp_lookup_symbol_imports): made extern.
4161 * cp-namespace.c: Updated with the above changes.
4162 * dwarf2read.c (read_import_statement): Ditto.
4163 (read_namespace): Ditto.
4164 (read_import_statement): Support import declarations.
4165 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4166 declarations.
4167 Added support for 'declaration_only' search.
4168 (cp_lookup_symbol_namespace): Attempt to search for the name as
4169 is before consideration of imports.
4170 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4171 search at every block level search.
4172 Now takes language argument.
4173 (lookup_symbol_aux): Updated.
4174
4175 2010-03-15 Tom Tromey <tromey@redhat.com>
4176
4177 * c-exp.y (name_not_typename): Add 'operator' clause.
4178
4179 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4180
4181 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4182 * configure: Regenerate.
4183
4184 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4185
4186 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4187 and ".sdynbss". Update the comment.
4188
4189 2010-03-15 Jie Zhang <jie@codesourcery.com>
4190
4191 * MAINTAINERS: Update my email address.
4192
4193 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4194
4195 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4196
4197 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4198
4199 * charset.c [USE_WIN32API]: Include <windows.h>.
4200 (_initialize_charset): Correct type of w32_host_default_charset.
4201
4202 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4203
4204 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4205
4206 2010-03-12 Tom Tromey <tromey@redhat.com>
4207
4208 PR c++/9708:
4209 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4210 in a lexical block does not need a namespace.
4211 (new_symbol) <DW_TAG_variable>: Put extern variables on
4212 list_in_scope in all cases.
4213
4214 2010-03-12 Stan Shebs <stan@codesourcery.com>
4215
4216 * ax-gdb.c (gen_expr): Add shift expressions.
4217 (gen_expr_binop_rest): Ditto.
4218
4219 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4220
4221 * buildsym.c (finish_block): Reset using_directives pointer
4222 after block initialization.
4223
4224 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4225
4226 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4227 * i386-tdep.c (i386_word_names): Likewise.
4228
4229 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4230
4231 * target.c (memory_xfer_partial): Don't use the stack cache if
4232 inspecting trace frames.
4233 * tracepoint.c (finish_tfind_command): Invalidate the target
4234 dcache.
4235
4236 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4237
4238 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4239 for the PIC displacement, print also the displacement value.
4240 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4241
4242 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4243
4244 * remote-mips.c (close_ports, mips_initialize_cleanups)
4245 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4246 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4247 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4248 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4249 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4250 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4251 comments describing each of these functions.
4252 (mips_enter_debug, mips_exit_debug, common_open)
4253 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4254 blank line after the comment describing the function.
4255
4256 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4257
4258 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4259 parameter displacementp. Update comment.
4260 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4261 element exists. Return if svr4_exec_displacement was not successful.
4262 Update comment.
4263
4264 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4265 Daniel Jacobowitz <dan@codesourcery.com>
4266
4267 * solib-svr4.c (read_program_header): Support type == -1 to read
4268 all program headers.
4269 (read_program_headers_from_bfd): New function.
4270 (svr4_static_exec_displacement): Remove and move the comment ...
4271 (svr4_exec_displacement): ... here. Remove variable found. New
4272 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4273 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4274 targets using read_program_headers_from_bfd. Remove the call of
4275 svr4_static_exec_displacement.
4276
4277 2010-03-10 Tom Tromey <tromey@redhat.com>
4278
4279 * dwarf2read.c (struct pubnames_header): Remove.
4280 (_PUBNAMES_HEADER): Remove.
4281 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4282 (struct aranges_header): Remove.
4283 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4284 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4285 (PUBNAMES_SECTION): Remove.
4286 (ARANGES_SECTION): Remove.
4287 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4288 (dwarf2_build_psymtabs): Remove dead code.
4289 (dwarf2_build_psymtabs_easy): Remove.
4290
4291 2010-03-10 Tom Tromey <tromey@redhat.com>
4292
4293 * elfread.c (elf_symfile_read): Don't call
4294 dwarf2_build_frame_info.
4295 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4296 (struct dwarf2_per_objfile) <objfile>: New field.
4297 (dwarf2_has_info): Now idempotent. Set objfile field.
4298 (dwarf2_read_section): Check and set readin field. Call
4299 posix_madvise.
4300 (dwarf2_build_psymtabs): Don't read all sections.
4301 (read_type_comp_unit_head): Read types section.
4302 (create_debug_types_hash_table): Likewise.
4303 (init_cu_die_reader): Add asserts.
4304 (process_type_comp_unit): Add assert.
4305 (dwarf2_build_psymtabs_hard): Read info section.
4306 (load_partial_comp_unit): Add assert.
4307 (create_all_comp_units): Read info section.
4308 (load_full_comp_unit): Likewise.
4309 (dwarf2_ranges_read): Read ranges section.
4310 (dwarf2_record_block_ranges): Add assert.
4311 (dwarf2_read_abbrevs): Read abbrev section.
4312 (read_indirect_string): Read str section.
4313 (dwarf_decode_line_header): Read line section.
4314 (read_signatured_type_at_offset): Read types section.
4315 (dwarf_decode_macros): Read macinfo section.
4316 (dwarf2_symbol_mark_computed): Read loc section.
4317 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4318 dwarf2_build_frame_info.
4319 (dwarf2_build_frame_info): Unconditionally set
4320 dwarf2_frame_objfile_data on the objfile.
4321 * configure.ac: Check for posix_madvise.
4322 * config.in, configure: Rebuild.
4323
4324 2010-03-10 Tom Tromey <tromey@redhat.com>
4325
4326 * xcoffread.c (xcoff_start_psymtab): Update.
4327 (xcoff_end_psymtab): Update.
4328 * psymtab.c (allocate_psymtab): Remove dead code.
4329 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4330 void*.
4331 * mdebugread.c (parse_partial_symbols): Update.
4332 (new_psymtab): Likewise.
4333 * dwarf2read.c (process_psymtab_comp_unit): Update.
4334 (psymtab_to_symtab_1): Update.
4335 * dbxread.c (start_psymtab): Update.
4336 (end_psymtab): Likewise.
4337
4338 2010-03-10 Tom Tromey <tromey@redhat.com>
4339
4340 * xcoffread.c: Include psymtab.h.
4341 (xcoff_sym_fns): Update.
4342 * symtab.h (struct partial_symbol): Remove.
4343 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4344 (struct partial_symtab): Remove.
4345 (PSYMTAB_TO_SYMTAB): Remove.
4346 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4347 (find_pc_sect_psymtab): Remove.
4348 (find_pc_sect_symtab_via_partial): Declare.
4349 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4350 (find_main_psymtab): Remove.
4351 (find_main_filename): Declare.
4352 (fixup_psymbol_section): Remove.
4353 (fixup_section): Declare.
4354 * symtab.c: Include psymtab.h.
4355 (lookup_symtab): Use lookup_symtab method.
4356 (lookup_partial_symtab): Remove.
4357 (find_pc_sect_psymtab_closer): Remove.
4358 (find_pc_sect_psymtab): Remove.
4359 (find_pc_sect_symtab_via_partial): New function.
4360 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4361 (fixup_section): No longer static.
4362 (fixup_psymbol_section): Remove.
4363 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4364 (lookup_global_symbol_from_objfile): Likewise.
4365 (lookup_symbol_aux_psymtabs): Remove.
4366 (lookup_symbol_aux_quick): New function.
4367 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4368 (lookup_partial_symbol): Remove.
4369 (basic_lookup_transparent_type_quick): New function.
4370 (basic_lookup_transparent_type): Use it.
4371 (find_main_psymtab): Remove.
4372 (find_main_filename): New function.
4373 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4374 (find_line_symtab): Use expand_symtabs_with_filename method.
4375 (output_partial_symbol_filename): New function.
4376 (sources_info): Use map_partial_symbol_filenames.
4377 (struct search_symbols_data): New type.
4378 (search_symbols_file_matches): New function.
4379 (search_symbols_name_matches): Likewise.
4380 (search_symbols): Use expand_symtabs_matching method.
4381 (struct add_name_data): Rename from add_macro_name_data.
4382 (add_macro_name): Update.
4383 (add_partial_symbol_name): New function.
4384 (default_make_symbol_completion_list): Use
4385 map_partial_symbol_names.
4386 (struct add_partial_symbol_name): New type.
4387 (maybe_add_partial_symtab_filename): New function.
4388 (make_source_files_completion_list): Use
4389 map_partial_symbol_filenames.
4390 (expand_line_sal): Use expand_symtabs_with_filename method.
4391 * symmisc.c: Include psymtab.h.
4392 (print_objfile_statistics): Use print_stats method.
4393 (dump_objfile): Use dump method.
4394 (dump_psymtab, maintenance_print_psymbols)
4395 (maintenance_info_psymtabs, maintenance_check_symtabs)
4396 (extend_psymbol_list): Remove.
4397 * symfile.h (struct quick_symbol_functions): New struct.
4398 (struct sym_fns) <qf>: New field.
4399 (sort_pst_symbols): Remove.
4400 (increment_reading_symtab): Declare.
4401 * symfile.c: Include psymtab.h.
4402 (compare_psymbols, sort_pst_symbols): Remove.
4403 (psymtab_to_symtab): Remove.
4404 (increment_reading_symtab): New function.
4405 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4406 method.
4407 (set_initial_language): Use find_main_filename.
4408 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4409 (free_named_symtabs): Remove unused code.
4410 (start_psymtab_common, add_psymbol_to_bcache)
4411 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4412 Remove.
4413 * stack.c: Include psymtab.h, symfile.h.
4414 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4415 * source.h (psymtab_to_fullname): Don't declare.
4416 * source.c: Include psymtab.h.
4417 (select_source_symtab): Use find_last_source_symtab method.
4418 (forget_cached_source_info): Use forget_cached_source_info
4419 method.
4420 (find_and_open_source): No longer static.
4421 (psymtab_to_fullname): Remove.
4422 * somread.c: Include psymtab.h.
4423 (som_sym_fns): Update.
4424 * psympriv.h: New file.
4425 * psymtab.h: New file.
4426 * psymtab.c: New file.
4427 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4428 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4429 * objfiles.c: Include psymtab.h.
4430 (objfile_relocate1): Use relocate method.
4431 (objfile_has_partial_symbols): Use has_symbols method.
4432 * mipsread.c: Include psymtab.h.
4433 (ecoff_sym_fns): Update.
4434 * mi/mi-cmd-file.c: Include psymtab.h.
4435 (print_partial_file_name): New function.
4436 (mi_cmd_file_list_exec_source_files): Use
4437 map_partial_symbol_filenames.
4438 * mdebugread.c: Include psympriv.h.
4439 * machoread.c: Include psympriv.h.
4440 (macho_sym_fns): Update.
4441 * m2-exp.y (yylex): Use lookup_symtab.
4442 * elfread.c: Include psympriv.h.
4443 (elf_sym_fns): Update.
4444 * dwarf2read.c: Include psympriv.h.
4445 * dbxread.c: Include psympriv.h.
4446 (aout_sym_fns): Update.
4447 * cp-support.c: Include psymtab.h.
4448 (read_in_psymtabs): Remove.
4449 (make_symbol_overload_list_qualified): Use
4450 expand_symtabs_for_function method.
4451 * coffread.c: Include psympriv.h.
4452 (coff_sym_fns): Update.
4453 * blockframe.c: Include psymtab.h.
4454 (find_pc_partial_function): Use find_pc_sect_symtab method.
4455 * ada-lang.h (ada_update_initial_language): Update.
4456 * ada-lang.c: Include psymtab.h.
4457 (ada_update_initial_language): Remove 'main_pst' argument.
4458 (ada_lookup_partial_symbol): Remove.
4459 (struct ada_psym_data): New type.
4460 (ada_add_psyms): New function.
4461 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4462 (struct add_partial_datum): New type.
4463 (ada_add_partial_symbol_completions): New function.
4464 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4465 (ada_exception_support_info_sniffer): Update.
4466 * Makefile.in (SFILES): Add psymtab.c.
4467 (COMMON_OBS): Add psymtab.o.
4468 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4469
4470 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4471
4472 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4473
4474 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4475
4476 PR C++/11236:
4477 * cp-namespace.c (cp_add_using): Deleted.
4478 (cp_add_using_directive): Use obstack allocations.
4479 Merged the function cp_add_using into this one.
4480 Added 'struct obstack *' argument.
4481 (cp_scan_for_anonymous_namespaces): Updated.
4482 * cp-support.h: Updated.
4483 * dwarf2read.c (read_import_statement): Updated.
4484 (read_namespace): Updated.
4485
4486 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4487
4488 * windows-nat.c (cygwin_conv_path): Remove old macro.
4489
4490 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4491
4492 * breakpoint.c (condition_command): Handle watchpoint conditions.
4493 (is_hardware_watchpoint): Add comment.
4494 (is_watchpoint): New.
4495 (update_watchpoint): Don't reparse the watchpoint's condition
4496 unless necessary.
4497 (WP_IGNORE): New.
4498 (watchpoint_check): Use it.
4499 (bpstat_check_watchpoint): Handle it.
4500 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4501 conditions in a frame where it makes sense.
4502 (watch_command_1): Store the innermost block of the condition
4503 expression.
4504 (delete_breakpoint): Delete the watchpoint condition expression.
4505 * breakpoint.h (struct bp_location) <cond>: Update comment.
4506 (struct breakpoint): New field `cond_exp_valid_block'.
4507
4508 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4509
4510 Adjust handling of Ada DIEs after dwarf2_physname patch.
4511 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4512
4513 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4514 Pierre Muller <muller@ics.u-strasbg.fr>
4515
4516 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4517 from/to posix/win32.
4518 (windows_make_so): Use non-Cygwin 1.7 specific function.
4519 (windows_create_inferior): Make sure that cygallargs points to
4520 original args in non Cygwin 1.7. case.
4521
4522 2010-03-09 Michael Snyder <msnyder@vmware.com>
4523
4524 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4525 after target_read_memory to get host byte order.
4526 (i386_process_record): Ditto.
4527
4528 2010-03-09 Keith Seitz <keiths@redhat.com>
4529
4530 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4531 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4532 print out const or volatile qualifiers, too.
4533 (c_type_print_args): Add parameters show_artificial and language.
4534 Skip artificial parameters when requested.
4535 Use the appropriate language printer.
4536 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4537 parameters and pass language_c.
4538 * dwarf2read.c (die_list): New file global.
4539 (struct partial_die_info): Update comments for name field.
4540 (pdi_needs_namespace): Renamed to ...
4541 (die_needs_namespace): ... this. Rewrite.
4542 (dwarf2_linkage_name): Remove.
4543 (add_partial_symbol): Do not predicate the call to
4544 partial_die_full_name based on pdi_needs_namespace.
4545 Remove call to cp_check_possible_namespace_symbols and associated
4546 outdated comments.
4547 (guess_structure_name): Do not inspect child subprogram DIEs.
4548 (dwarf2_fullname): Update comments.
4549 Use die_needs_namespace to assist in computing the name.
4550 (read_func_scope): Use dwarf2_name to get the DIE's name.
4551 Use dwarf2_physname to get the "linkage name" of the DIE.
4552 (dwarf2_add_member_field): Use dwarf2_physname instead of
4553 dwarf2_linkage_name.
4554 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4555 (determine_class): Remove.
4556 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4557 except Ada.
4558 (new_symbol): Unconditionally call dwarf2_name.
4559 Compute the "linkage name" using dwarf2_physname.
4560 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4561 When determining to scan for anonymous C++ namespaces, ignore
4562 the linkage name.
4563 (dwarf2_physname): New function.
4564 (dwarf2_full_name): Move content to new function and call
4565 that.
4566 (dwarf2_compute_name): "New" function.
4567 (_initialize_dwarf2_read): Initialize die_list.
4568 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4569 physname.
4570 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4571 without a demangled name.
4572 Print out type information for non-virtual methods.
4573 * linespec.c (decode_line_1): Force ANY string using "::" (or
4574 "." for java) to use decode_compound, and clean up any stray quoting.
4575 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4576 (decode_compound): Stop consuming at an open parenthesis.
4577 Keep template parameters.
4578 Keep any overload information.
4579 Keep keywords like "const".
4580 Remove paren_pointer.
4581 Move is_quoted check from set_flags to here.
4582 Remove #if 0 code from 2000. Ten years is long enough.
4583 (find_method): Before comparing symbol names, canonicalize the string
4584 from the user.
4585 If a specific overload is requested, find it. Otherwise throw an error.
4586 (find_method_overload_end): New function.
4587 (set_flags): Remove.
4588 (decode_compound): Assume that parentheses are matched.
4589 It's a lot easier.
4590 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4591 to cplus_demangle.
4592 * linespec.c (decode_line_1): Keep important keywords like
4593 "const" and "volatile".
4594 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4595 * typeprint.h (c_type_print_args): Add declaration.
4596 * ui-file.c (do_ui_file_obsavestring): New function.
4597 (ui_file_obsavestring): New function.
4598 * ui-file.h (ui_file_obsavestring): Add declaration.
4599 * valops.c (find_overload_match): Resolve the object to
4600 a non-pointer type.
4601 If the object is a data member, search the object for the member
4602 and return with staticp set.
4603 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4604 Do not attempt to extract a function name from non-function types.
4605 If the extracted function name and the original name are the same,
4606 we don't have a C++ method.
4607
4608 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4609 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4610
4611 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4612 and arguments from symbol lookups.
4613 * ax-gdb.c (gen_expr): Likewise.
4614 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4615 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4616 lookup_possible_namespace_symbol): Likewise.
4617 * cp-support.c (read_in_psymtabs): Likewise.
4618 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4619 * language.h (la_lookup_symbol_nonlocal): Likewise.
4620 * scm-valprint.c (scm_inferior_print): Likewise.
4621 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4622 * solib-svr.c (elf_lookup_lib): Likewise.
4623 * solib.c (show_auto_solib_add): Likewise.
4624 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4625 * symmisc.c (maintenance_check_symtabs): Likewise.
4626 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4627 lookup_symbol_aux_local, lookup_symbol_aux_block,
4628 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4629 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4630 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4631 basic_lookup_transparent_type, find_main_psymtab,
4632 lookup_block_symbol): Likewise.
4633 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4634 lookup_symbol_global, lookup_symbol_aux_block,
4635 lookup_symbol_partial_symbol, lookup_block_symbol,
4636 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4637
4638 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4639
4640 * python/python-internal.h: Include symtab.h.
4641
4642 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4643 Pierre Muller <muller@ics.u-strasbg.fr>
4644
4645 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4646 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4647 indentation.
4648
4649 2010-03-08 Tom Tromey <tromey@redhat.com>
4650
4651 * breakpoint.c (breakpoint_1): Add "QUIT".
4652
4653 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4654 Pedro Alves <pedro@codesourcery.com>
4655
4656 * solib.c (solib_find): Replace extension if
4657 solib_symbols_extension is set in the target gdbarch.
4658 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4659 solib_symbols_extension to "sym".
4660 * gdbarch.sh (solib_symbols_extension): New variable.
4661 (pstring): New function.
4662 * gdbarch.h, gdbarch.c: Regenerate.
4663
4664 2010-03-08 Tom Tromey <tromey@redhat.com>
4665
4666 PR cli/9591:
4667 * NEWS: Update.
4668 * utils.c: Include main.h.
4669 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4670 (defaulted_query): Use default answer if `batch_flag'.
4671 * main.h (batch_flag): Declare.
4672 * main.c (batch_flag): New global.
4673 (captured_main): Remove 'batch'. Update.
4674
4675 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4676
4677 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4678 and Kevin Buettner:
4679
4680 * remote-mips.c (rockhopper_ops): New target_ops struct.
4681 (MON_ROCKHOPPER): New mips_monitor_type.
4682 (read_hex_value): New function.
4683 (mips_request): Send 8-byte values with a 'T' packet. Read the
4684 packet argument as a string and use read_hex_value to parse it.
4685 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4686 (rockhopper_open): New function.
4687 (mips_wait): Read the PC, FP and SP fields as strings. Use
4688 read_hex_value to parse them and mips_set_register to commit them.
4689 (mips_set_register): New function.
4690 (mips_fetch_registers): Do not cast register value to "unsigned"
4691 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4692 (mips_store_registers): Use a 'T' packet to set registers when
4693 using MON_ROCKHOPPER.
4694 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4695 and expect the total to be printed before the entry address.
4696 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4697
4698 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4699
4700 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4701 Change return value to int. Store value fetched in location
4702 addressed by `val'. Use function's return value as success
4703 or failure indicator. Adjust all callers.
4704
4705 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
4706
4707 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4708
4709 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4710 Hui Zhu <teawater@gmail.com>
4711
4712 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4713 tmp_to_stopped_data_address.
4714 (record_open): Reset tmp_to_stopped_by_watchpoint and
4715 tmp_to_stopped_data_address.
4716 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4717 to_stopped_data_address.
4718
4719 2010-03-08 Hui Zhu <teawater@gmail.com>
4720
4721 * i386-tdep.c (i386_process_record): Initialize regnum.
4722
4723 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4724
4725 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4726 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4727
4728 2010-03-08 Joel Brobecker <brobecker@adacore.com>
4729
4730 Memory error when reading wrong core file.
4731 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4732 errors while reading the inferior memory, and return zero if
4733 an exception was raised.
4734
4735 2010-03-07 Michael Snyder <msnyder@vmware.com>
4736
4737 * record.c (record_restore): Rename tmpu8 to rectype.
4738
4739 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4740 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4741
4742 (i386_record_push): Rename local tmpulongest to addr.
4743
4744 (i386_process_record): Rename local tmpulongest to addr.
4745
4746 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4747 addr64.
4748
4749 Rename local variable tmpu8 to opcode8 and regnum.
4750
4751 2010-03-07 Joel Brobecker <brobecker@adacore.com>
4752
4753 * remote.c (remote_get_ada_task_ptid): New function.
4754 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
4755
4756 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
4757
4758 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
4759 block. Define helper macros to reduce ifdefs in code.
4760 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
4761 size. Call unadorned GetModuleFileNameEx rather than
4762 GetModuleFileNameEx*.
4763 (windows_make_so): Use __PMAX to denote maximum buffer size and
4764 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
4765 appropriate.
4766 (get_image_name): Use __PMAX to denote maximum buffer size.
4767 (handle_load_dll): Likewise.
4768 (windows_pid_to_exec_file): Likewise.
4769 (windows_create_inferior): Add many accommodations for older Cygwin and
4770 non-Cygwin.
4771 (bad_GetModuleFileNameExW): Control inclusion of this function based on
4772 __USEWIDE conditional.
4773 (bad_GetModuleFileNameExA): Likewise.
4774 (_initialize_loadable): Just use real function names without the dyn_
4775 part since they are defined earlier.
4776
4777 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
4778 Tom Tromey <tromey@redhat.com>
4779
4780 * utils.c (host_char_to_target): Add 'gdbarch' argument.
4781 (parse_escape): Likewise.
4782 * python/py-utils.c (unicode_to_target_string): Update.
4783 (unicode_to_target_python_string): Update.
4784 (target_string_to_unicode): Update.
4785 * printcmd.c (printf_command): Update.
4786 * p-exp.y (yylex): Update.
4787 * objc-exp.y (yylex): Update.
4788 * mi/mi-parse.c: Include charset.h.
4789 (mi_parse_escape): New function.
4790 (mi_parse_argv): Use it.
4791 * jv-exp.y (yylex): Update.
4792 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
4793 function.
4794 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
4795 * gdbarch.sh (auto_charset, auto_wide_charset): New.
4796 * gdbarch.c: Rebuild.
4797 * gdbarch.h: Rebuild.
4798 * defs.h (parse_escape): Update.
4799 * cli/cli-setshow.c: Include arch-utils.h.
4800 (do_setshow_command): Update.
4801 * cli/cli-cmds.c (echo_command): Update.
4802 * charset.h (target_charset, target_wide_charset): Update.
4803 * charset.c: Include arch-utils.h.
4804 (target_charset_name): Default to "auto".
4805 (target_wide_charset_name): Likewise.
4806 (show_target_charset_name): Handle "auto".
4807 (show_target_wide_charset_name): Likewise.
4808 (be_le_arch): New global.
4809 (set_be_le_names): Add 'gdbarch' argument.
4810 (validate): Likewise. Don't call set_be_le_names.
4811 (set_charset_sfunc, set_host_charset_sfunc)
4812 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
4813 Update.
4814 (target_charset): Add 'gdbarch' argument.
4815 (target_wide_charset): Likewise. Remove 'byte_order' argument.
4816 (auto_target_charset_name): New global.
4817 (default_auto_charset, default_auto_wide_charset): New functions.
4818 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
4819 for target charsets. Copy result of nl_langinfo. Use GetACP if
4820 USE_WIN32API.
4821 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
4822 remove 'byte_order' argument. Update.
4823 (classify_type): Likewise.
4824 (c_emit_char): Update.
4825 (c_printchar): Update.
4826 (c_printstr): Update.
4827 (c_get_string): Update.
4828 (evaluate_subexp_c): Update.
4829 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
4830 Declare.
4831 * python/python.c (gdbpy_target_charset): New function.
4832 (gdbpy_target_wide_charset): Likewise.
4833 (GdbMethods): Update.
4834 * NEWS: Update.
4835
4836 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4837
4838 * symfile.c (build_section_addr_info_from_objfile): Do not mask
4839 off high address bits.
4840
4841 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
4842
4843 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
4844 address as UnsignedLongLong, not LongLong.
4845
4846 2010-03-05 Kevin Buettner <kevinb@redhat.com>
4847 Pedro Alves <pedro@codesourcery.com>
4848
4849 * remote-mips.c (gdbthread.h): Include.
4850 (remote_mips_ptid): Declare.
4851 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
4852 (common_open): Set inferior_ptid, add it as an inferior, and
4853 as a thread too. Delete FIXME comment regarding start_remote().
4854 (mips_close): Invoke generic_mourn_inferior().
4855 (mips_kill): Make sure that target_mourn_inferior is invoked.
4856 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
4857 it's now invoked from mips_close().
4858 (mips_load): Don't null out inferior_ptid. Don't call
4859 clear_symtab_users().
4860 (mips_thread_alive, mips_pid_to_str): New functions.
4861 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
4862 to_thread_alive and to_pid_to_str operations.
4863
4864 2010-03-04 Tom Tromey <tromey@redhat.com>
4865
4866 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
4867 in DWARF 3 and later.
4868 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
4869
4870 2010-03-04 Keith Seitz <keiths@redhat.com>
4871
4872 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
4873 If the filename portion of the linespec was quoted, recheck the
4874 remainder for additional quoting.
4875 (locate_first_half): Skip over completer chars, too.
4876
4877 2010-03-04 Tom Tromey <tromey@redhat.com>
4878
4879 * printcmd.c (printf_command): Pass dummy argument to
4880 printf_filtered.
4881
4882 2010-03-04 Doug Evans <dje@google.com>
4883
4884 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
4885 unwound_fp.
4886
4887 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
4888
4889 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4890
4891 * breakpoint.c (update_watchpoint): Create a sentinel location if
4892 the software watchpoint isn't watching any memory.
4893 (breakpoint_address_bits): Skip dummy software watchpoint locations.
4894
4895 2010-03-04 Pedro Alves <pedro@codesourcery.com>
4896
4897 * utils.c (fputs_maybe_filtered): Check if there's already a top
4898 level interpreter before dereferencing it. If there isn't one,
4899 don't paginate either.
4900
4901 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4902
4903 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
4904 the state right when single stepping.
4905 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
4906 Get the next PC along with the instruction state.
4907 (thumb_get_next_pc): Remove.
4908 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
4909
4910 2010-03-04 Hui Zhu <teawater@gmail.com>
4911
4912 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
4913
4914 2010-03-03 Pedro Alves <pedro@codesourcery.com>
4915
4916 * utils.c (fputs_maybe_filtered): Always disable pagination if the
4917 top level interpreter is MI.
4918
4919 2010-03-03 Stan Shebs <stan@codesourcery.com>
4920
4921 * remote.c (remote_download_tracepoint): Iterate over locations.
4922 * tracepoint.c (validate_actionline): Ditto.
4923 (encode_actions): Add location argument.
4924 (trace_dump_command): Check all locations to see if stepping
4925 frame.
4926
4927 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
4928 Eli Zaretskii <eliz@gnu.org>
4929
4930 * NEWS: Add X86 general purpose registers section.
4931
4932 2010-03-03 Tom Tromey <tromey@redhat.com>
4933
4934 PR mi/11098:
4935 * varobj.c (install_new_value): Handle case where new print_value
4936 is NULL.
4937
4938 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
4939
4940 PR gdb/11345:
4941 * printcmd.c (printf_command): Print end of format string using
4942 printf_filtered.
4943
4944 2010-03-02 Tom Tromey <tromey@redhat.com>
4945
4946 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
4947 * defs.h (read_command_lines_1): Add missing 'void'.
4948 * cli/cli-script.c (recurse_read_control_structure): Add missing
4949 'void'.
4950 (read_next_line): Likewise.
4951 (read_command_lines_1): Likewise.
4952
4953 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4954
4955 * spu-tdep.c (spu_analyze_prologue): Track instruction to
4956 store backchain as part of prologue.
4957
4958 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4959
4960 * progspace.c (update_address_spaces): Update inferior address spaces
4961 also.
4962
4963 2010-03-02 Doug Evans <dje@google.com>
4964
4965 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
4966 lowpc,highpc args to addrmap_set_empty.
4967
4968 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
4969
4970 * amd64-tdep.c (amd64_byte_names): New.
4971 (amd64_word_names): Likewise.
4972 (amd64_dword_names): Likewise.
4973 (amd64_pseudo_register_name): Likewise.
4974 (amd64_pseudo_register_read): Likewise.
4975 (amd64_pseudo_register_write): Likewise.
4976 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
4977 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
4978 set_gdbarch_pseudo_register_write and
4979 set_tdesc_pseudo_register_name. Don't call
4980 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
4981
4982 * i386-tdep.c (i386_num_mmx_regs): Removed.
4983 (i386_num_pseudo_regs): Likewise.
4984 (i386_byte_names): New.
4985 (i386_word_names): Likewise.
4986 (i386_byte_regnum_p): Likewise.
4987 (i386_word_regnum_p): Likewise.
4988 (i386_mmx_regnum_p): Updated.
4989 (i386_pseudo_register_name): Make it global. Handle byte and
4990 word pseudo-registers.
4991 (i386_pseudo_register_read): Likewise.
4992 (i386_pseudo_register_write): Likewise.
4993 (i386_pseudo_register_type): Handle byte, word and dword
4994 pseudo-registers
4995 (i386_register_reggroup_p): Don't include pseudo
4996 registers, except for MXX, in any register groups. Don't
4997 include pseudo byte, word, dword registers in general_reggroup.
4998 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
4999 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5000 pseudo-registers after word pseudo-registers. Call
5001 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5002
5003 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5004 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5005 eax_regnum.
5006 (i386_byte_regnum_p): New.
5007 (i386_word_regnum_p): Likewise.
5008 (i386_dword_regnum_p): Likewise.
5009 (i386_pseudo_register_name): Likewise.
5010 (i386_pseudo_register_read): Likewise.
5011 (i386_pseudo_register_write): Likewise.
5012
5013 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5014
5015 * target-descriptions.c (tdesc_type): Remove
5016 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5017 (tdesc_predefined_types): Likewise.
5018 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5019 if flag name is empty.
5020 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5021
5022 * features/i386/32bit-core.xml: Define i386_eflags.
5023 * features/i386/64bit-core.xml: Likewise.
5024
5025 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5026 * features/i386/64bit-sse.xml: Likewise.
5027
5028 * features/i386/amd64-linux.c: Regenerated.
5029 * features/i386/amd64.c: Likewise.
5030 * features/i386/i386-linux.c: Likewise.
5031 * features/i386/i386.c: Likewise.
5032
5033 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5034
5035 * gdbtypes.c (append_composite_type_field_raw): New.
5036 (append_composite_type_field_aligned): Use the new function.
5037 * gdbtypes.h (append_composite_type_field_raw): Declare.
5038 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5039 (struct tdesc_type_flag): New type.
5040 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5041 kind. Add size to u.u. Add u.f for flags.
5042 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5043 (tdesc_free_type): Likewise.
5044 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5045 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5046 (tdesc_add_bitfield, tdesc_add_flag): New.
5047 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5048 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5049 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5050 current_type. Add current_type_size and current_type_is_flags.
5051 (tdesc_start_union): Clear the new fields.
5052 (tdesc_start_struct, tdesc_start_flags): New.
5053 (tdesc_start_field): Handle struct fields, including bitfields.
5054 (field_attributes): Make type optional. Add start and end.
5055 (union_children): Rename to struct_union_children.
5056 (union_attributes): Rename to struct_union_attributes. Add optional
5057 size.
5058 (flags_attributes): New.
5059 (feature_children): Add struct and flags.
5060 * features/gdb-target.dtd: Add flags and struct to features.
5061 Make field type optional. Add field start and end.
5062
5063 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5064
5065 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5066 (amd64_linux_read_description): Likewise.
5067 (_initialize_amd64_linux_nat): Set to_read_description to
5068 amd64_linux_read_description.
5069
5070 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5071 (amd64_linux_register_name): Removed.
5072 (amd64_linux_register_type): Likewise.
5073 (amd64_linux_core_read_description): New.
5074 (amd64_linux_init_abi): Set target description to
5075 tdesc_amd64_linux if needed. Support orig_rax in target
5076 description. Don't call set_gdbarch_register_name nor
5077 set_gdbarch_register_type. Call
5078 set_gdbarch_core_read_description.
5079 (_initialize_amd64_linux_tdep): Call
5080 initialize_tdesc_amd64_linux.
5081
5082 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5083
5084 * amd64-tdep.c: Include "features/i386/amd64.c".
5085 (amd64_register_names): Removed.
5086 (amd64_register_name): Likewise.
5087 (amd64_register_type): Likewise.
5088 (amd64_init_abi): Set num_core_regs and register_names. Set
5089 target description to tdesc_amd64 if needed. Don't call
5090 set_gdbarch_register_name nor set_gdbarch_register_type.
5091 (_initialize_amd64_tdep): New.
5092
5093 * i386-linux-nat.c (i386_linux_read_description): New.
5094 (_initialize_i386_linux_nat): Set to_read_description to
5095 i386_linux_read_description.
5096
5097 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5098 (i386_linux_register_name): Removed.
5099 (i386_linux_core_read_description): New.
5100 (i386_linux_read_description): Likewise.
5101 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5102 Set target description to tdesc_i386_linux if needed. Support
5103 orig_eax. Set register_reggroup_p. Call
5104 set_gdbarch_core_read_description.
5105 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5106
5107 * i386-linux-tdep.h (tdesc_i386_linux): New.
5108
5109 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5110 with I387_NUM_REGS.
5111
5112 * i386-tdep.c: Include "features/i386/i386.c".
5113 (i386_register_names): Make it const.
5114 (i386_mmx_names): Likewise.
5115 (i386_num_register_names): Removed.
5116 (i386_register_name): Likewise.
5117 (i386_eflags_type): Likewise.
5118 (i386_mxcsr_type): Likewise.
5119 (i386_sse_type): Likewise.
5120 (i386_register_type): Likewise.
5121 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5122 (i386_pseudo_register_name): New.
5123 (i386_pseudo_register_type): Likewise.
5124 (i386_mmx_type): Make it static.
5125 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5126 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5127 call set_gdbarch_register_name nor set_gdbarch_register_type.
5128 Set register_reggroup_p. Set target description to tdesc_i386
5129 if needed. Call set_tdesc_pseudo_register_type,
5130 set_tdesc_pseudo_register_name and tdesc_use_registers.
5131 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5132 initialize_tdesc_x86_64.
5133
5134 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5135 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5136 register_names, tdesc and register_reggroup_p.
5137 (I386_NUM_FREGS): Removed.
5138 (i386_eflags_type): Likewise.
5139 (i386_mxcsr_type): Likewise.
5140 (i386_mmx_type): Likewise.
5141 (i386_sse_type): Likewise.
5142 (i386_register_name): Likewise.
5143 (i386_regnum): Add I386_MXCSR_REGNUM.
5144 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5145
5146 * i387-tdep.h (I387_NUM_REGS): New.
5147
5148 * regformats/i386/i386-linux.dat: Generated.
5149 * regformats/i386/i386.dat: Likewise.
5150 * regformats/i386/amd64-linux.dat: Likewise.
5151 * regformats/i386/amd64.dat: Likewise.
5152
5153 * regformats/reg-i386-linux.dat: Removed.
5154 * regformats/reg-i386.dat: Likewise.
5155 * regformats/reg-x86-64-linux.dat: Likewise.
5156 * regformats/reg-x86-64.dat: Likewise.
5157
5158 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5159
5160 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5161 cygwin_conv_path API rather than the deprecated
5162 cygwin_conv_to_full_posix_path.
5163 * windows-nat.c:
5164 (GetModuleFileNameExA): Undefine for Cygwin.
5165 (GetModuleFileNameExW): Define for Cygwin.
5166 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5167 Call GetModuleFileNameExW and convert path to POSIX using
5168 cygwin_conv_path.
5169 (windows_make_so): Always define p. Drop unused variable m.
5170 Don't use Win32 functions to check file existance, rather use
5171 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5172 Use canonicalize_file_name to get full path.
5173 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5174 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5175 use correct target buffer size in call to WideCharToMultiByte.
5176 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5177 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5178 (windows_create_inferior): Convert all paths and arguments to wchar_t
5179 and use CreateProcessW on Cygwin.
5180 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5181 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5182 (bad_GetModuleFileNameExW): Define for Cygwin.
5183 (_initialize_loadable): Load GetModuleFileNameExW into
5184 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5185
5186 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5187
5188 PR python/11036
5189 * python/py-frame.c (frapy_read_var): Add block argument and logic
5190 to cope with user provided blocks.
5191
5192 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5193
5194 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5195 New comment.
5196
5197 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5198
5199 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5200 (COMMON_OBS): ... to here since it's used unconditionally.
5201 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5202 (SFILES): To here.
5203
5204 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5205
5206 * mips-linux-tdep.c: Update struct sigframe comments.
5207 (SIGFRAME_CODE_OFFSET): Delete macro.
5208 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5209 this_frame's sp.
5210 (mips_linux_n32n64_sigframe_init): Same.
5211
5212 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5213
5214 * remote-mips.c (mips_load): Don't use pseudo-register when
5215 invalidating regcache.
5216
5217 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5218
5219 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5220
5221 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5222
5223 * NEWS: Add "New targets" section, and mention ARM Symbian
5224 support.
5225
5226 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5227
5228 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5229 add ADDR_SIZE member.
5230 (allocate_piece_closure): Update.
5231 (copy_pieced_value_closure): Likewise.
5232 (dwarf2_evaluate_loc_desc): Likewise.
5233 (read_pieced_value): Use DWARF address size instead of
5234 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5235
5236 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5237 Tom Tromey <tromey@redhat.com>
5238
5239 * python/py-type.c (typy_lookup_typename): Add in block argument.
5240 If provided restrict lookup to specified blocks.
5241 (gdbpy_lookup_type): Likewise.
5242 (typy_lookup_type): Likewise.
5243
5244 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5245
5246 Symbian config
5247
5248 gdb/
5249 * arm-symbian-tdep.c: New.
5250 * configure.tgt (arm*-*-symbianelf*): New target.
5251 (*-*-symbianelf*): New OS.
5252 * osabi.c (gdb_osabi_names): Add Symbian.
5253 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5254 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5255 (ALLDEPFILES): Add arm-symbian-tdep.c.
5256
5257 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5258
5259 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5260
5261 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5262
5263 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5264
5265 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5266 Tom Tromey <tromey@redhat.com>
5267 Thiago Jung Bauermann <bauerman@br.ibm.com>
5268
5269 * python/python.c (_initialize_python): Call
5270 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5271 gdbpy_initialize_blocks.
5272 * python/python-internal.h: Declare struct symbol, block and
5273 symtab_and_line. Declare block_object_type and
5274 symbol_object_type
5275 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5276 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5277 (symbol_to_symbol_object, block_to_block_object)
5278 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5279 (gdbpy_initialize_blocks ): Declare.
5280 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5281 (frapy_select): Add methods.
5282 (frapy_read_var): Add symbol branch.
5283 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5284 py-block.
5285 (SUBDIR_PYTHON_SRCS): Likewise.
5286 (py-symbol.o): New rule.
5287 (py-symtab.o): Likewise.
5288 (py-block.o): Likewise.
5289 * python/py-symbol.c: New file.
5290 * python/py-symtab.c: Likewise.
5291 * python/py-block.c: Likewise.
5292
5293 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5294
5295 PR gdb/11321
5296
5297 * inferior.h (prepare_for_detach): Declare.
5298 (struct inferior) <detaching>: New field.
5299 * infrun.c (prepare_for_detach): New.
5300 (handle_inferior_event) <random signal>: Don't stop if detaching.
5301 * target.c (target_detach): Call prepare_for_detach.
5302
5303 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5304
5305 Per-process displaced stepping queue.
5306
5307 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5308 (displaced_step_gdbarch, displaced_step_closure,
5309 (displaced_step_original, displaced_step_copy): Move globals to
5310 this...
5311 (struct displaced_step_inferior_state): ... new structure.
5312 (displaced_step_inferior_states): New global.
5313 (get_displaced_stepping_state, add_displaced_stepping_state)
5314 (remove_displaced_stepping_state, infrun_inferior_exit): New
5315 functions.
5316 (displaced_step_clear): Add displaced_step_inferior_state
5317 parameter, and adjust to handle it.
5318 (displaced_step_clear_cleanup): Parameter is now a
5319 displaced_step_inferior_state. Adjust.
5320 (displaced_step_prepare): Adjust.
5321 (displaced_step_fixup, displaced_step_fixup)
5322 (infrun_thread_ptid_changed, resume): Adjust.
5323 (init_wait_for_inferior): Don't call displaced_step_clear.
5324 (infrun_thread_stop_requested): Rewrite.
5325 (_initialize_infrun): Install infrun_inferior_exit as
5326 inferior_exit observer.
5327
5328 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5329
5330 * inferior.h (ptid_match): Declare.
5331 * infrun.c (ptid_match): New.
5332 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5333 (handle_notification): Add debug output.
5334 * linux-nat.c (ptid_match): Delete.
5335
5336 2010-02-24 David S. Miller <davem@davemloft.net>
5337
5338 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5339 * syscalls/sparc-linux.xml: New.
5340 * syscalls/sparc64-linux.xml: New.
5341 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5342 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5343 (sparc32_linux_get_syscall_number): New function.
5344 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5345 syscall number fetcher.
5346 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5347 (sparc64_linux_get_syscall_number): New function.
5348 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5349 syscall number fetcher.
5350
5351 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5352
5353 Multiexec MI
5354
5355 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5356 * inferior.c (add_inferior_silent): Notify inferior_added
5357 observer.
5358 (delete_inferior_1): Notify inferior_removed observer.
5359 (exit_inferior_1): Pass inferior, not pid, to observer.
5360 (inferior_appeared): Likewise.
5361 (add_inferior_with_spaces): New.
5362 (add_inferior_command): Use the above.
5363 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5364 Declare.
5365
5366 * inflow.c (inflow_inferior_exit): Likewise.
5367 * jit.c (jit_inferior_exit_hook): Likewise.
5368
5369 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5370 remove-inferior.
5371 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5372 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5373 (report_initial_inferior): New.
5374 (mi_inferior_removed): Register the above. Make sure
5375 inferior_added observer is called on the first inferior.
5376 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5377 inferior number, not pid.
5378 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5379 affected.
5380 * mi/mi-main.c (current_context): New.
5381 (proceed_thread_callback): Use typed closure.
5382 Proceed everything if pid is 0. Most implementation split into
5383 (proceed_thread): ... this.
5384 (run_one_inferior): New.
5385 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5386 Adjust for multiexec behaviour.
5387 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5388 (mi_cmd_execute): Handle the 'thread-group' option here.
5389 Do some extra checks.
5390 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5391 options.
5392 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5393
5394 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5395
5396 Make -exec-run a proper MI commands.
5397
5398 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5399 * mi/mi-cmds.c (mi_cmds): Adjust.
5400 * mi/mi-main.c (mi_cmd_exec_run): New.
5401
5402 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5403 Stan Shebs <stan@codesourcery.com>
5404
5405 * tracepoint.h (set_traceframe_number)
5406 (cleanup_restore_current_traceframe): Declare.
5407 * tracepoint.c (set_traceframe_number): New.
5408 (struct current_traceframe_cleanup): New.
5409 (do_restore_current_traceframe_cleanup)
5410 (restore_current_traceframe_cleanup_dtor)
5411 (make_cleanup_restore_current_traceframe): New.
5412 * infrun.c: Include tracepoint.h.
5413 (fetch_inferior_event): Switch out and in of tfind mode.
5414
5415 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5416
5417 * breakpoint.c (breakpoint_init_inferior): Also delete
5418 bp_shlib_event breakpoints.
5419 * solib-frv.c (enable_break): Remove call to
5420 remove_solib_event_breakpoints.
5421 * solib-svr4.c (enable_break): Ditto.
5422 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5423 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5424 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5425 * solib-spu.c (spu_enable_break): Ditto.
5426
5427 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5428
5429 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5430
5431 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5432
5433 * varobj.c (varobj_update): Avoid non-constants in initializers.
5434
5435 2010-02-23 Tom Tromey <tromey@redhat.com>
5436
5437 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5438 handle big-endian values.
5439 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5440
5441 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5442
5443 PR9605
5444
5445 gdb/
5446 * breakpoint.c (insert_bp_location): If inserting the read
5447 watchpoint failed, fallback to an access watchpoint.
5448 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5449 if the value changed, if not watching the same memory for writes.
5450 (watchpoint_locations_match): Add comment.
5451 (update_global_location_list): Copy the location's watchpoint type.
5452 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5453 handle read watchpoints here.
5454 (i386_insert_watchpoint): Read watchpoints aren't supported.
5455 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5456 packets.
5457 * target.h (target_insert_watchpoint): Update description.
5458
5459 2010-02-19 Tom Tromey <tromey@redhat.com>
5460
5461 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5462 * m2-typeprint.c (m2_print_type): Update.
5463 * gdbtypes.c (recursive_dump_type): Update.
5464 (copy_type_recursive): Update.
5465 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5466 (c_type_print_base): Update.
5467 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5468 Remove.
5469 (struct cplus_struct_type) <ntemplate_args>: Remove.
5470 <struct template_arg>: Remove.
5471 <is_dynamic>: Move earlier.
5472 (TYPE_TEMPLATE_ARGS): Remove.
5473 (TYPE_NTEMPLATE_ARGS): Remove.
5474 (TYPE_TEMPLATE_ARG): Remove.
5475
5476 2010-02-19 Tom Tromey <tromey@redhat.com>
5477
5478 PR c++/8693, PR c++/9496:
5479 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5480 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5481 write_dollar_variable. Don't try to classify NAME tokens.
5482 (token_and_value): New type.
5483 (token_fifo, popping, name_obstack): New globals.
5484 (classify_name): New function.
5485 (classify_inner_name): Likewise.
5486 (yylex): Likewise.
5487 (VARIABLE): Now has type sval.
5488 (exp : VARIABLE): Call write_dollar_variable.
5489 (qualified_name): Use TYPENAME, not typebase. Add production for
5490 multiple "::" instances.
5491 (variable): Use name_not_typename.
5492 (qualified_type): Remove.
5493 (typebase): Update.
5494
5495 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5496
5497 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5498 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5499 found by bfd_get_section_by_name.
5500 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5501
5502 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5503
5504 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5505 7.0 section" into "Changes in 7.1".
5506
5507 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5508
5509 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5510 * version.in: Bump version to 7.1.50.20100219-cvs.
5511
5512 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5513
5514 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5515 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5516
5517 2010-02-17 Tom Tromey <tromey@redhat.com>
5518
5519 * NEWS: Add Python API Improvements section.
5520
5521 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5522
5523 * NEWS: Correct typo.
5524
5525 2010-02-17 Tom Tromey <tromey@redhat.com>
5526
5527 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5528
5529 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5530
5531 * symfile.c (build_section_addr_info_from_objfile): Include sections
5532 only if they are SEC_ALLOC or SEC_LOAD.
5533
5534 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5535
5536 PR shlibs/11293
5537 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5538 of ULONGEST for address size.
5539
5540 2010-02-17 Tom Tromey <tromey@redhat.com>
5541
5542 * NEWS: Add C++ improvements section.
5543
5544 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5545
5546 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5547 PyThreadState_Swap): Avoid "statement with no effect" warning.
5548
5549 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5550
5551 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5552 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5553
5554 2010-02-17 Tristan Gingold <gingold@adacore.com>
5555 Petr Hluzin <petr.hluzin@gmail.com>
5556
5557 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5558 gdb_assert. Fix info->size for SIG prologue.
5559
5560 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5561
5562 * infcmd.c (show_inferior_tty_command): Check for NULL.
5563 Correct output message.
5564
5565 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5566
5567 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5568 FUNCTION contains parentheses. Improve removal of a trailing
5569 single quote.
5570
5571 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5572
5573 * gcore.c (do_bfd_delete_cleanup): New function.
5574 (gcore_command): Use it. Discard the cleanup after success.
5575 (gcore_copy_callback): Delete dead code.
5576
5577 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5578
5579 * symfile.c (addr_info_make_relative): Always use
5580 find_lowest_section.
5581
5582 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5583
5584 * NEWS: Added entry for namespace fixes.
5585
5586 2010-02-15 Tom Tromey <tromey@redhat.com>
5587
5588 * dwarf2read.c (guess_structure_name): Allocate name on the
5589 objfile obstack.
5590
5591 2010-02-15 Tom Tromey <tromey@redhat.com>
5592
5593 * c-typeprint.c (c_type_print_base): Reverse order of test.
5594
5595 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5596
5597 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5598 initialize it from ELF BFD. Extend the prelink condition by it.
5599
5600 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5601
5602 * defs.h (parse_pid_to_attach): New.
5603 * utils.c (parse_pid_to_attach): New.
5604 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5605 * gnu-nat.c (gnu_attach): Likewise.
5606 * nto-procfs.c (procfs_attach): Likewise.
5607 * procfs.c (procfs_attach): Likewise.
5608 * windows-nat.c (windows_attach): Likewise.
5609 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5610 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5611 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5612 check.
5613
5614 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5615
5616 * MAINTAINERS: Add myself for write after approval privileges.
5617
5618 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5619
5620 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5621 block.
5622
5623 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5624
5625 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5626 only if INFO_VERBOSE.
5627
5628 2010-02-12 Tomas Holmberg <th@virtutech.com>
5629
5630 * mi/mi-main.c: Added the --reverse flag to the following MI
5631 commands: exec-continue, exec-finish, exec-next, exec-step,
5632 exec-next-instruction, exec-step-instruction. This is to
5633 support reverse execution over the MI interface to gdb.
5634
5635 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5636
5637 * tracepoint.c (_initialize_tracepoint): Specify that the address
5638 range of `tfind outsize' is exclusive, and that the address range
5639 of `tfind range' is inclusive, in the commands' help strings.
5640
5641 2010-02-12 Joel Brobecker <brobecker@adacore.com>
5642
5643 Spurious "dll not found" error messages on x64-windows.
5644 * windows-nat.c: Add include of complaints.h.
5645 (handle_unload_dll): Change dll-not-found error into a complaint.
5646
5647 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5648
5649 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5650 bp_tracepoint and bp_fast_tracepoint, not
5651 bp_loc_software_breakpoint.
5652 (update_global_location_list): Tracepoints are never duplicates of
5653 anything.
5654
5655 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5656
5657 * breakpoint.c (break_command_really): Change return type to int.
5658 Return false if no breakpoint was created, true otherwise.
5659 (trace_command): Don't set the tracepoint count if no tracepoint
5660 was created.
5661 (ftrace_command): Ditto.
5662 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5663 created in the breakpoints table.
5664
5665 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5666 Ulrich Weigand <uweigand@de.ibm.com>
5667
5668 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5669
5670 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5671
5672 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5673 the offset value isn't of integral type.
5674
5675 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5676
5677 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5678 New.
5679
5680 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5681
5682 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5683 non-subscriptable types.
5684 * valarith.c (binop_types_user_defined_p): New, abstracted out
5685 from ...
5686 (binop_user_defined_p): ... this.
5687 * value.h (binop_types_user_defined_p): Declare.
5688
5689 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5690
5691 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5692 Merge uploaded TSVs before merging uploaded tracepoints.
5693
5694 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5695
5696 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5697
5698 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
5699
5700 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5701 whitespace character after a dot in comment.
5702 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5703 Likewise.
5704 (list_args_or_locals): For the 'all' (that is
5705 -stack-list-variables) case, always output list of tuples.
5706 Output 'arg' field if variable is argument.
5707
5708 2010-02-10 Tom Tromey <tromey@redhat.com>
5709
5710 * parser-defs.h (parser_debug): Declare.
5711 * parse.c (_initialize_parse): Install "debug parser" set/show
5712 command.
5713 (parser_debug): New global.
5714 (show_parserdebug): New function.
5715 * c-exp.y (c_parse): Set yydebug.
5716
5717 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5718
5719 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5720 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5721 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5722 i386_mxcsr.
5723 (tdesc_find_type): New.
5724 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5725 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5726
5727 * target-descriptions.h (tdesc_find_type): New.
5728
5729 2010-02-10 Michael Snyder <msnyder@vmware.com>
5730
5731 * gdb-gdb.py: Comment fix.
5732
5733 2010-02-09 Tristan Gingold <gingold@adacore.com>
5734
5735 * machoread.c (macho_symfile_relocate): New function.
5736 (macho_sym_fns): Use macho_symfile_relocate instead of
5737 default_symfile_relocate.
5738 (macho_oso_data): New type.
5739 (current_oso): New variable.
5740 (macho_add_oso_symfile): Do not compute section_addr_info, but
5741 instead set vma of sections.
5742 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5743 Set and clear current_oso.
5744
5745 2010-02-09 Joel Brobecker <brobecker@adacore.com>
5746
5747 Wrong type description for tagged type parameter.
5748 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5749 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5750 reference to a tagged type.
5751
5752 2010-02-09 Tristan Gingold <gingold@adacore.com>
5753
5754 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
5755 brothers of the parent.
5756
5757 2010-02-08 Tom Tromey <tromey@redhat.com>
5758
5759 PR c++/8017:
5760 * value.h: Update.
5761 * valops.c (search_struct_field): Make 'name' const.
5762 (search_struct_method): Likewise.
5763 (find_method_list): Make 'method' const.
5764 (value_struct_elt): Make 'name' and 'err' const.
5765 (value_find_oload_method_list): Make 'method' const.
5766 (find_overload_match): Make 'name' const.
5767 * eval.c (evaluate_subexp_standard): New locals function,
5768 function_name.
5769 <OP_FUNCALL>: Handle OP_SCOPE specially.
5770
5771 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5772
5773 * infrun.c (handle_inferior_event): Do not look up regcache
5774 for exited processes.
5775
5776 2010-02-08 Chris Moller <moller@mollerware.com>
5777
5778 PR gdb/10728
5779 * valarith.c (value_ptrdiff): Added a test for a zero type length,
5780 warn if found, and assume length = 1.
5781
5782 2010-02-08 Chris Moller <cmoller@redhat.com>
5783
5784 PR gdb/9067
5785 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
5786 cp_print_static_field) Fix use of obstacks.
5787
5788 2010-02-08 Pedro Alves <pedro@codesourcery.com>
5789
5790 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
5791 resumed LWPs as resumed.
5792 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
5793 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
5794 of throwing an internal error. If an LWP of a process we're not
5795 waiting for reports a signal, don't force collecting a SIGSTOP,
5796 and if it was breakpoint hit in non-stop mode, cancel it. Don't
5797 go through all LWPs cancelling breakpoints in non-stop mode.
5798 (resume_stopped_resumed_lwps): New.
5799 (linux_nat_wait): Use it.
5800
5801 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
5802
5803 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
5804 i386/amd64 and i386/amd64-linux.
5805 (i386/i386-expedite): New.
5806 (i386/i386-linux-expedite): Likewise.
5807 (i386/amd64-expedite):Likewise.
5808 (i386/amd64-linux-expedite): Likewise.
5809 ($(outdir)/i386/i386-linux.dat): Likewise.
5810 ($(outdir)/i386/amd64.dat): Likewise.
5811 ($(outdir)/i386/amd64-linux.dat): Likewise.
5812
5813 * features/i386/32bit-core.xml: New.
5814 * features/i386/32bit-linux.xml: Likewise.
5815 * features/i386/32bit-sse.xml: Likewise.
5816 * features/i386/64bit-core.xml: Likewise.
5817 * features/i386/64bit-linux.xml: Likewise.
5818 * features/i386/64bit-sse.xml: Likewise.
5819 * features/i386/i386-linux.xml: Likewise.
5820 * features/i386/i386.xml: Likewise.
5821 * features/i386/amd64-linux.xml: Likewise.
5822 * features/i386/amd64.xml: Likewise.
5823 * features/i386/i386-linux.c: Likewise.
5824 * features/i386/i386.c: Likewise.
5825 * features/i386/amd64-linux.c: Likewise.
5826 * features/i386/amd64.c: Likewise.
5827
5828 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
5829
5830 PR c++/7935:
5831 * cp-support.h: Added char* alias element to using_direct data
5832 struct.
5833 (cp_add_using): Added char* alias argument.
5834 (cp_add_using_directive): Ditto.
5835 * cp-namespace.c: Updated with the above changes.
5836 (cp_lookup_symbol_imports): Check for aliases.
5837 * dwarf2read.c (read_import_statement): Figure out local alias
5838 for the import and pass it on to cp_add_using.
5839 (read_namespace): Pass alias argument to cp_add_using.
5840
5841 2010-02-05 Hui Zhu <teawater@gmail.com>
5842
5843 * defs.h (gdb_bfd_errmsg): New extern.
5844 * exec.c (exec_file_attach): Change bfd_errmsg to
5845 gdb_bfd_errmsg.
5846 * utils.c (AMBIGUOUS_MESS1): New macro.
5847 (AMBIGUOUS_MESS2): New macro.
5848 (gdb_bfd_errmsg): New function.
5849
5850 2010-02-04 Doug Evans <dje@google.com>
5851
5852 * solib-svr4.c (enable_break): Add comment.
5853
5854 2010-02-04 Anthony Green <green@moxielogic.com>
5855
5856 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
5857 gracefully.
5858
5859 2010-02-04 Tom Tromey <tromey@redhat.com>
5860
5861 * valops.c (search_struct_field): Account for
5862 value_embedded_offset. Fix check for virtual base past the end of
5863 the object. Use value_copy when making a slice of the value.
5864
5865 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5866
5867 PR tui/9622
5868 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
5869 only if gdb_stdout is a tty.
5870
5871 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
5872
5873 * target-descriptions.c: Include "osabi.h".
5874 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5875 OSABI.
5876
5877 2010-02-04 Tristan Gingold <gingold@adacore.com>
5878
5879 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
5880 (macho_symtab_read): Adjust calls to macho_add_oso.
5881 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
5882 (macho_symfile_read): Adjust call to macho_oso_symfile.
5883 (macho_new_init): Move this function after declarations.
5884 (macho_symfile_init): Ditto.
5885 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
5886 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
5887
5888 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
5889
5890 Include MI command in remotelog.
5891
5892 * mi/mi-main.c (mi_execute_command): Call target_log_command.
5893
5894 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5895
5896 * remote.c (remote_state): Remove gdbarch.
5897 (init_remote_state): Don't set gdbarch.
5898 (remote_query_supported): Pass target_gdbarch instead of
5899 rs->gdbarch to gdbarch_qsupported.
5900
5901 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5902
5903 * gdbarch.sh: Add qsupported.
5904
5905 * gdbarch.c: Regenerated.
5906 * gdbarch.h: Likewise.
5907
5908 * remote.c (remote_state): Add gdbarch.
5909 (init_remote_state): Set gdbarch.
5910 (remote_query_supported): Support gdbarch_qsupported.
5911
5912 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
5913
5914 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
5915 __FreeBSD_kernel_version.
5916
5917 2010-02-03 Tristan Gingold <gingold@adacore.com>
5918
5919 * symfile.h (struct sym_fns): Add sym_relocate field.
5920 (default_symfile_relocate): New prototype.
5921 (symfile_relocate_debug_section): First argument is now an objfile.
5922 * symfile.c (default_symfile_relocate): Rename from
5923 symfile_relocate_debug_section, first argument is now an objfile.
5924 (symfile_relocate_debug_section): New function.
5925 * coffread.c (coff_sym_fns): Set sym_relocate field.
5926 * somread.c (som_sym_fns): Ditto.
5927 * mipsread.c (ecoff_sym_fns): Ditto.
5928 * machoread.c (macho_sym_fns): Ditto.
5929 * elfread.c (elf_sym_fns): Ditto.
5930 * dwarf2read.c (dwarf2_read_section): Ditto.
5931 * xcoffread.c (xcoff_sym_fns): Ditto.
5932 * dbxread.c (aout_sym_fns): Ditto.
5933 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
5934 (elfstab_build_psymtabs): Ditto.
5935
5936 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
5937
5938 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
5939
5940 2010-02-02 Tom Tromey <tromey@redhat.com>
5941
5942 * valops.c (value_cast_structs): Try downcasting using the RTTI
5943 type.
5944
5945 2010-02-02 Tom Tromey <tromey@redhat.com>
5946
5947 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
5948 (gnuv2_baseclass_offset): Now static.
5949 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
5950 * gnu-v2-abi.h: Remove.
5951
5952 2010-02-02 Tom Tromey <tromey@redhat.com>
5953
5954 * m2-typeprint.c (m2_record_fields): Don't use
5955 TYPE_DECLARED_TYPE.
5956 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
5957 (struct main_type) <flag_declared_class>: New field.
5958 (struct cplus_struct_type) <declared_type>: Remove.
5959 <ntemplate_args>: Move earlier.
5960 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
5961 (DECLARED_TYPE_TEMPLATE): Remove.
5962 (TYPE_DECLARED_TYPE): Remove.
5963 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
5964 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
5965 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
5966 TYPE_DECLARED_TYPE.
5967
5968 2010-02-02 Tom Tromey <tromey@redhat.com>
5969
5970 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
5971 * valops.c (search_struct_field): Compute nbases after calling
5972 CHECK_TYPEDEF.
5973 (check_field): Call CHECK_TYPEDEF.
5974 * cp-valprint.c (cp_print_value): Pass correct address to
5975 baseclass_offset. Fix check for virtual base past the end of the
5976 object. Don't offset address passed to cp_print_value_fields or
5977 apply_val_pretty_printer.
5978 (cp_print_value_fields): Fix call to val_print.
5979 (cp_print_value_fields_rtti): New function.
5980 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
5981 * p-valprint.c (pascal_object_print_value_fields): Fix call to
5982 val_print.
5983 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
5984 offset to address.
5985 * language.h (struct language_defn) <la_val_print>: Document.
5986 * c-lang.h (cp_print_value_fields_rtti): Declare.
5987
5988 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5989
5990 PR libc/11214:
5991 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5992 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
5993 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
5994
5995 2010-02-01 Michael Matz <matz@suse.de>
5996 Daniel Jacobowitz <dan@codesourcery.com>
5997
5998 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
5999 functions use a frame pointer.
6000
6001 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6002
6003 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6004 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6005 * config/djgpp/fnchange.lst: Add translations for
6006 symbol-without-target_section.exp and symbol-without-target_section.c.
6007
6008 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6009
6010 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6011 (remote_breakpoint_for_pc): Correct invalid_p check.
6012 * gdbarch.c: Regenerated.
6013
6014 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6015
6016 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6017 arm_pc_is_thumb.
6018 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6019 (extend_buffer_earlier): New function.
6020 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6021 (arm_adjust_breakpoint_address): New function.
6022 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6023
6024 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6025
6026 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6027 (arm_linux_thumb2_le_breakpoint): New constants.
6028 (arm_linux_init_abi): Set thumb2_breakpoint and
6029 thumb2_breakpoint_size.
6030 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6031 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6032 Implement support for single stepping through IT blocks if
6033 a 32-bit Thumb breakpoint instruction is available.
6034 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6035 is available, use it when needed.
6036 (arm_remote_breakpoint_from_pc): New function.
6037 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6038 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6039 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6040
6041 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6042
6043 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6044 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6045 * gdbarch.c, gdbarch.h: Regenerated.
6046 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6047 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6048 gdbarch_remote_breakpoint_from_pc.
6049
6050 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6051
6052 * infrun.c (prepare_to_proceed): Handle other signals which might
6053 match a breakpoint.
6054 (handle_inferior_event): Move the check for unusual breakpoint
6055 signals earlier.
6056
6057 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6058
6059 amd64 - function returning record with field straddling 2 registers.
6060 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6061 a record of length <= 16 in which a field straddles the two
6062 eightbytes.
6063
6064 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6065
6066 Implement return values on amd64-windows.
6067 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6068 (amd64_windows_return_value): New function.
6069 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6070 amd64_windows_return_value.
6071
6072 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6073
6074 amd64-windows: 32 bytes allocated on stack by caller for integer
6075 parameter registers.
6076 * i386-tdep.h (struct gdbarch_tdep): Add new field
6077 integer_param_regs_saved_in_caller_frame.
6078 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6079 tdep->integer_param_regs_saved_in_caller_frame to 1.
6080 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6081 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6082
6083 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6084
6085 amd64-windows: memory args passed by pointer during function calls.
6086 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6087 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6088 where tdep->memory_args_by_pointer is non-zero.
6089 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6090 tdep->memory_args_by_pointer to 1.
6091
6092 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6093
6094 amd64-windows: Integer parameters in function calls.
6095 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6096 amd64-tdep.c.
6097 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6098 call_dummy_integer_regs, and classify.
6099 * amd64-tdep.h (amd64_classify): Add declaration.
6100 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6101 (amd64_reg_class): Delete, moved to i386-tdep.h.
6102 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6103 Replace call to amd64_classify by call to tdep->classify.
6104 (amd64_push_arguments): Get the list of registers to use for
6105 passing integer parameters from the gdbarch tdep structure,
6106 rather than using a hardcoded one. Replace calls to amd64_classify
6107 by calls to tdep->classify.
6108 (amd64_push_dummy_call): Get the register number used for
6109 the "hidden" argument from tdep->call_dummy_integer_regs.
6110 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6111 and tdep->call_dummy_integer_regs. Set tdep->classify.
6112 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6113 (amd64_windows_dummy_call_integer_regs): New static global.
6114 (amd64_windows_classify): New function.
6115 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6116 tdep->call_dummy_integer_regs and tdep->classify.
6117
6118 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6119
6120 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6121 for the new regcache. All callers updated.
6122 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6123 (get_thread_arch_regcache): Do not set aspace here.
6124 * regcache.h (regcache_xmalloc): Update declaration.
6125
6126 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6127 regcache_xmalloc updated.
6128
6129 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6130
6131 Another -Wunused-function error in procfs.c (sparc-solaris)
6132 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6133 Only define if SYS_syssgi is defined.
6134 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6135 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6136 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6137 is itself defined.
6138
6139 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6140
6141 * windows-nat.c (windows_initialization_done): New variable.
6142 (get_windows_debug_event): Issue error when process dies before
6143 completely initializing.
6144 (do_initial_windows_stuff): Set flag to indicate when we are done with
6145 the initial steps of attaching to the child.
6146
6147 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6148
6149 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6150
6151 2010-01-27 Doug Evans <dje@google.com>
6152
6153 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6154
6155 * breakpoint.c (bpstat_stop_status): Delete useless code.
6156
6157 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6158
6159 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6160 objfile via SYMBOL_SYMTAB.
6161
6162 2010-01-26 Tom Tromey <tromey@redhat.com>
6163
6164 PR exp/7643:
6165 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6166 coerce_array on result.
6167
6168 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6169
6170 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6171 search_parent argument.
6172 (cp_add_using): Initialize 'searched' field.
6173 (reset_directive_searched): New function.
6174 * cp-support.h: Add 'searched' field to using_direct struct.
6175 (cp_lookup_symbol_imports): Ditto.
6176 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6177 Perform recursive search.
6178 Implement non parent search.
6179 * valops.c (value_maybe_namespace_elt): Updated.
6180
6181 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6182
6183 PR gdb/10929:
6184 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6185 scopes which contain using directives even if they contain no
6186 declarations.
6187 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6188 la_lookup_symbol_nonlocal.
6189 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6190 cp_lookup_symbol_namespace.
6191 (cp_lookup_symbol_namespace): Perform an import lookup at every
6192 block level.
6193 (cp_lookup_symbol_imports): New function.
6194 (cp_lookup_symbol_in_namespace): New function.
6195
6196 2010-01-25 Tom Tromey <tromey@redhat.com>
6197
6198 PR gdb/11049:
6199 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6200 result.
6201
6202 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6203
6204 * configure.ac: Only use host_os part when disabling TUI on osf.
6205 Use test to check variables, prefix strings with x.
6206 * configure: Regenerate.
6207
6208 * solib-osf.c (osf_current_sos): Initialize tail.
6209
6210 2010-01-25 gingold <gingold@adacore.com>
6211
6212 * windows-nat.c (windows_continue): Use %x to print thread id.
6213 (get_windows_debug_event): Ditto.
6214
6215 2010-01-22 Tom Tromey <tromey@redhat.com>
6216
6217 PR symtab/11199:
6218 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6219 type and arguments. Use smash_to_methodptr_type.
6220 (read_structure_type): Call quirk_gcc_member_function_pointer
6221 later.
6222 * gdbtypes.h (smash_to_methodptr_type): Declare.
6223 * gdbtypes.c (smash_to_methodptr_type): New function.
6224 (lookup_methodptr_type): Use it.
6225
6226 2010-01-21 Tom Tromey <tromey@redhat.com>
6227
6228 PR symtab/11198:
6229 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6230 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6231 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6232 (glibc_skip_solib_resolver): Use
6233 lookup_minimal_symbol_and_objfile.
6234
6235 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6236
6237 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6238 WIN32 targets.
6239
6240 2010-01-20 Tom Tromey <tromey@redhat.com>
6241
6242 PR backtrace/10770:
6243 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6244 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6245 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6246 dwarf_stack_values, not CORE_ADDRs.
6247 (execute_stack_op): Change DW_OP_div and comparison operators to
6248 use signed operands.
6249
6250 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6251
6252 Per-inferior args and tty and environment.
6253
6254 * infcmd.c (inferior_args): Rename to ...
6255 (inferior_args_scratch): ... this.
6256 (inferior_io_terminal): Rename to ...
6257 (inferior_io_terminal_scratch): ... this.
6258 (inferior_argc, inferior_argv): Remove.
6259 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6260 inside current_inferior().
6261 (set_inferior_tty_command, show_inferior_tty_command): New.
6262 (get_inferior_args, set_inferior_args): Store inside
6263 current_inferior().
6264 (notice_args_set): Likewise and rename to...
6265 (set_args_command): ... this.
6266 (set_inferior_args_vector): Likewise.
6267 (notice_args_read): Rename to...
6268 (show_args_command): ...new.
6269 (tty_command): Remove.
6270 (run_command_1): Don't free old args, as they are freed by
6271 set_inferior_arg now.
6272 (run_no_args_command): Likewise.
6273 (inferior_environ): Remove.
6274 (run_command_1): Use environment of the current inferior.
6275 (environment_info, set_environment_command)
6276 (unset_environment_command, path_info, path_command): Likewise.
6277 (_initialize_infcmd): Adjust for function and variable renames.
6278 Do not init inferior_environ.
6279 * inferior.h (set_inferior_arg): Adjust prototype.
6280 (struct inferior): New fields args, argc, argv, terminal, environment.
6281 (inferior_environ): Remove declaration.
6282 * inferior.c (free_inferior): Free new fields.
6283 (add_inferior_silent): Initialize 'environment' field.
6284 * main.c (captured_main): Set arguments only after the initial
6285 inferior has been created. Set set_inferior_io_terminal,
6286 not tty_command.
6287 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6288 inferior.
6289 (_initialize_mi_cmd_env): Adjust for disappearance of global
6290 inferior_environ.
6291 * solib.c (solib_find): Use environment of the current inferior.
6292
6293 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6294
6295 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6296 HAVE_PYTHON.
6297 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6298
6299 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6300
6301 Get rid of ada-lang.c:function_name_from_pc.
6302 * ada-lang.c: Add "stack.h" #include.
6303 (function_name_from_pc): Delete.
6304 (is_known_support_routine): Replace call to function_name_from_pc
6305 by call to find_frame_funname.
6306 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6307
6308 2010-01-19 Tom Tromey <tromey@redhat.com>
6309
6310 PR c++/11026:
6311 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6312 objfile obstack.
6313
6314 2010-01-19 Tom Tromey <tromey@redhat.com>
6315
6316 * top.c (stop_sig, float_handler, do_nothing): Remove.
6317
6318 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6319
6320 * breakpoint.c (watchpoint_check): Check the call
6321 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6322 Extend the comment.
6323 * config/djgpp/fnchange.lst: Add translations for
6324 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6325 watchpoint-cond-gone-stripped.c.
6326
6327 2010-01-19 Tom Tromey <tromey@redhat.com>
6328
6329 PR c++/8000:
6330 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6331 into parent scope, and enumerator into grandparent scope.
6332
6333 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6334
6335 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6336
6337 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6338
6339 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6340 i[34567]86-*-solaris2.1[0-9]*.
6341 * configure.tgt: Likewise.
6342
6343 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6344
6345 * NEWS: Document the source command enhancement allowing it
6346 to load Python scripts. Document the "set/show script-extension"
6347 commands.
6348
6349 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6350
6351 Add -Wunused-function to compile flags.
6352 * configure.ac: Add -Wunused-function to build_warnings.
6353 * configure: Regenerate.
6354
6355 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6356
6357 "delete" ada-lex.c:input function, not used.
6358 * ada-lex.l: #define YY_NO_INPUT.
6359
6360 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6361
6362 Delete free_named_symtabs and associated cleanup.
6363 * symfile.h (free_named_symtabs): Delete declaration.
6364 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6365 (cashier_psymtab): Comment function out.
6366 Delete declaration.
6367 (free_named_symtabs): Delete.
6368 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6369 * dbxread.c (end_psymtab): Likewise.
6370 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6371 * exec.c (exec_close_1): Ditto.
6372 * xcoffread.c (xcoff_end_psymtab): Likewise.
6373
6374 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6375
6376 * stack.c (print_block_frame_labels): Comment function out.
6377
6378 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6379
6380 Delete unused or undefined functions.
6381 * breakpoint.c (ep_parse_optional_filename): Delete.
6382 * dcache.c (dcache_write_line): Remove declaration.
6383 * infrun.c (build_infrun): Remove declaration.
6384 * tracepoint.c (tracepoint_save_command): Remove declaration.
6385 * linux-nat.c (init_lwp_list): Delete. No longer used.
6386 * event-loop.c (check_async_signal_handlers): Delete declaration.
6387 * infrun.c (init_execution_control_state): Delete.
6388 (proceed): Update comment to avoid mentioning
6389 init_execution_control_state.
6390 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6391 * ada-lang.c (ada_to_static_fixed_value): Delete.
6392 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6393 * cp-namespace.c (cp_copy_usings): Delete.
6394 * xml-syscall.c (xml_number_of_syscalls): Delete.
6395 * progspace.c (find_program_space_by_num): Delete.
6396 * inflow.c (handle_sigio): Delete declaration.
6397 * hppa-tdep.c (hppa_alignof): Delete.
6398 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6399 (mipsnbsd_core_osabi_sniffer): Delete.
6400
6401 2010-01-18 Tom Tromey <tromey@redhat.com>
6402
6403 PR c++/9680:
6404 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6405 (CONST_CAST): New tokens.
6406 (exp): Add new productions.
6407 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6408 reinterpret_cast.
6409 (is_cast_operator): New function.
6410 (yylex): Handle cast operators specially.
6411 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6412 UNOP_REINTERPRET_CAST>: New cases.
6413 * expprint.c (print_subexp_standard): Likewise.
6414 (op_name_standard): Likewise.
6415 (dump_subexp_body_standard): Likewise.
6416 * parse.c (operator_length_standard): Likewise.
6417 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6418 UNOP_REINTERPRET_CAST.
6419 * gdbtypes.c (class_types_same_p): New function.
6420 (is_ancestor): Use it.
6421 (is_public_ancestor): New function.
6422 (is_unique_ancestor_worker): Likewise.
6423 (is_unique_ancestor): Likewise.
6424 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6425 (is_unique_ancestor): Declare.
6426 * valops.c (value_reinterpret_cast): New function.
6427 (dynamic_cast_check_1): Likewise.
6428 (dynamic_cast_check_2): Likewise.
6429 (value_dynamic_cast): Likewise.
6430 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6431
6432 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6433
6434 Fix build failure when building without Python support.
6435 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6436 is not defined.
6437
6438 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6439
6440 Use XVS field type instead of doing a parallel lookup.
6441 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6442 if it is a reference type instead of doing a type lookup using
6443 the XVS field name.
6444
6445 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6446
6447 Trust PAD types instead of using PAD___XVS.
6448 * ada-lang.c (trust_pad_over_xvs): New static variable.
6449 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6450 parallel XVS type, follow the XVS type instead of the PAD type.
6451 (unwrap_value): Make sure that there is no parallel XVE type
6452 before returning the value as is.
6453 (set_ada_list, show_ada_list): New static variables.
6454 (set_ada_command, show_ada_command): New functions.
6455 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6456 Add new "set/show ada trust-PAD-over-XVS" setting.
6457
6458 2010-01-18 Tom Tromey <tromey@redhat.com>
6459 Thiago Jung Bauermann <bauerman@br.ibm.com>
6460
6461 Allow "source" to load python scripts.
6462 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6463 * python/python.c (source_python_script): New function.
6464 * python/python.h (source_python_script): Add declaration.
6465 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6466 (script_ext_off, script_ext_soft, script_ext_strict)
6467 (script_ext_enums, script_ext_mode): New static constants.
6468 (show_script_ext_mode, find_and_open_script): New functions.
6469 (source_script): Enhance to handle Python scripts.
6470 (init_cli_cmds): Add set/show script-extension commands.
6471
6472 2010-01-16 Stan Shebs <stan@codesourcery.com>
6473
6474 * tracepoint.h (struct trace_status): Use unsigned long long
6475 instead of size_t.
6476 * tracepoint.c (trace_status_command): Fix printf directive.
6477 (trace_save_command): Check fwrite returns, fix printf directive.
6478 (trace_filename): New global.
6479 (tfile_open): Set it, check read returns.
6480 (tfile_close): Free trace_filename.
6481 (tfile_get_traceframe_address): Check read returns.
6482 (tfile_trace_find): Ditto.
6483 (tfile_fetch_registers): Ditto.
6484 (tfile_xfer_partial): Ditto.
6485 (tfile_get_trace_state_variable_value): Ditto.
6486
6487 2010-01-15 Stan Shebs <stan@codesourcery.com>
6488
6489 Add trace file support.
6490 * tracepoint.h (enum trace_stop_reason): New enum.
6491 (struct trace_status): New struct.
6492 (parse_trace_status): Declare.
6493 (struct uploaded_tp): Move here from remote.c,
6494 add fields for actions.
6495 (struct uploaded_tsv): New struct.
6496 * tracepoint.c (tfile_ops): New target vector.
6497 (trace_fd): New global.
6498 (tfile_open): New function.
6499 (tfile_close): New function.
6500 (tfile_files_info): New function.
6501 (tfile_get_trace_status): New function.
6502 (tfile_get_traceframe_address): New function.
6503 (tfile_trace_find): New function.
6504 (tfile_fetch_registers): New function.
6505 (tfile_xfer_partial): New function.
6506 (tfile_get_trace_state_variable_value): New function.
6507 (init_tfile_ops): New function.
6508 (_initialize_tracepoint): Call it, add tfile target.
6509 (trace_status): New global.
6510 (current_trace_status): New function.
6511 (trace_running_p): Remove, change all users to get from
6512 current_trace_status()->running.
6513 (get_trace_status): Remove.
6514 (trace_status_command): Call target_get_trace_status directly,
6515 report more detail including tracing stop reasons.
6516 (trace_find_command): Always allow tfind on a file.
6517 (trace_find_pc_command): Ditto.
6518 (trace_find_tracepoint_command): Ditto.
6519 (trace_find_line_command): Ditto.
6520 (trace_find_range_command): Ditto.
6521 (trace_find_outside_command): Ditto.
6522 (trace_frames_offset, cur_offset): Declare as off_t.
6523 (trace_regblock_size): Rename from reg_size, update users.
6524 (parse_trace_status): New function.
6525 (tfile_interp_line): New function.
6526 (disconnect_or_stop_tracing): Ensure current trace
6527 status before asking what to do.
6528 (stop_reason_names): New global.
6529 (trace_save_command): New command.
6530 (get_uploaded_tp): Move here from remote.c.
6531 (find_matching_tracepoint): Ditto.
6532 (merge_uploaded_tracepoints): New function.
6533 (parse_trace_status): Use stop_reason_names.
6534 (_initialize_tracepoint): Define tsave command.
6535 * target.h (target_ops): New fields to_save_trace_data,
6536 to_upload_tracepoints, to_upload_trace_state_variables,
6537 to_get_raw_trace_data, change to_get_trace_status
6538 to take a pointer to a status struct.
6539 (target_save_trace_data): New macro.
6540 (target_upload_tracepoints): New macro.
6541 (target_upload_trace_state_variables): New macro.
6542 (target_get_raw_trace_data): New macro.
6543 * target.c (update_current_target): Add new methods, change
6544 signature of to_get_trace_status.
6545 * remote.c (hex2bin): Make globally visible.
6546 (bin2hex): Ditto.
6547 (remote_download_trace_state_variable): Download name also.
6548 (remote_get_trace_status): Update parameter, use
6549 parse_trace_status.
6550 (remote_save_trace_data): New function.
6551 (remote_upload_tracepoints): New function.
6552 (remote_upload_trace_state_variables): New function.
6553 (remote_get_raw_trace_data): New function.
6554 (remote_start_remote): Use them.
6555 (_initialize_remote_ops): Add operations.
6556 * ax-gdb.c: Include breakpoint.h.
6557 * breakpoint.c (create_tracepoint_from_upload): Use
6558 break_command_really, return tracepoint, warn about unimplemented
6559 parts.
6560 * NEWS: Mention trace file addition.
6561
6562 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6563
6564 Fix compilation warning on gcc-3.4.
6565 * exec.c (print_section_info): Move the `displacement' variable
6566 initialization to its declaration.
6567
6568 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6569
6570 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6571 comparison.
6572
6573 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6574
6575 "info tasks" broken by typedefs in ATCB type definitions.
6576 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6577 ada_check_typedef before retrieving the length of the type for
6578 regular fields.
6579
6580 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6581
6582 Do not use name-based lookup for unconstrained packed arrays.
6583 * ada-lang.c (find_parallel_type_by_descriptive_type):
6584 Limit the fallback to name-based lookups to the case where
6585 the type is a constrained packed array.
6586
6587 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6588
6589 Enhance gdb-gdb.py to handle main_type.type_specific.
6590 * gdb-gdb.py: Print the type-specific part of struct main_type.
6591
6592 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6593
6594 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6595 * configure: Regenerate.
6596 * config.in: Regenerate.
6597 * utils.c: Include sys/resource.h.
6598 (dump_core, can_dump_core): New.
6599 (internal_vproblem): Update the comment. Check can_dump_core while
6600 setting dump_core_p. Replace two abort calls by dump_core calls.
6601
6602 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6603 Eli Zaretskii <eliz@gnu.org>
6604
6605 * NEWS: Document the PIE support.
6606
6607 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6608
6609 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6610 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6611
6612 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6613
6614 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6615 Replace exec_entry_point call by bfd_get_start_address.
6616
6617 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6618
6619 Support Valgrind attachments broken by the PIE support.
6620 * auxv.c: Include gdbcore.h.
6621 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6622 parameters ops, object and annex. Remove their assertions.
6623 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6624 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6625 (memory_xfer_auxv): ... here.
6626 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6627 memory_xfer_auxv.
6628 * procfs.c (procfs_xfer_partial): Likewise.
6629 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6630 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6631 (svr4_solib_create_inferior_hook): Conditionalize the
6632 svr4_relocate_main_executable call.
6633
6634 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6635
6636 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6637 target_section. Find SECT in current_target_sections, gdb_assert it.
6638 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6639 New variable abfd.
6640 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6641 of separate debug info file.
6642
6643 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6644
6645 Support PIEs with no symfile_objfile.
6646 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6647 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6648
6649 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6650
6651 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6652 code part to ...
6653 (svr4_static_exec_displacement): ... a new function.
6654 (svr4_exec_displacement): New function.
6655 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6656 new_offsets using alloca now. Remove variable old_chain and changed.
6657 Call objfile_relocate unconditionally now.
6658
6659 2010-01-14 Doug Evans <dje@google.com>
6660
6661 * gdbtypes.c (arch_flags_type): Fix comment.
6662 * gdbtypes.h (arch_composite_type): Fix comment.
6663
6664 2009-01-14 Tristan Gingold <gingold@adacore.com>
6665
6666 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6667 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6668 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6669 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6670 macho_add_oso_symfile.
6671 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6672
6673 2010-01-14 Joel Brobecker <brobecker@adacore.com>
6674
6675 Tru64: Dead threads are never deleted.
6676 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6677 (dec_thread_count_gdb_threads): Fix counter increment.
6678 (dec_thread_add_gdb_thread): Fix *listp increment.
6679 (resync_thread_list): Fix bug in deletion of dead threads that
6680 caused all threads to be deleted, instead of just the dead ones.
6681
6682 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6683
6684 PR python/10705
6685
6686 * python/python-internal.h: Add lazy_string_object_type
6687 definition.
6688 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6689 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6690 * python/py-value.c (valpy_lazy_string): New function.
6691 (convert_value_from_python): Add lazy string conversion.
6692 * python/py-prettyprint.c (pretty_print_one_value): Check if
6693 return is also a lazy string.
6694 (print_string_repr): Add lazy string printing branch.
6695 (print_children): Likewise.
6696 * python/py-lazy-string.c: New file. Implement lazy strings.
6697 * python/python.c (_initialize_python): Call
6698 gdbpy_initialize_lazy_string.
6699 * varobj.c (value_get_print_value): Add lazy string printing
6700 branch. Account for encoding.
6701 * c-lang.c (c_printstr): Account for new encoding argument. If
6702 encoding is NULL, find encoding suited for type, otherwise use
6703 user encoding.
6704 * language.h (language_defn): Add encoding argument.
6705 (LA_PRINT_STRING): Likewise.
6706 * language.c (unk_lang_printstr): Update to reflect new encoding
6707 argument to language_defn.
6708 * ada-lang.h (ada_printstr): Likewise.
6709 * c-lang.h (c_printstr): Likewise.
6710 * p-lang.h (pascal_printstr);
6711 * f-lang.c (f_printstr): Likewise.
6712 * m2-lang.c (m2_printstr): Likewise.
6713 * objc-lang.c (objc_printstr): Likewise.
6714 * p-lang.c (pascal_printstr): Likewise.
6715 * scm-lang.c (scm_printstr): Likewise.
6716 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6717 encoding argument.
6718 * ada-valprint.c (ada_printstr): Likewise.
6719 * f-valprint.c (f_val_print): Likewise
6720 * m2-valprint.c (m2_val_print): Likewise.
6721 * p-valprint.c (pascal_val_print): Likewise.
6722 * expprint.c (print_subexp_standard): Likewise.
6723 * valprint.c (val_print_string): Likewise.
6724 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6725 (SUBDIR_PYTHON_SRCS): Likewise.
6726 (py-lazy-string.o): New rule.
6727
6728 2010-01-13 Doug Evans <dje@google.com>
6729
6730 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6731 uninitialized" warning from gcc on local `tree'.
6732
6733 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6734
6735 Implement core awareness.
6736
6737 * bcache.c (compare_ints): Remove
6738 (print_percentage): Use compare_positive_ints.
6739 * defs.h (compare_positive_ints): Declare.
6740 * linux-nat.h (struct lin_lwp): New field core.
6741 (linux_nat_core_of_thread_1): Declare.
6742 * linux-nat.c (add_lwp): Init the 'core' field.
6743 (linux_nat_wait_1): Record the core.
6744 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6745 (linux_nat_add_target): Register the above.
6746 * linux-thread-db.c (update_thread_core): New.
6747 (thread_db_find_new_threads): Update core information for
6748 every thread.
6749 * remote.c (struct private_thread_info): New.
6750 (free_private_thread_info, demand_private_info): New.
6751 (PACKET_qXfer_threads, use_osdata_threads): New.
6752 (struct thread_item, threads_parsing_context
6753 (start_thread, end_thread, thread_attributes)
6754 (thread_children, threads_children, threads_elements): New.
6755 (remote_threads_info): Try qXfer:threads before anything
6756 else.
6757 (remote_protocol_packets): Register qXfer:threads.
6758 (remote_open_1): Init use_osdata_threads.
6759 (struct stop_reply): New field 'core'.
6760 (remote_parse_stop_reply): Parse core number.
6761 (process_stop_reply): Record core number.
6762 (remote_xfer_partial): Handle qXfer:threads.
6763 (remote_core_of_thread): New.
6764 (init_remote_ops): Register remote_core_of_thread.
6765 (_initialize_remote): Register qXfer:read.
6766 * target.c (target_core_of_thread): New
6767 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
6768 (struct target_ops): New field to_core_of_threads.
6769 (target_core_of_thread): Declare.
6770 * gdbthread.h (struct thread_info): New field private_dtor.
6771 * thread.c (print_thread_info): Report the core.
6772 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
6773 * utils.c (compare_positive_ints): New.
6774 * features/threads.dtd: New.
6775 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
6776 * mi/mi-main.c (struct collect_cores_data, collect_cores)
6777 (do_nothing, free_vector_of_osdata_items)
6778 (splay_tree_int_comparator, free_splay_tree): New.
6779 (print_one_inferior_data): Implemented printing of selected
6780 inferiors. Collect and print cores.
6781 (output_cores): New.
6782 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
6783 thread groups together with --available.
6784
6785 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6786
6787 * configure: Regenerate (for _STRUCTURED_PROC).
6788
6789 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6790
6791 Delete dead function.
6792 * ada-lang.c (extract_string): Delete. No longer used.
6793
6794 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6795
6796 Fix -Wunused warning in dec-thread.c.
6797 * dec-thread.c (dec_thread_count_gdb_threads)
6798 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
6799
6800 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6801
6802 * ada-valprint.c (ada_print_floating): Remove trailing space.
6803
6804 2010-01-12 Joel Brobecker <brobecker@adacore.com>
6805
6806 Add support for DW_AT_GNAT_descriptive_type.
6807 * gdbtypes.h (enum type_specific_kind): New enum.
6808 (struct main_type) [type_specific_field]: New component.
6809 [type_specific]: Add new component "gnat_stuff".
6810 (struct gnat_aux_type): New type.
6811 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
6812 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
6813 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
6814 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
6815 (TYPE_SPECIFIC_FIELD): New macros.
6816 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
6817 type does not hold any cplus-specific data.
6818 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
6819 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
6820 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
6821 cplus-specific data.
6822 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
6823 Set new component TYPE_SPECIFIC_FIELD (type).
6824 (gnat_aux_default): New constant.
6825 (allocate_gnat_aux_type): New function.
6826 (init_type): Add initialization the type-specific stuff for
6827 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
6828 (print_gnat_stuff): New function.
6829 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
6830 specific data. Adjust code that prints the contents of the
6831 type-specific union using the TYPE_SPECIFIC_FIELD value.
6832 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
6833 the type cplus stuff for Ada types.
6834 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
6835 Error out if these routines are called with an Ada type.
6836 (read_structure_type, read_array_type, read_subrange_type):
6837 Add call to set_descriptive_type.
6838 (set_die_type): Initialize the gnat-specific data if necessary.
6839 (need_gnat_info, die_descriptive_type, set_descriptive_type):
6840 New functions.
6841 * ada-lang.c (decode_constrained_packed_array_type): Use
6842 decode_constrained_packed_array_type instead of doing a standard
6843 lookup to locate a parallel type.
6844 (find_parallel_type_by_descriptive_type): New function.
6845 (ada_find_parallel_type_with_name): New function.
6846 (ada_find_parallel_type): Reimplement using
6847 ada_find_parallel_type_with_name.
6848 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
6849 to check if type has a cplus stuff.
6850 * linespec.c (total_number_of_methods): Likewise.
6851 * mdebugread.c (new_type): Likewise.
6852
6853 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6854
6855 * NEWS: Document the 0b binary number prefix parsing.
6856
6857 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6858
6859 * objfiles.c (objfile_relocate1): Change the return type to int.
6860 Describe the new return value. Return non-zero if data changed.
6861 (objfile_relocate): New variable changed. Set it. Call
6862 breakpoint_re_set depending on CHANGED.
6863
6864 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 Implement binary numbers parsing.
6867 * c-exp.y (parse_number): New case 'b' and 'B'.
6868
6869 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6870 Tristan Gingold <gingold@adacore.com>
6871
6872 * solib.c (info_sharedlibrary_command): Replace
6873 objfile_has_partial_symbols and objfile_has_full_symbols calls by
6874 objfile_has_symbols.
6875
6876 2010-01-10 Joel Brobecker <brobecker@adacore.com>
6877
6878 * NEWS: Document the improvements made to the mips-irix port.
6879
6880 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6881
6882 Fix the documentation of valprint.c:value_print.
6883 * valprint.c (value_print): Update the function description to
6884 mention that the syntax of the output follows the current_language,
6885 not necessarily C.
6886
6887 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6888
6889 Fix displacement of separate debug info files.
6890 * objfiles.c (objfile_relocate): Rename to ...
6891 (objfile_relocate1): ... here and make it static. Extend the comment.
6892 (objfile_relocate): New function.
6893 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
6894 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
6895 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
6896 allocated using alloca.
6897 * symfile.c (copy_section_addr_info): Remove.
6898 (build_section_addr_info_from_objfile): Make it global. New variables
6899 addr_bit and mask, use them.
6900 * symfile.h (build_section_addr_info_from_objfile): New prototype.
6901 (copy_section_addr_info): Remove.
6902
6903 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6904
6905 Signal unwinder for mips-irix N32.
6906 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
6907 tramp-frame.h.
6908 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
6909 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
6910 (SIGCONTEXT_LO_OFF): New macros.
6911 (mips_irix_n32_tramp_frame_init): New function.
6912 (mips_irix_n32_tramp_frame): New static constant.
6913 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
6914
6915 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6916
6917 Breakpoint in shared library does not work on mips-irix.
6918 * procfs.c: #include "observer.h".
6919 (procfs_inferior_created): New function, moving here the code
6920 which unsets the syssgi syscall-exit notifications.
6921 (procfs_create_inferior): Remove the code which unsets the syssgi
6922 syscall-exit notifications. It is too early to do this here.
6923 (_initialize_procfs): Attach the procfs_inferior_created observer.
6924
6925 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6926
6927 Wrong return convention for arrays (mips-irix).
6928 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
6929 128 bits or smaller are returned the same way as structs
6930 and unions of the the same size.
6931
6932 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6933
6934 Cannot set the PC on mips-irix.
6935 * irix5-nat.c (fill_gregset): Check regno against the raw PC
6936 register number, no the cooked one.
6937
6938 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6939
6940 Error while loading core file on mips-irix.
6941 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
6942 if debugging from a core file.
6943
6944 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6945
6946 GDB hangs when attaching to process on mips-irix.
6947 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
6948 attaching to a process.
6949
6950 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6951
6952 Use the correct breakpoint instruction on mips-irix.
6953 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
6954 containing the correct breakpoint instruction to use on mips-irix.
6955 Use it when the osabi is GDB_OSABI_IRIX.
6956
6957 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6958
6959 -Wunused warning in procfs.c (mips-irix only).
6960 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
6961 throughout instead of using praddset and prdelset respectively.
6962
6963 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6964
6965 GDB crash while stepping into function.
6966 * infrun.c (handle_inferior_event): Refetch the current frame
6967 after handling what.main_action, in case that pointer became
6968 dangling.
6969
6970 2010-01-09 Joel Brobecker <brobecker@adacore.com>
6971
6972 Fix build failure of solaris-hosted cross debuggers.
6973 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
6974
6975 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
6976
6977 Fix build failure on sparc-solaris.
6978 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
6979
6980 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6981
6982 Move some symfile code into subroutines.
6983 * symfile.h (relative_addr_info_to_section_offsets)
6984 (addr_info_make_relative): New prototypes.
6985 * symfile.c (default_symfile_offsets): Move a part to ...
6986 (relative_addr_info_to_section_offsets): ... this new function.
6987 (default_symfile_offsets): Call it.
6988 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
6989 this part to ...
6990 (addr_info_make_relative): ... this new function.
6991
6992 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6993
6994 Add from_tty to solib_create_inferior_hook.
6995 * infcmd.c (post_create_inferior): Move solib_add after
6996 solib_create_inferior_hook. Pass from_tty to
6997 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
6998 0 from_tty and comment why.
6999 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7000 * linux-nat.c (linux_child_follow_fork): Likewise.
7001 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7002 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7003 from_tty.
7004 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7005 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7006 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7007 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7008 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7009 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7010 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7011 Pass it to svr4_so_ops.solib_create_inferior_hook.
7012 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7013 from_tty.
7014 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7015 solib_add.
7016 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7017 enable_break.
7018 * solib-target.c (solib_target_solib_create_inferior_hook): New
7019 parameter from_tty.
7020 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7021 it to ops->solib_create_inferior_hook.
7022 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7023 Move solib_add after solib_create_inferior_hook, call it now with
7024 from_tty as 0. New comment there.
7025 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7026 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7027 Likewise.
7028
7029 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7030
7031 Fix multiexec race.
7032 * infrun.c (handle_inferior_event): Use get_thread_regcache
7033 with events ptid, not get_current_regcache.
7034
7035 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7036
7037 GDB crash with empty executable name (MinGW).
7038 * source.c (openp): Add assert that parameter string is not NULL.
7039 if parameter string is an empty string, then return with a failure
7040 immediately.
7041
7042 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7043
7044 Get rid of support for VAX Floats.
7045 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7046 (ada_vax_float_print_function): Delete.
7047 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7048 (ada_vax_float_print_function): Delete.
7049 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7050 (ada_print_type): Remove support for VAX floats.
7051 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7052
7053 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7054
7055 * stabsread.c (read_args): Handle zero arguments.
7056
7057 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7058
7059 Cannot find in-tree libiconv.a after reconfigure.
7060 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7061 that we can use, then cache the path to this archive.
7062 * configure: Regenerate.
7063
7064 2010-01-07 Stan Shebs <stan@codesourcery.com>
7065
7066 Make tracepoint operations go through target vector.
7067 * target.h (enum trace_find_type): New enum.
7068 (struct target_ops): New fields to_trace_init,
7069 to_download_tracepoint, to_download_trace_state_variable,
7070 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7071 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7072 to_set_disconnected_tracing.
7073 (target_trace_init): New macro.
7074 (target_download_tracepoint): New macro.
7075 (target_download_trace_state_variable): New macro.
7076 (target_trace_start): New macro.
7077 (target_trace_set_readonly_regions): New macro.
7078 (target_get_trace_status): New macro.
7079 (target_trace_stop): New macro.
7080 (target_trace_find): New macro.
7081 (target_get_trace_state_variable_value): New macro.
7082 (target_set_disconnected_tracing): New macro.
7083 * target.c (update_current_target): Inherit and set defaults for
7084 tracepoint operations.
7085 * tracepoint.c (default_collect): Make globally visible.
7086 (target_is_remote): Remove, along with all calls.
7087 (tvariables_info): Call target_get_trace_state_variable_value.
7088 (remote_set_transparent_ranges): Remove.
7089 (trace_start_command): Call target_trace_init,
7090 target_download_tracepoint, etc.
7091 (download_tracepoint): Remove.
7092 (trace_stop_command): Simplify.
7093 (stop_tracing): Call target_trace_stop.
7094 (get_trace_status): Call target_get_trace_status.
7095 (trace_status_command): Add case for targets that cannot trace.
7096 (finish_tfind_command): Change to take numerical arguments, call
7097 target_trace_find.
7098 (trace_find_command): Update call to finish_tfind_command.
7099 (trace_find_pc_command): Ditto.
7100 (trace_find_tracepoint_command): Ditto.
7101 (trace_find_line_command): Ditto.
7102 (trace_find_range_command): Ditto.
7103 (trace_find_outside_command): Ditto.
7104 (set_disconnected_tracing_value): Call
7105 target_set_disconnected_tracing.
7106 * remote.c: Add protocol encoding bits from tracepoint.c.
7107 (trace_error): Move from tracepoint.c.
7108 (remote_get_noisy_reply): Ditto.
7109 (free_actions_list_cleanup_wrapper): Ditto.
7110 (free_actions_list): Ditto.
7111 (remote_trace_init): New function.
7112 (remote_download_tracepoint): New function.
7113 (remote_download_trace_state_variable): New function.
7114 (remote_trace_set_readonly_regions): New function.
7115 (remote_trace_start): New function.
7116 (remote_get_trace_status): New function.
7117 (remote_trace_stop): New function.
7118 (remote_trace_find): New function.
7119 (remote_download_trace_state_variable): New function.
7120 (remote_set_disconnected_tracing): New function.
7121 (init_remote_ops): Add tracepoint operations.
7122
7123 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7124
7125 2010-01-07 Tristan Gingold <gingold@adacore.com>
7126
7127 * symfile.c (build_section_addr_info_from_objfile): New function.
7128 (symbol_file_add_separate): Don't use offsets from objfile but
7129 built an addr info.
7130
7131 2010-01-06 Stan Shebs <stan@codesourcery.com>
7132
7133 Support disconnected tracing.
7134 * infcmd.c (detach_command): Ask whether to stop tracing.
7135 * cli/cli-cmds.c (quit_command): Ditto.
7136 * breakpoint.h (struct breakpoint): New field number_on_target.
7137 * breakpoint.c (create_tracepoint_from_upload): New function.
7138 (get_tracepoint_by_number_on_target): New function.
7139 * remote.c (struct remote): New field disconnected_tracing.
7140 (remote_disconnected_tracing_feature): New function.
7141 (remote_protocol_features): Add DisconnectedTracing.
7142 (struct uploaded_tp): New struct.
7143 (uploaded_tps): New global.
7144 (get_uploaded_tp): New function.
7145 (find_matching_tracepoint): New function.
7146 (remote_get_tracing_state): New function.
7147 (remote_start_remote): Call it.
7148 * tracepoint.c (disconnected_tracing): New global.
7149 (trace_start_command): Initialize number_on_target.
7150 (stop_tracing): New function, split out from...
7151 (trace_stop_command): Call stop_tracing.
7152 (get_trace_status): New function, split out from...
7153 (trace_status_command): Call get_trace_status, add info on
7154 disconnection behavior.
7155 (disconnect_or_stop_tracing): New function.
7156 (finish_tfind_command): Translate from number on target.
7157 (trace_find_tracepoint_command): Translate to number on target.
7158 (send_disconnected_tracing_value): New function.
7159 (set_disconnected_tracing): New function.
7160 (_initialize_tracepoint): Add disconnected-tracing variable.
7161 * NEWS: Mention disconnected tracing.
7162
7163 2010-01-06 Tristan Gingold <gingold@adacore.com>
7164
7165 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7166 parameter to main_objfile. Iterate on all separate debug objfiles.
7167 * symfile.h (symbol_file_add_separate)
7168 (find_separate_debug_file_by_debuglink): Remove parameter names.
7169 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7170 (reread_symbols): Use free_objfile_separate_debug.
7171 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7172 Adjust comment.
7173 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7174 (free_objfile_separate_debug): New prototypes.
7175 * objfiles.c (objfile_separate_debug_iterate): New function.
7176 (add_separate_debug_objfile, free_objfile_separate_debug): New
7177 functions.
7178 (free_objfile): Use free_objfile_separate_debug. Adjust for
7179 multiple separate debug objfile.
7180 (objfile_has_symbols): Adjust comment. Iterate on all separate
7181 debug objfiles.
7182 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7183 debug objfile.
7184 (lookup_minimal_symbol_text): Ditto.
7185 (lookup_minimal_symbol_by_pc_name): Ditto.
7186 (lookup_minimal_symbol_solib_trampoline): Ditto.
7187 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7188 debug objfiles.
7189
7190 2010-01-05 Stan Shebs <stan@codesourcery.com>
7191
7192 Add fast tracepoints.
7193 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7194 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7195 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7196 * breakpoint.c (tracepoint_type): New function.
7197 (ALL_TRACEPOINTS): Use it.
7198 (should_be_inserted): Ditto.
7199 (bpstat_check_location): Ditto.
7200 (print_one_breakpoint_location): Ditto.
7201 (user_settable_breakpoint): Ditto.
7202 (set_breakpoint_location_function): Ditto.
7203 (disable_breakpoints_in_shlibs): Ditto.
7204 (delete_trace_command): Ditto.
7205 (print_it_typical): Add bp_fast_tracepoint case.
7206 (bpstat_what): Ditto.
7207 (print_one_breakpoint_location): Ditto.
7208 (allocate_bp_location): Ditto.
7209 (mention): Ditto.
7210 (breakpoint_re_set_one): Ditto.
7211 (disable_command): Ditto.
7212 (enable_command): Ditto.
7213 (check_fast_tracepoint_sals): New function.
7214 (break_command_really): Call it.
7215 (ftrace_command): New function.
7216 (_initialize_breakpoint): Add ftrace command.
7217 * gdbarch.sh (fast_tracepoint_valid_at): New.
7218 * gdbarch.h, gdbarch.c: Regenerate.
7219 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7220 (i386_gdbarch_init): Use it.
7221 * remote.c (struct remote_state): New field fast_tracepoints.
7222 (PACKET_FastTracepoints): New packet config type.
7223 (remote_fast_tracepoint_feature): New function.
7224 (remote_protocol_features): Add FastTracepoints.
7225 (remote_supports_fast_tracepoints): New function.
7226 (_initialize_remote): Add FastTracepoints.
7227 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7228 * NEWS: Mention fast tracepoints.
7229
7230 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7231
7232 * gdb-gdb.py: New file.
7233
7234 2010-01-05 Michael Snyder <msnyder@vmware.com>
7235
7236 * infrun.c (handle_inferior_event): Fix typo in comment.
7237
7238 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7239
7240 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7241
7242 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7243
7244 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7245 and s390x-linux64.
7246 (s390-linux32-expedite): Define.
7247 (s390-linux64-expedite): Define.
7248 (s390x-linux64-expedite): Define.
7249 * features/s390-acr.xml: New file.
7250 * features/s390-fpr.xml: New file.
7251 * features/s390-core32.xml: New file.
7252 * features/s390-core64.xml: New file.
7253 * features/s390x-core64.xml: New file.
7254 * features/s390-linux32.xml: New file.
7255 * features/s390-linux64.xml: New file.
7256 * features/s390x-linux64.xml: New file.
7257 * features/s390-linux32.c: New generated file.
7258 * features/s390-linux64.c: New generated file.
7259 * features/s390x-linux64.c: New generated file.
7260
7261 * regformats/s390-linux32.dat: New generated file.
7262 * regformats/s390-linux64.dat: New generated file.
7263 * regformats/s390x-linux64.dat: New generated file.
7264 * regformats/reg-s390.dat: Remove.
7265 * regformats/reg-s390x.dat: Remove.
7266
7267 * s390-nat.c: Include "auxv.h" and <elf.h>.
7268 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7269 (s390_target_wordsize): New function.
7270 (s390_auxv_parse): Likewise.
7271 (s390_get_hwcap): Likewise.
7272 (s390_read_description): Likewise.
7273 (_initialize_s390_nat): Install s390_auxv_parse and
7274 s390_read_description.
7275
7276 * s390-tdep.c: Include "features/s390-linux32.c",
7277 "features/s390-linux64.c", and "features/s390x-linux64.c".
7278 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7279 (s390_register_call_saved): New function.
7280 (s390_register_name): Remove.
7281 (s390_register_type): Remove.
7282 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7283 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7284 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7285 (s390_pseudo_register_name): New function.
7286 (s390_pseudo_register_type): New function.
7287 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7288 Handle full GPR pesudos and varying pseudo register numbers.
7289 (s390_pseudo_register_write): Likewise
7290 (s390x_pseudo_register_read): Remove.
7291 (s390x_pseudo_register_write): Likewise.
7292 (s390_register_group): Remove.
7293 (s390_pseudo_register_group): New function.
7294 (s390_regmap_gregset): Add GPR upper halves.
7295 (s390x_regmap_gregset): Likewise.
7296 (s390_regmap_fpregset): Likewise.
7297 (s390_regmap_upper): New global variable.
7298 (s390_upper_regset): New global variable.
7299 (s390_upper_regset_sections): New global variable.
7300 (s390_regset_from_core_section): Handle GPR upper halves.
7301 (s390_core_read_description): New function.
7302 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7303 register information. Handle varying pseudo register numbers.
7304 (s390_backchain_frame_unwind_cache): Likewise.
7305 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7306 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7307 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7308 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7309 Handle varying pseudo register numbers.
7310 (s390_unwind_pc): Handle varying pseudo register numbers.
7311 (s390_dwarf2_prev_register): New function.
7312 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7313 register information. Handle varying pseudo register numbers.
7314 Install s390_dwarf2_prev_register to unwind full GPRs.
7315 (s390_gdbarch_init): Handle target descriptions. Assign varying
7316 pseudo register numbers. Install s390_adjust_frame_regnum.
7317 (_initialize_s390_tdep): Initialize target descriptions.
7318
7319 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7320 (S390_NUM_REGS): Redefine to include upper half registers.
7321 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7322 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7323 (tdesc_s390_linux32): Add declaration.
7324 (tdesc_s390_linux64): Likewise.
7325 (tdesc_s390x_linux64): Likewise.
7326
7327 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7328
7329 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7330 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7331 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7332 (ppc_linux_vmx_regset_sections): Likewise.
7333 (ppc_linux_fp_regset_sections): Likewise.
7334
7335 * corelow.c (get_core_register_section): Constify arguments.
7336 (get_core_registers): Use gdbarch_core_regset_sections instead
7337 of hard-coded platform-specific register section names.
7338
7339 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7340
7341 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7342 a register, assume the least-significant part is used.
7343 (write_pieced_value): Likewise.
7344
7345 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7346
7347 * printcmd.c: Include "arch-utils.h".
7348 (do_one_display): Re-parse expression if current architecture changed.
7349
7350 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7351 Joel Brobecker <brobecker@adacore.com>
7352
7353 * gdbtypes.c (check_typedef): New comment on type length.
7354 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7355 comment on type length.
7356 (value_primitive_field): Keep the original TYPE value, new comment.
7357
7358 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7359
7360 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7361 p_start. Change != comparisons to > and < comparisons.
7362
7363 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7364
7365 * cli/cli-script.c (process_next_line): Check P2 overrun.
7366
7367 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7368
7369 Update the copyright hearder to add year 2010 for most GDB files.
7370
7371 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7372
7373 Fix build failure in inf-ptrace.c.
7374 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7375
7376 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7377
7378 * top.c (print_gdb_version): Update copyright year.
7379
7380 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7381
7382 Fix break *FUN'address thread NUM.
7383 * ada-lex.l (task): Expand rule to also match the thread keyword.
7384
7385 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7386
7387 Fix break *FUN'address task NUM.
7388 * ada-lex.l (task): New rule.
7389 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7390 been built before using it.
7391
7392 For older changes see ChangeLog-2009.
7393 \f
7394 Local Variables:
7395 mode: change-log
7396 left-margin: 8
7397 fill-column: 74
7398 version-control: never
7399 coding: utf-8
7400 End:
This page took 0.185038 seconds and 4 git commands to generate.