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