gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-09-22 Pedro Alves <pedro@codesourcery.com>
2
3 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
4 all-stop mode.
5
6 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
7
8 * MAINTAINERS: Update my email address.
9
10 2008-09-19 Andrew Stubbs <ams@codesourcery.com>
11
12 * frame.c (get_frame_register_bytes): Detect bad debug info.
13
14 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
15
16 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
17 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
18 initialization ...
19 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
20 ...
21 (handle_inferior_event): ... here after the add_thread call together
22 with the local adjust_pc_after_break and reinit_frame_cache calls.
23
24 2008-09-16 David Daney <ddaney@avtrex.com>
25
26 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
27 all hardware bpstats.
28
29 2008-09-16 Joel Brobecker <brobecker@adacore.com>
30
31 * gstdint.h: Delete.
32
33 2008-09-15 Mark Kettenis <kettenis@gnu.org>
34
35 * infcall.c (generic_push_dummy_code): Remove.
36 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
37
38 2008-09-15 Doug Evans <dje@google.com>
39
40 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
41 (struct attribute): Ditto.
42
43 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
44
45 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
46 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
47
48 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
49 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
50 Correct arguments and improve comments.
51 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
52 disabled code.
53 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
54 point DBX register, change error to warning, and improve comments.
55
56 2008-09-14 Doug Evans <dje@google.com>
57
58 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
59
60 2008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
61
62 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
63
64 2008-09-13 Joel Brobecker <brobecker@adacore.com>
65
66 * defs.h (GCC_GENERATED_STDINT_H): Define.
67
68 2008-09-13 Tom Tromey <tromey@redhat.com>
69
70 * varobj.c (varobj_set_display_format): Use xfree.
71 * tracepoint.c (stringify_collection_list): Use xfree.
72 * remote-fileio.c (remote_fileio_reset): Use xfree.
73 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
74 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
75 asprintf.
76 * cp-support.c (mangled_name_to_comp): Use xfree.
77
78 2008-09-13 Joel Brobecker <brobecker@adacore.com>
79
80 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
81 the associated complete symbol is also in the list.
82 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
83 extracted out from ada_lookup_symbol_list.
84 (ada_lookup_symbol_list): Use them. Remove the search through
85 the minimal symbols.
86
87 2008-09-13 Joel Brobecker <brobecker@adacore.com>
88
89 * dwarf2read.c (add_partial_subprogram): New procedure.
90 (scan_partial_symbols): Use it.
91 (load_partial_dies): Read in children of subprogram and lexical
92 blocks for Ada compilation units.
93
94 2008-09-13 Tom Tromey <tromey@redhat.com>
95
96 * symfile.c (build_id_verify): Free 'found'.
97 (find_separate_debug_file): Use xfree, not free.
98
99 2008-09-12 Doug Evans <dje@google.com>
100
101 * corefile.c (write_memory): Remove unnecessary copying.
102
103 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
104 order of _initialize_* fns.
105
106 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
107 first_die_offset. All uses updated.
108 Delete unused members cu_head_ptr, next.
109 Move members base_known, base_address to ...
110 (dwarf2_cu) ... here. All uses updated.
111
112 2008-09-12 Pedro Alves <pedro@codesourcery.com>
113
114 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
115 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
116
117 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
118
119 * fork-child.c (startup_inferior): Use target_wait and target_resume
120 directly instead of calling wait_for_inferior / resume.
121
122 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
123 or init_wait_for_inferior.
124 (run_command_1): Call init_wait_for_inferior.
125
126 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
127
128 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
129 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
130 builtin_type_int, builtin_type_long, builtin_type_signed_char,
131 builtin_type_unsigned_char, builtin_type_unsigned_short,
132 builtin_type_unsigned_int, builtin_type_unsigned_long,
133 builtin_type_float, builtin_type_double, builtin_type_long_double,
134 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
135 builtin_type_bool, builtin_type_long_long,
136 builtin_type_unsigned_long_long): Remove macros.
137
138 (builtin_type_f_character, builtin_type_f_integer,
139 builtin_type_f_integer_s2, builtin_type_f_logical,
140 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
141 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
142 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
143 builtin_type_f_complex_s32): Likewise.
144
145 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
146 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
147
148 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
149 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
150
151 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
152 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
153
154 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
155
156 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
157 target_gdbarch instead of builtin_type_void_data_ptr.
158 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
159 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
160 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
161 open_symbol_file_object): Likewise.
162 * nto-tdep.c (LM_ADDR): Likewise.
163
164 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
165
166 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
167 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
168 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
169
170 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
171
172 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
173 and its associated types to perform pointer conversion.
174 (procfs_can_use_hw_breakpoint): Likewise.
175 (procfs_auxv_parse): Remove unused variable.
176
177 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
178
179 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
180 instead of builtin_type_void_data_ptr.
181 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
182
183 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
184
185 * expprint.c (print_subexp_standard): Compare against builtin type
186 associated with exp->gdbarch instead of builtin_type_char.
187
188 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
189 extract values of arbitrary logical type. Handle arbitrary
190 complex types.
191
192 * printcmd.c (float_type_from_length): New function.
193 (print_scalar_formatted, printf_command): Use it.
194
195 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
196
197 * valops.c: Include "objfiles.h" and "symtab.h".
198 (find_function_in_inferior): New argument OBJF_P. Use it to return
199 objfile where function is defined. Use per-objfile arch types
200 instead of builtin_type_ to define default return type.
201
202 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
203 architecture to define inferior call argument types.
204 * gcore.c (derive_heap_segment): Likewise.
205 * objc-lang.c (value_nsstring): Likewise.
206 * scm-lang.c (scm_lookup_name): Likewise.
207 * scm-valprint.c (scm_inferior_print): Likewise.
208 * valops.c (value_allocate_space_in_inferior): Likewise.
209
210 * eval.c (evaluate_subexp_standard): Update calls.
211 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
212
213 * linux-fork.c: Include "objfiles.h".
214 * scm-lang.c: Include "objfiles.h".
215 * scm-valprint.c: Include "objfiles.h".
216
217 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
218
219 * gdbarch.sh (name_of_malloc): Remove.
220 * gdbarch.c, gdbarch.h: Re-generate.
221 * valops.c (value_allocate_space_in_inferior): Do not call
222 gdbarch_name_of_malloc.
223
224 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
225
226 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
227 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
228 (value_bit_index): Use extract_unsigned_integer
229 instead of unpack_long to read single byte.
230
231 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
232
233 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
234 associates types instead of builtin_type_ macros.
235 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
236 (call_function_by_hand): Use per-architecture "int" type as
237 fall-back if find_function_addr returns NULL VALUE_TYPE.
238 Update call to value_arg_coerce.
239
240 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
241
242 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
243 (cplus_make_method_ptr): Add TYPE parameter.
244 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
245 on to current_cp_abi.method_ptr_size callback.
246 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
247 current_cp_abi.make_method_ptr callback.
248
249 * gdbtypes.c (lookup_methodptr_type): Pass target type
250 argument to cplus_method_ptr_size.
251 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
252 (value_struct_elt_for_reference): Likewise.
253
254 * gnu-v3-abi.c (get_class_arch): New function.
255 (vtable_address_point_offset): Add GDBARCH parameter. Use it
256 instead of current_gdbarch. Update all callers.
257 (gnuv3_get_vtable): Likewise.
258 (gnuv3_get_virtual_fn): Likewise.
259 (gnuv3_decode_method_ptr): Likewise.
260 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
261 Use it instead of current_gdbarch.
262 (gnuv3_virtual_fn_field): Likewise.
263 (gnuv3_baseclass_offset): Likewise.
264 (gnuv3_print_method_ptr): Likewise.
265 (gnuv3_method_ptr_to_value): Likewise.
266 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
267 class architecture. Use architecture types instead of builtin types.
268 (gnuv3_make_method_ptr): Likewise.
269
270 * cp-valprint.c (cp_print_class_member): Expect pointer type
271 instead of class type. Use its length when extracting value.
272 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
273
274 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
275
276 * stack.c (return_command): Use frame architecture to determine
277 default integer return type.
278
279 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
280 to determine pointer types.
281 (f77_get_dynamic_upperbound): Likewise.
282
283 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
284 (resolve_msgsend): Use architecture of current frame to determine
285 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
286 (resolve_msgsend_stret, resolve_msgsend_super,
287 resolve_msgsend_super_stret): Likewise.
288
289 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
290
291 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
292 instead of builtin_type_ macros.
293 * amd64-tdep.c (amd64_register_type): Likewise.
294 (amd64_get_longjmp_target): Likewise.
295 * arm-tdep.c (arm_register_type): Likewise.
296 * avr-tdep.c (avr_register_type): Likewise.
297 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
298 * frv-tdep.c (frv_register_type): Likewise.
299 * h8300-tdep.c (h8300_register_type): Likewise.
300 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
301 hppa_skip_trampoline_code): Likewise.
302 * i386-tdep.c (i386_register_type): Likewise.
303 (i386_unwind_pc, i386_sse_type): Likewise.
304 * ia64-tdep.c (ia64_register_type): Likewise.
305 * m32r-tdep.c (m32r_register_type): Likewise.
306 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
307 * m88k-tdep.c (m88k_register_type): Likewise.
308 * mep-tdep.c (mep_register_type): Likewise.
309 * mips-tdep.c (mips_pseudo_register_type): Likewise.
310 * mn10300-tdep.c (mn10300_register_type): Likewise.
311 * mt-tdep.c (mt_copro_register_type): Likewise.
312 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
313 (rs6000_convert_register_p, rs6000_register_to_value,
314 rs6000_value_to_register): Likewise.
315 * s390-tdep.c (s390_register_type): Likewise.
316 * sh64-tdep.c (sh64_register_type): Likewise.
317 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
318 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
319 sh_sh4_build_float_register_type, sh_sh4_register_type,
320 sh_default_register_type): Likewise.
321 * sparc64-tdep.c (sparc64_register_type): Likewise.
322 * sparc-tdep.c (sparc32_register_type): Likewise.
323 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
324 * v850-tdep.c (v850_register_type): Likewise.
325 * vax-tdep.c (vax_register_type): Likewise.
326 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
327 xtensa_push_dummy_call): Likewise.
328
329 * std-regs.c (value_of_builtin_frame_fp_reg,
330 value_of_builtin_frame_pc_reg): Likewise.
331 * target-descriptions.c (tdesc_register_type): Likewise.
332
333 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
334
335 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
336 instead of builtin_type_int as default unspecified integral type.
337 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
338 assign_component, to_fixed_range_type): Likewise.
339 * ada-typeprint.c (print_range, print_range_bound,
340 print_range_type_named): Likewise.
341 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
342 * eval.c (evaluate_subexp_standard): Likewise.
343 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
344 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
345 build_gdb_vtable_type): Likewise.
346 * jv-lang.c (java_array_type): Likewise.
347 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
348 * m2-valprint.c (m2_print_long_set): Likewise.
349 * parse.c (follow_types): Likewise.
350 * p-typeprint.c (pascal_type_print_base): Likewise.
351 * valops.c (value_one, value_array, value_string,
352 value_bitstring): Likewise.
353 * value.c (allocate_repeat_value, value_from_string): Likewise.
354 * varobj.c (c_describe_child): Likewise.
355 * mt-tdep.c (mt_register_type): Likewise.
356 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
357 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
358
359 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
360
361 * defs.h (struct gdbarch): Add forward declaration.
362 (set_next_address): Add GDBARCH argument.
363 * printcmd.c (set_next_address): Use it to find pointer type.
364 * breakpoint.c (breakpoint_1): Update call.
365 * source.c (line_info): Likewise.
366 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
367
368 * breakpoint.c (set_breakpoint_count): Use platform-neutral
369 types for internal variable values.
370 * infrun.c (handle_inferior_event): Likewise.
371 * source.c (forward_search_command, reverse_search_command): Likewise.
372 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
373 set_tracepoint_num, set_traceframe_context): Likewise.
374
375 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
376
377 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
378 and builtin_true_unsigned_char.
379 (builtin_type_true_char): Remove macro, add extern declaration.
380 (builtin_type_true_unsigned_char): Add extern declaration.
381 * gdbtypes.c (builtin_type_true_char): New global variable.
382 (builtin_type_true_unsigned_char): Likewise.
383 (_initialize_gdbtypes): Initialize them.
384 (gdbtypes_post_init): Do not initialize builtin_true_char
385 and builtin_true_unsigned_char members of struct builtin_type.
386
387 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
388 use builtin_type_true_unsigned_char instead.
389
390 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
391 instead of builtin_type_char for internal string.
392
393 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
394
395 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
396 (builtin_type_f_void): Remove macro.
397 * gdbtypes.c (builtin_type_void): New global variable.
398 (_initialize_gdbtypes): Initialize it.
399
400 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
401 lookup_pointer_type or lookup_function_type on builtin_type_void.
402 * printcmd.c (set_next_address): Likewise.
403 * objc-lang.c (value_nsstring): Likewise.
404 * mt-tdep.c (mt_copro_register_type): Likewise.
405 * xtensa-tdep.c (xtensa_register_type): Likewise.
406
407 * symfile.c (syms_from_objfile): Remove special handling
408 of builtin_type_void and builtin_type_char.
409
410 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
411
412 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
413 of builtin_type_ macros when handling OP_OBJC_ operations.
414 * objc-lang.c (print_object_command): Likewise.
415
416 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
417
418 * ada-valprint.c: Include "objfiles.h".
419 (ada_val_print_1): Use the gdbarch associated with the objfile whether
420 a System.Address type is defined to retrieve the proper pointer type
421 to use to print it.
422
423 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
424
425 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
426 result type instead of builtin_type_int.
427 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
428 (ada_value_subscript): Update call to value_pos_atr.
429 (ada_value_ptr_subscript): Likewise.
430 (ada_evaluate_subexp): Likewise.
431
432 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
433
434 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
435 (cast_from_fixed_to_double): Rename to ...
436 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
437 of builtin_type_double.
438 (ada_value_cast): Use cast_from_fixed instead of casting result
439 of cast_from_fixed_to_double.
440 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
441
442 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
443
444 * valops.c (value_ind): No longer allow dereferencing an
445 integer type.
446 * eval.c (evaluate_subexp_standard): Handle deferencing an
447 integer type here.
448 * ada-lang.c (ada_evaluate_subexp): Likewise.
449
450 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
451
452 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
453 a reference type, pass the reference type directly to unpack_pointer.
454 * c-valprint.c (c_val_print): Likewise.
455 * f-valprint.c (f_val_print): Likewise.
456 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
457 * p-valprint.c (pascal_val_print): Likewise.
458
459 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
460
461 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
462 to construct the EVAL_SKIP dummy return value.
463 * ada-lang.c (ada_evaluate_subexp): Likewise.
464 * jv-lang.c (evaluate_subexp_java): Likewise.
465 * m2-lang.c (evaluate_subexp_modula2): Likewise.
466 * scm-lang.c (evaluate_exp): Likewise.
467
468 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
469
470 * value.h (coerce_enum, coerce_number): Remove prototypes.
471 * value.c (coerce_enum, coerce_number): Remove.
472 * valarith.c (value_x_binop): Do not call coerce_enum.
473 (value_x_unop): Likewise.
474 (value_logical_not): Call coerce_array instead of coerce_number.
475
476 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
477
478 * ax-gdb.c: Include "language.h".
479 (gen_frame_args_address): Add GDBARCH parameter; use it
480 instead of current_gdbarch.
481 (gen_frame_locals_address): Likewise.
482 (gen_var_ref): Add GDBARCH parameter. Update calls to
483 gen_frame_args_address and gen_frame_locals_address. Use
484 pointer type from gdbarch.
485 (gen_usual_unary): Add EXP parameter. Use integer type
486 from exp->gdbarch.
487 (gen_usual_arithmetic): Likewise.
488 (gen_integral_promotions): Likewise.
489 (gen_add, gen_sub): Remove.
490 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
491 (gen_logical_not): Use passed-in boolean result type
492 instead of builtin_type_int.
493 (gen_complement): Do not call gen_usual_unary or
494 gen_integral_promotions.
495 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
496 (gen_repeat): Add EXP parameter. Update call to gen_expr.
497 Use builtin_type_int32 as internal range type.
498 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
499 as result type. Update call to gen_expr.
500 (gen_expr): Add EXP parameter. Update calls to gen_expr,
501 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
502 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
503 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
504 Use exp->gdbarch instead of current_gdbarch.
505 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
506
507 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
508
509 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
510 and unop_promote before calling value_binop et. al.
511 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
512 and unop_promote before calling value_binop et. al.
513
514 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
515 (value_pos): Do not call unop_promote.
516 (value_neg, value_complement): Likewise.
517
518 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
519
520 * value.h (unop_promote, binop_promote): Add prototypes.
521 * eval.c (unop_promote, binop_promote): New functions.
522 * valarith.c (unop_result_type, binop_result_type): Remove.
523 (value_binop): Call binop_promote or unop_promote.
524 Inline remaining parts of binop_result_type. Remove special
525 code to truncate integer values for unsigned operations.
526 (value_pos): Call unop_promote. Inline remaining parts of
527 unop_result_type.
528 (value_neg, value_complement): Likewise.
529
530 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
531
532 * value.h (value_add, value_sub): Remove.
533 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
534 * valarith.c (value_add, value_sub): Remove.
535 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
536 (find_size_for_pointer_math): Add assertion. Update comment.
537 (value_binop): Update comment.
538
539 * eval.c (ptrmath_type_p): New function.
540 (evaluate_subexp_standard): Replace value_add and value_sub
541 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
542 Use builtin_type_uint8 instead of builtin_type_char to hold
543 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
544 * valarith.c (value_subscript): Replace value_add by
545 value_ptradd. Replace value_sub by value_binop.
546 * ada-lang.c (ada_value_ptr_subscript): Likewise.
547 (ada_tag_name_2): Replace value_add by value_ptradd.
548 (ada_evaluate_subexp): Replace value_add and value_sub by
549 value_binop.
550 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
551 by value_ptradd.
552 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
553 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
554
555 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
556
557 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
558 the expression architecture instead of builtin_type_int as the
559 sizeof return type.
560
561 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
562
563 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
564 a type parameter as expression element.
565 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
566 type as expression element.
567 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
568 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
569
570 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
571
572 * language.h (struct language_arch_info): New members
573 bool_type_default and bool_type_symbol.
574 (lang_bool_type): Remove prototype.
575 (LA_BOOL_TYPE): Remove macro.
576 (language_bool_type): Add prototype.
577 * language.c (lang_bool_type): Remove.
578 (language_bool_type): New function.
579
580 * value.h (value_in): Change return value to int.
581 * value.c (value_in): Return int instead of struct value *.
582
583 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
584 of using LA_BOOL_TYPE. Update call to value_in.
585 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
586 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
587
588 * language.c (unknown_language_arch_info): Set bool_type_default member
589 of struct language_arch_info.
590 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
591 bool_type_default members of struct language_arch_info.
592 * c-lang.c (c_language_arch_info): Set bool_type_default member
593 of struct language_arch_info.
594 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
595 members of struct language_arch_info.
596 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
597 bool_type_default members of struct language_arch_info.
598 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
599 bool_type_default members of struct language_arch_info.
600 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
601 bool_type_default members of struct language_arch_info.
602 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
603 bool_type_default members of struct language_arch_info.
604
605 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
606
607 * jv-lang.c (enum java_primitive_types): New type.
608 (java_language_arch_info): New function.
609 (java_language): Use it instead of c_language_arch_info.
610
611 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
612
613 * value.h (value_bitstring_subscript): New prototype.
614 * valarith.h (value_bitstring_subscript): New function.
615 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
616 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
617 instead of value_subscript to handle TYPE_CODE_BITSTRING.
618
619 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
620
621 * expression.h (struct expression): New member GDBARCH.
622 * parse.c (parse_exp_in_context): Initialize it.
623 * parser-def.h (parse_gdbarch, parse_language): New macros.
624
625 * ada-exp.y (parse_type): New macro.
626 Replace builtin_type_ macros by using parse_type.
627 Replace current_language by parse_language.
628 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
629 Replace builtin_type_ macros.
630
631 * c-exp.y (parse_type): New macro.
632 Replace builtin_type_ macros by using parse_type.
633 (parse_number): Replace current_gdbarch by parse_gdbarch.
634 (yylex): Replace current_language by parse_language.
635
636 * f-exp.y (parse_type, parse_f_type): New macros.
637 Replace builtin_type_ macros by using parse_{f_,}type.
638 (parse_number): Replace current_gdbarch by parse_gdbarch.
639 (yylex): Replace current_language by parse_language.
640
641 * jv-exp.y (parse_type): New macro.
642 (parse_number): Replace builtin_type_ macros by using parse_type.
643
644 * m2-exp.y (parse_type, parse_m2_type): New macros.
645 Replace builtin_type_ macros by using parse_{m2_,}type.
646
647 * objc-exp.y (parse_type): New macro.
648 Replace builtin_type_ macros by using parse_type.
649 (parse_number): Replace current_gdbarch by parse_gdbarch.
650 (yylex): Replace current_language by parse_language.
651
652 * p-exp.y (parse_type): New macro.
653 Replace builtin_type_ macros by using parse_type.
654 (parse_number): Replace current_gdbarch by parse_gdbarch.
655 (yylex): Replace current_language by parse_language.
656
657 2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
658
659 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
660 and DATA_SYMBOL_TYPE arguments.
661 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
662 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
663 (write_dollar_variable): Update call.
664
665 * ada-exp.y (write_var_or_type): Update call.
666 * c-exp.y: Likewise.
667 * f-exp.y: Likewise.
668 * jv-exp.y: Likewise.
669 * m2-exp.y: Likewise.
670 * objc-exp.y: Likewise.
671 * p-exp.y: Likewise.
672
673 2008-09-10 Joel Brobecker <brobecker@adacore.com>
674
675 * ada-lang.c (ada_parent_type): Add handling of the case where
676 the _parent field is a pointer and/or has a parallel XVS type.
677 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
678 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
679 the type of the tag instead of doing forcing an EVAL_NORMAL
680 expression evaluation.
681
682 2008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
683 Joel Brobecker <brobecker@adacore.com>
684
685 * ada-lang.c (is_digits_suffix): New function.
686 (is_dot_digits_suffix): Remove.
687 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
688 before looking up in symbol table, and do not use wild matches on them.
689 (wild_match): Reimplement for speed and to allow matching of operator
690 symbols.
691 (is_valid_name_for_wild_match): Return zero for names that do not
692 follow the GNAT encoding.
693
694 (is_name_suffix): Fix typo in comment.
695 (to_record_with_fixed_variant_part): Ditto.
696
697 2008-09-10 Pedro Alves <pedro@codesourcery.com>
698
699 * Makefile.in (gnu-nat.o): New rule.
700
701 2008-09-10 Joel Brobecker <brobecker@adacore.com>
702
703 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
704 archecture-neutral builtin_type_int32 instead of builtin_type_int.
705
706 2008-09-10 Joel Brobecker <brobecker@adacore.com>
707
708 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
709 Add special handling for pointer types.
710
711 2008-09-10 Pedro Alves <pedro@codesourcery.com>
712
713 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
714 right scope level.
715 (inf_ttrace_resume, inf_ttrace_wait): Typos.
716
717 2008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
718
719 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
720 of builtin_type_int.
721 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
722 instead of builtin_type_int.
723
724 2008-09-09 Pedro Alves <pedro@codesourcery.com>
725
726 * infrun.c (normal_stop): Run hook-stop last.
727
728 2008-09-09 Pedro Alves <pedro@codesourcery.com>
729
730 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
731 (init_gnu_ops): Don't register it.
732
733 2008-09-09 Pedro Alves <pedro@codesourcery.com>
734
735 * gnu-nat.c (gnu_attach): Push target before fetching the list of
736 threads.
737
738 2008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
739
740 * valops.c (value_cast_structs): Return NULL for failure.
741 (value_cast): Handle NULL from value_cast_structs.
742 (value_fetch_lazy): Call check_typedef. Remove unused variable.
743
744 2008-09-08 Pedro Alves <pedro@codesourcery.com>
745
746 * inferior.h (context_switch_to): Delete.
747 * infrun.c (context_switch): Don't save and load infrun state.
748 (context_switch_to): Delete.
749
750 * infcmd.c (proceed_thread_callback): Replace context_switch_to
751 calls by switch_to_thread calls.
752
753 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
754 * thread.c (main_thread_state, main_thread_executing): Delete.
755 (inferior_thread): Delete references to them.
756 (add_thread_silent): Fix case where we're adding a thread with the
757 same ptid as an exited thread. Remove references to
758 context-switching.
759 (load_infrun_state, save_infrun_state): Delete.
760 (thread_alive, is_thread_state, any_running, is_executing)
761 (set_executing): Remove the special handling for targets that
762 don't register any thread.
763 (restore_current_thread, thread_apply_all_command)
764 (do_captured_thread_select): Unconditionally call
765 switch_to_thread.
766
767 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
768 Call switch_to_thread instead of context_switch_to.
769
770 2008-09-08 Pedro Alves <pedro@codesourcery.com>
771
772 Remove global continuations in favour of a per-thread
773 continuations.
774
775 * gdbthread.h (struct thread_info): Add comments around
776 continuations and intermediate_continuations.
777 (save_infrun_state, load_infrun_state): Delete continuations and
778 intermediate_continuations arguments.
779 * infrun.c (context_switch): Don't context-switch the continuations.
780 * thread.c (clear_thread_inferior_resources): Discard all
781 continuations of the thread we're clearing.
782 (save_infrun_state, load_infrun_state): Delete continuations and
783 intermediate_continuations arguments, and the code referencing
784 them.
785 * utils.c: Include "gdbthread.h".
786 (cmd_continuation, intermediate_continuation): Delete.
787 (add_continuation): Add thread_info* argument. Install the
788 continuation on it.
789 (restore_thread_cleanup): New.
790 (do_all_continuations_ptid, do_all_continuations_thread_callback):
791 New.
792 (do_all_continuations): Reimplement.
793 (discard_all_continuations_thread_callback,
794 discard_all_continuations_thread): New.
795 (discard_all_continuations): Reimplement.
796 (add_intermediate_continuation): Add thread_info* argument.
797 Install the continuation on it.
798 (do_all_intermediate_continuations_thread_callback)
799 (do_all_intermediate_continuations_thread): New.
800 (do_all_intermediate_continuations): Reimplement.
801 (discard_all_intermediate_continuations_thread_callback): New.
802 (discard_all_intermediate_continuations_thread): New.
803 (discard_all_intermediate_continuations): Reimplement.
804
805 * breakpoint.c (until_break_command): Install the continuation on
806 the current thread.
807
808 * defs.h (cmd_continuation, intermediate_continuation): Delete.
809 (struct thread_info): Forward declare.
810 (add_continuation, add_intermediate_continuation): Add
811 thread_info* argument.
812 (do_all_continuations_thread, discard_all_continuations_thread)
813 (do_all_intermediate_continuations_thread)
814 (discard_all_intermediate_continuations_thread): Declare.
815 * inf-loop.c (inferior_event_handler): In non-stop only run
816 continuations on the thread that stopped. In all-stop, run
817 continuations on all threads.
818 * infcmd.c (step_once, finish_command): Adjust.
819
820 2008-09-08 Pedro Alves <pedro@codesourcery.com>
821
822 Remove the global stop_step in favour of a per-thread
823 stop_step.
824
825 * inferior.h (stop_step): Delete.
826
827 * gdbthread.h (struct thread_info): Add comments to stop_step.
828 (save_infrun_state, load_infrun_state): Remove stop_step argument.
829 * thread.c (load_infrun_state, save_infrun_state): Remove
830 stop_step argument, and references to it.
831
832 * infrun.c (clear_proceed_status): Clear stop_step.
833 (fetch_inferior_event): Adjust.
834 (context_switch): Don't context-switch stop_step.
835 (handle_inferior_event): Adjust.
836 (normal_stop): Adjust.
837 (save_inferior_status, restore_inferior_status): Adjust.
838
839 * infcmd.c (stop_step): Delete.
840 (step_1, step_1_continuation, step_once, until_next_command):
841 Adjust.
842
843 2008-09-08 Pedro Alves <pedro@codesourcery.com>
844
845 Remove the global step_multi in favour of a per-thread
846 step_multi.
847
848 * inferior.h (step_multi): Delete.
849 * gdbthread.h (struct thread_info): Add comments around
850 step_multi.
851 (save_infrun_state, load_infrun_state): Remove step_multi
852 parameter.
853 * thread.c (load_infrun_state, save_infrun_state): Remove
854 step_multi argument, and references to it.
855 * infcmd.c (step_multi): Delete.
856 (step_1): Adjust.
857 (step_1_continuation, until_next_command): Adjust.
858 * infrun.c (fetch_inferior_event): Adjust.
859 (context_switch): Don't context-switch step_multi.
860 (print_stop_reason, normal_stop): Adjust.
861
862 2008-09-08 Pedro Alves <pedro@codesourcery.com>
863
864 Remove the global stop_signal in favour of a per-thread
865 stop_signal.
866
867 * inferior.h (stop_signal): Delete.
868 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
869 stop_signal argument.
870 * thread.c (load_infrun_state, save_infrun_state): Remove
871 stop_signal argument. Don't reference it.
872
873 * infcmd.c (stop_signal): Delete.
874 (program_info): Adjust.
875 * infrun.c (resume): Clear stop_signal.
876 (proceed): Adjust. Pass the last stop_signal to the thread we're
877 resuming.
878 (context_switch): Don't context-switch stop_signal.
879 (handle_inferior_event, keep_going): Adjust.
880 (save_inferior_status, restore_inferior_status): Adjust.
881
882 * fbsd-nat.c: Include "gdbthread.h".
883 (find_signalled_thread, find_stop_signal): New.
884 (fbsd_make_corefile_notes): Use it.
885 * fork-child.c (startup_inferior): Adjust.
886
887 * linux-nat.c (get_pending_status): Adjust.
888 (linux_nat_do_thread_registers): Adjust.
889 (find_signalled_thread, find_stop_signal): New.
890 (linux_nat_do_thread_registers): Add stop_signal parameter.
891 (struct linux_nat_corefile_thread_data): Add stop_signal member.
892 (linux_nat_corefile_thread_callback): Pass stop_signal.
893 (linux_nat_do_registers): Delete.
894 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
895 there's always a thread.
896
897 * procfs.c (find_signalled_thread, find_stop_signal): New.
898 (find_stop_signal): New.
899 (procfs_do_thread_registers): Add stop_signal parameter.
900 (struct procfs_corefile_thread_data): Add stop_signal member.
901 (procfs_corefile_thread_callback): Pass args->stop_signal.
902 (procfs_make_note_section): Find the last stop_signal.
903
904 * solib-irix.c: Include gdbthread.h.
905 (irix_solib_create_inferior_hook): Adjust.
906 * solib-osf.c: Include gdbthread.h.
907 (osf_solib_create_inferior_hook): Adjust.
908 * solib-sunos.c: Include gdbthread.h.
909 (sunos_solib_create_inferior_hook): Adjust.
910 * solib-svr4.c: Include gdbthread.h.
911 (svr4_solib_create_inferior_hook): Adjust.
912
913 * win32-nat.c (do_initial_win32_stuff): Adjust.
914
915 2008-09-08 Pedro Alves <pedro@codesourcery.com>
916
917 * gdbthread.h (struct thread_info): Add comments around
918 proceed_to_finish.
919 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
920 argument.
921 * thread.c (load_infrun_state, save_infrun_state): Delete
922 proceed_to_finish argument and references to it.
923
924 * infcall.c (call_function_by_hand): Adjust.
925 * infcmd.c (finish_command): Adjust.
926 * infrun.c (proceed_to_finish): Delete.
927 (clear_proceed_status): Adjust.
928 (context_switch): Don't context-switch proceed_to_finish.
929 (normal_stop, save_inferior_status, restore_inferior_status):
930 Adjust.
931
932 2008-09-08 Pedro Alves <pedro@codesourcery.com>
933
934 * inferior.h (stop_bpstat): Delete.
935
936 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
937
938 * breakpoint.c (bpstat_do_actions): Rename to ...
939 (bpstat_do_actions_1): ... this. Make static. Change return type
940 to int. Return true if a breakpoint proceeded.
941 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
942 (delete_breakpoint): Don't reference the global stop_bpstat; it's
943 gone.
944
945 * gdbthread.h (struct thread_info): Add stop_bpstat.
946 (save_infrun_state, load_infrun_state): Remove stop_bpstat
947 argument.
948 * thread.c (load_infrun_state, save_infrun_state): Remove
949 stop_bpstat argument, and the code referencing it.
950
951 * infcall.c: Include "gdbthread.h".
952 (call_function_by_hand): Adjust.
953 * exceptions.c: Include "gdbthread.h".
954 (throw_exception): Adjust.
955 * infcmd.c (stop_bpstat): Delete.
956 (continue_command): In all-stop, set the ignore count on the
957 thread that reported the stop. In non-stop, set it on the current
958 thread.
959 (finish_command_continuation): Adjust.
960 (program_info): Adjust.
961 * infrun.c (clear_proceed_status): Adjust.
962 (context_switch): Don't context-switch stop_bpstat.
963 (handle_inferior_event): Adjust.
964 (normal_stop): Adjust.
965 (save_inferior_status, restore_inferior_status): Adjust.
966
967 * inf-loop.c (inferior_event_handler): Remove parameter to
968 bpstat_do_actions call.
969 * top.c (command_loop): Remove parameter to bpstat_do_actions
970 call. Call it unconditionally.
971 * event-top.c (command_handler): Ditto.
972 * python/python.c (execute_gdb_command): Ditto.
973
974 2008-09-08 Pedro Alves <pedro@codesourcery.com>
975
976 * inferior.h (step_over_calls): Delete.
977
978 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
979 step_over_calls argument.
980 * thread.c (save_infrun_state, load_infrun_state): Remove
981 step_over_calls argument. Adjust.
982
983 * infcmd.c (step_over_calls): Delete.
984 (step_1): Adjust.
985 * infrun.c (clear_proceed_status): Adjust.
986 (context_switch): Don't context-switch step_over_calls.
987 (handle_inferior_event, save_inferior_status)
988 (restore_inferior_status): Adjust.
989
990 2008-09-08 Pedro Alves <pedro@codesourcery.com>
991
992 Remove context switching in favour of accessing thread_info fields
993 directly.
994
995 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
996 Delete.
997 (struct thread_stepping_state): Delete.
998 (gtss, tss): Delete.
999 (follow_inferior_reset_breakpoints, follow_exec)
1000 (resume, clear_proceed_status): Adjust.
1001 (prev_pc): Delete.
1002 (proceed, start_remote, init_wait_for_inferior): Adjust.
1003 (struct execution_control_state): Add event_thread member.
1004 (delete_step_resume_breakpoint_callback)
1005 (delete_step_thread_step_resume_breakpoint)
1006 (delete_step_thread_step_resume_breakpoint_cleanup)
1007 (delete_step_thread_step_resume_breakpoint): New.
1008 (wait_for_inferior, init_execution_control_state): Use
1009 delete_step_thread_step_resume_breakpoint_cleanup.
1010 (wait_for_inferior): Set the event_thread.
1011 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
1012 with delete_step_thread_step_resume_breakpoint.
1013 (init_thread_stepping_state): Change parameter type to
1014 thread_info. Adjust.
1015 (context_switch): Don't context switch prev_pc,
1016 stepping_over_breakpoint, step_resume_breakpoint,
1017 step_range_start, step_range_end, step_frame_id,
1018 tss->stepping_over_breakpoint,
1019 tss->stepping_through_solib_after_catch,
1020 tss->stepping_through_solib_catchpoints, tss->current_line, or
1021 tss->current_symtab.
1022 (adjust_pc_after_break, handle_inferior_event)
1023 (currently_stepping, step_into_function)
1024 (insert_step_resume_breakpoint_at_sal)
1025 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
1026 (clear_stepping_state): New.
1027 (normal_stop): Adjust.
1028 (save_inferior_status, restore_inferior_status): Adjust.
1029
1030 * gdbthread.h (struct thread_info): Comments describing the
1031 members moved here. Add step_after_step_resume_breakpoint.
1032 (delete_step_resume_breakpoint): Add thread_info argument.
1033 (save_infrun_state, load_infrun_state): Remove prev_pc,
1034 trap_expected, step_resume_breakpoint, step_range_start,
1035 step_range_end, step_frame_id, another_trap,
1036 stepping_through_solib_after_catch,
1037 stepping_through_solib_catchpoints, current_line and
1038 current_symtab function arguments.
1039 (inferior_thread): Declare.
1040
1041 * thread.c (inferior_thread): New.
1042 (delete_step_resume_breakpoint): Add a thread_info parameter and
1043 rewrite.
1044 (load_infrun_state, save_infrun_state): Remove prev_pc,
1045 trap_expected, step_resume_breakpoint, step_range_start,
1046 step_range_end, step_frame_id, stepping_over_breakpoint,
1047 stepping_through_solib_after_catch,
1048 stepping_through_solib_catchpoints, current_line and
1049 current_symtab args. Remove code referencing them.
1050
1051 * infcmd.c (step_range_start, step_range_end, step_frame_id):
1052 Delete.
1053 (step_1, step_once, until_next_command): Adjust.
1054
1055 * inferior.h (step_range_start, step_range_end, step_frame_id):
1056 Delete.
1057
1058 * linux-nat.c (linux_child_follow_fork): If following the child,
1059 move the step state to it. Adjust.
1060 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
1061 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1062
1063 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1064
1065 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
1066 thread.
1067
1068 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1069
1070 * corelow.c (add_to_thread_list): If this is the first time we
1071 hear about thread info, update inferior_ptid.
1072 (core_open): Clear the thread list and set inferior_ptid before
1073 acknowledging a new inferior. Find threads before fetching
1074 register info. Give an upper target layer a chance to find and
1075 claim new threads. Print core generation and stop signal info
1076 after finding new threads.
1077 (get_core_register_section): Look at the lwp member of
1078 inferior_ptid for detecting if we have threads info, instead of
1079 the pid member.
1080 (core_pid_to_str): New.
1081 (init_core_ops): Register core_pid_to_str.
1082
1083 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1084
1085 * spu-linux-nat.c (spu_child_post_startup_inferior)
1086 (spu_child_post_attach): Don't add the main thread here.
1087
1088 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1089
1090 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1091
1092 * gnu-nat.c (inf_validate_procs): If this is the first time we're
1093 seeing a thread id, extend the main thread's ptid. If we still
1094 have pending execs, don't be verbose about new threads.
1095 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
1096 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
1097 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
1098 Adjust.
1099
1100 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1101
1102 * procfs.c (to_attach): Create a procinfo for the current lwp.
1103 Add it to gdb's thread list.
1104 (procfs_fetch_registers, procfs_store_registers): Assume there's
1105 always an lwp.
1106 (procfs_wait): Don't add the main thread here.
1107 (procfs_init_inferior): Create a procinfo for the main lwp here.
1108 Change main thread's ptid with thread_change_ptid.
1109 (procfs_notice_thread): Check for exited threads.
1110 (procfs_corefile_thread_callback): Remove check for the main
1111 process.
1112 (procfs_make_note_section): Assume there is always a thread.
1113
1114 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
1115 attaching. Change the main thread ptid with thread_change_ptid.
1116 (sol_thread_detach): Clear sol_thread_active.
1117 (sol_thread_wait): Check for exited threads.
1118 (sol_thread_create_inferior): Clear sol_thread_active before
1119 creating a new inferior. Change the main thread ptid with
1120 thread_change_ptid.
1121 (sol_thread_mourn_inferior): Clear sol_thread_active.
1122 (sol_find_new_threads_callback): Check for exited threads.
1123
1124 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1125
1126 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
1127 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
1128 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
1129 process, and return TARGET_WAITKIND_IGNORE.
1130
1131 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1132
1133 * inf-ttrace.c: Include <signal.h>
1134 (inf_ttrace_delete_dead_threads_callback): New.
1135 (inf_ttrace_resume_lwp): New.
1136 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
1137 delete dying threads until they are really dead.
1138 (inf_ttrace_wait): After stopping the whole process, delete any
1139 dying thread that is really dead by now.
1140 (inf_ttrace_thread_alive): Return 1.
1141 (inf_ttrace_extra_thread_info): New.
1142 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
1143
1144 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1145
1146 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
1147 of the child fork.
1148 (inf_ttrace_attach): Add the main thread.
1149 (inf_ttrace_resume_callback): Check for exited threads. Adjust
1150 for always a thread.
1151 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
1152 using thread_change_ptid, and set its private data. Don't add the
1153 main thread here.
1154 (inf_ttrace_pid_to_str): Adjust.
1155
1156 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1157
1158 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
1159 thread_change_ptid. Check for exited threads.
1160 (bsd_uthread_find_new_threads): Check for exited threads.
1161
1162 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1163
1164 * inf-ptrace.c: Include "gdbthread.h".
1165 (inf_ptrace_attach): Add the main thread here.
1166 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
1167 Decorate the main thread id with the lwp id.
1168
1169 2008-09-08 Pedro Alves <pedro@codesourcery.com>
1170
1171 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
1172 thread_change_ptid. Don't add or mark the main thread as running
1173 and executing here.
1174 * fork-child.c (fork_inferior): Add the main thread here.
1175
1176 2008-09-08 Jerome Guitton <guitton@adacore.com>
1177
1178 * rs6000-tdep.c (rs6000_fetch_instruction)
1179 (rs6000_skip_stack_check): New functions.
1180 (skip_prologue): Skip stack check sequence.
1181
1182 2008-09-08 David Daney <ddaney@avtrex.com>
1183
1184 * dummy-frame.h (frame.h): Include it.
1185 (struct frame_id): Remove declaration.
1186
1187 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1188
1189 * spu-tdep.c (spu_push_dummy_code): New function.
1190 (spu_gdbarch_init): Install it.
1191
1192 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1193
1194 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
1195 instead of paddr_nz.
1196 * gdbarch.c: Regenerate.
1197
1198 * target.c (target_xfer_partial, debug_print_register): Use
1199 core_addr_to_string_nz instead of paddr_nz.
1200
1201 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1202
1203 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
1204 *before* calling gdbarch_init_osabi.
1205 (rs6000_aix_init_osabi): Disable displaced stepping.
1206
1207 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1208
1209 * target.c (update_current_target): Do not inherit to_open
1210 or to_close.
1211 (pop_target): Call target_close on target_stack instead
1212 of current_target.
1213 (pop_all_targets_above): Likewise.
1214
1215 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1216
1217 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
1218 (gnuv3_print_method_ptr): Use it.
1219 (gnuv3_method_ptr_to_value): Likewise.
1220
1221 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1222
1223 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
1224 register_area callback function.
1225 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
1226 Use it instead of current_gdbarch.
1227 * nto-procfs.c (procfs_store_registers): Update call.
1228
1229 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1230
1231 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
1232 regcache architecture instead of current_gdbarch.
1233
1234 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1235
1236 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
1237 (check_for_saved): Use it instead of current_gdbarch.
1238 (is_arg_spill): Add gdbarch paramter. Use it instead
1239 of current_gdbarch.
1240 (mep_analyze_prologue): Add gdbarch parameter. Pass it
1241 to is_arg_spill and check_for_saved.
1242 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
1243
1244 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1245
1246 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
1247 instead of current_gdbarch.
1248
1249 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1250
1251 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
1252 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
1253 Use it instead of current_gdbarch.
1254 (m68kbsd_supply_fpregset): Update call.
1255 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
1256 (m68kbsd_collect_fpregset): Likewise.
1257
1258 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1259
1260 * cris-tdep.c (cris_version, cris_mode): Remove.
1261 (crisv32_single_step_through_delay): Use tdep->cris_mode.
1262 (cris_breakpoint_from_pc): Likewise.
1263 (cris_frame_unwind_cache): Use tdep->cris_version.
1264 (crisv32_scan_prologue): Likewise.
1265 (cris_spec_reg_applicable): Add gdbarch argument.
1266 Use tdep->cris_version.
1267 (cris_register_size, cris_special_register_name): Update calls.
1268 (cris_special_register_name): Add gdbarch argument.
1269 (cris_register_name, crisv32_register_name): Update calls.
1270
1271 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1272
1273 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
1274 instead of current_gdbarch.
1275
1276 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
1277 (sh64_gdbarch_init): Install print_insn_sh64 directly.
1278 * sh-tdep.c (gdb_print_insn_sh): Remove.
1279 (sh_gdbarch_init): Install print_insn_sh directly.
1280
1281 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
1282 from current_gdbarch.
1283 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
1284 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
1285 depending on mips_abi.
1286
1287 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1288
1289 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
1290 (smash_text_address): Likewise.
1291 * gdbarch.c, gdbarch.h: Regenerate.
1292
1293 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
1294 * arch-utils.h (core_addr_identity): Likewise.
1295 * arm-tdep.c (arm_addr_bits_remove): Likewise.
1296 (arm_smash_text_address): Likewise.
1297 * hppa-tdep.c (hppa_smash_text_address): Likewise.
1298 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
1299 * s390-tdep.c (s390_addr_bits_remove): Likewise.
1300
1301 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
1302 Use it instead of current_gdbarch.
1303
1304 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
1305 arm_dwarf2_prev_register): Update calls.
1306 * m88k-tdep.c (m88k_unwind_pc): Update call.
1307
1308 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1309
1310 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
1311 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
1312 Call gdbarch_integer_to_address directly instead of converting
1313 to value and back. Update comment.
1314 (execute_stack_op): Update call site.
1315 * dwarf2loc.c (find_location_expression): Likewise.
1316 (locexpr_describe_location): Update
1317
1318 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
1319 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
1320 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
1321 (dwarf2_loc_desc_needs_frame): Likewise.
1322
1323 2008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1324
1325 * breakpoint.h (struct bp_location): Change type of section
1326 member to "struct obj_section *".
1327 * tracepoint.h (struct tracepoint): Likewise.
1328 * symtab.h (struct general_symbol_info): Replace bfd_section
1329 member with obj_section.
1330 (struct symtab_and_line): Change type of section member to
1331 "struct obj_section *".
1332 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
1333 (SYMBOL_OBJ_SECTION): ... this.
1334
1335 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
1336 section as obj_section instead of bfd_section.
1337
1338 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
1339 directly instead of looking of obj_section from bfd_section.
1340
1341 * objfiles.h (find_pc_sect_section): Remove.
1342 * objfiles.c (find_pc_sect_section): Remove.
1343 (find_pc_section): Inline find_pc_sect_section code.
1344
1345 * symfile.h (find_pc_overlay): Return struct obj_section *.
1346 (find_pc_mapped_section): Likewise.
1347 (section_is_overlay, section_is_mapped): Change type of section
1348 argument to struct obj_section *.
1349 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
1350 (overlay_mapped_address, overlay_unmapped_address): Likewise.
1351 (symbol_overlayed_address): Likewise.
1352 * symtab.h (symbol_overlayed_address): Likewise.
1353 * symfile.c (overlay_is_mapped): Remove.
1354 (section_is_mapped): Inline overlay_is_mapped code. Update.
1355 (overlay_invalidate_all): Update.
1356 (section_is_overlay): Change section argument to type
1357 "struct obj_section *". Use bfd_ methods.
1358 (pc_in_unmapped_range): Likewise. Handle relocated sections.
1359 (pc_in_mapped_range): Likewise. Handle relocated sections.
1360 (sections_overlap): Likewise.
1361 (overlay_unmapped_address): Likewise.
1362 (overlay_mapped_address): Likewise.
1363 (symbol_overlayed_address): Likewise.
1364 (find_pc_overlay): Return struct obj_section *.
1365 (find_pc_mapped_section): Likewise.
1366 (list_overlays_command): Update.
1367 (map_overlay_command, unmap_overlay_command): Update.
1368 (simple_overlay_update): Update.
1369
1370 * block.h (blockvector_for_pc_sect): Change section argument
1371 to type "struct obj_section *".
1372 (block_for_pc_sect): Likewise.
1373 * block.c (blockvector_for_pc_sect): Change section argument
1374 to type "struct obj_section *".
1375 (block_for_pc_sect): Likewise.
1376 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
1377 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
1378 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
1379 (matching_bfd_sections): Rename to ...
1380 (matching_obj_sections): ... this. Update argument types.
1381 * blockframe.c (find_pc_sect_function): Likewise.
1382 * breakpoint.c (describe_other_breakpoints): Likewise.
1383 (breakpoint_has_pc, check_duplicates_for): Likewise.
1384 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
1385 (lookup_minimal_symbol_by_pc_section): Likewise.
1386 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
1387 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
1388 find_pc_sect_line, find_function_start_pc): Likewise.
1389 (matching_bfd_sections): Rename to ...
1390 (matching_obj_sections): ... this. Update argument types.
1391
1392 * blockframe.c (find_pc_partial_function): Update to section
1393 type changes. No longer call find_pc_sect_section.
1394 (cache_pc_function_section): Change to type "struct obj_section *".
1395 * breakpoint.c (resolve_sal_pc): Update to section type changes.
1396 * exec.c (xfer_memory): Likewise.
1397 * findvar.c (read_var_value): Likewise.
1398 * infcmd.c (jump_command): Likewise.
1399 * linespec.c (minsym_found): Likewise.
1400 * maint.c (maintenance_translate_address): Likewise.
1401 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
1402 (lookup_solib_trampoline_symbol_by_pc): Likewise.
1403 * parse.c (write_exp_msymbol): Likewise.
1404 * printcmd.c (build_address_symbolic): Likewise.
1405 (address_info, sym_info): Likewise.
1406 * symmisc.c (dump_msymbols, print_symbol): Likewise.
1407 * symtab.c (fixup_section): Likewise.
1408 (fixup_symbol_section, fixup_psymbol_section): Likewise.
1409 (find_pc_line, find_function_start_sal): Likewise.
1410 * target.c (memory_xfer_partial): Likewise.
1411 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
1412 * spu-tdep.c (spu_overlay_update): Likewise.
1413
1414 2008-09-04 Doug Evans <dje@google.com>
1415
1416 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
1417 Change argument of pulongest from CORE_ADDR to ULONGEST.
1418 All callers updated.
1419 * utils.c (plongest): Renamed from paddr_d.
1420 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
1421 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
1422 `CORE_ADDR addr' arg of error message.
1423
1424 2008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
1425
1426 * ser-tcp.c (ser_tcp_send_break): New function.
1427 (_initialize_ser_tcp): Use ser_tcp_send_break.
1428 * ser-tcp.h (ser_tcp_send_break): New prototype.
1429
1430 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1431
1432 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
1433 when allocating stack frame for inferior call.
1434
1435 2008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1436
1437 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
1438 SP or return address if we failed to find a valid frame.
1439
1440 2008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
1441
1442 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
1443 non-permanent breakpoints.
1444 (bpstat_stop_status): Change enable_state to bp_disabled only for
1445 non-permanent breakpoints.
1446 (bp_loc_is_permanent): New function.
1447 (create_breakpoint): Check if the location points to a permanent
1448 breakpoint and if it does, make breakpoint permanent.
1449 (update_breakpoint_locations): Make sure new locations of permanent
1450 breakpoints are properly initialized.
1451 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
1452 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
1453
1454 2008-09-02 Pedro Alves <pedro@codesourcery.com>
1455
1456 * breakpoint.c (insert_breakpoints, update_global_location_list):
1457 Check breakpoints_always_inserted_mode instead of
1458 always_inserted_mode directly.
1459
1460 2008-09-02 Andreas Schwab <schwab@suse.de>
1461
1462 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
1463
1464 2008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 Stay compatible after the GCC PR fortran/29635 fix.
1467 * dwarf2read.c (process_die <DW_TAG_imported_module>)
1468 (process_die <DW_TAG_imported_module>): Do not assert anything about
1469 these unsupported tags.
1470
1471 2008-08-29 Tom Tromey <tromey@redhat.com>
1472
1473 * maint.c (_initialize_maint_cmds): Fix typo.
1474
1475 2008-08-29 Tom Tromey <tromey@redhat.com>
1476
1477 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
1478 obstack.
1479
1480 2008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1481
1482 * remote.c: Include "gdb_stat.h".
1483
1484 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1485
1486 * dummy-frame.h (dummy_frame_pop): Add prototype.
1487 * dummy-frame.c: Include "observer.h".
1488 (dummy_frame_push): Do not check for stale frames.
1489 (dummy_frame_pop): New function.
1490 (cleanup_dummy_frames): New function.
1491 (_initialize_dummy_frame): Install it as inferior_created observer.
1492
1493 * frame.h (struct frame_id): Update comments.
1494 (frame_id_inner): Remove prototype.
1495 * frame.c (frame_id_inner): Make static. Add comments.
1496 (frame_find_by_id): Update frame_id_inner safety net check to avoid
1497 false positives for targets using non-contiguous stack ranges.
1498 (get_prev_frame_1): Update frame_id_inner safety net check.
1499 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
1500
1501 * stack.c (return_command): Directly pop the selected frame.
1502 * infrun.c (handle_inferior_event): Remove dead code.
1503 * i386-tdep.c (i386_push_dummy_call): Update comment.
1504
1505 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1506
1507 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
1508 breakpoint from shared library.
1509
1510 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1511
1512 * solib-svr4.c (read_program_header): New function.
1513 (scan_dyntag_auxv): New function.
1514 (elf_locate_base): Use it if scan_dyntag fails.
1515 (find_program_interpreter): New function.
1516 (enable_break): Use it instead of .interp section.
1517
1518 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1519
1520 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
1521 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
1522 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
1523 remote_bfd_open): New functions.
1524 (remote_hostio_send_command): Fail safely if remote connection
1525 is not set up.
1526
1527 * solist.h (solib_open): Remove prototype.
1528 (solib_bfd_open): Add prototype.
1529 * solib.c: Include "remote.h".
1530 (solib_open): Remove, replace by ...
1531 (solib_bfd_open): ... this new function. Handle remote BFDs.
1532 (solib_map_sections): Replace solib_open by solib_bfd_open.
1533 * solib-frv.c: Include "exceptions.h".
1534 (enable_break2): Replace solib_open by solib_bfd_open.
1535 * solib-svr4.c: Include "exceptions.h".
1536 (enable_break): Replace solib_open by solib_bfd_open.
1537
1538 * symfile.c: Include "remote.h".
1539 (build_id_verify): Handle remote BFDs.
1540 (separate_debug_file_exists): Use BFD to access file. Handle
1541 remote BFDs.
1542 (symfile_bfd_open): Handle remote BFDs.
1543 (reread_symbols): Handle remote BFDs.
1544
1545 * NEWS: Mention "remote:" argument prefix to "set sysroot".
1546
1547 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1548
1549 * gdbarch.sh (target_gdbarch): New global variable.
1550 (deprecated_current_gdbarch_select_hack): Set it.
1551 * gdbarch.c, gdbarch.h: Regenerate.
1552
1553 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
1554 of current_gdbarch.
1555 * target-descriptions.c (target_find_description): Likewise.
1556 * arm-tdep.c (arm_update_current_architecture): Likewise.
1557 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
1558 arm_show_force_mode): Likewise.
1559 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
1560 show_mips_abi): Likewise.
1561 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
1562
1563 * target.c (target_translate_tls_address): Use target_gdbarch
1564 instead of current_gdbarch.
1565 * remote.c (struct packet_reg): Likewise.
1566 (get_remote_arch_state, packet_reg_from_regnum,
1567 packet_reg_from_pnum, remote_check_symbols, remote_wait,
1568 remote_address_masked, remote_insert_breakpoint,
1569 remote_insert_hw_breakpoint, remote_read_description): Likewise.
1570 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1571 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
1572 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
1573
1574 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
1575 solib_add, info_sharedlibrary_command, solib_address,
1576 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
1577 solib_global_lookup): Likewise.
1578 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
1579 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
1580 Likewise.
1581 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1582 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
1583 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
1584 Likewise.
1585 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
1586 nto_truncate_ptr): Likewise.
1587 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
1588
1589 2008-08-26 Luis Machado <luisgpm@br.ibm.com>
1590
1591 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
1592 (ppc_linux_vmx_regset_sections): New structure.
1593 (ppc_linux_fp_regset_sections): New structure.
1594 (ppc_linux_init_abi): Select core-file regset based on target
1595 features.
1596
1597 2008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1598
1599 * target.c (debug_print_register): Use regcache_raw_collect
1600 instead of regcache_cooked_read. Only handle raw registers.
1601
1602 2008-08-25 Pedro Alves <pedro@codesourcery.com>
1603
1604 * cp-name-parser.y: Include config.h before system headers.
1605
1606 2008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1607
1608 * m88k-tdep.c: Update for unwinder changes.
1609
1610 2008-08-24 Tom Tromey <tromey@redhat.com>
1611
1612 * s390-tdep.c (s390_address_class_type_flags): Use
1613 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
1614 (s390_address_class_type_flags_to_name): Likewise.
1615 (s390_address_class_name_to_type_flags): Likewise.
1616
1617 2008-08-24 Tom Tromey <tromey@redhat.com>
1618
1619 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
1620 TYPE_FLAGS.
1621 * features/rs6000/powerpc-vsx32l.c
1622 (initialize_tdesc_powerpc_vsx32l): Update.
1623 * features/rs6000/powerpc-vsx32.c
1624 (initialize_tdesc_powerpc_vsx32): Update.
1625 * features/rs6000/powerpc-vsx64.c
1626 (initialize_tdesc_powerpc_vsx64): Update.
1627 * features/rs6000/powerpc-vsx64l.c
1628 (initialize_tdesc_powerpc_vsx64l): Update.
1629 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
1630 TYPE_VECTOR, not TYPE_FLAGS.
1631
1632 2008-08-24 Tom Tromey <tromey@redhat.com>
1633
1634 * xml-tdesc.c (tdesc_end_union): Update.
1635 * stabsread.c (define_symbol): Update.
1636 (read_type): Update.
1637 (read_struct_type): Update.
1638 (read_enum_type): Update.
1639 * spu-tdep.c (spu_builtin_type_vec128): Update.
1640 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
1641 (sh_push_dummy_call_nofpu): Update.
1642 * mdebugread.c (parse_symbol): Update.
1643 (parse_symbol): Update.
1644 (parse_symbol): Update.
1645 (upgrade_type): Update.
1646 * jv-lang.c (java_lookup_class): Update.
1647 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
1648 * i386-tdep.c (i386_mmx_type): Update.
1649 (i386_sse_type): Update.
1650 * gdbtypes.h (enum type_flag_value): New enum.
1651 (enum type_instance_flag_value): New enum.
1652 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
1653 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
1654 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
1655 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
1656 TYPE_FLAG_NOTTEXT): Now enum constants.
1657 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
1658 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
1659 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
1660 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
1661 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
1662 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
1663 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
1664 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
1665 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
1666 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
1667 TYPE_NOTTEXT): Update.
1668 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
1669 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
1670 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
1671 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
1672 TYPE_ADDRESS_CLASS_ALL): Update.
1673 (struct main_type) <flags>: Remove.
1674 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
1675 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
1676 flag_vector, flag_stub_supported, flag_nottext,
1677 flag_fixed_instance>: New fields.
1678 <nfields, vptr_fieldno>: Move earlier.
1679 (TYPE_FLAGS): Remove.
1680 * gdbtypes.c (make_pointer_type): Update.
1681 (address_space_name_to_int): Update.
1682 (address_space_int_to_name): Update.
1683 (make_type_with_address_space): Update.
1684 (make_cv_type): Update.
1685 (create_range_type): Update.
1686 (get_discrete_bounds): Update.
1687 (create_set_type): Update.
1688 (make_vector_type): Update.
1689 (smash_to_method_type): Update.
1690 (check_typedef): Update.
1691 (check_stub_method): Update.
1692 (init_type): Individually assign flag fields.
1693 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
1694 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
1695 (copy_type_recursive): Copy the entire main type. Don't use
1696 TYPE_FLAGS.
1697 * features/rs6000/powerpc-altivec64l.c
1698 (initialize_tdesc_powerpc_altivec64l): Update.
1699 * features/rs6000/powerpc-altivec64.c
1700 (initialize_tdesc_powerpc_altivec64): Update.
1701 * features/rs6000/powerpc-altivec32l.c
1702 (initialize_tdesc_powerpc_altivec32l): Update.
1703 * features/rs6000/powerpc-altivec32.c
1704 (initialize_tdesc_powerpc_altivec32): Update.
1705 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
1706 Update.
1707 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
1708 Update.
1709 * dwarf2read.c (read_structure_type): Update.
1710 (read_enumeration_type): Likewise.
1711 (process_enumeration_scope): Likewise.
1712 (read_tag_pointer_type): Likewise.
1713 (read_subroutine_type): Likewise.
1714 (read_subroutine_type): Likewise.
1715 (read_base_type): Likewise.
1716 * coffread.c (coff_read_enum_type): Update.
1717 * ada-valprint.c (adjust_type_signedness): Update.
1718 * ada-typeprint.c (print_record_field_types): Update.
1719 * ada-lang.c (packed_array_type): Update.
1720 (empty_record): Don't reset TYPE_FLAGS.
1721 (ada_template_to_fixed_record_type_1): Update.
1722 (ada_template_to_fixed_record_type_1): Likewise.
1723 (template_to_static_fixed_type): Likewise.
1724 (to_record_with_fixed_variant_part): Likewise.
1725 (to_fixed_record_type): Likewise.
1726 (to_fixed_array_type): Likewise.
1727 (to_static_fixed_type): Likewise.
1728
1729 2008-08-23 Jim Blandy <jimb@redhat.com>
1730
1731 PR macros/607:
1732 * symmisc.c (print_symbol_bcache_statistics): Include statistics
1733 for the macro bcache.
1734
1735 2008-08-23 Tom Tromey <tromey@redhat.com>
1736
1737 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
1738 (argc): Now 31 bits.
1739
1740 2008-08-22 Tom Tromey <tromey@redhat.com>
1741
1742 * NEWS: Move macro entries back under "New commands".
1743
1744 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1745
1746 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
1747 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
1748 (create_overlay_event_breakpoint): Loop over all objfiles to install
1749 multiple instances of the overlay event breakpoint if present.
1750
1751 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1752
1753 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
1754 (info_spu_event_command): Command only supported on SPU architecture.
1755 (info_spu_signal_command): Likewise.
1756 (info_spu_mailbox_command): Likewise.
1757 (info_spu_dma_command): Likewise.
1758 (info_spu_proxydma_command): Likewise.
1759
1760 2008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
1761
1762 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
1763 if the thread has already exited.
1764
1765 2008-08-22 Pedro Alves <pedro@codesourcery.com>
1766
1767 * infrun.c (proceed): Move back setting previous_inferior_ptid
1768 from here ...
1769 (wait_for_inferior): ... to here.
1770 (fetch_inferior_event): ... and here.
1771
1772 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1773
1774 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
1775 (deprecated_current_gdbarch_select_hack): Call registers_changed
1776 instead of reinit_frame_cache.
1777 * gdbarch.c: Regenerate.
1778
1779 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1780
1781 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
1782
1783 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1784
1785 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
1786
1787 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1788
1789 * findvar.c (locate_var_value): Do not call get_frame_arch
1790 with a NULL frame argument.
1791
1792 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1793
1794 * frame.h (frame_map_regnum_to_name): Remove prototype.
1795 (frame_map_name_to_regnum): Remove prototype.
1796 * frame.c (frame_map_regnum_to_name): Remove.
1797 (frame_map_name_to_regnum): Remove.
1798 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
1799 instead of frame_map_regnum_to_name.
1800 * ax-gdb.c: Include "user-regs.h".
1801 (gen_expr): Use user_reg_map_name_to_regnum instead of
1802 frame_map_name_to_regnum.
1803 * eval.c: Include "user-regs.h".
1804 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
1805 instead of frame_map_name_to_regnum.
1806 * infcmd.c (registers_info): Likewise.
1807 * parse.c: Include "user-regs.h".
1808 (write_dollar_variable): Use user_reg_map_name_to_regnum
1809 instead of frame_map_name_to_regnum.
1810 * tracepoint.c: Include "user-regs.h".
1811 (encode_actions): Use user_reg_map_name_to_regnum
1812 instead of frame_map_name_to_regnum.
1813 * valops.c: Include "user-regs.h".
1814 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
1815 of frame_map_regnum_to_name.
1816
1817 2008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
1818
1819 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
1820 and manually relocate .opd contents from BFD instead of reading
1821 them from target memory.
1822
1823 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1824
1825 * dwarf2read.c (processing_current_prefix): Delete static
1826 variable.
1827 (process_full_comp_unit): Do not set processing_current_prefix.
1828 (dwarf2_full_name): New function.
1829 (read_func_scope): Do not set processing_current_prefix. Use
1830 determine_prefix.
1831 (read_structure_type): Do not set processing_current_prefix. Remove
1832 unused inner cleanup.
1833 (process_structure_scope): Do not set processing_current_prefix.
1834 (read_enumeration_type): Use dwarf2_full_name.
1835 (determine_class_name): Return a const char *. Put the result
1836 on the objfile obstack. Use dwarf2_full_name.
1837 (read_namespace_type): New function.
1838 (read_namespace): Do not create the type here. Use
1839 determine_prefix.
1840 (read_typedef): Use dwarf2_full_name. Do not pass the name
1841 to init_type.
1842 (read_base_type): Do not pass the name to init_type. Handle
1843 TYPE_FLAG_NOSIGN.
1844 (read_unspecified_type): Do not pass the name to init_type.
1845 (new_symbol): Use dwarf2_full_name instead of
1846 processing_current_prefix.
1847 (read_type_die): Do not set processing_current_prefix. Handle
1848 DW_TAG_namespace.
1849 (determine_prefix): Handle specifications. Return the result
1850 on the objfile obstack. Handle unions correctly.
1851
1852 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1853
1854 * buildsym.c (add_symbol_to_list): Do not call
1855 cp_scan_for_anonymous_namespaces here.
1856 (finish_block): Do not call cp_set_block_scope here.
1857 * cp-namespace.c (processing_has_namespace_info)
1858 (processing_current_prefix): Delete.
1859 (cp_initialize_namespace): Do not initialize
1860 processing_has_namespace_info.
1861 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
1862 not check processing_has_namespace_info.
1863 (cp_set_block_scope): Take prefix and namespace info flag as
1864 arguments. Honor namespaces regardless of a demangled name.
1865 * cp-support.h (processing_has_namespace_info)
1866 (processing_current_prefix): Delete declarations.
1867 (cp_set_block_scope): Update prototype.
1868 * dwarf2read.c (processing_has_namespace_info)
1869 (processing_current_prefix): New static variables.
1870 (read_file_scope): Initialize processing_has_namespace_info.
1871 (read_func_scope): Call cp_set_block_scope for C++.
1872 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
1873 * symtab.c (symbol_demangled_name): Accept a const argument.
1874 * symtab.h (symbol_demangled_name): Update prototype.
1875
1876 2008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
1877
1878 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
1879 * blockframe.c (find_pc_partial_function): Likewise.
1880 * buildsym.c (find_symbol_in_list): Likewise.
1881 * c-valprint.c (c_val_print): Likewise.
1882 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
1883 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
1884 * cp-support.c (cp_remove_params): Renamed from remove_params and
1885 made global.
1886 (overload_list_add_symbol): Update call to remove_params.
1887 * cp-support.h (cp_remove_params): Declare.
1888 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
1889 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
1890 * expprint.c (dump_subexp_body_standard): Likewise.
1891 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
1892 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
1893 for messages.
1894 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
1895 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1896 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1897 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
1898 symbols and SYMBOL_PRINT_NAME for messages.
1899 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1900 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
1901 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
1902 SYMBOL_SET_LINKAGE_NAME.
1903 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
1904 * minsyms.c (add_minsym_to_demangled_hash_table): Use
1905 SYMBOL_SEARCH_NAME.
1906 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
1907 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
1908 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
1909 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
1910 (address_info): Use SYMBOL_PRINT_NAME for messages and
1911 SYMBOL_LINKAGE_NAME for lookups.
1912 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
1913 * stabsread.c (patch_block_stabs, define_symbol)
1914 (read_type, read_enum_type, common_block_end)
1915 (cleanup_undefined_types_1, scan_file_globals): Use
1916 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
1917 and SYMBOL_PRINT_NAME.
1918 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
1919 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
1920 cp_remove_params instead of cplus_demangle.
1921 (print_block_frame_labels, print_frame_arg_vars): Use
1922 SYMBOL_LINKAGE_NAME.
1923 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
1924 SYMBOL_LINKAGE_NAME.
1925 (dump_symtab_1, print_symbol, print_partial_symbols)
1926 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
1927 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
1928 (SYMBOL_SET_LINKAGE_NAME): New.
1929 (SYMBOL_SET_NAMES): Add a comment.
1930 * tracepoint.c (set_traceframe_context, validate_actionline)
1931 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
1932 lookups and SYMBOL_PRINT_NAME for output.
1933 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
1934 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
1935
1936 2008-08-21 Pedro Alves <pedro@codesourcery.com>
1937
1938 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
1939 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
1940 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
1941 obj_section_addr and obj_section_endaddr.
1942 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
1943 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1944 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
1945 (find_extant_func_descr): Likewise.
1946 * solib-frv.c (frv_relocate_main_executable): Use
1947 obj_section_addr.
1948 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
1949 obj_section_addr and obj_section_endaddr.
1950
1951 2008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
1952
1953 * NEWS: Amplify last entry on boolean types in Ada.
1954
1955 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1956
1957 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
1958 Make the dwarf2_cu * parameter output as well as input. Update it if
1959 we follow a reference to another CU.
1960 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
1961 (die_type, die_containing_type): Update calls to changed functions.
1962 Use the returned CU along with the returned DIE.
1963 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
1964
1965 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1966
1967 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
1968 in the DIEs here.
1969 (process_queue): Do not read in the DIEs here.
1970 (psymtab_to_symtab_1): Update call to queue_comp_unit.
1971 (read_full_die): Do not call queue_comp_unit from here.
1972 (maybe_queue_comp_unit): New function.
1973 (follow_die_ref): Use it.
1974
1975 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1976
1977 * dwarf2read.c (struct attribute): Move earlier.
1978 (struct die_info): Change attrs to a trailing array.
1979 (dwarf_alloc_die): Take the number of attributes. Allocate space
1980 for them.
1981 (read_full_die): Update call to dwarf_alloc_die. Do not manually
1982 allocate attributes.
1983
1984 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1985
1986 * dwarf2read.c (REF_HASH_SIZE): Delete.
1987 (struct dwarf2_cu): Replace die_ref_table with die_hash.
1988 (struct die_info): Remove next_ref.
1989 (store_in_ref_table): Remove offset argument. Rewrite to use
1990 htab_find_slot_with_hash.
1991 (die_hash, die_eq): New.
1992 (read_comp_unit): Allocate the die_hash.
1993 (read_die_and_children): Update call to store_die_ref.
1994 (follow_die_ref): Rewrite to use htab_find_with_hash.
1995
1996 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
1997
1998 * dwarf2read.c (free_die_list, copy_die): Delete.
1999 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
2000 on the obstack.
2001 (read_full_die): Update call to dwarf_alloc_die. Allocate
2002 attributes on the CU obstack.
2003 (free_one_comp_unit): Do not call free_die_list.
2004
2005 2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
2006
2007 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
2008 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
2009 sibling list.
2010 (read_full_die): Do not allocate DIEs for abbrev 0.
2011 (follow_die_ref): Correct error message.
2012
2013 2008-08-20 Pedro Alves <pedro@codesourcery.com>
2014
2015 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
2016 there are no symbols loaded, instead of throwing a generic error.
2017 (decode_variable): Likewise.
2018
2019 2008-08-20 Pedro Alves <pedro@codesourcery.com>
2020
2021 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
2022 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
2023 macros.
2024 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
2025 and offset. Use size_t instead of unsigned long.
2026 (build_objfile_section_table): Use size_t instead of unsigned
2027 long.
2028 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
2029 gone.
2030 (find_pc_sect_section): Use obj_section_addr and
2031 obj_section_endaddr.
2032 * symfile.c (symfile.c): Remove code that maps sections
2033 offsets in "addr" to the object's sections.
2034 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
2035 * gcore.c (gcore_create_callback): Use obj_section_addr and
2036 obj_section_endaddr.
2037 * maint.c (print_objfile_section_info): Likewise.
2038 * printcmd.c (sym_info): Use obj_section_addr and
2039 obj_section_endaddr.
2040 * symtab.c (fixup_section): Likewise.
2041
2042 2008-08-20 Mark Kettenis <kettenis@gnu.org>
2043
2044 * sparc-tdep.c: Make some comments catch up with reality.
2045
2046 2008-08-20 Vladimir Prus <vladimir@codesourcery.com>
2047
2048 * NEWS: Mention 'set target-async'
2049
2050 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
2051
2052 * infrun.c (resume): If the thread is placed to the deferred step
2053 queue, mark it as running.
2054
2055 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
2056
2057 Make sure target supports non-stop.
2058 * infcmd.c (run_command_1, attach_command): If non-stop mode
2059 is requested, verify the target supports it.
2060 * linux-nat.c (linux_nat_supports_non_stop): New.
2061 (linux_nat_add_target): Register the above.
2062 * target.c (find_default_supports_non_stop)
2063 (target_supports_non_stop): New.
2064 (init_dummy_target): Register find_default_supports_non_stop.
2065 * target.h (struct target_ops): New field to_supports_non_stop.
2066 (target_supports_non_stop): New.
2067
2068 2008-08-19 Pedro Alves <pedro@codesourcery.com>
2069 Vladimir Prus <vladimir@codesourcery.com>
2070
2071 * target.c (target_async_permitted, target_async_permitted_1)
2072 (set_maintenance_target_async_permitted)
2073 (show_maintenance_target_async_permitted): New.
2074 (initialize_targets): Register 'set target-async'.
2075 * target.h (target_async_permitted): Declare.
2076 * linux-nat.c (linux_nat_async_enabled)
2077 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
2078 (show_maintenance_linux_async_permitted): Remove.
2079 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
2080 (get_pending_events, linux_nat_async): Use target_async_permitted.
2081 (linux_nat_set_async_mode): Remove, moving the only used bits
2082 into...
2083 (linux_nat_setup_async): This.
2084 (_initialize_linux_nat): Do not register 'maint set linux-async'.
2085 Use linux_nat_setup_async.
2086 * remote.c (remote_async_permitted, remote_async_permitted_set)
2087 (set_maintenance_remote_async_permitted)
2088 (show_maintenance_remote_async_permitted): Remove.
2089 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
2090 (remote_is_async_p): Use target_async_permitted.
2091 (_initialize_remote): Don't register 'main set remote-async'.
2092 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
2093 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
2094 * mi/mi-main.c (mi_cmd_list_target_features): New.
2095
2096 2008-08-19 Vladimir Prus <vladimir@codesourcery.com>
2097
2098 * target.c (maybe_kill_then_attach)
2099 (maybe_kill_then_create_inferior): Remove.
2100 (update_current_target): Do not default to_attach,
2101 to_create_inferiour, to_is_async_p.
2102
2103 2008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
2104
2105 Changes for supporting boolean types in debugging data.
2106 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
2107 API to return LONGEST values rather than struct values.
2108 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
2109 and discrete_type_high_bound.
2110 (to_fixed_range_type): Create a range type in cases where
2111 argument is base type and its limits are representable as ints.
2112 (ada_is_modular_type): Correct so that base type must be integral.
2113 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
2114 keywords when they appear alone, since we are phasing out
2115 direct representation of these identifiers in debugging data.
2116 * ada-exp.y: Define 'true' and 'false' as primaries.
2117 (type_boolean): New function.
2118 (type_int,type_long,type_long_long,type_floattype_double)
2119 (type_long_double): Remove uses of current_gdbarch for consistency
2120 with type_boolean.
2121 (write_int): Change comment to indicate that it might write boolean
2122 constant as well.
2123 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
2124 type, since will no longer be represented as enumerated type in
2125 debugging data.
2126 * ada-valprint.c (print_optional_low_bound): Handle boolean case
2127 as well.
2128 * NEWS: Note support boolean types.
2129
2130 2008-08-18 Pedro Alves <pedro@codesourcery.com>
2131
2132 * bsd-uthread.c (bsd_uthread_close): New.
2133 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
2134 target.
2135 (bsd_uthread_solib_loaded): Fix typo.
2136 (bsd_uthread_target): Register bsd_uthread_close.
2137
2138 2008-08-18 Pedro Alves <pedro@codesourcery.com>
2139
2140 * corelow.c (core_open): Assume there was no upper layer left
2141 behind from a previous inferior.
2142 * target.c (pop_all_targets): Rename to ...
2143 (pop_all_targets_above): ... this. Add a target stratum
2144 parameter. Use it instead of hardcoding the dummy_stratum.
2145 (pop_all_targets): New, defer to pop_all_targets_above.
2146 (target_preopen): Use pop_all_targets_above.
2147 * target.h (pop_all_targets_above): Declare.
2148
2149 2008-08-18 Pedro Alves <pedro@codesourcery.com>
2150
2151 * gdbthread.h (thread_change_ptid): Declare.
2152 * infrun.c (infrun_thread_ptid_changed): New.
2153 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
2154 thread_ptid_changed observer.
2155 * regcache.c (regcache_thread_ptid_changed): New.
2156 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
2157 thread_ptid_changed observer.
2158 * thread.c (thread_change_ptid): New.
2159
2160 2008-08-18 Tom Tromey <tromey@redhat.com>
2161
2162 * symfile.c (reread_symbols): Update.
2163 * solib-sunos.c (allocate_rt_common_objfile): Update.
2164 * objfiles.c (allocate_objfile): Update.
2165 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
2166 Remove.
2167
2168 2008-08-18 Tom Tromey <tromey@redhat.com>
2169
2170 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
2171 obstack.
2172
2173 2008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
2174
2175 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
2176 lr_register.
2177 (rs6000_in_function_epilogue_p): Check for bctr.
2178 (skip_prologue): Initialize lr_register. Set lr_reg to a register
2179 number. Set gpr_mask and used_bl. Continue scanning while some
2180 expected registers are not saved. Set lr_register if LR is not
2181 stored.
2182 (rs6000_frame_cache): Handle gpr_mask and lr_register.
2183
2184 2008-08-17 Tom Tromey <tromey@redhat.com>
2185
2186 PR gdb/1535:
2187 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
2188 (ep_find_event_name_end): Remove.
2189 (catch_fork_temporary, catch_vfork_temporary,
2190 catch_fork_permanent, catch_vfork_permanent): New constants.
2191 (catch_vfork, catch_fork): Remove.
2192 (catch_fork_command_1): Add 'command' argument. Remove
2193 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
2194 all cases.
2195 (catch_exec_command_1): Add 'command' argument; remove
2196 'tempflag'. Handle NULL 'arg'.
2197 (catch_load_command_1): Likewise.
2198 (catch_unload_command_1): Likewise.
2199 (catch_ada_exception_command): Likewise.
2200 (catch_assert_command): Likewise.
2201 (catch_catch_command): New function.
2202 (catch_throw_command): Likewise.
2203 (catch_command_1): Remove.
2204 (catch_command): Just call error.
2205 (tcatch_command): Likewise.
2206 (catch_cmdlist): New global.
2207 (tcatch_cmdlist): Likewise.
2208 (add_catch_command): New function.
2209 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
2210 commands. Create all catch sub-commands.
2211
2212 2008-08-17 Pedro Alves <pedro@codesourcery.com>
2213
2214 * gdbthread.h: Add comments.
2215 * stack.c (get_selected_block): Return 0 on an exited thread.
2216 * top.c (execute_command): Check for is_stopped, not !is_running.
2217 * event-top.c (command_handler): Likewise.
2218
2219 2008-08-16 Pedro Alves <pedro@codesourcery.com>
2220
2221 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
2222 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
2223 (mi_cmd_exec_finish): Remove "return".
2224
2225 2008-08-16 Pedro Alves <pedro@codesourcery.com>
2226
2227 * target.h (pop_all_targets): Declare.
2228 * target.c (pop_all_targets): New.
2229 * top.c (quit_target): Pop all targets instead of just closing the
2230 current.
2231
2232 2008-08-16 Vladimir Prus <vladimir@codesourcery.com>
2233 Thiago Jung Bauermann <bauerman@br.ibm.com>
2234
2235 * cli-script.c (read_next_line): Add parse_commands argument.
2236 (recurse_read_control_structure): Adapt to new read_next_line
2237 signature.
2238 (read_command_lines): Add parse_commands argument.
2239 (define_command): Adapt to new read_command_lines signature.
2240 (document_command): Likewise.
2241 * breakpoint.c (commands_command): Likewise.
2242 * defs.h (read_command_lines): Adjust function prototype.
2243
2244 2008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
2245
2246 * ada-lang.c (pos_atr): Account for the possibility that the
2247 argument may be a reference.
2248
2249 2008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
2250
2251 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
2252 ('F' format) for @FIX names generated by the loader, retaining only
2253 the minimal symbols (and no partial symbol tables) for these names.
2254 Fixes warning messages about symbols that are found in partial
2255 symbol tables, but not full symbol tables.
2256
2257 2008-08-16 Pedro Alves <pedro@codesourcery.com>
2258
2259 * infrun.c (fetch_inferior_event): Only call normal_stop if not
2260 stopping quietly.
2261
2262 2008-08-15 Luis Machado <luisgpm@br.ibm.com>
2263
2264 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
2265 Include "features/rs6000/powerpc-vsx64.c".
2266 (ppc_supply_vsxregset): New function.
2267 (ppc_collect_vsxregset): New function.
2268 (IS_VSX_PSEUDOREG): New macro.
2269 (IS_EFP_PSEUDOREG): New macro.
2270 (vsx_register_p): New function.
2271 (ppc_vsx_support_p): New function.
2272 (rs6000_builtin_type_vec128): New function.
2273 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
2274 correct names for VSX registers and EFPR registers.
2275 (rs6000_pseudo_register_type): Return correct types for VSX
2276 and EFPR registers.
2277 (rs6000_pseudo_register_reggroup_p): Return correct group for
2278 VSX and EFPR registers.
2279 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
2280 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
2281 (vsx_pseudo_register_read): New function.
2282 (vsx_pseudo_register_write): New function.
2283 (efpr_pseudo_register_read): New function.
2284 (efpr_pseudo_register_write): New function.
2285 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
2286 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
2287 (rs6000_gdbarch_init): Declare have_vsx.
2288 Initialize new upper half VSX registers.
2289 Initialize VSX-related and EFPR-related pseudo-registers variables.
2290 Adjust the number of pseudo registers accordingly.
2291
2292 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
2293 and SIZEOF_VSRREGS.
2294 (gdb_vsxregset_t): New type.
2295 (have_ptrace_getsetvsxregs): New variable.
2296 (fetch_vsx_register): New function.
2297 (fetch_register): Handle VSX registers.
2298 (fetch_vsx_registers): New function.
2299 (fetch_ppc_registers): Handle VSX registers.
2300 (store_ppc_registers): Handle VSX registers.
2301 (store_vsx_register): New function.
2302 (store_register): Handle VSX registers.
2303 (store_vsx_registers): New function.
2304 (ppc_linux_read_description): Handle VSX-enabled inferiors.
2305 (gdb_vsxregset_t): New type.
2306 (supply_vsxregset): New function.
2307 (fill_vsxregset): New function.
2308
2309 * ppc-tdep.h (vsx_register_p): New prototype.
2310 (vsx_support_p): New prototype.
2311 (ppc_vsr0_regnum): New variable.
2312 (ppc_vsr0_upper_regnum): Likewise.
2313 (ppc_efpr0_regnum): Likewise.
2314 (ppc_builtin_type_vec128): New type.
2315 (ppc_num_vsrs): New constant.
2316 (ppc_num_vshrs): New constant.
2317 (ppc_num_efprs): Likewise.
2318 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
2319 (ppc_supply_vsxregset): New prototype.
2320 (ppc_collect_vsxregset): New prototype.
2321
2322 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
2323 Include "features/rs6000/powerpc-vsx64l.c".
2324 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
2325 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
2326 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
2327 (ppc_linux_regset_from_core_section): Handle VSX core section.
2328 (ppc_linux_core_read_description): Support VSX-enabled core files.
2329
2330 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
2331 Declare tdesc_powerpc_vsx64l
2332
2333 * corelow.c (get_core_register_section): Support VSX-enabled
2334 core files.
2335
2336 * features/rs6000/power-vsx.xml: New VSX descriptions.
2337 * features/rs6000/powerpc-vsx32.xml: New file.
2338 * features/rs6000/powerpc-vsx32l.xml: New file.
2339 * features/rs6000/powerpc-vsx64.xml: New file.
2340 * features/rs6000/powerpc-vsx64l.xml: New file.
2341 * features/rs6000/powerpc-vsx32.c: New file (generated).
2342 * features/rs6000/powerpc-vsx32l.c: New file (generated).
2343 * features/rs6000/powerpc-vsx64.c: New file (generated).
2344 * features/rs6000/powerpc-vsx64l.c: New file (generated).
2345 * features/Makefile: Updated with new descriptions.
2346 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
2347 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
2348
2349 2008-08-15 Vladimir Prus <vladimir@codesourcery.com>
2350
2351 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
2352 call linux_target twice.
2353
2354 2008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
2355
2356 * nto-tdep.c (lm_info): Updated struct lm_info definition from
2357 solib-svr4.c
2358 (LM_ADDR): Use l_addr if available; if not, use link map and set
2359 l_addr.
2360
2361 2008-08-14 Tom Tromey <tromey@redhat.com>
2362
2363 * macrocmd.c (macro_define_command): Check for NULL argument.
2364 (macro_undef_command): Likewise.
2365
2366 2008-08-14 Pedro Alves <pedro@codesourcery.com>
2367
2368 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
2369
2370 2008-08-13 Pedro Alves <pedro@codesourcery.com>
2371
2372 * breakpoint.c (always_inserted_auto, always_inserted_on)
2373 (always_inserted_off, always_inserted_enums): New.
2374 (always_inserted_mode): Change type to char* and point to
2375 always_inserted_auto.
2376 (show_always_inserted_mode): In auto mode, also show the current
2377 effect of the option.
2378 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
2379 (_initialize_breakpoint): Make the "set breakpoints
2380 always-inserted" command an enum command. Extend help to describe
2381 the auto mode.
2382
2383 2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2384
2385 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
2386 query valid) bit. Ignore bits outside the condition field.
2387 (info_spu_proxydma_command): Ignore bits outside the field.
2388
2389 2008-08-12 Michael Snyder <msnyder@vmware.com>
2390
2391 * MAINTAINERS: Update my email address.
2392
2393 2008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
2394
2395 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
2396
2397 2008-08-12 Pedro Alves <pedro@codesourcery.com>
2398
2399 Add no-ack mode to the remote protocol --- optionally stop ACKing
2400 packets and responses when we have a reliable communication
2401 medium.
2402
2403 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
2404
2405 * remote.c (struct remote_state): Add noack_mode field.
2406 (PACKET_QStartNoAckMode): New.
2407 (remote_start_remote): Don't any outstanding packet here.
2408 (remote_open_1): Clear noack_mode. Ack any outstanding packet
2409 here. Activate noack mode if requested.
2410 (remote_protocol_features): Add QStartNoAckMode.
2411 (remote_open_1):
2412 (putpkt_binary): Don't send ack in noack mode.
2413 (read_frame): Don't recompute the checksum in noack mode.
2414 (getpkt_sane): Skip sending ack if in noack mode.
2415 (_initialize_remote): Add set/show remote noack mode.
2416 * NEWS: Note the new features.
2417
2418 2008-08-11 Kevin Buettner <kevinb@redhat.com>
2419
2420 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
2421 New macros.
2422 (rs6000_skip_main_prologue): New function.
2423 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
2424
2425 2008-08-11 Sandra Loosemore <sandra@codesourcery.com>
2426
2427 * MAINTAINERS (Write After Approval): Add self.
2428
2429 2008-08-11 Stan Shebs <stan@codesourcery.com>
2430
2431 ARM BE8 support.
2432 * disasm.c (gdb_disassemble_info): Set endian_code.
2433 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
2434 * gdbarch.h, gdbarch.c: Regenerate.
2435 * arch-utils.c (initialize_current_architecture): Set the
2436 default byte_order_for_code.
2437 (gdbarch_info_init): Ditto.
2438 (gdbarch_info_fill): Ditto.
2439 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
2440 (thumb_analyze_prologue): Swap halfword if code endianness is
2441 different from general endianness.
2442 (arm_skip_prologue): Similarly.
2443 (arm_scan_prologue): Ditto.
2444 (thumb_get_next_pc): Ditto.
2445 (arm_get_next_pc): Ditto.
2446 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
2447 choose correct endianness for breakpoints.
2448
2449 2008-08-10 Pedro Alves <pedro@codesourcery.com>
2450
2451 * bsd-kvm.c: Include "gdbthread.h".
2452 (bsd_kvm_ptid): New.
2453 (bsd_kvm_open): Add a main thread.
2454 (bsd_kvm_close): Delete it.
2455 (bsd_kvm_thread_alive): New.
2456 (bsd_kvm_pid_to_str): New.
2457 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
2458 bsd_kvm_pid_to_str.
2459 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
2460
2461 2008-08-09 Pedro Alves <pedro@codesourcery.com>
2462
2463 * buildsym.c (start_subfile): Properly cast sentinel in concat
2464 call.
2465 * cp-name-parser.y: Include "config.h".
2466 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
2467 concat call.
2468 * gdb_select.h: Include sys/time.h if sys/select.h is not
2469 available.
2470
2471 2008-08-09 Pedro Alves <pedro@codesourcery.com>
2472
2473 * go32-nat.c: Include "gdbthread.h".
2474 (go32_stop, go32_kill_inferior): Delete the main thread.
2475 (go32_create_inferior): Add it.
2476 (go32_thread_alive, go32_pid_to_str): New.
2477 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
2478
2479 2008-08-09 Pedro Alves <pedro@codesourcery.com>
2480
2481 * go32-nat.c (fetch_register, store_register): Pass the regcache
2482 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
2483 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
2484 (struct seg_descr, struct seg_descr): pack the whole struct
2485 instead of each member individually.
2486
2487 2008-08-09 Andreas Schwab <schwab@suse.de>
2488
2489 * python/python.c (_initialize_python): Use unabbreviated commands
2490 in prefix name.
2491
2492 2008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
2493
2494 * Makefile.in (stamp-h): Also create .deps.
2495
2496 2008-08-09 Tom Tromey <tromey@redhat.com>
2497
2498 * Makefile.in (generated_files): Add GNULIB_H.
2499
2500 2008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2501
2502 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
2503 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
2504 Revise comment.
2505 (pa64_current_sos): Remove map private warning warning.
2506 * solib-som.c: Include string.h and sys/utsname.h.
2507 (get_hpux_major_release): New function.
2508 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
2509 about shared library private mapping on HP-UX 11 and later. Only force
2510 private mapping of shared libraries on HP-UX 10 and earlier.
2511 (link_map_start): Delete warning.
2512
2513 2008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
2514 H.J. Lu <hongjiu.lu@intel.com>
2515 Mark Kettenis <kettenis@gnu.org>
2516
2517 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
2518 (amd64_init_frame_cache): Initialize saved_sp_reg.
2519 (amd64_analyze_stack_align): New.
2520 (amd64_analyze_prologue): Call it.
2521 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
2522 %rip to 8 when halfway aligning the stack.
2523
2524 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
2525 AMD64_R14_REGNUM.
2526
2527 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
2528 saved_sp_reg.
2529 (i386_alloc_frame_cache): Remove stack_align. Initialize
2530 saved_sp_reg to -1.
2531 (i386_analyze_stack_align): Rewrite.
2532 (i386_frame_cache): Use saved_sp_reg if it is valid.
2533
2534 2008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
2535
2536 * target.c: Include "solib.h".
2537 (target_pre_inferior): Call no_shared_libraries.
2538 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
2539 or clear_solib.
2540 (attach_command): Do not call clear_solib.
2541
2542 2008-08-09 Mark Kettenis <kettenis@gnu.org>
2543
2544 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
2545 the %eip register.
2546
2547 2008-08-08 Tom Tromey <tromey@redhat.com>
2548
2549 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
2550 POSTCOMPILE.
2551 (python-utils.o): Likewise.
2552
2553 2008-08-08 Andreas Schwab <schwab@suse.de>
2554
2555 * corefile.c (_initialize_core): Remove spurious paren from set
2556 gnutarget doc string.
2557
2558 2008-08-08 Luis Machado <luisgpm@br.ibm.com>
2559
2560 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
2561 Define PPC_FEATURE_BOOKE.
2562 (ppc_linux_get_hwcap): New function.
2563 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
2564 4-bytes alignment restrictions.
2565 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
2566 positioning of the read/write flags.
2567 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
2568 4-bytes alignment.
2569
2570 2008-08-08 Pedro Alves <pedro@codesourcery.com>
2571
2572 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2573
2574 * win32-nat.c (win32_add_thread): Change thread argument type to
2575 ptid_t. Adjust.
2576 (win32_add_thread): Adjust.
2577 (win32_delete_thread): Change thread argument type to ptid_t.
2578 Adjust.
2579 (win32_fetch_inferior_registers, win32_store_inferior_registers)
2580 (win32_resume, get_win32_debug_event, get_win32_debug_event)
2581 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
2582 (init_win32_ops): Put to_magic last.
2583 (win32_win32_thread_alive): Adjust.
2584
2585 2008-08-08 Pedro Alves <pedro@codesourcery.com>
2586
2587 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
2588 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
2589
2590 2008-08-08 Pedro Alves <pedro@codesourcery.com>
2591
2592 * remote-m32r-sdi.c: Include "gdbthread.h".
2593 (remote_m32r_ptid): New.
2594 (m32r_close): Delete the main thread.
2595 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
2596 main thread.
2597 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
2598 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
2599
2600 2008-08-07 Tom Tromey <tromey@redhat.com>
2601 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2602
2603 * aclocal.m4, configure: Rebuild.
2604 * configure.in: Call ZW_CREATE_DEPDIR,
2605 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
2606 (MAKE, GMAKE): New substs.
2607 * acinclude.m4: Include depstand.m4.
2608 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
2609 COMPILE, POSTCOMPILE, depcomp): New variables.
2610 Remove all _h variables.
2611 Remove many .o targets.
2612 ($(srcdir)/copying.c): avoid backslash-newline after comment
2613 sign (@maintainer_mode_true@).
2614 (HFILES_NO_SRCDIR): Regenerate.
2615 (generated_files): New variable.
2616 (all_gdbtk_cflags): Likewise.
2617 (.c.o): Rewrote.
2618 (init.o, version.o, copying.o): Remove.
2619 (distclean): Remove DEPDIR.
2620 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
2621 printcmd.o, procfs.o, v850ice.o): Rewrite.
2622 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
2623 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
2624 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
2625 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
2626 gdbtk-wrapper.o): Likewise.
2627 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
2628 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
2629 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
2630 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
2631 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
2632 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
2633 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
2634 tui-wingeneral.o, tui-winsource.o): Likewise.
2635 (all_object_files): New variable.
2636 ($(all_object_files)): New target.
2637 Include dependency files, when using GNU Make.
2638
2639 2008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2640
2641 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
2642 the valid bit set. Ensure display order respects partial
2643 order defined by dependency bits.
2644
2645 2008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2646
2647 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
2648 setup.
2649
2650 2008-08-06 Mark Kettenis <kettenis@gnu.org>
2651
2652 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
2653 OpenBSD 4.3.
2654
2655 2008-08-06 Vladimir Prus <vladimir@codesourcery.com>
2656 Tom Tromey <tromey@redhat.com>
2657 Thiago Jung Bauermann <bauerman@br.ibm.com>
2658 Doug Evans <dje@google.com>
2659
2660 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
2661 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
2662 PYTHON_CFLAGS): New.
2663 (python_h, python_internal_h): New.
2664 (cli-script.o): Depend on python.h
2665 (python.o, python-utils.o): New.
2666 * cli/cli-script.c (print_command_lines): Handle python_control.
2667 (execute_control_command): Handle python_control.
2668 (execute_control_command_untraced): New function.
2669 (while_command): Call execute_control_command_untraced.
2670 (if_command): Likewise.
2671 (get_command_line): Remove static attribute.
2672 (read_next_line): Handle "python".
2673 (recurse_read_control_structure): Handle python_control.
2674 (read_command_lines): Handle python_control.
2675 Include python.h.
2676 * cli/cli-script.h (get_command_line): Add prototype.
2677 (execute_control_command_untraced): Likewise.
2678 * configure.ac: Add --with-python.
2679 * defs.h (enum command_control_type) <python_control>: New
2680 constant.
2681 * python/python-internal.h: New file.
2682 * python/python.c: New file.
2683 * python/python.h: New file.
2684 * python/python-utils.c: New file.
2685 * NEWS: Mention Python scripting support and its new commands.
2686
2687 2008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2688
2689 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
2690
2691 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2692
2693 * MAINTAINERS (Write After Approval): Add self.
2694
2695 2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
2696
2697 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
2698 (insert_breakpoint_locations): Likewise.
2699
2700 2008-08-05 Phil Muldoon <pmuldoon@redhat.com>
2701
2702 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
2703 breakpoint.
2704 (set_longjmp_breakpoint): Likewise.
2705
2706 2008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2707
2708 PR build/2490
2709 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
2710 defined.
2711
2712 2008-08-05 Tom Tromey <tromey@redhat.com>
2713
2714 * bcache.c (deprecated_bcache_added): Initialize obstack.
2715 (bcache_xmalloc): Don't initialize obstack.
2716 (bcache_xfree): Conditionally free obstack.
2717 (bcache_memory_used): Update.
2718
2719 2008-08-05 Tom Tromey <tromey@redhat.com>
2720
2721 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
2722 bcache_full.
2723 (append_psymbol_to_list): Accept a const pointer.
2724 (add_psymbol_to_list): Fix const correctness.
2725 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
2726 (bcache_full): Declare.
2727 * bcache.c (bcache_data, deprecated_bcache): Remove.
2728 (bcache): Use bcache_full.
2729 (bcache_full): Rename from deprecated_bcache_added. Change return
2730 type.
2731
2732 2008-08-04 Stan Shebs <stan@codesourcery.com>
2733
2734 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
2735 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
2736 (enable_break): Remove test of BKPT_AT_SYMBOL.
2737
2738 2008-08-02 Keith Seitz <keiths@redhat.com>
2739
2740 * acinclude.m4: Include ../config/tcl.m4 to pick up
2741 standard Tcl configury bits.
2742 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
2743 * configure.ac: Don't check if ../itcl exists when building
2744 gdbtk. It could be installed.
2745 Rewrite gdbtk configury to allow for using system-supplied
2746 Tcl and Tk. Gdbtk no longer requires build-time access to
2747 itcl and itk.
2748 * Makefile.in: Remove everything related to itcl and itk.
2749 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
2750 configure.ac.
2751 Remove v850ice.o build rule.
2752 (ALL_TCL_CFLAGS): New convenience defintion. Change all
2753 gdbtk sources to use it.
2754 * configure: Regenerate.
2755
2756 2008-07-31 Stan Shebs <stan@codesourcery.com>
2757
2758 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
2759
2760 2008-07-30 Stan Shebs <stan@codesourcery.com>
2761
2762 * objfiles.c (TARGET_KEEP_SECTION): Remove.
2763 (add_to_objfile_sections): Remove use.
2764
2765 2008-07-29 Tom Tromey <tromey@redhat.com>
2766
2767 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
2768 (lookup_cmd_composition): Likewise.
2769
2770 2008-07-29 Tom Tromey <tromey@redhat.com>
2771
2772 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
2773 dead code. Fix indentation.
2774
2775 2008-07-29 Stan Shebs <stan@codesourcery.com>
2776
2777 * main.c (captured_main): Remove long-unused #if 0 blocks.
2778
2779 2008-07-28 Tom Tromey <tromey@redhat.com>
2780
2781 * annotate.h (deprecated_annotate_starting_hook): Remove.
2782 (deprecated_annotate_stopped_hook): Remove.
2783 (deprecated_annotate_exited_hook): Remove.
2784 * Makefile.in (annotate.o): Depend on observer_h.
2785 * top.c (deprecated_delete_breakpoint_hook): Remove.
2786 (deprecated_create_breakpoint_hook): Likewise.
2787 (deprecated_modify_breakpoint_hook): Likewise.
2788 * interps.c (clear_interpreter_hooks): Update for removed hooks.
2789 * breakpoint.c (mention): Don't call removed hook.
2790 (delete_breakpoint): Likewise.
2791 (disable_breakpoint): Likewise.
2792 (do_enable_breakpoint): Likewise.
2793 * annotate.c: Include observer.h.
2794 (breakpoint_changed): Change type of argument.
2795 (_initialize_annotate): Register observers.
2796 (deprecated_annotate_starting_hook): Remove.
2797 (deprecated_annotate_stopped_hook): Remove.
2798 (deprecated_annotate_exited_hook): Remove.
2799 (annotate_starting): Update for hook removal.
2800 (annotate_stopped): Likewise.
2801 (annotate_exited): Likewise.
2802 * defs.h (deprecated_delete_breakpoint_hook): Remove.
2803 (deprecated_create_breakpoint_hook): Likewise.
2804 (deprecated_modify_breakpoint_hook): Likewise.
2805
2806 2008-07-28 Tom Tromey <tromey@redhat.com>
2807
2808 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
2809
2810 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2811
2812 * configure.ac: Check for the GNU/Linux ptrace signature.
2813 * configure: Regenerated.
2814
2815 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2816
2817 * linux-nat.c (resume_callback): Add more debugging output.
2818 (linux_nat_has_pending_sigint): New function, based on
2819 linux_nat_has_pending.
2820 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
2821 (stop_wait_callback): Remove flush_mask handling. Honor
2822 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
2823 to recursive calls.
2824 (linux_nat_has_pending, flush_callback): Remove.
2825 (linux_nat_filter_event): Check for ignore_sigint.
2826 (linux_nat_wait): Remove flush_mask support and call to
2827 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
2828 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
2829
2830 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2831
2832 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
2833 report events from resumed threads.
2834
2835 2008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2836
2837 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
2838 (mips_linux_init_abi): Set tdep->syscall_next_pc.
2839 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
2840 mips-tdep.h.
2841 (mips32_next_pc): Handle the syscall instruction.
2842 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
2843 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
2844
2845 2008-07-26 Tom Tromey <tromey@redhat.com>
2846
2847 PR gdb/1158:
2848 * valops.c (value_struct_elt): Treat function-valued field as a
2849 static method.
2850
2851 2008-07-26 Tom Tromey <tromey@redhat.com>
2852
2853 PR gdb/1136:
2854 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
2855 longer tokens first.
2856
2857 2008-07-26 Vladimir Prus <vladimir@codesourcery.com>
2858
2859 Kill cmd_async_ok.
2860 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
2861 (get_cmd_async_ok): Remove.
2862 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
2863 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
2864 * infcmd.c (_initialize_infcmd): Likewise.
2865 * thread.c (_initialize_thread): Likewise.
2866
2867 2008-07-25 Joseph Myers <joseph@codesourcery.com>
2868
2869 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
2870 128-bit long doubles in even-odd pairs of FPRs. Do not
2871 right-align float arguments for big-endian.
2872 (mips_n32n64_return_value): Apply return value convention for
2873 structs containing one or two floating-point values to soft-float
2874 as well as hard-float. Handle 128-bit long doubles in such
2875 structs.
2876 (mips_o32_push_dummy_call): Only skip one integer register for a
2877 float argument passed in an FPR.
2878
2879 2008-07-25 Tom Tromey <tromey@redhat.com>
2880
2881 * tui/tui-hooks.c: Include observer.h.
2882 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
2883 Remove.
2884 (tui_bp_created_observer, tui_bp_deleted_observer,
2885 tui_bp_modified_observer): New globals.
2886 (tui_install_hooks): Use observers, not events.
2887 (tui_remove_hooks): Likewise.
2888 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
2889 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
2890 globals.
2891 (breakpoint_notify): Check mi_can_breakpoint_notify.
2892 (breakpoint_hooks): Remove.
2893 (mi_cmd_break_insert): Attach observers. Don't use events.
2894 * tracepoint.c: Include observer.h, not gdb-events.h.
2895 (tracepoint_operation, trace_pass_command): Notify observer.
2896 * interps.c: Don't include gdb-events.h.
2897 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
2898 * gdbarch.c: Rebuild.
2899 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
2900 (deprecated_current_gdbarch_select_hack): Notify observer.
2901 * breakpoint.h: Don't include gdb-events.h.
2902 * breakpoint.c: Don't include gdb-events.h.
2903 (condition_command): Notify observer.
2904 (commands_command): Likewise.
2905 (commands_from_control_command): Likewise.
2906 (mention, delete_breakpoint, set_ignore_count): Likewise.
2907 (disable_breakpoint, do_enable_breakpoint): Likewise.
2908 * Makefile.in (gdb_events_h): Remove.
2909 (breakpoint_h): Update.
2910 (COMMON_OBS): Remove gdb-events.o.
2911 (gdb-events.o): Remove.
2912 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
2913 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
2914 * gdb-events.c: Remove.
2915 * gdb-events.h: Remove.
2916 * gdb-events.sh: Remove.
2917
2918 2008-07-24 Pedro Alves <pedro@codesourcery.com>
2919
2920 * remote.c (remote_threads_extra_info): Don't query the remote
2921 server about info on the internally added main thread.
2922
2923 2008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
2924
2925 * nto-procfs.c (procfs_attach): Populate initial thread list.
2926 (procfs_wait): Return new pid, built from the inferior status.
2927
2928 2008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
2929
2930 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
2931 * configure: Regenerate.
2932
2933 2008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
2934
2935 * nto-procfs.c (procfs_xfer_memory): Changed signature.
2936 (procfs_resume): Workaround for dereferencing type-punned pointer
2937 warning.
2938 * nto-tdep.c (nto_parse_redirection): Change signature to be const
2939 correct.
2940 * nto-tdep.h (nto_parse_redirection): Likewise.
2941
2942 2008-07-21 Stan Shebs <stan@codesourcery.com>
2943
2944 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
2945 * gdbarch.sh: Adjust comment to refer to
2946 in_solib_dynsym_resolve_code().
2947 * gdbarch.h, gdbarch.c: Update.
2948 * solib-osf.c: Ditto.
2949 * infrun.c: Ditto.
2950 (handle_inferior_event): Use in_solib_dynsym_resolve_code
2951 unconditionally.
2952 * config/mips/nm-irix5.h: Remove undef of
2953 IN_SOLIB_DYNSYM_RESOLVE_CODE.
2954
2955 2008-07-21 Tom Tromey <tromey@redhat.com>
2956
2957 * symfile.c (reread_symbols): Don't pass argument to observer.
2958 * exec.c (exec_file_attach): Don't pass argument to observer.
2959 * ada-lang.c (ada_executable_changed_observer): Remove argument.
2960 * symtab.c (symtab_observer_executable_changed): Remove argument.
2961 * observer.sh: Handle functions with no arguments.
2962
2963 2008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
2964 Chris Demetriou <cgd@google.com>
2965
2966 * elfread.c (elf_symfile_segments): Fix the check that each loadable
2967 section fits within an ELF segment to handle ELF segments that hit
2968 the end of the address space.
2969
2970 2008-07-20 Chris Demetriou <cgd@google.com>
2971
2972 * MAINTAINERS (Write After Approval): Add self.
2973
2974 2008-07-18 Tom Tromey <tromey@redhat.com>
2975
2976 PR gdb/855:
2977 * NEWS: Add entry for macro commands.
2978 * Makefile.in (macrocmd.o): Add gdb_string.h.
2979 * macroscope.h (user_macro_scope): Declare.
2980 (default_macro_scope): Update documentation.
2981 (macro_user_macros): Declare.
2982 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
2983 Use user_macro_scope.
2984 (null_macro_lookup): Remove.
2985 * macrotab.h (macro_callback_fn): Declare.
2986 (macro_for_each): Likewise.
2987 (macro_allow_redefinitions): Likewise.
2988 * macrotab.c (foreach_macro): New function
2989 (macro_for_each): Likewise.
2990 (struct macro_table) <redef_ok>: New field.
2991 (macro_allow_redefinitions): New function.
2992 (new_macro_table): Update.
2993 (macro_define_function): Likewise.
2994 (macro_define_object): Likewise.
2995 * macroscope.c (user_macro_scope): New function.
2996 (default_macro_scope): Use it.
2997 (macro_user_macros): New global.
2998 (standard_macro_lookup): Look in macro_user_macros.
2999 (_initialize_macroscope): New function.
3000 * macroexp.h (macro_is_whitespace, macro_is_digit,
3001 macro_is_identifier_nondigit): Declare.
3002 * macroexp.c (macro_is_whitespace): Rename. No longer static.
3003 (macro_is_digit): Likewise.
3004 (macro_is_identifier_nondigit): Likewise.
3005 (get_identifier): Update.
3006 (get_pp_number): Likewise.
3007 (get_token): Likewise.
3008 * macrocmd.c (skip_ws): New function.
3009 (extract_identifier): Likewise.
3010 (free_macro_definition_ptr): Likewise.
3011 (user_macros): Remove.
3012 (macro_define_command): Implement.
3013 (_initialize_macrocmd): Update.
3014 (macro_undef_command): Implement.
3015 (print_one_macro): New function.
3016 (macro_list_command): Implement.
3017
3018 2008-07-18 Joseph Myers <joseph@codesourcery.com>
3019
3020 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
3021 in BFD ELF check.
3022 * configure: Regenerate.
3023
3024 2008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
3025
3026 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
3027
3028 2008-07-15 Andreas Schwab <schwab@suse.de>
3029
3030 * valops.c (value_cast_pointers): Follow typedefs when checking
3031 result of coercion.
3032
3033 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3034
3035 * block.c (block_function): Renamed to ...
3036 (block_linkage_function): ... this. All callers changed.
3037 * block.h (block_function): Renamed to ...
3038 (block_linkage_function): ... this.
3039
3040 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3041
3042 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
3043
3044 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3045
3046 * frame.c (frame_sp_unwind): Delete.
3047 (get_frame_sp): Do not use it.
3048 * frame.h (frame_sp_unwind): Delete prototype.
3049
3050 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3051
3052 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
3053
3054 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3055
3056 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
3057 * frame.c (frame_unwind_address_in_block): Delete.
3058 (get_frame_address_in_block): Do not use it. Check the type
3059 of the next frame first.
3060 (frame_cleanup_after_sniffer): Update comment.
3061 * frame.h (frame_unwind_address_in_block): Delete prototype.
3062 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
3063
3064 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3065
3066 * frame.c (frame_func_unwind): Delete.
3067 (get_frame_func): Do not use it.
3068 * frame.h (frame_func_unwind): Delete prototype.
3069 * hppa-tdep.c (hppa_frame_cache): Update comment.
3070 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
3071
3072 2008-07-14 Stan Shebs <stan@codesourcery.com>
3073
3074 * remote-sim.c (init_gdbsim_ops): Remove
3075 TARGET_REDEFINE_DEFAULT_OPS.
3076
3077 2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
3078
3079 * findvar.c (read_var_value): Remove unused variable.
3080
3081 2008-07-15 Luis Machado <luisgpm@br.ibm.com>
3082
3083 * infrun.c (handle_inferior_event): Tag threads as stopped
3084 before inserting breakpoints.
3085
3086 2008-07-15 Hui Zhu <teawater@gmail.com>
3087
3088 * MAINTAINERS: Added myself to section Write After Approval.
3089
3090 2008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
3091
3092 PR gdb/2477
3093 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
3094
3095 2008-07-14 Pedro Alves <pedro@codesourcery.com>
3096
3097 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
3098 (i386_dicos_push_dummy_code): New.
3099 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
3100 Register i386_dicos_push_dummy_code.
3101
3102 2008-07-14 Markus Deuling <deuling@de.ibm.com>
3103
3104 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
3105 (mips_n32n64_push_dummy_call, mips_o64_return_value)
3106 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
3107
3108 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
3109 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
3110 (mips_n32n64_fp_arg_chunk_p): Update caller.
3111
3112 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
3113 (mips_n32n64_push_dummy_call): Update caller.
3114
3115 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
3116 current_gdbarch.
3117 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3118 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
3119
3120
3121 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
3122 current_gdbarch.
3123 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
3124 (mips_o64_push_dummy_call): Update caller.
3125
3126 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
3127 (fp_register_arg_p, mips_dump_tdep): Update caller.
3128
3129 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
3130 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
3131
3132 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
3133 current_gdbarch.
3134 (mips32_scan_prologue): Update caller.
3135
3136 (heuristic_proc_start): Add gdbarch as parameter. Replace
3137 current_gdbarch.
3138 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
3139
3140 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
3141 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
3142 the current architecture. Update call to getregs_supplies.
3143 (getregs_supplies): Add gdbarch as parameter and replace
3144 current_gdbarch.
3145
3146 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
3147 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
3148 NBSD_MIPS_JB_ELEMENT_SIZE.
3149 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
3150 replace current_gdbarch.
3151
3152 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
3153 current_gdbarch.
3154 (mips_fetch_registers, mips_store_registers): Update call
3155 to mips_map_regno.
3156 (mips_load): Use get_regcache_arch to get at the current_architecture
3157 and replace current_gdbarch.
3158
3159 2008-07-13 Pedro Alves <pedro@codesourcery.com>
3160
3161 * thread.c (restore_selected_frame): On fail to restore, select
3162 the innermost frame, and don't crash when warning the user.
3163
3164 2008-07-13 Hui Zhu <teawater@gmail.com>
3165
3166 * symtab.c (expand_line_sal): Fix a memory leak.
3167
3168 2008-07-13 Pedro Alves <pedro@codesourcery.com>
3169
3170 * utils.c (struct continuation): Define as inheriting struct
3171 cleanup.
3172 (add_continuation, do_all_continuations)
3173 (discard_all_continuations, add_intermediate_continuation)
3174 (do_all_intermediate_continuations)
3175 (discard_all_intermediate_continuations): Adjust.
3176
3177 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3178
3179 Skip varobj in running threads.
3180 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
3181 thread is not stopped, skip the varobj.
3182 * Makefile.in: Update dependencies.
3183
3184 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3185
3186 Enable all commands while inferiour is running
3187 * mi/mi-main.c (mi_cmd_execute): Don't check if
3188 inferiour is executing.
3189
3190 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3191
3192 Allow all CLI command even if target is executing.
3193 * gdb/top.c (execute_command_1): Don't check if the inferiour
3194 is running.
3195
3196 2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
3197
3198 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
3199 Fix printing of frame, when frame is wrong.
3200
3201 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3202
3203 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
3204 backchain is unreadable.
3205
3206 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
3207
3208 * spu-linux-nat.c: Include "gdbthread.h".
3209 (spu_child_post_startup_inferior): Register main thread.
3210 (spu_child_post_attach): Likewise.
3211 * Makefile.in (spu-linux-nat.o): Update dependencies.
3212
3213 2008-07-12 Pedro Alves <pedro@codesourcery.com>
3214
3215 Rewrite continuations internals on top of cleanups and plug
3216 continuation arguments leaks.
3217
3218 * defs.h (struct continuation): Make it opaque.
3219 (add_continuation, add_intermediate_continuation): Drop the int
3220 argument of the continuation hook argument. Add
3221 continuation_free_args argument.
3222 (do_all_continuations, do_all_intermediate_continuations): Drop
3223 the error_p argument.
3224
3225 * utils.c (add_continuation): Drop the int argument of the
3226 continuation hook argument. Add continuation_free_args argument.
3227 Reimplement on top of cleanups.
3228 (do_all_continuations): Drop error argument. Reimplement on top
3229 of cleanups.
3230 (discard_all_continuations): Reimplement on top of cleanups.
3231 (add_intermediate_continuation): Drop the int argument of the
3232 continuation hook argument. Add continuation_free_args argument.
3233 Reimplement on top of cleanups.
3234 (do_all_intermediate_continuations): Drop error argument.
3235 Reimplement on top of cleanups.
3236 (discard_all_intermediate_continuations): Reimplement on top of
3237 cleanups.
3238
3239 * breakpoint.c (until_break_command_continuation): Drop error
3240 argument. Add xfree as continuation argument deleter.
3241
3242 * inf-loop.c (inferior_event_handler): On error, discard all
3243 continuations. Adjust to new do_all_intermediate_continuations
3244 and do_all_continuations interfaces.
3245
3246 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
3247 Pass xfree as continuation argument deleter.
3248 (finish_command_continuation): Drop error_p argument. Adjust.
3249 (finish_command_continuation_free_arg): New.
3250 (finish_command): Pass finish_command_continuation_free_arg as
3251 continuation argument deleter. Adjust to new do_all_continuations
3252 interfaces.
3253 (attach_command_continuation): Drop error_p argument.
3254 (attach_command_continuation_free_args): New.
3255 (attach_command): Pass attach_command_continuation_free_args as
3256 continuation argument deleter.
3257
3258 * interps.c (interp_set): Adjust to new do_all_continuations
3259 interfaces.
3260
3261 * event-top.c (stdin_event_handler): In error, also discard the
3262 intermediate continuations.
3263
3264 2008-07-12 Pedro Alves <pedro@codesourcery.com>
3265
3266 Replace struct continuation_args by void* and per command structs.
3267
3268 * top.c (execute_command): Remove unused arg1 and arg2 locals.
3269
3270 * breakpoint.c (struct until_break_command_continuation_args):
3271 New.
3272 (until_break_command_continuation): Take a void* instead of a
3273 continuations_arg. Adjust.
3274 (until_break_command): Adjust to use struct
3275 until_break_command_continuation_args instead of struct
3276 continuation_arg.
3277
3278 * infcmd.c (struct step_1_continuation_args): New.
3279 (step_1_continuation): Take a void* instead of a
3280 continuations_arg. Adjust to use struct step_1_continuation_args.
3281 (step_once): Adjust to use struct step_1_continuation_args.
3282
3283 (struct finish_command_continuation_args): New.
3284 (finish_command_continuation): Take a void* instead of a
3285 continuations_arg. Adjust to use struct
3286 finish_command_continuation_args.
3287 (finish_command): Adjust to use struct
3288 finish_command_continuation_args.
3289 (struct attach_command_continuation_args): New.
3290 (attach_command_continuation): Take a void* instead of a
3291 continuations_arg. Adjust to use struct
3292 attach_command_continuation_args.
3293 (attach_command): Adjust to use struct
3294 attach_command_continuation_args.
3295
3296 * defs.h (struct continuation_arg): Delete.
3297 (struct continuation): Replace the struct continuation_arg*
3298 parameter of continuation_hook by a void*. Replace "arg_list"
3299 member by a new "args" member with void* type.
3300 (add_continuation, add_intermediate_continuation): Replace struct
3301 continuation_arg type usages by void* usages.
3302
3303 * utils.c (add_continuation, do_all_continuations)
3304 (add_intermediate_continuation)
3305 (do_all_intermediate_continuations): Replace struct
3306 continuation_arg type usages by void* usages. Pass "args" instead
3307 of "arg_list".
3308
3309 2008-07-12 Pedro Alves <pedro@codesourcery.com>
3310
3311 * infrun.c (struct thread_stepping_state): Delete sal member.
3312 (init_thread_stepping_state): Add local sal. Use it instead of
3313 tss->sal.
3314 (handle_inferior_event): New local stop_pc_sal. Use it instead of
3315 tss->sal.
3316 (step_into_function): Add local stop_func_sal. Use it instead of
3317 tss->sal.
3318
3319 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3320
3321 Implement -exec-continue/-exec-interrupt --all.
3322 * infcmd.c (continue_1): New, extracted from
3323 (continue_command): ...here.
3324 (interrupt_target_1): New, extracted from
3325 (interrupt_target_command): ...here.
3326 * inferior.h (continue_1, interrupt_target_1): New.
3327 * mi/mi-main.c (mi_cmd_exec_continue)
3328 (mi_cmd_exec_interrupt): Handle --all.
3329
3330 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3331
3332 Implement --thread and --frame.
3333 * gdbthread.h (find_thread_id): Declare.
3334 * thread.c (find_thread_id): Make non-static.
3335 * mi/mi-main.c (mi_cmd_execute): Switch to the right
3336 thread and frame, if necessary.
3337 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
3338 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
3339
3340 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3341
3342 * infrun.c (resume): Discard cleanups on early exit path.
3343
3344 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3345
3346 * infrun.c (normal_stop): For MI, report which threads
3347 were stopped.
3348
3349 2008-07-12 Vladimir Prus <vladimir@codesourcery.com>
3350
3351 Report thread state in -thread-info output.
3352 * thread.c (print_thread_info): Add new field "state".
3353
3354 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3355
3356 * infrun.c (handle_inferior_event): Also ignore a
3357 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
3358
3359 2008-07-11 Tom Tromey <tromey@redhat.com>
3360
3361 * completer.c (complete_line_internal): New function, from
3362 complete_line. Add 'for_help' parameter.
3363 (complete_line): Use it.
3364 (command_completer): Move later. Rewrite.
3365
3366 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3367
3368 * thread.c (thread_apply_command): Move making the cleanup out of
3369 the loop.
3370
3371 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3372
3373 Exited threads.
3374
3375 * thread.c (enum thread_state): New.
3376 (thread_state main_thread_running): Delete, in favor of...
3377 (thread_state main_thread_state): ... this. Update throughout.
3378 (clear_thread_inferior_resources): New, split from free_thread.
3379 (free_thread): Call clear_thread_inferior_resources.
3380 (init_thread_list): Set main thread to stopped state.
3381 (add_thread_silent): Take care of PTID reuses.
3382 (delete_thread): If deleting inferior_ptid or a thread with
3383 refcount > 0, mark it as exited, but still keep it in the list.
3384 Only notify of thread exits, if we haven't done so yet.
3385 (iterate_over_threads): Make it safe to delete threads while
3386 iterating over them.
3387 (do_captured_list_thread_ids): Don't account for exited threads.
3388 (thread_alive): Check for the THREAD_EXITED state, and don't set
3389 ptid to -1 on exited threads.
3390 (set_running): Update to account for extra possible states.
3391 (is_thread_state): New.
3392 (is_stopped, is_exited): New.
3393 (is_running): Implement in terms of is_thread_state.
3394 (any_running): Update.
3395 (print_thread_info): Update. Account for exited threads. Don't
3396 warn about missed frame restoring here, its done in the cleanup.
3397 (switch_to_thread): Don't read from a thread that has gone.
3398 (restore_current_thread): In non-stop mode, do a full context
3399 switch.
3400 (restore_selected_frame): Add a frame_level argument. Rewrite.
3401 (struct current_thread_cleanup): Add selected_frame_level and
3402 was_stopped members.
3403 (do_restore_current_thread_cleanup): Check if thread was stopped
3404 and still is, and if the target has registers, stack and memory
3405 before restoring the selected frame. Don't delete the cleanup
3406 argument here.
3407 (restore_current_thread_cleanup_dtor): New.
3408 (make_cleanup_restore_current_thread): Remove all arguments.
3409 Rewrite.
3410 (thread_apply_all_command): Update. Prune threads.
3411 (thread_apply_command): Update.
3412 (thread_command): Account for currently selected exited thread.
3413 (do_captured_thread_select): Check for a running thread. Prune
3414 threads.
3415 (_initialize_thread): Make "info threads", "thread", "thread
3416 apply", and "thread apply all" appliable without a selected thread.
3417 * gdbthread.h (struct thread_info): Replace running_ by state_.
3418 Add refcount.
3419 (is_exited, is_stopped): Declare.
3420 (make_cleanup_restore_current_thread): Remove all arguments.
3421 * infrun.c: Include "event-top.h".
3422 (fetch_inferior_event): In non-stop mode, restore selected thread
3423 and frame after handling the event and running breakpoint
3424 commands. Display GDB prompt if needed.
3425 (normal_stop): In non-stop mode, don't print thread switching
3426 notice.
3427 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
3428 (get_cmd_no_selected_thread_ok): New.
3429 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
3430 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
3431 Declare.
3432 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
3433 no-selected-thread ok.
3434 * top.c (execute_command): Check for non no-selected-thread-ok
3435 commands.
3436 * linux-nat.c (struct saved_ptids, threads_to_delete)
3437 (record_dead_thread, prune_lwps): Delete.
3438 (exit_lwp): Unconditionally delete thread.
3439 (linux_nat_resume): Remove prune_lwps call.
3440 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
3441 of is_running. Adjust to make_cleanup_restore_current_thread
3442 interface change.
3443 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
3444 selected thread has exited.
3445 * inf-loop.c (inferior_event_handler): Don't display the prompt
3446 here.
3447 * varobj.c (c_value_of_root): Update.
3448 * defs.h (make_cleanup_dtor): Declare.
3449 * utils.c (make_cleanup_dtor): New.
3450
3451 * Makefile.in (infrun.o): Depend on $(event_top_h).
3452
3453 2008-07-11 Pedro Alves <pedro@codesourcery.com>
3454
3455 Add "continue -a" and "interrupt -a" options for non-stop mode.
3456
3457 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
3458 (continue_command): Add "-a" option.
3459 (interrupt_target_command): Add "-a" option.
3460 (_initialize_infcmd): Add extend help of continue and interrupt
3461 command to mention the new "-a" option. Mark "continue" async ok.
3462
3463 2008-07-10 Doug Evans <dje@google.com>
3464
3465 Add "set print symbol-loading on|off".
3466 * NEWS: Document new option.
3467 * symfile.h (print_symbol_loading): Declare.
3468 * symfile.c (print_symbol_loading): New global.
3469 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
3470 from ..." if print_symbol_loading.
3471 (_initialize_symfile): Add set/show print symbol-loading.
3472 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
3473 if print_symbol_loading.
3474
3475 2008-07-10 Pedro Alves <pedro@codesourcery.com>
3476
3477 Non-stop linux native.
3478
3479 * linux-nat.c (linux_test_for_tracefork): Block events while we're
3480 here.
3481 (get_pending_status): Implement non-stop mode.
3482 (linux_nat_detach): Stop threads before detaching.
3483 (linux_nat_resume): In non-stop mode, always resume only a single
3484 PTID.
3485 (linux_handle_extended_wait): On a clone event, in non-stop mode,
3486 add new lwp to GDB's thread table, and mark as running, executing
3487 and stopped appropriately.
3488 (linux_nat_filter_event): Don't assume there are other running
3489 threads when a thread exits.
3490 (linux_nat_wait): Mark the main thread as running and executing.
3491 In non-stop mode, don't stop all lwps.
3492 (linux_nat_kill): Stop lwps before killing them.
3493 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
3494 alive.
3495 (send_sigint_callback): New.
3496 (linux_nat_stop): New.
3497 (linux_nat_add_target): Set to_stop to linux_nat_stop.
3498
3499 * linux-nat.h (thread_db_attach_lwp): Declare.
3500
3501 * linux-thread-db.c (thread_get_info_callback): Check for new
3502 threads if we have none.
3503 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
3504 stopped lwp. Check for new threads if we have none.
3505 (thread_db_attach_lwp): New.
3506 (thread_db_init): Set proc_handle.pid to inferior_ptid.
3507 (check_event): Set proc_handle.pid to the stopped lwp.
3508 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
3509 lwp available, bail out if there is none.
3510
3511 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
3512 PTRACE_KILL.
3513
3514 2008-07-10 Kevin Buettner <kevinb@redhat.com>
3515
3516 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
3517 `current_pc' from CORE_ADDR to ULONGEST.
3518
3519 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
3520 gdbsim_stop().
3521
3522 2008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 * NEWS (New commands): Mention "set disable-randomization".
3525 * configure.ac: Add check for HAVE_PERSONALITY and
3526 HAVE_DECL_ADDR_NO_RANDOMIZE.
3527 * configure, config.in: Regenerate.
3528 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
3529 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
3530 ADDR_NO_RANDOMIZE.
3531 (disable_randomization, show_disable_randomization)
3532 (set_disable_randomization): New.
3533 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
3534 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
3535 variable DISABLE_RANDOMIZATION.
3536 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
3537 DISABLE_RANDOMIZATION.
3538
3539 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3540
3541 Adjust all targets to new target_stop interface.
3542
3543 * gnu-nat.c (gnu_stop): Add ptid argument.
3544 * go32-nat.c (go32_stop): Add ptid argument.
3545 (go32_create_inferior): Pass inferior_ptid to go32_stop.
3546 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
3547 * monitor.c (monitor_stop): Add ptid argument.
3548 (monitor_open): Pass inferior_ptid to monitor_stop.
3549 (monitor_interrupt): Pass inferior_ptid to target_stop.
3550 (monitor_stop): Add ptid argument.
3551 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
3552 (procfs_create_inferior): Add ptid argument.
3553 * procfs.c (procfs_stop): Add ptid argument.
3554 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
3555 * remote-sim.c (gdbsim_stop): Add ptid argument.
3556 * sol-thread.c (sol_thread_stop): Add ptid argument.
3557 * win32-nat.c (win32_stop): Add ptid argument.
3558
3559 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3560
3561 Non-stop inferior control.
3562
3563 * infrun.c (resume): In non-stop mode, always resume just one
3564 thread.
3565 (proceed): Don't call prepare_to_proceed in non-stop mode.
3566 (fetch_inferior_event): In non-stop mode, switch context before
3567 handling the event.
3568 (error_is_running, ensure_not_running): New.
3569 (handle_inferior_event): In non-stop mode: Mark only the event
3570 thread as stopped. Require that the target module manages adding
3571 threads to the thread list. Assert that there isn't a
3572 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
3573 (normal_stop): Only mark not-running if inferior hasn't exited.
3574 In non-stop mode, only mark the event thread.
3575
3576 * thread.c:Include "cli/cli-decode.h".
3577 (print_thread_info): Don't read from a running thread.
3578 Output "(running)" if thread is running.
3579 (switch_to_thread): Don't read stop_pc if thread is executing.
3580 (do_restore_current_thread_cleanup): Don't write to a running
3581 thread.
3582 (thread_apply_all_command): Don't read from a running thread. In
3583 non-stop mode, do a full context-switch instead of just switching
3584 threads.
3585 (thread_apply_command): In non-stop mode, do a full context-switch
3586 instead of just switching threads.
3587 (do_captured_thread_select): Likewise. Inform user if selected
3588 thread is running.
3589 (_initialize_thread): Mark "info threads" and "thread" and
3590 async_ok.
3591
3592 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
3593 unregister the target from the event loop.
3594
3595 * infcmd.c (continue_command, step_1, jump_command)
3596 (signal_command): Ensure the selected thread isn't running.
3597 (interrupt_target_command): In non-stop mode, interrupt only the
3598 selected thread.
3599
3600 * inferior.h (error_is_running, ensure_not_running): Declare.
3601
3602 * target.h (struct target_ops): Add ptid argument to the to_stop
3603 member.
3604 (target_stop): Add ptid_t argument.
3605
3606 * target.c (update_current_target): Add ptid argument to to_stop's
3607 type.
3608 (debug_to_stop): Add ptid_t argument.
3609 (debug_to_rcmd): Set to_stop_ptid.
3610
3611 * remote.c (remote_stop): Add ptid_t argument.
3612 (async_remote_interrupt): Add inferior_ptid to target_stop.
3613 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
3614
3615 * Makefile.in (thread.o): Depend on $(cli_decode_h).
3616
3617 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3618
3619 Don't rely on ecs->wait_for_more.
3620
3621 * infrun.c (proceed): Clear the stepping state, set
3622 previous_inferior_ptid and clear infwait state.
3623 (wait_for_inferior): Don't clear the stepping state, set
3624 previous_inferior_ptid, or clear the infwait state here.
3625 (fetch_inferior_event): Don't clear the stepping state, set
3626 previous_inferior_ptid, or clear the infwait state here. Don't
3627 condition on wait_for_more.
3628
3629 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3630
3631 Refactor infrun a bit.
3632
3633 * infrun.c (currently_stepping): Take a struct
3634 thread_stepping_state instead of an execution_control_state.
3635 (struct thread_stepping_state): New, split from
3636 execution_control_state.
3637 (gtss, tss): New globals.
3638 (proceed): Clear the stepping state, set previous_inferior_ptid
3639 and clear infwait state.
3640 (init_wait_for_inferior): Clear the stepping state,
3641 previous_inferior_ptid and infwait state.
3642 (waiton_ptid, infwait_state): New, split from
3643 execution_control_state.
3644 (struct execution_control_state): Members that persist through
3645 events moved out to either struct thred_stepping_state or made
3646 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
3647 (wait_for_inferior, fetch_inferior_event): Use local
3648 execution_control_state. Update to execution_control_state split.
3649 (init_execution_control_state): Adjust.
3650 (init_thread_stepping_state): New, extracted from
3651 init_execution_control_state.
3652 (context_switch): Take a ptid instead of an
3653 execution_control_state.
3654 (context_switch_to): Adjust.
3655 (adjust_pc_after_break): Adjust.
3656 (init_infwait_state): New.
3657 (handle_inferior_event): Adjust.
3658
3659 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3660 Vladimir Prus <vladimir@codesourcery.com>
3661
3662 Per-thread commands.
3663
3664 * gdbthread.h: Remove unneeded forward declarations.
3665 Include "inferior.h".
3666 (struct thread_info): Add continuations,
3667 intermediate_continuations, proceed_to_finish, step_over_calls,
3668 stop_step, step_multi and stop_signal members.
3669 (save_infrun_state): Add continuations,
3670 intermediate_continuations, proceed_to_finish, step_over_calls,
3671 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3672 (load_infrun_state): Add continuations,
3673 intermediate_continuations, proceed_to_finish, step_over_calls,
3674 stop_step, step_multi, stop_signal and stop_bpstat parameters.
3675
3676 * thread.c (load_infrun_state): In non-stop mode, load
3677 continuations, intermediate_continuations, proceed_to_finish,
3678 step_over_calls, stop_step, step_multi and stop_signal.
3679 (save_infrun_state): Store continuations,
3680 intermediate_continuations, proceed_to_finish, step_over_calls,
3681 stop_step, step_multi, stop_signal and stop_bpstat.
3682 (save_infrun_state): Store continuations,
3683 intermediate_continuations, proceed_to_finish, step_over_calls,
3684 stop_step, step_multi, stop_signal and stop_bpstat.
3685 (free_thread): Clear The thread's stop_bpstat.
3686
3687 * inferior.h (context_switch_to): Declare.
3688
3689 * infrun.c (ecss): New global.
3690 (context_switch): Context switch continuations,
3691 intermediate_continuations, proceed_to_finish, step_over_calls,
3692 stop_step, step_multi, stop_signal and stop_bpstat.
3693 (wait_for_inferior): Use global ecss.
3694 (async_ecss, async_ecs): Delete.
3695 (fetch_inferior_event): Use global ecss.
3696 (context_switch_to): New.
3697
3698 * top.c (execute_command): In non-stop, only check if the current
3699 thread is running, in all-stop, check if there's any thread
3700 running.
3701
3702 * breakpoint.c (bpstat_remove_breakpoint): New.
3703 (bpstat_remove_breakpoint_callback): New.
3704 (delete_breakpoint): Clear the stop_bpstats of all threads.
3705
3706 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
3707 current thread is running, in all-stop, check if there's any
3708 thread running.
3709
3710 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
3711
3712 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3713
3714 Add non_stop global.
3715
3716 * inferior.h (non_stop): Declare.
3717 * infrun.c (non_stop, non_stop_1): New.
3718 (set_non_stop, show_non_stop): New.
3719 (_initialize_infrun): Add "set/show non-stop" command.
3720
3721 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3722
3723 Adjust fork/vfork/exec to pass ptids around.
3724
3725 * target.h (struct target_waitstatus): Store related_pid as a ptid.
3726 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
3727 Take a ptid_t.
3728 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
3729 type to ptid.
3730 * breakpoint.c (print_it_typical, bpstat_check_location)
3731 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
3732 (create_fork_vfork_event_catchpoint): Adjust.
3733 * infrun.c (fork_event): Change parent_pid and child_pid types to
3734 ptid.
3735 (follow_exec, inferior_has_forked, inferior_has_vforked)
3736 (inferior_has_execd): Take a ptid_t and don't trim it.
3737 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
3738 * linux-nat.c (linux_child_follow_fork): Adjust.
3739 * inf-ptrace.c (inf_ptrace_wait): Adjust.
3740 * inf-ttrace.c (inf_ttrace_wait): Adjust.
3741 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
3742
3743 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3744
3745 Add "executing" property to threads.
3746
3747 * inferior.h (target_executing): Delete.
3748 * gdbthread.h (struct thread_info): Add executing_ field.
3749 (set_executing, is_executing): New.
3750 * thread.c (main_thread_executing): New.
3751 (init_thread_list): Clear it and also main_thread_running.
3752 (is_running): Return false if target has no execution.
3753 (any_running, is_executing, set_executing): New.
3754
3755 * top.c: Include "gdbthread.h".
3756 (target_executing): Delete.
3757 (execute_command): Replace target_executing check by any_running.
3758 * event-top.c: Include "gdbthread.h".
3759 (display_gdb_prompt, command_handler): Replace target_executing by
3760 is_running.
3761 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
3762 here. Replace target_executing by is_running.
3763 * infrun.c (handle_inferior_event): Mark all threads as
3764 not-executing.
3765 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
3766 here.
3767 * stack.c (get_selected_block): Return null if inferior is
3768 executing.
3769 * target.c (target_resume): Mark resumed ptid as executing.
3770 * breakpoint.c (until_break_command): Replace target_executing
3771 check by is_executing.
3772 * remote.c (remote_async_resume): Don't mark inferior as executing
3773 here.
3774 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
3775 by any_running.
3776
3777 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
3778 (mi_execute_async_cli_command): Replace target_executing by
3779 is_running.
3780
3781 * frame.c (get_current_frame): Error out if the current thread is
3782 executing.
3783 (has_stack_frames): New.
3784 (get_selected_frame, deprecated_safe_get_selected_frame): Check
3785 has_stack_frames.
3786
3787 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
3788 $(gdbthread_h).
3789
3790 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3791
3792 * symfile.c (load_command): Reopen the exec file and reread
3793 symbols before anything else.
3794
3795 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3796
3797 * remote-sim.c: Include gdbthread.h.
3798 (remote_sim_ptid): New global.
3799 (gdbsim_create_inferior): Silently add the main task to GDB's
3800 thread list.
3801 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
3802 task from GDB's thread list.
3803 (gdbsim_resume): Adjust to use remote_sim_ptid.
3804 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
3805 (init_gdbsim_ops): Register gdbsim_thread_alive and
3806 gdbsim_pid_to_str.
3807 (_initialize_remote_sim): Initialize remote_sim_ptid.
3808 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
3809
3810 2008-07-09 Pedro Alves <pedro@codesourcery.com>
3811
3812 * monitor (monitor_ptid): New global.
3813 (monitor_open): Silently add the main task to GDB's thread list.
3814 (monitor_close, monitor_mourn_inferior): Silently delete the main
3815 task from GDB's thread list.
3816 (monitor_thread_alive, monitor_pid_to_str): New.
3817 (init_base_monitor_ops): Register monitor_thread_alive and
3818 monitor_pid_to_str.
3819 (_initialize_remote_monitors): Initialize monitor_ptid.
3820
3821 * gdbthread.h (delete_thread_silent): Declare.
3822 * thread.c (delete_thread): Rename to ...
3823 (delete_thread_1): ... this. Add "silent" parameter. If silent,
3824 don't do exit notifications.
3825 (delete_thread, delete_thread_silent): New, as wrappers to
3826 delete_thread_1.
3827
3828 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3829
3830 * breakpoint.c (update_global_location_list): Add boolean
3831 "should_insert" argument. Only insert locations if caller told it
3832 too.
3833 (update_global_location_list_nothrow): Add boolean "should_insert"
3834 argument. Pass it to update_global_location_list.
3835 (insert_breakpoints, create_longjmp_breakpoint)
3836 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
3837 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3838 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
3839 (enable_watchpoints_after_interactive_call_stop)
3840 (set_momentary_breakpoint, create_breakpoints)
3841 (break_command_really, watch_command_1)
3842 (create_ada_exception_breakpoint, update_breakpoint_locations)
3843 (do_enable_breakpoint, enable_command): Pass true to
3844 update_global_location_list.
3845 (bpstat_stop_status, disable_overlay_breakpoints)
3846 (disable_watchpoints_before_interactive_call_start)
3847 (delete_breakpoint, disable_breakpoint, disable_command): Pass
3848 false to update_global_location_list.
3849 (update_breakpoints_after_exec): Don't temporarily disable
3850 always-inserted mode.
3851
3852 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3853
3854 * breakpoint.c (mark_breakpoints_out): Make public.
3855 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
3856 here. Update comment.
3857 * breakpoint.h (mark_breakpoints_out): Declare.
3858
3859 * linux-nat.c (linux_handle_extended_wait): On
3860 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
3861 * inf-ttrace.c (inf_ttrace_wait): Likewise.
3862
3863 2008-07-08 Pedro Alves <pedro@codesourcery.com>
3864
3865 * infrun.c (follow_exec): Reset shared libraries before adding the
3866 main exec file.
3867
3868 2008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3869
3870 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
3871
3872 2008-07-07 Pedro Alves <pedro@codesourcery.com>
3873
3874 * i386-dicos-tdep.c: Include "inferior.h".
3875 (i386_dicos_frame_align): New.
3876 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
3877 dummy location ON_STACK.
3878 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
3879
3880 2008-07-07 Joel Brobecker <brobecker@adacore.com>
3881
3882 * gstdint.h: New file.
3883
3884 2008-07-05 Vladimir Prus <vladimir@codesourcery.com>
3885
3886 * mi/mi-interp.c (mi_on_resume): Don't try to report
3887 resumed thread it the thread list is empty.
3888
3889 2008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
3890
3891 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
3892 completer for set to filename_completer.
3893
3894 NEWS: Mention it.
3895
3896 2008-07-04 Vladimir Prus <vladimir@codesourcery.com>
3897
3898 Implement -target-attach.
3899 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
3900
3901 2008-06-21 Hui Zhu <teawater@gmail.com>
3902
3903 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
3904
3905 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3906
3907 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
3908 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
3909
3910 * target.h (struct target_ops): Add to_attach_no_wait member.
3911 (target_attach_no_wait): New.
3912 * target.c (update_current_target): Inherit to_attach_no_wait.
3913
3914 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
3915 target_attach_no_wait runtime check.
3916
3917 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
3918 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
3919 win32_ops.
3920
3921 2008-07-03 Pedro Alves <pedro@codesourcery.com>
3922
3923 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
3924 on debug_displaced being set.
3925
3926 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3927
3928 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
3929 directly instead of get_frame_id.
3930
3931 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3932
3933 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
3934 (deal_with_atomic_sequence): Update BC masks.
3935 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
3936 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
3937
3938 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
3939
3940 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
3941 register, not the previous frame's.
3942
3943 2008-06-30 Luis Machado <luisgpm@br.ibm.com>
3944
3945 * source.c (select_source_symtab): Make sure we skip namespace
3946 symtabs when showing cpp source code.
3947
3948 2008-06-30 Hans-Peter Nilsson <hp@axis.com>
3949
3950 * MAINTAINERS (Authorized committers): Fix my email address.
3951
3952 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3953
3954 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
3955 -target-download and -target-select via CLI, so that
3956 the quoting rules are the same as they were (unfortunately)
3957 in all prior gdb releases.
3958 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
3959 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3960 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
3961 (mi_cmd_target_download, mi_cmd_target_select): Remove.
3962 (mi_cmd_execute): Set current_token even for commands
3963 routed via CLI.
3964
3965 2008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
3966
3967 * alphafbsd-tdep.c: Update for unwinder changes.
3968 * alpha-linux-tdep.c: Likewise.
3969 * alphanbsd-tdep.c: Likewise.
3970 * alphaobsd-tdep.c: Likewise.
3971 * avr-tdep.c: Likewise.
3972 * cris-tdep.c: Likewise.
3973 * frv-linux-tdep.c: Likewise.
3974 * frv-tdep.c: Likewise.
3975 * h8300-tdep.c: Likewise.
3976 * hppa-linux-tdep.c: Likewise.
3977 * iq2000-tdep.c: Likewise.
3978 * m32c-tdep.c: Likewise.
3979 * m32r-linux-tdep.c: Likewise.
3980 * m32r-tdep.c: Likewise.
3981 * m68hc11-tdep.c: Likewise.
3982 * mep-tdep.c: Likewise.
3983 * mn10300-tdep.c: Likewise.
3984 * mt-tdep.c: Likewise.
3985 * score-tdep.c: Likewise.
3986 * sh64-tdep.c: Likewise.
3987 * sh-tdep.c: Likewise.
3988 * sparc64fbsd-tdep.c: Likewise.
3989 * sparc64nbsd-tdep.c: Likewise.
3990 * sparc64obsd-tdep.c: Likewise.
3991 * v850-tdep.c: Likewise.
3992 * vaxobsd-tdep.c: Likewise.
3993 * vax-tdep.c: Likewise.
3994 * xstormy16-tdep.c: Likewise.
3995
3996 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
3997
3998 * mi/mi-main.c (enum captured_mi_execute_command_actions)
3999 (captured_mi_execute_command_args): Remove.
4000 (captured_mi_execute_command): Cast the closure to mi_parse
4001 pointer, not to captured_mi_execute_command_args, and don't
4002 set the action field thereof.
4003 (mi_execute_command): Pass struct mi_parse, not
4004 captured_mi_execute_command_args to captured_mi_execute_command.
4005 (mi_execute_command): Remove (dead) code for suppressing
4006 printing prompt.
4007
4008 2008-06-28 Pedro Alves <pedro@codesourcery.com>
4009
4010 * linux-nat.c (enum sigchld_state): New.
4011 (linux_nat_async_events_state): Renamed from
4012 linux_nat_async_events_enabled.
4013 (linux_nat_event_pipe_push, my_waitpid): Adjust.
4014 (sigchld_default_action): New.
4015 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
4016 unconditionally.
4017 (linux_nat_create_inferior): Set events state to sigchld_default
4018 state.
4019 (linux_nat_resume): Adjust.
4020 (linux_nat_wait): Call linux_nat_async_events unconditionally.
4021 (sigchld_handler): Adjust.
4022 (linux_nat_async_mask): Don't set SIGCHLD actions here.
4023 (get_pending_events): Adjust.
4024 (linux_nat_async_events): Rewrite to handle enum sigchld_state
4025 instead of a boolean.
4026 (linux_nat_async): Adjust.
4027 (_initialize_linux_nat): Capture default SIGCHLD action into
4028 sigchld_default_action.
4029
4030 2008-06-28 Vladimir Prus <vladimir@codesourcery.com>
4031
4032 * breakpoint.c (moribund_locations): New.
4033 (bpstat_stop_status): Process moribund locations.
4034 (update_global_location_list): Add removed
4035 locations to moribund_locations.
4036 (breakpoint_retire_moribund): New.
4037 * breakpoint.h (struct bp_location): New field
4038 events_till_retirement.
4039 (breakpoint_retire_moribund): Declare.
4040 * thread.c (thread_count): New.
4041 * infrun.c (handle_inferior_event): Call
4042 breakpoint_retire_moribund.
4043 * gdbthread.h (thread_count): Declare.
4044
4045 2008-06-27 Joseph Myers <joseph@codesourcery.com>
4046
4047 * dfp.c (decimal_convert): Call match_endianness before and after
4048 conversion.
4049
4050 2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
4051
4052 * remote.c (remote_insert_breakpoint): Ensure that if Z0
4053 unsupported and we fall back to memory_insert_breakpoint, we
4054 use the unmodified requested address.
4055
4056 2008-06-27 Joel Brobecker <brobecker@adacore.com>
4057
4058 * dwarf2read.c (read_attribute_value): Issue a complaint when
4059 adjusting size attribute values of 0xffffffff as zero.
4060
4061 2008-06-27 Joseph Myers <joseph@codesourcery.com>
4062
4063 * i386-tdep.c (i386_16_byte_align_p): New.
4064 (i386_push_dummy_call): Determine stack space required for
4065 arguments going forwards allowing for 16-byte alignment, then push
4066 arguments going forwards.
4067
4068 2008-06-27 Pedro Alves <pedro@codesourcery.com>
4069
4070 * infrun.c (start_remote): Don't clear thread list here.
4071 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
4072 list here.
4073 * remote.c (record_currthread): Upgrade the main thread and its
4074 entry in the thread list if this is the first time we hear about
4075 threads.
4076 (remote_thread_alive): Consider magic_null_ptid or a ptid without
4077 a tid member always alive.
4078 (remote_find_new_threads): Don't update the main thread here.
4079 (remote_start_remote): Clear thread list here. Always add the
4080 main thread.
4081 (extended_remote_attach_1): Add the main thread here.
4082 (extended_remote_mourn_1): Re-add the main thread here.
4083 (extended_remote_create_inferior_1): Add a main thread.
4084
4085 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
4086
4087 2008-06-27 Pedro Alves <pedro@codesourcery.com>
4088
4089 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4090
4091 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
4092 globals.
4093 (general_thread, continue_thread): Change type to ptid_t.
4094 (record_currthread): Take a ptid_t parameter instead of an
4095 integer.
4096 (MAGIC_NULL_PID): Delete.
4097 (set_thread): Take a ptid_t parameter and adjust.
4098 (set_general_thread, set_continue_thread): New.
4099 (remote_thread_alive, remote_newthread_step)
4100 (remote_current_thread, remote_find_new_threads)
4101 (remote_threads_info, remote_start_remote, remote_vcont_resume)
4102 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
4103 (threadalive_test, remote_pid_to_str)
4104 (remote_get_thread_local_address): Adjust.
4105 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
4106 and any_thread_ptid.
4107
4108 2008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4109
4110 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
4111 * configure: Regenerated.
4112
4113 2008-06-26 Joel Brobecker <brobecker@adacore.com>
4114
4115 * dwarf2read.c (read_attribute_value): Treat size attribute
4116 values of 0xffffffff as if the attribute value was zero.
4117
4118 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
4119
4120 * linux-nat.c: Add description of overall logic.
4121
4122 2008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
4123
4124 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
4125 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
4126 all dependencies on $(gdb_stdint_h).
4127 (distclean): Do not delete gdb_stdint.h.
4128 * acinclude.m4: Do not use stdint.m4.
4129 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
4130 uintptr_t, and gdb_stdint.h.
4131 * defs.h: Include <stdint.h>.
4132 * gdb_thread_db.h: Assume stdint.h is already included.
4133 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
4134 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
4135 include gdb_stdint.h.
4136 * configure, config.in: Regenerate.
4137
4138 2008-06-26 Joseph Myers <joseph@codesourcery.com>
4139
4140 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
4141 decimal floating-point values in GPRs for soft-float.
4142 (do_ppc_sysv_return_value): Handle returning decimal
4143 floating-point values in GPRs for soft-float.
4144
4145 2008-06-26 Vladimir Prus <vladimir@codesourcery.com>
4146
4147 * target.c (target_read_until_error): New.
4148 * target.h (target_read_until_error): Declare.
4149 * mi/mi-main.c (mi_cmd_data_read_memory): Use
4150 target_read_until_error.
4151
4152 2008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4153
4154 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
4155 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
4156 after the DECFLOAT detection to fix a memory leak. Remove the
4157 redundant NUM initialization. Protect the DECFLOAT detection memory
4158 access before the P block. Restore the P memory content for the
4159 DECFLOAT detection.
4160
4161 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
4162
4163 Kill the return value for all MI command functions.
4164 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
4165 (mi_cmd_argv_ftype): Change return type to void.
4166
4167 * mi/mi-main.c: Adjust all function that implement
4168 MI commands to return nothing.
4169 (struct captured_mi_execute_command_actions):
4170 Remove the rc field.
4171 (mi_cmd_execute): Return nothing.
4172 (mi_execute_async_cli_command): Return nothing.
4173 (mi_cmd_exec_interrupt): Don't print ^done here.
4174 (mi_cmd_target_select): Don't print ^connected here.
4175 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
4176 Special-case -target-select and output ^connected, not ^done.
4177
4178 * mi/mi-cmd-break.c: Adjust.
4179 * mi/mi-cmd-disas.c: Adjust.
4180 * mi/mi-cmd-env.c: Adjust.
4181 * mi/mi-cmd-file.c: Adjust.
4182 * mi/mi-cmd-stack.c: Adjust.
4183 * mi/mi-cmd-target.c: Adjust.
4184 * mi/mi-cmd-var.c: Adjust.
4185 * mi/mi-interp.c: Adjust.
4186 * mi/mi-symbol-cmds.c: Adjust.
4187
4188 2008-06-25 Vladimir Prus <vladimir@codesourcery.com>
4189
4190 Emit ^running via observer.
4191 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
4192 ^running here.
4193 (mi_on_resume): Print ^running if not previously output.
4194 * mi/mi-main.c (running_result_record_printed): New.
4195 (captured_mi_execute_command): Reset
4196 running_result_record_printed. Use running_result_record_printed
4197 to decide if we should skip ^done.
4198 (mi_execute_async_cli_command): Don't print ^running here.
4199 * mi/mi-main.h (current_token, running_result_record_printed):
4200 Declare.
4201
4202 2008-06-24 Michael Snyder <msnyder@specifix.com>
4203
4204 * infrun.c (_initialize_infrun): White space and typo fix.
4205
4206 2008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
4207
4208 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
4209 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
4210 when first loading DLL with "dll" command.
4211
4212 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4213
4214 * gnu-nat.c (proc_string): Use capital T for "Thread".
4215
4216 2008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4217
4218 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
4219
4220 2008-06-18 Joel Brobecker <brobecker@adacore.com>
4221
4222 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
4223 the target cannot run.
4224
4225 2008-06-18 Joel Brobecker <brobecker@adacore.com>
4226
4227 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
4228 we're attaching to a running process.
4229
4230 2008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
4231
4232 * win32-nat.c (handle_load_dll): Give dll name and load address
4233 if debug_events is on.
4234 (handle_unload_dll): Likewise.
4235
4236 2008-06-14 Vladimir Prus <vladimir@codesourcery.com>
4237
4238 Don't suppress *running when doing finish.
4239 * infcall.c (call_function_by_hand): Set both
4240 suppress_resume_observer and suppress_stop_observer.
4241 * infcmd.c (suppress_run_stop_observers): Split into...
4242 (suppress_resume_observer, suppress_stop_observer): ...those.
4243 (finish_command_continuation): Clear suppress_stop_observer.
4244 (finish_command): Set suppress_stop_observer.
4245 * inferior.h (suppress_run_stop_observers): Split into...
4246 (suppress_resume_observer, suppress_stop_observer): ...those.
4247 * infrun.c (normal_stop): Check for suppress_stop_observer.
4248 * thread.c (set_running): Check for suppress_resume_observer.
4249
4250 2008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
4251 Pierre Muller <muller@ics.u-strasbg.fr>
4252
4253 * gdbarch.sh (gdbarch_skip_main_prologue): New.
4254 * gdbarch.h, gdbarch.c: Regenerate.
4255 * i386-tdep.h (i386_skip_main_prologue): Declare.
4256 * i386-tdep.c (i386_skip_main_prologue): New.
4257 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4258 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
4259 * symtab.c (find_function_start_sal): When pc points at the "main"
4260 function, call gdbarch_skip_main_prologue.
4261
4262 2008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
4263
4264 * value.c (value_primitive_field): Fetch lazy register values.
4265
4266 2008-06-11 Pedro Alves <pedro@codesourcery.com>
4267
4268 * NEWS: Mention support removal of undocumented S AA p PID stop
4269 reply packet.
4270
4271 * remote.c (remote_wait): Remove undocumented S AA p PID support.
4272
4273 2008-06-10 Stan Shebs <stan@codesourcery.com>
4274
4275 * MAINTAINERS: Update my affiliation and address.
4276
4277 2008-06-10 Andreas Schwab <schwab@suse.de>
4278
4279 * top.c (print_gdb_version): Don't print final newline.
4280
4281 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4282
4283 Implement *running.
4284 * Makefile.in: Update dependencies.
4285 * gdbthread.h (struct thread_info): New field
4286 running_.
4287 (set_running, is_running): New.
4288 * thread.c (set_running, is_running): New.
4289 * inferior.h (suppress_normal_stop_observer): Rename to...
4290 (suppress_run_stop_observers): ..this.
4291 * infcmd.c (suppress_normal_stop_observer): Rename to...
4292 (suppress_run_stop_observers): ..this.
4293 (finish_command_continuation, finish_command): Adjust.
4294 * infcall.c (call_function_by_hand): Adjust.
4295 * infrun.c (normal_stop): Call set_running.
4296 * target.c (target_resume): New. Call set_running.
4297 * target.h (target_resume): Convert from macro to
4298 a function.
4299
4300 * mi/mi-interp.c (mi_on_resume): New.
4301 (mi_interpreter_init): Register mi_on_resume.
4302
4303 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4304
4305 Use observers to report stop events in MI.
4306 * mi/mi-interp.c (mi_on_normal_stop): New.
4307 (mi_interpreter_init): Register mi_on_normal_stop.
4308 (mi_interpreter_exec_continuation): Remove.
4309 (mi_cmd_interpreter_exec): Don't register the above.
4310 * mi/mi-main.c (captured_mi_execute_command): Don't care
4311 about sync_execution.
4312 (mi_execute_async_cli_command): Don't install continuation. Don't
4313 print *stopped.
4314 (mi_exec_async_cli_cmd_continuation): Remove.
4315
4316 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4317
4318 Suppress normal stop observer when it's problematic.
4319 * inferior.h (suppress_normal_stop_observer): New.
4320 * infcall.c (call_function_by_hand): Disable stop events when
4321 doing function calls.
4322 * infmcd.c (suppress_normal_stop_observer): New.
4323 (finish_command_continuation): Call normal_stop observer
4324 explicitly.
4325 (finish_command): Disable stop events inside proceed.
4326 * infrun.c (normal_stop): Don't call normal stop observer if
4327 suppressed of if multi-step is in progress.
4328
4329 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4330
4331 Remove stale code.
4332 * infrun.c (finish_command): Don't pass cleanup
4333 to continuation.
4334 (finish_command_continuation): Don't grab cleanup from
4335 the passed data, as we don't use, and cannot, use it anyway.
4336
4337 2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
4338
4339 Introduce common cleanup for restoring integers.
4340 * defs.h (make_cleanup_restore_integer): New declaration.
4341 (struct cleanup): New field free_arg.
4342 (make_my_cleanup_2): New.
4343 * utils.c (restore_integer_closure, restore_integer)
4344 (make_cleanup_restore_integer): New.
4345 (make_my_cleanup): Initialize the free_arg field and
4346 renamed to make_my_cleanup_2.
4347 (do_my_cleanups): Call free_arg.
4348 (discard_cleanups): Call free_arg.
4349 * breakpoint.c (restore_always_inserted_mode): Remove.
4350 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
4351
4352 2008-06-09 Doug Evans <dje@google.com>
4353
4354 * remote.c (remote_wait): Include beginning of malformed packet
4355 in error output.
4356
4357 2008-06-09 Tom Tromey <tromey@redhat.com>
4358
4359 * completer.c (complete_line): Don't special-case
4360 expression_completer.
4361 (expression_completer): Only pass last word to
4362 location_completer.
4363 * c-exp.y (yylex): Check 'token', not 'operator'.
4364
4365 2008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
4366
4367 * configure.ac (build_warnings): Add -Wno-format for mingw.
4368 * configure: Regenerated.
4369
4370 2008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
4371
4372 * NEWS: Make indentation consistent. Move exec tracing entry out
4373 of remote packet list.
4374
4375 2008-06-06 Tom Tromey <tromey@redhat.com>
4376
4377 * value.h (evaluate_subexpression_type, extract_field_op):
4378 Declare.
4379 * printcmd.c (_initialize_printcmd): Use expression_completer for
4380 'p', 'inspect', 'call'.
4381 * parser-defs.h (parse_field_expression): Declare.
4382 * parse.c: Include exceptions.h.
4383 (in_parse_field, expout_last_struct): New globals.
4384 (mark_struct_expression): New function.
4385 (prefixify_expression): Return int.
4386 (prefixify_subexp): Return int. Use expout_last_struct.
4387 (parse_exp_1): Update.
4388 (parse_exp_in_context): Add 'out_subexp' argument. Handle
4389 in_parse_field.
4390 (parse_field_expression): New function.
4391 * expression.h (parse_field_expression): Declare.
4392 (in_parse_field): Likewise.
4393 * eval.c (evaluate_subexpression_type): New function.
4394 (extract_field_op): Likewise.
4395 * completer.h (expression_completer): Declare.
4396 * completer.c (expression_completer): New function.
4397 (count_struct_fields, add_struct_fields): New functions.
4398 * c-exp.y (yyparse): Redefine.
4399 (COMPLETE): New token.
4400 (exp): New productions.
4401 (saw_name_at_eof, last_was_structop): New globals.
4402 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
4403 (c_parse): New function.
4404 * breakpoint.c (_initialize_breakpoint): Use expression_completer
4405 for watch, awatch, and rwatch.
4406 * Makefile.in (parse.o): Depend on exceptions_h.
4407
4408 2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4409
4410 PR gdb/1147
4411 * gdb/valopts.c (find_overload_match): Handle references
4412 to pointers.
4413
4414 2008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
4415
4416 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
4417 account the bitsize of the 'from' operand.
4418
4419 2008-06-06 Pedro Alves <pedro@codesourcery.com>
4420
4421 * annotate.h (annotate_thread_changed): Declare.
4422
4423 2008-06-06 Nick Roberts <nickrob@snap.net.nz>
4424
4425 * annotate.c (annotate_thread_changed): New function.
4426 * thread.c (thread_command) : Use it.
4427 * infrun.c (normal_stop): Use it.
4428
4429 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
4430 Nathan Sidwell <nathan@codesourcery.com>
4431 Joseph Myers <joseph@codesourcery.com>
4432
4433 * acinclude.m4: Include ../config/acx.m4.
4434 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
4435 * configure, config.in: Regenerate.
4436 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
4437 address.
4438 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
4439
4440 2008-06-05 Pedro Alves <pedro@codesourcery.com>
4441
4442 Replace 'target async' by 'maintenance set remote-async' and
4443 'target remote' combination.
4444
4445 * remote.c (remote_async_wait): Merge into remote_wait, and
4446 remove.
4447 (remote_async_permitted, remote_async_permitted_set): New
4448 variables.
4449 (set_maintenance_remote_async_permitted)
4450 (show_maintenance_remote_async_permitted): New functions.
4451 (remote_async_ops, extended_async_remote_ops): Delete.
4452 (remote_async_open, extended_remote_async_open): Delete.
4453 (remote_open_1): Drop async_p parameter. Update callers. Replace
4454 async_p with remote_async_permitted checks.
4455 (extended_async_remote_attach): Delete.
4456 (remote_resume, remote_async_resume): Merge and leave remote_resume.
4457 (remote_async_terminal_inferior): Rename to...
4458 (remote_terminal_inferior): ... this, and add
4459 remote_async_termitted check.
4460 (remote_async_terminal_ours): Rename to...
4461 (remote_terminal_ours): ... this, and add remote_async_termitted
4462 check.
4463 (remote_wait, remote_async_wait): Merge and leave remote_wait
4464 only.
4465 (remote_kill, remote_async_kill): Merge and leave remote_kill
4466 only.
4467 (remote_async_mourn, extended_async_remote_mourn): Delete.
4468 (extended_remote_create_inferior_1): Drop async_p parameter.
4469 Update callers. Always use extended_remote_ops.
4470 (extended_remote_async_create_inferior): Delete.
4471 (remote_return_zero): Delete.
4472 (init_remote_ops): Register remote_can_async_p, remote_async,
4473 remote_async_mask, remote_terminal_inferior and
4474 remote_terminal_ours.
4475 (remote_can_async_p, remote_is_async_p): Check for
4476 remote_async_permitted.
4477 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
4478 (set_remote_cmd): Don't add async and extended-async targets.
4479 (_initialize_remote): Add set/show remote-async maintenance
4480 commands.
4481
4482 2008-06-05 Pedro Alves <pedro@codesourcery.com>
4483
4484 * remote.c (kill_kludge): Delete.
4485 (remote_wait, remote_async_wait): Don't set it.
4486 (remote_kill, remote_async_kill): Don't do anything with it.
4487
4488 2008-06-05 Pedro Alves <pedro@codesourcery.com>
4489
4490 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
4491
4492 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
4493
4494 * bcache.c (bcache_data): Call deprecated_bcache_added function.
4495 (deprecated_bcache_added): New function name. Body of function
4496 bcache_data is used here with the addition of 'added' argument.
4497 * bcache.h (deprecated_bcache_added): New function.
4498 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
4499 work from add_psymbol_to_list - initialises partial symbol and stashes
4500 it in objfile's cache.
4501 (append_psymbol_to_list): New helper function, takes other part of
4502 work from add_psymbol_to_list - adds partial symbol to the given list.
4503 (add_psymbol_to_list): Call helper functions instead of doing work
4504 here. If adding to global list, do not duplicate partial symbols in the
4505 partial symtab.
4506
4507 2008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
4508
4509 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
4510 'exception caught|thrown' message.
4511
4512 2008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4513
4514 * Makefile.in: Update dependencies.
4515 * dwarf2expr.c: New include "gdb_assert.h".
4516 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
4517 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
4518 (execute_stack_op): Error out on too large RECURSION_DEPTH.
4519 Increase/decrease RECURSION_DEPTH around the function.
4520
4521 2008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
4522
4523 * remote.c (get_offsets): Handle a single segment.
4524 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
4525 than segments.
4526
4527 2008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
4528
4529 * solib-svr4.c (struct lm_info): Add lm_addr.
4530 (main_lm_addr): New.
4531 (svr4_default_sos): Set lm_addr.
4532 (svr4_current_sos): Set lm_addr and main_lm_addr.
4533 (svr4_fetch_objfile_link_map): Rewrite.
4534 (svr4_clear_solib): Clear main_lm_addr.
4535
4536 2008-06-03 Michael Snyder <msnyder@redhat.com>
4537 Joseph Myers <joseph@codesourcery.com>
4538
4539 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
4540 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
4541
4542 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
4543
4544 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
4545
4546 2008-06-02 Roman Zippel <zippel@linux-m68k.org>
4547
4548 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
4549
4550 2008-06-01 Joel Brobecker <brobecker@adacore.com>
4551
4552 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
4553 treat pointers in data space as function descriptors if the
4554 target address is also in the data space.
4555
4556 2008-05-30 Joel Brobecker <brobecker@adacore.com>
4557
4558 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
4559 the trad-frame register value for the SP register.
4560
4561 2008-05-29 Mark Kettenis <kettenis@gnu.org>
4562
4563 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
4564
4565 2008-05-28 Joel Brobecker <brobecker@adacore.com>
4566
4567 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
4568 that identifies function descriptors outside of the .opd section.
4569
4570 2008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
4571
4572 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
4573 temporary catchpoints. In MI add missing fields 'reason', 'disp',
4574 'bkptno'.
4575 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
4576 catchpoints.
4577 (handle_gnu_v3_exceptions): Use tempflag.
4578
4579 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
4580
4581 Refactor varobj_update interface.
4582 * varobj.c (varobj_update): Report changes as vector. Also
4583 return not just a list of varobj, but a list of special structures
4584 that tell what exactly has changed.
4585 * varobj.h (enum varobj_update_error): Rename to
4586 varobj_scope_status.
4587 (struct varobj_update_result_t): New.
4588 (varobj_update): Adjust prototype.
4589 * mi/mi-cmd-var.c: Adjust for changes.
4590
4591 2008-05-28 Vladimir Prus <vladimir@codesourcery.com>
4592
4593 * varobj.c (varobj_update): Fix comment typo.
4594 Fix indentation.
4595
4596 2008-05-26 Joel Brobecker <brobecker@adacore.com>
4597
4598 Set the symtab field of symbols read from ECOFF debugging entries.
4599 * mdebugread.c (add_symbol): Add new parameter symtab.
4600 (parse_symbol): Update calls to add_symbol throughout.
4601
4602 2008-05-27 Andreas Schwab <schwab@suse.de>
4603
4604 * symtab.h (enum address_class): Remove LOC_REGPARM and
4605 LOC_COMPUTED_ARG.
4606 (struct symbol): Add is_argument.
4607 (SYMBOL_IS_ARGUMENT): Define.
4608
4609 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
4610 * buildsym.c (finish_block): Likewise.
4611 * stack.c (print_frame_args, print_block_frame_locals)
4612 (print_frame_arg_vars): Likewise.
4613 * symtab.c (lookup_block_symbol): Likewise.
4614 * tracepoint.c (add_local_symbols): Likewise.
4615 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4616
4617 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
4618 * dwarf2read.c (new_symbol): Likewise.
4619 * mdebugread.c (parse_symbol): Likewise.
4620 * stabsread.c (define_symbol): Likewise.
4621
4622 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
4623 and LOC_COMPUTED_ARG.
4624 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4625 * ax-gdb.c (gen_var_ref): Likewise.
4626 * eval.c (evaluate_subexp_for_address): Likewise.
4627 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4628 * m2-exp.y (yylex): Likewise.
4629 * printcmd.c (address_info): Likewise.
4630 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4631 * tracepoint.c (collect_symbol, scope_info): Likewise.
4632
4633 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
4634
4635 * gdbarch.sh: Added new gdbarch struct
4636 core_regset_sections.
4637 * gdbarch.c: Refreshed.
4638 * gdbarch.h: Refreshed.
4639 * regset.h (core_regset_section): Declared.
4640 * linux-nat.c (linux_nat_do_thread_registers): Added
4641 support for the new gdbarch struct core_regset_sections.
4642 * utils.c (host_address_to_string): New function.
4643 * defs.h (host_address_to_string): New prototype.
4644 * i386-linux-tdep.c (i386_regset_rections): New register
4645 sections list for i386.
4646 (i386_linux_init_abi): Initialized new gdbarch struct
4647 core_regset_sections.
4648 * Makefile.in: Updated to reflect dependency changes.
4649 * ppc-linux-tdep.c (ppc_regset_sections): Register
4650 sections list for ppc.
4651 (ppc_linux_init_abi): Initialized new gdbarch struct
4652 core_regset_sections
4653
4654 2008-05-24 Andreas Schwab <schwab@suse.de>
4655
4656 * linespec.c (decode_objc): Save current language around call to
4657 get_selected_block.
4658
4659 2008-05-23 Joel Brobecker <brobecker@adacore.com>
4660
4661 * valprint.h (get_array_bounds): Renames get_array_low_bound.
4662 * valprint.c (get_array_bounds): Renames get_array_low_bound.
4663 Return the proper bound value if the array index type is an
4664 enumerated type. Compute the high bound if requested.
4665 (val_print_array_elements): Handle the case when the array
4666 element has a null size.
4667 * ada-valprint.c (print_optional_low_bound): Add handling
4668 for empty arrays or arrays of zero-size elements.
4669 (ada_val_print_array): New function, extracted out from
4670 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
4671 handle empty arrays and arrays of zero-size elements.
4672 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
4673 code by call to ada_val_print_array.
4674 (ada_value_print): Remove handling of null array. The handling
4675 was incomplete and is now better handled by ada_val_print_array.
4676
4677 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4678
4679 * annotate.c (annotate_source, annotate_frame_begin): Replace
4680 deprecated_print_address_numeric with paddress.
4681 * cli/cli-cmds.c (list_command, edit_command): Likewise.
4682 * tui/tui-stack.c (tui_make_status_line): Likewise.
4683
4684 * defs.h (deprecated_print_address_numeric): Remove.
4685 * printcmd.c (deprecated_print_address_numeric): Remove.
4686 * maint.c (maint_print_section_info): Fix comment.
4687
4688 2008-05-23 Markus Deuling <deuling@de.ibm.com>
4689
4690 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
4691 print_binary_chars, print_char_chars): Add byte_order parameter and
4692 replace gdbarch_byte_order.
4693 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
4694 expressions and remove them. Remove unused TWO_TO_FOURTH.
4695 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
4696 endianness. Update call to print_hex_chars.
4697 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
4698 print_binary_chars, print_char_chars): Add byte_order parameter.
4699 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
4700 get at the endianness. Update print_*_char calls to use byte_order.
4701
4702 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4703
4704 * symtab.h (struct symbol): Make "aux_value" member a void pointer
4705 instead of a union.
4706 (SYMBOL_LOCATION_BATON): Update.
4707
4708 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4709
4710 * symtab.h (enum address_class): Remove LOC_BASEREG and
4711 LOC_BASEREG_ARG.
4712 (struct symbol): Remove "basereg" member of "aux_value" union.
4713 (SYMBOL_BASEREG): Remove.
4714
4715 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
4716 or LOC_BASEREG_ARG.
4717 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4718 (ada_add_block_symbols): Likewise.
4719 * ax-gdb.c (gen_var_ref): Likewise.
4720 * buildsym.c (finish_block): Likewise.
4721 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4722 * m2-exp.y (yylex): Likewise.
4723 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4724 * printcmd.c (address_info): Likewise.
4725 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
4726 (print_frame_arg_vars): Likewise.
4727 * symmisc.c (print_symbol): Likewise.
4728 * symtab.c (lookup_block_symbol): Likewise.
4729 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4730 (scope_info): Likewise.
4731
4732 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4733
4734 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
4735
4736 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
4737 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
4738 (ada_add_block_symbols): Likewise.
4739 * ax-gdb.c (gen_var_ref): Likewise.
4740 * buildsyms.c (finish_block): Likewise.
4741 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4742 * m2-exp.y (yylex): Likewise.
4743 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4744 * printcmd.c (address_info): Likewise.
4745 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
4746 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4747 * symtab.c (lookup_block_symbol): Likewise.
4748 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
4749 (scope_info): Likewise.
4750
4751 2008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
4752
4753 * symtab.h (enum address_class): Remove LOC_INDIRECT and
4754 LOC_HP_THREAD_LOCAL_STATIC.
4755
4756 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
4757 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
4758 (read_var_value): Likewise.
4759 * buildsym.c (finish_block): Likewise.
4760 * objfiles.c (objfile_relocate): Likewise.
4761 * printcmd.c (address_info): Likewise.
4762 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4763 * tracepoint.c (scope_info): Likewise.
4764
4765 2008-05-21 Markus Deuling <deuling@de.ibm.com>
4766 Maxim Grigoriev <maxim2405@gmail.com>
4767
4768 * xtensa-tdep.c (xtensa_read_register): Remove.
4769 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
4770 argument litbase to call0_frame_cache().
4771 (call0_track_op, call0_analyze_prologue)
4772 (call0_frame_cache): Use extra argument litbase.
4773
4774 2008-05-21 Joel Brobecker <brobecker@adacore.com>
4775
4776 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
4777
4778 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4779
4780 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
4781
4782 2008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4783
4784 * alpha-mdebug-tdep.c: Include "trad-frame.h".
4785 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
4786 struct trad_frame_saved_reg *.
4787 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
4788 trad_frame_alloc_saved_regs. Update accesses. Record previous
4789 value of SP as being vfp.
4790 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
4791 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
4792
4793 2008-05-21 Markus Deuling <deuling@de.ibm.com>
4794
4795 * score-tdep.c (score_print_insn): Get the current endianess from
4796 disassemble_info instead of gdbarch_byte_order.
4797
4798 2008-05-21 Pedro Alves <pedro@codesourcery.com>
4799
4800 * frame.c (get_prev_frame_1): Build frame id before setting
4801 this_frame->prev_p, not after.
4802
4803 2008-05-21 Nick Roberts <nickrob@snap.net.nz>
4804
4805 * annotate.c (annotate_new_thread): New function for new-thread
4806 annotation.
4807 * annotate.h: (annotate_new_thread): New extern.
4808 * thread.c (add_thread_with_info): Use it.
4809 * Makefile.in (thread.o): Add dependency on annotate.h.
4810
4811 2008-05-20 Joel Brobecker <brobecker@adacore.com>
4812
4813 * win32-nat.c (win32_wait): Block the control-c event while
4814 waiting for a debug event.
4815
4816 2008-05-19 Pedro Alves <pedro@codesourcery.com>
4817
4818 * symtab.h (lookup_symbol_in_language): Update comment.
4819 * symtab.c (lookup_symbol_aux_block): Update comment.
4820 * ada-lang.c (ada_lookup_symbol_list): Update comment.
4821
4822 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4823
4824 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
4825 (lookup_symbol): Likewise.
4826 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
4827 (lookup_symbol): Likewise.
4828 (search_symbols): Update.
4829
4830 * linespec.c (find_methods, collect_methods): Update.
4831 (add_matching_methods, add_constructors): Update.
4832 (decode_compound, decode_dollar, decode_variable): Update.
4833 (lookup_prefix_sym): Update.
4834
4835 (symbol_found): Remove SYM_SYMTAB parameter.
4836 Use SYMBOL_SYMTAB (sym) instead.
4837
4838 * gdbtypes.c (lookup_typename): Update.
4839 (lookup_struct, lookup_union, lookup_enum): Update.
4840 (lookup_template_type): Update.
4841 (check_typedef): Update.
4842 * language.c (lang_bool_type): Update.
4843 * mdebugread.c (parse_procedure): Update.
4844 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4845 * parse.c (write_dollar_variable): Update.
4846 * printcmd.c (address_info): Update.
4847 * source.c (select_source_symtab): Update.
4848 * stack.c (print_frame_args, print_frame_arg_vars): Update.
4849 * valops.c (find_function_in_inferior): Update.
4850 (value_struct_elt_for_reference): Update.
4851 * value.c (value_static_field, value_fn_field): Update.
4852
4853 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4854 * arm-tdep.c (arm_skip_prologue): Update.
4855 * mt-tdep.c (mt_skip_prologue): Update.
4856 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
4857
4858 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
4859 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
4860 (add_defn_to_vec): Likewise.
4861 (ada_add_block_symbols): Likewise.
4862 (lookup_cached_symbol, cache_symbol): Likewise.
4863 (standard_lookup): Update.
4864 (ada_lookup_symbol_list): Update.
4865
4866 * c-valprint.c (c_val_print): Update.
4867 * cp-support.c (cp_lookup_rtti_type): Update.
4868 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
4869 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
4870 * p-valprint.c (pascal_val_print): Update.
4871 * scm-lang.c (scm_lookup_name): Update.
4872
4873 * c-exp.y: Update.
4874 * f-exp.y: Update.
4875 * jv-exp.y: Update.
4876 * m2-exp.y: Update.
4877 * objc-exp.y: Update.
4878 * p-exp.y: Update.
4879
4880 2008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
4881
4882 * language.h (struct language_defn): Remove SYMTAB parameter from
4883 la_lookup_symbol_nonlocal callback function pointer.
4884
4885 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4886 (ada_lookup_encoded_symbol): Likewise.
4887 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
4888 Always call fixup_symbol_section.
4889 (ada_lookup_symbol): Remove SYMTAB parameter.
4890 (ada_lookup_symbol_nonlocal): Likewise.
4891 * ada-exp.y (write_object_renaming): Update.
4892 (find_primitive_type): Likewise.
4893
4894 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4895 (cp_lookup_symbol_namespace): Likewise.
4896 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
4897 (lookup_symbol_file): Likewise.
4898 (lookup_possible_namespace_symbol): Likewise.
4899 (cp_lookup_symbol_nonlocal): Likewise.
4900 (cp_lookup_symbol_namespace): Likewise.
4901 (cp_lookup_nested_type): Update.
4902
4903 * scm-valprint.c (scm_inferior_print): Update.
4904 * valops.c (value_maybe_namespace_elt): Update.
4905
4906 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
4907 lookup_lib_global_symbol callback function pointer.
4908 (solib_global_lookup): Remove SYMTAB parameter.
4909 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
4910 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4911
4912 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
4913 (lookup_symbol_static): Likewise.
4914 (lookup_symbol_global): Likewise.
4915 (lookup_symbol_aux_block): Likewise.
4916 (lookup_global_symbol_from_objfile): Likewise.
4917 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
4918 (lookup_symbol_aux_local): Likewise.
4919 (lookup_symbol_aux_block): Likewise.
4920 (lookup_symbol_aux_symtabs): Likewise.
4921 (lookup_symbol_aux_psymtabs): Likewise.
4922 (lookup_global_symbol_from_objfile): Likewise.
4923 (basic_lookup_symbol_nonlocal): Likewise.
4924 (lookup_symbol_static): Likewise.
4925 (lookup_symbol_global): Likewise.
4926
4927 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
4928
4929 2008-05-17 Pedro Alves <pedro@codesourcery.com>
4930
4931 * remote.c (init_extended_remote_ops): Fix typo.
4932
4933 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4934
4935 * NEWS: Mention new DICOS x86 target configuration.
4936
4937 2008-05-16 Pedro Alves <pedro@codesourcery.com>
4938 Ulrich Weigand <uweigand@de.ibm.com>
4939
4940 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
4941 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
4942
4943 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
4944 use it instead of ginfo->value.address. Look up minimal symbol by
4945 address and name. Assume OBJFILE is non-NULL.
4946 (fixup_symbol_section): Ensure we always have an objfile to look
4947 into. Extract and pass to fixup_section the symbol's address that
4948 will match the minimal symbol's address.
4949 (fixup_psymbol_section): Likewise.
4950
4951 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
4952 overlays and the addrmap returned the wrong section.
4953
4954 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
4955 calling fixup_symbol_section.
4956
4957 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4958
4959 * minsyms.c: Include "target.h".
4960 (find_solib_trampoline_target): Handle minimal symbols pointing
4961 to function descriptors as well.
4962 * Makefile.in (minsyms.o): Update dependencies.
4963
4964 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
4965 (ppc64_standard_linkage1): ... this. Fix optional instructions.
4966 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
4967 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
4968 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
4969 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
4970 (ppc64_standard_linkage_target): Rename to ...
4971 (ppc64_standard_linkage1_target): ... this.
4972 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
4973 (ppc64_skip_trampoline_code): Support three variants of standard
4974 linkage stubs. Call find_solib_trampoline_target to handle
4975 glink stubs.
4976
4977 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4978
4979 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
4980 ppc64_sysv_abi_adjust_breakpoint_address.
4981 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4982 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
4983
4984 2008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
4985
4986 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
4987 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
4988 of ppc_linux_skip_trampoline_code.
4989
4990 2008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
4991
4992 * gdbarch.sh: Delete dwarf_reg_to_regnum.
4993 * gdbarch.c, gdbarch.h: Regenerated.
4994 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
4995 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
4996 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
4997
4998 2008-05-15 Pedro Alves <pedro@codesourcery.com>
4999
5000 * linux-nat.c (trap_ptid): Delete.
5001 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
5002 Adjust.
5003 * linux-thread-db.c (thread_db_wait): Adjust.
5004
5005 2008-05-15 Joel Brobecker <brobecker@adacore.com>
5006
5007 * linespec.c (decode_line_1): Fix a couple of comments.
5008
5009 2008-05-15 Alan Modra <amodra@bigpond.net.au>
5010
5011 * dbxread.c: Formatting.
5012 (INTERNALIZE_SYMBOL): Init n_other.
5013 (set_namestring): Take pointer to nlist arg rather than struct
5014 copy. Update all callers.
5015
5016 2008-05-15 Andreas Schwab <schwab@suse.de>
5017
5018 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
5019 (dwarf2read.o): Add $(addrmap_h).
5020
5021 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
5022
5023 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
5024 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
5025 to handle ppc32 PLT entries.
5026 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
5027 only on ppc64.
5028
5029 2008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
5030
5031 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
5032 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
5033 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
5034 (lookup_minimal_symbol_by_pc_section): Use
5035 lookup_minimal_symbol_by_pc_section_1.
5036 (lookup_solib_trampoline_symbol_by_pc): Likewise.
5037
5038 2008-05-13 Joel Brobecker <brobecker@adacore.com>
5039
5040 * findcmd.c: Add #include "gdb_stdint.h".
5041 * Makefile.in (findcmd.o): Update dependencies.
5042
5043 2008-05-11 David S. Miller <davem@davemloft.net>
5044
5045 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
5046 long double size override, Linux does use 128-bit now.
5047
5048 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
5049 (sparc_linux_write_pc): New function.
5050 (sparc32_linux_init_abi): Register it.
5051 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
5052 (sparc64_linux_write_pc): New function.
5053 (sparc64_linux_init_abi): Register it.
5054
5055 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
5056 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
5057
5058 2008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5059
5060 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
5061 and info.tdep_info before calling gdbarch_init_osabi.
5062
5063 2008-05-09 Joel Brobecker <brobecker@adacore.com>
5064
5065 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
5066 the type of the right hand side of the assignment to the type
5067 of the left hand side if the left hand side is a convenience
5068 variable.
5069
5070 2008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
5071
5072 * NEWS: Mention gdbserver bi-arch capability.
5073
5074 2008-05-09 Doug Evans <dje@google.com>
5075
5076 New "find" command.
5077 * NEWS: Document find command and qSearch:memory packet.
5078 * Makefile.in (SFILES): Add findcmd.c.
5079 (COMMON_OBJS): Add findcmd.o.
5080 (findcmd.o): New rule.
5081 * findcmd.c: New file.
5082 * target.h (target_ops): New member to_search_memory.
5083 (simple_search_memory): Declare.
5084 (target_search_memory): Declare.
5085 * target.c (simple_search_memory): New fn.
5086 (target_search_memory): New fn.
5087 * remote.c (PACKET_qSearch_memory): New packet kind.
5088 (remote_search_memory): New fn.
5089 (init_remote_ops): Init to_search_memory.
5090 (init_extended_remote_ops): Ditto.
5091 (_initialize_remote): Add qSearch:memory packet config command.
5092
5093 2008-05-09 Eli Zaretskii <eliz@gnu.org>
5094
5095 * thread.c (_initialize_thread): Don't use commas and periods in
5096 first line of doc string of "set/show print thread-events".
5097
5098 2008-05-08 Joel Brobecker <brobecker@adacore.com>
5099
5100 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
5101 Update for unwinder changes.
5102
5103 2008-05-08 Joel Brobecker <brobecker@adacore.com>
5104
5105 * frame.c (get_frame_base_address, get_frame_locals_address)
5106 (get_frame_args_address): Pass the correct frame when calling
5107 frame_base_find_by_frame.
5108
5109 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5110
5111 * remote.c (extended_remote_attach_1): Call target_find_description.
5112
5113 2008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
5114
5115 * remote.c (extended_remote_create_inferior_1): Clean up
5116 before marking the target running.
5117
5118 2008-05-08 Joel Brobecker <brobecker@adacore.com>
5119
5120 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
5121 changes.
5122
5123 2008-05-07 Joel Brobecker <brobecker@adacore.com>
5124
5125 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
5126 sparc64-sol2-tdep.c: Update for unwinder changes.
5127
5128 2008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
5129
5130 * cp-support.c (mangled_name_to_comp): Initialize storage.
5131 (unqualified_name_from_comp): Likewise.
5132
5133 2008-05-07 Jie Zhang <jie.zhang@analog.com>
5134
5135 * remote.c (remote_insert_breakpoint): Call get_remote_state
5136 after gdbarch_breakpoint_from_pc is called.
5137 (remote_insert_hw_breakpoint): Likewise.
5138
5139 2008-05-06 Joel Brobecker <brobecker@adacore.com>
5140
5141 * valprint.c (val_print): Add new language parameter and use it
5142 instead of using the current_language. Update calls to val_print
5143 throughout.
5144 (common_val_print): Add new langauge parameter and pass it to
5145 val_print.
5146 * value.h (struct language_defn): Add opaque declaration.
5147 (val_print, common_val_print): Update declarations.
5148 * stack.c (print_frame_args): Update call to common_val_print
5149 using the appropriate language.
5150 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5151 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
5152 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
5153 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
5154 #include "language.h" if necessary.
5155 Update calls to val_print and common_val_print.
5156 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
5157 Update dependencies.
5158
5159 2008-05-06 Joel Brobecker <brobecker@adacore.com>
5160
5161 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
5162 pointing inside a non-executable section as function descriptors.
5163
5164 2008-05-06 Pedro Alves <pedro@codesourcery.com>
5165
5166 * inf-loop.c (inferior_event_handler): Run all continuations and
5167 print any language change before running the breakpoint commands.
5168
5169 2008-05-06 Joel Brobecker <brobecker@adacore.com>
5170
5171 * frame-unwind.c (frame_unwind_got_bytes): New function.
5172 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
5173 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
5174 for unwinder changes.
5175
5176 2008-05-05 Doug Evans <dje@google.com>
5177
5178 * NEWS: Mention new /m modifier for disassemble command.
5179 * cli/cli-cmds.c (print_disassembly): New function.
5180 (disassemble_current_function): New function
5181 (disassemble_command): Recognize /m modifier, print mixed
5182 source+assembly.
5183 (init_cli_cmds): Update disassemble help text.
5184
5185 2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
5186
5187 * xtensa-tdep.c: Update for unwinder changes.
5188
5189 2008-05-05 Andreas Schwab <schwab@suse.de>
5190
5191 Update m68k port for unwinder changes.
5192 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
5193 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
5194 (m68k_frame_unwind): Use default_frame_sniffer.
5195 (m68k_frame_sniffer): Remove.
5196 (m68k_frame_base_address): Expect this_frame.
5197 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
5198 this_frame.
5199 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
5200 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
5201 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
5202 parameter instead of pc value.
5203 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
5204 Expect this_frame.
5205 (m68k_linux_sigtramp_frame_this_id)
5206 (m68k_linux_sigtramp_frame_prev_register)
5207 (m68k_linux_sigtramp_frame_sniffer): Update signature.
5208 (m68k_linux_sigtramp_frame_unwind): Use
5209 m68k_linux_sigtramp_frame_sniffer.
5210 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
5211
5212 * m68klinux-nat.c (store_register): Fix typo.
5213
5214 2008-05-05 Pedro Alves <pedro@codesourcery.com>
5215
5216 * infcmd.c (step_1): Put thread id on the stack to avoid possible
5217 NULL dereferencing.
5218
5219 2008-05-05 Luis Machado <luisgpm@br.ibm.com>
5220
5221 * symfile.c (reread_symbols): Update objfile's entry point.
5222
5223 2008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
5224 Joel Brobecker <brobecker@adacore.com>
5225
5226 * ada-lang.c: Update throughout to use symbol_matches_domain
5227 instead of matching the symbol domain explictly.
5228 * dwarf2read.c (add_partial_symbol): Do not add new psym for
5229 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5230 class as typedefs. See lookup_partial_symbol function.
5231 (new_symbol): Similar to add_partial_symbol, do not create
5232 symbol for the typedef. See lookup_block_symbol.
5233 * symtab.c (symbol_matches_domain): New function, takes care
5234 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
5235 (lookup_partial_symbol): Use symbol_matches_domain to see if the
5236 found psym domain matches the given domain.
5237 (lookup_block_symbol): Likewise.
5238
5239 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
5240
5241 * top.c (command_line_handler_continuation): Remove.
5242 (execute_command): Do not install the above.
5243
5244 2008-05-05 Vladimir Prus <vladimir@codesourcery.com>
5245
5246 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
5247 and catch all exceptions from it.
5248 * top.c (command_line_handler_continuation): Don't
5249 call bpstat_do_action here.
5250
5251 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
5252
5253 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
5254 (struct die_info): Remove type.
5255 (read_type_die, read_typedef, read_base_type, read_subrange_type)
5256 (read_structure_type, read_enumeration_type, read_array_type)
5257 (read_tag_pointer_type, read_tag_ptr_to_member_type)
5258 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
5259 (read_tag_string_type, read_subroutine_type, read_set_type)
5260 (read_unspecified_type): Delete prototypes. Remove check for
5261 already-loaded type. Return the new type.
5262 (set_die_type): Return the new type.
5263 (reset_die_and_siblings_types): Delete.
5264 (load_comp_unit, load_full_comp_unit): Set type_hash.
5265 (process_queue): Remove call to reset_die_and_siblings_types.
5266 (process_die): Do not read most types here. Use read_type_die
5267 for others.
5268 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
5269 (quirk_gcc_member_function_pointer): Return the new type.
5270 (process_structure_scope, process_enumeration_scope): Use
5271 get_die_type and read the DIE's type.
5272 (read_full_die): Do not initialize die->type.
5273 (tag_type_to_type): Use read_type_die.
5274 (read_type_die): Check for already defined types. Return the
5275 type.
5276 (determine_prefix): Use get_die_type.
5277 (set_die_type): Return the type.
5278 (get_die_type): Take a CU argument. Check for no type_hash.
5279
5280 2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
5281
5282 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
5283 locals.
5284
5285 2008-05-04 Pedro Alves <pedro@codesourcery.com>
5286
5287 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
5288 and bp_longjmp_resume breakpoints.
5289 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
5290 meaningful.
5291 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
5292 breakpoints. Create bp_longjmp breakpoints as momentary
5293 breakpoints.
5294 (enable_longjmp_breakpoint): Delete.
5295 (set_longjmp_breakpoint): New.
5296 (disable_longjmp_breakpoint): Delete.
5297 (delete_longjmp_breakpoint): New.
5298 (set_longjmp_resume_breakpoint): Delete.
5299 (set_momentary_breakpoint_at_pc): New.
5300 (breakpoint_re_set_one): Don't delete bp_longjmp and
5301 bp_longjmp_resume breakpoints.
5302 (breakpoint_re_set): Don't create longjmp and longjmp-resume
5303 breakpoints.
5304
5305 * infrun.c (step_resume_breakpoint): Add comment.
5306 (struct execution_control_state): Delete handling_longjmp member.
5307 (init_execution_control_state). Don't clear handling_longjmp.
5308 (context_switch): Don't context switch handling_longjmp.
5309 (handle_inferior_event): If handling a bp_longjmp breakpoint,
5310 create a bp_longjmp_resume breakpoint, and set it as current
5311 step_resume_breakpoint, then step over the longjmp breakpoint. If
5312 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
5313 breakpoint, delete the longjmp-resume breakpoint, and stop
5314 stepping.
5315 (currently_stepping): Remove handling_longjmp from expression.
5316 (insert_step_resume_breakpoint_at_sal): Update comment.
5317 (insert_longjmp_resume_breakpoint): New.
5318
5319 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
5320 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
5321 declarations.
5322 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
5323 (set_longjmp_resume_breakpoint): Delete declaration.
5324
5325 * gdbthread.h (save_infrun_state): Remove handling_longjmp
5326 parameter.
5327 (load_infrun_state): Delete *handling_longjmp parameter.
5328 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
5329 Update body.
5330 (load_infrun_state): Delete *handling_longjmp parameter. Update
5331 body.
5332
5333 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
5334 (delete_longjmp_breakpoint_cleanup): New.
5335 (step_1): Call set_longjmp_breakpoint instead of
5336 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
5337 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
5338 (step_1_continuation): Pass thread id in the continuation args to
5339 step_once.
5340 (step_once): Add thread parameter. Pass thread id the the
5341 continuation.
5342
5343 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5344
5345 Set CU BASE_ADDRESS already from partial DIEs.
5346 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
5347 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
5348 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
5349 from these variables if it was still unset.
5350
5351 * Makefile.in: Update dependencies.
5352 * dwarf2read.c: Include "addrmap.h"
5353 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
5354 (dwarf2_ranges_read): New prototype.
5355 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
5356 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
5357 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
5358 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
5359 comment for it. Add the found ranges to RANGES_PST. New variable
5360 BASEADDR, initialize it the common way.
5361 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
5362 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
5363 HAS_RANGES_OFFSET for the later processing.
5364 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
5365 * symtab.c: Include "addrmap.h"
5366 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
5367 Move the psymtab locator into ...
5368 (find_pc_sect_psymtab_closer): ... a new function.
5369
5370 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5371
5372 * arch-utils.c (gdbarch_update_p): Use default values for
5373 info.abfd and info.target_desc if they are NULL.
5374 (gdbarch_from_bfd): Remove assertion.
5375 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
5376 using the current target description.
5377 (gdbarch_info_fill): Do not use default values for info->abfd
5378 and info->target_desc.
5379
5380 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5381
5382 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
5383
5384 2008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5385
5386 * inferior.h (read_pc_pid, write_pc_pid): Remove.
5387 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
5388
5389 * regcache.c (read_pc_pid): Remove, replace by ...
5390 (regcache_read_pc): ... this function.
5391 (write_pc_pid): Remove, replace by ...
5392 (regcache_write_pc): ... this function.
5393 (read_pc, write_pc): Update.
5394
5395 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
5396 write_pc_pid by regcache_read_pc and regcache_write_pc.
5397 (displaced_step_fixup): Likewise.
5398 (resume): Likewise. Use regcache arch instead of current_gdbarch.
5399 (prepare_to_proceed): Likewise.
5400 (proceed): Likewise.
5401 (adjust_pc_after_break): Likewise.
5402 (handle_inferior_event): Likewise.
5403
5404 * linux-nat.c (cancel_breakpoint): Likewise.
5405 * linux-thread-db.c (check_event): Likewise.
5406 * aix-thread.c (aix_thread_wait): Likewise.
5407 * tracepoint.c (trace_dump_command): Likewise.
5408
5409 2008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5410
5411 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
5412 SYMBOL_LOCATION_BATON.
5413
5414 2008-05-04 Vladimir Prus <vladimir@codesourcery.com>
5415
5416 * target.h (struct target_ops): New field to_auxv_parse.
5417 * auxv.c (default_auxv_parse): New, renamed from previous
5418 target_auxv_parse.
5419 (target_auxv_parse): Try to call target method. Fallback to
5420 default_auxv_parse if not found.
5421 * procfs.c (procfs_auxv_parse): New.
5422 (init_procfs_ops): On Solaris, in 64-bit mode, install
5423 procfs_auxv_parse.
5424
5425 2008-05-03 Adam Nemet <anemet@caviumnetworks.com>
5426
5427 * symfile.c (add_symbol_file_command): Use paddress rather than
5428 hex_string to print the address.
5429
5430 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5431
5432 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
5433 return the null frame ID to terminate the backtrace.
5434
5435 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5436
5437 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
5438 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
5439 (SIG_FRAME_PC_OFFSET): Likewise.
5440 (SIG_FRAME_LR_OFFSET): Likewise.
5441 (SIG_FRAME_FP_OFFSET): Likewise.
5442 (rs6000_push_dummy_call): Likewise.
5443 (rs6000_return_value): Likewise.
5444 (rs6000_convert_from_func_ptr_addr): Likewise.
5445 (branch_dest, rs6000_software_single_step): Likewise.
5446 (deal_with_atomic_sequence): Rename to ...
5447 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
5448 Do not call branch_dest; inline required parts of that function.
5449 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
5450 with SYMBOL_LINKAGE_NAME.
5451 (struct reg, regsize): Delete.
5452 (read_memory_addr): Delete; inline into callers.
5453 (rs6000_skip_prologue): Move after skip_prologue.
5454 (skip_prologue): Remove prototype.
5455 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
5456 initialization as if this variable were true. Do not install
5457 ppc64_sysv_abi_adjust_breakpoint_address.
5458
5459 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
5460 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
5461 and "breakpoint.h".
5462 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
5463 (SIG_FRAME_PC_OFFSET): Likewise.
5464 (SIG_FRAME_LR_OFFSET): Likewise.
5465 (SIG_FRAME_FP_OFFSET): Likewise.
5466 (rs6000_push_dummy_call): Likewise.
5467 (rs6000_return_value): Likewise.
5468 (rs6000_convert_from_func_ptr_addr): Likewise.
5469 (branch_dest, rs6000_software_single_step): Likewise. Replace
5470 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
5471 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
5472 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
5473 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
5474 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
5475
5476 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
5477 (AIX_TEXT_SEGMENT_BASE): New macro.
5478 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
5479 by AIX_TEXT_SEGMENT_BASE.
5480
5481 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
5482 (struct gdbarch_tdep): Remove text_segment_base member.
5483 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
5484 ppc64_sysv_abi_adjust_breakpoint_address.
5485
5486 * Makefile.in (rs6000-tdep.o): Update dependencies.
5487 (rs6000-aix-tdep.o): Likewise.
5488
5489 2008-05-03 Luis Machado <luisgpm@br.ibm.com>
5490 Thiago Jung Bauermann <bauerman@br.ibm.com>
5491
5492 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
5493 * doublest.c (convert_typed_floating): Fix typo in comment.
5494 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
5495 * frame-unwind.h (frame_sniffer_ftype): Likewise.
5496 * frame.c (frame_unwind_address_in_block): Likewise.
5497 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
5498 * symtab.h (struct symbol): Likewise.
5499 * tramp-frame.h (struct trad_frame_cache): Likewise.
5500 * value.c (allocate_repeat_value): Likewise.
5501
5502 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5503
5504 * infrun.c (handle_inferior_event): Do not insert breakpoints at
5505 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
5506
5507 2008-05-03 Pedro Alves <pedro@codesourcery.com>
5508
5509 * parse.c (parse_exp_in_context): Don't override
5510 expression_context_pc if get_selected_block returned a valid
5511 block.
5512
5513 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
5514
5515 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
5516 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
5517 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
5518 Delete.
5519 * c-typeprint.c (c_type_print_base): Delete handling of template
5520 instantiations.
5521 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
5522 (METHOD_PTR_TO_VOFFSET): Delete.
5523 * defs.h (QUIT_FIXME): Delete.
5524 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
5525 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
5526 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
5527 ninstantiations, and instantiations.
5528 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
5529 (TYPE_FN_FIELD_INLINED): Delete.
5530 * srec.h (SREC_BINARY): Delete.
5531 * symtab.c (symbol_init_demangled_name): Delete.
5532 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
5533 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
5534 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
5535 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
5536 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
5537 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
5538 * target.h (enum thread_control_capabilities): Delete tc_switch.
5539 (target_can_switch_threads): Delete.
5540
5541 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
5542
5543 * Makefile.in (objfiles.o): Update.
5544 * exec.c (exec_set_section_address): Support p->addr != 0.
5545 * objfiles.c (objfile_relocate): Update exec_ops section
5546 addresses.
5547 * symfile.c (place_section): Move exec_set_section_address call...
5548 (default_symfile_offsets): ...to here.
5549
5550 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
5551
5552 * Makefile.in (ppc_linux_tdep_h): New macro.
5553 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
5554 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
5555 (powerpc_e500l_c): Likewise.
5556 (ppc-linux-nat.o): Update dependencies.
5557 (ppc-linux-tdep.o): Update dependencies.
5558 (rs6000-tdep.o): Update dependencies.
5559
5560 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
5561 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
5562 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
5563 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
5564 (tdesc_powerpc_e500): Remove.
5565
5566 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
5567 and "features/rs6000/powerpc-altivec64.c".
5568 (ppc_supply_reg, ppc_collect_reg): Make global.
5569 (variants): Use tdesc_powerpc_32 for "powerpc" and
5570 tdesc_powerpc_altivec64 for "powerpc64".
5571 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
5572
5573 * ppc-linux-tdep.h: New file.
5574
5575 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
5576 Include "features/rs6000/powerpc-32l.c".
5577 Include "features/rs6000/powerpc-altivec32l.c".
5578 Include "features/rs6000/powerpc-64l.c".
5579 Include "features/rs6000/powerpc-altivec64l.c".
5580 Include "features/rs6000/powerpc-e500l.c".
5581 (ppc_linux_supply_gregset): New function.
5582 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
5583 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
5584 (ppc64_linux_gregset): Likewise.
5585 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
5586 (ppc_linux_trap_reg_p): New function.
5587 (ppc_linux_write_pc): New function.
5588 (ppc_linux_core_read_description): New function.
5589 (ppc_linux_init_abi): Install ppc_linux_write_pc and
5590 ppc_linux_core_read_description. Install orig_r3 and trap
5591 registers if present in the target description.
5592 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
5593
5594 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
5595 (PT_ORIG_R3, PT_TRAP): Define if necessary.
5596 (ppc_register_u_addr): Handle orig_r3 and trap registers.
5597 (fetch_ppc_registers): Likewise.
5598 (store_ppc_registers): Likewise.
5599 (store_register): Likewise.
5600 (ppc_linux_read_description): Check whether AltiVec is supported.
5601 Check whether inferior is 32-bit or 64-bit. Return the appropriate
5602 Linux target description.
5603
5604 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
5605 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
5606 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
5607 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
5608 rs6000/powerpc-e500. Update -expedite variables accordingly.
5609
5610 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
5611 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
5612 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
5613 * features/rs6000/powerpc-e500.c: Regenerate.
5614 * features/rs6000/powerpc-32.c: Regenerate.
5615 * features/rs6000/powerpc-64.c: Regenerate.
5616
5617 * features/rs6000/power-linux.xml: New file.
5618 * features/rs6000/power64-linux.xml: New file.
5619 * features/rs6000/powerpc-32l.xml: New file.
5620 * features/rs6000/powerpc-altivec32l.xml: New file.
5621 * features/rs6000/powerpc-64l.xml: New file.
5622 * features/rs6000/powerpc-altivec64l.xml: New file.
5623 * features/rs6000/powerpc-e500l.xml: New file.
5624 * features/rs6000/powerpc-32l.c: New (generated) file.
5625 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
5626 * features/rs6000/powerpc-64l.c: New (generated) file.
5627 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
5628 * features/rs6000/powerpc-e500l.xml: New (generated) file.
5629
5630 * regformats/reg-ppc.dat: Remove.
5631 * regformats/reg-ppc64.dat: Remove.
5632 * regformats/rs6000/powerpc-32.dat: Remove.
5633 * regformats/rs6000/powerpc-64.dat: Remove.
5634 * regformats/rs6000/powerpc-e500.dat: Remove.
5635 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
5636 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
5637 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
5638 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
5639 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
5640
5641 2008-05-03 Pedro Alves <pedro@codesourcery.com>
5642
5643 * thread.c (delete_thread): Call observer_notify_thread_exit.
5644 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
5645 thread_exit observer.
5646 (mi_thread_exit): New.
5647
5648 2008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5649
5650 * breakpoint.c (create_exception_catchpoint): Remove prototype
5651 for already deleted function.
5652 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
5653 * frame.h (show_stack_frame): Remove prototype.
5654 * stack.c (show_stack_frame): Remove empty, unused function.
5655 * source.c (symtab_to_fullname, print_source_lines): Small fix
5656 in comment.
5657 * value.c (show_values): Update comments to mention "show values"
5658 command instead of "info history".
5659
5660 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5661
5662 * linespec.c: Include "target.h".
5663 (minsym_found): Handle minimal symbols pointing to function
5664 descriptors. Use find_function_start_pc.
5665 * minsyms.c (msymbol_objfile): New function.
5666 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
5667 to function descriptors.
5668 * symtab.c (fixup_section): Only use minimal symbol at the same
5669 address to determine section of a symbol.
5670 (find_function_start_pc): New function.
5671 (find_function_start_sal): Use it.
5672 * symtab.h (msymbol_objfile): Add prototype.
5673 (find_function_start_pc): Likewise.
5674 * value.c: Include "objfiles.h".
5675 (value_fn_field): Handle minimal symbols pointing to function
5676 descriptors.
5677 * Makefile.in (linespec.o): Update dependencies.
5678 (value.o): Likewise.
5679
5680 2008-05-02 Joel Brobecker <brobecker@adacore.com>
5681
5682 * ada-lang.c (unwrap_value): Handle the case where the "F" field
5683 inside a PAD type is a bitfield.
5684
5685 2008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
5686
5687 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
5688 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5689 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5690 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
5691 Allow typedefs when checking for function pointer arguments.
5692 Right-align small structs passed on the stack.
5693 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
5694 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
5695 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
5696
5697 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5698
5699 * Makefile.in (arm-tdep.o): Update.
5700 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
5701 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
5702 (arm_pc_is_thumb): Use mapping symbols.
5703 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
5704 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
5705 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
5706 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
5707 * gdbarch.sh: Add record_special_symbol.
5708 * gdbarch.c, gdbarch.h: Regenerated.
5709 * objfiles.c (struct objfile_data): Add cleanup member.
5710 (register_objfile_data_with_cleanup): New function, from
5711 register_objfile_data.
5712 (register_objfile_data): Use it.
5713 (objfile_free_data): Call clear_objfile_data.
5714 (clear_objfile_data): Call cleanup functions.
5715 * objfiles.h (register_objfile_data_with_cleanup): Declare.
5716
5717 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5718
5719 * objfiles.c (init_entry_point_info): Handle shared libraries.
5720
5721 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5722
5723 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
5724 lowest_pc.
5725
5726 2008-05-02 Jim Blandy <jimb@codesourcery.com>
5727 Pedro Alves <pedro@codesourcery.com>
5728
5729 Implement displaced stepping.
5730
5731 * gdbarch.sh (max_insn_length): New 'variable'.
5732 (displaced_step_copy, displaced_step_fixup)
5733 (displaced_step_free_closure, displaced_step_location): New
5734 functions.
5735 (struct displaced_step_closure): Add forward declaration.
5736 * gdbarch.c, gdbarch.h: Regenerated.
5737
5738 * arch-utils.c: #include "objfiles.h".
5739 (simple_displaced_step_copy_insn)
5740 (simple_displaced_step_free_closure)
5741 (displaced_step_at_entry_point): New functions.
5742 * arch-utils.h (simple_displaced_step_copy_insn)
5743 (simple_displaced_step_free_closure)
5744 (displaced_step_at_entry_point): New prototypes.
5745
5746 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
5747 (I386_MAX_MATCHED_INSN_LEN): ... this.
5748 (i386_absolute_jmp_p, i386_absolute_call_p)
5749 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
5750 (i386_displaced_step_fixup): New functions.
5751 (struct i386_insn, i386_match_insn): Update.
5752 (i386_gdbarch_init): Set gdbarch_max_insn_length.
5753 * i386-tdep.h (I386_MAX_INSN_LEN): New.
5754 (i386_displaced_step_fixup): New prototype.
5755 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
5756 Register gdbarch_displaced_step_copy,
5757 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
5758 and gdbarch_displaced_step_location functions.
5759
5760 * infrun.c (debug_displaced): New variable.
5761 (show_debug_displaced): New function.
5762 (struct displaced_step_request): New struct.
5763 (displaced_step_request_queue, displaced_step_ptid)
5764 (displaced_step_gdbarch, displaced_step_closure)
5765 (displaced_step_original, displaced_step_copy)
5766 (displaced_step_saved_copy, can_use_displaced_stepping): New
5767 variables.
5768 (show_can_use_displaced_stepping, use_displaced_stepping)
5769 (displaced_step_clear, cleanup_displaced_step_closure)
5770 (displaced_step_dump_bytes, displaced_step_prepare)
5771 (displaced_step_clear_cleanup, write_memory_ptid)
5772 (displaced_step_fixup): New functions.
5773 (resume): Call displaced_step_prepare.
5774 (proceed): Call read_pc once, and remember the value. If using
5775 displaced stepping, don't remove breakpoints.
5776 (handle_inferior_event): Call displaced_step_fixup. Add some
5777 debugging output. When we try to step over a breakpoint, but get
5778 a signal to deliver to the thread instead, ensure the step-resume
5779 breakpoint is actually inserted. If a thread hop is needed, and
5780 displaced stepping is enabled, don't remove breakpoints.
5781 (init_wait_for_inferior): Call displaced_step_clear.
5782 (_initialize_infrun): Add "set debug displaced" command. Add
5783 "maint set can-use-displaced-stepping" command. Clear
5784 displaced_step_ptid.
5785 * inferior.h (debug_displaced): Declare variable.
5786 (displaced_step_dump_bytes): Declare function.
5787
5788 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
5789 dependencies.
5790
5791 2008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
5792
5793 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
5794 (arm_force_mode_string, arm_show_fallback_mode)
5795 (arm_show_force_mode): New.
5796 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
5797 arm_frame_is_thumb.
5798 (_initialize_arm_tdep): Add "set arm fallback-mode"
5799 and "set arm force-mode".
5800 * NEWS: Document new commands.
5801
5802 2008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
5803
5804 * main.h (batch_silent): Declare.
5805 * event-top.c: Include main.h.
5806 (gdb_setup_readline): Remove extern batch_silent declaration.
5807 * infrun.c (normal_stop): Don't print source location when running in
5808 --batch-silent mode.
5809 * Makefile.in (event-top.o): Add main.h dependency.
5810
5811 2008-05-02 Andreas Schwab <schwab@suse.de>
5812
5813 * target.h (struct target_ops): Add
5814 to_watchpoint_addr_within_range.
5815 (target_watchpoint_addr_within_range): New function.
5816 * target.c (update_current_target): Inherit
5817 to_watchpoint_addr_within_range, defaulting to
5818 default_watchpoint_addr_within_range.
5819 (default_watchpoint_addr_within_range): New function.
5820 (debug_to_watchpoint_addr_within_range): New function.
5821 (setup_target_debug): Set to_watchpoint_addr_within_range.
5822 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
5823 New function.
5824 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
5825 * breakpoint.c (watchpoints_triggered): Use
5826 target_watchpoint_addr_within_range.
5827
5828 2008-05-01 Pedro Alves <pedro@codesourcery.com>
5829
5830 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
5831 (i[34567]86-*-dicos*, x86_64-*-dicos*):
5832 Set gdb_osabi to GDB_OSABI_DICOS.
5833
5834 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
5835 * osabi.c (gdb_osabi_name): Add "DICOS".
5836
5837 * i386-dicos-tdep.c: New file.
5838
5839 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
5840 (ALLDEPFILES): Add i386-dicos-tdep.c.
5841 (i386-dicos-tdep.o): New rule.
5842
5843 2008-05-01 Pedro Alves <pedro@codesourcery.com>
5844
5845 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
5846 and register the fork's PTID as a thread.
5847
5848 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5849
5850 PR gdb/1665
5851 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
5852 assign its value to the breakpoint created.
5853 (create_breakpoints): Add breakpoint_ops argument and pass it
5854 to create_breakpoint call.
5855 (break_command_really): Add breakpoint_ops argument and pass/assign
5856 appropriately.
5857 (break_command_1): Pass NULL as ops argument.
5858 (set_breakpoint): Pass NULL as ops argument.
5859 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
5860 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
5861 catch and throw catchpoints.
5862
5863 2008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
5864
5865 PR gdb/2343
5866 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
5867 translate signal numeric value from the target to GDB's enum
5868 target_signal.
5869 * gdbarch.c, gdbarch.h: Regenerated.
5870 * gdbarch.sh: Added two new functions target_signal_from_host and
5871 target_signal_to_host.
5872 * target.h (default_target_signal_from_host,
5873 default_target_signal_to_host): New functions - declarations.
5874 * signals/signals.c (struct gdbarch): New declaration.
5875 (default_target_signal_to_host, default_target_signal_from_host): New
5876 functions.
5877
5878 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5879 Pedro Alves <pedro@codesourcery.com>
5880
5881 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
5882 Johnston <jjohnstn@redhat.com>.
5883
5884 * NEWS: Mention attach to stopped process fix.
5885 * infcmd.c (detach_command, disconnect_command): Discard the thread
5886 list.
5887 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
5888 attaching. Use signal_stop_state.
5889 (signal_stop_state): Check stop_soon.
5890 * linux-nat.c (kill_lwp): Declare earlier.
5891 (pid_is_stopped, linux_nat_post_attach_wait): New.
5892 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
5893 comments.
5894 (linux_nat_attach): Use linux_nat_post_attach_wait.
5895 (detach_callback, linux_nat_detach): Improve handling for signalled
5896 processes.
5897 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
5898 from the process ID.
5899 * Makefile.in (infcmd.o): Update.
5900
5901 2008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
5902
5903 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
5904 * arm-tdep.c (arm_frame_is_thumb): New.
5905 (arm_pc_is_thumb): Clarify comment.
5906 (thumb_analyze_prologue): Remove PC special case.
5907 (thumb_scan_prologue): Take a block_addr argument. Use it for
5908 find_pc_partial_function. Remove unused variables.
5909 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
5910 for find_pc_partial_function. Remove PC special case.
5911 (arm_prologue_prev_register): Add special handling for PC and CPSR.
5912 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
5913 (arm_get_next_pc): Use arm_frame_is_thumb.
5914 (arm_write_pc): Use CPSR_T instead of 0x20.
5915 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
5916 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
5917 (CPSR_T): Define.
5918 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
5919 DWARF2_FRAME_REG_FN.
5920 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
5921 DWARF2_FRAME_REG_FN.
5922 (struct dwarf2_frame_state_reg): Add FN to loc union.
5923
5924 2008-05-01 Nick Roberts <nickrob@snap.net.nz>
5925
5926 * exec.c (print_section_info): Add missing '\n'.
5927
5928 2008-05-01 Vladimir Prus <vladimir@codesourcery.com>
5929
5930 * thread.c (add_thread): Move observer call to ...
5931 (add_thread_silent): ... here.
5932
5933 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5934
5935 * rs6000-tdep.c: Update for unwinder changes.
5936 * ppcobsd-tdep.c: Likewise.
5937
5938 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5939
5940 * s390-tdep.c: Update for unwinder changes.
5941
5942 2008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
5943
5944 * spu-tdep.c: Update for unwinder changes.
5945
5946 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5947
5948 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
5949 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
5950 sparc64-linux-tdep.c: Update for unwinder changes.
5951
5952 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5953
5954 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
5955 for unwinder changes.
5956 * mips-tdep.c: Likewise.
5957 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
5958 raw one.
5959
5960 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5961
5962 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
5963 unwinder changes.
5964
5965 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
5966
5967 Update i386 and amd64 ports for unwinder changes.
5968
5969 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
5970 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
5971 (amd64_frame_unwind): Use default_frame_sniffer.
5972 (amd64_frame_sniffer): Delete.
5973 (amd64_sigtramp_frame_cache): Expect this_frame.
5974 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
5975 (amd64_sigtramp_frame_sniffer): Update signature.
5976 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
5977 (amd64_frame_base_address): Expect this_frame.
5978 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
5979 this_frame.
5980 (amd64_init_abi): Use set_gdbarch_dummy_id and
5981 frame_unwind_append_unwinder.
5982 * i386-tdep.c (i386_frame_cache): Expect this_frame.
5983 (i386_frame_this_id, i386_frame_prev_register): Update signature.
5984 (i386_frame_unwind): Use default_frame_sniffer.
5985 (i386_frame_sniffer): Delete.
5986 (i386_sigtramp_frame_cache): Expect this_frame.
5987 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
5988 (i386_sigtramp_frame_sniffer): Update signature.
5989 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
5990 (i386_frame_base_address): Update signature.
5991 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
5992 (i386_push_dummy_call): Update comment.
5993 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
5994 Expect this_frame.
5995 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
5996 and frame_unwind_append_unwinder.
5997 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
5998 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
5999 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
6000 i386nbsd-tdep.c: Update for unwinder changes.
6001
6002 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6003
6004 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
6005 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
6006 this_frame.
6007 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
6008 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
6009 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
6010 signature.
6011 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
6012 this_frame.
6013 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
6014 Update signature.
6015 * tramp-frame.h (struct tramp_frame): Update signature of init.
6016 * Makefile.in (trad-frame.o): Update.
6017
6018 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6019
6020 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
6021 (execute_stack_op): Put this_frame in the baton.
6022 (execute_cfa_program): Take this_frame.
6023 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
6024 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
6025 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
6026 (dwarf2_frame_this_id): Adjust to work on this_frame.
6027 (dwarf2_signal_frame_this_id): Delete.
6028 (dwarf2_frame_prev_register): Update signature. Use new frame
6029 unwind methods.
6030 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
6031 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
6032 dwarf2_frame_sniffer.
6033 (dwarf2_append_unwinders): New.
6034 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
6035 this_frame.
6036 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
6037 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
6038 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
6039 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
6040 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
6041 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
6042 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
6043 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
6044 (dwarf2_append_unwinders): Declare.
6045 (dwarf2_frame_base_sniffer): Update declaration.
6046 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
6047 this_frame.
6048
6049 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6050
6051 Convert frame unwinders to use the current frame and
6052 "struct value".
6053
6054 * frame.c (frame_debug): Make global.
6055 (get_frame_id): Pass this frame to unwinder routines.
6056 (frame_pc_unwind): Remove unused unwind->prev_pc support.
6057 (do_frame_register_read): Do not discard the return value of
6058 frame_register_read.
6059 (frame_register_unwind): Remove debug messages. Use
6060 frame_unwind_register_value.
6061 (frame_unwind_register_value, get_frame_register_value): New
6062 functions.
6063 (create_new_frame, get_frame_base_address, get_frame_locals_address)
6064 (get_frame_args_address, get_frame_type): Pass this frame to
6065 unwinder routines.
6066 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
6067 functions.
6068 * frame.h: Update comments.
6069 (frame_debug, frame_unwind_register_value, get_frame_register_value)
6070 (frame_prepare_for_sniffer): Declare.
6071 * frame-unwind.h: Update comments and parameter names.
6072 (default_frame_sniffer): Declare.
6073 (frame_prev_register_ftype): Return a struct value *.
6074 (struct frame_unwind): Remove prev_pc member.
6075 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
6076 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
6077 (frame_unwind_got_register, frame_unwind_got_memory)
6078 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
6079 * frame-base.h: Update comments and parameter names.
6080 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
6081 if necessary. Add debugging output.
6082 * sentinel-frame.c (sentinel_frame_prev_register)
6083 (sentinel_frame_this_id): Update for new signature.
6084 (sentinel_frame_prev_pc): Delete.
6085 (sentinel_frame_unwinder): Remove prev_pc.
6086 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
6087 prev_pc.
6088 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
6089 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
6090 (frame_unwind_append_sniffer): Delete.
6091 (frame_unwind_append_unwinder): New function.
6092 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
6093 from unwinders. Use frame_prepare_for_sniffer.
6094 (default_frame_sniffer, frame_unwind_got_optimized)
6095 (frame_unwind_got_register, frame_unwind_got_memory)
6096 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
6097 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
6098 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
6099 signature.
6100 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
6101 * gdbarch.c, gdbarch.c: Regenerated.
6102 * frame-base.c (default_frame_base_address)
6103 (default_frame_locals_address, default_frame_args_address): Update
6104 for new signature.
6105 (frame_base_find_by_frame): Pass this frame to unwinder routines.
6106 * infcall.c (call_function_by_hand): Update comments.
6107 * Makefile.in (frame-unwind.o): Update dependencies.
6108
6109 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6110
6111 * ada-lang.c (ada_value_primitive_packed_val): Only check
6112 value_lazy for memory lvals.
6113 * findvar.c (value_of_register_lazy): New function.
6114 (locate_var_value): Only check value_lazy for memory lvals.
6115 * valarith.c (value_subscripted_rvalue): Likewise.
6116 * valops.c (value_fetch_lazy): Handle both memory and register
6117 lvals.
6118 (search_struct_field, value_slice): Only check value_lazy for memory
6119 lvals.
6120 * value.c (struct value): Update comment for lazy.
6121 (value_primitive_field): Only check value_lazy for memory lvals.
6122 * value.h (value_lazy): Update comment.
6123 (value_of_register_lazy): Declare.
6124
6125 2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
6126
6127 * corefile.c (reopen_exec_file): Close any open files.
6128
6129 2008-04-29 Joel Brobecker <brobecker@adacore.com>
6130
6131 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
6132 show_memory_breakpoints to 1 while reading the instruction bundle.
6133
6134 2008-04-29 Joel Brobecker <brobecker@adacore.com>
6135
6136 * gdbarch.sh: Document the return_value method. Explain that
6137 the FUNCTYPE parameter might be NULL.
6138 * gdbarch.h: Regenerated.
6139 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
6140 type when calling using_struct_return, as this is unnecessary
6141 on this target.
6142
6143 2008-04-28 Joel Brobecker <brobecker@adacore.com>
6144
6145 * terminal.h (create_tty_session): Fix return type.
6146
6147 2008-04-26 Vladimir Prus <vladimir@codesourcery.com>
6148
6149 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
6150
6151 2008-04-26 Joel Brobecker <brobecker@adacore.com>
6152
6153 * breakpoint.c (condition_command, commands_from_control_command)
6154 (break_command_really): Minor reformatting.
6155
6156 2008-04-25 Pedro Alves <pedro@codesourcery.com>
6157
6158 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
6159
6160 2008-04-25 Pedro Alves <pedro@codesourcery.com>
6161
6162 * amd64-tdep.c (amd64_get_longjmp_target): New.
6163 (amd64_init_abi): Register amd64_get_longjmp_target as
6164 gdbarch_get_longjmp_target callback.
6165 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
6166
6167 2008-04-25 Pedro Alves <pedro@codesourcery.com>
6168
6169 * breakpoint.h (enum bpstat_what_main_action): Delete
6170 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
6171
6172 * breakpoint.c (clrs): Delete.
6173 (bpstat_what): Update table.
6174
6175 * infrun.c (handle_inferior_event): Remove
6176 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
6177
6178 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6179
6180 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
6181 Adjust all prototypes using mi_cmd_args_ftype to use
6182 mi_cmd_argv_ftype.
6183 (struct mi_cmd): Remove the args_func field.
6184 * mi/mi-cmds.c: Don't provide value for the args_func field.
6185 * mi/mi-main.c (mi_execute_async_cli_command)
6186 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
6187 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
6188 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
6189 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
6190 (mi_cmd_target_download): Adjust.
6191 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
6192 (mi_cmd_execute): Do not check for args_func.
6193 (mi_execute_async_cli_command): Adjust.
6194 * mi/mi-parse.c: Don't check for args_func.
6195
6196 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6197
6198 * breakpoint.c (bpstat_check_location)
6199 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
6200 New, extracted from bpstat_stop_status.
6201 (bpstat_stop_status): Use the above.
6202
6203 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6204
6205 * mi/mi-main.c (last_async_command): Rename to current_token.
6206 (previous_async_command): Remove.
6207 (mi_cmd_gdb_exit): Adjust.
6208 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
6209 (mi_cmd_target_select): Adjust.
6210 (mi_cmd_execute): Don't set previous_async_command. Free token
6211 here even in async mode.
6212 (mi_execute_async_cli_command): Adjust.
6213 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
6214 token.
6215 (mi_load_progress): Adjust.
6216
6217 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6218
6219 * infcmd.c (step_1_continuation): Always disable longjmp
6220 breakpoint if we're not going to do another step.
6221
6222 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6223
6224 exec_cleanup murder.
6225 * breakpoint.c (until_break_command_continuation): Add
6226 the 'error' parameter. Directly delete the breakoint as
6227 opposed to running cleanups.
6228 (until_break_command): Install continuation only
6229 after starting the target. Don't use exec cleanups,
6230 use ordinary cleanups. Discard cleanups is successfully
6231 started the target in async mode.
6232 (make_cleanup_delete_breakpoint): Remove.
6233 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
6234 declaration.
6235 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
6236 declarations.
6237 (struct continations): Add the 'error' parameter to the
6238 continuation_hook field.
6239 (add_continuation, do_all_continuations)
6240 (add_intermediate_continuation)
6241 (do_all_intermediate_continuations): Add the 'error' parameter.
6242 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
6243 * inf-loop.c (inferior_event_handler): Instead of calling
6244 discard_all_continuations, use do_all_continuations with 1 as
6245 'error' parameter. Pass 0 as 'error' parameter in existing uses
6246 of discard_all_continuations.
6247 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
6248 cleanups.
6249 (step_once): Install continuation only after resuming the target.
6250 (step_1_continuation): Disable longjmp breakpoint on error.
6251 (finish_command_continuation): Add the error parameter. Delete
6252 the finish breakpoint directly, do not use cleanups.
6253 (finish_command): Do not use exec_cleanups. Always setup
6254 continuation. For sync case, immediately run them.
6255 (attach_command_continuation): Add the error parameter.
6256 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
6257 remove step_resume_breakpoint -- adjust delete it directly.
6258 * interps.c (interp_set): Adjust call to do_all_continations.
6259 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
6260 do exec cleanups.
6261 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
6262 cleanups.
6263 (mi_cmd_execute): Do not use exec_cleanup.
6264 (mi_execute_async_cli_command): Simplify the string concatenation
6265 logic. Do no use exec cleanup.
6266 (mi_exec_async_cli_cmd_continuation): New parameter error.
6267 Free last_async_command.
6268 * top.c (command_line_handler_continuation): New parameter error.
6269 * utils.c (exec_cleanup_chain, make_exec_cleanup)
6270 (do_exec_cleanups): Remove.
6271 (add_continuation, do_all_continations)
6272 (add_intermediate_continuation)
6273 (do_all_intermediate_continuations): New parameter error.
6274
6275 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6276
6277 * breakpoint.h (bp_location_p): New typedef.
6278 Register a vector of bp_location_p.
6279 * breakpoint.c (always_inserted_mode)
6280 (show_always_inserted_mode): New.
6281 (unlink_locations_from_global_list): Remove.
6282 (update_global_location_list)
6283 (update_global_location_list_nothrow): New.
6284 (update_watchpoint): Don't free locations.
6285 (should_insert_location): New.
6286 (insert_bp_location): Use should_insert_location.
6287 (insert_breakpoint_locations): Copied from
6288 insert_breakpoints.
6289 (insert_breakpoint): Use insert_breakpoint_locations.
6290 (bpstat_stop_status): Call update_global_location_list
6291 when disabling breakpoint.
6292 (allocate_bp_location): Don't add to bp_location_chain.
6293 (set_raw_breakpoint)
6294 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
6295 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
6296 (enable_overlay_breakpoints, disable_overlay_breakpoints)
6297 (set_longjmp_resume_breakpoint)
6298 (enable_watchpoints_after_interactive_call_stop)
6299 (disable_watchpoints_before_interactive_call_start)
6300 (create_internal_breakpoint)
6301 (create_fork_vfork_event_catchpoint)
6302 (create_exec_event_catchpoint, set_momentary_breakpoint)
6303 (create_breakpoints, break_command_1, watch_command_1)
6304 (create_exception_catchpoint)
6305 (handle_gnu_v3_exceptions)
6306 (disable_breakpoint, breakpoint_re_set_one)
6307 (create_thread_event_breakpoint, create_solib_event_breakpoint)
6308 (create_ada_exception_breakpoint): : Don't call check_duplicates.
6309 Call update_global_location_list.
6310 (delete_breakpoint): Don't remove locations and don't
6311 try to reinsert them. Call update_global_location_list.
6312 (update_breakpoint_locations): Likewise.
6313 (restore_always_inserted_mode): New.
6314 (update_breakpoints_after_exec): Temporary disable
6315 always inserted mode.
6316 * Makefile.in: Update dependencies.
6317
6318 * infrun.c (proceed): Remove breakpoints while stepping
6319 over breakpoint.
6320 (handle_inferior_event): Don't remove or insert
6321 breakpoints.
6322 * linux-fork.c (checkpoint_command): Remove breakpoints
6323 before fork and insert after.
6324 (linux_fork_context): Remove breakpoints before switch
6325 and insert after.
6326 * target.c (target_disconnect, target_detach): Remove
6327 breakpoints from target.
6328
6329
6330 2008-04-24 Vladimir Prus <vladimir@codesourcery.com>
6331
6332 * breakpoint.c (print_one_breakpoint_location): In MI
6333 mode, report the location string the breakpoint was
6334 originally created with.
6335
6336 2008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
6337
6338 * Makefile.in (xtensa-tdep.o): Update dependencies.
6339 * configure.tgt (xtensa*): Update dependencies.
6340 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
6341 Local variable areg renamed to arreg.
6342 (areg_number): New function.
6343 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
6344 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
6345 replaced by arreg_number.
6346 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
6347 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
6348 (xtensa_scan_prologue): New function.
6349 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
6350 when ENTRY instraction hasn't been executed yet. Get the frame pointer
6351 value based on prologue analysis. Fix the bugs preventing WS and
6352 AR4-AR7/A11 registers from getting right values for intermediate frames,
6353 whose registers have been already spilled.
6354 (xtensa_frame_prev_register): Fix WS register value. Use are_number
6355 and arreg_number appropriately.
6356 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
6357 svr4_ilp32_fetch_link_map_offsets.
6358
6359 2008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
6360
6361 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
6362 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
6363
6364 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
6365
6366 * acinclude.m4: Add override.m4.
6367 * configure: Regenerate.
6368
6369 2008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6370
6371 * ada-lang.c (get_selections): Variable PROMPT made non-const and
6372 initialized with a trailing space now. Use PROMPT_ARG of
6373 COMMAND_LINE_INPUT instead of printing it ourselves.
6374
6375 2008-04-22 Joel Brobecker <brobecker@adacore.com>
6376
6377 * NEWS: Document support for 64-bit core file.
6378
6379 2008-04-22 Corinna Vinschen <vinschen@redhat.com>
6380
6381 * NEWS: Add information on calling convention and new SH CLI options.
6382
6383 * sh-tdep.c (sh_cc_gcc): New static string.
6384 (sh_cc_renesas): Ditto.
6385 (sh_cc_enum): New static string array.
6386 (sh_active_calling_convention): New static string pointer denoting
6387 active user chosen ABI.
6388 (sh_is_renesas_calling_convention): New function to return function
6389 specific ABI, or user choice if necessary.
6390 (sh_use_struct_convention): Rename first argument and turn around its
6391 meaning. Check for renesas ABI and return accordingly.
6392 (sh_use_struct_convention_nofpu): New function.
6393 (sh_next_flt_argreg): Get function type as third parameter. Check
6394 for renesas ABI and choose floating registers accordingly.
6395 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
6396 struct return slot accordingly.
6397 (sh_push_dummy_call_nofpu): Ditto.
6398 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
6399 Evaluate ABI and give to sh_use_struct_convention_nofpu.
6400 (sh_return_value_fpu): Evaluate ABI and give to
6401 sh_use_struct_convention.
6402 (show_sh_command): New function.
6403 (set_sh_command): Ditto.
6404 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
6405 CLI command.
6406
6407 * gdbarch.sh (return_value): Add func_type argument.
6408 * gdbarch.c: Regenerate.
6409 * gdbarch.h: Ditto.
6410 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
6411 val_type so as not to collide with value_type function. Call
6412 using_struct_return with additional function type argument.
6413 * infcall.c (call_function_by_hand): Call using_struct_return and
6414 gdbarch_return_value with additional function type argument.
6415 * infcmd.c (print_return_value): Take addition func_type argument.
6416 Call gdbarch_return_value with additional function type argument.
6417 (finish_command_continuation): Call print_return_value with additional
6418 function type argument.
6419 (finish_command): Ditto.
6420 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
6421 additional function type argument.
6422 * stack.c (return_command): Call using_struct_return and
6423 gdbarch_return_value with additional function type argument.
6424 * value.c (using_struct_return): Take additional function type argument.
6425 * value.h (using_struct_return): Accommodate declaration.
6426 * alpha-tdep.c (alpha_return_value): Add func_type argument.
6427 * amd64-tdep.c (amd64_return_value): Ditto.
6428 * arm-tdep.c (arm_return_value): Ditto.
6429 * avr-tdep.c (avr_return_value): Ditto.
6430 * cris-tdep.c (cris_return_value): Ditto.
6431 * frv-tdep.c (frv_return_value): Ditto.
6432 * h8300-tdep.c (h8300_return_value): Ditto.
6433 (h8300h_return_value): Ditto.
6434 * hppa-tdep.c (hppa32_return_value): Ditto.
6435 (hppa64_return_value): Ditto.
6436 * i386-tdep.c (i386_return_value): Ditto.
6437 * ia64-tdep.c (ia64_return_value): Ditto.
6438 * iq2000-tdep.c (iq2000_return_value): Ditto.
6439 * m32c-tdep.c (m32c_return_value): Ditto.
6440 * m32r-tdep.c (m32r_return_value): Ditto.
6441 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
6442 * m68k-tdep.c (m68k_return_value): Ditto.
6443 (m68k_svr4_return_value): Ditto.
6444 * m88k-tdep.c (m88k_return_value): Ditto.
6445 * mep-tdep.c (mep_return_value): Ditto.
6446 * mips-tdep.c (mips_eabi_return_value): Ditto.
6447 (mips_n32n64_return_value): Ditto.
6448 (mips_o32_return_value): Ditto.
6449 (mips_o64_return_value): Ditto.
6450 * mn10300-tdep.c (mn10300_return_value): Ditto.
6451 * mt-tdep.c (mt_return_value): Ditto.
6452 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
6453 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
6454 (ppc_sysv_abi_broken_return_value): Ditto.
6455 (ppc64_sysv_abi_return_value): Ditto.
6456 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
6457 (ppc_sysv_abi_broken_return_value): Ditto.
6458 (ppc64_sysv_abi_return_value): Ditto.
6459 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
6460 * rs6000-tdep.c (rs6000_return_value): Ditto.
6461 * s390-tdep.c (s390_return_value): Ditto.
6462 * score-tdep.c (score_return_value): Ditto.
6463 * sh-tdep.c (sh_return_value_nofpu): Ditto.
6464 (sh_return_value_fpu): Ditto.
6465 * sh64-tdep.c (sh64_return_value): Ditto.
6466 * sparc-tdep.c (sparc32_return_value): Ditto.
6467 * sparc64-tdep.c (sparc64_return_value): Ditto.
6468 * spu-tdep.c (spu_return_value): Ditto.
6469 * v850-tdep.c (v850_return_value): Ditto.
6470 * vax-tdep.c (vax_return_value): Ditto.
6471 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
6472 * xtensa-tdep.c (xtensa_return_value): Ditto.
6473
6474 * gdbtypes.h (struct type): Add calling_convention member.
6475 * dwarf2read.c (read_subroutine_type): Add calling convention read
6476 from DW_AT_calling_convention attribute to function type.
6477
6478 2008-04-22 Markus Deuling <deuling@de.ibm.com>
6479
6480 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
6481 multi_f77_subscript to support values from registers.
6482 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
6483 * value.h (value_subscripted_rvalue): Add prototype.
6484
6485 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
6486 Fix output.
6487 * f-valprint.c (f_val_print): Likewise.
6488
6489 2008-04-21 Craig Silverstein <csilvers@google.com>
6490
6491 * dwarf2read.c (zlib_decompress_section): Define abfd in the
6492 !HAVE_ZLIB_H case.
6493
6494 2008-04-21 Pedro Alves <pedro@codesourcery.com>
6495
6496 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
6497 section is not a code section.
6498
6499 2008-04-19 Craig Silverstein <csilvers@google.com>
6500
6501 * NEWS: Add information on compressed debug sections.
6502
6503 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
6504
6505 * mi/mi-cmd-var.c (varobj_update_one): Print new
6506 value for variable objects that changed type.
6507
6508 2008-04-19 Vladimir Prus <vladimir@codesourcery.com>
6509
6510 * varobj.c (varobj_invalidate): Don't touch floating
6511 varobjs.
6512
6513 2008-04-19 Mark Kettenis <kettenis@gnu.org>
6514
6515 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
6516 (multiple_symbols_cancel): Remove extra const.
6517 * symtab.h: Likewise.
6518
6519 2008-04-19 Nick Roberts <nickrob@snap.net.nz>
6520
6521 * interps.c (top_level_interpreter): Rename static variable...
6522 (top_level_interpreter_ptr): ...to this.
6523 (top_level_interpreter): New function.
6524
6525 * interps.h: New extern for top_level_interpreter.
6526
6527 * linespec.c: Include interps.h and mi/mi-cmds.h.
6528 (decode_line_2): When using MI, always set all breakpoints in menu.
6529
6530 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
6531
6532 2008-04-18 Craig Silverstein <csilvers@google.com>
6533
6534 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
6535 * config.in, configure: Regenerate.
6536 * dwarf2read.c: Include zlib.h if present.
6537 Modified *_SECTION macros.
6538 (section_is_p): New.
6539 (dwarf2_locate_sections): Use section_is_p instead of strcmp
6540 (dwarf2_resize_section): New.
6541 to determine whether a given section has a given name.
6542 (zlib_decompress_section): New.
6543 (dwarf2_read_section): Read the compressed section if present
6544 in the binary.
6545 * MAINTAINERS: Added myself to section Write After Approval.
6546
6547 2008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
6548
6549 * defs.h (exec_set_section_offsets): Remove prototype.
6550 * exec.c (exec_set_section_offsets): Remove function.
6551
6552 2008-04-18 Joel Brobecker <brobecker@adacore.com>
6553
6554 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
6555 in the search for the matching symbol.
6556
6557 2008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
6558
6559 * breakpoint.c (update_watchpoint): Always reparse
6560 condition.
6561
6562 2008-04-17 Joel Brobecker <brobecker@adacore.com>
6563
6564 * breakpoint.c (print_one_breakpoint_location): Make sure to print
6565 the breakpoint address only once.
6566
6567 2008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
6568
6569 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
6570 rather than a hard-coded architecture, for xcoff executables.
6571
6572 2008-04-17 Doug Evans <dje@google.com>
6573
6574 * buildsym.c (watch_main_source_file_lossage): New fn.
6575 (end_symtab): Call it.
6576
6577 * source.c (find_and_open_source): Add some comments clarifying
6578 handling of FULLNAME argument. Make static. Remove pointless
6579 xstrdup/xfree.
6580
6581 2008-04-17 Pedro Alves <pedro@codesourcery.com>
6582
6583 * inf-loop.c (inferior_event_handler): Also run the intermediate
6584 continuations in the INF_EXEC_COMPLETE case.
6585
6586 2008-04-16 Tom Tromey <tromey@redhat.com>
6587
6588 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
6589 (set_cmd_async_ok, get_cmd_async_ok): Declare.
6590 * cli/cli-decode.c (set_cmd_async_ok): New function.
6591 (get_cmd_async_ok): New function.
6592 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
6593 "show" as async-ok.
6594 * top.c (execute_command): Use get_cmd_async_ok.
6595 * infcmd.c: Include cli/cli-decode.h.
6596 (_initialize_infcmd): Mark "interrupt" as async-ok.
6597 * Makefile.in (infcmd.o): Depend on cli_decode_h.
6598
6599 2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
6600
6601 PR gdb/2445
6602 * exec.c: Correct "arch-utils.h" include.
6603
6604 2008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
6605
6606 PR gdb/2424
6607 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
6608 to allow printing to 'see' real reason of stop. This fixes PR 2424.
6609 * breakpoint.c (bpdisp_texst): New function. The function takes over
6610 the role of bpstats static array in print_one_breakpoint_location.
6611 (print_it_typical): Print "Temporary breakpoint" instead
6612 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
6613 protocols, print disp field.
6614 (print_one_breakpoint_location): Removed bpdisps static definition.
6615 Call new bpstat_text function to get value for 'disp' field.
6616 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
6617
6618 2008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
6619
6620 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
6621 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
6622 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
6623 * gnulib/Makefile.in: Regenerate.
6624
6625 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6626
6627 * Makefile.in (GNULIB_H): New. Trigger all-lib.
6628 (defs_h): Use $(GNULIB_H).
6629 (all-lib): Depend on gnulib/Makefile.
6630 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
6631 * config.in, gnulib/Makefile.in: Regenerated.
6632
6633 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6634
6635 * Makefile.in (LIBGNU, INCGNU): Define.
6636 (INTERNAL_CFLAGS_BASE): Add INCGNU.
6637 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
6638 (CLEANDIRS): New.
6639 ($(LIBGNU), all-lib): New rules.
6640 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
6641 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
6642 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
6643 * gnulib: New directory, from gnulib-tool.
6644 * configure, aclocal.m4: Regenerated.
6645
6646 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6647
6648 * linux-thread-db.c (have_threads_callback): Check thread->private.
6649
6650 2008-04-13 Nick Roberts <nickrob@snap.net.nz>
6651 Vladimir Prus <vladimir@codesourcery.com>
6652
6653 Fix @-varobjs.
6654 * varobj.c (value_of_root): Update the expression for
6655 floating varobjs.
6656 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
6657 report that.
6658
6659 2008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
6660
6661 * mi/mi-cmd-var.c: Include "mi-getopt.h".
6662 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
6663 (mi_cmd_var_set_format): Use new mi_parse_format.
6664 (mi_cmd_var_evaluate_expression): Support for -f option to specify
6665 format.
6666 * Makefile.in (mi-cmd-var.o): Update dependencies.
6667
6668 * varobj.h (varobj_get_formatted_value): Declare.
6669 * varobj.c (my_value_of_variable): Added format parameter.
6670 (cplus_value_of_variable): Likewise.
6671 (java_value_of_variable): Likewise.
6672 (c_value_of_variable): Likewise. Evaluate expression based
6673 on format parameter.
6674 (struct language_specific): Add format parameter to function member
6675 *value_of_variable.
6676 (varobj_get_formatted_value): New.
6677 (varobj_get_value): Added format parameter to method call.
6678
6679 2008-04-08 Joel Brobecker <brobecker@adacore.com>
6680
6681 * stabsread.c (cleanup_undefined_types_noname): Manually set the
6682 instance flags of the undefined type before calling replace_type.
6683
6684 2008-04-08 Vladimir Prus <vladimir@codesourcery.com>
6685
6686 * target.h (enum strata): Remove the download_stratum.
6687
6688 2008-04-07 Doug Evans <dje@google.com>
6689
6690 * buildsym.h (last_source_file): Add dwarf info to comment.
6691 (last_source_start_addr): Ditto.
6692
6693 2008-04-07 Pedro Alves <pedro@codesourcery.com>
6694
6695 * alphanbsd-tdep.c: Include "target.h".
6696 * mn10300-tdep.c: Include "target.h".
6697 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
6698
6699 2008-04-06 Vladimir Prus <vladimir@codesourcery.com>
6700
6701 Fix breakpoint condition that use member variables.
6702 * valops.c (check_field): Remove.
6703 (check_field_in): Rename to check_field.
6704 (value_of_this): Use la_name_of_this.
6705 * value.h (check_field): Adjust prototype.
6706
6707 * language.h (la_value_of_this): Rename to la_name_of_this.
6708 * language.c (unknown_language_defn): Specify "this" for
6709 name_of_this.
6710 (auto_language_defn): Likewise.
6711 (local_language_defn): Likewise.
6712 * ada-lang.c (ada_language_defn): Adjust comment.
6713 * c-lang.c (c_language_defn): Adjust comment.
6714 (cplus_language_defn): Specify "this" for name_of_this.
6715 (asm_language_defn): Adjust comment.
6716 (minimal_language_defn): Adjust comment.
6717 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
6718 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
6719 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
6720 * objc-lang.c (objc_language_defn): Specify "self" for
6721 name_of_this.
6722 * p-lang.c (pascal_language_defn): Specify "this" for
6723 name_of_this.
6724 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
6725
6726 * symtab.c (lookup_symbol_aux): Lookup "this" in the
6727 proper scope, and check for field in type of "this", without
6728 trying to create a value.
6729
6730 2008-04-04 Pedro Alves <pedro@codesourcery.com>
6731
6732 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
6733 (mi_error_message): Delete declaration.
6734 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
6735 returning MI_CMD_ERROR.
6736 * mi/mi-main.c (mi_error_message): Delete.
6737 (mi_cmd_exec_interrupt):
6738 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6739 (mi_cmd_thread_info): Call error instead of returning
6740 MI_CMD_ERROR.
6741 (mi_cmd_data_list_register_values): Call error instead of
6742 returning MI_CMD_ERROR. Adapt to new get_register interface.
6743 (get_register): Change return typo to void. Call error instead of
6744 returning MI_CMD_ERROR.
6745 (mi_cmd_data_write_register_values): Call error instead of
6746 returning MI_CMD_ERROR.
6747 (mi_cmd_list_features): Return MI_CMD_DONE.
6748 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
6749 (mi_execute_command): Always print exceptions with -error.
6750
6751 2008-04-04 Joel Brobecker <brobecker@adacore.com>
6752
6753 * NEWS: Mention new commands set/show multiple-symbols.
6754
6755 2008-04-03 Joel Brobecker <brobecker@adacore.com>
6756
6757 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
6758 (multiple_symbols_cancel): New constants.
6759 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
6760 (multiple_symbols_select_mode): New function.
6761 (_initialize_symtab): Add new set/show multiple-symbols commands.
6762 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
6763 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
6764 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
6765 setting.
6766 * linespec.c (decode_line_2): Likewise.
6767
6768 2008-04-03 Doug Evans <dje@sebabeach.org>
6769
6770 * symtab.h (enum free_code): Delete free_contents, unused.
6771 * symmisc.c (free_symtab_block): Delete.
6772 (free_symtab, case free_code): Delete.
6773
6774 2008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6775
6776 * valops.c (value_cast_structs): New function. Cast related
6777 STRUCT types up/down and return cast value. The body of this
6778 function comes mostly from value_cast_pointers.
6779 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
6780 to value_cast_structs. Now value_cast_pointers needs only create
6781 appropriate reference after using value_cast_structs for actual
6782 casting.
6783 (value_cast): Handle references.
6784
6785 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
6786
6787 * MAINTAINERS: Added myself to section Write After Approval.
6788
6789 2008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
6790
6791 * ia64-tdep.c (examine_prologue): Correct array access.
6792
6793 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
6794
6795 * cp-support.c (first_component_command): Return if no arguments.
6796
6797 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
6798
6799 * ser-mingw.c (ser_windows_open): Open requested name.
6800
6801 2008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
6802
6803 * MAINTAINERS: Added myself.
6804
6805 2008-03-28 Pedro Alves <pedro@codesourcery.com>
6806
6807 * target.c (find_default_run_target): Allow a NULL `do_mesg'
6808 parameter. If it is NULL, don't call error.
6809 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
6810 `do_mesg' parameter to find_default_run_target. If no target was
6811 found, return 0.
6812
6813 2008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
6814
6815 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
6816 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
6817 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
6818 Delete.
6819 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
6820
6821 2008-03-27 Joel Brobecker <brobecker@adacore.com>
6822
6823 GDB 6.8 released.
6824
6825 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6826
6827 * features/Makefile (%.dat): Set xmltarget to the base filename
6828 of the XML source, without subdirectory.
6829 * regformats/rs6000/powerpc-32.dat: Regenerate.
6830 * regformats/rs6000/powerpc-64.dat: Regenerate.
6831 * regformats/rs6000/powerpc-e500.dat: Regenerate.
6832
6833 2008-03-27 Markus Deuling <deuling@de.ibm.com>
6834
6835 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
6836 objfile arch.
6837
6838 2008-03-27 Nick Roberts <nickrob@snap.net.nz>
6839
6840 * mi/mi-main.c (enum captured_mi_execute_command_actions):
6841 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
6842
6843 2008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6844
6845 * objfiles.h (struct objfile): New GDBARCH member.
6846 (get_objfile_arch): Add prototype.
6847 * objfiles.c: Include "arch-utils.h".
6848 (allocate_objfile): Look up gdbarch associated with bfd.
6849 (get_objfile_arch): New function.
6850 * Makefile (objfiles.o): Update dependencies.
6851
6852 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
6853 by objfile arch.
6854 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
6855 by frame arch.
6856 (locexpr_describe_location): Replace current_gdbarch by
6857 objfile arch.
6858 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
6859 (dwarf2_add_field): Likewise.
6860 (read_tag_pointer_type): Likewise.
6861 (read_base_type): Likewise.
6862 (new_symbol): Likewise.
6863
6864 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
6865 (decode_base_type, decode_function_type): Likewise.
6866 (coff_read_struct_type, coff_read_enum_type): Likewise.
6867 (coff_symtab_read): Replace current_gdbarch by objfile arch.
6868 (decode_base_type): Likewise.
6869 (coff_read_enum_type): Likewise.
6870 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
6871 (coff_read_enum_type): Likewise.
6872
6873 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
6874 (end_psymtab): Likewise.
6875 (process_one_symbol): Likewise.
6876
6877 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
6878 (parse_procedure): Likewise.
6879 (parse_partial_symbols): Likewise.
6880
6881 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
6882
6883 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
6884 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
6885 built-in types.
6886 (read_range_type): Replace current_gdbarch by objfile arch. Replace
6887 static range_index_type by built-in type.
6888 (read_one_struct_field): Replace current_gdbarch by objfile arch.
6889 (read_enum_type): Likewise.
6890
6891 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
6892 objfile arch.
6893
6894 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6895
6896 * varobj.h (varobj_floating_p): Declare.
6897 * varobj.c (varobj_floating_p): New.
6898 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
6899 '@' as the name, update all floating varobjs.
6900
6901 2008-03-26 Vladimir Prus <vladimir@codesourcery.com>
6902
6903 * varobj.c (struct varobj_root): Rename use_selected_frame to
6904 floating, and clarify the meaning.
6905 (varobj_create, varobj_update, new_root_variable): Adjust.
6906 (value_of_root): Don't use type_changed as in variable,
6907 adjust comment.
6908 (c_value_of_root): Adjust.
6909
6910 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6911
6912 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
6913 gdb's thread list.
6914 (linux_nat_wait): Add main lwp to gdb's thread list.
6915 * linux-thread-db.c (find_new_threads_callback): Also attach to
6916 already listed threads which thread_db didn't know about yet.
6917
6918 2008-03-25 Pedro Alves <pedro@codesourcery.com>
6919
6920 * linux-nat.c (drain_queued_events): Fix comment typo.
6921 (linux_nat_attach): In async mode, don't rely on storing a pending
6922 status. Instead place the wait status on the pipe.
6923 (linux_nat_resume): Remove unreacheable shortcut code in async
6924 mode.
6925 (stop_wait_callback): In async mode, don't store pending status.
6926 Instead, cancel breakpoints or resend the signal appropriatelly.
6927 (cancel_breakpoint): New, refactored from
6928 cancel_breakpoints_callback.
6929 (cancel_breakpoints_callback): Call cancel_breakpoint.
6930 (pipe_to_local_event_queue): Remove special token processing.
6931 (linux_nat_wait): Issue an internal error if a pending status is
6932 found in async mode.
6933
6934 2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6935
6936 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
6937
6938 2008-03-24 Nick Roberts <nickrob@snap.net.nz>
6939 Vladimir Prus <vladimir@codesourcery.com>
6940
6941 * varobj.c (struct varobj_root): New component thread_id.
6942 (varobj_get_thread_id, check_scope): New functions.
6943 (c_value_of_root): Use check_scope. Switch to the
6944 proper thread if necessary.
6945
6946 * varobj.h (varobj_get_thread_id): New extern.
6947
6948 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
6949
6950 2008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
6951
6952 PR gdb/544
6953 * top.c: Revert 2008-03-21 changes.
6954
6955 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6956
6957 * thread.c (make_cleanup_restore_current_thread): Make it
6958 globally visible.
6959 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
6960 * varobj.c (varobj_update): Don't save/restore frame.
6961 (c_value_of_root): Save/restore thread and frame here,
6962 using make_cleanup_restore_current_thread.
6963 * Makefile.in: Update dependecies.
6964
6965 2008-03-23 Vladimir Prus <vladimir@codesourcery.com>
6966
6967 * varobj.c (struct varobj_root): Clarify
6968 comment on the frame field.
6969 (varobj_create): Don't set frame if we have no
6970 block.
6971
6972 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6973
6974 PR gdb/544
6975 Suggested by Jan Kratochvil:
6976 * top.c (gdb_rl_operate_and_get_next_completion): Call
6977 rl_redisplay_function.
6978 (gdb_rl_redisplay): New.
6979 (init_main): Set rl_redisplay_function.
6980
6981 2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
6982
6983 * aix-thread.c (pdc_read_regs): Fix compiler warning.
6984 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
6985 (store_regs_kernel_thread): Likewise.
6986
6987 2008-03-21 Pedro Alves <pedro@codesourcery.com>
6988
6989 Linux native async support.
6990
6991 * target.h (struct target_ops): Delete to_async_mask_value and add
6992 to_async_mask.
6993 (target_is_async_p, target_async): Formatting.
6994 (target_async_mask_value): Delete.
6995 (target_async_mask): Delete function declaration, and add new
6996 target macro with the same name.
6997
6998 * target.c (update_current_target): Replace to_async_mask_value by
6999 to_async_mask. Default to_async_mask to return_one.
7000 (target_async_mask): Delete.
7001 (find_default_can_async_p, find_default_is_async_p): New.
7002 (init_dummy_target): register find_default_can_async_p and
7003 find_default_is_async_p on the dummy target.
7004
7005 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
7006 (debug_linux_nat_async): New global.
7007 (show_debug_linux_nat_async): New function.
7008 (linux_nat_async_enabled, linux_nat_async_mask_value)
7009 (linux_nat_event_pipe, linux_nat_num_queued_events)
7010 (linux_nat_async_events_enabled): New globals.
7011 (struct waitpid_result): New struct.
7012 (waitpid_queue): New global.
7013 (queued_waitpid, push_waitpid, drain_queued_events): New.
7014 (my_waitpid): Call queued_waitpid.
7015 (linux_child_follow_fork): Disable async events during the call.
7016 (blocked_mask): Delete.
7017 (sync_sigchld_action, async_sigchld_action): New globals.
7018 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
7019 async mode, block events during the call.
7020 (linux_nat_create_inferior): New.
7021 (linux_nat_attach): In sync mode, restore the mask states. In
7022 async mode, wake the event loop immediatelly.
7023 (detach_callback): Drain all queued events of the lwp we're
7024 detaching from.
7025 (linux_nat_detach): Block async mode, and drain events of the main
7026 process.
7027 (linux_nat_resume): If in async mode, mask async events during the
7028 call. If short circuiting, force event loop to wake up. If
7029 resuming, set target_executing, and register target events in the
7030 event loop.
7031 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
7032 (linux_nat_wait): In async mode, block events during the call.
7033 Only enable/disable passing SIGINT to the inferior in sync mode.
7034 Get events from local waitpid queue. If no interesting events was
7035 found, return to events loop. Reregister target events in the
7036 event loop on exit. In sync mode, no need to reblock SIGCHLD.
7037 (linux_nat_kill): Disable events on entry.
7038 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
7039 here. Detach async mode from the event loop if there are no more
7040 forks available, otherwise leave it on.
7041 (sigchld_handler): Assure this is called only in sync mode.
7042 (linux_async_permitted, linux_async_permitted_1): New globals.
7043 (set_maintenance_linux_async_permitted)
7044 (show_maintenance_linux_async_permitted): New functions.
7045 (linux_nat_is_async_p, linux_nat_can_async_p)
7046 (linux_nat_async_mask): New.
7047 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
7048 (get_pending_events, async_sigchld_handler): New.
7049 (linux_nat_async_events): New.
7050 (async_terminal_is_ours): New global.
7051 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
7052 (async_client_callback, async_client_context): New.
7053 (linux_nat_async_file_handler, linux_nat_async)
7054 (linux_nat_disable_async, linux_nat_enable_async): New.
7055 (linux_nat_add_target): Register linux_nat_create_inferior,
7056 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
7057 linux_nat_async_mask, linux_nat_terminal_inferior and
7058 linux_nat_terminal_ours.
7059 (_initialize_linux_nat): Remove local action variable, and update
7060 code that used it to use sync_sigchld_action. Add new
7061 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
7062 set/show command in the maintenance class. Add new "linux-async"
7063 maintenance set/show command. Block SIGCHLD by default. Setup
7064 async_sichld_action, and sync_sigchld_action. Install the default
7065 async mode.
7066 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
7067 the cancel signals.
7068
7069 * linux-thread-db.c (re_check_for_thread_db): New.
7070 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
7071 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
7072 (thread_db_async_mask): New.
7073 (init_thread_db_ops): Register thread_db_can_async_p,
7074 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
7075
7076 * remote.c (remote_async_mask_value): New.
7077 (remote_return_zero): New.
7078 (init_remote_ops): Register remote_return_zero as callbacks of
7079 to_can_async_p and to_is_async_p.
7080 (remote_can_async_p, remote_is_async_p, remote_async): Update to
7081 use remote_async_mask_value.
7082 (remote_async_mask): New.
7083 (init_remote_async_ops): Remove to_async_mask_value setting and
7084 register remote_async_mask as to_async_mask callback in
7085 remote_async_ops.
7086
7087 * Makefile.in (linux-nat.o): Update.
7088
7089 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7090
7091 * gdbthread.h (add_thread_with_info): New.
7092 * linux-thread-db.c: Add some documentation.
7093 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
7094 (struct private_thread_info): Remove th_valid and ti_valid.
7095 Replace ti with tid.
7096 (thread_get_info_callback): Do not add TID to the new ptid. Do
7097 not cache th or ti.
7098 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
7099 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
7100 new PTID.
7101 (attach_thread): Handle an already-existing thread. Use
7102 add_thread_with_info. Cache the th and tid.
7103 (detach_thread): Verify that private was set. Remove verbose
7104 argument and printing. Update caller.
7105 (thread_db_detach): Do not adjust inferior_ptid.
7106 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
7107 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
7108 (thread_db_wait): Do not use lwp_from_thread.
7109 (thread_db_pid_to_str): Use the cached TID.
7110 (thread_db_extra_thread_info): Check that private is set.
7111 (same_ptid_callback): Delete.
7112 (thread_db_get_thread_local_address): Do not use it or check
7113 is_thread. Check that private is set. Assume that the thread
7114 handle is already cached.
7115 (init_thread_db_ops): Remove to_resume and to_kill.
7116 * thread.c (add_thread_with_info): New.
7117 (add_thread): Use it.
7118 * linux-nat.c (find_thread_from_lwp): Delete.
7119 (exit_lwp): Do not use it. Check print_thread_events. Print before
7120 deleting the thread.
7121 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
7122 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
7123 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
7124 printf_unfiltered for thread exits.
7125 * procfs.c (procfs_wait): Likewise.
7126
7127 2008-03-21 Chris Demetriou <cgd@google.com>
7128
7129 * symtab.c (rbreak_command): Quote symbol name before passing
7130 it to break_command.
7131
7132 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7133
7134 * eval.c (evaluate_subexp_for_address): Clarify error message.
7135 Use value_must_coerce_to_target.
7136 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
7137 * valops.c (value_assign): Call value_coerce_to_target when
7138 assigning to anything but internalvars. Leave GDB-side arrays
7139 as arrays when assigning to internalvars.
7140 (value_must_coerce_to_target, value_coerce_to_target): New.
7141 (value_coerce_array, value_addr): Call value_coerce_to_target.
7142 (value_array): Create the array in GDB's memory instead of
7143 the inferior's.
7144 * value.h (value_must_coerce_to_target, value_coerce_to_target):
7145 Declare.
7146
7147 2008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
7148
7149 * top.c (quit_confirm): Warn that we will kill the program.
7150
7151 2008-03-19 Pedro Alves <pedro@codesourcery.com>
7152
7153 * inflow.c (terminal_ours_1): Guard access to
7154 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
7155
7156 2008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7157 Jim Blandy <jimb@codesourcery.com>
7158 Daniel Jacobowitz <drow@false.org>
7159
7160 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
7161 (dwarf2_read_address): Update prototype.
7162
7163 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
7164 (signed_address_type): Likewise.
7165 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
7166 (execute_stack_op): Update calls to unsigned_address_type,
7167 signed_address_type and dwarf2_read_address. Fix implementation
7168 of DW_OP_deref_size.
7169
7170 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
7171 (dwarf2_per_cu_addr_size): Likewise.
7172 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
7173 (struct dwarf2_loclist_baton): Likewise.
7174
7175 * dwarf2loc.c (find_location_expression): Update calls to
7176 dwarf2_read_address. Use dwarf2_per_cu_objfile and
7177 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
7178 (locexpr_describe_location): Likewise.
7179 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
7180 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
7181 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
7182 to dwarf2_per_cu_addr_size (per_cu).
7183 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
7184 (loclist_read_variable): Likewise.
7185 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
7186
7187 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
7188 instead of baton->objfile.
7189 (dwarf2_per_cu_obfile): New function.
7190 (dwarf2_per_cu_addr_size): Likewise.
7191
7192 * dwarf2-frame.c (struct comp_unit): Move higher.
7193 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
7194 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
7195 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
7196 parameter by using fde->eh_frame_p. Use read_encoded_value
7197 to implement DW_CFA_set_loc.
7198 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
7199 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
7200 execute_stack_op and execute_cfa_program.
7201 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
7202 (size_of_encoded_value): Remove.
7203 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
7204 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
7205 (add_cie): Set cie->unit backlink.
7206 (decode_frame_entry_1): Set cie->addr_size. Update calls to
7207 read_encoded_value.
7208 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
7209
7210 2008-03-17 Markus Deuling <deuling@de.ibm.com>
7211
7212 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
7213 gdbarch_bfd_arch_info.
7214
7215 2008-03-17 Joel Brobecker <brobecker@adacore.com>
7216
7217 * aix-thread.c (pdc_read_regs): Minor reformatting.
7218
7219 2008-03-17 Vladimir Prus <vladimir@codesourcery.com>
7220
7221 * thread.c (print_thread_info): Don't insist
7222 on having current thread if there are no
7223 threads at all.
7224
7225 2008-03-17 Pedro Alves <pedro@codesourcery.com>
7226
7227 * infcmd.c (attach_command_post_wait)
7228 (attach_command_continuation): New.
7229 (attach_command): Support background async execution, and async
7230 execution in synchronous mode.
7231
7232 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7233
7234 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
7235 * symmisc.c (dump_symtab_1): Likewise.
7236 * wrapper.c (gdb_value_struct_elt): Likewise.
7237
7238 2008-03-17 Pedro Alves <pedro@codesourcery.com>
7239
7240 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
7241
7242 2008-03-17 Pedro Alves <pedro@codesourcery.com>
7243
7244 * linux-nat.c (linux_nat_filter_event): New, refactored from
7245 linux_nat_wait.
7246 (linux_nat_wait): Call linux_nat_filter_event.
7247
7248 2008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
7249
7250 * top.c (execute_command): Fix uninitialized variable error.
7251
7252 2008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
7253
7254 * Makefile.in (amd64nbsd-nat.o): New dependency.
7255 * amd64nbsd-nat.c: Include "nbsd-nat.h".
7256 (_initialize_amd64nbsd_nat): Update target vector to use
7257 nbsd_pid_to_exec_file.
7258 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
7259
7260 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
7261
7262 Remove ignoring leading exec events code.
7263 * fork-child.c (startup_inferior): Do not set
7264 inferior_ignoring_leading_exec_events.
7265 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
7266 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
7267 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
7268 (handle_inferior_event): Remove code for ignoring leading exec
7269 events.
7270 * target.c (update_current_target): Do not inherit, or default,
7271 to_reported_exec_events_per_exec_call.
7272 (debug_to_reported_exec_events_per_exec_call): Remove.
7273 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
7274 * target.h (target_reported_exec_events_per_exec_call): Remove.
7275 (struct target): Remove the to_reported_exec_events_per_exec_call
7276 field.
7277
7278 2008-03-15 Vladimir Prus <vladimir@codesourcery.com>
7279
7280 Implement -thread-info.
7281 * gdbthread.h (print_thread_info): Declare.
7282
7283 * thread.c (print_thread_info): New, extracted
7284 from info_threads_command and adjusted to
7285 work for CLI and MI.
7286 (info_threads_command): Use print_thread_info.
7287 * Makefile.in: Update dependencies.
7288
7289 * mi/mi-cmds.c (mi_cmds): Specify a handler
7290 for -thread-info.
7291 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
7292 * mi/mi-main.c (mi_cmd_thread_info): New.
7293 (mi_cmd_list_features): Include 'thread-info'.
7294
7295 2008-03-14 Kevin Buettner <kevinb@redhat.com>
7296
7297 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
7298 to decide whether to match instruction patterns using "sw" and "sd".
7299
7300 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7301
7302 * infcmd.c (jump_command): Postpone disabling stdin until after
7303 the possible query.
7304
7305 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7306
7307 * inflow.c (gdb_getpgrp): New.
7308 (gdb_has_a_terminal): Use get_getpgrp.
7309 (terminal_ours_1): If attach_flag is set, don't refetch
7310 inferior_process_group.
7311
7312 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7313
7314 * features/library-list.dtd: Allow "section" elements as children
7315 of "library". Add "section" element and describe its attributes.
7316
7317 * solib-target.c (struct lm_info): Add section_bases member.
7318 (library_list_start_segment): Error out if seen a section element.
7319 (library_list_start_section): New.
7320 (library_list_end_library): New.
7321 (solib_target_free_library_list): Free section_bases.
7322 (section_attributes): New.
7323 (library_children): Make "segment" optional. Add "section" child.
7324 (library_list_children): Register library_list_end_library.
7325 (solib_target_relocate_section_addresses): Handle section bases.
7326
7327 * NEWS: Mention new qXfer:libraries:read section offsets support.
7328
7329 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7330
7331 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
7332 (make_exec_error_cleanup): Remove declarations.
7333 * utils.c (exec_error_cleanup_chain): Remove.
7334 (do_exec_error_cleanups, discard_exec_error_cleanups)
7335 (make_exec_error_cleanup): Remove.
7336 * event-loop.c (start_event_loop): Adjust call to
7337 async_enable_stdin.
7338 * event-top.c (async_enable_stdin): Remove the paramater dummy.
7339 (async_disable_stdin): Don't register async_enable_stdin via
7340 cleanup.
7341 * inf-loop.c (inferior_event_handler): Don't
7342 call do_exec_error_cleanups. Call async_enable_stdin instead.
7343 * event-loop.c (start_event_loop): Adjust call to
7344 async_enable_stdin.
7345 * tui/tui-interp.c (tui_command_loop): Adjust call to
7346 async_enable_stdin.
7347
7348 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7349
7350 Async mode fixes.
7351 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
7352 * breakpoint.c (bpstat_do_actions): In async mode,
7353 don't jump to top expecting stop_bpstat to be already
7354 updated.
7355 * event-loop.c (start_event_loop): Call async_enable_stdin
7356 on exception.
7357 * event-top.c (async_enable_stdin): Do nothing if sync_execution
7358 is not set.
7359 (command_handler): Do not setup continuation here.
7360 (command_line_handler_continuation): Move to...
7361 * top.c (command_line_handler_continuation): ... here.
7362 (execute_command): In async mode, register continuation.
7363 Don't check frame's language in running in async mode.
7364 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
7365 * inf-loop.c (complete_execution): Inline into...
7366 (inferior_event_handler): ... here. Clear target_executing before
7367 doing any cleanups. Don't try to show prompt if the target was
7368 resumed.
7369 * infcmd.c (signal_command): Add support for async mode.
7370 (finish_command): Only add continuation if the target was
7371 successfully resumed.
7372 * remote.c (init_async_opts): Register to_get_thread_local_address
7373 handler.
7374 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
7375 with sync_execution.
7376 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
7377 on exception.
7378
7379 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7380
7381 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
7382 * exec.c (exec_bfd_mtime): Define.
7383 (exec_close): Clear it.
7384 (exec_file_attach): Set it.
7385 * gdbcore.h (exec_bfd_mtime): Declare.
7386 * source.c (find_source_lines): Do not use bfd_get_mtime.
7387
7388 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7389
7390 * top.c (simplified_command_loop): Remove.
7391
7392 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7393
7394 Remove unused remote.c hooks.
7395 * remote.c (deprecated_target_resume_hook)
7396 (deprecated_target_wait_loop_hook): Remove.
7397 (remote_resume): Do not call deprecated_target_resume_hook.
7398 (remote_wait): Do not call deprecated_target_wait_loop_hook.
7399 (remote_async_wait): Likewise.
7400
7401 2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
7402
7403 Implement MI notification for new threads.
7404 * doc/observer.texi (new_thread): Document.
7405 * observer.sh: Forward declare struct thread_info.
7406 * thread.c (add_thread): Notify observer.
7407
7408 * interps.h (interp_init_ftype): New parameter
7409 top_level.
7410 (interp_set): Likewise.
7411 (top_level_interpreter_data): Declare.
7412 * interps.c (interp_set): New parameter top_level.
7413 Pass it to interpreter's init function. Remember
7414 top level interpreter.
7415 (interpreter_exec_cmd): Adjust.
7416 (top_level_interpreter_data): New.
7417 * main.c (captured_main): Pass 1 for top_level
7418 parameter of interp_set.
7419 * cli/cli-interp.c (cli_interpreter_init): New
7420 parameter top_level.
7421 * tui/tui-interp.c (tui_init): New parameter top_level.
7422
7423 * mi/mi-interp.c (mi_new_thread): New.
7424 (mi_interpreter_init): If top level, register
7425 observer for new threads.
7426
7427 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
7428
7429 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7430
7431 * top.c (execute_command): Disable break and stop
7432 commands in async mode.
7433
7434 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7435
7436 revert:
7437 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7438 * inf-loop.c (inferior_event_handler): Don't include remote.h.
7439 Call target_stop in the INF_QUIT_REQ case.
7440 * Makefile.in (inf-loop.o): Update.
7441
7442 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7443
7444 * inf-loop.c (inferior_event_handler): Don't include remote.h.
7445 Call target_stop in the INF_QUIT_REQ case.
7446 * Makefile.in (inf-loop.o): Update.
7447
7448 2008-03-14 Pedro Alves <pedro@codesourcery.com>
7449
7450 * top.c (execute_command): Enable break, info and interrupt
7451 commands in async mode.
7452
7453 2008-03-13 Vladimir Prus <vladimir@codesourcery.com>
7454 Daniel Jacobowitz <dan@codesourcery.com>
7455
7456 * breakpoint.h (breakpoint_restore_shadows): New
7457 declaration.
7458 * breakpoint.c (breakpoint_restore_shadows): New.
7459 (read_memory_nobpt): Delete.
7460 * gdbcore.h (read_memory_nobpt): Delete declaration.
7461 * target.c (memory_xfer_partial): Call
7462 breakpoint_restore_shadows.
7463 (restore_show_memory_breakpoints)
7464 (make_show_memory_beakpoints_cleanup): New.
7465 (show_memory_breakpoints): New.
7466 * target.h (make_show_memory_beakpoints_cleanup): Declare.
7467 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
7468 Make sure we see memory breakpoints when checking if
7469 breakpoint is still there.
7470 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
7471 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
7472 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
7473 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
7474
7475 2008-03-12 Pedro Alves <pedro@codesourcery.com>
7476
7477 * thread.c (add_thread): Use printf_unfiltered to print.
7478
7479 2008-03-12 Joel Brobecker <brobecker@gnat.com>
7480
7481 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
7482 that is true only on x86-solaris and x86_64-solaris.
7483 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
7484 with proc_get_LDT_entry.
7485
7486 2008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7487
7488 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
7489 * config.in, configure: Regenerate.
7490 * fork-child.c (fork_inferior): Call create_tty_session.
7491 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
7492 (create_tty_session): New function.
7493 * terminal.h: Declare create_tty_session.
7494
7495 2008-03-12 Alan Modra <amodra@bigpond.net.au>
7496
7497 PR 5900
7498 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
7499 * mipsread.c: Include elf/internal.h.
7500 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
7501 to internal range.
7502
7503 2008-03-11 Markus Deuling <deuling@de.ibm.com>
7504
7505 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
7506 to get at the current architecture and at the target specific vector.
7507 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
7508 remove define of I387_ST0_REGNUM.
7509
7510 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
7511
7512 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
7513 get at the current architecture
7514 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
7515 parameter.
7516
7517 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
7518 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
7519
7520 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
7521 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
7522 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
7523
7524 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
7525 at the target specific vector.
7526
7527 (i386_get_longjmp_target): Use get_frame_arch to get at the current
7528 architecture. Use gdbarch_tdep to get at the target specific vector.
7529
7530 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
7531 update caller. Use gdbarch_tdep to get at the target specific vector.
7532
7533 (i386_register_to_value: Use get_frame_arch to get at the current
7534 architecture.
7535
7536 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
7537 parameter.
7538
7539 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
7540 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
7541 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
7542 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
7543
7544 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
7545 undef's.
7546
7547 (i387_convert_register_p, i387_register_to_value,
7548 i387_value_to_register): Update call for i386_fp_regnum_p.
7549
7550 * i387-tdep.h: Remove comment.
7551 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
7552 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
7553 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
7554 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
7555 I387_MXCSR_REGNUM): Add target specific vector as parameter.
7556
7557 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
7558
7559 * Makefile.in (fork-child.o): Update.
7560 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
7561 argument. Gather all gdbserver features together.
7562 * fork-child.c (exec_wrapper): New variable.
7563 (fork_inferior): Use it.
7564 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
7565 (unset_exec_wrapper_command, _initialize_fork_child): New.
7566
7567 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
7568
7569 * source.c (directory_command): Modify the determination of
7570 condition of terminal "from_tty".
7571
7572 2008-03-10 Matt Rice <ratmice@gmail.com>
7573
7574 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
7575
7576 2008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
7577
7578 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
7579 of the data passing to strtoulst function.
7580 (info_spu_signal_command): Likewise.
7581
7582 2008-03-08 Vladimir Prus <vladimir@codesourcery.com>
7583
7584 * mi/mi-interp.c (mi_command_loop): Remove
7585 commented-out code.
7586
7587 2008-03-07 Joel Brobecker <brobecker@adacore.com>
7588
7589 * remote.c (extended_remote_attach_1): Make local variable pid an int
7590 instead of a pid_t.
7591
7592 2008-03-07 Joel Brobecker <brobecker@adacore.com>
7593
7594 * solib-svr4.c (svr4_same_1): New function, originally extracted
7595 from svr4_same and expanded to handle the sparc64 case.
7596 (svr4_same): Move up and reimplement using svr4_same_1.
7597 (enable_break): Use svr4_same_1 to do shared library name comparisons.
7598
7599 2008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
7600
7601 * MAINTAINERS: Move self to Paper trail.
7602
7603 2008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
7604
7605 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
7606 * event-loop.c (call_async_signal_handler): New.
7607 * event-loop.h (call_async_signal_handler)
7608 (gdb_call_async_signal_handler): Declare.
7609 (mark_async_signal_handler): Add comments.
7610 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
7611 * mingw-hdep.c (sigint_event, sigint_handler): New.
7612 (gdb_select): Use them. Wait for the readline signal handler
7613 to finish.
7614 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
7615 * posix-hdep.c (gdb_call_async_signal_handler): New function.
7616 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
7617 New.
7618 (remote_fileio_ctrl_c_signal_handler): Use
7619 gdb_call_async_signal_handler.
7620 (initialize_remote_fileio): Initialize sigint_fileio_token.
7621 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
7622 not initialize tokens here.
7623 (handle_remote_sigint_twice): Likewise. Reinstall
7624 handle_remote_sigint.
7625 (async_remote_interrupt_twice): Just call interrupt_query.
7626 (cleanup_sigint_signal_handler): Do not delete tokens.
7627 (remote_interrupt, remote_interrupt_twice): Use
7628 gdb_call_async_signal_handler.
7629 (interrupt_query): Reinstall the default signal handler.
7630 (_initialize_remote): Initialize tokens here.
7631
7632 2008-03-04 Joel Brobecker <brobecker@adacore.com>
7633
7634 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
7635 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7636 Change the type of the lr register to code_ptr.
7637 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7638 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7639 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7640 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7641 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7642 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7643 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
7644
7645 2008-03-03 James E. Wilson <wilson@tuliptree.org>
7646
7647 * MAINTAINERS: Update my email address.
7648
7649 2008-03-03 Keith Seitz <keiths@redhat.com>
7650
7651 From Dave Murphy <davem@devkitpro.org>:
7652 * configure.ac: Set tcl configdir to win under mingw.
7653 * configure: Regenerate.
7654
7655 2008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
7656
7657 * breakpoint.c (fetch_watchpoint_value): New function.
7658 (update_watchpoint): Set and clear val_valid. Use
7659 fetch_watchpoint_value. Handle unreadable values on the
7660 value chain. Correct check for user-requested array watchpoints.
7661 (breakpoint_init_inferior): Clear val_valid.
7662 (watchpoint_value_print): New function.
7663 (print_it_typical): Use it. Do not free or clear old_val. Print
7664 watchpoints even if old_val == NULL.
7665 (watchpoint_check): Use fetch_watchpoint_value. Check for values
7666 becoming readable or unreadable.
7667 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
7668 (do_enable_watchpoint): Likewise.
7669 * breakpoint.h (struct breakpoint): Update comment for val. Add
7670 val_valid.
7671 * NEWS: Mention watchpoints on inaccessible memory.
7672
7673 2007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
7674
7675 * Makefile.in (i386-nat.o): Update.
7676 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
7677 i386_use_watchpoints.
7678 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
7679 i386_use_watchpoints.
7680 * i386-nat.c (i386_stopped_data_address): Take two arguments.
7681 (i386_stopped_by_watchpoint): Update call.
7682 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
7683 * config/i386/nm-i386.h: Conditionalize definitions on
7684 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
7685 (i386_use_watchpoints): Declare.
7686 (i386_stopped_data_address): Update.
7687 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7688 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
7689
7690 2008-02-29 Joel Brobecker <brobecker@adacore.com>
7691
7692 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
7693 * version.in: Bump version to 6.8.50.20080229-cvs.
7694
7695 2008-02-28 Markus Deuling <deuling@de.ibm.com>
7696
7697 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
7698 properly.
7699
7700 2008-02-28 Tom Tromey <tromey@redhat.com>
7701
7702 * infcmd.c (notice_args_read): Print result of get_inferior_args.
7703
7704 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7705
7706 * infcmd.c (kill_if_already_running): Make static. Use
7707 target_require_runnable.
7708 * target.c (target_require_runnable): New.
7709 * target.h (target_require_runnable): Declare.
7710
7711 2008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
7712
7713 * frame.c (reinit_frame_cache): Only annotate if frames were
7714 previously valid.
7715
7716 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7717
7718 * regformats/reg-ppc.dat: Rename "ps" to "msr".
7719 * regformats/reg-ppc64.dat: Likewise.
7720
7721 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
7722
7723 * features/Makefile (%.dat): Emit xmltarget statement.
7724
7725 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
7726 Generate code to set gdbserver_xmltarget in init_registers_${name}.
7727
7728 * regformats/arm-with-iwmmxt.dat: Regenerate.
7729 * regformats/mips64-linux.dat: Regenerate.
7730 * regformats/mips-linux.dat: Regenerate.
7731 * regformats/rs6000/powerpc-32.dat: Regenerate.
7732 * regformats/rs6000/powerpc-64.dat: Regenerate.
7733 * regformats/rs6000/powerpc-e500.dat: Regenerate.
7734
7735 * regformats/reg-arm.dat: Add xmlarch statement.
7736 * regformats/reg-i386.dat: Likewise.
7737 * regformats/reg-i386-linux.dat: Likewise.
7738 * regformats/reg-x86-64-linux.dat: Likewise.
7739 * regformats/reg-spu.dat: Likewise.
7740
7741 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7742
7743 * remote.c (remote_wait, remote_async_wait): Stop if we receive
7744 an error.
7745
7746 2008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
7747
7748 * utils.c (debug_timestamp): New.
7749 (vfprintf_unfiltered): Print timestamps if requested.
7750 (show_debug_timestamp): New.
7751 (initialize_utils): Register "set debug timestamp".
7752 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
7753
7754 2008-02-27 Joel Brobecker <brobecker@adacore.com>
7755
7756 * breakpoint.c (skip_prologue_sal): New function.
7757 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
7758 computed from a line number.
7759
7760 2008-02-27 Joel Brobecker <brobecker@adacore.com>
7761
7762 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
7763 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
7764 Set PC register type to "code_ptr".
7765 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
7766 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
7767 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
7768 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
7769 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
7770 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
7771 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
7772 Regenerate.
7773
7774 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
7775
7776 * regformats/regdat.sh: Rename init_registers function in
7777 generated file to init_registers_${name}.
7778
7779 * regformats/reg-crisv32.dat: Set "name" to crisv32.
7780 * regformats/reg-ppc64.dat: Set "name" to ppc64.
7781 * regformats/reg-s390x.dat: Set "name" to s390x.
7782
7783 2008-02-26 Greg Law <glaw@undo-software.com>
7784
7785 * regcache.c (registers_changed): Call reinit_frame_cache.
7786
7787 2008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7788
7789 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
7790 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
7791 and svr4_fetch_objfile_link_map.
7792 * Makefile.in (sh-linux-tdep.o): Update.
7793
7794 2008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
7795
7796 * amd64-tdep.c (amd64_classify): Add support for decimal float
7797 types.
7798 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
7799 use the struct return convention.
7800
7801 2008-02-26 Nick Roberts <nickrob@snap.net.nz>
7802
7803 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
7804 to old format. Discard breakpoint address if shared library is
7805 unloaded.
7806 (breakpoint_1): Adjust formatting of table header accordingly.
7807
7808 2008-02-25 Vladimir Prus <vladimir@codesourcery.com>
7809
7810 * remote.c (remote_get_threadlist): If the response
7811 is empty, don't try to parse it.
7812
7813 2008-02-23 Vladimir Prus <vladimir@codesourcery.com>
7814
7815 Unbreak 'target async'.
7816 * serial.c (serial_async): Set the
7817 handler function before enabling async
7818 mode.
7819
7820 2008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
7821
7822 * solib-svr4.c (enable_break): Convert r_brk to a code address.
7823
7824 2008-02-21 Pedro Alves <pedro@codesourcery.com>
7825
7826 * remote.c (extended_remote_attach_1): Set attach_flag.
7827 (extended_remote_create_inferior_1): Clear attach_flag.
7828
7829 2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
7830
7831 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
7832 r_brk_offset.
7833 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7834 * solib-svr4.c (solib_svr4_r_brk): New.
7835 (open_symbol_file_object, svr4_current_sos): Always check the
7836 debug base.
7837 (svr4_fetch_objfile_link_map): Do not set debug_base.
7838 (enable_break): Use r_brk if it is set.
7839 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
7840 (svr4_lp64_fetch_link_map_offsets): Likewise.
7841 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
7842
7843 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7844 Mark Kettenis <kettenis@gnu.org>
7845
7846 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
7847 trad_frame_saved_reg.
7848 (trad-frame.h): New include.
7849
7850 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
7851 instead of frame_obstack_zalloc.
7852 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
7853
7854 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
7855
7856 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7857
7858 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
7859 from disassemble_info instead of gdbarch_byte_order.
7860
7861 * mips-tdep.c (gdb_print_insn_mips): Likewise.
7862 * arm-tdep.c (gdb_print_insn_arm): Likewise.
7863
7864 2008-02-20 Markus Deuling <deuling@de.ibm.com>
7865
7866 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
7867 gdbarch as parameter.
7868
7869 * gdbarch.{c,h}: Regenerate.
7870
7871 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7872 parameter.
7873 * mem-break.c (default_memory_insert_breakpoint)
7874 (default_memory_remove_breakpoint): Likewise.
7875 * target.h (default_memory_remove_breakpoint)
7876 (default_memory_insert_breakpoint): Likewise.
7877
7878 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
7879 parameter. Replace current_gdbarch by gdbarch.
7880 * m32r-tdep.c (m32r_memory_insert_breakpoint)
7881 (m32r_memory_remove_breakpoint): Likewise.
7882
7883 2008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
7884
7885 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
7886
7887 2008-02-19 Joel Brobecker <brobecker@adacore.com>
7888
7889 * NEWS: Add entry describing Add support improvements.
7890
7891 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7892
7893 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
7894 M68K_FP0_REGNUM.
7895
7896 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7897
7898 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
7899 register_offset_hack anymore.
7900
7901 * regcache.{c,h} (register_offset_hack): Remove.
7902
7903 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7904
7905 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
7906
7907 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
7908 current_gdbarch by gdbarch.
7909 (hppa64_hpux_find_global_pointer): Likewise.
7910 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
7911 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
7912 find_global_pointer.
7913
7914 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
7915 parameter.
7916 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
7917
7918 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
7919 of gdbarch_num_regs.
7920
7921 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
7922 replace current_gdbarch by gdbarch.
7923 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
7924
7925 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7926
7927 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
7928 and replace current_gdbarch by gdbarch.
7929
7930 (store_register): Update call for exec_one_dummy_insn.
7931 (fetch_register, store_register): Update call of regmap.
7932
7933 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
7934 parameter and replace current_gdbarch by gdbarch.
7935
7936 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
7937 the current architecture. Update call for getregs_supplies and
7938 getfpregs_supplies.
7939 (ppcnbsd_fetch_inferior_registers): Likewise.
7940
7941 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
7942 replace current_gdbarch by gdbarch.
7943 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
7944 get_regcache_arch to get at the current architecture. Update call for
7945 getfpregs_supplies.
7946
7947 2008-02-18 Markus Deuling <deuling@de.ibm.com>
7948
7949 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
7950 variables.
7951
7952 2008-02-15 Markus Deuling <deuling@de.ibm.com>
7953
7954 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
7955
7956 2008-02-14 Vladimir Prus <vladimir@codesourcery.com>
7957
7958 * NEWS: Mention pending breakpints in MI.
7959
7960 2008-02-14 Markus Deuling <deuling@de.ibm.com>
7961
7962 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
7963
7964 2008-02-13 Markus Deuling <deuling@de.ibm.com>
7965
7966 Add script to build and test GDB using enable-targets=all.
7967
7968 * gdb_buildall.sh: New file.
7969
7970 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
7971
7972 * NEWS (New native configurations): Xtensa GNU/Linux.
7973 (New targets): Xtensa GNU/Linux.
7974 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
7975 xtensa-linux-tdep.o
7976 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
7977 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
7978 * configure.tgt (xtensa*-*-linux*): New entry.
7979 * xtensa-config.c (xtensa_tdep): New variable.
7980 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
7981 (rmap): Change format based on new macro XTREG.
7982 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
7983 * xtensa-linux-nat.c: New.
7984 * xtensa-linux-tdep.c: New.
7985 * xtensa-xtregs.c: New.
7986 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
7987 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
7988 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
7989 (xtensa_register_t): New field coprocessor.
7990 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
7991 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
7992 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
7993 Update to handle privileged registers.
7994 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
7995 (xtensa_push_dummy_call): Set windowstart register correctly.
7996 (call0_analyze_prologue): Initialize xtensa_default_isa.
7997 (xtensa_derive_tdep): New.
7998 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
7999 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
8000 Call xtensa_derive_tdep().
8001 * config/xtensa/linux.mh: New.
8002 * regformats/reg-xtensa.dat: New.
8003
8004 2008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
8005
8006 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
8007 (filenames.h): New include.
8008 * Makefile.in (corelow.o): Add dependency for filenames.h.
8009
8010 2008-02-08 Doug Evans <dje@google.com>
8011
8012 * source.c (find_and_open_source): Always rewrite absolute filenames.
8013
8014 2008-02-07 Doug Evans <dje@google.com>
8015
8016 * breakpoint.c: #include "hashtab.h".
8017 (ambiguous_names_p): New fn.
8018 (update_breakpoint_locations): When restoring bp enable status, don't
8019 compare function names if any functions have same name.
8020 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
8021
8022 2008-02-07 Joel Brobecker <brobecker@adacore.com>
8023
8024 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
8025 instead of just a VEC*. Update use of SV.
8026 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
8027
8028 2007-02-07 Joel Brobecker <brobecker@adacore.com>
8029
8030 * NEWS: Put all new commands since gdb-6.7 together.
8031
8032 2007-02-07 Joel Brobecker <brobecker@adacore.com>
8033
8034 * ada-lang.c: #include "vec.h".
8035 (struct string_vector, new_string_vector, string_vector_append):
8036 Delete.
8037 (char_ptr): New typedef.
8038 (DEF_VEC_P (char_ptr)): New VEC type.
8039 (symbol_completion_add): Update profile to take the new VEC type
8040 instead of the old string_vector structure. Update code accordingly.
8041 (ada_make_symbol_completion_list): Use the new VEC type instead of
8042 the old string_vector structure, and update the code accordingly.
8043 * Makefile.in (ada-lang.o): Add dependency on vec.h.
8044
8045 2008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8046
8047 * p-exp.y: Set current_type in missing places.
8048 (leftdiv_is_integer): New static variable.
8049 Typecast right operand of BINOP_DIV to long_double if both operands
8050 are integers.
8051
8052 2008-02-06 Maciej W. Rozycki <macro@mips.com>
8053
8054 * remote-mips.c (set_breakpoint): Rename to...
8055 (mips_set_breakpoint): ... this.
8056 (clear_breakpoint): Rename to...
8057 (mips_clear_breakpoint): ... this.
8058 (common_breakpoint): Rename to...
8059 (mips_common_breakpoint): ... this.
8060 (check_lsi_error): Rename to...
8061 (mips_check_lsi_error): ... this.
8062
8063 2007-02-05 Joel Brobecker <brobecker@adacore.com>
8064
8065 * language.h (struct language_defn): Add new field
8066 la_make_symbol_completion_list.
8067 * symtab.c (default_make_symbol_completion_list): Renames
8068 make_symbol_completion_list.
8069 (make_symbol_completion_list): New function.
8070 * symtab.h (default_make_symbol_completion_list): Add declaration.
8071 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
8072 (auto_language, local_language): Likewise.
8073 * objc-lang.c (objc_language_defn): Likewise.
8074 * scm-lang.c (scm_language_defn): Likewise.
8075 * m2-lang.c (m2_language_defn): Likewise.
8076 * f-lang.c (f_language_defn): Likewise.
8077 * jv-lang.c (java_language_defn): Likewise.
8078 * p-lang.c (pascal_language_defn): Likewise.
8079 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
8080 (minimal_language_defn): Likewise.
8081 * ada-lang.c (struct string_vector): New structure.
8082 (new_string_vector, string_vector_append, ada_unqualified_name)
8083 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
8084 (ada_make_symbol_completion_list): New functions.
8085 (ada_language_defn): Set la_make_symbol_completion_list.
8086 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
8087 this function is static.
8088
8089 2008-02-05 Kevin Buettner <kevinb@redhat.com>
8090
8091 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
8092 to account for call site optimizations.
8093
8094 2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
8095
8096 * tracepoint.c (read_actions): Handle end-of-text indicator
8097 in action list properly. (Committed by Jim Blandy)
8098
8099 2008-02-05 Jim Blandy <jimb@red-bean.com>
8100
8101 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
8102 pseudoregister, not an internal error.
8103 Reported by: Andrzej Zaborowski
8104
8105 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
8106
8107 * varobj.c (c_value_of_variable): Use xstrdup.
8108
8109 2008-02-04 Vladimir Prus <vladimir@codesourcery.com>
8110
8111 Update stored rendition of varobj value when format changes.
8112 * varobj.c (varobj_set_display_format): Recomputed
8113 print_value.
8114 (c_value_of_variable): Return print_value.
8115
8116 2008-02-03 Doug Evans <dje@google.com>
8117
8118 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
8119 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
8120 * valops.c (value_one): New function.
8121 * value.h (value_one): Declare.
8122
8123 Fix argument promotion for binary arithmetic ops for C.
8124 * valarith.c (unop_result_type): New fn.
8125 (binop_result_type): New fn.
8126 (value_binop): Move result type computation to binop_result_type.
8127 (value_pos, value_neg, value_complement): Move result type
8128 computation to unop_result_type.
8129
8130 PR 2384
8131 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
8132 Return basetype, fieldno if found. All callers updated.
8133 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
8134 objfile.
8135 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
8136 * symfile.h (fill_in_vptr_fieldno): Delete.
8137
8138 2008-02-02 Doug Evans <dje@google.com>
8139
8140 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
8141
8142 * typeprint.c (*): Whitespace cleanup.
8143
8144 2008-02-02 Mark Kettenis <kettenis@gnu.org>
8145 Luis Machado <luisgpm@br.ibm.com>
8146 Thiago Jung Bauermann <bauerman@br.ibm.com>
8147
8148 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
8149 don't fit into registerson the stack the way GCC does.
8150
8151 2008-02-01 Joel Brobecker <brobecker@adacore.com>
8152
8153 * symtab.c (symbol_set_names): Do not add an entry in the demangling
8154 hash table for Ada symbols. Just store the linkage name as is,
8155 and leave the demangled_name as NULL.
8156
8157 2007-02-01 Joel Brobecker <brobecker@adacore.com>
8158
8159 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
8160 in the global scope.
8161 (new_symbol): Likewise.
8162
8163 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
8164
8165 * breakpoint.c (break_command_1): Return void.
8166 (break_command_really): Return void. Rethrow
8167 exceptions instead of returning.
8168 (gdb_breakpoint): Remove the error_message parameter.
8169 Return void. Rename to set_breakpoint.
8170 * gdb.h (gdb_breakpoint): Rename and move to...
8171 * breakpoint.h (set_breakpoint): ...here.
8172 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
8173 event hooks even if exception is thrown. Adjust to
8174 gdb_breakpoint interface changes.
8175
8176
8177 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
8178
8179 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
8180 float in both first and second word in the doubleword, to support
8181 old and new ABIs.
8182
8183 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
8184
8185 Properly rethrow exception. This fixes errors
8186 about non-existent functions for -break-insert.
8187 * breakpoint.c (break_command_really): Use throw_exception
8188 for rethrowing. If rethrowing, don't print the exception.
8189
8190 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8191
8192 * NEWS: Mention Decimal Floating Point support.
8193
8194 2008-01-31 Joel Brobecker <brobecker@adacore.com>
8195
8196 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
8197 value type to builtin_type_void_func_ptr.
8198
8199 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
8200
8201 * s390-tdep.c (is_float_singleton, is_float_like,
8202 alignment_of, s390_return_value): Make checks for
8203 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
8204
8205 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
8206 Thiago Jung Bauermann <bauerman@br.ibm.com>
8207
8208 * infcmd.c (default_print_registers_info): Also print hex
8209 raw contents for TYPE_CODE_DECFLOAT registers.
8210 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
8211 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
8212 (rs6000_register_name): Add support for DFP pseudo-registers.
8213 (rs6000_pseudo_register_type): Likewise.
8214 rs6000_pseudo_register_reggroup_p): Likewise.
8215 (ppc_pseudo_register_read): New function.
8216 (ppc_pseudo_register_write): Likewise.
8217 (rs6000_pseudo_register_read): Likewise.
8218 (rs6000_pseudo_register_write): Likewise.
8219 (e500_pseudo_register_read): Move checks to
8220 rs6000_pseudo_register_read.
8221 (e500_pseudo_register_write): Move checks to
8222 rs6000_pseudo_register_write.
8223 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
8224 rs6000_pseudo_register_read and rs6000_pseudo_register_write
8225 in gdbarch if SPE or DFP is available. Adjust gdbarch's
8226 num_pseudo_regs to account for DFP pseudo regs.
8227
8228 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8229
8230 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
8231 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
8232 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
8233 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
8234 e500_pseudo_register_read, e500_pseudo_register_write): Use
8235 IS_SPE_PSEUDOREG macro.
8236 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
8237 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
8238 Remove initialization of tdep->ppc_ev31_regnum.
8239
8240 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
8241
8242 * printcmd.c (print_formatted): Handle references as for unformatted
8243 prints.
8244
8245 2008-01-30 Joel Brobecker <brobecker@adacore.com>
8246
8247 * eval.c (evaluate_subexp_standard): Add handling of user
8248 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
8249
8250 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
8251
8252 * eval.c (evaluate_subexp_standard): Support
8253 BINOP_INTDIV opcode.
8254
8255 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
8256
8257 * valarith.c (value_binop): Add floating-point BINOP_MIN and
8258 BINOP_MAX cases.
8259 For BINOP_EXP, use length and signedness of left operand only for
8260 result, as for shifts.
8261 For integral operands to BINOP_EXP, use new integer_pow and
8262 uinteger_pow functions so as to get full range of results.
8263 (integer_pow): New function.
8264 (uinteger_pow): New function.
8265
8266 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
8267
8268 Use vector for varobj_list_children interface.
8269 * gdb/varobj.c (varobj_list_children): Return vector
8270 of varobjs.
8271 * gdb/varobj.h (varobj_list_children): Adjust
8272 prototype.
8273 (varobj_p): Declare. Declare vector thereof.
8274 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
8275 for varobj_list_children change.
8276 * Makefile.in (varobj_h): Update dependencies.
8277
8278 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8279
8280 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
8281 TYPE_CODE_DECFLOAT arguments.
8282 (ppc64_sysv_abi_push_dummy_call) Likewise.
8283 (get_decimal_float_return_value): New function.
8284 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
8285 values by calling get_decimal_float_return_value.
8286 (ppc64_sysv_abi_return_value): Likewise.
8287
8288 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
8289
8290 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
8291 for preprocessor macro information. Formatting changes.
8292
8293 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8294
8295 * remote.c (struct remote_state): Add cached_wait_status.
8296 (remote_exec_file): New variable.
8297 (PACKET_vAttach, PACKET_vRun): New constants.
8298 (extended_remote_restart): Do not query for status.
8299 (struct start_remote_args): New.
8300 (remote_start_remote): Take it as a second argument. Check
8301 whether the target is running. Issue an error for non-running
8302 non-extended targets. Cache the wait status. Set inferior_ptid
8303 here.
8304 (remote_open_1): Prompt to disconnect non-running targets. Make
8305 sure the target is marked running. Do not set inferior_ptid here.
8306 Update call to remote_start_remote. Do not call remote_check_symbols
8307 if the target is not running.
8308 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
8309 argument. Handle a non-running target.
8310 (remote_detach): Use it.
8311 (extended_remote_detach): New.
8312 (remote_disconnect): Fix typo. Use remoute_mourn_1.
8313 (extended_remote_attach_1, extended_remote_attach)
8314 (extended_async_remote_attach): New.
8315 (remote_vcont_resume): Remove unused variable.
8316 (remote_wait, remote_async_wait): Use any cached wait status.
8317 (putpkt_binary, getpkt): Clear any cached wait status.
8318 (extended_remoute_mourn_1): New.
8319 (extended_remote_mourn): Use it.
8320 (extended_async_remote_mourn, extended_remote_run): New.
8321 (extended_remote_create_inferior_1): New.
8322 (extended_remote_create_inferior): Use it.
8323 (extended_remote_async_create_inferior): Likewise.
8324 (remote_xfer_partial): Skip for non-executing targets.
8325 (init_extended_remote_ops): Set to_detach and to_attach.
8326 (init_extended_async_remote_ops): Likewise. Use
8327 extended_async_remote_mourn.
8328 (_initialize_remote): Register vAttach, vRun, and
8329 set remote exec-file.
8330 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
8331
8332 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8333
8334 * Makefile.in (symfile.o): Update.
8335 * NEWS: Mention exec tracing support.
8336 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
8337 exec events.
8338 * infcmd.c (kill_if_already_running, detach_command)
8339 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
8340 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
8341 (follow_exec): Do not check may_follow_exec. Do not mourn and push
8342 targets. Apply the sysroot path to the loaded executable. Use
8343 no_shared_libraries.
8344 * linux-nat.c (linux_child_follow_fork): Print fork following
8345 messages if verbose.
8346 (kill_wait_callback): Kill again before waiting a second time.
8347 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
8348 no_shared_libraries.
8349
8350 2008-01-29 Joel Brobecker <brobecker@adacore.com>
8351
8352 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
8353
8354 2008-01-29 Joel Brobecker <brobecker@adacore.com>
8355
8356 * nto-tdep.h: Remove #include "defs.h".
8357 * nto-tdep.c: Add #include "defs.h".
8358 * Makefile.in (nto_tdep_h): Update dependencies.
8359 (nto-tdep.o): Likewise.
8360
8361 2008-01-29 Joel Brobecker <brobecker@adacore.com>
8362
8363 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
8364 and use it.
8365 (proceed, start_remote): Update call to wait_for_inferior.
8366 * inferior.h (wait_for_inferior): Update declaration.
8367 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
8368 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
8369 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
8370 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
8371
8372 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
8373
8374 * varobj (adjust_value_for_child_access): Added checking for
8375 returned value from gdb_value_ind.
8376 (c_describe_child): Likewise.
8377 (cplus_describe_child): Fixed a typo.
8378
8379 2008-01-29 Jim Blandy <jimb@red-bean.com>
8380
8381 * MAINTAINERS: Update my info.
8382
8383 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
8384
8385 Use multiple locations for hardware watchpoints.
8386 This eliminates the need to traverse value chain, doing
8387 various checks, in three different places.
8388
8389 * breakpoint.h (struct bp_location): New fields
8390 lengths and watchpoint_type.
8391 (struct breakpoint): Remove the val_chain field.
8392 * breakpoint.c (is_hardware_watchpoint): New.
8393 (free_valchain): Remove.
8394 (update_watchpoint): New.
8395 (insert_bp_location): For hardware watchpoint, just
8396 directly insert it.
8397 (insert_breakpoints): Call update_watchpoint_locations
8398 on all watchpoints. If we have failed to insert
8399 any location of a hardware watchpoint, remove all inserted
8400 locations.
8401 (remove_breakpoint): For hardware watchpoints, directly
8402 remove location.
8403 (watchpoints_triggered): Iterate over locations.
8404 (bpstat_stop_status): Use only first location of
8405 a resource watchpoint.
8406 (delete_breakpoint): Don't call free_valchain.
8407 (print_one_breakpoint): Don't print all
8408 locations for watchpoints.
8409 (breakpoint_re_set_one): Use update_watchpoint for
8410 watchpoints.
8411
8412 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
8413
8414 Don't reset watchpoint block on solib load.
8415
8416 * breakpoint.c (insert_bp_location): For watchpoints,
8417 recompute condition.
8418 (breakpoint_re_set_one): Instead of recomputing value
8419 and condition for watchpoints, just reset value and
8420 let insert_breakpoints/insert_bp_location recompute it.
8421 Don't do anything about disabled watchpoint.
8422
8423 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
8424
8425 * valarith.c (value_binop): Handle unsigned integer
8426 division by zero.
8427
8428 2008-01-28 Kevin Buettner <kevinb@redhat.com>
8429
8430 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
8431 instruction pattern that appears frequently in position
8432 independent code. Fix bug in code which looks for "fmov" and
8433 backtracks if no "fmov" is found.
8434
8435 2008-01-28 Doug Evans <dje@google.com>
8436
8437 * dbxread.c (read_dbx_symtab): Fix indentation.
8438 Reformat comments to 80 columns.
8439 Move local var def closer to only use.
8440
8441 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8442
8443 * fork-child.c (SHELL_FILE): Remove #ifndef.
8444 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
8445
8446 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
8447
8448 * i386-tdep.c (i386_skip_noop): New function.
8449 (i386_analyze_prologue): Call i386_skip_noop function.
8450
8451 2008-01-24 Michael Snyder <msnyder@specifix.com>
8452
8453 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
8454 * win32-nat.c (win32_xfer_partial): Ditto.
8455 * target.c (default_xfer_partial): Minor whitespace adjustment.
8456
8457 2008-01-24 Pedro Alves <pedro@codesourcery.com>
8458
8459 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
8460 strip bit 1 even if pc doesn't point to thumb code.
8461
8462 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
8463
8464 * remote.c (remote_wait): Handle SIGINT between packets.
8465 (remote_async_wait): Likewise.
8466
8467 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
8468 Chris Demetriou <cgd@google.com>
8469
8470 * thread.c (add_thread_silent): Renamed
8471 from add_thread.
8472 (print_thread_events): New variable definition.
8473 (show_print_thread_events): New function.
8474 (_initialize_thread): Add "set print thread-events" and
8475 "show print thread-events" commands.
8476 (add_thread): Announce new thread.
8477 * gdbthread.h (add_thread_silent): Declare.
8478 (print_thread_events): New variable declaration.
8479 * inf-ttrace.c (inf_ttrace_wait): Don't
8480 inform about new thread, as add_thread is always
8481 called too, and will take care of that.
8482 * infrun.c (handle_inferior_event): Likewise.
8483 * procfs.c (procfs_wait): Likewise.
8484 * remote.c (remote_currthread): Likewise.
8485 * sol-thread.c (sol_thread_wait): Likewise.
8486 * win32-nat.c (get_win32_debug_event): Likewise.
8487 * linux-thread-db.c (attach_thread): Likewise.
8488 Remove the verbose parameter.
8489 (check_event): Make detach_thread be verbose
8490 only if print_thread_events is set.
8491 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
8492 about new thread. This is called only from
8493 linux-thread-db.c:attach_thread, which will take care.
8494 Remove the verbose parameter.
8495 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
8496
8497 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
8498
8499 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
8500
8501 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
8502
8503 * breakpoint.c (break_command_really): New parameter
8504 ignore_count.
8505 (break_command_1): Pass 0 as
8506 ignore_count to break_command_really.
8507 (gdb_breakpoint): Pass ignore_count to
8508 break_command_really.
8509
8510 2008-01-21 Kevin Buettner <kevinb@redhat.com>
8511
8512 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
8513 sigcontext struct via pointer.
8514 (struct sigframe comment): Update to show new field `psc'.
8515
8516 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
8517
8518 * infrun.c (handle_inferior_event): If
8519 we failed to remove breakpoints, error,
8520 don't try to increment PC by hand.
8521
8522 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
8523
8524 Add NetBSD/hppa target and host support.
8525
8526 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
8527 (hppabsd_gregset): Move to ...
8528 (hppabsd_regset_from_core_section): Rename
8529 hppaobsd_regset_from_core_section and move to ...
8530 (hppabsd_find_global_pointer): Update comment.
8531 (hppabsd_init_abi): Make global. Do not register
8532 hppabsd_regset_from_core_section.
8533 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
8534 move to ...
8535 (_initialize_hppabsd_tdep): Move to ...
8536 * hppaobsd-tdep.c: ... here. New file.
8537 * hppnbsd-tdep.c: New file.
8538 * hppnbsd-nat.c: New file.
8539 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
8540 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
8541 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
8542 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
8543 * configure.host (hppa*-*-netbsd*): New entry.
8544 * configure.tgt (hppa*-*-netbsd*): New entry.
8545 (hppa*-*-openbsd*): Update.
8546 * NEWS (New native configuration): Mention NetBSD/hppa.
8547 (New targets): Mention NetBSD/hppa.
8548
8549 2008-01-18 Markus Deuling <deuling@de.ibm.com>
8550
8551 * gdbarch.sh (function_list): Add new property bits_big_endian to
8552 gdbarch structure.
8553 * gdbarch.{c,h}: Regenerate.
8554
8555 * value.c (struct value): Replace BITS_BIG_ENDIAN by
8556 gdbarch_bits_big_endian (comment).
8557 (unpack_field_as_long, modify_field): Likewise.
8558 * value.h: Likewise (comment).
8559 * valops.c (value_slice): Likewise.
8560 * valarith.c (value_subscript, value_bit_index): Likewise.
8561 * gdbtypes.h (field): Likewise (comment).
8562 * eval.c (evaluate_subexp_standard): Likewise.
8563 * dwarf2read.c (dwarf2_add_field): Likewise.
8564 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
8565 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
8566
8567 * defs.h (BITS_BIG_ENDIAN): Remove.
8568
8569 2008-01-18 Markus Deuling <deuling@de.ibm.com>
8570
8571 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
8572 function calls.
8573 * m2-exp.y (yylex): Likewise.
8574 * objc-exp.y (yylex): Likewise.
8575
8576 * defs.h (DEPRECATED_STREQN): Remove.
8577
8578 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
8579
8580 * MAINTAINERS: Update my email address.
8581
8582 2008-01-17 Jim Blandy <jimb@codesourcery.com>
8583
8584 * README: Mention gdbserver/README.
8585
8586 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8587
8588 * valarith.c (value_binop): Handle BINOP_INTDIV
8589 for unsigned and signed integers.
8590
8591 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
8592
8593 * s390-tdep.c (s390_gdbarch_init): Set default long double
8594 type to 128-bit IEEE quad.
8595
8596 2008-01-17 Joel Brobecker <brobecker@adacore.com>
8597
8598 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
8599
8600 2008-01-16 Mark Kettenis <kettenis@gnu.org>
8601
8602 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
8603
8604 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
8605 * value.c: All callers changed.
8606
8607 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8608
8609 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
8610 DEPRECATED_STREQ by its expression.
8611 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
8612 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
8613 (scan_xcoff_symtab): Likewise.
8614 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
8615 * f-lang.c (find_common_for_function): Likewise.
8616 * objc-exp.y (parse_number): Likewise.
8617
8618 * defs.h (DEPRECATED_STREQ): Remove.
8619
8620 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8621
8622 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
8623 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
8624 get_frame_arch to get at the current_architecture. Update AM33_MODE
8625 call.
8626 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
8627 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
8628 architecture.
8629 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
8630
8631 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8632
8633 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
8634 parameter.
8635 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
8636
8637 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
8638 current_gdbarch by gdbarch. Update caller.
8639
8640 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
8641 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
8642 the current architecture. Update calls of
8643 amd64_native_gregset_supplies_p.
8644 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
8645 (amd64bsd_store_inferior_registers): Likewise.
8646
8647 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8648
8649 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
8650 Replace current_gdbarch by gdbarch. Update caller.
8651
8652 2008-01-16 Markus Deuling <deuling@de.ibm.com>
8653
8654 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
8655 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
8656 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
8657 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
8658 (stabsect_build_psymtabs): Fix indentation.
8659
8660 2008-01-15 Michael Snyder <msnyder@specifix.com>
8661
8662 * corelow.c (core_xfer_partial): Comment, cut/paste error.
8663
8664 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8665
8666 * win32-nat.c (win32_create_inferior): Restore code calling
8667 CloseHandle on ProcessInformation structure.
8668
8669 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
8670
8671 * configure.ac: Check for void * as 3 argument of ptrace.
8672 * configure: regenerate.
8673
8674 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8675
8676 * alpha-tdep.c (alpha_heuristic_proc_start)
8677 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
8678 current_gdbarch by gdbarch.
8679
8680 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
8681 current architecture by frame_info. Update alpha_heuristic_proc_start
8682 call.
8683
8684 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
8685 get_frame_arch to get at the current architecture by frame_info. Update
8686 alpha_sigtramp_register_address call.
8687
8688 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
8689 current_gdbarch by gdbarch. Update caller.
8690 (convert_to_extended, convert_from_extended): Add endianess parameter
8691 for comparison. Update caller.
8692 (arm_extract_return_value, arm_store_return_value): Use
8693 get_regcache_arch to get at the current architecture.
8694
8695 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
8696 current_gdbarch by gdbarch. Update caller.
8697 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
8698 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
8699
8700 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
8701 gdbarch as parameter. Update caller.
8702 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
8703 current_gdbarch by gdbarch. Update caller.
8704
8705 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
8706 update caller. Replace current_gdbarch by gdbarch.
8707
8708 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
8709 the current architecture. Replace current_gdbarch by gdbarch.
8710 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
8711 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
8712 expression. Add gdbarch as parameter and replace current_gdbarch with
8713 it. Update caller.
8714 (M6811_TDEP): Remove.
8715 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
8716 architecture.
8717 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
8718 current_gdbarch by gdbarch. Update caller.
8719
8720 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
8721 update caller.
8722 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
8723 by gdbarch.
8724
8725 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
8726 caller. Relace current_gdbarch by gdbarch.
8727 (altivec_register_p, spe_register_p): Likewise.
8728 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
8729 parameter.
8730 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
8731 altivec_register_p and spe_register_p.
8732
8733 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
8734 caller. Replace current_gdbarch by gdbarch.
8735 (score_analyze_prologue): use get_frame_arch to get at the current
8736 architecture.
8737
8738 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
8739 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
8740 current_gdbarch by gdbarch. Update caller.
8741 (sparc_frame_cache): Use get_frame_arch to get at the current
8742 architecture.
8743 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
8744 sparc_analyze_prologue.
8745
8746 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
8747 parameter.
8748
8749 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8750
8751 * exec.c: #include "arch-utils.h"
8752 (print_section_info): Use gdbarch_from_bfd to get at the
8753 current architecture. Replace current_gdbarch. Fix indention. Replace
8754 deprecated_print_address_numeric by paddress.
8755 * Makefile.in (exec.o) Add dependency to arch-utils.h.
8756
8757 * valprint.c (val_print_string): Replace
8758 deprecated_print_address_numeric.
8759 * tracepoint.c (trace_mention, scope_info): Likewise.
8760 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
8761 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
8762 (maintenance_check_symtabs): Likewise.
8763 * symfile.c (list_overlays_command): Likewise.
8764 * stack.c (frame_info, print_block_frame_labels): Likewise.
8765 * printcmd.c (print_address, print_address_demangle)
8766 (address_info): Likewise.
8767 * corefile.c (memory_error): Likewise.
8768 * infcmd.c (jump_command): Likewise.
8769 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
8770 (mention, delete_breakpoint): Likewise.
8771 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
8772 * dwarf2read.c (dump_die): Likewise.
8773 * ada-valprint.c (ada_val_print_1): Likewise.
8774 * f-valprint.c (f_val_print): Likewise.
8775 * linux-fork.c (info_forks_command): Likewise.
8776 * m32r-com.c (m32r_load_section, m32r_load)
8777 (m32r_upload_command): Likewise.
8778
8779 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
8780
8781 2008-01-11 Markus Deuling <deuling@de.ibm.com>
8782
8783 * gdbarch.sh (skip_prologue): Add gdbarch
8784 as parameter.
8785 * gdbarch.{c,h}: Regenerate.
8786
8787 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
8788 * amd64-tdep.c (amd64_skip_prologue): Likewise.
8789 * avr-tdep.c (avr_skip_prologue): Likewise.
8790 * cris-tdep.c (cris_skip_prologue): Likewise.
8791 * frv-tdep.c (frv_skip_prologue): Likewise.
8792 * h8300-tdep.c (h8300_skip_prologue): Likewise.
8793 * hppa-tdep.c (hppa_skip_prologue): Likewise.
8794 * i386-tdep.c (i386_skip_prologue): Likewise.
8795 * ia64-tdep.c (ia64_skip_prologue): Likewise.
8796 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
8797 * m32r-tdep.c (m32r_skip_prologue): Likewise.
8798 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
8799 * m68k-tdep.c (m68k_skip_prologue): Likewise.
8800 * m88k-tdep.c (m88k_skip_prologue): Likewise.
8801 * mep-tdep.c (mep_skip_prologue): Likewise.
8802 * mips-tdep.c (mips_skip_prologue): Likewise.
8803 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
8804 * mt-tdep.c (mt_skip_prologue): Likewise.
8805 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
8806 * score-tdep.c (score_skip_prologue): Likewise.
8807 * sh64-tdep.c (sh64_skip_prologue): Likewise.
8808 * sh-tdep.c (sh_skip_prologue): Likewise.
8809 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
8810 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
8811 * spu-tdep.c (spu_skip_prologue): Likewise.
8812 * v850-tdep.c (v850_skip_prologue): Likewise.
8813 * vax-tdep.c (vax_skip_prologue): Likewise.
8814 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
8815 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
8816
8817 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
8818 current_gdbarch by gdbarch.
8819 * m32c-tdep.c (m32c_skip_prologue): Likewise.
8820 * s390-tdep.c (s390_skip_prologue): Likewise.
8821
8822 2008-01-10 Doug Evans <dje@google.com>
8823
8824 * defs.h (struct continuation_arg): Fix typo in comment.
8825 * target.c (target_translate_tls_address): Fix comment spelling error.
8826
8827 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
8828
8829 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
8830 (DOUBLEST_SCAN_FORMAT): Likewise.
8831 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
8832 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
8833 * c-exp.y (parse_number): Likewise.
8834 * jv-exp.y (parse_number): Likewise.
8835 * objc-exp.y (parse_number): Likewise.
8836 * p-exp.y (parse_number): Likewise.
8837
8838 2008-01-09 Joel Brobecker <brobecker@adacore.com>
8839
8840 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
8841 (check_typedef): Likewise.
8842
8843 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
8844
8845 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
8846 seen_double_big_d, treat the new H, D, and DD modifiers as length
8847 modifiers.
8848
8849 2008-01-08 Joel Brobecker <brobecker@adacore.com>
8850
8851 * dwarf2read.c (read_enumeration_type): Add comment.
8852
8853 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
8854
8855 * config.in: Regenerate.
8856
8857 2008-01-08 Joel Brobecker <brobecker@adacore.com>
8858
8859 * ada-lang.c (ada_convert_actual): Renames convert_actual.
8860 Make non-static.
8861 (ada_convert_actuals): Delete.
8862 * ada-lang.h (ada_convert_actual): Add declaration.
8863 (ada_convert_actuals): Remove declaration.
8864 * infcall.c: #include "ada-lang.h".
8865 (value_arg_coerce): Add new parameter sp. Update function
8866 documetnation. Add handling of Ada function call parameters.
8867 * Makefile.in (infcall.o): Update dependencies.
8868
8869 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
8870
8871 * ada-lang.c (ensure_lval): Fix value lval kind.
8872 (convert_actual): Add handling for arguments passed by reference.
8873
8874 2008-01-08 Doug Evans <dje@google.com>
8875
8876 * dbxread.c (read_dbx_symtab): Fix indentation.
8877
8878 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
8879
8880 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
8881 (valarith.o): Depend on dfp.h.
8882 (valops.o): Likewise.
8883 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
8884 (set_decnumber_context): New function.
8885 (decimal_check_errors): Likewise.
8886 (decimal_from_number): Likewise.
8887 (decimal_to_number): Likewise.
8888 (decimal_from_string): Use set_decnumber_context and
8889 decimal_check_errors.
8890 (decimal_from_integral): New function.
8891 (decimal_from_floating): Likewise.
8892 (decimal_to_double): Likewise.
8893 (promote_decimal): Likewise.
8894 (decimal_binop): Likewise.
8895 (decimal_is_zero): Likewise.
8896 (decimal_compare): Likewise.
8897 (decimal_convert): Likewise.
8898 * dfp.h (decimal_from_integral): New prototype.
8899 (decimal_from_floating): Likewise.
8900 (decimal_to_double): Likewise.
8901 (decimal_binop): Likewise.
8902 (decimal_is_zero): Likewise.
8903 (decimal_compare): Likewise.
8904 (decimal_convert): Likewise.
8905 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
8906 call to value_from_decfloat.
8907 * valarith.c: Include dfp.h.
8908 (value_args_as_decimal): New function.
8909 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
8910 (value_logical_not): Likewise.
8911 (value_equal): Likewise.
8912 (value_less): Likewise.
8913 (value_pos): Likewise.
8914 (value_neg): Formatting fix.
8915 * valops.c: Include dfp.h.
8916 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
8917 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
8918 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
8919 (value_from_decfloat): Remove expect_type argument.
8920 * value.h (value_from_decfloat): Update prototype.
8921
8922 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
8923
8924 Ignore change in name of dynamic linker during
8925 execution on Solaris. This also unbreaks pending breakpoints.
8926
8927 * solist.h (struct target_so_ops): New field same.
8928 * solib-svr4.c (svr4_same): New.
8929 (_initialize_svr4_solib): Register svr4_same.
8930 * solib.c (update_solib_list): Use ops->same, if available.
8931
8932 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
8933
8934 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
8935 when using MS-DOS paths.
8936
8937 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8938
8939 * NEWS: Mention --pid and --core command line behaviour changes.
8940
8941 2008-01-05 Pedro Alves <pedro@codesourcery.com>
8942
8943 * main.c (captured_main): Remove 'count' varible and the
8944 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
8945 --pid options were issued simultaneously. If an explicit pid
8946 option was passed, don't fallback to core file. Detect extra
8947 arguments better in the presence of explicit pid or core
8948 arguments.
8949
8950 2008-01-05 Joel Brobecker <brobecker@adacore.com>
8951
8952 * ada-lang.c (ada_which_variant_applies): Correctly compute
8953 the value of the discriminant when the variant record is packed.
8954
8955 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8956
8957 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
8958 that are used to differentiate homonyms.
8959
8960 2008-01-04 Jerome Guitton <guitton@adacore.com>
8961
8962 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
8963 when the type is an anonymous pointer type.
8964 (ada_check_typedef): Avoid a seg fault when the type is null.
8965 * ada-typeprint.c (print_array_type): Add support for pointer
8966 to packed arrays.
8967
8968 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
8969
8970 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
8971
8972 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8973
8974 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
8975 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
8976
8977 2008-01-04 Joel Brobecker <brobecker@adacore.com>
8978
8979 * ada-exp.y (chop_separator): New function.
8980 (write_selectors): Rewrite to re-use chop_separator.
8981 (ada_nget_field_index, get_symbol_field_type): New functions.
8982 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
8983 expressions.
8984
8985 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
8986
8987 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
8988 of SYMBOL_VALUE when working with function symbols.
8989
8990 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8991
8992 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
8993 expressions. These expressions do not need to be rewriten.
8994
8995 2008-01-03 Joel Brobecker <brobecker@adacore.com>
8996
8997 * dwarf2read.c (read_enumeration_type): Flag type as stub if
8998 the given die is a declaration.
8999
9000 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9001
9002 * ada-lang.c (ada_array_bound_from_type): Make non-static.
9003 Handle properly the case when the index type is an enumerated type.
9004 Do not return the subtype of the bounds type, just return the
9005 bounds type directly - this is not needed and is more consistent
9006 with what we do for arrays when no XA parallel type exists.
9007
9008 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9009
9010 * ada-lang.c (static_unwrap_type): Add forward declaration.
9011 (template_to_static_fixed_type): Fields of dynamic types sometimes
9012 also need to be unwrapped. Take this into account.
9013 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
9014 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
9015 * ada-typeprint.c (ada_print_type): Get the typename from
9016 the original type, not the base type.
9017
9018 2008-01-03 Jerome Guitton <guitton@adacore.com>
9019
9020 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
9021 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
9022 Update calls to ada_to_fixed_type.
9023 (ada_template_to_fixed_record_type_1): Ditto, but without looking
9024 for the tag.
9025 (ada_to_fixed_type): Add check_tag parameter; do not look for
9026 tag if null. When looking for a tag, use a fixed record type.
9027 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
9028 * ada-valprint.c (printable_val_type, ada_value_print): Update
9029 calls to ada_to_fixed_type.
9030
9031 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
9032
9033 * doublest.c (convert_floatformat_to_doublest): Call
9034 floatformat_to_doublest instead of floatformat_to_double and use
9035 DOUBLEST variables.
9036 (convert_doublest_to_floatformat): Call floatformat_from_doublest
9037 instead of floatformat_from_double and use DOUBLEST variables.
9038
9039 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
9040
9041 * MAINTAINERS (Write After Approval): Add self.
9042
9043 2008-01-03 Joel Brobecker <brobecker@adacore.com>
9044
9045 * symfile.c (set_initial_language): Make non-static.
9046 * symfile.h (set_initial_language): Add declaration.
9047 * language.c: #include "symfile.h".
9048 (set_language): Call set_initial_language if the frame language
9049 could not be determined.
9050
9051 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
9052
9053 * eval.c (evaluate_subexp_for_address): Provide frame address to
9054 locate_var_value only if it will be needed.
9055
9056 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9057
9058 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
9059
9060 2008-01-02 Joel Brobecker <brobecker@adacore.com>
9061
9062 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
9063 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
9064 This is needed to make sure that any other treatment applied
9065 to the resulting value does not fail for spurious reason,
9066 such as trying to take the address of this value.
9067
9068 2008-01-02 Joel Brobecker <brobecker@adacore.com>
9069
9070 * ada-lang.c (ada_value_equal): Dereference reference types when
9071 comparing arrays.
9072
9073 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
9074
9075 Updated copyright notices for most files.
9076
9077 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
9078
9079 * win32-nat.c (psapi_module_handle): Remove static.
9080 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
9081 return first module found if base_address is zero. Don't initialize
9082 psapi function pointers here. Convert to cygwin paths when
9083 appropriate.
9084 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
9085 executable name. Use get_module_name when that fails or when
9086 !__CYGWIN__.
9087 (_initialize_psapi): New function. Initialize psapi stuff before it is
9088 needed or issue a warning if it is not found. Move psapi_module_handle
9089 here.
9090
9091 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9092
9093 * ada-lang.c (ada_remove_trailing_digits): New function.
9094 (ada_remove_po_subprogram_suffix): New function.
9095 (ada_decode): Improve. Move the description of the algorithm
9096 directly inside the code, instead of in the function global
9097 description.
9098
9099 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9100
9101 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
9102 and always print the dereferenced value.
9103
9104 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9105
9106 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
9107 of the case where the first argument is a reference.
9108 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
9109
9110 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9111
9112 Implement support for Ada interface types.
9113
9114 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
9115 (ada_is_ignored_field): Ignore fields that are a dispatch table
9116 of a tagged type.
9117
9118 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9119
9120 * top.c (print_gdb_version): Update copyright year.
9121
9122 2008-01-01 Joel Brobecker <brobecker@adacore.com>
9123
9124 * ChangeLog-2007: New ChangeLog rotation.
9125 * ChangeLog: Reset for 2008.
9126 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
9127 ChangeLog-2007.
9128
9129 For older changes see ChangeLog-2007.
9130 \f
9131 Local Variables:
9132 mode: change-log
9133 left-margin: 8
9134 fill-column: 74
9135 version-control: never
9136 coding: utf-8
9137 End:
This page took 0.244901 seconds and 5 git commands to generate.