2004-09-16 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-09-16 Andrew Cagney <cagney@gnu.org>
2
3 * lin-lwp.c: Delete file.
4 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
5 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
6 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
7 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
8 (linux_nat_attach, detach_callback, linux_nat_detach)
9 (resume_callback, resume_clear_callback, linux_nat_resume)
10 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
11 (stop_wait_callback, linux_nat_has_pending, flush_callback)
12 (status_callback, running_callback, count_events_callback)
13 (select_singlestep_lwp_callback, select_event_lwp_callback)
14 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
15 (child_wait, stop_and_resume_callback, linux_nat_wait)
16 (kill_callback, kill_wait_callback, linux_nat_kill)
17 (linux_nat_create_inferior, linux_nat_mourn_inferior)
18 (linux_nat_xfer_memory, linux_nat_thread_alive)
19 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
20 (_initialize_linux_nat): New functions.
21 * Makefile.in: Update all dependencies.
22 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
23 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
24 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
25 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
26 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
27 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
28 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
29 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
30 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
31 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
32 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
33 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
34 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
35
36 2004-09-27 Mark Kettenis <kettenis@gnu.org>
37
38 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
39 config/i386/obsd64.mh (NAT_FILE): Remove variable.
40
41 * configure.in: Don't comment out NATDEPFILES in the generated
42 Makefile if NAT_FILE is unset.
43 * configure: Regenerate.
44
45 2004-09-27 Andrew Cagney <cagney@gnu.org>
46
47 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
48 (insert_step_resume_breakpoint): Delete.
49 (insert_step_resume_breakpoint_at_frame): New function.
50 (insert_step_resume_breakpoint_at_sal): New function.
51 (handle_inferior_event, step_into_function)
52 (insert_step_resume_breakpoint): Simplify by using same.
53
54 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
55
56 2004-09-26 Mark Kettenis <kettenis@gnu.org>
57
58 * fbsd-proc.c: Remove file.
59 * Makefile.in (fbsd-proc.o): Remove dependency.
60
61 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
62 code together.
63
64 * config/i386/nm-fbsd64.h: Remove file.
65 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
66
67 2004-09-26 Mark Kettenis <kettenis@gnu.org>
68
69 * amd64-nat.h: Update copyright year.
70 (amd64bsd_target): New prototype.
71 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
72 (amd64bsd_target): New function.
73 (amd64bsd_fetch_inferior_registers): Rename from
74 fetch_inferior_registers. Make static.
75 (amd64bsd_store_inferior_registers): Rename from
76 store_inferior_registers. Make static.
77 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
78 (_initialize_amd64fbsd_nat): Construct and add target vector.
79 * amd64nbsd-nat.o: Include "target.h".
80 (_initialize_amd64nbsd_nat): Construct and add target vector.
81 * amd64obsd-nat.c: Include "target.h".
82 (_initialize_amd64obsd_nat): Construct and add target vector.
83 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
84 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
85 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
86 fbsd-nat.o.
87 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
88 Remove infptrace.o and inftarg.o. Add inf-child.o and
89 inf-ptrace.o.
90 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
91 (amd64obsd-nat.o): Update dependencies.
92
93 2004-09-25 Mark Kettenis <kettenis@gnu.org>
94
95 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
96 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
97 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
98 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
99 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
100
101 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
102 Inline attach call.
103 (inf_ptrace_detach): Inline detach call.
104
105 * configure.in: Check for waddstr instead of mvwaddstr when
106 searching for curses library. Check for wborder.
107 * configure, config.in: Regenerate.
108 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
109 available.
110
111 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
112
113 2004-09-24 Robert Picco <Robert.Picco@hp.com>
114
115 Committed by Andrew Cagney.
116 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
117 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
118 configuration.
119 (fetch_register_using_p): Implement 'p' packet. Based on code by
120 Fernando Nasser.
121 (remote_fetch_registers): Call fetch_register_using_p.
122 (init_all_packet_configs, show_remote_cmd)
123 (_initialize_remote): Add p-packet.
124
125 2004-09-24 Mark Kettenis <kettenis@gnu.org>
126
127 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
128 instead of call_ptrace. Call wait directly instead of
129 ptrace_wait.
130 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
131 (inf_ptrace_wait): Inline ptrace_wait call.
132
133 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
134
135 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
136 rolled back instead.
137
138 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
139
140 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
141 the new argument order.
142
143 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
144
145 * MAINTAINERS: Remove "broken" from XStormy16 entry.
146 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
147 (struct gdbarch_tdep): Remove.
148 (struct xstormy16_frame_cache): New frame cache structure.
149 (xstormy16_register_byte, xstormy16_register_raw_size)
150 (xstormy16_reg_virtual_type, xstormy16_register_type)
151 (xstormy16_push_arguments, xstormy16_push_return_address)
152 (xstormy16_pop_frame, xstormy16_store_struct_return)
153 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
154 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
155 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
156 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
157 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
158 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
159 (xstormy16_use_struct_convention): Drop gcc_p parameter.
160 (xstormy16_extract_return_value, xstormy16_store_return_value):
161 Regcachify. Drop useless struct convention handling.
162 (xstormy16_register_type, xstormy16_return_value)
163 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
164 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
165 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
166 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
167 (xstormy16_unwind_sp, xstormy16_unwind_pc)
168 (xstormy16_unwind_dummy_id) : New functions.
169 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
170 of xstormy16_scan_prologue.
171 (xstormy16_frame_unwind): New frame_unwind structure.
172 (xstormy16_frame_base): New frame_base structure.
173 (xstormy16_gdbarch_init): Accomodate all of the above changes.
174 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
175
176 2004-09-22 Mark Kettenis <kettenis@gnu.org>
177
178 * language.c (language_gdbarch_post_init): Fix off-by one error.
179
180 2004-09-21 Daniel Jacobowitz <dan@debian.org>
181
182 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
183 (struct dwarf2_offset_and_type): New.
184 (set_die_type, reset_die_and_siblings_types, get_die_type)
185 (offset_and_type_hash, offset_and_type_eq): New functions.
186 (read_structure_type, read_enumeration_type, read_array_type)
187 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
188 (read_tag_reference_type, read_tag_const_type)
189 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
190 (read_typedef, read_base_type, read_subrange_type): Use
191 set_die_type.
192
193 2004-09-20 Daniel Jacobowitz <dan@debian.org>
194
195 * Makefile.in (dwarf2read.o): Update dependencies.
196 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
197 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
198 and read_in_chain.
199 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
200 mark, and has_form_ref_addr.
201 (struct dwarf2_per_cu_data): New.
202 (dwarf2_max_cache_age): New.
203 (dwarf2_build_psymtabs_hard): Free cached compilation units
204 after loading. Create and manage the list of compilation units.
205 Remove unnecessary NULL initialization. Fix indentation.
206 (psymtab_to_symtab_1): Initialize all of CU.
207 (dwarf2_read_abbrevs): Set has_form_ref_addr.
208 (find_partial_die): Use dwarf2_find_containing_comp_unit
209 and load_comp_unit.
210 (free_stack_comp_unit): Update comments. Clear the per-cu
211 pointer. Handle aging.
212 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
213 (age_cached_comp_units, free_one_cached_comp_unit)
214 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
215 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
216 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
217 (show_dwarf2_cmd): New.
218 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
219 and "maint show dwarf2 max-cache-age".
220 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
221 externs.
222 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
223 global.
224
225 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
226
227 * dwarf2read.c (typename_concat): Change prototype to accept obstack
228 and dwarf2_cu struct pointer as arguments. Change function to use
229 obstack if provided and use dwarf2_cu to determine language-specific
230 separator.
231 (partial_die_parent_scope): Change comment to include java. Use
232 new version of typename_concat instead of obconcat.
233 (partial_die_full_name): Use typename_concat.
234 (read_namespace): Ditto.
235 (read_enumeration_type): Use typename_concat instead of obconcat.
236 (new_symbol): Ditto.
237 (add_partial_symbol): Enhance tests for C++ to also test for Java.
238 (guess_structure_name): Ditto.
239 (read_subroutine_type): Ditto.
240 (read_structure_type): Ditto.
241 (is_vtable_name): Add Java support.
242 (determine_class_name): Switch to new typename_concat call.
243 (determine_prefix): Switch to new typename_concat call.
244 * jv-exp.y (FuncStart): New pattern.
245 (MethodInvocation): Add support for simple function calls. Change
246 warning message for other forms of inferior call currently not
247 supported.
248 * valarith.c (value_subscript): Treat an array with upper-bound
249 of -1 as unknown size.
250
251 2004-09-20 Daniel Jacobowitz <dan@debian.org>
252
253 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
254 (lookup_partial_symtab): Use symtab_to_fullname.
255
256 2004-09-19 Jim Blandy <jimb@redhat.com>
257
258 * minsyms.c (lookup_minimal_symbol): Doc fix.
259
260 2004-09-20 Andrew Cagney <cagney@gnu.org>
261
262 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
263 CHILD_RESUME.
264 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
265 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
266 KILL_INFERIOR.
267 * infptrace.c: Update.
268
269 2004-09-19 Daniel Jacobowitz <dan@debian.org>
270
271 * symtab.c (output_source_filename): Mark first argument as const.
272 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
273 for "info sources" output.
274
275 2004-09-20 Mark Kettenis <kettenis@gnu.org>
276
277 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
278 <machine/vmparam.h>.
279 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
280 (register_u_addr): Remove prototype.
281
282 2004-09-19 Mark Kettenis <kettenis@gnu.org>
283
284 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
285 (i386bsd_fetch_inferior_registers): Rename from
286 fetch_inferior_registers. Make static.
287 (i386bsd_store_inferior_registers): Rename from
288 store_inferior_registers. Make static.
289 (i386bsd_target): New function.
290 * i386bsd-nat.h: New file.
291 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
292 "i386bsd-nat.h".
293 (i386fbsd_resume): Rename from child_resume. Make static.
294 (_initialize_i386fbsd_nat): Construct and add target vector.
295 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
296 (_initialize_i386nbsd_nat): Construct and add target vector.
297 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
298 Remove defines.
299 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
300 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
301 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
302 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
303 (LOADLIBES): New variable.
304 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
305 inf-ptrace.o. Remove inftarg.o.
306 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
307 inf-ptrace.o. Remove inftarg.o.
308 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
309 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
310 (LOADLIBES): New variable.
311 * Makefile.in (i386bsd_nat_h): New variable.
312 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
313 dependencies.
314
315 * sparc64nbsd-tdep.c: Include "objfiles.h".
316 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
317 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
318 svr4_lp64_fetch_link_map_offsets.
319 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
320 "nbsd-tdep.h".
321 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
322 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
323 svr4_lp64_fetch_link_map_offsets.
324 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
325 dependencies.
326
327 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
328 * fbsd-nat.h: New file.
329 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
330 (fbsd_nat_h): New variable.
331 (fbsd-nat.o): New dependency.
332
333 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
334 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
335
336 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
337 comment.
338
339 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
340
341 * ada-exp.y (type_int): New function to add layer of abstraction
342 around references to expression types.
343 (type_long): Ditto.
344 (type_long_long): Ditto.
345 (type_float): Ditto.
346 (type_double): Ditto.
347 (type_long_double): Ditto.
348 (type_char): Ditto.
349 (type_system_address): Ditto.
350 (simple_exp): Use type_* functions in place of builtin_*
351 variables.
352 (exp): Ditto.
353 (write_var_from_name): Ditto.
354 (write_object_renaming): Ditto.
355 * ada-lang.c (ada_create_fundamental_type): Remove redundant
356 declaration.
357 (build_ada_types): Remove, replacing with...
358 (ada_language_arch_info): New function to initialize primitive
359 type vector in language_arch_info.
360 (ada_array_length): Remove use of builtin_type_ada_int.
361 (value_pos_atr): Ditto.
362 (ada_evaluate_subexp): Ditto.
363 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
364 builtin_type_ada_long_long, builtin_type_ada_char,
365 builtin_type_ada_float, builtin_type_ada_double,
366 builtin_type_ada_long_double, builtin_type_ada_natural,
367 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
368 (ada_builtin_types): Remove.
369 (ada_language_defn): Remove entries for la_builtin_type_vector and
370 string_char_type and use ada_language_arch_info.
371 (_initialize_ada_language): Do type-vector initialization along
372 the lines of c-lang.c.
373 (ada_create_fundamental_type): Break up line.
374 (ada_dump_symtab): Remove unused function.
375 (enum ada_primitive_types): Define.
376 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
377 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
378 builtin_type_ada_float, builtin_type_ada_double,
379 builtin_type_ada_long_double, builtin_type_ada_natural,
380 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
381 * ada-lex.l: Use type_* functions in place of builtin_* variables.
382 (processInt): Ditto.
383 (processReal): Ditto.
384 (name_lookup): Ditto.
385 * ada-typeprint.c (print_range): Use builtin_type_int, not
386 builtin_type_ada_int.
387
388 2004-09-18 Mark Kettenis <kettenis@gnu.org>
389
390 * i386-tdep.c (i386_register_name): Rename regno to regnum.
391
392 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
393 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
394 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
395 * configure.in: Improve checks for curses library by checking for
396 mvwaddstr instead of initscr. Drop HP curses in favour of
397 standard curses on HP-UX.
398 * configure: Regenerated.
399
400 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
401
402 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
403 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
404 Minor formatting changes.
405 (empty_array): Slight rewrite for formatting.
406 (emit_char,parse,ada_language_defn,build_ada_types,
407 ada_is_exception_sym, _initialize_ada_language): Move
408 definitions around.
409 (ada_dump_symtab): Remove unused definition.
410 (ada_maybe_exception_partial_symbol): Remove unused definition.
411
412 2004-09-16 Andrew Cagney <cagney@gnu.org>
413
414 * inf-child.c: Include "gdb_string.h".
415 (inf_child_core_file_to_sym_file): Delete.
416 (inf_child_target): Set to_fetch_registers and to_store_registers.
417 * inf-ptrace.c: Include "gdb_string.h".
418 * Makefile.in: Update all dependencies.
419
420 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
421 problem.
422
423 2004-09-14 Joel Brobecker <brobecker@gnat.com>
424
425 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
426 call to heuristic_proc_desc. Remove code that became redundant
427 as a consequence.
428 (read_next_frame_reg): Remove special case for SP_REGNUM.
429 (set_reg_offset): Fix small typo.
430 (reset_saved_regs): New procedure.
431 (mips32_heuristic_proc_desc): No longer compute a fake
432 procedure descriptor. Compute the full frame cache instead.
433 Some minor comment reformatting.
434
435 2004-09-14 Andrew Cagney <cagney@gnu.org>
436
437 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
438 maintainer.
439
440 * thread-db.c (thread_db_new_objfile): Assume that there is a
441 child process.
442
443 2004-09-13 Jim Blandy <jimb@redhat.com>
444
445 * valops.c (value_assign): Move 'buffer' to the enclosing block,
446 so that its storage isn't referenced after its lifetime ends.
447
448 * valops.c (value_assign): 'use_buffer' is initialized to zero,
449 and never assigned to. Delete it, and the 'if (use_buffer)'
450 clauses. Delete 'raw_buffer', since it is now unused.
451
452 2004-09-13 Andrew Cagney <cagney@gnu.org>
453
454 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
455 * configure: Re-generate.
456 * nlm/Makefile.in (TAGS): Update.
457 * Makefile.in (TAGS): Update.
458 * config/vax/nbsd.mt (TM_FILE): Update.
459 * config/sparc/vxworks.mt (TM_FILE): Update.
460 * config/sparc/sol2.mt (TM_FILE): Update.
461 * config/sparc/sol2-64.mt (TM_FILE): Update.
462 * config/sparc/obsd64.mt (TM_FILE): Update.
463 * config/sparc/obsd.mt (TM_FILE): Update.
464 * config/sparc/nbsd64.mt (TM_FILE): Update.
465 * config/sparc/nbsd.mt (TM_FILE): Update.
466 * config/sparc/linux64.mt (TM_FILE): Update.
467 * config/sparc/linux.mt (TM_FILE): Update.
468 * config/sparc/fbsd.mt (TM_FILE): Update.
469 * config/sh/wince.mt (TM_FILE): Update.
470 * config/sh/nbsd.mt (TM_FILE): Update.
471 * config/sh/linux.mt (TM_FILE): Update.
472 * config/sh/embed.mt (TM_FILE): Update.
473 * config/s390/s390.mt (TM_FILE): Update.
474 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
475 * config/rs6000/rs6000.mt (TM_FILE): Update.
476 * config/rs6000/aix4.mt (TM_FILE): Update.
477 * config/powerpc/vxworks.mt (TM_FILE): Update.
478 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
479 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
480 * config/powerpc/obsd.mt (TM_FILE): Update.
481 * config/powerpc/nbsd.mt (TM_FILE): Update.
482 * config/powerpc/linux.mt (TM_FILE): Update.
483 * config/powerpc/aix.mt (TM_FILE): Update.
484 * config/pa/obsd.mt (TM_FILE): Update.
485 * config/pa/linux.mt (TM_FILE): Update.
486 * config/pa/hppahpux.mt (TM_FILE): Update.
487 * config/pa/hppa64.mt (TM_FILE): Update.
488 * config/pa/hppa.mt (TM_FILE): Update.
489 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
490 * config/mips/wince.mt (TM_FILE): Update.
491 * config/mips/vxmips.mt (TM_FILE): Update.
492 * config/mips/nbsd.mt (TM_FILE): Update.
493 * config/mips/linux.mt (TM_FILE): Update.
494 * config/mips/irix6.mt (TM_FILE): Update.
495 * config/mips/irix5.mt (TM_FILE): Update.
496 * config/mips/embed.mt (TM_FILE): Update.
497 * config/m68k/vxworks68.mt (TM_FILE): Update.
498 * config/m68k/st2000.mt (TM_FILE): Update.
499 * config/m68k/os68k.mt (TM_FILE): Update.
500 * config/m68k/obsd.mt (TM_FILE): Update.
501 * config/m68k/nbsd.mt (TM_FILE): Update.
502 * config/m68k/monitor.mt (TM_FILE): Update.
503 * config/m68k/linux.mt (TM_FILE): Update.
504 * config/m68k/cisco.mt (TM_FILE): Update.
505 * config/ia64/linux.mt (TM_FILE): Update.
506 * config/ia64/aix.mt (TM_FILE): Update.
507 * config/ia64/ia64.mt (TM_FILE): Update.
508 * config/i386/vxworks.mt (TM_FILE): Update.
509 * config/i386/obsd64.mt (TM_FILE): Update.
510 * config/i386/obsd.mt (TM_FILE): Update.
511 * config/i386/nto.mt (TM_FILE): Update.
512 * config/i386/nbsd64.mt (TM_FILE): Update.
513 * config/i386/nbsd.mt (TM_FILE): Update.
514 * config/i386/linux64.mt (TM_FILE): Update.
515 * config/i386/linux.mt (TM_FILE): Update.
516 * config/i386/i386sol2.mt (TM_FILE): Update.
517 * config/i386/i386lynx.mt (TM_FILE): Update.
518 * config/i386/fbsd64.mt (TM_FILE): Update.
519 * config/i386/fbsd.mt (TM_FILE): Update.
520 * config/i386/cygwin.mt (TM_FILE): Update.
521 * config/h8300/h8300.mt (TM_FILE): Update.
522 * config/frv/frv.mt (TM_FILE): Update.
523 * config/cris/cris.mt (TM_FILE): Update.
524 * config/arm/wince.mt (TM_FILE): Update.
525 * config/arm/nbsd.mt (TM_FILE): Update.
526 * config/arm/linux.mt (TM_FILE): Update.
527 * config/arm/embed.mt (TM_FILE): Update.
528 * config/alpha/nbsd.mt (TM_FILE): Update.
529 * config/alpha/fbsd.mt (TM_FILE): Update.
530 * config/alpha/alpha.mt (TM_FILE): Update.
531 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
532 * config/alpha/alpha-linux.mt (TM_FILE): Update.
533
534 Eliminate event_loop_p, always has the value 1.
535 * defs.h (event_loop_p): Delete macro.
536 * breakpoint.c (until_break_command): Simplify.
537 * utils.c (prompt_for_continue): Simplify.
538 * tracepoint.c (read_actions): Simplify.
539 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
540 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
541 (set_prompt, init_main): Simplify.
542 (init_signals, disconnect): Delete, unused.
543 * remote.c (remote_async_resume)
544 (extended_remote_async_create_inferior): Simplify.
545 * mi/mi-interp.c (mi_input): Delete, unused.
546 (mi_interpreter_resume, mi_command_loop): Simplify.
547 * interps.c (current_interp_command_loop): Simplify.
548 * infrun.c (proceed): Simplify.
549 * infcmd.c (run_command, continue_command, step_1, jump_command)
550 (until_command, advance_command, finish_command)
551 (interrupt_target_command): Simplify.
552 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
553
554 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
555 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
556 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
557 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
558 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
559 * mips-tdep.c (mips_dump_tdep): Do not print same.
560
561 2004-09-12 Andrew Cagney <cagney@gnu.org>
562
563 * valprint.c (print_longest): Use fputs_filtered. Make "val"
564 const.
565 * Makefile.in (valprint.o): Delete explict rule.
566
567 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
568 reported by Dave Anderson.
569
570 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
571
572 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
573
574 2004-09-12 Salvador E. Tropea <set@users.sf.net>
575 Andrew Cagney <cagney@gnu.org>
576
577 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
578 (mi_cmd_data_list_register_values)
579 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
580 the register number computation.
581
582 2004-09-12 Andrew Cagney <cagney@gnu.org>
583
584 * ppcnbsd-nat.c: Include "inf-ptrace.h".
585 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
586 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
587 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
588 target.
589 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
590 inf-ptrace.o and inf-child.o.
591 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
592 * Makefile.in: Update dependencies.
593
594 2004-09-11 Andrew Cagney <cagney@gnu.org>
595
596 * language.c (hex_string, hex_string_custom): Move from here ...
597 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
598 (CELLSIZE): Increase to 50.
599 * language.h (hex_string, hex_string_custom): Move from here ...
600 * defs.h: ... to here.
601 * Makefile.in: Update all dependencies.
602
603 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
604
605 * language.c (local_hex_format_custom): Remove.
606 (local_hex_string): Rename to hex_string, use C format, and move to
607 utils.c
608 (local_hex_string_custom): Rename to hex_string_custom and change
609 interface. Now uses C format. Move to utils.c
610 (local_octal_format_custom): Remove.
611 (local_decimal_format_custom): Remove.
612 (unknown_language_defn): Remove language-specific number
613 formatting entries.
614 (auto_language_defn): Ditto.
615 (local_language_defn): Ditto.
616 * language.h (struct language_format_info): Delete declaration.
617 (struct language_defn): Remove language_format_info fields
618 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
619 (local_binary_format): Remove macro.
620 (local_binary_format_prefix): Remove macro.
621 (local_binary_format_specifier): Remove macro.
622 (local_binary_format_suffix): Remove macro.
623 (local_octal_format): Remove macro.
624 (local_octal_format_prefix): Remove macro.
625 (local_octal_format_specifier): Remove macro.
626 (local_octal_format_suffix): Remove macro.
627 (local_decimal_format): Remove macro.
628 (local_decimal_format_prefix): Remove macro.
629 (local_decimal_format_specifier): Remove macro.
630 (local_decimal_format_suffix): Remove macro.
631 (local_hex_format): Remove macro.
632 (local_hex_format_prefix): Remove macro.
633 (local_hex_format_specifier): Remove macro.
634 (local_hex_format_suffix): Remove macro.
635 (local_decimal_format_custom): Remove.
636 (local_octal_format_custom): Remove.
637 (local_hex_format_custom): Remove.
638 (local_hex_string): Rename to hex_string and move to defs.h.
639 (local_hex_string_custom): Rename to hex_string_custom, change
640 interface, and move to defs.h.
641 * utils.c: (int_string): New function.
642 (hex_string): New function (from language.c).
643 (hex_string_custom): New function (from language.c).
644 (octal2str): New function.
645 (decimal2str): Add width parameter.
646 (paddr_u): Use new decimal2str interface.
647 (paddr_d): Ditto.
648 * defs.h (hex_string): Declare.
649 (hex_string_custom): Declare.
650 (int_string): Declare.
651 * printcmd.c (print_scalar_formatted): Remove localized binary
652 formatting.
653 * valprint.c (print_longest): Use int_string.
654 (print_floating): Use C hex format.
655 (print_hex_chars): Ditto.
656 (print_binary_chars): Remove language-specific formatting.
657 (print_octal_chars): Use C octal format.
658 (print_decimal_chars): Delocalize format.
659 (print_decimal): Remove.
660 * ada-lang.c (ada_language_defn): Remove language-specific number
661 formatting entries.
662 * p-lang.c (pascal_language_defn): Ditto.
663 * c-lang.c (c_language_defn): Ditto.
664 (cplus_language_defn): Ditto.
665 (asm_language_defn): Ditto.
666 (minimal_language_defn): Ditto.
667 * f-lang.c (f_language_defn): Ditto.
668 * jv-lang.c (java_language_defn): Ditto.
669 * m2-lang.c (m2_language_defn): Ditto.
670 * scm-lang.c (scm_language_defn): Ditto.
671 * objc-lang.c (objc_language_defn): Ditto.
672 * memattr.c (mem_info_command): Use renamed hex_string_custom with
673 new interface.
674 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
675 * ui-out.c (ui_out_field_core_addr): Ditto.
676 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
677 * exec.c (print_section_info): Ditto.
678 * i387-tdep.c (print_i387_status_word): Ditto.
679 (print_i387_control_word): Ditto.
680 (i387_print_float_info): Ditto.
681 * maint.c (maint_print_section_info): Ditto.
682 * solib.c (info_sharedlibrary_command): Ditto.
683 * somsolib.c (som_sharedlibrary_info_command): Ditto.
684 * symtab.c (print_msymbol_info): Ditto.
685 * tracepoint.c (tracepoints_info): Ditto.
686 * solib-frv.c (lm_base): Ditto.
687 (frv_current_sos): Ditto.
688 (enable_break2): Ditto.
689 (enable_break): Ditto.
690 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
691 (process_one_symbol): Ditto.
692 * infcmd.c (program_info): Ditto.
693 * mdebugread.c (parse_partial_symbols): Ditto.
694 * symfile.c (add_symbol_file_command): Ditto.
695 * cli/cli-cmds.c (edit_command): Ditto.
696 (list_command): Ditto.
697 * infcall.c (call_function_by_hand): Ditto.
698 * remote-vx.c (vx_run_files_info): Ditto.
699 (vx_wait): Ditto.
700 (vx_attach): Ditto.
701 (vx_detach): Ditto.
702 (vx_kill): Ditto.
703 * aix-thread.c (pdc_symbol_addrs): Ditto.
704 (pdc_read_regs): Ditto.
705 (pdc_write_regs): Ditto.
706 (pdc_read_data): Ditto.
707 (pdc_write_data): Ditto.
708 * d10v-tdep.c (display_trace): Ditto.
709 * rs6000-nat.c (find_toc_address): Ditto.
710 * aix-thread.c: Don't include language.h.
711 * buildsym.c: Ditto.
712 * dbxread.c: Ditto.
713 * mdebugread.c: Ditto.
714 * rs6000-nat.c: Ditto.
715 * buildsym.c (make_blockvector): Use renamed hex_string.
716
717 2004-09-10 Jason Molenda (jmolenda@apple.com)
718
719 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
720 chars after 'if' or 'while' commands in user-defined commands.
721
722 2004-09-08 Jim Blandy <jimb@redhat.com>
723
724 Fix bug reported and analyzed by Olivier Crete:
725 * symfile.c (copy_section_addr_info): New function.
726 (symbol_file_add_with_addrs_or_offsets): Use it to save the
727 original set of address arguments, instead of handwritten code
728 that uses one length to allocate and a different length to
729 initialize. Use make_cleanup_free_section_addr_info.
730 * symfile.h (copy_section_addr_info): New declaration.
731 * utils.c: #include "symfile.h".
732 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
733 New functions.
734 * defs.h (make_cleanup_free_section_addr_info): New declaration.
735 * Makefile.in (utils.o): Update dependencies.
736
737 2004-09-08 Andrew Cagney <cagney@gnu.org>
738
739 * thread-db.c (keep_thread_db): Delete.
740 (thread_db_new_objfile, thread_db_create_inferior)
741 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
742
743 2004-09-08 Mark Kettenis <kettenis@gnu.org>
744
745 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
746 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
747 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
748 (i386_frameless_signal_p): Remove prototype.
749 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
750 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
751 I386_SSE_NUM_REGS.
752 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
753 instead of FP0_REGNUM.
754 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
755 of FP0_REGNUM and FPC_REGNUM.
756
757 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
758 (sunos_solib_create_inferior_hook): Don't call
759 sunos_relocate_main_executable.
760
761 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
762 solib_svr4_fetch_link_map_offsets to
763 svr4_ilp32_fetch_link_map_offsets.
764 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
765 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
766 svr4_ilp32_fetch_link_map_offsets.
767 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
768
769 2004-09-07 Jim Blandy <jimb@redhat.com>
770
771 * frame.h (frame_register): Doc fix.
772
773 2004-09-07 Andrew Cagney <cagney@gnu.org>
774
775 * vx-share/wait.h: Delete #ifdef USG.
776 * utils.c (request_quit): Ditto.
777 * tui/tui.c (tui_reset): Ditto.
778 * remote.c: Ditto.
779 * remote-sds.c: Ditto.
780 * remote-rdi.c: Ditto.
781 * mdebugread.c: Ditto.
782 * m68klinux-nat.c: Ditto.
783 * infttrace.c: Ditto.
784 * infptrace.c: Ditto.
785 * i386v-nat.c: Ditto.
786 * exec.c: Ditto.
787 * dbxread.c: Ditto.
788 * core-aout.c: Ditto.
789
790 2004-09-05 Joel Brobecker <brobecker@gnat.com>
791
792 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
793 heuristic_proc_desc.
794 (mips_insn32_frame_cache): Likewise.
795
796 2004-09-04 Joel Brobecker <brobecker@gnat.com>
797
798 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
799 left behind by error.
800
801 2004-09-04 Joel Brobecker <brobecker@gnat.com>
802
803 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
804 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
805
806 2004-09-04 Joel Brobecker <brobecker@gnat.com>
807
808 * config/rs6000/xm-aix4.h: Remove this file.
809 * config/rs6000/aix4.mh (XM_FILE): Delete.
810
811 2004-09-04 Joel Brobecker <brobecker@gnat.com>
812
813 * config/rs6000/xm-rs6000.h: Remove this file.
814 * config/rs6000/rs6000.mh (XM_FILE): Remove.
815
816 2004-09-03 Andrew Cagney <cagney@gnu.org>
817
818 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
819 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
820 only use.
821
822 * mips-tdep.c (temp_saved_regs): Delete.
823 (set_reg_offset): Replace saved_regs parameter with this_cache.
824 (heuristic_proc_desc, mips16_heuristic_proc_desc)
825 (mips32_heuristic_proc_desc): Add this_cache parameter.
826 (mips_insn32_frame_cache, mips_insn16_frame_cache)
827 (after_prologue): Pass a NULL this_cache.
828
829 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
830 non-kernel trap prologues.
831
832 * mips-tdep.c (find_proc_desc): Delete function.
833 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
834 simplify.
835 (mips_insn16_frame_cache): Replace find_proc_desc with code from
836 mips_insn32_frame_cache.
837
838 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
839 Simplify as NEXT_FRAME is NULL.
840 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
841
842 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
843 local variable.
844 (mips_skip_prologue): Update.
845
846 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
847 "cur_frame" parameter.
848 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
849 (mips_insn32_frame_cache, find_proc_desc): Update
850
851 * config/vax/nm-obsd.h: Delete file.
852 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
853 * config/vax/nm-nbsd.h: Delete file.
854 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
855 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
856 * config/sh/nm-nbsd.h: Delete file.
857 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
858 * config/rs6000/nm-rs6000ly.h: Delete file.
859 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
860 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
861 * config/powerpc/nm-obsd.h: Delete file.
862 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
863 * config/powerpc/nm-nbsd.h: Delete file.
864 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
865 * config/pa/nm-obsd.h: Delete file.
866 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
867 * config/mips/nm-nbsd.h: Delete file.
868 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
869 * config/m88k/nm-obsd.h: Delete file.
870 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
871 * config/m68k/nm-nbsd.h: Delete file.
872 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
873 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
874 * config/i386/nm-nbsd.h: Delete file.
875 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
876 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
877 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
878 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
879 * config/i386/nm-i386lynx.h: Delete file.
880 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
881 * config/arm/nm-nbsd.h: Delete file.
882 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
883 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
884
885 * config/i386/tm-fbsd.h: Delete file.
886 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
887 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
888
889 * config/rs6000/tm-rs6000-aix4.h: Delete file.
890 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
891 * config/rs6000/aix4.mt (TM_FILE): Set to
892 config/rs6000/tm-rs6000.h.
893 * config/powerpc/tm-ppc-aix.h: Delete file.
894 * config/powerpc/aix.mt (TM_FILE): Set to
895 config/rs6000/tm-rs6000.h.
896 * config/m68k/tm-linux.h: Delete file.
897 * config/m68k/linux.mt (TM_FILE): Set to solib.h
898 * config/i386/tm-linux64.h: Delete file.
899 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
900 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
901
902 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
903 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
904 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
905 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
906 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
907 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
908 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
909 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
910 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
911
912 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
913 gdb_host_cpu.
914
915 2004-09-02 Joel Brobecker <brobecker@gnat.com>
916
917 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
918 Minor reformatting. Some code factoring.
919
920 2004-09-02 Andrew Cagney <cagney@gnu.org>
921
922 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
923 * config/vax/tm-nbsd.h: Delete file.
924 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
925 * config/sparc/tm-vxworks.h: Delete file.
926 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
927 * config/sparc/tm-nbsd.h: Delete file.
928 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
929 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
930 * config/sparc/tm-linux.h: Delete file.
931 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
932 * config/s390/tm-linux.h: Delete file.
933 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
934 * config/pa/tm-bsd.h: Delete file.
935 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
936 * config/m68k/tm-obsd.h: Delete file.
937 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
938 * config/m68k/tm-nbsd.h: Delete file.
939 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
940 * config/i386/tm-vxworks.h: Delete file.
941 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
942 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
943 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
944 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
945 * config/i386/tm-nbsd.h: Delete file.
946 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
947 * config/i386/tm-i386lynx.h: Delete file.
948 * config/cris/cris.mt (TM_FILE): Set to solib.h.
949 * config/cris/tm-cris.h: Delete file.
950
951 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
952 * configure: Re-generate.
953 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
954 * config/arm/tm-nbsd.h: Delete file.
955
956 * config/powerpc/tm-ppcle-sim.h: Delete.
957 * config/powerpc/tm-ppcle-eabi.h: Delete.
958 * config/powerpc/tm-nbsd.h: Delete.
959 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
960 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
961 tm-ppcle-eabi.h.
962
963 * config/i386/nto.mh (NAT_FILE): Delete.
964 * config/i386/nm-nto.h: Delete.
965
966 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
967 * config/m68k/tm-os68k.h: Ditto.
968 * config/m68k/tm-monitor.h: Ditto.
969 * config/m68k/tm-cisco.h: Ditto.
970 * config/m68k/st2000.mt (TM_FILE): Delete.
971 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
972 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
973 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
974 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
975
976 * config/m68k/tm-st2000.h: Delete.
977 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
978 * config/sparc/fbsd.mt (TM_FILE): Delete.
979 * config/sparc/tm-fbsd.h: Delete.
980
981 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
982 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
983 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
984
985 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
986 GDB_TM_FILE and GDB_XM_FILE.
987 * gdbarch.c: Re-generate.
988 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
989 quotes in macro definition.
990 * configure.in: Re-generate.
991
992 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
993 validating architecture methods.
994 * gdbarch.c: Re-generate.
995
996 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
997 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
998 GDB_MULTI_ARCH_PARTIAL.
999 * gdbarch.h: Re-generate.
1000
1001 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1002 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1003 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1004 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1005 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1006 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1007 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1008 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1009 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1010 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1011 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1012 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1013
1014 2004-09-01 Andrew Cagney <cagney@gnu.org>
1015
1016 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1017 and main_func_highpc.
1018 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1019 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1020 * nlmread.c (nlm_symfile_read): Update.
1021
1022 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1023
1024 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1025 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1026 (find_proc_desc): Remove dead code.
1027
1028 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1029
1030 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1031
1032 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1033
1034 * observer.sh: Add struct so_list declaration.
1035 * Makefile.in: Add dependencies on observer.h for solib.c and
1036 breakpoint.c.
1037 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1038 function.
1039 (_initialize_breakpoint): Register
1040 disable_breakpoints_in_unloaded_shlib as an observer of the
1041 "solib unloaded" observation event.
1042 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1043 call decode_line_1 so unfound breakpoint errors are silent.
1044 * solib.c (update_solib_list): When a solib is discovered to have
1045 been unloaded by the program, notify all observers of the
1046 "solib unloaded" observation event.
1047
1048 2004-09-01 Andrew Cagney <cagney@gnu.org>
1049
1050 * frame.c: Include "objfiles.h".
1051 (inside_main_func): New function.
1052 (get_prev_frame): Use new inside_main_func.
1053 * Makefile.in (frame.o): Update dependencies.
1054 * defs.h (inside_main_func): Delete declaration.
1055 * blockframe.c (inside_main_func): Delete function.
1056
1057 2004-08-31 Jim Blandy <jimb@redhat.com>
1058
1059 * dwarf2read.c (is_vtable_name): New function, based on logic from
1060 read_structure_type, but passing the correct length to strncmp,
1061 and using 'sizeof' instead of 'strlen'.
1062 (read_structure_type): Call it.
1063
1064 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1065
1066 * config/powerpc/aix.mh: Add comment.
1067
1068 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1069
1070 * MAINTAINERS: Add self to Write-After-Approval.
1071
1072 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1073
1074 * MAINTAINERS: Add self to Write-After-Approval.
1075
1076 2004-08-30 Andrew Cagney <cagney@gnu.org>
1077
1078 Fix PR breakpoints/1757.
1079 * infrun.c (struct execution_control_state): Replace
1080 remove_breakpoints_on_following_step with
1081 step_after_step_resume_breakpoint.
1082 (init_execution_control_state): Update.
1083 (handle_inferior_event): For signals, when stepping off a
1084 breakpoint, set step_after_step_resume_breakpoint. When
1085 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1086 (keep_going): Delete code handling
1087 remove_breakpoints_on_following_step.
1088
1089 2004-08-29 David Lecomber <david@streamline-computing.com>
1090
1091 Fix PR gdb/648
1092 * language.h (enum array_ordering): New enum.
1093 * language.h (struct language_defn): New la_array_ordering
1094 attribute.
1095 * language.c (unknown_language_defn, auto_language_defn)
1096 (local_language_defn): Ditto.
1097 * ada-lang.c (ada_language_defn): Ditto.
1098 * c-lang.c (c_language_defn, cplus_language_defn)
1099 (asm_language_defn, minimal_language_defn): Ditto.
1100 * f-lang.c (f_language_defn): Ditto.
1101 * jv-lang.c (java_language_defn): Ditto.
1102 * m2-lang.c (f_language_defn): Ditto.
1103 * objc-lang.c (objc_language_defn): Ditto.
1104 * p-lang.c (pascal_language_defn): Ditto.
1105 * scm-lang.c (scm_language_defn): Ditto.
1106 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1107 oriented large to small in type structure.
1108 * dwarf2read.c (read_array_order): New function.
1109 (read_array_type): Use read_array_order to check row/column
1110 major ordering.
1111
1112 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1113
1114 * target.c (target_resize_to_sections): Check
1115 current_target.to_sections for an old value when updating.
1116
1117 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1118
1119 * procfs.c (dbx_link_bpt_addr): New static global variable.
1120 (dbx_link_shadow_contents): New static global variable.
1121 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1122 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1123 if we just hit it.
1124 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1125 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1126 from run to run.
1127 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1128 after the inferior has been forked.
1129 (remove_dbx_link_breakpoint): New function.
1130 (dbx_link_addr): New function.
1131 (insert_dbx_link_bpt_in_file): New function.
1132 (insert_dbx_link_bpt_in_region): New function.
1133 (insert_dbx_link_breakpoint): New function.
1134 (proc_trace_syscalls_1): New function, extracted from
1135 proc_trace_syscalls.
1136 (proc_trace_syscalls): Replace extract code by call to
1137 proc_trace_syscalls_1.
1138 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1139 is no longer valid.
1140
1141 2004-08-25 Jim Blandy <jimb@redhat.com>
1142
1143 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1144
1145 2004-08-25 Andrew Cagney <cagney@gnu.org>
1146
1147 * infrun.c (struct execution_control_state): Delete field
1148 "stepping_through_sigtramp".
1149 (init_execution_control_state): Do not set same.
1150 (context_switch): Do not pass same to save_infrun_state and
1151 load_infrun_state.
1152 * gdbthread.h (struct thread_info): Delete field
1153 stepping_through_sigtramp.
1154 (save_infrun_state, load_infrun_state): Delete parameter
1155 stepping_through_sigtramp.
1156 * thread.c (load_infrun_state, save_infrun_state): Update.
1157
1158 * infrun.c: Re-indent. Move expression operators to the beginning
1159 of the line. Remove long disabled #if 0 code.
1160
1161 2004-08-24 Andrew Cagney <cagney@gnu.org>
1162
1163 * doublest.h (floatformat_ieee_quad): Rename
1164 floatformat_ia64_quad.
1165 * doublest.c (floatformat_ieee_quad): Rename
1166 floatformat_ia64_quad.
1167 (_initialize_doublest): Update.
1168
1169 2004-08-24 Jim Blandy <jimb@redhat.com>
1170
1171 * dwarf2expr.h (struct dwarf_expr_context): New members
1172 'num_pieces' and 'pieces', for returning the result of an
1173 expression that uses DW_OP_piece.
1174 (struct dwarf_expr_piece): New struct type.
1175 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1176 pieces.
1177 (free_dwarf_expr_context): Free pieces, if any.
1178 (add_piece): New function.
1179 (execute_stack_op): Implement DW_OP_piece.
1180 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1181 expression is a list of pieces, print an error message.
1182 (dwarf2_loc_desc_needs_frame): If the expression yields
1183 pieces, and any piece is in a register, then we need a frame.
1184
1185 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1186 the stack until we've decided what sort of result the evaluation
1187 has produced. Use separate variables, with more specific names.
1188
1189 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1190
1191 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1192 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1193 (arm_netbsd_init_abi_common): Register them.
1194
1195 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1196
1197 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1198
1199 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1200 safe_frame_unwind_memory instead of target_read_memory.
1201
1202 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1203 Reorder includes.
1204 (fetch_register, store_register): Remove prototypes.
1205 (child_resume): Reorganize code and comments such that it is
1206 grouped a bit more logically.
1207 (attach): Explicitly compare errno against 0.
1208 (detach): Likewise. Use perror_with_name instead of
1209 print_sys_errmsg.
1210 * Makefile.in (infptrace.o): Update dependencies.
1211
1212 * ia64-linux-nat.c: Update copyright year.
1213 (fetch_debug_register, store_debug_register)
1214 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1215 PTRACE_TYPE_ARG3.
1216 * config/ia64/nm-linux.h: Update copyright year.
1217 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1218
1219 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1220 from CORE_ADDR to struct frame_info *. Use
1221 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1222 (amd64_linux_sigtramp_p): Adjust for changed signature of
1223 and64_linux_sigtramp_start
1224
1225 * gdb_ptrace.h: GNU/Linux.
1226
1227 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1228 Remove defines.
1229
1230 * infptrace.c: Include "gdb_assert.h".
1231 (PTRACE_XFER_TYPE): Remove define.
1232 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1233 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1234 Tweak comment.
1235 (fetch_inferior_registers, store_inferior_registers): Remove
1236 redundant culry braces. Tweak comment. s/regno/regnum.
1237 * Makefile.in (infptrace.o): Update dependencies.
1238
1239 * configure.in: Change test for return type of ptrace to default
1240 to `long' instead of `int'.
1241 * configure: Regenerate.
1242
1243 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1244
1245 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1246
1247 * configure.in: Check for ttrace function.
1248 * configure, config.in: Regenerate.
1249
1250 * gdb_ptrace.h: New file.
1251 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1252 <sys/ptrace.h>.
1253 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1254 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1255 (attach): Don't define PT_ATTACH.
1256 (detach): Don't define PT_DETACH.
1257 * Makefile.in (gdb_ptrace_h): New variable.
1258 (infptrace.o): Update dependencies.
1259
1260 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1261
1262 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1263 instead of `int' if not already defined.
1264 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1265 PTRACE_TYPE_ARG3.
1266 * infptrace.c (call_ptrace): Revert change that replaced
1267 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1268
1269 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1270
1271 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1272 Remove defines.
1273
1274 * linux-nat.c (kill_inferior): Add missing third and fourth
1275 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1276
1277 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1278 PTRACE_TYPE_RET.
1279
1280 * proc-why.c (proc_prettyfprint_why): Fix format string.
1281
1282 * solib-osf.c (osf_current_sos): Remove unsused label.
1283
1284 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1285 curses headers.
1286 * configure, config.in: Regenerate.
1287 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1288 <ncurses/ncurses.h>.
1289
1290 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1291 * config/nm-nbsd.h: Update copyright year.
1292 (PTRACE_ARG3_TYPE): Remove define.
1293
1294 * sparc-nat.c (fetch_inferior_registers)
1295 (store_inferior_registers, sparc_xfer_wcookie):
1296 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1297
1298 * alphabsd-nat.c (fetch_inferior_registers):
1299 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1300 PTRACE_TYPE_ARG3.
1301 * amd64bsd-nat.c (fetch_inferior_registers)
1302 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1303 PTRACE_TYPE_ARG3.
1304 * armnbsd-nat.c: Update copyright year.
1305 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1306 (store_register, store_regs, store_fp_register, store_fp_regs):
1307 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1308 * hppabsd-nat.c (fetch_inferior_registers)
1309 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1310 PTRACE_TYPE_ARG3.
1311 * i386bsd-nat.c (fetch_inferior_registers)
1312 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1313 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1314 * m68kbsd-nat.c (fetch_inferior_registers)
1315 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1316 PTRACE_TYPE_ARG3.
1317 * m88kbsd-nat.c (fetch_inferior_registers)
1318 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1319 PTRACE_TYPE_ARG3.
1320 * mipsnbsd-nat.c: Update copyright year.
1321 (fetch_inferior_registers, store_inferior_registers):
1322 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1323 * ns32knbsd-nat.c: Update copyright year.
1324 (fetch_inferior_registers, store_inferior_registers):
1325 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1326 * ppcnbsd-nat.c (fetch_inferior_registers):
1327 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1328 PTRACE_TYPE_ARG3.
1329 * ppcobsd-nat.c (fetch_inferior_registers):
1330 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1331 PTRACE_TYPE_ARG3.
1332 * shnbsd-nat.c: Update copyright year.
1333 (fetch_inferior_registers, store_inferior_registers):
1334 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1335 * vaxbsd-nat.c (fetch_inferior_registers)
1336 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1337 PTRACE_TYPE_ARG3.
1338
1339 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1340 PTRACE_TYPE_ARG3.
1341 * infptrace.c (call_ptrace, child_resume, attach, detach)
1342 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1343 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1344 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1345 PTRACE_TYPE_ARG3.
1346
1347 2004-08-14 Mark Kettenis <kettenis@gnu.org>
1348
1349 * defs.h: Remove out-of-date comment.
1350 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1351 [!GETENV_PROVIDED] (getenv): Remove prototype.
1352
1353 * standalone.c: Remove file.
1354 * Makefile.in (standalone.o): Remove dependency.
1355
1356 * i386-linux-nat.c (dummy_sse_values): Remove function and
1357 prototype.
1358 (i386_linux_dr_get): Fix typo in comment.
1359 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1360
1361 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1362
1363 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1364 from declaration.
1365 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1366 from definition.
1367
1368 2004-08-13 Mark Kettenis <kettenis@gnu.org>
1369
1370 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1371 parenthesis in definition.
1372 * configure: Regenerated.
1373
1374 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1375
1376 * PROBLEMS: Mention build/1411.
1377
1378 2004-08-09 Robert Millan <robertmh@gnu.org>
1379
1380 Committed by Nathanael Nerode.
1381 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1382 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1383
1384 2004-08-12 Andrew Cagney <cagney@gnu.org>
1385
1386 * NEWS: Mention fixes in GDB 6.2.1.
1387 * PROBLEMS: Remove mention of mips-irix.
1388
1389 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1390
1391 * config/powerpc/xm-aix.h: Delete.
1392 * config/powerpc/aix.mh (MH_FILE): Remove.
1393 * config/powerpc/aix432.mh (MH_FILE): Remove.
1394
1395 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1396
1397 * config/powerpc/aix.mh: Remove obsolete comment.
1398 * config/powerpc/aix432.mh: Likewise.
1399
1400 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1401
1402 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1403
1404 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1405
1406 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1407 this file is now empty.
1408 * config/xm-aix4.h: Remove, this file is no longer included
1409 anywhere.
1410
1411 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1412
1413 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1414 that file is now empty.
1415 (termdef): Remove prototype, function no longer used.
1416
1417 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1418
1419 * doc/gdbint.texinfo (Host Definition): Remove documentation
1420 for USE_O_NOCTTY, no longer used.
1421 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1422 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1423
1424 2004-08-11 Joel Brobecker <brobecker@gnat.com>
1425
1426 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1427 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1428 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1429
1430 2004-08-11 Mark Kettenis <kettenis@gnu.org>
1431
1432 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1433 instead of FIVE_ARG_PTRACE.
1434
1435 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1436 (new_tty): Use O_NOCTTY unconditionally.
1437
1438 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1439
1440 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1441 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1442 fflush on stdout.
1443
1444 2004-08-10 Joel Brobecker <brobecker@gnat.com>
1445
1446 * xcoff_symfile_finish: Replace last call to xmfree by call
1447 to xfree.
1448
1449 2004-08-10 Andrew Cagney <cagney@gnu.org>
1450
1451 * main.c (captured_main): Delete call to init_malloc.
1452 * defs.h (init_malloc): Delete declaration.
1453 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1454 (init_malloc): Delete functions.
1455
1456 * defs.h (xmfree): Delete.
1457 * utils.c (xmfree): Delete function.
1458 (xfree): Inline calls to xmfree and mfree.
1459 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1460 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1461 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1462 * somread.c (som_symfile_finish): Ditto.
1463 * objfiles.c (allocate_objfile, free_objfile):
1464 * nlmread.c (nlm_symfile_finish): Ditto.
1465 * hpread.c (hpread_symfile_finish): Ditto.
1466 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1467 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1468 * coffread.c (coff_symfile_finish): Ditto.
1469
1470 * defs.h (xmcalloc): Delete declaration.
1471 * utils.c (xmcalloc): Delete.
1472 (xcalloc): Inline calls to xmcalloc and mcalloc.
1473 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1474 xcalloc and xfree.
1475 * symtab.c (create_demangled_names_hash): Ditto.
1476
1477 * defs.h (xmrealloc): Delete.
1478 * utils.c (xmrealloc): Delete.
1479 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1480 * symmisc.c (extend_psymbol_list): Use xrealloc.
1481 * source.c (find_source_lines): Ditto.
1482 * hpread.c (hpread_lookup_type): Ditto.
1483 * dbxread.c (add_bincl_to_list): Ditto.
1484
1485 * utils.c (xmmalloc): Delete.
1486 (xmalloc): Inline xmmalloc and mmalloc calls.
1487 (msavestring): Use xmalloc.
1488 * defs.h (xmmalloc): Delete declaration.
1489 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1490 xmmalloc.
1491 * symmisc.c (extend_psymbol_list): Ditto.
1492 * symfile.c (init_psymbol_list): Ditto.
1493 * source.c (find_source_lines): Ditto.
1494 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1495 * elfread.c (elf_symtab_read): Ditto.
1496 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1497 * coffread.c (coff_symfile_init): Ditto.
1498
1499 2004-08-10 David Carlton <carlton@bactrian.org>
1500
1501 * MAINTAINERS: Remove David Carlton from c++ testsuite
1502 maintainers.
1503
1504 2004-08-10 Jerome Guitton <guitton@gnat.com>
1505
1506 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1507 print a line feed before the prompt.
1508
1509 2004-08-10 Mark Kettenis <kettenis@gnu.org>
1510
1511 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1512
1513 2004-08-09 Joel Brobecker <brobecker@gnat.com>
1514
1515 General cleanup of the AIX xm include file:
1516 * config/xm-aix4.h (fd_set): Remove undefine.
1517 Remove include of <sys/select.h>.
1518 (HAVE_TERMIO): Remove define.
1519 (USG): Likewise.
1520 (NULL): Remove redefine.
1521 (alloca): Remove #pragma.
1522 (vfork): Remove define.
1523 (termdef): Remove.
1524 (SIGWINCH_HANDLER): Remove.
1525 (SIGWINCH_HANDLER_BODY): Remove.
1526
1527 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1528
1529 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1530 GDB_OSABI_OPENBSD_ELF.
1531
1532 2004-08-07 Robert Millan <robertmh@gnu.org>
1533
1534 * bsd-kvm.c: Check for nlist.h before including it.
1535
1536 2004-08-09 Mark Kettenis <kettenis@gnu.org>
1537
1538 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1539 sigcontext' offset consistency checks for ancient BSD.
1540
1541 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1542
1543 * configure.in: Check for <sys/types.h>. Check return and
1544 argument types of ptrace.
1545 * configure, config.in: Regenerate.
1546
1547 2004-08-09 Jim Blandy <jimb@redhat.com>
1548
1549 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1550 rs6000_register_sim_regno): Doc fixes.
1551
1552 2004-08-08 Joel Brobecker <brobecker@gnat.com>
1553
1554 * mips-tdep.c: Include "floatformat.h".
1555 (n32n64_floatformat_always_valid): New function.
1556 (floatformat_n32n64_long_double_big): New constant.
1557 (mips_gdbarch_init): Set size and format of long double
1558 for N32 and N64 ABIs.
1559 * Makefile.in (mips-tdep.o): Update dependencies.
1560
1561 2004-08-08 Andrew Cagney <cagney@gnu.org>
1562
1563 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1564 print. Improve script's error messages.
1565 * gdbarch.h: Re-generate.
1566
1567 * gdbarch.sh (pformat): New function.
1568 (float_format, double_format, long_double_format): List with bit
1569 members. Use pformat when printing.
1570 * gdbarch.c, gdbarch.h: Re-generate.
1571
1572 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1573
1574 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1575 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1576 (ppcnbsd_supply_pcb): New function.
1577 (_initialize_ppcnbsd_nat): New prototype and function.
1578 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1579 (LOADLIBES): New variable.
1580 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1581
1582 2004-08-08 Andrew Cagney <cagney@gnu.org>
1583
1584 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1585 (builtin_type_ieee_double, builtin_type_ia64_quad)
1586 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1587 BE/LE floating-point types.
1588 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1589 (builtin_type_ieee_double, builtin_type_ia64_quad)
1590 (builtin_type_ia64_spill): Declare.
1591 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1592 (floatformat_ieee_double, floatformat_arm_ext)
1593 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1594 of LE/BE floatformats.
1595 * doublest.h: (struct floatformat, floatformat_ieee_single)
1596 (floatformat_ieee_double, floatformat_arm_ext)
1597 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1598
1599 2004-08-08 Mark Kettenis <kettenis@gnu.org>
1600
1601 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1602
1603 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1604 instead of regcache_raw_supply when storing the registers.
1605
1606 * i386gnu-nat.c: Update copyright year.
1607 (gnu_store_registers): Don't use deprecated_registers and
1608 deprecated_registers_valid. Use regcache_valid_p and
1609 regcache_raw_supply instead.
1610
1611 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1612 frame_pc_unwind.
1613
1614 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1615 variables. Incapitalized "process".
1616
1617 * configure.in: Add cursesX to the list of possible curses libs.
1618 Add cursesX.h to the list of possible curses headers.
1619 * configure, config.in: Regenerate.
1620
1621 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1622
1623 * configure.in: Test for struct lwp in <sys/lwp.h>.
1624 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1625 the offset of l_addr in struct lwp.
1626
1627 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1628
1629 * bsd-kvm.c: Include "gdbcore.h"
1630 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1631
1632 2004-08-07 Andrew Cagney <cagney@gnu.org>
1633
1634 * gdbtypes.c (build_flt, build_complex): New functions.
1635 (gdbtypes_post_init): Use.
1636
1637 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1638
1639 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1640 through to builtin_type_uint128.
1641
1642 * c-exp.y: Use builtin_type function to obtain builtin types.
1643
1644 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1645 builtin_uint128.
1646 * gdbtypes.c (gdbtypes_post_init): Update.
1647 (build_gdbtypes): Move initialization of builtin_type_int0
1648 through to builtin_type_uint128 from here ...
1649 (_initialize_gdbtypes): ... to here.
1650 * d10v-tdep.c (d10v_register_type): Update.
1651
1652 * doublest.c: Update copyright.
1653 (floatformat_from_length): Call error when floatformat is NULL.
1654 (extract_floating_by_length): Remove NULL fmt check.
1655 (store_floating_by_length): Ditto.
1656
1657 2004-08-07 Andrew Cagney <cagney@gnu.org>
1658
1659 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1660 that the register is valid.
1661
1662 2004-08-05 Mark Kettenis <kettenis@chello.nl>
1663
1664 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1665 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1666 struct frame_info *. Use safe_frame_unwind_memory instead of
1667 deprecated_read_memory_nobpt.
1668 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1669 changed signature of i386_linux_sigtramp_start and
1670 i386_linux_rt_sigtramp_start.
1671
1672 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1673 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1674 instead of deprecated_read_memory_nobpt.
1675 (i386nbsd_sigtramp_p): Adjust for changed signature of
1676 i386nbsd_sigtramp_offset.
1677
1678 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1679 safe_frame_unwind_memory instead of target_read_memory.
1680
1681 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1682 !NO_SYS_FILE.
1683 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1684 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1685 (_initialize_kernel_u_addr): Remove prototype and function.
1686 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1687 !NO_SYS_FILE.
1688 * xcoffread.c: Likewise.
1689
1690 2004-08-06 Mark Kettenis <kettenis@gnu.org>
1691
1692 * vax-nat.c: New file.
1693 * vaxbsd-nat.c: Tweak comment.
1694 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1695 vaxnbsd-tdep.c.
1696 (vax-nat.o): New dependency.
1697 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1698 (vax-*-ultrix2*): Remove.
1699 * config/vax/vax.mh: New file.
1700 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1701 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1702 (vax_register_u_addr): New prototype.
1703 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1704 * config/vax/vaxult2.mh: Remove file.
1705 * config/vax/vaxult.mh: Remove file.
1706 * config/vax/vaxbsd.mh: Remove file.
1707 * config/vax/vax.mt (TM_FILE): Remove.
1708 * config/vax/tm-vaxbsd.h: Remove file.
1709
1710 2004-08-06 Joel Brobecker <brobecker@gnat.com>
1711
1712 * aix-thread.c (get_signaled_thread): New function.
1713 (iter_trap): Delete, no longer used.
1714 (iter_tid): New function.
1715 (pd_update): Find the thread that received the SIGTRAP signal
1716 by first locating the kernel thread, and then finding its
1717 associated thread.
1718
1719 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1720
1721 * lin-lwp.c (child_wait): Continue inferior after processing
1722 PTRACE_EVENT_CLONE event.
1723
1724 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1725
1726 * MAINTAINERS: Add self to Write-After-Approval.
1727
1728 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1729
1730 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1731 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1732
1733 2004-08-05 Andrew Cagney <cagney@gnu.org>
1734
1735 * config/xm-sysv4.h: Delete file.
1736 * config/mips/xm-irix5.h: Delete file.
1737 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1738 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1739 * config/ia64/xm-aix.h: Delete file.
1740 * config/ia64/aix.mh (XM_FILE): Delete.
1741 * config/pa/xm-hppah.h: Delete file.
1742 * config/pa/hpux11w.mh (XM_FILE): Delete.
1743 * config/pa/hpux11.mh (XM_FILE): Delete.
1744 * config/pa/hpux1020.mh (XM_FILE): Delete.
1745 * config/pa/hppahpux.mh (XM_FILE): Delete.
1746
1747 * config/alpha/xm-alphalinux.h: Delete file.
1748 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1749 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1750 * config/alpha/xm-alphaosf.h: Delete file.
1751 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1752 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1753 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1754 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1755
1756 * config/i386/xm-i386v.h: Delete file.
1757 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1758 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1759 * config/i386/xm-i386sco.h: Delete file.
1760 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1761 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1762 * config/i386/xm-i386v4.h: Delete file.
1763 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1764 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1765 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1766 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1767
1768 * config/vax/xm-vax.h: Delete file.
1769 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1770 * config/vax/xm-vaxult2.h: Delete file.
1771 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1772 * config/vax/vaxult2.mh (XM_FILE): Delete.
1773 * config/vax/xm-vaxult.h: Delete file.
1774 * config/vax/vaxult.mh (XM_FILE): Delete.
1775 * config/vax/xm-vaxbsd.h: Delete file.
1776 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1777
1778 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1779 * gdbarch.h, gdbarch.c: Re-generate.
1780 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1781 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1782 * frame.h: Delete deprecated_read_fp from comments.
1783 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1784 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1785
1786 2004-08-04 Mark Kettenis <kettenis@gnu.org>
1787
1788 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1789 trampoline in OpenBSD 3.5-current.
1790
1791 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1792 SSE registers.
1793
1794 * Makefile.in: Remove embedded page breaks.
1795
1796 2004-08-04 Jim Blandy <jimb@redhat.com>
1797
1798 * regcache.c (regcache_raw_read): Assert that, after calling
1799 target_fetch_registers, the register we're reading is cached.
1800
1801 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1802 a call to 'internal_error', with a more helpful error message.
1803 * rs6000-tdep.c (e500_pseudo_register_read,
1804 e500_pseudo_register_write, rs6000_store_return_value): Same.
1805
1806 2004-08-04 Andrew Cagney <cagney@gnu.org>
1807
1808 * Makefile.in: Update dependencies.
1809
1810 2004-08-04 Jim Blandy <jimb@redhat.com>
1811
1812 Change the layout of the PowerPC E500 raw register cache to allow
1813 the lower 32-bit halves of the GPRS to be their own raw registers,
1814 not pseudoregisters.
1815 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1816 add ppc_ev0_upper_regnum flag.
1817 * rs6000-tdep.c: #include "reggroups.h".
1818 (spe_register_p): Recognize the ev upper half registers as SPE
1819 registers.
1820 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1821 registers.
1822 (e500_move_ev_register): New function.
1823 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1824 vector registers are the pseudo-registers now, formed by splicing
1825 together the gprs and the upper-half registers.
1826 (e500_register_reggroup_p): New function.
1827 (P): Macro deleted.
1828 (P8, A4): New macro.
1829 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1830 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1831 macros.
1832 (registers_e500): Rearrange register set so that the raw register
1833 set contains 32-bit GPRs and upper-half registers, and the SPE
1834 vector registers become pseudo-registers.
1835 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1836 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1837 register numbers are now the same for the E500 as they are for
1838 other PowerPC variants. Register e500_register_reggroup_p as the
1839 register group function for the E500.
1840 * Makefile.in (rs6000-tdep.o): Update dependencies.
1841
1842 Adapt PPC E500 native support to the new raw regcache layout.
1843 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1844 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1845 (fetch_spe_register, store_spe_register): Handle fetching/storing
1846 all the SPE registers at once, if regno == -1. These now take
1847 over the job of fetch_spe_registers and store_spe_registers.
1848 (fetch_spe_registers, store_spe_registers): Deleted.
1849 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1850 unconditionally; they're always raw. Fetch/store SPE upper half
1851 registers, if present, instead of ev registers.
1852 (fetch_register, store_register): Remove sanity checks: gprs are
1853 never pseudo-registers now, so we never need to even mention any
1854 registers that are ever pseudoregisters.
1855
1856 Use a fixed register numbering when communicating with the PowerPC
1857 simulator.
1858 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1859 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1860 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1861 New functions.
1862 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1863 init_sim_regno_table.
1864 * Makefile.in (gdb_sim_ppc_h): New variable.
1865 (rs6000-tdep.o): Update dependencies.
1866
1867 2004-08-02 Andrew Cagney <cagney@gnu.org>
1868
1869 * cris-tdep.c (cris_register_size): Restore function, still used
1870 locally.
1871
1872 * gdbarch.sh (deprecated_target_read_fp)
1873 (deprecated_frame_locals_address, deprecated_frame_args_address)
1874 (deprecated_frame_chain_valid, deprecated_frame_chain)
1875 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1876 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1877 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1878 * gdbarch.h, gdbarch.c: Re-generate.
1879 * regcache.c (deprecated_read_fp): Do not call
1880 DEPRECATED_TARGET_READ_FP_P.
1881 * infcmd.c (default_print_registers_info): Do not call
1882 DEPRECATED_DO_REGISTERS_INFO.
1883 * frame-base.c (default_frame_locals_address): Do not call
1884 DEPRECATED_FRAME_LOCALS_ADDRESS.
1885 (default_frame_args_address): Do not call
1886 DEPRECATED_FRAME_ARGS_ADDRESS.
1887
1888 * gdbarch.sh (deprecated_register_raw_size)
1889 (deprecated_register_virtual_size:int): Delete.
1890 * gdbarch.h, gdbarch.c: Re-generate.
1891 * cris-tdep.c (cris_register_size): Delete.
1892 (cris_gdbarch_init): Update.
1893 * alpha-tdep.c (alpha_register_raw_size)
1894 (alpha_register_virtual_size): Delete.
1895 (alpha_gdbarch_init): Update.
1896
1897 * gdbarch.sh (deprecated_register_virtual_type)
1898 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1899 (deprecated_dummy_write_sp): Delete.
1900 * gdbarch.h, gdbarch.c: Re-generate.
1901
1902 * gdbarch.sh (deprecated_register_bytes): Delete.
1903 * gdbarch.h, gdbarch.c: Re-generate.
1904 * regcache.c (deprecated_register_bytes): New function.
1905 * regcache.h (deprecated_register_bytes): Declare.
1906 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1907 * v850-tdep.c (v850_gdbarch_init): Update.
1908 * sh64-tdep.c (sh64_gdbarch_init): Update.
1909 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1910 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1911 * mcore-tdep.c (mcore_gdbarch_init): Update.
1912 * cris-tdep.c (cris_gdbarch_init): Update.
1913 * arm-tdep.c (arm_gdbarch_init): Update.
1914 * remote.c (init_remote_state): Update.
1915 * remote-vx.c (vx_prepare_to_store): Update.
1916 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1917 * irix5-nat.c (fetch_core_registers): Update.
1918 * cris-tdep.c (cris_register_bytes_ok): Update.
1919 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1920
1921 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1922 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1923 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1924 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1925 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1926 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1927 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1928 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1929 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1930 with mips_insn16 and mips_insn32.
1931
1932 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1933 * rs6000-tdep.c (rs6000_push_dummy_call)
1934 (rs6000_extract_return_value): Use register_size.
1935 * xstormy16-tdep.c (xstormy16_get_saved_register)
1936 (xstormy16_extract_return_value): Ditto.
1937 * valops.c (value_assign): Ditto.
1938 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1939 * v850-tdep.c (v850_extract_return_value): Ditto.
1940 * tracepoint.c (collect_symbol): Ditto.
1941 * target.c (debug_print_register): Ditto.
1942 * stack.c (frame_info): Ditto.
1943 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1944 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1945 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1946 (store_register_using_P): Ditto.
1947 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1948 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1949 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1950 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1951 * regcache.c (deprecated_read_register_bytes)
1952 (deprecated_write_register_bytes, read_register)
1953 (write_register): Ditto.
1954 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1955 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1956 * monitor.c (monitor_supply_register, monitor_fetch_register)
1957 (monitor_store_register): Ditto.
1958 * mn10300-tdep.c (mn10300_pop_frame_regular)
1959 (mn10300_print_register): Ditto.
1960 * mipsv4-nat.c (fill_fpregset): Ditto.
1961 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1962 (mips64_fill_fpregset): Ditto.
1963 * mi/mi-main.c (register_changed_p, get_register)
1964 (mi_cmd_data_write_register_values): Ditto.
1965 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1966 * irix5-nat.c (fill_gregset, fetch_core_registers):
1967 * infrun.c (write_inferior_status_register): Ditto.
1968 * infptrace.c (fetch_register, store_register): Ditto.
1969 * infcmd.c (default_print_registers_info): Ditto.
1970 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1971 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1972 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1973 * hpux-thread.c (hpux_thread_fetch_registers)
1974 (hpux_thread_store_registers): Ditto.
1975 * hppah-nat.c (store_inferior_registers, fetch_register):
1976 * findvar.c (value_from_register): Ditto.
1977 * dve3900-rom.c (fetch_bitmapped_register):
1978 * cris-tdep.c (cris_gdbarch_init): Ditto.
1979 * alpha-tdep.h: Ditto.
1980 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1981
1982 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1983 DEPRECATED_REGISTER_RAW_SIZE from comments.
1984 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1985 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1986 DEPRECATED_REGISTER_RAW_SIZE.
1987 * findvar.c (value_of_register): Simplify by assuming that the
1988 registers raw and virtual sizes are identical.
1989 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1990 comment.
1991 * arch-utils.c (generic_register_size): Simplify by assuming
1992 register_type.
1993
1994 * regcache.c (legacy_read_register_gen, real_register)
1995 (legacy_write_register_gen): Delete, not used.
1996
1997 * regcache.c (struct regcache_descr): Delete legacy_p.
1998 (init_legacy_regcache_descr): Delete function.
1999 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2000 Do not use deprecated register functions.
2001 (regcache_raw_read, deprecated_write_register_gen):
2002 (deprecated_read_register_gen, regcache_raw_write): Delete code
2003 predicated on legacy_p.
2004 (register_size): Delete check against register raw size.
2005
2006 * cris-tdep.c (cris_register_type): Replace
2007 cris_register_virtual_type.
2008 (cris_gdbarch_init): Update, set register_type.
2009
2010 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2011 * gdbarch.h, gdbarch.c: Re-generate.
2012 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2013 (arm_gdbarch_init) Do not set frameless function invocation.
2014 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2015 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2016 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2017 (frv_gdbarch_init): Do not set frameless function invocation.
2018 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2019 * sh-tdep.c (sh_gdbarch_init): Ditto.
2020 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2021 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2022 * avr-tdep.c (avr_gdbarch_init): Ditto.
2023
2024 * blockframe.c (legacy_frame_chain_valid): Delete function.
2025
2026 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2027 and pc. Update comments.
2028 (pc_in_dummy_frame): Delete function.
2029 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2030 use the "id".
2031 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2032 call_hi, top and pc, use the id.
2033 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2034
2035 * dummy-frame.c: Include "gdb_string.h".
2036 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2037 (generic_save_dummy_frame_tos): Delete.
2038 (dummy_frame_push): New function, replaces above.
2039 * dummy-frame.h: Update copyright.
2040 (dummy_frame_push): Declare.
2041 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2042 (generic_save_call_dummy_addr): Delete declarations.
2043 * infcall.c: Include "dummy-frame.h".
2044 (call_function_by_hand): Add locals caller_regcache,
2045 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2046 with call to frame_save_as_regcache plus cleanup. Delete calls to
2047 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2048 Move clear_proceed_status to just before the resume, add call to
2049 dummy_frame_push (discard cleanup).
2050 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2051 (dummy-frame.o): Add $(gdb_string_h).
2052
2053 2004-08-01 Andrew Cagney <cagney@gnu.org>
2054
2055 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2056 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2057 * dummy-frame.c (find_dummy_frame): Delete.
2058 (struct dummy_frame_cache, dummy_frame_sniffer)
2059 (dummy_frame_prev_register, dummy_frame_this_id)
2060 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2061 frame unwinder using a dummy_frame_cache.
2062
2063 2004-08-01 Andrew Cagney <cagney@gnu.org>
2064
2065 * frame.h (frame_save_as_regcache): Declare.
2066 * frame.c (frame_save_as_regcache): New function.
2067 (do_frame_read_register): Replace do_frame_unwind_register.
2068 (frame_pop): Use frame_save_as_regcache.
2069 * dummy-frame.c (generic_push_dummy_frame): Use
2070 frame_save_as_regcache.
2071
2072 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2073
2074 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2075 file as included until we record the first line in the linetable.
2076
2077 2004-08-01 Andrew Cagney <cagney@gnu.org>
2078
2079 * frame.h (deprecated_pop_dummy_frame)
2080 (deprecated_read_register_dummy)
2081 (deprecated_generic_find_dummy_frame): Delete.
2082 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2083 (deprecated_read_register_dummy)
2084 (deprecated_find_dummy_frame_regcache)
2085 (discard_innermost_dummy)
2086 (deprecated_pop_dummy_frame): Delete.
2087 (dummy_frame_this_id): Simplify.
2088 (struct dummy_frame): Delete "fp" and "sp".
2089 (find_dummy_frame): Simplify.
2090 (generic_push_dummy_frame): Do not set "fp" or "sp".
2091 (fprint_dummy_frames): Do not print "fp" and "sp"
2092
2093 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2094
2095 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2096 (struct i386_insn): New structure.
2097 (i386_match_insn): New function.
2098 (i386_frame_setup_skip_insns): New variable.
2099 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2100 array i386_frame_setup_insns of instructions that should be
2101 skipped inside the frame setup sequence.
2102
2103 2004-08-01 Andrew Cagney <cagney@gnu.org>
2104
2105 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2106 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2107 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2108 * stack.c (frame_info): Delete references to
2109 DEPRECATED_FRAME_INIT_SAVED_REGS and
2110 deprecated_get_frame_saved_regs.
2111 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2112 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2113 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2114 (frame_unwind_register_signed)
2115 (frame_unwind_register_unsigned)
2116 (frame_unwind_unsigned_register): Use register_size.
2117 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2118 (deprecated_frame_xmalloc_with_cleanup)
2119 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2120 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2121
2122 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2123 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2124 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2125 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2126
2127 * infcall.c (call_function_by_hand): Do not use
2128 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2129 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2130 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2131 DEPRECATED_STACK_ALIGN.
2132
2133 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2134
2135 Committed by Andrew Cagney.
2136 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2137
2138 2004-08-01 Andrew Cagney <cagney@gnu.org>
2139
2140 * mips-tdep.c (mips16_frame_cache)
2141 (mips16_frame_this_id, mips16_frame_prev_register)
2142 (mips16_frame_unwind, mips16_frame_sniffer)
2143 (mips16_frame_base_address, mips16_frame_base)
2144 (mips16_frame_base_sniffer, mips32_frame_cache)
2145 (mips32_frame_this_id, mips32_frame_prev_register)
2146 (mips32_frame_unwind, mips32_frame_sniffer)
2147 (mips32_frame_base_address, mips32_frame_base)
2148 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2149 separate heuristic mips16 and mips32 unwinders.
2150 (mips_stub_frame_cache, mips_stub_frame_this_id)
2151 (mips_stub_frame_prev_register)
2152 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2153 (mips_stub_frame_base_address, mips_stub_frame_base)
2154 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2155 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2156 match true mdebug frames.
2157 (non_heuristic_proc_desc): Add forward declaration.
2158
2159 2004-08-01 Andrew Cagney <cagney@gnu.org>
2160
2161 * config/mips/tm-irix6.h: Delete file.
2162 * config/mips/tm-irix5.h: Delete file.
2163 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2164 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2165
2166 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2167 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2168 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2169 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2170 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2171 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2172 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2173 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2174 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2175 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2176 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2177 (TARGET_SIGNAL_RAW_VALUES): Delete.
2178 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2179 Delete.
2180 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2181 (TARGET_HW_WATCH_LIMIT): Delete.
2182 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2183 * minimon.h: Delete file.
2184
2185 * trad-frame.c (trad_frame_get_this_base)
2186 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2187 functions.
2188 * trad-frame.h (trad_frame_set_this_base)
2189 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2190
2191 2004-07-31 Andrew Cagney <cagney@gnu.org>
2192
2193 * trad-frame.c (trad_frame_get_prev_register): Rename
2194 trad_frame_get_prev_register.
2195 * vax-tdep.c (vax_frame_prev_register): Update.
2196 * trad-frame.h: Update.
2197 * trad-frame.c (trad_frame_get_register): Update.
2198 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2199 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2200 Update.
2201 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2202 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2203 Update.
2204 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2205 Update.
2206 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2207 Update.
2208 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2209 Update.
2210 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2211 Update.
2212 * s390-tdep.c (s390_frame_prev_register)
2213 (s390_stub_frame_prev_register)
2214 (s390_sigtramp_frame_prev_register): Update.
2215 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2216 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2217 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2218 * m88k-tdep.c (m88k_frame_prev_register)
2219 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2220 * m32r-tdep.c (m32r_frame_prev_register): Update.
2221 * hppa-tdep.c (hppa_frame_prev_register_helper)
2222 * frv-tdep.c (frv_frame_prev_register): Update.
2223 * d10v-tdep.c (d10v_frame_prev_register): Update.
2224 * cris-tdep.c (cris_frame_prev_register): Update.
2225 * avr-tdep.c (avr_frame_prev_register): Update.
2226 * arm-tdep.c (arm_prologue_prev_register)
2227 (arm_sigtramp_prev_register): Update.
2228
2229 2004-07-31 Andrew Cagney <cagney@gnu.org>
2230
2231 * frame.h (legacy_saved_regs_unwind)
2232 (legacy_frame_chain_valid, legacy_frame_p)
2233 (enum frame_type): Delete UNKNOWN_FRAME.
2234 * dummy-frame.c (dummy_frame_this_id): Simplify.
2235 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2236 * frame.c (struct frame_info): Delete the field "type".
2237 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2238 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2239 (legacy_saved_regs_unwind, legacy_frame_p)
2240 (frame_type_from_pc): Delete.
2241 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2242 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2243
2244 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2245
2246 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2247 indentation.
2248
2249 * mips-nat.c: Remove file.
2250 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2251 (mips-nat.o): Remove dependency.
2252
2253 * infptrace.c: Update copyright year.
2254 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2255 explicitly setting the buffer to all zeroes.
2256
2257 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2258 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2259
2260 2004-07-30 Andrew Cagney <cagney@gnu.org>
2261
2262 * GDB 6.2 released from gdb_6_2-branch.
2263
2264 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2265
2266 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2267
2268 * exec.c (exec_file_attach):
2269 * nto-tdep.c (nto_find_and_open_solib):
2270 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2271 * solib.c (solib_open):
2272 * somsolib.c (som_solib_sizeof_symbol_table):
2273 * source.c (is_regular_file, openp, open_source_file):
2274 * symfile.c (symfile_bfd_open):
2275 * wince.c (upload_to_device): Differentiate between the search for
2276 binary and source files.
2277
2278 2004-07-30 Andrew Cagney <cagney@gnu.org>
2279
2280 * complaints.c (_initialize_complaints): Pass NULL to
2281 add_setshow_zinteger_cmd for help_doc.
2282 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2283
2284 2004-07-30 Andrew Cagney <cagney@gnu.org>
2285
2286 Fix PR i18n/761.
2287 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2288 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2289 $(PACKAGE).pot and update-po.
2290 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2291 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2292 (update-po): New rules.
2293 (localedir): Define using autoconf.
2294 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2295 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2296 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2297 * configure.in: Generate CATALOGS and LINGUAS from contents of
2298 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2299 * configure: Re-generate.
2300 * po/gdbtext: New file
2301
2302 2004-07-30 Jerome Guitton <guitton@gnat.com>
2303
2304 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2305 order.
2306
2307 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2308
2309 * dwarf2read.c (read_file_scope): Set producer if attribute
2310 present.
2311 (struct dwarf2_cu): Added new member producer.
2312
2313 2004-07-30 Jerome Guitton <guitton@gnat.com>
2314
2315 * inflow.c (kill_command): release file handles in BFD.
2316 * exec.c (exec_file_attach): Ditto.
2317 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2318
2319 2004-07-29 Andrew Cagney <cagney@gnu.org>
2320
2321 * PROBLEMS (mips-irix): Note that it is broken.
2322
2323 2004-07-29 Andrew Cagney <cagney@gnu.org>
2324
2325 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2326 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2327
2328 * config/xm-nbsd.h: Delete file.
2329 * config/arm/xm-nbsd.h: Delete file.
2330 * config/i386/xm-nbsd.h: Delete file.
2331 * config/ns32k/xm-nbsd.h: Delete file.
2332 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2333 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2334 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2335 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2336 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2337
2338 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2339 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2340 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2341 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2342 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2343 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2344
2345 * config/powerpc/xm-linux.h: Delete empty file.
2346 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2347 * config/powerpc/linux.mh (XM_FILE): Delete.
2348 * config/m68k/xm-linux.h: Delete empty file.
2349 * config/m68k/linux.mh (XM_FILE): Delete.
2350 * config/ia64/xm-linux.h: Delete empty file.
2351 * config/ia64/linux.mh (XM_FILE): Delete.
2352 * config/arm/xm-linux.h: Delete empty file.
2353 * config/arm/linux.mh (XM_FILE): Delete.
2354
2355 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2356 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2357 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2358 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2359 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2360 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2361 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2362 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2363
2364 * config/m68k/xm-m68k.h: Delete file.
2365 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2366 copyright.
2367 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2368 * config/pa/xm-linux.h: Delete empty file.
2369 * config/pa/linux.mh (XM_FILE): Delete.
2370 * config/i386/xm-i386.h: Delete empty file.
2371 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2372 "i386/xm-i386.h".
2373 * config/i386/obsdaout.mh (XM_FILE): Delete.
2374 * config/i386/obsd64.mh (XM_FILE): Delete.
2375 * config/i386/fbsd64.mh (XM_FILE): Delete.
2376 * config/i386/nto.mh (XM_FILE): Delete.
2377 * config/i386/obsd.mh (XM_FILE): Delete.
2378 * config/i386/linux64.mh (XM_FILE): Delete.
2379 * config/i386/linux.mh (XM_FILE): Delete.
2380 * config/i386/i386sol2.mh (XM_FILE): Delete.
2381 * config/i386/i386gnu.mh (XM_FILE): Delete.
2382 * config/i386/fbsd.mh (XM_FILE): Delete.
2383 * config/i386/nbsd64.mh (XM_FILE): Delete.
2384
2385 2004-07-29 Andrew Cagney <cagney@gnu.org>
2386
2387 * config/pa/xm-linux.h: Do not include "floatformat.h".
2388 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2389 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2390 * config/i386/xm-i386.h: Do not include "floatformat.h".
2391 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2392 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2393 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2394 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2395 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2396 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2397 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2398 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2399 * configure, config.in: Regenerate.
2400 * configure.host (gdb_host_float_format, gdb_host_double_format)
2401 (gdb_host_long_double_format): Set according to the host.
2402
2403 2004-07-29 Andrew Cagney <cagney@gnu.org>
2404
2405 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2406
2407 2004-07-28 Andrew Cagney <cagney@gnu.org>
2408
2409 * PROBLEMS: Mention threads/1650.
2410 * NEWS: Mention the NPTL fix.
2411
2412 2004-07-28 Andrew Cagney <cagney@gnu.org>
2413
2414 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2415 (add_setshow_cmd_full): Make static.
2416 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2417 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2418 * cli/cli-decode.c (add_setshow_filename_cmd)
2419 (add_setshow_string_cmd): New functions.
2420 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2421 * mips-tdep.c (_initialize_mips_tdep): Update.
2422 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2423 * cli/cli-logging.c (_initialize_cli_logging): Update.
2424 * complaints.c (_initialize_complaints): Update.
2425 * remote.c (_initialize_remote): Update.
2426
2427 2004-07-28 Andrew Cagney <cagney@gnu.org>
2428
2429 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2430 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2431 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2432 print parameters. Make string parameters constant.
2433 * command.h: Update. Update copyright.
2434 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2435 * observer.c (_initialize_observer): Ditto.
2436 * frame.c (_initialize_frame): Ditto.
2437 * complaints.c (_initialize_complaints): Ditto.
2438 * maint.c (_initialize_maint_cmds): Ditto.
2439 * target.c (initialize_targets): Ditto.
2440 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2441 * infcall.c (_initialize_infcall): Ditto.
2442 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2443 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2444 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2445 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2446 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2447
2448 2004-07-28 Andrew Cagney <cagney@gnu.org>
2449
2450 * gdbtypes.c (lookup_primitive_typename): Delete function.
2451 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2452 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2453 * gdbtypes.c (lookup_typename): Ditto.
2454 * f-exp.y (yylex): Ditto.
2455 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2456
2457 * scm-lang.c (c_builtin_types): Delete extern declaration.
2458 (scm_language_defn): Replace
2459 string_char_type and primitive_type_vector with
2460 la_language_arch_info.
2461 * jv-lang.c (java_language_defn): Replace
2462 string_char_type and primitive_type_vector with
2463 la_language_arch_info.
2464 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2465 c_builtin_types in comment.
2466 * c-lang.h (struct language_arch_info): Declare opaque.
2467 (c_language_arch_info): Declare.
2468 (c_builtin_types): Delete declaration.
2469 * c-lang.c (c_language_arch_info): Set string_char_type to
2470 builtin_char, not builtin_true_char. Make global.
2471 (c_builtin_types): Delete array.
2472 (asm_language_defn, minimal_language_defn): Replace
2473 string_char_type and primitive_type_vector with
2474 la_language_arch_info.
2475
2476 2004-07-28 Andrew Cagney <cagney@gnu.org>
2477
2478 * gdbtypes.h (struct builtin_type): Rename true_char to
2479 builtin_true_char.
2480 * gdbtypes.c (gdbtypes_post_init): Update.
2481 * c-lang.c (arch_info): New function.
2482 (enum c_primitive_types): New enum.
2483 (c_language_defn): Instead of string_char_type and
2484 primitive_type_vector set la_language_arch_info.
2485
2486 2004-07-28 Andrew Cagney <cagney@gnu.org>
2487
2488 * language.h (struct language_arch_info): Fix typo
2489 s/primative/primitive/.
2490 * gdbtypes.c (lookup_primitive_typename): Ditto.
2491 * language.c (language_lookup_primitive_type_by_name)
2492 (unknown_language_arch_info): Ditto.
2493
2494 2004-07-27 Andrew Cagney <cagney@gnu.org>
2495
2496 * defs.h (enum language): Add nr_languages.
2497 * language.h (struct language_arch_info): Define.
2498 (struct language_defn): Add la_language_arch_info.
2499 (language_lookup_primative_type_by_name): Declare.
2500 (language_string_char_type): Declare.
2501 * language.c (_initialize_language, language_gdbarch_post_init)
2502 (struct language_gdbarch, language_gdbarch_data): Implement
2503 per-architecture language information.
2504 (unknown_language_arch_info, language_string_char_type)
2505 (language_lookup_primative_type_by_name): New functions.
2506 (unknown_language_defn, auto_language_defn)
2507 (local_language_defn): Set la_language_arch_info to
2508 unknown_language_arch_info.
2509 (unknown_builtin_types): Delete.
2510 * gdbtypes.c (lookup_primitive_typename): Use
2511 language_lookup_primative_type_by_name.
2512 (create_string_type): Use language_string_char_type.
2513 * values.c (value_from_string): Use language_string_char_type.
2514 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2515 * p-lang.c (pascal_language_defn): Ditto.
2516 * m2-lang.c (m2_language_defn): Ditto.
2517 * jv-lang.c (java_language_defn): Ditto.
2518 * objc-lang.c (objc_language_defn): Ditto.
2519 * f-lang.c (f_language_defn): Ditto.
2520 * c-lang.c (c_language_defn, cplus_language_defn)
2521 (asm_language_defn, minimal_language_defn): Ditto.
2522
2523 2004-07-27 Andrew Cagney <cagney@gnu.org>
2524
2525 * gdbtypes.h (struct builtin_type): Declare.
2526 (builtin_type): Declare.
2527 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2528 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2529 (gdbtypes_post_init): New function.
2530 (builtin_type): New function.
2531
2532 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2533
2534 * remote-m32r-sdi.c: Fix breakpoint bug.
2535 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2536 recv_char_data, recv_long_data): New functions to replace communication
2537 sequences.
2538
2539 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2540
2541 Document PR threads/1650.
2542 * PROBLEMS (Threads): Document problem with many threads
2543
2544 2004-07-26 Andrew Cagney <cagney@gnu.org>
2545
2546 * gdb-mi.el: Move from here ...
2547 * mi/gdb-mi.el: ... to here.
2548
2549 2004-07-26 Andrew Cagney <cagney@gnu.org>
2550
2551 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2552 * main.c (captured_main): When in batch mode always detach.
2553
2554 2004-07-26 Andrew Cagney <cagney@gnu.org>
2555
2556 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2557 and h8300 as broken.
2558 * NEWS: END-OF-LIFE frame compatibility module.
2559 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2560 specific comments.
2561
2562 2004-07-26 Andrew Cagney <cagney@gnu.org>
2563
2564 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2565 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2566 * wince.c (_initialize_wince): Update.
2567 * win32-nat.c (_initialize_win32_nat): Update.
2568 * varobj.c (_initialize_varobj): Update.
2569 * valops.c (_initialize_valops): Update.
2570 * utils.c (initialize_utils, initialize_utils): Update.
2571 * tui/tui-win.c (_initialize_tui_win): Update.
2572 * top.c (init_main): Update.
2573 * symfile.c (_initialize_symfile): Update.
2574 * source.c (_initialize_source): Update.
2575 * somsolib.c (_initialize_som_solib): Update.
2576 * solib.c (_initialize_solib): Update.
2577 * solib-frv.c (_initialize_frv_solib): Update.
2578 * serial.c (_initialize_serial): Update.
2579 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2580 * remote.c (_initialize_remote, _initialize_remote): Update.
2581 * remote-vx.c (_initialize_vx): Update.
2582 * remote-utils.c (_initialize_sr_support): Update.
2583 * remote-sds.c (_initialize_remote_sds): Update.
2584 * remote-mips.c (_initialize_remote_mips): Update.
2585 * remote-e7000.c (_initialize_remote_e7000): Update.
2586 * proc-api.c (_initialize_proc_api): Update.
2587 * printcmd.c: Update.
2588 * parse.c (_initialize_parse): Update.
2589 * pa64solib.c (_initialize_pa64_solib): Update.
2590 * p-valprint.c (_initialize_pascal_valprint): Update.
2591 * monitor.c (_initialize_remote_monitors): Update.
2592 * mips-tdep.c (_initialize_mips_tdep): Update.
2593 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2594 * maint.c (_initialize_maint_cmds): Update.
2595 * lin-lwp.c (_initialize_lin_lwp): Update.
2596 * language.c (_initialize_language): Update.
2597 * kod.c (_initialize_kod): Update.
2598 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2599 * i386-tdep.c (_initialize_i386_tdep): Update.
2600 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2601 * gdbarch.sh: Update.
2602 * gdbarch.c: Re-generate.
2603 * gdb-events.sh: Update.
2604 * gdb-events.c: Re-generate.
2605 * frame.c (_initialize_frame): Update.
2606 * exec.c: Update.
2607 * demangle.c (_initialize_demangler): Update.
2608 * dcache.c (_initialize_dcache): Update.
2609 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2610 * cp-valprint.c (_initialize_cp_valprint): Update.
2611 * corefile.c (_initialize_core): Update.
2612 * command.h: Update.
2613 * cli/cli-decode.h: Update.
2614 * cli/cli-cmds.c (init_cli_cmds): Update.
2615 * charset.c (_initialize_charset): Update.
2616 * breakpoint.c (_initialize_breakpoint): Update.
2617 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2618 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2619 * aix-thread.c (_initialize_aix_thread): Update.
2620
2621 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2622
2623 Partial fix for PR backtrace/1718.
2624 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2625 that GCC migrates into the prolugue. Don't handle any
2626 instructions that clobber %ebx.
2627
2628 2004-07-23 Andrew Cagney <cagney@gnu.org>
2629
2630 Use regcache_raw_collect instead of regcache_collect.
2631 * regcache.h (regcache_collect): Delete declaration.
2632 * regcache.c (regcache_colect): Delete function.
2633 * win32-nat.c (do_child_store_inferior_registers): Update.
2634 * sol-thread.c (sol_thread_store_registers): Update.
2635 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2636 * rs6000-nat.c (store_register): Update.
2637 * remote.c (store_register_using_P, remote_store_registers): Update.
2638 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2639 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2640 (fill_vrregset, store_spe_registers, fill_gregset)
2641 (fill_gregset): Update.
2642 * nto-procfs.c (procfs_store_registers): Update.
2643 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2644 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2645 * m68klinux-nat.c (store_register, fill_gregset): Update.
2646 * m68k-tdep.c (fill_gregset): Update.
2647 * infptrace.c (store_register): Update.
2648 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2649 * i386-linux-nat.c (store_register, fill_gregset): Update.
2650 * hppa-linux-nat.c (fill_gregset): Update.
2651 * go32-nat.c (store_register): Update.
2652 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2653 (store_fp_regs): Update.
2654 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2655 (store_nwfpe_extended, store_fpregister, store_fpregs)
2656 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2657 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2658 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2659 (store_regs_user_thread, store_regs_kernel_thread): Update.
2660
2661 2004-07-24 Mark Kettenis <kettenis@gnu.org>
2662
2663 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2664 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2665 encoding.
2666 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2667 member of `struct comp_unit'.
2668
2669 2004-07-23 Andrew Cagney <cagney@gnu.org>
2670
2671 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2672 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2673
2674 2004-07-23 Martin Hunt <hunt@redhat.com>
2675 Kevin Buettner <kevinb@redhat.com>
2676
2677 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2678 alignment was being added to the offset instead of multiplied.
2679
2680 2004-07-23 Mark Kettenis <kettenis@gnu.org>
2681
2682 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2683 changed signal trampoline in OpenBSD 3.5-current.
2684
2685 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2686 <machine/pcb.h> and "bsd-kvm.h".
2687 (sparc64nbsd_supply_pcb): New function.
2688 (_initialize_sparc64nbsd_nat): Renamed from
2689 _initialize_sparcnbsd_nat. Enable libkvm interface.
2690 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2691 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2692 (LOADLIBES): New variable.
2693
2694 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2695
2696 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2697
2698 2004-07-21 Andrew Cagney <cagney@gnu.org>
2699
2700 Use regcache_raw_supply instead of supply_register.
2701 * regcache.h (supply_register): Delete declaration.
2702 * regcache.c (supply_register): Delete function.
2703 * wince.c (do_child_fetch_inferior_registers): Update.
2704 * win32-nat.c (do_child_fetch_inferior_registers)
2705 (fetch_elf_core_registers): Update.
2706 * v850ice.c (v850ice_fetch_registers): Update.
2707 * thread-db.c (thread_db_store_registers): Update.
2708 * sol-thread.c (sol_thread_store_registers): Update.
2709 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2710 * rs6000-nat.c (fetch_register): Update.
2711 * rom68k-rom.c (rom68k_supply_one_register): Update.
2712 * remote.c (remote_wait, remote_async_wait): Update.
2713 * remote-st.c (get_hex_regs): Update.
2714 * remote-sim.c (gdbsim_fetch_register): Update.
2715 * remote-sds.c (sds_fetch_registers): Update.
2716 * remote-rdp.c (remote_rdp_fetch_register): Update.
2717 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2718 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2719 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2720 * remote-hms.c (init_hms_cmds): Update.
2721 * remote-est.c (init_est_cmds): Update.
2722 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2723 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2724 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2725 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2726 (fetch_register, supply_vrregset, supply_vrregset)
2727 (fetch_spe_registers): Update.
2728 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2729 * monitor.c (monitor_supply_register): Update.
2730 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2731 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2732 (mipsnbsd_supply_fpreg): Update.
2733 * mips-nat.c (fetch_inferior_registers)
2734 (fetch_core_registers): Update.
2735 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2736 (supply_fpregset, mips64_supply_gregset)
2737 (mips64_supply_fpregset): Update.
2738 * m68klinux-nat.c (fetch_register, supply_gregset)
2739 (supply_fpregset): Update.
2740 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2741 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2742 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2743 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2744 * infptrace.c (fetch_register): Update.
2745 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2746 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2747 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2748 (gnu_fetch_registers, gnu_store_registers): Update.
2749 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2750 * i386-linux-nat.c (fetch_register, supply_gregset)
2751 (dummy_sse_values): Update.
2752 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2753 * hppah-nat.c (fetch_register): Update.
2754 * hppa-linux-nat.c (fetch_register, supply_gregset)
2755 (supply_fpregset): Update.
2756 * go32-nat.c (fetch_register): Update.
2757 * dve3900-rom.c (fetch_bitmapped_register)
2758 (_initialize_r3900_rom): Update.
2759 * cris-tdep.c (supply_gregset): Update.
2760 * abug-rom.c (init_abug_cmds): Update.
2761 * core-aout.c (fetch_core_registers): Update.
2762 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2763 (fetch_register, fetch_fp_register): Update.
2764 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2765 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2766 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2767 * alphanbsd-tdep.c (fetch_core_registers): Update.
2768 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2769 * alpha-nat.c (fetch_osf_core_registers)
2770 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2771 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2772 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2773
2774 2004-07-21 Andrew Cagney <cagney@gnu.org>
2775
2776 * PROBLEMS: Mention breakpoints/1702.
2777 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2778 that is known to work.
2779
2780 2004-07-21 Andrew Cagney <cagney@gnu.org>
2781
2782 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2783 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2784 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2785 (handle_inferior_event): Wrap call to deprecated
2786 IGNORE_HELPER_CALL in #ifdef.
2787 * config/mips/tm-nbsd.h: Update.
2788
2789 2004-07-20 Jim Blandy <jimb@redhat.com>
2790
2791 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2792 bfd_mach_ppc has no segment registers.
2793
2794 Include PowerPC SPR numbers for special-purpose registers.
2795 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2796 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2797 new member in initializer.
2798 (S, S4, SN4, S64): New macros for defining special-purpose
2799 registers.
2800 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2801 registers_403, registers_403GC, registers_505, registers_860,
2802 registers_601, registers_602, registers_603, registers_604,
2803 registers_750, registers_e500): Use them.
2804
2805 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2806 replace references with expression used to initialize variable.
2807
2808 2004-07-20 Andrew Cagney <cagney@gnu.org>
2809
2810 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2811 read_memory_nobpt.
2812 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2813 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2814 (s390_sigtramp_frame_sniffer): Update.
2815 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2816 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2817 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2818 (mips32_fetch_instruction): Update.
2819 * mcore-tdep.c (get_insn): Update.
2820 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2821 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2822 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2823 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2824 (i386_linux_rt_sigtramp_start): Update.
2825 * i386-linux-nat.c (child_resume): Update.
2826 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2827 * hppa-linux-tdep.c (insns_match_pattern): Update.
2828 * gdbcore.h: Update.
2829 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2830 * frame.c (safe_frame_unwind_memory): Update.
2831 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2832 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2833 * alpha-tdep.c (alpha_read_insn): Update.
2834
2835 2004-07-20 Andrew Cagney <cagney@gnu.org>
2836
2837 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2838 containing both bytes and mask. Add "frame_type".
2839 * tramp-frame.c (tramp_frame_start): Update.
2840 (tramp_frame_prepend_unwinder): Update.
2841 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2842 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2843 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2844 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2845
2846 2004-07-19 Eli Zaretskii <eliz@gnu.org>
2847
2848 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2849 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2850 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2851 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2852
2853 2004-07-17 Andrew Cagney <cagney@gnu.org>
2854
2855 * NEWS, PROBLEMS: Update for 6.2.
2856
2857 * README: Update to 6.2.
2858
2859 * utils.c (xvasprintf): Call xstrvprintf.
2860
2861 * parse.c: Update copyright.
2862 (null_post_parser): Eliminate ARGSUSED.
2863
2864 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2865 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2866 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2867
2868 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2869 * ppc-linux-nat.c: Use "Linux kernel".
2870 * hppa-linux-tdep.c: Use GNU/Linux.
2871 * hppa-linux-nat.c: Use GNU/Linux.
2872 * dwarfread.c: Add [sic] to use of Linux.
2873
2874 * hppa-linux-nat.c: Do not include <string.h>.
2875 (supply_fpregset): Remove "register" attribute.
2876
2877 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2878
2879 2004-07-17 Mark Kettenis <kettenis@gnu.org>
2880
2881 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2882 * configure, config.in: Regenerated.
2883
2884 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2885 "bsd-kvm.h".
2886 (vaxbsd_supply_pcb): New function.
2887 (_initialize_vaxbsd_nat): New prototype and function.
2888 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2889 solib-sunos.o.
2890 (LOADLIBES): New variable.
2891 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2892 (LOADLIBES): New variable.
2893 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2894 (LOADLIBES): New variable.
2895 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2896
2897 2004-07-16 Andrew Cagney <cagney@gnu.org>
2898
2899 * defs.h (event_loop_p): Replace variable declaration with macro,
2900 always 1.
2901 * main.c (captured_main): Delete options "-async" and "-noasync".
2902 (event_loop_p): Delete variable.
2903 * NEWS: Mention that "-async" and "-noasync" were removed.
2904
2905 2004-07-16 Andrew Cagney <cagney@gnu.org>
2906
2907 * remote-m32r-sdi.c: Re-indent.
2908
2909 2004-07-16 Jim Blandy <jimb@redhat.com>
2910
2911 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2912 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2913 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2914 missing MPC823 SPRs.
2915 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2916 incorrect. (This was corrected in GDB's register name tables on
2917 2004-07-14.)
2918
2919 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2920 should be "esasrr" ("ESA Save and Restore Register").
2921
2922 2004-07-16 Andrew Cagney <cagney@gnu.org>
2923
2924 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2925 calls, no longer applicable. Update comments and rename parameter
2926 "step_frame" to "return_frame".
2927
2928 2004-07-16 Andrew Cagney <cagney@gnu.org>
2929
2930 * frame.c (fprint_field): New function.
2931 (fprint_frame_id): Use fprint_field.
2932
2933 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2934
2935 * ada-lang.c (ada_language_defn): Remove commented out code.
2936
2937 2004-07-15 Jim Blandy <jimb@redhat.com>
2938
2939 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2940 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2941
2942 2004-07-14 Jim Blandy <jimb@redhat.com>
2943
2944 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2945
2946 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2947
2948 * ppc-tdep.h (ppc_num_srs): New enum constant.
2949
2950 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2951 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2952 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2953 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2954 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2955 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2956 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2957 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2958 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2959 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2960 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2961 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2962 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2963 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2964 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2965 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2966 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2967 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2968 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2969 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2970 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2971 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2972 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2973 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2974 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2975 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2976 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2977 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2978 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2979 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2980 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2981 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2982 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2983 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2984 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2985 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2986 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2987 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2988 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2989 special-purpose register numbers.
2990
2991 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2992 manual mentions 'md_twb', but many mention 'm_twb', and at that
2993 point in the register list.)
2994
2995 2004-07-14 Andrew Cagney <cagney@gnu.org>
2996
2997 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2998 instead of "internal-error".
2999
3000 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3001
3002 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3003 that was inserted inside a comment.
3004
3005 2004-07-10 Randolph Chung <tausq@debian.org>
3006
3007 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3008 function.
3009 (hppa_hpux_push_dummy_code): New function.
3010 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3011 Set find_global_pointer method.
3012
3013 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3014
3015 * NEWS: Mention BSD libkvm interface.
3016
3017 2004-07-10 Michael Snyder <msnyder@redhat.com>
3018
3019 * symfile.c (generic_load): Comment typo.
3020 * stack.c (get_selected_block): Ditto.
3021 * regcache.c (regcache_cooked_read): Ditto.
3022 * monitor.c (monitor_debug): Ditto.
3023 * mips-tdep.c (mips_read_pc): Ditto.
3024 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3025 * gdb_mbuild.sh: Ditto.
3026 * gdbarch.sh: Ditto.
3027 * gdbarch.h: Ditto.
3028
3029 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3030
3031 * ada-tasks.c: Remove file.
3032
3033 Remove ARI problems:
3034
3035 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3036 beginning of line.
3037
3038 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3039 Add comment.
3040 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3041 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3042 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3043 (UMIN_OF_SIZE): Remove.
3044 (max_of_type): New function to replace orphan macro in gdbtypes.h
3045 (min_of_type): Ditto.
3046 (discrete_type_high_bound): Use max_of_type.
3047 (discrete_type_low_bound): Use min_of_type.
3048 (possible_user_operator_p): Move operator to beginning of line.
3049 (ada_is_variant_part): Ditto.
3050 (ensure_lval): Rewrite to avoid deprecated operations.
3051 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3052 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3053 (ada_enum_name): Remove assignments in 'if' statements.
3054 (build_ada_types): Add gdbarch parameter.
3055 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3056 with gdbarch_data_register_post_init.
3057 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3058 add_show_from_set.
3059
3060 * ada-valprint.c (inspect_it): Remove declaration.
3061 (repeat_count_threshold): Remove declaration.
3062 (ada_print_floating): Remove assignments in 'if' statements.
3063 (print_str): Move operator to beginning of line.
3064
3065 2004-07-08 Jim Blandy <jimb@redhat.com>
3066
3067 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3068
3069 2004-07-08 Bob Rossi <bob@brasko.net>
3070
3071 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3072
3073 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3074
3075 * language.h (struct_language_defn): Add new function pointer:
3076 la_class_name_from_physname. Also add new prototype for
3077 language_class_name_from_physname.
3078 * language.c (language_class_name_from_physname): New function.
3079 (unk_lang_class_name): Ditto.
3080 (unknown_language_defn, auto_language_defn): Change
3081 to add unk_lang_class_name function pointer for
3082 la_class_name_from_physname.
3083 (local_language_defn): Ditto.
3084 * dwarf2read.c (guess_structure_name): Change to call
3085 language_class_name_from_physname.
3086 (determine_class_name): Ditto.
3087 * cp-support.c (class_name_from_physname): Renamed.
3088 (cp_class_name_from_physname): New name of function.
3089 * cp-support.h: Ditto.
3090 * c-lang.c (c_language_defn): Change to add NULL
3091 for class_name_from_physname function pointer.
3092 (cplus_language_defn): Change to add cp_class_name_from_physname.
3093 * jv-lang.c (java_class_name_physname): New function.
3094 (java_find_last_component): New static routine.
3095 (java_language_defn): Add java_class_name_from_physname pointer.
3096 * ada-lang.c (ada_language_defn): Change to add NULL
3097 for class_name_from_physname function pointer.
3098 * f-lang.c (f_language_defn): Ditto.
3099 * m2-lang.c (m2_language_defn): Ditto.
3100 * objc-lang.c (objc_language_defn): Ditto.
3101 * p-lang.c (pascal_language_defn): Ditto.
3102 * scm-lang.c (scm_language_defn): Ditto.
3103
3104 2004-07-06 Andrew Cagney <cagney@gnu.org>
3105
3106 Patch from Bart Robinson.
3107 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3108 (O_LARGEFILE): Define to 0, if not defined.
3109
3110 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3111
3112 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3113 <machine/pcb.h> and "bsd-kvm.h".
3114 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3115 (m68kbsd_supply_pcb): New function.
3116 (_initialize_m68kbsd_nat): New prototype and function.
3117 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3118 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3119 (LOADLIBES): New variable.
3120 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3121 (LOADLIBES): New variable.
3122
3123 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3124
3125 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3126
3127 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3128 <sys/proc.h>.
3129 (bsd_kvm_cmdlist): New variable.
3130 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3131 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3132 command and "kvm proc" command.
3133 * Makefile.in (bsd-kvm.o): Update dependencies.
3134
3135 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3136
3137 * osabi.c: Update copyright year.
3138 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3139 notes if EI_OSABI is set to ELFOSABI_HPUX.
3140
3141 2004-07-01 Michael Snyder <msnyder@redhat.com>
3142
3143 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3144 that seems to have gotten whacked out of line.
3145
3146 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3147
3148 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3149 code.
3150
3151 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3152
3153 * ada-lang.c (decode_packed_array): Minor change to comment.
3154 (ada_value_slice_ptr): New function.
3155 (ada_value_slice): New function.
3156 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3157 test. Don't know why it is there.
3158 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3159 to avoid dereferencing huge arrays from which one is slicing.
3160 (empty_array): Correct to return an array rather than
3161 a subrange value.
3162 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3163 on empty arrays (let'em use 'FIRST instead).
3164
3165 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3166
3167 Address complaints from gdb_ari.sh:
3168
3169 * ada-exp.y: Include gdb_string.h rather than string.h.
3170 (convert_char_literal): Reformat declaration.
3171 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3172 * ada-lex.l: Change use of free to xfree (the macro would do so
3173 anyway, but this is harmless).
3174 Include gdb_string.h rather than string.h.
3175 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3176
3177 * ada-lang.c (parse): Remove K&Rism in parameter list.
3178 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3179
3180 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3181
3182 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3183 dead code.
3184
3185 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3186
3187 * alphabsd-nat.c: Update copyright year.
3188 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3189
3190 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3191
3192 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3193 (i386_cygwin_in_solib_call_trampoline): New function.
3194 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3195 and skip_trampoline_code gdbarch methods.
3196
3197 2004-06-29 Jim Blandy <jimb@redhat.com>
3198
3199 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3200 name actually used in the dependency lists.
3201
3202 2004-06-29 Randolph Chung <tausq@debian.org>
3203
3204 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3205
3206 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3207
3208 * win32-nat.c (child_pid_to_exec_file): New function.
3209 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3210 functionality.
3211
3212 2004-06-28 Andrew Cagney <cagney@gnu.org>
3213
3214 * defs.h (xstrvprintf): Declare.
3215 * utils.c (xstrvprintf): New function.
3216 (internal_vproblem, xstrprintf, xasprintf)
3217 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3218 * serial.c (serial_printf): Ditto.
3219 * complaints.c (vcomplaint): Ditto.
3220
3221 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3222
3223 * infcmd.c (attach_command): Move call to target_terminal_inferior
3224 behind loading symbol table.
3225
3226 2004-06-28 Andrew Cagney <cagney@gnu.org>
3227
3228 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3229 change - add back extern deprecated_ui_loop_hook declaration.
3230
3231 2004-06-28 Andrew Cagney <cagney@gnu.org>
3232
3233 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3234 xstrprintf.
3235 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3236 (c_value_of_variable): Ditto.
3237 * utils.c (internal_vproblem): Ditto.
3238 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3239 * remote.c (add_packet_config_cmd): Ditto.
3240 * remote-rdp.c (rdp_set_command_line): Ditto.
3241 * regcache.c (regcache_dump): Ditto.
3242 * frv-tdep.c (new_variant, new_variant): Ditto.
3243 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3244 (fbsd_find_memory_regions): Ditto.
3245 * breakpoint.c (create_thread_event_breakpoint)
3246 (create_breakpoints): Ditto.
3247 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3248 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3249
3250 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3251
3252 * ada-lang.c: Re-indent file, with some massaging to help indent
3253 a bit when the result is otherwise really too ugly.
3254
3255 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3256
3257 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3258 code_addr_p and special_addr_p to 'unsigned int'.
3259
3260 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3261
3262 * i386v4-nat.c: Update copyright year and tweak comment.
3263 (regmap): Remove trailing comma.
3264 (supply_gregset): Rename local variable i to regnum. Call
3265 regcache_raw_supply instead of supply_register.
3266 (fill_gregset): Rename argument regno to regnum. Call
3267 regcache_raw_collect instead of regcache_collect.
3268
3269 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3270
3271 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3272 and special_addr_p.
3273 (frame_id_build, frame_id_build_special): Update comments.
3274 (frame_id_build_wild): New prototype.
3275 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3276 struct frame_id fields.
3277 (frame_id_build_wild): New function.
3278 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3279
3280 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3281
3282 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3283 hppabsd-tdep.c.
3284
3285 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3286
3287 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3288
3289 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3290
3291 * ada-lang.c: Re-indent file.
3292
3293 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3294
3295 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3296 (no_symtab_msg): Likewise.
3297
3298 2004-06-27 Andreas Schwab <schwab@suse.de>
3299
3300 * source.c: Fix whitespace.
3301
3302 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3303
3304 * configure.in: Include <sys/param.h> for td_pcb test.
3305 * configure: Regenerated.
3306
3307 * i386nbsd-nat.c: New file.
3308 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3309 i386obsd-nat.c and i386obsd-tdep.c.
3310 (i386nbsd-nat.o): New dependency.
3311 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3312 bsd-kvm.o.
3313 (LOADLIBES): New variable.
3314 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3315 bsd-kvm.o.
3316 (LOADLIBES): New variable.
3317
3318 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3319 (LOADLIBES): New variable.
3320
3321 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3322 fetching from BSD_KVM_PADDR. Correctly lookup address for
3323 "_thread0".
3324
3325 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3326 "bsd-kvm.h".
3327 (amd64fbsd_supply_pcb): New funcion.
3328 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3329
3330 2004-06-27 <david@streamline-computing.com>
3331
3332 Partial fix for PR cli/1056.
3333 * valarith.c: Check for zero in division and remainder
3334 evaluation.
3335
3336 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3337
3338 * i387-tdep.c: Remove excessive whitespace.
3339
3340 2004-06-26 Andrew Cagney <cagney@gnu.org>
3341
3342 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3343 * gdb-events.h, gdb-events.c: Re-generate.
3344 * tui/tui-hooks.c (tui_install_hooks): Update.
3345 (tui_remove_hooks): Update.
3346 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3347
3348 2004-06-26 Mark Kettenis <kettenis@gnu.org>
3349
3350 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3351 (gregset_t, fpregset_t): Remove typedefs.
3352 (REG_OFFSET): Rename argument.
3353 (amd64bsd_r_reg_offset): Rename from reg_offset.
3354 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3355 Remove functions.
3356 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3357 of reg_offset.
3358 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3359
3360 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3361
3362 * vax-tdep.c: Tweak comment.
3363
3364 Add OpenBSD/hppa support.
3365 * NEWS (New native configurations): Mention OpenBSD/hppa.
3366 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3367 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3368 files.
3369 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3370 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3371 * configure.host: Add hppa*-*-openbsd*.
3372 * configure.tgt: Add hppa*-*-openbsd*.
3373
3374 2004-06-25 Andrew Cagney <cagney@gnu.org>
3375
3376 * defs.h (deprecated_ui_loop_hook): Deprecated.
3377 * wince.c (child_wait): Update.
3378 * win32-nat.c (child_wait): Update.
3379 * v850ice.c (v850ice_wait): Update.
3380 * top.c (deprecated_ui_loop_hook): Update.
3381 * serial.h: Update.
3382 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3383 (do_unix_readchar): Update.
3384 * ser-tcp.c (net_open): Update.
3385 * remote-sim.c (gdb_os_poll_quit): Update.
3386 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3387
3388 2004-06-24 Andrew Cagney <cagney@gnu.org>
3389
3390 * defs.h (deprecated_pre_add_symbol_hook)
3391 (deprecated_post_add_symbol_hook): Deprecated.
3392 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3393 (symbol_file_add_with_addrs_or_offsets): Update references.
3394
3395 2004-06-24 Andrew Cagney <cagney@gnu.org>
3396
3397 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3398 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3399 * wince.c (ui_loop_hook): Delete extern declaration.
3400 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3401 * v850ice.c (ui_loop_hook): Delete extern declaration..
3402 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3403 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3404 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3405 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3406 ui_loop_hook declaration.
3407
3408 2004-06-24 Andrew Cagney <cagney@gnu.org>
3409
3410 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3411 entry_func_highpc fields.
3412 * objfiles.c (init_entry_point_info): Do not clear
3413 entry_func_lowpc and entry_func_highpc.
3414 (objfile_relocate): Do not relocate entry_func_lowpc and
3415 entry_func_highpc.
3416 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3417 entry_func_highpc.
3418 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3419 entry_func_highpc.
3420 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3421 entry_func_lowpc and entry_func_highpc with call to
3422 inside_entry_func.
3423
3424 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3425
3426 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3427 quad-precision floating point arguments in registers.
3428
3429 2004-06-24 Mark Kettenis <kettenis@gnu.org>
3430
3431 From Michael Mueller <m.mueller99@kay-mueller.de>:
3432 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3433 account.
3434
3435 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3436
3437 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3438 to -1.
3439 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3440 untriggered watchpoints to a separate if clause. Update function
3441 comment regarding STOPPED_BY_WATCHPOINT argument.
3442
3443 2004-06-22 Jim Blandy <jimb@redhat.com>
3444
3445 * gdbarch.sh: Doc fix.
3446
3447 2004-06-21 Martin Hunt <hunt@redhat.com>
3448 Kevin Buettner <kevinb@redhat.com>
3449
3450 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3451 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3452 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3453 to set_gdbarch_sp_regnum(). Use cooked register number.
3454 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3455
3456 2004-06-21 Andrew Cagney <cagney@gnu.org>
3457
3458 * gdbarch.sh: When the macro field is empty, do not generate a
3459 macro definition. When the macro field is "=", generate the macro
3460 name from the upper-case function name.
3461 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3462 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3463 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3464 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3465 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3466 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3467 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3468 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3469 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3470 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3471 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3472 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3473 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3474 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3475 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3476 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3477 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3478 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3479 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3480 (DEPRECATED_USE_STRUCT_CONVENTION)
3481 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3482 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3483 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3484 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3485 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3486 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3487 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3488 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3489 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3490 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3491 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3492 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3493 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3494 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3495 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3496 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3497 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3498 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3499
3500 2004-06-21 Andrew Cagney <cagney@gnu.org>
3501
3502 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3503 macro name, and the function rather than macro value. Only wrap
3504 macro print statements in #ifdef. Move format logic to where it
3505 is needed.
3506 * gdbarch.c: Re-generate.
3507
3508 * gdbarch.sh (read): Delete "print_p" and "description", add
3509 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3510 Delete references to print_p.
3511 (TARGET_ARCHITECTURE): Delete print predicate.
3512 * gdbarch.c: Re-generate.
3513
3514 * gdbarch.sh: Check that multi-arch methods do not provide a
3515 macro.
3516 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3517 (print_registers_info, print_float_info, print_vector_info)
3518 (adjust_breakpoint_address, remote_translate_xfer_address)
3519 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3520 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3521 name from the multi-arch definition.
3522
3523 2004-06-20 Andrew Cagney <cagney@gnu.org>
3524
3525 * gdbarch.sh: Sort by the function, instead of macro name.
3526 * gdbarch.c: Re-generate.
3527
3528 2004-06-20 Andrew Cagney <cagney@gnu.org>
3529
3530 * gdbarch.sh: Use the function, instead of macro name in
3531 errors and the log file.
3532 (return_value): Remove stray ":" in spec.
3533
3534 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3535 * gdbarch.h, gdbarch.c: Re-generate.
3536 * Makefile.in (arch-utils.o): Update dependencies.
3537 * values.c (using_struct_return): Move code calling
3538 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3539 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3540 to legacy_return_value, simplify.
3541 * infcmd.c (print_return_value): Move code calling
3542 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3543 to legacy_return_value, simplify.
3544 * infcall.c (call_function_by_hand): Move code calling
3545 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3546 * arch-utils.c: Update copyright. Include "gdbcore.h".
3547 (legacy_return_value): New function.
3548 * arch-utils.h: Update copyright.
3549 (legacy_return_value): Declare.
3550
3551 2004-06-20 Andrew Cagney <cagney@gnu.org>
3552
3553 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3554 * gdbarch.h, gdbarch.c: Re-generate.
3555 * values.c (using_struct_return): Update call.
3556 * mcore-tdep.c: Update comment.
3557 * infcall.c (call_function_by_hand): Update comment.
3558 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3559 * arch-utils.h (always_use_struct_convention): Update.
3560 * v850-tdep.c (v850_gdbarch_init): Update.
3561 * sh64-tdep.c (sh64_gdbarch_init): Update.
3562 * sh-tdep.c (sh_gdbarch_init): Update.
3563 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3564 * mips-tdep.c (mips_gdbarch_init): Update.
3565 * mcore-tdep.c (mcore_gdbarch_init): Update.
3566 * m32r-tdep.c (m32r_gdbarch_init): Update.
3567 * ia64-tdep.c (ia64_gdbarch_init): Update.
3568 * h8300-tdep.c (h8300_gdbarch_init): Update.
3569 * frv-tdep.c (frv_gdbarch_init): Update.
3570 * cris-tdep.c (cris_gdbarch_init): Update.
3571 * arm-tdep.c (arm_gdbarch_init): Update.
3572 * alpha-tdep.c (alpha_gdbarch_init): Update.
3573
3574 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3575
3576 * PROBLEMS: Add more specific information, and a work-around,
3577 for PR gdb/1458.
3578
3579 2004-06-18 Andrew Cagney <cagney@gnu.org>
3580
3581 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3582 * gdbarch.h, gdbarch.c: Re-generate.
3583 * ada-lang.c (ada_finish_decode_line_1): Update.
3584 * infrun.c (handle_inferior_event): Update.
3585 * infcall.c (find_function_addr): Update.
3586 * linespec.c (minsym_found): Update.
3587 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3588 Update.
3589 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3590 * cli/cli-cmds.c (disassemble_command): Update.
3591 * vax-tdep.c (vax_gdbarch_init): Update.
3592
3593 2004-06-18 Mark Kettenis <kettenis@gnu.org>
3594
3595 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3596
3597 2004-06-17 Andrew Cagney <cagney@gnu.org>
3598
3599 GDB 6.1.1 released from the GDB 6.1 branch.
3600 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3601 * PROBLEMS: Ditto.
3602
3603 2004-06-16 Daniel Jacobowitz <dan@debian.org>
3604
3605 PR gdb/1658
3606 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3607 operation as a uleb128. Found by Michael Coulter.
3608
3609 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3610
3611 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3612 make it non-static.
3613 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3614 to ada-lang.h; this is needed to be able to implement the kill command
3615 in multi-task mode.
3616 (task_ptid): Ditto.
3617 (task_entry): Ditto.
3618 (task_list): Ditto.
3619 (ada_build_task_list): Ditto.
3620
3621 * ada-lang.c: Conditionalize routines and data structures related
3622 to breakpoints, exceptions, completion, and symbol caching on
3623 GNAT_GDB, since these are not yet used in the submitted public sources.
3624 (ada_main_name): Editorial: Move definition out of exception-related
3625 code.
3626
3627 2004-06-15 Andrew Cagney <cagney@gnu.org>
3628
3629 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3630 deprecated_pc_in_call_dummy.
3631
3632 2004-06-15 Alan Modra <amodra@bigpond.net.au>
3633
3634 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3635 bfd_get_section_size_before_reloc or _raw_size.
3636 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3637 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3638 (dwarf2_read_section): Likewise.
3639 * elfread.c (elf_locate_sections): Likewise.
3640 * gcore.c (derive_heap_segment): Likewise.
3641 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3642 * remote-e7000.c (e7000_load): Likewise.
3643 * remote-m32r-sdi.c (m32r_load): Likewise.
3644 * remote-mips.c (mips_load_srec): Likewise.
3645 (pmon_load_fast): Likewise.
3646 * remote.c (compare_sections_command): Likewise.
3647 * symfile.c (add_section_size_callback): Likewise.
3648 (load_section_callback): Likewise.
3649 (pc_in_unmapped_range): Likewise.
3650 (pc_in_mapped_range): Likewise.
3651 (sections_overlap): Likewise.
3652 (list_overlays_command): Likewise.
3653 (simple_overlay_update_1): Likewise.
3654 (simple_overlay_update): Likewise.
3655 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3656 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3657
3658 2004-06-14 Randolph Chung <tausq@debian.org>
3659
3660 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3661 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3662 static.
3663 (hppa_hpux_inferior_created): New function.
3664 (hppa_hpux_init_abi): Register observer.
3665 * symfile.c (hp_cxx_exception_support_initialized)
3666 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3667 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3668
3669 2004-06-14 Randolph Chung <tausq@debian.org>
3670
3671 * MAINTAINERS (Write After Approval): Alphabetize my entry
3672 correctly.
3673
3674 2004-06-14 Andrew Cagney <cagney@gnu.org>
3675
3676 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3677 testsuite maintainer.
3678
3679 2004-06-13 Andrew Cagney <cagney@gnu.org>
3680
3681 * infcmd.c (print_return_value): Fix logic, allow
3682 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3683
3684 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3685 defining any macros.
3686 * gdbarch.h: Re-generate.
3687
3688 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3689 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3690 * gdbarch.h: Re-generate.
3691
3692 * values.c (generic_use_struct_convention): Don't check gcc_p.
3693
3694 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3695 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3696 * gdbarch.h, gdbarch.c: Regenerate.
3697 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3698 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3700 deprecated_max_register_raw_size and
3701 deprecated_max_register_virtual_size.
3702 * v850-tdep.c (v850_gdbarch_init): Ditto.
3703 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3704 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3705 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3706 * cris-tdep.c (cris_gdbarch_init): Ditto.
3707
3708 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3709 * gdbarch.h, gdbarch.c: Re-generate.
3710 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3711 (m68hc11_use_struct_convention): Delete function.
3712 (m68hc11_extract_struct_value_address): Delete function.
3713 (m68hc11_return_value): New function.
3714 (m68hc11_gdbarch_init): Instead of store_return_value,
3715 extract_return_value, return_value_on_stack,
3716 deprecated_extract_struct_value_address and use_struct_convention,
3717 set return_value.
3718 * values.c (using_struct_return): Do not call
3719 RETURN_VALUE_ON_STACK.
3720 * arch-utils.h (generic_return_value_on_stack_not): Delete
3721 declaration.
3722 * arch-utils.c (generic_return_value_on_stack_not): Delete
3723 function.
3724
3725 2004-06-12 Andrew Cagney <cagney@gnu.org>
3726
3727 * values.c (register_value_being_returned): Delete function.
3728 * infcmd.c (legacy_return_value): Delete function.
3729 * infcall.c (call_function_by_hand): Inline
3730 "register_value_being_returned", simplify.
3731 * values.c (using_struct_return): Update comment, refer to
3732 print_return_value instead of register_value_being_returned.
3733 * infcmd.c (print_return_value): Inline calls to
3734 register_value_being_returned and legacy_return_value. Simplify.
3735
3736 2004-06-11 Randolph Chung <tausq@debian.org>
3737
3738 * somread.c (som_symtab_read): Exclude gcc local symbols.
3739
3740 2004-06-11 Randolph Chung <tausq@debian.org>
3741
3742 * infrun.c (handle_inferior_event): Handle the case when a
3743 trampoline ends up in the runtime resolver, and if the trampoline
3744 has no name. Rearrange the code so that all the trampoline
3745 processing happens before other step-out-of-range handling.
3746
3747 2004-06-11 Martin Hunt <hunt@redhat.com>
3748
3749 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3750 has no fpu.
3751
3752 2004-06-10 Andrew Cagney <cagney@gnu.org>
3753
3754 * blockframe.c (legacy_inside_entry_func): Delete.
3755 (legacy_frame_chain_valid): Inline call to
3756 legacy_inside_entry_func, simplify.
3757
3758 2004-06-10 Bob Rossi <bob@brasko.net>
3759
3760 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3761 * dwarf2read.c (partial_die_info): Add dirname field.
3762 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3763 (read_partial_die): Save away DW_AT_comp_dir.
3764 * defs.h (symtab_to_filename): Removed.
3765 * source.c (find_and_open_source): Added.
3766 (open_source_file): Just calls find_and_open_source.
3767 (symtab_to_filename): Removed.
3768 (symtab_to_fullname, psymtab_to_fullname): Added.
3769 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3770 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3771 symtab_to_filename.
3772 * symtab.h (partial_symtab): Add dirname field.
3773 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3774 (mi_cmd_file_list_exec_source_file): Call new function
3775 symtab_to_fullname to find fullname.
3776 (mi_cmd_file_list_exec_source_files): Added.
3777 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
3778 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3779
3780 2004-06-10 Andrew Cagney <cagney@gnu.org>
3781
3782 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3783 to generic_use_struct_convention, the default value.
3784
3785 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3786 of abort.
3787
3788 * ns32k-tdep.c (ns32k_push_arguments): New function.
3789 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3790 * infcall.c (call_function_by_hand): Call error instead of
3791 legacy_push_arguments.
3792 * value.h (legacy_push_arguments): Delete declaration.
3793 * valops.c (legacy_push_arguments): Delete function.
3794 (value_push): Delete function.
3795
3796 2004-06-10 Brian Ford <ford@vss.fsi.com>
3797
3798 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3799 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3800 info.
3801 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3802
3803 2004-06-10 Andrew Cagney <cagney@gnu.org>
3804
3805 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3806 * gdbarch.h, gdbarch.c: Re-generate.
3807 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3808 parameters.
3809 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3810 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3811 deprecated_pc_in_call_dummy instead of
3812 DEPRECATED_PC_IN_CALL_DUMMY.
3813 (arm_skip_prologue): Ditto.
3814 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3815 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3816 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3817 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3818 Ditto.
3819 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3820 (sh64_init_extra_frame_info, sh64_get_saved_register)
3821 (sh64_pop_frame): Ditto.
3822 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3823 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3824 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3825 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3826 (h8300_pop_frame): Ditto.
3827 * blockframe.c (legacy_inside_entry_func)
3828 (legacy_frame_chain_valid): Ditto.
3829 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3830 to deprecated_pc_in_call_dummy.
3831
3832 2004-06-09 Andrew Cagney <cagney@gnu.org>
3833
3834 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3835 provide a default value.
3836 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3837 * gdbarch.h, gdbarch.c: Re-generate.
3838 * arch-utils.c (generic_convert_register_p): Rename
3839 legacy_convert_register_p
3840 (legacy_register_to_value, legacy_value_to_register): Delete
3841 functions.
3842 * arch-utils.h (generic_convert_register_p): Rename
3843 legacy_convert_register_p.
3844 (legacy_register_to_value, legacy_value_to_register): Delete
3845 declarations.
3846
3847 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3848 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3849 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3850 * gdbarch.h, gdbarch.c: Re-generate.
3851 * infcmd.c (default_print_registers_info): Simplify.
3852 * findvar.c (value_of_register): Simplify.
3853 * mi/mi-main.c (get_register): Simplify.
3854 * arch-utils.c (legacy_convert_register_p): Always return 0.
3855 (legacy_register_to_value, legacy_value_to_register): Always call
3856 internal_error.
3857
3858 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3859 #ifdef CLEAR_INSN_CACHE code.
3860 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3861 Delete #ifdef CLEAR_DEFERRED_STORES code.
3862
3863 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3864
3865 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3866 copyright.
3867 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3868
3869 * config/mips/mipsv4.mh: Delete file.
3870
3871 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3872 unreferenced macro.
3873 (hpread_adjust_stack_address): Delete declaration.
3874
3875 2004-06-08 Andrew Cagney <cagney@gnu.org>
3876
3877 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3878 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3879 PTRACE_ATTACH / PTRACE_DETACH available call error.
3880 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3881 * infttrace.c (update_thread_state_after_attach, attach, detach):
3882 Remove #ifdef wrappers.
3883 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3884 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3885 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3886 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3887 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3888 * config/nm-linux.h (ATTACH_DETACH): Delete.
3889 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3890 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3891 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3892 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3893 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3894
3895 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
3896
3897 * configure.in: Set $configdir to the right OS specific value.
3898 Use value when setting $tcldir and $tkdir.
3899 * configure: Regenerate.
3900
3901 2004-06-06 Paul Brook <paul@codesourcery.com>
3902
3903 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3904 records.
3905
3906 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3907
3908 * ada-lang.c (lookup_symbol_in_language): New function to allow
3909 re-use of another language's symbol lookup code. (Placed here
3910 temporarily while Ada support is being integrated into the public
3911 tree).
3912 (restore_language): New auxiliary function for
3913 lookup_symbol_in_language.
3914 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3915 temporarily while Ada support is being integrated into the public
3916 tree).
3917
3918 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3919
3920 * Makefile.in (check//%): New.
3921
3922 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3923 (mn10300_store_return_value): Rewrite.
3924 (mn10300_type_align): New.
3925 (mn10300_use_struct_convention): Rewrite.
3926 (mn10300_return_value): New, using all of the above.
3927 (mn10300_pop_frame_regular): Add saved_regs_size.
3928 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3929
3930 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3931 regs if PC is on movm.
3932
3933 2004-06-07 Jim Blandy <jimb@redhat.com>
3934
3935 Add native Linux support for the PowerPC E500.
3936 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3937 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3938 all architectures except the E500.
3939 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3940 #definitions.
3941 (struct gdb_evrregset_t): New type.
3942 (have_ptrace_getsetevrregs): New variable.
3943 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3944 fetch_spe_registers): New functions.
3945 (fetch_register): Call fetch_spe_register as appropriate.
3946 Assert that we're only passed raw register numbers.
3947 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3948 Don't fetch gprs if they're pseudoregisters.
3949 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3950 store_spe_registers): New functions.
3951 (store_register): Call store_spe_register as appropriate.
3952 Assert that we're only passed raw register numbers.
3953 (store_ppc_registers): Call store_spe_registers as appropriate.
3954 Don't store gprs if they're pseudoregisters.
3955
3956 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3957
3958 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3959 struct if one exists, even if we are dealing with a zombie thread.
3960
3961 2004-06-07 Andrew Cagney <cagney@gnu.org>
3962
3963 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3964 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3965 Rename PC_REQUIRES_RUN_BEFORE_USE.
3966 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3967 #ifdef.
3968
3969 2004-06-07 Randolph Chung <tausq@debian.org>
3970
3971 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3972 unwinding after sp has been saved to the stack but before the end
3973 of the prologue, and after the fp has been modified but before it has
3974 been saved to the stack.
3975 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3976 Remove superfluous definitions.
3977 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3978
3979 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3980
3981 Committed by Randolph Chung.
3982 * hppa-linux-nat.c: Include the correct version of the header file
3983 depending on the kernel version.
3984
3985 2004-06-06 Randolph Chung <tausq@debian.org>
3986
3987 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3988 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3989
3990 2004-06-06 Randolph Chung <tausq@debian.org>
3991
3992 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3993 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3994 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3995 * hppa-tdep.c (hppa_symbol_address): New function definition.
3996 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3997
3998 2004-06-06 Randolph Chung <tausq@debian.org>
3999
4000 * hppa-tdep.h (struct value): Forward declaration.
4001 (gdbarch_tdep): Define tdep find_global_pointer method.
4002 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4003 associated with the function we are trying to call, and write it
4004 to the gp register.
4005 (hppa32_convert_from_funct_ptr_addr): New function.
4006 (hppa_find_global_pointer): New function.
4007 (hppa_gdbarch_init): Set default find_global_pointer method; set
4008 convert_from_func_ptr_addr method.
4009 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4010 (hppa_linux_init_abi): Set find_global_pointer method.
4011 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4012
4013 2004-06-06 Randolph Chung <tausq@debian.org>
4014
4015 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4016 to struct value *function.
4017 * gdbarch.c: Regenerate.
4018 * gdbarch.h: Likewise.
4019 * infcall.c (call_function_by_hand): Pass entire function value
4020 to push_dummy_call.
4021
4022 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4023 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4024 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4025 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4026 * arm-tdep.c (arm_push_dummy_call): Likewise.
4027 * avr-tdep.c (avr_push_dummy_call): Likewise.
4028 * cris-tdep.c (cris_push_dummy_call): Likewise.
4029 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4030 * frv-tdep.c (frv_push_dummy_call): Likewise.
4031 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4032 * hppa-tdep.c (hppa32_push_dummy_call)
4033 (hppa64_push_dummy_call): Likewise.
4034 * i386-tdep.c (i386_push_dummy_call): Likewise.
4035 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4036 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4037 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4038 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4039 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4040 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4041 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4042 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4043 (ppc64_sysv_abi_push_dummy_call): Likewise.
4044 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4045 (ppc64_sysv_abi_push_dummy_call): Likewise.
4046 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4047 * s390-tdep.c (s390_push_dummy_call): Likewise.
4048 * sh-tdep.c (sh_push_dummy_call_fpu)
4049 (sh_push_dummy_call_nofpu): Likewise.
4050 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4051 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4052 * vax-tdep.c (vax_push_dummy_call): Likewise.
4053
4054 2004-06-04 Jim Blandy <jimb@redhat.com>
4055
4056 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4057 gdbarch argument to register_size.
4058
4059 * rs6000-tdep.c (rs6000_store_return_value): Use
4060 regcache_cooked_write_part instead of
4061 deprecated_write_register_bytes.
4062 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4063 not gdbarch_deprecated_store_return_value.
4064
4065 * ppc-linux-nat.c (store_register, fetch_register): Remove
4066 incorrect assertions. Simplify and generalize handling of
4067 transfers whose sizes are not multiples of, or less than, sizeof
4068 (PTRACE_XFER_TYPE).
4069
4070 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4071
4072 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4073 as a new thread event.
4074 * thread-db.c (thread_get_info_callback): If the thread is a
4075 zombie, return TD_THR_ZOMBIE.
4076 (thread_from_lwp): If thread_get_info_callback returns
4077 TD_THR_ZOMBIE, check if the thread is still on the thread list
4078 and return a -1 ptid if not found.
4079 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4080 change the status to TARGET_WAITKIND_SPURIOUS.
4081
4082 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4083
4084 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4085 double values in little endian mode.
4086
4087 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4088
4089 Committed by Andrew Cagney.
4090 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4091 after last enum constant to avoid error from IBM C
4092 compiler.
4093
4094 2004-06-02 Jim Blandy <jimb@redhat.com>
4095
4096 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4097 to 'message', and make it local to the lone block that uses it.
4098
4099 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4100
4101 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4102
4103 * ada-exp.y: Update copyright notice.
4104 Include block.h.
4105
4106 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4107 SPECIAL_VARIABLE and unify the treatment of these cases.
4108
4109 (write_attribute_call0): Remove.
4110 (write_attribute_call1): Remove.
4111 (write_attribute_calln): Remove.
4112 (save_qualifier): Add missing semicolon.
4113
4114 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4115 temporarily disabled to allow compilation with FSF head version.
4116
4117 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4118 use individual operators (OP_*) for all attributes.
4119 (exp syntax): Use write_int.
4120 Handle STRING literals with OP_STRING.
4121 (variable syntax): Add limit parameter to calls to
4122 write_object_renaming.
4123
4124 (temp_parse_space): New definition to hold entities that need
4125 only live until the next call to ada_parse.
4126 (string_to_operator): Rename fields of ada_opname_table entries.
4127
4128 (write_var_from_sym): Record block.
4129 (write_var_from_name): Minor reformatting.
4130 Make sure saved name is properly encoded in the case of multiple
4131 matches, and set its language to Ada.
4132 Update comment.
4133 Modify to indicate unresolved name as symbol in the UNRESOLVED
4134 namespace, allocated in temp_parse_space.
4135 (write_int): New function.
4136
4137 (write_object_renaming): Add max_depth parameter to limit
4138 chains of object renamings.
4139 Handle case where root of renaming expression is itself a renaming.
4140 Use temp_parse_space for temporary name buffer.
4141 Handle renamings to dereferenced pointers (___XEXA suffices).
4142
4143 (ada_parse, yyerror, string_to_operator,
4144 write_var_from_sym, write_var_from_name, write_attribute_call0,
4145 write_attribute_call1, write_attribute_calln,
4146 write_object_renaming): Protoize.
4147
4148 (_initialize_ada_exp): New function.
4149
4150 * ada-lang.c: Update copyright notice.
4151 General terminology change to conform to GNAT compiler usage:
4152 mangle => encode, demangle => decode
4153 Include gdb_obstack.h.
4154 Include gdb_regex.h
4155 Include frame.h
4156 Include hashtab.h
4157 Include completer.h
4158 Include gdb_stat.h
4159 Include block.h
4160 Include infcall.h
4161
4162 (ADA_RETAIN_DOTS): Make sure this is defined.
4163 (TRUNCATION_TOWARDS_ZERO): Define.
4164 (struct string_vector): Define.
4165 (unresolved_names): Remove definition.
4166 (xnew_string_vector): New function.
4167 (string_vector_append): New function.
4168 (extract_string): Make static.
4169 (ada_unqualified_name): New function.
4170 (add_angle_brackets): New function.
4171 (function_name_from_pc): New function.
4172 (place_on_stack): Rename to ensure_lval.
4173
4174 (ensure_lval): Renamed from place_on_stack.
4175 Make identity on lvals.
4176 Update comment.
4177 (is_nonfunction): New interface.
4178 Only symbols in LOC_CONST class can be enumerals.
4179 (fill_in_ada_prototype): Remove; now independent of language.
4180 (add_defn_to_vec): Add obstack and symtab arguments.
4181 Use obstack to hold collected definitions.
4182 (num_defns_collected): New function.
4183 (defns_collected): New function.
4184 (ada_resolve_subexp): Rename to resolve_subexp.
4185 (resolve_subexp): Renamed from ada_resolve_subexp.
4186 (ada_op_name): Return non-const result.
4187 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4188 other purposes.
4189
4190 (to_fixed_array_type): Add declaration.
4191 (coerce_unspec_val_to_type): Remove offset parameter.
4192 (find_sal_from_funcs_and_line): New interface.
4193 (find_line_in_linetable): Ditto.
4194
4195 (all_sals_for_line): Rename to ada_sals_for_line and make
4196 global.
4197 Add new parameter. When set, do not ask the user to choose the
4198 instance, but use the first one found instead.
4199 Use given line number in returned sals.
4200 Fix comment.
4201 Skip the prologue if funfirstline is set.
4202 Correct for memory leak when 0 lines found.
4203
4204 (value_pos_atr): Use pos_atr.
4205 (pos_atr): New function.
4206 (standard_lookup): Add block parameter.
4207
4208 (makeTimeStart): Remove declaration and uses.
4209 (makeTimeStop): Remove declaration and uses.
4210
4211 (ada_completer_word_break_characters): Allow for VMS.
4212 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4213 (raise_sym_name): New constant.
4214 (raise_unhandled_sym_name): New constant.
4215 (raise_assert_sym_name): New constant.
4216 (process_raise_exception_name): New constant.
4217 (longest_exception_template): New constant.
4218 (warning_limit): New variable to limit warnings during expression
4219 evaluation.
4220 (warnings_issued): New variable to keep track of warnings issued.
4221 (known_runtime_file_name_patterns): New constant.
4222 (known_auxiliary_function_name_patterns): New constant.
4223 (symbol_list_obstack): New variable.
4224
4225 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4226 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4227 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4228 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4229 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4230 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4231 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4232 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4233 and strcmp.
4234
4235 (ada_get_field_index): New function.
4236 (lim_warning): New function.
4237 (ada_translate_error_message): New function.
4238 (MAX_OF_SIZE): New function.
4239 (MIN_OF_SIZE): New function.
4240 (UMAX_OF_SIZE): New function.
4241 (UMIN_OF_SIZE): New function.
4242 (discrete_type_high_bound): New function.
4243 (discrete_type_low_bound): New function.
4244 (base_type): New function.
4245 (do_command): Remove.
4246
4247 (ada_update_initial_language): Use language_ada, not language_unknown.
4248 (ada_encode): Renamed from ada_mangle.
4249 Obey ADA_RETAIN_DOTS.
4250 (ada_decode): Renamed from ada_demangle.
4251 Update coding conventions.
4252 (decoded_names_store): New hash table.
4253 (ada_decode_symbol): New function.
4254 (ada_la_decode): New function.
4255
4256 (modify_general_field): Correct computations of offset and bit
4257 position.
4258 (desc_base_type): Handle ref types, too.
4259 (ada_is_direct_array_type): New function.
4260
4261 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4262 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4263 (ada_is_bogus_array_descriptor,ada_type_of_array,
4264 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4265 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4266 ada_is_array_descriptor_type.
4267
4268 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4269 (ada_is_packed_array_type): Handle pointers or
4270 references to packed arrays as well.
4271 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4272 (decode_packed_array_type): Search for the packed array type
4273 symbol in the currently selected block and associated
4274 superblocks too.
4275 Use lookup_symbol again.
4276
4277 (decode_packed_array): Handle pointers and references.
4278 Update call to coerce_unspec_val_to_type.
4279 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4280 (ada_value_primitive_packed_val): Improve comment.
4281
4282 (ada_index_type): Substitute int type for "undefined".
4283 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4284 ada_array_langth, ada_is_string_type): Use renamed
4285 ada_is_simple_array_type.
4286 (empty_array): New function.
4287
4288 (ada_resolve): Rename to resolve.
4289 (resolve): Make static.
4290 Call renamed resolve_subexp.
4291 Update comment.
4292 (ada_resolve_subexp): Rename to resolve_subexp.
4293 (resolve_subexp): Update comment.
4294 Decomment disabled code.
4295 Add LOC_COMPUTED* cases.
4296 Modify to use temporary struct symbols (marked as being in
4297 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4298 OP_UNRESOLVED_VALUE.
4299 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4300 Add OP_STRING case.
4301 Remove OP_ARRAY.
4302 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4303 Use new ada_lookup_symbol_list interface.
4304 Use new ada_resolve_function interface.
4305 Remove OP_TYPE case.
4306
4307 (ada_args_match): Idiot proof against null actuals.
4308 Use intermediate variables to clarify.
4309 (ada_resolve_function): Update comment and interface.
4310 (mangled_ordered_before): Rename to encoded_ordered_before and
4311 update comment.
4312 (sort_choices): Update comment and interface.
4313 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4314 (user_select_syms): New interface.
4315 Use new sort_choices interface.
4316 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4317 (possible_user_operator_p): Idiot-proof against null values.
4318 (ada_simple_renamed_entity): Don't make cleanup; rely on
4319 caller to free result string.
4320 Remove const from return type.
4321 (make_array_descriptor): Rename uses of place_on_stack to
4322 ensure_lval.
4323 Make sure that arrays are on stack.
4324
4325 (HASH_SIZE): Define.
4326 (struct cache_entry): Define.
4327 (cache_space): Define.
4328 (cache): Define.
4329 (clear_ada_sym_cache): New function.
4330 (find_entry): New function.
4331 (lookup_cached_symbol): New function.
4332 (defn_vector_size): Define.
4333 (cache_symbol): New function.
4334 (defn_symbols): Remove.
4335
4336 (standard_lookup): Use lookup_symbol_in_language to get effect of
4337 C lookup.
4338 Cache results.
4339
4340 (symbol_completion_match): New function.
4341 (symbol_completion_add): New function.
4342 (ada_make_symbol_completion_list): New function.
4343
4344 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4345 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4346 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4347 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4348
4349 (ada_lookup_simple_minsym): New function.
4350 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4351
4352 (add_symbols_from_enclosing_procs): New interface.
4353 Conditionalize more helpfully.
4354 Don't bother if program isn't running.
4355 Use new interface to get_frame_block.
4356 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4357
4358 (remove_extra_symbols): New interface.
4359 (xget_renaming_scope): New function.
4360 (is_package_name): New function.
4361 (renaming_is_visible): New function.
4362 (remove_out_of_scope_renamings): New function.
4363
4364 (ada_lookup_symbol_list): New interface.
4365 Properly reinitialize the symbol list obstack.
4366 Don't call add_symbols_from_enclosing_procs if we start from a
4367 static or global block.
4368 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4369 add_symbols_from_enclosing_procs.
4370 Add symtab data to cached entries.
4371 Handle symbols prefixed with
4372 "standard__" specially; strip prefix and don't look in local symbols.
4373 Do not include out of scope renaming symbols in list of
4374 symbols returned.
4375 Add const to block parameter.
4376 Move check for non-local, non-global symbols earlier.
4377 Remove timing stuff.
4378 (ada_lookup_symbol): New interface.
4379 Find symtab as well.
4380 (ada_lookup_symbol_nonlocal): New function.
4381
4382 (is_name_suffix): Enhance suffix detection to recognize
4383 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4384 (is_dot_digits_suffix): New function.
4385 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4386
4387 (ada_add_block_symbols): New interface. Use obstack to return results
4388 in a vector of struct ada_symbol_infos. Add symtab argument.
4389 Use new interface to add_defn_to_vec.
4390 Remove calls to fill_in_ada_prototype.
4391 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4392
4393 (ada_finish_decode_line_1): Add const qualification to local to fix
4394 warning.
4395 Start looking in static block for functions to avoid attempts
4396 to search frame chain for up-level variables.
4397 Adapt to new ada_sals_for_line interface.
4398 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4399 Handle quoting of the function name inside the spec string.
4400 Skip prologue when funfirstline is set and update the
4401 function documentation to that effect.
4402
4403 (debug_print_lines, debug_print_block, debug_print_blocks,
4404 debug_print_symtab): Remove.
4405
4406 (ada_main_name): New function.
4407 (ada_exception_breakpoint_type): New function.
4408 (is_known_support_routine): New function.
4409 (ada_find_printable_frame): Renamed from find_printable_frame and made
4410 global.
4411 Remove level parameter.
4412 Use new interface to select_frame.
4413
4414 (begin_command): Remove.
4415 (ada_adjust_exception_stop): New function.
4416 (ada_print_exception_stop): New function.
4417 (exception_name_from_cond): New function.
4418 (ada_report_exception_break): Replace disabled code with
4419 conditionalization on GNAT_GDB.
4420 Get the exception name from the condition string.
4421 Remove and move functionality into new functions
4422 ada_print_exception_breakpoint_task and
4423 ada_print_exception_breakpoint_nontask.
4424 (error_breakpoint_runtime_sym_not_found): New function.
4425 (is_runtime_sym_defined): New function.
4426 (ada_breakpoint_rewrite): Uncomment suppressed code.
4427 Use symbolic error-message and runtime-symbol names.
4428 Surround runtime symbol names in quotes.
4429 Allow non-specific breakpoints on exceptions and assertions before
4430 program starts.
4431
4432 (ada_is_tagged_type): Add parameter.
4433 (ada_is_tag_type): New function.
4434 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4435 (ada_variant_discrim_type): Ditto.
4436 (value_tag_from_contents_and_address): New function.
4437 (type_from_tag): New function.
4438 (struct tag_args): New structure used to communicate with
4439 ada_tag_name_1.
4440 (ada_tag_name_1): New function.
4441 (ada_tag_name): New function.
4442
4443 (ada_scan_number): Update comment.
4444 (find_struct_field): New function.
4445 (ada_search_struct_field): Make static.
4446 (ada_value_struct_elt): New version that returns references when
4447 given pointers or references to structs.
4448 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4449 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4450 interface.
4451 (ada_value_ind): Use new ada_to_fixed_value interface.
4452 (ada_coerce_ref): Ditto.
4453 (field_offset): Remove.
4454
4455 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4456 (ada_find_renaming_symbol): New function.
4457 (ada_prefer_type): Prefer named types over unnamed ones.
4458 (variant_field_index): New function.
4459 (contains_variant_part): Removed: subsumed by variant_field_index.
4460 (ada_template_to_fixed_record_type): New function, mostly from
4461 template_to_fixed_record_type.
4462 (template_to_fixed_record_type):
4463 Do not scan the type fields beyond the last one; prevents a
4464 potential SEGV.
4465 Handle case where variant field is listed BEFORE discriminant it
4466 depends on.
4467 Fix calculation of record length when bit length is
4468 not evenly divisible by char length.
4469 Move code to ada_template_to_fixed_record_type and call it.
4470
4471 (template_to_static_fixed_type): Revise comment.
4472 Modify to work on ordinary record types as well as templates,
4473 so as to handle fields that use ___XVE or ___XVU encodings.
4474 (to_record_with_fixed_variant_part): Fill out comment.
4475 Initialize C++ stuff in right type.
4476 Allow case where DVAL is null.
4477 Handle case where variant field is not last.
4478 Fix typo concerning record length.
4479 (to_fixed_record_type): Decomment disabled code.
4480 (to_fixed_record_type): Use variant_field_index instead of
4481 contains_variant_part.
4482 (to_fixed_variant_branch_type): Ditto.
4483 (to_fixed_array_type): Decomment disabled code.
4484 (ada_to_fixed_type): Convert tagged types to the specific type.
4485 Deactivate the size-check for array types in order to avoid
4486 some false size alarms.
4487 (to_static_fixed_type): Decomment disabled code.
4488 Modify to call template_to_static_fixed_type
4489 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4490 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4491 Remove valaddr argument, as it is never really used.
4492 (ada_to_fixed_value): Change interface to act on single struct value*
4493 operand.
4494 (adjust_pc_past_prologue): New function.
4495 (ada_attribute_name): Modify to take enum exp_opcode argument.
4496
4497 (ada_enum_name): Recognize new homonym-distinguishing convention.
4498 Adjust local variable's type to remove compiler warning.
4499 Fix a small problem in the part that unqualifies the enumeration name.
4500 (ada_value_binop): New function.
4501 (ada_value_equal): New function.
4502
4503 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4504 Don't give error message when not doing normal evaluation
4505 and a tagged type doesn't seem to contain a structure member.
4506 Give error message for packed arrays.
4507 For indexing arrays, handle pointers to packed arrays correctly.
4508 Handle case of 'first and 'last attributes of bare integral type
4509 without encoded subtype info.
4510 Remove some unnecessary casts.
4511 Fix uninitialized value of type in computing 'first, 'last, or 'length
4512 of array object.
4513 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4514 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4515 calls.
4516 Attributes are now exp_opcode values.
4517 Correct treatment of 'modulus.
4518 Better error message for taking 'length of wrong kind of type;
4519 improve comment.
4520 Change EVAL_NORMAL to noside for consistency.
4521 Use ada_value_binop for DIV, MOD, REM.
4522 Make special case out of array of length 0, since an argument
4523 of 0 upsets some platforms' malloc.
4524 Use OP_STRING instead of OP_ARRAY.
4525 For slice, add check that we have an array type before extracting
4526 a slice out of it. Avoids a SEGV.
4527 When evaluating an array slice, if the array type is a reference to
4528 an aligner type, then replace the aligner type by the actual type.
4529 Decomment disabled code.
4530 Remove some dead code.
4531 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4532 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4533 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4534 and UNOP_MBR to UNOP_IN_RANGE.
4535 If an array type has a parallel ___XVE type, then use it.
4536 Turn arrays into pointers for lvalue arrays.
4537 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4538 bounds error and handle 0-length slices.
4539 Use lim_warning.
4540 When selecting fields, apply ada_to_fixed_value (because the fields
4541 might have ___XVU or ___XVE encodings even if not dynamic.)
4542 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4543 (ada_is_system_address_type): New function.
4544
4545 (get_var_value): Use new interface to ada_lookup_symbol_list.
4546 (get_int_var_value): New interface.
4547 (to_fixed_range_type): Allow unknown bound, with warning.
4548 (ada_is_modular_type): Decomment disabled code.
4549 (ADA_OPERATORS): New definition.
4550 (ada_operator_length): New function.
4551 (ada_expr_op_name): New function.
4552 (ada_forward_operator_length): New function.
4553 (ada_dump_subexp_body): New function.
4554 (ada_print_subexp): New function.
4555 (ada_exp_descriptor): New constant.
4556 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4557 (ada_language_defn): Add ada_exp_descriptor entry.
4558 Change ada_parse => parse.
4559 Add post-parser entry.
4560 Use ada-specific non-local symbol lookup.
4561 Don't use C-style arrays.
4562 String lower-bound is 1.
4563 Decomment disabled code.
4564 (parse): New function.
4565 New fields ada_translate_error_message, ada_lookup_symbol,
4566 ada_lookup_minimal_symbol.
4567
4568 * ada-lang.h: Update copyright dates.
4569 Replace the mangle/demangle terminology throughout by the
4570 more appropriate encode/decode one.
4571 Include breakpoint.h.
4572 Forward declare struct partial_symbol, struct block.
4573 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4574 (EXTRACT_ADDRESS): Remove.
4575 (EXTRACT_INT): Remove.
4576 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4577 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4578 (MAX_RENAMING_CHAIN_LENGTH): Define.
4579 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4580
4581 (enum task_states): Remove.
4582 ada_task_states: Remove.
4583 (fat_string): Remove.
4584 (struct entry_call): Remove.
4585 (struct task_fields): Remove.
4586 (struct task_entry): Remove.
4587
4588 (struct ada_symbol_info): Define.
4589 (enum ada_attribute): Remove.
4590 (enum ada_operator): Define.
4591
4592 (ada_get_field_index): Declare.
4593 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4594 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4595 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4596 (ada_lookup_symbol_list): New interface.
4597 (ada_decode_symbol): Declare.
4598 (ada_decode): Declare.
4599 (ada_lookup_symbol): New interface.
4600 (ada_update_initial_language): Declare.
4601 (ada_lookup_simple_minsym): Declare.
4602 (user_select_syms): New interface.
4603 (ada_sals_for_line): Declare.
4604 (ada_is_tagged_type): New interface.
4605 (ada_tag_name): Declare.
4606 (ada_lookup_struct_elt_type): Remove declaration.
4607 (ada_search_struct_field): Remove declaration.
4608 (ada_attribute_name): New interface.
4609 (ada_is_system_address_type): Declare.
4610 (ada_to_fixed_value): Remove declaration.
4611 (ada_template_to_fixed_record_type_1): Declare.
4612 (get_int_var_value): New interface.
4613 (ada_find_any_symbol): Declare.
4614 (ada_find_renaming_symbol): Declare.
4615 (ada_mangle): Rename to ada_encode.
4616 (ada_simple_renamed_entity): Remove const.
4617 (ada_main_name): Declare.
4618 (get_current_task): Rename to ada_get_current_task.
4619 (get_entry_number): Remove declaration.
4620 (ada_report_exception_break): Remove declaration.
4621 (ada_print_exception_breakpoint_nontask): Declare.
4622 (ada_print_exception_breakpoint_task): Declare.
4623 (ada_find_printable_frame): Declare.
4624
4625 * ada-lex.l: Update copyright notices.
4626 Use xmalloc and xfree instead of malloc and free.
4627 Use new interface to name_lookup.
4628 Use new interface to
4629 ada_mangle=>ada_encode.
4630 Redo handling of '$...' variable to parallel current treatment
4631 in c-exp.y.
4632 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4633 digit_to_int, strtoulst, processInt, processReal, processId,
4634 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4635 yywrap): Protoize.
4636
4637 (processInt): Use cast to remove harmless warning.
4638 (processReal): Modify to get rid of compiler warning on scan formats.
4639
4640 (processId): Replace xmalloc with obstack_alloc for name and remove
4641 call to ada_name_string_cleanup.
4642 Remove obsolete disabled code.
4643 (name_lookup): Ditto.
4644 New interface.
4645 Use obsavestring on temp_parse_space instead of savestring
4646 on name, and remove call to ada_name_string_cleanup.
4647 Free string returned from ada_simple_renamed_entity.
4648 Use new interface to ada_lookup_symbol_list.
4649 Decomment disabled code.
4650 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4651 not types.
4652 When a type name lookup succeeds as a result of
4653 lookup_primitive_typename, check for regular type entry that has not
4654 yet been read in.
4655 Limit length of chain of renamed symbols we are willing to follow.
4656 Do not break names beginning with "standard__" into segments.
4657 (block_lookup): Use new interface to ada_lookup_symbol_list.
4658
4659 * ada-typeprint.c: Update copyright notice.
4660 (demangled_type_name): Rename to decoded_type_name.
4661 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4662 (print_range_bound): Correct handling of negative
4663 bounds that make the index type looked unsigned under STABS.
4664 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4665 (print_range_type_named): Use the builtin int type if no type
4666 corresponding to the given type name could be found.
4667 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4668 Add some bullet-proofing.
4669 (print_variant_clauses): Allow for variant branches with ___XVU
4670 encodings that are not dynamic fields.
4671 Use new interface to ada_is_tagged_type.
4672 (print_record_type): Allow for fields with ___XVE encodings that
4673 are not dynamic fields.
4674 Use new interface to ada_is_tagged_type.
4675 (ada_print_type): ada_is_array_descriptor =>
4676 ada_is_array_descriptor_type.
4677
4678 * ada-valprint.c: Update copyright notice.
4679 Include gdb_string.h
4680 Include infcall.h
4681 (ui_memcpy): New function.
4682 (ada_print_floating): New function.
4683 (ada_print_str): Order arguments correctly.
4684 Correct handling of empty arrays and arrays of 0-length items.
4685 ada_is_array_descriptor => ada_is_array_descriptor_type
4686 Print values of type System.Address in hexadecimal format.
4687 Use ada_print_floating to print floating-point numbers in Ada format.
4688 Print class tag values with type names.
4689 No longer print the address of reference values. Avoids
4690 a potential confusion.
4691 (ada_value_print): Stop printing the object type for reference
4692 values, but preserve that behavior for access types. Avoids
4693 a potential confusion.
4694 Simplify one conditional expression, as the first part is now
4695 necessarily true.
4696 ada_is_array_descriptor => ada_is_array_descriptor_type
4697 Add check for arrays for null records, and print them by hand.
4698
4699 2004-06-01 Jim Blandy <jimb@redhat.com>
4700
4701 * ppc-tdep.h: Delete unused 'regoff' member.
4702 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4703
4704 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4705
4706 Fix PR symtab/1661.
4707 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4708 (hpread_read_struct_type): Likewise.
4709
4710 2004-06-01 Andrew Cagney <cagney@gnu.org>
4711
4712 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4713 instead of xasprintf.
4714 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4715 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4716 (mi_cmd_data_list_register_names)
4717 (mi_cmd_data_list_changed_registers)
4718 (mi_cmd_data_list_register_values)
4719 (get_register, mi_cmd_data_write_register_values)
4720 (mi_cmd_data_write_register_values)
4721 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4722 (mi_cmd_target_download, mi_cmd_target_select)
4723 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4724 (mi_execute_cli_command, mi_execute_async_cli_command)
4725 (mi_execute_async_cli_command): Ditto.
4726 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4727 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4728
4729 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4730 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4731 error_last_message instead of mi_error_last_message.
4732 * mi/mi-main.c (mi_error_last_message): Delete function.
4733
4734 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4735 "invalid number of columns" error. Delete redundant "out of
4736 memory" check.
4737
4738 2004-05-31 Mark Kettenis <kettenis@gnu.org>
4739
4740 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4741 (gregset_t, fpregset_t): Remove typedefs.
4742 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4743 (REG_OFFSET): Rename argument.
4744 (i386bsd_r_reg_offset): Rename from reg_offset.
4745 (REG_ADDR): Remove macro.
4746 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4747 functions.
4748 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4749 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4750 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4751 instead of supply_gregset.
4752 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4753 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4754 instead of fill_gregset.
4755 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4756
4757 * i386bsd-nat.c: Don't include "gregset.h".
4758 (supply_gregset, fill_gregset): Make static.
4759 (supply_fpregset, fill_fpregset): Remove.
4760 * Makefile.in (i386bsd-nat.o): Update dependencies.
4761
4762 2004-05-30 Mark Kettenis <kettenis@gnu.org>
4763
4764 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4765 "gdb_assert.h". Con't include "gregset.h".
4766 (fbsd_make_corefile_notes): Use regset-based core file support
4767 instead off fill_gregset and fill_fpregset.
4768 * Makefile.in (fbsd-proc.o): Update dependencies.
4769
4770 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4771 instructions.
4772 (m88k_frame_prev_register): Simplify code a bit.
4773
4774 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4775 (amd64_collect_fpregset): New function.
4776 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4777
4778 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4779
4780 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4781 (i386_collect_gregset): New function.
4782 (i386_supply_fpregset): Adjust comment.
4783 (i386_collect_fpregset): New function.
4784 (i386_regset_from_core_section): Use i386_collect_gregset and
4785 i386_collect_fpregset.
4786
4787 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4788 handle VALUEP being null.
4789
4790 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4791
4792 2004-05-29 Mark Kettenis <kettenis@gnu.org>
4793
4794 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4795
4796 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4797 assembler in OpenBSD 3.5-current.
4798 (amd64obsd_sigcontext_addr): Likewise.
4799
4800 2004-05-28 Jim Blandy <jimb@redhat.com>
4801
4802 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4803 register set, so our regcache isn't declared "legacy" and our E500
4804 pseudoregister read and write functions aren't ignored.
4805 (rs6000_register_byte, rs6000_register_raw_size,
4806 rs6000_register_virtual_type, rs6000_register_convertible,
4807 rs6000_register_convert_to_virtual,
4808 rs6000_register_convert_to_raw): Deleted.
4809 (rs6000_register_type, rs6000_convert_register_p,
4810 rs6000_register_to_value, rs6000_value_to_register): New
4811 functions.
4812 (rs6000_gdbarch_init): Don't register
4813 gdbarch_deprecated_register_size,
4814 gdbarch_deprecated_register_bytes,
4815 gdbarch_deprecated_register_byte,
4816 gdbarch_deprecated_register_raw_size,
4817 gdbarch_deprecated_register_virtual_type,
4818 gdbarch_deprecated_register_convertible,
4819 gdbarch_deprecated_register_convert_to_virtual, or
4820 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4821 register gdbarch_register_type, gdbarch_convert_register_p,
4822 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4823
4824 2004-05-26 Jim Blandy <jimb@redhat.com>
4825
4826 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4827 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4828 functions, updated to match the register numberings used in GCC.
4829 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4830 rs6000_dwarf2_reg_to_regnum as register number conversions
4831 functions for STABS and Dwarf2.
4832
4833 2004-05-26 Randolph Chung <tausq@debian.org>
4834
4835 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4836 in header file.
4837
4838 2004-05-25 Joel Brobecker <brobecker@gnat.com>
4839
4840 * NEWS: Document new "start" command.
4841
4842 2004-05-25 Randolph Chung <tausq@debian.org>
4843
4844 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4845 hppa-linux.
4846
4847 2004-05-25 Randolph Chung <tausq@debian.org>
4848
4849 * hppa-hpux-tdep.c (offsetof): Define.
4850 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4851 (hppa32_hpux_frame_base_before_sigtramp)
4852 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4853 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4854 (hppa64_hpux_frame_base_before_sigtramp)
4855 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4856 functions.
4857 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4858 (hppa_hpux_sigtramp_frame_unwind_cache)
4859 (hppa_hpux_sigtramp_frame_this_id)
4860 (hppa_hpux_sigtramp_frame_prev_register)
4861 (hppa_hpux_sigtramp_frame_unwind)
4862 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4863 (hppa_hpux_init_abi): Register sigtramp unwinder.
4864 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4865
4866 2004-05-25 Randolph Chung <tausq@debian.org>
4867
4868 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4869 and multiple stack unwinds.
4870 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4871
4872 2004-05-25 Andrew Cagney <cagney@gnu.org>
4873
4874 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4875 * symfile-mem.h: Delete file.
4876 * symfile-mem.c: Do not include "symfile-mem.h".
4877 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4878 "struct bfd_section". When an error do not bother returning NULL.
4879 (add_symbol_file_from_memory_command): Use "struct bfd" and
4880 "struct bfd_section".
4881 * Makefile.in (symfile_mem_h): Delete.
4882 (symfile-mem.o): Update dependencies.
4883
4884 2004-05-25 Nick Roberts <nickrob@gnu.org>
4885
4886 * gdb-mi.el: New file.
4887
4888 2004-05-25 Andrew Cagney <cagney@gnu.org>
4889
4890 * inftarg.c: Include "observer.h".
4891 (child_attach, child_create_inferior): Notify inferior_created.
4892 * corelow.c: Include "observer.h".
4893 (core_open): Notify inferior_created.
4894 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4895
4896 2004-05-25 Andrew Cagney <cagney@gnu.org>
4897
4898 * target.h (struct target_ops): Add from_tty to
4899 to_create_inferior.
4900 (target_create_inferior, find_default_create_inferior): Update.
4901 * infcmd.c (run_command): Update.
4902 * wince.c (child_create_inferior): Update.
4903 * win32-nat.c (child_create_inferior): Update.
4904 * uw-thread.c (uw_thread_create_inferior): Update.
4905 * thread-db.c (thread_db_create_inferior): Update.
4906 * target.c (debug_to_create_inferior)
4907 (find_default_create_inferior): Update.
4908 (maybe_kill_then_create_inferior): Update.
4909 * sol-thread.c (sol_thread_create_inferior): Update.
4910 * remote.c (extended_remote_async_create_inferior)
4911 (extended_remote_create_inferior): Update.
4912 * remote-vx.c (vx_create_inferior): Update.
4913 * remote-st.c (st2000_create_inferior): Update.
4914 * remote-sim.c (gdbsim_create_inferior): Update.
4915 * remote-sds.c (sds_create_inferior): Update.
4916 * remote-rdp.c (remote_rdp_create_inferior): Update.
4917 * remote-rdi.c (arm_rdi_create_inferior): Update.
4918 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4919 * remote-e7000.c (e7000_create_inferior): Update.
4920 * procfs.c (procfs_create_inferior): Update.
4921 * ocd.c (ocd_create_inferior): Update.
4922 * ocd.h (ocd_create_inferior): Update.
4923 * nto-procfs.c (procfs_create_inferior): Update.
4924 * monitor.c (monitor_create_inferior): Update.
4925 * lin-lwp.c (lin_lwp_create_inferior): Update.
4926 * inftarg.c (child_create_inferior): Update.
4927 * hpux-thread.c (hpux_thread_create_inferior): Update.
4928 * gnu-nat.c (gnu_create_inferior): Update.
4929
4930 2004-05-25 Andrew Cagney <cagney@gnu.com>
4931
4932 * MAINTAINERS: Update e-mail address.
4933
4934 2004-05-24 Randolph Chung <tausq@debian.org>
4935
4936 * thread.c (info_threads_command, thread_apply_all_command)
4937 (thread_apply_command, thread_command, do_captured_thread_select):
4938 Remove HPUXHPPA-specific code.
4939
4940 2004-05-24 Randolph Chung <tausq@debian.org>
4941
4942 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4943 unused symbols.
4944 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4945 references.
4946
4947 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4948
4949 * infcmd.c (kill_if_already_running): New function, extracted
4950 from run_command().
4951 (run_command): Replace extracted code by call to
4952 kill_if_already_running().
4953 (start_command): New function.
4954 (_initialize_infcmd): Add "start" command.
4955
4956 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4957
4958 Add OpenBSD/m88k support.
4959 * NEWS (New native configurations): Mention OpenBSD/m88k.
4960 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4961 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4962 * Makefile.in (m88k_tdep_h): New variable.
4963 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4964 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4965 * configure.host: Add m88*-*-openbsd*.
4966 * configure.tgt: Add m88*-*-openbsd*.
4967
4968 2004-05-24 Jim Blandy <jimb@redhat.com>
4969
4970 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4971 to approve changes.
4972
4973 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4974
4975 * symtab.c (fixup_section): Search section table when lookup by
4976 name fails.
4977
4978 2004-05-24 Randolph Chung <tausq@debian.org>
4979
4980 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4981 be "small_struct".
4982
4983 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4984
4985 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4986 register number in regcache_raw_collect call.
4987 (m68kbsd_collect_fpregset): Likewise.
4988 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4989
4990 * regset.h (struct regset): Add back `regset' member.
4991
4992 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4993
4994 * configure.in: Check for td_pcb in `struct thread'.
4995 * configure, config.in: Regenerated.
4996
4997 * dpx2-nat.c: Remove file.
4998 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4999 (dpx2-nat.o): Remove dependencies.
5000
5001 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5002 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5003 (amd64obsd_supply_pcb): New function.
5004 (_initialize_amd64obsd_nat): Enable libkvm interface.
5005 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5006 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5007 (LOADLIBES): New variable.
5008
5009 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5010 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5011 (sparc32nbsd_supply_pcb): New function.
5012 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5013 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5014 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5015 (LOADLIBES): New variable.
5016
5017 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5018
5019 * bsd-kvm.c, bsd-kvm.h: New files.
5020 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5021 "bsd-kvm.h".
5022 (i386fbsd_supply_pcb): New function.
5023 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5024 (i386fbsd-nat.o): Update dependencies.
5025 (bsd_kvm_h): New variable.
5026 (bsd-kvm.o): New dependency.
5027 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5028 (LOADLIBES): New variable.
5029
5030 * regset.c: Tweak comment.
5031 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5032 macro.
5033 * regset.h: Update copyright year.
5034 (struct regset): Remove `descr' member, add `gdbarch' member.
5035 (regset_alloc): Adjust prototype and comment.
5036 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5037 (i386_supply_fpregset): Likewise.
5038 (i386_regset_from_core_section): Update call to regset_alloc.
5039 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5040 REGSET->arch.
5041 (i386obsd_aout_regset_from_core_section): Update call to
5042 regset_alloc.
5043 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5044 REGSET->arch.
5045 (i386nbsd_aout_regset_from_core_section): Update call to
5046 regset_alloc.
5047 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5048 REGSET->arch.
5049 (amd64_regset_from_core_section): Update call to regset_alloc.
5050 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5051 REGSET->arch.
5052 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5053 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5054 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5055 (sparc32nbsd_init_abi): Update call to regset_alloc.
5056 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5057 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5058 (sparc64obsd_init_abi): Update call to regset_alloc.
5059 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5060 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5061 (sparc64nbsd_init_abi): Update call to regset_alloc.
5062 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5063 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5064 (sparc64fbsd_init_abi): Update call to regset_alloc.
5065
5066 2004-05-22 Jim Blandy <jimb@redhat.com>
5067
5068 * ppc-tdep.h (spe_register_p): New declaration.
5069 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5070 ppc_spefscr_regnum.
5071 * rs6000-tdep.c (spe_register_p): New function.
5072 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5073 spefscr.
5074 (rs6000_gdbarch_init): Initialize the new members of the tdep
5075 structure.
5076
5077 2004-05-21 Jim Blandy <jimb@redhat.com>
5078
5079 * ppc-linux-nat.c (fetch_register): Move code back to be next
5080 to the comment that describes it. (Moved code, instead of
5081 comment, for symmetry with store_register.)
5082
5083 Allocate regset structures in the gdbarch's obstack, not using
5084 xmalloc.
5085 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5086 Add 'arch' argument. Allocate the regset on arch's obstack, not
5087 using xmalloc.
5088 * regset.h (regset_alloc): Update declaration.
5089 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5090 gdbarch argument.
5091 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5092 * i386-tdep.c (i386_regset_from_core_section): Same.
5093 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5094 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5095 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5096 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5097 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5098 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5099
5100 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5101
5102 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5103
5104 2004-05-21 Jim Blandy <jimb@redhat.com>
5105
5106 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5107 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5108
5109 2004-05-20 Jim Blandy <jimb@redhat.com>
5110
5111 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5112
5113 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5114
5115 * regset.h: Make prototype const-correct.
5116 * regset.c (regset_xmalloc): Make const-correct.
5117
5118 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5119
5120 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5121 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5122 (symbol_search_name): Declare.
5123
5124 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5125 (iter_name_next_hashed): Ditto.
5126 (iter_name_next_linear): Ditto.
5127 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5128
5129 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5130 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5131 (symbol_search_name): New function.
5132
5133 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5134
5135 * minsyms.c (build_minimal_symbol_hash_tables): Change
5136 test for adding to demangled hash table to check for difference
5137 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5138
5139 2004-05-19 Jim Blandy <jimb@redhat.com>
5140
5141 Use a constructor function to create regset structures.
5142 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5143 (struct regset): Use supply_regset_ftype. Add new
5144 'collect_regset' member.
5145 (regset_xmalloc): New declaration.
5146 * regset.c: New file.
5147 * am64-tdep.c (amd64_regset_from_core_section): Use
5148 regset_xmalloc to construct regset structures.
5149 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5150 * i386-tdep.c (i386_regset_from_core_section): Same.
5151 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5152 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5153 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5154 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5155 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5156 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5157 * Makefile.in (COMMON_OBS): Add regset.o.
5158 (regset.o): New rule.
5159
5160 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5161
5162 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5163 and pthread_cond_wait.c.
5164
5165 2004-05-18 Jim Blandy <jimb@redhat.com>
5166
5167 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5168 before the mach-specific switch, and then let the individual cases
5169 override the defaults, rather than leaving them uninitialized
5170 until the switch and then setting them in each case.
5171
5172 2004-05-18 Randolph Chung <tausq@debian.org>
5173
5174 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5175 millicode functions.
5176
5177 2004-05-18 Randolph Chung <tausq@debian.org>
5178
5179 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5180 references to dld_flags_buffer consistent.
5181
5182 2004-05-18 Randolph Chung <tausq@debian.org>
5183
5184 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5185 it for unwinding the stack.
5186
5187 2004-05-18 Randolph Chung <tausq@debian.org>
5188
5189 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5190 Undefine these so we can overide them using gdbarch.
5191
5192 2004-05-18 Randolph Chung <tausq@debian.org>
5193
5194 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5195 handling for 64-bit HPUX (elf).
5196
5197 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5198
5199 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5200 constants.
5201 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5202 * ia64-tdep.c (examine_prologue): Likewise.
5203 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5204 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5205
5206 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5207
5208 * vax-tdep.c (vax_return_value): Implement
5209 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5210
5211 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5212
5213 * vax-tdep.c (vax_return_value): Fix typo.
5214
5215 2004-05-17 Andrew Cagney <cagney@redhat.com>
5216
5217 * MAINTAINERS: Mark Salter was also responsible for
5218 testsuite/config/
5219
5220 * NEWS: Mention signal fixes.
5221
5222 2004-05-17 Randolph Chung <tausq@debian.org>
5223
5224 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5225 check to see if we are unwinding an export stub. Export stubs clobber
5226 the %rp in the call path and stores the original rp in a stack slot.
5227
5228 2004-05-17 Jim Blandy <jimb@redhat.com>
5229
5230 * MAINTAINERS: Update address for J.T. Conklin.
5231
5232 2004-05-17 Randolph Chung <tausq@debian.org>
5233
5234 * hppa-tdep.c: Remove superfluous #include's.
5235 * Makefile.in (hppa-tdep.o): Update dependencies.
5236
5237 2004-05-17 Randolph Chung <tausq@debian.org>
5238
5239 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5240 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5241 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5242 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5243 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5244 Remove static function declarations.
5245
5246 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5247
5248 * alphabsd-nat.c: Update copyright year.
5249 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5250
5251 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5252 and M68K_A2_REGNUM.
5253
5254 * m68k-tdep.c (m68k_svr4_return_value): Implement
5255 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5256
5257 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5258
5259 * sol-thread.c Update copyright year. Fix various coding
5260 standards violations. Tweak a few comments.
5261 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5262 Delete prototypes.
5263
5264 2004-05-15 Randolph Chung <tausq@debian.org>
5265
5266 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5267 as pointer instead of array reference since HPUX compiler does
5268 not accept unsized array arguments.
5269 * somsolib.c (dld_flags_buffer): Use constant array size.
5270
5271 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5272
5273 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5274 offset with decimal offset.
5275 (amd64obsd_sigcontext_addr): Return correct address for entire
5276 signal trampoline.
5277
5278 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5279 instead of get_frame_base.
5280
5281 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5282 (fill_gregset): Use regcache_raw_collect.
5283
5284 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5285 ppcobsd-tdep.c.
5286
5287 * config/sparc/tm-nbsd64.h: Remove file.
5288 * config/tm-sunos.h: Remove file.
5289
5290 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5291
5292 * rs6000-tdep.c (store_param_on_stack_p): New function,
5293 an improved version of some code extracted from skip_prologue().
5294 (skip_prologue): Use store_param_on_stack_p() to detect
5295 instructions saving a parameter on the stack. Detect when r0
5296 is used to save a parameter.
5297 Do not mark "li rx, SIMM" instructions as part of the prologue,
5298 unless the following instruction is also part of the prologue.
5299
5300 2004-05-14 Andrew Cagney <cagney@redhat.com>
5301
5302 * infrun.c (handle_inferior_event): Simplify
5303 STEP_OVER_UNDEBUGGABLE.
5304
5305 * infrun.c (handle_step_into_function): Delete function.
5306 (handle_inferior_event): Inline calls to
5307 handle_step_into_function.
5308
5309 2004-05-14 Jerome Guitton <guitton@gnat.com>
5310
5311 * rs6000-nat.c: Fix a comment.
5312
5313 2004-05-12 David Anderson <davea@sgi.com>
5314
5315 Committed by Jim Blandy <jimb@redhat.com>:
5316 * regcache.c (struct regcache_descr): fix comment spelling.
5317
5318 2004-05-13 J. Brobecker <brobecker@gnat.com>
5319
5320 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5321 Fixes a link link failure.
5322
5323 2004-05-13 J. Brobecker <brobecker@gnat.com>
5324
5325 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5326 error that was causing the build to fail.
5327
5328 2004-05-13 J. Brobecker <brobecker@gnat.com>
5329
5330 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5331 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5332
5333 2004-05-13 Andrew Cagney <cagney@redhat.com>
5334
5335 * infrun.c (handle_inferior_event): Check for
5336 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5337 calls. Update comments.
5338
5339 2004-05-13 Jim Blandy <jimb@redhat.com>
5340
5341 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5342 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5343 (store_regs_user_thread, store_regs_kernel_thread): Use
5344 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5345 * ppc-linux-nat.c (fill_gregset): Same.
5346 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5347 (ppc_linux_sigtramp_cache): Same.
5348 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5349 (ppcnbsd_sigtramp_cache_init): Same.
5350 * rs6000-nat.c (fetch_core_registers): Same.
5351 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5352 (rs6000_frame_cache): Same.
5353
5354 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5355 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5356 of assuming that the gprs are numbered starting with zero.
5357 * ppc-linux-nat.c (fill_gregset): Same.
5358 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5359 * ppcnbsd-nat.c (getregs_supplies): Same.
5360 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5361 * rs6000-nat.c (fetch_core_registers): Same.
5362 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5363
5364 2004-05-07 Michael Snyder <msnyder@redhat.com>
5365
5366 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5367 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5368
5369 2004-05-13 Andrew Cagney <cagney@redhat.com>
5370
5371 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5372
5373 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5374
5375 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5376 base_address for shared libraries.
5377
5378 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5379
5380 * MAINTAINERS (write after approval): Add myself.
5381
5382 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5383
5384 * breakpoint.c (bpstat_stop_status): Add new argument
5385 STOPPED_BY_WATCHPOINT. Use it instead of testing
5386 target_stopped_data_address agaist 0 to check whether
5387 or not we stopped due to a hardware watchpoint.
5388 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5389 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5390 with new argument.
5391
5392 2004-05-12 Jim Blandy <jimb@redhat.com>
5393
5394 * configure.in: When checking whether we should use the -bbigtoc
5395 option, don't forget to restore the original value of LDFLAGS.
5396 * configure: Regenerated.
5397
5398 2004-05-12 Andrew Cagney <cagney@redhat.com>
5399
5400 * thread.c (load_infrun_state): Delete step_sp.
5401 * infrun.c (context_switch): Ditto.
5402 * inferior.h (step_sp): Ditto.
5403 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5404 * gdbthread.h (struct thread_info, save_infrun_state)
5405 (restore_infrun_state): Ditto.
5406
5407 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5408
5409 * MAINTAINERS (write after approval): Add myself.
5410
5411 2004-05-12 Andrew Cagney <cagney@redhat.com>
5412
5413 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5414 eliminate reference to step_sp.
5415 (struct execution_control_state, init_execution_control_state)
5416 (handle_inferior_event, keep_going): Delete update_step_sp and
5417 step_sp.
5418 * infcmd.c (step_sp): Note that variable is unused.
5419
5420 2004-05-11 Andrew Cagney <cagney@redhat.com>
5421
5422 * infrun.c (step_over_function): Delete function.
5423 (handle_step_into_function): Use insert_step_resume_breakpoint.
5424 (insert_step_resume_breakpoint): Fix assertion.
5425
5426 2004-05-11 Nick Roberts <nickrob@gnu.org>
5427
5428 * utils.c (defaulted_query): Just use the normal query input type
5429 when printing the annotations.
5430
5431 2004-05-11 Andrew Cagney <cagney@redhat.com>
5432
5433 * infrun.c (handle_inferior_event): Simplify code handling
5434 step-into or return-from a signal trampoline.
5435
5436 2004-05-11 Andrew Cagney <cagney@redhat.com>
5437
5438 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5439 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5440
5441 2004-05-10 Jim Blandy <jimb@redhat.com>
5442
5443 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5444 with a call to internal_error.
5445
5446 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5447 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5448 processor variant lacks those registers.
5449 (ppc_floating_point_unit_p): Change description to make it clear
5450 that this returns info about the ISA, not the ABI.
5451 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5452 return true or false by checking tdep->ppc_fp0_regnum and
5453 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5454 arch/mach switching done in rs6000_gdbarch_init; it's better to
5455 keep that logic there, and just check the results here.
5456 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5457 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5458 floating-point registers.
5459 (ppc_supply_fpregset, ppc_collect_fpregset)
5460 (rs6000_push_dummy_call, rs6000_extract_return_value)
5461 (rs6000_store_return_value): Assert that we have floating-point
5462 registers.
5463 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5464 (rs6000_frame_cache): Don't note the locations at which
5465 floating-point registers were saved if we have no fprs.
5466 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5467 registers.
5468 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5469 (store_regs_user_thread, store_regs_kernel_thread): Only call
5470 supply_fprs / fill_fprs if we actually have floating-point
5471 registers.
5472 (special_register_p): Check ppc_fpscr_regnum before matching
5473 against it.
5474 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5475 supply / collect fpscr if we don't have it.
5476 * ppc-bdm.c: #include "gdb_assert.h".
5477 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5478 have floating-point registers, since I can't test this code on
5479 FP-free systems to adapt it.
5480 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5481 fpscr and floating point register numbers if they don't exist.
5482 (fetch_register): Assert that we have floating-point registers
5483 before we reach the code that handles them.
5484 (store_register): Same. And use tdep instead of calling
5485 gdbarch_tdep again.
5486 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5487 don't have them.
5488 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5489 fprs and fpscr if we don't have them.
5490 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5491 don't have them.
5492 * ppcnbsd-nat.c: #include "gdb_assert.h".
5493 (getfpregs_supplies): Assert that we have floating-point registers.
5494 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5495 * ppcobsd-tdep.c: #include "gdb_assert.h".
5496 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5497 have floating-point registers.
5498 * rs6000-nat.c (regmap): Don't match against the fpscr and
5499 floating point register numbers if they don't exist.
5500 (fetch_inferior_registers, store_inferior_registers,
5501 fetch_core_registers): Only fetch / store / supply the
5502 floating-point registers and the fpscr if we have them.
5503 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5504 (ppcobsd-tdep.o): Update dependencies.
5505
5506 2004-05-10 Andrew Cagney <cagney@redhat.com>
5507
5508 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5509 (context_switch): Do not switch through_sigtramp_breakpoint.
5510 * gdbthread.h (save_infrun_state, load_infrun_state)
5511 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5512 and structure member.
5513 * thread.c (load_infrun_state, save_infrun_state): Update.
5514
5515 2004-05-10 Mark Kettenis <kettenis@gnu.org>
5516
5517 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5518
5519 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5520
5521 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5522 throughout.
5523 * aclocal.m4: Regenerate.
5524
5525 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5526
5527 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5528
5529 2004-05-10 Andrew Cagney <cagney@redhat.com>
5530
5531 * infrun.c (check_sigtramp2): Delete function.
5532 (handle_inferior_event): When single stepping, and taking a
5533 signal, set a breakpoint at the signal return address. Delete
5534 redundant calls to check_sigtramp2.
5535 (insert_step_resume_breakpoint): New function.
5536 (through_sigtramp_breakpoint, handle_inferior_event)
5537 (follow_exec, wait_for_inferior, fetch_inferior_event)
5538 (currently_stepping, keep_going): Delete most uses of
5539 through_sigtramp_breakpoint, not that it should be deleted.
5540 (delete_breakpoint_current_contents): Delete function.
5541
5542 2004-05-10 Randolph Chung <tausq@debian.org>
5543
5544 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5545 target.
5546 * config/pa/tm-linux.h: New file.
5547
5548 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
5549
5550 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5551 of prefixes. Don't print the prefix twice in the CLI.
5552
5553 2004-05-10 Jim Blandy <jimb@redhat.com>
5554
5555 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5556 collect all the gprs.
5557
5558 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5559 loop collecting gprs.
5560
5561 2004-05-09 Andrew Cagney <cagney@redhat.com>
5562
5563 * remote-vx.c (net_step): Delete step-range code.
5564 * remote.c (remote_resume, init_all_packet_configs)
5565 (set_remote_protocol_E_packet_cmd)
5566 (show_remote_protocol_E_packet_cmd)
5567 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5568 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5569 (show_remote_protocol_e_packet_cmd): Ditto.
5570
5571 2004-05-09 Mark Kettenis <kettenis@gnu.org>
5572
5573 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5574
5575 * hppa-tdep.h: Update copyright year.
5576 (struct trad_frame_saved_reg): Add opaque declaration.
5577
5578 * amd64-tdep.c (amd64_return_value): Implement
5579 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5580
5581 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5582 (m68k_value_to_register): New functions.
5583 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5584 value_to_register.
5585
5586 * defs.h (enum return_value_convention): Add
5587 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5588 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5589 * infcmd.c (legacy_return_value): New function.
5590 (print_return_value): Rwerite to implement
5591 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5592 * values.c (using_struct_return): Check for inequality to
5593 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5594 RETURN_VALUE_STRUCT_CONVENTION.
5595 * i386-tdep.c (i386_return_value): Implement
5596 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5597
5598 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5599 include "symtab.h", "opcode/vax.h" and "inferior.h".
5600 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5601 to read_memory_unsigned_integer.
5602 (vax_gdbarch_init): Reorder.
5603 (_initialize_vax_tdep): Spell out prototype.
5604 * Makefile.in (vax-tdep.o): Update dependencies.
5605
5606 2004-05-08 Andrew Cagney <cagney@redhat.com>
5607
5608 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5609 * target.c (target_detach, target_disconnect): Ditto.
5610
5611 * infcall.c (call_function_by_hand): When no
5612 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5613 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5614 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5615 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5616 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5617
5618 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5619 * gdbarch.h, gdbarch.c: Re-generate.
5620 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5621 deprecated_fix_call_dummy.
5622 * v850-tdep.c (v850_gdbarch_init): Ditto.
5623 * infcall.c (call_function_by_hand): Do not call
5624 DEPRECATED_FIX_CALL_DUMMY.
5625
5626 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5627 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5628 * gdbarch.h, gdbarch.c: Re-generate.
5629 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5630 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5631 deprecated_sizeof_call_dummy_words.
5632 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5634 * v850-tdep.c (v850_gdbarch_init): Ditto.
5635 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5636 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5637 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5638 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5639 * arch-utils.h (legacy_call_dummy_words)
5640 (legacy_sizeof_call_dummy_words): Delete declarations.
5641 * arch-utils.c (legacy_call_dummy_words)
5642 (legacy_sizeof_call_dummy_words): Delete variables.
5643
5644 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5645 * gdbarch.h, gdbarch.c: Re-generate.
5646 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5647 * infcall.c (call_function_by_hand): Eliminate call to
5648 DEPRECATED_PUSH_DUMMY_FRAME.
5649 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5650 push_dummy_frame.
5651 (ns32k_push_dummy_frame): Delete function.
5652
5653 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5654 deprecated_call_dummy_breakpoint_offset or
5655 deprecated_call_dummy_start_offset.
5656 * dummy-frame.c, arm-tdep.c: Update comments.
5657 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5658 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5659 * gdbarch.h, gdbarch.c: Re-generate.
5660
5661 * infcall.c (legacy_push_dummy_code): Delete function.
5662 (push_dummy_code): Delete call.
5663
5664 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5666 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5667 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5668 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5669 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5670
5671 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5672 (struct frame_info): Delete opaque declaration.
5673 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5674 * frame.c (get_frame_type): Delete call.
5675
5676 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5677 pc_in_call_dummy.
5678 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5679 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5680
5681 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5682
5683 * alphanbsd-tdep.c: Include "gdb_string.h".
5684 * armnbsd-tdep.c: Update copyright year.
5685 Include "gdb_string.h".
5686 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5687 dependencies.
5688
5689 * delta68-nat.c: Remove file.
5690 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5691 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5692 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5693 (delta68-nat.o): Remove dependency.
5694
5695 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5696 function.
5697 (m68k_gdbarch_init): Don't set
5698 deprecated_frameless_function_invocation.
5699
5700 2004-05-07 Randolph Chung <tausq@debian.org>
5701
5702 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5703 read_memory_nobpt for code reading when doing frame unwinding.
5704 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5705
5706 2004-05-07 Randolph Chung <tausq@debian.org>
5707
5708 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5709 instead of sp, handle sigaltstack case.
5710 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5711 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5712 signal handler and not that of the caller.
5713 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5714 hppa_linux_sigtramp_find_sigcontext.
5715
5716 2004-05-07 Randolph Chung <tausq@debian.org>
5717
5718 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5719 hppa-linux-nat.c.
5720 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5721 * hppa-linux-nat.c (fetch_register, store_register): Define.
5722 (fetch_inferior_registers, store_inferior_registers): Define.
5723 (supply_gregset): Add comment and clean up some unneeded code.
5724 (fill_gregset): Add comment and fix so that it saves registers in
5725 the right place in the gregset.
5726 (fill_fpregset): Fix buffer overrun problem.
5727 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5728
5729 2004-05-07 Randolph Chung <tausq@debian.org>
5730
5731 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5732 do common handling of the pcoqt register.
5733 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5734 to use helper function.
5735 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5736 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5737 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5738 generic fallback unwinder when all else fails.
5739 (hppa_gdbarch_init): Add fallback sniffer.
5740 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5741 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5742 to use helper function.
5743
5744 2004-05-08 Joel Brobecker <brobecker@gnat.com>
5745
5746 * config/djgpp/fnchange.lst: Add translation rules for
5747 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5748
5749 2004-05-08 Mark Kettenis <kettenis@gnu.org>
5750
5751 * frame.c (get_prev_frame_1): Work around GCC bug.
5752 * frame.h: Add comment about GCC bug.
5753
5754 2004-05-07 Andrew Cagney <cagney@redhat.com>
5755
5756 * observer.c: Include "commands.h" and "gdbcmd.h".
5757 (observer_debug, _initialize_observer): Add the
5758 command "set/show debug observer".
5759 * observer.sh: When observer debugging, log notify calls.
5760 * Makefile.in (observer.o): Update dependencies.
5761
5762 2004-05-07 Jason Molenda (jmolenda@apple.com)
5763
5764 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5765
5766 2004-05-07 Jim Blandy <jimb@redhat.com>
5767
5768 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5769 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5770 to recognize gpr regnums, instead of assuming that
5771 tdep->ppc_fp0_regnum marks the end of the general-purpose
5772 registers.
5773
5774 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5775 the given architecture has floating-point registers.
5776
5777 2004-05-07 Andrew Cagney <cagney@redhat.com>
5778
5779 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5780 macro defined to 1.
5781 * gdbarch.h, gdbarch.c: Re-generate.
5782 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5783 deprecated_use_generic_dummy_frames.
5784
5785 2004-05-07 Brian Ford <ford@vss.fsi.com>
5786
5787 * NEWS: Mention Cygwin DWARF 2 support.
5788
5789 2004-05-07 Andrew Cagney <cagney@redhat.com>
5790
5791 * objfiles.h (struct entry_info): Delete unused fields
5792 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5793 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5794 * mipsread.c (mipscoff_symfile_read): Update.
5795 * mdebugread.c (parse_partial_symbols): Update.
5796 * dwarfread.c (read_file_scope): Update.
5797 * dwarf2read.c (read_file_scope): Update.
5798 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5799 * coffread.c (complete_symtab): Update.
5800
5801 2004-05-07 Mark Kettenis <kettenis@gnu.org>
5802
5803 * infcall.c (_initialize_infcall): Fix typo.
5804
5805 2004-05-07 Andrew Cagney <cagney@redhat.com>
5806
5807 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5808 * command.h (add_setshow_zinteger_cmd): Declare.
5809
5810 2004-05-06 Randolph Chung <tausq@debian.org>
5811
5812 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5813 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5814 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5815 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5816 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5817 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5818 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5819 definitions ...
5820 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5821 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5822 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5823 (hppa64_hpux_frame_find_saved_regs_in_sig)
5824 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5825 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5826 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5827 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5828 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5829 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5830 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5831 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5832 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5833 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5834 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5835 (hppa32_register_type, hppa_cannot_store_register)
5836 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5837 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5838 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5839 * pa64solib.c (pa64_solib_have_load_event)
5840 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5841 (pa64_solib_unloaded_library_pathname): Likewise.
5842 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5843 (som_solib_library_pathname): Likewise.
5844
5845 2004-05-05 Jim Ingham <jingham@apple.com>
5846
5847 * breakpoint.c (create_breakpoints): Copy the ignore count and
5848 thread id over from the pended breakpoint to the actual
5849 breakpoint.
5850
5851 2004-05-05 Andrew Cagney <cagney@redhat.com>
5852
5853 * gdbarch.sh (PARM_BOUNDARY): Delete.
5854 gdbarch.h, gdbarch.c: Re-generate.
5855 * valops.c (PARM_BOUNDARY): Delete macro.
5856 (value_push): Delete PARM_BOUNDARY code.
5857 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5858
5859 2004-05-04 Jim Blandy <jimb@redhat.com>
5860
5861 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5862 Don't assume that the gprs, fprs, and UISA sprs are
5863 contiguous, start at register number zero, and end with fpscr.
5864 Instead, use the numbers from the tdep structure.
5865
5866 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5867 should no longer be used in code specific to the RS6000 and its
5868 derivatives.
5869 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5870 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5871 tdep->ppc_fp0_regnum.
5872 (ppc_supply_fpregset, ppc_collect_fpregset)
5873 (rs6000_push_dummy_call, rs6000_extract_return_value)
5874 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5875 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5876 FP0_REGNUM.
5877 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5878 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5879 Same.
5880 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5881 bdm_ppc_store_registers): Same.
5882 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5883 (store_register, fill_fpregset): Same.
5884 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5885 (ppc_linux_supply_fpregset): Same.
5886 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5887 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5888 Same.
5889 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5890 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5891 ppc64_sysv_abi_return_value): Same.
5892 * rs6000-nat.c (regmap, fetch_inferior_registers)
5893 (store_inferior_registers, fetch_core_registers): Same.
5894
5895 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5896
5897 * m68knbsd-nat.c: Remove file.
5898 * m68knbsd-tdep.c: Remove file.
5899 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5900 dependencies.
5901 * configure.host: Add m68k-*-netbsdelf*.
5902 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5903 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5904 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5905 (XM_FILE): Remove.
5906 * config/m68k/nbsdelf.mh: New file.
5907 * config/m68k/nbsd.mt: New file.
5908 * config/m68k/nbsdaout.mt: Remove file.
5909 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5910 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5911 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5912 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5913 (use_struct_convention): Remove prototype.
5914 (USE_STRUCT_CONVENTION): Remove define.
5915 * config/m68k/xm-nbsd.h: Remove file.
5916
5917 2004-05-04 Michael Snyder <msnyder@redhat.com>
5918
5919 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5920 reg_struct_return method (as gcc usually does for cross targets).
5921
5922 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5923
5924 Committed by Andrew Cagney.
5925 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5926 alignment padding when accessing ucontext struct members.
5927
5928 2004-05-04 Jim Blandy <jimb@redhat.com>
5929
5930 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5931 'ppc_gplast_regnum' member.
5932 (ppc_num_gprs): New enum constant.
5933 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5934 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5935 * rs6000-nat.c (regmap, fetch_inferior_registers,
5936 store_inferior_registers): Same.
5937 * rs6000-tdep.c (e500_pseudo_register_read)
5938 (e500_pseudo_register_write): Same.
5939 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5940
5941 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5942 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5943 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5944 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5945 FPLAST_REGNUM.
5946 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5947 Same.
5948 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5949 * rs6000-nat.c (regmap, fetch_inferior_registers)
5950 (store_inferior_registers): Same.
5951
5952 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5953 with FPLAST_REGNUM.
5954
5955 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5956
5957 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5958 failure detected by recent versions of GCC.
5959 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5960 to be consistent with the usage in dwarf2_create_include_psymtab.
5961
5962 2004-05-03 Michael Snyder <msnyder@redhat.com>
5963
5964 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5965 (heuristic_proc_start): Whitespace cleanup.
5966
5967 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5968
5969 * sun3-nat.c: Remove file.
5970 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5971 dependencies.
5972 (ALLDEPFILES): Remove sun3-nat.c.
5973 (sun3-nat.o): Remove dependencies.
5974
5975 * i386-interix-nat.c, i386-interix-tdep.c,
5976 config/i386/nm-interix.h, config/i386/interix.mh,
5977 config/i386/interix.mt: Remove files.
5978 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5979 dependencies.
5980
5981 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5982
5983 * m68k-tdep.h (struct gdbarch_tdep): Add member
5984 struct_value_regnum.
5985 (m68k_svr4_init_abi): New prototype.
5986 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5987 different calling conventions.
5988 (m68k_extract_return_value): Remove code dealing with single-field
5989 structs.
5990 (m68k_store_return_value): Remove code dealing with single-field
5991 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5992 (m68k_extract_struct_value_address): Remove function.
5993 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5994 (m68k_reg_struct_return_p, m68k_return_value)
5995 (m68k_svr4_return_value): New functions.
5996 (m68k_use_struct_convention): Remove function.
5997 (m68k_push_dummy_call): Use new struct_value_regnum member of
5998 `struct gdbarch_tdep' instead of hardcoded register number to
5999 store STRUCT_ADDR.
6000 (m68k_svr4_init_abi): New function.
6001 (m68k_gdbarch_init): Don't set extract_return_value,
6002 store_return_values, deprecated_extract_struct_value_address and
6003 use_struct_convention. Set return_value instead. Initialize new
6004 struct_value_regnum member of `struct gdbarch_tdep'.
6005 * m68klinux-tdep.c: Update copyright year.
6006 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6007 (m68k_linux_extract_struct_value_address): Remove function.
6008 (m68k_linux_init_abi): Don't set extract_return_value,
6009 store_return_values, deprecated_extract_struct_value_address and
6010 use_struct_convention. Call m68k_svr4_init_abi but override the
6011 new struct_value_regnum member of `struct gdbarch_tdep'.
6012 * Makefile.in (m68k-tdep.o): Update dependencies.
6013
6014 2004-05-03 J. Brobecker <brobecker@gnat.com>
6015
6016 * dwarf2read.c (line_header): Add new included_p field in
6017 field file_names.
6018 (partial_die_info): New field has_stmt_list. New field line_offset.
6019 (dwarf2_create_include_psymtab): New function.
6020 (dwarf2_build_include_psymtabs): New function.
6021 (add_file_name): Add forward declaration. Initialize new field.
6022 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6023 to be able to determine the list of files included by the
6024 given unit, and build their associated psymtabs.
6025 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6026 files as well.
6027 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6028 (read_file_scope): Update call to dwarf_decode_lines.
6029 (read_partial_die): Handle DW_AT_stmt_list attributes.
6030
6031 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6032
6033 Unfix PR gdb/1626.
6034 * configure.in: Revert special case for osf5.*.
6035 * configure: Regenerate.
6036
6037 2004-05-02 Jim Blandy <jimb@redhat.com>
6038
6039 Move the symbol-file-from-memory functions into their own file.
6040 * symfile-mem.c, symfile-mem.h: New files.
6041 * symfile.c (symbol_file_add_from_bfd): New function.
6042 (symbol_file_add): Call symbol_file_add_from_bfd.
6043 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6044 Moved to symfile-mem.c.
6045 (_initialize_symfile): Move definition of
6046 add-symbol-file-from-memory command to symfile-mem.c.
6047 * symfile.h (symbol_file_add_from_bfd): New declaration.
6048 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6049 * config/powerpc/linux.mt (TDEPFILES): Same.
6050 * Makefile.in (SFILES): Add symfile-mem.c.
6051 (symfile_mem_h): New variable.
6052 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6053 (symfile-mem.o): New rule.
6054
6055 2004-05-01 Andrew Cagney <cagney@redhat.com>
6056
6057 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6058 frame_find_by_id instead of frame_relative_level.
6059 (do_enable_breakpoint): Ditto.
6060 * thread.c: Update copyright.
6061 (info_threads_command): Ditto, simplify.
6062
6063 * frame.c (deprecated_generic_get_saved_register): Delete
6064 function, moved to "xstormy16-tdep.c".
6065 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6066 deprecated_generic_get_saved_register from "frame.c".
6067 (xstormy16_frame_saved_register): Call
6068 xstormy16_get_saved_register.
6069 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6070 static.
6071 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6072 * frame.h (deprecated_generic_get_saved_register): Delete.
6073
6074 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6075
6076 * dwarfread.c: Update documentation on the state of dwarf-1.
6077
6078 2004-05-01 Andrew Cagney <cagney@redhat.com>
6079
6080 * stack.c (select_frame_command): Delete call to
6081 frame_relative_level.
6082 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6083 Delete #if0 code.
6084 (frame_info): Do not print FRAMELESS.
6085 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6086 (catch_info): Delete #if0 code.
6087
6088 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6089 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6090 of frame_relative_level.
6091 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6092 to SENTINEL_FRAME.
6093 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6094 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6095 frame_relative_level.
6096
6097 * frame.h (deprecated_set_frame_type): Delete declaration.
6098 * frame.c (deprecated_set_frame_type): Delete function, update
6099 comments.
6100
6101 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6102 * gdbarch.h, gdbarch.c: Re-generate.
6103 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6104 (shnbsd_pc_in_sigtramp): Delete.
6105 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6106 pc_in_sigtramp.
6107 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6108 pc_in_sigtramp.
6109 * frame.h: Update comments.
6110 * ppc-linux-tdep.c: Update comments.
6111 * breakpoint.c (bpstat_what): Update comments.
6112
6113 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6114 m68klinux-tdep.o's dependencies, were previously added to
6115 m68klinux-nat.o.
6116
6117 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6118 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6119 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6120 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6121 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6122
6123 * Makefile.in (m68klinux-nat.o): Update dependencies.
6124 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6125 (m68k_linux_sigtramp_frame_cache)
6126 (m68k_linux_sigtramp_frame_this_id)
6127 (m68k_linux_sigtramp_frame_prev_register)
6128 (m68k_linux_sigtramp_frame_unwind)
6129 (m68k_linux_sigtramp_frame_sniffer)
6130 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6131 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6132 names, use trad-frame.h.
6133 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6134 (struct m68k_sigtramp_info): Delete.
6135 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6136 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6137 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6138 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6139 "m68klinux-tdep.c".
6140
6141 * infrun.c (check_sigtramp2): Delete check for
6142 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6143
6144 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6145
6146 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6147
6148 2004-05-01 Andrew Cagney <cagney@redhat.com>
6149
6150 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6151 (frv_linux_sigtramp_frame_cache)
6152 (frv_linux_sigtramp_frame_this_id)
6153 (frv_linux_sigtramp_frame_prev_register)
6154 (frv_linux_sigtramp_frame_unwind)
6155 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6156 include "linux" in function and variable names, directly call
6157 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6158 the latest trad-frame code.
6159 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6160 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6161 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6162 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6163 * frv-tdep.c (frv_sigtramp_frame_cache)
6164 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6165 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6166 frv-linux-tdep.c.
6167 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6168 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6169 (frv_set_sigcontext_reg_addr): Delete function.
6170
6171 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6172 (DEPRECATED_SIGTRAMP_END): Delete.
6173 * gdbarch.h, gdbarch.c: Re-generate.
6174 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6175 * config/vax/tm-vaxbsd.h: Update copyright.
6176 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6177 (DEPRECATED_IN_SIGTRAMP): Define.
6178 * config/m68k/tm-nbsd.h: Update copyright.
6179 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6180 (DEPRECATED_IN_SIGTRAMP): Define.
6181
6182 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6183
6184 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6185 encondings. Fixes PR gdb/1628.
6186
6187 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6188 DW_CFA_restore state without a matching DW_CFA_remember_state
6189 instead of aborting. Fixes PR backtrace/1589.
6190
6191 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6192
6193 * MAINTAINERS: Add self as AIX maintainer.
6194 Update my e-mail address in write-after-approval section.
6195
6196 2004-04-30 Andrew Cagney <cagney@redhat.com>
6197
6198 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6199 (legacy_get_prev_frame): Ditto.
6200
6201 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6202 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6203 * mipsread.c (sigtramp_address): Delete extern variable.
6204 (mipscoff_new_init): Delete reference.
6205 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6206 (fixup_sigtramp): Delete function.
6207 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6208 (fixup_sigtramp): Delete declarations.
6209
6210 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6211 deprecated_pc_in_sigtramp.
6212 (ppcnbsd_pc_in_sigtramp): Delete function.
6213
6214 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6215
6216 * config/m68k/nm-nbsd.h: Tweak comments.
6217 * config/m68k/nm-nbsdaout.h: Likewise.
6218
6219 2004-04-30 Andrew Cagney <cagney@redhat.com>
6220
6221 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6222 legacy_pc_in_sigtramp.
6223 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6224
6225 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6226
6227 Add OpenBSD/m68k support.
6228 * NEWS (New native configurations): Mention OpenBSD/m68k.
6229 * m68kbsd-tdep.c: New file.
6230 * m68kbsd-nat.c: New file.
6231 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6232 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6233 * configure.host: Add m68k-*-openbsd.
6234 * configure.tgt: Add m68k-*-openbsd.
6235 * config/m68k/tm-obsd.h: New file.
6236 * config/m68k/obsd.mt: New file.
6237 * config/m68k/obsd.mh: New file.
6238 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6239 m68kbsd-tdep.c.
6240
6241 2004-04-30 Andrew Cagney <cagney@redhat.com>
6242
6243 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6244 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6245
6246 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6247
6248 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6249 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6250
6251 2004-04-30 Brian Ford <ford@vss.fsi.com>
6252
6253 Revert 2004-04-16 change.
6254 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6255 (i386_coff_init_abi): Remove.
6256 * i386-tdep.h (i386_coff_init_abi): Remove.
6257 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6258
6259 2004-04-30 Andrew Cagney <cagney@redhat.com>
6260
6261 * blockframe.c (find_pc_partial_function): Delete use of
6262 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6263 DEPRECATED_SIGTRAMP_END.
6264
6265 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6266 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6267 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6268 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6269 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6270
6271 * defs.h (deprecated_inside_entry_file): Delete declaration.
6272 * blockframe.c (deprecated_inside_entry_file): Delete function.
6273 (legacy_frame_chain_valid): Delete call.
6274 * sh64-tdep.c (sh64_frame_chain): Delete call.
6275 * objfiles.h: Update comments.
6276 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6277 call.
6278 * frame.c (get_prev_frame): Delete call, update comments.
6279
6280 2004-04-30 Brian Ford <ford@vss.fsi.com>
6281
6282 * MAINTAINERS (Write After Approval): Add myself.
6283
6284 2004-04-30 Andrew Cagney <cagney@redhat.com>
6285
6286 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6287 * gdbarch.h, gdbarch.c: Re-generate.
6288 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6289 code.
6290
6291 2004-04-30 Andrew Cagney <cagney@redhat.com>
6292
6293 * gdb-events.sh (selected_thread_changed)
6294 (selected_frame_level_changed, target_changed): Delete.
6295 * gdb-events.h, gdb-events.c: Re-generate.
6296 * valops.c (value_assign): Update.
6297 * stack.c (select_frame_command, up_silently_base)
6298 (down_silently_base): Update.
6299
6300 2004-04-29 Andrew Cagney <cagney@redhat.com>
6301
6302 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6303 registers correctly.
6304 (print_gp_register_row, mips32_heuristic_proc_desc)
6305 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6306 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6307 references to mips_isa_regsize.
6308
6309 2004-04-29 Andrew Cagney <cagney@redhat.com>
6310
6311 * mips-tdep.c (struct gdbarch_tdep): Delete
6312 mips_fp_register_double.
6313 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6314 mips_abi_regsize.
6315 (mips_gdbarch_init): Do not set mips_fp_register_double.
6316 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6317
6318 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6319
6320 Committed by Andrew Cagney.
6321 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6322 function calls.
6323
6324 2004-04-29 Andrew Cagney <cagney@redhat.com>
6325
6326 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6327 gdbarch, use mips_abi, update callers.
6328 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6329 mips_abi_regsize, update callers.
6330 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6331 mips_default_abi_regsize.
6332 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6333 mips_default_abi_regsize.
6334
6335 2004-04-29 Andrew Cagney <cagney@redhat.com>
6336
6337 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6338 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6339 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6340 mips_default_abi_regsize.
6341 (mips_isa_regsize): Rename mips_regisze.
6342 * mipsnbsd-tdep.c: Update.
6343 * mips-linux-tdep.c: Update.
6344 * irix5-nat.c: Update.
6345 * mips-tdep.h (mips_isa_regsize): Update.
6346
6347 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6348 Delete all disabled code.
6349 * gdb-events.h, gdb-events.c: Re-generate.
6350
6351 2004-04-19 Jerome Guitton <guitton@gnat.com>
6352 Mark Kettenis <kettenis@gnu.org>
6353
6354 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6355 the function begins with a branch instruction.
6356
6357 2004-04-29 Mark Kettenis <kettenis@gnu.org>
6358
6359 * i386-tdep.c: Fix spelling mistakes.
6360
6361 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6362 Andrew Cagney <cagney@redhat.com>
6363
6364 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6365 <sys/proc.h>.
6366 * acconfig.h: Provide default _KMEMUSER value.
6367 * config.in, configure: Re-generate.
6368 * NEWS: Mention fix.
6369
6370 2004-04-24 Randolph Chung <tausq@debian.org>
6371
6372 * configure.host (hppa*-*-linux*): New target.
6373 * configure.tgt (hppa*-*-linux*): Likewise.
6374 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6375 gdbarch_init_osabi() call earlier so that osabi-specific frame
6376 unwinders can be registered first.
6377 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6378 hppa-linux-nat.c.
6379 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6380 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6381 * config/pa/linux.mh: New file.
6382 * config/pa/linux.mt: New file.
6383 * config/pa/nm-linux.h: New file.
6384 * config/pa/xm-linux.h: New file.
6385 * hppa-linux-nat.c: New file.
6386 * hppa-linux-tdep.c: New file.
6387
6388 2004-04-28 Randolph Chung <tausq@debian.org>
6389
6390 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6391 return values.
6392 (hppa32_push_dummy_call): Fix small struct and floating point argument
6393 passing, and make sure the stack frame is properly aligned.
6394
6395 2004-04-28 Andrew Cagney <cagney@redhat.com>
6396
6397 * stack.c (print_stack_frame): Fix description.
6398
6399 * NEWS: Mention gdb/gdbserver/configure execute permission
6400 changed. PR server/519.
6401
6402 2004-04-28 Andrew Cagney <cagney@redhat.com>
6403
6404 * stack.c (print_stack_frame_stub): Delete declaration.
6405 (struct print_stack_frame_args, print_stack_frame)
6406 (print_frame_info, print_frame): Replace "source" with print what.
6407 Replace "print" with "print_level". Replace "args" with
6408 "print_args".
6409 * frame.h (show_and_print_stack_frame, print_stack_frame)
6410 (print_frame_info): Update declarations.
6411 * stack.c (select_and_print_frame, frame_command)
6412 (current_frame_command, up_command, down_command): Update calls -
6413 use get_selected_frame, pass "enum print_what" for source, do not
6414 call frame_relative_level.
6415 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6416 * remote-rdp.c (remote_rdp_open): Ditto.
6417 * remote-mips.c (common_open): Ditto.
6418 * remote-e7000.c (e7000_start_remote): Ditto.
6419 * ocd.c (ocd_start_remote): Ditto.
6420 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6421 * infrun.c (normal_stop): Ditto.
6422 * inflow.c (kill_command): Ditto.
6423 * infcmd.c (finish_command): Ditto.
6424 * corelow.c (core_open): Ditto.
6425 * tracepoint.c (finish_tfind_command): Ditto.
6426 * thread.c (info_threads_command, info_threads_command)
6427 (restore_current_thread, do_captured_thread_select): Ditto.
6428 * ada-tasks.c (task_command): Ditto.
6429
6430 2004-04-26 Orjan Friberg <orjanf@axis.com>
6431
6432 * frame.c: Include "observer.h".
6433 (frame_observer_target_changed): New function.
6434 (_initialize_frame): Attach target_changed observer.
6435 * regcache.c: Include "observer.h".
6436 (regcache_observer_target_changed): New function.
6437 (_initialize_regcache): Attach target_changed observer.
6438 * valops.c: Include "observer.h".
6439 (value_assign): Notify target_changed event when modifying register.
6440 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6441
6442 2004-04-26 Orjan Friberg <orjanf@axis.com>
6443
6444 From Paul Koning <pkoning@equallogic.com>:
6445 * breakpoint.c (free_valchain): New function.
6446 (insert_bp_location, delete_breakpoint): Use free_valchain.
6447 (remove_breakpoint): Do not remove the valchain.
6448 (bpstat_stop_status): If not stopped by watchpoint, skip
6449 watchpoints when generating stop status list.
6450 * infrun.c (handle_inferior_event): Make
6451 stepped_after_stopped_by_watchpoint a global variable.
6452 * remote.c (remote_stopped_data_address): Return watch data
6453 address rather than zero if stepped_after_stopped_by_watchpoint is
6454 set.
6455
6456 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6457
6458 Fix PR gdb/1626.
6459 * configure.in: Check for curses after termcap.
6460 On osf5.*, do not check for ncurses.
6461 * configure: Regenerate.
6462
6463 2004-04-25 Mark Kettenis <kettenis@gnu.org>
6464
6465 * ppcobsd-nat.c: Include "ppc-tdep.h".
6466 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6467
6468 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6469 Fixes PR tdep/1623 and PR tdep/1624.
6470
6471 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6472
6473 * xmodem.h, xmodem.c: Remove files.
6474 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6475
6476 2004-04-23 Randolph Chung <tausq@debian.org>
6477
6478 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6479 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6480 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6481 for handling stackless frames.
6482 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6483
6484 2004-04-23 Randolph Chung <tausq@debian.org>
6485
6486 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6487 starts at a pc before the frame is created.
6488
6489 2004-04-23 Joel Brobecker <brobecker@gnat.com>
6490
6491 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6492
6493 2004-04-23 Jerome Guitton <guitton@gnat.com>
6494
6495 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6496 use convert_typed_floating to get the appropriate format.
6497
6498 2004-04-22 Randolph Chung <tausq@debian.org>
6499
6500 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6501 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6502 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6503 (hppa_sign_extend): Add prototype.
6504 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6505 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6506 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6507 hppa targets will also use these functions.
6508 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6509 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6510 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6511 (hppa_gdbarch_init): Remove gdbarch setting of
6512 skip_trampoline_code, in_solib_call_trampoline and
6513 in_solib_return_trampoline.
6514 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6515 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6516 hppa_in_solib_call_trampoline.
6517 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6518 Moved from hppa-tdep.c.
6519 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6520 in_solib_call_trampoline and in_solib_return_trampoline.
6521
6522 2004-04-22 Randolph Chung <tausq@debian.org>
6523
6524 * hppa-tdep.c (hppa_debug): New variable.
6525 (find_unwind_entry, hppa_frame_cache): Add debug output.
6526 (_initialize_hppa_tdep): Add command to set debug flag.
6527
6528 2004-04-22 Andrew Cagney <cagney@redhat.com>
6529
6530 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6531 "trad-frame.h".
6532 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6533 signal trampoline unwinder.
6534 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6535
6536 2004-04-22 Mark Kettenis <kettenis@gnu.org>
6537
6538 Add OpenBSD/powerpc support.
6539 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6540 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6541 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6542 (ppc_collect_fpregset): New prototypes.
6543 * ppcobsd-nat.c: New file.
6544 * ppcobsd-tdep.c: New file.
6545 * ppcobsd-tdep.h: New file.
6546 * rs6000-tdep.c: Include "regset.h".
6547 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6548 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6549 New functions.
6550 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6551 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6552 (rs6000-tdep.o): Update dependencies.
6553 * configure.host: Add powerpc-*-openbsd.
6554 * configure.tgt: Add powerpc-*-openbsd.
6555 * config/powerpc/obsd.mh: New file.
6556 * config/powerpc/nm-obsd.h: New file.
6557 * config/powerpc/obsd.mt: New file.
6558
6559 2004-04-22 Andrew Cagney <cagney@redhat.com>
6560
6561 * frame.h (show_frame_info): Delete declaration.
6562
6563 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6564 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6565 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6566 * frv-tdep.c (frv_frame_this_id): Ditto.
6567 * avr-tdep.c (avr_frame_this_id): Ditto.
6568
6569 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
6570
6571 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6572
6573 2004-04-22 Jim Blandy <jimb@redhat.com>
6574
6575 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6576 register number zero.
6577
6578 2004-04-21 Michael Snyder <msnyder@redhat.com>
6579
6580 * mips-tdep.c (heuristic_proc_start):
6581 Warning() already prefixes "Warning: ".
6582
6583 2004-04-21 Andrew Cagney <cagney@redhat.com>
6584
6585 * annotate.h (deprecated_annotate_starting_hook)
6586 (deprecated_annotate_stopped_hook)
6587 (deprecated_annotate_exited_hook)
6588 (deprecated_annotate_signal_hook)
6589 (deprecated_annotate_signalled_hook): Deprecate.
6590 * tracepoint.h (deprecated_create_tracepoint_hook)
6591 (deprecated_delete_tracepoint_hook)
6592 (deprecated_modify_tracepoint_hook)
6593 (deprecated_trace_find_hook)
6594 (deprecated_trace_start_stop_hook): Deprecate.
6595 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6596 * remote.h (deprecated_target_resume_hook)
6597 (deprecated_target_wait_loop_hook): Deprecate.
6598 * gdbcore.h (deprecated_exec_file_display_hook)
6599 (deprecated_file_changed_hook): Deprecate.
6600 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6601 * defs.h (deprecated_modify_breakpoint_hook)
6602 (deprecated_command_loop_hook, deprecated_show_load_progress)
6603 (deprecated_print_frame_info_listing_hook)
6604 (deprecated_query_hook, deprecated_warning_hook)
6605 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6606 (deprecated_delete_breakpoint_hook)
6607 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6608 (deprecated_readline_begin_hook, deprecated_readline_hook)
6609 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6610 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6611 (deprecated_context_hook, deprecated_target_wait_hook)
6612 (deprecated_attach_hook, deprecated_detach_hook)
6613 (deprecated_call_command_hook, deprecated_set_hook)
6614 (deprecated_error_hook, deprecated_error_begin_hook)
6615 (deprecated_ui_load_progress_hook): Deprecate.
6616 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6617 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6618 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6619 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6620 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6621 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6622 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6623 * annotate.c, aix-thread.c: Update.
6624
6625 2004-04-21 Andrew Cagney <cagney@redhat.com>
6626
6627 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6628 * vaxnbsd-tdep.c: Include "gdb_string.h".
6629
6630 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6631 (add_symbol_file_from_memory_command): #if 0 function body, call
6632 error instead.
6633
6634 2004-04-21 Andrew Cagney <cagney@redhat.com>
6635
6636 * gdbcore.h: Update copyright.
6637 (deprecated_add_core_fns): Rename add_core_fns.
6638 * win32-nat.c (_initialize_core_win32): Update.
6639 * sun3-nat.c (_initialize_core_sun3): Update.
6640 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6641 * rs6000-nat.c (_initialize_core_rs6000): Update.
6642 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6643 * nto-tdep.c (_initialize_nto_tdep): Update.
6644 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6645 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6646 * mips-nat.c (_initialize_core_mips): Update.
6647 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6648 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6649 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6650 * lynx-nat.c (_initialize_core_lynx): Update.
6651 * irix5-nat.c (_initialize_core_irix5): Update.
6652 * i386-interix-nat.c (_initialize_core_interix): Update.
6653 * cris-tdep.c (_initialize_cris_tdep): Update.
6654 * corelow.c (deprecated_add_core_fns): Update.
6655 * core-regset.c (_initialize_core_regset): Update.
6656 * core-aout.c (_initialize_core_aout): Update.
6657 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6658 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6659 * alpha-nat.c (_initialize_core_alpha): Update.
6660
6661 2004-04-21 Jim Blandy <jimb@redhat.com>
6662
6663 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6664
6665 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6666
6667 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6668 Delete.
6669 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6670 (read_attribute_value): Update calls to dwarf_alloc_block.
6671 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6672 dwarf2_tmp_obstack.
6673 (psymtab_to_symtab_1): Likewise. Clean up using
6674 free_stack_comp_unit.
6675 (add_to_cu_func_list): Use the comp_unit_obstack.
6676
6677 2004-04-19 Joel Brobecker <brobecker@gnat.com>
6678
6679 * dwarf2read.c (dwarf2_flag_true_p): New function.
6680 (die_is_declaration): Use the function above. Add some comments.
6681
6682 2004-04-19 Mark Kettenis <kettenis@gnu.org>
6683
6684 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6685 architecture when registering sparcnbsd_core_osabi_sniffer.
6686 Adjust comment.
6687
6688 2004-04-18 Mark Kettenis <kettenis@gnu.org>
6689
6690 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6691 return value.
6692
6693 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6694 * i386-tdep.c: Correct register numbering scheme comments
6695 throughout.
6696 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6697 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6698 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6699 (i386_gdb_arch_init): Likewise.
6700
6701 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6702 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6703 ppcnbsd-tdep.o.
6704
6705 * m68k-tdep.h: Tweak comments.
6706 * m68k-tdep.c: Tweak comment.
6707
6708 2004-04-17 Randolph Chung <tausq@debian.org>
6709
6710 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6711 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6712 (hppa_hpux_som_init_abi): Set is_elf to 0.
6713 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6714 * hppa-tdep.c (low_text_segment_address): Remove global.
6715 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6716 section offset to calculate segment address.
6717 (internalize_unwinds): Define low_text_segment_address as local and
6718 pass to record_text_segment_lowaddr for ELF targets.
6719 (hppa_gdbarch_init): Zero fill tdep structure.
6720 (hppa_dump_tdep): Print tdep structure.
6721 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6722
6723 2004-04-17 Randolph Chung <tausq@debian.org>
6724
6725 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6726 (hppa_gdbarch_init): Set pseudo_register_read.
6727 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6728 * regcache.c (supply_register): Remove check for
6729 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6730
6731 2004-04-17 Randolph Chung <tausq@debian.org>
6732
6733 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6734 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6735 (hpread_adjust_stack_address): Move to hpread.c.
6736 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6737 obj_private_struct): Move from tm-hppa.h.
6738 * hpread.c (hppa-tdep.h): Include.
6739 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6740 (hpread_read_function_type, hpread_read_doc_function_type)
6741 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6742 directly.
6743 * pa64solib.c (hppa-tdep.h): Include.
6744 * somsolib.c (hppa-tdep.h): Include.
6745 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6746 inferior_status): Remove unused forward declarations.
6747 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6748 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6749 obj_private_struct): Move to hppa-tdep.h.
6750 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6751
6752 2004-04-17 Randolph Chung <tausq@debian.org>
6753
6754 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6755 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6756 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6757 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6758 Remove forward declaration and make static.
6759 (hppa_reg_struct_has_addr): Remove.
6760
6761 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6762
6763 * observer.sh: Move comments in sed command to first column.
6764
6765 2004-04-16 Jason Molenda (jmolenda@apple.com)
6766
6767 * frame.c: Minor typeo corrections in comments.
6768
6769 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6770
6771 * observer.c (observer_test_first_notification_function): Update
6772 function profile.
6773 (observer_test_second_notification_function): Likewise.
6774 (observer_test_third_notification_function): Likewise.
6775
6776 2004-04-16 Mark Kettenis <kettenis@gnu.org>
6777
6778 From Brian Ford <ford@vss.fsi.com>:
6779 * i386-tdep.c (i386_coff_init_abi): New function.
6780 * i386-tdep.h (i386_coff_init_abi): New prototype.
6781 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6782 register number translation functions for DWARF and DWARF 2.
6783
6784 2004-04-16 Joel Brobecker <brobecker@gnat.com>
6785
6786 * dwarf2read.c: Back out my previous change, it was incorrect.
6787
6788 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
6789
6790 * dwarf2read.c: Include "hashtab.h".
6791 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6792 has_namespace_info.
6793 (struct partial_die_info): Add comments. Use bitfields to reduce
6794 memory footprint. Add scope, scope_set, has_specification,
6795 spec_offset, die_parent, die_child, and die_sibling.
6796 (peek_die_abbrev): Add prototype.
6797 (partial_read_comp_unit_head): New function, broken out from
6798 dwarf2_build_psymtabs_hard.
6799 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6800 Use partial_read_comp_unit_head. Initialize the CU and
6801 comp_unit_obstack. Update calls to read_partial_die and
6802 scan_partial_symbols. Use free_stack_comp_unit and
6803 load_partial_dies.
6804 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6805 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6806 Update calls to helper functions. Remove NAMESPACE argument.
6807 Update comments.
6808 (partial_die_parent_scope, partial_die_full_name): New functions.
6809 (add_partial_symbol): Remove namespace argument. Update call to
6810 pdi_needs_namespace. Use partial_die_full_name. Handle
6811 DW_TAG_namespace. Check has_namespace_info flag.
6812 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6813 tag. Handle namespaces.
6814 (add_partial_namespace, add_partial_enumeration): Simplify.
6815 (guess_structure_name): New function, derived from
6816 add_partial_structure.
6817 (add_partial_structure): Remove.
6818 (determine_class_name): Update comment.
6819 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6820 (is_type_tag_for_partial, load_partial_dies): New functions.
6821 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6822 Record specifications instead of following them immediately.
6823 (find_partial_die_in_comp_unit, find_partial_die)
6824 (fixup_partial_die, free_stack_comp_unit)
6825 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6826 (partial_die_hash, partial_die_eq): New functions.
6827 * Makefile.in (hashtab_h): Define.
6828 (dwarf2read.o): Update dependencies.
6829 (observer_inc, observer_h): Move to the correct section.
6830
6831 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6832
6833 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6834 (die_is_declaration): Use the function above. Add comment.
6835
6836 2004-04-15 Joel Brobecker <brobecker@gnat.com>
6837
6838 * dwarf2read.c (read_structure_scope): Identify stub types
6839 using die_is_declaration() only.
6840
6841 2004-04-15 Roland McGrath <roland@redhat.com>
6842
6843 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6844 argument instead of NAME.
6845 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6846 in call to symbol_file_add_with_addrs_or_offsets.
6847 (build_addr_info): New function, helper for ...
6848 (symbol_file_add_from_memory): New function.
6849 (add_symbol_file_from_memory_command): New function using that.
6850 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6851 (pre_add_symbol_hook): Add const to argument type.
6852 * symfile.h (symbol_file_add_from_memory): Declare it.
6853
6854 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6855
6856 * NEWS (New native configurations): Mention OpenBSD/vax.
6857 * configure.host: Add vax-*-openbsd*.
6858 * config/vax/obsd.mh: New file.
6859 * config/vax/nm-obsd.h: New file.
6860
6861 * vax-tdep.c: Include "regset.h".
6862 (vax_supply_gregset): New function.
6863 (vax_gregset): New variable.
6864 (vax_regset_from_core_section): New function.
6865 (vax_gdbarch_init): Set regset_from_core_section.
6866 * Makefile.in (vax-tdep.o): Update dependencies.
6867
6868 2004-04-15 Andrew Cagney <cagney@redhat.com>
6869
6870 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6871 (observer_normal_stop_notification_stub)
6872 (observer_attach_normal_stop, observer_detach_normal_stop):
6873 Delete, replaced by #include "observer.inc".
6874 * infrun.c (normal_stop): Pass "stop_bpstat" to
6875 observer_notify_normal_stop.
6876 * Makefile.in (observer_inc): Define.
6877 (observer.o): Update dependencies.
6878 (observer.h, observer.inc): New rules.
6879 * observer.h: Delete file.
6880 * observer.sh: New file.
6881
6882 2004-04-15 Mark Kettenis <kettenis@gnu.org>
6883
6884 * vax-tdep.c (vax_frame_cache): Fix typo.
6885
6886 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6887
6888 * NEWS (New native configurations): Mention NetBSD/vax.
6889 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6890 * config/vax/nbsdelf.mh: New file.
6891 * config/vax/nbsdaout.mh: New file.
6892 * config/vax/nm-nbsd.h: New file.
6893 * config/vax/nm-nbsdaout.h: New file.
6894
6895 * vaxnbsd-tdep.c: New file.
6896 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6897 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6898 * config/vax/nbsd.mt: New file.
6899 * config/vax/tm-nbsd.h: New file.
6900
6901 * Makefile.in (vaxbsd-nat.o): New dependency.
6902
6903 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6904 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6905 struct_addr arguments. Don't push return value address.
6906 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6907 arguments to vax_store_arguments. Store return value address in
6908 R1.
6909 (vax_store_struct_return, vax_extract_return_value)
6910 (vax_store_return_value): Remove functions.
6911 (vax_return_value): New function.
6912 (vax_gdbarch_init): Set return value. Don't set
6913 deprecated_store_struct_return, deprecated_extract_struct_return
6914 and deprecated_store_return_value.
6915
6916 2004-04-14 Andreas Schwab <schwab@suse.de>
6917
6918 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6919 value buffer.
6920 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6921
6922 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6923
6924 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6925 (vax_unwind_dummy_id): New functions.
6926 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6927 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6928 variables.
6929 (vax_fix_call_dummy): Remove function.
6930 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6931 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6932 call_dummy_location, deprecated_call_dummy_words,
6933 deprecated_sizeof_call_dummy_words,
6934 deprecated_call_dummy_breakpoint_offset,
6935 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6936 and deprecated_dummy_write_sp.
6937
6938 2004-04-13 David Carlton <carlton@kealia.com>
6939
6940 * MAINTAINERS: Move myself to "paper trail" section.
6941
6942 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6943
6944 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6945 "trad-frame.h".
6946 (vax_frame_init_saved_regs): Remove function.
6947 (vax_sigtramp_saved_pc): Remove function.
6948 (vax_frame_saved_pc): Remove function.
6949 (vax_frame_args_address): Remove function.
6950 (vax_frame_num_args): Rewrite.
6951 (vax_frame_chain): Remove function.
6952 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6953 VAX_FP_REGNUM.
6954 (vax_pop_frame): Likewise.
6955 (vax_saved_pc_after_call): Remove function.
6956 (struct vax_frame_cache): New structure.
6957 (vax_frame_cache): New function.
6958 (vax_frame_this_id): New function.
6959 (vax_frame_prev_register): New function.
6960 (vax_frame_unwind): New variable.
6961 (vax_frame_sniffer): New function.
6962 (vax_frame_base_address): New function.
6963 (vax_frame_args_address): New function.
6964 (vax_frame_base): New variable.
6965 (vax_unwind_pc): New function.
6966 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6967 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6968 deprecated_frame_chain, deprecated_frame_saved_pc,
6969 deprecated_frame_args_address and
6970 deprecated_frame_init_saved_regs.
6971 * Makefile.in (vax-tdep.o): Update dependencies.
6972
6973 * vaxbsd-nat.c: New file.
6974
6975 * vax-tdep.h: Update copyright year. Adjust comments.
6976 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6977 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6978 (vax_regnum): New enum. Replacing...
6979 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6980 (VAX_PS_REGNUM): ... these removed macros.
6981 * vax-tdep.c (vax_register_name): Remove prototype.
6982 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6983 (vax_register_byte, vax_register_raw_size,
6984 vax_register_virtual_size, vax_register_virtual_type): Remove
6985 functions.
6986 (vax_register_type): New function.
6987 (vax_breakpoint_from_pc): Reorganize.
6988 (vax_gdbarch_init): Set register_type. Don't set
6989 deprecated_register_size, deprecated_register_bytes,
6990 deprecated_register_byte, deprecated_register_raw_size,
6991 deprecated_max_register_raw_size,
6992 deprecated_register_virtual_size,
6993 deprecated_max_register_virtual_size and
6994 deprecated_register_virtual_type. Add comment on stack direction.
6995
6996 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6997
6998 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6999 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7000 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7001
7002 2004-04-10 Randolph Chung <tausq@debian.org>
7003
7004 * MAINTAINERS (write after approval): Add myself.
7005
7006 2004-04-07 Randolph Chung <tausq@debian.org>
7007
7008 * hppa-tdep.c (hppa_inner_than): Remove.
7009 (is_pa_2): Remove unused static variable.
7010 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7011
7012 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7013
7014 * language.h (language_defn): Add new la_post_parser field.
7015 * parser-defs.h (null_post_parser): New declaration (default for
7016 la_post_parser).
7017
7018 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7019 insert call to that function.
7020 (parse_exp_in_context): New function, including code formerly in
7021 parse_exp_1. Calls language-dependent post-parser after
7022 prefixification.
7023 (parse_expression_in_context): New exported function.
7024 (null_post_parser): New definition.
7025 * expression.h (parse_expression_in_context): Add declaration.
7026
7027 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7028 * c-lang.c (c_language_defn): Ditto.
7029 (cplus_language_defn): Ditto.
7030 (asm_language_defn): Ditto.
7031 (minimal_language_defn): Ditto.
7032 * f-lang.c (f_language_defn): Ditto.
7033 * jv-lang.c (java_language_defn): Ditto.
7034 * language.c (unknown_language_defn): Ditto.
7035 (auto_language_defn): Ditto.
7036 (local_language_defn): Ditto.
7037 * m2-lang.c (m2_language_defn): Ditto.
7038 * scm-lang.c (scm_language_defn): Ditto.
7039 * obj-lang.c (objc_language_defn): Ditto.
7040
7041 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7042
7043 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7044 (amd64nbsd_mcontext_addr): New function.
7045 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7046 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7047 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7048
7049 * corelow.c (core_xfer_partial): Fix coding standards violation.
7050 Add support for TARGET_OBJECT_WCOOKIE.
7051
7052 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7053 deprecated_pc_in_sigtramp.
7054 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7055 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7056 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7057 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7058 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7059 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7060 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7061
7062 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7063 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7064 Fix typo.
7065
7066 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7067 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7068 (amd64_collect_fxsave): Likewise.
7069
7070 * i386-sol2-tdep.c: Include "gdb_string.h".
7071 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7072 name.
7073 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7074
7075 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7076
7077 * i386-sol2-tdep.c: Include "solib-svr4.h".
7078 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7079 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7080 * config/i386/tm-i386sol2.h: Include :solib.h".
7081 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7082 solib-svr4.o and solib-legacy.o.
7083 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7084 solib-svr4.o.
7085
7086 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7087
7088 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7089 whether a register is supplied by PTRACE_GETFPREGS.
7090 (store_inferior_registers): Likewise.
7091 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7092 whether a register is supplied by PT_GETFPREGS.
7093 (store_inferior_registers): Likewise.
7094
7095 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7096 * config/i386/linux64.mt (TDEPFILES): Likewise.
7097
7098 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7099
7100 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7101 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7102 the program counter is in the range specified by `struct
7103 gdbarch_tdep'.
7104 * amd64-linux-tdep.c: Include "symtab.h".
7105 (amd64_linux_pc_in_sigtramp): Remove function.
7106 (amd64_linux_sigtramp_p): New function.
7107 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7108 deprecated_pc_in_sigtramp.
7109 * amd64nbsd-tdep.c: Include "symtab.h".
7110 (amd64nbsd_sigtramp_p): New function.
7111 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7112 deprecated_pc_in_sigtramp.
7113 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7114 few comments.
7115 (amd64obsd_pc_in_sigtramp): Remove function.
7116 (amd64obsd_sigtramp_p): New function.
7117 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7118 deprecated_pc_in_sigtramp.
7119 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7120 (i386bsd_pc_ins_sigtramp): Remove prototype.
7121 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7122 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7123 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7124 the program counter is in the range specified by `struct
7125 gdbarch_tdep'.
7126 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7127 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7128 (i386_go32_pc_in_sigtramp): Remove function.
7129 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7130 Initialize TDEP->sigtramp_p.
7131 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7132 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7133 deprecated_pc_in_sigtramp.
7134 * i386-linux-tdep.c: Adjust comments.
7135 (i386_linux_pc_in_sigtramp): Remove function.
7136 (i386_linux_sigtramp_p): New function.
7137 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7138 deprecated_pc_in_sigtramp.
7139 * i386-nto-tdep.c: Update copyright year.
7140 (i386nto_pc_in_sigtramp): Remove function.
7141 (i386nto_sigtramp_p): New function.
7142 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7143 SP_REGNUM.
7144 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7145 deprecated_pc_in_sigtramp.
7146 * i386-sol2-tdep.c: Update copyright year.
7147 (i386_sol2_pc_in_sigtramp): Remove function.
7148 (i386_sol2_sigtramp_p): New function.
7149 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7150 deprecated_pc_in_sigtramp.
7151 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7152 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7153 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7154 deprecated_sigtramp_start and deprecated_sigtramp_end.
7155 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7156 (i386nbsd_pc_in_sigtramp): Remove function.
7157 (i386nbsd_sigtramp_p): New function.
7158 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7159 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7160 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7161 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7162 (i386obsd_pc_in_sigtramp): Remove function.
7163 (i386obsd_sigtramp_p): New function.
7164 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7165 functions.
7166 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7167 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7168 TDEP->sigtramp_p.
7169 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7170 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7171 dependencies.
7172
7173 * config/i386/i386aout.mt: Remove file.
7174
7175 * configure.tgt: Remove i[34567]86-*-go32*,
7176 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7177 and i[34567]86-*-isc*. Set gdb_target to i386 for
7178 i[34567]86-*-netware* and i[34567]86-*-*.
7179 * config/i386/i386.mt: New file.
7180 * config/i386/embed.mt: Remove file.
7181 * config/i386/go32.mt: Remove file.
7182 * config/i386/i386nw.mt: Remove file.
7183 * config/i386/i386v.mt: Remove file.
7184 * config/i386/tm-go32.h: Remove file.
7185
7186 * tui/tui-hooks.c: Include "readline/readline.h" after
7187 "gdb_curses.h" instead of before.
7188 * tui/tui-io.c: Likewise.
7189
7190 * tui/tui.c: Fix typo in comment.
7191
7192 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7193
7194 2004-04-08 Andrew Cagney <cagney@redhat.com>
7195
7196 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7197 (deprecated_exception_support_initialized): Declare.
7198 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7199 (initialize_hp_cxx_exception_support)
7200 (child_enable_exception_callback): Update.
7201 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7202 (deprecated_exception_support_initialized): Rename
7203 deprecated_exception_catchpoints_are_fragile and
7204 deprecated_exception_support_initialized.
7205 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7206
7207 * symtab.c (deprecated_hp_som_som_object_present): Rename
7208 hp_som_som_object_present.
7209 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7210 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7211 Update. Delete extern declaration.
7212 * valops.c (hp_som_som_object_present): Ditto.
7213 * parse.c (deprecated_hp_som_som_object_present)
7214 (parse_nested_classes_for_hpacc): Ditto.
7215 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7216 * hppa-hpux-tdep.c (hp_som_som_object_present)
7217 (initialize_hp_cxx_exception_support): Ditto.
7218 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7219 * cp-valprint.c (hp_som_som_object_present)
7220 (cp_print_class_method): Ditto.
7221 * c-typeprint.c (hp_som_som_object_present):
7222 (c_type_print_base): Ditto.
7223 * c-exp.y (hp_som_som_object_present): Ditto.
7224
7225 2004-04-08 Andrew Cagney <cagney@redhat.com>
7226
7227 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7228 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7229 (frame_unwind_find_by_frame): Re-implement the unwind code so
7230 that it can both prepend and append sniffers. Replace
7231 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7232 * tramp-frame.c (tramp_frame_append): Use
7233 frame_unwind_prepend_unwinder.
7234 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7235 frame_unwind_register_unwinder.
7236 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7237 tramp_frame_append.
7238 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7239 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7240 (mips_linux_init_abi): Update.
7241
7242 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7243
7244 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7245 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7246 file support.
7247
7248 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7249
7250 * ia64-tdep.c (elf.h): Don't include.
7251 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7252
7253 2004-04-07 Jason Molenda (jmolenda@apple.com)
7254
7255 * frame.h: Typeo corrections in comments.
7256
7257 2004-04-07 Jim Blandy <jimb@redhat.com>
7258
7259 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7260 %esp and %ebp
7261
7262 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7263
7264 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7265 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7266 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7267 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7268 and solib-legacy.o.
7269 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7270 solib-svr4.o.
7271 * config/sparc/tm-sol2.h: Update copyright year. Include
7272 "solib.h".
7273
7274 * sparc-sol2-tdep.c: Update copyright year. Include
7275 "solib-svr4.h".
7276 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7277 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7278 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7279 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7280 dependencies.
7281
7282 2004-04-06 Andrew Cagney <cagney@redhat.com>
7283
7284 * infttrace.c: Include "infttrace.h".
7285 * infttrace.h: Include "target.h".
7286 * Makefile.in (infttrace_h): Update.
7287 (infttrace.o): Update.
7288
7289 2004-04-06 Andrew Cagney <cagney@redhat.com>
7290
7291 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7292 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7293 move extern declarations from here ...
7294 * infttrace.h: ... to here.
7295 * Makefile.in (hppah-nat.o): Update dependencies.
7296
7297 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7298 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7299 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7300 (hppa_breakpoint_from_pc): Delete.
7301
7302 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7303
7304 2004-04-05 Andrew Cagney <cagney@redhat.com>
7305
7306 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7307 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7308 <sys/file.h>.
7309
7310 2004-04-06 Randolph Chung <tausq@debian.org>
7311
7312 Committed by Andrew Cagney (mechanical change).
7313 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7314 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7315 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7316 child_enable_exception_callback, current_ex_event,
7317 null_symtab_and_line, child_get_current_exception_event,
7318 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7319 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7320 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7321 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7322 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7323 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7324 Move hpux-specific definitions ...
7325 * hppa-hpux-tdep.c: ... to here.
7326
7327 2004-04-05 Andrew Cagney <cagney@redhat.com>
7328
7329 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7330 skip_prologue_using_sal.
7331
7332 2004-04-05 Andrew Cagney <cagney@redhat.com>
7333
7334 * config/i386/tm-i386.h: Delete file.
7335 * config/i386/tm-vxworks.h: Update copyright, do not include
7336 "tm-i386.h".
7337 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7338 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7339 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7340 * config/i386/ncr3000.mt (TM_FILE): Delete.
7341 * config/i386/interix.mt (TM_FILE): Delete.
7342 * config/i386/i386v.mt (TM_FILE): Delete.
7343 * config/i386/i386nw.mt (TM_FILE): Delete.
7344 * config/i386/i386gnu.mt (TM_FILE): Delete.
7345 * config/i386/i386aout.mt (TM_FILE): Delete.
7346 * config/i386/embed.mt (TM_FILE): Delete.
7347
7348 2004-04-05 Kevin Buettner <kevinb@redhat.com>
7349
7350 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7351 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7352 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7353 (accg7_regnum): New constants.
7354 (last_spr_regnum, last_pseudo_regnum): Update.
7355 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7356 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
7357 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7358 for accg registers.
7359 (frv_register_sim_regno): Update spr_map[].
7360
7361 2004-04-04 Andrew Cagney <cagney@redhat.com>
7362
7363 * config/mips/xm-riscos.h: Delete.
7364 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7365 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7366 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7367 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7368 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7369 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7370 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7371 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7372 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7373 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7374 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7375 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7376 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7377 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7378 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7379 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7380 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7381 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7382 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7383 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7384 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7385 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7386 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7387 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7388 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7389 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
7390
7391 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7392 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7393 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7394 * configure.host: Remove m680[01]0-sun-sunos3*,
7395 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7396 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7397 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7398 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7399 mips-*-riscos*.
7400 * NEWS: Mention removed systems.
7401
7402 2004-04-04 Andrew Cagney <cagney@redhat.com>
7403
7404 GDB 6.1 release created from 6.1 branch.
7405
7406 2004-04-04 Andrew Cagney <cagney@redhat.com>
7407
7408 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7409 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7410 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7411
7412 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7413 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7414 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7415
7416 2004-04-03 Jim Blandy <jimb@redhat.com>
7417
7418 * MAINTAINERS: Chris Faylor has changed employers; add him to
7419 "paper trail" section, and update his E-mail address.
7420
7421 2004-04-03 Andrew Cagney <cagney@redhat.com>
7422
7423 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7424 generic dummy frames.
7425 * dummy-frame.c: Update copyright.
7426 (dummy_frame_sniffer): Delete check for generic dummy frames.
7427
7428 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
7429 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
7430 (REG_PARM_STACK_SPACE): Delete.
7431 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7432 Inline reference to REG_PARM_STACK_SPACE.
7433
7434 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7435 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7436 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7437 (FRAME_BASE_BEFORE_SIGTRAMP)
7438 (hppa32_hpux_frame_base_before_sigtramp)
7439 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7440 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7441 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7442 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7443 (FRAME_BASE_BEFORE_SIGTRAMP)
7444 (hppa64_hpux_frame_base_before_sigtramp)
7445 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7446
7447 2004-04-03 Andrew Cagney <cagney@redhat.com>
7448
7449 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7450
7451 2004-04-02 Andrew Cagney <cagney@redhat.com>
7452
7453 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7454 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7455 * dummy-frame.h: Delete out-of-date comments.
7456 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7457 * gdbarch.h, gdbarch.c: Re-generate.
7458
7459 2004-04-02 Joel Brobecker <brobecker@gnat.com>
7460
7461 Committed by Andrew Cagney <cagney@redhat.com>.
7462 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7463 into account an instruction saving a register if we have already
7464 seen an earlier instruction saving that same register.
7465
7466 2004-04-02 Andrew Cagney <cagney@redhat.com>
7467
7468 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7469 * gdbarch.h, gdbarch.c: Re-generate.
7470 * frame.c (legacy_get_prev_frame): Delete references to
7471 DEPRECATED_INIT_FRAME_PC_FIRST.
7472
7473 * infrun.c (pc_in_sigtramp): Delete function.
7474 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7475 get_frame_type.
7476
7477 2004-04-02 Andrew Cagney <cagney@redhat.com>
7478
7479 * infrun.c (handle_step_into_function): Delete code conditional on
7480 legacy_frame_p.
7481 (handle_inferior_event, step_over_function): Ditto.
7482
7483 2004-04-02 Andrew Cagney <cagney@redhat.com>
7484
7485 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7486 "previous frame inner to this frame" test.
7487
7488 2004-04-02 Andrew Cagney <cagney@redhat.com>
7489
7490 * frame.c (safe_frame_unwind_memory): New function.
7491 * frame.h (safe_frame_unwind_memory): Declare. Update description
7492 of /safe_/ methods.
7493 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7494 "next_frame". Use safe_frame_unwind_memory.
7495 (tramp_frame_sniffer): Update call to tramp_frame_start.
7496
7497 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
7498
7499 * dwarf2read.c (dwarf2_objfile_data_key): New.
7500 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7501 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7502 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7503 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7504 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7505 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7506 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7507 Remove variables.
7508 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7509 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7510 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7511 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7512 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7513 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7514 Remove macros.
7515 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7516 data.
7517 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7518 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7519 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7520 (read_partial_die, read_full_die, read_indirect_string)
7521 (dwarf_decode_line_header, dwarf_decode_macros)
7522 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7523 Update uses of removed variables.
7524 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7525 of removed macros.
7526 (_initialize_dwarf2_read): New function.
7527 * symfile.h (dwarf2_has_info): Update prototype.
7528 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7529 * elfread.c (elf_symfile_read): Likewise.
7530
7531 2004-04-01 Jim Blandy <jimb@redhat.com>
7532
7533 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7534 function for register numbers on all the rs6000-derived targets.
7535 (rs6000_gdbarch_init): Don't register a separate
7536 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7537 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7538 variants.
7539
7540 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7541 numbering.
7542
7543 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7544
7545 * valarith.c: Update copyright notice.
7546 (value_add): Handle range types.
7547 (value_sub): Ditto.
7548 (value_equal): Ditto.
7549 (value_less): Ditto.
7550 (value_neg): Ditto.
7551 (value_complement): Ditto.
7552 (value_binop): Simplify slightly by using is_integral_type and
7553 eliminiating unnecessary COERCE_ENUMs.
7554
7555 2004-03-31 Andrew Cagney <cagney@redhat.com>
7556
7557 * frame.h (frame_unwind_id): Declare.
7558 * frame.c (frame_unwind_id): New function.
7559 (get_prev_frame_1): New function.
7560 (frame_debug_got_null_frame): New function.
7561 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7562 code proper to prev_frame, update description.
7563 * infrun.c (step_over_function): Use frame_unwind_id.
7564
7565 2004-04-31 J. Brobecker <brobecker@gnat.com>
7566
7567 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7568 (hppa64_push_dummy_call): Likewise.
7569
7570 2004-03-30 Jim Blandy <jimb@redhat.com>
7571
7572 From Ulrich Weigand:
7573 * utils.c (query): Do not use a va_list variable multiple times.
7574
7575 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7576
7577 * Makefile.in (linux_nat_h): Update dependencies.
7578 * configure.in: Check for <gnu/libc-version.h>.
7579 * configure: Regenerate.
7580 * config.in: Regenerate.
7581 * linux-nat.h: Include "target.h". Add waitstatus field to
7582 struct lwp_info.
7583 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7584 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7585 to.
7586 (lin_lwp_handle_extended): New function. Handle clone events.
7587 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7588 thread exit events.
7589 (child_wait): Handle clone events.
7590 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7591 * linux-nat.c (linux_enable_event_reporting): Turn on
7592 PTRACE_O_TRACECLONE.
7593 (linux_handle_extended_wait): Handle clone events.
7594 * thread-db.c: Include <gnu/libc-version.h>.
7595 (struct private_thread_info): Add dying flag.
7596 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7597 higher.
7598 (attach_thread): Update comments. Handle dying threads.
7599 (detach_thread): Set the dying flag.
7600 (check_event): Always call attach_thread.
7601
7602 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
7603
7604 * mips-tdep.c (mips_pdr_data): New.
7605 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7606 (_initialize_mips_tdep): Initialize mips_pdr_data.
7607
7608 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
7609
7610 * minsyms.c (install_minimal_symbols): Move dropping leading
7611 char from linkage name from here...
7612 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7613 test for "__gnu_compiled*" symbols.
7614
7615 2004-03-28 Jim Blandy <jimb@redhat.com>
7616
7617 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7618 registers to temp register r0 and byte stores as prologue
7619 instructions.
7620
7621 2004-03-28 Andrew Cagney <cagney@redhat.com>
7622
7623 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7624 arm*-*-*.
7625
7626 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7627
7628 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7629 and switch the layout to force a display of register window.
7630
7631 2004-02-26 J. Brobecker <brobecker@gnat.com>
7632
7633 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7634 of the INTEGER class.
7635
7636 2004-03-26 Jim Blandy <jimb@redhat.com>
7637
7638 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7639 bytes long on PPC GNU/Linux.
7640
7641 2004-03-26 David Carlton <carlton@kealia.com>
7642
7643 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7644
7645 2004-03-25 Andrew Cagney <cagney@redhat.com>
7646
7647 * PROBLEMS: Add general section titles, remove references to
7648 specific releases.
7649
7650 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
7651
7652 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7653 INT_REGISTER_SIZE.
7654 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7655 FP_REGISTER_VIRTUAL_SIZE.
7656 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7657 of DEPRECATED_REGISTER_RAW_SIZE.
7658 (arm_register_type): Add gdbarch argument.
7659 (arm_register_raw_size, arm_register_virtual_size): Delete.
7660 (arm_register_byte, arm_extract_return_value)
7661 (arm_store_return_value, arm_get_longjmp_target): Update references
7662 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7663 (arm_gdbarch_init): Likewise. Don't set
7664 deprecated_register_raw_size, deprecated_register_virtual_size,
7665 deprecated_max_register_raw_size,
7666 deprecated_max_register_virtual_size, or
7667 deprecated_max_register_virtual_type. Do set register_type.
7668 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7669 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7670 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7671 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7672 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7673 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7674 INT_REGISTER_SIZE.
7675 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7676 (remote_rdp_store_register): Likewise.
7677
7678 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
7679
7680 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7681 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7682 to after osabi initialization.
7683 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7684 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7685 functions.
7686 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7687 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7688 variables.
7689 (mips_linux_init_abi): Append signal trampoline unwinders.
7690
7691 2004-03-24 Andrew Cagney <cagney@redhat.com>
7692
7693 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7694 * tramp-frame.c: Include "gdb_assert.h".
7695 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7696 correct sizeof.
7697 (tramp_frame_append): Validate the tramp frame's instructions.
7698 * Makefile.in (tramp-frame.o): Update dependencies.
7699
7700 2004-03-23 Andrew Cagney <cagney@redhat.com>
7701
7702 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7703
7704 2004-03-23 Andrew Cagney <cagney@redhat.com>
7705
7706 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7707 Nasser as past testsuite/lib/ (and other) maintainers.
7708
7709 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7710
7711 * infcmd.c (attach_command): Reread symbols if we already have
7712 an exec file.
7713
7714 2004-03-23 Andrew Cagney <cagney@redhat.com>
7715
7716 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7717
7718 2004-03-23 Andrew Cagney <cagney@redhat.com>
7719
7720 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7721 * gdbarch.h, gdbarch.c: Re-generate.
7722 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7723 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7724 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7725 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
7726 (DEPRECATED_SIGTRAMP_START): Update.
7727 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
7728 (DEPRECATED_SIGTRAMP_START): Update.
7729 * blockframe.c (find_pc_sect_partial_function): Update.
7730 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7731
7732 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
7733
7734 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7735 if necessary.
7736
7737 2004-03-23 Andrew Cagney <cagney@redhat.com>
7738
7739 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7740 predicate, deprecate.
7741 * gdbarch.h, gdbarch.c: Re-generate.
7742 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7743 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7744 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7745 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7746 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7747 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7748 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7749 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7750 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7751 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7752 * blockframe.c (find_pc_partial_function): Update.
7753 * breakpoint.c (bpstat_what): Update.
7754 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7755 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7756 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7757 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7758 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7759 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7760 * i386-nto-tdep.c (i386nto_init_abi): Update.
7761 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7762 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7763 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7764 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7765 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7766 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7767 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7768 * infrun.c (pc_in_sigtramp): Update.
7769 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7770 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7771 * mips-tdep.c (mips_gdbarch_init): Update.
7772 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7773 * ppc-linux-tdep.c: Update comment.
7774 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7775 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7776 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7777 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7778 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7779 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7780 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7781 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7782 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7783 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
7784
7785 2004-03-23 Andrew Cagney <cagney@redhat.com>
7786
7787 * tramp-frame.h, tramp-frame.h: New files.
7788 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7789 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7790
7791 * Makefile.in: Update all dependencies.
7792
7793 2004-03-23 Andrew Cagney <cagney@redhat.com>
7794
7795 * Makefile.in (trad_frame_h): Add $(frame_h).
7796 * trad-frame.h: Update copyright. Include "frame.h".
7797 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7798 (trad_frame_set_id, trad_frame_get_id): Declare.
7799 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7800 * trad-frame.c: Update copyright.
7801 (struct trad_frame_cache): Define.
7802 (trad_frame_cache_zalloc): New function.
7803 (trad_frame_set_id, trad_frame_get_id): New functions.
7804 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
7805
7806 2004-03-22 Andrew Cagney <cagney@redhat.com>
7807
7808 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7809 s390_pltstub_unwind_cache.
7810 (s390_stub_frame_unwind_cache): Rename
7811 s390_pltstub_frame_unwind_cache.
7812 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7813 (s390_stub_frame_prev_register): Rename
7814 s390_pltstub_frame_prev_register.
7815 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7816 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7817
7818 From Ulrich Weigand:
7819 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7820 pointer calls like PLT calls.
7821
7822 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7823
7824 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7825 PC rather than the partial function start address. Use the start
7826 address to sanity check the found PDR.
7827
7828 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
7829
7830 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7831 linux_handle_extended_wait.
7832
7833 2004-03-22 Andrew Cagney <cagney@redhat.com>
7834
7835 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7836 function.
7837
7838 * frame.h (generic_pop_current_frame): Delete declaration.
7839 (deprecate_pop_dummy_frame): Deprecate
7840 generic_pop_dummy_frame.
7841 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7842 (generic_pop_current_frame): Delete function.
7843 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7844 generic_pop_current_frame.
7845 * v850-tdep.c (v850_pop_frame): Update.
7846 * mcore-tdep.c (mcore_pop_frame): Update.
7847 * sh64-tdep.c (sh64_pop_frame): Update.
7848 * h8300-tdep.c (h8300_pop_frame): Update.
7849
7850 2004-03-22 Andrew Cagney <cagney@redhat.com>
7851
7852 * frame.h (deprecated_pc_in_call_dummy): Rename
7853 generic_pc_in_call_dummy.
7854 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7855 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7856 generic_pc_in_call_dummy.
7857 (pc_in_dummy_frame): Make static.
7858 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7859 * gdbarch.h, gdbarch.c: Re-generate.
7860 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7861 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7862 (legacy_get_prev_frame): Ditto.
7863 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7864 comment.
7865
7866 2004-03-21 Andrew Cagney <cagney@redhat.com>
7867
7868 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7869 declaration and out-of-date comment.
7870 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7871 Delete function.
7872 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7873 deprecated_pc_in_call_dummy.
7874
7875 * infrun.c (handle_inferior_event): For non legacy frames, use the
7876 frame ID and frame type to identify a signal trampoline. Update
7877 comments.
7878
7879 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7880
7881 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7882 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7883
7884 2004-03-21 Andrew Cagney <cagney@redhat.com>
7885
7886 * frame-unwind.h: Update copyright.
7887 (struct frame_data): Add opaque declaration.
7888 (frame_sniffer_ftype): Declare.
7889 (struct frame_unwind): Add "unwind_data" and "sniffer".
7890 (frame_unwind_register_unwinder): Declare.
7891 (frame_unwind_find_by_frame): Add parameter "this_cache".
7892 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7893 (legacy_get_prev_frame, legacy_get_prev_frame)
7894 (get_frame_type): Pass the prologue_cache to
7895 frame_unwind_find_by_frame.
7896 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7897 "unwinder".
7898 (frame_unwind_register_unwinder): New function.
7899 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7900
7901 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7902
7903 * bcache.c (print_percentage): Use floating point to avoid
7904 incorrect results when portion*100 overflows.
7905
7906 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7907
7908 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7909 (ppc_linux_init_extra_frame_info)
7910 (ppc_linux_frameless_function_invocation)
7911 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7912 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7913 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7914 (rs6000_frame_chain): Delete declarations.
7915 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7916 (ppc_linux_init_extra_frame_info)
7917 (ppc_linux_frameless_function_invocation)
7918 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7919 (ppc_linux_init_abi): Remove registration of above deleted functions.
7920 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7921 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7922 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7923 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7924 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7925 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7926 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7927 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7928 frame management for all OSABIs.
7929
7930 2004-03-19 Andrew Cagney <cagney@redhat.com>
7931
7932 Committed by Kevin Buettner <kevinb@redhat.com>.
7933
7934 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7935 Update copyright.
7936 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7937 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7938 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7939 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7940 unwinders. #ifdef legacy frame code.
7941 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7942 "frame-base.h".
7943 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7944 (struct rs6000_frame_cache, rs6000_frame_cache)
7945 (rs6000_frame_this_id, rs6000_frame_prev_register)
7946 (rs6000_frame_sniffer, rs6000_frame_unwind)
7947 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7948 (rs6000_frame_base): Implement a traditional frame unwinder.
7949 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7950 frame unwinder.
7951
7952 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7953
7954 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7955 breakpoint address for watchpoints or the catch eventpoints.
7956 Add new paramter ``bptype''. Adjust all callers.
7957
7958 2004-03-19 Andrew Cagney <cagney@redhat.com>
7959
7960 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7961
7962 * PROBLEMS: Delete note that ARM does not use frame code, problem
7963 fixed.
7964
7965 2004-03-18 Andrew Cagney <cagney@redhat.com>
7966
7967 * stack.c (return_command): Delete code wrapped in #ifdef
7968 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7969
7970 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7971
7972 2004-03-18 Andrew Cagney <cagney@redhat.com>
7973
7974 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7975 DEPRECATED_IN_SIGTRAMP.
7976 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7977 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7978 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7979 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7980 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7981 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7982 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7983 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7984 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7985 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7986
7987 2004-03-18 Andrew Cagney <cagney@redhat.com>
7988
7989 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7990 (struct frame_base_table_entry): Define.
7991 (struct frame_base_table): Re-implement as a linked list.
7992 (frame_base_init): Re-implement.
7993 (frame_base_table): Delete function.
7994 (append_predicate): Delete function.
7995 (frame_base_append_sniffer): Update.
7996 (frame_base_set_default): Update.
7997 (frame_base_find_by_frame): Update.
7998 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7999 * Makefile.in (frame-base.o): Update dependencies.
8000
8001 2004-03-17 Andrew Cagney <cagney@redhat.com>
8002
8003 * frame.c (legacy_get_prev_frame): Pass correct frame to
8004 frame_unwind_find_by_frame.
8005
8006 2004-03-17 David Carlton <carlton@kealia.com>
8007
8008 * NEWS: Mention C++ nested types and namespaces
8009
8010 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8011
8012 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8013 and "Regressions since gdb 5.3.". Add known regressions since
8014 gdb 6.0.
8015
8016 2004-03-16 David Carlton <carlton@kealia.com>
8017
8018 * dwarf2read.c (process_structure_scope): Process children even
8019 when we're a declaration.
8020
8021 2004-03-16 Andrew Cagney <cagney@redhat.com>
8022
8023 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8024 * blockframe.c (find_pc_partial_function)
8025 (find_pc_sect_partial_function): Merge into a single
8026 find_pc_partial_function.
8027
8028 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8029
8030 * i386bsd-nat.c: s/regno/regnum/g.
8031 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8032 FP0_REGNUM.
8033 (store_inferior_registers): Likewise.
8034
8035 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8036
8037 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8038 of i387_fill_fsave.
8039 (store_inferior_registers): Call i387_collect_fsave and
8040 i387_collect_fxsave instead of i387_fill_fsave and
8041 i387_fill_fxsave.
8042
8043 2004-03-15 Andrew Cagney <cagney@redhat.com>
8044
8045 * Makefile.in (frame-unwind.o): Update dependencies.
8046 * frame-unwind.c: Include "gdb_obstack.h".
8047 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8048 parameter.
8049 (append_predicate): Delete function.
8050 (struct frame_unwind_table_entry): New structure.
8051 (struct frame_unwind_table): Replace "sniffer" with "head" and
8052 "tail".
8053 (frame_unwind_append_sniffer): Update.
8054 (frame_unwind_find_by_frame): Update.
8055 (_initialize_frame_unwind): Registe frame_unwind_init using
8056 gdbarch_data_register_pre_init.
8057
8058 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8059
8060 * i386bsd-nat.c: Update copyright year.
8061 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8062 define unconditionally.
8063
8064 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8065
8066 * i387-tdep.h (i387_collect_fsave): New prototype.
8067 * i387-tdep.c (i387_collect_fsave): New function containing most
8068 of the code from i387_fill_fsave.
8069 (i387_fill_fsave): Call i387_collect_fsave.
8070
8071 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8072
8073 * i386-linux-tdep.c: Update copyright year.
8074 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8075 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8076 svr4_ilp32_link_map_offsets instead of
8077 i386_linux_svr4_fetch_link_map_offsets.
8078
8079 2004-03-15 David Carlton <carlton@kealia.com>
8080
8081 Fix for PR c++/1553:
8082 * dwarf2read.c (read_structure_type): Determine type name by
8083 calling determine_class_name.
8084 (determine_class_name): New.
8085 (determine_prefix): Look at TYPE_TAG_NAME and call
8086 determine_class_name when appropriate.
8087 (determine_prefix_aux, class_name): Delete.
8088 (read_namespace): Set die->type.
8089
8090 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8091
8092 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8093 unused macro definition. The definition in target.h (or perhaps
8094 elsewhere) takes precedence.
8095
8096 2004-03-15 Andrew Cagney <cagney@redhat.com>
8097
8098 * ppc-tdep.h: Update copyright.
8099 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8100 function signatures to match "regsets.h".
8101 * ppc-linux-tdep.c: Include "regset.h".
8102 (ELF_GREGSET_SIZE): Delete.
8103 (right_supply_register): New function.
8104 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8105 using right_supply_register.
8106 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8107 functions.
8108 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8109 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8110 (_initialize_ppc_linux_tdep): Do not register
8111 ppc_linux_regset_core_fns.
8112 (ppc_linux_regset_from_core_section): Replace
8113 fetch_core_registers.
8114 (ppc_linux_regset_core_fns): Delete.
8115 * ppc-linux-nat.c: (right_fill_reg): New function.
8116 (supply_gregset): Update call to ppc_linux_supply_gregset.
8117 (fill_gregset): Clear the register set, use right_fill_reg.
8118 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8119 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8120
8121 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8122 unsigned.
8123
8124 2004-03-15 Andrew Cagney <cagney@redhat.com>
8125
8126 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8127 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8128 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8129 and register_gdbarch_data.
8130 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8131 (struct gdbarch_data): Replace "init" by "pre_init" and
8132 "post_init".
8133 * gdbarch.h, gdbarch.c: Re-generate.
8134 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8135 with"obstack", use OBSTACK_ZALLOC.
8136 (dwarf2_frame_ops): Delete.
8137 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8138 (dwarf2_frame_init_reg): Use gdbarch_data.
8139 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8140 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8141 (_initialize_svr4_solib): Update.
8142 * user-regs.c (_initialize_user_regs): Update.
8143 * reggroups.c (_initialize_reggroup): Update.
8144 * regcache.c (_initialize_regcache): Update.
8145 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8146 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8147 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8148 * frame-unwind.c (_initialize_frame_unwind): Update.
8149 * frame-base.c (_initialize_frame_base): Update.
8150 * user-regs.c (user_reg_add): Update.
8151 * reggroups.c (reggroup_add): Update.
8152 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8153 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8154 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8155 * frame-base.c (frame_base_table): Update.
8156 * remote.c (_initialize_remote): Update.
8157 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8158
8159 2004-03-15 Andrew Cagney <cagney@redhat.com>
8160
8161 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8162
8163 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8164
8165 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8166 * frv-linux-tdep.c: New file.
8167 * frv-tdep.c (struct gdbarch_tdep): Add new field
8168 ``sigcontext_reg_addr''.
8169 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8170 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8171 (frv_sigramp_frame_sniffer): New functions.
8172 (frv_sigtramp_frame_unwind): New static global.
8173 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8174 sniffers.
8175 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8176 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8177
8178 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8179
8180 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8181 but not via a call to error(), when unable to read memory.
8182
8183 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8184
8185 * frv-tdep.c (frv_call_dummy_words): Delete.
8186 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8187
8188 2004-03-15 Andrew Cagney <cagney@redhat.com>
8189
8190 * infrun.c (handle_step_into_function, step_over_function): Only
8191 update and use STEP_FRAME_ID when the system is using legacy
8192 frames. Update comments.
8193
8194 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8195
8196 * amd64-linux-tdep.h: Remove file.
8197 * amd64-linux-tdep.c: Don't include "inferior.h" and
8198 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8199 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8200 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8201 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8202 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8203 macros.
8204 (user_to_gdb_regmap): Remove variable.
8205 (amd64_linux_gregset_reg_offset): New variable.
8206 (amd64_core_fns): Remove variable.
8207 (fetch_core_registers): Remove function.
8208 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8209 functions.
8210 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8211 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8212 * Makefile.in (amd64_linux_tdep_h): Remove.
8213 (amd64-linux-nat.o): Update dependencies.
8214 (amd64-linux-tdep.o): Update dependencies.
8215
8216 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8217 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8218 functions.
8219 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8220
8221 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8222 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8223
8224 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8225
8226 * dwarf2read.c (read_structure_type): Rename from
8227 read_structure_scope. Don't create a symbol or call process_die.
8228 Return immediately if die->type is set. Call read_type_die before
8229 dwarf2_add_member_fn.
8230 (process_structure_scope): New function.
8231 (read_enumeration_type, process_enumeration_scope): New functions,
8232 broken out from read_enumeration. Don't create the enumeration
8233 type if it has already been created.
8234 (read_enumeration): Removed.
8235 (process_die): Call read_structure_type, process_structure_scope,
8236 read_enumeration_type, and process_enumeration_scope. Just call
8237 new_symbol for base and subrange types. Add a comment about other
8238 type dies.
8239 (read_type_die): Call read_enumeration_type.
8240 (add_partial_structure, new_symbol): Update comments.
8241
8242 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8243
8244 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8245
8246 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8247
8248 * tui/tui-win.h (tui_get_cmd_list): Declare.
8249 * tui/tui-win.c (tui_command): New function.
8250 (tui_get_cmd_list): New function.
8251 (_initialize_tui_win): Moved initialization of tui command in
8252 tui_get_cmd_list.
8253
8254 * tui/tui-data.c (init_content_element): Setup new data members.
8255 (init_win_info): Likewise.
8256 (free_content_elements): Free it.
8257 * tui/tui-data.h (struct tui_data_element): Store the register
8258 content to print.
8259 (struct tui_data_info): Keep the current register group.
8260
8261 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8262
8263 * tui/tui-regs.h (tui_show_registers): Update prototype.
8264 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8265 (tui_resize_all): No need to calculate anything for register window.
8266 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8267 (tui_set_register_element, tui_set_general_regs_content): Remove.
8268 (tui_set_special_regs_content): Remove.
8269 (tui_set_general_and_special_regs_content): Remove.
8270 (tui_set_float_regs_content): Remove.
8271 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8272 (tui_set_regs_content): Remove.
8273 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8274 (tui_v_show_registers_command_support): Remove.
8275 (tui_show_registers): Use a reggroup to specify the registers to show.
8276 (tui_show_register_group): New function.
8277 (tui_display_registers_from): Compute the layout of register window
8278 and refresh with new API; be sure to delete old register windows.
8279 (tui_check_register_values): Update to use tui_get_register and
8280 tui_display_data.
8281 (tui_display_register): Just refresh the register window part.
8282 (tui_register_format): Format registers and save in tui_data_element.
8283 (tui_get_register): New to combine tui_reg_value_has_changed and
8284 tui_get_register_raw_value; fix to use the new gdb API.
8285 (tui_show_float_command): Renamed tui_reg_float_command.
8286 (tui_show_general_command): Renamed tui_reg_general_command.
8287 (tui_show_special_command): Renamed tui_reg_system_command.
8288 (_initialize_tui_regs): Remove unused commands.
8289
8290 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8291
8292 * NEWS (New native configurations): Mention OpenBSD/amd64.
8293
8294 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8295 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8296 Remove defines.
8297 * config/i386/nm-fbsd64.h: Likewise.
8298 * config/i386/nm-obsd.h: Likewise.
8299 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8300 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8301
8302 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8303
8304 * frv-tdep.c (set_variant_scratch_registers): New function.
8305 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8306 New constants.
8307
8308 From Richard Sandiford <rsandifo@redhat.com>:
8309 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8310
8311 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8312
8313 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8314 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8315 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8316 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8317 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8318 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8319 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8320 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8321 definitions from frv-tdep.c to frv-tdep.h.
8322
8323 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8324
8325 Add shared library support for FR-V FDPIC ABI:
8326 * Makefile.in (solib-frv.o): Add dependencies.
8327 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8328 New functions.
8329 (frv_push_dummy_call): Add support for FDPIC ABI.
8330 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8331 for FDPIC ABI.
8332 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8333 (frv_fdpic_find_canonical_descriptor): Declare.
8334 * solib-frv.c: New file.
8335 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8336 * config/frv/tm-frv.h (solib.h): Include.
8337
8338 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8339
8340 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8341 (frv-tdep.o): Update dependencies.
8342 * frv-tdep.h: New file.
8343 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8344 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8345 constants.
8346 (struct gdbarch_tdep): Add new member ``frv_abi''.
8347 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8348 functions.
8349 (new_variant): Set ``frv_abi'' field.
8350 (gdb_arch_init): Detect FDPIC executables.
8351
8352 2004-03-12 Mark Kettenis <kettenis@gnu.org>
8353
8354 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8355 wrapper.
8356
8357 2004-03-11 Andrew Cagney <cagney@redhat.com>
8358
8359 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8360
8361 2004-03-11 Kevin Buettner <kevinb@redhat.com>
8362
8363 * solist.h (master_so_list): New function.
8364 * solib.c (master_so_list): Likewise.
8365 * solib-svr4.c (enable_break): Iterate over so_list entries
8366 obtained from master list instead of entries obtained directly
8367 via svr4_current_sos().
8368
8369 2004-03-10 Ben Elliston <bje@gnu.org>
8370
8371 * MAINTAINERS: Update my mail address.
8372
8373 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8374
8375 * remote-m32r-sdi.c: Support hardware watchpoint.
8376
8377 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8378
8379 * user-regs.c: Update copyright years.
8380 (struct user_regs): Rename to gdb_user_regs.
8381 (append_user_reg, builtin_user_regs, user_regs_init)
8382 (user_reg_add, user_reg_map_name_to_regnum)
8383 (usernum_to_user_reg): Update.
8384
8385 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8386
8387 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8388 (skip_children): New functions.
8389 (locate_pdi_sibling): Call skip_children.
8390
8391 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8392
8393 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8394 * gdbtypes.c (check_typedef): Update comments.
8395
8396 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8397
8398 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8399 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8400 pointer. Update comment about comp_unit_head.
8401 (struct abbrev_info): Shorten two int flags.
8402 (dwarf_alloc_abbrev): Take a CU argument.
8403 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8404 each time through the loop. Update cleanup argument.
8405 (psymtab_to_symtab_1): Update cleanup call.
8406 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8407 abbrev_obstack.
8408 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8409 Just call obstack_free and clear the pointer.
8410
8411 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8412
8413 * infrun.c (handle_inferior_event): Remove short-circuit code for
8414 events in a different thread.
8415
8416 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8417
8418 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8419 print the whole transfer.
8420 (initialize_targets): Update description of "set debug target".
8421
8422 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8425
8426 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8427
8428 * MAINTAINERS (write after approval): Add myself.
8429
8430 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8431
8432 * sh-tdep.c (sh_print_registers_info): Use for loop.
8433 Don't skip multiple registers when a float register is encountered.
8434
8435 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
8436
8437 Fix PR tdep/1291.
8438 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8439 to official SH documentation.
8440
8441 2004-03-07 Andrew Cagney <cagney@redhat.com>
8442
8443 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8444 unused function.
8445
8446 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
8447
8448 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8449 (arm_get_next_pc): Handle BX and BLX.
8450
8451 2004-03-07 Andrew Cagney <cagney@redhat.com>
8452
8453 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8454 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8455 HPPA_SP_REGNUM.
8456 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8457 (hppa_target_read_fp): Delete.
8458 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8459 register_virtual_size, max_register_raw_size,
8460 max_register_virtual_size, register_byte, register_size,
8461 target_read_fp, fp_regnum, and register_bytes. Set register_type
8462 instead of register_virtual_type.
8463 (hppa32_register_type, hppa64_register_type): Replace
8464 hppa32_register_virtual_type and hppa64_register_virtual_type.
8465 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8466 (HPPA_FP_REGNUM): Define.
8467
8468 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8469
8470 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8471 (pa_do_registers_info): Delete.
8472 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8473 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
8474 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
8475
8476 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8477 GDB_TARGET_IS_HPPA code.
8478 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8479 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
8480 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8481 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8482 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8483 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8484 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
8485 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8486 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8487 (hppa_frameless_function_invocation, hppa64_store_return_value)
8488 (hppa_store_struct_return, hppa64_extract_return_value)
8489 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8490 (hppa32_call_dummy_length, hppa64_call_dummy_length)
8491 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8492 (find_proc_framesize, deposit_21, restore_pc_queue)
8493 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
8494 (rp_saved, pc_in_linker_stub): Delete.
8495
8496 Unconditionally enable 64-bit frame and ABI code.
8497 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8498 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8499 push_dummy_frame, fix_call_dummy, push_arguments,
8500 call_dummy_location, extract_return_value, use_struct_convention,
8501 store_return_value, store_struct_return, saved_pc_after_call,
8502 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8503 frame_chain, frame_chain_valid, frameless_function_invocation,
8504 frame_saved_pc, and pop_frame.
8505
8506 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8507 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8508 (hppa_gdbarch_init): Do not set PC_REGNUM.
8509
8510 2004-03-06 Mark Kettenis <kettenis@gnu.org>
8511
8512 * config/alpha/tm-fbsd.h: Remove file.
8513 * config/alpha/fbsd.mt: Tweak comment.
8514 (TM_FILE): Set to tm-alpha.h.
8515
8516 2004-03-05 Andrew Cagney <cagney@redhat.com>
8517
8518 * infrun.c (step_over_function): When non-legacy code, and no
8519 step_frame_id, use the unwinder to get the caller's frame ID.
8520
8521 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8522
8523 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8524 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8525 bfd_arch_unknown. Adjust comment.
8526
8527 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8528 * i386obsd-tdep.c: Correct spelling in comment.
8529 * i386nbsd-tdep.c: Correct spelling in comment.
8530 * sparc-tdep.c: Correct spelling in comments.
8531
8532 2004-03-05 David Carlton <carlton@kealia.com>
8533
8534 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8535 bug.
8536
8537 2004-03-05 Mark Kettenis <kettenis@gnu.org>
8538
8539 * sparc-tdep.c: Fix typo in comment.
8540
8541 2004-03-04 J. Brobecker <brobecker@gnat.com>
8542
8543 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8544
8545 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
8546
8547 * dwarf2read.c: Add comment describing memory lifetimes.
8548 (struct dwarf2_pinfo): Update comment.
8549 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8550 (read_enumeration, new_symbol): Don't use obsavestring.
8551
8552 2004-03-04 Mark Kettenis <kettenis@gnu.org>
8553
8554 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8555 instead of amd64_fill_fxsave.
8556 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8557 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8558
8559 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8560 Reorganize code a bit.
8561
8562 2004-03-04 Orjan Friberg <orjanf@axis.com>
8563
8564 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8565 when the frame pointer is pushed. Don't set the frame pointer's
8566 address on the stack unless it's actually located there.
8567 Set the SRP's address on the stack correctly when the PC is still in
8568 the prologue.
8569 (cris_return_value): New function.
8570 (cris_gdbarch_init): Clear deprecated store_return_value,
8571 extract_return_value.
8572
8573 2004-03-02 Jim Blandy <jimb@redhat.com>
8574
8575 * stabsread.c (reg_value_complaint): The maximum register number
8576 is one less than the number of registers.
8577
8578 2004-03-02 Andrew Cagney <cagney@redhat.com>
8579
8580 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8581 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8582 trailing comma and redundant assignment of I386_ST0_REGNUM.
8583 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8584 32-bit segment registers.
8585
8586 2004-03-01 Andrew Cagney <cagney@redhat.com>
8587
8588 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8589 use frame_relative_level and get_next_frame.
8590
8591 2004-02-29 Andrew Cagney <cagney@redhat.com>
8592
8593 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8594 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8595 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8596 Delete macro.
8597
8598 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8599
8600 * inflow.c (terminal_inferior): Don't give up the terminal if we
8601 previously couldn't get the inferior's terminal state.
8602
8603 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
8604
8605 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8606 PC_REGNUM.
8607
8608 2004-02-28 Andrew Cagney <cagney@redhat.com>
8609
8610 * NEWS: Refer to GDB 6.1.
8611 * README: Refer to GDB 6.1.
8612 * PROBLEMS: Refer to GDB 6.1.
8613
8614 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
8615
8616 * thread-db.c (disable_thread_signals): Remove unused function.
8617
8618 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8619
8620 * amd64-nat.c: Include "gdb_string.h".
8621 (amd64_collect_native_gregset): Zero-extend the 32-bit
8622 general-purpose registers and %eip.
8623
8624 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8625 * amd64-tdep.c (amd64_collect_fxsave): New function.
8626 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8627
8628 * i387-tdep.h: Update copyright year.
8629 (i387_collect_fxsave): New prototype.
8630 * i387-tdep.c: Update copyright year.
8631 (i387_collect_fxsave): New function containing most of the code
8632 from i387_fill_fxsave.
8633 (i387_fill_fxsave): Call i387_collect_fxsave.
8634
8635 2004-02-28 Andrew Cagney <cagney@redhat.com>
8636
8637 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8638 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8639
8640 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8641
8642 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8643
8644 2004-02-28 Andrew Cagney <cagney@redhat.com>
8645
8646 * utils.c: Use "", instead of <>, to include readline.
8647 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8648 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8649 * source.c, solib.c, exec.c, event-top.c: Ditto.
8650 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8651 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8652 * Makefile.in: Update all dependencies.
8653 (readline_tilde_h, readline_history_h): Define.
8654 (readline_headers): Delete.
8655
8656 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8657
8658 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8659 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8660 "config/i386/tm-lx64.h".
8661
8662 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8663 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8664 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8665
8666 2004-02-28 Andrew Cagney <cagney@redhat.com>
8667
8668 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8669
8670 * breakpoint.c (_initialize_breakpoint): Use
8671 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8672 Add help to show command.
8673
8674 2004-02-28 Mark Kettenis <kettenis@gnu.org>
8675
8676 * i386-nat.c: Reformat to be closer to coding standards.
8677 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8678 `retval'. Make variables `align' and `size' local to while-loop.
8679 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8680 (_initialize_i386_nat): New prototype.
8681
8682 * tui/tui.c: Include <readline/readline.h> instead of
8683 "readline/readline.h". Include it after <term.h> and
8684 "gdb_curses.h".
8685
8686 2004-02-27 Andrew Cagney <cagney@redhat.com>
8687
8688 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8689 the new frame unwind code.
8690 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8691 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8692 PCOQ_HEAD_REGNUM.
8693
8694 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8695 "return_value" and "push_dummy_call".
8696 (hppa32_use_struct_convention): Delete unused function.
8697 (hppa32_store_return_value): Delete unused function.
8698 (hppa32_extract_return_value): Delete unused function.
8699 (hppa32_stack_align): Delete function.
8700
8701 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
8702
8703 * coffread.c (enter_linenos): Don't let rawptr reference memory
8704 outside linetab[]'s limits.
8705
8706 2004-02-27 Andrew Cagney <cagney@redhat.com>
8707
8708 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8709 inferior stack space - the stack needs to grow upwards.
8710 (hppa32_frame_align): New function.
8711 (hppa64_frame_align): Replace hppa_frame_align.
8712 (hppa_gdbarch_init): Update.
8713
8714 2004-02-26 Orjan Friberg <orjanf@axis.com>
8715
8716 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8717 (dwarf2-frame.h): Include.
8718 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8719 Remove static variables related to ABI setting.
8720 (struct gdbarch_tdep): Remove cris_abi member.
8721 (struct frame_extra_info): Remove.
8722 (cris_unwind_cache, stack_item): New structs.
8723 (cris_frame_unwind, cris_frame_base): New variables.
8724 (push_stack_item, pop_stack_item)
8725 (cris_frame_unwind_cache, cris_frame_this_id)
8726 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8727 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8728 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8729 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8730 (cris_reg_struct_has_addr): New functions.
8731 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8732 (cris_frame_saved_pc, cris_saved_pc_after_call,
8733 (cris_store_struct_return, cris_frameless_function_invocation)
8734 (cris_pop_frame, cris_skip_prologue_main)
8735 (cris_abi_original_store_return_value)
8736 (cris_abi_v2_store_return_value)
8737 (cris_abi_original_extract_return_value)
8738 (cris_abi_v2_extract_return_value)
8739 (cris_abi_original_reg_struct_has_addr)
8740 (cris_abi_v2_reg_struct_has_addr)
8741 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8742 (cris_push_return_address, cris_abi_update): Remove.
8743 (_initialize_cris_tdep): Remove ABI command.
8744 (cris_dump_tdep): Ditto.
8745 (cris_gdbarch_init): Remove ABI command.
8746 Set store_return_value, extract_return_value, push_dummy_code,
8747 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8748 frame_unwind_append_sniffer, frame_base_set_default.
8749 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8750 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8751 sizeof_call_dummy_words, get_saved_register, push_return_address,
8752 pop_frame, store_struct_return, frame_init_saved_regs,
8753 init_extra_frame_info, frameless_function_invocation, frame_chain,
8754 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8755 dummy_write_sp.
8756
8757 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8758
8759 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8760 * valprint.c (print_hex_chars): Change from static to external.
8761 (print_char_chars): New function.
8762 * printcmd.c (print_scalar_formatted): For integer and enum types
8763 that are longer than LONGEST, perform processing via appropriate
8764 print_*_chars routines.
8765
8766 2004-02-26 Andrew Cagney <cagney@redhat.com>
8767
8768 * Makefile.in: Update dependencies.
8769 Changes from Ulrich Weigand,
8770 * s390-tdep.c: Include "dwarf2-frame.h".
8771 (s390_dwarf2_frame_init_reg): New function.
8772 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8773 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8774
8775 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8776
8777 * breakpoint.c (pending_break_support): New setting variable.
8778 (break_command_1): Account for pending_break_support setting
8779 when creating pending breakpoints.
8780 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8781 (_initialize_breakpoint): Add "set breakpoint pending" and
8782 "show breakpoint pending" commands.
8783
8784 2004-02-26 Andrew Cagney <cagney@redhat.com>
8785
8786 Fix PR i18n/1570.
8787 * charset.c (backslashable, backslashed, represented): Remove 'e'
8788 from list of escaped characters, not part of ISO-C.
8789
8790 2004-02-25 J. Brobecker <brobecker@gnat.com>
8791
8792 From Peter Schauer <schauer@pdf.de>:
8793 * tui/tui.c: Move system header includes after local includes.
8794 Fixes a build failure on solaris systems.
8795
8796 2004-02-25 J. Brobecker <brobecker@gnat.com>
8797
8798 * configure.in: Refine the previous change.
8799 * configure: Regenerate.
8800
8801 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8802
8803 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8804 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8805 "amd64-tdep.h" instead of "x86-64-tdep.h".
8806 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8807 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8808 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8809 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8810 and "x86-64-tdep.c".
8811 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8812 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8813 and "x86-64-tdep.c".
8814 * amd64bsd-nat.c: Update copyright year.
8815 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8816 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8817 "x86-64-tdep.h".
8818 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8819 "x86-64-tdep.h".
8820 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8821 "x86-64-tdep.h".
8822 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8823 "x86-64-tdep.h".
8824 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8825 "x86-64-tdep.h".
8826 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8827 "x86-64-tdep.h".
8828 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
8829 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8830 * Makefile.in (amd64_linux_tdep_h): Renamed from
8831 x86_64_linux_tdep_h.
8832 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8833 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8834 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8835 (amd64obsd-tdep.o): Update dependencies.
8836 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8837 dependencies.
8838 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8839 dependencies.
8840 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8841 amd64-linux-nat.c amd64-linux-tdep.c.
8842 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8843 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8844 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8845 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8846 amd64-tdep.o and amd64-linux-tdep.o.
8847 (TM_FILE): Set to tm-linux64.h.
8848 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8849 (NAT_FILE): Set to nm-linux64.h.
8850 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8851 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8852 amd64-tdep.o.
8853 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8854 amd64-tdep.o.
8855 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8856 amd64-tdep.o.
8857
8858 2004-02-25 Roland McGrath <roland@redhat.com>
8859
8860 * remote.c (remote_protocol_qPart_auxv): New variable.
8861 (init_all_packet_configs): Initialize it.
8862 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8863 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8864 (show_remote_cmd): Call it.
8865 (_initialize_remote): Initialize commands.
8866 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8867 service TARGET_OBJECT_AUXV requests.
8868
8869 2004-02-25 J. Brobecker <brobecker@gnat.com>
8870
8871 * configure.in: Make sure that the wborder function is available.
8872 Otherwise, search for it in the cur_colr library.
8873 * configure: Regenerate.
8874
8875 2004-02-25 Andrew Cagney <cagney@redhat.com>
8876
8877 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8878
8879 2004-02-25 Mark Kettenis <kettenis@gnu.org>
8880
8881 * config/i386/tm-x86-64linux.h: Tweak comments.
8882
8883 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
8884
8885 * MAINTAINERS: Add self to write-after-approval list.
8886
8887 2004-02-25 Andrew Cagney <cagney@redhat.com>
8888
8889 PR cli/1566. Problem found, and fix suggested by David Allan.
8890 * cli/cli-script.c (execute_control_command): Unconditionally
8891 install a cleanup. Default "ret" to "invalid_control". Use
8892 "break" instead of "return" to escape from the switch.
8893
8894 2004-02-24 J. Brobecker <brobecker@gnat.com>
8895
8896 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8897 with the lines macro defined in term.h on AiX.
8898 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8899 a collision with the label_width macro defined in term.h on AiX.
8900
8901 2004-02-23 David Mosberger <davidm@hpl.hp.com>
8902
8903 Committed by Kevin Buettner <kevinb@redhat.com>.
8904
8905 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8906 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8907 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8908 instead of ia64_write_pc().
8909 * ia64-linux-tdep.c (regcache.h): Include.
8910 (ia64_linux_write_pc): New function.
8911
8912 2004-02-23 Roland McGrath <roland@redhat.com>
8913
8914 * auxv.c (info_auxv_command): Fix typos in error messages.
8915
8916 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8917
8918 * x86-64-tdep.h: Tweak comment.
8919 (enum amd64_regnum): New.
8920 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8921 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8922 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8923 (X86_64_XMM1_REGNUM): Removed.
8924 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8925 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8926 prototypes for renamed functions.
8927 * x86-64-tdep.c: Fix typo.
8928 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8929 register numbers.
8930 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8931 Use constants from `enum amd64_regnum' for register numbers.
8932 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8933 (amd64_analyze_prologue, amd64_frame_cache,
8934 amd64_sigtramp_frame_cache): Use constants from `enum
8935 amd64_regnum' for register numbers.
8936 (amd64_supply_fpregset): Adjust for renamed functions.
8937 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8938 `enum amd64_regnum' for register numbers.
8939 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8940 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8941 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8942 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8943 (amd64_linux_fill_gregset): Adjust for renamed macros.
8944 (fetch_core_registers): Adjust for renamed functions.
8945 (amd64_linux_init_abi): Adjust for renamed functions.
8946 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8947 renamed functions.
8948 * amd64-nat.c: Adjust for renamed macros.
8949 * amd64bsd-nat.c (fetch_inferior_registers)
8950 (store_inferior_registers): Use constants from `enum amd64_regnum'
8951 for register numbers. Adjust for renamed variables.
8952 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8953 renamed variables.
8954 (_initialize_amd64fbsd_nat): Use constants from `enum
8955 amd64_regnum' for register numbers.
8956 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8957 `enum amd64_regnum' for register numbers.
8958 (amd64fbsd_init_abi): Adjust for renamed functions.
8959 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8960 `enum amd64_regnum' for register numbers.
8961 (amd64nbsd_init_abi): Adjust for renamed functions.
8962 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8963 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8964 `enum amd64_regnum' for register numbers.
8965 (amd64obsd_init_abi): Adjust for renamed functions.
8966 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8967
8968 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8969
8970 * breakpoint.c (print_one_breakpoint): Do not output spaces
8971 after printing <PENDING> for a pending breakpoint.
8972
8973 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8974
8975 * printcmd.c (print_scalar_formatted): Initialize val_long
8976 to remove compiler warning message.
8977
8978 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8979
8980 * defs.h (nquery, yquery): New prototypes.
8981 * breakpoint.c (break_command_1): Use new nquery interface.
8982 * utils.c (defaulted_query, nquery, yquery): New functions.
8983
8984 2004-02-23 Andrew Cagney <cagney@redhat.com>
8985
8986 * hppa-tdep.c (hppa_frame_align): New function.
8987 (hppa32_push_dummy_call): New function.
8988 (hppa64_push_dummy_call): New function.
8989 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8990 disabled.
8991
8992 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8993 FIX_CALL_DUMMY when push_dummy_call is available.
8994 (call_function_by_hand, push_dummy_code): Ditto.
8995
8996 2004-02-22 Andrew Cagney <cagney@redhat.com>
8997
8998 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8999 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9000 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9001 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9002 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9003 call_dummy_location to ON_STACK.
9004
9005 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9006
9007 * x86-64-linux-tdep.c: Tweak comment.
9008 (amd64_linux_supply_gregset): Renamed from
9009 x86_64_linux_supply_gresget.
9010 (amd64_linux_fill_gregset): Renamed from
9011 x86_64_linux_fill_gregset.
9012 (fetch_core_registers): Adjust for renamed functions.
9013 (amd64_core_fns): Renamed from x86_64_core_fns.
9014 (amd64_linux_sigtramp_start): Renamed from
9015 x86_64_linux_sigtramp_start.
9016 (amd64_linux_pc_in_sigtramp): Renamed from
9017 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9018 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9019 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9020 (amd64_linux_sigcontext_addr): Renamed from
9021 x86_64_linux_sigcontext_addr.
9022 (amd64_linux_sc_reg_offset): Renamed from
9023 x86_64_linux_sc_reg_offset.
9024 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9025 Adjust for renamed functions and variables.
9026 (_initialize_amd64_linux_tdep): Renamed from
9027 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9028 variables.
9029 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9030 Adjust for renamed functions.
9031
9032 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9033 from x86_64_linux_gregset64_reg_offset.
9034 (amd64_linux_gregset32_reg_offset): Rename from
9035 x86_64_linux_gregset64_reg_offset.
9036 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9037 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9038 (amd64_linux_dr_set_control): Renamed from
9039 x86_64_linux_dr_set_control. Adjust for renamed functions.
9040 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9041 Adjust for renamed functions.
9042 (amd64_linux_dr_reset_addr): Renamed from
9043 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9044 (amd64_linux_dr_get_status): Renamed from
9045 x86_64_linux_dr_get_status. Adjust for renamed functions.
9046 (_initialize_amd64_linux_nat): Renamed from
9047 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9048 functions.
9049 * config/i386/nm-x86-64linux.h: Update copyright year.
9050 Adjust for renamed functions.
9051
9052 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9053 amd64fbsd_sigtramp_start.
9054 (amd64fbsd_sigtramp_end_addr): Renamed from
9055 amd64fbsd_sigtramp_end.
9056 (amd64fbsd_init_abi): Adjust for renamed variables.
9057 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9058 variables.
9059 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9060 amd64fbsd_sigtramp_start.
9061 (amd64fbsd_sigtramp_end_addr): Renamed from
9062 amd64fbsd_sigtramp_end.
9063
9064 2004-02-22 Andrew Cagney <cagney@redhat.com>
9065
9066 * hppa-tdep.c (hppa32_return_value): New function.
9067 (hppa64_return_value): New function.
9068 (hppa_gdbarch_init): Set return_value; keep disabled.
9069
9070 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9071 struct-return and inferior function call methods.
9072
9073 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9074 "frame-base.h".
9075 (struct hppa_frame_cache): Define.
9076 (hppa_frame_cache, hppa_frame_this_id): New functions.
9077 (hppa_frame_prev_register): New function.
9078 (hppa_frame_unwind, hppa_frame_base): New variables.
9079 (hppa_frame_unwind_sniffer): New function.
9080 (hppa_frame_base_address, hppa_unwind_pc): New function.
9081 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9082 sniffer, and frame base sniffer; keep disabled.
9083 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9084 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9085
9086 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9087 to predicates for "seriously old code".
9088
9089 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9090 runtime if(0).
9091
9092 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9093 unsigned.
9094 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9095
9096 * config/pa/tm-hppa.h: Update copyright.
9097 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9098 (deprecated_init_frame_pc_default): Delete declaration.
9099 (hppa_frame_init_saved_regs): Delete declaration.
9100 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9101 * hppa-tdep.c: Include "arch-utils.h".
9102 (hppa_gdbarch_init): Set deprecated init_frame_pc
9103 and deprecated frame_init_saved_regs.
9104 (hppa_frame_init_saved_regs): Make static.
9105
9106 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9107
9108 Remove old 386BSD support.
9109 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9110 * configure.host: Remove i[34567]86-*-bsd*.
9111 * configure.tgt: Remove i[34567]86-*-bsd*.
9112 * i386b-nat.c: Removed.
9113 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9114 (i386b-nat.o): Remove dependencies.
9115
9116 * config/i386/i386bsd.mh: Removed.
9117 * config/i386/i386bsd.mt: Removed.
9118 * config/i386/nm-i386bsd.h: Removed.
9119 * config/i386/tm-i386bsd.h: Removed.
9120 * config/i386/xm-i386bsd.h: Removed.
9121
9122 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9123
9124 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9125 (amd64fbsd_init_abi): Set link map offsets.
9126 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9127 (amd64nbsd_init_abi): Set link map offsets.
9128 * amd64obsd-tdep.c: Include "solib-svr4.h".
9129 (amd64obsd_init_abi): Set link map offsets.
9130 * i386fbsd-tdep.c: Include "solib-svr4.h".
9131 (i386fbsd_init_abi): Set link map offsets.
9132 * i386nbsd-tdep.c: Include "solib-svr4.h".
9133 (i386nbsdelf_init_abi): Set link map offsets.
9134 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9135 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9136 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9137 solib-legacy.o and core-aout.o. Reformat.
9138 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9139 solib-svr4.o, solib-legacy.o. Reformat.
9140 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9141 * config/i386/nbsdelf.mh: Reformat.
9142 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9143 solib-svr4.o, solib-legacy.o and corelow.o.
9144 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9145 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9146 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9147 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9148 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9149 (TM_FILE): Set to tm-fbsd.h.
9150 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9151 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9152 solib-svr4.o.
9153 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9154 solib-svr4.o.
9155 (TM_FILE): Set to nm-nbsd.h.
9156 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9157 Simplify shared library support. Don't include "elf/common.h".
9158 (SVR4_SHARED_LIBS): Don't define.
9159 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9160 "solib.h".
9161 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9162 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9163 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9164 Don't include "i386/tm-i386.h". Include "solib.h".
9165 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9166 Don't include "i386/tm-i386.h".
9167 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9168 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9169 Include "i386/xm-i386.h".
9170 (HOST_LONG_DOUBLE_FORMAT): Remove.
9171
9172 Fix OpenBSD/i386 sigtramp recognition.
9173 * i386-tdep.h: Update copyright year.
9174 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9175 (i386bsd_sigtramp_end): New prototypes.
9176 (i386fbsd_sigtramp_start_addr): Renamed from
9177 i386fbsd_sigtramp_start.
9178 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9179 (i386obsd_sigtramp_start_addr): Renamed from
9180 i386obsd_sigtramp_start.
9181 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9182 * i386bsd-tdep.c: Update copyright year.
9183 (i386bsd_pc_in_sigtramp): Make public.
9184 * i386fbsd-nat.c: Update copyright year.
9185 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9186 * i386fbsd-tdep.c: Update copyright year.
9187 (i386fbsd_sigtramp_start_addr): Renamed from
9188 i386fbsd_sigtramp_start.
9189 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9190 (i386fbsdaout_init_abi): Adjust for renamed variables.
9191 * i386obsd-nat.c: Update copyright year.
9192 (_initialize_i386obsd_nat): Adjust for renamed variables.
9193 * i386obsd-tdep.c: Include "target.h".
9194 (i386obsd_page_size): New variable.
9195 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9196 (i386obsd_sigtramp_end): New functions.
9197 (i386obsd_sigtramp_start_addr): Renamed from
9198 i386obsd_sigtramp_start.
9199 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9200 (i386obsd_init_abi): Adjust for renamed variables. Set
9201 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9202 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9203
9204 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9205 trampoline change in OpenBSD kernel.
9206
9207 * amd64-nat.c: Update copyright year.
9208 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9209 architecture from REGCACHE.
9210
9211 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9212 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9213
9214 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9215
9216 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9217 i[34567]86-*-openbsd3.[0-3].
9218 * config/i386/obsdaout.mh: New file.
9219
9220 * config/i386/obsd.mh (MH_FLAGS): Remove.
9221
9222 Fix PR build/1549.
9223 * i386obsd-tdep.c: Update copyright years. Include
9224 "solib-svr4.h".
9225 (i386obsd_init_abi): Don't set regset_from_core_section here.
9226 (i386obsd_aout_init_abi): New function. Set
9227 regset_from_core_section here.
9228 (i386obsd_elf_init_abi): New function.
9229 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9230 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9231 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9232 (TM_FILE): Set to tm-nbsd.h.
9233
9234 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9235 solib-sunos.o.
9236
9237 * solib-svr4.h: Update copyright year.
9238 (svr4_ilp32_fetch_link_map_offsets)
9239 (svr4_lp64_fetch_link_map_offsets): New prototype.
9240 * solib-svr4.c: Update copyright year.
9241 (svr4_ilp32_fetch_link_map_offsets)
9242 (svr4_lp64_fetch_link_map_offsets): New function.
9243
9244 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9245
9246 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9247 to the partial symbol table.
9248
9249 2004-02-20 J. brobecker <brobecker@gnat.com>
9250
9251 * PROBLEMS: Add description of problem documented under gdb/1560.
9252
9253 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9254
9255 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9256 comments.
9257 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9258 functions.
9259 (amd64obsd_init_abi): Reorder initializations. Use
9260 amd64obsd_r_reg_offset to initialize the general-purpose register
9261 set details. Set regset_from_core_section.
9262 (_initialize_amd64obsd_tdep): Rename from
9263 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9264 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9265 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9266
9267 * NEWS (New native configurations): Mention OpenBSD/alpha.
9268 * configure.tgt: Add alpha*-*-openbsd*.
9269 * configure.host: Add alpha*-*-openbsd*.
9270 * alphanbsd-tdep.c: Update copyright year.
9271 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9272
9273 2004-02-20 Andrew Cagney <cagney@redhat.com>
9274
9275 Fix PR tdep/1372.
9276 * configure.tgt: Delete target "none-*-*".
9277 * configure.host: Delete host "none-*-*".
9278 * config/none/none.mh: Delete file.
9279 * config/none/none.mt: Delete file.
9280 * config/none/xm-none.h: Delete file.
9281 * config/none/tm-none.h: Delete file.
9282 * config/none/nm-none.h: Delete file.
9283
9284 2004-02-19 Fred Fish <fnf@redhat.com>
9285
9286 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9287 cache->uses_fp prior to setting it.
9288
9289 2004-02-19 Fred Fish <fnf@redhat.com>
9290
9291 Fix for PR breakpoint/1558.
9292 * sh-tdep.c (IS_JSR): New macro.
9293 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9294
9295 2004-02-19 Jim Blandy <jimb@redhat.com>
9296
9297 * findvar.c (value_from_register): Doc fix.
9298
9299 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9300
9301 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9302 type being greater than sizeof of host's LONGEST. Always use
9303 unpack_long() unless format 'f' chosen.
9304
9305 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9306
9307 Committed by Elena Zannoni <ezannoni@redhat.com>
9308
9309 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9310 contains a symbol wich is the best, non-exact match for the given
9311 pc. Update comments.
9312
9313 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9314
9315 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9316 macro, which was part of the now removed Mach 3 port.
9317 * utils.c (request_quit): Ditto.
9318
9319 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9320
9321 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9322 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9323
9324 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9325
9326 Committed by Mark Kettenis <kettenis@gnu.org>.
9327
9328 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9329 Define.
9330
9331 2004-02-18 Andrew Cagney <cagney@redhat.com>
9332
9333 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9334 CONFIG_INSTALL and CONFIG_UNINSTALL.
9335 * configure: Re-generate.
9336 * interps.h (INTERP_TUI): Define.
9337 * Makefile.in: Update dependencies.
9338 (TUI): New macro.
9339 (tui-main.o): Specify dependencies.
9340 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9341 * tui/tui-main.c: New file.
9342
9343 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9344
9345 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9346 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9347 dependencies.
9348 * configure.host: Add x86_64-*-openbsd*.
9349 * configure.tgt: Add x86_64-*-openbsd*.
9350 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9351
9352 * tui/tui.c: Don't include <malloc.h>.
9353
9354 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9355 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9356 amd64nbsd-tdep.c.
9357
9358 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
9359 static. Remove extraneous whitespace.
9360 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9361 static.
9362
9363 2004-02-17 Jim Blandy <jimb@redhat.com>
9364
9365 * findvar.c (value_from_register): Doc fix.
9366
9367 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9368
9369 Committed by Jim Blandy <jimb@redhat.com>.
9370
9371 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
9372 CORE_ADDR as type for selectors. Correct types for GNU run time
9373 message lookup function to use double indirection.
9374 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9375 * objc-lang.h (lookup_child_selector): Adapt prototype.
9376
9377 * s390-nat.c (SUBOFF): New macro.
9378 (supply_gregset, fill_gregset): Use it to handle debugging
9379 of 32-bit exectuables running under a 64-bit kernel.
9380 * s390-tdep.c: Include "solib-svr4.h".
9381 (s390_svr4_fetch_link_map_offset): New function.
9382 (s390x_svr_fetch_link_map_offset): Likewise.
9383 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9384 * Makefile.in (s390-tdep.o): Update dependencies.
9385
9386 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9387 "frame-unwind.h".
9388 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9389 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9390 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9391 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9392 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9393 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
9394 S390_SIGNAL_FRAMESIZE,
9395 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9396 (struct frame_extra_info): Remove.
9397 (s390_memset_extra_info): Remove.
9398 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9399 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9400 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
9401 (is_rse): Renamed to ...
9402 (is_rsy): ... this. Support long displacements.
9403 (is_rxe): Renamed to ...
9404 (is_rxy): ... this. Support long displacements.
9405 (compute_x_addr): Support long displacements.
9406 (struct s390_prologue_data): New data type.
9407 (s390_on_stack): Change API to use struct s390_prologue_data.
9408 (s390_store): Reimplement.
9409 (s390_load): New function.
9410 (s390_get_signal_frame_info): Remove.
9411 (s390_get_frame_info): Remove, replace by ...
9412 (s390_analyze_prolog): ... this new function.
9413 (s390_check_function_end): Remove.
9414 (s390_function_start): Remove.
9415 (s390_frameless_function_invokation): Remove.
9416 (s390_is_sigreturn): Remove.
9417 (s390_init_frame_pc_first): Remove.
9418 (s390_init_frame_extra_info): Remove.
9419 (s390_frame_init_saved_regs): Remove.
9420 (s390_frame_saved_pc_nofix): Remove.
9421 (s390_frame_saved_pc): Remove.
9422 (s390_frame_chain): Remove.
9423 (s390_fp_regnum, s390_read_fp): Remove.
9424 (s390_pop_frame_regular, s390_pop_frame): Remove.
9425 (s390_saved_pc_after_call): Remove.
9426 (s390_skip_prologue): Reimplement.
9427 (s390_in_function_epilogue_p): Support long displacements.
9428 (struct s390_unwind_cache): New data structure.
9429 (s390_frame_unwind_cache): New function.
9430 (s390_prologue_frame_unwind_cache): Likewise.
9431 (s390_backchain_frame_unwind_cache): Likewise.
9432 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9433 (s390_frame_unwind): Define.
9434 (s390_frame_sniffer): New function.
9435 (struct s390_pltstub_unwind_cache): New data structure.
9436 (s390_pltstub_frame_unwind_cache): New function.
9437 (s390_pltstub_frame_this_id): Likewise.
9438 (s390_pltstub_frame_prev_register): Likewise.
9439 (s390_pltstub_frame_unwind): Define.
9440 (s390_pltstub_frame_sniffer): New function.
9441 (struct s390_sigtramp_unwind_cache): New data structure.
9442 (s390_sigtramp_frame_unwind_cache): New function.
9443 (s390_sigtramp_frame_this_id): Likewise.
9444 (s390_sigtramp_frame_prev_register): Likewise.
9445 (s390_sigtramp_frame_unwind): Define.
9446 (s390_sigtramp_frame_sniffer): New function.
9447 (s390_frame_base_address, s390_local_base_address): New functions.
9448 (s390_frame_base): Define.
9449 (s390_unwind_pc, s390_unwind_sp): New function.
9450 (s390_push_dummy_call): Use new frame base location.
9451 (s390_unwind_dummy_id): Likewise.
9452 (s390_gdbarch_init): Remove calls to:
9453 set_gdbarch_frameless_function_invocation,
9454 set_gdbarch_deprecated_init_frame_pc,
9455 set_gdbarch_deprecated_frame_chain,
9456 set_gdbarch_deprecated_frame_init_saved_regs,
9457 set_gdbarch_deprecated_pop_frame,
9458 set_gdbarch_deprecated_init_extra_frame_info,
9459 set_gdbarch_deprecated_init_frame_pc_first,
9460 set_gdbarch_deprecated_target_read_fp,
9461 set_gdbarch_deprecated_frame_saved_pc,
9462 set_gdbarch_deprecated_saved_pc_after_call,
9463 set_gdbarch_deprecated_fp_regnum.
9464 Add calls to:
9465 set_gdbarch_in_solib_call_trampoline,
9466 frame_unwind_append_sniffer,
9467 frame_base_set_default,
9468 set_gdbarch_unwind_pc,
9469 set_gdbarch_unwind_sp.
9470 * Makefile.in (s390-tdep.o): Update dependencies.
9471
9472 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9473 (S390_STACK_FRAME_OVERHEAD): Remove.
9474 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9475 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9476 (s390_promote_integer_argument): Remove.
9477 (s390_cannot_extract_struct_value_address): Remove.
9478 (s390_use_struct_convention, s390_store_struct_return): Remove.
9479 (s390_extract_return_value, s390_store_return_value): Remove.
9480 (s390_return_value_convention, s390_return_value): New functions.
9481 (is_float_singleton): Handle typedefs.
9482 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
9483 Remove, replace by ...
9484 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9485 s390_function_arg_integer): ... these new functions.
9486 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9487 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9488 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9489 Fill in tdep->abi.
9490 Remove calls to:
9491 set_gdbarch_deprecated_store_struct_return,
9492 set_gdbarch_deprecated_extract_return_value,
9493 set_gdbarch_deprecated_store_return_value,
9494 set_gdbarch_use_struct_convention,
9495 set_gdbarch_extract_struct_value_address,
9496 set_gdbarch_deprecated_pc_in_call_dummy,
9497 set_gdbarch_deprecated_push_arguments,
9498 set_gdbarch_deprecated_save_dummy_frame_tos,
9499 set_gdbarch_deprecated_push_return_address,
9500 set_gdbarch_deprecated_sizeof_call_dummy_words,
9501 set_gdbarch_deprecated_call_dummy_words,
9502 set_gdbarch_deprecated_dummy_write_sp.
9503 Add calls to:
9504 set_gdbarch_push_dummy_call,
9505 set_gdbarch_unwind_dummy_id,
9506 set_gdbarch_return_value.
9507
9508 * config/s390/nm-linux.h: Update comments.
9509 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9510 (STOPPED_BY_WATCHPOINT): Redefine.
9511 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9512 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9513 (s390_stopped_by_watchpoint): Likewise.
9514 (watch_area_cnt): Remove.
9515 * s390-nat.c: Update comments.
9516 (watch_area): Remove typedef.
9517 Global replace watch_area by struct watch_area.
9518 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
9519 (s390_stopped_by_watchpoint): Remove pid argument,
9520 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9521 (s390_fix_watch_points): Remove pid argument,
9522 use s390_inferior_tid. Recompute area spanned by watchpoints.
9523 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9524 argument. Reimplement.
9525
9526 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9527 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9528 (FETCH_INFERIOR_REGISTERS): Define.
9529 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
9530 core-regset.o.
9531 * config/s390/s390x.mt: Remove.
9532 * config/s390/tm-s390.h: Remove.
9533 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9534 (TARGET_ELF64): Remove.
9535 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9536 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9537 s390*-*-* case; always set gdb_target to s390.
9538 * regformats/reg-s390.dat: Remove control registers.
9539 * regformats/reg-s390x.dat: Likewise.
9540 * s390-tdep.h: New file.
9541 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
9542 Include "inferior.h" and "s390-tdep.h".
9543 Remove private definition of offsetof.
9544 (s390_register_u_addr): Remove.
9545 (regmap_gregset, regmap_fpregset): Define.
9546 (supply_gregset, fill_gregset): Reimplement.
9547 (supply_fpregset, fill_fpregset): Likewise.
9548 (s390_inferior_tid): New function.
9549 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9550 (fetch_inferior_registers, store_inferior_registers): Likewise.
9551 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9552 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9553 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9554 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9555 (struct gdbarch_tdep): Define.
9556 (struct s390_register_info): Define.
9557 (s390_register_info): New variable.
9558 (s390_register_name): Reimplement.
9559 (s390_register_type): New function.
9560 (s390_register_raw_size, s390x_register_raw_size): Remove.
9561 (s390_cannot_fetch_register): Remove.
9562 (s390_register_byte): Remove.
9563 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9564 (s390_dwarf_regmap): New variable.
9565 (s390_dwarf_reg_to_regnum): New function.
9566 (s390_stab_reg_to_regnum): Remove.
9567 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9568 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9569 (s390_convert_register_p): Likewise.
9570 (s390_register_to_value, s390_value_to_register): Likewise.
9571 (s390_register_reggroup_p): Likewise.
9572 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9573 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9574 (s390_supply_regset, s390_regset_from_core_section): New functions.
9575 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9576 (S390_FPR_SIZE): Likewise.
9577 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9578 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9579 (S390_NUM_GPRS): Move here from tm-s390.h.
9580 (S390_NUM_FPRS): Likewise.
9581 (s390_in_function_epilogue_p): New function.
9582 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9583 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9584 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9585 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9586 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9587 Remove calls to:
9588 set_gdbarch_deprecated_max_register_raw_size,
9589 set_gdbarch_deprecated_max_register_virtual_size,
9590 set_gdbarch_deprecated_register_byte,
9591 set_gdbarch_cannot_fetch_register,
9592 set_gdbarch_cannot_store_register,
9593 set_gdbarch_deprecated_register_size,
9594 set_gdbarch_deprecated_register_raw_size,
9595 set_gdbarch_deprecated_register_virtual_size,
9596 set_gdbarch_deprecated_register_virtual_type,
9597 set_gdbarch_deprecated_register_bytes.
9598 Add calls to:
9599 set_gdbarch_num_pseudo_regs,
9600 set_gdbarch_register_type,
9601 set_gdbarch_convert_register_p,
9602 set_gdbarch_register_to_value,
9603 set_gdbarch_value_to_register,
9604 set_gdbarch_register_reggroup_p,
9605 set_gdbarch_regset_from_core_section,
9606 set_gdbarch_pseudo_register_read,
9607 set_gdbarch_pseudo_register_write,
9608 set_gdbarch_in_function_epilogue_p.
9609 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9610 (s390_tdep_h): New variable.
9611
9612 2004-02-17 Jim Blandy <jimb@redhat.com>
9613
9614 * findvar.c (value_from_register): If the type has no length, just
9615 return an acceptable value --- don't report an internal error.
9616
9617 * stabsread.c (read_type): If we find any type numbers that are
9618 forward references, complain if the references aren't resolved by
9619 the time we're finished reading.
9620 (cleanup_undefined_types): Make error message more appropriate for
9621 a complaint.
9622
9623 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9624
9625 * Makefile.in (defs_h): Remove dependency on progress_h.
9626 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9627 progress.h.
9628 * main.c (captured_main): Delete use of START_PROGRESS and
9629 END_PROGRESS.
9630
9631 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
9632
9633 * objfiles.c (terminate_minimal_symbol_table): Add back
9634 initialization of MSYMBOL_TYPE.
9635
9636 2004-02-17 David Mosberger <davidm@hpl.hp.com>
9637
9638 Committed by Andrew Cagney.
9639 * Makefile.in (ia64_tdep_h): New macro.
9640 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9641 (ia64-tdep.o): Likewise.
9642 * ia64-tdep.h: New file.
9643 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9644 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9645 (ia64_aix_sigcontext_register_address): Likewise.
9646 (ia64_linux_getunwind_table): Delete declaration.
9647 * ia64-linux-tdep.c: Likewise.
9648
9649 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
9650
9651 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9652 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9653 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9654
9655 2004-02-17 Andrew Cagney <cagney@redhat.com>
9656
9657 * symtab.c (skip_prologue_using_sal): New function.
9658 * symtab.h (skip_prologue_using_sal): Declare.
9659 * frv-tdep.c: Include "symtab.h".
9660 (skip_prologue_using_sal): Delete function.
9661 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9662 * rs6000-tdep.c (refine_prologue_limit): Mention
9663 skip_prologue_using_sal.
9664 * ia64-tdep.c (refine_prologue_limit): Ditto.
9665 * Makefile.in: Update dependencies.
9666
9667 2004-02-16 Andrew Cagney <cagney@redhat.com>
9668
9669 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9670 START_INFERIOR_TRAPS_EXPECTED.
9671 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9672 START_INFERIOR_TRAPS_EXPECTED.
9673 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9674 Delete macro.
9675 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9676 macro, moved to "nm-osf.h". Update copyright.
9677 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9678 update copyright.
9679
9680 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9681 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9682 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9683 frameless_look_for_prologue.
9684 * frame.h (legacy_frameless_look_for_prologue): Rename
9685 frameless_look_for_prologue.
9686 * gdbarch.h, gdbarch.c: Re-generate.
9687 * sh64-tdep.c (sh64_gdbarch_init): Update.
9688 * sh-tdep.c (sh_gdbarch_init): Update.
9689 * s390-tdep.c (s390_gdbarch_init): Update.
9690 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9691 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9692 * m68k-tdep.c (m68k_gdbarch_init): Update.
9693 (delta68_frame_args_address): Update.
9694 * m32r-tdep.c (m32r_gdbarch_init): Update.
9695 * hppa-tdep.c (hppa_gdbarch_init): Update.
9696 * h8300-tdep.c (h8300_gdbarch_init): Update.
9697 * frv-tdep.c (frv_gdbarch_init): Update.
9698 (frv_frameless_function_invocation): Update.
9699 * cris-tdep.c (cris_gdbarch_init): Update.
9700 (cris_frameless_function_invocation): Update.
9701 * avr-tdep.c (avr_gdbarch_init): Update.
9702 * arm-tdep.c (arm_gdbarch_init): Update.
9703 * stack.c (frame_info): Update, call predicate.
9704 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9705 * frame.c (legacy_get_prev_frame): Update, call predicate..
9706 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9707 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9708 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9709 invocation.
9710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9711 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9712 * vax-tdep.c (vax_gdbarch_init): Ditto.
9713
9714 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9715 function.
9716
9717 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9718
9719 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9720 initializations.
9721
9722 2004-02-16 Andrew Cagney <cagney@redhat.com>
9723
9724 * tui/tui-windata.c: Include "gdb_string.h".
9725 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9726 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9727 * Makefile.in: Update dependencies.
9728
9729 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
9730
9731 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9732 * infrun.c: Include "gdb_assert.h".
9733 (singlestep_ptid, saved_singlestep_ptid)
9734 (stepping_past_singlestep_breakpoint): New variables.
9735 (resume): Set singlestep_ptid. Check for singlestep thread
9736 hop.
9737 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9738 (handle_inferior_event): Handle singlestep thread hop.
9739
9740 2004-02-16 Andrew Cagney <cagney@redhat.com>
9741
9742 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9743 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9744 (dwarf2_frame_init_reg): Ditto.
9745
9746 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9747 suggested by Joshua Neuheisel
9748
9749 * configure.in: Always check for curses, including pdcurses.
9750 Warn, instead of error, when no curses are found. Enable TUI when
9751 curses is available.
9752 * configure: Re-generate.
9753
9754 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9755
9756 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9757 sh_sh4_register_convert_to_virtual.
9758 (sh_register_convert_to_raw): Rename from
9759 sh_sh4_register_convert_to_raw.
9760 (sh_pseudo_register_read): Accomodate above name change.
9761 (sh_pseudo_register_write): Ditto.
9762
9763 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
9764
9765 * sh-tdep.c (sh_generic_register_name): Remove.
9766 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9767
9768 2004-02-15 Andrew Cagney <cagney@redhat.com>
9769
9770 * configure.in (build_warnings): Add -Wunused-function.
9771 * configure: Re-generate.
9772
9773 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9774 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9775
9776 * procfs.c (procfs_init_inferior): Assume that
9777 START_INFERIOR_TRAPS_EXPECTED is defined.
9778 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9779 * config/ns32k/tm-nbsd.h: Delete file,
9780 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9781
9782 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9783 * config/vax/tm-vax.h: Delete file.
9784
9785 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9786 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9787 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9788 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9789 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9790 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9791 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9792
9793 2004-02-15 Mark Kettenis <kettenis@gnu.org>
9794
9795 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9796 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9797 (struct dwarf2_frame_ops): New.
9798 (dwarf2_frame_default_init_reg): New function, based on
9799 dwarf2_frame_init_reg.
9800 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9801 (dwarf2_frame_init_reg): Call architecture-specific function.
9802 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9803 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9804 instead of dwarf2_frame_data.
9805 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9806 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9807
9808 2004-02-15 Andrew Cagney <cagney@redhat.com>
9809
9810 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9811 register_gdbarch_swap.
9812 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9813 * f-lang.c (_initialize_f_language): Update, use
9814 DEPRECATED_REGISTER_GDBARCH_SWAP.
9815 * remote.c (_initialize_remote): Ditto.
9816 * regcache.c (_initialize_regcache): Ditto.
9817 * parse.c (_initialize_parse): Ditto.
9818 * infrun.c (_initialize_infrun): Ditto.
9819 * mi/mi-main.c (_initialize_mi_main): Ditto.
9820 * gdbtypes.c (_initialize_gdbtypes): Ditto.
9821
9822 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9823 poking .cacheable directly.
9824 * symfile.c (symfile_bfd_open): Ditto.
9825
9826 * Makefile.in: Update all dependencies.
9827
9828 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9829 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9830 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9831 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9832 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
9833
9834 2004-02-14 Andrew Cagney <cagney@redhat.com>
9835
9836 * arch-utils.c (legacy_convert_register_p): Check
9837 DEPRECATED_REGISTER_CONVERTIBLE_P.
9838 * findvar.c (value_of_register): Ditto.
9839
9840 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9841 * gdbarch.h, gdbarch.c: Re-generate.
9842 * arch-utils.c (deprecated_register_convertible_not): Delete.
9843 * arch-utils.h (deprecated_register_convertible_not): Delete.
9844 * mi/mi-main.c (get_register): Update. Update copyright.
9845 * infcmd.c (default_print_registers_info): Update.
9846
9847 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9848 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9849 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
9850 * gdbarch.h, gdbarch.c: Re-generate.
9851 * frame.c (deprecated_get_next_frame_hack): Delete function.
9852 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9853 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9854 Update.
9855 * infcall.c (call_function_by_hand): Update.
9856
9857 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
9858
9859 * symfile.c (init_entry_point_info, entry_point_address): Move
9860 from here...
9861 * objfiles.c (init_entry_point_info, entry_point_address):..to
9862 here.
9863 * symfile.h (init_entry_point_info, entry_point_address): Remove
9864 prototypes.
9865 * objfiles.h (init_entry_point_info, entry_point_address):Add
9866 prototypes.
9867 * cris-tdep.c: Remove include of symfile.h. Add include of
9868 objfiles.h.
9869 * infcall.c: Ditto.
9870 * mcore-tdep.c: Ditto.
9871 * mn10300-tdep.c: Ditto.
9872 * sh64-tdep.c: Ditto.
9873 * v850-tdep.c: Ditto.
9874 * arm-tdep.c: Remove include of symfile.h.
9875 * blockframe.c: Ditto.
9876 * coffread.c: Ditto.
9877 * dbxread.c: Ditto.
9878 * dwarf2read.c: Ditto.
9879 * dwarfread.c: Ditto.
9880 * frv-tdep.c: Ditto.
9881 * ia64-tdep.c: Ditto.
9882 * mdebugread.c: Ditto.
9883 * mipsread.c: Ditto.
9884 * rs6000-tdep.c: Ditto.
9885 * s390-tdep.c: Ditto.
9886 * sh-tdep.c: Ditto.
9887 * xstormy16-tdep.c: Ditto.
9888 * gdbarch.sh: Remove include of symfile.h.
9889 * gdbarch.c: Regenerate.
9890 * solib-irix.c (enable_break): Use entry_point_address().
9891 Add comment about include file.
9892 * xcoffread.c: Add comment about include file.
9893 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9894 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9895 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9896 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9897 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9898
9899 2004-02-13 Andrew Cagney <cagney@redhat.com>
9900
9901 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9902 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9903 copyright.
9904 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9905
9906 2004-02-12 Fred Fish <fnf@redhat.com>
9907
9908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9909 set_gdbarch_store_return_value.
9910
9911 2004-02-12 Andrew Cagney <cagney@redhat.com>
9912
9913 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9914 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9915 (interrupt_query): Ditto.
9916 (ofunc): Delete unused variable.
9917 * cris-tdep.c (cris_abi): Delete unused function.
9918 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9919 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9920 (cris_get_asr_quick_shift_steps): Ditto.
9921 (cris_skip_prologue_frameless_p): Ditto.
9922 * arm-tdep.c (arm_push_return_address): Delete unused function.
9923 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9924 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9925 * s390-tdep.c (s390_function_start): Delete unused function.
9926
9927 2004-02-12 Andrew Cagney <cagney@redhat.com>
9928
9929 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9930 gdbarch.h, gdbarch.c: Re-generate.
9931 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9932 to generic_prologue_frameless_p.
9933 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9934 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9935
9936 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9937
9938 * mips-linux-tdep.c: Include "frame.h".
9939 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9940 (mips_linux_skip_resolver): New functions.
9941 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9942 and set_gdbarch_in_solib_call_trampoline.
9943 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9944 to after set_gdbarch_in_solib_return_trampoline. Only set the
9945 solib hooks to mips16 functions if the OS ABI is unknown.
9946 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9947 including "config/tm-linux.h".
9948 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9949 * Makefile.in (mips-linux-tdep.o): Update.
9950
9951 2004-02-11 David Carlton <carlton@kealia.com>
9952
9953 * linespec.c (decode_compound): Only look for a class symbol when
9954 considering all but the rightmost component.
9955
9956 2004-02-11 Andrew Cagney <cagney@redhat.com>
9957
9958 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9959 abi code are are separatly grouped.
9960
9961 2004-02-11 Andrew Cagney <cagney@redhat.com>
9962
9963 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9964 * gdbarch.h, gdbarch.c: Re-generate.
9965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9966 * v850-tdep.c (v850_gdbarch_init): Update.
9967 * sh64-tdep.c (sh64_gdbarch_init): Update.
9968 * sh-tdep.c (sh_gdbarch_init): Update.
9969 * s390-tdep.c (s390_gdbarch_init): Update.
9970 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9971 * mips-tdep.c (mips_gdbarch_init): Update.
9972 * mcore-tdep.c (mcore_gdbarch_init): Update.
9973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9974 * m32r-tdep.c (m32r_gdbarch_init): Update.
9975 * ia64-tdep.c (ia64_gdbarch_init): Update.
9976 * hppa-tdep.c (hppa_gdbarch_init): Update.
9977 * h8300-tdep.c (h8300_gdbarch_init): Update.
9978 * frv-tdep.c (frv_gdbarch_init): Update.
9979 * d10v-tdep.c (d10v_gdbarch_init): Update.
9980 * cris-tdep.c (cris_gdbarch_init): Update.
9981 * avr-tdep.c (avr_gdbarch_init): Update.
9982 * arm-tdep.c (arm_gdbarch_init): Update.
9983 * alpha-tdep.c (alpha_gdbarch_init): Update.
9984
9985 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9986
9987 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9988 comma.
9989 (sh_sh4al_dsp_register_name): Ditto.
9990
9991 2004-02-10 Andrew Cagney <cagney@redhat.com>
9992
9993 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9994 (mips_init_frame_pc_first): Delete function.
9995 (mips_frame_saved_pc): Delete function.
9996 (mips_frame_chain): Delete function.
9997 (mips_init_extra_frame_info): Delete function.
9998 (mips_xfer_register): Delete unused variable "reg".
9999 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10000 (mips_n32n64_return_value): Delete unused variable "reg".
10001 (mips_n32n64_return_value): Delete unused variable "pos".
10002 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10003 (mips_o32_return_value): Delete unused variable "pos".
10004 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10005 (mips_print_fp_register): Delete unused variable "namelen"
10006 (mips_print_fp_register): Delete unused variable "flt2"
10007 (get_frame_pointer): Delete function.
10008 (cached_proc_desc): Delete static variable.
10009 (mips_pop_frame): Delete function.
10010 (mips_find_saved_regs): Delete function.
10011 (mips_get_saved_register): Delete function.
10012 (mips_saved_pc_after_call): Delete function.
10013 (SIGFRAME_BASE): Delete macro.
10014 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10015 (SIGFRAME_PC_OFF): Delete macro.
10016 (SIGFRAME_REGSAVE_OFF): Delete macro.
10017 (mips_dump_tdep): Do not print deleted macro definitions.
10018
10019 2004-02-10 Andrew Cagney <cagney@redhat.com>
10020
10021 * Makefile.in (SFILES): Remove explictly listed tui files.
10022 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10023
10024 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10025
10026 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10027 to use paddr functions to format ia64 addresses and long values.
10028 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10029 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10030 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10031 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10032 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10033
10034 2004-02-10 Andrew Cagney <cagney@redhat.com>
10035
10036 * defs.h: Do not include "tui.h".
10037 * gdb_curses.h: New file.
10038 * tui/tui-hooks.h: New file.
10039 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10040 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10041 (tui_initialize_io): Delete declaration.
10042 (tui_initialize_readline: Delete redundant declaration.
10043 (struct tui_point): Delete definition.
10044 * tui/tui-data.h (struct tui_point): Define.
10045 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10046 * utils.c: Include "tui/tui.h".
10047 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10048 * printcmd.c [TUI]: Include "tui/tui.h".
10049 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10050 * tui/tui-command.c: Include "gdb_curses.h".
10051 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10052 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10053 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10054 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10055 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10056 * Makefile.in: Update all dependencies.
10057 (tui_hooks_h, gdb_curses_h): Define.
10058 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10059
10060 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10061
10062 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10063 auxf2. Add comments about some other rarely used fields.
10064
10065 2004-02-10 Andrew Cagney <cagney@redhat.com>
10066
10067 * Makefile.in (init.c): Fix script removing duplicates. Problem
10068 reported by Peter Schauer.
10069
10070 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10071
10072 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10073 obstack_specify_allocation.
10074 * objfiles.c (allocate_objfile): Ditto.
10075 * solib-sunos.c (solib_add_common_symbols)
10076 (allocate_rt_common_objfile): Ditto.
10077 * symfile.c (reread_symbols): Ditto.
10078 * gdb_obstack.h: Add comment.
10079
10080 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10081
10082 * linespec.c (decode_line_1, locate_first_half)
10083 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10084 commented out code.
10085
10086 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10087
10088 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10089 obstack_free.
10090
10091 2004-02-09 Andrew Cagney <cagney@redhat.com>
10092
10093 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10094 fails, try find_pc_section. Fix PR c++/1267.
10095 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10096 instead of find_pc_mapped_section.
10097 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10098 not default to the section containing PC. Fix PR symtab/1519.
10099
10100 2004-02-09 Andrew Cagney <cagney@redhat.com>
10101
10102 * Makefile.in (mips-tdep.o): Update dependencies.
10103 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10104 "trad-frame.h".
10105 (mips_unwind_pc): Return the pseudo PC register.
10106 (mips_unwind_dummy_id): New function.
10107 (mips16_fetch_instruction): New function.
10108 (mips32_fetch_instruction): New function.
10109 (struct mips_frame_cache): Define.
10110 (mips_mdebug_frame_cache): New function.
10111 (mips_mdebug_frame_this_id): New function.
10112 (mips_mdebug_frame_prev_register): New function.
10113 (mips_mdebug_frame_unwind): Define.
10114 (mips_mdebug_frame_sniffer): New function.
10115 (mips_mdebug_frame_base_address): New function.
10116 (mips_mdebug_frame_base): Define.
10117 (mips_mdebug_frame_base_sniffer): New function.
10118 (mips_gdbarch_init): Append unwind and base sniffers. Set
10119 unwind_dummy_id.
10120
10121 2004-02-08 Andrew Cagney <cagney@redhat.com>
10122
10123 * frame.c: Print both the register number and name.
10124
10125 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10126 and a sed into a single sed. Make .c and .o patterns more robust.
10127 (OBS): Delete.
10128 (INIT_FILES): Replace OBS with COMMON_OBS.
10129 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10130
10131 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10132
10133 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10134 the PT_WCOOKIE request.
10135
10136 2004-02-08 Andrew Cagney <cagney@redhat.com>
10137
10138 * mips-tdep.c (mips_unwind_pc): New function.
10139 (mips_gdbarch_init): Set mips_unwind_pc.
10140
10141 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10142 (get_frame_id): Allow the UNKNOWN_FRAME.
10143 (frame_register_unwind, get_frame_type): Ditto.
10144
10145 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10146 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10147 unwind_dummy_id indicates a legacy frame.
10148
10149 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10150 * configure: Re-generate.
10151
10152 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10153 methods.
10154
10155 2004-02-08 Andrew Cagney <cagney@redhat.com>
10156
10157 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10158 makefile macro.
10159 * configure: Re-generate.
10160 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10161 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10162 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10163 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10164 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10165 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10166 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10167 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10168 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10169 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10170
10171 2004-02-07 Andrew Cagney <cagney@redhat.com>
10172
10173 * Makefile.in: Update all dependencies.
10174
10175 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10176 * configure: Re-generate.
10177 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10178 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10179 (COMMON_OBS): Add "main.o" and "annotate.o".
10180 (ANNOTATE_OBS): Delete.
10181 (OBS): Remove ANNOTATE_OBS.
10182 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10183 CONFIG_INITS.
10184 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10185 against CONFIG_OBS and "main.o".
10186 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10187 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10188
10189 * tui/tui-command.c: Include "gdb_string.h", delete register
10190 attribute, use ISO-C function signatures.
10191 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10192 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10193 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10194 * tui/tui.c: Ditto.
10195
10196 * tui/tui-command.c: Change variable and function names to lower
10197 case.
10198 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10199 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10200 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10201 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10202 * tui/tui-winsource.c, tui/tui.c: Ditto.
10203
10204 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10205
10206 * buildsym.c (free_pending_blocks, finish_block)
10207 (record_pending_block, make_blockvector, end_symtab): Replace
10208 symbol_obstack with objfile_obstack.
10209 * coffread.c (process_coff_symbol, coff_read_struct_type)
10210 (coff_read_enum_type): Ditto.
10211 * cp-namespace.c (initialize_namespace_symtab)
10212 (check_one_possible_namespace_symbol): Ditto.
10213 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10214 (dwarf2_symbol_mark_computed): Ditto.
10215 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10216 * elfread.c (elf_symtab_read): Ditto.
10217 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10218 (hpread_read_enum_type, hpread_read_function_type)
10219 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10220 Ditto.
10221 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10222 (java_link_class_type): Ditto.
10223 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10224 (new_symbol): Ditto.
10225 * minsyms.c (install_minimal_symbols): Ditto.
10226 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10227 (terminate_minimal_symbol_table): Replace symbol_obstack with
10228 objfile_obstack.
10229 (free_objfile): Remove freeing of symbol_obstack.
10230 * objfiles.h: Remove symbol_obstack field.
10231 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10232 objfile_obstack.
10233 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10234 symbol_obstack.
10235 (solib_add_common_symbols): Replace symbol_obstack with
10236 objfile_obstack.
10237 * somsolib.c (som_solib_add): Ditto.
10238 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10239 (common_block_start, common_block_end): Ditto.
10240 * symfile.c (reread_symbols): Remove freeing and init of
10241 symbol_obstack.
10242 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10243 * symfile.h: Update comment.
10244 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10245 stats printing.
10246 * symtab.c (symbol_set_names): Replace symbol_obstack with
10247 objfile_obstack.
10248 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10249 Update comments.
10250 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10251 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10252 objfile_obstack.
10253
10254 2004-02-07 Andrew Cagney <cagney@redhat.com>
10255
10256 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10257 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10258 fields and variables.
10259 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10260 (m_beInvisible): Delete macro.
10261 * tui/tui-data.h: Fix case case fields and variables.
10262 (m_genWinPtrIsNull): Delete macro.
10263 (tui_win_list): Rename winList.
10264 (TUI_SRC_WIN): Rename srcWin.
10265 (TUI_DISASM_WIN): Rename disassemWin.
10266 (TUI_DATA_WIN): Rename dataWin.
10267 (TUI_CMD_WIN): Rename cmdWin.
10268 (m_genWinPtrNotNull): Delete macro.
10269 (m_winPtrIsNull): Delete macro.
10270 (m_winPtrNotNull): Delete macro.
10271 (tui_win_is_source_type): Replace m_winIsSourceType
10272 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10273 (tui_win_has_locator): Replace m_hasLocator.
10274 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10275 m_setWinHighlightOff.
10276 * tui/tui-data.c: Update references.
10277 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10278 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10279 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10280 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10281 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10282 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10283 * tui/tui-winsource.c, tui/tui.c: Ditto.
10284
10285 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10286
10287 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10288 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10289 StackGhost.
10290
10291 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10292 variable `i6' to `i7'.
10293 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10294
10295 2004-02-07 Andrew Cagney <cagney@redhat.com>
10296
10297 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10298 (TuiPoint, TuiPointPtr): Ditto.
10299 (TuiStatus, TuiStatusPtr): Ditto.
10300 (TuiWinType, TuiWinTypePtr): Ditto.
10301 (struct tui_point): Rename _TuiPoint.
10302 (tui_get_low_disassembly_address): Rename
10303 tuiGetLowDisassemblyAddress.
10304 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10305 (tuiFree): Delete declaration.
10306 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10307 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10308 * tui/tui.c (tuiFree): Delete function.
10309 * cli/cli-cmds.c (disassemble_command): Update references.
10310 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10311 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10312 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10313 * tui/tui-winsource.c: Ditto.
10314
10315 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10316
10317 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10318 coffstab_build_psymtabs, elfstab_build_psymtabs)
10319 (stabsect_build_psymtabs): Replace psymbol_obstack with
10320 objfile_obstack.
10321 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10322 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10323 Ditto.
10324 * dwarfread.c (scan_compilation_units): Ditto.
10325 * elfread.c (elfstab_offset_sections): Ditto.
10326 * hppa-tdep.c (read_unwind_info): Ditto.
10327 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10328 (hpread_end_psymtab): Ditto.
10329 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10330 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10331 Ditto.
10332 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
10333 * objfiles.c (add_to_objfile_sections)
10334 (build_objfile_section_table): Ditto.
10335 (allocate_objfile): Remove init of psymbol_obstack.
10336 (free_objfile): Remove freeing of psymbol_obstack.
10337 * objfiles.h (struct objfile): Remove field
10338 psymbol_obstack. Update comments.
10339 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10340 psymbol_obstack with objfile_obstack.
10341 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10342 psymbol_obstack.
10343 * somread.c (som_symfile_offsets, init_import_symbols)
10344 (init_export_symbols): Replace psymbol_obstack with
10345 objfile_obstack.
10346 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10347 * symfile.c (default_symfile_offsets, syms_from_objfile)
10348 (reread_symbols): Remove freeing and init of psymbol_obstack.
10349 (cashier_psymtab): Update comment.
10350 * symmisc.c (print_objfile_statistics): Don't report stats for
10351 psymbol obstack.
10352 * symtab.h (struct general_symbol_info, struct partial_symtab):
10353 Update comments.
10354 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10355 (xcoff_symfile_offsets): Replace psymbol_obstack with
10356 objfile_obstack.
10357
10358 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10359
10360 * objfiles.h (struct objfile): Add objfile_obstack field.
10361 Remove type_obstack field.
10362
10363 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10364 read_structure_scope read_enumeration, new_symbol): Replace
10365 type_obstack with objfile_obstack.
10366 * dwarfread.c (struct_type, enum_type): Ditto.
10367 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
10368 (lookup_fundamental_type): Ditto.
10369 * gdbtypes.h (TYPE_ALLOC): Ditto.
10370 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10371 (hpread_read_doc_function_type, hpread_read_struct_type)
10372 (fix_static_member_physnames, hpread_read_array_type)
10373 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
10374 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
10375 (java_link_class_type): Ditto.
10376 * mdebugread.c (parse_type): Ditto.
10377 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10378 * solib-sunos.c (solib_add_common_symbols): Ditto.
10379 * stabsread.c (define_symbol, read_type, read_member_functions,
10380 read_cpp_abbrev, read_one_struct_field): Ditto.
10381 * symfile.c (reread_symbols): Ditto.
10382 * symmisc.c (print_objfile_statistics): Ditto.
10383
10384 2004-02-07 Andrew Cagney <cagney@redhat.com>
10385
10386 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10387 (tui_exec_info_content): Rename TuiExecInfoContent.
10388 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10389 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10390 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10391 (TuiList, TuiListPtr): Ditto.
10392 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10393 (TuiDataType, TuiDataTypePtr): Ditto.
10394 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10395 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10396 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10397 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10398 (TuiDataElement, TuiDataElementPtr): Ditto.
10399 (TuiWinElement, TuiWinElementPtr): Ditto.
10400 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10401 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10402 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10403 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10404 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10405 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10406 * tui/tui-command.c, tui/tui-data.c: Update references.
10407 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10408 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10409 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10410 * tui/tui-winsource.c, tui/tui.c: Ditto.
10411
10412 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10413
10414 * dwarf2-frame.h: Update copyright.
10415 (enum dwarf2_frame_reg_rule): New.
10416 (struct dwarf2_frame_state_reg): New.
10417 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10418 * dwarf2-frame.c: Update copyright.
10419 (enum dwarf2_reg_rule): Remove.
10420 (struct dwarf2_frame_state): Remove defenition of `struct
10421 dwarf2_frame_state_reg'.
10422 (read_reg): Call get_frame_arch to get the architecture instead of
10423 using CURRENT_GDBARCH.
10424 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10425 DWARF2_FRAME_.
10426 (dwarf2_frame_init_reg): New function.
10427 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10428 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10429 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10430 tags with DWARF2_FRAME_.
10431 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10432 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10433 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10434
10435 2004-02-06 Andrew Cagney <cagney@redhat.com>
10436
10437 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10438 (enum tui_data_type): Rename _TuiDataType.
10439 (struct tui_layout_def): Rename _TuiLayoutDef.
10440 (struct tui_source_element): Rename _TuiSourceElement.
10441 (struct tui_data_element): Rename _TuiDataElement.
10442 (struct tui_command_element): Rename _TuiCommandElement.
10443 (struct tui_locator_element): Rename _TuiLocatorElement.
10444 (union tui_which_element): Define.
10445 (struct tui_win_element): Rename _TuiWinElement.
10446 (struct tui_data_info): Rename _TuiDataInfo.
10447 (struct tui_source_info): Rename _TuiSourceInfo.
10448 (struct tui_command_info): Rename _TuiCommandInfo.
10449 (tui_initialize_static_data): Rename initializeStaticData.
10450 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10451 (tui_alloc_win_info): Rename allocWinInfo.
10452 (tui_init_generic_part): Rename initGenericPart.
10453 (tui_init_win_info): Rename initWinInfo.
10454 (tui_alloc_content): Rename allocContent.
10455 (tui_add_content_elements): Rename addContentElements.
10456 (tui_init_content_element): Rename initContentElement.
10457 (tui_free_window): Rename freeWindow.
10458 (tui_free_win_content): Rename freeWinContent.
10459 (tui_free_data_content): Rename freeDataContent.
10460 (tui_free_all_source_wins_content): Rename
10461 freeAllSourceWinsContent.
10462 (tui_del_window): Rename tuiDelWindow.
10463 (tui_del_data_windows): Rename tuiDelDataWindows.
10464 (tui_partial_win_by_name): Rename partialWinByName.
10465 (tui_win_name): Rename winName.
10466 (tui_current_layout): Rename currentLayout.
10467 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10468 (tui_term_height): Rename termHeight.
10469 (tui_set_term_height_to): Rename setTermHeightTo.
10470 (tui_term_width): Rename termWidth.
10471 (tui_set_term_width_to): Rename setTermWidthTo.
10472 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10473 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10474 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10475 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10476 (tui_source_windows): Rename sourceWindows.
10477 (tui_clear_source_windows): Rename clearSourceWindows.
10478 (tui_clear_source_windows_detail): Rename
10479 clearSourceWindowsDetail.
10480 (tui_clear_win_detail): Rename clearWinDetail.
10481 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10482 (tui_default_tab_len): Rename tuiDefaultTabLen.
10483 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10484 (tui_win_with_focus): Rename tuiWinWithFocus.
10485 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10486 (tui_layout_def): Rename tuiLayoutDef.
10487 (tui_win_resized): Rename tuiWinResized.
10488 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10489 (tui_next_win): Rename tuiNextWin.
10490 (tui_prev_win): Rename tuiPrevWin.
10491 (tui_add_to_source_windows): Rename addToSourceWindows.
10492 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10493 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10494 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10495 * tui/tui.c, tui/tui-data.c: Ditto.
10496 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10497 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10498
10499 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10500 (struct symtab): Declare.
10501 (tui_set_source_content): Rename tuiSetSourceContent.
10502 (tui_show_symtab_source): Rename tuiShowSource.
10503 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10504 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10505 * tui/tui-source.c: Update copyright. Update references.
10506 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10507 * tui/tui-stack.c: Update references.
10508
10509 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10510 (struct tui_win_info): Declare.
10511 (tui_scroll_forward): Rename tuiScrollForward.
10512 (tui_scroll_backward): Rename tuiScrollBackward.
10513 (tui_scroll_left): Rename tuiScrollLeft.
10514 (tui_scroll_right): Rename tuiScrollRight.
10515 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10516 (tui_resize_all): Rename tuiResizeAll.
10517 (tui_refresh_all_win): Rename tuiRefreshAll.
10518 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10519 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10520 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10521 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10522
10523 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10524 (tui_erase_data_content): Rename tuiEraseDataContent.
10525 (tui_display_all_data): Rename tuiDisplayAllData.
10526 (tui_check_data_values): Rename tuiCheckDataValues.
10527 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10528 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10529 (tui_first_data_element_no_in_line): Rename
10530 tuiFirstDataElementNoInLine.
10531 (tui_delete_data_content_windows): Rename
10532 tuiDeleteDataContentWindows.
10533 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10534 (tui_display_data_from): Rename tuiDisplayDataFrom.
10535 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10536 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10537 * tui/tui-win.c, tui/tui-regs.c: Update references.
10538 * tui/tui-layout.c, tui/tui.c: Update references.
10539
10540 * tui/tui-wingeneral.h: Update copyright.
10541 (m_allBeVisible): Delete macro.
10542 (m_allBeInvisible): Delete macro.
10543 (struct tui_gen_win_info): Declare.
10544 (struct tui_win_info): Declare.
10545 (tui_unhighlight_win): Rename unhighlightWin.
10546 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10547 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10548 (tui_make_window): Rename makeWindow.
10549 (tui_copy_win): Rename copyWin.
10550 (tui_box_win): Rename boxWin.
10551 (tui_highlight_win): Rename highlightWin.
10552 (tui_check_and_display_highlight_if_needed): Rename
10553 checkAndDisplayHighlightIfNeeded.
10554 (tui_refresh_all): Rename refreshAll.
10555 (tui_delete_win): Rename tuiDelwin.
10556 (tui_refresh_win): Rename tuiRefreshWin.
10557 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10558 (tui_make_visible, tui_make_invisible): New functions.
10559 (tui_make_all_visible, tui_make_all_invisible): New functions.
10560 (make_all_visible): Rename makeAllVisible.
10561 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10562 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10563 * tui/tui-windata.c, tui/tui-win.c: Update references.
10564 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10565 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10566
10567 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10568
10569 * proc-api.c (write_with_trace): Initialize local variable to
10570 silence compiler warning.
10571
10572 2004-02-06 Andrew Cagney <cagney@redhat.com>
10573
10574 * tui/tui-source.h: Do not include "defs.h".
10575 (struct tui_win_info): Declare.
10576 (tui_set_source_content_nil): Declare.
10577 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10578 (union tui_line_or_address): Rename _TuiLineOrAddress.
10579 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10580 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10581 (tui_update_source_window_as_is): Rename
10582 tuiUpdateSourceWindowAsIs.
10583 (tui_update_source_windows_with_addr): Rename
10584 tuiUpdateSourceWindowsWithAddr.
10585 (tui_update_source_windows_with_line): Rename
10586 tuiUpdateSourceWindowsWithLine.
10587 (tui_clear_source_content): Rename tuiClearSourceContent.
10588 (tui_erase_source_content): Rename tuiEraseSourceContent.
10589 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10590 (tui_show_source_content): Rename tuiShowSourceContent.
10591 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10592 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10593 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10594 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10595 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10596 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10597 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10598 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10599 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10600 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10601 (struct tui_win_info): Declare.
10602 * tui/tui-stack.c: Update references.
10603 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10604 * tui/tui-win.c, tui/tui-source.c: Ditto.
10605 * tui/tui.c, tui/tui-disasm.c: Ditto.
10606
10607 2004-02-06 Mark Kettenis <kettenis@gnu.org>
10608
10609 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10610 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10611
10612 2004-02-05 Mark Kettenis <kettenis@gnu.org>
10613
10614 * infrun.c (handle_inferior_event): Allow for breakpoint
10615 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10616 and SIGEMT. Update comments.
10617 * NEWS (Revised SPARC target): Mention support for non-executable
10618 stack.
10619
10620 2004-02-04 Mark Kettenis <kettenis@gnu.org>
10621
10622 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10623 * inftarg.c: Update copyright year.
10624 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10625 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10626 (sparc_xfer_wcookie): New function.
10627 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10628 * Makefile.in (sparc-nat.o): Update dependencies.
10629 * config/sparc/nm-nbsd.h: Include "target.h".
10630 (NATIVE_XFER_WCOOKIE): New define.
10631 (sparc_xfer_wcookie): New prototype.
10632
10633 2004-02-04 Andrew Cagney <cagney@redhat.com>
10634
10635 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10636 SYSCALL_TRAP function.
10637 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10638
10639 2004-02-04 Andrew Cagney <cagney@redhat.com>
10640 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * objfiles.h: Delete comments refering to inside_entry_func and
10643 DEPRECATED_FRAME_CHAIN_VALID.
10644 * defs.h (inside_entry_func): Update prototype..
10645 * blockframe.c (inside_entry_func): Rename to
10646 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10647 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10648
10649 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10650
10651 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10652 outside of #ifdef SOLIB_ADD region.
10653 (do_restore_lang_radix_cleanup): Ditto.
10654 (resolve_pending_breakpoint): Ditto.
10655
10656 2004-02-03 Andrew Cagney <cagney@redhat.com>
10657
10658 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10659 (process_note_abi_tag_sections): Delete unused function.
10660 (ia64_read_fp): Delete unused function.
10661 (gdbarch_extract_struct_value_address): Delete declaration.
10662
10663 2004-02-02 Andrew Cagney <cagney@redhat.com>
10664
10665 * vax-tdep.c (vax_frame_chain): Delete call to
10666 deprecated_inside_entry_file.
10667 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10668
10669 2004-02-02 Mark Kettenis <kettenis@gnu.org>
10670
10671 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10672 column that's "empty" or "same value" when eliminating REG_RA
10673 rules.
10674
10675 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10676
10677 * NEWS: Add information about new pending breakpoint support.
10678
10679 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10680
10681 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10682 and pending fields for pending breakpoint support.
10683 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10684 (condition_command): Only parse condition if not a pending
10685 breakpoint.
10686 (print_one_breakpoint): Add support for pending breakpoints.
10687 (describe_other_breakpoints): Add checks to verify we are not
10688 dealing with pending breakpoints.
10689 (check_duplicates): Don't check pending breakpoints.
10690 (set_raw_breakpoint): Initialize pending flag.
10691 (do_restore_lang_radix_cleanup): New cleanup routine.
10692 (resolve_pending_breakpoint): New function.
10693 (re_enable_breakpoints_in_shlibs): Try and resolve any
10694 pending breakpoints via resolve_pending_breakpoint.
10695 (mention): Add pending breakpoint support.
10696 (parse_breakpoint_sals): Add new parameter to pass to
10697 decode_line_1 to indicate silent errors when files or functions
10698 are not found. Change all callers.
10699 (do_captured_parse_breakpoint): New function.
10700 (break_command_1): Change prototype to return an rc value and to
10701 take an optional pending breakpoint pointer. Support creating
10702 a pending breakpoint if a "not found" form of error occurs when
10703 parsing the breakpoint. Also support resolving an existing pending
10704 breakpoint and be silent if the resolution fails.
10705 (create_breakpoints): Change prototype to take pending breakpoint
10706 pointer. When resolving a pending breakpoint, use the new pointer
10707 to provide a conditional or commands added by the end-user.
10708 (delete_breakpoint): Add appropriate check for pending.
10709 (breakpoint_re_set_one): Ditto.
10710 (do_enable_breakpoint): Ditto.
10711
10712 2004-02-02 David Carlton <carlton@kealia.com>
10713
10714 * valops.c (enum oload_classification): New.
10715 (find_overload_match): Break implementation into separate
10716 functions; delete #if 0'd code; look for symbols within
10717 namespaces.
10718 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10719 (find_oload_champ,oload_method_static,classify_oload_match): New.
10720 * cp-support.h: Add declaration for cp_func_name; update
10721 declaration for make_symbol_overload_list.
10722 * cp-support.c (cp_func_name): New.
10723 (overload_list_add_symbol): Fix comment, use
10724 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10725 (make_symbol_overload_list): Take a function name and a namespace
10726 instead of a symbol; change implementation.
10727 (make_symbol_overload_list_using): New.
10728 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10729
10730 2004-02-02 Fred Fish <fnf@redhat.com>
10731
10732 * main.c (gdb_stdtarg): Move definition to group with other
10733 gdb_stdtarg definitions and update copyright years.
10734 * remote-sim.c (gdb_os_write_stderr): Write output to
10735 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10736 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
10737 gdb_stderr stream and update copyright years.
10738
10739 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10740
10741 * Makefile.in (mips-linux-nat.o): Update dependencies.
10742 * mips-linux-nat.c: Include mips-tdep.h.
10743
10744 2004-02-01 Roland McGrath <roland@redhat.com>
10745
10746 * sol-thread.c (sol_thread_xfer_partial): New function.
10747 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10748 (init_sol_core_ops): Likewise.
10749
10750 * procfs.c (procfs_xfer_partial): New function.
10751 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10752 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10753
10754 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10755 procfs_xfer_auxv function.
10756
10757 * procfs.c (procfs_make_note_section): If we can read
10758 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10759 * linux-proc.c (linux_make_note_section): Likewise.
10760
10761 * auxv.h: New file.
10762 * auxv.c: New file.
10763 * Makefile.in (auxv_h): New variable.
10764 (COMMON_OBS): Add auxv.o here.
10765 (auxv.o): New target.
10766
10767 * corelow.c (core_xfer_partial): New function.
10768 (init_core_ops): Use it for core_ops.to_xfer_partial.
10769
10770 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10771 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10772 macro if that is defined.
10773
10774 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10775
10776 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10777 and check the specified thread for each breakpoint.
10778 * breakpoint.h (bpstat_stop_status): Update prototype.
10779 * infrun.c (handle_inferior_event): Update calls to
10780 bpstat_stop_status.
10781
10782 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10783
10784 * Makefile.in (cli-cmds.o): Add $(readline_h).
10785
10786 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
10787
10788 * cli/cli-cmds.c: Include readline.h.
10789 (complete_command): Pass the start of the last word to
10790 complete_line.
10791
10792 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10793
10794 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10795 argument, and change first argument to a CORE_ADDR.
10796 * breakpoint.h (bpstat_stop_status): Update prototype.
10797 * infrun.c (adjust_pc_after_break): Add a new comment.
10798 (handle_inferior_event): Update calls to bpstat_stop_status.
10799
10800 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10801
10802 * breakpoint.h: Update copyright years.
10803
10804 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10805
10806 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10807 (bpstat_stop_status): Don't decrement PC.
10808 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10809 prototype.
10810 * infrun.c (adjust_pc_after_break): New function.
10811 (handle_inferior_event): Call it, early. Remove later references
10812 to DECR_PC_AFTER_BREAK.
10813 (normal_stop): Add commentary.
10814
10815 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
10816
10817 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10818 2004-01-27 double-free fix.
10819
10820 2004-01-31 Mark Kettenis <kettenis@gnu.org>
10821
10822 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10823 (sparc32_frame_prev_register): Handle StackGhost.
10824 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10825
10826 2004-01-29 Roland McGrath <roland@redhat.com>
10827
10828 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10829 * configure: Regenerated.
10830
10831 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10832 * Makefile.in (procfs.o): Add dep.
10833
10834 2004-01-28 Andrew Cagney <cagney@redhat.com>
10835
10836 * tui/tui-stack.h: Update copyright.
10837 (struct frame_info): Add opaque declaration.
10838 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10839 (tui_show_locator_content): Rename tuiShowLocatorContent.
10840 (tui_show_frame_info): Rename tuiShowFrameInfo.
10841 * tui/tui-stack.c: Update copyright. Update references.
10842 * tui/tui-winsource.c: Update references.
10843 * tui/tui-win.c: Update references.
10844 * tui/tui-layout.c: Update references.
10845 * tui/tui-hooks.c: Update copyright, update references.
10846 * tui/tui.c: Update copyright, update references.
10847 * tui/tui-disasm.c: Update references.
10848
10849 2004-01-28 David Carlton <carlton@kealia.com>
10850
10851 * dwarf2read.c (add_partial_structure): Use demangled name if
10852 namespace equals "".
10853
10854 2004-01-27 Jim Blandy <jimb@redhat.com>
10855
10856 Clean up misapplied patch:
10857 * dwarf2read.c (determine_prefix): Change one of the two forward
10858 declarations for 'determine_prefix_aux' to a declaration for this.
10859 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10860 argument to 'die_specification'.
10861
10862 * dwarf2read.c (read_func_scope): Re-indent comment.
10863
10864 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
10865
10866 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10867 b->exp to NULL after freeing so that error during re-parsing or
10868 evaluation of expressions associated with breakpoint don't
10869 eventually lead to re-freeing of storage.
10870 Committed by Andrew Cagney.
10871
10872 2004-01-27 Andrew Cagney <cagney@redhat.com>
10873
10874 * source.c (ambiguous_line_spec): Delete undefined declaration.
10875 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10876 (m32r_set_server_address, m32r_set_download_path): Ditto.
10877 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10878
10879 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
10880
10881 * dwarf2read.c: Update calls to changed and renamed functions, and
10882 references to moved variables.
10883
10884 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10885 language, language_defn, list_in_scope, and ftypes members.
10886 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10887 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10888 (baseaddr): Remove globals.
10889
10890 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10891 (set_cu_language, die_is_declaration, die_specification)
10892 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10893 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10894 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10895 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10896
10897 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10898 cu.list_in_scope. Don't initialize cu_header_offset.
10899 (add_partial_symbol): Add local baseaddr.
10900 (psymtab_to_symtab_1): Add local baseaddr. Use
10901 objfile->section_offsets for consistency. Don't initialize
10902 cu_header_offset; do initialize cu.header.offset and
10903 cu.list_in_scope.
10904 (read_file_scope, read_func_scope, read_lexical_block_scope)
10905 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10906
10907 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10908
10909 * PROBLEMS: Add gdb/1516.
10910
10911 2003-12-29 Robert Millan <robertmh@gnu.org>
10912
10913 Patch committed by Andrw Cagney.
10914 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10915 * configure.tgt: Match knetbsd*-gnu.
10916
10917 2004-01-26 Andrew Cagney <cagney@redhat.com>
10918
10919 * breakpoint.c (catch_command_1): Delete #ifdef code.
10920 (catch_fork_command_1): Delete #ifdef wrapper.
10921 (catch_exec_command_1): Ditto.
10922 (catch_load_command_1): Ditto.
10923 (catch_unload_command_1): Ditto.
10924
10925 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10926 (catch_breakpoint): Delete #if0ed function.
10927 (disable_catch_breakpoint): Ditto.
10928 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10929 (disable_catch, enable_catch, delete_catch): Ditto.
10930
10931 2004-01-26 Andrew Cagney <cagney@redhat.com>
10932
10933 * remote.c (echo_check, quit_flag): Delete variables.
10934 (cisco_kernel_mode): Delete variable.
10935 (minitelnet_return, tty_input, escape_count): Delete variables.
10936 (remote_cisco_mode): Delete variable.
10937 (remote_cisco_open, remote_cisco_close): Delete function.
10938 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10939 (init_remote_cisco_ops): Delete function.
10940 (_initialize_remote): Do not install "remote cisco" code.
10941 (read_frame): Delete cisco specific code.
10942 (remote_info_process): Delete function.
10943 (remote_wait): Delete cisco specific code.
10944 (remote_cisco_section_offsets): Delete function.
10945 (remote_cisco_objfile_relocate): Delete function.
10946 (remote_async_wait): Delete cisco specific code.
10947 (minitelnet, readtty, readsocket): Delete function.
10948
10949 2004-01-26 Andrew Cagney <cagney@redhat.com>
10950
10951 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10952 comments mentioning extract_returned_value_address.
10953 * infcmd.c (print_return_value): Update. Add comments on
10954 extract_returned_value_address.
10955 * stack.c (return_command): Add comments on
10956 extract_returned_value_address.
10957 * values.c: Update comment.
10958 * m32r-tdep.c: Update comment.
10959 * sparc-tdep.c: Update comment.
10960 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10962 * sh64-tdep.c (sh64_gdbarch_init): Update.
10963 * sh-tdep.c (sh_gdbarch_init): Update.
10964 * s390-tdep.c (s390_gdbarch_init): Update.
10965 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10966 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10967 * m68k-tdep.c (m68k_gdbarch_init): Update.
10968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10969 * m32r-tdep.c (m32r_gdbarch_init): Update.
10970 * ia64-tdep.c (ia64_gdbarch_init): Update.
10971 * h8300-tdep.c (h8300_gdbarch_init): Update.
10972 * frv-tdep.c (frv_gdbarch_init): Update.
10973 * arm-tdep.c (arm_gdbarch_init): Update.
10974 * alpha-tdep.c (alpha_gdbarch_init): Update.
10975
10976 2004-01-26 Andrew Cagney <cagney@redhat.com>
10977
10978 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10979 SYMBOL_LOCATION_FUNCS
10980 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10981 "struct symbol_ops".
10982 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10983 type to "struct symbol_ops".
10984 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10985 (struct symbol): Replace ".aux_value.loc.funcs" and
10986 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10987 (SYMBOL_OBJFILE): Delete macro.
10988 (SYMBOL_LOCATION_FUNCS): Delete macro.
10989 (SYMBOL_LOCATION_BATON): Update.
10990 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10991 intead of SYMBOL_LOCATION_FUNCS.
10992 * ax-gdb.c (gen_var_ref): Ditto.
10993 * printcmd.c (address_info): Ditto.
10994 * findvar.c (read_var_value): Ditto.
10995 (symbol_read_needs_frame): Ditto.
10996
10997 2004-01-26 Andrew Cagney <cagney@redhat.com>
10998
10999 * dwarf2read.c (read_func_scope): Document frame-base hack.
11000
11001 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11002
11003 * infcmd.c (print_return_value): Plug memory leak; delete
11004 ui_stream object. Rename argument `structure_return' to
11005 `struct_return'.
11006
11007 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11008
11009 * infcmd.c (print_return_value): Wrap long lines.
11010 (finish_command_continuation, finish_command): Remove unused
11011 variable `funcaddr'. Fix some coding-standards problems.
11012
11013 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11014 SECT_SIZE is large enough, not whether it's exactly the right size.
11015 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11016 TDEP->fpregset to zero.
11017
11018 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11019 floating-point registers for traditional NetBSD core files.
11020 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11021 TDEP->sizeof_fpregset here.
11022
11023 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11024
11025 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11026 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11027 function with code split out from
11028 sparc32nbsd_sigcontext_frame_cache.
11029 (sparc32nbsd_sigcontext_frame_cache): Use
11030 sparc32nbsd_sigcontext_saved_regs.
11031 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11032 OpenBSD.
11033 * sparcobsd-tdep.c: New file.
11034 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11035 (sparcobsd-tdep.o): New dependency.
11036 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11037 * config/sparc/obsd.mt: New file.
11038
11039 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11040 TDEP->fpregset to be initialized to enable core file register
11041 sets.
11042
11043 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11044
11045 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11046 Add opaque declarations.
11047 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11048 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11049 function with code split out from
11050 sparc64nbsd_sigcontext_frame_cache.
11051 (sparc64nbsd_sigcontext_frame_cache): Use
11052 sparc64nbsd_sigcontext_saved_regs.
11053 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11054 OpenBSD.
11055 * sparc64obsd-tdep.c: New file.
11056 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11057 (sparc64obsd-tdep.o): New dependency.
11058 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11059 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11060 * config/sparc/obsd64.mt: New file.
11061
11062 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11063 read the instruction at PC.
11064
11065 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11066 value of GDB_OSABI_DEFAULT.
11067 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11068 instead of GDB_OSABI_NETBSD_AOUT.
11069
11070 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11071
11072 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11073 copyright.
11074
11075 2004-01-23 Andrew Cagney <cagney@redhat.com>
11076
11077 * printcmd.c (display_command): Replace tui_set_display call with
11078 tui_set_layout_for_display_command.
11079 * tui/tui.h (enum tui_win_type): Define.
11080 (tui_set_layout): Delete declaration.
11081 (tui_set_layout_for_display_command): Rename set_tui_layout.
11082 * tui/tui-data.h (enum tui_layout_type): Define.
11083 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11084 "tui.h".
11085 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11086 (tui_default_win_height): Rename tuiDefaultWinHeight.
11087 (tui_default_win_viewport_height): Rename
11088 tuiDefaultWinViewportHeight.
11089 (tui_set_layout): RenametuiSetLayout.
11090 * tui/tui-layout.c: Update references.
11091 * tui/tui.c: Update references.
11092 * tui/tui-disasm.c: Update references.
11093
11094 2004-01-23 David Carlton <carlton@kealia.com>
11095
11096 Partial workaround for PR c++/1511:
11097 * cp-namespace.c: Include frame.h.
11098 (cp_lookup_transparent_type): New
11099 (cp_lookup_transparent_type_loop): New.
11100 * cp-support.h: Declare cp_lookup_transparent_type.
11101 * symtab.c (basic_lookup_transparent_type): Renamed from
11102 lookup_transparent_type.
11103 (lookup_transparent_type): Replace old body by a call to
11104 current_language->la_lookup_transparent_type.
11105 * symtab.h: Update copyright. Declare
11106 basic_lookup_transparent_type.
11107 * language.h: Update copyright.
11108 (struct language_defn): Add la_lookup_transparent_type.
11109 * language.c: Update copyright.
11110 (unknown_language_defn): Add basic_lookup_transparent_type.
11111 (auto_language_defn): Add basic_lookup_transparent_type.
11112 (local_language_defn): Add basic_lookup_transparent_type.
11113 * ada-lang.c: Update copyright.
11114 (ada_language_defn): Add basic_lookup_transparent_type.
11115 * c-lang.c: Update copyright.
11116 (c_language_defn): Add basic_lookup_transparent_type.
11117 (cplus_language_defn): Add basic_lookup_transparent_type.
11118 (asm_language_defn): Add basic_lookup_transparent_type.
11119 (minimal_language_defn): Add basic_lookup_transparent_type.
11120 * f-lang.c: Update copyright.
11121 (f_language_defn): Add basic_lookup_transparent_type.
11122 * jv-lang.c: Update copyright.
11123 (java_language_defn): Add basic_lookup_transparent_type.
11124 * m2-lang.c: Update copyright.
11125 (m2_language_defn): Add basic_lookup_transparent_type.
11126 * objc-lang.c: Update copyright.
11127 (objc_language_defn): Add basic_lookup_transparent_type.
11128 * p-lang.c: Update copyright.
11129 (p_language_defn): Add basic_lookup_transparent_type.
11130 * scm-lang.c: Update copyright.
11131 (scm_language_defn): Add basic_lookup_transparent_type.
11132 * Makefile.in (cp-namespace.o): Depend on frame.h.
11133
11134 2004-01-23 David Carlton <carlton@kealia.com>
11135
11136 Patch for PR c++/1520:
11137 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11138 properly if we have a specification die.
11139 (determine_prefix_aux): Rename from determine_prefix.
11140 (determine_prefix): Like the old determine_prefix, but never
11141 returns NULL.
11142
11143 2004-01-23 Theodore A. Roth <troth@openavr.org>
11144
11145 * avr-tdep.c: Update copyright.
11146 (avr_iaddr_p): Delete unused function.
11147 (avr_saddr_p): Delete unused function.
11148
11149 2004-01-23 David Carlton <carlton@kealia.com>
11150
11151 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11152 Fix for PR symtab/1534.
11153
11154 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11155
11156 * NEWS (New native configurations): Mention OpenBSD/sparc and
11157 OpenBSD/sparc64.
11158 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11159 * configure.host: Likewise.
11160 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11161 handler for OpenBSD.
11162 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11163
11164 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11165
11166 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11167 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11168
11169 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11170 * cli/cli-cmds.c (shell_escape): Likewise.
11171
11172 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11173 OpenBSD .note.openbsd.ident sections.
11174
11175 2004-01-22 David Carlton <carlton@kealia.com>
11176
11177 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11178 get_scope_pc_bounds.
11179 (read_file_scope): Ditto.
11180 (get_scope_pc_bounds): New function, produced by extracting code
11181 from the above two functions, consolidating it, and adding support
11182 for DW_TAG_namespace.
11183
11184 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11185
11186 * osabi.c (MAX_NOTESZ): New define.
11187 (check_note): New function.
11188 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11189 check_note.
11190
11191 2004-01-21 Roland McGrath <roland@redhat.com>
11192
11193 * MAINTAINERS (write after approval): Add myself.
11194
11195 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11196
11197 * utils.c (init_page_info): Move declarations of `rows' and
11198 `cols' before the __GO32__-specific code. Move the closing brace
11199 outside the #ifdef __GO32__..#endif block.
11200 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11201
11202 2004-01-21 Paul Brook <paul@codesourcery.com>
11203
11204 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11205 BPSTAT_WHAT_CHECK_SHLIBS.
11206
11207 2004-01-21 Paul Brook <paul@codesourcery.com>
11208
11209 * MAINTAINERS: Add myself to write-after-approval.
11210
11211 2004-01-20 Andrew Cagney <cagney@redhat.com>
11212
11213 * ax-gdb.c (print_axs_value): Delete unused function.
11214 * jv-lang.c (java_lookup_type): Delete unused function.
11215 * cli/cli-dump.c (dump_filetype): Delete unused function.
11216 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11217 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11218 (mips_getstring): Delete unused function.
11219 (pmon_insert_breakpoint): Delete #if0ed function.
11220 (PMON_MAX_BP): Delete #if0ed MACRO.
11221 (mips_pmon_bp_info): Delete #if0ed variable.
11222 (pmon_remove_breakpoint): Delete #if0ed function.
11223 * monitor.c (monitor_write_even_block): Delete unused function.
11224 (monitor_write_memory_block): Delete #if0ed code.
11225 * dink32-rom.c (dink32_load): Delete unused function.
11226 (_initialize_dink32_rom): Delete #if0ed code.
11227 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11228
11229 * tui/tui-command.c: Update references.
11230 * tui/tui-io.c: Update references.
11231 * tui/tui-command.h: Update copyright.
11232 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11233
11234 * source.c (ambiguous_line_spec): Delete never-defined function.
11235 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11236 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11237 * cli/cli-cmds.c (validate_comname): Ditto.
11238
11239 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11240 "tui-data.h".
11241 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11242 (tui_show_disassem): Rename tuiShowDisassem.
11243 (tui_show_disassem_and_update_source): Rename
11244 tuiVerticalDisassemScroll.
11245 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11246 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11247 * tui/tui.h: Update copyright.
11248 (enum tui_status): Define.
11249 * tui/tui-data.h (enum tui_scroll_direction): Define.
11250 * tui/tui-disasm.c: Update copyright. Update references.
11251 * tui/tui-winsource.c: Update copyright. Update references.
11252 * tui/tui-win.c: Update references.
11253 * tui/tui-layout.c: Update references.
11254
11255 2004-01-20 Andrew Cagney <cagney@redhat.com>
11256
11257 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11258 sym2 to start of block.
11259
11260 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11261
11262 * MAINTAINERS: Delete mmalloc.
11263 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11264 * NEWS: Mention removal of --with-malloc.
11265 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11266 * config.in: Regenerate.
11267 * configure: Regenerate.
11268 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11269 USE_MMALLOC, MMCHECK_FORCE.
11270 * gdbinit.in: Remove mmalloc.
11271 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11272 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11273 * config/i386/go32.mh: Likewise.
11274 * config/i386/interix.mh: Likewise.
11275 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11276
11277 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11278
11279 * linespec.c (decode_variable, symtab_from_filename): Call
11280 error_silent with error message instead of throwing an exception
11281 directly.
11282 * defs.h (error_silent, error_output_message): Add prototypes.
11283 (catch_exceptions_with_msg): Ditto.
11284 * utils.c (error_silent, error_output_message): New functions.
11285 * top.c (catch_exceptions_with_msg): New function.
11286
11287 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11288
11289 * mi/mi-cmds.h (enum print_values): Add definition.
11290
11291 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11292 type and value for simple data types and just the name and type
11293 for complex ones, if required.
11294
11295 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11296 children, if required.
11297
11298 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11299
11300 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11301 unused declarations.
11302
11303 2004-01-19 Andrew Cagney <cagney@redhat.com>
11304
11305 * top.h (mapped_symbol_files): Delete declaration.
11306 * main.c (captured_main): Delete option "m" and "mapped".
11307 * objfiles.c (mapped_symbol_files): Delete variable.
11308 * symfile.c (symbol_file_command): Delete mmap code.
11309 (symbol_file_add_with_addrs_or_offsets): Ditto.
11310 (add_symbol_file_command, reread_separate_symbols): Ditto.
11311 * objfiles.h (OBJF_MAPPED): Delete.
11312 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11313 (free_objfile) [USE_MMALLOC]: Ditto.
11314 (open_existing_mapped_file): Delete function.
11315 (open_mapped_file): Delete function.
11316 (map_to_file): Delete function.
11317
11318 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11319
11320 * infrun.c (step_into_function): Account for possible breakpoint
11321 adjustment when computing ``stop_func_start''.
11322
11323 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11324
11325 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11326 the region size against the size of a pointer, not the size of
11327 a register as given by DEPRECATED_REGISTER_SIZE.
11328
11329 2004-01-19 Andrew Cagney <cagney@redhat.com>
11330
11331 * tui/tui-regs.h: Include "tui-data.h".
11332 (tuiFirstRegElementNoInLine): Delete declaration.
11333 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11334 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11335 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11336 (tui_calculate_regs_column_count): Rename
11337 tuiCalculateRegsColumnCount.
11338 (tui_check_register_values): Rename tuiCheckRegisterValues.
11339 (tui_show_registers): Rename tuiShowRegisters.
11340 (tui_display_registers_from_line): Rename
11341 tuiDisplayRegistersFromLine.
11342 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11343 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11344 (tui_first_reg_element_no_inline): Rename
11345 tuiFirstRegElementNoInLine.
11346 * tui/tui-data.h: Update copyright.
11347 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11348 * tui/tui-windata.c: Update copyright, update references.
11349 * tui/tui-regs.c: Update copyright, update references.
11350 * tui/tui-win.c: Update copyright, update references.
11351 * tui/tui-layout.c: Update copyright, update references.
11352
11353 2004-01-18 Andrew Cagney <cagney@redhat.com>
11354
11355 * tui/tui-io.c: Update copyright.
11356 (key_is_end_sequence, key_is_backspace): New functions.
11357 (key_is_command_char, key_is_start_sequence): New function.
11358 (tui_getc): Update references.
11359 * tui/tui-io.h: Update copyright.
11360 (m_tuiStartNewLine): Delete macro.
11361 (m_isBackspace, m_isDeleteChar): Delete macros.
11362 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11363 (m_isNextPage, m_isPrevPage): Delete macros.
11364 (m_isLeftArrow, m_isRightArrow): Delete macros.
11365 (m_isXdbStyleCommandChar): Delete macro.
11366 (key_is_start_sequence): Declare, replace m_isStartSequence.
11367 (key_is_end_sequence): Declare, replace m_isEndSequence.
11368 (key_is_backspace): Declare ,replace m_isBackspace.
11369 (key_is_command_char): Declare, replace m_isCommandChar.
11370 * tui/tui-command.c: Update copyright.
11371 (tuiDispatchCtrlChar): Update references.
11372
11373 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11374 tuiSourceWin.h.
11375
11376 * tui/tui-command.c: Rename tui/tuiCommand.c.
11377 * tui/tui-command.h: Rename tui/tuiCommand.h.
11378 * tui/tui-data.c: Rename tui/tuiData.c.
11379 * tui/tui-data.h: Rename tui/tuiData.h.
11380 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11381 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11382 * tui/tui-io.c: Rename tui/tuiIO.c.
11383 * tui/tui-io.h: Rename tui/tuiIO.h.
11384 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11385 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11386 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11387 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11388 * tui/tui-source.c: Rename tui/tuiSource.c.
11389 * tui/tui-source.h: Rename tui/tuiSource.h.
11390 * tui/tui-stack.c: Rename tui/tuiStack.c.
11391 * tui/tui-stack.h: Rename tui/tuiStack.h.
11392 * tui/tui-win.c: Rename tui/tuiWin.c.
11393 * tui/tui-win.h: Rename tui/tuiWin.h.
11394 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11395 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11396 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11397 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11398 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11399 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11400 * tui/tui-file.c: Update includes.
11401 * tui/tui-hooks.c: Update includes.
11402 * tui/tui-interp.c: Update includes.
11403 * tui/tui.c: Update includes.
11404 * Makefile.in: Update all tui/ dependencies.
11405 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11406
11407 * Makefile.in: Update copyright. Update dependencies.
11408
11409 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11410 problem.
11411
11412 2004-01-18 Andrew Cagney <cagney@redhat.com>
11413
11414 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11415 instead of register_gdbarch_init.
11416
11417 * remote-sds.c (tohex): Delete unused function. Update copyright.
11418 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11419 * v850-tdep.c (v850_register_virtual_size): Ditto.
11420 * target.c (normal_target_post_startup_inferior): Ditto.
11421 * source.c (ambiguous_line_spec): Ditto.
11422 * remote.c (adapt_remote_get_threadinfo): Ditto.
11423 * mi/mi-out.c (out_field_fmt): Ditto.
11424 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11425 (output_control_change_notification): Ditto.
11426 * m68k-tdep.c (m68k_register_byte): Ditto.
11427 (m68k_remote_breakpoint_from_pc): Ditto.
11428 * ui-out.c (init_ui_out_state): Delete unused declaration.
11429 * stabsread.c (search_value): Ditto.
11430 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11431 * maint.c (print_section_table): Ditto.
11432 * infrun.c (set_follow_fork_mode_command): Ditto.
11433
11434 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11435
11436 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11437 DW_CFA_def_cfa_exporession. Add support for
11438 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11439 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11440
11441 2004-01-18 Andrew Cagney <cagney@redhat.com>
11442
11443 * ocd.c: Update copyright.
11444 (bdm_read_register_command): Delete unused function.
11445 (_initialize_remote_ocd): Delete commented out reference.
11446 (get_quoted_char, reset_packet): Delete #if0ed function.
11447 (output_packet, put_quoted_char): Delete #if0ed function.
11448 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11449 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11450 (BDM_BREAKPOINT): Delete #if0ed macro.
11451 (remote_timeout): Delete #if0ed variable.
11452
11453 2004-01-18 Mark Kettenis <kettenis@gnu.org>
11454
11455 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11456 (core-sol2.o): Remove dependency.
11457 * core-sol2.c: Remove file.
11458
11459 2004-01-17 Andrew Cagney <cagney@redhat.com>
11460
11461 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11462 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11463 enums.
11464
11465 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * remote.c: Update copyright years.
11468
11469 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11470
11471 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11472
11473 2004-01-17 Andrew Cagney <cagney@redhat.com>
11474
11475 * mdebugread.c: Update copyright.
11476 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11477 (parse_type, parse_procedure): Ditto.
11478 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11479
11480 * cris-tdep.c (cris_store_struct_return): Put back accidently
11481 deleted function.
11482
11483 * gdbarch.sh: Update copyright year.
11484 * gdbarch.h, gdbarch.c: Re-generate.
11485
11486 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11487
11488 Suggested by George Anzinger.
11489 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11490 correct stack offset. Include unknown opcode numbers in the error
11491 message.
11492
11493 2004-01-17 Andrew Cagney <cagney@redhat.com>
11494
11495 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11496 extract_struct_value_address, i386 does not set it.
11497 * sparc64-tdep.c (sparc64_init_abi): Do not set
11498 extract_struct_value_address, never called.
11499 (sparc64_extract_struct_value_address): Delete function.
11500 * m68hc11-tdep.c: Update copyright.
11501 (m68hc11_gdbarch_init): Delete redundant assignment of
11502 extract_struct_value_address.
11503 * i386-tdep.c: Update copyright.
11504 (i386_gdbarch_init): Do not set extract_struct_value_address,
11505 never called.
11506 (i386_extract_struct_value_address): Delete function.
11507 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11508 extract_struct_value_address, never called.
11509 (sparc32_extract_struct_value_address): #if 0 function. Add
11510 comments explaining its future.
11511
11512 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11513
11514 * arm-tdep.c (arm_write_pc): New function.
11515 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11516
11517 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11518
11519 * breakpoint.c (must_shift_inst_regs): Delete.
11520 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11521 and SHIFT_INST_REGS.
11522 * infcmd.c (step_1, step_1_continuation): Delete references to
11523 SHIFT_INST_REGS.
11524 * infrun.c (keep_going): Likewise.
11525 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11526 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11527
11528 2004-01-17 Andrew Cagney <cagney@redhat.com>
11529
11530 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11531 * gdbarch.h, gdbarch.c: Re-generate.
11532 * infcmd.c (print_return_value): Delete reference to
11533 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11534
11535 * cris-tdep.c (cris_gdbarch_init): Do not set
11536 deprecated_extract_struct_value_address.
11537
11538 * xstormy16-tdep.c: Update copyright.
11539 (xstormy16_extract_struct_value_address): Update to current
11540 extract struct value address interface.
11541 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11542 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11543 current extract struct value address interface.
11544 (sh64_gdbarch_init): Set extract_struct_value_address.
11545
11546 * cris-tdep.c: Update copyright.
11547 (cris_extract_struct_value_address): Delete function.
11548 (struct_return_address): Delete variable.
11549 (cris_store_struct_return): Do not set struct_return_address.
11550
11551 * mcore-tdep.c: Update copyright.
11552 (mcore_extract_struct_value_address): Delete function. Update
11553 comments.
11554 (mcore_gdbarch_init): Update.
11555 * mn10300-tdep.c: Update copyright.
11556 (mn10300_extract_struct_value_address): Delete function.
11557 (mn10300_gdbarch_init): Update.
11558 * v850-tdep.c: Update copyright.
11559 (v850_extract_struct_value_address): Delete.
11560 (v850_gdbarch_init): Update.
11561 * ns32k-tdep.c: Update copyright.
11562 (ns32k_extract_struct_value_address): Delete.
11563 (ns32k_gdbarch_init): Update.
11564 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11565 (hppa_gdbarch_init): Update.
11566 * vax-tdep.c: Update copyright.
11567 (vax_extract_struct_value_address): Delete.
11568 (vax_gdbarch_init): Update.
11569
11570 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11571 * gdbarch.h, gdbarch.c: Re-generate.
11572 * procfs.c (procfs_fetch_registers): Delete reference to
11573 DEPRECATED_NPC_REGNUM.
11574 (procfs_store_registers): Ditto.
11575 * regcache.c (generic_target_write_pc): Simplify.
11576 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11577
11578 * core-sol2.c (fetch_core_registers): Replace
11579 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11580
11581 * hppa-tdep.c: Update copyright year.
11582 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11583 NPC_REGNUM.
11584 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11585
11586 * mips-tdep.c (mips_write_pc): New function.
11587 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11588 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11589 (mips_find_saved_regs, mips_software_single_step: Ditto.
11590 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11591 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11592
11593 2004-01-17 Andrew Cagney <cagney@redhat.com>
11594
11595 * mips-tdep.c: Re-indent. Group functions by ABI.
11596
11597 2004-01-17 Andrew Cagney <cagney@redhat.com>
11598
11599 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11600 * gdbarch.c: Re-generate.
11601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11602 DECR_PC_AFTER_BREAK to zero.
11603 * vax-tdep.c (vax_gdbarch_init): Ditto.
11604 * v850-tdep.c (v850_gdbarch_init): Ditto.
11605 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11606 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11607 * sh-tdep.c (sh_gdbarch_init): Ditto.
11608 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11609 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11610 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11611 * mips-tdep.c (mips_gdbarch_init): Ditto.
11612 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11614 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11615 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11616 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11617 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11618 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11619 * frv-tdep.c (frv_gdbarch_init): Ditto.
11620 * cris-tdep.c (cris_gdbarch_init): Ditto.
11621 * avr-tdep.c (avr_gdbarch_init): Ditto.
11622 * arm-tdep.c (arm_gdbarch_init): Ditto.
11623 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11624
11625 2004-01-17 J. Brobecker <brobecker@gnat.com>
11626
11627 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11628 Delete, no longer used.
11629 (read_subrange_type): New function, mostly extracted from
11630 read_array_type().
11631 (read_array_type): Replace extracted code by call to
11632 read_subrange_type().
11633 (dwarf2_get_attr_constant_value): New function.
11634 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11635 (add_partial_symbol): Likewise.
11636 (process_die): Likewise.
11637 (new_symbol): Likewise.
11638 (read_type_die): Likewise.
11639
11640 2004-01-16 Andrew Cagney <cagney@redhat.com>
11641
11642 * symfile.c: Update copyright year.
11643 (compare_symbols): Delete unused function.
11644 * stabsread.c: Update copyright year.
11645 (lrs_general_complaint): Delete unused function.
11646 (ref_search_value): Ditto.
11647 (get_substring): Delete declaration.
11648 * sh64-tdep.c: Update copyright year.
11649 (sh64_get_gdb_regnum): Delete unused function.
11650 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11651 Delete unused function.
11652
11653 2004-01-17 Mark Kettenis <kettenis@gnu.org>
11654
11655 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11656 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11657
11658 2004-01-16 Andrew Cagney <cagney@redhat.com>
11659
11660 Changes from Peter Schauer.
11661 * rs6000-tdep.c: Update copyright year.
11662 (rs6000_push_dummy_call): Update the stack pointer before
11663 accessing the corresponding stack region.
11664 * rs6000-nat.c: Update copyright year.
11665 (set_host_arch): Set "info.abfd" to "exec_bfd".
11666
11667 2004-01-15 Mark Kettenis <kettenis@gnu.org>
11668
11669 * blockframe.c: Update copyright year.
11670 (inside_entry_func): Don't treat a zero PC specially.
11671
11672 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
11673
11674 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11675 variable.
11676 (gcore_create_callback): Ditto. Skip any memory segment that has
11677 no permissions set.
11678
11679 2004-01-14 David Carlton <carlton@kealia.com>
11680
11681 Change symbols for C++ nested types to contain the fully qualified
11682 name, if possible. (At least in the DWARF-2 case.) Partial fix
11683 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11684 c++/895.
11685 * c-exp.y (qualified_type): Handle types nested within classes.
11686 * cp-namespace.c: Update comments.
11687 (cp_set_block_scope): Delete #if 0.
11688 (cp_lookup_nested_type): Handle types nested within classes.
11689 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11690 when appropriate.
11691 (add_partial_symbol): Add the name of the enclosing namespace to
11692 types.
11693 (pdi_needs_namespace): New.
11694 (add_partial_namespace): Tweak comment.
11695 (add_partial_structure): New.
11696 (psymtab_to_symtab_1): Initialize processing_current_prefix
11697 here...
11698 (process_die): instead of here.
11699 (read_structure_scope): Try to figure out the name of the class or
11700 namespace that the structure might be defined within.
11701 (read_enumeration): Generate fully-qualified names, if possible.
11702 (read_namespace): Don't set name to NULL.
11703 (die_specification): New.
11704 (new_symbol): Generate fully-qualified names for types.
11705 (read_type_die): Determine appropriate prefix.
11706 (determine_prefix): New.
11707 (typename_concat): New.
11708 (class_name): New.
11709 * valops.c (value_aggregate_elt): Pass NOSIDE to
11710 value_struct_elt_for_reference.
11711 (value_struct_elt_for_reference): Make static, add NOSIDE
11712 parameter, call value_maybe_namespace_elt as a last resort.
11713 (value_namespace_elt): Break out code into
11714 value_maybe_namespace_elt.
11715 (value_maybe_namespace_elt): New.
11716
11717 2004-01-12 Andrew Cagney <cagney@redhat.com>
11718
11719 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11720 cooked floating-point registers.
11721 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11722 and value_to_register.
11723
11724 2004-01-13 Andrew Cagney <cagney@redhat.com>
11725
11726 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11727 * gdbarch.c: Re-generate.
11728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11729 FUNCTION_START_OFFSET.
11730 * v850-tdep.c (v850_gdbarch_init): Ditto.
11731 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11732 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11733 * sh-tdep.c (sh_gdbarch_init): Ditto.
11734 * s390-tdep.c (s390_gdbarch_init): Ditto.
11735 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11736 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11737 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11738 * mips-tdep.c (mips_gdbarch_init): Ditto.
11739 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11740 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11742 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11743 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11744 * i386-tdep.c (i386_gdbarch_init): Ditto.
11745 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11746 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11747 * frv-tdep.c (frv_gdbarch_init): Ditto.
11748 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11749 * cris-tdep.c (cris_gdbarch_init): Ditto.
11750 * avr-tdep.c (avr_gdbarch_init): Ditto.
11751 * arm-tdep.c (arm_gdbarch_init): Ditto.
11752 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11753
11754 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
11755
11756 * infrun.c (follow_fork_mode_ask): Remove.
11757 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11758 (follow_fork): Simplify and remove internal error for
11759 follow_fork_mode_ask.
11760 (_initialize_infrun): Update "set follow-fork-mode" help text.
11761
11762 2004-01-13 Andrew Cagney <cagney@redhat.com>
11763
11764 * configure.in: Update copyright year.
11765 (build_warnings): Add -Wunused-label.
11766 * configure: Re-generate.
11767
11768 2004-01-12 Andrew Cagney <cagney@redhat.com>
11769
11770 * exec.h (exec_ops): Make "extern".
11771
11772 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11773 the function is void.
11774 (mips_pseudo_register_write): Ditto.
11775
11776 2004-01-12 Andrew Cagney <cagney@redhat.com>
11777
11778 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11779 call. Never defined.
11780 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11781 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11782 (struct sparc_gregset, struct regcache): Ditto.
11783 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11784
11785 2004-01-12 Andrew Cagney <cagney@redhat.com>
11786
11787 * mi/ChangeLog: Delete file. Renamed to ...
11788 * mi/ChangeLog-1999-2003: New file.
11789 * tui/ChangeLog: Delete file. Renamed to ...
11790 * tui/ChangeLog-1998-2003: New file.
11791
11792 2004-01-11 Mark Kettenis <kettenis@gnu.org>
11793
11794 * sparc64nbsd-tdep.c: Include "regset.h".
11795 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11796 Remove variables.
11797 (fetch_core_registers): Remove function.
11798 (sparc64nbsd_core_fns): Remove variable.
11799 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11800 functions.
11801 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11802 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11803 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11804
11805 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11806 sparc_extract_struct_value_address.
11807 (sparc32_gdbarch_init): Set extract_struct_value_address.
11808 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11809 function.
11810 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11811 return_value_on_stack.
11812
11813 * NEWS: Mention that %cs and %ss have been added to the AMD64
11814 configurations
11815
11816 * frame.c: Update copyright year.
11817 (get_prev_frame): Improve comment.
11818
11819 * sparc64fbsd-tdep.c: Include "regset.h".
11820 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11821 Remove variables.
11822 (fetch_core_registers): Remove function.
11823 (sparc64fbsd_core_fns): Remove variable.
11824 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11825 functions.
11826 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11827 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11828 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
11829
11830 * sparcnbsd-tdep.c: Include "regset.h".
11831 (fetch_core_registers): Remove function.
11832 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11833 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11834 functions.
11835 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11836 TDEP->fpregset.
11837 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
11838
11839 * sparc-tdep.h (struct regset): Provide opaque declaration.
11840 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11841 fpregset and sizeof_fpregset members.
11842 * sparc-tdep.c (struct regset): Provide opaque declaration.
11843 (sparc_regset_from_core_section): New function.
11844 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11845 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11846 Set regset_from_core_section when appropriate.
11847
11848 2004-01-10 Mark Kettenis <kettenis@gnu.org>
11849
11850 * x86-64-tdep.c (amd64_non_pod_p): New function.
11851 (amd64_classify_aggregate): Return class memory for non-POD
11852 C++ structure types.
11853
11854 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11855 argument. Use it to reserve a register if necessary.
11856 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11857 amd64_push_arguments.
11858
11859 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11860
11861 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11862 register numbers in comments.
11863 * x86-64-tdep.h: Update copyright year.
11864 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11865 Adjust for addition of %cs and %ss.
11866 * amd64fbsd-nat.c: Update copyright year.
11867 (reg_offset): Add register offsets for %cs and %ss.
11868 * amd64fbsd-tdep.c: Update copyright year.
11869 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11870 (amd64fbsd_sc_reg_offset): Likewise.
11871 * x86-64-linux-nat.c: Update copyright year.
11872 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11873 and %ss.
11874 * amd64nbsd-nat.c: Update copyright year.
11875 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11876 * amd64nbsd-tdep.c: Update copyright year.
11877 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11878 * x86-64-linux-tdep.c: Update copyright year.
11879 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11880 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11881 * regformats/reg-x86-64.dat: Add %cs and %ss.
11882
11883 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11884 variables to prevent long lines. Update comments to reflect
11885 reality.
11886
11887 2004-01-09 David Carlton <carlton@kealia.com>
11888
11889 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11890 * dwarf2read.c (read_namespace): Pull out name-generating code
11891 into namespace_name. Rename previous_namespace to previous_prefix
11892 and processing_current_namespace to processing_current_prefix..
11893 (namespace_name): New function.
11894 (add_partial_symbol): Substitute uses of pdi->name with
11895 actual_name.
11896 * cp-support.h: Rename processing_current_namespace to
11897 processing_current_prefix.
11898 Update copyright year.
11899 * cp-namespace.c: Rename processing_current_namespace to
11900 processing_current_prefix.
11901 Update copyright year.
11902
11903 2004-01-09 Andrew Cagney <cagney@redhat.com>
11904
11905 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11906
11907 2004-01-09 Mark Kettenis <kettenis@gnu.org>
11908
11909 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11910 complaining.
11911 (process_one_symbol): Deal with N_PATCH stabs.
11912
11913 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11914
11915 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11916 ifdeffed code.
11917 Update copyright year.
11918
11919 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11920
11921 * config/pa/tm-hppa.h: Update extern declarations for
11922 hppa32_hpux_frame_saved_pc_in_sigtramp,
11923 hppa32_hpux_frame_base_before_sigtramp, and
11924 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11925
11926 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11927
11928 * config/pa/tm-hppah.h: Update copyright years.
11929
11930 2004-01-08 Andrew Cagney <cagney@redhat.com>
11931
11932 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11933 (mips_o32_reg_struct_has_addr): Delete function.
11934 (mips_gdbarch_init): Update.
11935 (mips_extract_struct_value_address): Delete function.
11936
11937 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11938
11939 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11940 reality.
11941
11942 2004-01-07 Andrew Cagney <cagney@redhat.com>
11943
11944 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11945 architecture's elf flags (when available).
11946
11947 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11948 FPU to the start, check the MIPS FPU when looking for an old
11949 architecture.
11950 (set_mipsfpu_single_command): Update the architecture.
11951 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11952
11953 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11954 (mips_mask_address_p): Add "tdep" parameter.
11955 (show_mask_address, mips_addr_bits_remove): Update.
11956 (mips_dump_tdep): Update.
11957 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11958 (MIPS_STACK_ARGSIZE): Delete macro.
11959 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11960 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11961 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11962 (mips_dump_tdep): Update.
11963 (MIPS_SAVED_REGSIZE): Delete macro.
11964 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11965 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11966 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11967 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11968 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11969 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11970 (mips_pop_frame, return_value_location): Update.
11971 (mips_n32n64_return_value, mips_dump_tdep): Update.
11972
11973 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11974 MIPS ABI.
11975
11976 * mips-tdep.c: Update copyright.
11977 (mips_gdbarch_init): Merge two code blocks handling the register
11978 name and number layout.
11979
11980 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11981
11982 * tracepoint.c (validate_actionline): Fix segv at EOF
11983
11984 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11985
11986 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11987 properly for static fields.
11988
11989 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11990 Jason Molenda <jmolenda@apple.com>
11991
11992 * disasm.c: Update copyright to include 2004.
11993 (do_mixed_source_and_assembly): For uiout asm list
11994 and tuple cleanups, initialize to null_cleanup instead of
11995 NULL and do so prior to loop. Only reset when we close off
11996 the tuple/list. Move check for whether to close off the
11997 asm tuple/list to after dump_insns call where it will be run
11998 on each loop iteration.
11999
12000 2004-01-05 Andrew Cagney <cagney@redhat.com>
12001
12002 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12003 should be a switch case and not a label.
12004 * mips-tdep.c (mips32_next_pc): Delete unused labels
12005 "greater_equal_branch" and "less_zero_branch".
12006 * jv-valprint.c (java_print_value_fields): Delete unused label
12007 "flush_it".
12008
12009 * target.c (unpush_target): Only close a target that is in the
12010 target stack.
12011
12012 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12013
12014 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12015 address from [sp + 64] instead of %o2.
12016
12017 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12018 fixes PR backtrace/1476.
12019
12020 2004-01-05 Andrew Cagney <cagney@redhat.com>
12021
12022 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12023 move to start of file.
12024 * i386-tdep.h (struct regcache): Add opaque declaration.
12025 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12026 declaration.
12027 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12028 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12029 * win32-nat.c (fake_create_process): Use ISO C style definition.
12030 * stabsread.c (define_symbol): Delete #ifndef
12031 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12032 stabs_argument_has_addr call, macro never defined.
12033
12034 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12035
12036 * op50-rom.c: Delete.
12037 * w89k-rom.c: Delete.
12038 * Makefile.in: Remove references.
12039
12040 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12041
12042 * x86-64-tdep.c: Update copyright year.
12043 (struct amd64_register_info): Rename from x86_64_register_info.
12044 (amd64_register_info): Rename from x86_64_register_info.
12045 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12046 (amd64_register_name): Rename from x86_64_register_name.
12047 (amd64_register_type): Rename from x86_64_register_type.
12048 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12049 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12050 (amd64_dwarf_reg_to_regnum): Rename from
12051 x86_64_dwarf_reg_to_regnum.
12052 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12053 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12054 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12055 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12056 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12057 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12058 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12059 (amd64_frame_cache): Rename from x86_64_frame_cache.
12060 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12061 (amd64_frame_prev_register): Rename from
12062 x86_64_frame_prev_register.
12063 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12064 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12065 (amd64_sigtramp_frame_cache): Rename from
12066 x86_64_sigtramp_frame_cache.
12067 (amd64_sigtramp_frame_prev_register): Rename from
12068 x86_64_sigtramp_frame_prev_register.
12069 (amd64_sigtramp_frame_unwind): Rename from
12070 x86_64_sigtramp_frame_unwind.
12071 (amd64_sigtramp_frame_sniffer): Rename from
12072 x86_64_sigtramp_frame_sniffer.
12073 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12074 (amd64_frame_base): Rename from x86_64_frame_base.
12075 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12076 (amd64_frame_align): Rename from x86_64_frame_align.
12077 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12078 (amd64_regset_from_core_section): Rename from
12079 x86_64_regset_from_core_section.
12080 (x86_64_init_abi): Update comments.
12081
12082 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12083
12084 * MAINTAINERS (write after approval): Add myself.
12085
12086 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12087
12088 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12089 `float' arguments.
12090
12091 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12092
12093 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12094 such that it mentions a specific version of GCC that exhibits this
12095 bug.
12096
12097 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12098
12099 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12100 structure that has a single `float' member, store it in %f1 in
12101 addition to %f0.
12102
12103 * sparc-sol2-nat.c: Add missing '\'.
12104
12105 * sparc-tdep.c (sparc32_return_value): New function.
12106 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12107 Remove functions.
12108 (sparc32_gdbarch_init): Set return_value, don't set
12109 extract_return_value, store_return_value, use_struct_convention
12110 and return_value_on_stack.
12111
12112 * sparc-sol2-nat.c: Add missing ')'.
12113
12114 2004-01-03 J. Brobecker <brobecker@gnat.com>
12115
12116 * infrun.c (handle_step_into_function): New function.
12117 (handle_inferior_event): Extract out some code into the new
12118 function above.
12119
12120 2004-01-03 J. Brobecker <brobecker@gnat.com>
12121
12122 * infrun.c (handle_inferior_event): Move the declaration of
12123 real_stop_pc inside the if blocks where it is used.
12124
12125 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12126
12127 * sparc64-tdep.c (sparc64_16_byte_align_p)
12128 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12129 Use check_typedef to get subtypes of structures and unions.
12130 (sparc64_store_return_value): Fix calculation of the appropriate
12131 offset into VALBUF when storing a structure or union.
12132 (sparc64_return_value): New function.
12133 (sparc64_use_struct_convention): Remove function.
12134 (sparc64_init_abi): Set return_value, don't set
12135 extract_return_value, store_return_value and
12136 use_struct_convention.
12137
12138 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12139
12140 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12141 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12142 gdb/config/alpha/xm-alphaosf.h,
12143 gdb/config/powerpc/tm-ppcle-eabi.h,
12144 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12145 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12146 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12147 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12148 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12149 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12150 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12151 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12152 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12153 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12154 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12155 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12156 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12157 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12158 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12159 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12160 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12161 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12162 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12163 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12164 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12165 Remove lines for .cvsignore files.
12166
12167 2004-01-03 J. Brobecker <brobecker@gnat.com>
12168
12169 * infrun.c: Back out the previous change.
12170
12171 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12172
12173 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12174 sparc-*-sunos4* to the list of REMOVED configurations.
12175
12176 * configure.tgt: Add back sparc-*-vxworks*.
12177 * remote-vxsparc.c: Remove all includes except for "defs.h",
12178 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12179 Include "sparc-tdep.h".
12180 (SPARC_R_G1): New define.
12181 (vxsparc_gregset): New variable.
12182 (ext_format_sparc): Remove extern declaration.
12183 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12184 sparc32_supply_fpregset.
12185 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12186 sparc_collect_rwindow and sparc32_collect_fpregset.
12187 * config/sparc/tm-vxworks.h: New file, based on recently removed
12188 tm-vxsparc.h.
12189 * config/sparc/vxworks.mt: New file, based on recently removed
12190 vxworks.mt.
12191
12192 2004-01-03 J. Brobecker <brobecker@gnat.com>
12193
12194 * infrun.c (handle_step_into_function): New function.
12195 (handle_inferior_event): Extract out some code into the new
12196 function above.
12197
12198 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12199
12200 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12201 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12202 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12203 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12204 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12205 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12206 (sparc_nat_h): New variable.
12207 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12208 (tm-sun4os4.h): Remove dependency.
12209 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12210 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12211 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12212 sparc-tdep.o): Update dependencies.
12213 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12214 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12215 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12216 dependencies.
12217 * configure.host: Remove existing sparc-*-lynxos*,
12218 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12219 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12220 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12221 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12222 triplets.
12223 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12224 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12225 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12226 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12227 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12228 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12229 sparc64-*-solaris2* and sparc64-*-* triplets.
12230 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12231 "symtab.h" and "objfiles.h".
12232 (BIAS): Remove define.
12233 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12234 (X_DISP19): Remove macros.
12235 (sparc_fetch_instruction): Remove function.
12236 (struct gdbarch_tdep): Remove definition.
12237 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12238 (sparc_breakpoint_from_pc): Remove function.
12239 (struct sparc64_frame_cache): Remove definition.
12240 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12241 sparc64_unwind_pc): Remove functions.
12242 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12243 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12244 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12245 (sparc64_frame_cache): Change return type to `struct
12246 sparc_frame_cache *'. Simply call sparc_frame_cache.
12247 (sparc64_frame_this_id, sparc64_frame_prev_register,
12248 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12249 instead of `struct sparc64_frame_cache.
12250 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12251 sparc_analyze_control_transfer, sparc_software_single_step,
12252 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12253 _initialize_sparc64_tdep): Remove functions.
12254 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12255 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12256 macros.
12257 (sparc64_supply_gregset, sparc64_collect_gregset,
12258 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12259 (sparc64_init_abi): New function.
12260 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12261 inclusion guard. Include "sparc-tdep.h".
12262 (BIAS): Define.
12263 (r_tstate_offset, r_fprs_offset): New defines.
12264 (enum sparc_regnum): Remove defenition.
12265 (enum sparc64_regnum): Reformat.
12266 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12267 (sparc64_init_abi, sparc64_supply_gregset,
12268 sparc64_collect_gregset, sparc64_supply_fpregset,
12269 sparc64_collect_fpregset): New prototypes.
12270 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12271 Add extern declarations.
12272 (sparc64_sol2_init_abi): New prototype.
12273 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12274 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12275 prototypes.
12276 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12277 "sparnbsd-nat.h".
12278 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12279 functions.
12280 (_initialize_sparc64fbsd_nat): Remove initialization of
12281 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12282 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12283 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12284 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12285 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12286 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12287 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12288 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12289 (sparc64fbsd_r_y_offset): Remove variables.
12290 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12291 Make static and const.
12292 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12293 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12294 functions.
12295 (sparc64fbsd_gregset): New variable.
12296 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12297 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12298 and sparc64_supply_fpregset.
12299 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12300 (sparc64fbsd_sigtramp_frame_this_id)
12301 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12302 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12303 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12304 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12305 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12306 * sparcnbsd-tdep.c: Update copyright year. Include
12307 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12308 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12309 "value.h" and "sparcnbsd-tdep.h".
12310 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12311 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12312 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12313 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12314 defines.
12315 (sparcnbsd_gregset): New variable.
12316 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12317 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12318 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12319 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12320 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12321 variables.
12322 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12323 (sparc32nbsd_sigcontext_frame_this_id)
12324 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12325 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12326 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12327 (sparcnbsd_get_longjmp_target_32,
12328 sparcnbsd_get_longjmp_target_64): Remove functions.
12329 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12330 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12331 sparcnbsd_init_elf): Remove.
12332 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12333 (sparcnbsd_elf_init_abi): New functions.
12334 (_initialize_sparcnbsd_tdep): New prototype.
12335 (_initialize_sparnbsd_tdep): Update.
12336 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12337 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12338 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12339 * config/sparc/linux.mh: Update comment.
12340 (XM_FILE, HOST_IPC): Remove variables.
12341 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12342 sparc-linux-nat.o.
12343 * config/sparc/linux.mt: Update comment.
12344 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12345 * config/sparc/nbsd.mt: Reformat.
12346 * config/sparc/nbsd64.mh: Update comment.
12347 (NATDEPFILES): Add sparc-nat.o.
12348 * config/sparc/nbsd64.mt: Update comment.
12349 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12350 (TM_FILE): Set to tm-nbsd.h.
12351 * config/sparc/nbsdelf.mh: Update comment.
12352 (NATDEPFILES): Add sparc-nat.o.
12353 (XM_FILE): Delete.
12354 * config/sparc/nbsdaout.mh: Update comment.
12355 (NATDEPFILES): Add sparc-nat.o
12356 (XM_FILE): Delete.
12357 * config/sparc/nm-linux.h: Update copyright year. Don't include
12358 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12359 inclusion.
12360 (KERNEL_U_SIZE): Remove define.
12361 (kernel_u_size): Remove prototype.
12362 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12363 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12364 "regcache.h".
12365 (CHILD_PREPARE_TO_STORE): Remove define.
12366 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12367 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12368 sparcnbsd-nat.c: Rewrite files.
12369 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12370 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12371 sparcnbsd-tdep.h: Remove files.
12372 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12373 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12374 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12375 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12376 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12377 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12378 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12379 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12380 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12381 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12382 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12383 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12384 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12385 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12386 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12387 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12388 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12389 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12390 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12391
12392 2004-01-02 Andrew Cagney <cagney@redhat.com>
12393
12394 From 2003-12-18 Kazuhiro Inaoka:
12395 * configure.host: Add m32r-linux target.
12396
12397 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12398
12399 * top.c (print_gdb_version): Update year to 2004.
12400
12401 2004-01-02 Mark Mitchell <mark@codesourcery.com>
12402
12403 * MAINTAINERS: Add myself to the write-after-approval category.
12404
12405 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
12406
12407 From Bernardo Innocenti <bernie@develer.com>:
12408 * configure.tgt: Add uClinux target.
12409
12410 2004-01-02 Andrew Cagney <cagney@redhat.com>
12411
12412 * utils.c (do_my_cleanups): Make static, add forward declaration.
12413 * defs.h (do_my_cleanups): Delete declaration.
12414
12415 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
12416
12417 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12418 bfd/ChangeLog-0203.
12419
12420 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12421
12422 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12423 in <machine/reg.h>.
12424 * configure, config.in: Regenerate.
12425
12426 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12427 tui/ChangeLog-1998-2003.
12428 \f
12429 Local Variables:
12430 mode: change-log
12431 left-margin: 8
12432 fill-column: 74
12433 version-control: never
12434 End:
This page took 0.261691 seconds and 5 git commands to generate.