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