* ada-lang.h (ada_convert_actual): Add GDBARCH argument.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4a399546
UW
12009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * ada-lang.h (ada_convert_actual): Add GDBARCH argument.
4 * ada-lang.c (convert_actual): Remove stale prototype.
5 (ensure_lval, make_array_descriptor, ada_convert_actual):
6 Add GDBARCH argument and pass through to subroutine calls.
7 (ensure_lval): Use GDBARCH instead of current_gdbarch.
8 * infcall.c (value_arg_coerce): Update ada_convert_actual call.
9
30b15541
UW
102009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
11
12 * ada-lang.c (resolve): Use per-architecture void type instead
13 of platform-independent one.
14 (ada_evaluate_subexp) [STRUCTOP_STRUCT]: Likewise.
15 (ada_resolve_function): Reimplement fallback logic to avoid
16 explicit reference to builtin_type_void.
17
7c964f07
UW
182009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
19
20 * ada-valprint.c (ada_print_scalar): Accept NULL type argument
21 to indicate scalar should be printed as default integer.
22 (print_optional_low_bound): Pass NULL to ada_print_scalar to
23 indicate default integer output.
24 * ada-typeprint.c (print_range, print_range_bound): Likewise.
25 (print_choices): Likewise. Thus, accept NULL as val_type.
26 * ada-lang.c (ada_variant_discrim_type): Return NULL when failed
27 to look up controlling discriminant name.
28
1ce677a4
UW
292009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
30
31 * ada-lang.c (to_fixed_range_type): Add ORIG_TYPE argument.
32 Fall back to orig_type as index type if symbol lookup fails.
33 Allocate result types from ORIG_TYPE's objfile.
34 (ada_array_bound_from_type, to_fixed_array_type,
35 ada_evaluate_subexp): Pass original index type to
36 to_fixed_range_type. Do not pass objfile.
37
38 * ada-typeprint.c (print_range_type_named): Add ORIG_TYPE argument.
39 Fall back to orig_type as index type if symbol lookup fails.
40 (print_array_type, ada_print_type): Pass original index type
41 to print_range_type_named.
42
dd19d49e
UW
432009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
44
45 * ada-lang.c (ada_index_type): Update comment.
46
1eea4ebd
UW
472009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
48
49 * ada-lang.c (ada_index_type): Make static. Add NAME argument.
50 Throw error on invalid input arguments. Return NULL if unable
51 to determine index type.
52
53 (ada_array_bound_from_type): Remove TYPEP argument.
54 (ada_array_bound): Make static. Return LONGEST instead of value.
55 Update for ada_array_bound_from_type change.
56 (ada_array_length): Return LONGEST instead of value.
57 Update for ada_array_bound_from_type change.
58 (make_array_descriptor): Update for ada_array_bound change.
59
60 (ada_evaluate_subexp) [OP_ATR_RANGE, OP_ATR_FIRST, OP_ATR_LAST,
61 OP_ATR_LENGTH]: Update for ada_array_bound_from_type,
62 ada_array_bound, ada_array_length, ada_index_type changes.
63 Always use ada_index_type to compute result type; fall back
64 to architecture-specific integer type if ada_index_type fails.
65
66 * ada-lang.h (ada_index_type): Remove prototype.
67 (ada_array_bound): Likewise.
68
578933ab
PA
692009-06-29 Pedro Alves <pedro@codesourcery.com>
70
71 * dbxread.c (read_dbx_symtab): Clear has_line_numbers when ending
72 a psymtab.
73
6bc80edc
TT
742009-06-29 Tom Tromey <tromey@redhat.com>
75
76 * README: Mention parallel check.
77
794684b6
SW
782009-06-29 Sami Wagiaalla <swagiaal@redhat.com>
79
80 * dwarf2read.c (read_import_statement): Properly set import location
81 and destination.
82 * cp-support.h (cp_add_using, cp_add_using_directive): Now take char*
83 inner, char* outer arguments. Updated callers.
84
2497b498
UW
852009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
86
87 * value.h (value_subscript, value_subscripted_rvalue,
88 value_bitstring_subscript, value_ptradd): Use LONGEST instead
89 of value as type of the index argument.
90 (value_ptrsub): Remove.
91 * valarith.c (value_subscript, value_subscripted_rvalue,
92 value_bitstring_subscript, value_ptradd): Use LONGEST instead
93 of value as type of the index argument.
94 (value_ptrsub): Remove.
95
96 * wrapper.h (gdb_value_subscript): Use LONGEST instead of
97 value as type of the index argument.
98 * wrapper.c (gdb_value_subscript): Likewise.
99
100 Update calls to gdb_value_subscript, value_subscript,
101 value_subscripted_rvalue, value_bitstring_subscript and
102 value_ptradd to use LONGEST instead of value as index
103 argument type. Use value_ptradd instead of value_ptrsub.
104 * ada-lang.c (ada_value_subscript, ada_value_ptr_subscript,
105 ada_tag_name_2): Update.
106 * ada-tasks.c (read_atcb): Update.
107 * eval.c (evaluate_subexp_standard): Update.
108 * valarith.c (value_subscript): Update.
109 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Update.
110 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
111 gnuv3_method_ptr_to_value): Update.
112 * jv-lang.c (evaluate_subexp_java): Update.
113 * m2-lang.c (evaluate_subexp_modula2): Update.
114 * python/python-value.c (valpy_getitem, valpy_binop): Update.
115 * wrapper.c (gdb_value_subscript): Update.
116 * varobj.c (c_describe_child): Update.
117
0c8b41f1
UW
1182009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
119
120 * gdbtypes.h (make_function_type): Remove OBJFILE parameter.
121 * gdbtypes.c (make_function_type): Remove OBJFILE parameter.
122 (lookup_function_type): Update call.
123 * stabsread.c (read_type): Likewise.
124 * dwarf2read.c (read_subroutine_type): Use lookup_function_type
125 instead of make_function_type.
126 * jv-lang.c (type_from_class): Likewise. Do not allocate types
127 on the fake "dynamics" obstack.
128
46bf5051
UW
1292009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
130
131 * gdbtypes.h (struct builtin_type): Remove builtin_core_addr,
132 nodebug_text_symbol, nodebug_data_symbol, nodebug_unknown_symbol,
133 and nodebug_tls_symbol members.
134 (struct objfile_type): New data structure.
135 (objfile_type): Add prototype.
136 * gdbtypes.c (gdbtypes_post_init): Remove initialization code
137 for types no longer in struct builtin_type.
138 (objfile_type_data): New static variable.
139 (_initialize_gdbtypes): Initialize it.
140 (objfile_type): New function.
141
142 * gdbtypes.h (builtin_type_error): Remove.
143 * gdbtypes.c (build_complex): Do not use builtin_type_error.
144 * symtab.c (builtin_type_error): Remove.
145 (_initialize_symtab): Remove initialization.
146
147 * stabsread.c (dbx_lookup_type, define_symbol, error_type,
148 rs6000_builtin_type, read_range_type): Use per-objfile types
149 instead of global or per-architecture builtin types.
150 * coffread.c (decode_type): Likewise.
151 * dwarf2read.c (read_array_type, read_tag_string_type,
152 new_symbol, die_type): Likewise.
153 * mdebugread.c (parse_symbol, basic_type, upgrade_type,
154 parse_procedure, psymtab_to_symtab_1): Likewise.
155 * xcoffread.c (process_xcoff_symbol): Likewise.
156 * parse.c (write_exp_msymbol): Likewise.
157
158 * stabsread.c (rs6000_builtin_type_data): New static variable.
159 (_initialize_stabsread): Initialize it.
160 (rs6000_builtin_type): Add OBJFILE argument. Allocate builtin
161 types per-objfile instead of globally.
162
163 * stabsread.c (dbx_lookup_type): Add OBJFILE argument. Use it
164 instead of current_objfile; pass it to rs6000_builtin_type.
165 (dbx_alloc_type, read_type, read_range_type): Update calls.
166 (cleanup_undefined_types_noname): Add OBJFILE argument and
167 pass it to dbx_lookup_type.
168 (cleanup_undefined_types): Add OBJFILE argument and pass it
169 to cleanup_undefined_types_noname.
170 * stabsread.h (cleanup_undefined_types): Add OBJFILE argument.
171 * buildsym.c (end_symtab): Update call.
172
b08f1e8d
UW
1732009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
174
175 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
176 target_gdbarch instead of current_gdbarch.
177
6d10c194
UW
1782009-06-29 Ulrich Weigand <uweigand@de.ibm.com>
179
180 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-windows-tdep.o.
181 (ALL_TARGET_OBS): Add moxie-tdep.o, i386-darwin-tdep.o, and
182 solib-darwin.o.
183
184 * configure.tgt: Add comment.
185
9901a55b
PP
1862009-06-28 Paul Pluzhnikov <ppluzhnikov@google.com>
187
188 * mi/mi-cmds.c (mi_cmds): Remove unimplemented entries.
189
edb3359d
DJ
1902009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
191 Jan Kratochvil <jan.kratochvil@redhat.com>
192
193 * NEWS: Document inlined function support.
194 * Makefile.in (SFILES): Add inline-frame.c.
195 (COMMON_OBS): Add inline-frame.o.
196 * block.c (contained_in): Rewrite to use lexical nesting.
197 (block_linkage_function): Skip inlined function blocks.
198 (block_inlined_p): New.
199 * block.h (struct block): Update comment.
200 (block_inlined_p): New prototype.
201 * blockframe.c (get_frame_block): Handle inlined functions.
202 (get_frame_function): Do not use block_linkage_function.
203 (block_innermost_frame): Use get_frame_block and contained_in.
204 * breakpoint.c (watchpoint_check): Remove extra reinit_frame_cache.
205 Skip over inlined functions. Simplify epilogue check.
206 (bpstat_check_breakpoint_conditions): Use get_stack_frame_id.
207 Update comments.
208 (set_momentary_breakpoint): Only accept non-inlined frames.
209 (watch_command_1): Use frame_unwind_caller_pc and
210 frame_unwind_caller_id instead of get_prev_frame.
211 (until_break_command): Likewise. Use get_stack_frame_id.
212 * buildsym.c (end_symtab): Set SYMBOL_SYMTAB for block functions.
213 * dwarf2loc.c (dwarf_expr_frame_base): Use block_linkage_function.
214 * dwarf2read.c (process_die): Handle DW_TAG_inlined_subroutine.
215 (read_func_scope, new_symbol): Likewise. Handle arguments specially
216 for inlined functions without call site information.
217 (inherit_abstract_dies): Allow tag mismatch for inlined subroutines.
218 (die_specification): Treat DW_AT_abstract_origin as a specification.
219 (read_type_die): Handle DW_TAG_inlined_subroutine.
220 * frame-unwind.c (frame_unwind_init): Add inline_frame_unwind.
221 * frame.c (fprint_frame_id): Print inline depth.
222 (fprint_frame_type): Handle INLINE_FRAME and SENTINEL_FRAME.
223 (skip_inlined_frames, get_stack_frame_id): New.
224 (frame_unwind_caller_id): Use skip_inlined_frames.
225 (frame_id_inlined_p): New.
226 (frame_id_eq): Make the logic match the comments. Add inline_depth
227 check.
228 (frame_id_inner): Handle inlined functions.
229 (frame_unwind_pc): New function, copied from frame_unwind_caller_pc.
230 (frame_unwind_caller_pc): Use skip_inlined_frames and frame_unwind_pc.
231 (get_prev_frame_1): Check for inline frames. Split out frame
232 allocation to get_prev_frame_raw.
233 (get_prev_frame_raw): New function.
234 (get_prev_frame): Handle inline frames.
235 (get_frame_pc): Use frame_unwind_pc.
236 (get_frame_address_in_block): Skip inlined frames on both sides.
237 (pc_notcurrent): Delete.
238 (find_frame_sal): Rewrite to handle inline call sites. Use
239 get_frame_address_in_block.
240 (deprecated_update_frame_pc_hack): Make static.
241 * frame.h: Update comments.
242 (struct frame_id): Add inline_depth.
243 (enum frame_type): Add INLINE_FRAME.
244 (frame_id_inlined_p, get_stack_frame_id): New prototypes.
245 * gdbthread.h (struct thread_info): Add step_stack_frame_id field.
246 * infcmd.c (set_step_frame): New function.
247 (step_once): Use set_step_frame. Handle inlined functions.
248 (until_next_command): Use set_step_frame.
249 (finish_backward), finish_forward): Use get_stack_frame_id.
250 (finish_command): Support inlined functions.
251 * inferior.h (set_step_info): New prototype.
252 * infrun.c (RESUME_ALL): Use minus_one_ptid.
253 (clear_proceed_status): Clear step_stack_frame_id.
254 (init_wait_for_inferior): Call clear_inline_frame_state.
255 (init_execution_control_state): Make static.
256 (set_step_info): New function.
257 (init_thread_stepping_state): Do not set the symtab or line here.
258 (stepped_in_from): New function.
259 (handle_inferior_event): Handle inlined functions. Use set_step_info.
260 (insert_step_resume_breakpoint_at_frame): Use get_stack_frame_id.
261 (struct inferior_status): Add step_stack_frame_id.
262 (save_inferior_status, restore_inferior_status): Save and restore
263 step_stack_frame_id.
264 * inline-frame.c, inline-frame.h: New files.
265 * minsyms.c (prim_record_minimal_symbol_and_info): Use XCALLOC.
266 * regcache.c (regcache_write_pc): Call reinit_frame_cache.
267 * s390-tdep.c (s390_prologue_frame_unwind_cache): Handle INLINE_FRAME.
268 * stack.c (frame_show_address): New.
269 (print_frame_info, print_frame): Use it.
270 (find_frame_funname): Use get_frame_function. Handle inlined blocks.
271 (frame_info): Mark inlined functions.
272 (backtrace_command_1): Use get_current_user_frame.
273 (print_frame_local_vars, print_frame_label_vars): Update comments.
274 (return_command): Refuse inlined functions.
275 * symtab.c (lookup_symbol_aux_local): Stop at inlined function
276 boundaries.
277 (find_function_start_sal): Avoid inlined functions.
278 (completion_list_add_fields): New function.
279 (default_make_symbol_completion_list): Use it. Use block_static_block
280 and block_global_block. Check for inlined functions.
281 (skip_prologue_using_sal): Avoid line number comparison across
282 inlining.
283 * symtab.h (struct symbol): Add is_inlined.
284 (SYMBOL_INLINED): New.
285 * target.c (target_resume): Call clear_inline_frame_state.
286 * valops.c (value_of_variable): Check block_inlined_p.
287
c7ce8faa
DJ
2882009-06-27 Daniel Jacobowitz <dan@codesourcery.com>
289
290 * frame.c (frame_unwind_id): Renamed to ...
291 (frame_unwind_caller_id): ... this. All callers updated.
292 (frame_pc_unwind): Renamed to ...
293 (frame_unwind_caller_pc): ... this. All callers updated.
294 * frame.h: Document frame_unwind_caller_WHAT functions.
295 (frame_unwind_id): Renamed to ...
296 (frame_unwind_caller_id): ... this.
297 (frame_pc_unwind): Renamed to ...
298 (frame_unwind_caller_pc): ... this.
299 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment.
300 * stack.c (parse_frame_specification_1): Do not rely on
301 frame_unwind_id.
302
388a8562
MS
3032009-06-27 Michael Snyder <msnyder@vmware.com>
304
305 * infrun.c (handle_inferior_event): Improve handling of
306 reverse-stepping into and over shared library functions.
307
f3a5f1de
KO
3082009-06-25 Karen Osmond <karen.osmond@gmail.com>
309
310 * linespec.c (find_method): Add new not_found_ptr parameter to
311 bring in line with symtab_from_filename, decode_variable.
312 (decode_compound): Likewise. Also propagate not_found_ptr to
313 find_method.
314 (decode_line_1): Propagate not_found_ptr to decode_compound.
315 (cplusplus_error): Now throws NOT_FOUND_ERROR.
316
123e3958
KO
3172009-06-25 Karen Osmond <karen.osmond@gmail.com>
318
319 * MAINTAINERS (Write After Approval): Add self.
320
4e608b4f
UW
3212009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
322
323 * valops.c (value_one): Reimplement broken decimal-float case.
324
34e13b5b
UW
3252009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
326
327 * eval.c (evaluate_subexp_standard): Use expression architecture
328 instead of current_gdbarch.
329
330 * infrun.c (handle_inferior_event): Avoid unncessary reference
331 to current_gdbarch and get_current_frame ().
332
0fd8e87f
UW
3332009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
334
335 * breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
336 (enum bptype): Add bp_longjmp_master.
337
338 * breakpoint.c (create_longjmp_master_breakpoint): New function.
339 (update_breakpoints_after_exec): Handle bp_longjmp_master
340 breakpoints. Call create_longjmp_master_breakpoint.
341 (print_it_typical, bpstat_stop_status, bpstat_what,
342 print_one_breakpoint_location, allocate_bp_location, mention,
343 delete_command, breakpoint_re_set_one): Handle bp_longjmp_master.
344 (breakpoint_re_set): Call create_longjmp_master_breakpoint.
345 (create_longjmp_breakpoint): Delete.
346 (set_longjmp_breakpoint): Add THREAD argument. Reimplement
347 to install momentary clones of bp_longjmp_master breakpoints.
348
349 * infcmd.c (step_1): Pass thread to set_longjmp_breakpoint.
350
ca5f395d
CC
3512009-06-23 Cary Coutant <ccoutant@google.com>
352
353 * dwarf2read.c (dwarf_decode_lines): Ignore rows where is_stmt is 0.
354 Set basic_block to 0 after a special opcode.
355
5b2ab461
JK
3562009-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
357
358 Fix a regression by the mmap patch from 2009-06-16.
359 * symfile.c (reread_symbols): Move sym_finish and clear_objfile_data
360 calls before deleting the OBJFILE obstack. Extend the comment.
361
45d5d5ca
UW
3622009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
363
364 * jv-lang.h (JAVA_OBJECT_SIZE): Remove.
365 (get_java_object_header_size): Add GDBARCH parameter.
366 * jv-lang.c (get_java_object_header_size): Add GDBARCH parameter.
367 Use it instead of current_gdbarch.
368 (evaluate_subexp_java): Replace JAVA_OBJECT_SIZE with call to
369 get_java_object_header_size.
370 * jv-valprint.c (java_value_print): Likewise.
371
27aa8d6a
SW
3722009-06-23 Sami Wagiaalla <swagiaal@redhat.com>
373
01fc9d36
TG
374 * dwarf2read.c (process_die): Handle import statements
375 (DW_TAG_imported_declaration, case DW_TAG_imported_module)
376 (read_import_statement): New.
377 (read_func_scope): Update using_directives to point to current context
378 (read_lexical_block_scope): Ditto.
379 * cp-support.h: Added prototype for cp_add_using.
380 * cp-namespace.c: Removed local context_stack.
381 (cp_initialize_namespace): Deleted.
382 (cp_finalize_namespace): Deleted.
383 (cp_add_using_directive): Use using_directives instead of using_list.
384 (cp_add_using): No longer static.
385 * buildsym.h: Created global using_direct variable.
386 Created using_direct variable in context_stack.
387 * buildsym.c (finish_block): Set using directives for the block under
388 construction.
389 (start_symtab): Removed call to cp_initialize_namespace().
390 (end_symtab): Removed call to cp_finalize_namespace().
391 (push_context): Save and reset using_directives.
392 * block.c (block_using): Return using directives for given
393 block instead of static block.
27aa8d6a 394
ad068eab
UW
3952009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
396
397 * target-descriptions.h (struct type): Do not declare.
398 (struct tdesc_type): Declare.
399 (tdesc_named_type): Change return type to struct tdesc_type *.
400 (tdesc_record_type): Remove.
401 (tdesc_create_vector): Add prototype.
402 (tdesc_create_union): Likewise.
403 (tdesc_add_field): Likewise.
404
405 * target-descriptions.c (struct tdesc_reg): Replace gdb_type
406 member by tdesc_type member.
407 (struct tdesc_type_field, tdesc_type_field): Add type and vector def.
408 (struct tdesc_type, tdesc_type_p): Likewise.
409 (struct tdesc_arch_reg, tdesc_arch_reg): Likewise.
410 (struct tdesc_feature): Change type of "types" to VEC(tdesc_type_p).
411 (struct tdesc_arch_data): Replace registers member by arch_regs.
412
413 (tdesc_predefined_types): Change to array of pre-defined
414 struct tdesc_type structures. Add "code_ptr" and "data_ptr".
415 (tdesc_named_type): Return struct tdesc_type * instead of GDB type.
416 (tdesc_gdb_type): New function.
417
418 (target_find_description): Update for data structure changes.
419 (tdesc_data_cleanup): Likewise.
420 (tdesc_numbered_register): Likewise.
421 (tdesc_use_registers): Likewise.
422 (tdesc_create_reg): Likewise.
423
424 (tdesc_find_arch_register): New function.
425 (tdesc_find_register): Use it.
426 (tdesc_register_type): Use tdesc_gdb_type to generate GDB type from
427 tdesc_type on demand; cache generated types in tdesc_arch_reg.
428
429 (tdesc_free_type): New function.
430 (tdesc_free_feature): Call it.
431
432 (tdesc_create_vector): New function.
433 (tdesc_create_union): Likewise.
434 (tdesc_add_field): Likewise.
435 (tdesc_record_type): Remove.
436
437 (tdesc_type_id): Remove.
438 (maint_print_c_tdesc_cmd): Update for data structure changes. Update
439 generated code to create tdesc_type structures instead of GDB types.
440
441 * xml-tdesc.c: Do not include "gdbtypes.h".
442 (struct tdesc_parsing_data): Change type of current_union to
443 struct tdesc_type *.
444 (tdesc_start_reg): Do not special-case "code_ptr" or "data_ptr".
445 (tdesc_start_union): Call tdesc_create_union.
446 (tdesc_start_field): Call tdesc_add_field.
447 (tdesc_start_vector): Call tdesc_create_vector.
448 (tdesc_end_union): Remove.
449 (feature_children): Remove reference to tdesc_end_union.
450
451 * features/arm-with-iwmmxt.c: Regenerate.
452 * features/mips-linux.c: Regenerate.
453 * features/mips64-linux.c: Regenerate.
454 * features/rs6000/powerpc-32.c: Regenerate.
455 * features/rs6000/powerpc-32l.c: Regenerate.
456 * features/rs6000/powerpc-403.c: Regenerate.
457 * features/rs6000/powerpc-403gc.c: Regenerate.
458 * features/rs6000/powerpc-505.c: Regenerate.
459 * features/rs6000/powerpc-601.c: Regenerate.
460 * features/rs6000/powerpc-602.c: Regenerate.
461 * features/rs6000/powerpc-603.c: Regenerate.
462 * features/rs6000/powerpc-604.c: Regenerate.
463 * features/rs6000/powerpc-64.c: Regenerate.
464 * features/rs6000/powerpc-64l.c: Regenerate.
465 * features/rs6000/powerpc-7400.c: Regenerate.
466 * features/rs6000/powerpc-750.c: Regenerate.
467 * features/rs6000/powerpc-860.c: Regenerate.
468 * features/rs6000/powerpc-altivec32.c: Regenerate.
469 * features/rs6000/powerpc-altivec32l.c: Regenerate.
470 * features/rs6000/powerpc-altivec64.c: Regenerate.
471 * features/rs6000/powerpc-altivec64l.c: Regenerate.
472 * features/rs6000/powerpc-e500.c: Regenerate.
473 * features/rs6000/powerpc-e500l.c: Regenerate.
474 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
475 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
476 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
477 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
478 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
479 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
480 * features/rs6000/powerpc-vsx32.c: Regenerate.
481 * features/rs6000/powerpc-vsx32l.c: Regenerate.
482 * features/rs6000/powerpc-vsx64.c: Regenerate.
483 * features/rs6000/powerpc-vsx64l.c: Regenerate.
484 * features/rs6000/rs6000.c: Regenerate.
485
284614f0
JB
4862009-06-23 Joel Brobecker <brobecker@adacore.com>
487
488 * ada-lang.c (decode_packed_array): If the value is a pointer to
489 an array, then use value_ind to dereference it, not ada_value_ind.
490 (ada_template_to_fixed_record_type_1): Handle the case where a
491 dynamic field is an aligner type.
492 (to_fixed_array_type): Add handling for packed array types.
493 (ada_get_base_type): Do not follow the XVS type if the type is
494 an aligner type.
495 (ada_evaluate_subexp): Split a few statements up for clarity
496 and debuggability.
497 <OP_FUNCALL>: Add handling of the case of a packed array that
498 has already been fixed.
499
4b27a620
JB
5002009-06-23 Joel Brobecker <brobecker@adacore.com>
501
502 * ada-lang.c (evaluate_subexp): Delete. Use the version from eval.c.
503 (evaluate_subexp_type): Reimplement using evaluate_subexp.
504 * value.h (evaluate_subexp): Add declaration.
505 * eval.c (evaluate_subexp): Make non-static.
506 * objc-lang.c (print_object_command): Use evaluate_subexp.
507
69de3c6a
PP
5082009-06-23 Paul Pluzhnikov <ppluzhnikov@google.com>
509
510 Revert 2009-05-14 breakpoint commit (no longer needed).
511 * breakpoint.h (breakpoint_re_set_objfile): Remove
512 * breakpoint.c (breakpoint_re_set_objfile): Likewise
513 (create_overlay_event_breakpoint): Remove objfile parameter,
514 iterate over all objfiles.
515 * objfiles.c (objfile_relocate): Update.
516 * symfile.c (new_symfile_objfile): Likewise.
517
85e306ed
TT
5182009-06-23 Tom Tromey <tromey@redhat.com>
519
520 PR gdb/10309:
521 * c-lang.c (classify_type): Iterate over typedefs.
522 * c-valprint.c (textual_element_type): Iterate over typedefs.
523
7bd06e87
TG
5242009-06-22 Tristan Gingold <gingold@adacore.com>
525
526 * darwin-nat.c (darwin_xfer_partial): Use host_address_to_string
527 instead of "%p".
528
07e7f39f
JK
5292009-06-22 Jan Kratochvil <jan.kratochvil@redhat.com>
530
531 PR gdb/9988:
532 * buildsym.c (block_compar): New function.
533 (end_symtab): Replace the bubble sort by a qsort based code.
534
5352009-06-22 Sami Wagiaalla <swagiaal@redhat.com>
f667014e
SW
536
537 * MAINTAINERS (Write After Approval): Add self.
538
6e3f70d7
UW
5392009-06-22 Ulrich Weigand <uweigand@de.ibm.com>
540
541 * spu-tdep.c (spu_get_longjmp_target): New function.
542 (spu_gdbarch_init): Install it.
543
df4b58fe
L
5442009-06-22 H.J. Lu <hongjiu.lu@intel.com>
545
546 PR server/10306
547 * remote.c (getpkt_or_notif_sane_1): Initialize val to -1.
548
a49f981f
MS
5492009-06-21 Michael Snyder <msnyder@vmware.com>
550
551 * inferior.h: Update ancient comment.
552
0763ab81
PA
5532009-06-20 Aleksandar Ristovski <aristovski@qnx.com>
554 Pedro Alves <pedro@codesourcery.com>
555
556 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Avoid dereferencing
557 NULL pointer.
558 (scan_dyntag): Skip if input bfd isn't elf flavoured.
559 (locate_base): Call elf_locate_base even without an exec_bfd.
560
5d2c29b8
TT
5612009-06-19 Samuel Bronson <naesten@gmail.com>
562
121e16b5 563 PR cli/9903:
5d2c29b8
TT
564 * cli/cli-decode.c (apropos_cmd): Skip traversing abbreviations
565 for prefix commands to avoid duplicates in the output.
566
4a98be19
TT
5672009-06-19 Samuel Bronson <naesten@gmail.com>
568
121e16b5 569 PR cli/9903:
4a98be19
TT
570 * cli/cli-decode.c (apropos_cmd): Fix avoidance of double
571 printing.
572
3daf8fe5
JG
5732009-06-19 Jerome Guitton <guitton@adacore.com>
574
575 * breakpoint.c (expand_line_sal_maybe): When explicit_line,
576 skip prologue on each sals.
577 (skip_prologue_sal): Return explicit_line and explicit_pc
578 unmodified.
579
bb00b29d
TG
5802009-06-19 Tristan Gingold <gingold@adacore.com>
581
8e54f210
TG
582 * darwin-nat.c (_initialize_darwin_inferior): Remove commented-out
583 line.
584
5852009-06-19 Tristan Gingold <gingold@adacore.com>
bb00b29d
TG
586 * machoread.c (macho_symtab_read): Adjust for bfd changes.
587 * darwin-nat.h (struct darwin_exception_msg): New type to describe
588 a mach exception.
589 (struct private_thread_info): New type to describe the state of the
590 thread.
591 (DEF_VEC_I thread_t): Removed, replaced by ...
592 (DEF_VEC_O darwin_thread_t): ... this new type.
593 (struct darwin_inferior): Renamed to ...
594 (struct private_inferior): ... this type. Fields added.
595 (darwin_not_port): Moved into the private inferior structure.
596 * darwin-nat.c: Add includes, improve comments.
597 Rewrite to handle multiple threads and processes.
598 (darwin_resume_to): New function and protype.
599 (darwin_resume, darwin_wait_to, darwin_wait): Ditto.
600 (darwin_kill_inferior): Add ops argument.
601 (darwin_pid_to_str): New function.
602 (darwin_thread_alive): Ditto.
603 (darwin_inf, darwin_not_port): Removed.
604 (darwin_inf_fake_stop): New variable.
605 (msgin, msgout, msg_state, exc_msg): Removed.
606 (mach_check_error): Use warning instead of error.
607 (darwin_ptrace): Adjust debug level.
608 (cmp_thread_t): Fix names (typo).
609 (darwin_check_new_threads): Argument is now an inferior,
610 adjust for new structures, add no change check, ignore dead ports,
611 handle first thread case.
612 (find_inferior_task_it): New function.
613 (find_inferior_notify_it): Ditto.
614 (darwin_find_inferior_by_task): Ditto.
615 (darwin_find_inferior_by_notify): Ditto.
616 (darwin_find_thread): Ditto.
617 (darwin_suspend_inferior): Ditto.
618 (darwin_resume_inferior): Ditto.
619 (catch_exception_raise_state): Removed.
620 (catch_exception_raise_state_identity): Removed.
621 (darwin_suspend_inferior_it): New function.
622 (darwin_resume_inferior_it): Ditto.
623 (darwin_dump_message): New function, extracted from darwin_wait.
624 (darwin_decode_exception_message): New function.
625 (darwin_encode_reply): New function.
626 (catch_exception_raise): Removed.
627 (darwin_send_reply): New function, extracted from darwin_resume.
628 (darwin_resume_thread): New function, extracted from darwin_resume.
629 (struct resume_inferior_threads_param): New type.
630 (darwin_resume_inferior_threads_it): New function.
631 (darwin_resume_inferior_threads): New function.
632 (darwin_suspend_inferior_threads): New function.
633 (darwin_resume): Mostly rewritten to handle multiple threads and
634 some corner cases.
635 (darwin_decode_message): New function extracted from darwin_wait.
636 (cancel_breakpoint): New function.
637 (darwin_wait): Mostly rewritten. Handle multiple threads.
638 (darwin_mourn_inferior): Adjust for per process structures.
639 (darwin_reply_to_all_pending_messages): New function.
640 (darwin_stop_inferior): Adjust for per inferior structures.
641 (darwin_attach_pid): Ditto.
642 (darwin_init_thread_list): Ditto.
643 (darwin_attach): Ditto.
644 (darwin_detach): Ditto.
645 (darwin_files_info): Now empty.
646 (darwin_pid_to_str): Adjust returns string to match one expected by
647 the testsuite.
648 (darwin_read_write_inferior): Rename err variable to match other uses.
649 Adjust debug message. Handle submaps.
650 (darwin_xfer_memory): Adjust for per inferior structures.
651 (set_enable_mach_exceptions): Ditto.
652 (darwin_pid_to_exec_file): New function.
653 (darwin_get_ada_task_ptid): Ditto.
654 (darwin_supports_multi_process): Ditto.
655 (_initialize_darwin_inferior): Remove useless assertion, adjust for
656 per inferior structures. Add new target operations.
657
31410e84
MS
6582009-06-18 Hui Zhu <teawater@gmail.com>
659 Michael Snyder <msnyder@vmware.com>
660
661 * infrun.c (handle_inferior_event): Improve reverse stepping
662 through function epilogue.
663
6373d119
MS
664 * infrun.c (handle_inferior_event): Reverse-next through
665 trampoline.
666
c098b58b
PP
6672009-06-18 Paul Pluzhnikov <ppluzhnikov@google.com>
668
669 * dwarf2-frame.c (struct comp_unit): Use bfd_size_type for
670 dwarf_frame_size.
671
affddf13
TT
6722009-06-17 Tom Tromey <tromey@redhat.com>
673
674 * dwarf2read.c (zlib_decompress_section): Use a cleanup.
675
9898f801
UW
6762009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
677
678 * gdbarch.sh (pointer_to_address): Change to type 'm'.
679 (address_to_pointer): Likewise.
680 * gdbarch.c, gdbarch.h: Regenerate.
681
682 * inferior.h (unsigned_pointer_to_address): Add GDBARCH argument.
683 (signed_pointer_to_address): Likewise.
684 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
685 * findvar.c (unsigned_pointer_to_address): Likewise.
686 (signed_pointer_to_address): Likewise.
687 (unsigned_address_to_pointer, address_to_signed_pointer): Likewise.
688
689 * avr-tdep.c (avr_address_to_pointer): Likewise.
690 (avr_pointer_to_address): Likewise.
691 * iq2000-tdep.c (iq2000_pointer_to_address): Likewise.
692 (iq2000_address_to_pointer): Likewise.
693 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
694 (m32c_m16c_pointer_to_address): Likewise.
695 * spu-tdep.c (spu_pointer_to_address): Likewise.
696 * xstormy16-tdep.c (xstormy16_pointer_to_address): Likewise.
697 (xstormy16_address_to_pointer): Likewise.
698
1fac167a
UW
6992009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
700
701 * printcmd.c (print_scalar_formatted): Always truncate
702 unsigned data types.
703
704 * cli-dump.c (struct callback_data): Change type of load_offset
705 to CORE_ADDR.
706 (restore_binary_file): Update type casts.
707 (restore_command): Parse load_offset as address, not long.
708
709 * utils.c (string_to_core_addr): Do not sign-extend value.
710 * varobj.c (find_frame_addr_in_frame_chain): Truncate frame_base
711 before comparing against requested frame address.
712
a78c2d62
UW
7132009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
714
715 * gdbarch.sh (gcore_bfd_target): New gdbarch callback.
716 * gdbarch.h, gdbarch.c: Regenerate.
717
718 * gcore.c (default_gcore_target): Make return value const.
719 Call gdbarch_gcore_bfd_target if present.
720 (default_gcore_arch, default_gcore_mach): Use target_gdbarch.
721
722 * corelow.c (core_read_description): Call gdbarch_core_read_description
723 on core_gdbarch instead of current_gdbarch.
724
725 * ppc-linux-tdep.c (ppc_linux_init_abi): Install gcore_bfd_target.
726
3b7538c0
UW
7272009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
728
729 * gdbtypes.c (create_string_type): Receive character type as argument.
730 * gdbtypes.h (create_string_type): Add character type argument.
731 * dwarf2read.c (read_tag_string_type): Pass character type to
732 create_string_type.
733
734 * value.h (value_string): Add character type argument.
735 * valops.c (value_string): Add character type argument. Pass it to
736 create_string_type. Do not allocate space in inferior.
737 * valarith.c (value_concat): Pass character type to value_string.
738
739 * value.h (value_typed_string): Rename to ...
740 (value_cstring): ... this.
741 * valops.c (value_typed_string): Rename to ...
742 (value_cstring): ... this.
743 * c-lang.c (evaluate_subexp_c): Update.
744
745 * python/python-value.c (builtin_type_pychar): New define.
746 (convert_value_from_python): Call value_cstring instead
747 of value_from_string.
748 * value.c (value_from_string): Remove.
749 * value.h (value_from_string): Remove.
750
751 * eval.c (evaluate_subexp_standard): Pass character type to
752 value_string. Pass expression architecture to value_nsstring
753 and lookup_child_selector.
754 * objc-lang.h (lookup_objc_class): Add GDBARCH parameter.
755 (lookup_child_selector): Likewise.
756 (value_nsstring): Likewise.
757 * objc-lang.c (lookup_objc_class): Add GDBARCH parameter.
758 Pass character type to value_string..
759 (lookup_child_selector): Likewise.
760 (value_nsstring): Add GDBARCH parameter, use it instead of
761 objfile architecture. Pass architecture to lookup_objc_class
762 and lookup_child_selector. Pass character type to value_string.
763 (end_msglist): Pass architecture to lookup_objc_class.
764 * objc-exp.y: Pass architecture to lookup_objc_class.
765
e6c014f2
UW
7662009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
767
768 * gdbtypes.h (struct language_defn): Add forward declaration.
769 (lookup_typename): Add LANGUAGE and GDBARCH parameters.
770 (lookup_unsigned_typename): Likewise.
771 (lookup_signed_typename): Likewise.
772 * gdbtypes.c (lookup_typename): Add LANGUAGE and GDBARCH parameters.
773 Use them instead of current_language and current_gdbarch.
774 (lookup_unsigned_typename): Add LANGUAGE and GDBARCH parameters.
775 Pass them to lookup_typename.
776 (lookup_signed_typename): Likewise.
777
778 * c-exp.y: Pass parse_language and parse_gdbarch to
779 lookup_unsigned_typename and lookup_signed_typename.
780 * objc-exp.y: Likewise.
781 * m2-exp.y: Pass parse_language and parse_gdbarch to lookup_typename.
782
783 * c-lang.c (evaluate_subexp_c): Pass expression language and
784 gdbarch to lookup_typename.
785 * printcmd.c (printf_command): Pass current language and
786 gdbarch to lookup_typename.
787 * python/python-type.c (typy_lookup_typename): Likewise.
788 Include "language.h".
789
ec22ec34
UW
7902009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
791
792 * sparc64-nat.c (sparc64_gregset_supplies_p): Add GDBARCH parameter.
793 Use it instead of current_gdbarch. Pass architecture to
794 sparc32_gregset_supplies_p.
795 (sparc64_fpregset_supplies_p): Add GDBARCH parameter. Use it instead
796 of current_gdbarch. Pass architecture to sparc32_fpregset_supplies_p.
797 * sparc64nbsd-nat.c (sparc64nbsd_gregset_supplies_p,
798 sparc64nbsd_fpregset_supplies_p): Likewise.
799 * sparc-nat.c (sparc_gregset_supplies_p, sparc_fpregset_supplies_p):
800 Add GDBARCH parameter.
801 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
802 (sparc_fetch_inferior_registers): Pass regcache architecture to
803 sparc_gregset_supplies_p and sparc_fpregset_supplies_p.
804 (sparc_store_inferior_registers): Likewise.
805 * sparc-nat.h (sparc_gregset_supplies_p, sparc_fpregset_supplies_p:
806 Add GDBARCH parameter.
807 (sparc32_gregset_supplies_p, sparc32_fpregset_supplies_p): Likewise.
808
a97b0ac8
UW
8092009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
810
811 * ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead
812 of current_gdbarch.
813 * aix-thread.c (pd_enable): Likewise.
814 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
815 * bsd-uthread.c (bsd_uthread_activate): Likewise.
816 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
817 * linux-thread-db.c (enable_thread_event): Likewise.
818 * monitor.c (monitor_write_memory, monitor_read_memory): Likewise.
819 * nto-procfs.c (procfs_open): Likewise.
820 * procfs.c (invalidate_cache, procfs_insert_watchpoint,
821 info_proc_mappings, info_mappings_callback): Likewise.
822 * record.c (record_open): Likewise.
823 * rs6000-nat.c (ARCH64): Likewise.
824 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
825 (darwin_bfd_open): Likewise.
826 * memattr.c (mem_info_command): Likewise.
827
828 * windows-nat.c (win32_resume): Use current regcache architecture
829 instead of current_gdbarch.
830
831 * dbug-rom.c (dbug_regname): Remove check against number of
832 registers in current_gdbarch.
833 * solib-pa64.c (read_dynamic_info): Remove unused variable.
834
d80b854b
UW
8352009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
836
837 * dummy-frame.c (deprecated_pc_in_call_dummy): Add GDBARCH parameter,
838 use it instead of current_gdbarch.
839 * frame.h (deprecated_pc_in_call_dummy): Add GDBARCH parameter.
840 * arm-tdep.c (arm_skip_prologue): Pass architecture to
841 deprecated_pc_in_call_dummy.
842
843 * symtab.c (skip_prologue_using_sal): Add GDBARCH parameter.
844 Use it instead of current_gdbarch.
845 * symtab.h (skip_prologue_using_sal): Add GDBARCH parameter.
846 * breakpoint.c (expand_line_sal_maybe): Pass architecture to
847 skip_prologue_using_sal.
848 * arm-tdep.c (skip_prologue_using_sal): Likewise.
849 * lm32-tdep.c (lm32_skip_prologue): Likewise.
850 * m32-tdep.c (m32c_skip_prologue): Likewise.
851 * mips-tdep.c (mips_skip_prologue): Likewise.
852 * moxie-tdep.c (moxie_skip_prologue): Likewise.
853 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
854 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
855 * frv-tdep.c (frv_analyze_prologue): Add GDBARCH parameter, pass
856 it to skip_prologue_using_sal. Update call sites ...
857 (frv_skip_prologue, frv_frame_unwind_cache): ... here.
858
859 * mn10300-tdep.c (struct mn10300_prologue): Add GDBARCH member.
860 (check_for_saved): Use it instead of current_gdbarch.
861 (mn10300_analyze_prologue): Set it.
862
863 * value.c (using_struct_return): Add GDBARCH parameter. Use it
864 instead of current_gdbarch.
865 * value.h (using_struct_return): Add GDBARCH parameter.
866 * eval.c (evaluate_subexp_standard): Pass architecture to
867 using_struct_return.
868 * infcall.c (call_function_by_hand): Likewise.
869 * stack.c (return_command): Likewise.
870 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
871
872 * symtab.c (in_prologue): Add GDBARCH parameter. Use it instead of
873 current_gdbarch.
874 * symtab.h (in_prologue): Add GDBARCH parameter.
875 * infrun.c (handle_inferior_event): Pass architecture to in_prologue.
876
877 * eval.c (evaluate_subexp_standard): Use expression architecture
878 instead of current_gdbarch.
879
880 * c-lang.c (evaluate_subexp_c): Use expression architecture and
881 language instead of current_gdbarch and current_language.
882
883 * printcmd.c (do_one_display): Use expression architecture instead
884 of current_gdbarch.
885
886 * infcmd.c (print_return_value): Use architecture of stop_regcache
887 instead of current_gdbarch.
888 (print_vector_info, print_float_info): Remove GDBARCH argument,
889 use frame architecture instead.
890 (vector_info, float_info): Update calls.
891
892 * objc-lang.c (objc_skip_trampoline): Use frame architecture
893 instead of current_gdbarch.
894
895 * parse.c (write_dollar_variable): Use parse architecture instead
896 of current_gdbarch.
897
898 * source.c (line_info): Use objfile architecture instead of
899 current_gdbarch.
900
901 * symtab.c (find_function_start_sal): Use gdbarch instead of
902 current_gdbarch.
903 (print_msymbol_info): Use objfile architecture instead of
904 current_gdbarch.
905
906 * valops.c (value_assign): Use frame architecture instead of
907 current_gdbarch.
908
fbf65064
UW
9092009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
910
911 * buildsym.c (record_line): Remove call to gdbarch_addr_bits_remove.
912
913 * coffread.c (coff_symtab_read): Call gdbarch_addr_bits_remove before
914 calling record_line.
915 (enter_linenos): Likewise.
916 * dbxread.c (process_one_symbol): Likewise.
917 * dwarf2read.c (dwarf_decode_lines): Likewise.
918 * mdebugread.c (psymtab_to_symtab_1): Likewise.
919 * xcoffread.c (enter_line_range): Likewise.
920
505e835d
UW
9212009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
922
923 * ax-gdb.c (gen_bitfield_ref): Add EXP argument, use expression
924 architecture instead of current_gdbarch.
925 (gen_struct_ref): Add EXP argument, pass to get_bitfield_ref.
926 (gen_expr): Pass expression to get_struct_ref.
927
928 * symtab.h (struct symbol_ops): Add GDBARCH parameter to
929 tracepoint_var_ref callback.
930 * ax-gdb.c (gen_var_ref): Pass architecture to tracepoint_var_ref
931 symbol operation callback.
932 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Add GDBARCH parameter.
933 Use it instead of current_gdbarch.
934 (locexpr_tracepoint_var_ref): Add GDBARCH parameter. Pass it to
935 dwarf2_tracepoint_var_ref.
936 (loclist_tracepoint_var_ref): Likewise.
937
55f960e1
UW
9382009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
939
940 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
941 Use it instead of address bits of current_gdbarch.
942 * prologue-value.c (make_pv_area): Add ADDR_BIT argument.
943 * arm-tdep.c (thumb_analyze_prologue): Pass address bits to
944 make_pv_area.
945 (arm_scan_prologue): Likewise.
946 * m32c-tdep.c (m32c_analyze_prologue): Likewise.
947 * mep-tdep.c (mep_analyze_prologue): Likewise.
948 * mn10300-tdep.c (mn10300_analyze_prologue): Likewise.
949 * s390-tdep.c (s390_analyze_prologue): Likewise.
950
7ccb0be9
UW
9512009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
952
953 * mi/mi-main.c (mi_cmd_data_list_register_names): Use selected
954 frame architecture instead of current_gdbarch.
955 (mi_cmd_data_list_changed_registers): Likewise.
956 (mi_cmd_data_list_register_values): Likewise. Pass selected
957 frame to get_register.
958 (get_register): Add FRAME argument, use it as frame to retrieve
959 registers from (instead of selected frame). Use frame architecture
960 instead of current_gdbarch.
961 (mi_cmd_data_write_register_values): Use current regcache
962 architecture instead of current_gdbarch.
963
5eccfcc2
UW
9642009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
965
966 * tui/tui-regs.c (tui_show_register_group): Remove GDBARCH parameter;
967 use frame architecture instead. Replace current_gdbarch uses.
968 (tui_show_registers): Update call.
969 (tui_get_register): Remove GDBARCH parameter; use frame architecture
970 instead.
971 (tui_show_register_group): Update call.
972 (tui_check_register_values): Likewise.
973 (tui_register_format): Remove GDBARCH parameter; use frame
974 architecture instead. Replace current_gdbarch uses.
975 (tui_get_register): Update call.
976
bd57a748
UW
9772009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
978
979 * gdbarch.sh (construct_inferior_arguments): Remove.
980 * gdbarch.c, gdbarch.h: Regenerate.
981 * infcmd.c (get_inferior_args): Call construct_inferior_arguments
982 directly instead of gdbarch_construct_inferior_arguments.
983 (construct_inferior_arguments): Remove GDBARCH argument.
984 * inferior.h (construct_inferior_arguments): Likewise.
985
9216df95
UW
9862009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
987
988 * symfile.c (section_is_mapped): Use objfile architecture instead
989 of current_gdbarch.
990 (TARGET_LONG_BYTES): Remove.
991 (read_target_long_array): Add SIZE argument. Use it instead of
992 TARGET_LONG_BYTES.
993 (simple_read_overlay_table): Retrieve long size from objfile
994 architecture; pass it to read_target_long_array.
995 (simple_read_overlay_region_table): Likewise.
996 (simple_overlay_update_1): Likewise.
997
9f5a595d
UW
9982009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
999
1000 * infrun.c (cleanup_displaced_step_closure): Remove.
1001 (displaced_step_clear_cleanup): Move to before displaced_step_prepare.
1002 (displaced_step_prepare): Use displaced_step_clear_cleanup instead
1003 of cleanup_displaced_step_closure.
1004 (handle_inferior_event, keep_going): Use thread architecture instead
1005 of current_gdbarch.
1006
568d6575
UW
10072009-06-17 Ulrich Weigand <uweigand@de.ibm.com>
1008
1009 * infrun.c (handle_inferior_event): Use current frame architecture
1010 or thread architecture instead of current_gdbarch. Pass to
1011 handle_step_into_function and handle_step_into_function_backward.
1012 (handle_step_into_function): Add GDBARCH parameter. Use it instead
1013 of current_gdbarch.
1014 (handle_step_into_function_backward): Likewise.
1015 (insert_step_resume_breakpoint_at_frame): Use frame architecture
1016 instead of current_gdbarch.
1017 (insert_step_resume_breakpoint_at_caller): Likewise.
1018
ea5d7a99
PM
10192009-06-17 Pierre Muller <muller@ics.u-strasbg.fr>
1020 Pedro Alves <pedro@codesourcery.com>
1021
1022 * infcmd.c (post_create_inferior): Call breakpoint_re_set after target
1023 is pushed for watchpoint promotion to hardware watchpoint.
1024
dce234bc
PP
10252009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1026
1027 * dwarf2read.c (dwarf_info_section, dwarf_abbrev_section)
1028 (dwarf_line_section, dwarf_pubnames_section, dwarf_aranges_section)
1029 (dwarf_loc_section, dwarf_macinfo_section, dwarf_str_section)
1030 (dwarf_ranges_section, dwarf_frame_section)
1031 (dwarf_eh_frame_section): Removed.
1032 (dwarf2_resize_section): Likewise.
1033 (dwarf2_read_section): Now static, use bfd_mmap() if possible.
1034 (dwarf2_get_section_info): New function.
1035 (munmap_section_buffer): Likewise.
1036 (dwarf2_per_objfile_cleanup): Likewise.
1037 (section_is_p): Signature change.
1038 * dwarf2-frame.c (dwarf2_build_frame_info): Use
1039 dwarf2_get_section_info instead of dwarf2_read_section.
1040
7eedccfa
PP
10412009-06-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1042
1043 * solib.c (symbol_add_stub): New FLAGS parameter.
1044 (solib_read_symbols): FROM_TTY -> FLAGS, call symbol_add_stub
1045 directly.
1046 (solib_add): Defer breakpoint_re_set until after all solibs.
1047 * bsd-uthread.c (bsd_uthread_solib_loaded): Adjust.
1048 * rs6000-nat.c (objfile_symbol_add): Adjust.
1049 * symfile.c (syms_from_objfile): Merge parameters into ADD_FLAGS.
1050 (new_symfile_objfile): Likewise.
1051 (symbol_file_add_with_addrs_or_offsets): Likewise.
1052 (symbol_file_add_from_bfd): Likewise.
1053 (symbol_file_add): Likewise.
1054 * symfile.h (enum symfile_add_flags): New. Adjust prototypes.
1055 * symfile-mem.c (symbol_file_add_from_memory): Adjust.
1056 * windows-nat.c (safe_symbol_file_add_stub): Adjust.
1057 * machoread.c (macho_oso_symfile, macho_symfile_read): Adjust.
1058
19ef5c71
KS
10592009-06-16 Keith Seitz <keiths@redhat.com>
1060
1061 * linespec.c (collect_methods): Delete.
1062 (add_matching_methods): Reove destructor special case.
1063 (find_method): Call find_methods directly instead of
1064 collect_methods.
1065 * valops.c (value_struct_elt): Remove destructor
1066 special cases.
1067 (check_field): Likewise.
1068 (value_struct_elt_for_reference): Likewise.
1069 (destructor_name_p): Remove misleading comment about dtors
1070 being "special cases".
1071 * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed.
1072 * gdbtypes.c (get_destructor_fn_field): Likewise.
1073
a4261689
PA
10742009-06-16 Pedro Alves <pedro@codesourcery.com>
1075
1076 * mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
1077 TARGET_OJECT_MEMORY reads to the topmost target, not to the
1078 flattened current_target.
1079
4e99ad69
TG
10802009-06-16 Tristan Gingold <gingold@adacore.com>
1081
1082 * avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
1083 call_length field.
1084 (avr_register_name): Add const to register_names.
1085 (avr_scan_arg_moves): Move inside avr_scan_prologue.
1086 (avr_scan_prologue): Add pc_end argument.
1087 Only read prologue bytes that can be read.
1088 Limit the scan to the known prologue length.
1089 Makes pattern variables static and const.
1090 Fix indentation.
1091 (avr_skip_prologue): Pass func_end argument to avr_scan_prologue.
1092 Fix indentation.
1093 (avr_breakpoint_from_pc): Constify avr_break_insn.
1094 (avr_extract_return_value): Fix function comment.
1095 (avr_frame_unwind_cache): Fix GNU style violations.
1096 Pass current_pc argument to avr_scan_prologue to stop prologue
1097 analysis to the current pc. This fixes the bug with the 'next'
1098 command.
1099 Correctly set the SP register of the previous frame (use call_length).
1100 (avr_frame_prev_register): Fix indentation.
1101 Correctly read PC from the stack on avr6 architectures.
1102 (avr_push_dummy_call): Fix indentation.
1103 (avr_gdbarch_init): Set call_length according to the architecture.
1104
7cd1089b
PM
11052009-06-15 Phil Muldoon <pmuldoon@redhat.com>
1106
1107 * infcall.c (show_unwind_on_terminating_exception_p): New
1108 function.
1109 (call_function_by_hand): Create breakpoint and clean-up call for
1110 std::terminate.breakpoint. Add unwind_on_terminating_exception_p
1111 gate. Pop frame on breakpoint hit.
1112 (_initialize_infcall): Add add_setshow_boolean_cmd for
1113 unwind-on-terminating-exception.
1114
b2ab525c
KB
11152009-06-12 Kevin Buettner <kevinb@redhat.com>
1116
1117 * dwarf2read.c (dwarf2_psymtab_to_symtab): Propagate
1118 `has_section_at_zero' flag from stripped objfile to separate,
1119 debug info only, objfile.
1120
4b477ade
PA
11212009-06-12 Pedro Alves <pedro@codesourcery.com>
1122
1123 * exec.h (section_table_xfer_memory_partial): Improve description,
1124 mention SECTION_NAME.
1125 * exec.c (section_table_xfer_memory_partial): Remove stale
1126 description.
1127
c59fcb4c
AR
11282009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
1129
1130 * nto-tdep.h (nto_generic_supply_gpregset)
1131 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
1132 * nto-tdep.c (nto_generic_supply_gpregset)
1133 (nto_generic_supply_fpregset, nto_generic_supply_altregset): Remove.
1134
19a934d8
AR
11352009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
1136
1137 * i386-nto-tdep.c (I386_NTO_SIGCONTEXT_OFFSET): Remove define.
1138 (i386nto_sigcontext_addr): Change the way context address is calculated.
1139 (i386nto_init_abi): Remove usage of deprecated sc_reg_offset and
1140 sc_sp_offset and set sc_reg_offset and sc_num_regs.
1141
80b1849c
AR
11422009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
1143
1144 * i386-nto-tdep.c (i386_nto_target): Remove definition.
1145 (init_i386nto_ops): Use macros to set fields to global
1146 current_nto_target directly.
1147 (i386nto_init_abi): Remove unused nto_set_target call.
1148 * nto-tdep.h (nto_set_target): Remove unused declaration.
1149 * nto-tdep.c (nto_set_target): Remove unused function.
1150
80c99de1
PA
11512009-06-11 Pedro Alves <pedro@codesourcery.com>
1152
1153 * breakpoint.c (break_command_really): Rename local variable
1154 breakpoint_chain to bkpt_chain.
1155
dbfb31a4
AR
11562009-06-11 Aleksandar Ristovski <aristovski@qnx.com>
1157
1158 Add support for XMM registers.
1159 * i386-nto-tdep.c (i386nto_regset_id): Add case for SSE register set.
1160 (i386nto_register_area): Correctly calculate offsets and sizes for
1161 all supported registers.
1162
17dd65ce
TT
11632009-06-11 Tom Tromey <tromey@redhat.com>
1164
1165 * eval.c (evaluate_subexp_standard) <OP_OBJC_MSGCALL>: Remove
1166 'static' from local variable definitions.
1167
828cd292
PA
11682009-06-11 Pedro Alves <pedro@codesourcery.com>
1169
1170 * symtab.c (append_expanded_sal): Remove unused local variables.
1171
d4db2f36
PA
11722009-06-11 Pedro Alves <pedro@codesourcery.com>
1173
1174 * infrun.c (sched_multi): New global.
1175 (resume): If sched_multi is set, resume only threads of the
1176 current inferior.
1177 (prepare_to_proceed): Don't switch over to wait_ptid if we're
1178 resuming a different inferior, and sched_multi is off.
1179 (show_schedule_multiple): New.
1180 (_initialize_infrun): Register new "set schedule-multiple" command.
1181 * inferior.h (sched_multi): Declare.
1182 * NEWS: Mention new "schedule-multiple" setting.
1183
e21458b2
PA
11842009-06-11 Pedro Alves <pedro@codesourcery.com>
1185
1186 * varobj.c (varobj_create): Properly restore the selected frame.
1187
8bb318c6
TT
11882009-06-05 Tom Tromey <tromey@redhat.com>
1189
1190 * inferior.c (print_inferior): Make a table, not a list. Emit
1191 table headers.
1192
bbb29520
PA
11932009-06-10 Jonas Maebe <jonas.maebe@elis.ugent.be>
1194
1195 * darwin-nat.c (darwin_stop_inferior): Pass 0 as options to
1196 darwin_wait (blocking wait).
1197 (darwin_kill_inferior): Likewise.
1198
66852e9c
PA
11992009-06-10 Pedro Alves <pedro@codesourcery.com>
1200
1201 * infrun.c (handle_inferior_event): Update comment around trying
1202 to revert back to a stepping thread that has exited.
1203
d0c6ba3d
CC
12042009-06-10 Cary Coutant <ccoutant@google.com>
1205
1206 * dwarf2read.c (dwarf_decode_lines): Recognize and ignore
1207 DW_LNE_set_discriminator.
1208
059fb39f
PM
12092009-06-10 Pierre Muller <muller@ics.u-strasbg.fr>
1210
1211 * breakpoint.c: ARI fixes.
1212 (create_overlay_event_breakpoint): Avoid assignment inside if statement.
1213 (print_one_breakpoint_location): Likewise.
1214 (create_longjmp_breakpoint): Likewise.
1215 (tracepoint_save_command): Likewise
1216 (bpstat_find_step_resume_breakpoint): No operator at end of line.
1217 (bpstat_stop_status): Likewise.
1218 (describe_other_breakpoints): Likewise.
1219 (hw_watchpoint_used_count): Likewise.
1220 (expand_line_sal_maybe): Likewise.
1221 (break_command_really): Likewise.
1222 (delete_command): Likewise.
1223 (do_enable_breakpoint): Likewise.
1224 (delete_trace_command): Likewise.
1225 (catch_exception_command_1): Likewise and remove extra parentheses.
1226
7681d515
PM
12272009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
1228
1229 * breakpoint.c (_initialize_breakpoint): Remove "bu" command alias of
1230 "ubreak" command that does not exist.
1231
300d0284
PM
12322009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
1233
1234 * cli/cli-decode.c (add_alias_cmd): Correct assertion.
1235
72753510
PA
12362009-06-07 Pedro Alves <pedro@codesourcery.com>
1237
1238 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
1239
d1a7880c
PA
12402009-06-07 Pedro Alves <pedro@codesourcery.com>
1241
1242 * procfs.h: New.
1243 * proc-utils.h (procfs_first_available): Don't declare here.
1244 * sol-thread.c: Include procfs.h instead of sys/procfs.h and
1245 proc-utils.h.
1246 * procfs.c: Include procfs.h.
1247 (procfs_target): Make it public. Don't register
1248 procfs_can_use_hw_breakpoint here.
1249 (proc_set_watchpoint): Check for PCWATCH or PIOCSWATCH being
1250 defined instead of TARGET_HAS_HARDWARE_WATCHPOINTS.
1251 (procfs_can_use_hw_breakpoint): Remove check of
1252 TARGET_HAS_HARDWARE_WATCHPOINTS.
1253 (procfs_use_watchpoints): Register procfs_can_use_hw_breakpoint
1254 here.
1255 (_initialize_procfs): Don't add the procfs target here.
1256
1257 * i386-sol2-nat.c: Include target.h and procfs.h.
1258 (_initialize_amd64_sol2_nat): Install the procfs target here,
1259 customized with watchpoints support.
1260 * irix5-nat.c: Include target.h.
1261 (_initialize_core_irix5): Rename to ...
1262 (_initialize_irix5_nat): ... this. Install the procfs target
1263 here, customized with watchpoints support.
1264 * alpha-nat.c: Include procfs.h.
1265 (_initialize_core_alpha): Rename to...
1266 (_initialize_alpha_nat): ... this. Install the procfs target
1267 here, customized with watchpoints support.
1268 * sparc-sol2-nat.c: Include target.h and procfs.h.
1269 (_initialize_sparc_sol2_nat): New.
1270
1271 * config/i386/nm-i386sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1272 * config/sparc/nm-sol2.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1273 * config/mips/irix5.mh (NAT_FILE): Delete.
1274 * config/mips/irix6.mh (NAT_FILE): Delete.
1275 * config/mips/nm-irix5.h: Delete.
1276
81b92222
PA
127720009-06-07 Pedro Alves <pedro@codesourcery.com>
1278
1279 * auxv.c (procfs_xfer_auxv): Change type of the `object' argument
1280 to enum target_object. Cleanup comments.
1281 * auxv.h: Include "target.h". Cleanup comments to not mention
1282 NATIVE_XFER_AUXV anymore.
1283
cc35222d
PA
12842009-06-07 Pedro Alves <pedro@codesourcery.com>
1285
1286 * inferior.h (procfs_first_available): Move declaration to...
1287 * proc-utils.h: ... here.
1288 * sol-thread.c: Include procfs.h and proc-utils.h.
1289
09d3bde9
PA
12902009-06-07 Pedro Alves <pedro@codesourcery.com>
1291
1292 * inferior.h (proc_iterate_over_mappings): Delete declaration.
1293 * nto-tdep.h (proc_iterate_over_mappings): Delete declaration.
1294 * procfs.c (proc_iterate_over_mappings): Delete.
1295
c35b1492
PA
12962009-06-07 Pedro Alves <pedro@codesourcery.com>
1297
1298 * target.h (struct target_ops): Make to_has_all_memory,
1299 to_has_memory, to_has_stack, to_has_registers and to_has_execution
1300 methods instead of variables.
1301 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1)
1302 (target_has_registers_1, target_has_execution_1): Declare
1303 functions.
1304 (target_has_all_memory): Rewrite to call target_has_all_memory_1.
1305 (target_has_memory): Rewrite to call target_has_memory_1.
1306 (target_has_stack): Rewrite to call target_has_all_stack_1.
1307 (target_has_registers): Rewrite to call target_has_registers_1.
1308 (target_has_execution): Rewrite to call target_has_execution_1.
1309 (default_child_has_all_memory, default_child_has_memory)
1310 (default_child_has_stack, default_child_has_registers)
1311 (default_child_has_execution): Declare.
1312 (target_mark_running, target_mark_exited): Delete declarations.
1313 * target.c (default_child_has_all_memory,
1314 default_child_has_memory, default_child_has_stack,
1315 default_child_has_registers, default_child_has_execution): New.
1316 (target_has_all_memory_1, target_has_memory_1, target_has_stack_1,
1317 target_has_registers_1, target_has_execution_1): New.
1318 (add_target): Default the to_has_all_memory, to_has_all_memory,
1319 to_has_memory, to_has_stack, to_has_registers and to_has_execution
1320 callbacks to return 0.
1321 (update_current_target): Do not inherit to_has_all_memory,
1322 to_has_memory, to_has_stack, to_has_registers or to_has_execution.
1323 (target_mark_running, target_mark_exited): Delete.
1324 (memory_xfer_partial): Adjust.
1325 (target_read_memory, target_write_memory, target_search_memory):
1326 Dispatch to the the top-most target, not the flattened
1327 current_target.
1328 (target_info): Adjust.
1329 (init_dummy_target): Install return_zero as callback for
1330 to_has_all_memory, to_has_memory, to_has_stack, to_has_registers,
1331 to_has_execution.
1332 (set_maintenance_target_async_permitted): Use have_live_inferiors
1333 instead of target_has_execution.
1334 * target-memory.c (target_write_memory_blocks): Dispatch memory
1335 writes to the the top-most target, not the flattened
1336 current_target.
1337
1338 * breakpoint.c (insert_breakpoints): Don't check for
1339 target_has_execution here.
1340 (update_global_location_list): Check if there are live inferiors
1341 to debug instead of target_has_execution.
1342 * infcmd.c (kill_command, detach_command): Check if there are
1343 inferiors instead of target_has_execution.
1344 * inferior.h (have_live_inferiors): Declare.
1345 * inferior.c (have_live_inferiors): New.
1346 * infrun.c (normal_stop): Don't check for target_has_execution to
1347 finish the thread states.
1348 * thread.c (is_thread_state, is_stopped, is_exited, is_running)
1349 (any_running, is_executing): Remove checks for
1350 target_has_execution.
1351 * top.c (kill_or_detach): Don't try to kill core inferiors.
1352 (quit_target): Don't check for target_has_execution.
1353
1354 * corelow.c (core_has_memory, core_has_stack, core_has_registers):
1355 New.
1356 (init_core_ops): Install core_has_memory, core_has_stack and
1357 core_has_registers.
1358 * exec.c (exec_has_memory): New.
1359 (init_exec_ops): Install exec_has_memory.
1360 * remote.c (remote_add_inferior): Don't call target_mark_running.
1361 (remote_start_remote): Don't call target_mark_exited or call
1362 target_mark_running.
1363 (remote_open_1): Use have_inferiors instead of
1364 target_has_execution. Don't use target_mark_exited.
1365 (init_remote_ops): Install deafult_child_has_all_memory,
1366 default_child_has_memory, default_child_has_stack,
1367 default_child_has_registers, default_child_has_execution.
1368 * bsd-kvm.c (bsd_kvm_return_one): New.
1369 (bsd_kvm_add_target): Register bsd_kvm_return_one as
1370 to_has_memory, to_has_stack and to_has_registers callbacks.
1371 * remote-m32r-sdi.c (m32r_return_one): New.
1372 (init_m32r_ops): Register it.
1373 * inf-child.c (inf_child_target): Adjust to register
1374 default_child_has_all_memory, default_child_has_memory,
1375 default_child_has_stack, default_child_has_registers,
1376 default_child_has_execution callbacks.
1377 * gnu-nat.c (init_gnu_ops): Likewise.
1378 * go32-nat.c (init_go32_ops): Likewise.
1379 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1380 * monitor.c (init_base_monitor_ops): Likewise.
1381 * nto-procfs.c (init_procfs_ops): Likewise.
1382 * remote-mips.c (_initialize_remote_mips): Likewise.
1383 * windows-nat.c (init_windows_ops): Likewise.
1384 * remote-sim.c (gdbsim_create_inferior): Don't use
1385 target_mark_running or target_mark_exited.
1386 (gdbsim_mourn_inferior): Don't call target_mark_exited.
1387 (init_gdbsim_ops): Adjust to register
1388 default_child_has_all_memory, default_child_has_memory,
1389 default_child_has_stack, default_child_has_registers,
1390 default_child_has_execution callbacks.
1391
1392 * linux-nat.c (linux_nat_xfer_partial): If reading memory, and
1393 there's no inferior selected, defer to a lower stratum.
1394
da1f2771
TT
13952009-06-05 Tom Tromey <tromey@redhat.com>
1396
1397 * varobj.c (update_dynamic_varobj_children): Wrap error text in
1398 _().
1399 (install_visualizer): Likewise.
1400 (varobj_set_visualizer): Likewise.
1401
68c9c314 14022009-06-05 Marc Khouzam <marc.khouzam@ericsson.com>
4b459977
VP
1403
1404 * mi/mi-main.c (mi_cmd_exec_continue)
1405 (mi_cmd_exec_interrupt): Adjust parsing of thread group
1406 ids to current reality, where they don't have any 'p' prefix.
1407
b3ed98d2
AR
14082009-06-05 Aleksandar Ristovski <aristovski@qnx.com>
1409
1410 * corelow.c (core_open): Check for core_gdbarch before calling
1411 gdbarch_target_signal_from_host.
1412
68c1b02d
TT
14132009-06-05 Tom Tromey <tromey@redhat.com>
1414
1415 * c-exp.y (parse_number): Don't use K&R definition.
1416 (yylex): Likewise.
1417 (yyerror): Likewise.
1418
0b4bc29a
JK
14192009-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 * varobj.c (varobj_update): Fix out of scope varobjs to not to change.
1422
768a979c
UW
14232009-06-04 Ulrich Weigand <uweigand@de.ibm.com>
1424
1425 * symtab.h: Rename SYMBOL_OPS to SYMBOL_COMPUTED_OPS.
1426 * ax-gdb.c (gen_var_ref): Likewise.
1427 * findvar.c (read_var_value, symbol_read_needs_frame): Likewise.
1428 * printcmd.c (address_info): Likewise.
1429 * dwarf2loc.c (dwarf_expr_frame_base): Likewise.
1430 * dwarf2read.c (dwarf2_symbol_mark_computed): Likewise.
1431 * symtab.h: Rename struct symbol_ops to struct symbol_computed_ops.
1432 * dwarf2loc.h: Likewise.
1433 * dwarf2loc.c (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Likewise.
1434
1435 * symtab.h: (struct symbol_register_ops): New struct definition.
1436 (struct symbol): Make "ops" member a union of symbol_computed_ops and
1437 symbol_register_ops callback pointers.
1438 (SYMBOL_REGISTER_OPS): New macro.
1439 * tracepoint.c: Include "objfiles.h".
1440 (scope_info, collect_symbol): Use SYMBOL_REGISTER_OPS register_number
1441 callback to retrieve register numbers.
1442 * ax-gdb.c (gen_var_ref): Likewise.
1443 * findvar.c (read_var_value): Likewise.
1444 * printcmd.c (address_info): Likewise.
1445
1446 * coffread.c (coff_reg_to_regnum): New function.
1447 (coff_register_funcs): New static variable.
1448 (process_coff_symbol): Do not call gdbarch_sdb_reg_to_regnum.
1449 Install SYMBOL_REGISTER_OPS callbacks.
1450 * mdebugread.c (mdebug_reg_to_regnum): New function.
1451 (mdebug_register_funcs): New static variable.
1452 (parse_symbol): Do not call gdbarch_ecoff_reg_to_regnum.
1453 Install SYMBOL_REGISTER_OPS callbacks.
1454 * stabsread.c (stab_reg_to_regnum): New function.
1455 (stab_register_funcs): New static variable.
1456 (define_symbol): Do not call gdbarch_stab_reg_to_regnum.
1457 Install SYMBOL_REGISTER_OPS callbacks.
1458
930123b7
DE
14592009-06-03 Doug Evans <dje@google.com>
1460
1461 * symfile.c (reread_symbols): Reset psymtabs_addrmap to NULL
1462 after discarding its contents.
1463
07b82ea5
PA
14642009-06-03 Pedro Alves <pedro@codesourcery.com>
1465
1466 * target.c: Include "exec.h".
1467 (update_current_target): Don't inherit to_sections or
1468 to_sections_end.
1469 (target_get_section_table): New.
1470 (target_section_by_addr): Fetch the section table from the passed
1471 in target.
1472 (memory_xfer_partial): Handle unmapped overlay sections before
1473 anything else. Get the overlay mapped address here. Adjust to
1474 use section_table_xfer_memory_partial.
1475 (get_target_memory): Request a TARGET_OBJECT_RAW_MEMORY object
1476 instead of TARGET_OBJECT_MEMORY.
1477 (target_resize_to_sections): Delete.
1478 (remove_target_sections): Adjust to remove target sections from
1479 `current_target_sections', and use resize_section_table.
1480 * target.h (struct target_ops) <to_sections, to_sections_end>:
1481 Remove fields.
1482 <to_get_section_table>: New method.
1483 (xfer_memory, print_section_info): Delete declarations.
1484 (struct target_section_table): New type.
1485 (target_get_section_table): Declare.
1486 (target_resize_to_sections): Delete declaration.
1487 (remove_target_sections): Delete declaration.
1488 * bfd-target.c (target_bfd_xfer_partial): Get the section table
1489 from to_data.
1490 (target_bfd_get_section_table): New.
1491 (target_bfd_xclose): Adjust.
1492 (target_bfd_reopen): Store the section table in the to_data field.
1493 * corelow.c (core_data): New.
1494 (core_close): Adjust to release core_data and its sections.
1495 (core_open): Allocate core_data, and build its target sections
1496 table.
1497 (deprecated_core_resize_section_table): New.
1498 (core_files_info): Pass core_data to print_section_info.
1499 (core_xfer_partial): Adjust to use
1500 section_table_xfer_memory_partial for TARGET_OBJECT_MEMORY xfers.
1501 (init_core_ops): Do not install a deprecated_xfer_memory callback
1502 anymore.
1503 * solib.c (update_solib_list): Add the shared library sections
1504 to the current target sections table.
1505 * exec.c (current_target_sections_1): New global.
1506 (current_target_sections): New global.
1507 (exec_close_1): New function, refactored from exec_close. Remove
1508 the exec_bfd's sections from the current target sections table.
1509 Adjust to not use to_sections.
1510 (exec_close): Remove all target sections. Call exec_close_1.
1511 (exec_file_clear): Use exec_close_1 instead of unpushing the
1512 target.
1513 (exec_file_attach): Likewise. Adjust to not use to_sections. Add
1514 exec_bfd's sections to the current target sections table. Don't
1515 push the exec_ops target here.
1516 (resize_section_table): New.
1517 (add_target_sections): New.
1518 (remove_target_sections): Moved here.
1519 (section_table_xfer_memory): Adjust to implement the xfer_partial
1520 interface, and rename to...
1521 (section_table_xfer_memory_partial): ... this, replacing the
1522 current function of that same name.
1523 (exec_get_section_table): New.
1524 (exec_xfer_partial): New.
1525 (xfer_memory): Delete.
1526 (print_section_info): Replace the target_ops parameter by a
1527 target_section_table parameter.
1528 (exec_files_info, set_section_command, exec_set_section_address):
1529 Adjust to use the current sections table.
1530 (init_exec_ops): Do not register a deprecated_xfer_memory
1531 callback. Register to_xfer_partial and to_get_section_table
1532 callbacks.
1533 * infrun.c (handle_inferior_event): Update comments around
1534 solib_add.
1535 * rs6000-nat.c (xcoff_relocate_core): Adjust to use
1536 deprecated_core_resize_section_table.
1537 * exec.h (resize_section_table): Declare.
1538 (section_table_xfer_memory_partial): Add const char * argument.
1539 (remove_target_sections): Declare here.
1540 (add_target_sections): Declare.
1541 (print_section_info): Declare here.
1542 * gdbcore.h (deprecated_core_resize_section_table): Declare.
1543
4fa62494
UW
15442009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1545
1546 * value.h (struct internalvar): Remove.
1547 (get_internalvar_integer): Add prototype.
1548 (set_internalvar_integer): Add prototype.
1549 (clear_internalvar): Add prototype.
1550
1551 * value.c (struct internalvar): Move here. Add type member. Remove
1552 endian member. Add union_internalvar member instead of value member.
1553 (init_if_undefined_command): Use intvar->type.
1554 (create_internalvar): Do not initialize value/endian, but type.
1555 (create_internalvar_type_lazy): Call create_internalvar.
1556 (value_of_internalvar): Handle host-side internalvar contents.
1557 (set_internalvar_component): Likewise.
1558 (set_internalvar): Likewise.
1559 (get_internalvar_integer): New function.
1560 (clear_internalvar): Likewise.
1561 (set_internalvar_integer): Likewise.
1562 (preserve_values): Handle host-side internalvar contents.
1563
1564 * breakpoint.c (set_breakpoint_count, set_tracepoint_count): Call
1565 set_internalvar_integer instead of set_internalvar.
1566 * findcmd.c (find_command): Likewise.
1567 * infrun.c (handle_inferior_event): Likewise.
1568 * source.c (forward_search_command, reverse_search_command): Likewise.
1569 * tracepoint.c (set_traceframe_num, set_tracepoint_num,
1570 set_traceframe_context): Likewise.
1571
1572 * printcmd.c (x_command): Call clear_internalvar instead of
1573 set_internalvar.
1574 * tracepoint.c (set_traceframe_context): Likewise.
1575
1576 * breakpoint.c (get_number_trailer): Call get_internalvar_integer
1577 instead of value_of_internalvar.
1578 * linespec.c (decode_dollar): Likewise.
1579
1580 * expprint.c (dump_subexp_body_standard): Use internalvar_name
1581 instead of accessing internalvar private elements.
1582 * valops.c (value_assign): Copy from original source instead of
1583 accessing internalvar private elements.
1584
6ceaaae5
UW
15852009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1586
1587 * scm-lang.c (builtin_type_scm): Remove.
1588 (scm_lookup_name): Add GDBARCH parameter. Use it instead of
1589 objfile architecture. Use per-architecture builtin_scm_type instead
1590 of builtin_type_scm.
1591 (evaluate_exp): Pass expression architecture to scm_lookup_name.
1592
1593 (scm_get_field): Add SIZE parameter. Use it instead of
1594 TYPE_LENGTH (builtin_type_scm).
1595
1596 (build_scm_types): New function.
1597 (scm_type_data): New variable.
1598 (builtin_scm_type): New function.
1599 (_initialize_scheme_language): Do not initialize builtin_type_scm.
1600 Register build_scm_types as post-init function for scm_type_data.
1601
1602 * scm-exp.c (scm_lreadr): Use per-architecture builtin_scm_type
1603 instead of builtin_type_scm.
1604
1605 * scm-lang.h (SCM_CAR, SCM_CDR): Pass SCM_SIZE to scm_get_field.
1606 (scm_get_field): Add SIZE paramter.
1607 (scm_scmval_print): Remove prototype.
1608 (builtin_type_scm): Remove.
1609 (struct builtin_scm_type): Add structure definition.
1610 (builtin_scm_type): Add prototype.
1611
1612 * scm-valprint.c (scm_inferior_print): Add TYPE parameter. Use it
1613 instead of builtin_core_addr type; do not use objfile architecture.
1614 (scm_scmlist_print): Add TYPE parameter. Use it to define SCM_SIZE.
1615 Pass type to scm_scmval_print.
1616 (scm_ipruk): Add TYPE parameter. Use it to define SCM_SIZE.
1617 (scm_scmval_print): Make static. Add TYPE parameter. Use it to
1618 define SCM_SIZE. Pass type to scm_ipruk and scm_scmlist_print.
1619 (scm_val_print): Pass type to scm_inferior_print and scm_scmval_print.
1620
0a9d309a
UW
16212009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1622
1623 * mdebugread.c (mdebug_type_void, mdebug_type_char, mdebug_type_short,
1624 mdebug_type_int, mdebug_type_int_32, mdebug_type_int_64,
1625 mdebug_type_long_32, mdebug_type_long_64, mdebug_type_long_long_64,
1626 mdebug_type_unsigned_char, mdebug_type_unsigned_short,
1627 mdebug_type_unsigned_int_32, mdebug_type_unsigned_int_64,
1628 mdebug_type_unsigned_long_32, mdebug_type_unsigned_long_64,
1629 mdebug_type_unsigned_long_long_64, mdebug_type_adr_32,
1630 mdebug_type_adr_64, mdebug_type_float, mdebug_type_double,
1631 mdebug_type_complex, mdebug_type_double_complex,
1632 mdebug_type_fixed_dec, mdebug_type_float_dec, mdebug_type_string):
1633 Remove.
1634
1635 (basic_type_data): New global variable.
1636 (basic_type): New function.
1637 (parse_type): Remove static basic type map map_bt. Call basic_type
1638 to get basic types instead of using mdebug_type_ variables.
1639
1640 (parse_symbol): Use builtin types instead of mdebug_type_ variables.
1641 (upgrade_type): Likewise.
1642 (parse_procedure): Likewise.
1643 (psymtab_to_symtab_1): Likewise.
1644
1645 (_initialize_mdebugread): Do not initialize mdebug_type_ variables.
1646 Initialize basic_type_data.
1647
289bd67a
UW
16482009-06-03 Ulrich Weigand <uweigand@de.ibm.com>
1649
1650 * dfp.h (decimal_binop): Convert LEN_RESULT to input parameter.
1651 * dfp.c (promote_decimal): Remove.
1652 (decimal_binop): Convert LEN_RESULT to input parameter.
1653 Remove call to decimal_binop.
1654 (decimal_compare): Remove call to decimal_binop.
1655
1656 * valarith.c (value_binop): Pass desired result type length
1657 to decimal_binop.
1658
64c9be2e
TG
16592009-06-01 Tristan Gingold <gingold@adacore.com>
1660
1661 * configure.tgt (avr): Set gdb_sim to use the simulator.
1662
5a437975
DE
16632009-05-29 Doug Evans <dje@google.com>
1664
1665 * infrun.c (prepare_to_proceed): Document. Assert !non_stop.
1666 If scheduler-locking is enabled, we're not going to be singlestepping
1667 any other previously stopped thread.
1668
ab730e72
PA
16692009-05-29 Pedro Alves <pedro@codesourcery.com>
1670
1671 * mi/mi-interp.c (mi_on_resume): Initialize `count' to 0.
1672
3d22076f
EZ
16732009-05-29 Eli Zaretskii <eliz@gnu.org>
1674
1675 * i386-tdep.c (i386_go32_init_abi): Use SVR4 register numbering
1676 for stabs and COFF debug info.
1677
b3444185
PA
16782009-05-28 Pedro Alves <pedro@codesourcery.com>
1679
1680 * infrun.c (handle_inferior_event): When thread hoping, switch
1681 inferior_ptid to the event thread before removing breakpoints from
1682 the target. If not stopping, also try to revert back to a thread
1683 that was doing a "next". Check if that thread still exists before
1684 resuming.
1685 (currently_stepping_thread): Delete and merge with ...
1686 (currently_stepping): ... this.
1687 (currently_stepping_callback): Rename to ...
1688 (currently_stepping_or_nexting_callback): ... this, and also
1689 return true if the thread was stepping over a call (has a
1690 step-resume breakpoint).
1691
8f500870
TT
16922009-05-28 Tom Tromey <tromey@redhat.com>
1693
1694 * python/python.c (gdbpy_parameter): Rename. Fix error message.
1695 (GdbMethods): Change "get_parameter" to "parameter".
1696
6bf0ce2b
PP
16972009-05-28 Pierre Muller <muller@ics.u-strasbg.fr>
1698 Paul Pluzhnikov <ppluzhnikov@google.com>
1699
1700 * configure.ac (!have_libpython): Add python-prettyprint source
1701 and object files.
1702 * configure: Regenerate.
1703 * python/python-prettyprint.c: Move "#ifdef HAVE_PYTHON" before
1704 python headers.
1705
b6313243
TT
17062009-05-27 Vladimir Prus <vladimir@codesourcery.com>
1707 Tom Tromey <tromey@redhat.com>
1708 Thiago Jung Bauermann <bauerman@br.ibm.com>
1709
1710 * mi/mi-main.c (mi_cmd_list_features): List "python" feature.
1711 * varobj.h (varobj_set_visualizer): Declare.
1712 (varobj_get_display_hint): Likewise.
1713 (varobj_update_result_t) <children_changed, value_installed>: New
1714 fields.
1715 * mi/mi-cmds.c (mi_cmds): Add var-set-visualizer.
1716 * mi/mi-cmds.h (mi_cmd_var_set_visualizer,
1717 mi_cmd_var_set_child_range): Declare.
1718 * mi/mi-cmd-var.c (mi_cmd_var_set_visualizer): New function.
1719 (mi_cmd_var_list_children): Emit display hint.
1720 (varobj_update_one): Emit display hint. Handle dynamic children.
1721 * python/python.c (GdbMethods): Add "default_visualizer".
1722 * python/python-internal.h (apply_varobj_pretty_printer,
1723 gdbpy_get_varobj_pretty_printer, gdbpy_get_display_hint):
1724 Declare.
1725 (gdbpy_default_visualizer): Likewise.
1726 * varobj.c: Include python.h, python-internal.h.
1727 (PyObject): New typedef.
1728 (struct varobj) <children_requested, pretty_printer>: New fields.
1729 (varobj_create): Call install_default_visualizer.
1730 (instantiate_pretty_printer): New function.
1731 (varobj_set_display_format): Update.
1732 (varobj_get_display_hint): New function.
1733 (update_dynamic_varobj_children): New function.
1734 (varobj_get_num_children): Handle dynamic children.
1735 (varobj_list_children): Likewise.
1736 (install_new_value): Likewise.
1737 (varobj_add_child): New function.
1738 (install_visualizer): Likewise.
1739 (install_default_visualizer): Likewise.
1740 (varobj_set_visualizer): Likewise.
1741 (varobj_update): Handle dynamic children.
1742 (create_child): Use create_child_with_value.
1743 (create_child_with_value): New function.
1744 (value_get_print_value): Call pretty printer. Add value_formatter
1745 argument.
1746 (c_value_of_variable): Update.
1747 (varobj_invalidate): Always free all_rootvarobj.
1748 * python/python-prettyprint.c (apply_varobj_pretty_printer): New
1749 function.
1750 (gdbpy_get_varobj_pretty_printer): Likewise.
1751 (gdbpy_default_visualizer): Likewise.
1752
a6bac58e
TT
17532009-05-27 Tom Tromey <tromey@redhat.com>
1754 Thiago Jung Bauermann <bauerman@br.ibm.com>
1755 Phil Muldoon <pmuldoon@redhat.com>
1756 Paul Pluzhnikov <ppluzhnikov@google.com>
1757 Vladimir Prus <vladimir@codesourcery.com>
1758
1759 * python/python-value.c (value_object_to_value): New function.
1760 * python/python-internal.h: Include frameobject.h.
1761 (gdbpy_children_cst, gdbpy_to_string_cst, gdbpy_display_hint_cst):
1762 Declare.
1763 (value_object_to_value): Declare.
1764 * printcmd.c (struct format_data) <raw>: New field.
1765 (last_format): Default to 0.
1766 (decode_format): Initialize val.raw. Handle /r flag.
1767 (print_command_1): Initialize fmt.raw and opts.raw.
1768 (output_command): Likewise.
1769 (x_command): Fix initialization of fmt.format. Initialize
1770 fmt.raw.
1771 (display_command): Initialize fmt.raw.
1772 (do_one_display): Set opts.raw.
1773 * python/python.c (gdbpy_to_string_cst, gdbpy_children_cst,
1774 gdbpy_display_hint_cst): New globals.
1775 (_initialize_python): Initialize them. Set gdb.pretty_printers.
1776 * cp-valprint.c: Include python.h.
1777 (cp_print_value): Call apply_val_pretty_printer.
1778 * python/python.h (apply_val_pretty_printer): Declare.
1779 * stack.c (print_this_frame_argument_p): Remove.
1780 (print_frame_args): Compute summary flag. Don't use
1781 print_this_frame_argument_p.
1782 * valprint.c: Include python.h.
1783 (user_print_options): Initialize new fields.
1784 (scalar_type_p): New function.
1785 (val_print): Handle 'raw' and 'summary' modes. Call
1786 apply_val_pretty_printer.
1787 (value_print): Handle 'raw' mode.
1788 * valprint.h (struct value_print_options) <raw, summary>: New
1789 fields.
1790 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-prettyprint.o
1791 (SUBDIR_PYTHON_SRCS): Add python-prettyprint.c.
1792 (python-prettyprint.o): New target.
1793 * python/python-prettyprint.c: New file.
1794
42ae5230
TT
17952009-05-27 Tom Tromey <tromey@redhat.com>
1796 Paul Pluzhnikov <ppluzhnikov@google.com>
1797
1798 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Use
1799 value_address.
1800 * cli/cli-dump.c (dump_value_to_file): Use value_address.
1801 * valprint.c (common_val_print): Likewise.
1802 * v850-tdep.c (v850_push_dummy_call): Use value_address.
1803 * tracepoint.c (encode_actions): Use value_address.
1804 * printcmd.c (print_formatted): Use value_address.
1805 (x_command): Likewise.
1806 * p-valprint.c (pascal_object_print_static_field): Use
1807 value_address.
1808 * mn10300-tdep.c (mn10300_push_dummy_call): Use value_address.
1809 * mips-tdep.c (mips_eabi_push_dummy_call): Use value_address.
1810 * m32r-tdep.c (m32r_push_dummy_call): Use value_address.
1811 * jv-valprint.c (java_value_print): Use value_address.
1812 * infcall.c (find_function_addr): Use value_address.
1813 * gnu-v3-abi.c (gnuv3_rtti_type): Use value_address.
1814 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use value_address.
1815 * frv-tdep.c (frv_push_dummy_call): Use value_address.
1816 * frame.c (frame_register_unwind): Use value_address.
1817 (frame_unwind_register_value): Likewise.
1818 * darwin-nat-info.c (info_mach_region_command): Use
1819 value_address.
1820 * cp-valprint.c (cp_print_static_field): Use value_address.
1821 * c-valprint.c (c_value_print): Use value_address.
1822 * breakpoint.c (update_watchpoint): Use value_address.
1823 (can_use_hardware_watchpoint): Likewise.
1824 * ada-valprint.c (ada_val_print_1): Use value_address.
1825 (ada_value_print): Likewise.
1826 * ada-tasks.c (read_fat_string_value): Use value_address.
1827 * jv-lang.c (java_link_class_type): Use set_value_address.
1828 (java_link_class_type): Likewise.
1829 (get_java_utf8_name): Use value_address.
1830 (type_from_class): Likewise.
1831 (java_link_class_type): Likewise.
1832 * findvar.c (value_of_register): Use set_value_address.
1833 (read_var_value): Likewise.
1834 (read_var_value): Likewise.
1835 * eval.c (evaluate_subexp_standard): Use set_value_address.
1836 (evaluate_subexp_standard): Use value_address.
1837 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Use set_value_address.
1838 * ada-lang.c (coerce_unspec_val_to_type): Use set_value_address.
1839 (ada_value_primitive_packed_val): Likewise.
1840 (ensure_lval): Likewise.
1841 (thin_data_pntr): Use value_address.
1842 (desc_bounds): Likewise.
1843 (ada_value_primitive_packed_val): Likewise.
1844 (value_assign_to_component): Likewise.
1845 (ensure_lval): Likewise.
1846 (make_array_descriptor): Likewise.
1847 (ada_to_fixed_value): Likewise.
1848 (unwrap_value): Likewise.
1849 * value.c (deprecated_value_address_hack): Remove.
1850 (value_address): New function.
1851 (value_raw_address): Likewise.
1852 (set_value_address): Likewise.
1853 (value_fn_field): Use set_value_address.
1854 (value_from_contents_and_address): Likewise.
1855 (value_fn_field): Likewise.
1856 (allocate_value_lazy): Don't use VALUE_ADDRESS.
1857 (value_as_address): Use value_address.
1858 (value_static_field): Likewise.
1859 * valops.c (search_struct_field): Use set_value_address.
1860 (value_at): Likewise.
1861 (value_at_lazy): Likewise.
1862 (value_repeat): Likewise.
1863 (value_cast_structs): Use value_address.
1864 (value_cast): Likewise.
1865 (value_fetch_lazy): Likewise.
1866 (value_assign): Likewise.
1867 (value_repeat): Likewise.
1868 (address_of_variable): Likewise.
1869 (value_coerce_array): Likewise.
1870 (value_coerce_function): Likewise.
1871 (value_addr): Likewise.
1872 (search_struct_field): Likewise.
1873 (search_struct_method): Likewise.
1874 (find_method_list): Likewise.
1875 (value_struct_elt_for_reference): Likewise.
1876 (value_full_object): Likewise.
1877 * jv-valprint.c (java_value_print): Use set_value_address.
1878 * value.h (deprecated_value_address_hack): Remove.
1879 (VALUE_ADDRESS): Remove.
1880 (value_address): Declare.
1881 (value_raw_address): Declare.
1882 (set_value_address): Declare.
1883
2c74e833
TT
18842009-05-27 Tom Tromey <tromey@redhat.com>
1885 Thiago Jung Bauermann <bauerman@br.ibm.com>
1886 Phil Muldoon <pmuldoon@redhat.com>
1887 Paul Pluzhnikov <ppluzhnikov@google.com>
1888
1889 * python/python.c (_initialize_python): Call
1890 gdbpy_initialize_types.
1891 (GdbMethods): Add "lookup_type".
1892 * python/python-value.c (value_object) <type>: New field.
1893 (valpy_dealloc): Decref type.
1894 (valpy_new): Initialize type.
1895 (valpy_get_type): New function.
1896 (value_to_value_object): Initialize type.
1897 (valpy_cast): New function.
1898 (value_object_getset): Add "type".
1899 (value_object_methods): Add "cast".
1900 * python/python-internal.h (type_to_type_object): Declare.
1901 (type_object_to_type): Likewise.
1902 (gdbpy_initialize_types): Likewise.
1903 (gdbpy_lookup_type): Declare.
1904 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-type.o.
1905 (SUBDIR_PYTHON_SRCS): Add python-type.c.
1906 (python-type.o): New target.
1907 * python/python-type.c: New file.
1908
89c73ade
TT
19092009-05-27 Tom Tromey <tromey@redhat.com>
1910 Thiago Jung Bauermann <bauerman@br.ibm.com>
1911 Phil Muldoon <pmuldoon@redhat.com>
1912
1913 * python/python.c: Include objfiles.h, observer.h.
1914 (gdbpy_auto_load): New global.
1915 (gdbpy_current_objfile): Likewise.
1916 (GDBPY_AUTO_FILENAME): New define.
1917 (gdbpy_new_objfile): New function.
1918 (gdbpy_get_current_objfile): Likewise.
1919 (gdbpy_objfiles): Likewise.
1920 (_initialize_python): Add "maint set auto-load". Call
1921 gdbpy_initialize_objfile. Attach objfile observer.
1922 (GdbMethods): New methods current_objfile, objfiles.
1923 * python/python-objfile.c: New file.
1924 * python/python-internal.h (objfile_to_objfile_object): Declare.
1925 (objfpy_get_printers): Likewise.
1926 (gdbpy_initialize_objfile): Likewise.
1927 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-objfile.o.
1928 (SUBDIR_PYTHON_SRCS): Add python-objfile.c.
1929 (python-objfile.o): New target.
1930
a75724bc
PA
19312009-05-27 Pedro Alves <pedro@codesourcery.com>
1932
1933 * infrun.c (follow_exec): Clear the stop_requested flag.
1934 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1935 Add debug output.
1936
97c44116
AR
19372009-05-27 Aleksandar Ristovski <aristovski@qnx.com>
1938
1939 * nto-procfs.c (get_regset): Pass correct pointer.
1940
f504f079
DE
19412009-05-26 Doug Evans <dje@google.com>
1942
1943 * dwarf2read.c (follow_die_ref): Add comment.
1944 (dwarf2_mark_helper): Tweak comment.
1945 (dwarf2_mark): Move description to its proper place.
1946
4fcbb494
PM
19472009-05-25 Pierre Muller <muller@ics.u-strasbg.fr>
1948
1949 * procfs.c (procfs_wait): Add options parameter.
1950
4e3990f4
DE
19512009-05-24 Doug Evans <dje@google.com>
1952
e09875d4
DE
1953 Global renaming of find_thread_pid to find_thread_ptid.
1954 * gdbthread.h (find_thread_ptid): Renamed from find_thread_pid.
1955 * thread.c (find_thread_ptid): Renamed from find_thread_pid.
1956 All callers updated.
1957
4e3990f4
DE
1958 * infrun.c (follow_fork): Initialize new step_* locals
1959 to avoid "may be used uninitialized" warnings.
1960
98b54c18
PA
19612009-05-24 Pedro Alves <pedro@codesourcery.com>
1962
1963 * inflow.c (copy_terminal_info): Deep copy `run_terminal'.
1964
e58b0e63
PA
19652009-05-24 Pedro Alves <pedro@codesourcery.com>
1966
1967 * gdbthread.h (struct thread_info): New `pending_follow' field.
1968 * thread.c (new_thread): New function.
1969 (add_thread_silent): Use it.
1970 * breakpoint.c (internal_breakpoint_number): New global, moved
1971 from inside...
1972 (create_internal_breakpoint): ... this.
1973 (clone_momentary_breakpoint): New.
1974 * breakpoint.h (clone_momentary_breakpoint): Declare.
1975 * infrun.c (nullify_last_target_wait_ptid): Move declaration
1976 higher.
1977 (pending_follow): Delete.
1978 (follow_fork): Handle pending follow fork event here. Moved the
1979 preserving of thread stepping state here.
1980 (resume): Don't handle pending follow fork events here. Only
1981 install the inferior's terminal modes if we're about to resume it.
1982 (proceed): Handle possible pending follow fork events here.
1983 (init_wait_for_inferior): No need to clear pending_follow anymore,
1984 it's gone.
1985 (handle_inferior_event): Adjust to per-thread `pending_follow'.
1986 Call `follow_fork' to handle following the fork. If the
1987 follow-fork is cancelled, stop stepping.
1988 * linux-nat.c (linux_child_follow_fork): Adjust to per-thread
1989 `pending_follow' events. Remove code that handled preserving the
1990 thread stepping state.
1991 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
1992 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1993
ea26755d 19942009-05-24 Pierre Muller <muller@ics.u-strasbg.fr>
70992597
PM
1995
1996 * symfile.c (add_shared_symbol_files_command): Remove
1997 prototype and function.
1998 (_initialize _symfile): Move "add-shared-symbol-files"
1999 command and "assf" alias.
2000 * windows-nat.c (_initialize_windows_nat): to here.
2001 Change "add-shared-symbol-files" to alias.
2002
2003 * config/i386/cygwin.mh: Remove NAT_FILE.
2004 * config/i386/mingw.mh: Remove NAT_FILE.
2005 * config/i386/mingw64.mh: Remove NAT_FILE.
2006 * config/i386/nm-cygwin.h: Remove file.
2007 * config/i386/nm-cygwin64.h: Remove file.
2008
5e31abdf
HZ
20092009-05-24 Hui Zhu <teawater@gmail.com>
2010
2011 * i386-linux-tdep.c (I386_LINUX_RECORD_SIZE_*,
2012 I386_LINUX_RECORD_IOCTL_*,
2013 I386_LINUX_RECORD_FCNTL_*) Removed.
2014 (i386_linux_init_abi): Change size of record from macros to
2015 numbers.
2016
20172009-05-24 Hui Zhu <teawater@gmail.com>
2018
2019 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_char.
2020 * linux-record.c (record_linux_system_call): Ditto.
2021 * linux-record.h (linux_record_tdep): Ditto.
2022
1b36a34b
JK
20232009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 Replace the savestring calls by xstrdup calls where possible.
2026 * breakpoint.c (condition_command, set_raw_breakpoint)
2027 (create_catchpoint, update_breakpoint_locations): Replace the
2028 savestring calls by xstrdup calls where possible.
2029 * buildsym.c (start_subfile, patch_subfile_names, record_debugformat)
2030 (record_producer): Likewise.
2031 * coffread.c (coff_start_symtab, complete_symtab): Likewise.
2032 * corefile.c (set_gnutarget): Likewise.
2033 * dbxread.c (add_new_header_file): Likewise.
2034 * demangle.c (set_demangling_command, set_demangling_style): Likewise.
2035 * event-top.c (push_prompt, pop_prompt, command_line_handler)
2036 (set_async_prompt): Likewise.
2037 * infcmd.c (set_inferior_io_terminal, attach_command_post_wait):
2038 Likewise.
2039 * language.c (set_language_command, _initialize_language): Likewise.
2040 * linespec.c (decode_line_2): Likewise.
2041 * rs6000-nat.c (add_vmap): Likewise.
2042 * top.c (set_prompt, init_history, init_main): Likewise.
2043 * tracepoint.c (stringify_collection_list): Likewise.
2044 * varobj.c (varobj_create): Remove variable expr_len. Replace the
2045 savestring calls by xstrdup calls where possible.
2046 (value_of_root, c_name_of_variable, c_describe_child): Replace the
2047 savestring calls by xstrdup calls where possible.
2048 * xcoffread.c (complete_symtab): Likewise.
2049 * cli/cli-script.c (build_command_line, define_command): Likewise.
2050 * cli/cli-setshow.c (do_setshow_command): Likewise.
2051
61d8f275
JK
20522009-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2053
2054 Remove already unreachable code.
2055 * varobj.c (varobj_get_handle): Fix comment when error is called.
2056 All callers updated.
2057
969107c5
EZ
20582009-05-23 Eli Zaretskii <eliz@gnu.org>
2059
70926f63
EZ
2060 * README (`configure' options): Document GDB-specific options to
2061 `configure'.
2062
8c7a1ee8
EZ
2063 * symtab.c (skip_prologue_using_lineinfo): New function.
2064 (find_function_start_sal): Use it to get to the first line of
2065 function's body that has an entry in the lineinfo table.
2066
969107c5
EZ
2067 * symmisc.c (dump_symtab): Switch the current language to
2068 the language of the symtab we are dumping only if the symtab's
2069 language is neither language_auto nor language_unknown.
2070
2071 * coffread.c (coff_symtab_read): Set language_minimal as the
2072 language for the "_globals_" pseudo-file.
754dd031
EZ
2073 (process_coff_symbol): Set the symbol's language to the language
2074 of current_subfile.
969107c5 2075
0542c86d
PA
20762009-05-22 Pedro Alves <pedro@codesourcery.com>
2077
2078 * target.h (struct section_table): Rename to ...
2079 (struct target_section): ... this.
2080 * exec.c: Adjust all references.
2081 * exec.h: Adjust all references.
2082 * nto-tdep.c: Adjust all references.
2083 * nto-tdep.h: Adjust all references.
2084 * ppc-linux-tdep.c: Adjust all references.
2085 * rs6000-nat.c: Adjust all references.
2086 * s390-tdep.c: Adjust all references.
2087 * solib-darwin.c: Adjust all references.
2088 * solib-frv.c: Adjust all references.
2089 * solib-irix.c: Adjust all references.
2090 * solib-null.c: Adjust all references.
2091 * solib-osf.c: Adjust all references.
2092 * solib-pa64.c: Adjust all references.
2093 * solib-som.c: Adjust all references.
2094 * solib-sunos.c: Adjust all references.
2095 * solib-svr4.c: Adjust all references.
2096 * solib-target.c: Adjust all references.
2097 * solib.c: Adjust all references.
2098 * solist.h: Adjust all references.
2099 * symfile.c: Adjust all references.
2100 * symfile.h: Adjust all references.
2101 * target.c: Adjust all references.
2102
b34fab9a
HZ
21032009-05-22 Hui Zhu <teawater@gmail.com>
2104
2105 Add sys_fcntl argument interfaces to linux_record_tdep.
2106
2107 * linux-record.h (linux_record_tdep): Add fcntl_F_GETLK,
2108 fcntl_F_GETLK64, fcntl_F_SETLK64 and fcntl_F_SETLKW64 to be
2109 interfaces.
2110 * i386-linux-tdep.c (I386_LINUX_RECORD_FCNTL_F_GETLK,
2111 I386_LINUX_RECORD_FCNTL_F_GETLK64,
2112 I386_LINUX_RECORD_FCNTL_F_SETLK64,
2113 I386_LINUX_RECORD_FCNTL_F_SETLKW64): New macros. The values
2114 of I386 Linux sys_fcntl arguments.
2115 (i386_linux_init_abi): Set macros values to linux_record_tdep.
2116 * linux-record.c (record_linux_system_call): Change to use
2117 the interface in linux_record_tdep in sys_fcntl and
2118 sys_fcntl64.
2119
2120 * linux-record.c (record_linux_system_call): Fix the process
2121 record build error about type in CYGWIN.
2122
88c0ab9d
PA
21232009-05-22 Pedro Alves <pedro@codesourcery.com>
2124
2125 * inflow.c (kill_command): Delete left over static declaration.
2126
348f8c02
PA
21272009-05-22 Pedro Alves <pedro@codesourcery.com>
2128
2129 * bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
2130 Include exec.h.
2131 (struct section_closure): Delete.
2132 (add_to_section_table): Delete.
2133 (build_target_sections_from_bfd): Delete.
2134 (target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
2135 (target_bfd_reopen): Use build_section_table.
2136 * exec.c (xfer_memory): Move most code except for overlay
2137 debugging support from here...
2138 (section_table_xfer_memory): ... to this new function.
2139 (section_table_xfer_memory_partial): New.
2140 * exec.h (section_table_xfer_memory_partial): Declare.
2141 * bfd-target.h (build_target_sections_from_bfd): Delete
2142 declaration.
2143
41575630
PA
21442009-05-22 Pedro Alves <pedro@codesourcery.com>
2145
2146 * remote.c (compare_sections_command): Don't declare exec_bfd.
2147 * tracepoint.c: Include "gdbcore.h".
2148 (remote_set_transparent_ranges): Don't declare exec_bfd.
2149
783425fc
PA
21502009-05-21 Pedro Alves <pedro@codesourcery.com>
2151
2152 * aix-thread.c (init_aix_thread_ops): Whitespace.
2153
61439e34
PA
21542009-05-21 Pedro Alves <pedro@codesourcery.com>
2155
2156 * dec-thread.c (dec_thread_wait): Add options parameter. Use it
2157 to call the to_wait method in the target beneath.
2158 * remote-m32r-sdi.c (m32r_wait): Add options parameter.
2159
8914d83b
JB
21602009-05-21 Joel Brobecker <brobecker@adacore.com>
2161
2162 * aix-thread.c (aix_thread_wait): Add options parameter. Use it
2163 to call the to_wait method in the target_beneath.
2164
d9d2d8b6
PA
21652009-05-21 Pedro Alves <pedro@codesourcery.com>
2166
2167 * linux-nat.c (linux_nat_terminal_inferior)
2168 (linux_nat_terminal_ours): Don't check sync_execution.
2169 * remote.c (remote_terminal_inferior, remote_terminal_ours):
2170 Don't check sync_execution. Update comments.
2171 * target.c (target_terminal_inferior): New.
2172 * target.h (target_terminal_inferior): Delete macro, and declare
2173 as function.
2174 * event-top.c (async_disable_stdin): Make idempotent. Don't give
2175 the target the terminal here.
2176 * inflow.c (terminal_ours_1): Don't return early without setting
2177 `terminal_is_ours'.
2178
47608cb1
PA
21792009-05-21 Pedro Alves <pedro@codesourcery.com>
2180
2181 * target.h (TARGET_WNOHANG): New.
2182 * target.c (target_wait): Add `options' argument. Adjust.
2183 (struct target_ops) <to_wait>: Add `options' argument.
2184 (target_wait): Add `options' argument.
2185 * infrun.c (wait_for_inferior): Pass 0 as options to
2186 target_wait (blocking wait).
2187 (fetch_inferior_event): Pass TARGET_WNOHANG as options to
2188 target_wait.
2189 * fork-child.c (startup_inferior): Pass 0 as options to
2190 target_wait (blocking wait).
2191 * linux-nat.c (linux_nat_create_inferior): Remove async masking.
2192 (linux_nat_wait_1): Add `target_options' argument. Use it instead
2193 of checking on target_can_async_p.
2194 (linux_nat_wait): Add `target_options' argument. Adjust.
2195 * remote.c (remote_wait_ns): Add `options' argument. Adjust to
2196 check on TARGET_WNOWAIT instead of checking on remote_is_async_p.
2197 (remote_wait_as): Add `options' argument. Adjust to check on
2198 TARGET_WNOWAIT instead of checking on remote_is_async_p. If doing
2199 a blocking wait, keep waiting until an interesting event comes
2200 out.
2201 (remote_wait): Add `options' argument. Don't loop here if the
2202 target is in async mode, and a blocking wait has been requested.
2203
2204 * top.c (deprecated_target_wait_hook): Add `options' argument.
2205 * linux-thread-db.c (thread_db_wait): Add `options' argument, and
2206 pass it down to the layer beneath.
2207 * inf-ptrace.c (inf_ptrace_wait): Add `options' argument.
2208 * record.c (record_beneath_to_wait): Add `options' argument.
2209 (record_wait): Add `options' argument, and pass it down to the
2210 layer beneath.
2211 * bsd-uthread.c (bsd_uthread_wait): Add `options' argument.
2212 * darwin-nat.c (darwin_wait): Likewise.
2213 * defs.h (deprecated_target_wait_hook): Likewise.
2214 * gnu-nat.c (gnu_wait): Add `options' argument.
2215 * go32-nat.c (go32_wait): Likewise.
2216 * hpux-thread.c (hpux_thread_wait): Add `options' argument, and
2217 pass it down to the layer beneath.
2218 * inf-ttrace.c (inf_ttrace_wait): Add `options' argument.
2219 * monitor.c (monitor_wait): Likewise.
2220 * nto-procfs.c (procfs_wait): Likewise.
2221 * remote-mips.c (mips_wait): Add `options' argument.
2222 * remote-sim.c (gdbsim_wait): Likewise.
2223 * rs6000-nat.c (rs6000_wait): Add `options' argument.
2224 * sol-thread.c (sol_thread_wait): Add `options' argument, and pass
2225 it down to the layer beneath.
2226 * spu-linux-nat.c (spu_child_wait): Add `options' argument.
2227 * windows-nat.c (windows_wait): Likewise.
2228 * tui/tui-hooks.c (tui_target_wait_hook): Likewise. Adjust.
2229
9944e9c2
PA
22302009-05-21 Pedro Alves <pedro@codesourcery.com>
2231
2232 * mi/mi-interp.c (mi_on_resume): Account for whole process
2233 resumes.
2234
c244a140
JK
22352009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2236
2237 * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
2238
76bee0cc
JK
22392009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2240
2241 * dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.
2242
4ac36638
JK
22432009-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2244
2245 Fix parsing DW_AT_const_value using DW_FORM_string.
2246 * dwarf2read.c (dwarf2_const_value <DW_FORM_string>): New.
2247
77f0be4e
JB
22482009-05-20 Joel Brobecker <brobecker@adacore.com>
2249
2250 * aix-thread.c (giter_count): Do not count the main thread.
2251 (giter_accum): Do not include the main thread.
2252
fbdebf46
JK
22532009-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2254
2255 Remove the PROT parameter from openp.
2256 * source.c (openp): Remove the parameter PROT. Assertion check MODE.
2257 defs.h (openp): Update the prototype.
2258 Update all the openp callers.
2259
5fd62852
PA
22602009-05-19 Pedro Alves <pedro@codesourcery.com>
2261
2262 * inflow.c (kill_command): Moved to infcmd.c.
2263 (_initialize_inflow): Don't add the "kill" command or clear
2264 inferior_ptid here.
2265 * infcmd.c (kill_command): Moved here from inflow.c.
2266 (_initialize_infcmd): Add the "kill" command here.
2267
191c4426
PA
22682009-05-19 Pedro Alves <pedro@codesourcery.com>
2269
2270 * fork-child.c: Don't include frame.h. Include terminal.h.
2271 (fork_inferior): Call new_tty_postfork after forking adn adding
2272 the child to the inferior list.
2273 * inferior.h (new_tty_prefork, gdb_has_a_terminal): Don't declare
2274 here.
2275 * inflow.c (struct terminal_info): Remove const qualifier from
2276 `run_terminal' field.
2277 (inferior_thisrun_terminal): Tweak comment.
2278 (inflow_inferior_exit): Release the `run_terminal' field.
2279 (copy_terminal_info): New function.
2280 (new_tty_postfork): New function.
2281 * terminal.h (new_tty_prefork, new_tty, new_tty_postfork,
2282 (copy_terminal_info, gdb_has_a_terminal, gdb_setpgid): Declare.
2283 * inf-ptrace.c: Include terminal.h.
2284 (inf_ptrace_follow_fork): Copy the parent's terminal info to the
2285 child.
2286 * linux-nat.c: Include terminal.h.
2287 (linux_child_follow_fork): Copy the parent's terminal info to the
2288 child.
2289 * inf-ttrace.c: Include terminal.h.
2290 (inf_ttrace_follow_fork): Copy the parent's terminal info to the
2291 child.
2292
2ea7b647
PA
22932009-05-19 Pedro Alves <pedro@codesourcery.com>
2294
2295 * breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
2296 (update_global_location_list): Use gdbarch_has_global_breakpoints
2297 instead of gdbarch_has_global_solist and
2298 target_supports_multi_process.
2299 * dicos-tdep.c (dicos_init_abi): Set
2300 gdbarch_has_global_breakpoints.
2301 * gdbarch.sh (has_global_solist): Update comment.
2302 (has_global_breakpoints): New.
2303 * remote.c (remote_start_remote): Use
2304 gdbarch_has_global_breakpoints instead of
2305 gdbarch_has_global_solist.
2306 * target.c (target_detach): Use gdbarch_has_global_breakpoints
2307 instead of gdbarch_has_global_solist.
2308 * infcmd.c (attach_command): Use gdbarch_has_global_solist instead
2309 of target_supports_multi_process.
2310
6342b74a
PP
23112009-05-18 Paul Pluzhnikov <ppluzhnikov@google.com>
2312
2313 * objc-lang.c (find_methods): Plug a small memory leak.
2314
1a816a87
PA
23152009-05-18 Pedro Alves <pedro@codesourcery.com>
2316
2317 * solib-svr4.c: Include observer.h.
2318 (debug_base, debug_loader_offset_p, debug_loader_offset)
2319 (debug_loader_name, main_lm_addr): Move these globals...
2320 (struct svr4_info): ... into this new structure.
2321 (svr4_info_p): New typedef.
2322 (svr4_info): New global.
2323 (get_svr4_info, remove_svr4_info, solib_svr4_inferior_exit): New
2324 functions.
2325 (locate_base, solib_svr4_r_map, solib_svr4_r_brk)
2326 (solib_svr4_r_ldsomap): Add svr4_info argument. Adjust to
2327 per-inferior svr4.
2328 (open_symbol_file_object): Adjust to per-inferior svr4.
2329 (svr4_default_sos, svr4_current_sos, svr4_fetch_objfile_link_map):
2330 Ditto.
2331 (enable_break): Add svr4_info argument. Adjust to per-inferior
2332 svr4.
2333 (enable_break, svr4_solib_create_inferior_hook, svr4_clear_solib):
2334 Adjust to per-inferior svr4.
2335 (_initialize_svr4_solib): Install the solib_svr4_inferior_exit
2336 observer.
2337
4d062f1a
PA
23382009-05-18 Pedro Alves <pedro@codesourcery.com>
2339
2340 * linux-nat.h (linux_proc_get_tgid): Declare.
2341 * linux-nat.c (linux_proc_get_tgid): New.
2342 * linux-thread-db.c (struct thread_db_info): New field
2343 `need_stale_parent_threads_check'.
2344 (add_thread_db_info): Set it.
2345 (find_new_threads_callback): Ignore stale fork parent threads.
2346 (thread_db_resume): New.
2347 (init_thread_db_ops): Install thread_db_resume.
2348
d90e17a7
PA
23492009-05-18 Pedro Alves <pedro@codesourcery.com>
2350
2351 * fork-child.c (fork_inferior): Only reset the thread list if this
2352 is the first inferior.
2353 (startup_inferior): If the target support multi-process, tell it
2354 to resume only the new process.
2355 * linux-nat.c (num_lwps): Delete global.
2356 (purge_lwp_list): New function.
2357 (num_lwps): New function.
2358 (add_lwp, delete_lwp): Adjust.
2359 (ptid_match): New.
2360 (iterate_over_lwps): Add filter argument. Handle it.
2361 (linux_nat_attach): Remove FIXME note.
2362 (linux_nat_detach): Adjust to iterate over threads of the inferior
2363 we're detaching from. Adjust to num_lwps being a function. Don't
2364 assume the head of the lwp list is the main thread of the process
2365 we're detaching from. Don't destroy the LWP list.
2366 (resume_callback): Add debug output.
2367 (linux_nat_resume): Handle resuming a single inferior. Allow a
2368 wildcard resume in non-stop mode.
2369 (linux_handle_extended_wait): Don't assume inferior_ptid is the
2370 correct inferior of the parent LWP.
2371 (status_callback): Also check lp->waitstatus.
2372 (select_event_lwp): Add new filter parameter. Handle it.
2373 (linux_nat_filter_event): Adjust to num_lwps being a function.
2374 (linux_nat_wait_1): When adding the first lwp of the inferior, use
2375 an is_lwp check instead of checking for the number of lwps.
2376 (linux_nat_wait_1): Handle waiting for a specific tgid. Handle
2377 pending process exit statuses.
2378 (linux_nat_mourn_inferior): Don't destroy all the LWP info.
2379 Instead delete LWPs of the inferior that we're mourning. Don't
2380 unregister from the event loop here.
2381 (linux_nat_pid_to_str): Use `num_lwps'.
2382 (linux_nat_make_corefile_notes): Adjust to walk over lwps of a
2383 single inferior.
2384 (linux_nat_is_async_p): Check if async was masked out.
2385 (linux_multi_process): New global.
2386 (linux_nat_supports_multi_process): New.
2387 (linux_nat_stop_lwp): Remove LWP filtering. It is done by the
2388 caller.
2389 (linux_nat_stop): Adjust to make iterate_over_lwps itself do the
2390 LWP filtering.
2391 (linux_nat_close): New.
2392 (linux_nat_add_target): Register linux_nat_close and
2393 linux_nat_supports_multi_process.
2394 * linux-nat.h (iterate_over_lwps): Add filter argument.
2395 * linux-thread-db.c (thread_db_handle): Delete.
2396 (proc_handle, thread_agent, td_init_p, td_ta_new_p)
2397 (td_ta_map_id2thr_p, td_ta_map_lwp2thr_p, td_ta_thr_iter_p)
2398 (td_ta_event_addr_p, td_ta_set_event_p, td_ta_event_getmsg_p)
2399 (td_thr_validate_p, td_thr_get_info_p, td_thr_event_enable_p)
2400 (td_thr_tls_get_addr_p, td_create_bp_addr, td_death_bp_addr): No
2401 longer globals, moved to...
2402 (struct thread_db_info): ... this new structure.
2403 (thread_db_list): New.
2404 (add_thread_db_info, get_thread_db_info, delete_thread_db_info):
2405 New.
2406 (have_threads_callback): Filter out threads of all inferiors but
2407 the one specified by the ARGS argument.
2408 (have_threads): Add ptid argument specifying the inferior we're
2409 interested in. Handle it.
2410 (struct thread_get_info_inout): New.
2411 (thread_get_info_callback, thread_from_lwp): Adjust to use it.
2412 (thread_db_attach_lwp): Check that inferior of the passed in
2413 thread is using thread-db. Adjust.
2414 (enable_thread_event): Remove thread_agent parameter. Instead,
2415 get it from the per-inferior thread-db info.
2416 (dladdr_to_soname): Move higher up.
2417 (enable_thread_event_reporting): Adjust to use per-inferior
2418 thread-db info.
2419 (try_thread_db_load_1): Replace `handle' parameter by a
2420 thread_db_info parameter. Adjust to use per-inferior thread-db
2421 info.
2422 (try_thread_db_load): Adjust to use per-inferior thread-db info.
2423 (thread_db_load, disable_thread_event_reporting): Ditto.
2424 (check_for_thread_db): Remove conditional reporting of which
2425 libthread_db is in use.
2426 (thread_db_new_objfile): Add comment about inferior_ptid.
2427 (attach_thread): Adjust to use per-inferior thread-db info.
2428 (thread_db_detach): Adjust to use per-inferior thread-db info.
2429 Remove thread event breakpoints of the current inferior. Only
2430 unpush the thread-db target if there are no more processes using
2431 it.
2432 (check_event): Adjust to use per-inferior thread-db info.
2433 (thread_db_wait): Adjust to use per-inferior thread-db info. Only
2434 unpush the thread-db target if there are no more processes using
2435 it.
2436 (thread_db_mourn_inferior): Adjust to use per-inferior thread-db
2437 info. Mark breakpoints of the current inferior out before
2438 deleting them. Only unpush the thread-db target if there are no
2439 more processes using it.
2440 (find_new_threads_callback): Adjust to use per-inferior thread_db
2441 info.
2442 (thread_db_find_new_threads_1): Add new ptid argument. Adjust to
2443 use per-inferior thread-db info.
2444 (thread_db_find_new_threads): Adjust to use per-inferior thread-db
2445 info.
2446 (thread_db_get_thread_local_address): Adjust.
2447 (thread_db_get_ada_task_ptid): Adjust.
2448 * inf-ptrace.c (inf_ptrace_mourn_inferior): Only unpush the target
2449 if there no more processes left to debug.
2450 * thread.c (set_running, set_executing): Handle resuming all
2451 threads of a single inferior.
2452 * mi/mi-interp.c (mi_output_running_pid): New.
2453 (mi_inferior_count): New.
2454 (mi_on_resume): For backwards compatibility, if resuming all
2455 threads of an inferior, and there is only one inferior, output
2456 "all".
2457
dddfab26
UW
24582009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2459
2460 * ada-lang.c (ada_find_any_type): Move check for primitive types ...
2461 (to_fixed_range_type): ... to here.
2462
556bdfd4
UW
24632009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2464
2465 * ada-lang.c (desc_data_type): Remove, replace by ...
2466 (desc_data_target_type): ... this.
2467 (thin_data_pntr): Use desc_data_target_type instead of desc_data_type.
2468 (ada_is_array_descriptor_type): Likewise.
2469 (ada_type_of_array): Likewise.
2470 (ada_coerce_to_simple_array_type): Likewise.
2471 (ada_array_element_type): Likewise.
2472
aaa88a99
UW
24732009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2474
2475 * ada-valprint.c (ada_val_print_1): Use val_print_string to print
2476 result of ada_vax_float_print_function inferior call.
2477
17280b9f
UW
24782009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2479
2480 * ada-lang.c (ada_coerce_to_simple_array_type): Reimplement to
2481 avoid creating a dummy value.
2482
830bb937
UW
24832009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2484
2485 * p-valprint.c (pascal_val_print): Use extract_typed_address
2486 to extract reference value.
2487
e035e373
UW
24882009-05-18 Ulrich Weigand <uweigand@de.ibm.com>
2489
2490 * doublest.c (NAN): Remove unused define.
2491 (extract_floating_by_length, deprecated_extract_floating): Remove.
2492 (store_floating_by_length, deprecated_store_floating): Remove.
2493 (extract_typed_floating): Do not call extract_floating_by_length.
2494 (store_typed_floating): Do not call store_floating_by_length.
2495 (convert_typed_floating): Remove redundant assertions.
2496 * doublest.h (deprecated_extract_floating): Remove.
2497 (deprecated_store_floating): Remove.
2498 * sh64-tdep.c (sh64_register_convert_to_raw): Call
2499 extract_typed_floating instead of deprecated_extract_floating.
2500
c28c63d8
JB
25012009-05-18 Jon Beniston <jon@beniston.com>
2502
2503 * MAINTAINERS: Add lm32 target.
2504 * Makefile.in: Add lm32 dependencies.
2505 * NEWS: Indicate lm32 is a new target.
2506 * configure.tgt: Add lm32 targets.
2507 * lm32-tdep.c: New file.
2508
739fc47a
PA
25092009-05-18 Pedro Alves <pedro@codesourcery.com>
2510
2511 * corelow.c (core_open): Flush the register cache before doing
2512 anything with registers.
2513
7e1789f5
PA
25142009-05-18 Pedro Alves <pedro@codesourcery.com>
2515
2516 * inflow.h (our_process_group): Remove declaration.
2517 (inferior_process_group): Delete global variable declaration.
2518 (inferior_process_group): New function declaration.
2519 * inflow.c: Include observer.h.
2520 (inferior_ttystate, our_ttystate, tflags_inferior, tflags_ours):
2521 Delete.
2522 (struct terminal_info): New struct.
2523 (our_terminal_info): New global.
2524 (inferior_process_group): New function.
2525 (inferior_thisrun_terminal): Extend description comment.
2526 (gdb_has_a_terminal): Adjust to write to our_terminal_info fields
2527 instead of globals.
2528 (terminal_init_inferior_with_pgrp): Adjust to per-inferior
2529 terminal settings.
2530 (terminal_inferior): Ditto.
2531 (terminal_ours_1): Ditto.
2532 (inflow_new_inferior, inflow_inferior_exit): New functions.
2533 (child_terminal_info): Adjust to per-inferior terminal settings.
2534 (osig_set): New global.
2535 (set_sigint_trap): Adjust to per-inferior terminal settings. Set
2536 or clear `osig_set' accordingly.
2537 (clear_sigint_trap): Check `osig_set' to decide wheater to restore
2538 SIGINT handler, instead of checking the current inferior (which
2539 may be none).
2540 (_initialize_inflow): Attach inflow_new_inferior and
2541 inflow_inferior_exit to the "new_inferior" and "inferior_exit"
2542 notifications, respectively.
2543 * inferior.h (struct terminal_info): Forward declare.
2544 (struct inferior): Add `terminal_info' field.
2545 * inferior.c (delete_inferior_1): Notify the inferior_exit
2546 observers before removing the inferior from the lists and deleting
2547 it.
2548 * inf-ptrace.c (inf_ptrace_stop): `inferior_process_group' is now
2549 a function instead of a variable. Adjust.
2550 * procfs.c (procfs_stop): Ditto.
2551
b242c3c2
PA
25522009-05-17 Pedro Alves <pedro@codesourcery.com>
2553
2554 * infrun.c (handle_inferior_event): When handling a
2555 TARGET_WAITKIND_FORKED, detach breakpoints from the fork child
2556 immediatelly.
60a7d074 2557 * linux-nat.c (linux_child_follow_fork): Only detach breakpoints
b242c3c2
PA
2558 from the child if vforking.
2559 * inf-ptrace.c (inf_ptrace_follow_fork): No need to detach
2560 breakpoints from the child here.
2561
71b43ef8
PA
25622009-05-17 Pedro Alves <pedro@codesourcery.com>
2563
2564 * infrun.c (pending_follow): Remove execd_pathname member.
2565 (resume): No longer handle TARGET_WAITKIND_EXECD pending follow.
2566 (handle_inferior_event): When handling a TARGET_WAITKIND_EXECD
2567 event, don't copy `execd_pathname' to pending_follow, use the
2568 event copy instead. Release `execd_pathname' once done with
2569 handling the event.
2570
235f2b04
PA
2571 * infrun.c (pending_follow): Remove mention of exec events.
2572
a6b808b4
HZ
25732009-05-17 Hui Zhu <teawater@gmail.com>
2574
2575 * i386-tdep.c (i386_process_record): Make it extern.
2576 (i386_gdbarch_init): Don't call set_gdbarch_process_record
2577 here.
d5f3b873 2578 * i386-tdep.h (i386_process_record): Declare.
a6b808b4
HZ
2579 * i386-linux-tdep.c (i386_linux_init_abi): Call
2580 set_gdbarch_process_record.
2581
ee342b23
VP
25822009-05-17 Vladimir Prus <vladimir@codesourcery.com>
2583
2584 Always report varobj as changed when in_scope attribute changes.
2585
2586 * varobj.c (install_new_value): If non-NULL-ness of value
2587 changed, return 1.
2588
17a37d48
PP
25892009-05-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2590
2591 * NEWS: Mention set/show libthread-db-search-path.
2592 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): New define.
2593 (LIBTHREAD_DB_SO): Moved from linux-thread-db.c
2594 * linux-thread-db.c (libthread_db_search_path): New setting.
2595 (thread_db_handle): New variable (replaces using_thread_db).
2596 (try_thread_db_load_1): New function.
2597 (try_thread_db_load, thread_db_load_search): Likewise.
2598 (dladdr_to_soname): Likewise.
2599 (thread_db_load): Iterate over possibly multiple libthread_db's.
2600 (check_for_thread_db): Attempt to load new libthread_db.
2601 (thread_db_detach, thread_db_wait): Unload libthread_db.
2602 (thread_db_mourn_inferior): Likewise.
2603 (_initialize_thread_db): Add new libthread-db-search-path option.
2604 Defer loading of libthread_db to check_for_thread_db.
2605 * solib.c (libpthread_name_p): New function.
2606 (libpthread_solib_p): Call it.
2607 * solib.h (libpthread_name_p): New prototype.
2608
0643c12e
PM
26092009-05-15 Pierre Muller <muller@ics.u-strasbg.fr>
2610
2611 * MAINTAINERS: Update my email address.
2612
e62c965a
PP
26132009-05-14 Paul Pluzhnikov <ppluzhnikov@google.com>
2614
2615 * breakpoint.h: Add breakpoint_re_set_objfile prototype.
2616 * breakpoint.c (create_overlay_event_breakpoint): Renamed
2617 from create_overlay_event_breakpoint_1, old
2618 create_overlay_event_breakpoint deleted.
2619 (breakpoint_re_set_objfile): Don't rescan all objfiles
2620 unnecessarily.
2621 (breakpoint_re_set): New function.
2622 * symfile.c (new_symfile_objfile): Call breakpoint_re_set_objfile
2623 instead of breakpoint_re_set.
2624 * objfiles.c (objfile_relocate): Likewise.
2625
9e2ace22
JB
26262009-05-14 Joel Brobecker <brobecker@adacore.com>
2627
2628 * gdbarch.sh: Add comment documenting the target_gdbarch global.
2629 gdbarch.h does NOT need to be regenerated as the corresponding
2630 change has already been made in a previous commit.
2631
39a90fca 26322009-05-14 Pierre Muller <muller@ics.u-strasbg.fr>
9bb9e8ad
PM
2633
2634 Remove all i386 debug register low level macros in config nm files.
2635 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR): Remove.
2636 (I386_DR_LOW_GET_STATUS, I386_DR_LOW_SET_CONTROL): Remove.
2637 (I386_USE_GENERIC_WATCHPOIINTS): Remove.
2638
2639 * i386-nat.h: New file (adapted from config/i386/nm-i386.h).
2640 (struct i386_dr_low_type): New type.
2641 (i386_dr_low): New global variable.
2642 * i386-nat.c (TARGET_HAS_DR_LEN_8): Update macro.
2643 (i386_insert_aligned_watchpoint): Replace i386 dr low macros by
2644 i386_dr_low struct variable fields.
2645 (i386_remove_aligned_watchpoint): Likewise.
2646 (i386_stopped_data_address): Likewise.
2647 (i386_stopped_by_hwbp): Likewise.
2648 (show_debug_regs_command_added): New static variable.
2649 (add_show_debug_regs_command): New static function.
2650 (i386_use_watchpoints): Call add_show_debug_regs_command if not done.
2651 (i386_set_debug_register_length): New function.
2652 (_initialize_i386_nat): Delete.
2653
2654 * amd64-linux-nat.c: Include "i386-nat.h".
2655 (amd64_linux_dr_set_control): Change to static.
2656 (amd64_linux_dr_get_status): Change to static.
2657 (amd64_linux_dr_set_addr,amd64_linux_dr_reset_addr): Likewise.
2658 (_initialize_amd64_linux_nat): Set i386_dr_low variable fields.
2659
2660 * go32-nat.c: Include "i386-nat.h".
2661 (go32_set_addr): Change to static.
2662 (go32_set_dr7): Change to static. Change arg type to unisgned long.
2663 (go32_get_dr6): Change to static. Change return type to unisnged long.
2664 (init_go32_ops): Set i386_dr_low variable fields.
2665 * i386-linux-nat.c: Include "i386-nat.h".
2666 (i386_linux_dr_set_control, i386_linux_dr_get_status): Change to static.
2667 (i386_linux_dr_set_addr, i386_linux_dr_reset_addr): Idem.
2668 (_initialize_i386_linux_nat): Set i386_dr_low variable fields.
2669 * i386bsd-nat.h: Declare functions used for
2670 i386_dr_low fields in i386fbsd-nat.c.
2671 * i386fbsd-nat.c: Include "i386-nat.h".
2672 (_initialize_i386fbsd_nat): Set i386_dr_low variable fields.
2673 * windows-nat.c: Include "i386-nat.h".
2674 (cygwin_set_dr, cygwin_get_dr6, cygwin_set_dr7): Add prototypes.
2675 Change to static.
2676 (cygwin_get_dr6): Change return type to unisnged long.
2677 (cygwin_set_dr7): Change arg type to unisgned long.
2678 (init_windows_ops): Set i386_dr_low function fields.
2679
2680 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Call
2681 i386_set_debug_register_length.
2682 * i386-windows-nat.c (_initialize_i386_windows_nat): Likewise.
2683
2684 * config/i386/nm-cygwin.h: Remove all I386_* macros.
2685 * config/i386/nm-cygwin64.h: Likewise.
2686 * config/i386/nm-fbsd.h: Likewise.
2687 * config/i386/nm-linux.h: Likewise.
2688 * config/i386/nm-i386.h: Remove completely.
2689 * config/i386/nm-go32.h: Remove completely.
2690 * config/i386/nm-linux64.h: Remove completely.
2691 * config/i386/go32.mh (NAT_FILE): Remove entry.
2692 * config/i386/linux64.h (NAT_FILE): Change to config/nm-linux.h.
2693
7a893eb8
JB
26942009-05-14 Jon Beniston <jon@beniston.com>
2695
2696 * MAINTAINERS: Add Jon Beniston to write after approval list.
2697
57a9e6af
PP
26982009-05-13 Paul Pluzhnikov <ppluzhnikov@google.com>
2699
2700 * objc-lang.c (objc_objfile_data): New variable.
2701 (find_methods): Skip objfiles without Obj-C methods.
2702 (_initialize_objc_lang): New function.
2703
3f7f5fe4
JB
27042009-05-13 Joel Brobecker <brobecker@adacore.com>
2705
2706 * c-lang.c (print_wchar): Remove unnecessary cast.
2707
25ad2853
JB
27082009-05-12 Jim Blandy <jimb@red-bean.com>
2709
2710 * MAINTAINERS: Remove self as m32c target maintainer.
2711
cbe54154
PA
27122009-05-12 Pedro Alves <pedro@codesourcery.com>
2713
2714 * cli/cli-decode.c (deprecated_add_set_cmd): Delete.
2715 * command.h (deprecated_add_set_cmd): Delete declaration.
2716 * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with
2717 'set debug gnu-nat' and 'show debug gnu-nat'.
2718 * i386-nat.c (_initialize_i386_nat): Replace 'maint
2719 show-debug-registers' with 'maint set show-debug-registers' and
2720 'maint show show-debug-registers'.
2721 * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint
2722 show-debug-registers' with 'maint set show-debug-registers' and
2723 'maint show show-debug-registers'.
2724
2d90c72a
JB
27252009-05-12 Joel Brobecker <brobecker@adacore.com>
2726
2727 * c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
2728 pushing it on the output obstack.
2729
00903456
JK
27302009-05-11 Joel Brobecker <brobecker@adacore.com>
2731
2732 Fix internal error on breaking at a multi-locations caller source line.
2733 * breakpoint.c (parse_breakpoint_sals): Set EXPLICIT_PC for the `break'
2734 command with no parameters.
2735
7feb7d06
PA
27362009-05-11 Pedro Alves <pedro@codesourcery.com>
2737
2738 * linux-nat.c (enum sigchld_state): Delete.
2739 (linux_nat_async_events_state): Delete.
2740 (struct waitpid_result): Delete.
2741 (waitpid_queue): Delete.
2742 (queued_waitpid_1): Delete.
2743 (async_file_flush): New.
2744 (queued_waitpid, push_waitpid): Delete.
2745 (async_file_mark): New.
2746 (drain_queued_events): Delete.
2747 (my_waitpid): Remove locally queued events handling.
2748 (linux_test_for_tracefork): Upjust.
2749 (linux_child_follow_fork): Ditto.
2750 (sync_sigchld_action): Delete.
2751 (blocked_mask): Reinstate.
2752 (async_sigchld_action): Rename to...
2753 (sigchld_action): ... this.
2754 (block_child_signals): New.
2755 (restore_child_signals_mask): New.
2756 (lin_lwp_attach_lwp): Adjust.
2757 (linux_nat_create_inferior): Ditto.
2758 (linux_nat_attach): Also use lp->status in async mode.
2759 (get_pending_status): Don't use queued_waitpid.
2760 (linux_nat_detach): Don't drain locally queued events.
2761 (linux_nat_resume): Allow pending wait statuses stored lp->status
2762 in async mode. If returning early due to a pending event,
2763 re-register the event source.
2764 (stop_wait_callback): Allow pending wait statuses stored
2765 lp->status in async mode.
2766 (pipe_to_local_event_queue, local_event_queue_to_pipe): Delete.
2767 (linux_nat_wait): Rename to ...
2768 (linux_nat_wait_1): ... this. Allow pending wait statuses stored
2769 lp->status in async mode. Always add WNOHANG to the waitpid
2770 options in async mode.
2771 (linux_nat_wait): New.
2772 (kill_callback): Don't drain locally queued events.
2773 (sigchld_handler): Rewrite.
2774 (linux_nat_is_async_p, linux_nat_can_async_p): Fix comments to
2775 refer to "set target-async".
2776 (linux_nat_async_mask): If in non-stop, and re-enabling async
2777 mode, re-register the target event source in the event loop.
2778 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push)
2779 (get_pending_events, async_sigchld_handler)
2780 (linux_nat_async_events): Delete.
2781 (handle_target_event): New.
2782 (linux_nat_async_file_handler): Delete.
2783 (linux_async_pipe): New.
2784 (linux_nat_async): Only re-register in the event loop if not
2785 registered yet. Always notify the event-loop once if enabling the
2786 event source.
2787 (linux_nat_stop_lwp): Rewrite to handle pending events stored in
2788 lp->status, not in the locally queued event list.
2789 (linux_nat_stop): Don't mask out async event handling.
2790 (linux_nat_setup_async): Delete.
2791 (_initialize_linux_nat): Adjust.
2792 (lin_thread_get_thread_signals): blocked_mask is global again.
2793 Adjust.
2794
39a90fca 27952009-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
d92524f1
PM
2796
2797 Unify target macros.
2798
2799 * target.h (STOPPED_BY_WATCHPOINT): Delete, replaced by ...
2800 (target_stoppped_by_watchpoint): New macro.
2801 (HAVE_STEPPABLE_WATCHPOINT): Delete, replaced by ...
2802 (target_have_steppable_watchpoint): New macro.
2803 (HAVE_CONTINUABLE_WATCHPOINT): Delete, replace by ...
2804 (target_have_continuable_watchpoint): New macro.
2805 (TARGET_CAN_USE_HARDWARE_WATCHPOINT):Delete, replaced by ...
2806 (target_can_use_hardware_watchpoint): New macro.
2807 (TARGET_REGION_OK_FOR_HW_WATCHPOINT):Delete, replaced by ...
2808 (target_region_ok_for_hw_watchpoint): New macro.
2809
2810 * breakpoint.c (update_watchpoint): Use new macros.
2811 (bpstat_alloc): Likewise.
2812 (create_breakpoint): Likewise.
2813 (watch_command_1): Likewise.
2814 (can_use_hardware_watchpoint): Likewise.
2815 (do_enable_breakpoint): Likewise.
2816 * infrun.c (handle_inferior_event): Adapt to new macros.
2817 * mips-tdep.c (mips_gdbarch_init): Update comments.
2818 * procfs.c (procfs_set_watchpoint): Update comment.
2819 (procfs_insert_watchpoint): Adapt to new macros.
2820 * remote-m32r-sdi.c (m32r_stop):
2821 * remote-mips.c (mips_remove_breakpoint):
2822 * target.c (debug_to_region_ok_for_hw_watchpoint): Update to new macros.
2823 (debug_to_stopped_by_watchpoint): Likewise.
2824
2825
39a90fca 28262009-05-10 Pierre Muller <muller@ics.u-strasbg.fr>
fe524716
PM
2827
2828 * src/gdb/target.h: Remove all tests for already defined
2829 macros. All macros defined here should not be set in config
2830 headers anymore.
2831
1dfe79e8
SDJ
28322009-05-08 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2833
2834 * ppc-linux-nat.c (have_ptrace_getsetregs): New variable.
2835 (have_ptrace_getsetfpregs): Likewise.
2836 fetch_all_gp_regs): New function.
2837 (fetch_gp_regs): New function.
2838 (fetch_all_fp_regs): Likewise.
2839 (fetch_fp_regs): New function.
2840 (fetch_ppc_registers): Using the new methods to fetch general-
2841 purpose and floating-pointer registers.
2842 (store_all_gp_regs): New function.
2843 (store_gp_regs): Likewise.
2844 (store_all_fp_regs): New function.
2845 (store_fp_regs): Likewise.
2846 (store_ppc_registers): Using the new methods to store general-
2847 purpose and floating-pointer registers.
2848
2cda8d2f
DE
28492009-05-08 Doug Evans <dje@google.com>
2850
2851 * linux-nat.c (linux_xfer_siginfo): Delete unused locals lp, n.
2852
b0afac70
SDJ
28532009-05-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2854
2855 * MAINTAINERS (Write After Approval): Add self.
2856
6b614274
JB
28572009-05-07 Joel Brobecker <brobecker@adacore.com>
2858
2859 * gdbarch.h (target_gdbarch): Add comment documenting this global.
2860
28612009-05-06 Joel Brobecker <brobecker@adacore.com>
4edb1e84
JB
2862
2863 * acinclude.m4 (AM_ICONV): Prefer in-tree libiconv if present over
2864 system iconv.
2865 * configure: Regenerate.
2866
6b614274 28672009-05-06 Joel Brobecker <brobecker@adacore.com>
8626589c
JB
2868
2869 * utils.c: Add include of gdb_usleep.h.
2870 (defaulted_query): Detect false EOF conditions that happen
2871 on terminals opened with the O_NONBLOCK flag when there is
2872 nothing to read.
2873
a562dc8f
PA
28742009-05-06 Pedro Alves <pedro@codesourcery.com>
2875
2876 * inferior.c (add_inferior): Move observer_notify_new_inferior
2877 call to ...
2878 (add_inferior_silent): ... here.
2879
39a90fca 28802009-05-06 Pierre Muller <muller@ics.u-strasbg.fr>
25513619
PA
2881 Pedro Alves <pedro@codesourcery.com>
2882
2883 * procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
2884 (procfs_region_ok_for_hw_watchpoint, procfs_use_watchpoints): New
2885 functions.
2886 (procfs_stopped_by_watchpoint): Made static, ptid argument
2887 removed.
2888 (_initialize_procfs): Register new watchpoint related target
2889 functions.
2890 * config/i386/nm-i386sol2.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT)
2891 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT)
2892 (HAVE_CONTINUABLE_WATCHPOINT): Delete.
2893 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2894 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2895 declarations.
2896 * config/mips/nm-irix5.h (STOPPED_BY_WATCHPOINT)
2897 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
2898 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2899 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2900 declarations.
2901 * config/sparc/nm-sol2.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
2902 (HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT): Delete.
2903 (target_insert_watchpoint, target_remove_watchpoint): Delete.
2904 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Delete
2905 declarations.
2906
51f4db83 29072009-05-06 Hui Zhu <teawater@gmail.com>
e7a8dbfb 2908
8408d274
HZ
2909 * i386-tdep.c (i386_process_record): Change bzero to memset.
2910
51f4db83 29112009-05-06 Hui Zhu <teawater@gmail.com>
8408d274
HZ
2912
2913 * NEWS: Add item for process record and replay.
e7a8dbfb 2914
f6402f18
MG
29152009-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2916
2917 * xtensa-tdep.c (xtensa_frame_cache): Use pc instead of cache->pc.
2918
fb14de7b
UW
29192009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2920
2921 * inferior.h (read_pc, write_pc): Remove.
2922 * regcache.c (read_pc, write_pc): Remove.
2923
2924 * infrun.c (displaced_step_fixup): Use regcache_read_pc instead
2925 of read_pc.
2926 (handle_inferior_event): Use regcache_read_pc instead of read_pc
2927 when determining value of stop_pc. Replace subsequent uses of
2928 read_pc by inspecting already-retrieved stop_pc value.
2929 (keep_going): Use regcache_read_pc instead of read_pc.
2930
2931 * breakpoint.c (watchpoint_check): Use current frame architecture
2932 and PC instead of current_gdbarch and read_pc ().
2933 * tracepoint.c (set_traceframe_context): Replace PC argument
2934 with FRAME argument.
2935 (trace_start_command, finish_tfind_command): Update calls.
2936 (finish_tfind_command): Compare frame IDs to identify transitions
2937 between frames.
2938 (trace_find_pc_command): Use regcache_read_pc instead of read_pc.
2939 * rs6000-nat.c (exec_one_dummy_insn): Pass in regcache instead
2940 of gdbarch. Use regcache_read_pc and regcache_write_pc instead
2941 of read_pc and write_pc.
2942 (store_register): Make regcache argument non-const. Update call
2943 to exec_one_dummy_insn.
2944
2945 * thread.c (switch_to_thread): Use regcache_read_pc instead of read_pc.
2946 * infcmd.c (post_create_inferior): Likewise.
2947 * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise.
2948 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2949 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2950 * solib-svr4.c (enable_break, svr4_relocate_main_executable): Likewise.
2951 * linux-fork.c (fork_load_infrun_state): Likewise.
2952 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2953 * record.c (record_wait): Likewise.
2954 * procfs.c (procfs_wait): Likewise.
2955 * remote-mips.c (common_open, mips_wait): Likewise.
2956 * remote-m32r-sdi.c (m32r_resume): Likewise.
2957
2958 * symfile.c (generic_load): Use regcache_write_pc instead of write_pc.
2959 * monitor.c (monitor_create_inferior, monitor_load): Likewise.
2960 * m32r-rom.c (m32r_load, m32r_upload_command): Likewise.
2961 * remote-m32r-sdi.c (m32r_create_inferior, m32r_load): Likewise.
2962 * remote-mips.c (mips_create_inferior, mips_load): Likewise.
2963
2964 * solib-darwin.c: Include "regcache.h".
2965 * solib-pa64.c: Include "regcache.h".
2966 * solib-svr4.c: Include "regcache.h.".
2967
2968 * symfile.c: Do not mention read_pc or write_pc in comments.
2969 * dink32-rom.c: Likewise.
2970 * m32r-rom.c: Likewise.
2971 * mips-tdep.c: Likewise.
2972
f698437e
UW
29732009-05-05 Ulrich Weigand <uweigand@de.ibm.com>
2974
2975 * fork-child.c (startup_inferior): Move setting stop_pc ...
2976 * infcmd.c (post_create_inferior): ... to here.
2977
64644d9b
MS
29782009-05-04 Michael Snyder <msnyder@vmware.com>
2979
2980 * NEWS: Add item for reverse debugging commands.
2981
67ce33d7
PA
29822009-05-04 Pedro Alves <pedro@codesourcery.com>
2983
2984 * go32-nat.c (go32_stop): Delete.
2985 (go32_kill_inferior): Rewrite to only call go32_mourn_inferior.
2986 (go32_create_inferior): Don't call go32_stop or
2987 go32_kill_inferior.
2988 (go32_mourn_inferior): Inline go32_stop and go32_kill_inferior
2989 here.
2990 (init_go32_ops): Don't register go32_stop.
2991
26a4ddaa
EZ
29922009-05-02 Eli Zaretskii <eliz@gnu.org>
2993
2994 * dbxread.c (read_dbx_symtab): Avoid compiler warnings for
2995 sym_name.
2996
2997 * infcall.c (find_function_addr): Avoid compiler warnings for
2998 funaddr.
2999
a11a1416
JK
30002009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3001
3002 * dictionary.c (dict_hashed_vector, dict_hashed_expandable_vector)
3003 (dict_linear_vector, dict_linear_expandable_vector): Fix a comment typo.
3004
ee78f3e5
DE
30052009-05-01 Doug Evans <dje@google.com>
3006
3007 * linux-thread-db.c (thread_db_pid_to_str): Delete unused assignment
3008 to thread_info.
3009
699275c9
EZ
30102009-05-01 Eli Zaretskii <eliz@gnu.org>
3011
299a410e
EZ
3012 * record.c (_initialize_record): Reformat and clarify doc strings
3013 for stop-at-limit and insn-number-max.
3014
699275c9
EZ
3015 * go32-nat.c: Add comments about dirty secrets of DJGPP debugging.
3016
323427d1
JK
30172009-05-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3018
3019 Make specifiable the make_function_type type memory ownership.
3020 * gdbtypes.c (make_function_type): New parameter `objfile', use it
3021 explicitely instead of TYPE-initialized removed local variable
3022 `objfile'. Describe `objfile' it in the function comment.
3023 (lookup_function_type): Update make_function_type callers.
3024 * gdbtypes.h (make_function_type): Update the prototype.
3025 * jv-lang.c (java_link_class_type): Update make_function_type callers.
3026 * dwarf2read.c (read_subroutine_type): Likewise.
3027 * stabsread.c (read_type): Likewise.
3028
15430fc0
EZ
30292009-05-01 Eli Zaretskii <eliz@gnu.org>
3030
89c9c2ec
EZ
3031 * go32-nat.c (go32_pid_to_str): Call normal_pid_to_str instead of
3032 printing a bogus "Thread <main>".
3033 (go32_thread_alive): Don't return 1 for null_ptid.
3034
15430fc0
EZ
3035 * i386-tdep.c (i386_go32_init_abi): Override the number of
3036 registers due to non-support of SSE.
3037
c7098c41
AG
30382009-04-30 Anthony Green <green@moxielogic.com>
3039
3040 * configure.tgt: Link the moxie simulator in with gdb.
3041
25c2f6ab
PP
30422009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
3043
3044 * elfread.c (elf_symtab_read): Don't assume .data and .rodata
3045 are present.
15430fc0 3046
77fcef51
HZ
30472009-04-30 Hui Zhu <teawater@gmail.com>
3048 Michael Snyder <msnyder@vmware.com>
3049
3050 I386 Linux process record and replay support.
3051
3052 * i386-linux-tdep.c (i386_linux_record_tdep): New variable.
3053 This struct has the argument for the function
3054 "record_linux_system_call".
3055 (i386_linux_intx80_sysenter_record): New function. Parse the
3056 system call instruction and call function
3057 "record_linux_system_call" to record execute log.
3058 (i386_linux_init_abi): Initialize "i386_linux_record_tdep".
3059 Set "i386_linux_intx80_sysenter_record" to
3060 "i386_intx80_record" and "i386_sysenter_record".
3061
7ad10968
HZ
30622009-04-30 Hui Zhu <teawater@gmail.com>
3063 Michael Snyder <msnyder@vmware.com>
3064
3065 I386 architecture process record and replay support.
3066
3067 * i386-tdep.c (PREFIX_REPZ, PREFIX_REPNZ, PREFIX_LOCK,
3068 PREFIX_DATA, PREFIX_ADDR): New macros. Help decode the i386
3069 instruction set.
3070 (aflag, dflag, override, modrm, mod, reg, rm, ot,
3071 i386_record_pc): New variables. Ditto.
3072 (i386_record_modrm, i386_record_lea_modrm_addr,
3073 i386_record_lea_modrm): New functions. Ditto.
3074 (i386_process_record): New function. Parse the instruction in
3075 address "addr" and record the values of registers and memory
3076 that will be changed by this instruction.
3077 (i386_gdbarch_init): Set "i386_process_record" to GDBARCH
3078 "process_record" interface.
3079 * i386-tdep.h (gdbarch_tdep): New function pointers
3080 "i386_intx80_record" and "i386_sysenter_record" that point to
3081 the function that can record "intx80" and "sysenter" execute
3082 log.
3083
96429cc8
HZ
30842009-04-30 Hui Zhu <teawater@gmail.com>
3085 Michael Snyder <msnyder@vmware.com>
3086
3087 * infrun.c (use_displaced_stepping): Return false if process
3088 record and replay target is used.
3089 (proceed): Call function "record_not_record_set" if pocess
3090 record and replay target is used.
3091
b7f6bf22
HZ
30922009-04-30 Hui Zhu <teawater@gmail.com>
3093 Michael Snyder <msnyder@vmware.com>
3094
3095 Linux process record and replay support.
3096
3097 * Makefile.in (ALLDEPFILES): Add linux-record.c.
3098 (ALL_TARGET_OBS): Add linux-record.o.
3099 * configure.tgt (x86_64-*-linux*): Add linux-record.o.
3100 (i[34567]86-*-linux*): Add linux-record.o.
3101 * linux-record.c, linux-record.h: New file.
3102
69d05d38
HZ
31032009-04-30 Hui Zhu <teawater@gmail.com>
3104 Michael Snyder <msnyder@vmware.com>
3105
3106 Process record and replay target.
3107
3108 * Makefile.in (SFILES): Add record.c.
3109 (COMMON_OBS): Add record.o.
3110 * record.c, record.h: New file.
3111
81e64f55
HZ
31122009-04-30 Hui Zhu <teawater@gmail.com>
3113 Michael Snyder <msnyder@vmware.com>
3114
3115 * target.h (strata): New stratum "record_stratum".
3116
0407e712
HZ
31172009-04-30 Hui Zhu <teawater@gmail.com>
3118 Michael Snyder <msnyder@vmware.com>
3119
3120 GDBARCH interface for process record and replay.
3121
3122 * gdbarch.sh (process_record): This interface point to the
3123 function that records the inferior execute log.
3124
c5af0dad
DE
31252009-04-29 Doug Evans <dje@google.com>
3126
3127 * i386-nat.c (child_post_startup_inferior): Delete, unused.
3128
df2b6d2d
PA
31292009-04-29 Pedro Alves <pedro@codesourcery.com>
3130
3131 * breakpoint.c (print_exception_catchpoint): Access `b' directly
3132 instead of `b->loc->owner'.
3133 (print_mention_exception_catchpoint): Ditto.
3134
484086b7
JK
31352009-04-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3136
3137 * macrocmd.c (info_macro_command): Print -Dname=value if LINE is zero.
3138
379a77b5
TT
31392009-04-27 Tom Tromey <tromey@redhat.com>
3140
3141 * c-exp.y (yylex): Handle '[' and ']' like '(' and ')'.
3142
aad80b26
JG
31432009-04-27 Jerome Guitton <guitton@adacore.com>
3144
3145 * symtab.c (append_exact_match_to_sals): New function, extracted
3146 from expand_line_sal.
3147 (expand_line_sal): Use append_exact_match_to_sals to append exact
3148 matches. If none found, append all best items.
3149
57a46001
JG
31502009-04-27 Jerome Guitton <guitton@adacore.com>
3151
3152 * main.c (captured_main): Move gdbinit lookups after gdb_init.
3153
d389af10
JK
31542009-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 PR gdb/9675:
3157 * dwarf2read.c (unsigned_int_compar, inherit_abstract_dies): New.
3158 (read_func_scope): Call inherit_abstract_dies.
3159
90b9b517
EZ
31602009-04-25 Eli Zaretskii <eliz@gnu.org>
3161
3162 * Makefile.in (ALLDEPFILES): Remove duplicate entries for
3163 sparc-sol2-nat.c and sparc-sol2-tdep.c.
80a0ea0f
EZ
3164
3165 * stack.c (_initialize_stack) <disassemble-next-line>: Doc fix.
3166
39a90fca 31672009-04-24 Pierre Muller <muller@ics.u-strasbg.fr>
5ac79d78
PM
3168
3169 ARI change: Use "/* ARI: rule */" pattern.
3170 * utils.c: Update ARI patterns.
3171 * gdb_dirent.h: Likewise.
3172
d7066cce
AG
31732009-04-23 Anthony Green <green@moxielogic.com>
3174
3175 * MAINTAINERS: Add moxie target.
3176 * configure.tgt: Add moxie-*-elf target.
3177 * moxie-tdep.c: New file.
3178 * moxie-tdep.h: New file.
3179
fc84d355 31802009-04-23 Joel Brobecker <brobecker@adacore.com>
72fcaa05
JB
3181
3182 * ada-lang.c: Remove an extra empty line. No code change.
3183
217dc9e2
JK
31842009-04-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 Fix double free on error inserting the breakpoint instruction.
3187 * breakpoint.c (create_breakpoints): Move the
3188 update_global_location_list call to ...
3189 (break_command_really): ... here together with the second local call
3190 both unified after all the cleanups.
3191
b14b1491
TT
31922009-04-23 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3193 Tom Tromey <tromey@redhat.com>
3194
3195 * configure, config.in: Regenerate.
3196 * configure.ac: Support for relocatable GDB datadir. Use
3197 GDB_AC_WITH_DIR. Always define TARGET_SYSTEM_ROOT_RELOCATABLE.
3198 * acinclude.m4 (GDB_AC_WITH_DIR): New defun.
3199 * top.c (init_main): Add "set data-directory".
3200 * defs.h (gdb_datadir): Declare.
3201 * main.c (gdb_datadir): New global.
3202 (captured_main): Initialize gdb_datadir. Use relocate_directory.
3203 (relocate_path): New function.
3204 (relocate_directory): Likewise.
3205 (get_init_files): Use relocate_path.
3206 (README): Mention --with-gdb-datadir.
3207
5e7b5f74
JB
32082009-04-23 Joel Brobecker <brobecker@adacore.com>
3209
3210 * ada-tasks (task_command_1): Call target_find_new_threads.
3211
465f42bb
JB
32122009-04-23 Joel Brobecker <brobecker@adacore.com>
3213
3214 * stack.c (do_gdb_disassembly): Print the exception message if an
3215 error was thrown while trying to perform the disassembly.
3216
3038237c
JK
32172009-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3218
3219 * varobj.c (free_variable): Replace free_current_contents by xfree.
3220
17c12639
KH
32212009-04-22 Kazu Hirata <kazu@codesourcery.com>
3222
3223 * arm-linux-nat.c (fetch_register, store_register): Use
3224 ARM_CPSR_GREGNUM instead of ARM_CPSR_REGNUM.
3225 * arm-linux-tdep.c (arm_linux_supply_gregset,
3226 arm_linux_collect_gregset): Likewise.
3227 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): New.
3228 * arm-tdep.h (ARM_CPSR_REGNUM): Remove.
3229
a362e3d3
HZ
32302009-04-22 Hui Zhu <teawater@gmail.com>
3231
3232 * stack.c (_initialize_stack): Set the default of
3233 disassemble-next-line to off.
3234
d2596e2e
TT
32352009-04-21 Tom Tromey <tromey@redhat.com>
3236
3237 * acinclude.m4: Use AS_HELP_STRING, not AC_HELP_STRING.
3238 * configure.ac: Use AS_HELP_STRING, not AC_HELP_STRING.
3239
62e4f60c
AS
32402009-04-21 Andreas Schwab <schwab@linux-m68k.org>
3241
3242 * configure.ac: Add quotes to not lose brackets in help text.
3243 * configure: Rebuild.
3244
82cd387f 32452009-04-21 Andreas Schwab <schwab@linux-m68k.org>
cfd53605
AS
3246
3247 * configure.ac: Don't postprocess Makefile in config.status.
3248 Substitute GDB_NM_FILE. Don't substitute nm_h.
3249 * Makefile.in (GDB_NM_FILE): Substitute.
3250 (TAGS): Use $(GDB_NM_FILE) instead of $(NAT_FILE).
3251 * configure: Regenerate.
3252 * gnulib/Makefile.in: Regenerate.
3253
26e251b6
JM
32542009-04-21 Joseph Myers <joseph@codesourcery.com>
3255
3256 * configure.ac (--with-datarootdir, --with-docdir, --with-pdfdir,
3257 --with-htmldir): New.
3258 * configure: Regenerate.
3259
32c1c914
TT
32602009-04-21 Tom Tromey <tromey@redhat.com>
3261
3262 * configure: Rebuild.
3263 * configure.ac: Use lower case for start of help strings. Clean
3264 up --with-sysroot help.
3265
a1220294
TT
32662009-04-21 Tom Tromey <tromey@redhat.com>
3267
3268 * configure: Rebuild.
3269 * acinclude.m4 (AM_ICONV): Use AC_HELP_STRING.
3270 * configure.ac: Use AC_HELP_STRING. Use upper case for variables
3271 in help.
3272
39a90fca 32732009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
dfc3cd0e
PM
3274
3275 ARI fix: remove "%p".
3276 * ia64-tdep.c (ia64_frame_this_id): Use host_address_to_string function.
3277 (ia64_sigtramp_frame_this_id): Ditto.
3278 (ia64_libunwind_frame_this_id): Ditto.
3279 (ia64_libunwind_sigtramp_frame_this_id): Ditto.
3280 * symmisc.c (maintenance_info_psymtabs): Ditto.
3281
29b0e8a2
JM
32822009-04-21 Joseph Myers <joseph@codesourcery.com>
3283
3284 * configure.ac (--with-relocated-sources): New.
3285 * configure, config.in: Regenerate.
3286 * source.c (add_substitute_path_rule): Remove static.
3287 * source.h (add_substitute_path_rule): Declare.
3288 * main.c: Include "source.h".
3289 (captured_main): Add substitution rule if RELOC_SRCDIR.
3290
39a90fca 32912009-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
ccabeb57
PM
3292
3293 * gnu-nat.h (proc_debug): Add missing continuation line in macro.
cfd53605 3294
b9412953
DD
32952009-04-20 David Daney <ddaney@caviumnetworks.com>
3296
3297 * NEWS: Mention MIPS/Linux hardware watchpoint support.
3298
32992009-04-20 David Daney <ddaney@caviumnetworks.com>
3300
3301 * mips-linux-nat.c (command.h, gdbcmd.h, gdb_assert.h): New #includes.
3302 (maint_show_dr, super_close): New variables.
3303 (super_fetch_registers, super_store_registers): Make static.
3304 (PTRACE_GET_WATCH_REGS, PTRACE_SET_WATCH_REGS, W_BIT, R_BIT, I_BIT)
3305 (W_MASK, R_MASK, I_MASK, IRW_MASK, MAX_DEBUG_REGISTER): Define.
3306 (pt_watch_style): Define new enum.
3307 (mips32_watch_regs, mips64_watch_regs, pt_watch_regs, mips_watchpoint):
3308 Define new structs.
3309 (watch_readback_valid, watch_readback, current_watches, watch_mirror):
3310 New variables.
3311 (get_irw_mask, get_reg_mask, get_num_valid, get_watchlo)
3312 (set_watchlo, get_watchhi, set_watchhi, mips_show_dr)
3313 (mips_linux_read_watch_registers, mips_linux_can_use_hw_breakpoint)
3314 (mips_linux_stopped_by_watchpoint, mips_linux_stopped_data_address)
3315 (type_to_irw, fill_mask, try_one_watch)
3316 (mips_linux_region_ok_for_hw_watchpoint, write_watchpoint_regs)
3317 (mips_linux_new_thread, populate_regs_from_watches)
3318 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
3319 (mips_linux_close): New functions.
3320 (_initialize_mips_linux_nat): Register watchpoint functions with
3321 the target_ops. Add show-debug-regs maintenance command.
3322
33232009-04-20 David Daney <ddaney@caviumnetworks.com>
3324
3325 * infrun.c (handle_inferior_event): Move gegisters_changed call down.
3326
6de3146c
PA
33272009-04-19 Pedro Alves <pedro@codesourcery.com>
3328
3329 * NEWS: Mention gdbserver support for x86 Windows CE.
3330
10085bb5
EZ
33312009-04-19 Eli Zaretskii <eliz@gnu.org>
3332
e424a02e
EZ
3333 * config/djgpp/fnchange.lst: Fix typos.
3334
10085bb5
EZ
3335 Set default host and target charsets in the DJGPP port.
3336
3337 * config/djgpp/config.sed (am_cv_langinfo_codeset)
3338 (bash_cv_langinfo_codeset, ac_cv_header_nl_types_h): Set to "yes"
3339 in all configure scripts that define ac_cv_env_CPP_value.
3340
3341 * go32-nat.c (dos_codepage, nl_langinfo): New functions.
3342 Include langinfo.h.
3343
3344 * config/djgpp/nl_types.h: New file.
3345
3346 * config/djgpp/langinfo.h: New file.
3347
3348 * config/i386/go32.mh (MH_CFLAGS): Add $(srcdir)/config/djgpp.
3349
2b831889
JM
33502009-04-18 Carlos O'Donell <carlos@codesourcery.com>
3351
3352 * Makefile.in (MAKEHTML): Set to makeinfo --html.
3353 (MAKEHTMLFLAGS): Set to empty.
3354
d647eed6
EZ
33552009-04-18 Eli Zaretskii <eliz@gnu.org>
3356
d7713ae0
EZ
3357 * NEWS: Mention all new set/show commands added since GDB 6.8 was
3358 released.
3359
d647eed6
EZ
3360 * go32-nat.c (go32_sysinfo): Check if the call to
3361 __dpmi_get_capabilities fills the buffer with information, and
3362 don't use the buffer if not.
3363
58720494
TT
33642009-04-17 Tom Tromey <tromey@redhat.com>
3365
3366 * charset.c (_initialize_charset): Add special case for "646".
3367
89a34d1b
JM
33682009-04-17 Carlos O'Donell <carlos@codesourcery.com>
3369
3370 * configure.ac: AC_SUBST datarootdir, docdir, htmldir, pdfdir.
3371 * configure: Regenerate.
3372 * Makefile.in: Set datarootdir, docdir, htmldir, and pdfdir from
3373 configure substitutions.
3374 (FLAGS_TO_PASS): Add datarootdir, docdir, and htmldir.
3375
39a90fca 33762009-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
a74ce742
PM
3377
3378 ARI fix: Do not use %p, replace by call to host_address_to_string
3379 for host pointers.
3380 * darwin-nat.c (darwin_xfer_partial): Apply change.
3381 * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
3382 * gnu-nat.h (proc_debug): Ditto.
3383 * symmisc.c (maintenance_info_symtabs): Ditto.
3384 (maintenance_info_psymtabs): Ditto.
3385 * windows-nat.c (handle_load_dll): Ditto.
3386 (handle_unload_dll, info_w32_command, handle_exception): Ditto.
3387 * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
3388
0ca8834f
JM
33892009-04-17 Joseph Myers <joseph@codesourcery.com>
3390
3391 * configure.tgt (i[34567]86-*-linux*): Use 64-bit configuration if
3392 --enable-64-bit-bfd.
3393 (sparc-*-linux*): Likewise.
3394
541f1105
EZ
33952009-04-17 Eli Zaretskii <eliz@gnu.org>
3396
3397 * go32-nat.c (go32_sysinfo): Update list of Windows versions of
3398 the NT family.
3399
1554e9be
PA
34002009-04-16 Pedro Alves <pedro@codesourcery.com>
3401
3402 * remote.c (remote_query_attached): Fix pasto in packet_ok result
3403 checking.
3404
bf75638e
JB
34052009-04-16 Joel Brobecker <brobecker@adacore.com>
3406
3407 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
3408 Revert the previous change. Might not be correct, actually.
3409
3705b1c5
JB
34102009-04-16 Joel Brobecker <brobecker@adacore.com>
3411
3412 * ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
3413 (ada_get_current_task, ada_print_exception_breakpoint_nontask)
3414 (ada_print_exception_breakpoint_task, ada_reset_thread_registers):
3415 Remove declaration. These are non-existent functions.
3416
37da21bc
JB
34172009-04-16 Joel Brobecker <brobecker@adacore.com>
3418
3419 * procfs.c (solib_mappings_callback, find_memory_regions_callback):
3420 Fix a compilation warning on mips-irix due to casting from
3421 a pointer of different size.
3422
6f38eac8
JB
34232009-04-16 Joel Brobecker <brobecker@adacore.com>
3424
3425 * ada-lang.c (symtab_for_sym): Delete.
3426 (user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
3427
f9bc20b9
JB
34282009-04-16 Joel Brobecker <brobecker@adacore.com>
3429
3430 * ada-lang.c (extract_string): Delete.
3431 (ada_main_name): Reimplement using target_read_string instead of
3432 extract_string.
3433
335d71d6
AS
34342009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3435
3436 * m68klinux-nat.c: Remove obsolete comment.
3437 (fetch_register, store_register): Don't call
3438 gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
3439 which are always nops here.
3440
732f6a93
TT
34412009-04-14 Tom Tromey <tromey@redhat.com>
3442
3443 * c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
3444 (c_printstr): Likewise.
3445 * charset.c: Include gdb_wait.h.
3446 (make_wchar_iterator): Use INTERMEDIATE_ENCODING.
3447 (find_charset_names): Use pexecute. Handle libiconv's output.
3448 Detect errors.
3449 (_initialize_charset): Use xstrdup.
3450 * gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
3451 cases.
3452 (INTERMEDIATE_ENCODING): New define.
3453 * configure, config.in: Rebuild.
3454 * configure.ac: Check for btowc.
3455
334cc82d
TT
34562009-04-15 Tom Tromey <tromey@redhat.com>
3457
3458 * c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
3459
27e3013d
EZ
34602009-04-15 Eli Zaretskii <eliz@gnu.org>
3461
3462 * utils.c (parse_escape): Initialize target_char to pacify GCC.
3463
8ea5dfdf
JK
34642009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3465
3466 * c-lang.c (c_get_string): Fix xfree crash on a failed string read.
3467
88c15c34
PM
34682009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
3469
3470 ARI fix: sprintf rule.
3471 * ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
3472 * ada-lang.c (add_angle_brackets): Use xstrprintf.
3473 (ada_decode): Replace sprintf by xsnprintf.
3474 (find_old_style_renaming_symbol): Ditto.
3475 (ada_to_fixed_type_1, ada_enum_name): Ditto.
3476
3477
efbd6e75
JB
34782009-04-14 Joel Brobecker <brobecker@adacore.com>
3479
3480 * target.c (target_mourn_inferior): Call bfd_cache_close_all
3481 after having executed the target mourn_inferior routine.
3482
b46df7a1
EZ
34832009-04-14 Eli Zaretskii <eliz@gnu.org>
3484
3485 * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if
3486 undefined.
3487
2facfe5c
DD
34882009-04-13 David Daney <ddaney@caviumnetworks.com>
3489
3490 * infrun.c (maybe_software_singlestep): New function.
3491 (resume): Call maybe_software_singlestep.
3492 (handle_inferior_event): Same.
3493
18e8c3bc
TT
34942009-04-13 Tom Tromey <tromey@redhat.com>
3495
3496 * python/python-frame.c (frapy_richcompare): Return
3497 Py_NotImplemented, not an error. Handle Py_NE as well.
3498
e726d784
EZ
34992009-04-13 Eli Zaretskii <eliz@gnu.org>
3500
3501 * charset.c (EILSEQ): Define if not defined by system headers.
3502
685af672
EZ
35032009-04-11 Eli Zaretskii <eliz@gnu.org>
3504
238f4807 3505 * config/djgpp/config.sed: Tweak ac_config_files in intl/configure
a2effb2e 3506 to be consistent with renaming config.intl.in into config_intl.in.
238f4807 3507
c03b3c32
EZ
3508 * go32-nat.c (go32_attach, go32_detach): Fix prototypes to be
3509 consistent with the change from 2008-11-09.
685af672 3510
c16abbde
JK
35112009-04-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 * gdbtypes.c: Remove excessive parentheses at the return keywords.
2dbd25e5 3514 * varobj.c (varobj_invalidate): Fix indentation.
f4a34a08 3515 * varobj.c (varobj_invalidate): Fix formatting text width.
c16abbde 3516
143260c9
VP
35172009-04-08 Vladimir Prus <vladimir@codesourcery.com>
3518
3519 Implement -exec-jump.
3520
3521 * mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
3522 * mi/mi-main.c (mi_cmd_exec_jump): New.
3523 * mi/mi-cmds.c (mi_cmds): Register exec-jump.
3524
d10c338d
DE
35252009-04-07 Doug Evans <dje@google.com>
3526
3527 * symfile.c (symbol_file_clear): Fix indentation.
3528
e5a6ba44
MK
35292009-04-06 Mark Kettenis <kettenis@gnu.org>
3530
3531 * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
3532
409c383c
UW
35332009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
3534
3535 * ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
3536 (ppc_linux_auxv_parse): New function.
3537 (ppc_linux_read_description): Use ppc_linux_target_wordsize.
3538 (_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
3539
35402009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
9592c5d0
UW
3541
3542 * spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
3543 BFD to contents of SPU name note.
3544 (spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
3545 with "from_tty" argument 1 instead of 0.
3546
de40b933
JK
35472009-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3548
3549 * dwarf2read.c
3550 (new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
3551 Create the symbol in local scope.
3552 * symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
3553
6cbbcdfe
KS
35542009-04-02 Keith Seitz <keiths@redhat.com>
3555
3556 * stabsread.c (read_member_functions): GCC may emit an extra space
3557 at the end of the names "__base_ctor" and "__base_dtor"; so ignore
3558 whitespace when looking for these functions.
3559
476f7b68
JB
35602009-04-01 Joel Brobecker <brobecker@adacore.com>
3561
3562 Change the default value for "set print frame-arguments" to scalars.
3563
3564 * stack.c (print_frame_arguments): Set initial value to "scalars".
3565
865093a3
AR
35662009-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3567
3568 * mips-tdep.c (mips_numeric_register_alieses): New definition.
cfd53605 3569 (mips_gdbarch_init): Add user registers from
865093a3
AR
3570 mips_numeric_register_aliases.
3571
5d3b6af6
JB
35722009-04-01 Joel Brobecker <brobecker@adacore.com>
3573
3574 * linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
3575
9db03742
JB
35762009-04-01 Joel Brobecker <brobecker@adacore.com>
3577
3578 * linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
3579 this is the last one.
3580
0d8f58ca
PA
35812009-04-01 Pedro Alves <pedro@codesourcery.com>
3582
3583 * remote.c (append_resumption): New.
3584 (remote_vcont_resume): Use it.
3585
1e2f1c5c
JB
35862009-04-01 Joel Brobecker <brobecker@adacore.com>
3587
3588 * windows-nat.c (+windows_get_ada_task_ptid): New function.
3589 (init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
3590
71c25dea
TT
35912009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
3592 Keith Seitz <keiths@redhat.com>
3593 Jan Kratochvil <jan.kratochvil@redhat.com>
3594
3595 PR gdb/6817
3596 * Makefile.in (dbxread.o): Update.
3597 * dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
3598 * dwarf2read.c (GDB_FORM_cached_string): New.
3599 (read_partial_die): Use dwarf2_canonicalize_name.
3600 (dwarf2_linkage_name): Use dwarf2_name.
3601 (dwarf2_canonicalize_name): New.
3602 (dwarf2_name): Use dwarf2_canonicalize_name.
3603 (dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
3604 * stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
3605 * symtab.c (lookup_symbol_in_language): Canonicalize input before
3606 searching.
3607 * cp-name-parser.y: operator() requires two parameters,
3608 according to libiberty.
3609 * minsyms.c (lookup_minimal_symbol): Canonicalize input
3610 before searching.
3611 * NEWS: Update.
3612
4a306c9a
JB
36132009-03-31 Joel Brobecker <brobecker@adacore.com>
3614
3615 Provide support for (Ada) task-specific breakpoints.
3616
3617 * ada-lang.h (ada_get_task_number): Add declaration.
3618 (breakpoint_ada_task_match): Delete declaration.
3619 * ada-tasks.c (ada_get_task_number): Make non-static.
3620 * breakpoint.h (struct breakpoint): Add field "task".
3621 * breakpoint.c (print_one_breakpoint_location): Add handling of
3622 task-specific breakpoints.
3623 (create_breakpoint, create_breakpoints, find_condition_and_thread):
3624 New parameter "task".
3625 (break_command_really): Update calls to find_condition_and_thread
3626 and create_breakpoints.
3627 (breakpoint_re_set_one): Update call to find_condition_and_thread.
3628 Set b->task.
3629
4a5a9917
JB
36302009-03-31 Joel Brobecker <brobecker@adacore.com>
3631
3632 * ada-tasks.c (short_task_info): Eliminate the "Running" task state.
3633
bad34192
PA
36342009-03-31 Pedro Alves <pedro@codesourcery.com>
3635
3636 * remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
3637 if the thread's ptid without a thread id field is in the list
3638 before calling thread_change_ptid.
3639 (extended_remote_attach_1): In non-stop mode, do not rely on
3640 querying the current thread, instead, query the thread list, and
3641 select the first thread of the process.
3642 * gdbthread.h (first_thread_of_process): Declare.
3643 * thread.c (first_thread_of_process): Define.
3644
1042e4c0
SS
36452009-03-30 Stan Shebs <stan@codesourcery.com>
3646
3647 Make tracepoints into a type of breakpoint.
3648 * breakpoint.h (enum bptype): Add bp_tracepoint.
3649 (struct breakpoint): Add fields step_count, pass_count, actions.
3650 (get_tracepoint, get_tracepoint_by_number): Declare.
3651 (all_tracepoints): Declare.
3652 * breakpoint.c: Include tracepoint.h, readline.h.
3653 (ALL_TRACEPOINTS): Move here from tracepoint.c.
3654 (tracepoint_count): Ditto.
3655 (should_be_inserted): GDB does not insert tracepoints itself.
3656 (print_it_typical): Add tracepoint case.
3657 (bpstat_what): Ditto.
3658 (print_one_breakpoint_location): Ditto, and add printing for
3659 pass count, step count, and action list.
3660 (user_settable_breakpoint): Add tracepoint case.
3661 (allocate_bp_location): Ditto.
3662 (set_breakpoint_location_function): Ditto.
3663 (disable_breakpoints_in_shlibs): Ditto.
3664 (mention): Ditto.
3665 (break_command_really): Add argument traceflag, use to choose
3666 basic breakpoint type.
3667 (break_command_1): Pass extra argument.
3668 (set_breakpoint, handle_gnu_v3_exceptions): Ditto.
3669 (breakpoint_re_set_one): Add tracepoint case.
3670 (disable_command, enable_command): Ditto.
3671 (set_tracepoint_count): Move here from tracepoint.c.
3672 (trace_command): Move here from tracepoint.c and use
3673 break_command_really.
3674 (tracepoints_info): Move here from tracepoint.c and call
3675 breakpoints_info.
3676 (enable_trace_command): Move here from tracepoint.c and call
3677 enable_command.
3678 (disable_trace_command): Move here from tracepoint.c and call
3679 disable_command.
3680 (delete_trace_command): Move here from tracepoint.c and call
3681 delete_breakpoint.
3682 (trace_pass_command): Move here from tracepoint.c.
3683 (get_tracepoint_by_number): Ditto.
3684 (tracepoint_save_command): Ditto.
3685 (get_tracepoint): New function.
3686 (all_tracepoints): New function.
3687 (_initialize_breakpoint): Move tracepoint init from tracepoint.c,
3688 deprecate "enable trace" and "disable trace" commands.
3689 * tracepoint.h (struct tracepoint): Remove.
3690 (tracepoint_chain): Remove decl.
3691 (deprecated_create_tracepoint_hook): Remove decl.
3692 (deprecated_delete_tracepoint_hook): Remove decl.
3693 (deprecated_modify_tracepoint_hook): Remove decl.
3694 (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
3695 (free_actions): Update signature.
3696 (validate_actionline): Update signature.
3697 (end_actions_pseudocommand): Declare.
3698 (while_stepping_pseudocommand): Declare.
3699 * tracepoint.c: Include breakpoint.h.
3700 (tracepoint_chain, tracepoint_count): Remove.
3701 (free_actions, make_cleanup_free_actions): Update signature.
3702 (trace_command, set_raw_tracepoint): Remove.
3703 (trace_mention): Remove.
3704 (tracepoints_info): Remove.
3705 (tracepoint_operation, map_args_over_tracepoints): Remove.
3706 (get_tracepoint_by_number): Remove.
3707 (enable_trace_command, disable_trace_command): Remove.
3708 (delete_trace_command, trace_pass_command): Remove.
3709 (trace_actions_command, read_actions): Update signature.
3710 (validate_actionline): Update signature, use bp loc.
3711 (encode_actions): Ditto.
3712 (download_tracepoint): New function, body of trace_start_command.
3713 (trace_start_command): Call it, use all_tracepoints.
3714 (tracepoint_save_command): Remove.
3715 (tracepoint_dump_command): Use get_tracepoint.
3716 (end_actions_pseudocommand): Make globally visible.
3717 (while_stepping_pseudocommand): Ditto.
3718 (_initialize_tracepoint): Move command definitions to breakpoint.c.
3719
f8f6f20b
TJB
37202009-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3721
3722 Expose frames to Python.
3723 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
3724 (SUBDIR_PYTHON_SRCS): Add python-frame.c.
3725 (python-frame.o): New target.
3726 * python/python-frame.c: New file.
3727 * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
3728 gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
3729 gdbpy_initialize_frames): New prototypes.
3730 * python/python.c (_initialize_python): Call gdbpy_initialize_frames.
3731 (GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
3732 entries.
3733 * stack.c (find_frame_funname): New function, factored out of
3734 print_frame.
3735 (print_frame): Call find_frame_funname.
3736 * stack.h (find_frame_funname): Add prototype.
3737
77316f4c
TJB
37382009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
3739
3740 Remove unused value_object attribute `owned_by_gdb'.
3741 * python/python-value.c (value_object): Remove owned_by_gdb
3742 attribute.
3743 (valpy_dealloc): Remove reference to self->owned_by_gdb.
3744 (valpy_new): Likewise.
3745 (value_to_value_object): Likewise.
3746
c0c6f777
TJB
37472009-03-29 Thiago Jung Bauermann <bauerman@br.ibm.com>
3748
3749 Change gdb.Value.address from a method to an attribute.
3750 * python/python-value.c (value_object): Add `address' element.
3751 (valpy_dealloc): Decrement reference to self->address if set.
3752 (valpy_new): Initialize val_obj->address.
3753 (valpy_address): Rename to ...
3754 (valpy_get_address): ... this. Change signature from method to
3755 attribute. Update self->address if not set.
3756 (value_to_value_object): Initialize val_obj->address.
3757 (value_object_getset): Add `address' element.
3758 (value_object_methods): Remove `address' element.
3759
c2c8d75b
AS
37602009-03-29 Andreas Schwab <schwab@linux-m68k.org>
3761
3762 * observer.sh: Set LANG/LC_ALL to C, not c.
3763
1b31f75d
KB
37642009-03-28 Kevin Buettner <kevinb@redhat.com>
3765
3766 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
3767 `char' is unsigned.
3768
f91d3df5
PA
37692009-03-28 Pedro Alves <pedro@codesourcery.com>
3770
3771 * remote.c (remote_stop_ns): If multi-process extensions are off,
3772 and GDB is requesting the whole process to stop, sent "vCont;t",
3773 not "vCont;t:-1"
3774
7b0e8051
PA
37752009-03-28 Pedro Alves <pedro@codesourcery.com>
3776
3777 * inf-loop.c (inferior_event_handler): Avoid calling is_running on
3778 null inferior_ptid.
3779
5362e076
EZ
37802009-03-27 Eli Zaretskii <eliz@gnu.org>
3781
3782 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
3783
88fc996f
DE
37842009-03-26 Doug Evans <dje@google.com>
3785
3786 * thread.c (do_restore_current_thread_cleanup): Redo test for
3787 whether to restore old->inferior_ptid.
3788
56ef84b1
TT
37892009-03-26 Tom Tromey <tromey@redhat.com>
3790
3791 * breakpoint.c (resolve_sal_pc): Preserve original line number
3792 when skipping prologue.
3793
a5321aa4
DE
37942009-03-26 Doug Evans <dje@google.com>
3795
3796 * thread.c (inferior_thread) Remove "extern" in definition.
3797
def2b000
TJB
37982009-03-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3799
3800 Add gdb.Value.is_optimized_out attribute.
3801 * python/python-value.c (valpy_get_is_optimized_out): New
3802 function.
3803 (value_object_getset): New variable.
3804 (value_object_type): Initialize tp_getset element.
3805
442ddf59
JK
38062009-03-26 Joel Brobecker <brobecker@adacore.com>
3807
3808 Recognize missing DW_AT_location as <value optimized out>.
3809 * dwarf2read.c
3810 (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
3811 Call add_symbol_to_list.
3812
78485d59
TT
38132009-03-25 Tom Tromey <tromey@redhat.com>
3814
3815 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
3816 * stack.c (print_this_frame_argument_p): Use check_typedef.
3817
94ae1714
TT
38182009-03-25 Tom Tromey <tromey@redhat.com>
3819
3820 * configure: Rebuild.
3821 * acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
3822 Rearrange flags setting. Add comments.
3823
2bc57ae3
PM
38242009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3825
3826 * config/i386/nm-i386.h: Remove code within
3827 I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
3828 * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
3829 macro.
3830 * config/i386/nm-cygwin64.h: Ditto.
3831 * config/i386/nm-fbsd.h: Ditto.
3832 * config/i386/nm-go32.h: Ditto.
3833 * config/i386/nm-linux.h: Ditto.
3834 * config/i386/nm-linux64.h: Ditto.
3835
549ba0f8
PM
38362009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3837
3838 ARI fix: "xasprintf" rule.
3839 * printcmd.c (sym_info): Replace xasprintf by xstrprintf.
3840
68c97600
PA
38412009-03-25 Pedro Alves <pedro@codesourcery.com>
3842
3843 * remote.c (remote_start_remote): In non-stop mode, call
3844 init_wait_for_inferior before adding threads and inferiors.
3845
a6f1cd96
JB
38462009-03-25 Joel Brobecker <brobecker@adacore.com>
3847
3848 * breakpoint.c (breakpoint_thread_match): Split a large condition
3849 into several smaller conditions. No behavior change.
3850
dbfb4bc7 38512009-03-25 Pedro Alves <pedro@codesourcery.com>
a07daef3
PA
3852
3853 * infrun.c (infrun_thread_thread_exit): New.
3854 (_initialize_infrun): Attach it to the thread_exit observer.
3855 * thread.c (delete_thread_1): Always call the observer, passing it
3856 the silent flag.
3857 * mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
3858 SILENT, return immediately.
3859
d729566a
PA
38602009-03-25 Pedro Alves <pedro@codesourcery.com>
3861
3862 * infrun.c (normal_stop): Use has_stack_frames instead of
3863 target_has_stack.
3864 * mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
3865 when there is no thread selected.
3866 (mi_cmd_execute): Don't special case commands that can run without
3867 a valid selected thread.
3868 * top.c (execute_command): Don't special case commands that can
3869 run without a valid selected thread. Use has_stack_frames.
3870 * infcmd.c (ensure_valid_thread): New.
3871 (continue_1, step_1, jump_command, signal_command): Use it.
3872 (detach_command): Error out if there's no selected thread/inferior.
3873 * thread.c (print_thread_info): Allow having no thread selected.
3874 (switch_to_thread): Don't read the PC if there is no current thread.
3875 (do_restore_current_thread_cleanup): Don't record the current
3876 frame if there is no current thread.
3877 (make_cleanup_restore_current_thread): Don't read frame info if
3878 there is no selected thread.
3879 (_initialize_thread): Don't mark commands as
3880 "no_selected_thread_ok".
3881 * frame.c (get_current_frame): Error out if there is no valid
3882 selected thread.
3883 (has_stack_frames): Return false if there is no valid
3884 selected thread.
3885 * cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
3886 "no_selected_thread_ok".
3887 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
3888 (get_cmd_no_selected_thread_ok): Delete.
3889 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
3890 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
3891 Delete declaration.
3892 * stack.c (get_selected_block): Use has_stack_frames.
3893
f04c6d38
TJB
38942009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
3895
3896 Fix size of FPSCR in Power 7 processors.
3897 * ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
3898 (PPC_FEATURE_HAS_DFP): New #define.
3899 (ppc_linux_read_description): Check for DFP feature instead of
3900 ISA 2.05 to decide on size of the FPSCR.
3901
6c02c64c
KB
39022009-03-25 Kevin Buettner <kevinb@redhat.com>
3903
3904 * mn10300-tdep.c (trad-frame.h): Don't include.
3905 (prologue-value.h): Include.
3906 (mn10300_frame_unwind_cache, set_reg_offsets): Delete.
3907 (struct mn10300_prologue): Define.
3908 (push_reg, translate_rreg, check_for_saved): New functions.
3909 (mn10300_analyze_prologue): Rewrite, using prologue-value
3910 machinery. Handle more instructions than before. Permit
3911 instructions to occur in any order.
3912 (mn10300_skip_prologue): Find the extents of the function
3913 in question; mn10300_analyze_prologue no longer does this.
3914 (mn10300_analyze_frame_prologue): New function.
3915 (mn10300_frame_base): New function.
3916 (mn10300_frame_this_id): Rewrite, no longer using trad-frame
3917 implementation.
3918 (mn10300_frame_prev_register): Likewise.
3919 (mn10300_frame_base_address, mn10300_frame_base struct): Delete.
3920 (mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
3921 `this_frame'.
3922 (mn10300_frame_unwind_init): Don't call frame_base_set_default().
3923
67c296a2
PM
39242009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3925
3926 Fix completer problem for filename completion on the first try.
3927
3928 * gdb/completer.h (gdb_completion_word_break_characters): New function.
3929 * gdb/completer.c: Include gdb_assert.h.
3930 (complete_line_internal_reason): New enum.
3931 (complete_line_internal): Change last argument type to
3932 complete_line_internal_reason.
3933 Modify function to handle the different complete_line_internal_reason
3934 argument values.
3935 (complete_line): Adapt to change in complete_line_internal.
3936 (command_completer): Ditto.
3937 (gdb_completion_word_break_characters): Implement new function.
3938 * top.c (init_main): Set rl_completion_word_break_hook to
3939 gdb_completion_word_break_characters.
c2c8d75b 3940
67c296a2 3941
1a6d2f2f
PM
39422009-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
3943
3944 ARI fix: "strlen d_name" rule.
3945 * linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
3946
3947
fc3b640d
TT
39482009-03-24 Tom Tromey <tromey@redhat.com>
3949 Pedro Alves <pedro@codesourcery.com>
3950
3951 * configure, config.in: Rebuild.
3952 * configure.ac: Check for libiconvlist.
3953 * charset.c: Check HAVE_LIBICONVLIST.
3954 * acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
3955 LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
3956 * Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
3957 Remove.
3958 (INTERNAL_CFLAGS_BASE): Update.
3959 (INTERNAL_LDFLAGS): Update.
3960 (CLIBS): Update.
3961
76a39ba7
JK
39622009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3963
3964 * configure.ac: Initialize the variable $PREFER_CURSES.
3965 * configure: Regenerated.
3966
bd8a8e1b
JK
39672009-03-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 * configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
3970 * configure: Regenerated.
3971
a3224241
PM
39722009-03-24 Pierre Muller <muller@ics.u-strasbg.fr>
3973
3974 ARI fix: "strerror" rule.
3975 * darwin-nat.c (darwin_ptrace): Use safe_strerror.
3976 (darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
3977
6cdd57f4
JB
39782009-03-23 Joel Brobecker <brobecker@adacore.com>
3979
3980 * ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
3981 before looking up the fields inside our struct type.
3982
17466c1a
JB
39832009-03-23 Joel Brobecker <brobecker@adacore.com>
3984
3985 * ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
3986 trying to resolve the type qualification.
3987
8008e265
JB
39882009-03-23 Joel Brobecker <brobecker@adacore.com>
3989
3990 * ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
3991 we try to apply the attribute on the real type, rather than
3992 its associated typedef.
3993
31dedfee
JB
39942009-03-23 Joel Brobecker <brobecker@adacore.com>
3995
3996 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
3997 to make sure we try to get the modulus of the actual type, not the
3998 associated typedef.
3999
5bc23cb3
JB
40002009-03-23 Joel Brobecker <brobecker@adacore.com>
4001
4002 * ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
4003 [OP_ATR_LENGTH]: When using the attribute on a type, make sure
4004 to get the real type, not the associated typedef.
4005
872c8b51
JB
40062009-03-23 Joel Brobecker <brobecker@adacore.com>
4007
4008 * ada-lang.c (ada_get_field_index): Add handling of the case
4009 when TYPE is a typedef of a struct.
4010
dcb626be
JB
40112009-03-23 Joel Brobecker <brobecker@adacore.com>
4012
e0cfd8e3 4013 Add gdb_usleep as a portable version of usleep based on gdb_select.
dcb626be
JB
4014 * gdb_usleep.h, gdb_usleep.c: New files.
4015 * Makefile.in (SFILES): Add gdb_usleep.c.
4016 (HFILES_NO_SRCDIR): Add gdb_usleep.h.
4017 (COMMON_OBS): Add gdb_usleep.o.
4018 * ser-unix.c (hardwire_send_break): Replace call to gdb_select
4019 by call to gdb_usleep.
4020
24be086d
JB
40212009-03-23 Joel Brobecker <brobecker@adacore.com>
4022
4023 * buildsym.c (end_symtab): If we ignore the subfiles, then
4024 unlink the associated symtabs if they were already allocated.
4025
cb01cfba
JB
40262009-03-23 Jerome Guitton <guitton@adacore.com>
4027
4028 Provide a way to force building of GDB with libcurses.
4029 * configure.ac: Add --with-curses.
4030 * configure: Regenerated.
4031
9c482037
TT
40322009-03-23 Tom Tromey <tromey@redhat.com>
4033
4034 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
4035 error message.
4036
e2dd7057
PP
40372009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4038
4039 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
4040 solib_contains_address_p instead of searching.
c2c8d75b 4041
0dd7fb99
TT
40422009-03-23 Tom Tromey <tromey@redhat.com>
4043
4044 * charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
4045 (iconv): Make 'inbuf' argument const.
4046 (convert_between_encodings): Use ICONV_CONST.
4047 (wchar_iterate): Likewise.
4048
418c6cb3
CF
40492009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
4050
4051 * windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
4052 dynamically loaded function.
4053 (LookupPrivilegeValueA): Ditto.
4054 (OpenProcessToken): Ditto.
4055 (AdjustTokenPrivileges): Rename and define placeholder for address of
c2c8d75b 4056 dynamically loaded function.
418c6cb3
CF
4057 (LookupPrivilegeValueA): Ditto.
4058 (OpenProcessToken): Ditto.
4059 (set_process_privilege): Remove check for loaded functions.
4060 (bad_OpenProcessToken): Define.
4061 (_initialize_loadable): Load token functions from advapi here, setting
4062 OpenProcessToken function to a dummy static function which always return
4063 error if OS doesn't support this functionality.
4064
695de547
CF
40652009-03-22 Nicolas Roche <roche@adacore.com>
4066 Christopher Faylor <me+cygwin@cgf.cx>
4067
4068 * win32-nat.c (ctrl_c_handler): New function.
4069 (win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior
4070 is run in a separate console.
4071
2b008701
CF
40722009-03-22 Christopher Faylor <me+cygwin@cgf.cx>
4073
4074 * windows-nat.c (DebugActiveProcessStop): Implement macro wraparound
4075 for dynamically loaded function.
4076 (DebugBreakProcess): Ditto.
4077 (DebugSetProcessKillOnExit): Ditto.
4078 (EnumProcessModules): Ditto.
4079 (GetModuleFileNameExA): Ditto.
4080 (GetModuleInformation): Ditto.
4081 (DebugActiveProcessStop): Rename and define placeholder for address of
418c6cb3 4082 dynamically loaded function.
2b008701
CF
4083 (DebugBreakProcess): Ditto.
4084 (DebugSetProcessKillOnExit): Ditto.
4085 (EnumProcessModules): Ditto.
4086 (GetModuleFileNameExA): Ditto.
4087 (GetModuleInformation): Ditto.
4088 (psapi_loaded): Delete.
4089 (get_module_name): Don't check psapi_loaded, just rely on the fact that
4090 dynamically loaded functions will return failure if they weren't
4091 previously found.
4092 (has_detach_ability): Delete.
4093 (windows_attach): Remove call to has_detach_ability (). Just rely on
4094 functions being callable.
4095 (bad_DebugActiveProcessStop): Define.
4096 (bad_DebugBreakProcess): Ditto.
4097 (bad_DebugSetProcessKillOnExit): Ditto.
4098 (bad_EnumProcessModules): Ditto.
4099 (bad_GetModuleFileNameExA): Ditto.
4100 (bad_GetModuleInformation): Ditto.
4101 (_initialize_loadable): Rename from _initialize_psapi. Initialize all
4102 dynamic storage here, setting nonexistent functions to dummy static
4103 functions which always return error.
4104
f3b1572e
PA
41052009-03-22 Pedro Alves <pedro@codesourcery.com>
4106
4107 * mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
4108 to the about_to_proceed observer notification.
4109 (mi_about_to_proceed): New.
4110 (mi_on_resume): Only output ^running and the prompt here if the
4111 target was proceeded.
4112 * breakpoint.c (breakpoint_proceeded): New static.
4113 (breakpoint_about_to_proceed): New.
4114 (_initialize_breakpoints): Attach breakpoint_about_to_proceed to
4115 the about_to_proceed observer notification.
4116 * inferior.h (breakpoint_proceeded): Delete declaration.
4117 * infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
4118 Notify the about_to_proceed observers.
4119 (struct inferior_status): Delete breakpoint_proceeded member.
4120 (save_inferior_status): Don't save it.
4121 (restore_inferior_status): Don't restore it.
4122 * mi-main.h (mi_proceeded): Declare.
4123 * mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
4124 a command.
4125
c5a4d20b
PA
41262009-03-22 Pedro Alves <pedro@codesourcery.com>
4127
4128 * gdbthread.h (struct thread_info): Add in_infcall member.
4129 * infcall.c (run_inferior_call): Save, set and restore in_infcall.
4130 Remove reverences to suppress_resume_observer. Refresh
4131 `call_thread' after returning from `proceed'.
4132 * infcmd.c (suppress_resume_observer): Delete.
4133 * inferior.h (suppress_resume_observer): Delete declaration.
4134 * mi/mi-interp.c (mi_on_resume): Suppress output while calling an
4135 inferior function.
4136 * thread.c (set_running): Remove references to
4137 suppress_resume_observer.
4138 * infrun.c (struct inferior_status): Add in_infcall member.
4139 (save_inferior_status): Save it.
4140 (restore_inferior_status): Restore it.
4141
41d2bdb4
PA
41422009-03-22 Pedro Alves <pedro@codesourcery.com>
4143
4144 * infcall.c (run_inferior_call): Remove references to
4145 suppress_stop_observer.
4146 * infcmd.c (suppress_stop_observer): Delete.
4147 (finish_command_continuation): Remove NOTE. Don't clear
4148 suppress_stop_observer anymore.
4149 (finish_command_continuation_free_arg): Likewise.
4150 (finish_forward): Remove references to suppress_stop_observer.
4151 Call normal_stop observer if we haven't already.
4152 * inferior.h (suppress_stop_observer): Delete.
4153 * infrun.c (normal_stop): When deciding to suppress the
4154 normal_stop observer, check for proceed_to_finish instead of
4155 suppress_stop_observer.
4156
065a2c74
PA
41572009-03-22 Pedro Alves <pedro@codesourcery.com>
4158
4159 * symfile.c (symfile_relocate_debug_section): Remove check for
4160 SEC_DEBUGGING.
4161
cc924cad
TJB
41622009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4163 Jim Blandy <jimb@red-bean.com>
4164 Thiago Jung Bauermann <bauerman@br.ibm.com>
4165 Tom Tromey <tromey@redhat.com>
4166
4167 Miscellaneous fixes to the Python code.
4168 * python/python-cmd.c (cmdpy_init): Accept keyword
4169 arguments.
4170 * python/python-value.c (valpy_string): Accept keyword
4171 arguments.
4172 (valpy_binop): Use `break' to exit from the TRY_CATCH block.
4173 Do not call value_to_value_object on NULL RES_VAL.
4174 (value_object_methods): Change `string' entry to also accept
4175 keyword arguments.
4176 (convert_value_from_python): Return a copy of the value if obj is
4177 a gdb.Value object.
4178 (value_object_methods): Mark the `string' method as accepting
4179 keywords, and show method "prototype" in the doc string.
4180 * python/python.c (get_parameter): Don't return inside a
4181 TRY_CATCH.
4182
bc3b79fd
TJB
41832009-03-20 Tom Tromey <tromey@redhat.com>
4184
4185 Add support for convenience functions in Python.
4186 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
4187 (SUBDIR_PYTHON_SRCS): Add python-function.c.
4188 (python-function.o): New target.
4189 * eval.c: Include "python/python.h" and <ctype.h>.
4190 (evaluate_subexp_standard): Handle values of type
4191 TYPE_CODE_INTERNAL_FUNCTION.
4192 * gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
4193 * parse.c (write_exp_string): Remove duplicate word in comment.
4194 * python/python-function.c: New file.
4195 * python/python-internal.h (gdbpy_initialize_functions): Add
4196 prototype.
4197 * python/python.c (_initialize_python): Call
4198 gdbpy_initialize_functions.
4199 * valprint.c (value_check_printable): Handle values of type
4200 TYPE_CODE_INTERNAL_FUNCTION.
4201 * value.c: Include "cli/cli-decode.h".
4202 (internal_function): New struct.
4203 (functionlist, internal_fn_type): New static variables.
4204 (lookup_only_internalvar,
4205 lookup_internalvar): Add const qualifier to name argument.
4206 (create_internalvar): Likewise. Initialize new field.
4207 (set_internal_var): Fix typo in comment. Don't allow assignment
4208 to canonical variable.
4209 (value_create_internal_function, value_internal_function_name,
4210 call_internal_function, function_command, function_destroyer,
4211 add_internal_function): New functions.
4212 (_initialize_values): Create `function' placeholder command.
4213 Initialize internal_fn_type.
4214 * value.h (lookup_only_internalvar, create_internalvar,
4215 lookup_internalvar): Add const qualifier to name argument.
4216 (internal_function_fn, add_internal_function, call_internal_function,
4217 value_internal_function_name): Add prototypes.
4218 (struct internalvar) <canonical>: New field.
4219
546e879e
TT
42202009-03-20 Tom Tromey <tromey@redhat.com>
4221
4222 * c-lang.c (evaluate_subexp_c): Call check_typedef.
4223
6c7a06a3
TT
42242009-03-20 Tom Tromey <tromey@redhat.com>
4225 Julian Brown <julian@codesourcery.com>
4226
4227 PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
4228 PR i18n/9401, PR exp/9613:
4229 * NEWS: Update
4230 * value.h (value_typed_string): Declare.
4231 (val_print_string): Update.
4232 * valprint.h (print_char_chars): Update.
4233 * valprint.c (print_char_chars): Add type argument. Update.
4234 (val_print_string): Likewise.
4235 * valops.c (value_typed_string): New function.
4236 * utils.c (host_char_to_target): New function.
4237 (parse_escape): Use host_char_to_target, host_hex_value. Update.
4238 Remove '^' case.
4239 (no_control_char_error): Remove.
4240 * typeprint.c (print_type_scalar): Update.
4241 * scm-valprint.c (scm_scmval_print): Update.
4242 * scm-lang.h (scm_printchar, scm_printstr): Update.
4243 * scm-lang.c (scm_printchar): Add type argument.
4244 (scm_printstr): Likewise.
4245 * printcmd.c (print_formatted): Update.
4246 (print_scalar_formatted): Update.
4247 (printf_command) <wide_string_arg, wide_char_arg>: New constants.
4248 Handle '%lc' and '%ls'.
4249 * parser-defs.h (struct typed_stoken): New type.
4250 (struct stoken_vector): Likewise.
4251 (write_exp_string_vector): Declare.
4252 * parse.c (write_exp_string_vector): New function.
4253 * p-valprint.c (pascal_val_print): Update.
4254 * p-lang.h (is_pascal_string_type, pascal_printchar,
4255 pascal_printstr): Update.
4256 * p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
4257 Add 'char_type' argument.
4258 (pascal_emit_char): Add type argument.
4259 (pascal_printchar): Likewise.
4260 (pascal_printstr): Likewise.
4261 * objc-lang.c (objc_emit_char): Add type argument.
4262 (objc_printchar): Likewise.
4263 (objc_printstr): Likewise.
4264 * macroexp.c (get_character_constant): Handle unicode characters.
4265 Use c_parse_escape.
4266 (get_string_literal): Handle unicode strings. Use
4267 c_parse_escape.
4268 * m2-valprint.c (print_unpacked_pointer): Update.
4269 (m2_print_array_contents): Update.
4270 (m2_val_print): Update.
4271 * m2-lang.c (m2_emit_char): Add type argument.
4272 (m2_printchar): Likewise.
4273 (m2_printstr): Likewise.
4274 * language.h (struct language_defn) <la_printchar>: Add type
4275 argument.
4276 <la_printstr, la_emitchar>: Likewise.
4277 (LA_PRINT_CHAR): Likewise.
4278 (LA_PRINT_STRING): Likewise.
4279 (LA_EMIT_CHAR): Likewise.
4280 * language.c (unk_lang_emit_char): Add type argument.
4281 (unk_lang_printchar): Likewise.
4282 (unk_lang_printstr): Likewise.
4283 * jv-valprint.c (java_val_print): Update.
4284 * jv-lang.c (java_emit_char): Add type argument.
4285 * f-valprint.c (f_val_print): Update.
4286 * f-lang.c (f_emit_char): Add type argument.
4287 (f_printchar): Likewise.
4288 (f_printstr): Likewise.
4289 * expprint.c (print_subexp_standard): Update.
4290 * charset.h (target_wide_charset): Declare.
4291 (c_target_char_has_backslash_escape, c_parse_backslash,
4292 host_char_print_literally, host_char_to_target,
4293 target_char_to_host, target_char_to_control_char): Remove.
4294 (enum transliterations): New type.
4295 (convert_between_encodings): Declare.
4296 (HOST_ESCAPE_CHAR): New define.
4297 (host_letter_to_control_character, host_hex_value): Declare.
4298 (enum wchar_iterate_result): New enum.
4299 (struct wchar_iterator): Declare.
4300 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
4301 wchar_push_back): Declare.
4302 * charset-list.h: New file.
4303 * c-valprint.c (textual_name): New function.
4304 (textual_element_type): Handle wide character types.
4305 (c_val_print): Pass original type to textual_element_type. Handle
4306 wide character types.
4307 (c_value_print): Use textual_element_type. Pass original type of
4308 value to val_print.
4309 * c-lang.h (enum c_string_type): New type.
4310 (c_printchar, c_printstr): Update.
4311 * c-lang.c (classify_type): New function.
4312 (print_wchar): Likewise.
4313 (c_emit_char): Add type argument. Handle wide characters.
4314 (c_printchar): Likewise.
4315 (c_printstr): Add type argument. Handle wide and multibyte
4316 character sets.
4317 (convert_ucn): New function.
4318 (emit_numeric_character): Likewise.
4319 (convert_octal): Likewise.
4320 (convert_hex): Likewise.
4321 (ADVANCE): New macro.
4322 (convert_escape): New function.
4323 (parse_one_string): Likewise.
4324 (evaluate_subexp_c): Likewise.
4325 (exp_descriptor_c): New global.
4326 (c_language_defn): Use exp_descriptor_c.
4327 (cplus_language_defn): Likewise.
4328 (asm_language_defn): Likewise.
4329 (minimal_language_defn): Likewise.
4330 (charset_for_string_type): New function.
4331 * c-exp.y (%union): Add 'svec' and 'tsval'.
4332 (CHAR): New token.
4333 (exp): Add CHAR production.
4334 (string_exp): Rewrite.
4335 (exp) <string_exp>: Rewrite.
4336 (tempbuf): Now global.
4337 (tempbuf_init): New global.
4338 (parse_string_or_char): New function.
4339 (yylex) <tempbuf>: Now global.
4340 <tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
4341 Remove.
4342 Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
4343 (c_parse_escape): New function.
4344 * auxv.c (fprint_target_auxv): Update.
4345 * ada-valprint.c (ada_emit_char): Add type argument.
4346 (ada_printchar): Likewise.
4347 (ada_print_scalar): Update.
4348 (printstr): Add type argument. Update calls to ada_emit_char.
4349 (ada_printstr): Add type argument.
4350 (ada_val_print_array): Update.
4351 (ada_val_print_1): Likewise.
4352 * ada-lang.c (emit_char): Add type argument.
4353 * ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
4354 type arguments.
4355 * gdb_locale.h: Include langinfo.h.
4356 * charset.c (_initialize_charset): Set default host charset from
4357 the locale. Don't register charsets. Add target-wide-charset
4358 commands. Call find_charset_names.
4359 (struct charset, struct translation): Remove.
4360 (GDB_DEFAULT_HOST_CHARSET): Remove.
4361 (GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
4362 (target_wide_charset_name): New global.
4363 (show_host_charset_name): Handle "auto".
4364 (show_target_wide_charset_name): New function.
4365 (host_charset_enum, target_charset_enum): Remove.
4366 (charset_enum): New global.
4367 (all_charsets, register_charset, lookup_charset, all_translations,
4368 register_translation, lookup_translation): Remove.
4369 (simple_charset, ascii_print_literally, ascii_to_control): Remove.
4370 (iso_8859_print_literally, iso_8859_to_control,
4371 iso_8859_family_charset): Remove.
4372 (ebcdic_print_literally, ebcdic_to_control,
4373 ebcdic_family_charset): Remove.
4374 (struct cached_iconv, check_iconv_cache, cached_iconv_convert,
4375 register_iconv_charsets): Remove.
4376 (target_wide_charset_be_name, target_wide_charset_le_name): New
4377 globals.
4378 (identity_either_char_to_other): Remove.
4379 (set_be_le_names, validate): New functions.
4380 (backslashable, backslashed, represented): Remove.
4381 (default_c_target_char_has_backslash_escape): Remove.
4382 (default_c_parse_backslash, iconv_convert): Remove.
4383 (ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
4384 ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
4385 iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
4386 ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
4387 ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
4388 ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
4389 (table_convert_char, table_translation, simple_table_translation):
4390 Remove.
4391 (current_host_charset, current_target_charset,
4392 c_target_char_has_backslash_escape_func,
4393 c_target_char_has_backslash_escape_baton): Remove.
4394 (c_parse_backslash_func, c_parse_backslash_baton): Remove.
4395 (host_char_to_target_func, host_char_to_target_baton): Remove.
4396 (target_char_to_host_func, target_char_to_host_baton): Remove.
4397 (cached_iconv_host_to_target, cached_iconv_target_to_host):
4398 Remove.
4399 (lookup_charset_or_error, check_valid_host_charset): Remove.
4400 (set_host_and_target_charsets): Remove.
4401 (set_host_charset, set_target_charset): Remove.
4402 (set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
4403 (set_target_wide_charset_sfunc): New function.
4404 (show_charset): Print target wide character set.
4405 (host_charset, target_charset): Rewrite.
4406 (target_wide_charset): New function.
4407 (c_target_char_has_backslash_escape): Remove.
4408 (c_parse_backslash): Remove.
4409 (host_letter_to_control_character): New function.
4410 (host_char_print_literally): Remove.
4411 (host_hex_value): New function.
4412 (target_char_to_control_char): Remove.
4413 (cleanup_iconv): New function.
4414 (convert_between_encodings): New function.
4415 (target_char_to_host): Remove.
4416 (struct wchar_iterator): Define.
4417 (make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
4418 wchar_push_back): New functions.
4419 (do_cleanup_iterator): New function.
4420 (char_ptr): New typedef.
4421 (charsets): New global.
4422 (add_one, find_charset_names): New functions.
4423 (default_charset_names): New global.
4424 (auto_host_charset_name): Likewise.
4425 * aclocal.m4, config.in, configure: Rebuild.
4426 * configure.ac: Call AM_LANGINFO_CODESET.
4427 (GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
4428 (AM_ICONV): Invoke earlier.
4429 * acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
4430 LIBICONV_LIBDIR. Check for libiconv in build tree.
4431 * Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
4432 (INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
4433 (INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
4434 * gdb_obstack.h (obstack_grow_wstr): New define.
c2c8d75b
AS
4435 * gdb_wchar.h: New file.
4436 * defs.h: Include it.
6c7a06a3 4437
cb249c71
TT
44382009-03-20 Tom Tromey <tromey@redhat.com>
4439 Jan Kratochvil <jan.kratochvil@redhat.com>
4440
4441 * dwarf2read.c (process_die): Handle DW_TAG_typedef.
4442 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
4443 typedef.
4444 * ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
4445 SYMBOL_TYPE result.
4446 * ada-typeprint.c (print_array_type): Do the NULL check
4447 unconditionally.
4448
16ad9370
TT
44492009-03-19 Tom Tromey <tromey@redhat.com>
4450
4451 * utils.c (do_obstack_free): New function.
4452 (make_cleanup_obstack_free): Likewise.
4453 * defs.h (make_cleanup_obstack_free): Declare.
4454
36dc683c
DE
44552009-03-18 Doug Evans <dje@google.com>
4456
89ecc4f5
DE
4457 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
4458 int, not a long long.
4459 (linux_nat_info_proc_cmd): Store pid in long instead of long long.
4460
a411cd0e
DE
4461 * expprint.c (dump_raw_expression): Print note if non-NULL.
4462
36dc683c
DE
4463 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
4464 backwards.
4465
5b1ba0e5
NS
44662009-03-18 Nathan Sidwell <nathan@codesourcery.com>
4467
4468 * Makefile.in: Update license to GPLv3.
4469 * ada-exp.y: Update license to GPLv3.
4470 * ada-lex.l: Update license to GPLv3.
4471 * c-exp.y: Update license to GPLv3.
4472 * cp-name-parser.y: Update license to GPLv3.
4473 * darwin-nat-info.c: Update license to GPLv3.
4474 * f-exp.y: Update license to GPLv3.
4475 * gdb_thread_db.h: Update license to GPLv3.
4476 * hppanbsd-nat.c: Update license to GPLv3.
4477 * hppanbsd-tdep.c: Update license to GPLv3.
4478 * hppaobsd-tdep.c: Update license to GPLv3.
4479 * jv-exp.y: Update license to GPLv3.
4480 * m2-exp.y: Update license to GPLv3.
4481 * objc-exp.y: Update license to GPLv3.
4482 * p-exp.y: Update license to GPLv3.
4483 * reply_mig_hack.awk: Update license to GPLv3.
4484 * reverse.c: Update license to GPLv3.
4485 * xtensa-xtregs.c: Update license to GPLv3.
4486
8a2492ee
PA
44872009-03-18 Pedro Alves <pedro@codesourcery.com>
4488
4489 * remote.c (remote_close): Don't call generic_mourn_inferior.
4490 (remote_mourn_1): Call generic_mourn_inferior after closing the
4491 target.
4492
5338cef1
PA
44932009-03-18 Pedro Alves <pedro@codesourcery.com>
4494
4495 * remote.c (remote_start_remote): Add missing call to
4496 init_wait_for_inferior in non-stop mode.
4497
717a8278
PA
44982009-03-18 Pedro Alves <pedro@codesourcery.com>
4499
4500 * breakpoint.c (bpstat_should_step): Only consider software
4501 watchpoints that have a location.
4502
7d85a9c0
JB
45032009-03-17 Joel Brobecker <brobecker@adacore.com>
4504
4505 Add a target_ops parameter to the to_kill method in struct target_ops.
4506
4507 * target.h (struct target_ops): Add a "target_ops *" parameter to
4508 method to_kill.
4509 (target_kill): Remove macro. Add declaration.
4510 * target.c (debug_to_kill): Delete, no longer necessary.
4511 (target_kill): New function.
4512 (update_current_target): Stop inheriting the to_kill method.
4513 Do not de_fault it to no_process either.
4514 (setup_target_debug): Do not set current_target.to_kill.
4515 * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
4516 linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
4517 remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
4518 accordingly.
4519
14064aa2
DE
45202009-03-17 Doug Evans <dje@google.com>
4521
4522 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
4523 glibc 2.3.2 and earlier.
4524
f06eadd9
JB
45252009-03-17 Joel Brobecker <brobecker@adacore.com>
4526
4527 * frame.c (get_prev_frame_1): Do not perform the inner_frame
4528 sanity check if this_frame is not NORMAL.
4529 (frame_id_inner): Update the description of this function.
4530
481df73e
HZ
45312009-03-17 Hui Zhu <teawater@gmail.com>
4532
4533 * stack.c: Change the introduce of "disassemble-next-line".
4534
6b251945
PA
45352009-03-17 Pedro Alves <pedro@codesourcery.com>
4536
4537 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
4538 declare as extern.
4539
30c33a9f
HZ
45402009-03-17 Hui Zhu <teawater@gmail.com>
4541
dafb3b41 4542 * stack.c: Include valprint.h.
30c33a9f
HZ
4543 (disassemble_next_line): New enum.
4544 (show_disassemble_next_line): New function. Show the current
4545 value of disassemble-next-line.
4546 (gdb_disassembly_stub_args): New struct for argument passing
4547 between function do_gdb_disassembly and function
4548 gdb_disassembly_stub.
4549 (gdb_disassembly_stub): New function. Helper for
4550 gdb_disassembly.
4551 (do_gdb_disassembly): New function. Use TRY_CATCH to catch
4552 the exception from the gdb_disassembly because it will be
4553 broken by filter sometime.
4554 (print_frame_info): If disassemble-next-line is set to auto
4555 or on and doesn't have the line debug messages for $pc,
4556 output the next instruction.
4557 If disassemble-next-line is set to on and there is line debug
4558 messages, output assembly codes for next line.
4559 (_initialize_stack): Make the "set disassemble-next-line"
4560 command an auto-boolean command. Change its class to
4561 class_stack. Place it in the top level set list. Extend help
4562 to describe the auto mode.
4563
fee0be5d
PA
45642009-03-17 Pedro Alves <pedro@codesourcery.com>
4565
4566 * infrun.c (normal_stop): Don't overwrite old_chain.
4567
a624e111
JB
45682009-03-16 Joel Brobecker <brobecker@adacore.com>
4569
4570 * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
4571 which is undefined, by call to regcache_invalidate, which should
4572 do what the original author wanted to do.
4573
383c0389
JB
45742009-03-16 Joel Brobecker <brobecker@adacore.com>
4575
4576 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
4577 (mips_create_inferior): Likewise.
4578
267fbcde
JB
45792009-03-16 Joel Brobecker <brobecker@adacore.com>
4580
4581 * go32-nat.c (go32_create_inferior): Add missing ops parameter.
4582
da66f6a6
JB
45832009-03-16 Joel Brobecker <brobecker@adacore.com>
4584
4585 * darwin-nat.c (darwin_resume): Fix a compiler warning when
4586 building on x86_64-darwin.
4587
58529c02
JB
45882009-03-16 Tristan Gingold <gingold@adacore.com>
4589
4590 * configure.tgt: Add handling for x86_64-darwin.
4591
ba30a4e9
JK
45922009-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4593
4594 * auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
4595
7fc0c7b5
JB
45962009-03-15 Joel Brobecker <brobecker@adacore.com>
4597
4598 * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
4599 Use the ops parameter to get to the target beneath, rather than
4600 using the current_target global. Using the current_target global
4601 was an unintended accident.
4602
1ba0a4ee
JB
46032009-03-15 Joel Brobecker <brobecker@adacore.com>
4604
4605 Fix an error happening while loading symbols from a core file
4606 (on AIX).
4607
4608 * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
4609 to detect whether we're debugging a core file or not.
4610
d30acaa7
JB
46112009-03-15 Joel Brobecker <brobecker@adacore.com>
4612
4613 Modernize the aix-thread later by getting rid of the base_target
4614 global. This brings back to life the AIX port which was otherwise
4615 crashing all the time.
4616
4617 * aix-thread.c (base_target): Delete.
4618 (pd_enable): Do not set base_target.
4619 (aix_thread_attach): Use find_target_beneath instead of base_target.
4620 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
4621 (aix_thread_fetch_registers, aix_thread_store_registers),
4622 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
4623 (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
4624 (aix_thread_kill): Delete. Does not seem necessary.
4625 (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
4626
61ff14c6
JK
46272009-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4628
4629 * stack.c (return_command <retval_exp>): New variables retval_expr
4630 and old_chain. Inline parse_and_eval to initialize retval_expr. Check
4631 RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
4632 if RETURN_TYPE is NULL.
4633
0b16c5cf
PA
46342009-03-14 Pedro Alves <pedro@codesourcery.com>
4635
4636 * remote.c (PACKET_qAttached): New.
4637 (remote_query_attached): New.
4638 (remote_add_inferior): Add new `attached' argument. Handle it.
4639 (remote_notice_new_inferior, remote_start_remote): Adjust to pass
4640 -1 to remote_add_inferior in new parameter.
4641 (extended_remote_attach_1): Adjust to pass 1 to
4642 remote_add_inferior in the new parameter.
4643 (extended_remote_create_inferior_1): Adjust to pass 0 to
4644 remote_add_inferior in the new parameter.
4645 (_initialize_remote): Add "set/show remote query-attached-packet"
4646 commands.
4647
9ee6bb93
TT
46482009-03-13 Tom Tromey <tromey@redhat.com>
4649
4650 * symtab.c (lookup_symbol_in_language): Use a cleanup.
4651
787274f0
DE
46522009-03-13 Doug Evans <dje@google.com>
4653
4654 * exceptions.h: Clean up some comments on catch_exceptions usage.
4655 * exceptions.c: Ditto. Plus mark catch_errors as superseded by
4656 catch_exceptions.
4657
24f81874
JB
46582009-02-17 Joel Brobecker <brobecker@adacore.com>
4659
4660 The following patch helps getting rid of a warning inside solib-som.c.
4661
4662 * source.c (source_full_path_of): Constify parameter filename.
4663 * defs.h (source_full_path_of): Update declaration accordingly.
4664
e1578042
JB
46652009-03-12 Joel Brobecker <brobecker@adacore.com>
4666
4667 * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
4668 BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
4669 Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
4670
9c2be529
JB
46712009-03-12 Joel Brobecker <brobecker@adacore.com>
4672
4673 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
4674 promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
4675
2360f94a 46762009-03-12 Joel Brobecker <brobecker@adacore.com>
e22dccb5
JB
4677
4678 * ada-tasks.c (ada_task_is_alive): Move up and make static.
4679 * ada-lang.h (ada_task_is_alive): Remove declaration.
4680
facc390f
JB
46812009-03-12 Jerome Guitton <guitton@adacore.com>
4682
4683 * ada-lang.c (ada_delta): Change the type of numerators and
4684 denominators to DOUBLEST, as they may not fit into a long.
4685 (scaling_factor): Ditto.
4686
47e729a8
JB
46872009-03-12 Jerome Guitton <guitton@adacore.com>
4688
5c20fa2a 4689 * language.c (lang_bool_type): Set lai->bool_type_symbol to NULL.
47e729a8 4690
b79819ba
JB
46912009-03-12 Joel Brobecker <brobecker@adacore.com>
4692
4693 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
4694 types, if we are unable to determine the actual symbol type
4695 from its tag, then use the static approximation instead.
4696
0056e4d5
JB
46972009-03-12 Joel Brobecker <brobecker@adacore.com>
4698
4699 Fix crash printing packed record with packed array.
4700
4701 * ada-lang.c (ada_modulus_from_name): New function.
4702 (ada_modulus): In the case where the type length is bigger than
4703 the size of the type used to hold the bounds, try determining
4704 the modulus from the type name.
4705 (ada_value_primitive_packed_val): Fix bug in the computation of
4706 ntarg causing an out-of-buffer invalid access.
4707
3c513ee6
JB
47082009-03-12 Joel Brobecker <brobecker@adacore.com>
4709
4710 Fix segfault when printing short_integer'last.
4711
4712 * ada-lang.c (ada_find_any_type): Search in the primitive types
4713 if a symbol could not be found.
4714
680f3fad
JB
47152009-03-12 Joel Brobecker <brobecker@adacore.com>
4716
4717 * ada-tasks.c (task_states,long_task_states): Add new states
4718 Activating and Acceptor_Delay_Sleep. Update the description
4719 of state Acceptor_Sleep.
4720
2ab1c2d9
JB
47212009-03-12 Jonas Maebe <jonas.maebe@elis.ugent.be> (obvious change)
4722
4723 Fix a build failure on Darwin following some changes in
4724 the profile of some target_ops methods.
4725
4726 * darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
4727 where missing.
4728 (darwin_stop_inferior, darwin_detach): Likewise.
4729
1f31650a
VP
47302009-03-12 Vladimir Prus <vladimir@codesourcery.com>
4731
4732 Include token in ^running notification for CLI commands.
4733
c2c8d75b
AS
4734 * mi/mi-main.c (mi_execute_command): Set current_token here.
4735 (mi_cmd_execute): Do not set current_token here.
1f31650a 4736
4333ada3
VP
47372009-03-12 Vladimir Prus <vladimir@codesourcery.com>
4738
4739 Fix MI timings.
4740
c2c8d75b
AS
4741 * mi/mi-main.c (mi_print_timing_maybe): New.
4742 (captured_mi_execute_command): Simplify. Output timings to
4743 CLI commands, too.
4744 (mi_execute_async_cli_command): Do not print timings.
4745 * mi/mi-main.h (mi_print_timing_maybe): Declare.
4746 * mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
4333ada3 4747
c5933f6d
JB
47482009-03-12 Jerome Guitton <guitton@adacore.com>
4749
4750 * xcoffread.c (process_linenos): Check if the line in the
4751 include table refers to the main source file and, if so,
4752 add them to the main subfile.
4753
c7660128
JB
47542009-03-12 Joel Brobecker <brobecker@adacore.com>
4755
4756 Fix a build failure on AIX introduced after a change in the profile
4757 of some of the "methods" in the target_ops structure.
4758 * aix-thread.c: Add missing target_ops parameter throughout.
4759
4760 Implement Ada task switching on AIX.
4761 * aix-thread.c (aix_thread_get_ada_task_ptid): New function.
4762 (init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
4763
c5bc3a77
DJ
47642009-03-11 Daniel Jacobowitz <dan@codesourcery.com>
4765
4766 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
4767 value_mark and value_free_to_mark.
4768 * objfiles.c (free_objfile): Call objfile_free_data before
4769 freeing the BFD.
4770
55518360
HZ
47712009-03-10 Hui Zhu <teawater@gmail.com>
4772
4773 * disasm.c (gdb_disassembly): Remove unused argument
4774 "line_num".
4775 * disasm.h (gdb_disassembly): Ditto.
4776 * cli/cli-cmds.c (print_disassembly): Ditto.
4777 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
4778
5fd1a349
PP
47792009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
4780
4781 * solib.c (solib_contains_address_p): New function.
4782 (solib_name_from_address): Use it.
4783 * printcmd.c (display_uses_solib_p): Use it.
c2c8d75b
AS
4784 * solib.h (solib_contains_address_p): Declare it.
4785
36746093
JK
47862009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4787
4788 * varobj.c (free_variable): Call value_free.
4789
757a13d0
JK
47902009-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4791
4792 PR gdb/9873:
4793 * dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
4794 Move the variable `macinfo_type' out of the loop. Create a new
4795 processing pass before the current one to pre-create `current_file'.
4796 New complaint on misplaced zero/non-zero definitions/includes.
4797 Skip first DW_MACINFO_start_file with `at_commandline' set.
4798
c8fa6cdd
VP
47992008-03-09 Vladimir Prus <vladimir@codesourcery.com>
4800
4801 * solib.c (reload_shared_libraries): Give
4802 inferior a chance to reset solib breakpoint.
4803 Reinit frame cache.
4804
41b4aadc
CF
48052009-03-08 Christopher Faylor <me+cygwin@cgf.cx>
4806
4807 * windows-nat.c (dr): Redefine to use largest possible integer which
4808 holds a pointer.
4809 (cygwin_set_dr): Avoid coercion.
4810
48112009-03-08 Oswald Buddenhagen <oswald.buddenhagen@trolltech.de>
4812
14b69f28 4813 * windows-nat.c (windows_create_inferior): Implement --tty handling on
41b4aadc
CF
4814 non-cygwin.
4815
f5c9a895
PP
48162009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4817
4818 Rename solib_address to solib_name_from_address.
4819 * breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
4820 (disable_breakpoints_in_unloaded_shlib): Update.
4821 * printcmd.c (display_uses_solib_p): Likewise.
4822 * stack.c (print_frame): Likewise.
4823 * solib.c: Rename.
4824 * solib.h: Rename.
c2c8d75b 4825
a3247a22
PP
48262009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4827
4828 * printcmd.c (do_one_display): Reparse exp_string.
4829 (display_uses_solib_p): New function.
4830 (clear_dangling_display_expressions): New function.
4831 (_initialize_printcmd): Add observer.
4832 * solib.c (no_shared_libraries): Swap order of calls to
4833 clear_solib and objfile_purge_solibs.
c2c8d75b 4834
d36df9c5
JB
48352009-03-05 Joel Brobecker <brobecker@adacore.com>
4836
4837 Implement the target-specific part of Ada tasking support
4838 on Tru64.
4839
4840 * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
4841 (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
4842
b254c0b2
JB
48432009-03-05 Joel Brobecker <brobecker@adacore.com>
4844
4845 Get rid of the global "base_target" and use "find_target_beneath"
4846 to find the underlying target.
4847 * dec-thread.c (base_target): Delete.
4848 (enable_dec_thread): Remove assignement to base_target.
4849 (dec_thread_detach, dec_thread_wait, dec_thread_wait)
4850 (dec_thread_fetch_registers, dec_thread_store_registers)
4851 (dec_thread_mourn_inferior, dec_thread_pid_to_str):
4852 Update the function profile if necessary.
4853 Use find_target_beneath to call the same method but from
4854 the underlying target, removing the need for "base_target".
4855
4856 * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
4857 Fix a copy/paste error in a few debug traces...
4858
4859 * solib-osf.c (init_so): Use a simpler method for computing
4860 the size of lm_info structure. This also gets rid of warning
4861 emitted by the compiler.
4862
aae64587
PA
48632009-03-05 Pedro Alves <pedro@codesourcery.com>
4864
4865 * breakpoint.c (check_duplicates_for): Skip permanent breakpoints
4866 duplicates of permanent breakpoints.
4867
1941c569
PA
48682009-03-04 Pedro Alves <pedro@codesourcery.com>
4869
4870 * inferior.h (notice_new_inferior): Declare.
4871 * infcmd.c (notice_new_inferior): New.
4872 * remote.c (remote_add_inferior, remote_add_thread): New.
4873 (notice_new_inferiors): Rename to...
4874 (remote_notice_new_inferior): ... this. Add RUNNING argument.
4875 Use remote_add_thread instead of add_thread, passing it the
4876 RUNNING argument. Add an inferior with remote_add_inferior. If
4877 we just learned about an inferior, call notice_new_inferior.
4878 (record_currthread): Adjust.
4879 (remote_threads_info): Adjust to use remote_notice_new_inferior.
237d4315
PA
4880 (remote_start_remote, extended_remote_attach_1): Use
4881 remote_add_inferior.
1941c569
PA
4882 (process_stop_reply): Adjust. Call remote_notice_new_inferior
4883 after handling expedited registers and watchpoint state.
4884 (extended_remote_create_inferior_1): Use remote_add_inferior.
4885
9bde0732
AR
48862009-03-04 Aleksandar Ristovski <aristovski@qnx.com>
4887
4888 * infcmd.c (registers_info): Remove register number case.
4889
6aa8e5c2
PA
48902009-03-03 Pedro Alves <pedro@codesourcery.com>
4891
4892 * top.c (quit_target): Check for target_has_execution before
4893 killing or detaching from inferiors.
4894
1d59cee5
JB
48952009-03-02 Joel Brobecker <brobecker@adacore.com>
4896
4897 Remove some unused routines.
4898
4899 * ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
4900 Delete.
4901 * ada-lang.c (ada_task_list_iterator_ftype)
4902 (iterate_over_live_ada_tasks): Delete.
4903 * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
4904 Delete.
4905
223698f8
DE
49062009-03-01 Doug Evans <dje@google.com>
4907
9af17804
DE
4908 * symtab.c: Remove trailing whitespace throughout the file.
4909 (expand_line_sal): Fix some typos and whitespace.
4910
3c54f140
DE
4911 * Makefile.in (clean): rm -f $(DEPDIR)/*.
4912
2aecd87f
DE
4913 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
4914 (init.c): signals/ -> common/.
4915 (signals.o): Update.
4916 * target.h (target_signal_to_string,target_signal_to_string)
4917 (target_signal_from_name,target_signal_to_host_p)
4918 (target_signal_from_host,target_signal_to_host): Move to ...
4919 * common/gdb_signals.h: ... here. New file.
4920 * common/signals.c: Moved here from signals/signals.c.
4921 #include gdb_signals.h, remove #include of target.h in gdb case.
4922 (target_signal_from_command,default_target_signal_to_host)
4923 (default_target_signal_from_host): Move inside #ifndef GDBSERVER.
4924
223698f8
DE
4925 Include thread ID in target_wait debugging output.
4926 * infrun.c (print_target_wait_results): New function.
4927 (wait_for_inferior,fetch_inferior_event): Call it.
4928
93a91755
PA
49292009-02-27 Pedro Alves <pedro@codesourcery.com>
4930
4931 * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
4932 with a ptid_t field.
4933 * linux-thread-db.c (thread_get_info_callback): Build the ptid
4934 using the pid stored in proc_handle.ptid.
4935 (thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
4936 (check_for_thread_db, thread_db_detach, check_event)
4937 (thread_db_mourn_inferior, find_new_threads_callback)
4938 (thread_db_find_new_threads_1): Adjust.
4939 * proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
4940 (ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
4941
b5096abe
PM
49422009-02-27 Phil Muldoon <pmuldoon@redhat.com>
4943
4944 * valprint.c (read_string): Rework clean-up logic. Use
4945 free_current_contents to clean-up buffer.
4946
a2f63f5e
AS
49472009-02-27 Andreas Schwab <schwab@linux-m68k.org>
4948
4949 * MAINTAINERS: Update e-mail address.
4950
83390453
PM
49512009-02-26 Phil Muldoon <pmuldoon@redhat.com>
4952
4953 * python/python-utils.c (python_string_to_unicode): Always return
4954 a new reference.
4955 (python_string_to_target_string): Decrement transient python
4956 instance.
4957 (python_string_to_host_string): Likewise.
4958
49592007-02-26 Pedro Alves <pedro@codesourcery.com>
a0740d21
PA
4960
4961 * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
4962 call to super_fetch_registers.
4963 (mips64_linux_store_registers): Pass `ops' to call to
4964 super_store_registers.
4965
89c83b10
DE
49662009-02-25 Doug Evans <dje@google.com>
4967
99361f52
DE
4968 * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
4969 error message.
4970
1c2af6c4
DE
4971 * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
4972 disabled_shlib_breaks, unused.
4973
89c83b10
DE
4974 * printcmd.c (build_address_symbolic): Fix comment.
4975
9e2f0ad4
HZ
49762009-02-25 Hui Zhu <teawater@gmail.com>
4977
4978 * cli/cli-script.c (define_command): Add _() to query.
4979 * gnu-nat.c (inf_validate_task_sc): Ditto.
4980 * infcmd.c (kill_if_already_running): Ditto.
4981 (jump_command): Ditto.
4982 (attach_command): Ditto.
4983 * inflow.c (kill_command): Ditto.
4984 * infrun.c (handle_command): Ditto.
4985 * maint.c (maintenance_dump_me): Ditto.
4986 * memattr.c (mem_delete_command): Ditto.
4987 * monitor.c (monitor_interrupt_query): Ditto.
4988 * nto-procfs.c (interrupt_query): Ditto.
4989 * printcmd.c (undisplay_command): Ditto.
4990 * remote-mips.c (mips_kill): Ditto.
4991 * remote.c (interrupt_query): Ditto.
4992 * solib-irix.c (irix_open_symbol_file_object): Ditto.
4993 * solib-osf.c (osf_open_symbol_file_object): Ditto.
4994 * solib-pa64.c (pa64_open_symbol_file_object): Ditto.
4995 * solib-som.c (som_open_symbol_file_object): Ditto.
4996 * solib-svr4.c (open_symbol_file_object): Ditto.
4997 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4998 * target.c (kill_or_be_killed): Ditto.
4999 * tracepoint.c (delete_trace_command): Ditto.
5000 * top.c (quit_confirm): Add _() to s that will be used
5001 in query.
5002
02529b48
PM
50032009-02-24 Pierre Muller <muller@ics.u-strasbg.fr>
5004
5005 Fix windows-nat.c compilation failure.
5006
5007 * windows-nat.c (windows_thread_alive): Fix forward declaration.
5008 (get_windows_debug_event): Add ops parameter to call to windows_resume.
5009
2fb89e62
PA
50102009-02-23 Pedro Alves <pedro@codesourcery.com>
5011
5012 * remote-sim.c (gdbsim_resume): Add target_ops* argument.
5013
6f43c46f
JB
50142009-02-23 Jay Krell <jay.krell@cornell.edu> (tiny change)
5015
5016 * symtab.c (find_line_symtab): Initialize exact to avoid
5017 a compiler warning.
5018
84e473c8
PA
50192009-02-23 Pedro Alves <pedro@codesourcery.com>
5020
5021 * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass
5022 `ops' to recursive call.
5023
28439f5e
PA
50242009-02-23 Pedro Alves <pedro@codesourcery.com>
5025
5026 * corelow.c (get_core_registers): Adjust.
5027 (core_file_thread_alive): Rename to...
5028 (core_thread_alive): ... this.
5029 (core_pid_to_str): Try gdbarch_core_pid_to_str first.
5030 (init_core_ops): Adjust.
5031 (coreops_suppress_target): Delete.
5032 (_initialize_corelow): Unconditionally add core_ops.
5033 * procfs.c: Include "inf-child.h".
5034 (procfs_ops): Delete.
5035 (init_procfs_ops): Delete. Reimplement as...
5036 (procfs_target): ... this, inheriting from inf-child.
5037 (procfs_attach, procfs_detach, procfs_fetch_registers): Adjust.
5038 (procfs_prepare_to_store): Delete.
5039 (procfs_store_registers, procfs_resume): Adjust.
5040 (procfs_open): Delete.
5041 (procfs_suppress_run): Delete.
5042 (procfs_can_run): Delete.
5043 (procfs_mourn_inferior): Adjust.
5044 (procfs_init_inferior): Add target_ops parameter. Adjust.
5045 (procfs_create_inferior): Don't pass procfs_init_inferior to
5046 fork_inferior. Instead call it after fork_inferior returns.
5047 (procfs_find_new_threads): Adjust.
5048 (_initialize_procfs): Adjust to use procfs_target instead of
5049 init_procfs_ops.
5050 * sol-thread.c (orig_core_ops, sol_core_ops): Delete.
5051 (lwp_to_thread): Use target_thread_alive.
5052 (sol_thread_open): Delete.
5053 (sol_thread_attach): Delete.
5054 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
5055 (sol_thread_fetch_registers, sol_thread_store_registers): Adjust
5056 to use find_target_beneath.
5057 (sol_thread_prepare_to_store, sol_thread_xfer_memory): Delete.
5058 (sol_thread_xfer_partial): Adjust to use find_target_beneath.
5059 (sol_thread_files_info, sol_thread_kill_inferior): Delete.
5060 (check_for_thread_db): New.
5061 (sol_thread_notice_signals, sol_thread_create_inferior): Delete.
5062 (sol_thread_new_objfile): Call check_for_thread_db.
5063 (sol_thread_mourn_inferior): Adjust to use find_target_beneath.
5064 (sol_thread_can_run): Delete.
5065 (sol_thread_alive): Adjust to use find_target_beneath.
5066 (sol_thread_stop): Delete.
5067 (rw_common): Use target_write_memory or target_read_memory.
5068 (ps_lgetregs, ps_lgetfpregs): Use target_fetch_registers.
5069 (ps_lsetregs, ps_lsetfpregs): Use target_store_registers.
5070 (solaris_pid_to_str): Remove check for libthread_db initialization
5071 failing.
5072 (sol_find_new_threads): Remove check for libthread_db
5073 initialization failing, or for an invalid inferior_ptid. Adjust
5074 to use find_target_beneath.
5075 (sol_core_open, sol_core_close, sol_core_detach,
5076 sol_core_files_info, sol_find_memory_regions,
5077 sol_make_note_section, ignore): Delete.
5078 (init_sol_thread_ops): Make it a thread_stratum target. Remove
5079 unneeded callback settings.
5080 (init_sol_core_ops): Delete.
5081 (_initialize_sol_thread): No longer call init_sol_core_ops, set
5082 procfs_suppress_run, or hack with core_ops.
5083
5084 * target.h (struct target_ops): Add a target_ops * parameter to
5085 to_resume, to_fetch_registers, to_store_registers, to_thread_alive
5086 and to_find_new_threads.
5087 (target_fetch_registers, target_store_registers)
5088 (target_thread_alive, target_find_new_threads): Redeclare as
5089 function.
a2f63f5e 5090
28439f5e
PA
5091 * target.c (update_current_target): Do not inherit or de_fault
5092 to_resume, to_fetch_registers, to_store_registers,
5093 to_thread_alive, to_find_new_threads.
5094 (target_resume): Adjust.
5095 (target_thread_alive, target_find_new_threads): New.
5096 (debug_to_resume, debug_to_fetch_registers): Delete.
5097 (target_fetch_registers): New.
5098 (debug_to_store_registers): Delete.
5099 (target_store_registers): New.
5100 (debug_to_thread_alive, debug_to_find_new_threads): Delete.
5101 (setup_target_debug): Adjust.
a2f63f5e 5102
28439f5e 5103 * gdbcore.h (core_ops): Delete declaration.
a2f63f5e 5104
28439f5e
PA
5105 * inf-ptrace.c, linux-nat.c, remote.c, amd64-linux-nat.c,
5106 inf-child.c, linux-thread-db.c, bsd-uthread.c, inf-ttrace.c,
5107 i386-sol2-tdep.c, darwin-nat.c, gnu-nat.c, go32-nat.c,
5108 hpux-thread.c, i386-linux-nat.c, i386fbsd-nat.c, monitor.c,
5109 nto-procfs.c, remote-m32r-sdi.c, remote-mips.c, windows-nat.c,
5110 alphabsd-nat.c, amd64bsd-nat.c, arm-linux-nat.c, armnbsd-nat.c,
5111 bsd-kvm.c, hppa-hpux-nat.c, hppa-linux-nat.c, hppabsd-nat.c,
5112 hppanbsd-nat.c, i386-darwin-nat.c, i386bsd-nat.c,
5113 ia64-linux-nat.c, m32r-linux-nat.c, m68kbsd-nat.c,
5114 m68klinux-nat.c, m88kbsd-nat.c, mips-linux-nat.c,
5115 mips64obsd-nat.c, mipsnbsd-nat.c, ppc-linux-nat.c, ppcnbsd-nat.c,
5116 ppcobsd-nat.c, remote-sim.c, rs6000-nat.c, s390-nat.c,
5117 shnbsd-nat.c, sparc-nat.c, sparc-nat.h, spu-linux-nat.c,
5118 vaxbsd-nat.c, xtensa-linux-nat.c: Adjust to target_ops changes.
5119
5120 * gdbarch.sh (core_pid_to_str): New gdbarch callback.
5121 * gdbarch.h, gdbarch.c: Regenerate.
5122
5123 * sol2-tdep.c: Include "inferior.h".
5124 (sol2_core_pid_to_str): New.
5125 * sol2-tdep.h (sol2_core_pid_to_str): Declare.
5126
5127 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
5128 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
5129 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
5130 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
5131
907083d1
DE
51322009-02-22 Doug Evans <dje@google.com>
5133
5134 * exec.c (exec_file_attach): Fix comment.
5135
63807e1d
PA
51362009-02-22 Pedro Alves <pedro@codesourcery.com>
5137
5138 Silence a few -Wmissing-prototypes warnings.
5139
5140 PR build/9877:
a2f63f5e 5141 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Make
63807e1d 5142 it static.
a2f63f5e
AS
5143 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Declare.
5144 * amd64fbsd-tdep.c (amd64fbsd_init_abi): Make it static.
5145 * amd64nbsd-tdep.c (_initialize_amd64nbsd_ndep): Rename to ...
63807e1d
PA
5146 (_initialize_amd64nbsd_tdep): ... this.
5147 * arm-linux-tdep.c (arm_linux_software_single_step): Make it static.
5148 (_initialize_arm_linux_tdep): Declare.
5149 * armbsd-tdep.c (armbsd_fpreg_offset): Make it static.
5150 * armnbsd-tdep.c (_initialize_arm_netbsd_tdep): Declare.
5151 * armobsd-tdep.c (_initialize_armobsd_tdep): Declare.
5152 * avr-tdep.c (avr_return_value): Make it static.
5153 (avr_frame_unwind_cache): Ditto.
5154 * bsd-uthread.c (bsd_uthread_inferior_created): Ditto.
5155 (bsd_uthread_solib_loaded): Ditto.
5156 (bsd_uthread_solib_unloaded): Ditto.
5157 (bsd_uthread_target): Ditto.
5158 (_initialize_bsd_uthread): Declare.
5159 * cris-tdep.c (crisv32_single_step_through_delay): Make it static.
5160 (cris_frame_unwind_cache): Ditto.
5161 * frv-tdep.c (frv_return_value): Ditto.
5162 * h8300-tdep.c (h8300_use_struct_convention): Ditto.
5163 (h8300h_use_struct_convention): Ditto.
5164 * hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend):
5165 Ditto.
5166 * hppa-tdep.h (hppa_low_sign_extend, hppa_sign_extend): Delete
5167 declarations.
5168 * hppabsd-tdep.c: Include hppabsd-tdep.h.
5169 (hppabsd_find_global_pointer): Make it static.
5170 * hppabsd-tdep.h: New.
5171 * hppanbsd-tdep.c: Include hppabsd-tdep.h.
5172 (hppabsd_init_abi): Remove declaration.
5173 (_initialize_hppabsd_tdep): Remove declaration.
5174 (_initialize_hppanbsd_tdep): Declare.
5175 * hppaobsd-tdep.c: Include hppabsd-tdep.h.
5176 (hppabsd_init_abi): Delete declaration.
5177 (hppaobsd_init_abi): Make it static.
5178 * i386-nto-tdep.c (_initialize_i386nto_tdep): Declare.
5179 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Declare.
5180 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Declare.
5181 * ia64-tdep.c (ia64_register_reggroup_p): Make it static.
5182 * iq2000-tdep.c (_initialize_iq2000_tdep): Declare.
5183 * m32c-tdep.c (m32c_register_reggroup_p): Make it static.
5184 (m32c_analyze_prologue, m32c_virtual_frame_pointer): Ditto.
5185 (_initialize_m32c_tdep): Declare.
5186 * m32r-rom.c (_initialize_m32r_rom): Declare.
5187 * m32r-tdep.c (m32r_skip_prologue): Make it static.
5188 (m32r_return_value): Ditto.
5189 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Make it static.
5190 (m68hc11_return_value): Ditto.
5191 * m68klinux-tdep.c (_initialize_m68k_linux_tdep): Declare.
5192 * m88k-tdep.c (m88k_frame_cache): Make it static.
5193 * mep-tdep.c (mep_gdb_print_insn): Ditto.
5194 (mep_return_value): Ditto.
5195 (_initialize_mep_tdep): Declare.
5196 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Declare.
5197 * mips-linux-tdep.c (supply_64bit_reg): Make it static.
5198 (mips_linux_syscall_next_pc): Ditto.
5199 (_initialize_mips_linux_tdep): Declare.
5200 * mips-tdep.c (mips_single_step_through_delay): Make it static.
5201 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Declare.
5202 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Declare.
5203 * mn10300-tdep.c (_initialize_mn10300_tdep): Declare.
5204 * mt-tdep.c (_initialize_mt_tdep): Declare.
5205 * nbsd-tdep.c: Include nbsd-tdep.h.
5206 * nto-tdep.c (find_load_phdr): Make it static.
5207 (_initialize_nto_tdep): Declare.
5208 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Make it
5209 static.
5210 (_initialize_ppc_linux_tdep): Declare.
5211 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint)
5212 (m32r_insert_watchpoint, m32r_remove_watchpoint)
5213 (m32r_stopped_data_address, m32r_stopped_by_watchpoint): Make
5214 static.
5215 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Declare.
5216 * rs6000-nat.c: Include xcoffread.h.
5217 (find_toc_address): Don't extern declare get_toc_offset. Adjust
5218 to call xcoff_get_to_offset.
5219 * rs6000-tdep.c (ppc_vsx_support_p, ppc_displaced_step_fixup)
5220 (rs6000_skip_main_prologue, rs6000_in_solib_return_trampoline)
5221 (rs6000_skip_trampoline_code): Make static.
5222 * s390-tdep.c (s390_regset_from_core_section): Ditto.
5223 * sh-tdep.c (sh_register_reggroup_p): Ditto.
5224 * shnbsd-tdep.c (shnbsd_regset_from_core_section): Ditto.
5225 (_initialize_shnbsd_tdep): Declare.
5226 * solib-frv.c (displacement_from_map): Make static.
5227 (_initialize_frv_solib): Declare.
5228 * solib-irix.c (fetch_lm_info): Make static.
5229 (_initialize_irix_solib): Declare.
5230 * solib-som.c: Include solib-som.h.
5231 (som_solib_select): Line break.
5232 * sparc-tdep.c (sparc_regset_from_core_section): Make static.
5233 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Rename to ...
5234 (_initialize_sparcnbsd_tdep): ... this.
5235 * spu-tdep.c (spu_software_single_step): Make it static.
5236 (_initialize_spu_tdep): Declare.
5237 * vax-tdep.c (vax_frame_cache): Make it static.
5238 * xcoffread.c: Include xcoffread.h.
5239 (get_toc_offset): Rename to ...
5240 (xcoff_get_toc_offset): ... this.
5241 (_initialize_xcoffread): Declare.
5242 * xcoffread.h: New.
5243 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Declare.
5244 * xtensa-tdep.c (xtensa_skip_prologue, xtensa_derive_tdep): Make
5245 static.
5246 (_initialize_xtensa_tdep): Declare.
5247
2c0b251b
PA
52482008-02-21 Pedro Alves <pedro@codesorcery.com>
5249
5250 Silence a few -Wmissing-prototypes warnings.
5251
5252 PR build/9877:
5253 * amd64-nat.c: Include "amd64-nat.h".
5254 * fork-child.c (_initialize_fork_child): Ditto.
5255 * gcore.c (_initialize_gcore): Ditto.
5256 * inf-ptrace.c: Include "inf-ptrace.h".
5257 (inf_ptrace_store_registers): Make it static.
5258 * linux-nat.c (linux_nat_terminal_ours): Make it static.
5259 (_initialize_linux_nat): Declare before definition.
5260 * linux-tdep.c: Include "linux-tdep.h".
5261 * linux-thread-db.c (_initialize_thread_db): Declare before
5262 definition.
5263 * proc-service.c (_initialize_proc_service): Ditto.
5264 * remote.c (remote_send_printf): Make it static.
5265 * solib.c: Include "solib.h".
5266 * symfile-mem.c (_initialize_symfile_mem): Declare before
5267 definition.
5268 * ada-lang.c (ada_la_decode, ada_match_name)
5269 (ada_suppress_symbol_printing, ada_is_array_type)
5270 (ada_value_ptr_subscript, ada_array_length)
5271 (ada_to_static_fixed_value): Make them static.
5272 (_initialize_ada_language): Declare before definition.
5273 * ada-tasks.c (ada_get_task_number, ada_get_environment_task)
5274 (ada_task_list_changed, ada_new_objfile_observer): Make them
5275 static.
5276 (_initialize_tasks): Declare before definition.
5277 * addrmap.c (_initialize_addrmap): Declare before definition.
5278 * auxv.c (default_auxv_parse): Make it static.
5279 * bfd-target.c (target_bfd_xfer_partial, target_bfd_xclose): Make
5280 them static.
5281 * breakpoint.c (remove_sal): Add line break.
5282 (expand_line_sal_maybe): Make it static.
5283 * cp-name-parser.y: Include "cp-support.h".
5284 * cp-valprint.c (cp_find_class_member): Make it static.
5285 * eval.c (value_f90_subarray): Ditto.
5286 * exceptions.c (print_any_exception): Ditto.
5287 * findcmd.c (_initialize_mem_search): Declare before definition.
5288 * frame.c (frame_observer_target_changed): Make it static.
5289 * gnu-v3-abi.c (gnuv3_find_method_in): Make it static.
5290 * inf-child.c: Include "inf-child.h".
5291 * inferior.h (valid_inferior_id): Rename to ...
5292 (valid_gdb_inferior_id): ... this.
5293 * infrun.c (infrun_thread_stop_requested, siginfo_make_value):
5294 Make them static.
5295 * jv-lang.c (java_language_arch_info): Make it static.
5296 * m2-typeprint.c (m2_get_discrete_bounds): Ditto.
5297 * osdata.c (info_osdata_command): Make it static.
5298 * regcache.c (regcache_observer_target_changed): Make it static.
5299 * reverse.c (_initialize_reverse): Declare before definition.
5300 * stabsread.c (cleanup_undefined_types_noname)
5301 (cleanup_undefined_types_1): Make them static.
5302 * symfile.c (place_section): Make it static.
5303 * symtab.c (find_pc_sect_psymtab_closer): Make it static.
5304 * target-descriptions.c (_initialize_target_descriptions): Declare
5305 before definition.
5306 * target.c (default_get_ada_task_ptid, find_default_can_async_p)
5307 (find_default_is_async_p, find_default_supports_non_stop): Make
5308 them static.
5309 (target_supports_non_stop): Add prototype.
5310 (dummy_pid_to_str): Make it static.
5311 * utils.c (_initialize_utils): Declare before definition.
5312 * ada-exp.y (_initialize_ada_exp): Declare before definition.
5313 * solib-svr4.c (HAS_LM_DYNAMIC_FROM_LINK_MAP): Add a prototype.
5314 * target.h (struct target_ops): Add a prototype to the
5315 to_can_execute_reverse callback.
a2f63f5e
AS
5316 * macroscope.c (_initialize_macroscope): Declare before definition.
5317 * cp-namespace.c (_initialize_cp_namespace): Declare before definition.
2c0b251b
PA
5318 * python/python.c (_initialize_python): Declare before definition.
5319 * tui/tui-command.c: Include "tui/tui-command.h".
5320 * tui/tui-data.c (init_content_element, init_win_info): Make them
5321 static.
5322 * tui/tui-disasm.c: Include "tui/tui-disasm.h".
5323 * tui/tui-interp.c (_initialize_tui_interp): Declare before
5324 definition.
5325 * tui/tui-layout.c: Include "tui/tui-layout.h".
5326 (_initialize_tui_layout): Declare before definition.
5327 * tui/tui-regs.c: Include "tui/tui-regs.h".
5328 (tui_display_reg_element_at_line): Make it static.
5329 (_initialize_tui_regs): Declare before definition.
5330 * tui/tui-stack.c (_initialize_tui_stack): Declare before
5331 definition.
5332 * tui/tui-win.c: Include "tui/tui-win.h".
5333 (_initialize_tui_win): Declare before definition.
5334 (tui_sigwinch_handler): Make it static. Wrap in ifdef SIGWINCH.
5335 * tui/tui-win.h (tui_sigwinch_handler): Delete declaration.
5336 (tui_get_cmd_list): Add a prototype.
5337 * tui/tui-windata.c: Include tui-windata.h.
5338 * tui/tui-wingeneral.c (box_win): Make it static.
5339 * cli/cli-logging.c (show_logging_command): Make it static.
5340 (_initialize_cli_logging): Declare before definition.
5341 * mi/mi-common.c (_initialize_gdb_mi_common): Declare before
5342 definition.
5343
5aca5a82
PM
53442009-02-20 Pierre Muller <muller@ics.u-strasbg.fr>
5345
08c1f091 5346 Extend use of i386_use_watchpoints to all i386 native files
5aca5a82 5347 using hardware watchpoints.
08c1f091
DE
5348 * go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
5349 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
5350 * windows-nat.c (init_windows_ops): Ditto.
5351 * config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
5352 * config/i386/nm-cygwin64.h: Ditto.
5353 * config/i386/nm-fbsd.h: Ditto.
5354 * config/i386/nm-go32.h: Ditto.
5aca5a82 5355
1db300f1
JB
53562009-02-19 Joel Brobecker <brobecker@adacore.com>
5357
5358 * ada-typeprint.c (ada_typedef_print): Remove. Unused.
5359
c86cf029
VP
53602009-02-18 Vladimir Prus <vladimir@codesourcery.com>
5361
5362 * mi/mi-interp.c (mi_solib_loaded, mi_solib_unloaded): New.
5363 (mi_interpreter_init): Register the above.
5364 * solib.c (clear_solib): Notify solib unload.
5365 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Do not
5366 disable breakpoints on a.out targets.
5367
3ea85240
VP
53682009-02-17 Vladimir Prus <vladimir@codesourcery.com>
5369
5370 * observer.c (observer_test_first_notification_function)
5371 (observer_test_second_notification_function)
5372 (observer_test_third_notification_function): Adjust prototype.
5373
4c1d2973
PA
53742009-02-17 Pedro Alves <pedro@codesourcery.com>
5375
5376 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-dicos-tdep.o.
5377 (ALL_TARGET_OBS): Add dicos-tdep.o.
5378 (ALLDEPFILES): Add amd64-dicos-tdep.c and dicos-tdep.c.
5379 * configure.tgt (i[34567]86-*-dicos*): Add dicos-tdep.o to
5380 gdb_target_obs.
5381 (x86_64-*-dicos*): Add dicos-tdep.o and amd64-dicos-tdep.o to
5382 gdb_target_obs.
5383 * dicos-tdep.h, dicos-tdep.c: New.
5384 * amd64-dicos-tdep.c: New.
5385 * i386-dicos-tdep.c: Don't include solib.h, solib-target.h or
5386 inferior.h. Include dicos-tdep.h.
5387 (i386_dicos_init_abi): Call dicos_init_abi.
5388 (i386_dicos_bfd_has_symbol_p): Delete.
5389 (i386_dicos_osabi_sniffer): Use dicos_load_module_p.
5390
5391 * NEWS: Mention x86-64 DICOS target support.
5392
1903f0e6
DE
53932009-02-16 Doug Evans <dje@google.com>
5394
5395 * amd64-tdep.c (amd64_skip_prefixes): Renamed from skip_prefixes.
5396 All callers updated.
5397 (amd64_get_insn_details): Handle more 3-byte opcode insns.
5398 (amd64_breakpoint_p): Delete.
5399 (amd64_displaced_step_fixup): When fixing up after stepping an int3,
5400 don't back up pc to the start of the int3.
5401 * i386-tdep.c: #include opcode/i386.h.
5402 (i386_skip_prefixes): New function.
5403 (i386_absolute_jmp_p): Constify argument.
5404 (i386_absolute_call_p,i386_ret_p,i386_call_p,i386_syscall_p): Ditto.
5405 (i386_breakpoint_p): Delete.
5406 (i386_displaced_step_fixup): Handle unnecessary or redundant prefixes.
5407 When fixing up after stepping an int3, don't back up pc to the start
5408 of the int3.
5409
959b8724
PA
54102009-02-16 Pedro Alves <pedro@codesourcery.com>
5411
5412 * corelow.c (core_close): Don't hardcode the core's pid.
5413 (core_open): Find core threads before calling
5414 post_create_inferior.
5415 (add_to_thread_list, get_core_register_section): Take into account
5416 systems where the regset section names encode the pid of the
5417 inferior.
5418
5419 * gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
5420 * gdbarch.h, gdbarch.c: Regenerate.
5421
5422 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
5423 * i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
5424 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
5425 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
5426
1d33d6ba
VP
54272009-02-14 Vladimir Prus <vladimir@codesourcery.com>
5428
5429 Include frame information for *stopped due to CLI commands.
5430
a2f63f5e
AS
5431 * ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
5432 * infcmd.c (finish_command_continuation): Pass '1' for
5433 'print_frame' parameter to the observer.
5434 * infrun.c (normal_stop): Don't print mi-specific information
5435 here. Pass 'stop_print_frame' to the 'print_frame' parameter
5436 of the observer.
5437 * mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
5438 If we need to print frame, and current uiout is not the MI one,
5439 print frame again.
1d33d6ba 5440
2ff5e605
PM
54412009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
5442
5443 * xtensa-tdep.c (call0_analyze_prologue): Delete BSZ macro.
5444 Replace BSZ macro uses by XTENSA_ISA_BSZ macro.
5445
5d7cb8df
JK
54462009-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5447
5448 PR fortran/9806
5449 * dwarf2read.c (process_die <DW_TAG_module>, read_module)
5450 (scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
5451
868a0084
PM
54522009-02-11 Pierre Muller <muller@ics.u-strasbg.fr>
5453
5454 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
5d7cb8df 5455 for DW_ATE_signed_char and DW_ATE_unsigned_char
868a0084
PM
5456 for pascal language.
5457
42e2132c
JK
54582009-02-11 Jim Meyering <meyering@redhat.com>
5459 Jan Kratochvil <jan.kratochvil@redhat.com>
5460
5461 Avoid NULL dereference.
5462 * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
5463 New variable func_type.
5464
315aef0a
PA
54652009-02-11 Pedro Alves <pedro@codesourcery.com>
5466
5467 * gdbarch.c: Regenerate.
5468
58159490
PM
54692009-02-10 Pierre Muller <muller@ics.u-strasbg.fr>
5470
5471 * p-lang.c (is_pascal_string_type): Fix comment.
5472 Determine exact size of char elements for GPC
5473 strings.
5474 (pascal_printstr): Handle char width of 2 or 4.
5475 * p-valprint.c (pascal_val_print): Handle char
5476 of width 2 or 4.
a2f63f5e 5477
d3f36a39
DJ
54782009-02-07 Daniel Jacobowitz <dan@codesourcery.com>
5479
5480 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and highpc
5481 inside the loop. Only call addrmap_set_empty if the compilation unit
5482 had DW_AT_high_pc and DW_AT_low_pc. Update call to
5483 scan_partial_symbols.
5484 (scan_partial_symbols): Take NEED_PC argument and pass it along with
5485 LOWPC and HIGHPC.
5486 (add_partial_namespace): Take NEED_PC argument and pass it through.
5487 (add_partial_subprogram): Take NEED_PC argument. Update the addrmap
5488 if necessary.
5489
47a3467a
PA
54902009-02-07 Pedro Alves <pedro@codesourcery.com>
5491
5492 * NEWS: Mention inspecting extra signal information, $_siginfo,
5493 and the qXfer:siginfo:read and qXfer:siginfo:write packets.
5494
1ef18d08
PA
54952009-02-07 Pedro Alves <pedro@codesourcery.com>
5496
5497 * linux-nat.c (PTRACE_SETSIGINFO): Define if PTRACE_GETSIGINFO
5498 isn't defined.
5499
5b009018
PA
55002009-02-06 Pedro Alves <pedro@codesourcery.com>
5501
5502 * amd64-linux-nat.c (compat_int_t, compat_uptr_t, compat_time_t)
5503 (compat_timer_t, compat_clock_t, struct compat_timeval)
5504 (compat_sigval_t, compat_siginfo_t): New types.
5505 (cpt_si_pid, cpt_si_uid, cpt_si_timerid, cpt_si_overrun)
5506 (cpt_si_status, cpt_si_utime, cpt_si_stime, cpt_si_ptr)
5507 (cpt_si_addr, cpt_si_band, cpt_si_fd): New defines.
5508 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5509 (amd64_linux_siginfo_fixup): New.
5510 * linux-nat.c (linux_nat_siginfo_fixup): New.
5511 (siginfo_fixup): New.
5512 (linux_xfer_siginfo): Use siginfo_fixup to convert between the
5513 siginfo layout expected by ptrace and the siginfo layout of the
5514 inferior.
5515 (linux_nat_set_siginfo_fixup): New.
5516 * linux-nat.h (linux_nat_set_siginfo_fixup): Declare.
5517
4aa995e1
PA
55182009-02-06 Pedro Alves <pedro@codesourcery.com>
5519
5520 * target.h (enum target_object): Add new TARGET_OBJECT_SIGNAL_INFO.
5521 * infrun.c (siginfo_value_read, siginfo_value_write): New.
5522 (siginfo_value_funcs): New.
5523 (siginfo_make_value): New.
5524 (_initialize_infrun): Create the $_siginfo convenience variable.
5525 * gdbtypes.h (append_composite_type_field_aligned): Declare.
5526 * gdbtypes.c (append_composite_type_field): Rename to...
5527 (append_composite_type_field_aligned): ... this. Add ALIGNMENT
5528 argument. Handle it.
5529 (append_composite_type_field): Rewrite on top of
5530 append_composite_type_field_aligned.
5531 * value.h (internalvar_make_value): New typedef.
5532 (struct internalvar) <make_value>: New field.
5533 (create_internalvar_type_lazy): Declare.
5534 * value.c (create_internalvar): Clear make_value.
5535 (create_internalvar_type_lazy): New.
5536 (value_of_internalvar): If make_value is set use it.
5537 (preserve_values): Skip internal variables that don't have a
5538 value.
5539 * gdbarch.sh (get_siginfo_type): New.
5540 * gdbarch.h, gdbarch.c: Regenerate.
5541
5542 * linux-tdep.h, linux-tdep.c: New.
5543 * amd64-linux-tdep.c: Include "linux-tdep.h".
5544 (amd64_linux_init_abi): Register linux_get_siginfo_type and
5545 linux_get_siginfo_mapper.
5546 * i386-linux-tdep.c: Include "linux-tdep.h".
5547 (i386_linux_init_abi): Register linux_get_siginfo_type and
5548 linux_get_siginfo_mapper.
5549 * arm-linux-tdep.c: Include "linux-tdep.h".
5550 (i386_linux_init_abi): Register linux_get_siginfo_type and
5551 linux_get_siginfo_mapper.
5552
5553 * linux-nat.c (linux_xfer_siginfo): New.
5554 (linux_nat_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
5555 * remote.c (PACKET_qXfer_siginfo_read)
5556 (PACKET_qXfer_siginfo_write): New.
5557 (feature remote_protocol_features): Add "qXfer:siginfo:read" and
5558 "qXfer:siginfo:write" features.
5559 (remote_xfer_partial): Handle TARGET_OBJECT_SIGNAL_INFO.
5560 (_initialize_remote): Add "set/show remote read-siginfo-object"
5561 and "set/show remote write-siginfo-object" commands.
5562
5563 * Makefile.in (ALL_TARGET_OBS): Add linux-tdep.o.
5564 (HFILES_NO_SRCDIR): Add linux-tdep.h.
5565 (ALLDEPFILES): Add linux-tdep.c.
a2f63f5e 5566
4aa995e1
PA
5567 * configure.tgt (arm*-*-linux* | arm*-*-uclinux*)
5568 (i[34567]86-*-linux*, x86_64-*-linux*): Add linux-tdep.o to
5569 gdb_target_obs.
5570
5f5233d4
PA
55712009-02-06 Jim Blandy <jimb@codesourcery.com>
5572 Daniel Jacobowitz <dan@codesourcery.com>
5573 Vladimir Prus <vladimir@codesourcery.com>
5574 Pedro Alves <pedro@codesourcery.com>
5575
5576 * defs.h (enum lval_type): New value: lval_computed.
5577 * value.h (struct lval_funcs): New type.
5578 (allocate_computed_value, value_computed_funcs)
5579 (value_computed_closure): New declarations.
5580 * value.c (struct value): Add a structure to the location union
5581 for computed lvalues, containing 'funcs' and 'closure' members.
5582 (allocate_computed_value, value_computed_funcs)
5583 (value_computed_closure): New functions.
5584 (value_free): For computed lvalues, call the closure's
5585 'free_closure' function before freeing the value itself.
5586 (value_copy): If we're copying an lval_computed value, call the
5587 closure's 'copy_closure' function.
5588 (set_value_component_location): If the original value is a
5589 computed lvalue, then call the closure's 'copy_closure' function.
5590 (value_of_internalvar): If an internal variable's value is a
5591 computed lvalue, make retrieving its value produce an equivalent
5592 computed lvalue.
5593 * valops.c (value_fetch_lazy): Unlazy computed lvalues by calling
5594 their read function.
5595 (value_assign): Assign to computed lvalues by calling their write
5596 function.
5597
117de6a9
PA
55982009-02-06 Pedro Alves <pedro@codesourcery.com>
5599
5600 * linux-nat.c (linux_nat_wait): Adjust.
5601 (linux_nat_pid_to_str): Adjust. Remove call to thread_db_init.
5602 * linux-nat.h (thread_db_init): Delete declaration.
5603 * linux-thread-db.c (target_beneath): Delete.
5604 (thread_db_init): Delete.
5605 (thread_db_detach): Use find_target_beneath.
5606 (thread_db_wait): Adjust interface. Use find_target_beneath.
5607 (thread_db_mourn_inferior): Use find_target_beneath.
5608 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
5609 (thread_db_async_mask): Delete.
5610 (thread_db_pid_to_str): Adjust interface. Use
5611 find_target_beneath.
5612 (thread_db_get_thread_local_address): Adjust interface. Use
5613 find_target_beneath.
5614 (init_thread_db_ops): Delete references to delete functions.
5615 * target.c (update_current_target): Don't inherit or default
5616 to_wait. Don't inherit to_pid_to_str and
5617 to_get_thread_local_address.
5618 (target_translate_tls_address): Look for a pushed target that
5619 implements to_get_thread_local_address, and use it instead of
5620 checking for target_get_thread_local_address_p.
5621 (target_wait, target_pid_to_str): Reimplement as functions.
5622 (dummy_pid_to_str): New.
5623 (init_dummy_target): Register it.
5624 (debug_to_wait): Delete.
5625 * target.h (struct target_ops): Make to_wait, to_pid_to_str and
5626 to_get_thread_local_address accept a pointer to struct target_ops.
5627 (target_wait): Delete macro, and declare as function.
5628 (target_pid_to_str): Likewise.
5629 (target_get_thread_local_address)
5630 (target_get_thread_local_address_p): Delete.
5631 (noprocess): Add NORETURN and ATTR_NORETURN tags.
5632 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5633 (inf_ptrace_pid_to_str): New.
5634 (inf_ptrace_target): Use inf_ptrace_pid_to_str.
5635 * aix-thread.c (aix_thread_wait, aix_thread_pid_to_str): Adjust.
5636 * bsd-kvm.c (bsd_kvm_pid_to_str): Adjust.
5637 * bsd-uthread.c (bsd_uthread_wait, bsd_uthread_pid_to_str):
5638 Adjust.
5639 * corelow.c (core_pid_to_str): Adjust.
5640 * darwin-nat.c (darwin_wait, darwin_pid_to_str): Adjust.
5641 * dec-thread.c (dec_thread_wait, dec_thread_pid_to_str): Adjust.
5642 * gnu-nat.c (gnu_wait, gnu_pid_to_str): Adjust.
5643 * go32-nat.c (go32_wait, go32_pid_to_str): Adjust.
5644 * hpux-thread.c (hpux_thread_wait): Adjust.
5645 * inf-ttrace.c (inf_ttrace_wait, inf_ttrace_pid_to_str): Adjust.
5646 * monitor.c (monitor_wait, monitor_pid_to_str): Adjust.
5647 * nto-procfs.c (procfs_wait, procfs_pid_to_str): Adjust.
5648 * procfs.c (procfs_pid_to_str): Adjust.
5649 * remote-m32r-sdi.c (m32r_wait, m32r_pid_to_str): Adjust.
5650 * remote-mips.c (mips_wait): Adjust.
5651 * remote-sim.c (gdbsim_wait, gdbsim_pid_to_str): Adjust.
5652 * remote.c (remote_wait, remote_pid_to_str)
5653 (remote_get_thread_local_address): Adjust.
5654 * rs6000-nat.c (rs6000_wait): Adjust.
5655 * sol-thread.c (procfs_pid_to_str): Adjust declaration.
5656 (sol_thread_wait, solaris_pid_to_str): Adjust.
5657 * spu-linux-nat.c (spu_child_wait): Adjust.
5658 * windows-nat.c (windows_wait, windows_pid_to_str): Adjust.
5659
d8906c6f
TJB
56602009-02-06 Tom Tromey <tromey@redhat.com>
5661
5662 * Makefile.in (SUBDIR_PYTHON_OBS): Add python-cmd.o.
5663 (SUBDIR_PYTHON_SRCS): Add python-cmd.c.
5664 (python-cmd.o): New target.
5665 * cli/cli-decode.c (set_cmd_completer): Add self parameter to
5666 completer prototype.
5667 (add_cmd): Initialize destroyer member of cmd_list_element. Use
5668 make_symbol_completion_list_fn as completer.
5669 (delete_cmd): Call destroyer if one is set.
5670 * cli/cli-decode.h (cmd_list_element): Add cmd parameter to
5671 completer member. Add destroyer member.
5672 (set_cmd_completer): Add self parameter to
5673 completer prototype.
5674 * command.h (set_cmd_completer): Add cmd parameter to
5675 completer prototype.
5676 * completer.c (noop_completer, filename_completer,
5677 location_completer, expression_completer, command_completer): Adapt
5678 to new completer prototype.
5679 (complete_line_internal): Pass new parameter to completer function.
5680 * completer.h (noop_completer, filename_completer,
5681 location_completer, expression_completer, command_completer): Adapt
5682 prototypes to new completer prototype.
5683 * interps.c (interpreter_completer): Adapt to new completer
5684 prototype.
5685 * python/python-cmd.c: New file.
5686 * python/python-internal.h (gdbpy_initialize_commands): Add
5687 prototype.
5688 (gdbpy_doc_cst): Add forward declaration.
5689 * python/python.c (gdbpy_doc_cst): Declare.
5690 (_initialize_python): Call gdbpy_initialize_commands. Initialize
5691 gdbpy_doc_cst.
5692 * symtab.c (make_symbol_completion_list_fn): New function.
5693 * symtab.h (make_symbol_completion_list_fn): Add prototype.
5694
739ef7fb
PA
56952009-02-06 Pedro Alves <pedro@codesourcery.com>
5696
5697 * target.c (target_get_osdata): Check for equal or higher than
5698 process_stratum, not dummy_stratum.
5699
6d097e65
PA
57002009-02-06 Pedro Alves <pedro@codesourcery.com>
5701
5702 * remote.c (extended_remote_can_run): Delete.
5703 (init_remote_ops): Don't register it.
5704 * target.c (target_get_osdata): Don't check for target_can_run.
5705 Instead any target that has already been pushed, otherwise
739ef7fb 5706 fallback to the default run target.
6d097e65 5707
947b8855
PA
57082009-02-06 Pedro Alves <pedro@codesourcery.com>
5709
5710 * target.c (target_create_inferior, target_detach)
5711 (target_mourn_inferior, target_attach, target_close): Do target
5712 debug output.
5713 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
5714 (debug_to_mourn_inferior, debug_to_close): Delete.
5715 (setup_target_debug): Adjust.
5716
611041af
PA
57172009-02-05 Pedro Alves <pedro@codesourcery.com>
5718
5719 * target.h (target_stopped_data_address_p): Delete declaration,
5720 and don't define as macro.
5721 * target.c (target_stopped_data_address_p): Delete.
5722
b6cb8e7d
TJB
57232009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5724 Tom Tromey <tromey@redhat.com>
5725
5726 * python/python-utils.c (target_string_to_unicode): New function.
5727 * python/python-internal.h (target_string_to_unicode): New prototype.
5728 * python/python-value.c (valpy_string): New function.
5729 (value_object_methods): Add `string' entry.
5730
54ba13f7
PA
57312009-02-05 Pedro Alves <pedro@codesourcery.com>
5732
5733 * target.h (target_tid_to_str): Delete.
5734 * thread.c (print_thread_info, thread_apply_all_command)
5735 (thread_apply_command, thread_command, do_captured_thread_select):
5736 Use target_pid_to_str instead of target_tid_to_str.
5737 * linux-fork.c (delete_fork_command): Likewise.
5738
9d49bdc2
PA
57392009-02-05 Pedro Alves <pedro@codesourcery.com>
5740
5741 * frame.c (has_stack_frames): Make public.
5742 (get_prev_frame): Don't allow a NULL this_frame anymore.
5743 * frame.h (has_stack_frames): Declare.
5744 * varobj.c (find_frame_addr_in_frame_chain): Don't ever pass NULL
5745 to get_prev_frame, instead start at get_current_frame.
5746 (varobj_create): Check has_stack_frames before getting any frame;
5747 eliminate one usage of deprecated_safe_get_selected_frame.
5748
12453b93
TJB
57492009-02-05 Tom Tromey <tromey@redhat.com>
5750 Thiago Jung Bauermann <bauerman@br.ibm.com>
5751
5752 * python/python.c (GdbMethods): Move to bottom of file.
5753 (get_parameter, execute_gdb_command, gdbpy_write,
5754 gdbpy_flush): Remove forward declarations.
5755 (eval_python_from_control_command): Fix error checking of function
5756 PyRun_SimpleString. Fix error string.
5757 (python_command): Likewise.
5758 (execute_gdb_command): Added from_tty argument.
5759
ae6a3a4c
TJB
57602009-02-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5761
5762 * language.h (language_dfn): Add la_get_string member.
5763 (LA_GET_STRING): New macro.
5764 (default_get_string): New prototype.
5765 * language.c (default_get_string): New function.
5766 (unknown_language_defn, auto_language_defn, local_language_defn): Use
5767 default_get_string for la_get_string.
5768 * c-lang.c (c_get_string): New function.
5769 (c_language_defn, cplus_language_defn, asm_language_defn): Use
5770 c_get_string for la_get_string.
5771 (minimal_language_defn): Likewise
5772 * ada-lang.c (ada_language_defn): Likewise.
5773 * f-lang.c (f_language_defn): Use default_get_string for
5774 la_get_string.
5775 * jv-lang.c (java_language_defn): Likewise.
5776 * m2-lang.c (m2_language_defn): Likewise.
5777 * objc-lang.c (objc_language_defn): Likewise.
5778 * p-lang.c (p_language_defn): Likewise.
5779 * scm-lang.c (scm_language_defn): Likewise.
5780 * typeprint.c (type_to_string): New function.
5781 * value.h (type_to_string): New prototype.
5782 * valprint.c (val_print_string): Factor out code for reading string
5783 from the inferior into its own function. Put 2 spaces after period
5784 in comments.
5785 (read_string): New function.
5786 * valprint.h (read_string): New prototype.
5787
fa8a61dc
TT
57882009-01-07 Pierre Muller <muller@ics.u-strasbg.fr>
5789 Tom Tromey <tromey@redhat.com>
5790
5791 PR breakpoints/8079:
5792 * breakpoint.c (print_one_breakpoint): Use exp_string field
5793 to display expression of watchpoints.
5794 (mention): Likewise.
5795 (watch_command_1): Remove trailing whitespace from expression.
5796 * printcmd.c (struct display) <exp_string>: New field.
5797 (display_command): Set exp_string.
5798 (free_display): Free exp_string.
5799 (clear_displays): Use free_display.
5800 (do_one_display): Print exp_string.
5801 (display_info): Likewise.
5802
08c637de
TJB
58032009-02-04 Tom Tromey <tromey@redhat.com>
5804 Thiago Jung Bauermann <bauerman@br.ibm.com>
5805 Phil Muldoon <pmuldoon@redhat.com>
5806
5807 * python/python-internal.h (gdbpy_get_value_from_history): Rename
5808 prototype to gdbpy_history.
5809 (gdbpy_is_string): Declare.
5810 (python_string_to_host_string): Declare.
5811 * python/python-utils.c (gdbpy_is_string): New function.
5812 (unicode_to_encoded_string): New function.
5813 (unicode_to_target_string): Use it.
5814 (python_string_to_host_string): New function.
5815 * python/python-value.c (valpy_address): New function.
5816 (convert_value_from_python): Use gdbpy_is_string. Change to throw
5817 Python exception instead of a GDB exception on error. Properly check
5818 Python booleans.
5819 (valpy_getitem): Convert field name to host string. Handle array
5820 accesses. Adapt to new behaviour of convert_value_from_python.
5821 (valpy_new): Adapt to new behaviour of convert_value_from_python.
5822 (enum valpy_opcode) <VALPY_LSH, VALPY_RSH, VALPY_BITAND,
5823 VALPY_BITXOR, VALPY_BITOR>: New constants.
5824 (valpy_binop): Update. Adapt to new behaviour of
5825 convert_value_from_python.
5826 (valpy_invert): New function.
5827 (valpy_lsh): Likewise.
5828 (valpy_rsh): Likewise.
5829 (valpy_and): Likewise.
5830 (valpy_or): Likewise.
5831 (valpy_xor): Likewise.
5832 (valpy_richcompare): Call convert_value_from_python instead of doing
5833 conversions itself.
5834 (is_intlike, valpy_int, valpy_long, valpy_float): New functions.
5835 (gdbpy_get_value_from_history): Rename
5836 function to gdbpy_history.
5837 (gdbpy_initialize_values): Don't set tp_new.
5838 (value_object_type): Add valpy_new.
5839 (value_object_methods): Add `address' entry.
5840 (value_object_as_number): Update for new methods.
5841 * python/python.c (GdbMethods): Rename entry from
5842 `get_value_from_history' to `history'.
5843
538e13a6 58442009-02-04 Jerome Guitton <guitton@adacore.com>
b5304971
JG
5845
5846 * ada-lang.c (ada_template_to_fixed_record_type_1): Check size
5847 of type to guard against a crash.
5848
33d502b4
JG
58492009-02-04 Jerome Guitton <guitton@adacore.com>
5850
5851 * value.c (value_from_contents_and_address): Always return
5852 a lval_memory value, even if address is null.
5853
9f08ae4f
TG
58542009-02-04 Tristan Gingold <gingold@adacore.com>
5855
5856 * i386-darwin-tdep.c (i386_darwin_sigcontext_addr): New function.
5857 (amd64_darwin_sigcontext_addr): Ditto.
5858 (darwin_dwarf_signal_frame_p): Ditto.
5859 (i386_darwin_init_abi): Handle signal frames, use the const for
5860 sc_num_regs.
5861 (x86_darwin_init_abi_64): Ditto.
5862
4bd207ef
TG
58632009-02-04 Tristan Gingold <gingold@adacore.com>
5864
5865 * i386-tdep.c (i386_sigtramp_p): Make it public.
5866 * i386-tdep.h (i386_sigtramp_p): Declare.
5867
4aa99a88
TG
58682009-02-04 Tristan Gingold <gingold@adacore.com>
5869
5870 * machoread.c (macho_symfile_read): Read minsymtab also from
5871 shared libraries.
5872 (macho_symfile_read): Try to read dwarf2 frame info from main
5873 object file, but not from OSO files.
5874 (macho_symfile_offsets): Update section names for latest BFD
5875 changes.
5876 * i386-darwin-tdep.c (i386_darwin_init_abi): Call set_solib_ops.
5877 (x86_darwin_init_abi_64): Ditto.
5878 * solib-darwin.c: New file.
5879 * solib-darwin.h: New file.
5880 * configure.tgt: Add solib.o solib-darwin.o for Darwin.
5881
7a848be1
TG
58822009-02-04 Tristan Gingold <gingold@adacore.com>
5883
5884 * solist.h (struct target_so_ops): Comment fallback behavior for
5885 operation same.
5886
b32d97f3
TT
58872009-02-03 Tom Tromey <tromey@redhat.com>
5888
5889 * completer.c (add_struct_fields): Check type_name against NULL
5890 before use.
5891
692263b8
JB
58922009-02-03 Joel Brobecker <brobecker@adacore.com>
5893
5894 * MAINTAINERS: Update Elena's email address.
5895
bfa149ac
JB
58962009-02-02 Joel Brobecker <brobecker@adacore.com>
5897
5898 * breakpoint (update_watchpoint): Minor comment adjustment.
5899
1c71341a
TT
59002009-02-02 Tom Tromey <tromey@redhat.com>
5901
52e44b43 5902 PR gdb/9594:
1c71341a
TT
5903 * completer.c (count_struct_fields): Count method names.
5904 (add_struct_fields): Add matching method names.
5905
85541719
DE
59062009-02-02 Doug Evans <dje@google.com>
5907
5908 * configure.ac (gdbkt): Check both no_tcl/no_tk first, before
5909 doing any further tcl/tk configury. Don't configure gdbtk if
5910 tcl or tk check fails.
5911 * aclocal.m4: Regenerate.
5912 * configure: Regenerate.
5913
a4295225
TT
59142009-02-02 Tom Tromey <tromey@redhat.com>
5915
5916 PR exp/9059:
5917 * valops.c (find_overload_match): Follow typedefs before taking
5918 address of object argument.
5919
f00150c9
DE
59202009-02-01 Doug Evans <dje@google.com>
5921
5922 * target.h (target_waitstatus_to_string): Declare.
5923 * target.c (target_waitstatus_to_string): New function. Copied from
5924 debug_to_wait. Add missing entries for TARGET_WAITKIND_SYSCALL_ENTRY,
5925 TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_IGNORE,
5926 TARGET_WAITKIND_NO_HISTORY.
5927 (debug_to_wait): Call it.
5928 * infrun.c (wait_for_inferior): If debug_infrun, print result of
5929 target_wait.
5930 (fetch_inferior_event): Ditto.
5931
5abdf4bd
TT
59322009-01-30 Tom Tromey <tromey@redhat.com>
5933
5934 * Makefile.in (HFILES_NO_SRCDIR): Remove i386-cygwin-tdep.h.
5935
592375cd
VP
59362009-01-30 Vladimir Prus <vladimir@codesourcery.com>
5937
5938 PR 8145.
5939 * thread.c (do_captured_list_thread_ids): Report the current
5940 thread id.
5941
41447f92
VP
59422009-01-30 Vladimir Prus <vladimir@codesourcery.com>
5943
5944 * breakpoint.c (create_breakpoint, create_breakpoints)
5945 (break_command_really, set_breakpoint): New parameter enabled.
5946 (create_breakpoint, break_command_really): Make breakpoint
5947 disabled if so requested.
5948 * breakpoint.h (set_breakpoint): New parameter enabled.
5949 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle the -d option.
5950
35669430
DE
59512009-01-28 Doug Evans <dje@google.com>
5952
5953 * amd64-tdep.h (amd64_displaced_step_copy_insn): Declare.
5954 (amd64_displaced_step_fixup): Declare.
5955 * amd64-tdep.c: #include opcode/i386.h, dis-asm.h.
5956 (amd64_arch_regmap): Move out of amd64_analyze_stack_align
5957 and make static global.
5958 (amd64_arch_regmap_len): New static global.
5959 (amd64_arch_reg_to_regnum): New function.
5960 (struct amd64_insn): New struct.
5961 (struct displaced_step_closure): New struct.
5962 (onebyte_has_modrm,twobyte_has_modrm): New static globals.
5963 (rex_prefix_p,skip_prefixes)
5964 (amd64_insn_length_fprintf,amd64_insn_length_init_dis)
5965 (amd64_insn_length,amd64_get_unused_input_int_reg)
5966 (amd64_get_insn_details,fixup_riprel,fixup_displaced_copy)
5967 (amd64_displaced_step_copy_insn)
5968 (amd64_absolute_jmp_p,amd64_absolute_call_p,amd64_ret_p)
5969 (amd64_call_p,amd64_breakpoint_p,amd64_syscall_p)
5970 (amd64_displaced_step_fixup): New functions.
5971 * amd64-linux-tdep.c: #include arch-utils.h.
5972 (amd64_linux_init_abi): Install displaced stepping support.
5973
4eb7c016
JG
59742009-01-28 Daniel Jacobowitz <dan@codesourcery.com>
5975 Jerome Guitton <guitton@adacore.com>
5976
5977 * configure, config.in: Regenerated.
5978 * configure.ac: Add --with-system-gdbinit.
5979 * main.c (get_init_files): New.
5980 (captured_main): Use get_init_files. Load system gdbinit before
5981 $HOME/.gdbinit.
5982 (print_gdb_help): Print location of init files.
5983
7df3ce47
PA
59842009-01-28 Pedro Alves <pedro@codesourcery.com>
5985
5986 * corefile.c (generic_search): Delete disabled code.
5987 * gdbcore.h (generic_search): Delete declaration.
5988
77435e4c
PA
59892009-01-26 Pedro Alves <pedro@codesourcery.com>
5990
5991 * linux-nat.c (linux_child_follow_fork): Copy attach_flag from the
5992 parent to the child.
5993 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
5994 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise. Use
5995 remove_breakpoints to remove breakpoints from the parent.
5996
1e275f79
PA
59972009-01-26 Pedro Alves <pedro@codesourcery.com>
5998
7488432f 5999 PR backtrace/9458, PR backtrace/8864:
1e275f79
PA
6000 * frame.c (create_new_frame): Update the frame's cached PC before
6001 finding its unwinder. Use frame_id_build to build the new frame's
6002 id.
6003 * stack.c (parse_frame_specification_1): Correct setting ``addrs''
6004 array values from the ``args'' array values.
6005
1deafd4e
PA
60062009-01-26 Pedro Alves <pedro@codesourcery.com>
6007
6008 * gdbtypes.c (alloc_type, alloc_type_instance, create_range_type)
6009 (create_array_type, create_set_type, init_flags_type)
6010 (copy_type_recursive): Replace pairs of calls to XALLOC and memset
6011 with a call to XZALLOC or XCALLOC, and pairs of calls to
6012 obstack_alloc and memset with a call to OBSTACK_ZALLOC.
6013
3c16cced
PA
60142009-01-26 Pedro Alves <pedro@codesourcery.com>
6015
6016 Add "maint set|show internal-error|internal-warning quit|corefile
6017 ask|yes|no" commands.
6018
6019 PR gdb/7580:
6020 * utils.c (internal_problem_ask, internal_problem_yes)
6021 (internal_problem_no, internal_problem_modes): New.
6022 (struct internal_problem): Remove FIXME. Make should_quit and
6023 should_dump_core types to char *.
6024 (internal_vproblem, internal_error_problem)
6025 (internal_warning_problem): Adjust.
6026 (set_internal_problem_cmd, show_internal_problem_cmd): New dummy
6027 functions.
6028 (add_internal_problem_command): New.
6029 (_initialize_utils): New.
6030
616d7dd2
PA
60312009-01-25 Pedro Alves <pedro@codesourcery.com>
6032
6033 * infcmd.c (program_info): Use paddress instead of casting stop_pc
6034 to unsigned long.
6035
0516318b
PA
60362009-01-24 Pedro Alves <pedro@codesourcery.com>
6037
6038 * infrun.c (normal_stop): Don't call
6039 deprecated_update_frame_pc_hack.
6040 * frame.c (deprecated_update_frame_pc_hack)
6041 (deprecated_update_frame_base_hack): Delete, and ...
6042 (create_new_frame): ... inline here.
6043 * frame.h (deprecated_update_frame_pc_hack)
6044 (deprecated_update_frame_base_hack): Delete declarations.
6045
1e8fb976
PA
60462009-01-23 Pedro Alves <pedro@codesourcery.com>
6047
6048 * cli/cli-decode.c (add_setshow_zuinteger_cmd): New.
6049 * cli/cli-setshow.c (do_setshow_command): Handle it.
6050 * command.h (enum var_types): Add var_zuinteger.
6051 (add_setshow_zuinteger_cmd): Declare.
6052
6053 * valprint.c (_initialize_valprint): Change the set input-radix
6054 and set output-radix commands to zuinteger type.
6055
dd7e2d2b
PA
60562009-01-23 Pedro Alves <pedro@codesourcery.com>
6057
6058 PR gdb/9664:
6059 * infrun.c (normal_stop): Tag threads as stopped, and run the
6060 hook-stop before printing the stack frame.
6061
392452f6
PA
60622009-01-22 Pedro Alves <pedro@codesourcery.com>
6063
6064 PR c++/9631:
6065 * gnu-v3-abi.c (gnuv3_baseclass_offset): Call check_typedef on
6066 vbasetype.
6067
f6a96b83
KH
60682009-01-20 Kazu Hirata <kazu@codesourcery.com>
6069
6070 * gdb/procfs.c (info_mappings_callback): Cast map->pr_size to
6071 unsigned long.
6072
5d277928 60732009-01-20 Daniel Jacobowitz <dan@codesourcery.com>
a12cc160
DJ
6074
6075 PR gdb/9346
6076 * infcmd.c (signal_command): Do not specify a resume PC.
6077
b89667eb
DE
60782009-01-19 Doug Evans <dje@google.com>
6079
6080 * dummy-frame.c (dummy_frame): Replace regcache member with
6081 caller_state.
6082 (dummy_frame_push): Replace caller_regcache arg with caller_state.
6083 All callers updated.
6084 (remove_dummy_frame,pop_dummy_frame,lookup_dummy_frame): New fns.
6085 (dummy_frame_pop): Rewrite. Verify requested frame is in the
6086 dummy frame stack. Restore program state.
6087 (cleanup_dummy_frames): Rewrite.
6088 (dummy_frame_sniffer): Update. Make static.
6089 * dummy-frame.h (regcache,frame_info): Delete forward decls.
6090 (inferior_thread_state): New forward decl.
6091 (dummy_frame_push): Update prototype.
6092 * frame.c (frame_pop): dummy_frame_pop now does all the work for
6093 DUMMY_FRAMEs.
6094 * infcall.c (breakpoint_auto_delete_contents): Delete.
6095 (get_function_name,run_inferior_call): New fns.
6096 (call_function_by_hand): Simplify by moving some code to
6097 get_function_name, run_inferior_call. Inferior function call wrapped
6098 in TRY_CATCH so there's less need for cleanups and all exits from
6099 proceed are handled similarily. Detect program exit.
6100 Detect program stopping in a different thread.
6101 Make error messages more consistent.
6102 * inferior.h (inferior_thread_state): Declare (opaque type).
6103 (save_inferior_thread_state,restore_inferior_thread_state,
6104 make_cleanup_restore_inferior_thread_state,
6105 discard_inferior_thread_state, get_inferior_thread_state_regcache):
6106 Declare.
6107 (save_inferior_status): Update prototype.
6108 * infrun.c: (normal_stop): When stopped for the completion of an
6109 inferior function call, verify the expected stack frame kind.
6110 (inferior_thread_state): New struct.
6111 (save_inferior_thread_state,restore_inferior_thread_state,
6112 do_restore_inferior_thread_state_cleanup,
6113 make_cleanup_restore_inferior_thread_state,
6114 discard_inferior_thread_state,
6115 get_inferior_thread_state_regcache): New functions.
6116 (inferior_status): Move stop_signal, stop_pc, registers to
6117 inferior_thread_state. Remove restore_stack_info.
6118 (save_inferior_status): Remove arg restore_stack_info.
6119 All callers updated. Remove saving of state now saved by
6120 save_inferior_thread_state.
6121 (restore_inferior_status): Remove restoration of state now done by
6122 restore_inferior_thread_state.
6123 (discard_inferior_status): Remove freeing of registers, now done by
6124 discard_inferior_thread_state.
6125
aefc7064
PA
61262009-01-18 Pedro Alves <pedro@codesourcery.com>
6127
6128 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Scroll one line
6129 at a time, times NUM_TO_SCROLL.
6130 * tui/tui-winsource.c (tui_horizontal_source_scroll): Don't try to
6131 fetch the selected frame if there is no stack.
6132
29f49a6a
PA
61332009-01-18 Pedro Alves <pedro@codesourcery.com>
6134
6135 PR gdb/9747:
6136 * gdbthread.h (finish_thread_state, finish_thread_state_cleanup):
6137 Declare.
6138 * thread.c (finish_thread_state, finish_thread_state_cleanup): New.
6139 * infrun.c (wait_for_inferior, fetch_inferior_event): If an error
6140 is thrown while handling an event, finish the thread state.
6141 (normal_stop): Use finish_thread_state cleanup.
6142 * infcmd.c (run_command_1): If an error is thrown while starting
6143 the inferior, finish the thread state.
6144
e7243d73
PA
61452009-01-18 Pedro Alves <pedro@codesourcery.com>
6146
6147 * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
6148 skip breakpoints without a location (pending breakpoints).
6149
e74994b5
PA
61502009-01-18 Pedro Alves <pedro@codesourcery.com>
6151
6152 PR build/9186:
6153 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.
6154
8405c36e
NR
61552009-01-18 Nick Roberts <nickrob@snap.net.nz>
6156
6157 * thread.c (thread_command): Move call to annotate_thread_changed
6158 to...
6159 (do_captured_thread_select): ... here, to avoid printing an
6160 annotation if the thread change generates an exception.
6161
b8bfd3ed
JB
61622009-01-16 Joel Brobecker <brobecker@adacore.com>
6163
6164 * NEWS: Document x86_64/MinGW as a new native configuration.
6165
2dde91e9
JB
61662009-01-16 Joel Brobecker <brobecker@adacore.com>
6167
6168 * NEWS: Move the documentation of "info os processes" to
6169 the appropriate section (documenting the new commands).
6170
54363045
DE
61712009-01-15 Doug Evans <dje@google.com>
6172
6173 * target.h (target_signal_to_string): Make return type const char *.
6174 (target_signal_to_name): Ditto.
6175 (target_signal_from_name): Make arg const char *.
54363045 6176 * infrun.c (sig_print_info): Update.
54363045
DE
6177 * signals/signals.c (signals): Make array and struct members const.
6178 (target_signal_to_string): Make return type const char *.
6179 (target_signal_to_name): Ditto.
6180 (target_signal_from_name): Make arg const char *.
6181
572d275c
UW
61822009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
6183 Tristan Gingold <gingold@adacore.com>
6184
6185 * solist.h (struct target_so_ops): New member bfd_open.
6186 (solib_find): Add prototype.
6187 (solib_bfd_fopen): Add prototype.
6188 * solib.c (solib_find, solib_bfd_fopen): New functions, extracted
6189 from solib_bfd_open.
6190 (solib_bfd_open): Use ops->bfd_open override if present. Call
6191 solib_find and solib_bfd_open otherwise.
6192
6193 * objfiles.h (OBJF_KEEPBFD): New define.
6194 * objfiles.c (free_objfile): Do not close BFD if OBJF_KEEPBFD
6195 objfile flag is set.
6196 * solib.c (symbol_add_stub): Do not allocate second BFD for
6197 shared library; use OBJF_KEEPBFD flag on solib objfile.
6198
0701b271
UW
61992009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
6200
6201 * frame.c (get_frame_arch): Abort if called with NULL this_frame.
6202
61212c0f
UW
62032009-01-15 Ulrich Weigand <uweigand@de.ibm.com>
6204
6205 * value.h (address_of_variable): Add prototype.
6206 (locate_var_value): Remove prototype.
6207
6208 * findvar.c (read_var_value): Do not attempt to default frame
6209 to selected frame.
6210 (locate_var_value): Remove function.
6211 * valops.c (value_of_variable): Retrieve selected frame for
6212 symbols that require a frame when called with NULL block.
6213 * valops.c (address_of_variable): New function.
6214
6215 * eval.c (evaluate_subexp_for_address): Call address_of_variable
6216 instead of calling locate_var_value.
6217 (evaluate_subexp_with_coercion): Likewise.
6218
adb483fe
DJ
62192009-01-14 Daniel Jacobowitz <dan@codesourcery.com>
6220
6221 * NEWS: Document "define" for prefixed commands.
6222 * cli/cli-cmds.c (show_user): Update calls to show_user_1. Call
6223 show_user_1 for prefix commands.
6224 * cli/cli-decode.c (help_cmd_list): Recurse for "help user-defined".
6225 * cli/cli-script.c (validate_comname): Rewrite to handle prefix
6226 commands. Return the containing command list.
6227 (define_command, document_command): Update to handle prefix commands.
6228 (show_user_1): Add prefix and name arguments. Handle prefix
6229 commands.
6230 * cli/cli-script.h (show_user_1): Update prototype.
6231
a32d7317
KT
62322009-01-14 Kai Tietz <kai.tietz@onevision.com>
6233
92a610f3 6234 * ser-mingw.c (console_select_thread): Add return to make
a32d7317
KT
6235 compiler happy.
6236 (pipe_select_thread): Likewise.
6237 (file_select_thread): Likewise.
6238
041d0fd7
PA
62392009-01-14 Pedro Alves <pedro@codesourcery.com>
6240
6241 * mi/mi-main.c (mi_cmd_execute): Clean up parenthesis mess from
6242 previous change.
6243
dc1981d7
PA
62442009-01-14 Pedro Alves <pedro@codesourcery.com>
6245
6246 * remote.c (extended_remote_mourn_1): Invalidate our notion of
6247 current general thread.
6248
244bf9ae
PA
62492009-01-14 Pedro Alves <pedro@codesourcery.com>
6250
6251 * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
6252 without a live selected thread.
6253
e4d013fc
JB
62542009-01-14 Joel Brobecker <brobecker@adacore.com>
6255
6256 Update the copyright notice of some of the files I missed
6257 in the previous copyright update.
6258
a588db63
JB
62592009-01-14 Joel Brobecker <brobecker@adacore.com>
6260
6261 * windows-nat.c (handle_unload_dll): Use %p to print the DLL
6262 base address instead of casting it to DWORD.
6263
77a732d9
UW
62642009-01-13 Ulrich Weigand <uweigand@de.ibm.com>
6265
6266 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Do not call get_frame_arch
6267 for NULL frame pointers.
6268
773698b5
JB
62692009-01-13 Mark Kettenis <kettenis@gnu.org>
6270
6271 * utils.c (host_address_to_string): Reimplement in a way that
6272 avoids the cast of the address to long.
6273
9918cab9
JB
62742009-01-13 Joel Brobecker <brobecker@adacore.com>
6275
6276 * mdebugread.c (parse_symbol): Save the symbol private data
6277 using SYMBOL_VALUE_BYTES instead of SYMBOL_VALUE.
6278 (psymtab_to_symtab_1): Likewise.
6279 (parse_procedure): Declare variable "e" only in the scope
6280 where it is used. Extract the symbol private data using
6281 SYMBOL_VALUE_BYTES.
6282
74bcbdf3
PA
62832009-01-13 Jim Blandy <jimb@codesourcery.com>
6284
6285 Abstract out common code for copying value locations.
6286
6287 * value.h (set_value_component_location): New declaration.
6288 * value.c (set_value_component_location): New function.
6289 (value_primitive_field): Use it.
6290 * valarith.c (value_subscript, value_subscripted_rvalue): Same.
6291 * valops.c (search_struct_field, value_slice): Same.
6292 * ada-lang.c (coerce_unspec_val_to_type)
6293 (ada_value_primitive_packed_val): Same.
6294
d7dc3873
JB
62952009-01-13 Joel Brobecker <brobecker@adacore.com>
6296
6297 * MAINTAINERS (GLOBAL MAINTAINERS): Add Tom Tromey.
6298
dc05df57
CF
62992009-01-12 Christopher Faylor <me+cygwin@cgf.cx>
6300
6301 * amd64-windows-nat.c Rename gdb-specific win32_* to windows_*
6302 throughout.
6303 * i386-cygwin-tdep.c: Ditto.
6304 * i386-windows-nat.c: Ditto.
6305 * windows-nat.h: Ditto.
6306 * windows-tdep.c: Ditto.
6307 * windows-tdep.h: Ditto.
6308 * windows-nat.c: Ditto.
6309 (cygwin_load_start): Redefine as CORE_ADDR.
6310 (cygwin_load_end): Ditto.
b8511eeb 6311 (windows_make_so): Coerce result of address arithmetic to uintptr_t
dc05df57
CF
6312 before coercing to CORE_ADDR to avoid a compiler warning.
6313 (handle_exception): Define addr as CORE_ADDR and coerce
6314 ExceptionAddress to uintptr_t before assigining to avoid a compiler
6315 warning.
6316 * config/djgpp/fnchange.lst: Add mappings for recently renamed windows
6317 files.
6318
31b060a2
CF
63192009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6320
6321 Fix linking with --enable-targets=all:
6322 * Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
6323 (HFILES_NO_SRCDIR): Add windows-tdep.h.
6324 (ALLDEPFILES): Add windows-tdep.c.
6325
f3b6bd60 63262009-01-11 Chris Faylor <me.gdb@cgf.cx>
31b060a2
CF
6327
6328 * win32-nat.h: Delete.
6329 * windows-nat.h: Rename from win32-nat.h.
6330 * win32-nat.c: Delete.
6331 * windows-nat.c: Rename from win32-nat.c.
6332 * win32-termcap.c: Delete.
6333 * windows-termcap.c: Rename from win32-termcap.c.
6334 * amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
6335 * configure.ac: Handle rename from win32-termcap.c ->
6336 windows-termcap.c.
6337 * configure: Regenerate.
6338 * gdb_curses.h: Change comment to reflect rename from win32-termcap.c
6339 -> windows-termcap.c.
6340 * i386-cygwin-tdep.c: Handle rename from win32-tdep.h ->
6341 windows-tdep.h.
6342 * i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
6343 * windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
6344 windows-tdep.h.
6345 (win32_make_so): Handle cygwin compiler warning due to change of
6346 load_addr from DWORD to LPVOID.
6347 (handle_load_dll): Use %p in format string to properly print address
6348 and avoid a compiler warning.
6349 (DEBUG_EXCEPTION_SIMPLE): Ditto.
6350 (handle_exception): Ditto.
6351 * windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
6352 * config/i386/cygwin.mh: Handle rename from win32-nat.o ->
6353 windows-nat.o.
6354 * config/i386/mingw.mh: Ditto.
6355 * config/i386/mingw64.mh: Ditto.
6356
0311118f
JK
63572009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6358
6359 * f-typeprint.c (f_type_print_varspec_suffix): Convert the autovariable
6360 arrayprint_recurse_level to a parameter. Update all the callers. New
6361 comment at autovariables.
6362
5f61c20e
JK
63632009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6364
6365 * gdbtypes.c (make_qualified_type, replace_type): Reformat to the GNU
6366 coding style.
6367
63682009-01-11 Joel Brobecker <brobecker@adacore.com>
53b71562
JB
6369
6370 * target.c (target_xfer_partial): Use host_address_to_string to
6371 print the address of readbuf and writebuf. Cast the address of
6372 elements inside the myaddr buffer into intptr_t.
6373 (deprecated_debug_xfer_memory): Use paddress to print memaddr.
6374 Cast the address of elements inside the myaddr buffer into
6375 intptr_t.
6376
5f61c20e 63772009-01-11 Joel Brobecker <brobecker@adacore.com>
d0761299
JB
6378
6379 * amd64-windows-nat.c, amd64-windows-tdep.c: New files.
6380 * config/i386/mingw64.mh, config/i386/nm-cygwin64.h: New files.
6381 * configure.host, configure.tgt: Add handling for x86_64/windows.
6382 * config/djgpp/fnchange.lst: Add entries for amd64-windows-nat.c
6383 and amd64-windows-tdep.c.
6384
5f61c20e 63852009-01-11 Joel Brobecker <brobecker@adacore.com>
bfb87e33
JB
6386
6387 * win32-tdep.h, win32-tdep.c: New files.
6388 * i386-cygwin-tdep.h: Delete.
6389 * i386-cygwin-tdep.c: Include win32-tdep.h instead of
6390 i386-cygwin-tdep.h.
6391 (win32_xfer_shared_library): Delete. Moved to win32-tdep.c.
6392 * win32-nat.c: Likewise.
6393 * configure.tgt: Add win32-tdep.o to the list of target object
6394 files for i386-cygwin and i386-mingw targets.
6395
5f61c20e 63962009-01-11 Joel Brobecker <brobecker@adacore.com>
7e63b4e4
JB
6397
6398 * win32-nat.h: New file.
6399 * win32-nat.c (mappings): Initialize to NULL.
6400 (win32_set_context_register_offsets): New function.
6401 * i386-windows-nat.c: New file.
6402 (mappings): Moved here from win32-nat.c.
6403 (_initialize_i386_windows_nat): New function.
6404 * config/i386/mingw.mh (NATDEPFILES): Add i386-windows-nat.o.
6405 * config/i386/cygwin.mh (NATDEPFILES): Likewise.
6406
25fc6591
AS
64072009-01-09 Andreas Schwab <schwab@suse.de>
6408
6409 * Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
6410
87f70781
PA
64112009-01-09 Daniel Jacobowitz <dan@codesourcery.com>
6412
6413 * gdbtypes.c (append_composite_type_field): Correct the location of
6414 appended fields.
6415
58d4abe1
PA
64162009-01-09 Pedro Alves <pedro@codesourcery.com>
6417
6418 * defs.h (deprecated_error_hook): Delete declaration.
6419 * interps.c (clear_interpreter_hooks): Adjust.
6420 * remote-sim.c (gdb_os_error): Don't try to call
6421 deprecated_error_hook. No need to call exit anymore.
6422 * top.c (deprecated_error_hook): Delete.
6423
e3cb3832
JB
64242009-01-09 Joel Brobecker <brobecker@adacore.com>
6425
6426 * arch-utils.c (gdbarch_update_p): Use host_address_to_string
6427 to print the address of the gdbarch pointer.
6428
30737ed9
JB
64292009-01-09 Joel Brobecker <brobecker@adacore.com>
6430
6431 * gdbarch.sh: Fix all the compilation errors on amd64-windows
6432 due to casting a pointer to a long when printing a function
6433 address. Instead, use host_address_to_string to convert our
6434 address to a string.
6435 * gdbarch.c: Regenerate.
6436
ec4dfccf
JB
64372009-01-09 Joel Brobecker <brobecker@adacore.com>
6438
6439 * event-top.c (async_disconnect, async_stop_sig): use "raise"
6440 instead of "kill" to raise a signal.
6441
d3653bf6
JB
64422009-01-09 Joel Brobecker <brobecker@adacore.com>
6443
6444 * win32-nat.c (get_module_name): Change the type of parameter
6445 "base_address" to LPVOID. Remove unnecessary cast.
6446 (struct lm_info): Change type of load_addr to LPVOID.
6447 (win32_make_so): Change the type of parameter "load_addr"
6448 to LPVOID. Remove some unnecessary casts.
6449 (handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
6450 (win32_xfer_shared_libraries): Add missing cast.
6451
308a8808
JB
64522009-01-09 Joel Brobecker <brobecker@adacore.com>
6453
6454 * win32-nat.c (has_detach_ability, set_process_privilege):
6455 Cast the result of GetProcAddress to (void *) to avoid
6456 a compilation warning.
6457
5851ab76
JB
64582009-01-09 Joel Brobecker <brobecker@adacore.com>
6459
6460 * win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
6461 already defined.
6462
5732a500
JB
64632009-01-09 Joel Brobecker <brobecker@adacore.com>
6464
6465 * win32-nat.c (get_image_name, win32_xfer_memory): Fix type
6466 definition of local variable "done".
6467 (info_w32_command, handle_exception): Remove unnecessary cast.
6468
def4de3a
JB
64692009-01-09 Joel Brobecker <brobecker@adacore.com>
6470
6471 * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
6472 DebugSetProcessKillOnExit. Update all uses in this file.
6473 (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
6474 Update all uses in this file.
6475
64762009-01-09 Joel Brobecker <brobecker@adacore.com>
0795be10
JB
6477
6478 * win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
6479 and use it when pushing the target.
6480 (win32_attach, win32_create_inferior): Update call to
6481 do_initial_win32_stuff.
6482 (win32_detach, win32_mourn_inferior): Use our ops parameter
6483 instead of the global win32_ops to unpush the target.
6484
1be7fe8d
JB
64852009-01-09 Joel Brobecker <brobecker@adacore.com>
6486
6487 * ser-mingw.c (ser_windows_open): Use proper type when casting
6488 in call to _open_osfhandle.
6489
1dac1b47
KT
64902009-01-09 Kai Tietz <kai.tietz@onevision.com>
6491
6492 * coff-pe-read.c (read_pe_exported_syms): Fix typo.
6493
ecf180db
JB
64942009-01-09 Joel Brobecker <brobecker@adacore.com>
6495
6496 * CONTRIBUTE: Minor reformatting.
6497
8234eceb
KT
64982009-01-08 Kai Tietz <kai.tietz@onevision.com>
6499
6500 * MAINTAINERS: Add myself to Write After Approval.
a68ddad5
KT
6501 * coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
6502 export directory.
8234eceb 6503
72ee8797
NF
65042009-01-08 Nathan Froyd <froydnj@codesourcery.com>
6505
6506 * remote-sim.c (gdb_os_error): Mark as a noreturn function.
6507 Call exit to make it obvious to GCC.
6508
f7545552
TT
65092009-01-08 Tom Tromey <tromey@redhat.com>
6510
6511 PR breakpoints/9350:
6512 * varobj.c (varobj_invalidate): Unconditionally free
6513 all_rootvarobj.
6514 * symfile.c (syms_from_objfile): Free local_addr when returning
6515 normally.
6516 * exec.c (exec_file_attach): Do cleanups before returning.
6517 (exec_file_command): Likewise.
6518 * corefile.c (reopen_exec_file): Do cleanups before returning.
6519 * breakpoint.c (insert_breakpoint_locations): Do cleanups before
a2f63f5e 6520 returning.
f7545552
TT
6521 (do_vec_free): New function.
6522 (update_global_location_list): Make a cleanup for old_locations.
6523 Do cleanups before returning. Remove unused variable 'e'.
6524 (find_condition_and_thread): Free result of parsing the
6525 expression.
6526 (print_it_typical): Do cleanups before returning.
6527 (breakpoint_re_set_one): Always free sals.sals.
6528
dde02812
ES
65292009-01-08 Joel Brobecker <brobecker@adacore.com>
6530 Emi Suzuki <emi-suzuki@tjsys.co.jp>
a2f63f5e 6531
dde02812
ES
6532 * breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
6533 watchpoints.
6534
69bcc6bc
DE
65352009-01-07 Doug Evans <dje@google.com>
6536
6537 * top.c (gdb_prompt_string): Delete, unused.
6538
fa3a767f
PA
65392009-01-07 Pedro Alves <pedro@codesourcery.com>
6540
6541 Delete ONE_PROCESS_WRITETEXT leftovers.
6542
6543 * breakpoint.c (insert_bp_location): Delete process_warning
6544 argument. Adjust.
6545 (insert_breakpoint_locations): Adjust.
6546 (reattach_breakpoints): Adjust.
6547 * infrun.c (normal_stop): Drop "It might be running in another
6548 process" notice.
6549
7b93f36d
SS
65502009-01-07 Stan Shebs <stan@codesourcery.com>
6551
6552 * config/pa/linux.mh (XDEPFILES): Remove.
6553
0380c18b
DE
65542009-01-07 Doug Evans <dje@google.com>
6555
6556 * cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
6557
60023297
JK
65582009-01-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6559
6560 * f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
6561 spacing, a regression from 2008-04-22.
6562
ea8992ce
JB
65632009-01-07 Joel Brobecker <brobecker@adacore.com>
6564
6565 * utils.c (gdb_print_host_address): Adjust implementation to
6566 reuse host_address_to_string. Move comment explaining the conversion
6567 from host address to string from here...
6568 (host_address_to_string): ... to there.
6569
301d2c47
ES
65702009-01-07 Emi Suzuki <emi-suzuki@tjsys.co.jp>
6571
6572 * MAINTAINERS: Add myself for write after approval privileges.
6573
170ce852
TT
65742009-01-06 Tom Tromey <tromey@redhat.com>
6575
6576 * value.c (set_internalvar): Use value_free, not xfree.
6577
fdb7262a
JB
65782009-01-06 Jim Blandy <jimb@red-bean.com>
6579
bf1d7d9c
JB
6580 Check return values of functions declared with warn_unused_result
6581 attribute in GLIBC 2.8.
6582 * cli/cli-cmds.c (pwd_command): Check return value from getcwd.
6583 * inflow.c (check_syscall): New function.
6584 (new_tty): Use check_syscall to check return values from open and dup.
6585 * linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
6586 * main.c (captured_main): Call cwd after setting up gdb_stderr;
6587 check for errors from getcwd.
6588 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
6589 * ui-file.c (stdio_file_write): Ignore return value from fwrite.
6590 (stdio_file_fputs): Same.
6591 * utils.c (internal_vproblem): abort if last-ditch error message
6592 write fails.
6593
fdb7262a
JB
6594 * top.c (gdb_init): Don't set the current directory here; that's
6595 already been done in captured_main.
6596
84603566
SL
65972009-01-06 Sandra Loosemore <sandra@codesourcery.com>
6598
6599 * ser-tcp.c: Adjust includes.
6600 (tcp_set_cmdlist, tcp_show_cmdlist): Declare.
6601 (tcp_auto_retry, tcp_retry_limit): Declare.
6602 (TIMEOUT): Remove, in favor of tcp_retry_limit.
6603 (POLL_INTERVAL): Increase to 5, in favor of backoff logic.
6604 (wait_for_connect): New function.
6605 (net_open): Use it. Add auto-retry logic.
6606 (set_tcp_cmd, show_tcp_cmd): New functions.
6607 (_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
6608 and "set/show tcp connect-timeout" commands.
6609 * NEWS: Document new commands.
6610
5171e6b3
TT
66112009-01-05 Tom Tromey <tromey@redhat.com>
6612
6613 * python/python-internal.h (Py_ssize_t): Define as int.
6614
a367a1f2
JB
66152009-01-05 Jim Blandy <jimb@red-bean.com>
6616
6617 * MAINTAINERS: Fix my e-mail address as steering committee member.
6618
0fb0cc75
JB
66192009-01-03 Joel Brobecker <brobecker@adacore.com>
6620
6621 Updated copyright notices for most files.
6622
c9fc347d
JB
66232009-01-03 Joel Brobecker <brobecker@adacore.com>
6624
6625 * top.c (print_gdb_version): Update copyright year.
6626
a85d99b4
JB
66272009-01-03 Joel Brobecker <brobecker@adacore.com>
6628
6629 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2008.
6630
4d78a120
JB
66312009-01-01 Pedro Alves <pedro@codesourcery.com>
6632
6633 PR breakpoints/9681:
6634 * exceptions.h (enum errors): New error type, MEMORY_ERROR.
6635 * corefile.c (memory_error): Rewrite to throw a MEMORY_ERROR.
6636 * breakpoint.c (fetch_watchpoint_value): Ignore MEMORY_ERRORs, but
6637 retrow all other exceptions.
6638
67de2a4c 6639For older changes see ChangeLog-2008.
c906108c
SS
6640\f
6641Local Variables:
6642mode: change-log
6643left-margin: 8
6644fill-column: 74
6645version-control: never
57da7796 6646coding: utf-8
c906108c 6647End:
This page took 1.407848 seconds and 4 git commands to generate.