2004-12-09 Randolph Chung <tausq@debian.org>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2004-12-09  Randolph Chung  <tausq@debian.org>
2
3         * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
4         text and data sections.
5         (pa64_current_sos): Also include the dld in the list of current shared
6         objects.
7         (pa64_solib_get_solib_by_pc): Update comments.
8         (pa64_solib_get_text_base): New function.
9         (pa64_solib_select): Set solib_get_text_base method.
10
11 2004-12-08  Daniel Jacobowitz  <dan@debian.org>
12
13         * linux-thread-db.c (BUILD_THREAD): Delete.
14         (thread_get_info_callback): Include LWP ID in thread ID.
15         (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
16         (lwp_from_thread): Use the LWP ID from the thread ID.
17
18 2004-12-07  Randolph Chung  <tausq@debian.org>
19
20         * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
21         register for both 32- and 64-bit targets.
22
23 2004-12-07  Randolph Chung  <tausq@debian.org>
24
25         * frame.c (get_prev_frame): Don't terminate unwinding at main if we
26         are unwinding through a dummy frame.
27
28 2004-12-07  Randolph Chung  <tausq@debian.org>
29
30         * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
31         * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
32         (hppa_hpux_init_abi) Set unwind_adjust_stub method.
33         * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
34         if defined.
35
36 2004-12-07  Randolph Chung  <tausq@debian.org>
37
38         * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if 
39         unwinding from a frame with pc == 0.
40         (hppa_stub_frame_this_id): Likewise.
41         (hppa_stub_frame_prev_register): Only provide real values if the frame
42         cache is not NULL.
43
44 2004-12-07  Randolph Chung  <tausq@debian.org>
45
46         * solib-som.c: New file.
47         * solib-som.h: New file.
48         * solib-pa64.c: New file.
49         * solib-pa64.h: New file.
50
51 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
52
53         * Makefile.in (inf-ttrace.o): Fix typo.
54
55 2004-12-07  Jim Blandy  <jimb@redhat.com>
56
57         * remote.c (remote_threads_info, remote_current_thread): Use
58         strtoul to parse thread ID numbers.
59
60 2004-12-07  Mark Kettenis  <kettenis@gnu.org>
61
62         * inf-ttrace.c: Include "gdbthread.h".
63         (inf_ttrace_num_lwps): New variable.
64         (inf_ttrace_num_lwps_in_syscall): Renamed from
65         inf_ttrace_num_threads_in_syscall.
66         (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
67         TTEVT_LWP_TERMINATE events.
68         (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
69         zero.
70         (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
71         (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
72         Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
73         events.
74         (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
75         default.  Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
76         TTEVT_LWP_TERMINATE events.
77         (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
78         (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
79         * Makefile.in (inf-ttrace.o): Update dependencies.
80
81         * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
82         prototypes.
83         * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
84         Make global.  Remove HP-UX specific code.  Use
85         frame_unwind_register_unsigned instead of
86         frame_unwind_register_signed.
87         (hppa_write_pc): Rename from hppa_target_write_pc.  Make global.
88         Remove HP-UX specific code.
89         (hppa_unwind_pc): Make global.  Remove HP-UX specific code.
90         (hppa_frame_prev_register_helper): Set "flags" register to zero
91         for all unwound frames.
92         (hppa_gdbarch_init): Adjust.
93         * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
94         (hppa_hpux_read_pc, hppa_hpux_write_pc)
95         (hppa_hpux_unwind_pc): New functions.
96         (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
97
98 2004-12-07  Andreas Schwab  <schwab@suse.de>
99
100         * main.c (long_options): Add entry for "-l".
101         (print_gdb_help): Add line for -l option.
102         * NEWS: Mention it.
103
104 2004-12-05  Randolph Chung  <tausq@debian.org>
105
106         * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
107         DEPRECATED_REGISTER_BYTE.
108
109 2004-12-05  Randolph Chung  <tausq@debian.org>
110
111         * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
112         records.
113
114 2004-12-05  Mark Kettenis  <kettenis@gnu.org>
115
116         * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
117         * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
118
119         * hppa-hpux-tdep.c: Update copyright notice and year.
120
121 2004-12-05  Richard Earnshaw  <rearnsha@arm.com>
122
123         * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
124         (get_field, put_field): Assert that the format is one we can handle.
125         Simplify logic accordingly.
126         (floatformat_normalize_byteorder): New function.
127         (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
128         to normalize and select modified byte order. Pass modified byte order
129         to get_field.
130         (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa): 
131         Likewise.
132         (convert_doublest_to_floatformat): Select an appropriate intermediate
133         byte order if necessary.  Always convert to the final format before
134         returning.
135
136 2004-12-04  Daniel Jacobowitz  <dan@debian.org>
137
138         PR tui/1703
139         * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
140         Suggested by Joshua Neuheisel.
141
142 2004-12-03  Randolph Chung  <tausq@debian.org>
143
144         * gdbarch.sh (instruction_nullified): Delete.
145         * gdbarch.c: Regenerate.
146         * gdbarch.h: Regenerate.
147         * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
148         nullified.
149         (hppa_unwind_pc): Likewise. 
150         (hppa_instruction_nullified): Delete.
151         (hppa_gdbarch_init): Don't set instruction_nullified method.
152         * infrun.c (infwait_states): Remove infwait_nullified_state.
153         (handle_inferior_event): Remove handling of infwait_nullified_state.
154         Remove handling of nullified instructions.
155
156 2004-12-03  Mark Kettenis  <kettenis@gnu.org>
157
158         * inf-ttrace.c: Include <sys/mman.h>.
159         (struct inf_ttrace_page): New.
160         (struct inf_ttrace_page_dict): New.
161         (inf_ttrace_num_threads_in_syscall)
162         (inf_ttrace_reenable_page_protections): New variables.
163         (inf_ttrace_enable_syscall_events)
164         (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
165         (inf_ttrace_add_page, inf_ttrace_insert_page)
166         (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
167         (inf_ttrace_enable_page_protections)
168         (inf_ttrace_disable_page_protections)
169         (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
170         (inf_ttrace_can_use_hw_breakpoint)
171         (inf_ttrace_region_size_ok_for_hw_watchpoint)
172         (inf_ttrace_stopped_by_watchpoint): New functions.
173         (inf_ttrace_him): Remove unsused varaible `tts'.
174         (inf_ttrace_create_inferior): Add assertionts.
175         (inf_ttrace_mourn_inferior): Clear page dictionary.
176         (inf_ttrace_attach): Set initial event mask.
177         (inf_ttrace_detach): Reset number of threads in system call.
178         (inf_ttrace_wait): Deal with system call events.
179         (inf_ttrace_target): Initialize "hardware" watchpoint-related
180         parts of the target vector.
181         (_initialize_inf_ttrace): New prototype and function.
182
183         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
184         type of `gp' variable.
185
186 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
187
188         * README: Remove config.if from directory listing.
189
190 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
191
192         * alpha-tdep.c (alpha_register_name): Add comment.
193         (alpha_cannot_fetch_register): Exclude registers numbers which
194         are no longer used from the list of registers that can be fetched.
195         (alpha_cannot_store_register): Exclude registers numbers which
196         are no longer used from the list of registers that can be stored.
197         * alpha-nat.c (fetch_osf_core_registers): Add missing value in
198         core_reg_mapping array.
199
200 2004-12-01  Joel Brobecker  <brobecker@gnat.com>
201
202         * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
203         the register value from the correct frame.
204
205 2004-11-30  Randolph Chung  <tausq@debian.org>
206
207         * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
208         (hppa_linux_in_dyncall): Check that we are inside the range of 
209         $$dyncall, not necessarily at the first insn.
210         (hppa_linux_in_solib_call_trampoline): Identify a trampoline 
211         even if the pc does not point to the first insn of the trampoline.
212
213 2004-11-30  Randolph Chung  <tausq@debian.org>
214
215         * breakpoint.c (break_at_finish_command): Delete.
216         (break_at_finish_command_1): Delete.
217         (break_at_finish_at_depth_command): Delete.
218         (break_at_finish_at_depth_command_1): Delete.
219         (tbreak_at_finish_command): Delete.
220         * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
221         and bx commands.
222
223 2004-11-30  Andrew Cagney  <cagney@gnu.org>
224
225         * config/nm-gnu.h: Delete file.
226         * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
227
228         * config/nm-sysv4.h: Delete file.
229         * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
230         * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
231         * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
232         * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
233         * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
234
235 2004-11-29  Andrew Cagney  <cagney@gnu.org>
236
237         * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
238         Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
239         as can-commit architecture developers.
240         
241 2004-11-29  Mark Kettenis  <kettenis@gnu.org>
242
243         * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
244         (sparc32_skip_prologue): Skip instructions that store arguments in
245         registers into their corresponding stack slots.
246
247         * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
248         tm-solib.h.
249         * config/m68k/obsd.mh (NAT_FILE): Likewise.
250
251         * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
252         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
253         * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
254         sparc32nbsd_elf_init_abi.  Remove duplicate code.
255
256         * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
257         * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
258         * config/sparc/nm-nbsd.h: Remove file.
259         * config/sparc/nm-nbsdaout.h: Remove file.
260
261         * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
262         (sparc_xfer_partial): New function.
263         (sparc_target): Save value of to_xfer_partial from ptrace vector.
264         Set to_xfer_partial.
265
266         * fork-child.c (fork_inferior): Fork instead of vfork if
267         PRE_TRACE_FUN is non-null.
268
269 2004-11-24  Fred Fish  <fnf@specifixinc.com>
270
271         * rs6000-tdep.c (skip_prologue): Use line table info to skip over
272         compiler generated function calls made as part of a prologue.
273
274 2004-11-23  Mark Kettenis  <kettenis@gnu.org>
275
276         * inf-ttrace.c: New file.
277         * inf-ttrace.h: New file.
278         * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
279         Include "inf-ttrace.h".
280         (ss_mpsfu_high): Define to ss_tlsp if necessary.
281         (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
282         ptid_get_pid instead of PIDGET.  Modify to handle both ttrace and
283         ptrace systems.
284         (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
285         instead of inf_ptrace_target.
286         * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
287         * Makefile.in (inf_ttrace_h): New variable.
288         (hppa-hpux-nat.o): Update dependency.
289         (inf-ttrace.o): New dependency.
290         (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
291
292 2004-11-23  Randolph Chung  <tausq@debian.org>
293
294         * arch-utils.c (generic_instruction_nullified): New.
295         * arch-utils.h (generic_instruction_nullified): New.
296         * gdbarch.sh (instruction_nullified): New method.
297         * gdbarch.c: Regenerate.
298         * gdbarch.h: Regenerate.
299         * infrun.c (INSTRUCTION_NULLIFIED): Delete.
300         (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
301         new gdbarch method.
302         * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
303         * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
304         static.  Rewrite to work directly off the passed regcache.
305         (hppa_gdbarch_init): Set instruction_nullified method.
306
307 2004-11-23  Joel Brobecker  <brobecker@gnat.com>
308
309         * sparc-tdep.c (sparc_is_unimp_insn): New function.
310         (sparc32_frame_cache): For functions where there is no debugging
311         information to help us determine whether it's a struct-return
312         function or not, fallback on checking whether the instruction
313         at the return address is an "unimp" instruction or not.
314
315 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
316
317         * MAINTAINERS: Add myself to write after approval section.
318
319         * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
320         hpux-thread.c to suppress children from running.
321         (hppa_hpux_child_can_run): New function.
322         (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
323         * hpux-thread.c: Include string.h and hppa-tdep.h.
324         (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
325         HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
326         (hpux_thread_store_registers): Replace deprecated_registers with
327         calls to regcache_raw_read.
328         * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
329
330 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
331
332         * sparc64fbsd-nat.c: Update copyright year.
333         (_initialize_sparc64fbsd_nat): Construct and add target vector.
334         * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
335         inftarg.o.
336
337 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
338
339         * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
340
341 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
342
343         * linux-nat.c (my_waitpid): New function.
344         (linux_test_for_tracefork): Make more robust and verbose.  Take
345         an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
346         (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
347         argument.  Update calls to linux_test_for_tracefork.
348         (linux_enable_event_reporting, child_follow_fork)
349         (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
350         (child_insert_exec_catchpoint): Update calls to
351         linux_supports_tracefork and linux_supports_tracevforkdone.
352
353 2004-11-21  Daniel Jacobowitz  <dan@debian.org>
354
355         * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
356         (value_subscripted_rvalue): Likewise.
357         * valops.c (search_struct_field, value_slice): Likewise.
358
359 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
360
361         * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
362         Reorder includes a bit.  Fix comment.
363         * Makefile.in (inf-ptrace.o): Update dependencies.
364
365 2004-11-21  Andreas Schwab  <schwab@suse.de>
366
367         * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
368         (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
369         svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
370         to glibc_skip_solib_resolver.
371         * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o.  Remove
372         solib-legacy.o.
373         * Makefile.in (m68klinux-tdep.o): Update dependencies.
374
375 2004-11-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
376
377         * infttrace.h (ttrace_write_reg_64): Add prototype.
378         * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
379         expression.  
380         (store_inferior_registers): Correct formatting.  Replace uses of
381         deprecated_registers with calls to regcache_raw_read,
382         regcache_raw_write_part and regcache_raw_read_part.
383
384 2004-11-21  Mark Kettenis  <kettenis@gnu.org>
385
386         * config/pa/hppahpux.mh: Remove file.
387         * config/pa/hpux1020.mh: Remove file.
388
389 2004-11-20  Andreas Schwab  <schwab@suse.de>
390
391         * configure.host: Set host floatformat for m68k.
392
393 2004-11-20  Eli Zaretskii  <eliz@gnu.org>
394
395         * config/djgpp/fnchange.lst: Resolve file-name clash between
396         hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
397
398 2004-11-20  Mark Kettenis  <kettenis@gnu.org>
399
400         * hppa-hpux-nat.c: New file.
401         * config/pa/hpux.mh (NATDEPFILES): New file.
402         * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
403         (hppa-hpux-nat.o): New dependency.
404         * configure.host: Remove hppa*-*-hpux10.20.
405         (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
406
407         * inf-ptrace.c: Fix coding style.
408
409         * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
410         * infptrace.c (call_ptrace): Simply call ptrace with four
411         arguments.
412
413         * dbxread.c (process_one_symbol): Fix a few coding standard
414         issues.  Improve code formatting.
415
416         * dbxread.c: Include "gdb_string.h".
417         (record_minimal_symbol, read_ofile_symtab): Replace
418         DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
419         * Makefile.in (dbxread.o): Update dependencies.
420
421         * dwarf2-frame.c (read_encoded_value): Correctly calculate number
422         of bytes read for aligned LEB128 encodings.
423
424 2004-11-19  Mark Kettenis  <kettenis@gnu.org>
425
426         * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
427         parse_and_eval_address to u_long before converting it to a pointer
428         type.
429         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
430         ps_strings from int to u_long.
431         * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
432         u_long instead of CORE_ADDR.
433
434 2004-11-18  Mark Kettenis  <kettenis@gnu.org>
435
436         * dbxread.c (process_one_symbol): Do not adjust address of first
437         N_SLINE stab for a function for code generated by non-GCC
438         compilers.
439
440 2004-11-18  Kevin Buettner  <kevinb@redhat.com>
441
442         * solib-null.c: New file.
443
444 2004-11-17  Andrew Cagney  <cagney@gnu.org>
445
446         * MAINTAINERS: Drop MIPS and remote.
447
448 2004-11-15  Andrew Cagney  <cagney@gnu.org>
449
450         * findvar.c (value_of_register): Set the frame ID.
451         * value.c (value_primitive_field): Copy the frame ID.
452         * valops.c (value_assign): Simplify lval_register case, there's
453         always a frame.
454
455 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
456
457         * Makefile.in (mips-linux-tdep.o): Update dependencies.
458         * mips-linux-tdep.c: Include "regcache.h".
459         (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
460
461 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
462
463         * Makefile.in (linux-thread-db.o): Fix typo in last change.
464
465 2004-11-14  Daniel Jacobowitz  <dan@debian.org>
466
467         * linux-thread-db.c: New file, renamed from thread-db.c.
468         * thread-db.c: Remove.
469         * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
470         * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
471         to linux-thread-db.o.
472         * config/arm/linux.mh (NATDEPFILES): Likewise.
473         * config/i386/linux.mh (NATDEPFILES): Likewise.
474         * config/i386/linux64.mh (NATDEPFILES): Likewise.
475         * config/ia64/linux.mh (NATDEPFILES): Likewise.
476         * config/m32r/linux.mh (NATDEPFILES): Likewise.
477         * config/m68k/linux.mh (NATDEPFILES): Likewise.
478         * config/mips/linux.mh (NATDEPFILES): Likewise.
479         * config/pa/linux.mh (NATDEPFILES): Likewise.
480         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
481         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
482         * config/s390/s390.mh (NATDEPFILES): Likewise.
483         * config/sparc/linux.mh (NATDEPFILES): Likewise.
484         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
485
486 2004-11-13  Andrew Cagney  <cagney@gnu.org>
487
488         * config/i386/i386lynx.mh: Delete file.
489         * config/i386/i386lynx.mt: Delete file.
490         * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
491         * i386ly-tdep.c: Delete.
492
493         * config/tm-lynx.h: Delete, inline contents ...
494         * config/rs6000/tm-rs6000ly.h: ... here.
495
496         * config/tm-sysv4.h: Delete file, inlining contents.
497         * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
498         * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
499         * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
500
501         * regcache.h (deprecated_register_valid): Delete.
502         (deprecated_registers): Delete.
503         * regcache.c (deprecated_register_valid): Delete.
504         (deprecated_registers): Delete.
505         (deprecated_read_register_byte, _initialize_regcache)
506         (deprecated_write_register_bytes, build_regcache): Update.
507         * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
508         remote-sds.o.
509         * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
510         * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
511
512         * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
513         v850-*-* under removed.
514         * configure.host: Delete ns32k-*-netbsd*.
515         * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
516         ns32k-*-netbsd*, and v850*-*-*.
517         * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
518         "Deleted"
519         * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
520         * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
521         * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
522         * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
523         * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
524         * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
525         * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
526         * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
527         * v850-tdep.c: Delete.
528         
529 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
530
531         * irix5-nat.c (fetch_core_registers): Replace use of
532         deprecated_registers by equivalent code.
533
534 2004-11-13  Joel Brobecker  <brobecker@gnat.com>
535
536         * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
537         with equivalent code.
538         (fill_fpregset): Likewise.
539
540 2004-11-13  Andrew Cagney  <cagney@gnu.org>
541
542         * MAINTAINERS: Do not list "Deleted" architectures.
543
544         * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
545         m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
546         sparc-*-vxworks*.
547         * NEWS: Mention that vxworks was deleted.
548         * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
549         * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
550         * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
551         * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
552         * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
553         * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
554         * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
555         * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
556         * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
557         * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
558         * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
559         * remote-vxmips.c, remote-vx.c: Delete.
560         * remote-vx68.c: Delete.
561         * config/m68k/tm-os68k.h: Remove reference to VxWorks.
562         * config/m68k/os68k.mt, ada-lang.h: Ditto.
563         * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
564         (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
565
566 2004-11-13  Eli Zaretskii  <eliz@gnu.org>
567
568         * config/i386/xm-go32.h: Don't include fopen-bin.h.
569         Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
570
571         * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
572         branch that doesn't define CRLF_SOURCE_FILES; always use
573         binary-mode open.
574         (print_source_lines_base, forward_search_command)
575         (reverse_search_command): Enable the code that accepts DOS-style
576         CRLF line endings on all platforms (this removes the need for
577         CRLF_SOURCE_FILES).
578
579         * defs.h: Fix wording of the comment before FOPEN_RB.
580         (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
581
582         * config/djgpp/fnchange.lst: Group renames for opcode directory
583         together.
584
585         * config/djgpp/djconfig.sh: Replace file names that don't exist
586         anymore with existing files, for checking the unpacked
587         distribution.
588
589         * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
590         Export pre-cooked values in configure-* targets that begin with
591         "@test -f stage_last".
592
593 2004-11-12  Andrew Cagney  <cagney@gnu.org>
594
595         * defs.h (enum lval_type): Delete lval_reg_frame_relative.
596         * value.h (struct value): Update comment.
597         * valops.c (value_assign): Fold lval_reg_fame_relative into
598         lval_register.
599         * findvar.c (value_from_register, locate_var_value): Ditto.
600
601 2004-11-12  Randolph Chung  <tausq@debian.org>
602
603         * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
604         * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
605         (write_exp_msymbol): Remove conditional check for symbols starting 
606         with $.  Update comments.
607
608 2004-11-12  Randolph Chung  <tausq@debian.org>
609
610         * pa64solib.c (pa64_solib_thread_start_addr): Rename from 
611         so_lib_thread_start_addr.
612         * pa64solib.h (so_list): Forward declare.
613         (pa64_solib_thread_start_addr): Prototype.
614         * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
615         (no_shared_libraries): Remove.
616         (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
617         * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
618         * hpread.c (hpread_process_one_debug_symbol): Use either the som or
619         the elf solib handler to find the start address.
620
621         * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support 
622         files to the target makefile.
623         * config/pa/hpux1020.mh (NATDEPFILES):  Likewise.
624         * config/pa/hpux11.mh (NATDEPFILES): Likewise.
625         * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
626
627         * config/pa/hppa64.mt (TDEPFILES): Put target-specific support 
628         files for symbol reading and shared library handling here.
629         * config/pa/hppahpux.mt (TDEPFILES): Likewise.  
630         (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target 
631         without bringing in 64-bit support.
632
633 2004-11-12  Andrew Cagney  <cagney@gnu.org>
634
635         * sparc-tdep.c: Replace VALUE_TYPE with value_type.
636         * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
637         * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
638         * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
639         * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
640         * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
641         * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
642
643         Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
644         * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
645         (VALUE_REGNUM): Define.
646         (struct value): Delete location.regnum, rename "regno" to
647         "regnum".
648         * value.c, valops.c, valarith.c, findvar.c: Update.
649
650         * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
651         (VALUE_BITPOS): Delete.
652         (value_type, value_offset, value_bitsize, value_bitpos): Declare.
653         * value.c (value_type, value_offset, value_bitpos)
654         (value_bitsize): New functions.  Update references.
655         * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
656         * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
657         * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
658         * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
659         * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
660         * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
661         * valops.c, eval.c, findvar.c, breakpoint.c: Update.
662         * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
663         * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
664
665 2004-11-12  Andrew Cagney  <cagney@gnu.org>
666
667         * cris-tdep.c (cris_register_offset): Delete, never called.
668         (cris_spec_reg_applicable): Delete cris_ver_sim.
669         * MAINTAINERS: List d10v as OBSOLETE.
670         * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
671         FOPEN_WB et.al., defined by "fopen-bin.h".
672
673 2004-11-12  Randolph Chung  <tausq@debian.org>
674
675         * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
676         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
677         * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
678         * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
679
680 2004-11-12  Mark Kettenis  <kettenis@jive.nl>
681
682         * tui/tui-io.c: Don't include "terminal.h".
683         * Makefile.in (tui-io.o): Update dependencies.
684
685 2004-11-12  Kei Sakamoto  <sakamoto.kei@renesas.com>
686
687         * Makefile.in (m32r-linux-tdep.o): Update dependencies.
688         * m32r-linux-tdep.c (m32r_linux_init_abi): Call
689         set_gdbarch_regset_from_core_section for core file support.
690         (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
691         New functions.
692
693 2004-11-11  Randolph Chung  <tausq@debian.org>
694
695         * hppa-tdep.c (skip_prologue_hard_way): Make static, add
696         stop_after_branch parameter and use it to determine if we should look
697         at the delay slot of the first branch insn to find prologue insns.
698         (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
699         (hppa_frame_cache): Likewise.
700
701 2004-11-11  Randolph Chung  <tausq@debian.org>
702
703         * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
704         register so that it can be unwound from anywhere in the prologue.
705
706 2004-11-10  msnyder  <msnyder@redhat.com>
707
708         * rs6000-tdep.c (skip_prologue): After saving lr_offset, 
709         must invalidate lr_reg (so we don't try to save it again).  
710         Ditto for cr_offset and cr_reg.
711
712 2004-11-05  Jon Beniston <jon@beniston.com>
713
714         Committed by Andrew Cagney.
715         * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK 
716         when an unexpected packet is received, as the target stubs 
717         continually retransmit the same packet until ACKed.
718         
719 2004-11-10  Randolph Chung  <tausq@debian.org>
720
721         * frame.c (get_prev_frame): Use get_frame_type to retrieve the 
722         frame's type.
723
724 2004-11-10  Randolph Chung  <tausq@debian.org>
725
726         * blockframe.c (inside_entry_func): Move to .....
727         * frame.c (inside_entry_func): ... here, and make static.
728         (backtrace_past_entry): New flag.
729         (get_prev_frame): Stop backtrace at the entry function if enabled
730         by flag.  Update comments.
731         (_initialize_frame): Add command to set backtrace_past_entry flag.
732         * defs.h (inside_entry_func): Remove prototype.
733
734 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
735
736         * dwarf2read.c: Fix formatting.
737
738 2004-11-10  Andrew Cagney  <cagney@gnu.org>
739
740         * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
741         (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
742         macros with function declarations.
743         * value.c (coerce_ref, coerce_array, coerce_number)
744         (coerce_enum): New functions.
745         (value_as_long, value_as_address): Update.
746         * ada-lang.c (ada_coerce_ref, ada_value_binop) 
747         (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
748         * jv-lang.c (evaluate_subexp_java): Update.
749         * valarith.c (value_less, value_neg, value_complement)
750         (value_binop, value_add, value_subscript, value_x_binop) 
751         (value_logical_not, value_sub): Update.
752         * valops.c (check_field, value_struct_elt, value_ind)
753         (value_find_oload_method_list, value_cast, value_assign): Update.
754         * eval.c (evaluate_subexp_standard): Update.
755
756 2004-11-10  Mark Kettenis  <kettenis@gnu.org>
757
758         * mips-tdep.c (mips32_relative_offset): Change return type to
759         LONGEST, change argument type to ULONGEST.  Fix sign-extension.
760
761 2004-11-10  Randolph Chung  <tausq@debian.org>
762
763         * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
764         (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
765         (hppa_fetch_pointer_argument): Likewise.
766         (hppa_frame_cache): Use safe_frame_unwind_memory instead of 
767         deprecated_read_memory_nobpt.
768         (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
769         add_set_cmd sequence with add_setshow_boolean_cmd.
770
771 2004-11-09  Andrew Cagney  <cagney@gnu.org>
772
773         GDB 6.3 released from GDB 6.3 branch.
774
775 2004-11-09  Andrew Cagney  <cagney@gnu.org>
776
777         * values.c: Rename to ...
778         * value.c: ..., new file.
779         * Makefile.in: Update.
780
781 2004-11-09  Daniel Jacobowitz  <dan@debian.org>
782
783         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
784         size.
785
786 2004-11-09  Andrew Cagney  <cagney@gnu.org>
787
788         * TODO: Delete.
789
790         * value.h (struct value): Delete field bfd_section.
791         (VALUE_BFD_SECTION): Delete macro.
792         (COERCE_REF): Update.
793         (value_at, value_at_lazy): Delete asection parameter.
794         * printcmd.c (print_formatted, x_command): Update.
795         (do_examine): Delete asection parameter.
796         (next_section): Delete variable.
797         * valops.c (value_cast, value_at, value_at_lazy)
798         (value_coerce_function, value_addr, value_ind, value_string) 
799         (find_rt_vbase_offset, value_full_object): Update.
800         * hpacc-abi.c (hpacc_virtual_fn_field)
801         (hpacc_value_rtti_type): Update.
802         * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field) 
803         (gnuv3_baseclass_offset): Update.
804         * f-valprint.c (f_val_print): Update.
805         * c-valprint.c (c_val_print): Update.
806         * p-valprint.c (pascal_val_print): Update.
807         * jv-valprint.c (java_value_print): Update.
808         * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
809         * ada-lang.c (ada_value_primitive_packed_val)
810         (ada_evaluate_subexp): Update.
811         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
812         * expprint.c (print_subexp_standard): Update.
813         * infcall.c (call_function_by_hand): Update.
814         * valarith.c (value_add): Update.
815         * eval.c (evaluate_subexp_standard): Update.
816         * values.c (allocate_value, value_copy, value_static_field): Update.
817         * findvar.c (read_var_value, locate_var_value): Update.
818         
819 2004-11-09  Andrew Cagney  <cagney@gnu.org>
820
821         * i386-linux-tdep.c: Include "dwarf2-frame.h".
822         * Makefile.in: Update all dependencies.
823
824 2004-11-08  Andrew Cagney  <cagney@gnu.org>
825
826         * sentinel-frame.c (sentinel_frame_prev_pc): New function.
827         (sentinel_frame_unwinder): Add the prev_pc method.
828         * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
829         available.  Do not handle the sentinel-frame case.
830         * frame-unwind.h (frame_prev_register_ftype): Define.
831         (struct frame_unwind): Add prev_pc;
832
833 2004-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
834
835         * configure.in: Check for ncurses/term.h.
836         * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
837         * utils.c: Include gdb_curses.h instead of curses.h and term.h.
838         * tui/tui.c: Don't include term.h.
839         * configure, config.in: Rebuilt.
840
841 2004-11-08  Mark Kettenis  <kettenis@gnu.org>
842
843         * m68kbsd-nat.c: Include "inf-ptrace.h".
844         (_initialize_m68kbsd_nat): Fix pasto.
845         * Makefile.in (m68kbsd-nat.o): Update dependencies.
846
847 2004-11-08  Randolph Chung  <tausq@debian.org>
848
849         * infrun.c (debug_infrun): New variable.
850         (resume, proceed, wait_for_inferior): Annotate with debug messages.
851         (handle_inferior_event, keep_going): Likewise.
852         (_initialize_infrun): Register "set debug infrun" command.
853
854 2004-11-08  Andreas Schwab  <schwab@suse.de>
855
856         * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
857         PTRACE_EVENT_VFORKDONE.
858         (child_follow_fork): Adjust.
859
860 2004-11-08  Andrew Cagney  <cagney@gnu.org>
861
862         * README: Refer to 6.3, not 6.2, update directory listing droppng
863         references to intl/ and mmalloc/.
864         * PROBLEMS: Refer to 6.3 not 6.2.
865
866         * PROBLEMS: Delete no-longer applicable problems.
867
868 2004-11-07  Andrew Cagney  <cagney@redhat.com>
869             Daniel Jacobowitz  <dan@debian.org>
870             Roland McGrath  <roland@redhat.com>
871
872         * Makefile.in (symfile-mem.o): Update dependencies.
873         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
874         (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
875         * inf-ptrace.c (inf_ptrace_attach): Call
876         observer_notify_inferior_created.
877         * inftarg.c (child_attach): Likewise.
878         * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
879         (symbol_file_add_from_memory): Take NAME argument.  Use it for
880         the new BFD's filename.
881         (add_symbol_file_from_memory_command): Update call to
882         symbol_file_add_from_memory.
883         (struct symbol_file_add_from_memory_args, add_vsyscall_page)
884         (symbol_file_add_from_memory_wrapper): New.
885         (_initialize_symfile_mem): Register add_vsyscall_page as an
886         inferior_created observer.
887
888 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
889
890         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
891         fetch_inferior_registers.  Make static.
892         (m68kbsd_store_inferior_registers): Rename from
893         store_inferior_registers.  Make static.
894         (_initialize_m68kbsd_nat): Construct and add target vector.
895         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
896         inftarg.o.  Add inf-ptrace.o.
897         (NAT_FILE): Set to tm-solib.h.
898         (LOADLIBES): New variable.
899         * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
900         inftarg.o.  Add inf-ptrace.o.
901         (NAT_FILE): Delete variable.
902         * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
903         inftarg.o.  Add inf-ptrace.o.
904         (NAT_FILE): Set to tm-solib.h.
905         * config/m68k/nm-nbsdaout.h: Remove file.
906
907 2004-11-07  Daniel Jacobowitz  <dan@debian.org>
908
909         * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
910         (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
911         (dwarf2_signal_frame_unwind): New.
912         (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
913         * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
914
915 2004-11-07  Mark Kettenis  <kettenis@gnu.org>
916
917         * Makefile.in (mips64obsd-tdep.o): Fix typo.
918
919         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
920         from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets.  Trim sizes
921         to only include the structure members we actually need.
922         (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
923         mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets.  Trim sizes to
924         only include the structure members we actually need.
925         (mipsnbsd_init_abi): Update.
926
927         * mips64obsd-nat.c: Include "mips-tdep.h".
928         (MIPS64OBSD_NUM_REGS): Remove define.
929         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
930         (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
931         floating-point registers correctly.
932         * Makefile.in (mips64obsd-nat.o): Update dependencies.
933
934         * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
935         "gdb_assert.h".
936         (mips64obsd_sigframe_init): New function.
937         (mips64obsd_sigframe): New variable.
938         (mips64obsd_init_abi): Add comments.  Prepend mips64obsd_sigrame
939         unwinder.
940         * Makefile.in (mips64obsd-tdep.o): Update dependencies.
941
942 2004-11-06  Joel Brobecker  <brobecker@gnat.com>
943
944         * alpha-mdebug-tdep.c: #include mdebugread.h.
945         Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
946         * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
947
948 2004-11-05  Andrew Cagney  <cagney@gnu.org>
949
950         * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
951         CFI and the init_reg method leave the register unspecified.
952         Include the register name in the "Incomplete CFI data" complaint.
953         Supress leading zeros in the address.
954
955 2004-11-05  Mark Kettenis  <kettenis@gnu.org>
956
957         * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
958         skipping a personality routine in a CIE augmentation.
959
960 2004-11-05  Jeff Johnston  <jjohnstn@redhat.com>
961
962         * defs.h (fatal, vfatal): New function prototypes.
963         * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
964         via catch_errors.
965         (backtrace_command): Change to call backtrace_command_stub via
966         catch_errors instead of calling backtrace_command_1 directly.
967         (backtrace_full_command): Ditto.
968         * utils.c (error_stream_1): New static function.
969         (verror): Change to call error_stream_1 instead of error_stream.
970         (error_stream): Call error_stream_1 with RETURN_ERROR argument.
971         (vfatal, fatal): New functions.
972
973 2004-11-05  Andrew Cagney  <cagney@gnu.org>
974
975         * stack.c (parse_frame_specification_1): Clear selected_frame_p
976         when not using selected frame.
977
978 2004-11-05  Mark Kettenis  <kettenis@jive.nl>
979
980         * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
981         personality routine in a CIE augmentation.
982
983 2004-11-05  Felix Lee  <felix+log1@specifixinc.com>
984
985         * stack.c (set_current_sal_from_frame): New function.
986         (print_args_stub): Use it.
987         (print_frame_info): Don't set sal here.
988
989 2004-11-04  Mark Kettenis  <kettenis@gnu.org>
990
991         * dwarf2-frame.c (read_encoded_value): Change type of third
992         argument to `unsigned char *'.  Add support for LEB128 encodings.
993
994 2004-11-04  Jim Blandy  <jimb@redhat.com>
995
996         * gdbtypes.c (make_qualified_type): Doc fix.  Add assertion to
997         prevent cross-objfile references.
998         (make_cv_type): Doc fix.  Don't create cross-objfile references,
999         even for stub types.
1000         (replace_type): Add assertion to prevent cross-objfile references.
1001         (check_typedef): Never resolve a stub type by copying over a type
1002         from another file.
1003
1004 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1005
1006         * Makefile.in (m32r-tdep.o): Update dependencies.
1007         * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1008         ABI-specific overrides.
1009
1010 2004-11-04  Kei Sakamoto  <sakamoto.kei@denesas.com>
1011
1012         * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1013         unnecessary parallel execution bit.
1014         (m32r_memory_remove_breakpoint): Ditto.
1015         (m32r_breakpoint_from_pc): Update.
1016
1017 2004-11-03  Randolph Chung  <tausq@debian.org>
1018
1019         * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1020         frame_func_unwind to locate the unwind entry.
1021         (hppa_frame_this_id): Likewise.
1022
1023 2004-11-03  Andrew Cagney  <cagney@gnu.org>
1024
1025         * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1026         packet, obsolete configurations, end-of-life deprecated_registers.
1027
1028 2004-11-02  Mark Kettenis  <kettenis@gnu.org>
1029
1030         * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1031         encodings as well as unsigned encodings.
1032
1033 2004-11-02  Andrew Cagney  <cagney@gnu.org>
1034
1035         * value.h (COERCE_VARYING_ARRAY): Delete.
1036         * valops.c (value_cast, value_slice): Delete use.
1037         * valarith.c (value_subscript, value_concat): Delete use.
1038
1039 2004-11-02  Paul Hilfinger  <hilfingr@nile.gnat.com>
1040
1041         * NEWS: GDB understands GNAT Ada.
1042
1043 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1044
1045         * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1046         (amd64-sol2-tdep.o): Add dependencies.
1047         * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1048         config/i386/sol2-64.mt: New files.
1049         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1050         amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1051         (supply_gregset): Correct order of arguments to
1052         amd64_supply_native_gregset.
1053         (fill_gregset): Correct order of arguments to
1054         amd64_collect_native_gregset.
1055         * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1056         * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1057         * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1058         for definition of NEW_PROC_API.
1059         * configure: Regenerate.
1060
1061 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
1062
1063         * MAINTAINERS (Write After Approval): Add myself.
1064
1065 2004-11-01  Andrew Cagney  <cagney@gnu.org>
1066
1067         * configure.tgt: Mark d10v-*-* as obsolete.
1068         * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1069
1070 2004-11-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
1071
1072         * values.c (modify_field): Correct handling of bit-fields that
1073         don't fit in 32 bits.  Use unsigned operations throughout and 
1074         simplify the code a bit.  Document preconditions.
1075
1076 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1077
1078         * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1079         * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1080         (in_plt_section): Delete.
1081
1082         * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1083         (mips_gdbarch_init): Do not set same.
1084
1085         * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1086         * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1087
1088         * gdbarch.sh (in_solib_call_trampoline): Delete.
1089         * gdbarch.h, gdbarch.c: Re-generate.
1090
1091         * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1092         IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1093         * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1094         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1095         * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1096
1097 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1098
1099         * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1100         (mipsnbsd_fetch_inferior_registers): Rename from
1101         fetch_inferior_registers.  Make static.
1102         (mipsnbsd_store_inferior_registers): Rename from
1103         store_inferior_registers.  Make static.
1104         (_initialize_mipsnbsd_nat): New function and prototype.
1105         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1106         * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1107         (NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
1108         inf-ptrace.o.
1109
1110 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1111
1112         * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1113         (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1114         delete corresponding unused function.
1115         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1116         in_solib_call_trampoline.
1117         * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1118         * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1119         * config/mips/tm-nbsd.h: Ditto.
1120         * config/arm/tm-linux.h: Ditto.
1121         * config/mips/tm-linux.h: Ditto.
1122
1123         * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1124         (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1125         in_solib_call_trampoline, delete corresponding unused function.
1126         * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline) 
1127         (vaxnbsd_aout_init_abi): Ditto.
1128         * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline) 
1129         (sparc32nbsd_aout_init_abi): Ditto.
1130         * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline) 
1131         (ppc_linux_init_abi): Ditto.
1132         * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline) 
1133         (ns32knbsd_init_abi_aout): Ditto.
1134         * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1135         * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1136         * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline) 
1137         (m68kbsd_aout_init_abi): Ditto.
1138         * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline) 
1139         (i386_cygwin_init_abi): Ditto.
1140         * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline) 
1141         (i386bsd_init_abi): Ditto.
1142
1143         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1144         in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1145         isn't used by this architecture.
1146         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1147         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1148         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1149         * s390-tdep.c (s390_gdbarch_init): Ditto.
1150         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1151         * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1152         * i386-tdep.c (i386_svr4_init_abi): Ditto.
1153         * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1154         * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1155         * amd64-tdep.c (amd64_init_abi): Ditto.
1156
1157         * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1158         in_solib_call_trampoline to its default value of
1159         generic_in_solib_call_trampoline.
1160         * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1161         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1162         * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1163         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1164         * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1165         * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1166
1167         * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1168
1169         * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1170
1171         * config/mips/tm-mips.h: Delete file.
1172         * remote-mips.c: Delete tm-mips.h from comment.
1173         * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1174         * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1175         * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1176         * config/mips/tm-linux.h: Don't include tm-mips.h.
1177         * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1178         * config/mips/irix5.mt (DEPRECATED_TM_FILE): 
1179         * config/mips/tm-wince.h: Don't include.
1180
1181         * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1182         * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1183         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1184         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1185
1186         * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1187         * mdebugread.c (ecoff_relocate_efi): Delete function.
1188         * objfiles.c (objfile_relocate): Delete #ifdef
1189         MDEBUG_EFI_SYMBOL_NAME code.
1190
1191 2004-10-31  Orjan Friberg <organ.friberg@axis.com>
1192             Andrew Cagney  <cagney@gnu.org>
1193
1194         * gdbarch.sh (single_step_through_delay): Add.
1195         * gdbarch.h, gdbarch.c: Re-generate.
1196         * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1197         (mips_step_skips_delay): Delete.
1198         * mips-tdep.c (mips_single_step_through_delay): Replace
1199         mips_step_skips_delay.
1200         (mips_gdbarch_init): Set single_step_through_delay.
1201         (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1202         
1203 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1204
1205         * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1206         from TRAMP_FRAME frame type.
1207
1208 2004-10-31  Andrew Cagney  <cagney@gnu.org>
1209
1210         * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1211
1212         * mips-tdep.c (mips_ignore_helper): Delete.
1213         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1214         * infrun.c (handle_inferior_event): Delete #ifdef
1215         DEPRECATED_IGNORE_HELPER_CALL code.
1216
1217         * config/mips/tm-mips.h (RA_REGNUM): Delete.
1218
1219 2004-10-31  Mark Kettenis  <kettenis@gnu.org>
1220
1221         * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1222         (fill_fpregset): Do not compile for 64-bit systems.
1223         * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1224         * Makefile.in (i386-sol2-nat.o): Update dependencies.
1225         * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1226
1227 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1228
1229         * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1230         (struct mdebug_extra_func_info): Define.
1231         * config/alpha/tm-alpha.h: Delete same.
1232         * config/mips/tm-mips.h: Delete same.
1233         * mdebugread.c: Delete same.
1234         * Makefile.in: Update dependencies.
1235         * mips-mdebug-tdep.c: Include "mdebugread.h".
1236
1237         * objfiles.c: Include "mdebugread.h".
1238         * mdebugread.c: Include "mdebugread.h".
1239         (ecoff_relocate_cfi): Delete.
1240         * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1241         * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1242         * mdebugread.h (ecoff_relocate_efi): New file.
1243         * Makefile.in: Update dependencies.
1244         
1245         * mips-tdep.c (struct frame_extra_info): Delete.
1246         (temp_proc_desc): Delete.
1247
1248         * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1249         MIPS_EFI_SYMBOL_NAME.
1250         (mips_extra_func_info_t, mips_extra_func_info): Delete.
1251         (struct mdebug_extra_func_info): Replace struct
1252         alpha_extra_func_info and alpha_extra_func_info_t.
1253         * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1254         MIPS_EFI_SYMBOL_NAME.
1255         (struct mdebug_extra_func_info): Replace struct
1256         alpha_extra_func_info and alpha_extra_func_info_t.
1257         * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1258         * mdebugread.c, alpha-mdebug-tdep.c: 
1259
1260         Suggested by Mark Kettenis.
1261         * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1262         fields frame_adjust and high_addr.
1263         * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1264         (non_heuristic_proc_desc): Delete references.
1265
1266         * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1267         * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1268         * mips-tdep.c: Update.
1269
1270         * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1271         (MIPS_LAST_EMBED_REGNUM): Add.
1272         * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1273         (LAST_EMBED_REGNUM): Delete.
1274         * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1275
1276         * config/mips/tm-mips.h (PS_REGNUM): Delete.
1277         * mips-tdep.h (MIPS_PS_REGNUM): Add.
1278         * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1279         * mips-linux-nat.c: Update.
1280
1281         * mips-tdep.h: Add comments on registers.
1282         (MIPS_UNUSED_REGNUM): Define.
1283         * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1284         (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1285         * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1286         * mips-linux-nat.c, remote-mips.c: Update.
1287
1288         * config/mips/tm-mips.h (t_insn): Delete.
1289         * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1290         Replace t_insn with ULONGEST.
1291
1292 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1293
1294         * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1295         (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1296         (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1297         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1298         (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1299         (mipsnbsd_core_osabi_sniffer): New function.
1300         (mipsnbsd_init_abi): Set regset_from_core_section.
1301         (_initialize_mipsnbsd_tdep): Remove calls to
1302         deprecated_add_core_fns.
1303         (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1304         (mipsnbsd_regset_from_core_section): New functions.
1305         (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1306         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1307
1308         * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1309         Remove optimization for DEPRECATED_FP_REGNUM.
1310
1311 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1312
1313         * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1314         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1315         (alpha_setup_arbitrary_frame): Delete.
1316         * mips-tdep.c (setup_arbitrary_frame): Delete.
1317         * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1318         (setup_arbitrary_frame): Delete.
1319         * stack.c (parse_frame_specification_1): When specified, call
1320         create_new_frame with two parameters.  Delete #ifdef
1321         SETUP_ARBITRARY_FRAME.
1322
1323         * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1324         (MIPS_INSTLEN): Delete.
1325         * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1326         MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1327         * remote-mips.c, mips-tdep.c: Update.
1328
1329         * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1330         * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1331         * mips-tdep.c (mips_mdebug_frame_cache)
1332         (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1333         (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1334         (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1335         (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1336         (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1337         (mips_gdbarch_init): Do not append mdebug sniffers.
1338         (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET) 
1339         (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK) 
1340         (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG) 
1341         (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1342         * Makefile.in: Update dependencies.
1343
1344         * mips-tdep.h (mips_abi_regsize): Declare.
1345         * mips-tdep.c (mips_abi_regsize): Make non-static.
1346
1347         * mips-tdep.c (gdb_print_insn_mips): Simplify.
1348         (make_mips16_addr): Delete.
1349
1350 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1351
1352         * i386-sol2-nat.c: New file.
1353         * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1354         i386-sol2-tdep.c.
1355         (i386-sol2-nat.o): Update dependencies.
1356         * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1357         i386-sol2-nat.o.
1358
1359 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1360
1361         Total breakage identified by Joel Brobecker.
1362         * mips-tdep.c (after_prologue): Delete.
1363         (mips_skip_prologue): Use skip_prologue_using_sal.
1364         (heuristic_proc_desc): Delete, unused.
1365
1366 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1367
1368         * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1369         (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1370         Cleanup coding style.
1371
1372 2004-10-30  Andrew Cagney  <cagney@gnu.org>
1373
1374         * mips-tdep.h (mips_pc_is_mips16): Declare.
1375         * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1376         non-static.  Update calls.
1377
1378         * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1379         * command.h (add_setshow_enum_cmd): Declare.
1380         * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1381
1382         * mips-tdep.c (_initialize_mips_tdep): Use
1383         add_setshow_zinteger_cmd.
1384         
1385         * mips-tdep.c (mips_eabi_extract_return_value)
1386         (mips_o64_extract_return_value, mips_o64_store_return_value)
1387         (return_value_location, mips_eabi_reg_struct_has_addr)
1388         (mips_eabi_use_struct_convention)
1389         (mips_eabi_store_return_value): Delete.
1390         (mips_eabi_store_return_value): New function.
1391         (mips_eabi_return_value): New function.
1392         (mips_gdbarch_init): For O64 and EABI, delete
1393         extract_return_value, store_return_value, use_struct_convention
1394         and reg_struct_has_addr, add return_value.
1395
1396         * mips-tdep.c (read_signed_register): Use
1397         regcache_cooked_read_signed.
1398
1399 2004-10-30  Mark Kettenis  <kettenis@gnu.org>
1400
1401         * mipsread.c: Cleanup coding style.
1402         (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1403         (mipscoff_symfile_finish): Remove prototypes.
1404
1405 2004-10-29  Mark Kettenis  <kettenis@gnu.org>
1406
1407         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1408         (mips_mdebug_frame_cache, mips16_scan_prologue)
1409         (mips32_scan_prologue, mips_stub_frame_cache)
1410         (heuristic_proc_start, heuristic_proc_desc)
1411         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1412         (mips_n32n64_return_value, mips_o32_push_dummy_call)
1413         (mips_o32_return_value, mips_o64_push_dummy_call)
1414         (mips_step_skips_delay, mips_skip_trampoline_code)
1415         (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1416         MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1417         T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1418         instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1419         and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1420         (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1421         T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1422         MIPS16_INSTLEN.  Use MIPS_A0_REGNUM instead of A0_REGNUM.
1423         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1424         (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1425         ZERO_REGNUM.
1426         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1427         (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1428         ZERO_REGNUM.
1429         (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1430         A0_REGNUM.
1431         * mipsnbsd-nat.c: Include "mips-tdep.h".
1432         (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1433         * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1434
1435 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1436
1437         * stack.c (parse_frame_specification_1): New function based on
1438         parse_frame_specification.  Add message and selected_frame_p
1439         paramters.  Truely always return non-NULL.
1440         (parse_frame_specification): Call parse_frame_specification_1.
1441         (frame_info): Update.  Eliminate target_has_stack check.
1442         (select_frame_command): Update.
1443
1444 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1445
1446         * frame.h (get_selected_frame): Add message parameter.
1447         * frame.c (get_selected_frame): Add and use message parameter.
1448         * stack.c (current_frame_command, return_command, locals_info)
1449         (catch_info, args_info, up_silently_base, down_silently_base): Use
1450         get_selected_frame with an explicit message.
1451         * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1452         * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1453         * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1454         * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1455         * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1456         * breakpoint.c: Update.
1457
1458 2004-10-29  Andrew Cagney  <cagney@gnu.org>
1459
1460         * trad-frame.c (trad_frame_get_prev_register): Use
1461         frame_unwind_register instead of frame_register_unwind, do not
1462         recurse the register's location.
1463         * xstormy16-tdep.c (xstormy16_frame_prev_register): 
1464         * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1465         * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1466         * sh-tdep.c (sh_frame_prev_register): Ditto.
1467         * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1468         * i386-tdep.c (i386_frame_prev_register): Ditto.
1469         * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1470         * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1471
1472 2004-10-28  Mark Kettenis  <kettenis@jive.nl>
1473
1474         * proc-events.c: Fix several coding-style issues.  Consistently
1475         use #ifdef instead of #if defined().
1476         (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1477         ARRAY_SIZE.
1478         (_initialize_proc_events): New prototype.
1479
1480         * proc-why.c: Fix several coding-style issues.
1481         (proc_prettyfprint_why): Use ARRAY_SIZE.
1482
1483 2004-10-27  Jim Blandy  <jimb@redhat.com>
1484
1485         * remote.c (fetch_register_using_p): Construct 'p' packet in a
1486         manner independent of the host byte order.
1487
1488 2004-10-27  Mark Kettenis  <kettenis@gnu.org>
1489
1490         * mips-tdep.c (id_delayed): Remove prototype.
1491
1492 2004-10-26  Mark Kettenis  <kettenis@gnu.org>
1493
1494         * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1495         MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1496         to enum with register numbers.
1497         (enum mips_insn_size): New enum.
1498
1499 2004-10-26  Andrew Cagney  <cagney@gnu.org>
1500
1501         * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1502         * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1503         (mips_gdbarch_init): Update.
1504         (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1505
1506         * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1507         * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1508         IN_SOLIB_RETURN_TRAMPOLINE.
1509         * mips-tdep.c (mips_dump_tdep): Do not print
1510         IN_SOLIB_RETURN_TRAMPOLINE.
1511         (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1512         (mips_gdbarch_init): Update.
1513
1514         * mips-tdep.h (mips_software_single_step): Move to here ...
1515         * config/mips/tm-mips.h: ... from here.
1516         * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P) 
1517         (SOFTWARE_SINGLE_STEP): Delete.
1518         * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1519
1520 2004-10-25  Andrew Cagney  <cagney@gnu.org>
1521
1522         * NEWS: Add Changes since GDB 6.3 section.
1523
1524 2004-10-23  Andreas Schwab  <schwab@suse.de>
1525
1526         * ada-lang.c (grow_vect): Return the new array instead of
1527         expecting pointer to pointer to avoid violation of aliasing rules.
1528         * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1529
1530 2004-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
1531
1532         * s390-tdep.c (enum pv_boolean): Remove.
1533         (pv_is_array_ref): Remove.
1534         (s390_on_stack): Remove.
1535         (S390_NUM_SPILL_SLOTS): Remove.
1536         (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1537         add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1538         (s390_store): Track all stores of orginal incoming registers to the
1539         stack constant offsets relative to the CFA, instead of only tracking
1540         stores into specific spill slots.
1541         (s390_load): Likewise.
1542         (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1543         (s390_prologue_frame_unwind_cache): Likewise.  Only track registers
1544         defined as call-saved by the ABI.
1545         (s390_push_dummy_call): Use bottom of dummy call argument save area
1546         as return value, not the top.  Do not store to the called function's
1547         register save area.
1548         (s390_unwind_dummy_id): Adapt accordingly.
1549
1550 2004-10-23  Andrew Cagney  <cagney@gnu.org>
1551
1552         * objfiles.h (struct objfile): Rename obj_private to
1553         deprecated_obj_private, sym_private to deprecated_sym_private, and
1554         sym_stab_info to deprecated_sym_stab_info.
1555         * gdb-stabs.h: Update.
1556         * elfread.c: Update.
1557         * dbxread.c: Update.
1558         * coffread.c: Update.
1559         * xcoffread.c: Update.
1560         * symfile.c: Update.
1561         * somread.c: Update.
1562         * nlmread.c: Update.
1563         * mdebugread.c: Update.
1564         * hpread.c: Update.
1565         * coffread.c: Update.
1566
1567 2004-10-23  Mark Kettenis  <kettenis@gnu.org>
1568
1569         * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1570         * configure.host: Add mips64*-*-openbsd*.
1571         * configure.tgt: Add mips64*-*-openbsd*.
1572         * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1573         mips64obsd-tdep.c.
1574         (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1575         * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1576
1577 2004-10-21  Joel Brobecker  <brobecker@gnat.com>
1578
1579         * symtab.c (symbol_search_name): Minor reformatting.
1580
1581 2004-10-20  Joel Brobecker  <brobecker@gnat.com>
1582
1583         * symtab.h: Fix typo in comment.
1584
1585 2004-10-19  Mark Kettenis  <kettenis@gnu.org>
1586
1587         * dwarf2read.c (struct comp_unit_head): Fix coding style.
1588         (dwarf_decode_line_header): Likewise.
1589
1590 2004-10-19  Michael Chastain  <mec.gnu@mindspring.com>
1591
1592         * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1593
1594 2004-10-19  Andrew Cagney  <cagney@gnu.org>
1595
1596         GDB 6.3 branch created.
1597         * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1598
1599 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1600
1601         * dwarf2read.c (set_cu_language): Set language to Ada for
1602         DW_LANG_Ada83 and DW_LANG_Ada95.
1603
1604 2004-10-15  Michael Chastain  <mec.gnu@mindspring.com>
1605
1606         From Andreas Schwab <schwab@suse.de>:
1607         * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1608         for xmalloc and xrealloc.
1609
1610 2004-10-15  Andrew Cagney  <cagney@gnu.org>
1611
1612         * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1613         * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1614         * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1615         Update dependencies.
1616
1617 2004-10-15  Paul Hilfinger  <Hilfinger@gnat.com>
1618
1619         * ada-lang.c (ada_lookup_symbol): Correct comment.
1620         (ada_evaluate_subexp): Change error message for
1621         OP_FUNCALL case so as not to indicate an internal error.
1622         
1623 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1624
1625         Committed by Paul Hilfinger.
1626         * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1627         type sizes in XVE/XVU types, and emit a warning when that happens,
1628         instead of rounding up the size of the resulting type.
1629         Some minor reformatting.
1630         (ada_is_aligner_type): Do not consider a type as an aligner type 
1631         if there is a corresponding XVS type as well.
1632         (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we 
1633         have several levels of pointer indirection to the array.
1634         
1635 2004-10-15  Jerome Guitton  <guitton@gnat.com>
1636
1637         Committed by Paul Hilfinger.
1638         * ada-lang.c (check_size): New function.
1639         (coerce_unspec_val_to_type): call check_size to make sure
1640         that the object size is reasonable.
1641         (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1642         Implements the case when we get a reference when we evaluate
1643         the expression of one of the bounds of the slice.
1644         (ada_value_struct_elt): when a packed array field is
1645         a reference, use ada_coerce_ref to dereference it; use 
1646         ada_value_ind only if it is a pointer.
1647
1648 2004-10-15  Joel Brobecker  <brobecker@gnat.com>
1649
1650         * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1651         a bit to avoid the necessity of an advance declaration. Remove
1652         declaration.
1653         (set_reg_offset): Move implemenation up.
1654         (mips16_get_imm): Likewise.
1655         (mips16_scan_prologue): Likewise.
1656         (reset_saved_regs): Likewise.
1657         (mips32_scan_prologue): Likewise.
1658
1659 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1660
1661         * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1662         Remove sp as a parameter, compute it internally instead. Move
1663         prologue scanning limit from heuristic_proc_desc to here.
1664         (mips16_scan_prologue): Likewise.
1665         (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1666         by call to mips16_scan_prologue.
1667         (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1668         by call to mips32_scan_prologue.
1669         (heuristic_proc_desc): Remove code that's no longer necessary.
1670         Update calls to mips16_scan_prologue and mips32_scan_prologue.
1671         (mips_skip_prologue): Update calls to mips16_scan_prologue
1672         and mips32_scan_prologue.
1673
1674 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1675
1676         * mips-tdep.c (mips16_scan_prologue): Merge code from
1677         mips16_skip_prologue.  Now return the address of the first
1678         instruction past the function prologue.
1679         (mips16_skip_prologue): Remove, no longer necessary.
1680         (mips_skip_prologue): Replace call to mips16_skip_prologue
1681         by call to mips16_scan_prologue.
1682
1683 2004-10-14  Joel Brobecker  <brobecker@gnat.com>
1684
1685         * mips-tdep.c (mips32_scan_prologue): Merge code from
1686         mips32_skip_prologue.  Now return the address of the first
1687         instruction past the function prologue.
1688         (mips32_skip_prologue): Remove.  No longer necessary.
1689         (mips16_skip_prologue): Add parameter end_pc instead of
1690         computing it.
1691         (mips_skip_prologue): Compute the upper limit for the
1692         prologue scanning. Update call to mips16_skip_prologue.
1693         Replace call to mips32_skip_prologue by call to
1694         mips32_scan_prologue.
1695
1696 2004-10-14  Mark Kettenis  <kettenis@gnu.org>
1697
1698         * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1699         NetBSD system call stubs that store %rp in the ERP slot of the
1700         stack frame.
1701
1702         * source.c: Always define O_BINARY to 0 if not defined already.
1703         (openp): Unconditionally use O_BINARY.
1704
1705         * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1706         * event-top.c (gdb_readline2): Likewise.
1707
1708 2004-10-14  Orjan Friberg  <orjanf@axis.com>
1709
1710         * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1711         deprecated_add_core_fns which was removed by mistake.
1712
1713 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1714
1715         * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1716         references to deprecated_registers[] with equivalent code.
1717
1718 2004-10-13  Kevin Buettner  <kevinb@redhat.com>
1719
1720         * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1721         ``deprecated_registers'' with equivalent code.  Use gdb_assert()
1722         instead of explicit test and print statement.
1723
1724 2004-10-12  Mark Kettenis  <kettenis@gnu.org>
1725
1726         * sparc-nat.c: Include "inf-ptrace.h".
1727         (sparc_target): New function.
1728         * sparc-nat.h: Update copyright year.
1729         (sparc_target): New prototype.
1730         * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1731         (_initialize_sparcnbsd_nat): Construct and add target vector.
1732         * sparc64nbsd-nat.c: Include "target.h".
1733         (_initialize_sparc64nbsd_nat): Construct and add target vector.
1734         * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1735         Update dependencies.
1736         * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1737         inftarg.o, add inf-ptrace.o.
1738         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1739         inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1740         (NAT_FILE): Set to nm-bsd.h.
1741         (LOADLIBES): New variable.
1742         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1743         infarg.o, add inf-ptrace.o.
1744         * config/sparc/nm-nbsdaout.h: Remove file.
1745         * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1746         * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1747         * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1748
1749         * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1750         "fopen-same.h".  Update comment.
1751
1752 2004-10-11  Mark Kettenis  <kettenis@gnu.org>
1753
1754         * i386gnu-nat.c: Include "gdb_string.h".
1755         (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1756         registers when the floating-point state isn't initialized.
1757         * Makefile.in (i386gnu-nat.o): Update dependencies.
1758
1759 2004-10-11  David Anderson  <davea@sgi.com>
1760
1761         * regcache.c (regcache_raw_read): Comment was missing "to".
1762         Extraneous ' removed.
1763         * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1764         comment now describes use.
1765
1766 2004-10-11  Orjan Friberg  <orjanf@axis.com>
1767
1768         * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1769         (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1770         (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1771         (cris_sigtramp_frame_sniffer): New functions.
1772         (cris_gdbarch_init): Hook in signal trampoline unwinder.
1773         (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1774         (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1775         (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1776         (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1777         command.
1778         (cris_version_update): Remove, replace with ...
1779         (set_cris_version): New function.
1780         (struct gdbarch_tdep, cris_mode, cris_mode_update)
1781         (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1782         (_initialize_cris_tdep): Remove CRIS mode command.
1783         (cris_fpless_backtrace, _initialize_cris_tdep): Remove 
1784         cris-fpless-backtrace command.
1785         (cris_scan_prologue): Fix prologue scanning limit.
1786         (cris_register_type): Update to reflect actual registers.
1787         (cris_register_bytes_ok) Remove.
1788         (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1789         Remove set_gdbarch_deprecated_register_size,
1790         set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1791         
1792 2004-10-10  Andrew Cagney  <cagney@gnu.org>
1793
1794         * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1795         comment.
1796
1797 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1798
1799         * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1800
1801 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1802
1803         * mips-tdep.c (mips16_scan_prologue): Renames
1804         mips16_heuristic_proc_desc. Update comment.
1805         (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1806         (heuristic_proc_desc): Update calls to the 2 functions above.
1807
1808 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1809
1810         * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1811         Update comments. Also immediately return empty cache when the start
1812         address of our function could not be found.
1813         (mips_insn32_frame_cache): Likewise.
1814
1815 2004-10-10  Joel Brobecker  <brobecker@gnat.com>
1816
1817         * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1818         (mips_insn16_frame_cache): Pass frame cache in call to
1819         heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1820         Remove code that became redundant as a consequence.
1821         (mips32_heuristic_proc_desc): No longer compute a fake
1822         procedure descriptor. Compute the full frame cache instead.
1823         Some minor comment reformatting.
1824
1825 2004-10-10  Jim Blandy  <jimb@redhat.com>
1826
1827         * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1828         reader, tracing bytecode stuff): Remove self.
1829
1830 2004-10-10  Mark Kettenis  <kettenis@gnu.org>
1831
1832         * sparc64-linux-tdep.c: Update copyright year.  Don't include
1833         "solib-svr4.h".
1834         (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1835         (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1836         * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1837
1838         * sparc-linux-tdep.c: Update copyright year.
1839         (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1840         to struct frame_info *.  Use safe_frame_unwind_memory instead of
1841         deprecated_read_memory_nobpt.
1842         (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1843         Change argumen from CORE_ADDR to struct frame_info *.  Adjust for
1844         changed signature of sparc_linux_sigtramp_start.
1845         (sparc32_linux_pc_in_sigtramp): Remove function.
1846         (sparc32_linux_sigtramp_p): New function.
1847         (sparc32_linux_sigtramp_frame_sniffer): Use
1848         sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1849
1850         * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1851         Remove function.
1852         (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1853
1854         * ada-lang.c (lim_warning): Re-implement as a varargs function.
1855         (decode_packed_array_type, value_subscript_packed)
1856         (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1857         argument in call to lim_warning.
1858
1859         * configure.in: Really disable the TUI if an enhanced curses
1860         library isn't found.
1861         * configure: Regenerate.
1862
1863 2004-10-09  Mark Kettenis  <kettenis@gnu.org>
1864
1865         * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1866         * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1867         * config/i386/nm-nbsdaout.h: Remove file.
1868         * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1869         (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1870         (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1871         (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1872         (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1873         (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1874         (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1875         (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1876         (ldd, ld_un, ld_2): Remove defines.
1877         * config/i386/nm-obsd.h: Likewise.
1878
1879 2004-10-09  Paul Hilfinger  <hilfingr@nile.gnat.com>
1880
1881         * ada-lex.l: Remove useless rule whose right-context clause
1882         causes unreferenced static function warning for yyrealloc.
1883         (ada_flex_use): Remove the artificial reference to yyrealloc.
1884
1885 2004-10-08  Andrew Cagney  <cagney@gnu.org>
1886
1887         * target.h (struct target_ops): Rename to_xfer_memory to
1888         deprecated_xfer_memory.
1889         * target.c: Update.
1890         (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1891         * wince.c: Update.
1892         * win32-nat.c: Update.
1893         * v850ice.c: Update.
1894         * uw-thread.c: Update.
1895         * thread-db.c: Update.
1896         * sol-thread.c: Update.
1897         * remote.c: Update.
1898         * remote-vx.c: Update.
1899         * remote-st.c: Update.
1900         * remote-sim.c: Update.
1901         * remote-sds.c: Update.
1902         * remote-rdp.c: Update.
1903         * remote-rdi.c: Update.
1904         * remote-mips.c: Update.
1905         * remote-m32r-sdi.c: Update.
1906         * remote-e7000.c: Update.
1907         * procfs.c: Update.
1908         * ppc-bdm.c: Update.
1909         * nto-procfs.c: Update.
1910         * monitor.c: Update.
1911         * linux-nat.c: Update.
1912         * inftarg.c: Update.
1913         * hpux-thread.c: Update.
1914         * go32-nat.c: Update.
1915         * gnu-nat.c: Update.
1916         * exec.c: Update.
1917         * corelow.c: Update.
1918         * bsd-kvm.c: Update.
1919         * aix-thread.c: Update.
1920
1921 2004-10-08  Andrew Cagney  <cagney@gnu.org>
1922
1923         * target.c (debug_target): Move to near start of file.
1924         (target_stopped_data_address_p): Re-org logic, add casts.
1925
1926 2004-10-02  Mark Kettenis  <kettenis@gnu.org>
1927
1928         * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1929         (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1930         (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1931         (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1932         New defines.
1933
1934 2004-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1935
1936         * target.h (to_stopped_data_address): Change prototype to
1937         take a CORE_ADDR pointer and return an int.
1938         * target.c (update_current_target): Change to_stopped_data_address
1939         to match new prototype.
1940         (debug_to_stopped_data_address): Change appropriately.
1941         * breakpoint.c (bpstat_stop_status): Change call to
1942         target_stopped_data_address to use new prototype.
1943         * frv-tdep.c (frv_have_stopped_data_address): New function.
1944         (frv_stopped_data_address): Change to new prototype and
1945         functionality.
1946         * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1947         prototype and functionality.
1948         (ia64_stopped_by_watchpoint): New function.
1949         * i386-nat.c (i386_stopped_data_address): Change to new
1950         prototype and functionality.
1951         (i386_stopped_by_watchpoint): New function.
1952         * remote.c (remote_stopped_data_address): Change to new prototype
1953         and functionality.
1954         * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1955         * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1956         (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1957         * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1958         new i386_stopped_by_watchpoint function.
1959         (i386_stopped_by_watchpoint): New prototype.
1960         (i386_stoppped_data_address): Change to new prototype.
1961         * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1962         new ia64_stopped_by_watchpoint function.
1963         (ia64_stopped_by_watchpoint): New prototype.
1964         (ia64_stopped_data_address): Ditto.
1965
1966 2004-10-08  Paul Hilfinger  <Hilfinger@gnat.com>
1967
1968         * ada-typeprint.c (ada_print_type): Use int_string for printing
1969         modulus of modular type.
1970         * ada-lang.h (ada_modulus): Change return type to unsigned.
1971         * ada-lang.c (ada_language_arch_info): Correct type of 
1972         string_char_type.
1973         (ada_modulus): Return unsigned result.
1974         (ada_lookup_symbol): Remove user disambiguation and modify comment 
1975         accordingly.
1976         
1977 2004-10-08 Eric Botcazou  <ebotcazou@act-europe.fr>     
1978
1979         Committed by Paul Hilfinger.
1980         * ada-lang.c (decode_packed_array): On big-endian targets, 
1981         left-justify the value if it comes with a modular type.
1982
1983 2004-10-08  Joel Brobecker  <brobecker@gnat.com>        
1984
1985         Committed by Paul Hilfinger.
1986         * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1987         (is_name_suffix): Add support for "___JM" suffixes.
1988         (ada_check_typedef): Renames ada_completed_type. 
1989         Update all users of CHECK_TYPEDEF, check_typedef, and 
1990         ada_complete_type to call ada_check_typedef.
1991         * ada-typeprint.c: Likewise.
1992         * ada-valprint.c: Likewise.
1993
1994 2004-10-08  Corinna Vinschen  <vinschen@redhat.com>
1995
1996         * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1997
1998 2004-10-08  Nick Roberts  <nickrob@snap.net.nz>
1999
2000         * MAINTAINERS: Update e-mail address.
2001
2002 2004-10-07  Daniel Jacobowitz  <dan@debian.org>
2003
2004         From Maciej W. Rozycki  <macro@mips.com>:
2005         * mips-tdep.c (mips32_next_pc): Check the register's contents,
2006         not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2007
2008 2004-10-07  Kei Sakamoto  <sakamoto.kei@renesas.com>
2009
2010         * m32r-tdep.c (decode_prologue): Support functions written
2011         in assembler language. Recognize trap instructions as the
2012         end of prologue.
2013         (m32r_frame_unwind_cache): Ditto.
2014         (m32r_skip_prologue): Extend search limit. Quit analyzing
2015         prologue if pc's location is not readable.
2016
2017 2004-10-06  Paul N. Hilfinger  <Hilfinger@gnat.com>
2018
2019         * Makefile.in (.l.c): Do conversions of names of alloc and free 
2020         functions that are done for .y.c files, plus special one
2021         for yy_flex_realloc.  Also, correct missing-file tests here.
2022         * ada-lex.l (malloc, free): Remove macros.
2023         (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2024         xrealloc.
2025         (ada_flex_use): Dummy definition to remove warnings about unused
2026         functions.
2027         * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2028         to suppress warning.
2029         
2030 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2031
2032         * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2033         RETURN_VALUE.
2034         (sh_return_value_fpu): Ditto for CPUs with FPU.
2035         (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2036         RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2037         Install sh_return_value_nofpu resp. sh_return_value_fpu as
2038         RETURN_VALUE functions.
2039
2040 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2041
2042         * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling. 
2043         (sh_pseudo_register_write): Ditto.
2044
2045 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2046
2047         * sh-tdep.c (IS_MACL_STS): New define.
2048         (IS_MOVI20): Ditto.
2049         (IS_MACL_LDS): Ditto.
2050         (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2051         instructions in prologue.
2052         (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2053         instructions in epilogue.
2054
2055 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2056
2057         * sh-tdep.c (SH_NUM_REGS): Define as 67.
2058         (sh_sh_register_name): Add eight empty register names.
2059         (sh_sh3_register_name): Ditto.
2060         (sh_sh3e_register_name): Ditto.
2061         (sh_sh2e_register_name): Ditto.
2062         (sh_sh2a_register_name): New function, defining SH2A register set.
2063         (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2064         in nofpu case.
2065         (sh_sh_dsp_register_name): Add eight empty register names.
2066         (sh_sh3_dsp_register_name): Ditto.
2067         (sh_sh4_register_name): Ditto.
2068         (sh_sh4_nofpu_register_name): Ditto.
2069         (sh_sh4al_dsp_register_name): Ditto.
2070         (sh2a_show_regs): New function.
2071         (sh2a_nofpu_show_regs): New function.
2072         (sh_sh2a_register_type): New function.
2073         (do_bank_register_info): New function.
2074         (sh_print_pseudo_register): Call do_bank_register_info.
2075         Call sh_print_pseudo_register for valid "bank" register.
2076         (sh_sh2a_register_sim_regno): New function.
2077         (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2078         Increment pseudo register count by one for all sh variants with
2079         pseudo registers to accomodate pseudo bank register.
2080         * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2081         IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2082         IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM. 
2083         Increment pseudo register numbers.
2084
2085 2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
2086
2087         * dwarf2read.c (read_subroutine_type): Call make_function_type
2088         instead of lookup_function_type.
2089
2090 2004-10-05  Jim Blandy  <jimb@redhat.com>
2091
2092         * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2093         (Previous change missed some uses.)
2094
2095 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2096
2097         * target.h (deprecated_child_ops): Rename child_ops.
2098         * wince.c: Update copyright.  Rename child_ops.
2099         * win32-nat.c: Rename child_ops.
2100         * target.c: Rename child_ops.
2101         * rs6000-nat.c: Rename child_ops.
2102         * linux-nat.c: Rename child_ops.
2103         * infttrace.c: Rename child_ops.
2104         * inftarg.c: Rename child_ops.
2105         * infptrace.c: Rename child_ops.
2106         * hppah-nat.c: Update copyright.  Rename child_ops.
2107         * hpux-thread.c: Update copyright.  Rename child_ops.
2108
2109 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2110
2111         * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2112
2113 2004-10-05  Andrew Cagney  <cagney@gnu.org>
2114
2115         * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2116
2117 2004-10-05  Daniel Jacobowitz  <dan@debian.org>
2118
2119         * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2120         (die_ref_table): Remove.
2121         (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2122         (struct dwarf2_per_cu_data): Add PSYMTAB.  Add a comment describing
2123         the usage of this type.
2124         (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2125         (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2126         (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2127         (dwarf2_create_include_psymtab): Update comment.
2128         (find_partial_die): Remove third argument.  Remove unreachable call
2129         to error ().
2130         (dwarf2_find_containing_comp_unit): Update comments.  Change one
2131         assertion to an error.  Remove an unreachable error.
2132         (dwarf2_find_comp_unit): Update comments.
2133         (type_at_offset): Remove dead code.
2134         (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2135         (store_in_ref_table): Add CU argument.
2136         (follow_die_ref): Take DIE, attribute, and CU arguments.  Handle
2137         inter-compilation-unit references.
2138         (load_full_comp_unit, process_full_comp_unit): New functions, based
2139         on psymtab_to_symtab_1.
2140         (psymtab_to_symtab_1): Use them.
2141         (dwarf2_add_dependence): New function.
2142         (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu.  Always create
2143         a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2144         (partial_die_parent_scope, guess_structure_name): Update for changes
2145         to find_partial_die.
2146         (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2147         (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2148         (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2149         (read_die_and_children): Update call to store_in_ref_table.
2150         (do_free_die_list_cleanup): Remove.
2151         (fixup_partial_die): Update for changes to find_partial_die.
2152         (read_full_die): Handle queueing absolute references.
2153         (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2154         (dwarf2_attr, die_specification, die_type)
2155         (die_containing_type, dwarf2_extension): Update calls to
2156         follow_die_ref.
2157         (dump_die): Update DW_FORM_ref* handling.
2158         (dwarf2_get_ref_die_offset): Likewise.
2159         (free_one_comp_unit): Release the dies list.
2160         (dwarf2_mark_helper): New function.
2161         (dwarf2_mark): Use it.
2162
2163 2004-10-05  Mark Kettenis  <kettenis@jive.nl>
2164
2165         * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2166         when writing to memory.
2167
2168 2004-10-05  Kei Sakamoto  <sakamoto.kei@renesas.com>
2169
2170         * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2171         (m32r_extract_struct_value_address): Delete function.
2172         (m32r_return_value): New function.
2173         (m32r_gdbarch_init): Instead of store_return_value,
2174         extract_return_value, deprecated_extract_struct_value_address
2175         and deprecated_use_struct_convention, set return_value.
2176
2177 2004-10-03  Daniel Jacobowitz  <dan@debian.org>
2178
2179         * dwarf2read.c (read_subrange_type): Add comment for variable
2180         sized arrays.
2181
2182 2004-10-03  Paul Hilfinger  <hilfingr@nile.gnat.com>
2183
2184         * Makefile.in (.l.c): Modify rule for compatibility with recent
2185         versions of flex, and remove most command-line options.
2186         * ada-lex.l: Add %options line in place of -I -i and -s command-line
2187         options.
2188
2189 2004-10-02  Paul N. Hilfinger  <Hilfinger@gnat.com>
2190
2191         Turn on initial Ada support (mainly expression evaluation).
2192         
2193         * Makefile.in (SFILES): Remove ada-tasks.c.
2194         (HFILES_NO_SRCDIR): Add ada-lang.h.
2195         (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2196         (YYOBJ): Add ada-exp.o.
2197         (rule .l.c): Generalize to not mention ada.
2198         * symtab.c: Include ada-lang.h.
2199         (symbol_natural_name, symbol_demangled_name)
2200         (symbol_search_name): Add Ada case.
2201
2202 2004-10-01  Andrew Cagney  <cagney@gnu.org>
2203
2204         * Makefile.in (COMMON_OBS): Add inf-child.o.
2205         * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2206         * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2207         * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2208         * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2209         * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2210         * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2211         * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2212         * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2213         * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2214         * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2215         * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2216         * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2217         * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2218
2219         * target.c (xfer_using_stratum): Change return type to LONGEST.
2220         On each iteration offset, readbuf and writebuf.
2221         * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2222         partial_length, and read/modify/write predicate, update comments.
2223         Pass buffer.word to ptrace write.
2224
2225 2004-10-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
2226
2227         * symfile.c (init_filename_language_table): Add extensions for
2228         Ada.
2229         * defs.h (enum language): Add language_ada.
2230         * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2231         * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2232         (add_symbols_from_enclosing_procs): Make a no-op for now.
2233         (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2234         (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2235         (find_line_in_linetable, find_next_line_in_linetable)
2236         (read_all_symtabs, is_plausible_func_for_line)
2237         (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2238         (is_runtime_sym_defined, check_size): Remove declaration.
2239         (function_name_from_pc, ada_translate_error_message)
2240         (ada_lookup_minimal_symbol): Remove definition.
2241         (ada_add_block_symbols): Remove useless label.
2242         * ada-lang.h (ada_maybe_exception_partial_symbol): Remove 
2243         useless declaration.
2244         (ada_is_exception_sym): Likewise.
2245
2246 2004-09-30    Kei Sakamoto  <sakamoto.kei@renesas.com>
2247
2248         Add m32r-linux support.
2249         * configure.tgt: Add m32r*-*-linux*.
2250         * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2251         and m32r-linux-tdep.c.
2252         (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2253         * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2254         * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2255         m32r-linux-tdep.c.
2256         * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2257         config/m32r/linux.mh, config/m32r/linux.mt,
2258         config/m32r/nm-linux.h: New files.
2259
2260 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2261
2262         * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2263         (mips32_fetch_instruction): Remove, unused.
2264
2265 2004-09-30  Joel Brobecker  <brobecker@gnat.com>
2266
2267         * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2268         conditions that will always be true.
2269
2270 2004-09-30  Mark Kettenis  <kettenis@gnu.org>
2271
2272         * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2273         (vaxbsd_fetch_inferior_registers): Rename from
2274         fetch_inferior_registers.  Make static.
2275         (vaxbsd_store_inferior_registers): Rename from
2276         store_inferior_registers.  Make static.
2277         (_initialize_vaxbsd_nat): Construct and add target vector.
2278         * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2279         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2280         * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2281         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2282         (NAT_FILE): Remove.
2283         * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2284         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2285         (NAT_FILE): Remove.
2286         * Makefile.in (vaxbsd-nat.o): Update dependencies.
2287
2288         * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2289         (m88kbsd_fetch_inferior_registers): Rename from
2290         fetch_inferior_registers.  Make static.
2291         (m88kbsd_store_inferior_registers): Rename from
2292         store_inferior_registers.  Make static.
2293         (_initialize_m88kbsd_nat): New prototype and function.
2294         * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2295         inftarg.o.  Add inf-child.o and inf-ptrace.o.
2296         (NAT_FILE): Remove.
2297         * Makefile.in (m88kbsd-nat.o): Update dependencies.
2298
2299 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2300
2301         * target.c (target_xfer_partial): New function.
2302         (target_read_memory_partial, target_write_memory_partial) 
2303         (default_xfer_partial, target_read_partial, target_write_partial) 
2304         (xfer_using_stratum): Use.
2305         (debug_to_xfer_partial): Delete function.
2306         (setup_target_debug): Do not override to_xfer_partial.
2307
2308 2004-09-30  Mark Kettenis  <kettenis@chello.nl>
2309
2310         * fork-child.c: Update copyright year.  Fix coding style.
2311
2312 2004-09-29  Mark Kettenis  <kettenis@gnu.org>
2313
2314         * defs.h (msavestring, mstrsave): Remove prototypes.
2315         * utils.c (msavestring, mstrsave): Remove functions.
2316         * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2317         * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2318         of mstrsave.
2319         * source.c (find_and_open_source): Use xstrdup instead of
2320         mstrsave.
2321
2322 2004-09-30  Andrew Cagney  <cagney@gnu.org>
2323
2324         * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2325         (inf_ptrace_xfer_memory): Delete.
2326         * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2327         (target_read_memory, target_write_memory): Use xfer_using_stratum
2328         when target_xfer_partial_p.
2329         (debug_target): Move to start of file.
2330         (target_read_memory_partial, target_write_memory_partial): Use
2331         to_xfer_partial when target_xfer_partial_p.
2332
2333         * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2334         inf_ptrace_xfer_memory with equivalent code.
2335         * inftarg.c (child_xfer_partial): When performing a write, pass
2336         writebuf to child_xfer_memory.
2337
2338         * target.c (target_read_string): Use target_read_memory instead of
2339         target_xfer_memory.
2340
2341 2004-09-29  Andrew Cagney  <cagney@gnu.org>
2342
2343         * infptrace.c (kill_inferior): Fix typo, in previous inline.  Pass
2344         the address of status.
2345
2346         * infptrace.c (ptrace_wait): Mention problem with HPUX.
2347         (kill_inferior): Inline ptrace_wait call.
2348         * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2349         * inftarg.c (child_wait): Inline ptrace_wait call.
2350
2351         * target.h (struct target_ops): Delete field to_post_wait.
2352         (target_post_wait): Delete macro.
2353         (child_post_wait): Delete declaration.
2354         * target.c (update_current_target, update_current_target)
2355         (debug_to_post_wait, setup_target_debug): Delete functions and
2356         references.
2357         * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2358         * inftarg.c (child_post_wait): Delete.
2359         (init_child_ops): Do not set to_post_wait.
2360         * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2361         * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2362         * inf-child.c (inf_child_post_wait): Delete.
2363         (inf_child_target): Do not set to_post_wait.
2364         * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2365         (inf_ptrace_target): Do not set to_post_wait.
2366
2367         * wince.c (child_ops): Delete.
2368         * win32-nat.c (child_ops): Delete.
2369
2370         * inftarg.c (inftarg_set_find_memory_regions) 
2371         (inftarg_set_make_corefile_notes): Delete functions.
2372         (_initialize_linux_nat): Inline calls.
2373
2374         * target.h (child_ops): Declare.
2375         * inftarg.c (child_ops): Move from here ...
2376         * target.c (child_ops): ... to here.
2377         * wince.c (child_ops): Delete extern declaration.
2378         * win32-nat.c (child_ops): Delete extern declaration.
2379         * linux-nat.c (child_ops): Delete extern declaration.
2380         * hpux-thread.c (child_ops): Delete extern declaration.
2381
2382 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2383
2384         * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2385
2386 2004-09-28  Mark Kettenis  <kettenis@gnu.org>
2387
2388         * configure.in: Only set host_makefile_frag when building a native
2389         debugger.
2390         * configure: Regenerate.
2391
2392         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2393         for OpenBSD ELF.
2394
2395 2004-09-28  Andrew Cagney  <cagney@gnu.org>
2396
2397         Problem identified by Paul Hilfinger.
2398         * Makefile.in (ada_lex_c): Define.
2399         (ada-lex.o): Delete rule.
2400
2401         * linux-proc.c: Delete file.
2402         * Makefile.in: Update.
2403         * config/sparc/linux64.mh (NATDEPFILES): 
2404         * config/sparc/linux.mh (NATDEPFILES): Update.
2405         * config/s390/s390.mh (NATDEPFILES): Update.
2406         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2407         * config/powerpc/linux.mh (NATDEPFILES): Update.
2408         * config/pa/linux.mh (NATDEPFILES): Update.
2409         * config/mips/linux.mh (NATDEPFILES): Update.
2410         * config/m68k/linux.mh (NATDEPFILES): Update.
2411         * config/ia64/linux.mh (NATDEPFILES): Update.
2412         * config/i386/linux64.mh (NATDEPFILES): Update.
2413         * config/i386/linux.mh (NATDEPFILES): Update.
2414         * config/arm/linux.mh (NATDEPFILES): Update.
2415         * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2416         * linux-nat.c: Update copyright.  Include <sys/param.h>,
2417         <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2418         "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2419         (O_LARGEFILE): Possibly define.
2420         (_initialize_linux_nat, linux_proc_pending_signals)
2421         (add_line_to_sigset, linux_proc_xfer_memory)
2422         (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2423         (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2424         (struct linux_corefile_thread_data)
2425         (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2426         (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2427
2428 2004-09-16  Andrew Cagney  <cagney@gnu.org>
2429
2430         * lin-lwp.c: Delete file.
2431         * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2432         <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2433         (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2434         (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2435         (linux_nat_attach, detach_callback, linux_nat_detach)
2436         (resume_callback, resume_clear_callback, linux_nat_resume)
2437         (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2438         (stop_wait_callback, linux_nat_has_pending, flush_callback)
2439         (status_callback, running_callback, count_events_callback)
2440         (select_singlestep_lwp_callback, select_event_lwp_callback)
2441         (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2442         (child_wait, stop_and_resume_callback, linux_nat_wait)
2443         (kill_callback, kill_wait_callback, linux_nat_kill)
2444         (linux_nat_create_inferior, linux_nat_mourn_inferior)
2445         (linux_nat_xfer_memory, linux_nat_thread_alive)
2446         (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2447         (_initialize_linux_nat): New functions.
2448         * Makefile.in: Update all dependencies.
2449         * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2450         * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2451         * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2452         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2453         * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2454         * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2455         * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2456         * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2457         * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2458         * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2459         * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2460         * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2461         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2462
2463 2004-09-27  Mark Kettenis  <kettenis@gnu.org>
2464
2465         * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2466         config/i386/obsd64.mh (NAT_FILE): Remove variable.
2467
2468         * configure.in: Don't comment out NATDEPFILES in the generated
2469         Makefile if NAT_FILE is unset.
2470         * configure: Regenerate.
2471
2472 2004-09-27  Andrew Cagney  <cagney@gnu.org>
2473
2474         * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2475         (insert_step_resume_breakpoint): Delete.
2476         (insert_step_resume_breakpoint_at_frame): New function.
2477         (insert_step_resume_breakpoint_at_sal): New function.
2478         (handle_inferior_event, step_into_function)
2479         (insert_step_resume_breakpoint): Simplify by using same.
2480
2481         * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2482
2483 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2484
2485         * fbsd-proc.c: Remove file.
2486         * Makefile.in (fbsd-proc.o): Remove dependency.
2487
2488         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2489         code together.
2490
2491         * config/i386/nm-fbsd64.h: Remove file.
2492         * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2493
2494 2004-09-26  Mark Kettenis  <kettenis@gnu.org>
2495
2496         * amd64-nat.h: Update copyright year.
2497         (amd64bsd_target): New prototype.
2498         * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2499         (amd64bsd_target): New function.
2500         (amd64bsd_fetch_inferior_registers): Rename from
2501         fetch_inferior_registers.  Make static.
2502         (amd64bsd_store_inferior_registers): Rename from
2503         store_inferior_registers.  Make static.
2504         * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2505         (_initialize_amd64fbsd_nat): Construct and add target vector.
2506         * amd64nbsd-nat.o: Include "target.h".
2507         (_initialize_amd64nbsd_nat): Construct and add target vector.
2508         * amd64obsd-nat.c: Include "target.h".
2509         (_initialize_amd64obsd_nat): Construct and add target vector.
2510         * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2511         * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2512         inftarg.o and fbsd-proc.o.  Add inf-child.o, inf-ptrace.o and
2513         fbsd-nat.o.
2514         * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2515         Remove infptrace.o and inftarg.o.  Add inf-child.o and
2516         inf-ptrace.o.
2517         * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2518         (amd64obsd-nat.o): Update dependencies.
2519
2520 2004-09-25  Mark Kettenis  <kettenis@gnu.org>
2521
2522         * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2523         * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2524         * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2525         * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2526         * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2527
2528         * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2529         Inline attach call.
2530         (inf_ptrace_detach): Inline detach call.
2531
2532         * configure.in: Check for waddstr instead of mvwaddstr when
2533         searching for curses library.  Check for wborder.
2534         * configure, config.in: Regenerate.
2535         * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2536         available.
2537
2538         * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2539
2540 2004-09-24  Robert Picco <Robert.Picco@hp.com>
2541
2542         Committed by Andrew Cagney.
2543         * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2544         (show_remote_protocol_p_packet_cmd): New.  Implement 'p' packet.
2545         configuration.
2546         (fetch_register_using_p): Implement 'p' packet.  Based on code by
2547         Fernando Nasser.
2548         (remote_fetch_registers): Call fetch_register_using_p.
2549         (init_all_packet_configs, show_remote_cmd)
2550         (_initialize_remote): Add p-packet.
2551
2552 2004-09-24  Mark Kettenis  <kettenis@gnu.org>
2553
2554         * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2555         instead of call_ptrace.  Call wait directly instead of
2556         ptrace_wait.
2557         (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2558         (inf_ptrace_wait): Inline ptrace_wait call.
2559
2560 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2561
2562         * Makefile.in (.y.c): Revert previous change.  ../ylwrap was 
2563         rolled back instead.
2564
2565 2004-09-24  Paul Hilfinger  <hilfingr@nile.gnat.com>
2566
2567         * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2568         the new argument order.
2569
2570 2004-09-23  Corinna Vinschen  <vinschen@redhat.com>
2571
2572         * MAINTAINERS: Remove "broken" from XStormy16 entry.
2573         * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2574         (struct gdbarch_tdep): Remove.
2575         (struct xstormy16_frame_cache): New frame cache structure.
2576         (xstormy16_register_byte, xstormy16_register_raw_size)
2577         (xstormy16_reg_virtual_type, xstormy16_register_type)
2578         (xstormy16_push_arguments, xstormy16_push_return_address)
2579         (xstormy16_pop_frame, xstormy16_store_struct_return)
2580         (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2581         (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2582         (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2583         (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2584         (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2585         (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2586         (xstormy16_use_struct_convention): Drop gcc_p parameter.
2587         (xstormy16_extract_return_value, xstormy16_store_return_value):
2588         Regcachify.  Drop useless struct convention handling.
2589         (xstormy16_register_type, xstormy16_return_value)
2590         (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2591         (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2592         (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2593         (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2594         (xstormy16_unwind_sp, xstormy16_unwind_pc)
2595         (xstormy16_unwind_dummy_id) : New functions.
2596         (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2597         of xstormy16_scan_prologue.
2598         (xstormy16_frame_unwind): New frame_unwind structure.
2599         (xstormy16_frame_base): New frame_base structure.
2600         (xstormy16_gdbarch_init): Accomodate all of the above changes.
2601         Reshuffle for better readability.  Also add dwarf2_frame_sniffer.
2602
2603 2004-09-22  Mark Kettenis  <kettenis@gnu.org>
2604
2605         * language.c (language_gdbarch_post_init): Fix off-by one error.
2606
2607 2004-09-21  Daniel Jacobowitz  <dan@debian.org>
2608
2609         * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2610         (struct dwarf2_offset_and_type): New.
2611         (set_die_type, reset_die_and_siblings_types, get_die_type)
2612         (offset_and_type_hash, offset_and_type_eq): New functions.
2613         (read_structure_type, read_enumeration_type, read_array_type)
2614         (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2615         (read_tag_reference_type, read_tag_const_type)
2616         (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2617         (read_typedef, read_base_type, read_subrange_type): Use
2618         set_die_type.
2619
2620 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2621
2622         * Makefile.in (dwarf2read.o): Update dependencies.
2623         * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2624         (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2625         and read_in_chain.
2626         (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2627         mark, and has_form_ref_addr.
2628         (struct dwarf2_per_cu_data): New.
2629         (dwarf2_max_cache_age): New.
2630         (dwarf2_build_psymtabs_hard): Free cached compilation units
2631         after loading.  Create and manage the list of compilation units.
2632         Remove unnecessary NULL initialization.  Fix indentation.
2633         (psymtab_to_symtab_1): Initialize all of CU.
2634         (dwarf2_read_abbrevs): Set has_form_ref_addr.
2635         (find_partial_die): Use dwarf2_find_containing_comp_unit
2636         and load_comp_unit.
2637         (free_stack_comp_unit): Update comments.  Clear the per-cu
2638         pointer.  Handle aging.
2639         (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2640         (age_cached_comp_units, free_one_cached_comp_unit)
2641         (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2642         (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2643         (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2644         (show_dwarf2_cmd): New.
2645         (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2646         and "maint show dwarf2 max-cache-age".
2647         * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2648         externs.
2649         * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2650         global.
2651
2652 2004-09-20  Jeff Johnston  <jjohnstn@redhat.com>
2653
2654         * dwarf2read.c (typename_concat): Change prototype to accept obstack
2655         and dwarf2_cu struct pointer as arguments.  Change function to use
2656         obstack if provided and use dwarf2_cu to determine language-specific
2657         separator.
2658         (partial_die_parent_scope): Change comment to include java.  Use
2659         new version of typename_concat instead of obconcat.
2660         (partial_die_full_name): Use typename_concat.
2661         (read_namespace): Ditto.
2662         (read_enumeration_type): Use typename_concat instead of obconcat.
2663         (new_symbol): Ditto.
2664         (add_partial_symbol): Enhance tests for C++ to also test for Java.
2665         (guess_structure_name): Ditto.
2666         (read_subroutine_type): Ditto.
2667         (read_structure_type): Ditto.
2668         (is_vtable_name): Add Java support.
2669         (determine_class_name): Switch to new typename_concat call.
2670         (determine_prefix): Switch to new typename_concat call.
2671         * jv-exp.y (FuncStart): New pattern.
2672         (MethodInvocation): Add support for simple function calls.  Change
2673         warning message for other forms of inferior call currently not
2674         supported.
2675         * valarith.c (value_subscript): Treat an array with upper-bound
2676         of -1 as unknown size.
2677
2678 2004-09-20  Daniel Jacobowitz  <dan@debian.org>
2679
2680         * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2681         (lookup_partial_symtab): Use symtab_to_fullname.
2682
2683 2004-09-19  Jim Blandy  <jimb@redhat.com>
2684
2685         * minsyms.c (lookup_minimal_symbol): Doc fix.
2686
2687 2004-09-20  Andrew Cagney  <cagney@gnu.org>
2688
2689         * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2690         CHILD_RESUME.
2691         * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2692         * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2693         KILL_INFERIOR.
2694         * infptrace.c: Update.
2695
2696 2004-09-19  Daniel Jacobowitz  <dan@debian.org>
2697
2698         * symtab.c (output_source_filename): Mark first argument as const.
2699         (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2700         for "info sources" output.
2701
2702 2004-09-20  Mark Kettenis  <kettenis@gnu.org>
2703
2704         * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2705         <machine/vmparam.h>.
2706         (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2707         (register_u_addr): Remove prototype.
2708
2709 2004-09-19  Mark Kettenis  <kettenis@gnu.org>
2710
2711         * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2712         (i386bsd_fetch_inferior_registers): Rename from
2713         fetch_inferior_registers.  Make static.
2714         (i386bsd_store_inferior_registers): Rename from
2715         store_inferior_registers.  Make static.
2716         (i386bsd_target): New function.
2717         * i386bsd-nat.h: New file.
2718         * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2719         "i386bsd-nat.h".
2720         (i386fbsd_resume): Rename from child_resume.  Make static.
2721         (_initialize_i386fbsd_nat): Construct and add target vector.
2722         * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2723         (_initialize_i386nbsd_nat): Construct and add target vector.
2724         * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2725         Remove defines.
2726         * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2727         and fbsd-nat.o.  Remove inftarg.o and fbsd-proc.o.
2728         * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2729         inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
2730         (LOADLIBES): New variable.
2731         * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2732         inf-ptrace.o.  Remove inftarg.o.
2733         * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2734         inf-ptrace.o. Remove inftarg.o.
2735         * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2736         inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o.  Remove inftarg.o.
2737         (LOADLIBES): New variable.
2738         * Makefile.in (i386bsd_nat_h): New variable.
2739         (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2740         dependencies.
2741
2742         * sparc64nbsd-tdep.c: Include "objfiles.h".
2743         (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2744         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
2745         svr4_lp64_fetch_link_map_offsets.
2746         * sparc64obsd-tdep.c: Include "objfiles.h".  Don't include
2747         "nbsd-tdep.h".
2748         (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2749         skip_trampoline_code.  Set solib_svr4_fetch_link_map_offsets to
2750         svr4_lp64_fetch_link_map_offsets.
2751         * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2752         dependencies.
2753
2754         * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2755         * fbsd-nat.h: New file.
2756         * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2757         (fbsd_nat_h): New variable.
2758         (fbsd-nat.o): New dependency.
2759
2760         * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2761         config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2762
2763         * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2764         comment.
2765
2766 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
2767         
2768         * ada-exp.y (type_int): New function to add layer of abstraction
2769         around references to expression types.
2770         (type_long): Ditto.
2771         (type_long_long): Ditto.
2772         (type_float): Ditto.
2773         (type_double): Ditto.
2774         (type_long_double): Ditto.
2775         (type_char): Ditto.
2776         (type_system_address): Ditto.
2777         (simple_exp): Use type_* functions in place of builtin_* 
2778         variables.
2779         (exp): Ditto.
2780         (write_var_from_name): Ditto.
2781         (write_object_renaming): Ditto.
2782         * ada-lang.c (ada_create_fundamental_type): Remove redundant
2783         declaration.
2784         (build_ada_types): Remove, replacing with...
2785         (ada_language_arch_info): New function to initialize primitive
2786         type vector in language_arch_info.
2787         (ada_array_length): Remove use of builtin_type_ada_int.
2788         (value_pos_atr): Ditto.
2789         (ada_evaluate_subexp): Ditto.
2790         (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2791         builtin_type_ada_long_long, builtin_type_ada_char, 
2792         builtin_type_ada_float, builtin_type_ada_double, 
2793         builtin_type_ada_long_double, builtin_type_ada_natural,
2794         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2795         (ada_builtin_types): Remove.
2796         (ada_language_defn): Remove entries for la_builtin_type_vector and
2797         string_char_type and use ada_language_arch_info.
2798         (_initialize_ada_language): Do type-vector initialization along
2799         the lines of c-lang.c.
2800         (ada_create_fundamental_type): Break up line.
2801         (ada_dump_symtab): Remove unused function.
2802         (enum ada_primitive_types): Define.
2803         * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, 
2804         builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, 
2805         builtin_type_ada_float, builtin_type_ada_double, 
2806         builtin_type_ada_long_double, builtin_type_ada_natural,
2807         builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2808         * ada-lex.l: Use type_* functions in place of builtin_* variables.
2809         (processInt): Ditto.
2810         (processReal): Ditto.
2811         (name_lookup): Ditto.
2812         * ada-typeprint.c (print_range): Use builtin_type_int, not
2813         builtin_type_ada_int.
2814         
2815 2004-09-18  Mark Kettenis  <kettenis@gnu.org>
2816
2817         * i386-tdep.c (i386_register_name): Rename regno to regnum.
2818
2819         * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2820         * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2821         * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2822         * configure.in: Improve checks for curses library by checking for
2823         mvwaddstr instead of initscr.  Drop HP curses in favour of
2824         standard curses on HP-UX.
2825         * configure: Regenerated.
2826
2827 2004-09-18  Paul N. Hilfinger  <hilfinger@gnat.com>
2828
2829         * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2830         ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1): 
2831         Minor formatting changes.
2832         (empty_array): Slight rewrite for formatting.
2833         (emit_char,parse,ada_language_defn,build_ada_types,
2834         ada_is_exception_sym, _initialize_ada_language): Move 
2835         definitions around.
2836         (ada_dump_symtab): Remove unused definition.
2837         (ada_maybe_exception_partial_symbol): Remove unused definition.
2838
2839 2004-09-16  Andrew Cagney  <cagney@gnu.org>
2840
2841         * inf-child.c: Include "gdb_string.h".
2842         (inf_child_core_file_to_sym_file): Delete.
2843         (inf_child_target): Set to_fetch_registers and to_store_registers.
2844         * inf-ptrace.c: Include "gdb_string.h".
2845         * Makefile.in: Update all dependencies.
2846
2847         * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2848         problem.
2849
2850 2004-09-14  Joel Brobecker  <brobecker@gnat.com>
2851
2852         * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2853         call to heuristic_proc_desc. Remove code that became redundant
2854         as a consequence.
2855         (read_next_frame_reg): Remove special case for SP_REGNUM.
2856         (set_reg_offset): Fix small typo.
2857         (reset_saved_regs): New procedure.
2858         (mips32_heuristic_proc_desc): No longer compute a fake
2859         procedure descriptor. Compute the full frame cache instead.
2860         Some minor comment reformatting.
2861
2862 2004-09-14  Andrew Cagney  <cagney@gnu.org>
2863
2864         * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2865         maintainer.
2866
2867         * thread-db.c (thread_db_new_objfile): Assume that there is a
2868         child process.
2869
2870 2004-09-13  Jim Blandy  <jimb@redhat.com>
2871
2872         * valops.c (value_assign): Move 'buffer' to the enclosing block,
2873         so that its storage isn't referenced after its lifetime ends.
2874
2875         * valops.c (value_assign): 'use_buffer' is initialized to zero,
2876         and never assigned to.   Delete it, and the 'if (use_buffer)'
2877         clauses.  Delete 'raw_buffer', since it is now unused.
2878
2879 2004-09-13  Andrew Cagney  <cagney@gnu.org>
2880
2881         * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2882         * configure: Re-generate.
2883         * nlm/Makefile.in (TAGS): Update.
2884         * Makefile.in (TAGS): Update.
2885         * config/vax/nbsd.mt (TM_FILE): Update.
2886         * config/sparc/vxworks.mt (TM_FILE): Update.
2887         * config/sparc/sol2.mt (TM_FILE): Update.
2888         * config/sparc/sol2-64.mt (TM_FILE): Update.
2889         * config/sparc/obsd64.mt (TM_FILE): Update.
2890         * config/sparc/obsd.mt (TM_FILE): Update.
2891         * config/sparc/nbsd64.mt (TM_FILE): Update.
2892         * config/sparc/nbsd.mt (TM_FILE): Update.
2893         * config/sparc/linux64.mt (TM_FILE): Update.
2894         * config/sparc/linux.mt (TM_FILE): Update.
2895         * config/sparc/fbsd.mt (TM_FILE): Update.
2896         * config/sh/wince.mt (TM_FILE): Update.
2897         * config/sh/nbsd.mt (TM_FILE): Update.
2898         * config/sh/linux.mt (TM_FILE): Update.
2899         * config/sh/embed.mt (TM_FILE): Update.
2900         * config/s390/s390.mt (TM_FILE): Update.
2901         * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2902         * config/rs6000/rs6000.mt (TM_FILE): Update.
2903         * config/rs6000/aix4.mt (TM_FILE): Update.
2904         * config/powerpc/vxworks.mt (TM_FILE): Update.
2905         * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2906         * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2907         * config/powerpc/obsd.mt (TM_FILE): Update.
2908         * config/powerpc/nbsd.mt (TM_FILE): Update.
2909         * config/powerpc/linux.mt (TM_FILE): Update.
2910         * config/powerpc/aix.mt (TM_FILE): Update.
2911         * config/pa/obsd.mt (TM_FILE): Update.
2912         * config/pa/linux.mt (TM_FILE): Update.
2913         * config/pa/hppahpux.mt (TM_FILE): Update.
2914         * config/pa/hppa64.mt (TM_FILE): Update.
2915         * config/pa/hppa.mt (TM_FILE): Update.
2916         * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2917         * config/mips/wince.mt (TM_FILE): Update.
2918         * config/mips/vxmips.mt (TM_FILE): Update.
2919         * config/mips/nbsd.mt (TM_FILE): Update.
2920         * config/mips/linux.mt (TM_FILE): Update.
2921         * config/mips/irix6.mt (TM_FILE): Update.
2922         * config/mips/irix5.mt (TM_FILE): Update.
2923         * config/mips/embed.mt (TM_FILE): Update.
2924         * config/m68k/vxworks68.mt (TM_FILE): Update.
2925         * config/m68k/st2000.mt (TM_FILE): Update.
2926         * config/m68k/os68k.mt (TM_FILE): Update.
2927         * config/m68k/obsd.mt (TM_FILE): Update.
2928         * config/m68k/nbsd.mt (TM_FILE): Update.
2929         * config/m68k/monitor.mt (TM_FILE): Update.
2930         * config/m68k/linux.mt (TM_FILE): Update.
2931         * config/m68k/cisco.mt (TM_FILE): Update.
2932         * config/ia64/linux.mt (TM_FILE): Update.
2933         * config/ia64/aix.mt (TM_FILE): Update.
2934         * config/ia64/ia64.mt (TM_FILE): Update.
2935         * config/i386/vxworks.mt (TM_FILE): Update.
2936         * config/i386/obsd64.mt (TM_FILE): Update.
2937         * config/i386/obsd.mt (TM_FILE): Update.
2938         * config/i386/nto.mt (TM_FILE): Update.
2939         * config/i386/nbsd64.mt (TM_FILE): Update.
2940         * config/i386/nbsd.mt (TM_FILE): Update.
2941         * config/i386/linux64.mt (TM_FILE): Update.
2942         * config/i386/linux.mt (TM_FILE): Update.
2943         * config/i386/i386sol2.mt (TM_FILE): Update.
2944         * config/i386/i386lynx.mt (TM_FILE): Update.
2945         * config/i386/fbsd64.mt (TM_FILE): Update.
2946         * config/i386/fbsd.mt (TM_FILE): Update.
2947         * config/i386/cygwin.mt (TM_FILE): Update.
2948         * config/h8300/h8300.mt (TM_FILE): Update.
2949         * config/frv/frv.mt (TM_FILE): Update.
2950         * config/cris/cris.mt (TM_FILE): Update.
2951         * config/arm/wince.mt (TM_FILE): Update.
2952         * config/arm/nbsd.mt (TM_FILE): Update.
2953         * config/arm/linux.mt (TM_FILE): Update.
2954         * config/arm/embed.mt (TM_FILE): Update.
2955         * config/alpha/nbsd.mt (TM_FILE): Update.
2956         * config/alpha/fbsd.mt (TM_FILE): Update.
2957         * config/alpha/alpha.mt (TM_FILE): Update.
2958         * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2959         * config/alpha/alpha-linux.mt (TM_FILE): Update.
2960
2961         Eliminate event_loop_p, always has the value 1.
2962         * defs.h (event_loop_p): Delete macro.
2963         * breakpoint.c (until_break_command): Simplify.
2964         * utils.c (prompt_for_continue): Simplify.
2965         * tracepoint.c (read_actions): Simplify.
2966         * top.c (throw_exception, execute_command, gdb_readline_wrapper) 
2967         (gdb_rl_operate_and_get_next, command_line_input, get_prompt) 
2968         (set_prompt, init_main): Simplify.
2969         (init_signals, disconnect): Delete, unused.
2970         * remote.c (remote_async_resume) 
2971         (extended_remote_async_create_inferior): Simplify.
2972         * mi/mi-interp.c (mi_input): Delete, unused.
2973         (mi_interpreter_resume, mi_command_loop): Simplify.
2974         * interps.c (current_interp_command_loop): Simplify.
2975         * infrun.c (proceed): Simplify.
2976         * infcmd.c (run_command, continue_command, step_1, jump_command)
2977         (until_command, advance_command, finish_command)
2978         (interrupt_target_command): Simplify.
2979         * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2980
2981         * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2982         * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2983         * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2984         * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2985         * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2986         * mips-tdep.c (mips_dump_tdep): Do not print same.
2987
2988 2004-09-12  Andrew Cagney  <cagney@gnu.org>
2989
2990         * valprint.c (print_longest): Use fputs_filtered.  Make "val"
2991         const.
2992         * Makefile.in (valprint.o): Delete explict rule.
2993
2994         * config/m68k/nbsdelf.mh: Add missing trailing newline.  Problem
2995         reported by Dave Anderson.
2996
2997         * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2998
2999         * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3000
3001 2004-09-12  Salvador E. Tropea  <set@users.sf.net>
3002             Andrew Cagney  <cagney@gnu.org>
3003
3004         * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3005         (mi_cmd_data_list_register_values)
3006         (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3007         the register number computation.
3008
3009 2004-09-12  Andrew Cagney  <cagney@gnu.org>
3010
3011         * ppcnbsd-nat.c: Include "inf-ptrace.h".
3012         (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3013         (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3014         (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3015         target.
3016         * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3017         inf-ptrace.o and inf-child.o.
3018         * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3019         * Makefile.in: Update dependencies.
3020         
3021 2004-09-11  Andrew Cagney  <cagney@gnu.org>
3022
3023         * language.c (hex_string, hex_string_custom): Move from here ...
3024         * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3025         (CELLSIZE): Increase to 50.
3026         * language.h (hex_string, hex_string_custom): Move from here ...
3027         * defs.h: ... to here.
3028         * Makefile.in: Update all dependencies.
3029         
3030 2004-09-11  Paul N. Hilfinger  <hilfinger@gnat.com>
3031
3032         * language.c (local_hex_format_custom): Remove.
3033         (local_hex_string): Rename to hex_string, use C format, and move to
3034         utils.c
3035         (local_hex_string_custom): Rename to hex_string_custom and change
3036         interface.  Now uses C format.  Move to utils.c
3037         (local_octal_format_custom): Remove.
3038         (local_decimal_format_custom): Remove.
3039         (unknown_language_defn): Remove language-specific number 
3040         formatting entries.
3041         (auto_language_defn): Ditto.
3042         (local_language_defn): Ditto.
3043         * language.h (struct language_format_info): Delete declaration.
3044         (struct language_defn): Remove language_format_info fields
3045         la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3046         (local_binary_format): Remove macro.
3047         (local_binary_format_prefix): Remove macro.
3048         (local_binary_format_specifier): Remove macro.
3049         (local_binary_format_suffix): Remove macro.
3050         (local_octal_format): Remove macro.
3051         (local_octal_format_prefix): Remove macro.
3052         (local_octal_format_specifier): Remove macro.
3053         (local_octal_format_suffix): Remove macro.
3054         (local_decimal_format): Remove macro.
3055         (local_decimal_format_prefix): Remove macro.
3056         (local_decimal_format_specifier): Remove macro.
3057         (local_decimal_format_suffix): Remove macro.
3058         (local_hex_format): Remove macro.
3059         (local_hex_format_prefix): Remove macro.
3060         (local_hex_format_specifier): Remove macro.
3061         (local_hex_format_suffix): Remove macro.
3062         (local_decimal_format_custom): Remove.
3063         (local_octal_format_custom): Remove.
3064         (local_hex_format_custom): Remove.
3065         (local_hex_string): Rename to hex_string and move to defs.h.
3066         (local_hex_string_custom): Rename to hex_string_custom, change
3067         interface, and move to defs.h.
3068         * utils.c: (int_string): New function.
3069         (hex_string): New function (from language.c).
3070         (hex_string_custom): New function (from language.c).
3071         (octal2str): New function.
3072         (decimal2str): Add width parameter.
3073         (paddr_u): Use new decimal2str interface.
3074         (paddr_d): Ditto.
3075         * defs.h (hex_string): Declare.
3076         (hex_string_custom): Declare.
3077         (int_string): Declare.
3078         * printcmd.c (print_scalar_formatted): Remove localized binary
3079         formatting.
3080         * valprint.c (print_longest): Use int_string.
3081         (print_floating): Use C hex format.
3082         (print_hex_chars): Ditto.
3083         (print_binary_chars): Remove language-specific formatting.
3084         (print_octal_chars): Use C octal format.
3085         (print_decimal_chars): Delocalize format.
3086         (print_decimal): Remove.
3087         * ada-lang.c (ada_language_defn): Remove language-specific number 
3088         formatting entries.
3089         * p-lang.c (pascal_language_defn): Ditto.
3090         * c-lang.c (c_language_defn): Ditto.
3091         (cplus_language_defn): Ditto.
3092         (asm_language_defn): Ditto.
3093         (minimal_language_defn): Ditto.
3094         * f-lang.c (f_language_defn): Ditto.
3095         * jv-lang.c (java_language_defn): Ditto.
3096         * m2-lang.c (m2_language_defn): Ditto.
3097         * scm-lang.c (scm_language_defn): Ditto.
3098         * objc-lang.c (objc_language_defn): Ditto.
3099         * memattr.c (mem_info_command): Use renamed hex_string_custom with
3100         new interface.
3101         * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3102         * ui-out.c (ui_out_field_core_addr): Ditto.
3103         * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3104         * exec.c (print_section_info): Ditto.
3105         * i387-tdep.c (print_i387_status_word): Ditto.
3106         (print_i387_control_word): Ditto.
3107         (i387_print_float_info): Ditto.
3108         * maint.c (maint_print_section_info): Ditto.
3109         * solib.c (info_sharedlibrary_command): Ditto.
3110         * somsolib.c (som_sharedlibrary_info_command): Ditto.
3111         * symtab.c (print_msymbol_info): Ditto.
3112         * tracepoint.c (tracepoints_info): Ditto.
3113         * solib-frv.c (lm_base): Ditto.
3114         (frv_current_sos): Ditto.
3115         (enable_break2): Ditto.
3116         (enable_break): Ditto.
3117         * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3118         (process_one_symbol): Ditto.
3119         * infcmd.c (program_info): Ditto.
3120         * mdebugread.c (parse_partial_symbols): Ditto.
3121         * symfile.c (add_symbol_file_command): Ditto.
3122         * cli/cli-cmds.c (edit_command): Ditto.
3123         (list_command): Ditto.
3124         * infcall.c (call_function_by_hand): Ditto.
3125         * remote-vx.c (vx_run_files_info): Ditto.
3126         (vx_wait): Ditto.
3127         (vx_attach): Ditto.
3128         (vx_detach): Ditto.
3129         (vx_kill): Ditto.
3130         * aix-thread.c (pdc_symbol_addrs): Ditto.
3131         (pdc_read_regs): Ditto.
3132         (pdc_write_regs): Ditto.
3133         (pdc_read_data): Ditto.
3134         (pdc_write_data): Ditto.
3135         * d10v-tdep.c (display_trace): Ditto.
3136         * rs6000-nat.c (find_toc_address): Ditto.
3137         * aix-thread.c: Don't include language.h.
3138         * buildsym.c: Ditto.
3139         * dbxread.c: Ditto.
3140         * mdebugread.c: Ditto.
3141         * rs6000-nat.c: Ditto.
3142         * buildsym.c (make_blockvector): Use renamed hex_string.
3143         
3144 2004-09-10  Jason Molenda  (jmolenda@apple.com)
3145
3146         * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3147         chars after 'if' or 'while' commands in user-defined commands.
3148
3149 2004-09-08  Jim Blandy  <jimb@redhat.com>
3150
3151         Fix bug reported and analyzed by Olivier Crete:
3152         * symfile.c (copy_section_addr_info): New function.
3153         (symbol_file_add_with_addrs_or_offsets): Use it to save the
3154         original set of address arguments, instead of handwritten code
3155         that uses one length to allocate and a different length to
3156         initialize.  Use make_cleanup_free_section_addr_info.
3157         * symfile.h (copy_section_addr_info): New declaration.
3158         * utils.c: #include "symfile.h".
3159         (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3160         New functions.
3161         * defs.h (make_cleanup_free_section_addr_info): New declaration.
3162         * Makefile.in (utils.o): Update dependencies.
3163
3164 2004-09-08  Andrew Cagney  <cagney@gnu.org>
3165
3166         * thread-db.c (keep_thread_db): Delete.
3167         (thread_db_new_objfile, thread_db_create_inferior)
3168         (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3169
3170 2004-09-08  Mark Kettenis  <kettenis@gnu.org>
3171
3172         * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3173         (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3174         (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3175         (i386_frameless_signal_p): Remove prototype.
3176         * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3177         (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3178         I386_SSE_NUM_REGS.
3179         * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3180         instead of FP0_REGNUM.
3181         (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3182         of FP0_REGNUM and FPC_REGNUM.
3183
3184         * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3185         (sunos_solib_create_inferior_hook): Don't call
3186         sunos_relocate_main_executable.
3187
3188         * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3189         solib_svr4_fetch_link_map_offsets to
3190         svr4_ilp32_fetch_link_map_offsets.
3191         * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3192         (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3193         svr4_ilp32_fetch_link_map_offsets.
3194         * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3195
3196 2004-09-07  Jim Blandy  <jimb@redhat.com>
3197
3198         * frame.h (frame_register): Doc fix.
3199
3200 2004-09-07  Andrew Cagney  <cagney@gnu.org>
3201
3202         * vx-share/wait.h: Delete #ifdef USG.
3203         * utils.c (request_quit): Ditto.
3204         * tui/tui.c (tui_reset): Ditto.
3205         * remote.c: Ditto.
3206         * remote-sds.c: Ditto.
3207         * remote-rdi.c: Ditto.
3208         * mdebugread.c: Ditto.
3209         * m68klinux-nat.c: Ditto.
3210         * infttrace.c: Ditto.
3211         * infptrace.c: Ditto.
3212         * i386v-nat.c: Ditto.
3213         * exec.c: Ditto.
3214         * dbxread.c: Ditto.
3215         * core-aout.c: Ditto.
3216
3217 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
3218
3219         * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3220         heuristic_proc_desc.
3221         (mips_insn32_frame_cache): Likewise.
3222
3223 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3224
3225         * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3226         left behind by error.
3227
3228 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3229
3230         * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3231         * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3232
3233 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3234
3235         * config/rs6000/xm-aix4.h: Remove this file.
3236         * config/rs6000/aix4.mh (XM_FILE): Delete.
3237
3238 2004-09-04  Joel Brobecker  <brobecker@gnat.com>
3239
3240         * config/rs6000/xm-rs6000.h: Remove this file.
3241         * config/rs6000/rs6000.mh (XM_FILE): Remove.
3242
3243 2004-09-03  Andrew Cagney  <cagney@gnu.org>
3244
3245         * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3246         (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3247         only use.
3248
3249         * mips-tdep.c (temp_saved_regs): Delete.
3250         (set_reg_offset): Replace saved_regs parameter with this_cache.
3251         (heuristic_proc_desc, mips16_heuristic_proc_desc)
3252         (mips32_heuristic_proc_desc): Add this_cache parameter.
3253         (mips_insn32_frame_cache, mips_insn16_frame_cache)
3254         (after_prologue): Pass a NULL this_cache.
3255
3256         * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3257         non-kernel trap prologues.
3258
3259         * mips-tdep.c (find_proc_desc): Delete function.
3260         (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3261         simplify.
3262         (mips_insn16_frame_cache): Replace find_proc_desc with code from
3263         mips_insn32_frame_cache.
3264
3265         * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3266         Simplify as NEXT_FRAME is NULL.
3267         (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3268
3269         * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3270         local variable.
3271         (mips_skip_prologue): Update.
3272
3273         * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3274         "cur_frame" parameter.
3275         (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3276         (mips_insn32_frame_cache, find_proc_desc): Update
3277
3278         * config/vax/nm-obsd.h: Delete file.
3279         * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3280         * config/vax/nm-nbsd.h: Delete file.
3281         * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3282         * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3283         * config/sh/nm-nbsd.h: Delete file.
3284         * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3285         * config/rs6000/nm-rs6000ly.h: Delete file.
3286         * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3287         * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3288         * config/powerpc/nm-obsd.h: Delete file.
3289         * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3290         * config/powerpc/nm-nbsd.h: Delete file.
3291         * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3292         * config/pa/nm-obsd.h: Delete file.
3293         * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3294         * config/mips/nm-nbsd.h: Delete file.
3295         * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3296         * config/m88k/nm-obsd.h: Delete file.
3297         * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3298         * config/m68k/nm-nbsd.h: Delete file.
3299         * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3300         * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3301         * config/i386/nm-nbsd.h: Delete file.
3302         * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3303         * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3304         * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3305         * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3306         * config/i386/nm-i386lynx.h: Delete file.
3307         * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3308         * config/arm/nm-nbsd.h: Delete file.
3309         * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3310         * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3311
3312         * config/i386/tm-fbsd.h: Delete file.
3313         * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3314         * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3315
3316         * config/rs6000/tm-rs6000-aix4.h: Delete file.
3317         * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3318         * config/rs6000/aix4.mt (TM_FILE): Set to
3319         config/rs6000/tm-rs6000.h.
3320         * config/powerpc/tm-ppc-aix.h: Delete file.
3321         * config/powerpc/aix.mt (TM_FILE): Set to
3322         config/rs6000/tm-rs6000.h.
3323         * config/m68k/tm-linux.h: Delete file.
3324         * config/m68k/linux.mt (TM_FILE): Set to solib.h
3325         * config/i386/tm-linux64.h: Delete file.
3326         * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3327         * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3328         
3329         * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3330         * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3331         * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3332         * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3333         * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3334         * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3335         * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3336         * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper. 
3337         * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3338
3339         * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3340         gdb_host_cpu.
3341
3342 2004-09-02  Joel Brobecker  <brobecker@gnat.com>
3343
3344         * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3345         Minor reformatting. Some code factoring.
3346
3347 2004-09-02  Andrew Cagney  <cagney@gnu.org>
3348
3349         * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3350         * config/vax/tm-nbsd.h: Delete file.
3351         * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3352         * config/sparc/tm-vxworks.h: Delete file.
3353         * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3354         * config/sparc/tm-nbsd.h: Delete file.
3355         * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3356         * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3357         * config/sparc/tm-linux.h: Delete file.
3358         * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3359         * config/s390/tm-linux.h: Delete file.
3360         * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3361         * config/pa/tm-bsd.h: Delete file.
3362         * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3363         * config/m68k/tm-obsd.h: Delete file.
3364         * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3365         * config/m68k/tm-nbsd.h: Delete file.
3366         * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3367         * config/i386/tm-vxworks.h: Delete file.
3368         * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3369         * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3370         * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3371         * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3372         * config/i386/tm-nbsd.h: Delete file.
3373         * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3374         * config/i386/tm-i386lynx.h: Delete file.
3375         * config/cris/cris.mt (TM_FILE): Set to solib.h.
3376         * config/cris/tm-cris.h: Delete file.
3377
3378         * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3379         * configure: Re-generate.
3380         * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3381         * config/arm/tm-nbsd.h: Delete file.
3382         
3383         * config/powerpc/tm-ppcle-sim.h: Delete.
3384         * config/powerpc/tm-ppcle-eabi.h: Delete.
3385         * config/powerpc/tm-nbsd.h: Delete.
3386         * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3387         * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3388         tm-ppcle-eabi.h.
3389
3390         * config/i386/nto.mh (NAT_FILE): Delete.
3391         * config/i386/nm-nto.h: Delete.
3392
3393         * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3394         * config/m68k/tm-os68k.h: Ditto.
3395         * config/m68k/tm-monitor.h: Ditto.
3396         * config/m68k/tm-cisco.h: Ditto.
3397         * config/m68k/st2000.mt (TM_FILE): Delete.
3398         * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3399         * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3400         * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3401         * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3402
3403         * config/m68k/tm-st2000.h: Delete.
3404         * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3405         * config/sparc/fbsd.mt (TM_FILE): Delete.
3406         * config/sparc/tm-fbsd.h: Delete.
3407
3408         * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3409         * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM) 
3410         (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3411
3412         * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3413         GDB_TM_FILE and GDB_XM_FILE.
3414         * gdbarch.c: Re-generate.       
3415         * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3416         quotes in macro definition.
3417         * configure.in: Re-generate.
3418
3419         * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3420         validating architecture methods.
3421         * gdbarch.c: Re-generate.
3422         
3423         * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3424         and GDB_TM_FILE.  Check for GDB_TM_FILE instead of
3425         GDB_MULTI_ARCH_PARTIAL.
3426         * gdbarch.h: Re-generate.
3427         
3428         * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3429         * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3430         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3431         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3432         * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3433         * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3434         * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3435         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3436         * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3437         * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3438         * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3439         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3440
3441 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3442
3443         * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3444         and main_func_highpc.
3445         (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3446         * objfiles.c (init_entry_point_info, objfile_relocate): Update
3447         * nlmread.c (nlm_symfile_read): Update.
3448
3449 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3450
3451         * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3452         (mips_insn32_frame_cache): Inline call to find_proc_desc.
3453         (find_proc_desc): Remove dead code.
3454
3455 2004-09-01  Joel Brobecker  <brobecker@gnat.com>
3456
3457         * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3458
3459 2004-09-01  Jeff Johnston  <jjohnstn@redhat.com>
3460
3461         * observer.sh: Add struct so_list declaration.
3462         * Makefile.in: Add dependencies on observer.h for solib.c and
3463         breakpoint.c.
3464         * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3465         function.
3466         (_initialize_breakpoint): Register 
3467         disable_breakpoints_in_unloaded_shlib as an observer of the 
3468         "solib unloaded" observation event.
3469         (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3470         call decode_line_1 so unfound breakpoint errors are silent.
3471         * solib.c (update_solib_list): When a solib is discovered to have
3472         been unloaded by the program, notify all observers of the
3473         "solib unloaded" observation event.
3474
3475 2004-09-01  Andrew Cagney  <cagney@gnu.org>
3476
3477         * frame.c: Include "objfiles.h".
3478         (inside_main_func): New function.
3479         (get_prev_frame): Use new inside_main_func.
3480         * Makefile.in (frame.o): Update dependencies.
3481         * defs.h (inside_main_func): Delete declaration.
3482         * blockframe.c (inside_main_func): Delete function.
3483
3484 2004-08-31  Jim Blandy  <jimb@redhat.com>
3485
3486         * dwarf2read.c (is_vtable_name): New function, based on logic from
3487         read_structure_type, but passing the correct length to strncmp,
3488         and using 'sizeof' instead of 'strlen'.
3489         (read_structure_type): Call it.
3490
3491 2004-08-31  Joel Brobecker  <brobecker@gnat.com>
3492
3493         * config/powerpc/aix.mh: Add comment.
3494
3495 2004-08-31  Paul GIlliam  <pgilliam@us.ibm.com>
3496
3497         * MAINTAINERS: Add self to Write-After-Approval.
3498
3499 2004-08-30  Manoj Iyer  <manjo@austin.ibm.com>
3500
3501         * MAINTAINERS: Add self to Write-After-Approval.
3502
3503 2004-08-30  Andrew Cagney  <cagney@gnu.org>
3504
3505         Fix PR breakpoints/1757.
3506         * infrun.c (struct execution_control_state): Replace
3507         remove_breakpoints_on_following_step with
3508         step_after_step_resume_breakpoint.
3509         (init_execution_control_state): Update.
3510         (handle_inferior_event): For signals, when stepping off a
3511         breakpoint, set step_after_step_resume_breakpoint.  When
3512         BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3513         (keep_going): Delete code handling
3514         remove_breakpoints_on_following_step.
3515
3516 2004-08-29  David Lecomber  <david@streamline-computing.com>
3517         
3518         Fix PR gdb/648
3519         * language.h (enum array_ordering): New enum.
3520         * language.h (struct language_defn): New la_array_ordering 
3521         attribute.
3522         * language.c (unknown_language_defn, auto_language_defn)
3523         (local_language_defn): Ditto.
3524         * ada-lang.c (ada_language_defn): Ditto.
3525         * c-lang.c (c_language_defn, cplus_language_defn)
3526         (asm_language_defn, minimal_language_defn): Ditto.
3527         * f-lang.c (f_language_defn): Ditto.
3528         * jv-lang.c (java_language_defn): Ditto.
3529         * m2-lang.c (f_language_defn): Ditto.
3530         * objc-lang.c (objc_language_defn): Ditto.
3531         * p-lang.c (pascal_language_defn): Ditto.
3532         * scm-lang.c (scm_language_defn): Ditto.
3533         * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3534         oriented large to small in type structure.
3535         * dwarf2read.c (read_array_order): New function.
3536         (read_array_type): Use read_array_order to check row/column
3537         major ordering.
3538
3539 2004-08-27  Nathan J. Williams  <nathanw@wasabisystems.com>
3540
3541         * target.c (target_resize_to_sections): Check
3542         current_target.to_sections for an old value when updating.
3543
3544 2004-08-27  Joel Brobecker  <brobecker@gnat.com>
3545
3546         * procfs.c (dbx_link_bpt_addr): New static global variable.
3547         (dbx_link_shadow_contents): New static global variable.
3548         (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3549         (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3550         if we just hit it.
3551         (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3552         Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3553         from run to run.
3554         (procfs_create_inferior): Remove syssgi syscall-exit notifications
3555         after the inferior has been forked.
3556         (remove_dbx_link_breakpoint): New function.
3557         (dbx_link_addr): New function.
3558         (insert_dbx_link_bpt_in_file): New function.
3559         (insert_dbx_link_bpt_in_region): New function.
3560         (insert_dbx_link_breakpoint): New function.
3561         (proc_trace_syscalls_1): New function, extracted from
3562         proc_trace_syscalls.
3563         (proc_trace_syscalls): Replace extract code by call to
3564         proc_trace_syscalls_1.
3565         * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3566         is no longer valid.
3567
3568 2004-08-25  Jim Blandy  <jimb@redhat.com>
3569
3570         * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3571
3572 2004-08-25  Andrew Cagney  <cagney@gnu.org>
3573
3574         * infrun.c (struct execution_control_state): Delete field
3575         "stepping_through_sigtramp".
3576         (init_execution_control_state): Do not set same.
3577         (context_switch): Do not pass same to save_infrun_state and
3578         load_infrun_state.
3579         * gdbthread.h (struct thread_info): Delete field
3580         stepping_through_sigtramp.
3581         (save_infrun_state, load_infrun_state): Delete parameter
3582         stepping_through_sigtramp.
3583         * thread.c (load_infrun_state, save_infrun_state): Update.
3584
3585         * infrun.c: Re-indent.  Move expression operators to the beginning
3586         of the line.  Remove long disabled #if 0 code.
3587
3588 2004-08-24  Andrew Cagney  <cagney@gnu.org>
3589
3590         * doublest.h (floatformat_ieee_quad): Rename
3591         floatformat_ia64_quad.
3592         * doublest.c (floatformat_ieee_quad): Rename
3593         floatformat_ia64_quad.
3594         (_initialize_doublest): Update.
3595
3596 2004-08-24  Jim Blandy  <jimb@redhat.com>
3597
3598         * dwarf2expr.h (struct dwarf_expr_context): New members
3599         'num_pieces' and 'pieces', for returning the result of an
3600         expression that uses DW_OP_piece.
3601         (struct dwarf_expr_piece): New struct type.
3602         * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3603         pieces.
3604         (free_dwarf_expr_context): Free pieces, if any.
3605         (add_piece): New function.
3606         (execute_stack_op): Implement DW_OP_piece.
3607         * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3608         expression is a list of pieces, print an error message.
3609         (dwarf2_loc_desc_needs_frame): If the expression yields
3610         pieces, and any piece is in a register, then we need a frame.
3611
3612         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3613         the stack until we've decided what sort of result the evaluation
3614         has produced.  Use separate variables, with more specific names.
3615
3616 2004-08-23  Richard Earnshaw  <rearnsha@arm.com>
3617
3618         * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3619         (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3620         (arm_netbsd_init_abi_common): Register them.
3621
3622 2004-08-22  Mark Kettenis  <kettenis@gnu.org>
3623
3624         * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3625
3626         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3627         safe_frame_unwind_memory instead of target_read_memory.
3628
3629         * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3630         Reorder includes.
3631         (fetch_register, store_register): Remove prototypes.
3632         (child_resume): Reorganize code and comments such that it is
3633         grouped a bit more logically.
3634         (attach): Explicitly compare errno against 0.
3635         (detach): Likewise.  Use perror_with_name instead of
3636         print_sys_errmsg.
3637         * Makefile.in (infptrace.o): Update dependencies.
3638
3639         * ia64-linux-nat.c: Update copyright year.
3640         (fetch_debug_register, store_debug_register)
3641         (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3642         PTRACE_TYPE_ARG3.
3643         * config/ia64/nm-linux.h: Update copyright year.
3644          (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3645
3646         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3647         from CORE_ADDR to struct frame_info *.  Use
3648         safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3649         (amd64_linux_sigtramp_p): Adjust for changed signature of
3650         and64_linux_sigtramp_start
3651
3652         * gdb_ptrace.h: GNU/Linux.
3653
3654         * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3655         Remove defines.
3656
3657         * infptrace.c: Include "gdb_assert.h".
3658         (PTRACE_XFER_TYPE): Remove define.
3659         (offsetof): Only define if U_REGS_OFFSET isn't defined.
3660         (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3661         Tweak comment.
3662         (fetch_inferior_registers, store_inferior_registers): Remove
3663         redundant culry braces.  Tweak comment.  s/regno/regnum.
3664         * Makefile.in (infptrace.o): Update dependencies.
3665
3666         * configure.in: Change test for return type of ptrace to default
3667         to `long' instead of `int'.
3668         * configure: Regenerate.        
3669
3670 2004-08-21  Mark Kettenis  <kettenis@gnu.org>
3671
3672         * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3673
3674         * configure.in: Check for ttrace function.
3675         * configure, config.in: Regenerate.     
3676
3677         * gdb_ptrace.h: New file.
3678         * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3679         <sys/ptrace.h>.
3680         (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3681         (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3682         (attach): Don't define PT_ATTACH.
3683         (detach): Don't define PT_DETACH.
3684         * Makefile.in (gdb_ptrace_h): New variable.
3685         (infptrace.o): Update dependencies.
3686
3687 2004-08-16  Mark Kettenis  <kettenis@gnu.org>
3688
3689         * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3690         instead of `int' if not already defined.
3691         (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3692         PTRACE_TYPE_ARG3.
3693         * infptrace.c (call_ptrace): Revert change that replaced
3694         PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3695
3696 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
3697
3698         * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3699         Remove defines.
3700
3701         * linux-nat.c (kill_inferior): Add missing third and fourth
3702         arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
3703
3704         * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3705         PTRACE_TYPE_RET.
3706
3707         * proc-why.c (proc_prettyfprint_why): Fix format string.
3708
3709         * solib-osf.c (osf_current_sos): Remove unsused label.
3710
3711         * configure.in: Add <ncurses/ncurses.h> to the list of possible
3712         curses headers.
3713         * configure, config.in: Regenerate.     
3714         * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3715         <ncurses/ncurses.h>.
3716
3717         * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3718         * config/nm-nbsd.h: Update copyright year.
3719         (PTRACE_ARG3_TYPE): Remove define.
3720
3721         * sparc-nat.c (fetch_inferior_registers)
3722         (store_inferior_registers, sparc_xfer_wcookie): 
3723         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3724
3725         * alphabsd-nat.c (fetch_inferior_registers):
3726         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3727         PTRACE_TYPE_ARG3.
3728         * amd64bsd-nat.c (fetch_inferior_registers)
3729         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3730         PTRACE_TYPE_ARG3.
3731         * armnbsd-nat.c: Update copyright year.
3732         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3733         (store_register, store_regs, store_fp_register, store_fp_regs):
3734         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3735         * hppabsd-nat.c (fetch_inferior_registers)
3736         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3737         PTRACE_TYPE_ARG3.
3738         * i386bsd-nat.c (fetch_inferior_registers)
3739         (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3740         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3741         * m68kbsd-nat.c (fetch_inferior_registers)
3742         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3743         PTRACE_TYPE_ARG3.
3744         * m88kbsd-nat.c (fetch_inferior_registers)
3745         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3746         PTRACE_TYPE_ARG3.
3747         * mipsnbsd-nat.c: Update copyright year.
3748         (fetch_inferior_registers, store_inferior_registers):
3749         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3750         * ns32knbsd-nat.c: Update copyright year.
3751         (fetch_inferior_registers, store_inferior_registers):
3752         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3753         * ppcnbsd-nat.c (fetch_inferior_registers):
3754         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3755         PTRACE_TYPE_ARG3.
3756         * ppcobsd-nat.c (fetch_inferior_registers):
3757         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3758         PTRACE_TYPE_ARG3.
3759         * shnbsd-nat.c: Update copyright year.
3760         (fetch_inferior_registers, store_inferior_registers):
3761         Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3762         * vaxbsd-nat.c (fetch_inferior_registers)
3763         (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3764         PTRACE_TYPE_ARG3.
3765         
3766         * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3767         PTRACE_TYPE_ARG3.
3768         * infptrace.c (call_ptrace, child_resume, attach, detach)
3769         (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3770         (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3771         * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3772         PTRACE_TYPE_ARG3.
3773
3774 2004-08-14  Mark Kettenis  <kettenis@gnu.org>
3775
3776         * defs.h: Remove out-of-date comment.
3777         [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3778         [!GETENV_PROVIDED] (getenv): Remove prototype.
3779
3780         * standalone.c: Remove file.
3781         * Makefile.in (standalone.o): Remove dependency.
3782
3783         * i386-linux-nat.c (dummy_sse_values): Remove function and
3784         prototype.
3785         (i386_linux_dr_get): Fix typo in comment.
3786         (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3787
3788         * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3789
3790         * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3791         from declaration.
3792         * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3793         from definition.
3794
3795 2004-08-13  Mark Kettenis  <kettenis@gnu.org>
3796
3797         * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3798         parenthesis in definition.
3799         * configure: Regenerated.
3800
3801 2004-08-12  Michael Chastain  <mec.gnu@mindspring.com>
3802
3803         * PROBLEMS: Mention build/1411.
3804
3805 2004-08-09  Robert Millan  <robertmh@gnu.org>
3806
3807         Committed by Nathanael Nerode.
3808         * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3809         * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3810
3811 2004-08-12  Andrew Cagney  <cagney@gnu.org>
3812
3813         * NEWS: Mention fixes in GDB 6.2.1.
3814         * PROBLEMS: Remove mention of mips-irix.
3815
3816 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3817
3818         * config/powerpc/xm-aix.h: Delete.
3819         * config/powerpc/aix.mh (MH_FILE): Remove.
3820         * config/powerpc/aix432.mh (MH_FILE): Remove.
3821
3822 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3823
3824         * config/powerpc/aix.mh: Remove obsolete comment.
3825         * config/powerpc/aix432.mh: Likewise.
3826
3827 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3828
3829         * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3830
3831 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3832
3833         * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3834         this file is now empty.
3835         * config/xm-aix4.h: Remove, this file is no longer included
3836         anywhere.
3837
3838 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3839
3840         * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3841         that file is now empty.
3842         (termdef): Remove prototype, function no longer used.
3843
3844 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3845
3846         * doc/gdbint.texinfo (Host Definition): Remove documentation
3847         for USE_O_NOCTTY, no longer used.
3848         * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3849         * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3850
3851 2004-08-11  Joel Brobecker  <brobecker@gnat.com>
3852
3853         * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3854         * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3855         * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3856
3857 2004-08-11  Mark Kettenis  <kettenis@gnu.org>
3858
3859         * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3860         instead of FIVE_ARG_PTRACE.
3861
3862         * inflow.c (O_NOCTTY): Define to zero if not already defined.
3863         (new_tty): Use O_NOCTTY unconditionally.
3864
3865 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
3866
3867         * procfs.c (procfs_detach): Cleanup.  Print process ID, not LWP
3868         ID.  Use comma in output.  Use gdb_flush on gdb_stdout instead of
3869         fflush on stdout.
3870
3871 2004-08-10  Joel Brobecker  <brobecker@gnat.com>
3872
3873         * xcoff_symfile_finish: Replace last call to xmfree by call
3874         to xfree.
3875
3876 2004-08-10  Andrew Cagney  <cagney@gnu.org>
3877
3878         * main.c (captured_main): Delete call to init_malloc.
3879         * defs.h (init_malloc): Delete declaration.
3880         * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3881         (init_malloc): Delete functions.
3882
3883         * defs.h (xmfree): Delete.
3884         * utils.c (xmfree): Delete function.
3885         (xfree): Inline calls to xmfree and mfree.
3886         * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3887         * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3888         * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3889         * somread.c (som_symfile_finish): Ditto.
3890         * objfiles.c (allocate_objfile, free_objfile): 
3891         * nlmread.c (nlm_symfile_finish): Ditto.
3892         * hpread.c (hpread_symfile_finish): Ditto.
3893         * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3894         * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3895         * coffread.c (coff_symfile_finish): Ditto.
3896
3897         * defs.h (xmcalloc): Delete declaration.
3898         * utils.c (xmcalloc): Delete.
3899         (xcalloc): Inline calls to xmcalloc and mcalloc.
3900         * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3901         xcalloc and xfree.
3902         * symtab.c (create_demangled_names_hash): Ditto.
3903
3904         * defs.h (xmrealloc): Delete.
3905         * utils.c (xmrealloc): Delete.
3906         (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3907         * symmisc.c (extend_psymbol_list): Use xrealloc.
3908         * source.c (find_source_lines): Ditto.
3909         * hpread.c (hpread_lookup_type): Ditto.
3910         * dbxread.c (add_bincl_to_list): Ditto.
3911
3912         * utils.c (xmmalloc): Delete.
3913         (xmalloc): Inline xmmalloc and mmalloc calls.
3914         (msavestring): Use xmalloc.
3915         * defs.h (xmmalloc): Delete declaration.
3916         * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3917         xmmalloc.
3918         * symmisc.c (extend_psymbol_list): Ditto.
3919         * symfile.c (init_psymbol_list): Ditto.
3920         * source.c (find_source_lines): Ditto.
3921         * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3922         * elfread.c (elf_symtab_read): Ditto.
3923         * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3924         * coffread.c (coff_symfile_init): Ditto.
3925
3926 2004-08-10  David Carlton  <carlton@bactrian.org>
3927
3928         * MAINTAINERS: Remove David Carlton from c++ testsuite
3929         maintainers.
3930
3931 2004-08-10  Jerome Guitton  <guitton@gnat.com>
3932
3933         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3934         print a line feed before the prompt.
3935
3936 2004-08-10  Mark Kettenis  <kettenis@gnu.org>
3937
3938         * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3939
3940 2004-08-09  Joel Brobecker  <brobecker@gnat.com>
3941
3942         General cleanup of the AIX xm include file:
3943         * config/xm-aix4.h (fd_set): Remove undefine.
3944         Remove include of <sys/select.h>.
3945         (HAVE_TERMIO): Remove define.
3946         (USG): Likewise.
3947         (NULL): Remove redefine.
3948         (alloca): Remove #pragma.
3949         (vfork): Remove define.
3950         (termdef): Remove.
3951         (SIGWINCH_HANDLER): Remove.
3952         (SIGWINCH_HANDLER_BODY): Remove.
3953
3954 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
3955
3956         * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3957         GDB_OSABI_OPENBSD_ELF.
3958
3959 2004-08-07  Robert Millan  <robertmh@gnu.org>
3960
3961         * bsd-kvm.c: Check for nlist.h before including it.
3962
3963 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
3964
3965         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3966         sigcontext' offset consistency checks for ancient BSD.
3967
3968         * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3969
3970         * configure.in: Check for <sys/types.h>.  Check return and
3971         argument types of ptrace.
3972         * configure, config.in: Regenerate.     
3973
3974 2004-08-09  Jim Blandy  <jimb@redhat.com>
3975
3976         * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3977         rs6000_register_sim_regno): Doc fixes.
3978
3979 2004-08-08  Joel Brobecker  <brobecker@gnat.com>
3980
3981         * mips-tdep.c: Include "floatformat.h".
3982         (n32n64_floatformat_always_valid): New function.
3983         (floatformat_n32n64_long_double_big): New constant.
3984         (mips_gdbarch_init): Set size and format of long double
3985         for N32 and N64 ABIs.
3986         * Makefile.in (mips-tdep.o): Update dependencies.
3987
3988 2004-08-08  Andrew Cagney  <cagney@gnu.org>
3989
3990         * gdbarch.sh: Delete "fmt" and "attrib" fields.  Always use %s to
3991         print.  Improve script's error messages.
3992         * gdbarch.h: Re-generate.
3993
3994         * gdbarch.sh (pformat): New function.
3995         (float_format, double_format, long_double_format): List with bit
3996         members.  Use pformat when printing.
3997         * gdbarch.c, gdbarch.h: Re-generate.
3998         
3999 2004-08-08  Nathan J. Williams  <nathanw@wasabisystems.com>
4000
4001         * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4002         "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4003         (ppcnbsd_supply_pcb): New function.
4004         (_initialize_ppcnbsd_nat): New prototype and function.
4005         * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4006         (LOADLIBES): New variable.
4007         * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4008
4009 2004-08-08  Andrew Cagney  <cagney@gnu.org>
4010
4011         * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4012         (builtin_type_ieee_double, builtin_type_ia64_quad)
4013         (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4014         BE/LE floating-point types.
4015         * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4016         (builtin_type_ieee_double, builtin_type_ia64_quad)
4017         (builtin_type_ia64_spill): Declare.
4018         * doublest.c (_initialize_doublest, floatformat_ieee_single)
4019         (floatformat_ieee_double, floatformat_arm_ext)
4020         (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4021         of LE/BE floatformats.  
4022         * doublest.h: (struct floatformat, floatformat_ieee_single)
4023         (floatformat_ieee_double, floatformat_arm_ext)
4024         (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4025
4026 2004-08-08  Mark Kettenis  <kettenis@gnu.org>
4027
4028         * i386gnu-nat.c (gnu_store_registers): Fix typo.
4029
4030         * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4031         instead of regcache_raw_supply when storing the registers.
4032
4033         * i386gnu-nat.c: Update copyright year.
4034         (gnu_store_registers): Don't use deprecated_registers and
4035         deprecated_registers_valid.  Use regcache_valid_p and
4036         regcache_raw_supply instead.
4037
4038         * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4039         frame_pc_unwind.
4040
4041         * procfs.c (procfs_pid_to_str): Remove redundant and unused
4042         variables.  Incapitalized "process".
4043
4044         * configure.in: Add cursesX to the list of possible curses libs.
4045         Add cursesX.h to the list of possible curses headers. 
4046         * configure, config.in: Regenerate.     
4047
4048 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4049
4050         * configure.in: Test for struct lwp in <sys/lwp.h>.
4051         * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4052         the offset of l_addr in struct lwp.
4053
4054 2004-08-07  Nathan J. Williams  <nathanw@wasabisystems.com>
4055
4056         * bsd-kvm.c: Include "gdbcore.h"
4057         (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4058
4059 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4060
4061         * gdbtypes.c (build_flt, build_complex): New functions.
4062         (gdbtypes_post_init): Use.
4063
4064         * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4065
4066         * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4067         through to builtin_type_uint128.
4068
4069         * c-exp.y: Use builtin_type function to obtain builtin types.
4070
4071         * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4072         builtin_uint128.
4073         * gdbtypes.c (gdbtypes_post_init): Update.
4074         (build_gdbtypes): Move initialization of builtin_type_int0
4075         through to builtin_type_uint128 from here ...
4076         (_initialize_gdbtypes): ... to here.
4077         * d10v-tdep.c (d10v_register_type): Update.
4078
4079         * doublest.c: Update copyright.
4080         (floatformat_from_length): Call error when floatformat is NULL.
4081         (extract_floating_by_length): Remove NULL fmt check.
4082         (store_floating_by_length): Ditto.
4083
4084 2004-08-07  Andrew Cagney  <cagney@gnu.org>
4085
4086         * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4087         that the register is valid.
4088
4089 2004-08-05  Mark Kettenis  <kettenis@chello.nl>
4090
4091         * i386-linux-tdep.c (i386_linux_sigtramp_start)
4092         (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4093         struct frame_info *.  Use safe_frame_unwind_memory instead of
4094         deprecated_read_memory_nobpt.
4095         (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4096         changed signature of i386_linux_sigtramp_start and
4097         i386_linux_rt_sigtramp_start.
4098
4099         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4100         CORE_ADDR to struct frame_info *.  Use safe_frame_unwind_memory
4101         instead of deprecated_read_memory_nobpt.
4102         (i386nbsd_sigtramp_p): Adjust for changed signature of
4103         i386nbsd_sigtramp_offset.
4104
4105         * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4106         safe_frame_unwind_memory instead of target_read_memory.
4107
4108         * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4109         !NO_SYS_FILE.
4110         [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4111         [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4112         (_initialize_kernel_u_addr): Remove prototype and function.
4113         * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4114         !NO_SYS_FILE.
4115         * xcoffread.c: Likewise.
4116
4117 2004-08-06  Mark Kettenis  <kettenis@gnu.org>
4118
4119         * vax-nat.c: New file.
4120         * vaxbsd-nat.c: Tweak comment.
4121         * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4122         vaxnbsd-tdep.c.
4123         (vax-nat.o): New dependency.
4124         * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4125         (vax-*-ultrix2*): Remove.
4126         * config/vax/vax.mh: New file.
4127         * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4128         (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4129         (vax_register_u_addr): New prototype.
4130         (REGISTER_U_ADDR): Define using vax_register_u_addr.
4131         * config/vax/vaxult2.mh: Remove file.
4132         * config/vax/vaxult.mh: Remove file.
4133         * config/vax/vaxbsd.mh: Remove file.
4134         * config/vax/vax.mt (TM_FILE): Remove.
4135         * config/vax/tm-vaxbsd.h: Remove file.
4136
4137 2004-08-06  Joel Brobecker  <brobecker@gnat.com>
4138
4139         * aix-thread.c (get_signaled_thread): New function.
4140         (iter_trap): Delete, no longer used.
4141         (iter_tid): New function.
4142         (pd_update): Find the thread that received the SIGTRAP signal
4143         by first locating the kernel thread, and then finding its
4144         associated thread.
4145
4146 2004-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
4147
4148         * lin-lwp.c (child_wait): Continue inferior after processing
4149         PTRACE_EVENT_CLONE event.
4150
4151 2004-08-05  Nathanael Nerode  <neroden@gcc.gnu.org>
4152
4153         * MAINTAINERS: Add self to Write-After-Approval.
4154
4155 2004-08-05  Jeff Johnston  <jjohnstn@redhat.com>
4156
4157         * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4158         libunwind-xxxx.so" where xxxx is UNW_TARGET.
4159
4160 2004-08-05  Andrew Cagney  <cagney@gnu.org>
4161
4162         * config/xm-sysv4.h: Delete file.
4163         * config/mips/xm-irix5.h: Delete file.
4164         * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4165         * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4166         * config/ia64/xm-aix.h: Delete file.
4167         * config/ia64/aix.mh (XM_FILE): Delete.
4168         * config/pa/xm-hppah.h: Delete file.
4169         * config/pa/hpux11w.mh (XM_FILE): Delete.
4170         * config/pa/hpux11.mh (XM_FILE): Delete.
4171         * config/pa/hpux1020.mh (XM_FILE): Delete.
4172         * config/pa/hppahpux.mh (XM_FILE): Delete.
4173
4174         * config/alpha/xm-alphalinux.h: Delete file.
4175         * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4176         * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4177         * config/alpha/xm-alphaosf.h: Delete file.
4178         * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4179         * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4180         * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4181         * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4182
4183         * config/i386/xm-i386v.h: Delete file.
4184         * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4185         * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4186         * config/i386/xm-i386sco.h: Delete file.
4187         * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4188         * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4189         * config/i386/xm-i386v4.h: Delete file.
4190         * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4191         * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4192         * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4193         * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4194
4195         * config/vax/xm-vax.h: Delete file.
4196         * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4197         * config/vax/xm-vaxult2.h: Delete file.
4198         * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4199         * config/vax/vaxult2.mh (XM_FILE): Delete.
4200         * config/vax/xm-vaxult.h: Delete file.
4201         * config/vax/vaxult.mh (XM_FILE): Delete.
4202         * config/vax/xm-vaxbsd.h: Delete file.
4203         * config/vax/vaxbsd.mh (XM_FILE): Delete.
4204
4205         * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4206         * gdbarch.h, gdbarch.c: Re-generate.
4207         * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4208         * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4209         * frame.h: Delete deprecated_read_fp from comments.
4210         * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4211         * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4212
4213 2004-08-04  Mark Kettenis  <kettenis@gnu.org>
4214
4215         * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4216         trampoline in OpenBSD 3.5-current.
4217
4218         * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4219         SSE registers.
4220
4221         * Makefile.in: Remove embedded page breaks.
4222
4223 2004-08-04  Jim Blandy  <jimb@redhat.com>
4224
4225         * regcache.c (regcache_raw_read): Assert that, after calling
4226         target_fetch_registers, the register we're reading is cached.
4227
4228         * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4229         a call to 'internal_error', with a more helpful error message.
4230         * rs6000-tdep.c (e500_pseudo_register_read,
4231         e500_pseudo_register_write, rs6000_store_return_value): Same.
4232
4233 2004-08-04  Andrew Cagney  <cagney@gnu.org>
4234
4235         * Makefile.in: Update dependencies.
4236
4237 2004-08-04  Jim Blandy  <jimb@redhat.com>
4238
4239         Change the layout of the PowerPC E500 raw register cache to allow
4240         the lower 32-bit halves of the GPRS to be their own raw registers,
4241         not pseudoregisters.
4242         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4243         add ppc_ev0_upper_regnum flag.
4244         * rs6000-tdep.c: #include "reggroups.h".
4245         (spe_register_p): Recognize the ev upper half registers as SPE
4246         registers.
4247         (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4248         registers.
4249         (e500_move_ev_register): New function.
4250         (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4251         vector registers are the pseudo-registers now, formed by splicing
4252         together the gprs and the upper-half registers.
4253         (e500_register_reggroup_p): New function.
4254         (P): Macro deleted.
4255         (P8, A4): New macro.
4256         (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4257         (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4258         macros.
4259         (registers_e500): Rearrange register set so that the raw register
4260         set contains 32-bit GPRs and upper-half registers, and the SPE
4261         vector registers become pseudo-registers.
4262         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4263         it has been deleted.  Initialize ppc_ev0_upper_regnum.  Many other
4264         register numbers are now the same for the E500 as they are for
4265         other PowerPC variants.  Register e500_register_reggroup_p as the
4266         register group function for the E500.
4267         * Makefile.in (rs6000-tdep.o): Update dependencies.
4268
4269         Adapt PPC E500 native support to the new raw regcache layout.
4270         * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4271         (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4272         (fetch_spe_register, store_spe_register): Handle fetching/storing
4273         all the SPE registers at once, if regno == -1.  These now take
4274         over the job of fetch_spe_registers and store_spe_registers.
4275         (fetch_spe_registers, store_spe_registers): Deleted.
4276         (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4277         unconditionally; they're always raw.  Fetch/store SPE upper half
4278         registers, if present, instead of ev registers.
4279         (fetch_register, store_register): Remove sanity checks: gprs are
4280         never pseudo-registers now, so we never need to even mention any
4281         registers that are ever pseudoregisters.
4282
4283         Use a fixed register numbering when communicating with the PowerPC
4284         simulator.
4285         * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4286         * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4287         (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno): 
4288         New functions.
4289         (rs6000_gdbarch_init): Register rs6000_register_sim_regno.  Call
4290         init_sim_regno_table.
4291         * Makefile.in (gdb_sim_ppc_h): New variable.
4292         (rs6000-tdep.o): Update dependencies.
4293
4294 2004-08-02  Andrew Cagney  <cagney@gnu.org>
4295
4296         * cris-tdep.c (cris_register_size): Restore function, still used
4297         locally.
4298
4299         * gdbarch.sh (deprecated_target_read_fp)
4300         (deprecated_frame_locals_address, deprecated_frame_args_address)
4301         (deprecated_frame_chain_valid, deprecated_frame_chain)
4302         (deprecated_init_extra_frame_info, deprecated_pop_frame)
4303         (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4304         (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4305         * gdbarch.h, gdbarch.c: Re-generate.
4306         * regcache.c (deprecated_read_fp): Do not call
4307         DEPRECATED_TARGET_READ_FP_P.
4308         * infcmd.c (default_print_registers_info): Do not call
4309         DEPRECATED_DO_REGISTERS_INFO.
4310         * frame-base.c (default_frame_locals_address): Do not call
4311         DEPRECATED_FRAME_LOCALS_ADDRESS.
4312         (default_frame_args_address): Do not call
4313         DEPRECATED_FRAME_ARGS_ADDRESS.
4314
4315         * gdbarch.sh (deprecated_register_raw_size)
4316         (deprecated_register_virtual_size:int): Delete.
4317         * gdbarch.h, gdbarch.c: Re-generate.
4318         * cris-tdep.c (cris_register_size): Delete.
4319         (cris_gdbarch_init): Update.
4320         * alpha-tdep.c (alpha_register_raw_size)
4321         (alpha_register_virtual_size): Delete.
4322         (alpha_gdbarch_init): Update.
4323
4324         * gdbarch.sh (deprecated_register_virtual_type)
4325         (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4326         (deprecated_dummy_write_sp): Delete.
4327         * gdbarch.h, gdbarch.c: Re-generate.
4328
4329         * gdbarch.sh (deprecated_register_bytes): Delete.
4330         * gdbarch.h, gdbarch.c: Re-generate.
4331         * regcache.c (deprecated_register_bytes): New function.
4332         * regcache.h (deprecated_register_bytes): Declare.
4333         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4334         * v850-tdep.c (v850_gdbarch_init): Update.
4335         * sh64-tdep.c (sh64_gdbarch_init): Update.
4336         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4337         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4338         * mcore-tdep.c (mcore_gdbarch_init): Update.
4339         * cris-tdep.c (cris_gdbarch_init): Update.
4340         * arm-tdep.c (arm_gdbarch_init): Update.
4341         * remote.c (init_remote_state): Update.
4342         * remote-vx.c (vx_prepare_to_store): Update.
4343         * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4344         * irix5-nat.c (fetch_core_registers): Update.
4345         * cris-tdep.c (cris_register_bytes_ok): Update.
4346         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4347
4348         * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4349         (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4350         (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4351         (mips_insn16_frame_base_address, mips_insn16_frame_base)
4352         (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4353         (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4354         (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4355         (mips_insn32_frame_base_address, mips_insn32_frame_base)
4356         (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4357         with mips_insn16 and mips_insn32.
4358
4359         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4360         * rs6000-tdep.c (rs6000_push_dummy_call)
4361         (rs6000_extract_return_value): Use register_size.
4362         * xstormy16-tdep.c (xstormy16_get_saved_register) 
4363         (xstormy16_extract_return_value): Ditto.
4364         * valops.c (value_assign): Ditto.
4365         * v850ice.c (v850ice_fetch_registers, v850ice_store_registers): 
4366         * v850-tdep.c (v850_extract_return_value): Ditto.
4367         * tracepoint.c (collect_symbol): Ditto.
4368         * target.c (debug_print_register): Ditto.
4369         * stack.c (frame_info): Ditto.
4370         * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4371         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4372         * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4373         (store_register_using_P): Ditto.
4374         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4375         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4376         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4377         * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4378         * regcache.c (deprecated_read_register_bytes) 
4379         (deprecated_write_register_bytes, read_register) 
4380         (write_register): Ditto.
4381         * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4382         (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4383         * monitor.c (monitor_supply_register, monitor_fetch_register) 
4384         (monitor_store_register): Ditto.
4385         * mn10300-tdep.c (mn10300_pop_frame_regular) 
4386         (mn10300_print_register): Ditto.
4387         * mipsv4-nat.c (fill_fpregset): Ditto.
4388         * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset) 
4389         (mips64_fill_fpregset): Ditto.
4390         * mi/mi-main.c (register_changed_p, get_register)
4391         (mi_cmd_data_write_register_values): Ditto.
4392         * lynx-nat.c (fetch_inferior_registers, store_inferior_registers): 
4393         * irix5-nat.c (fill_gregset, fetch_core_registers): 
4394         * infrun.c (write_inferior_status_register): Ditto.
4395         * infptrace.c (fetch_register, store_register): Ditto.
4396         * infcmd.c (default_print_registers_info): Ditto.
4397         * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4398         * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4399         * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4400         * hpux-thread.c (hpux_thread_fetch_registers)
4401         (hpux_thread_store_registers): Ditto.
4402         * hppah-nat.c (store_inferior_registers, fetch_register): 
4403         * findvar.c (value_from_register): Ditto.
4404         * dve3900-rom.c (fetch_bitmapped_register): 
4405         * cris-tdep.c (cris_gdbarch_init): Ditto.
4406         * alpha-tdep.h: Ditto.
4407         * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4408
4409         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4410         DEPRECATED_REGISTER_RAW_SIZE from comments.
4411         * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4412         use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4413         DEPRECATED_REGISTER_RAW_SIZE.
4414         * findvar.c (value_of_register): Simplify by assuming that the
4415         registers raw and virtual sizes are identical.
4416         * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4417         comment.
4418         * arch-utils.c (generic_register_size): Simplify by assuming
4419         register_type.
4420
4421         * regcache.c (legacy_read_register_gen, real_register) 
4422         (legacy_write_register_gen): Delete, not used.
4423
4424         * regcache.c (struct regcache_descr): Delete legacy_p.
4425         (init_legacy_regcache_descr): Delete function.
4426         (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4427         Do not use deprecated register functions.
4428         (regcache_raw_read, deprecated_write_register_gen):
4429         (deprecated_read_register_gen, regcache_raw_write): Delete code
4430         predicated on legacy_p.
4431         (register_size): Delete check against register raw size.
4432
4433         * cris-tdep.c (cris_register_type): Replace
4434         cris_register_virtual_type.
4435         (cris_gdbarch_init): Update, set register_type.
4436
4437         * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4438         * gdbarch.h, gdbarch.c: Re-generate.
4439         * arm-tdep.c    (arm_frameless_function_invocation): Delete.
4440         (arm_gdbarch_init) Do not set frameless function invocation.
4441         * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4442         * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4443         * frv-tdep.c (frv_frameless_function_invocation): Delete.
4444         (frv_gdbarch_init): Do not set frameless function invocation.
4445         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4446         * sh-tdep.c (sh_gdbarch_init): Ditto.
4447         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4448         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4449         * avr-tdep.c (avr_gdbarch_init): Ditto.
4450
4451         * blockframe.c (legacy_frame_chain_valid): Delete function.
4452
4453         * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4454         and pc.  Update comments.
4455         (pc_in_dummy_frame): Delete function.
4456         (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4457         use the "id".
4458         (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4459         call_hi, top and pc, use the id.
4460         (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4461
4462         * dummy-frame.c: Include "gdb_string.h".
4463         (generic_save_call_dummy_addr, generic_push_dummy_frame)
4464         (generic_save_dummy_frame_tos): Delete.
4465         (dummy_frame_push): New function, replaces above.
4466         * dummy-frame.h: Update copyright.
4467         (dummy_frame_push): Declare.
4468         * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4469         (generic_save_call_dummy_addr): Delete declarations.
4470         * infcall.c: Include "dummy-frame.h".
4471         (call_function_by_hand): Add locals caller_regcache,
4472         caller_regcache_cleanup and dummy_id.  Replace push_dummy_frame
4473         with call to frame_save_as_regcache plus cleanup.  Delete calls to
4474         generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4475         Move clear_proceed_status to just before the resume, add call to
4476         dummy_frame_push (discard cleanup).
4477         * Makefile.in (infcall.o): Add $(dummy_frame_h).
4478         (dummy-frame.o): Add $(gdb_string_h).
4479
4480 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4481
4482         * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4483         * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4484         * dummy-frame.c (find_dummy_frame): Delete.
4485         (struct dummy_frame_cache, dummy_frame_sniffer)
4486         (dummy_frame_prev_register, dummy_frame_this_id)
4487         (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4488         frame unwinder using a dummy_frame_cache.
4489
4490 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4491
4492         * frame.h (frame_save_as_regcache): Declare.
4493         * frame.c (frame_save_as_regcache): New function.
4494         (do_frame_read_register): Replace do_frame_unwind_register.
4495         (frame_pop): Use frame_save_as_regcache.
4496         * dummy-frame.c (generic_push_dummy_frame): Use
4497         frame_save_as_regcache.
4498
4499 2004-08-01  Joel Brobecker  <brobecker@gnat.com>
4500
4501         * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4502         file as included until we record the first line in the linetable.
4503
4504 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4505
4506         * frame.h (deprecated_pop_dummy_frame)
4507         (deprecated_read_register_dummy)
4508         (deprecated_generic_find_dummy_frame): Delete.
4509         * dummy-frame.c (deprecated_generic_find_dummy_frame)
4510         (deprecated_read_register_dummy)
4511         (deprecated_find_dummy_frame_regcache)
4512         (discard_innermost_dummy)
4513         (deprecated_pop_dummy_frame): Delete.
4514         (dummy_frame_this_id): Simplify.
4515         (struct dummy_frame): Delete "fp" and "sp".
4516         (find_dummy_frame): Simplify.
4517         (generic_push_dummy_frame): Do not set "fp" or "sp".
4518         (fprint_dummy_frames): Do not print "fp" and "sp"
4519
4520 2004-08-01  Mark Kettenis  <kettenis@gnu.org>
4521
4522         * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4523         (struct i386_insn): New structure.
4524         (i386_match_insn): New function.
4525         (i386_frame_setup_skip_insns): New variable.
4526         (i386_analyze_frame_setup): Change to use i386_match_insn and the
4527         array i386_frame_setup_insns of instructions that should be
4528         skipped inside the frame setup sequence.
4529
4530 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4531
4532         * frame.h (deprecated_frame_xmalloc_with_cleanup)
4533         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4534         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4535         * stack.c (frame_info): Delete references to
4536         DEPRECATED_FRAME_INIT_SAVED_REGS and
4537         deprecated_get_frame_saved_regs.
4538         * frame.c (struct frame_info): Delete saved_regs and extra_info.
4539         (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4540         (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4541         (frame_unwind_register_signed)
4542         (frame_unwind_register_unsigned)
4543         (frame_unwind_unsigned_register): Use register_size.
4544         (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4545         (deprecated_frame_xmalloc_with_cleanup)
4546         (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4547         (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4548
4549         * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4550         * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4551         * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4552         * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4553
4554         * infcall.c (call_function_by_hand): Do not use
4555         DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4556         DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4557         DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4558         DEPRECATED_STACK_ALIGN.
4559
4560 2004-07-30  Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4561
4562         Committed by Andrew Cagney.
4563         * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4564
4565 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4566
4567         * mips-tdep.c (mips16_frame_cache)
4568         (mips16_frame_this_id, mips16_frame_prev_register)
4569         (mips16_frame_unwind, mips16_frame_sniffer)
4570         (mips16_frame_base_address, mips16_frame_base)
4571         (mips16_frame_base_sniffer, mips32_frame_cache)
4572         (mips32_frame_this_id, mips32_frame_prev_register)
4573         (mips32_frame_unwind, mips32_frame_sniffer)
4574         (mips32_frame_base_address, mips32_frame_base)
4575         (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4576         separate heuristic mips16 and mips32 unwinders.
4577         (mips_stub_frame_cache, mips_stub_frame_this_id)
4578         (mips_stub_frame_prev_register)
4579         (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4580         (mips_stub_frame_base_address, mips_stub_frame_base)
4581         (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4582         (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4583         match true mdebug frames.
4584         (non_heuristic_proc_desc): Add forward declaration.
4585
4586 2004-08-01  Andrew Cagney  <cagney@gnu.org>
4587
4588         * config/mips/tm-irix6.h: Delete file.
4589         * config/mips/tm-irix5.h: Delete file.
4590         * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4591         * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4592
4593         * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4594         * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4595         * config/nm-gnu.h (NO_CORE_OPS): Delete.
4596         * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4597         * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4598         * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4599         * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4600         * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4601         * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4602         * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4603         * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4604         (TARGET_SIGNAL_RAW_VALUES): Delete.
4605         * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4606         Delete.
4607         * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT) 
4608         (TARGET_HW_WATCH_LIMIT): Delete.
4609         * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4610         * minimon.h: Delete file.
4611
4612         * trad-frame.c (trad_frame_get_this_base)
4613         (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4614         functions.
4615         * trad-frame.h (trad_frame_set_this_base)
4616         (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4617
4618 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4619
4620         * trad-frame.c (trad_frame_get_prev_register): Rename
4621         trad_frame_get_prev_register.
4622         * vax-tdep.c (vax_frame_prev_register): Update.
4623         * trad-frame.h: Update.
4624         * trad-frame.c (trad_frame_get_register): Update.
4625         * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4626         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4627         Update.
4628         * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4629         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4630         Update.
4631         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4632         Update.
4633         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4634         Update.
4635         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4636         Update.
4637         * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4638         Update.
4639         * s390-tdep.c (s390_frame_prev_register) 
4640         (s390_stub_frame_prev_register) 
4641         (s390_sigtramp_frame_prev_register): Update.
4642         * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4643         * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4644         * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4645         * m88k-tdep.c (m88k_frame_prev_register) 
4646         * m68hc11-tdep.c (m68hc11_frame_prev_register) 
4647         * m32r-tdep.c (m32r_frame_prev_register): Update.
4648         * hppa-tdep.c (hppa_frame_prev_register_helper) 
4649         * frv-tdep.c (frv_frame_prev_register): Update.
4650         * d10v-tdep.c (d10v_frame_prev_register): Update.
4651         * cris-tdep.c (cris_frame_prev_register): Update.
4652         * avr-tdep.c (avr_frame_prev_register): Update.
4653         * arm-tdep.c (arm_prologue_prev_register) 
4654         (arm_sigtramp_prev_register): Update.
4655
4656 2004-07-31  Andrew Cagney  <cagney@gnu.org>
4657
4658         * frame.h (legacy_saved_regs_unwind)
4659         (legacy_frame_chain_valid, legacy_frame_p)
4660         (enum frame_type): Delete UNKNOWN_FRAME.
4661         * dummy-frame.c (dummy_frame_this_id): Simplify.
4662         * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4663         * frame.c (struct frame_info): Delete the field "type".
4664         (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4665         (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4666         (legacy_saved_regs_unwind, legacy_frame_p)
4667         (frame_type_from_pc): Delete.
4668         (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4669         (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4670
4671 2004-07-31  Mark Kettenis  <kettenis@gnu.org>
4672
4673         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4674         indentation.
4675
4676         * mips-nat.c: Remove file.
4677         * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4678         (mips-nat.o): Remove dependency.
4679
4680         * infptrace.c: Update copyright year.
4681         (fetch_register): Pass NULL in regcache_raw_supply call instead of
4682         explicitly setting the buffer to all zeroes.
4683
4684         * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4685         (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4686
4687 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4688
4689         * GDB 6.2 released from gdb_6_2-branch.
4690
4691 2004-07-30  Baurjan Ismagulov  <ibr@ata.cs.hun.edu.tr>
4692
4693         * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4694
4695         * exec.c (exec_file_attach):
4696         * nto-tdep.c (nto_find_and_open_solib):
4697         * pa64solib.c (pa64_solib_sizeof_symbol_table):
4698         * solib.c (solib_open):
4699         * somsolib.c (som_solib_sizeof_symbol_table):
4700         * source.c (is_regular_file, openp, open_source_file):
4701         * symfile.c (symfile_bfd_open):
4702         * wince.c (upload_to_device): Differentiate between the search for
4703         binary and source files.
4704
4705 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4706
4707         * complaints.c (_initialize_complaints): Pass NULL to
4708         add_setshow_zinteger_cmd for help_doc.
4709         * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4710
4711 2004-07-30  Andrew Cagney  <cagney@gnu.org>
4712
4713         Fix PR i18n/761.
4714         * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4715         (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4716         $(PACKAGE).pot and update-po.
4717         (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4718         (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4719         (update-po): New rules.
4720         (localedir): Define using autoconf.
4721         (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4722         (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4723         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4724         * configure.in: Generate CATALOGS and LINGUAS from contents of
4725         src/gdb/po/ directory.  Set @localedir@ in Makefile.in.
4726         * configure: Re-generate.
4727         * po/gdbtext: New file
4728         
4729 2004-07-30  Jerome Guitton  <guitton@gnat.com>
4730
4731         * MAINTAINERS: Reorder Write After Approval list in alphabetical
4732         order.
4733
4734 2004-07-30  David Lecomber  <dsl@sources.redhat.com>
4735
4736         * dwarf2read.c (read_file_scope): Set producer if attribute 
4737         present.
4738         (struct dwarf2_cu): Added new member producer.
4739
4740 2004-07-30  Jerome Guitton  <guitton@gnat.com>
4741
4742         * inflow.c (kill_command): release file handles in BFD.
4743         * exec.c (exec_file_attach): Ditto.
4744         * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4745
4746 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4747
4748         * PROBLEMS (mips-irix): Note that it is broken.
4749
4750 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4751
4752         * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4753         * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4754
4755         * config/xm-nbsd.h: Delete file.
4756         * config/arm/xm-nbsd.h: Delete file.
4757         * config/i386/xm-nbsd.h: Delete file.
4758         * config/ns32k/xm-nbsd.h: Delete file.
4759         * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4760         * config/i386/nbsdelf.mh (XM_FILE): Delete.
4761         * config/i386/nbsdaout.mh (XM_FILE): Delete.
4762         * config/arm/nbsdelf.mh (XM_FILE): Delete.
4763         * config/arm/nbsdaout.mh (XM_FILE): Delete.
4764
4765         * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4766         * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4767         * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4768         * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4769         * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4770         * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4771
4772         * config/powerpc/xm-linux.h: Delete empty file.
4773         * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4774         * config/powerpc/linux.mh (XM_FILE): Delete.
4775         * config/m68k/xm-linux.h: Delete empty file.
4776         * config/m68k/linux.mh (XM_FILE): Delete.
4777         * config/ia64/xm-linux.h: Delete empty file.
4778         * config/ia64/linux.mh (XM_FILE): Delete.
4779         * config/arm/xm-linux.h: Delete empty file.
4780         * config/arm/linux.mh (XM_FILE): Delete.
4781         
4782         * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4783         * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4784         * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4785         * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4786         * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4787         * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4788         * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4789         * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4790
4791         * config/m68k/xm-m68k.h: Delete file.
4792         * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h".  Update
4793         copyright.
4794         (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4795         * config/pa/xm-linux.h: Delete empty file.
4796         * config/pa/linux.mh (XM_FILE): Delete.
4797         * config/i386/xm-i386.h: Delete empty file.
4798         * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4799         "i386/xm-i386.h".
4800         * config/i386/obsdaout.mh (XM_FILE): Delete.
4801         * config/i386/obsd64.mh (XM_FILE): Delete.
4802         * config/i386/fbsd64.mh (XM_FILE): Delete.
4803         * config/i386/nto.mh (XM_FILE): Delete.
4804         * config/i386/obsd.mh (XM_FILE): Delete.
4805         * config/i386/linux64.mh (XM_FILE): Delete.
4806         * config/i386/linux.mh (XM_FILE): Delete.
4807         * config/i386/i386sol2.mh (XM_FILE): Delete.
4808         * config/i386/i386gnu.mh (XM_FILE): Delete.
4809         * config/i386/fbsd.mh (XM_FILE): Delete.
4810         * config/i386/nbsd64.mh (XM_FILE): Delete.
4811
4812 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4813
4814         * config/pa/xm-linux.h: Do not include "floatformat.h".
4815         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4816         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4817         * config/i386/xm-i386.h: Do not include "floatformat.h".
4818         (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) 
4819         (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4820         * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4821         (HOST_LONG_DOUBLE_FORMAT): Delete macros.  Use
4822         GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4823         GDB_HOST_LONG_DOUBLE_FORMAT instead.
4824         * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4825         (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4826         * configure, config.in: Regenerate.     
4827         * configure.host (gdb_host_float_format, gdb_host_double_format)
4828         (gdb_host_long_double_format): Set according to the host.
4829         
4830 2004-07-29  Andrew Cagney  <cagney@gnu.org>
4831
4832         * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4833
4834 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4835
4836         * PROBLEMS: Mention threads/1650.
4837         * NEWS: Mention the NPTL fix.
4838
4839 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4840
4841         * cli/cli-decode.c (add_setshow_cmd): Delete function.
4842         (add_setshow_cmd_full): Make static.
4843         * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4844         (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4845         * cli/cli-decode.c (add_setshow_filename_cmd) 
4846         (add_setshow_string_cmd): New functions.
4847         * nto-tdep.c (_initialize_nto_tdep): Update.  Fix parameters.
4848         * mips-tdep.c (_initialize_mips_tdep): Update.
4849         * m32r-rom.c (_initialize_m32r_rom): Update.  Update copyright.
4850         * cli/cli-logging.c (_initialize_cli_logging): Update.
4851         * complaints.c (_initialize_complaints): Update.
4852         * remote.c (_initialize_remote): Update.
4853         
4854 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4855
4856         * cli/cli-decode.c (add_setshow_zinteger_cmd)
4857         (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4858         (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4859         print parameters.  Make string parameters constant.
4860         * command.h: Update.  Update copyright.
4861         * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4862         * observer.c (_initialize_observer): Ditto.
4863         * frame.c (_initialize_frame): Ditto.
4864         * complaints.c (_initialize_complaints): Ditto.
4865         * maint.c (_initialize_maint_cmds): Ditto.
4866         * target.c (initialize_targets): Ditto.
4867         * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4868         * infcall.c (_initialize_infcall): Ditto.
4869         * arm-tdep.c (_initialize_arm_tdep): Ditto.
4870         * m32r-rom.c (_initialize_m32r_rom): Ditto.
4871         * remote-rdi.c (_initialize_remote_rdi): Ditto.
4872         * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4873         * mips-tdep.c (_initialize_mips_tdep): Ditto.
4874
4875 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4876
4877         * gdbtypes.c (lookup_primitive_typename): Delete function.
4878         * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4879         * ada-lex.l: Use language_lookup_primitive_type_by_name.
4880         * gdbtypes.c (lookup_typename): Ditto.
4881         * f-exp.y (yylex): Ditto.
4882         * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4883
4884         * scm-lang.c (c_builtin_types): Delete extern declaration.
4885         (scm_language_defn): Replace
4886         string_char_type and primitive_type_vector with
4887         la_language_arch_info.
4888         * jv-lang.c (java_language_defn): Replace
4889         string_char_type and primitive_type_vector with
4890         la_language_arch_info.
4891         * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4892         c_builtin_types in comment.
4893         * c-lang.h (struct language_arch_info): Declare opaque.
4894         (c_language_arch_info): Declare.
4895         (c_builtin_types): Delete declaration.
4896         * c-lang.c (c_language_arch_info): Set string_char_type to
4897         builtin_char, not builtin_true_char.  Make global.
4898         (c_builtin_types): Delete array.
4899         (asm_language_defn, minimal_language_defn): Replace
4900         string_char_type and primitive_type_vector with
4901         la_language_arch_info.
4902
4903 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4904
4905         * gdbtypes.h (struct builtin_type): Rename true_char to
4906         builtin_true_char.
4907         * gdbtypes.c (gdbtypes_post_init): Update.
4908         * c-lang.c (arch_info): New function.
4909         (enum c_primitive_types): New enum.
4910         (c_language_defn): Instead of string_char_type and
4911         primitive_type_vector set la_language_arch_info.
4912
4913 2004-07-28  Andrew Cagney  <cagney@gnu.org>
4914
4915         * language.h (struct language_arch_info): Fix typo
4916         s/primative/primitive/.
4917         * gdbtypes.c (lookup_primitive_typename): Ditto.
4918         * language.c (language_lookup_primitive_type_by_name)
4919         (unknown_language_arch_info): Ditto.
4920
4921 2004-07-27  Andrew Cagney  <cagney@gnu.org>
4922
4923         * defs.h (enum language): Add nr_languages.
4924         * language.h (struct language_arch_info): Define.
4925         (struct language_defn): Add la_language_arch_info.
4926         (language_lookup_primative_type_by_name): Declare.
4927         (language_string_char_type): Declare.
4928         * language.c (_initialize_language, language_gdbarch_post_init)
4929         (struct language_gdbarch, language_gdbarch_data): Implement
4930         per-architecture language information.
4931         (unknown_language_arch_info, language_string_char_type)
4932         (language_lookup_primative_type_by_name): New functions.
4933         (unknown_language_defn, auto_language_defn)
4934         (local_language_defn): Set la_language_arch_info to
4935         unknown_language_arch_info.
4936         (unknown_builtin_types): Delete.
4937         * gdbtypes.c (lookup_primitive_typename): Use
4938         language_lookup_primative_type_by_name.
4939         (create_string_type): Use language_string_char_type.
4940         * values.c (value_from_string): Use language_string_char_type.
4941         * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4942         * p-lang.c (pascal_language_defn): Ditto.
4943         * m2-lang.c (m2_language_defn): Ditto.
4944         * jv-lang.c (java_language_defn): Ditto.
4945         * objc-lang.c (objc_language_defn): Ditto.
4946         * f-lang.c (f_language_defn): Ditto.
4947         * c-lang.c (c_language_defn, cplus_language_defn) 
4948         (asm_language_defn, minimal_language_defn): Ditto.
4949         
4950 2004-07-27  Andrew Cagney  <cagney@gnu.org>
4951
4952         * gdbtypes.h (struct builtin_type): Declare.
4953         (builtin_type): Declare.
4954         * d10v-tdep.c (d10v_register_type): Use builtin_type.
4955         * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4956         (gdbtypes_post_init): New function.
4957         (builtin_type): New function.
4958
4959 2004-07-27  Kei Sakamoto  <sakamoto.kei@renesas.com>
4960
4961         * remote-m32r-sdi.c: Fix breakpoint bug.
4962         (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4963         recv_char_data, recv_long_data): New functions to replace communication
4964         sequences.
4965
4966 2004-07-26  Michael Chastain  <mec.gnu@mindspring.com>
4967
4968         Document PR threads/1650.
4969         * PROBLEMS (Threads): Document problem with many threads
4970
4971 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4972
4973         * gdb-mi.el: Move from here ...
4974         * mi/gdb-mi.el: ... to here.
4975
4976 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4977
4978         Problem reported by Ashley Pittman <ashley@quadrics.com>.
4979         * main.c (captured_main): When in batch mode always detach.
4980
4981 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4982
4983         * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4984         and h8300 as broken.
4985         * NEWS: END-OF-LIFE frame compatibility module.
4986         * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4987         specific comments.
4988
4989 2004-07-26  Andrew Cagney  <cagney@gnu.org>
4990
4991         * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4992         * xcoffsolib.c (_initialize_xcoffsolib): Update.
4993         * wince.c (_initialize_wince): Update.
4994         * win32-nat.c (_initialize_win32_nat): Update.
4995         * varobj.c (_initialize_varobj): Update.
4996         * valops.c (_initialize_valops): Update.
4997         * utils.c (initialize_utils, initialize_utils): Update.
4998         * tui/tui-win.c (_initialize_tui_win): Update.
4999         * top.c (init_main): Update.
5000         * symfile.c (_initialize_symfile): Update.
5001         * source.c (_initialize_source): Update.
5002         * somsolib.c (_initialize_som_solib): Update.
5003         * solib.c (_initialize_solib): Update.
5004         * solib-frv.c (_initialize_frv_solib): Update.
5005         * serial.c (_initialize_serial): Update.
5006         * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5007         * remote.c (_initialize_remote, _initialize_remote): Update.
5008         * remote-vx.c (_initialize_vx): Update.
5009         * remote-utils.c (_initialize_sr_support): Update.
5010         * remote-sds.c (_initialize_remote_sds): Update.
5011         * remote-mips.c (_initialize_remote_mips): Update.
5012         * remote-e7000.c (_initialize_remote_e7000): Update.
5013         * proc-api.c (_initialize_proc_api): Update.
5014         * printcmd.c: Update.
5015         * parse.c (_initialize_parse): Update.
5016         * pa64solib.c (_initialize_pa64_solib): Update.
5017         * p-valprint.c (_initialize_pascal_valprint): Update.
5018         * monitor.c (_initialize_remote_monitors): Update.
5019         * mips-tdep.c (_initialize_mips_tdep): Update.
5020         * mcore-tdep.c (_initialize_mcore_tdep): Update.
5021         * maint.c (_initialize_maint_cmds): Update.
5022         * lin-lwp.c (_initialize_lin_lwp): Update.
5023         * language.c (_initialize_language): Update.
5024         * kod.c (_initialize_kod): Update.
5025         * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5026         * i386-tdep.c (_initialize_i386_tdep): Update.
5027         * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5028         * gdbarch.sh: Update.
5029         * gdbarch.c: Re-generate.
5030         * gdb-events.sh: Update.
5031         * gdb-events.c: Re-generate.
5032         * frame.c (_initialize_frame): Update.
5033         * exec.c: Update.
5034         * demangle.c (_initialize_demangler): Update.
5035         * dcache.c (_initialize_dcache): Update.
5036         * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5037         * cp-valprint.c (_initialize_cp_valprint): Update.
5038         * corefile.c (_initialize_core): Update.
5039         * command.h: Update.
5040         * cli/cli-decode.h: Update.
5041         * cli/cli-cmds.c (init_cli_cmds): Update.
5042         * charset.c (_initialize_charset): Update.
5043         * breakpoint.c (_initialize_breakpoint): Update.
5044         * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5045         * alpha-tdep.c (_initialize_alpha_tdep): Update.
5046         * aix-thread.c (_initialize_aix_thread): Update.
5047
5048 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5049
5050         Partial fix for PR backtrace/1718.
5051         * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5052         that GCC migrates into the prolugue.  Don't handle any
5053         instructions that clobber %ebx.
5054
5055 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5056
5057         Use regcache_raw_collect instead of regcache_collect.
5058         * regcache.h (regcache_collect): Delete declaration.
5059         * regcache.c (regcache_colect): Delete function.
5060         * win32-nat.c (do_child_store_inferior_registers): Update.
5061         * sol-thread.c (sol_thread_store_registers): Update.
5062         * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5063         * rs6000-nat.c (store_register): Update.
5064         * remote.c (store_register_using_P, remote_store_registers): Update.
5065         * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5066         * ppc-linux-nat.c (store_altivec_register, store_spe_register) 
5067         (fill_vrregset, store_spe_registers, fill_gregset)
5068         (fill_gregset): Update.
5069         * nto-procfs.c (procfs_store_registers): Update.
5070         * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5071         * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5072         * m68klinux-nat.c (store_register, fill_gregset): Update.
5073         * m68k-tdep.c (fill_gregset): Update.
5074         * infptrace.c (store_register): Update.
5075         * i386-nto-tdep.c (i386nto_regset_fill): Update.
5076         * i386-linux-nat.c (store_register, fill_gregset): Update.
5077         * hppa-linux-nat.c (fill_gregset): Update.
5078         * go32-nat.c (store_register): Update.
5079         * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5080         (store_fp_regs): Update.
5081         * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double) 
5082         (store_nwfpe_extended, store_fpregister, store_fpregs) 
5083         (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5084         * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5085         * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5086         (store_regs_user_thread, store_regs_kernel_thread): Update.
5087
5088 2004-07-24  Mark Kettenis  <kettenis@gnu.org>
5089
5090         * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5091         (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5092         encoding.
5093         (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5094         member of `struct comp_unit'.
5095
5096 2004-07-23  Andrew Cagney  <cagney@gnu.org>
5097
5098         * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5099         DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5100
5101 2004-07-23  Martin Hunt  <hunt@redhat.com>
5102         Kevin Buettner <kevinb@redhat.com>
5103
5104         * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5105         alignment was being added to the offset instead of multiplied.
5106
5107 2004-07-23  Mark Kettenis  <kettenis@gnu.org>
5108
5109         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5110         changed signal trampoline in OpenBSD 3.5-current.
5111
5112         * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5113         <machine/pcb.h> and "bsd-kvm.h".
5114         (sparc64nbsd_supply_pcb): New function.
5115         (_initialize_sparc64nbsd_nat): Renamed from
5116         _initialize_sparcnbsd_nat.  Enable libkvm interface.
5117         * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5118         * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5119         (LOADLIBES): New variable.
5120
5121         * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5122
5123         * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5124
5125 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5126
5127         Use regcache_raw_supply instead of supply_register.
5128         * regcache.h (supply_register): Delete declaration.
5129         * regcache.c (supply_register): Delete function.
5130         * wince.c (do_child_fetch_inferior_registers): Update.
5131         * win32-nat.c (do_child_fetch_inferior_registers) 
5132         (fetch_elf_core_registers): Update.
5133         * v850ice.c (v850ice_fetch_registers): Update.
5134         * thread-db.c (thread_db_store_registers): Update.
5135         * sol-thread.c (sol_thread_store_registers): Update.
5136         * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5137         * rs6000-nat.c (fetch_register): Update.
5138         * rom68k-rom.c (rom68k_supply_one_register): Update.
5139         * remote.c (remote_wait, remote_async_wait): Update.
5140         * remote-st.c (get_hex_regs): Update.
5141         * remote-sim.c (gdbsim_fetch_register): Update.
5142         * remote-sds.c (sds_fetch_registers): Update.
5143         * remote-rdp.c (remote_rdp_fetch_register): Update.
5144         * remote-rdi.c (arm_rdi_fetch_registers): Update.
5145         * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5146         * remote-m32r-sdi.c (m32r_fetch_register): Update.
5147         * remote-hms.c (init_hms_cmds): Update.
5148         * remote-est.c (init_est_cmds): Update.
5149         * remote-e7000.c (get_hex_regs, fetch_regs_from_dump) 
5150         (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5151         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5152         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register) 
5153         (fetch_register, supply_vrregset, supply_vrregset)
5154         (fetch_spe_registers): Update.
5155         * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5156         * monitor.c (monitor_supply_register): Update.
5157         * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5158         * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5159         (mipsnbsd_supply_fpreg): Update.
5160         * mips-nat.c (fetch_inferior_registers)
5161         (fetch_core_registers): Update.
5162         * mips-linux-tdep.c (supply_32bit_reg, supply_gregset) 
5163         (supply_fpregset, mips64_supply_gregset)
5164         (mips64_supply_fpregset): Update.
5165         * m68klinux-nat.c (fetch_register, supply_gregset)
5166         (supply_fpregset): Update.
5167         * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5168         * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5169         * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5170         * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5171         * infptrace.c (fetch_register): Update.
5172         * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5173         * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5174         * i386gnu-nat.c (fetch_fpregs, supply_gregset) 
5175         (gnu_fetch_registers, gnu_store_registers): Update.
5176         * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5177         * i386-linux-nat.c (fetch_register, supply_gregset)
5178         (dummy_sse_values): Update.
5179         * hpux-thread.c (hpux_thread_fetch_registers): Update.
5180         * hppah-nat.c (fetch_register): Update.
5181         * hppa-linux-nat.c (fetch_register, supply_gregset) 
5182         (supply_fpregset): Update.
5183         * go32-nat.c (fetch_register): Update.
5184         * dve3900-rom.c (fetch_bitmapped_register)
5185         (_initialize_r3900_rom): Update.
5186         * cris-tdep.c (supply_gregset): Update.
5187         * abug-rom.c (init_abug_cmds): Update.
5188         * core-aout.c (fetch_core_registers): Update.
5189         * armnbsd-nat.c (supply_gregset, supply_fparegset)
5190         (fetch_register, fetch_fp_register): Update.
5191         * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5192         (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5193         (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5194         * alphanbsd-tdep.c (fetch_core_registers): Update.
5195         * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5196         * alpha-nat.c (fetch_osf_core_registers) 
5197         (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5198         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs) 
5199         (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5200
5201 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5202
5203         * PROBLEMS: Mention breakpoints/1702.
5204         * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5205         that is known to work.
5206
5207 2004-07-21  Andrew Cagney  <cagney@gnu.org>
5208
5209         * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5210         * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5211         * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5212         (handle_inferior_event): Wrap call to deprecated
5213         IGNORE_HELPER_CALL in #ifdef.
5214         * config/mips/tm-nbsd.h: Update.
5215
5216 2004-07-20  Jim Blandy  <jimb@redhat.com>
5217
5218         * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5219         bfd_mach_ppc has no segment registers.
5220
5221         Include PowerPC SPR numbers for special-purpose registers.
5222         * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5223         (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5224         new member in initializer.
5225         (S, S4, SN4, S64): New macros for defining special-purpose
5226         registers.
5227         (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5228         registers_403, registers_403GC, registers_505, registers_860,
5229         registers_601, registers_602, registers_603, registers_604,
5230         registers_750, registers_e500): Use them.
5231
5232         * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5233         replace references with expression used to initialize variable.
5234
5235 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5236
5237         * breakpoint.c (deprecated_read_memory_nobpt): Rename
5238         read_memory_nobpt.
5239         * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5240         * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5241         (s390_sigtramp_frame_sniffer): Update.
5242         * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5243         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5244         * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) 
5245         (mips32_fetch_instruction): Update.
5246         * mcore-tdep.c (get_insn): Update.
5247         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5248         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5249         * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5250         * i386-linux-tdep.c (i386_linux_sigtramp_start) 
5251         (i386_linux_rt_sigtramp_start): Update.
5252         * i386-linux-nat.c (child_resume): Update.
5253         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5254         * hppa-linux-tdep.c (insns_match_pattern): Update.
5255         * gdbcore.h: Update.
5256         * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5257         * frame.c (safe_frame_unwind_memory): Update.
5258         * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5259         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5260         * alpha-tdep.c (alpha_read_insn): Update.
5261
5262 2004-07-20  Andrew Cagney  <cagney@gnu.org>
5263
5264         * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5265         containing both bytes and mask.  Add "frame_type".
5266         * tramp-frame.c (tramp_frame_start): Update.
5267         (tramp_frame_prepend_unwinder): Update.
5268         * mips-linux-tdep.c (mips_linux_o32_sigframe)
5269         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5270         (mips_linux_n64_rt_sigframe): Update.  Make "static const".
5271         * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5272
5273 2004-07-19  Eli Zaretskii  <eliz@gnu.org>
5274
5275         * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5276         bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5277         sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5278         sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5279
5280 2004-07-17  Andrew Cagney  <cagney@gnu.org>
5281
5282         * NEWS, PROBLEMS: Update for 6.2.
5283
5284         * README: Update to 6.2.
5285
5286         * utils.c (xvasprintf): Call xstrvprintf.
5287
5288         * parse.c: Update copyright.
5289         (null_post_parser): Eliminate ARGSUSED.
5290
5291         * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5292         * tui/tui-win.c (tui_get_cmd_list): Ditto.
5293         * symfile-mem.c (_initialize_symfile_mem): Ditto.
5294         
5295         * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5296         * ppc-linux-nat.c: Use "Linux kernel".
5297         * hppa-linux-tdep.c: Use GNU/Linux.
5298         * hppa-linux-nat.c: Use GNU/Linux.
5299         * dwarfread.c: Add [sic] to use of Linux.
5300
5301         * hppa-linux-nat.c: Do not include <string.h>.
5302         (supply_fpregset): Remove "register" attribute.
5303
5304         * solib-frv.c (fetch_loadmap): Use xfree, not free.
5305
5306 2004-07-17  Mark Kettenis  <kettenis@gnu.org>
5307
5308         * configure.in: Define _MSE_INT_H on Solaris 9 too.
5309         * configure, config.in: Regenerated.
5310
5311         * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5312         "bsd-kvm.h".
5313         (vaxbsd_supply_pcb): New function.
5314         (_initialize_vaxbsd_nat): New prototype and function.
5315         * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5316         solib-sunos.o.
5317         (LOADLIBES): New variable.
5318         * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5319         (LOADLIBES): New variable.
5320         * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5321         (LOADLIBES): New variable.
5322         * Makefile.in (vaxbsd-nat.o): Update dependencies.
5323
5324 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5325
5326         * defs.h (event_loop_p): Replace variable declaration with macro,
5327         always 1.
5328         * main.c (captured_main): Delete options "-async" and "-noasync".
5329         (event_loop_p): Delete variable.
5330         * NEWS: Mention that "-async" and "-noasync" were removed.
5331
5332 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5333
5334         * remote-m32r-sdi.c: Re-indent.
5335
5336 2004-07-16  Jim Blandy  <jimb@redhat.com>
5337
5338         * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5339         (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5340         (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5341         missing MPC823 SPRs.
5342         (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5343         incorrect.  (This was corrected in GDB's register name tables on
5344         2004-07-14.)
5345
5346         * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5347         should be "esasrr" ("ESA Save and Restore Register").
5348
5349 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5350
5351         * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5352         calls, no longer applicable.  Update comments and rename parameter
5353         "step_frame" to "return_frame".
5354
5355 2004-07-16  Andrew Cagney  <cagney@gnu.org>
5356
5357         * frame.c (fprint_field): New function.
5358         (fprint_frame_id): Use fprint_field.
5359
5360 2004-07-15  Joel Brobecker  <brobecker@gnat.com>
5361
5362         * ada-lang.c (ada_language_defn): Remove commented out code.
5363
5364 2004-07-15  Jim Blandy  <jimb@redhat.com>
5365
5366         * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5367         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5368
5369 2004-07-14  Jim Blandy  <jimb@redhat.com>
5370
5371         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5372
5373         * ppc-tdep.h (ppc_num_vrs): New enum constant.
5374
5375         * ppc-tdep.h (ppc_num_srs): New enum constant.
5376
5377         * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5378         (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5379         (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5380         (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5381         (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5382         (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5383         (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5384         (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5385         (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5386         (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5387         (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5388         (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5389         (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5390         (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5391         (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5392         (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5393         (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5394         (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5395         (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5396         (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5397         (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5398         (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5399         (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5400         (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5401         (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5402         (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5403         (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5404         (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5405         (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5406         (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5407         (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5408         (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5409         (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5410         (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5411         (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5412         (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5413         (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5414         (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5415         (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5416         special-purpose register numbers.
5417
5418         * rs6000-tdep.c (registers_860): Correct register name.  (No PPC
5419         manual mentions 'md_twb', but many mention 'm_twb', and at that
5420         point in the register list.)
5421
5422 2004-07-14  Andrew Cagney  <cagney@gnu.org>
5423
5424         * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5425         instead of "internal-error".
5426
5427 2004-07-10  Joel Brobecker  <brobecker@gnat.com>
5428
5429         * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5430         that was inserted inside a comment.
5431
5432 2004-07-10  Randolph Chung  <tausq@debian.org>
5433
5434         * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New 
5435         function.
5436         (hppa_hpux_push_dummy_code): New function.
5437         (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5438         Set find_global_pointer method.
5439
5440 2004-07-10  Mark Kettenis  <kettenis@gnu.org>
5441
5442         * NEWS: Mention BSD libkvm interface.
5443
5444 2004-07-10  Michael Snyder  <msnyder@redhat.com>
5445
5446         * symfile.c (generic_load): Comment typo.
5447         * stack.c (get_selected_block): Ditto.
5448         * regcache.c (regcache_cooked_read): Ditto.
5449         * monitor.c (monitor_debug): Ditto.
5450         * mips-tdep.c (mips_read_pc): Ditto.
5451         * i386-linux-nat.c (ps_get_thread_area): Ditto.
5452         * gdb_mbuild.sh: Ditto.
5453         * gdbarch.sh: Ditto.
5454         * gdbarch.h: Ditto.
5455
5456 2004-07-09  Paul N. Hilfinger  <Hilfinger@gnat.com>
5457
5458         * ada-tasks.c: Remove file.
5459         
5460         Remove ARI problems:
5461         
5462         * ada-exp.y (write_var_from_sym): Reformat to put operator at
5463         beginning of line.
5464
5465         * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5466         Add comment.
5467         Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5468         (MIN_OF_SIZE): Rename min_of_size.  Add comment.
5469         (UMAX_OF_SIZE): Renmae umax_of_size.  Add comment.
5470         (UMIN_OF_SIZE): Remove.
5471         (max_of_type): New function to replace orphan macro in gdbtypes.h
5472         (min_of_type): Ditto.
5473         (discrete_type_high_bound): Use max_of_type.
5474         (discrete_type_low_bound): Use min_of_type.
5475         (possible_user_operator_p): Move operator to beginning of line.
5476         (ada_is_variant_part): Ditto.
5477         (ensure_lval): Rewrite to avoid deprecated operations.
5478         (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5479         rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5480         (ada_enum_name): Remove assignments in 'if' statements.
5481         (build_ada_types): Add gdbarch parameter.
5482         (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5483         with gdbarch_data_register_post_init.
5484         Use add_setshow_uinteger_cmd rather than add_set_cmd and 
5485         add_show_from_set.
5486
5487         * ada-valprint.c (inspect_it): Remove declaration.
5488         (repeat_count_threshold): Remove declaration.
5489         (ada_print_floating): Remove assignments in 'if' statements.
5490         (print_str): Move operator to beginning of line.
5491         
5492 2004-07-08  Jim Blandy  <jimb@redhat.com>
5493
5494         * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5495
5496 2004-07-08  Bob Rossi  <bob@brasko.net>
5497
5498         * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5499
5500 2004-07-06  Jeff Johnston <jjohnstn@redhat.com>
5501
5502         * language.h (struct_language_defn): Add new function pointer:
5503         la_class_name_from_physname.  Also add new prototype for
5504         language_class_name_from_physname.
5505         * language.c (language_class_name_from_physname): New function.
5506         (unk_lang_class_name): Ditto.
5507         (unknown_language_defn, auto_language_defn): Change
5508         to add unk_lang_class_name function pointer for
5509         la_class_name_from_physname.
5510         (local_language_defn): Ditto.
5511         * dwarf2read.c (guess_structure_name): Change to call
5512         language_class_name_from_physname.
5513         (determine_class_name): Ditto.
5514         * cp-support.c (class_name_from_physname): Renamed.
5515         (cp_class_name_from_physname): New name of function.
5516         * cp-support.h: Ditto.
5517         * c-lang.c (c_language_defn): Change to add NULL
5518         for class_name_from_physname function pointer.
5519         (cplus_language_defn): Change to add cp_class_name_from_physname.
5520         * jv-lang.c (java_class_name_physname): New function.
5521         (java_find_last_component): New static routine.
5522         (java_language_defn): Add java_class_name_from_physname pointer.
5523         * ada-lang.c (ada_language_defn): Change to add NULL
5524         for class_name_from_physname function pointer.
5525         * f-lang.c (f_language_defn): Ditto.
5526         * m2-lang.c (m2_language_defn): Ditto.
5527         * objc-lang.c (objc_language_defn): Ditto.
5528         * p-lang.c (pascal_language_defn): Ditto.
5529         * scm-lang.c (scm_language_defn): Ditto. 
5530
5531 2004-07-06  Andrew Cagney  <cagney@gnu.org>
5532
5533         Patch from Bart Robinson.
5534         * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5535         (O_LARGEFILE): Define to 0, if not defined.
5536
5537 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5538
5539         * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5540         <machine/pcb.h> and "bsd-kvm.h".
5541         (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5542         (m68kbsd_supply_pcb): New function.
5543         (_initialize_m68kbsd_nat): New prototype and function.
5544         * Makefile.in (m68kbsd-nat.o): Update dependencies.
5545         * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5546         (LOADLIBES): New variable.
5547         * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5548         (LOADLIBES): New variable.
5549
5550         * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5551
5552 2004-07-03  Mark Kettenis  <kettenis@gnu.org>
5553
5554         * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5555         <sys/proc.h>.
5556         (bsd_kvm_cmdlist): New variable.
5557         (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5558         (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5559         command and "kvm proc" command.
5560         * Makefile.in (bsd-kvm.o): Update dependencies.
5561
5562 2004-07-02  Mark Kettenis  <kettenis@gnu.org>
5563
5564         * osabi.c: Update copyright year.
5565         (generic_elf_osabi_sniffer): Tweak comment.  Look for OS-specific
5566         notes if EI_OSABI is set to ELFOSABI_HPUX.
5567
5568 2004-07-01  Michael Snyder  <msnyder@redhat.com>
5569
5570         * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5571         that seems to have gotten whacked out of line.
5572
5573 2004-07-01  Mark Kettenis  <kettenis@gnu.org>
5574
5575         * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5576         code.
5577
5578 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5579
5580         * ada-lang.c (decode_packed_array): Minor change to comment.
5581         (ada_value_slice_ptr): New function. 
5582         (ada_value_slice): New function. 
5583         (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5584         test.  Don't know why it is there.
5585         Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5586         to avoid dereferencing huge arrays from which one is slicing.  
5587         (empty_array): Correct to return an array rather than
5588         a subrange value.
5589         * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5590         on empty arrays (let'em use 'FIRST instead).
5591
5592 2004-07-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
5593
5594         Address complaints from gdb_ari.sh:
5595         
5596         * ada-exp.y: Include gdb_string.h rather than string.h.
5597         (convert_char_literal): Reformat declaration.
5598         * ada-lang.h: Include opaque struct declaration for struct frame_info.
5599         * ada-lex.l: Change use of free to xfree (the macro would do so
5600         anyway, but this is harmless).
5601         Include gdb_string.h rather than string.h.
5602         * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5603         
5604         * ada-lang.c (parse): Remove K&Rism in parameter list.
5605         (is_name_suffix): Correct Linux => GNU/Linux in comment.
5606         
5607 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5608
5609         * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5610         dead code.
5611
5612 2004-06-30  Mark Kettenis  <kettenis@gnu.org>
5613
5614         * alphabsd-nat.c: Update copyright year.
5615         (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5616
5617 2004-06-29  Joel Brobecker  <brobecker@gnat.com>
5618
5619         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5620         (i386_cygwin_in_solib_call_trampoline): New function.
5621         (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5622         and skip_trampoline_code gdbarch methods.
5623
5624 2004-06-29  Jim Blandy  <jimb@redhat.com>
5625
5626         * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5627         name actually used in the dependency lists.
5628
5629 2004-06-29  Randolph Chung  <tausq@debian.org>
5630
5631         * NEWS (New native configurations): Mention GNU/Linux/hppa.
5632
5633 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5634
5635         * win32-nat.c (child_pid_to_exec_file): New function.
5636         (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5637         functionality.
5638
5639 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5640
5641         * defs.h (xstrvprintf): Declare.
5642         * utils.c (xstrvprintf): New function.
5643         (internal_vproblem, xstrprintf, xasprintf) 
5644         (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5645         * serial.c (serial_printf): Ditto.
5646         * complaints.c (vcomplaint): Ditto.
5647
5648 2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
5649
5650         * infcmd.c (attach_command): Move call to target_terminal_inferior
5651         behind loading symbol table.
5652
5653 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5654
5655         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5656         change - add back extern deprecated_ui_loop_hook declaration.
5657
5658 2004-06-28  Andrew Cagney  <cagney@gnu.org>
5659
5660         * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5661         xstrprintf.
5662         * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5663         (c_value_of_variable): Ditto.
5664         * utils.c (internal_vproblem): Ditto.
5665         * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5666         * remote.c (add_packet_config_cmd): Ditto.
5667         * remote-rdp.c (rdp_set_command_line): Ditto.
5668         * regcache.c (regcache_dump): Ditto.
5669         * frv-tdep.c (new_variant, new_variant): Ditto.
5670         * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5671         (fbsd_find_memory_regions): Ditto.
5672         * breakpoint.c (create_thread_event_breakpoint) 
5673         (create_breakpoints): Ditto.
5674         * aix-thread.c (aix_thread_pid_to_str): Ditto.
5675         * ada-lang.c (is_package_name): Ditto.  Also delete xmalloc call.
5676
5677 2004-06-28  Joel Brobecker  <brobecker@gnat.com>
5678
5679         * ada-lang.c: Re-indent file, with some massaging to help indent
5680         a bit when the result is otherwise really too ugly.
5681
5682 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5683
5684         * frame.h (struct frame_id): Change bit field type of stack_addr_p, 
5685         code_addr_p and special_addr_p to 'unsigned int'.
5686
5687 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5688
5689         * i386v4-nat.c: Update copyright year and tweak comment.
5690         (regmap): Remove trailing comma.
5691         (supply_gregset): Rename local variable i to regnum.  Call
5692         regcache_raw_supply instead of supply_register.
5693         (fill_gregset): Rename argument regno to regnum.  Call
5694         regcache_raw_collect instead of regcache_collect.
5695
5696 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
5697
5698         * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5699         and special_addr_p.
5700         (frame_id_build, frame_id_build_special): Update comments.
5701         (frame_id_build_wild): New prototype.
5702         * frame.c (frame_id_build, frame_id_build_special): Fill in new
5703         struct frame_id fields.
5704         (frame_id_build_wild): New function.
5705         (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5706
5707 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5708
5709         * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5710         hppabsd-tdep.c.
5711
5712 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5713
5714         * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5715
5716 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5717
5718         * ada-lang.c: Re-indent file.
5719
5720 2004-06-27  Joel Brobecker  <brobecker@gnat.com>
5721
5722         * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5723         (no_symtab_msg): Likewise.
5724
5725 2004-06-27  Andreas Schwab  <schwab@suse.de>
5726
5727         * source.c: Fix whitespace.
5728
5729 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5730
5731         * configure.in: Include <sys/param.h> for td_pcb test.
5732         * configure: Regenerated.
5733
5734         * i386nbsd-nat.c: New file.
5735         * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5736         i386obsd-nat.c and i386obsd-tdep.c.
5737         (i386nbsd-nat.o): New dependency.
5738         * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5739         bsd-kvm.o.
5740         (LOADLIBES): New variable.
5741         * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5742         bsd-kvm.o.
5743         (LOADLIBES): New variable.
5744
5745         * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5746         (LOADLIBES): New variable.
5747
5748         * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5749         fetching from BSD_KVM_PADDR.  Correctly lookup address for
5750         "_thread0".
5751
5752         * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5753         "bsd-kvm.h".
5754         (amd64fbsd_supply_pcb): New funcion.
5755         (_initialize_amd64fbsd_nat): Enable libkvm interface.
5756
5757 2004-06-27    <david@streamline-computing.com>
5758
5759         Partial fix for PR cli/1056.
5760         * valarith.c: Check for zero in division and remainder 
5761         evaluation.
5762
5763 2004-06-27  Mark Kettenis  <kettenis@gnu.org>
5764
5765         * i387-tdep.c: Remove excessive whitespace.
5766
5767 2004-06-26  Andrew Cagney  <cagney@gnu.org>
5768
5769         * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5770         * gdb-events.h, gdb-events.c: Re-generate.
5771         * tui/tui-hooks.c (tui_install_hooks): Update.
5772         (tui_remove_hooks): Update.
5773         * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5774
5775 2004-06-26  Mark Kettenis  <kettenis@gnu.org>
5776
5777         * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5778         (gregset_t, fpregset_t): Remove typedefs.
5779         (REG_OFFSET): Rename argument.
5780         (amd64bsd_r_reg_offset): Rename from reg_offset.
5781         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5782         Remove functions.
5783         (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5784         of reg_offset.
5785         * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5786
5787         * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5788
5789         * vax-tdep.c: Tweak comment.
5790
5791         Add OpenBSD/hppa support.
5792         * NEWS (New native configurations): Mention OpenBSD/hppa.
5793         * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5794         config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5795         files.
5796         * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5797         (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5798         * configure.host: Add hppa*-*-openbsd*.
5799         * configure.tgt: Add hppa*-*-openbsd*.
5800
5801 2004-06-25  Andrew Cagney  <cagney@gnu.org>
5802
5803         * defs.h (deprecated_ui_loop_hook): Deprecated.
5804         * wince.c (child_wait): Update.
5805         * win32-nat.c (child_wait): Update.
5806         * v850ice.c (v850ice_wait): Update.
5807         * top.c (deprecated_ui_loop_hook): Update.
5808         * serial.h: Update.
5809         * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar) 
5810         (do_unix_readchar): Update.
5811         * ser-tcp.c (net_open): Update.
5812         * remote-sim.c (gdb_os_poll_quit): Update.
5813         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5814
5815 2004-06-24  Andrew Cagney  <cagney@gnu.org>
5816
5817         * defs.h (deprecated_pre_add_symbol_hook)
5818         (deprecated_post_add_symbol_hook): Deprecated.
5819         * symfile.c (symbol_file_add_with_addrs_or_offsets) 
5820         (symbol_file_add_with_addrs_or_offsets): Update references.
5821
5822 2004-06-24  Andrew Cagney  <cagney@gnu.org>
5823
5824         * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5825         (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5826         * wince.c (ui_loop_hook): Delete extern declaration.
5827         * win32-nat.c (ui_loop_hook): Delete extern declaration..
5828         * v850ice.c (ui_loop_hook): Delete extern declaration..
5829         * ser-unix.c (ui_loop_hook): Delete extern declaration..
5830         * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5831         * remote-sim.c (ui_loop_hook): Delete extern declaration..
5832         * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5833         ui_loop_hook declaration.
5834
5835 2004-06-24  Andrew Cagney  <cagney@gnu.org>
5836
5837         * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5838         entry_func_highpc fields.
5839         * objfiles.c (init_entry_point_info): Do not clear
5840         entry_func_lowpc and entry_func_highpc.
5841         (objfile_relocate): Do not relocate entry_func_lowpc and
5842         entry_func_highpc.
5843         * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5844         entry_func_highpc.
5845         * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5846         entry_func_highpc.
5847         * blockframe.c (legacy_frame_chain_valid): Replace tests against
5848         entry_func_lowpc and entry_func_highpc with call to
5849         inside_entry_func.
5850
5851 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
5852
5853         * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5854         quad-precision floating point arguments in registers.
5855
5856 2004-06-24  Mark Kettenis  <kettenis@gnu.org>
5857
5858         From Michael Mueller <m.mueller99@kay-mueller.de>:
5859         * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5860         account.
5861
5862 2004-06-22  Jeff Johnston  <jjohnstn@redhat.com>
5863
5864         * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5865         to -1.
5866         * breakpoint.c (bpstat_stop_status): Move check for ignoring
5867         untriggered watchpoints to a separate if clause.  Update function
5868         comment regarding STOPPED_BY_WATCHPOINT argument.
5869
5870 2004-06-22  Jim Blandy  <jimb@redhat.com>
5871
5872         * gdbarch.sh: Doc fix.
5873
5874 2004-06-21  Martin Hunt  <hunt@redhat.com>
5875         Kevin Buettner <kevinb@redhat.com>
5876
5877         * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5878         * mips-tdep.h (MIPS_SP_REGNUM): Define.
5879         * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5880         to set_gdbarch_sp_regnum().  Use cooked register number.
5881         (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5882
5883 2004-06-21  Andrew Cagney  <cagney@gnu.org>
5884
5885         * gdbarch.sh: When the macro field is empty, do not generate a
5886         macro definition.  When the macro field is "=", generate the macro
5887         name from the upper-case function name.
5888         (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5889         (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5890         (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5891         (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5892         (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5893         (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5894         (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5895         (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5896         (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5897         (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5898         (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5899         (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5900         (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5901         (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5902         (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5903         (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5904         (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5905         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5906         (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5907         (DEPRECATED_USE_STRUCT_CONVENTION)
5908         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5909         (DEPRECATED_FRAME_INIT_SAVED_REGS)
5910         (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5911         (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5912         (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5913         (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5914         (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5915         (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5916         (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5917         (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5918         (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5919         (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5920         (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5921         (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5922         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5923         (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5924         (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5925         (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5926
5927 2004-06-21  Andrew Cagney  <cagney@gnu.org>
5928
5929         * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5930         macro name, and the function rather than macro value.  Only wrap
5931         macro print statements in #ifdef.  Move format logic to where it
5932         is needed.
5933         * gdbarch.c: Re-generate.
5934         
5935         * gdbarch.sh (read): Delete "print_p" and "description", add
5936         "garbage_at_eol".  Check for non-empty garbage at end-of-line.
5937         Delete references to print_p.
5938         (TARGET_ARCHITECTURE): Delete print predicate.
5939         * gdbarch.c: Re-generate.
5940         
5941         * gdbarch.sh: Check that multi-arch methods do not provide a
5942         macro.
5943         (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5944         (print_registers_info, print_float_info, print_vector_info)
5945         (adjust_breakpoint_address, remote_translate_xfer_address)
5946         (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5947         (address_class_type_flags_to_name, unwind_sp): Remove the macro
5948         name from the multi-arch definition.
5949         
5950 2004-06-20  Andrew Cagney  <cagney@gnu.org>
5951
5952         * gdbarch.sh: Sort by the function, instead of macro name.
5953         * gdbarch.c: Re-generate.
5954         
5955 2004-06-20  Andrew Cagney  <cagney@gnu.org>
5956
5957         * gdbarch.sh: Use the function, instead of macro name in
5958         errors and the log file.
5959         (return_value): Remove stray ":" in spec.
5960
5961         * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5962         * gdbarch.h, gdbarch.c: Re-generate.
5963         * Makefile.in (arch-utils.o): Update dependencies.
5964         * values.c (using_struct_return): Move code calling
5965         USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5966         * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5967         to legacy_return_value, simplify.
5968         * infcmd.c (print_return_value): Move code calling
5969         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5970         to legacy_return_value, simplify.
5971         * infcall.c (call_function_by_hand): Move code calling
5972         EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5973         * arch-utils.c: Update copyright.  Include "gdbcore.h".
5974         (legacy_return_value): New function.
5975         * arch-utils.h: Update copyright.
5976         (legacy_return_value): Declare.
5977         
5978 2004-06-20  Andrew Cagney  <cagney@gnu.org>
5979
5980         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5981         * gdbarch.h, gdbarch.c: Re-generate.
5982         * values.c (using_struct_return): Update call.
5983         * mcore-tdep.c: Update comment.
5984         * infcall.c (call_function_by_hand): Update comment.
5985         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5986         * arch-utils.h (always_use_struct_convention): Update.
5987         * v850-tdep.c (v850_gdbarch_init): Update.
5988         * sh64-tdep.c (sh64_gdbarch_init): Update.
5989         * sh-tdep.c (sh_gdbarch_init): Update.
5990         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5991         * mips-tdep.c (mips_gdbarch_init): Update.
5992         * mcore-tdep.c (mcore_gdbarch_init): Update.
5993         * m32r-tdep.c (m32r_gdbarch_init): Update.
5994         * ia64-tdep.c (ia64_gdbarch_init): Update.
5995         * h8300-tdep.c (h8300_gdbarch_init): Update.
5996         * frv-tdep.c (frv_gdbarch_init): Update.
5997         * cris-tdep.c (cris_gdbarch_init): Update.
5998         * arm-tdep.c (arm_gdbarch_init): Update.
5999         * alpha-tdep.c (alpha_gdbarch_init): Update.
6000
6001 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
6002
6003         * PROBLEMS: Add more specific information, and a work-around,
6004         for PR gdb/1458.
6005
6006 2004-06-18  Andrew Cagney  <cagney@gnu.org>
6007
6008         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6009         * gdbarch.h, gdbarch.c: Re-generate.
6010         * ada-lang.c (ada_finish_decode_line_1): Update.
6011         * infrun.c (handle_inferior_event): Update.
6012         * infcall.c (find_function_addr): Update.
6013         * linespec.c (minsym_found): Update.
6014         * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6015         Update.
6016         * blockframe.c (legacy_frameless_look_for_prologue): Update.
6017         * cli/cli-cmds.c (disassemble_command): Update.
6018         * vax-tdep.c (vax_gdbarch_init): Update.
6019
6020 2004-06-18  Mark Kettenis  <kettenis@gnu.org>
6021
6022         * i386-tdep.c (i386_collect_fpregset): Fix comment.
6023
6024 2004-06-17  Andrew Cagney  <cagney@gnu.org>
6025
6026         GDB 6.1.1 released from the GDB 6.1 branch.
6027         * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6028         * PROBLEMS: Ditto.
6029
6030 2004-06-16  Daniel Jacobowitz  <dan@debian.org>
6031
6032         PR gdb/1658
6033         * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6034         operation as a uleb128.  Found by Michael Coulter.
6035
6036 2004-06-16  Paul N. Hilfinger  <Hilfinger@gnat.com>
6037         
6038         * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6039         make it non-static.
6040         * ada-lang.h (task_control_block): declaration moved from ada-task.c
6041         to ada-lang.h; this is needed to be able to implement the kill command
6042         in multi-task mode.
6043         (task_ptid): Ditto.
6044         (task_entry): Ditto.
6045         (task_list): Ditto.
6046         (ada_build_task_list): Ditto.
6047         
6048         * ada-lang.c: Conditionalize routines and data structures related 
6049         to breakpoints, exceptions, completion, and symbol caching on 
6050         GNAT_GDB, since these are not yet used in the submitted public sources.
6051         (ada_main_name): Editorial: Move definition out of exception-related 
6052         code.
6053
6054 2004-06-15  Andrew Cagney  <cagney@gnu.org>
6055
6056         * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6057         deprecated_pc_in_call_dummy.
6058
6059 2004-06-15  Alan Modra  <amodra@bigpond.net.au>
6060
6061         * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6062         bfd_get_section_size_before_reloc or _raw_size.
6063         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6064         * dwarf2read.c (dwarf2_locate_sections): Likewise.
6065         (dwarf2_read_section): Likewise.
6066         * elfread.c (elf_locate_sections): Likewise.
6067         * gcore.c (derive_heap_segment): Likewise.
6068         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6069         * remote-e7000.c (e7000_load): Likewise.
6070         * remote-m32r-sdi.c (m32r_load): Likewise.
6071         * remote-mips.c (mips_load_srec): Likewise.
6072         (pmon_load_fast): Likewise.
6073         * remote.c (compare_sections_command): Likewise.
6074         * symfile.c (add_section_size_callback): Likewise.
6075         (load_section_callback): Likewise.
6076         (pc_in_unmapped_range): Likewise.
6077         (pc_in_mapped_range): Likewise.
6078         (sections_overlap): Likewise.
6079         (list_overlays_command): Likewise.
6080         (simple_overlay_update_1): Likewise.
6081         (simple_overlay_update): Likewise.
6082         * tracepoint.c (remote_set_transparent_ranges): Likewise.
6083         * win32-nat.c (core_section_load_dll_symbols): Likewise.
6084
6085 2004-06-14  Randolph Chung  <tausq@debian.org>
6086
6087         * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6088         * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make 
6089         static.
6090         (hppa_hpux_inferior_created): New function.
6091         (hppa_hpux_init_abi): Register observer.
6092         * symfile.c (hp_cxx_exception_support_initialized)
6093         (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6094         (symbol_file_add_main_1, symbol_file_clear): Likewise.
6095
6096 2004-06-14  Randolph Chung  <tausq@debian.org>
6097
6098         * MAINTAINERS (Write After Approval): Alphabetize my entry
6099         correctly.
6100
6101 2004-06-14  Andrew Cagney  <cagney@gnu.org>
6102
6103         * MAINTAINERS (testsuite): List Michael Chastain as the lead
6104         testsuite maintainer.
6105
6106 2004-06-13  Andrew Cagney  <cagney@gnu.org>
6107
6108         * infcmd.c (print_return_value): Fix logic, allow
6109         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6110
6111         * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6112         defining any macros.
6113         * gdbarch.h: Re-generate.
6114
6115         * gdbarch.sh: Delete "level" attribute.  Only check for a macro
6116         redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6117         * gdbarch.h: Re-generate.
6118
6119         * values.c (generic_use_struct_convention): Don't check gcc_p.
6120
6121         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6122         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6123         * gdbarch.h, gdbarch.c: Regenerate.
6124         * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE) 
6125         (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6126         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6127         deprecated_max_register_raw_size and
6128         deprecated_max_register_virtual_size.
6129         * v850-tdep.c (v850_gdbarch_init): Ditto.
6130         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6131         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6132         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6133         * cris-tdep.c (cris_gdbarch_init): Ditto.
6134
6135         * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6136         * gdbarch.h, gdbarch.c: Re-generate.
6137         * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6138         (m68hc11_use_struct_convention): Delete function.
6139         (m68hc11_extract_struct_value_address): Delete function.
6140         (m68hc11_return_value): New function.
6141         (m68hc11_gdbarch_init): Instead of store_return_value,
6142         extract_return_value, return_value_on_stack,
6143         deprecated_extract_struct_value_address and use_struct_convention,
6144         set return_value.
6145         * values.c (using_struct_return): Do not call
6146         RETURN_VALUE_ON_STACK.
6147         * arch-utils.h (generic_return_value_on_stack_not): Delete
6148         declaration.
6149         * arch-utils.c (generic_return_value_on_stack_not): Delete
6150         function.
6151         
6152 2004-06-12  Andrew Cagney  <cagney@gnu.org>
6153
6154         * values.c (register_value_being_returned): Delete function.
6155         * infcmd.c (legacy_return_value): Delete function.
6156         * infcall.c (call_function_by_hand): Inline
6157         "register_value_being_returned", simplify.
6158         * values.c (using_struct_return): Update comment, refer to
6159         print_return_value instead of register_value_being_returned.
6160         * infcmd.c (print_return_value): Inline calls to
6161         register_value_being_returned and legacy_return_value.  Simplify.
6162
6163 2004-06-11  Randolph Chung  <tausq@debian.org>
6164
6165         * somread.c (som_symtab_read): Exclude gcc local symbols.
6166
6167 2004-06-11  Randolph Chung  <tausq@debian.org>
6168
6169         * infrun.c (handle_inferior_event): Handle the case when a
6170         trampoline ends up in the runtime resolver, and if the trampoline
6171         has no name.  Rearrange the code so that all the trampoline
6172         processing happens before other step-out-of-range handling.
6173
6174 2004-06-11  Martin Hunt  <hunt@redhat.com>
6175
6176         * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6177         has no fpu.
6178
6179 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6180
6181         * blockframe.c (legacy_inside_entry_func): Delete.
6182         (legacy_frame_chain_valid): Inline call to
6183         legacy_inside_entry_func, simplify.
6184
6185 2004-06-10  Bob Rossi  <bob@brasko.net>
6186
6187         * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6188         * dwarf2read.c (partial_die_info): Add dirname field.
6189         (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6190         (read_partial_die): Save away DW_AT_comp_dir.
6191         * defs.h (symtab_to_filename): Removed.
6192         * source.c (find_and_open_source): Added.
6193         (open_source_file): Just calls find_and_open_source.
6194         (symtab_to_filename): Removed.
6195         (symtab_to_fullname, psymtab_to_fullname): Added.
6196         * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6197         * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6198         symtab_to_filename.
6199         * symtab.h (partial_symtab): Add dirname field.
6200         * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6201         (mi_cmd_file_list_exec_source_file): Call new function
6202         symtab_to_fullname to find fullname.
6203         (mi_cmd_file_list_exec_source_files): Added.
6204         * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6205         * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6206
6207 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6208
6209         * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6210         to generic_use_struct_convention, the default value.
6211
6212         * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6213         of abort.
6214
6215         * ns32k-tdep.c (ns32k_push_arguments): New function.
6216         (ns32k_gdbarch_init): Set deprecated_push_arguments.
6217         * infcall.c (call_function_by_hand): Call error instead of
6218         legacy_push_arguments.
6219         * value.h (legacy_push_arguments): Delete declaration.
6220         * valops.c (legacy_push_arguments): Delete function.
6221         (value_push): Delete function.
6222
6223 2004-06-10  Brian Ford  <ford@vss.fsi.com>
6224
6225         * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6226         from corrupting/reinitializing the psymtab.  Support DWARF 2 frame
6227         info.
6228         * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6229
6230 2004-06-10  Andrew Cagney  <cagney@gnu.org>
6231
6232         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6233         * gdbarch.h, gdbarch.c: Re-generate.
6234         * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6235         parameters.
6236         * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6237         * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6238         deprecated_pc_in_call_dummy instead of
6239         DEPRECATED_PC_IN_CALL_DUMMY.
6240         (arm_skip_prologue): Ditto.
6241         * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6242         (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6243         * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6244         (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6245         Ditto.
6246         * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr) 
6247         (sh64_init_extra_frame_info, sh64_get_saved_register) 
6248         (sh64_pop_frame): Ditto.
6249         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6250         * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc) 
6251         (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6252         * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc) 
6253         (h8300_pop_frame): Ditto.
6254         * blockframe.c (legacy_inside_entry_func) 
6255         (legacy_frame_chain_valid): Ditto.
6256         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6257         to deprecated_pc_in_call_dummy.
6258         
6259 2004-06-09  Andrew Cagney  <cagney@gnu.org>
6260
6261         * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6262         provide a default value.
6263         (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6264         * gdbarch.h, gdbarch.c: Re-generate.
6265         * arch-utils.c (generic_convert_register_p): Rename
6266         legacy_convert_register_p
6267         (legacy_register_to_value, legacy_value_to_register): Delete
6268         functions.
6269         * arch-utils.h (generic_convert_register_p): Rename
6270         legacy_convert_register_p.
6271         (legacy_register_to_value, legacy_value_to_register): Delete
6272         declarations.
6273
6274         * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6275         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6276         (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6277         * gdbarch.h, gdbarch.c: Re-generate.
6278         * infcmd.c (default_print_registers_info): Simplify.
6279         * findvar.c (value_of_register): Simplify.
6280         * mi/mi-main.c (get_register): Simplify.
6281         * arch-utils.c (legacy_convert_register_p): Always return 0.
6282         (legacy_register_to_value, legacy_value_to_register): Always call
6283         internal_error.
6284
6285         * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6286         #ifdef CLEAR_INSN_CACHE code.
6287         * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6288         Delete #ifdef CLEAR_DEFERRED_STORES code.
6289
6290         * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6291
6292         * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6293         copyright.
6294         * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6295
6296         * config/mips/mipsv4.mh: Delete file.
6297
6298         * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6299         unreferenced macro.
6300         (hpread_adjust_stack_address): Delete declaration.
6301
6302 2004-06-08  Andrew Cagney  <cagney@gnu.org>
6303
6304         * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6305         (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6306         PTRACE_ATTACH / PTRACE_DETACH available call error.
6307         (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6308         * infttrace.c (update_thread_state_after_attach, attach, detach):
6309         Remove #ifdef wrappers.
6310         * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6311         * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6312         * config/nm-bsd.h (ATTACH_DETACH): Delete.
6313         * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6314         * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6315         * config/nm-linux.h (ATTACH_DETACH): Delete.
6316         * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6317         * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6318         * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6319         * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6320         * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6321
6322 2004-06-08  Corinna Vinschen  <vinschen@redhat.com>
6323
6324         * configure.in: Set $configdir to the right OS specific value.
6325         Use value when setting $tcldir and $tkdir.
6326         * configure: Regenerate.
6327
6328 2004-06-06  Paul Brook  <paul@codesourcery.com>
6329
6330         * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6331         records.
6332
6333 2004-06-08  Paul N. Hilfinger  <Hilfinger@gnat.com>
6334
6335         * ada-lang.c (lookup_symbol_in_language): New function to allow
6336         re-use of another language's symbol lookup code.  (Placed here
6337         temporarily while Ada support is being integrated into the public
6338         tree).  
6339         (restore_language): New auxiliary function for 
6340         lookup_symbol_in_language.
6341         * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6342         temporarily while Ada support is being integrated into the public
6343         tree).
6344         
6345 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
6346
6347         * Makefile.in (check//%): New.
6348
6349         * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6350         (mn10300_store_return_value): Rewrite.
6351         (mn10300_type_align): New.
6352         (mn10300_use_struct_convention): Rewrite.
6353         (mn10300_return_value): New, using all of the above.
6354         (mn10300_pop_frame_regular): Add saved_regs_size.
6355         (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6356
6357         * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6358         regs if PC is on movm.
6359
6360 2004-06-07  Jim Blandy  <jimb@redhat.com>
6361
6362         Add native Linux support for the PowerPC E500.
6363         * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6364         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6365         all architectures except the E500.
6366         * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6367         #definitions.
6368         (struct gdb_evrregset_t): New type.
6369         (have_ptrace_getsetevrregs): New variable.
6370         (get_spe_registers, read_spliced_spe_reg, fetch_spe_register, 
6371         fetch_spe_registers): New functions.
6372         (fetch_register): Call fetch_spe_register as appropriate.
6373         Assert that we're only passed raw register numbers.
6374         (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6375         Don't fetch gprs if they're pseudoregisters.
6376         (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6377         store_spe_registers): New functions.
6378         (store_register): Call store_spe_register as appropriate.
6379         Assert that we're only passed raw register numbers.
6380         (store_ppc_registers): Call store_spe_registers as appropriate.
6381         Don't store gprs if they're pseudoregisters.
6382         
6383 2004-06-07  Jeff Johnston  <jjohnstn@redhat.com>
6384
6385         * thread-db.c (thread_get_info_callback): Fill in the thread_info
6386         struct if one exists, even if we are dealing with a zombie thread.
6387
6388 2004-06-07  Andrew Cagney  <cagney@gnu.org>
6389
6390         * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6391         * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6392         Rename PC_REQUIRES_RUN_BEFORE_USE.
6393         * breakpoint.c (breakpoint_sals_to_pc): Update.  Wrap reference in
6394         #ifdef.
6395
6396 2004-06-07  Randolph Chung  <tausq@debian.org>
6397
6398         * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6399         unwinding after sp has been saved to the stack but before the end
6400         of the prologue, and after the fp has been modified but before it has
6401         been saved to the stack.
6402         (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): 
6403         Remove superfluous definitions.
6404         (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6405
6406 2004-06-07  Guy Martin  <gmsoft@gentoo.org>
6407
6408         Committed by Randolph Chung.
6409         * hppa-linux-nat.c: Include the correct version of the header file
6410         depending on the kernel version.
6411
6412 2004-06-06  Randolph Chung  <tausq@debian.org>
6413
6414         * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6415         (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6416
6417 2004-06-06  Randolph Chung  <tausq@debian.org>
6418
6419         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) 
6420         (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6421         * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6422         * hppa-tdep.c (hppa_symbol_address): New function definition.
6423         * hppa-tdep.h (hppa_symbol_address): New function declaration.
6424
6425 2004-06-06  Randolph Chung  <tausq@debian.org>
6426
6427         * hppa-tdep.h (struct value): Forward declaration.
6428         (gdbarch_tdep): Define tdep find_global_pointer method.
6429         * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6430         associated with the function we are trying to call, and write it
6431         to the gp register.
6432         (hppa32_convert_from_funct_ptr_addr): New function.
6433         (hppa_find_global_pointer): New function.
6434         (hppa_gdbarch_init): Set default find_global_pointer method; set
6435         convert_from_func_ptr_addr method.
6436         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6437         (hppa_linux_init_abi): Set find_global_pointer method.
6438         * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6439
6440 2004-06-06  Randolph Chung  <tausq@debian.org>
6441
6442         * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6443         to struct value *function.
6444         * gdbarch.c: Regenerate.
6445         * gdbarch.h: Likewise.
6446         * infcall.c (call_function_by_hand): Pass entire function value
6447         to push_dummy_call.
6448
6449         * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6450         (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6451         * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6452         * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6453         * arm-tdep.c (arm_push_dummy_call): Likewise.
6454         * avr-tdep.c (avr_push_dummy_call): Likewise.
6455         * cris-tdep.c (cris_push_dummy_call): Likewise.
6456         * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6457         * frv-tdep.c (frv_push_dummy_call): Likewise.
6458         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6459         * hppa-tdep.c (hppa32_push_dummy_call)
6460         (hppa64_push_dummy_call): Likewise.
6461         * i386-tdep.c (i386_push_dummy_call): Likewise.
6462         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6463         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6464         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6465         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6466         * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6467         * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6468         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6469         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6470         (ppc64_sysv_abi_push_dummy_call): Likewise.
6471         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6472         (ppc64_sysv_abi_push_dummy_call): Likewise.
6473         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6474         * s390-tdep.c (s390_push_dummy_call): Likewise.
6475         * sh-tdep.c (sh_push_dummy_call_fpu)
6476         (sh_push_dummy_call_nofpu): Likewise.
6477         * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6478         * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6479         * vax-tdep.c (vax_push_dummy_call): Likewise.
6480
6481 2004-06-04  Jim Blandy  <jimb@redhat.com>
6482
6483         * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6484         gdbarch argument to register_size.
6485
6486         * rs6000-tdep.c (rs6000_store_return_value): Use
6487         regcache_cooked_write_part instead of
6488         deprecated_write_register_bytes.
6489         (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6490         not gdbarch_deprecated_store_return_value.
6491
6492         * ppc-linux-nat.c (store_register, fetch_register): Remove
6493         incorrect assertions.  Simplify and generalize handling of
6494         transfers whose sizes are not multiples of, or less than, sizeof
6495         (PTRACE_XFER_TYPE).
6496
6497 2004-06-04  Jeff Johnston  <jjohnstn@redhat.com>
6498
6499         * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6500         as a new thread event.
6501         * thread-db.c (thread_get_info_callback): If the thread is a
6502         zombie, return TD_THR_ZOMBIE.
6503         (thread_from_lwp): If thread_get_info_callback returns
6504         TD_THR_ZOMBIE, check if the thread is still on the thread list
6505         and return a -1 ptid if not found.
6506         (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6507         change the status to TARGET_WAITKIND_SPURIOUS.
6508
6509 2004-06-03  Corinna Vinschen  <vinschen@redhat.com>
6510
6511         * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6512         double values in little endian mode.
6513
6514 2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>
6515
6516         Committed by Andrew Cagney.
6517         * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6518         after last enum constant to avoid error from IBM C
6519         compiler.
6520
6521 2004-06-02  Jim Blandy  <jimb@redhat.com>
6522
6523         * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6524         to 'message', and make it local to the lone block that uses it.
6525
6526         * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6527
6528 2004-06-02  Paul N. Hilfinger  <hilfinger@gnat.com>
6529
6530         * ada-exp.y: Update copyright notice.
6531         Include block.h.
6532         
6533         Replace REGNAME, LAST, INTERNAL_VARIABLE with
6534         SPECIAL_VARIABLE and unify the treatment of these cases.
6535
6536         (write_attribute_call0): Remove.
6537         (write_attribute_call1): Remove.
6538         (write_attribute_calln): Remove.
6539         (save_qualifier): Add missing semicolon.
6540
6541         (simple_exp,exp): Decomment (i.e., reactivate) code that was 
6542         temporarily disabled to allow compilation with FSF head version.
6543
6544         (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and 
6545         use individual operators (OP_*) for all attributes.
6546         (exp syntax): Use write_int.
6547         Handle STRING literals with OP_STRING.
6548         (variable syntax): Add limit parameter to calls to 
6549         write_object_renaming.  
6550
6551         (temp_parse_space): New definition to hold entities that need
6552         only live until the next call to ada_parse.
6553         (string_to_operator): Rename fields of ada_opname_table entries.
6554
6555         (write_var_from_sym): Record block.
6556         (write_var_from_name): Minor reformatting.
6557         Make sure saved name is properly encoded in the case of multiple 
6558         matches, and set its language to Ada.
6559         Update comment.
6560         Modify to indicate unresolved name as symbol in the UNRESOLVED 
6561         namespace, allocated in temp_parse_space.
6562         (write_int): New function.
6563
6564         (write_object_renaming): Add max_depth parameter to limit
6565         chains of object renamings.
6566         Handle case where root of renaming expression is itself a renaming.
6567         Use temp_parse_space for temporary name buffer.
6568         Handle renamings to dereferenced pointers (___XEXA suffices).
6569         
6570         (ada_parse, yyerror, string_to_operator, 
6571         write_var_from_sym, write_var_from_name, write_attribute_call0, 
6572         write_attribute_call1, write_attribute_calln, 
6573         write_object_renaming): Protoize.
6574
6575         (_initialize_ada_exp): New function.
6576         
6577         * ada-lang.c: Update copyright notice.
6578         General terminology change to conform to GNAT compiler usage:
6579         mangle => encode, demangle => decode
6580         Include gdb_obstack.h.
6581         Include gdb_regex.h
6582         Include frame.h
6583         Include hashtab.h
6584         Include completer.h
6585         Include gdb_stat.h
6586         Include block.h
6587         Include infcall.h
6588         
6589         (ADA_RETAIN_DOTS): Make sure this is defined.
6590         (TRUNCATION_TOWARDS_ZERO): Define.
6591         (struct string_vector): Define.
6592         (unresolved_names): Remove definition.
6593         (xnew_string_vector): New function.
6594         (string_vector_append): New function.
6595         (extract_string): Make static.
6596         (ada_unqualified_name): New function.
6597         (add_angle_brackets): New function.
6598         (function_name_from_pc): New function.
6599         (place_on_stack): Rename to ensure_lval.
6600
6601         (ensure_lval): Renamed from place_on_stack.
6602         Make identity on lvals.
6603         Update comment.
6604         (is_nonfunction): New interface.
6605         Only symbols in LOC_CONST class can be enumerals.
6606         (fill_in_ada_prototype): Remove; now independent of language.
6607         (add_defn_to_vec): Add obstack and symtab arguments.
6608         Use obstack to hold collected definitions.
6609         (num_defns_collected): New function.
6610         (defns_collected): New function.
6611         (ada_resolve_subexp): Rename to resolve_subexp.
6612         (resolve_subexp): Renamed from ada_resolve_subexp.
6613         (ada_op_name): Return non-const result.
6614         (ada_decoded_op_name): Renamed from ada_op_name, now used for
6615         other purposes.
6616
6617         (to_fixed_array_type): Add declaration.
6618         (coerce_unspec_val_to_type): Remove offset parameter.
6619         (find_sal_from_funcs_and_line): New interface.
6620         (find_line_in_linetable): Ditto.
6621
6622         (all_sals_for_line): Rename to ada_sals_for_line and make
6623         global.
6624         Add new parameter. When set, do not ask the user to choose the 
6625         instance, but use the first one found instead.
6626         Use given line number in returned sals.
6627         Fix comment. 
6628         Skip the prologue if funfirstline is set.
6629         Correct for memory leak when 0 lines found.
6630
6631         (value_pos_atr): Use pos_atr.
6632         (pos_atr): New function.
6633         (standard_lookup): Add block parameter.
6634
6635         (makeTimeStart): Remove declaration and uses.
6636         (makeTimeStop): Remove declaration and uses.
6637
6638         (ada_completer_word_break_characters): Allow for VMS.
6639         (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6640         (raise_sym_name): New constant.
6641         (raise_unhandled_sym_name): New constant.
6642         (raise_assert_sym_name): New constant.
6643         (process_raise_exception_name): New constant.
6644         (longest_exception_template): New constant.
6645         (warning_limit): New variable to limit warnings during expression
6646         evaluation.
6647         (warnings_issued): New variable to keep track of warnings issued.
6648         (known_runtime_file_name_patterns): New constant.
6649         (known_auxiliary_function_name_patterns): New constant.
6650         (symbol_list_obstack): New variable.
6651         
6652         (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6653         ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6654         lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6655         find_sal_from_funcs_and_line, ada_breakpoint_rewrite, 
6656         ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field, 
6657         ada_variant_discrim_name, field_alignment, dynamic_template_type,
6658         ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type): 
6659         Replace use of deprecated STREQ and STREQN macros by calls to strncmp 
6660         and strcmp. 
6661
6662         (ada_get_field_index): New function.
6663         (lim_warning): New function.
6664         (ada_translate_error_message): New function.
6665         (MAX_OF_SIZE): New function.
6666         (MIN_OF_SIZE): New function.
6667         (UMAX_OF_SIZE): New function.
6668         (UMIN_OF_SIZE): New function.
6669         (discrete_type_high_bound): New function.
6670         (discrete_type_low_bound): New function.
6671         (base_type): New function.
6672         (do_command): Remove.
6673         
6674         (ada_update_initial_language): Use language_ada, not language_unknown.
6675         (ada_encode): Renamed from ada_mangle.
6676         Obey ADA_RETAIN_DOTS.
6677         (ada_decode): Renamed from ada_demangle.
6678         Update coding conventions.
6679         (decoded_names_store): New hash table.
6680         (ada_decode_symbol): New function.
6681         (ada_la_decode): New function.
6682         
6683         (modify_general_field): Correct computations of offset and bit 
6684         position.
6685         (desc_base_type): Handle ref types, too.
6686         (ada_is_direct_array_type): New function.
6687
6688         (ada_is_simple_array): Rename to ada_is_simple_array_type.
6689         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6690         (ada_is_bogus_array_descriptor,ada_type_of_array,
6691         ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6692         ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed 
6693         ada_is_array_descriptor_type.
6694         
6695         (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6696         (ada_is_packed_array_type): Handle pointers or 
6697         references to packed arrays as well.
6698         (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6699         (decode_packed_array_type): Search for the packed array type 
6700         symbol in the currently selected block and associated 
6701         superblocks too.
6702         Use lookup_symbol again.
6703
6704         (decode_packed_array): Handle pointers and references.
6705         Update call to coerce_unspec_val_to_type.
6706         (decode_packed_array_type,value_subscript_packed): Limit warnings.
6707         (ada_value_primitive_packed_val): Improve comment.
6708         
6709         (ada_index_type): Substitute int type for "undefined".
6710         (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6711         ada_array_langth, ada_is_string_type): Use renamed 
6712         ada_is_simple_array_type.
6713         (empty_array): New function.
6714
6715         (ada_resolve):  Rename to resolve.
6716         (resolve): Make static.
6717         Call renamed resolve_subexp.
6718         Update comment.
6719         (ada_resolve_subexp): Rename to resolve_subexp.
6720         (resolve_subexp): Update comment.
6721         Decomment disabled code.
6722         Add LOC_COMPUTED* cases.
6723         Modify to use temporary struct symbols (marked as being in 
6724         UNDEF_NAMESPACE) to indicate unresolved names, instead of 
6725         OP_UNRESOLVED_VALUE.
6726         Remove OP_ATTRIBUTE; use individual opcodes for attributes.     
6727         Add OP_STRING case.
6728         Remove OP_ARRAY.
6729         Use SYMBOL_PRINT_NAME instead of ada_demangle.
6730         Use new ada_lookup_symbol_list interface.
6731         Use new ada_resolve_function interface.
6732         Remove OP_TYPE case.
6733
6734         (ada_args_match): Idiot proof against null actuals.
6735         Use intermediate variables to clarify.
6736         (ada_resolve_function): Update comment and interface.
6737         (mangled_ordered_before): Rename to encoded_ordered_before and
6738         update comment.
6739         (sort_choices): Update comment and interface.
6740         Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6741         (user_select_syms): New interface.
6742         Use new sort_choices interface.
6743         Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6744         (possible_user_operator_p): Idiot-proof against null values.
6745         (ada_simple_renamed_entity): Don't make cleanup; rely on 
6746         caller to free result string.
6747         Remove const from return type.
6748         (make_array_descriptor): Rename uses of place_on_stack to 
6749         ensure_lval.
6750         Make sure that arrays are on stack.
6751         
6752         (HASH_SIZE): Define.
6753         (struct cache_entry): Define.
6754         (cache_space): Define.
6755         (cache): Define.
6756         (clear_ada_sym_cache): New function.
6757         (find_entry): New function.
6758         (lookup_cached_symbol): New function.
6759         (defn_vector_size): Define.
6760         (cache_symbol): New function.
6761         (defn_symbols): Remove.
6762         
6763         (standard_lookup): Use lookup_symbol_in_language to get effect of
6764         C lookup.
6765         Cache results.
6766         
6767         (symbol_completion_match): New function.
6768         (symbol_completion_add): New function.
6769         (ada_make_symbol_completion_list): New function.
6770
6771         (ada_lookup_partial_symbol,ada_lookup_simple_minsym, 
6772         add_symbols_from_enclosing_procs,remove_extra_symbols): Replace 
6773         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME. 
6774         (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6775         
6776         (ada_lookup_simple_minsym): New function.
6777         (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6778
6779         (add_symbols_from_enclosing_procs): New interface.
6780         Conditionalize more helpfully.
6781         Don't bother if program isn't running.
6782         Use new interface to get_frame_block.
6783         Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6784         
6785         (remove_extra_symbols): New interface.
6786         (xget_renaming_scope): New function.
6787         (is_package_name): New function.
6788         (renaming_is_visible): New function.
6789         (remove_out_of_scope_renamings): New function.
6790
6791         (ada_lookup_symbol_list): New interface.
6792         Properly reinitialize the symbol list obstack.
6793         Don't call add_symbols_from_enclosing_procs if we start from a
6794         static or global block.
6795         Use new interfaces to ada_add_block_symbols, add_defn_to_vec, 
6796         add_symbols_from_enclosing_procs.
6797         Add symtab data to cached entries.
6798         Handle symbols prefixed with
6799         "standard__" specially; strip prefix and don't look in local symbols.
6800         Do not include out of scope renaming symbols in list of 
6801         symbols returned.
6802         Add const to block parameter.
6803         Move check for non-local, non-global symbols earlier.  
6804         Remove timing stuff.
6805         (ada_lookup_symbol): New interface.
6806         Find symtab as well.
6807         (ada_lookup_symbol_nonlocal): New function.
6808
6809         (is_name_suffix): Enhance suffix detection to recognize
6810         an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6811         (is_dot_digits_suffix): New function.
6812         (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6813         
6814         (ada_add_block_symbols): New interface.  Use obstack to return results
6815         in a vector of struct ada_symbol_infos.  Add symtab argument.
6816         Use new interface to add_defn_to_vec.
6817         Remove calls to fill_in_ada_prototype.
6818         Use BLOCK_BUCKETS, BLOCK_BUCKET.
6819         
6820         (ada_finish_decode_line_1): Add const qualification to local to fix
6821         warning.
6822         Start looking in static block for functions to avoid attempts 
6823         to search frame chain for up-level variables.
6824         Adapt to new ada_sals_for_line interface.
6825         Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6826         Handle quoting of the function name inside the spec string.
6827         Skip prologue when funfirstline is set and update the 
6828         function documentation to that effect.
6829
6830         (debug_print_lines, debug_print_block, debug_print_blocks, 
6831         debug_print_symtab): Remove.
6832
6833         (ada_main_name): New function.  
6834         (ada_exception_breakpoint_type): New function.
6835         (is_known_support_routine): New function.
6836         (ada_find_printable_frame): Renamed from find_printable_frame and made
6837         global.
6838         Remove level parameter.
6839         Use new interface to select_frame.
6840
6841         (begin_command): Remove.
6842         (ada_adjust_exception_stop): New function.
6843         (ada_print_exception_stop): New function.
6844         (exception_name_from_cond): New function.
6845         (ada_report_exception_break): Replace disabled code with 
6846         conditionalization on GNAT_GDB.
6847         Get the exception name from the condition string.
6848         Remove and move functionality into new functions 
6849         ada_print_exception_breakpoint_task and 
6850         ada_print_exception_breakpoint_nontask.
6851         (error_breakpoint_runtime_sym_not_found): New function.
6852         (is_runtime_sym_defined): New function.
6853         (ada_breakpoint_rewrite): Uncomment suppressed code.
6854         Use symbolic error-message and runtime-symbol names.
6855         Surround runtime symbol names in quotes.
6856         Allow non-specific breakpoints on exceptions and assertions before
6857         program starts.
6858         
6859         (ada_is_tagged_type): Add parameter.
6860         (ada_is_tag_type): New function.
6861         (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6862         (ada_variant_discrim_type): Ditto.
6863         (value_tag_from_contents_and_address): New function.
6864         (type_from_tag): New function.
6865         (struct tag_args): New structure used to communicate with
6866         ada_tag_name_1.
6867         (ada_tag_name_1): New function.
6868         (ada_tag_name): New function.
6869
6870         (ada_scan_number): Update comment.
6871         (find_struct_field): New function.
6872         (ada_search_struct_field): Make static.
6873         (ada_value_struct_elt): New version that returns references when
6874         given pointers or references to structs.
6875         (ada_lookup_struct_elt_type): Add 'refok' parameter.
6876         (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6877         interface.
6878         (ada_value_ind): Use new ada_to_fixed_value interface.
6879         (ada_coerce_ref): Ditto.
6880         (field_offset): Remove.
6881
6882         (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6883         (ada_find_renaming_symbol): New function.
6884         (ada_prefer_type): Prefer named types over unnamed ones.
6885         (variant_field_index): New function.
6886         (contains_variant_part): Removed: subsumed by variant_field_index.
6887         (ada_template_to_fixed_record_type): New function, mostly from
6888         template_to_fixed_record_type.
6889         (template_to_fixed_record_type): 
6890         Do not scan the type fields beyond the last one; prevents a 
6891         potential SEGV.
6892         Handle case where variant field is listed BEFORE discriminant it 
6893         depends on.
6894         Fix calculation of record length when bit length is 
6895         not evenly divisible by char length.
6896         Move code to ada_template_to_fixed_record_type and call it.
6897
6898         (template_to_static_fixed_type): Revise comment.  
6899         Modify to work on ordinary record types as well as templates, 
6900         so as to handle fields that use ___XVE or ___XVU encodings. 
6901         (to_record_with_fixed_variant_part): Fill out comment.
6902         Initialize C++ stuff in right type.
6903         Allow case where DVAL is null.
6904         Handle case where variant field is not last.
6905         Fix typo concerning record length.
6906         (to_fixed_record_type): Decomment disabled code.
6907         (to_fixed_record_type): Use variant_field_index instead of 
6908         contains_variant_part.
6909         (to_fixed_variant_branch_type): Ditto.
6910         (to_fixed_array_type): Decomment disabled code.
6911         (ada_to_fixed_type): Convert tagged types to the specific type.
6912         Deactivate the size-check for array types in order to avoid 
6913         some false size alarms.
6914         (to_static_fixed_type): Decomment disabled code.
6915         Modify to call template_to_static_fixed_type
6916         on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6917         (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6918         Remove valaddr argument, as it is never really used.
6919         (ada_to_fixed_value): Change interface to act on single struct value*
6920         operand.
6921         (adjust_pc_past_prologue): New function.
6922         (ada_attribute_name): Modify to take enum exp_opcode argument.
6923                 
6924         (ada_enum_name): Recognize new homonym-distinguishing convention.
6925         Adjust local variable's type to remove compiler warning.
6926         Fix a small problem in the part that unqualifies the enumeration name.
6927         (ada_value_binop): New function.
6928         (ada_value_equal): New function.
6929
6930         (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6931         Don't give error message when not doing normal evaluation 
6932         and a tagged type doesn't seem to contain a structure member.
6933         Give error message for packed arrays.
6934         For indexing arrays, handle pointers to packed arrays correctly.
6935         Handle case of 'first and 'last attributes of bare integral type 
6936         without encoded subtype info.  
6937         Remove some unnecessary casts.
6938         Fix uninitialized value of type in computing 'first, 'last, or 'length
6939         of array object.  
6940         Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6941         Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6942         calls.
6943         Attributes are now exp_opcode values.
6944         Correct treatment of 'modulus.
6945         Better error message for taking 'length of wrong kind of type; 
6946         improve comment.
6947         Change EVAL_NORMAL to noside for consistency.
6948         Use ada_value_binop for DIV, MOD, REM.
6949         Make special case out of array of length 0, since an argument 
6950         of 0 upsets some platforms' malloc.
6951         Use OP_STRING instead of OP_ARRAY.
6952         For slice, add check that we have an array type before extracting 
6953         a slice out of it.  Avoids a SEGV.
6954         When evaluating an array slice, if the array type is a reference to 
6955         an aligner type, then replace the aligner type by the actual type.
6956         Decomment disabled code.
6957         Remove some dead code.
6958         Use temporary struct symbols (marked as being in UNDEF_NAMESPACE) 
6959         to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6960         Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE, 
6961         and UNOP_MBR to UNOP_IN_RANGE.
6962         If an array type has a parallel ___XVE type, then use it.
6963         Turn arrays into pointers for lvalue arrays.
6964         Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6965         bounds error and handle 0-length slices.
6966         Use lim_warning.
6967         When selecting fields, apply ada_to_fixed_value (because the fields 
6968         might have ___XVU or ___XVE encodings even if not dynamic.)
6969         Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6970         (ada_is_system_address_type): New function.
6971
6972         (get_var_value): Use new interface to ada_lookup_symbol_list.
6973         (get_int_var_value): New interface.
6974         (to_fixed_range_type): Allow unknown bound, with warning.
6975         (ada_is_modular_type): Decomment disabled code.
6976         (ADA_OPERATORS): New definition.
6977         (ada_operator_length): New function.
6978         (ada_expr_op_name): New function.
6979         (ada_forward_operator_length): New function.
6980         (ada_dump_subexp_body): New function.
6981         (ada_print_subexp): New function.
6982         (ada_exp_descriptor): New constant.
6983         (ada_op_print_tab): Add 'size.  Remove FIXMEs.
6984         (ada_language_defn): Add ada_exp_descriptor entry.
6985         Change ada_parse => parse.
6986         Add post-parser entry.
6987         Use ada-specific non-local symbol lookup.
6988         Don't use C-style arrays. 
6989         String lower-bound is 1.
6990         Decomment disabled code.        
6991         (parse): New function.
6992         New fields ada_translate_error_message, ada_lookup_symbol, 
6993         ada_lookup_minimal_symbol.
6994         
6995         * ada-lang.h: Update copyright dates.
6996         Replace the mangle/demangle terminology throughout by the
6997         more appropriate encode/decode one. 
6998         Include breakpoint.h.
6999         Forward declare struct partial_symbol, struct block.
7000         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7001         (EXTRACT_ADDRESS): Remove.
7002         (EXTRACT_INT): Remove.
7003         (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7004         (MAX_ENCLOSING_FRAME_LEVELS): Define.
7005         (MAX_RENAMING_CHAIN_LENGTH): Define.
7006         (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7007
7008         (enum task_states): Remove.
7009         ada_task_states: Remove.
7010         (fat_string): Remove.
7011         (struct entry_call): Remove.
7012         (struct task_fields): Remove.
7013         (struct task_entry): Remove.
7014
7015         (struct ada_symbol_info): Define.
7016         (enum ada_attribute): Remove.
7017         (enum ada_operator): Define.
7018         
7019         (ada_get_field_index): Declare.
7020         (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7021         (ada_is_simple_array): Rename to ada_is_simple_array_type.
7022         (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7023         (ada_lookup_symbol_list): New interface.
7024         (ada_decode_symbol): Declare.
7025         (ada_decode): Declare.
7026         (ada_lookup_symbol): New interface.
7027         (ada_update_initial_language): Declare.
7028         (ada_lookup_simple_minsym): Declare.
7029         (user_select_syms): New interface.
7030         (ada_sals_for_line): Declare.
7031         (ada_is_tagged_type): New interface.
7032         (ada_tag_name): Declare.
7033         (ada_lookup_struct_elt_type): Remove declaration.
7034         (ada_search_struct_field): Remove declaration.
7035         (ada_attribute_name): New interface.
7036         (ada_is_system_address_type): Declare.
7037         (ada_to_fixed_value): Remove declaration.
7038         (ada_template_to_fixed_record_type_1): Declare.
7039         (get_int_var_value): New interface.
7040         (ada_find_any_symbol): Declare.
7041         (ada_find_renaming_symbol): Declare.
7042         (ada_mangle): Rename to ada_encode.
7043         (ada_simple_renamed_entity): Remove const.
7044         (ada_main_name): Declare.
7045         (get_current_task): Rename to ada_get_current_task.
7046         (get_entry_number): Remove declaration.
7047         (ada_report_exception_break): Remove declaration.
7048         (ada_print_exception_breakpoint_nontask): Declare.
7049         (ada_print_exception_breakpoint_task): Declare.
7050         (ada_find_printable_frame): Declare.
7051
7052         * ada-lex.l: Update copyright notices.
7053         Use xmalloc and xfree instead of malloc and free.
7054         Use new interface to name_lookup.
7055         Use new interface to 
7056         ada_mangle=>ada_encode.
7057         Redo handling of '$...' variable to parallel current treatment 
7058         in c-exp.y.  
7059         (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7060         digit_to_int, strtoulst, processInt, processReal, processId, 
7061         block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7062         yywrap): Protoize.
7063         
7064         (processInt): Use cast to remove harmless warning.
7065         (processReal): Modify to get rid of compiler warning on scan formats.
7066
7067         (processId): Replace xmalloc with obstack_alloc for name and remove
7068         call to ada_name_string_cleanup.
7069         Remove obsolete disabled code.
7070         (name_lookup): Ditto. 
7071         New interface.
7072         Use obsavestring on temp_parse_space instead of savestring 
7073         on name, and remove call to ada_name_string_cleanup.  
7074         Free string returned from ada_simple_renamed_entity.
7075         Use new interface to ada_lookup_symbol_list.
7076         Decomment disabled code.
7077         Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables, 
7078         not types.
7079         When a type name lookup succeeds as a result of 
7080         lookup_primitive_typename, check for regular type entry that has not 
7081         yet been read in.
7082         Limit length of chain of renamed symbols we are willing to follow.  
7083         Do not break names beginning with "standard__" into segments.  
7084         (block_lookup): Use new interface to ada_lookup_symbol_list.
7085         
7086         * ada-typeprint.c: Update copyright notice.
7087         (demangled_type_name): Rename to decoded_type_name.
7088         (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7089         (print_range_bound):  Correct handling of negative
7090         bounds that make the index type looked unsigned under STABS.  
7091         (print_dynamic_range_bound): Use new interface to get_int_var_value.
7092         (print_range_type_named):  Use the builtin int type if no type 
7093         corresponding to the given type name could be found.
7094         (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7095         Add some bullet-proofing.
7096         (print_variant_clauses): Allow for variant branches with ___XVU 
7097         encodings that are not dynamic fields.  
7098         Use new interface to ada_is_tagged_type.
7099         (print_record_type): Allow for fields with ___XVE encodings that 
7100         are not dynamic fields. 
7101         Use new interface to ada_is_tagged_type.
7102         (ada_print_type): ada_is_array_descriptor => 
7103         ada_is_array_descriptor_type.
7104
7105         * ada-valprint.c: Update copyright notice.
7106         Include gdb_string.h
7107         Include infcall.h
7108         (ui_memcpy): New function.
7109         (ada_print_floating): New function.
7110         (ada_print_str): Order arguments correctly.
7111         Correct handling of empty arrays and arrays of 0-length items. 
7112         ada_is_array_descriptor => ada_is_array_descriptor_type 
7113         Print values of type System.Address in hexadecimal format.
7114         Use ada_print_floating to print floating-point numbers in Ada format.
7115         Print class tag values with type names.  
7116         No longer print the address of reference values. Avoids 
7117         a potential confusion.  
7118         (ada_value_print): Stop printing the object type for reference
7119         values, but preserve that behavior for access types. Avoids
7120         a potential confusion.
7121         Simplify one conditional expression, as the first part is now
7122         necessarily true.
7123         ada_is_array_descriptor => ada_is_array_descriptor_type 
7124         Add check for arrays for null records, and print them by hand.
7125         
7126 2004-06-01  Jim Blandy  <jimb@redhat.com>
7127
7128         * ppc-tdep.h: Delete unused 'regoff' member.
7129         * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7130
7131 2004-06-01  Michael Chastain  <mec.gnu@mindspring.com>
7132
7133         Fix PR symtab/1661.
7134         * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7135         (hpread_read_struct_type): Likewise.
7136
7137 2004-06-01  Andrew Cagney  <cagney@gnu.org>
7138
7139         * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7140         instead of xasprintf.
7141         * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt) 
7142         (mi_cmd_thread_select, mi_cmd_thread_list_ids) 
7143         (mi_cmd_data_list_register_names) 
7144         (mi_cmd_data_list_changed_registers) 
7145         (mi_cmd_data_list_register_values) 
7146         (get_register, mi_cmd_data_write_register_values) 
7147         (mi_cmd_data_write_register_values) 
7148         (mi_cmd_data_assign, mi_cmd_data_evaluate_expression) 
7149         (mi_cmd_target_download, mi_cmd_target_select) 
7150         (mi_cmd_data_read_memory, mi_cmd_data_write_memory) 
7151         (mi_execute_cli_command, mi_execute_async_cli_command) 
7152         (mi_execute_async_cli_command): Ditto.
7153         * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7154         * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7155
7156         * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7157         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7158         error_last_message instead of mi_error_last_message.
7159         * mi/mi-main.c (mi_error_last_message): Delete function.
7160
7161         * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7162         "invalid number of columns" error.  Delete redundant "out of
7163         memory" check.
7164
7165 2004-05-31  Mark Kettenis  <kettenis@gnu.org>
7166
7167         * i386bsd-nat.c: Don't include <sys/procfs.h>.
7168         (gregset_t, fpregset_t): Remove typedefs.
7169         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7170         (REG_OFFSET): Rename argument.
7171         (i386bsd_r_reg_offset): Rename from reg_offset.
7172         (REG_ADDR): Remove macro.
7173         (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7174         functions.
7175         (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7176         (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7177         instead of gregset_t and fpregset_t.  Use i386bsd_supply_gregset
7178         instead of supply_gregset.
7179         (store_inferior_registers): Use `struct reg' and `struct fpreg'
7180         instead of gregset_t and fpregset_t.  Use i386bsd_collect_gregset
7181         instead of fill_gregset.
7182         (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7183
7184         * i386bsd-nat.c: Don't include "gregset.h".
7185         (supply_gregset, fill_gregset): Make static.
7186         (supply_fpregset, fill_fpregset): Remove.
7187         * Makefile.in (i386bsd-nat.o): Update dependencies.
7188
7189 2004-05-30  Mark Kettenis  <kettenis@gnu.org>
7190
7191         * fbsd-proc.c: Include "regcache.h", "regset.h" and
7192         "gdb_assert.h".  Con't include "gregset.h".
7193         (fbsd_make_corefile_notes): Use regset-based core file support
7194         instead off fill_gregset and fill_fpregset.
7195         * Makefile.in (fbsd-proc.o): Update dependencies.
7196
7197         * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7198         instructions.
7199         (m88k_frame_prev_register): Simplify code a bit.
7200
7201         * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7202         (amd64_collect_fpregset): New function.
7203         (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7204
7205         * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7206
7207         * i386-tdep.c (i386_supply_gregset): Adjust comment.
7208         (i386_collect_gregset): New function.
7209         (i386_supply_fpregset): Adjust comment.
7210         (i386_collect_fpregset): New function.
7211         (i386_regset_from_core_section): Use i386_collect_gregset and
7212         i386_collect_fpregset.
7213
7214         * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7215         handle VALUEP being null.
7216
7217         * regset.h (collect_regset_ftype): Unconstify fourth argument.
7218
7219 2004-05-29  Mark Kettenis  <kettenis@gnu.org>
7220
7221         * MAINTAINERS: Undelete m88k.  Add myself as maintainer.
7222
7223         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7224         assembler in OpenBSD 3.5-current.
7225         (amd64obsd_sigcontext_addr): Likewise.
7226
7227 2004-05-28  Jim Blandy  <jimb@redhat.com>
7228
7229         * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7230         register set, so our regcache isn't declared "legacy" and our E500
7231         pseudoregister read and write functions aren't ignored.
7232         (rs6000_register_byte, rs6000_register_raw_size,
7233         rs6000_register_virtual_type, rs6000_register_convertible,
7234         rs6000_register_convert_to_virtual,
7235         rs6000_register_convert_to_raw): Deleted.
7236         (rs6000_register_type, rs6000_convert_register_p,
7237         rs6000_register_to_value, rs6000_value_to_register): New
7238         functions.
7239         (rs6000_gdbarch_init): Don't register
7240         gdbarch_deprecated_register_size,
7241         gdbarch_deprecated_register_bytes,
7242         gdbarch_deprecated_register_byte,
7243         gdbarch_deprecated_register_raw_size,
7244         gdbarch_deprecated_register_virtual_type,
7245         gdbarch_deprecated_register_convertible,
7246         gdbarch_deprecated_register_convert_to_virtual, or
7247         gdbarch_deprecated_register_convert_to_raw methods.  Instead,
7248         register gdbarch_register_type, gdbarch_convert_register_p,
7249         gdbarch_register_to_value, and gdbarch_value_to_register methods.
7250
7251 2004-05-26  Jim Blandy  <jimb@redhat.com>
7252
7253         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7254         (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7255         functions, updated to match the register numberings used in GCC.
7256         (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7257         rs6000_dwarf2_reg_to_regnum as register number conversions
7258         functions for STABS and Dwarf2.
7259
7260 2004-05-26  Randolph Chung  <tausq@debian.org>
7261
7262         * infttrace.h (target_waitkind): Forward declare type instead of pulling
7263         in header file.
7264
7265 2004-05-25  Joel Brobecker  <brobecker@gnat.com>
7266
7267         * NEWS: Document new "start" command.
7268
7269 2004-05-25  Randolph Chung  <tausq@debian.org>
7270
7271         * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7272         hppa-linux.
7273
7274 2004-05-25  Randolph Chung  <tausq@debian.org>
7275
7276         * hppa-hpux-tdep.c (offsetof): Define.
7277         (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7278         (hppa32_hpux_frame_base_before_sigtramp)
7279         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7280         (hppa64_hpux_frame_saved_pc_in_sigtramp)
7281         (hppa64_hpux_frame_base_before_sigtramp)
7282         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused 
7283         functions.
7284         (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7285         (hppa_hpux_sigtramp_frame_unwind_cache)
7286         (hppa_hpux_sigtramp_frame_this_id)
7287         (hppa_hpux_sigtramp_frame_prev_register)
7288         (hppa_hpux_sigtramp_frame_unwind)
7289         (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7290         (hppa_hpux_init_abi): Register sigtramp unwinder.
7291         * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7292
7293 2004-05-25  Randolph Chung  <tausq@debian.org>
7294
7295         * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7296         and multiple stack unwinds.
7297         (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7298
7299 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7300
7301         * symfile.h (symbol_file_add_from_memory): Delete declaration.
7302         * symfile-mem.h: Delete file.
7303         * symfile-mem.c: Do not include "symfile-mem.h".
7304         (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7305         "struct bfd_section".  When an error do not bother returning NULL.
7306         (add_symbol_file_from_memory_command): Use "struct bfd" and
7307         "struct bfd_section".
7308         * Makefile.in (symfile_mem_h): Delete.
7309         (symfile-mem.o): Update dependencies.
7310
7311 2004-05-25  Nick Roberts  <nickrob@gnu.org>
7312
7313         * gdb-mi.el: New file.
7314
7315 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7316
7317         * inftarg.c: Include "observer.h".
7318         (child_attach, child_create_inferior): Notify inferior_created.
7319         * corelow.c: Include "observer.h".
7320         (core_open): Notify inferior_created.
7321         * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7322
7323 2004-05-25  Andrew Cagney  <cagney@gnu.org>
7324
7325         * target.h (struct target_ops): Add from_tty to
7326         to_create_inferior.
7327         (target_create_inferior, find_default_create_inferior): Update.
7328         * infcmd.c (run_command): Update.
7329         * wince.c (child_create_inferior): Update.
7330         * win32-nat.c (child_create_inferior): Update.
7331         * uw-thread.c (uw_thread_create_inferior): Update.
7332         * thread-db.c (thread_db_create_inferior): Update.
7333         * target.c (debug_to_create_inferior) 
7334         (find_default_create_inferior): Update.
7335         (maybe_kill_then_create_inferior): Update.
7336         * sol-thread.c (sol_thread_create_inferior): Update.
7337         * remote.c (extended_remote_async_create_inferior) 
7338         (extended_remote_create_inferior): Update.
7339         * remote-vx.c (vx_create_inferior): Update.
7340         * remote-st.c (st2000_create_inferior): Update.
7341         * remote-sim.c (gdbsim_create_inferior): Update.
7342         * remote-sds.c (sds_create_inferior): Update.
7343         * remote-rdp.c (remote_rdp_create_inferior): Update.
7344         * remote-rdi.c (arm_rdi_create_inferior): Update.
7345         * remote-m32r-sdi.c (m32r_create_inferior): Update.
7346         * remote-e7000.c (e7000_create_inferior): Update.
7347         * procfs.c (procfs_create_inferior): Update.
7348         * ocd.c (ocd_create_inferior): Update.
7349         * ocd.h (ocd_create_inferior): Update.
7350         * nto-procfs.c (procfs_create_inferior): Update.
7351         * monitor.c (monitor_create_inferior): Update.
7352         * lin-lwp.c (lin_lwp_create_inferior): Update.
7353         * inftarg.c (child_create_inferior): Update.
7354         * hpux-thread.c (hpux_thread_create_inferior): Update.
7355         * gnu-nat.c (gnu_create_inferior): Update.
7356
7357 2004-05-25  Andrew Cagney  <cagney@gnu.com>
7358
7359         * MAINTAINERS: Update e-mail address.
7360
7361 2004-05-24  Randolph Chung  <tausq@debian.org>
7362
7363         * thread.c (info_threads_command, thread_apply_all_command)
7364         (thread_apply_command, thread_command, do_captured_thread_select):
7365         Remove HPUXHPPA-specific code.
7366
7367 2004-05-24  Randolph Chung  <tausq@debian.org>
7368
7369         * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7370         unused symbols.
7371         * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7372         references.
7373
7374 2004-05-24  Joel Brobecker  <brobecker@gnat.com>
7375
7376         * infcmd.c (kill_if_already_running): New function, extracted
7377         from run_command().
7378         (run_command): Replace extracted code by call to
7379         kill_if_already_running().
7380         (start_command): New function.
7381         (_initialize_infcmd): Add "start" command.
7382
7383 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7384
7385         Add OpenBSD/m88k support.
7386         * NEWS (New native configurations): Mention OpenBSD/m88k.
7387         * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7388         config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7389         * Makefile.in (m88k_tdep_h): New variable.
7390         (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7391         (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7392         * configure.host: Add m88*-*-openbsd*.
7393         * configure.tgt: Add m88*-*-openbsd*.
7394
7395 2004-05-24  Jim Blandy  <jimb@redhat.com>
7396
7397         * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7398         to approve changes.
7399
7400 2004-05-24  Kevin Buettner  <kevinb@redhat.com>
7401
7402         * symtab.c (fixup_section): Search section table when lookup by
7403         name fails.
7404
7405 2004-05-24  Randolph Chung  <tausq@debian.org>
7406
7407         * hppa-tdep.c: Fix handling of 8-byte structures; they should not 
7408         be "small_struct".
7409
7410 2004-05-24  Mark Kettenis  <kettenis@gnu.org>
7411
7412         * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7413         register number in regcache_raw_collect call.
7414         (m68kbsd_collect_fpregset): Likewise.
7415         * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7416
7417         * regset.h (struct regset): Add back `regset' member.
7418
7419 2004-05-23  Mark Kettenis  <kettenis@gnu.org>
7420
7421         * configure.in: Check for td_pcb in `struct thread'.
7422         * configure, config.in: Regenerated.
7423
7424         * dpx2-nat.c: Remove file.
7425         * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7426         (dpx2-nat.o): Remove dependencies.
7427
7428         * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7429         <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7430         (amd64obsd_supply_pcb): New function.
7431         (_initialize_amd64obsd_nat): Enable libkvm interface.
7432         * Makefile.in (amd64obsd-nat.o): Update dependencies.
7433         * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7434         (LOADLIBES): New variable.
7435
7436         * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7437         <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7438         (sparc32nbsd_supply_pcb): New function.
7439         (_initialize_sparcnbsd_nat): Enable libkvm interface.
7440         * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7441         * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7442         (LOADLIBES): New variable.
7443
7444 2004-05-22  Mark Kettenis  <kettenis@gnu.org>
7445
7446         * bsd-kvm.c, bsd-kvm.h: New files.
7447         * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7448         "bsd-kvm.h".
7449         (i386fbsd_supply_pcb): New function.
7450         * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7451         (i386fbsd-nat.o): Update dependencies.
7452         (bsd_kvm_h): New variable.
7453         (bsd-kvm.o): New dependency.
7454         * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7455         (LOADLIBES): New variable.
7456
7457         * regset.c: Tweak comment.
7458         (regset_alloc): Remove descr argument.  Use GDBARCH_OBSTACK_ZALLOC
7459         macro.
7460         * regset.h: Update copyright year.
7461         (struct regset): Remove `descr' member, add `gdbarch' member.
7462         (regset_alloc): Adjust prototype and comment.
7463         * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7464         (i386_supply_fpregset): Likewise.
7465         (i386_regset_from_core_section): Update call to regset_alloc.
7466         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7467         REGSET->arch.
7468         (i386obsd_aout_regset_from_core_section): Update call to
7469         regset_alloc.
7470         * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7471         REGSET->arch.
7472         (i386nbsd_aout_regset_from_core_section): Update call to
7473         regset_alloc.
7474         * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7475         REGSET->arch.
7476         (amd64_regset_from_core_section): Update call to regset_alloc.
7477         * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7478         REGSET->arch.
7479         (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7480         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7481         &sparc32nbsd_gregset in sparc32_supply_gregset call.
7482         (sparc32nbsd_init_abi): Update call to regset_alloc.
7483         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7484         &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7485         (sparc64obsd_init_abi): Update call to regset_alloc.
7486         * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7487         &sparc64nbsd_gregset in sparc64_supply_gregset call.
7488         (sparc64nbsd_init_abi): Update call to regset_alloc.
7489         * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7490         &sparc64fbsd_gregset in sparc64_supply_gregset call.
7491         (sparc64fbsd_init_abi): Update call to regset_alloc.
7492
7493 2004-05-22  Jim Blandy  <jimb@redhat.com>
7494
7495         * ppc-tdep.h (spe_register_p): New declaration.
7496         (struct gdbarch_tdep): New members: ppc_acc_regnum and
7497         ppc_spefscr_regnum.
7498         * rs6000-tdep.c (spe_register_p): New function.
7499         (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7500         spefscr.
7501         (rs6000_gdbarch_init): Initialize the new members of the tdep
7502         structure.
7503
7504 2004-05-21  Jim Blandy  <jimb@redhat.com>
7505
7506         * ppc-linux-nat.c (fetch_register): Move code back to be next
7507         to the comment that describes it.  (Moved code, instead of
7508         comment, for symmetry with store_register.)
7509
7510         Allocate regset structures in the gdbarch's obstack, not using
7511         xmalloc.
7512         * regset.c (regset_alloc): Renamed from regset_xmalloc.
7513         Add 'arch' argument.  Allocate the regset on arch's obstack, not
7514         using xmalloc.
7515         * regset.h (regset_alloc): Update declaration.
7516         * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7517         gdbarch argument.
7518         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7519         * i386-tdep.c (i386_regset_from_core_section): Same.
7520         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7521         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7522         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7523         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7524         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7525         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7526
7527 2004-05-21  Joel Brobecker  <brobecker@gnat.com>
7528
7529         * config/djgpp/fnchange.lst: Undo previous change, was useless.
7530
7531 2004-05-21  Jim Blandy  <jimb@redhat.com>
7532
7533         * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7534         cases for DW_OP_div and DW_OP_shr.  (Thanks to Reva Cuthbertson.)
7535
7536 2004-05-20  Jim Blandy  <jimb@redhat.com>
7537
7538         * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7539
7540 2004-05-20  Mark Kettenis  <kettenis@gnu.org>
7541
7542         * regset.h: Make prototype const-correct.
7543         * regset.c (regset_xmalloc): Make const-correct.
7544
7545 2004-05-20  Paul N. Hilfinger  <hilfinger@gnat.com>
7546
7547         * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7548         (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7549         (symbol_search_name): Declare.
7550         
7551         * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7552         (iter_name_next_hashed): Ditto.
7553         (iter_name_next_linear): Ditto.
7554         (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7555
7556         * symtab.c (lookup_partial_symbol): Assume symbols ordered by 
7557         search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7558         (symbol_search_name): New function.
7559         
7560         * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7561         
7562         * minsyms.c (build_minimal_symbol_hash_tables): Change
7563         test for adding to demangled hash table to check for difference
7564         between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7565         
7566 2004-05-19  Jim Blandy  <jimb@redhat.com>
7567
7568         Use a constructor function to create regset structures.
7569         * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7570         (struct regset): Use supply_regset_ftype.  Add new
7571         'collect_regset' member.
7572         (regset_xmalloc): New declaration.
7573         * regset.c: New file.
7574         * am64-tdep.c (amd64_regset_from_core_section): Use
7575         regset_xmalloc to construct regset structures.
7576         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7577         * i386-tdep.c (i386_regset_from_core_section): Same.
7578         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7579         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7580         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7581         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7582         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7583         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7584         * Makefile.in (COMMON_OBS): Add regset.o.
7585         (regset.o): New rule.
7586
7587 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
7588
7589         * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7590         and pthread_cond_wait.c.
7591
7592 2004-05-18  Jim Blandy  <jimb@redhat.com>
7593
7594         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7595         before the mach-specific switch, and then let the individual cases
7596         override the defaults, rather than leaving them uninitialized
7597         until the switch and then setting them in each case.
7598
7599 2004-05-18  Randolph Chung  <tausq@debian.org>
7600
7601         * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7602         millicode functions.
7603
7604 2004-05-18  Randolph Chung  <tausq@debian.org>
7605
7606         * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7607         references to dld_flags_buffer consistent.
7608
7609 2004-05-18  Randolph Chung  <tausq@debian.org>
7610
7611         * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7612         it for unwinding the stack.
7613
7614 2004-05-18  Randolph Chung  <tausq@debian.org>
7615
7616         * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7617         Undefine these so we can overide them using gdbarch.
7618
7619 2004-05-18  Randolph Chung <tausq@debian.org>
7620
7621         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7622         handling for 64-bit HPUX (elf).
7623
7624 2004-05-18  Daniel Jacobowitz  <dan@debian.org>
7625
7626         * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7627         constants.
7628         * amd64-tdep.c (amd64_skip_prologue): Likewise.
7629         * ia64-tdep.c (examine_prologue): Likewise.
7630         * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7631         * v850-tdep.c (v850_fix_call_dummy): Likewise.
7632
7633 2004-05-18  Mark Kettenis  <kettenis@gnu.org>
7634
7635         * vax-tdep.c (vax_return_value): Implement
7636         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7637
7638 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7639
7640         * vax-tdep.c (vax_return_value): Fix typo.
7641
7642 2004-05-17  Andrew Cagney  <cagney@redhat.com>
7643
7644         * MAINTAINERS: Mark Salter was also responsible for
7645         testsuite/config/
7646
7647         * NEWS: Mention signal fixes.
7648
7649 2004-05-17  Randolph Chung  <tausq@debian.org>
7650
7651         * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7652         check to see if we are unwinding an export stub.  Export stubs clobber
7653         the %rp in the call path and stores the original rp in a stack slot.
7654
7655 2004-05-17  Jim Blandy  <jimb@redhat.com>
7656
7657         * MAINTAINERS: Update address for J.T. Conklin.
7658
7659 2004-05-17  Randolph Chung  <tausq@debian.org>
7660
7661         * hppa-tdep.c: Remove superfluous #include's.
7662         * Makefile.in (hppa-tdep.o): Update dependencies.
7663
7664 2004-05-17  Randolph Chung  <tausq@debian.org>
7665
7666         * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7667         (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7668         (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7669         (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7670         (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7671         Remove static function declarations.
7672
7673 2004-05-17  Mark Kettenis  <kettenis@gnu.org>
7674
7675         * alphabsd-nat.c: Update copyright year.
7676         (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7677
7678         * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7679         and M68K_A2_REGNUM.
7680
7681         * m68k-tdep.c (m68k_svr4_return_value): Implement
7682         RETURN_VALUE_ABI_RETURNS_ADDRESS.
7683
7684 2004-05-16  Mark Kettenis  <kettenis@gnu.org>
7685
7686         * sol-thread.c Update copyright year.  Fix various coding
7687         standards violations.  Tweak a few comments.
7688         (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7689         Delete prototypes.
7690
7691 2004-05-15  Randolph Chung  <tausq@debian.org>
7692
7693         * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7694         as pointer instead of array reference since HPUX compiler does
7695         not accept unsized array arguments.
7696         * somsolib.c (dld_flags_buffer): Use constant array size.
7697
7698 2004-05-15  Mark Kettenis  <kettenis@gnu.org>
7699
7700         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7701         offset with decimal offset.
7702         (amd64obsd_sigcontext_addr): Return correct address for entire
7703         signal trampoline.
7704
7705         * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7706         instead of get_frame_base.
7707
7708         * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7709         (fill_gregset): Use regcache_raw_collect.
7710
7711         * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7712         ppcobsd-tdep.c.
7713
7714         * config/sparc/tm-nbsd64.h: Remove file.
7715         * config/tm-sunos.h: Remove file.
7716
7717 2004-05-15  Joel Brobecker  <brobecker@gnat.com>
7718
7719         * rs6000-tdep.c (store_param_on_stack_p): New function,
7720         an improved version of some code extracted from skip_prologue().
7721         (skip_prologue): Use store_param_on_stack_p() to detect
7722         instructions saving a parameter on the stack. Detect when r0
7723         is used to save a parameter.
7724         Do not mark "li rx, SIMM" instructions as part of the prologue,
7725         unless the following instruction is also part of the prologue.
7726
7727 2004-05-14  Andrew Cagney  <cagney@redhat.com>
7728
7729         * infrun.c (handle_inferior_event): Simplify
7730         STEP_OVER_UNDEBUGGABLE.
7731
7732         * infrun.c (handle_step_into_function): Delete function.
7733         (handle_inferior_event): Inline calls to
7734         handle_step_into_function.
7735
7736 2004-05-14  Jerome Guitton  <guitton@gnat.com>
7737
7738         * rs6000-nat.c: Fix a comment.
7739
7740 2004-05-12  David Anderson <davea@sgi.com>
7741
7742         Committed by Jim Blandy <jimb@redhat.com>:
7743         * regcache.c (struct regcache_descr): fix comment spelling.
7744
7745 2004-05-13  J. Brobecker  <brobecker@gnat.com>
7746
7747         * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7748         Fixes a link link failure.
7749
7750 2004-05-13  J. Brobecker  <brobecker@gnat.com>
7751
7752         * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7753         error that was causing the build to fail.
7754
7755 2004-05-13  J. Brobecker  <brobecker@gnat.com>
7756
7757         * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7758         * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7759
7760 2004-05-13  Andrew Cagney  <cagney@redhat.com>
7761
7762         * infrun.c (handle_inferior_event): Check for
7763         STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7764         calls.  Update comments.
7765
7766 2004-05-13  Jim Blandy  <jimb@redhat.com>
7767
7768         * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7769         (fetch_regs_user_thread, fetch_regs_kernel_thread)
7770         (store_regs_user_thread, store_regs_kernel_thread): Use
7771         ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7772         * ppc-linux-nat.c (fill_gregset): Same.
7773         * ppc-linux-tdep.c (ppc_linux_supply_gregset) 
7774         (ppc_linux_sigtramp_cache): Same.
7775         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg) 
7776         (ppcnbsd_sigtramp_cache_init): Same.
7777         * rs6000-nat.c (fetch_core_registers): Same.
7778         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset) 
7779         (rs6000_frame_cache): Same.
7780
7781         * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7782         (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7783         of assuming that the gprs are numbered starting with zero.
7784         * ppc-linux-nat.c (fill_gregset): Same.
7785         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7786         * ppcnbsd-nat.c (getregs_supplies): Same.
7787         * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7788         * rs6000-nat.c (fetch_core_registers): Same.
7789         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7790
7791 2004-05-07  Michael Snyder  <msnyder@redhat.com>
7792
7793         * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7794         LOC_COMPUTED_ARG, and LOC_INDIRECT.
7795
7796 2004-05-13  Andrew Cagney  <cagney@redhat.com>
7797
7798         * infrun.c (handle_inferior_event): Use frame_unwind_id.
7799
7800 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
7801
7802         * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7803         base_address for shared libraries.
7804
7805 2004-05-13  Bryce McKinlay  <mckinlay@redhat.com>
7806
7807         * MAINTAINERS (write after approval): Add myself.       
7808
7809 2004-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7810
7811         * breakpoint.c (bpstat_stop_status): Add new argument
7812         STOPPED_BY_WATCHPOINT.  Use it instead of testing
7813         target_stopped_data_address agaist 0 to check whether
7814         or not we stopped due to a hardware watchpoint.
7815         * breakpoint.h (bpstat_stop_status): Adapt prototype.
7816         * infrun.c (handle_inferior_event): Call bpstat_stop_status
7817         with new argument.
7818
7819 2004-05-12  Jim Blandy  <jimb@redhat.com>
7820
7821         * configure.in: When checking whether we should use the -bbigtoc
7822         option, don't forget to restore the original value of LDFLAGS.
7823         * configure: Regenerated.
7824
7825 2004-05-12  Andrew Cagney  <cagney@redhat.com>
7826
7827         * thread.c (load_infrun_state): Delete step_sp.
7828         * infrun.c (context_switch): Ditto.
7829         * inferior.h (step_sp): Ditto.
7830         * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7831         * gdbthread.h (struct thread_info, save_infrun_state)
7832         (restore_infrun_state): Ditto.
7833
7834 2004-05-12  Ulrich Weigand  <uweigand@de.ibm.com>
7835
7836         * MAINTAINERS (write after approval): Add myself.
7837
7838 2004-05-12  Andrew Cagney  <cagney@redhat.com>
7839
7840         * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7841         eliminate reference to step_sp.
7842         (struct execution_control_state, init_execution_control_state)
7843         (handle_inferior_event, keep_going): Delete update_step_sp and
7844         step_sp.
7845         * infcmd.c (step_sp): Note that variable is unused.
7846
7847 2004-05-11  Andrew Cagney  <cagney@redhat.com>
7848
7849         * infrun.c (step_over_function): Delete function.
7850         (handle_step_into_function): Use insert_step_resume_breakpoint.
7851         (insert_step_resume_breakpoint): Fix assertion.
7852
7853 2004-05-11  Nick Roberts  <nickrob@gnu.org>
7854
7855         * utils.c (defaulted_query): Just use the normal query input type
7856         when printing the annotations.
7857
7858 2004-05-11  Andrew Cagney  <cagney@redhat.com>
7859
7860         * infrun.c (handle_inferior_event): Simplify code handling
7861         step-into or return-from a signal trampoline.
7862
7863 2004-05-11  Andrew Cagney  <cagney@redhat.com>
7864
7865         * ppcnbsd-tdep.c: Include "gdb_assert.h".
7866         * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7867
7868 2004-05-10  Jim Blandy  <jimb@redhat.com>
7869
7870         * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7871         with a call to internal_error.
7872
7873         * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7874         ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7875         processor variant lacks those registers.
7876         (ppc_floating_point_unit_p): Change description to make it clear
7877         that this returns info about the ISA, not the ABI.
7878         * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7879         return true or false by checking tdep->ppc_fp0_regnum and
7880         tdep->ppc_fpscr_regnum.  The original code replicated the BFD
7881         arch/mach switching done in rs6000_gdbarch_init; it's better to
7882         keep that logic there, and just check the results here.
7883         (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7884         tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7885         floating-point registers.
7886         (ppc_supply_fpregset, ppc_collect_fpregset)
7887         (rs6000_push_dummy_call, rs6000_extract_return_value)
7888         (rs6000_store_return_value): Assert that we have floating-point
7889         registers.
7890         (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7891         (rs6000_frame_cache): Don't note the locations at which
7892         floating-point registers were saved if we have no fprs.
7893         * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7894         registers.
7895         (fetch_regs_user_thread, fetch_regs_kernel_thread)
7896         (store_regs_user_thread, store_regs_kernel_thread): Only call
7897         supply_fprs / fill_fprs if we actually have floating-point
7898         registers.
7899         (special_register_p): Check ppc_fpscr_regnum before matching
7900         against it.
7901         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7902         supply / collect fpscr if we don't have it.
7903         * ppc-bdm.c: #include "gdb_assert.h".
7904         (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7905         have floating-point registers, since I can't test this code on
7906         FP-free systems to adapt it.
7907         * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7908         fpscr and floating point register numbers if they don't exist.
7909         (fetch_register): Assert that we have floating-point registers
7910         before we reach the code that handles them.
7911         (store_register): Same.  And use tdep instead of calling
7912         gdbarch_tdep again.
7913         (fill_fpregset): Don't try to collect FP registers and fpscr if we
7914         don't have them.
7915         (ppc_linux_sigtramp_cache): Don't record the saved locations of
7916         fprs and fpscr if we don't have them.
7917         (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7918         don't have them.
7919         * ppcnbsd-nat.c: #include "gdb_assert.h".
7920         (getfpregs_supplies): Assert that we have floating-point registers.
7921         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7922         * ppcobsd-tdep.c: #include "gdb_assert.h".
7923         (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7924         have floating-point registers.
7925         * rs6000-nat.c (regmap): Don't match against the fpscr and
7926         floating point register numbers if they don't exist.
7927         (fetch_inferior_registers, store_inferior_registers,
7928         fetch_core_registers): Only fetch / store / supply the
7929         floating-point registers and the fpscr if we have them.
7930         * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7931         (ppcobsd-tdep.o): Update dependencies.
7932         
7933 2004-05-10  Andrew Cagney  <cagney@redhat.com>
7934
7935         * infrun.c (through_sigtramp_breakpoint): Delete variable.
7936         (context_switch): Do not switch through_sigtramp_breakpoint.
7937         * gdbthread.h (save_infrun_state, load_infrun_state)
7938         (struct thread_info): Delete through_sigtramp_breakpoint parameter
7939         and structure member.
7940         * thread.c (load_infrun_state, save_infrun_state): Update.
7941
7942 2004-05-10  Mark Kettenis  <kettenis@gnu.org>
7943
7944         * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7945
7946 2004-05-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
7947
7948         * acinclude.m4: Quote macro names being defined by AC_DEFUN 
7949         throughout.
7950         * aclocal.m4: Regenerate.
7951
7952 2004-05-10  Nathan J. Williams  <nathanw@wasabisystems.com>
7953
7954         * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7955
7956 2004-05-10  Andrew Cagney  <cagney@redhat.com>
7957
7958         * infrun.c (check_sigtramp2): Delete function.
7959         (handle_inferior_event): When single stepping, and taking a
7960         signal, set a breakpoint at the signal return address.  Delete
7961         redundant calls to check_sigtramp2.
7962         (insert_step_resume_breakpoint): New function.
7963         (through_sigtramp_breakpoint, handle_inferior_event)
7964         (follow_exec, wait_for_inferior, fetch_inferior_event)
7965         (currently_stepping, keep_going): Delete most uses of
7966         through_sigtramp_breakpoint, not that it should be deleted.
7967         (delete_breakpoint_current_contents): Delete function.
7968
7969 2004-05-10  Randolph Chung  <tausq@debian.org>
7970
7971         * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7972         target.
7973         * config/pa/tm-linux.h: New file.
7974
7975 2004-05-10  Daniel Jacobowitz  <drow@mvista.com>
7976
7977         * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7978         of prefixes.  Don't print the prefix twice in the CLI.
7979
7980 2004-05-10  Jim Blandy  <jimb@redhat.com>
7981
7982         * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7983         collect all the gprs.
7984
7985         * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7986         loop collecting gprs.
7987
7988 2004-05-09  Andrew Cagney  <cagney@redhat.com>
7989
7990         * remote-vx.c (net_step): Delete step-range code.
7991         * remote.c (remote_resume, init_all_packet_configs)
7992         (set_remote_protocol_E_packet_cmd)
7993         (show_remote_protocol_E_packet_cmd)
7994         (remote_protocol_E, show_remote_cmd, _initialize_remote)
7995         (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7996         (show_remote_protocol_e_packet_cmd): Ditto.
7997
7998 2004-05-09  Mark Kettenis  <kettenis@gnu.org>
7999
8000         * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8001
8002         * hppa-tdep.h: Update copyright year.
8003         (struct trad_frame_saved_reg): Add opaque declaration.
8004
8005         * amd64-tdep.c (amd64_return_value): Implement
8006         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8007
8008         * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8009         (m68k_value_to_register): New functions.
8010         (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8011         value_to_register.
8012
8013         * defs.h (enum return_value_convention): Add
8014         RETURN_VALUE_ABI_RETURNS_ADDRESS and
8015         RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8016         * infcmd.c (legacy_return_value): New function.
8017         (print_return_value): Rwerite to implement
8018         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8019         * values.c (using_struct_return): Check for inequality to
8020         RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8021         RETURN_VALUE_STRUCT_CONVENTION.
8022         * i386-tdep.c (i386_return_value): Implement
8023         RETURN_VALUE_ABI_RETURNS_ADDRESS.
8024
8025         * vax-tdep.c: Tweak comments.  Reorder include files.  Don't
8026         include "symtab.h", "opcode/vax.h" and "inferior.h".
8027         (vax_skip_prologue): Replace calls to read_memory_integer by calls
8028         to read_memory_unsigned_integer.
8029         (vax_gdbarch_init): Reorder.
8030         (_initialize_vax_tdep): Spell out prototype.
8031         * Makefile.in (vax-tdep.o): Update dependencies.
8032
8033 2004-05-08  Andrew Cagney  <cagney@redhat.com>
8034
8035         * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8036         * target.c (target_detach, target_disconnect): Ditto.
8037
8038         * infcall.c (call_function_by_hand): When no
8039         DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8040         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8041         DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8042         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8043         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8044         
8045         * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8046         * gdbarch.h, gdbarch.c: Re-generate.
8047         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8048         deprecated_fix_call_dummy.
8049         * v850-tdep.c (v850_gdbarch_init): Ditto.
8050         * infcall.c (call_function_by_hand): Do not call
8051         DEPRECATED_FIX_CALL_DUMMY.
8052
8053         * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8054         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8055         * gdbarch.h, gdbarch.c: Re-generate.
8056         * arm-linux-tdep.c (arm_linux_call_dummy_words)
8057         (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8058         deprecated_sizeof_call_dummy_words.
8059         * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8060         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8061         * v850-tdep.c (v850_gdbarch_init): Ditto.
8062         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8063         * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8064         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8065         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8066         * arch-utils.h (legacy_call_dummy_words)
8067         (legacy_sizeof_call_dummy_words): Delete declarations.
8068         * arch-utils.c (legacy_call_dummy_words)
8069         (legacy_sizeof_call_dummy_words): Delete variables.
8070
8071         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8072         * gdbarch.h, gdbarch.c: Re-generate.
8073         * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8074         * infcall.c (call_function_by_hand): Eliminate call to
8075         DEPRECATED_PUSH_DUMMY_FRAME.
8076         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8077         push_dummy_frame.
8078         (ns32k_push_dummy_frame): Delete function.
8079
8080         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8081         deprecated_call_dummy_breakpoint_offset or
8082         deprecated_call_dummy_start_offset.
8083         * dummy-frame.c, arm-tdep.c: Update comments.
8084         * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8085         (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8086         * gdbarch.h, gdbarch.c: Re-generate.
8087         
8088         * infcall.c (legacy_push_dummy_code): Delete function.
8089         (push_dummy_code): Delete call.
8090
8091         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8092         * gdbarch.h, gdbarch.c: Re-generate.
8093         * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8094         DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8095         * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8096         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8097
8098         * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8099         (struct frame_info): Delete opaque declaration.
8100         * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8101         * frame.c (get_frame_type): Delete call.
8102
8103         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8104         pc_in_call_dummy.
8105         * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8106         * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8107
8108 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8109
8110         * alphanbsd-tdep.c: Include "gdb_string.h".
8111         * armnbsd-tdep.c: Update copyright year.
8112         Include "gdb_string.h".
8113         * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8114         dependencies.
8115
8116         * delta68-nat.c: Remove file.
8117         * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8118         (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8119         * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8120         (delta68-nat.o): Remove dependency.
8121
8122         * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8123         function.
8124         (m68k_gdbarch_init): Don't set
8125         deprecated_frameless_function_invocation.
8126
8127 2004-05-07  Randolph Chung  <tausq@debian.org>
8128
8129         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use 
8130         read_memory_nobpt for code reading when doing frame unwinding.
8131         * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8132
8133 2004-05-07  Randolph Chung  <tausq@debian.org>
8134
8135         * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8136         instead of sp, handle sigaltstack case.
8137         (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to 
8138         hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8139         signal handler and not that of the caller.
8140         (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8141         hppa_linux_sigtramp_find_sigcontext.
8142
8143 2004-05-07  Randolph Chung  <tausq@debian.org>
8144
8145         * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8146         hppa-linux-nat.c.
8147         (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8148         * hppa-linux-nat.c (fetch_register, store_register): Define.
8149         (fetch_inferior_registers, store_inferior_registers): Define.
8150         (supply_gregset): Add comment and clean up some unneeded code.
8151         (fill_gregset): Add comment and fix so that it saves registers in
8152         the right place in the gregset.
8153         (fill_fpregset): Fix buffer overrun problem.
8154         * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8155
8156 2004-05-07  Randolph Chung  <tausq@debian.org>
8157
8158         * hppa-tdep.c (hppa_frame_prev_register_helper): New function to 
8159         do common handling of the pcoqt register.
8160         (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8161         to use helper function.
8162         (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8163         (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8164         (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8165         generic fallback unwinder when all else fails.
8166         (hppa_gdbarch_init): Add fallback sniffer.
8167         * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8168         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8169         to use helper function.
8170
8171 2004-05-08  Joel Brobecker  <brobecker@gnat.com>
8172
8173         * config/djgpp/fnchange.lst: Add translation rules for
8174         gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8175
8176 2004-05-08  Mark Kettenis  <kettenis@gnu.org>
8177
8178         * frame.c (get_prev_frame_1): Work around GCC bug.
8179         * frame.h: Add comment about GCC bug.
8180
8181 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8182
8183         * observer.c: Include "commands.h" and "gdbcmd.h".
8184         (observer_debug, _initialize_observer): Add the
8185         command "set/show debug observer".
8186         * observer.sh: When observer debugging, log notify calls.
8187         * Makefile.in (observer.o): Update dependencies.
8188
8189 2004-05-07  Jason Molenda  (jmolenda@apple.com)
8190
8191         * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8192
8193 2004-05-07  Jim Blandy  <jimb@redhat.com>
8194
8195         * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8196         fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8197         to recognize gpr regnums, instead of assuming that
8198         tdep->ppc_fp0_regnum marks the end of the general-purpose
8199         registers.
8200
8201         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8202         the given architecture has floating-point registers. 
8203
8204 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8205
8206         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8207         macro defined to 1.
8208         * gdbarch.h, gdbarch.c: Re-generate.
8209         * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8210         deprecated_use_generic_dummy_frames.
8211
8212 2004-05-07  Brian Ford  <ford@vss.fsi.com>
8213
8214         * NEWS: Mention Cygwin DWARF 2 support.
8215
8216 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8217
8218         * objfiles.h (struct entry_info): Delete unused fields
8219         deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8220         * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8221         * mipsread.c (mipscoff_symfile_read): Update.
8222         * mdebugread.c (parse_partial_symbols): Update.
8223         * dwarfread.c (read_file_scope): Update.
8224         * dwarf2read.c (read_file_scope): Update.
8225         * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8226         * coffread.c (complete_symtab): Update.
8227
8228 2004-05-07  Mark Kettenis  <kettenis@gnu.org>
8229
8230         * infcall.c (_initialize_infcall): Fix typo.
8231
8232 2004-05-07  Andrew Cagney  <cagney@redhat.com>
8233
8234         * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8235         * command.h (add_setshow_zinteger_cmd): Declare.
8236
8237 2004-05-06  Randolph Chung  <tausq@debian.org>
8238
8239         * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8240         (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8241         (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8242         (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8243         (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8244         (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8245         (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM 
8246         definitions ...
8247         * hppa-tdep.h: ... to here, with HPPA_ prefix.
8248         * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8249         * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8250         (hppa64_hpux_frame_find_saved_regs_in_sig)
8251         (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8252         * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8253         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8254         (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8255         (hppa_linux_sigtramp_frame_prev_register): Likewise.
8256         * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8257         (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8258         (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8259         (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8260         (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8261         (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8262         (hppa32_register_type, hppa_cannot_store_register)
8263         (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8264         * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8265         * hpread.c (hpread_process_one_debug_symbol): Likewise.
8266         * pa64solib.c (pa64_solib_have_load_event)
8267         (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8268         (pa64_solib_unloaded_library_pathname): Likewise.
8269         * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8270         (som_solib_library_pathname): Likewise.
8271
8272 2004-05-05  Jim Ingham  <jingham@apple.com>
8273         
8274         * breakpoint.c (create_breakpoints): Copy the ignore count and
8275         thread id over from the pended breakpoint to the actual
8276         breakpoint.
8277         
8278 2004-05-05  Andrew Cagney  <cagney@redhat.com>
8279
8280         * gdbarch.sh (PARM_BOUNDARY): Delete.
8281         gdbarch.h, gdbarch.c: Re-generate.
8282         * valops.c (PARM_BOUNDARY): Delete macro.
8283         (value_push): Delete PARM_BOUNDARY code.
8284         * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8285
8286 2004-05-04  Jim Blandy  <jimb@redhat.com>
8287
8288         * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8289         Don't assume that the gprs, fprs, and UISA sprs are
8290         contiguous, start at register number zero, and end with fpscr.
8291         Instead, use the numbers from the tdep structure.
8292
8293         * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8294         should no longer be used in code specific to the RS6000 and its
8295         derivatives.
8296         * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8297         * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8298         tdep->ppc_fp0_regnum.
8299         (ppc_supply_fpregset, ppc_collect_fpregset)
8300         (rs6000_push_dummy_call, rs6000_extract_return_value)
8301         (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8302         (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8303         FP0_REGNUM. 
8304         * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8305         (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8306         Same.
8307         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8308         bdm_ppc_store_registers): Same.
8309         * ppc-linux-nat.c (ppc_register_u_addr, fetch_register) 
8310         (store_register, fill_fpregset): Same.
8311         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache) 
8312         (ppc_linux_supply_fpregset): Same.
8313         * ppcnbsd-nat.c (getfpregs_supplies): Same.
8314         * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8315         Same.
8316         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8317         do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8318         ppc64_sysv_abi_return_value): Same.
8319         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8320         (store_inferior_registers, fetch_core_registers): Same.
8321
8322 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8323
8324         * m68knbsd-nat.c: Remove file.
8325         * m68knbsd-tdep.c: Remove file.
8326         * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8327         dependencies.
8328         * configure.host: Add m68k-*-netbsdelf*.
8329         * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8330         * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8331         solib.o and solib-sunos.o.  Remove m68knbsd-nat.o, corelow.o.
8332         (XM_FILE): Remove.
8333         * config/m68k/nbsdelf.mh: New file.
8334         * config/m68k/nbsd.mt: New file.
8335         * config/m68k/nbsdaout.mt: Remove file.
8336         * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8337         <machine/vmparam.h> and "m68k/tm-m68k.h".  Include "solib.h".
8338         (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8339         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8340         (use_struct_convention): Remove prototype.
8341         (USE_STRUCT_CONVENTION): Remove define.
8342         * config/m68k/xm-nbsd.h: Remove file.
8343
8344 2004-05-04  Michael Snyder  <msnyder@redhat.com>
8345
8346         * m68k-tdep.c (m68k_gdbarch_init): Default to using 
8347         reg_struct_return method (as gcc usually does for cross targets).
8348
8349 2004-05-04  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8350
8351         Committed by Andrew Cagney.
8352         * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8353         alignment padding when accessing ucontext struct members.
8354
8355 2004-05-04  Jim Blandy  <jimb@redhat.com>
8356
8357         * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8358         'ppc_gplast_regnum' member.
8359         (ppc_num_gprs): New enum constant.
8360         * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8361         and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8362         * rs6000-nat.c (regmap, fetch_inferior_registers,
8363         store_inferior_registers): Same.
8364         * rs6000-tdep.c (e500_pseudo_register_read)
8365         (e500_pseudo_register_write): Same.
8366         (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8367
8368         * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8369         * ppc-tdep.h (ppc_num_fprs): New enum constant.
8370         * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8371         store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8372         FPLAST_REGNUM.
8373         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8374         Same.
8375         * ppc-linux-nat.c (ppc_register_u_addr): Same.
8376         * rs6000-nat.c (regmap, fetch_inferior_registers) 
8377         (store_inferior_registers): Same.
8378
8379         * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8380         with FPLAST_REGNUM.
8381
8382 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
8383
8384         * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8385         failure detected by recent versions of GCC.
8386         (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8387         to be consistent with the usage in dwarf2_create_include_psymtab.
8388
8389 2004-05-03  Michael Snyder  <msnyder@redhat.com>
8390
8391         * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8392         (heuristic_proc_start): Whitespace cleanup.
8393
8394 2004-05-04  Mark Kettenis  <kettenis@gnu.org>
8395
8396         * sun3-nat.c: Remove file.
8397         * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8398         dependencies.
8399         (ALLDEPFILES): Remove sun3-nat.c.
8400         (sun3-nat.o): Remove dependencies.
8401
8402         * i386-interix-nat.c, i386-interix-tdep.c,
8403         config/i386/nm-interix.h, config/i386/interix.mh,
8404         config/i386/interix.mt: Remove files.
8405         * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8406         dependencies.
8407
8408 2004-05-03  Mark Kettenis  <kettenis@gnu.org>
8409
8410         * m68k-tdep.h (struct gdbarch_tdep): Add member
8411         struct_value_regnum.
8412         (m68k_svr4_init_abi): New prototype.
8413         * m68k-tdep.c: Include "floatformat.h".  Add comment about all the
8414         different calling conventions.
8415         (m68k_extract_return_value): Remove code dealing with single-field
8416         structs.
8417         (m68k_store_return_value): Remove code dealing with single-field
8418         structs.  Correctly store return values of 5, 6, 7 or 8 bytes.
8419         (m68k_extract_struct_value_address): Remove function.
8420         (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8421         (m68k_reg_struct_return_p, m68k_return_value)
8422         (m68k_svr4_return_value): New functions.
8423         (m68k_use_struct_convention): Remove function.
8424         (m68k_push_dummy_call): Use new struct_value_regnum member of
8425         `struct gdbarch_tdep' instead of hardcoded register number to
8426         store STRUCT_ADDR.
8427         (m68k_svr4_init_abi): New function.
8428         (m68k_gdbarch_init): Don't set extract_return_value,
8429         store_return_values, deprecated_extract_struct_value_address and
8430         use_struct_convention.  Set return_value instead.  Initialize new
8431         struct_value_regnum member of `struct gdbarch_tdep'.
8432         * m68klinux-tdep.c: Update copyright year.
8433         (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8434         (m68k_linux_extract_struct_value_address): Remove function.
8435         (m68k_linux_init_abi): Don't set extract_return_value,
8436         store_return_values, deprecated_extract_struct_value_address and
8437         use_struct_convention.  Call m68k_svr4_init_abi but override the
8438         new struct_value_regnum member of `struct gdbarch_tdep'.
8439         * Makefile.in (m68k-tdep.o): Update dependencies.
8440
8441 2004-05-03  J. Brobecker  <brobecker@gnat.com>
8442
8443         * dwarf2read.c (line_header): Add new included_p field in
8444         field file_names.
8445         (partial_die_info): New field has_stmt_list. New field line_offset.
8446         (dwarf2_create_include_psymtab): New function.
8447         (dwarf2_build_include_psymtabs): New function.
8448         (add_file_name): Add forward declaration. Initialize new field.
8449         (dwarf_decode_lines): Add new parameter. Enhance this procedure
8450         to be able to determine the list of files included by the
8451         given unit, and build their associated psymtabs.
8452         (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8453         files as well.
8454         (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8455         (read_file_scope): Update call to dwarf_decode_lines.
8456         (read_partial_die): Handle DW_AT_stmt_list attributes.
8457
8458 2004-05-02  Michael Chastain  <mec.gnu@mindspring.com>
8459
8460         Unfix PR gdb/1626.
8461         * configure.in: Revert special case for osf5.*.
8462         * configure: Regenerate.
8463
8464 2004-05-02  Jim Blandy  <jimb@redhat.com>
8465
8466         Move the symbol-file-from-memory functions into their own file.
8467         * symfile-mem.c, symfile-mem.h: New files.
8468         * symfile.c (symbol_file_add_from_bfd): New function.
8469         (symbol_file_add): Call symbol_file_add_from_bfd.
8470         (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8471         Moved to symfile-mem.c.
8472         (_initialize_symfile): Move definition of
8473         add-symbol-file-from-memory command to symfile-mem.c.
8474         * symfile.h (symbol_file_add_from_bfd): New declaration.
8475         * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8476         * config/powerpc/linux.mt (TDEPFILES): Same.
8477         * Makefile.in (SFILES): Add symfile-mem.c.
8478         (symfile_mem_h): New variable.
8479         (HFILES_NO_SRCDIR): Add symfile-mem.h.
8480         (symfile-mem.o): New rule.
8481
8482 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8483
8484         * breakpoint.c (insert_bp_location): Use get_frame_id, and
8485         frame_find_by_id instead of frame_relative_level.
8486         (do_enable_breakpoint): Ditto.
8487         * thread.c: Update copyright.
8488         (info_threads_command): Ditto, simplify.
8489
8490         * frame.c (deprecated_generic_get_saved_register): Delete
8491         function, moved to "xstormy16-tdep.c".
8492         * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8493         deprecated_generic_get_saved_register from "frame.c".
8494         (xstormy16_frame_saved_register): Call
8495         xstormy16_get_saved_register.
8496         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8497         static.
8498         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8499         * frame.h (deprecated_generic_get_saved_register): Delete.
8500
8501 2004-05-01  Michael Chastain  <mec.gnu@mindspring.com>
8502
8503         * dwarfread.c: Update documentation on the state of dwarf-1.
8504
8505 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8506
8507         * stack.c (select_frame_command): Delete call to
8508         frame_relative_level.
8509         (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8510         Delete #if0 code.
8511         (frame_info): Do not print FRAMELESS.
8512         (print_block_frame_labels): Replace DEPRECATED_STREQ.
8513         (catch_info): Delete #if0 code.
8514
8515         * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8516         * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8517         of frame_relative_level.
8518         * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8519         to SENTINEL_FRAME.
8520         * frame.h (enum frame_type): Add SENTINEL_FRAME.
8521         * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8522         frame_relative_level.
8523
8524         * frame.h (deprecated_set_frame_type): Delete declaration.
8525         * frame.c (deprecated_set_frame_type): Delete function, update
8526         comments.
8527
8528         * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8529         * gdbarch.h, gdbarch.c: Re-generate.
8530         * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8531         (shnbsd_pc_in_sigtramp): Delete.
8532         * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8533         pc_in_sigtramp.
8534         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8535         pc_in_sigtramp.
8536         * frame.h: Update comments.
8537         * ppc-linux-tdep.c: Update comments.
8538         * breakpoint.c (bpstat_what): Update comments.
8539
8540         * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8541         m68klinux-tdep.o's dependencies, were previously added to
8542         m68klinux-nat.o.
8543
8544         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8545         * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8546         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8547         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8548         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8549
8550         * Makefile.in (m68klinux-nat.o): Update dependencies.
8551         * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8552         (m68k_linux_sigtramp_frame_cache)
8553         (m68k_linux_sigtramp_frame_this_id)
8554         (m68k_linux_sigtramp_frame_prev_register)
8555         (m68k_linux_sigtramp_frame_unwind)
8556         (m68k_linux_sigtramp_frame_sniffer)
8557         (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8558         m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8559         names, use trad-frame.h.
8560         * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8561         (struct m68k_sigtramp_info): Delete.
8562         * m68k-tdep.c (m68k_sigtramp_frame_cache)
8563         (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8564         (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8565         (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8566         "m68klinux-tdep.c".
8567
8568         * infrun.c (check_sigtramp2): Delete check for
8569         DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8570
8571 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8572
8573         * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8574
8575 2004-05-01  Andrew Cagney  <cagney@redhat.com>
8576
8577         * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8578         (frv_linux_sigtramp_frame_cache)
8579         (frv_linux_sigtramp_frame_this_id)
8580         (frv_linux_sigtramp_frame_prev_register)
8581         (frv_linux_sigtramp_frame_unwind)
8582         (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8583         include "linux" in function and variable names, directly call
8584         frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8585         the latest trad-frame code.
8586         (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8587         not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8588         * Makefile.in (frv-linux-tdep.o): Update dependencies.
8589         * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8590         * frv-tdep.c (frv_sigtramp_frame_cache)
8591         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8592         (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8593         frv-linux-tdep.c.
8594         (frv_gdbarch_init): Do not append a sigtramp sniffer.
8595         (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8596         (frv_set_sigcontext_reg_addr): Delete function.
8597
8598         * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8599         (DEPRECATED_SIGTRAMP_END): Delete.
8600         * gdbarch.h, gdbarch.c: Re-generate.
8601         * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8602         * config/vax/tm-vaxbsd.h: Update copyright.
8603         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8604         (DEPRECATED_IN_SIGTRAMP): Define.
8605         * config/m68k/tm-nbsd.h: Update copyright.
8606         (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8607         (DEPRECATED_IN_SIGTRAMP): Define.
8608
8609 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8610
8611         * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8612         encondings.  Fixes PR gdb/1628.
8613
8614         * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8615         DW_CFA_restore state without a matching DW_CFA_remember_state
8616         instead of aborting.  Fixes PR backtrace/1589.
8617
8618 2004-04-30  Joel Brobecker  <brobecker@gnat.com>
8619
8620         * MAINTAINERS: Add self as AIX maintainer.
8621         Update my e-mail address in write-after-approval section.
8622
8623 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8624
8625         * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8626         (legacy_get_prev_frame): Ditto.
8627
8628         * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8629         (mips_gdbarch_init): Do not set pc_in_sigtramp.
8630         * mipsread.c (sigtramp_address): Delete extern variable.
8631         (mipscoff_new_init): Delete reference.
8632         * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8633         (fixup_sigtramp): Delete function.
8634         * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8635         (fixup_sigtramp): Delete declarations.
8636
8637         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8638         deprecated_pc_in_sigtramp.
8639         (ppcnbsd_pc_in_sigtramp): Delete function.
8640
8641 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8642
8643         * config/m68k/nm-nbsd.h: Tweak comments.
8644         * config/m68k/nm-nbsdaout.h: Likewise.
8645
8646 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8647
8648         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8649         legacy_pc_in_sigtramp.
8650         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8651
8652 2004-05-01  Mark Kettenis  <kettenis@gnu.org>
8653
8654         Add OpenBSD/m68k support.
8655         * NEWS (New native configurations): Mention OpenBSD/m68k.
8656         * m68kbsd-tdep.c: New file.
8657         * m68kbsd-nat.c: New file.
8658         * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8659         (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8660         * configure.host: Add m68k-*-openbsd.
8661         * configure.tgt: Add m68k-*-openbsd.
8662         * config/m68k/tm-obsd.h: New file.
8663         * config/m68k/obsd.mt: New file.
8664         * config/m68k/obsd.mh: New file.
8665         * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8666         m68kbsd-tdep.c.
8667
8668 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8669
8670         * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8671         (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8672
8673 2004-04-30  Mark Kettenis  <kettenis@gnu.org>
8674
8675         * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8676         * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8677
8678 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8679
8680         Revert 2004-04-16 change.
8681         * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8682         (i386_coff_init_abi): Remove.
8683         * i386-tdep.h (i386_coff_init_abi): Remove.
8684         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8685
8686 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8687
8688         * blockframe.c (find_pc_partial_function): Delete use of
8689         DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8690         DEPRECATED_SIGTRAMP_END.
8691
8692         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8693         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8694         * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8695         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8696         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8697
8698         * defs.h (deprecated_inside_entry_file): Delete declaration.
8699         * blockframe.c (deprecated_inside_entry_file): Delete function.
8700         (legacy_frame_chain_valid): Delete call.
8701         * sh64-tdep.c (sh64_frame_chain): Delete call.
8702         * objfiles.h: Update comments.
8703         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8704         call.
8705         * frame.c (get_prev_frame): Delete call, update comments.
8706
8707 2004-04-30  Brian Ford  <ford@vss.fsi.com>
8708
8709         * MAINTAINERS (Write After Approval): Add myself.
8710
8711 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8712
8713         * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8714         * gdbarch.h, gdbarch.c: Re-generate.
8715         * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8716         code.
8717
8718 2004-04-30  Andrew Cagney  <cagney@redhat.com>
8719
8720         * gdb-events.sh (selected_thread_changed)
8721         (selected_frame_level_changed, target_changed): Delete.
8722         * gdb-events.h, gdb-events.c: Re-generate.
8723         * valops.c (value_assign): Update.
8724         * stack.c (select_frame_command, up_silently_base)
8725         (down_silently_base): Update.
8726
8727 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8728
8729         * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8730         registers correctly.
8731         (print_gp_register_row, mips32_heuristic_proc_desc)
8732         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8733         (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8734         references to mips_isa_regsize.
8735
8736 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8737
8738         * mips-tdep.c (struct gdbarch_tdep): Delete
8739         mips_fp_register_double.
8740         (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8741         mips_abi_regsize.
8742         (mips_gdbarch_init): Do not set mips_fp_register_double.
8743         (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8744
8745 2004-04-29  Joel Brobecker  <brobecker@gnat.com>
8746
8747         Committed by Andrew Cagney.
8748         * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8749         function calls.
8750
8751 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8752
8753         * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8754         gdbarch, use mips_abi, update callers.
8755         (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8756         mips_abi_regsize, update callers.
8757         (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8758         mips_default_abi_regsize.
8759         (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8760         mips_default_abi_regsize.
8761
8762 2004-04-29  Andrew Cagney  <cagney@redhat.com>
8763
8764         * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8765         (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8766         (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8767         mips_default_abi_regsize.
8768         (mips_isa_regsize): Rename mips_regisze.
8769         * mipsnbsd-tdep.c: Update.
8770         * mips-linux-tdep.c: Update.
8771         * irix5-nat.c: Update.
8772         * mips-tdep.h (mips_isa_regsize): Update.
8773
8774         * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8775         Delete all disabled code.
8776         * gdb-events.h, gdb-events.c: Re-generate.
8777         
8778 2004-04-19  Jerome Guitton  <guitton@gnat.com>
8779             Mark Kettenis  <kettenis@gnu.org>
8780
8781         * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8782         the function begins with a branch instruction.
8783
8784 2004-04-29  Mark Kettenis  <kettenis@gnu.org>
8785
8786         * i386-tdep.c: Fix spelling mistakes.
8787
8788 2004-04-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8789             Andrew Cagney  <cagney@redhat.com>
8790
8791         * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8792         <sys/proc.h>.
8793         * acconfig.h: Provide default _KMEMUSER value.
8794         * config.in, configure: Re-generate.
8795         * NEWS: Mention fix.
8796
8797 2004-04-24  Randolph Chung  <tausq@debian.org>
8798
8799         * configure.host (hppa*-*-linux*): New target.
8800         * configure.tgt (hppa*-*-linux*): Likewise.
8801         * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8802         gdbarch_init_osabi() call earlier so that osabi-specific frame
8803         unwinders can be registered first.
8804         * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8805         hppa-linux-nat.c.
8806         * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8807         (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8808         * config/pa/linux.mh: New file.
8809         * config/pa/linux.mt: New file.
8810         * config/pa/nm-linux.h: New file.
8811         * config/pa/xm-linux.h: New file.
8812         * hppa-linux-nat.c: New file.
8813         * hppa-linux-tdep.c: New file.
8814
8815 2004-04-28  Randolph Chung  <tausq@debian.org>
8816
8817         * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8818         return values.
8819         (hppa32_push_dummy_call): Fix small struct and floating point argument 
8820         passing, and make sure the stack frame is properly aligned.
8821
8822 2004-04-28  Andrew Cagney  <cagney@redhat.com>
8823
8824         * stack.c (print_stack_frame): Fix description.
8825
8826         * NEWS: Mention gdb/gdbserver/configure execute permission
8827         changed.  PR server/519.
8828
8829 2004-04-28  Andrew Cagney  <cagney@redhat.com>
8830
8831         * stack.c (print_stack_frame_stub): Delete declaration.
8832         (struct print_stack_frame_args, print_stack_frame)
8833         (print_frame_info, print_frame): Replace "source" with print what.
8834         Replace "print" with "print_level".  Replace "args" with
8835         "print_args".
8836         * frame.h (show_and_print_stack_frame, print_stack_frame)
8837         (print_frame_info): Update declarations.
8838         * stack.c (select_and_print_frame, frame_command)
8839         (current_frame_command, up_command, down_command): Update calls -
8840         use get_selected_frame, pass "enum print_what" for source, do not
8841         call frame_relative_level.
8842         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8843         * remote-rdp.c (remote_rdp_open): Ditto.
8844         * remote-mips.c (common_open): Ditto.
8845         * remote-e7000.c (e7000_start_remote): Ditto.
8846         * ocd.c (ocd_start_remote): Ditto.
8847         * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8848         * infrun.c (normal_stop): Ditto.
8849         * inflow.c (kill_command): Ditto.
8850         * infcmd.c (finish_command): Ditto.
8851         * corelow.c (core_open): Ditto.
8852         * tracepoint.c (finish_tfind_command): Ditto.
8853         * thread.c (info_threads_command, info_threads_command) 
8854         (restore_current_thread, do_captured_thread_select): Ditto.
8855         * ada-tasks.c (task_command): Ditto.
8856
8857 2004-04-26  Orjan Friberg <orjanf@axis.com>
8858
8859         * frame.c: Include "observer.h".
8860         (frame_observer_target_changed): New function.
8861         (_initialize_frame): Attach target_changed observer.
8862         * regcache.c: Include "observer.h".
8863         (regcache_observer_target_changed): New function.
8864         (_initialize_regcache): Attach target_changed observer.
8865         * valops.c: Include "observer.h".
8866         (value_assign): Notify target_changed event when modifying register.
8867         * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8868
8869 2004-04-26  Orjan Friberg <orjanf@axis.com>
8870
8871         From Paul Koning <pkoning@equallogic.com>:
8872         * breakpoint.c (free_valchain): New function.
8873         (insert_bp_location, delete_breakpoint): Use free_valchain.
8874         (remove_breakpoint): Do not remove the valchain.
8875         (bpstat_stop_status): If not stopped by watchpoint, skip
8876         watchpoints when generating stop status list.
8877         * infrun.c (handle_inferior_event): Make
8878         stepped_after_stopped_by_watchpoint a global variable.
8879         * remote.c (remote_stopped_data_address): Return watch data
8880         address rather than zero if stepped_after_stopped_by_watchpoint is
8881         set.
8882
8883 2004-04-25  Michael Chastain  <mec.gnu@mindspring.com>
8884
8885         Fix PR gdb/1626.
8886         * configure.in: Check for curses after termcap.
8887         On osf5.*, do not check for ncurses.
8888         * configure: Regenerate.
8889
8890 2004-04-25  Mark Kettenis  <kettenis@gnu.org>
8891
8892         * ppcobsd-nat.c: Include "ppc-tdep.h".
8893         * Makefile.in (ppcobsd-nat.o): Update dependencies.
8894
8895         * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8896         Fixes PR tdep/1623 and PR tdep/1624.
8897
8898 2004-04-24  Michael Chastain  <mec.gnu@mindspring.com>
8899
8900         * xmodem.h, xmodem.c: Remove files.
8901         * Makefile.in: Remove references to xmodem.h, xmodem.c.
8902
8903 2004-04-23  Randolph Chung  <tausq@debian.org>
8904
8905         * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8906         (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8907         (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8908         for handling stackless frames.
8909         (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer. 
8910
8911 2004-04-23  Randolph Chung  <tausq@debian.org>
8912
8913         * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8914         starts at a pc before the frame is created.
8915
8916 2004-04-23  Joel Brobecker  <brobecker@gnat.com>
8917
8918         * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8919
8920 2004-04-23  Jerome Guitton  <guitton@gnat.com>
8921
8922         * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8923         use convert_typed_floating to get the appropriate format.
8924
8925 2004-04-22  Randolph Chung  <tausq@debian.org>
8926
8927         * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8928         (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8929         (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8930         (hppa_sign_extend): Add prototype.
8931         * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8932         (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8933         (sign_extend): Rename with hppa_ prefix and make non-static.  Other
8934         hppa targets will also use these functions.
8935         (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8936         (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8937         (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8938         (hppa_gdbarch_init): Remove gdbarch setting of 
8939         skip_trampoline_code, in_solib_call_trampoline and
8940         in_solib_return_trampoline.
8941         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8942         (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8943         hppa_in_solib_call_trampoline.
8944         (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8945         Moved from hppa-tdep.c.
8946         (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, 
8947         in_solib_call_trampoline and in_solib_return_trampoline.
8948
8949 2004-04-22  Randolph Chung  <tausq@debian.org>
8950
8951         * hppa-tdep.c (hppa_debug): New variable.
8952         (find_unwind_entry, hppa_frame_cache): Add debug output.
8953         (_initialize_hppa_tdep): Add command to set debug flag.
8954
8955 2004-04-22  Andrew Cagney  <cagney@redhat.com>
8956
8957         * ppcnbsd-tdep.c: Update copyright.  Include "tramp-frame.h" and
8958         "trad-frame.h".
8959         (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8960         signal trampoline unwinder.
8961         (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8962
8963 2004-04-22  Mark Kettenis  <kettenis@gnu.org>
8964
8965         Add OpenBSD/powerpc support.
8966         * NEWS (New native configurations): Mention OpenBSD/powerpc.
8967         * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8968         (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8969         (ppc_collect_fpregset): New prototypes.
8970         * ppcobsd-nat.c: New file.
8971         * ppcobsd-tdep.c: New file.
8972         * ppcobsd-tdep.h: New file.
8973         * rs6000-tdep.c: Include "regset.h".
8974         (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8975         (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8976         New functions.
8977         * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8978         (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8979         (rs6000-tdep.o): Update dependencies.
8980         * configure.host: Add powerpc-*-openbsd.
8981         * configure.tgt: Add powerpc-*-openbsd.
8982         * config/powerpc/obsd.mh: New file.
8983         * config/powerpc/nm-obsd.h: New file.
8984         * config/powerpc/obsd.mt: New file.
8985
8986 2004-04-22  Andrew Cagney  <cagney@redhat.com>
8987
8988         * frame.h (show_frame_info): Delete declaration.
8989
8990         * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8991         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8992         * m32r-tdep.c (m32r_frame_this_id): Ditto.
8993         * frv-tdep.c (frv_frame_this_id): Ditto.
8994         * avr-tdep.c (avr_frame_this_id): Ditto.
8995
8996 2004-04-22  Elena Zannoni  <ezannoni@redhat.com>
8997
8998         * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8999
9000 2004-04-22  Jim Blandy  <jimb@redhat.com>
9001
9002         * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9003         register number zero.
9004
9005 2004-04-21  Michael Snyder  <msnyder@redhat.com>
9006
9007         * mips-tdep.c (heuristic_proc_start): 
9008         Warning() already prefixes "Warning: ".
9009
9010 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9011
9012         * annotate.h (deprecated_annotate_starting_hook)
9013         (deprecated_annotate_stopped_hook)
9014         (deprecated_annotate_exited_hook)
9015         (deprecated_annotate_signal_hook)
9016         (deprecated_annotate_signalled_hook): Deprecate.
9017         * tracepoint.h (deprecated_create_tracepoint_hook)
9018         (deprecated_delete_tracepoint_hook)
9019         (deprecated_modify_tracepoint_hook)
9020         (deprecated_trace_find_hook)
9021         (deprecated_trace_start_stop_hook): Deprecate.
9022         * target.h (deprecated_target_new_objfile_hook): Deprecate.
9023         * remote.h (deprecated_target_resume_hook)
9024         (deprecated_target_wait_loop_hook): Deprecate.
9025         * gdbcore.h (deprecated_exec_file_display_hook)
9026         (deprecated_file_changed_hook): Deprecate.
9027         * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9028         * defs.h (deprecated_modify_breakpoint_hook)
9029         (deprecated_command_loop_hook, deprecated_show_load_progress)
9030         (deprecated_print_frame_info_listing_hook)
9031         (deprecated_query_hook, deprecated_warning_hook)
9032         (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9033         (deprecated_delete_breakpoint_hook)
9034         (deprecated_interactive_hook, deprecated_registers_changed_hook)
9035         (deprecated_readline_begin_hook, deprecated_readline_hook)
9036         (deprecated_readline_end_hook, deprecated_register_changed_hook)
9037         (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9038         (deprecated_context_hook, deprecated_target_wait_hook)
9039         (deprecated_attach_hook, deprecated_detach_hook)
9040         (deprecated_call_command_hook, deprecated_set_hook)
9041         (deprecated_error_hook, deprecated_error_begin_hook)
9042         (deprecated_ui_load_progress_hook): Deprecate.
9043         * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9044         * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9045         * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9046         * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9047         * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9048         * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9049         * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9050         * annotate.c, aix-thread.c: Update.
9051
9052 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9053
9054         * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9055         * vaxnbsd-tdep.c: Include "gdb_string.h".
9056
9057         * symfile.c (symbol_file_add_from_memory): #if 0 function.
9058         (add_symbol_file_from_memory_command): #if 0 function body, call
9059         error instead.
9060
9061 2004-04-21  Andrew Cagney  <cagney@redhat.com>
9062
9063         * gdbcore.h: Update copyright.
9064         (deprecated_add_core_fns): Rename add_core_fns.
9065         * win32-nat.c (_initialize_core_win32): Update.
9066         * sun3-nat.c (_initialize_core_sun3): Update.
9067         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9068         * rs6000-nat.c (_initialize_core_rs6000): Update.
9069         * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9070         * nto-tdep.c (_initialize_nto_tdep): Update.
9071         * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9072         * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9073         * mips-nat.c (_initialize_core_mips): Update.
9074         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9075         * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9076         * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9077         * lynx-nat.c (_initialize_core_lynx): Update.
9078         * irix5-nat.c (_initialize_core_irix5): Update.
9079         * i386-interix-nat.c (_initialize_core_interix): Update.
9080         * cris-tdep.c (_initialize_cris_tdep): Update.
9081         * corelow.c (deprecated_add_core_fns): Update.
9082         * core-regset.c (_initialize_core_regset): Update.
9083         * core-aout.c (_initialize_core_aout): Update.
9084         * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9085         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9086         * alpha-nat.c (_initialize_core_alpha): Update.
9087
9088 2004-04-21  Jim Blandy  <jimb@redhat.com>
9089
9090         * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9091
9092 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
9093
9094         * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9095         Delete.
9096         (dwarf_alloc_block): Take a CU argument.  Use the comp_unit_obstack.
9097         (read_attribute_value): Update calls to dwarf_alloc_block.
9098         (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9099         dwarf2_tmp_obstack.
9100         (psymtab_to_symtab_1): Likewise.  Clean up using
9101         free_stack_comp_unit.
9102         (add_to_cu_func_list): Use the comp_unit_obstack.
9103
9104 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
9105
9106         * dwarf2read.c (dwarf2_flag_true_p): New function.
9107         (die_is_declaration): Use the function above. Add some comments.
9108
9109 2004-04-19  Mark Kettenis  <kettenis@gnu.org>
9110
9111         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9112         architecture when registering sparcnbsd_core_osabi_sniffer.
9113         Adjust comment.
9114
9115 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
9116
9117         * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9118         return value.
9119
9120         Based on a patch from Brian Ford <ford@vss.fsi.com>:
9121         * i386-tdep.c: Correct register numbering scheme comments
9122         throughout.
9123         (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9124         (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9125         (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9126         (i386_gdb_arch_init): Likewise.
9127
9128         * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9129         and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9130         ppcnbsd-tdep.o.
9131
9132         * m68k-tdep.h: Tweak comments.
9133         * m68k-tdep.c: Tweak comment.
9134
9135 2004-04-17  Randolph Chung  <tausq@debian.org>
9136
9137         * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9138         * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9139         (hppa_hpux_som_init_abi): Set is_elf to 0.
9140         (hppa_hpux_elf_init_abi): Set is_elf to 1.
9141         * hppa-tdep.c (low_text_segment_address): Remove global.
9142         (record_text_segment_lowaddr): Pass in low address as parameter. Use
9143         section offset to calculate segment address.
9144         (internalize_unwinds): Define low_text_segment_address as local and
9145         pass to record_text_segment_lowaddr for ELF targets.
9146         (hppa_gdbarch_init): Zero fill tdep structure.
9147         (hppa_dump_tdep): Print tdep structure.
9148         * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9149
9150 2004-04-17  Randolph Chung  <tausq@debian.org>
9151
9152         * hppa-tdep.c (hppa_pseudo_register_read): Define.
9153         (hppa_gdbarch_init): Set pseudo_register_read.
9154         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9155         * regcache.c (supply_register): Remove check for
9156         DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9157
9158 2004-04-17  Randolph Chung  <tausq@debian.org>
9159
9160         * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9161         * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9162         (hpread_adjust_stack_address): Move to hpread.c.
9163         * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9164         obj_private_struct): Move from tm-hppa.h.
9165         * hpread.c (hppa-tdep.h): Include.
9166         (hpread_adjust_stack_address): Move from hppa-tdep.c.
9167         (hpread_read_function_type, hpread_read_doc_function_type)
9168         (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address 
9169         directly.
9170         * pa64solib.c (hppa-tdep.h): Include.
9171         * somsolib.c (hppa-tdep.h): Include.
9172         * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9173         inferior_status): Remove unused forward declarations.
9174         (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9175         (unwind_table_entry, unwind_stub_types, obj_unwind_info, 
9176         obj_private_struct): Move to hppa-tdep.h.
9177         (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9178
9179 2004-04-17  Randolph Chung  <tausq@debian.org>
9180
9181         * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9182         (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9183         (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9184         (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9185         Remove forward declaration and make static.
9186         (hppa_reg_struct_has_addr): Remove.
9187
9188 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9189
9190         * observer.sh: Move comments in sed command to first column.
9191
9192 2004-04-16  Jason Molenda  (jmolenda@apple.com)
9193
9194         * frame.c: Minor typeo corrections in comments.
9195
9196 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9197
9198         * observer.c (observer_test_first_notification_function): Update
9199         function profile.
9200         (observer_test_second_notification_function): Likewise.
9201         (observer_test_third_notification_function): Likewise.
9202
9203 2004-04-16  Mark Kettenis  <kettenis@gnu.org>
9204
9205         From Brian Ford <ford@vss.fsi.com>:
9206         * i386-tdep.c (i386_coff_init_abi): New function.
9207         * i386-tdep.h (i386_coff_init_abi): New prototype.      
9208         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it.  Use correct
9209         register number translation functions for DWARF and DWARF 2.
9210
9211 2004-04-16  Joel Brobecker  <brobecker@gnat.com>
9212
9213         * dwarf2read.c: Back out my previous change, it was incorrect.
9214
9215 2004-04-16  Daniel Jacobowitz  <drow@mvista.com>
9216
9217         * dwarf2read.c: Include "hashtab.h".
9218         (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9219         has_namespace_info.
9220         (struct partial_die_info): Add comments.  Use bitfields to reduce
9221         memory footprint.  Add scope, scope_set, has_specification,
9222         spec_offset, die_parent, die_child, and die_sibling.
9223         (peek_die_abbrev): Add prototype.
9224         (partial_read_comp_unit_head): New function, broken out from
9225         dwarf2_build_psymtabs_hard.
9226         (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9227         Use partial_read_comp_unit_head.  Initialize the CU and
9228         comp_unit_obstack.  Update calls to read_partial_die and
9229         scan_partial_symbols.  Use free_stack_comp_unit and
9230         load_partial_dies.
9231         (scan_partial_symbols): Change PDI to a pointer.  Use the child and
9232         sibling pointers to walk partial DIEs.  Call fixup_partial_die.
9233         Update calls to helper functions.  Remove NAMESPACE argument.
9234         Update comments.
9235         (partial_die_parent_scope, partial_die_full_name): New functions.
9236         (add_partial_symbol): Remove namespace argument.  Update call to
9237         pdi_needs_namespace.  Use partial_die_full_name.  Handle
9238         DW_TAG_namespace.  Check has_namespace_info flag.
9239         (pdi_needs_namespace): Remove NAMESPACE argument.  Just check the
9240         tag.  Handle namespaces.
9241         (add_partial_namespace, add_partial_enumeration): Simplify.
9242         (guess_structure_name): New function, derived from
9243         add_partial_structure.
9244         (add_partial_structure): Remove.
9245         (determine_class_name): Update comment.
9246         (dwarf2_read_abbrevs): Set has_namespace_info flag.
9247         (is_type_tag_for_partial, load_partial_dies): New functions.
9248         (read_partial_die): Pass abbrev and abbrev_len as arguments.
9249         Record specifications instead of following them immediately.
9250         (find_partial_die_in_comp_unit, find_partial_die)
9251         (fixup_partial_die, free_stack_comp_unit)
9252         (hashtab_obstack_allocate, dummy_obstack_deallocate)
9253         (partial_die_hash, partial_die_eq): New functions.
9254         * Makefile.in (hashtab_h): Define.
9255         (dwarf2read.o): Update dependencies.
9256         (observer_inc, observer_h): Move to the correct section.
9257
9258 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9259
9260         * dwarf2read.c (dwarf2_attribute_true_p): New function.
9261         (die_is_declaration): Use the function above. Add comment.
9262
9263 2004-04-15  Joel Brobecker  <brobecker@gnat.com>
9264
9265         * dwarf2read.c (read_structure_scope): Identify stub types
9266         using die_is_declaration() only.
9267
9268 2004-04-15  Roland McGrath  <roland@redhat.com>
9269
9270         * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9271         argument instead of NAME.
9272         (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9273         in call to symbol_file_add_with_addrs_or_offsets.
9274         (build_addr_info): New function, helper for ...
9275         (symbol_file_add_from_memory): New function.
9276         (add_symbol_file_from_memory_command): New function using that.
9277         (_initialize_symfile): Register it for add-symbol-file-from-memory.
9278         (pre_add_symbol_hook): Add const to argument type.
9279         * symfile.h (symbol_file_add_from_memory): Declare it.
9280
9281 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9282
9283         * NEWS (New native configurations): Mention OpenBSD/vax.
9284         * configure.host: Add vax-*-openbsd*.
9285         * config/vax/obsd.mh: New file.
9286         * config/vax/nm-obsd.h: New file.
9287
9288         * vax-tdep.c: Include "regset.h".
9289         (vax_supply_gregset): New function.
9290         (vax_gregset): New variable.
9291         (vax_regset_from_core_section): New function.
9292         (vax_gdbarch_init): Set regset_from_core_section.
9293         * Makefile.in (vax-tdep.o): Update dependencies.
9294
9295 2004-04-15  Andrew Cagney  <cagney@redhat.com>
9296
9297         * observer.c (normal_stop_subject, observer_notify_normal_stop)
9298         (observer_normal_stop_notification_stub)
9299         (observer_attach_normal_stop, observer_detach_normal_stop):
9300         Delete, replaced by #include "observer.inc".
9301         * infrun.c (normal_stop): Pass "stop_bpstat" to
9302         observer_notify_normal_stop.
9303         * Makefile.in (observer_inc): Define.
9304         (observer.o): Update dependencies.
9305         (observer.h, observer.inc): New rules.
9306         * observer.h: Delete file.
9307         * observer.sh: New file.
9308
9309 2004-04-15  Mark Kettenis  <kettenis@gnu.org>
9310
9311         * vax-tdep.c (vax_frame_cache): Fix typo.
9312
9313 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9314
9315         * NEWS (New native configurations): Mention NetBSD/vax.
9316         * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9317         * config/vax/nbsdelf.mh: New file.
9318         * config/vax/nbsdaout.mh: New file.
9319         * config/vax/nm-nbsd.h: New file.
9320         * config/vax/nm-nbsdaout.h: New file.
9321
9322         * vaxnbsd-tdep.c: New file.
9323         * Makefile.in (vaxnbsd-tdep.o): New dependency.
9324         * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9325         * config/vax/nbsd.mt: New file.
9326         * config/vax/tm-nbsd.h: New file.
9327
9328         * Makefile.in (vaxbsd-nat.o): New dependency.
9329
9330         * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9331         * vax-tdep.c (vax_store_arguments): Remove struct_return and
9332         struct_addr arguments.  Don't push return value address.
9333         (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9334         arguments to vax_store_arguments.  Store return value address in
9335         R1.
9336         (vax_store_struct_return, vax_extract_return_value)
9337         (vax_store_return_value): Remove functions.
9338         (vax_return_value): New function.
9339         (vax_gdbarch_init): Set return value.  Don't set
9340         deprecated_store_struct_return, deprecated_extract_struct_return
9341         and deprecated_store_return_value.
9342
9343 2004-04-14  Andreas Schwab  <schwab@suse.de>
9344
9345         * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9346         value buffer.
9347         * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9348
9349 2004-04-14  Mark Kettenis  <kettenis@gnu.org>
9350
9351         * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9352         (vax_unwind_dummy_id): New functions.
9353         (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9354         (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9355         variables.
9356         (vax_fix_call_dummy): Remove function.
9357         (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9358         Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9359         call_dummy_location, deprecated_call_dummy_words,
9360         deprecated_sizeof_call_dummy_words,
9361         deprecated_call_dummy_breakpoint_offset,
9362         deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9363         and deprecated_dummy_write_sp.
9364
9365 2004-04-13  David Carlton  <carlton@kealia.com>
9366
9367         * MAINTAINERS: Move myself to "paper trail" section.
9368
9369 2004-04-12  Mark Kettenis  <kettenis@gnu.org>
9370
9371         * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9372         "trad-frame.h".
9373         (vax_frame_init_saved_regs): Remove function.
9374         (vax_sigtramp_saved_pc): Remove function.
9375         (vax_frame_saved_pc): Remove function.
9376         (vax_frame_args_address): Remove function.
9377         (vax_frame_num_args): Rewrite.
9378         (vax_frame_chain): Remove function.
9379         (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9380         VAX_FP_REGNUM.
9381         (vax_pop_frame): Likewise.
9382         (vax_saved_pc_after_call): Remove function.
9383         (struct vax_frame_cache): New structure.
9384         (vax_frame_cache): New function.
9385         (vax_frame_this_id): New function.
9386         (vax_frame_prev_register): New function.
9387         (vax_frame_unwind): New variable.
9388         (vax_frame_sniffer): New function.
9389         (vax_frame_base_address): New function.
9390         (vax_frame_args_address): New function.
9391         (vax_frame_base): New variable.
9392         (vax_unwind_pc): New function.
9393         (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9394         deprecated_fp_regnum, deprecated_saved_pc_after_call,
9395         deprecated_frame_chain, deprecated_frame_saved_pc,
9396         deprecated_frame_args_address and
9397         deprecated_frame_init_saved_regs.
9398         * Makefile.in (vax-tdep.o): Update dependencies.
9399
9400         * vaxbsd-nat.c: New file.
9401
9402         * vax-tdep.h: Update copyright year.  Adjust comments.
9403         (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9404         VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9405         (vax_regnum): New enum.  Replacing...
9406         (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9407         (VAX_PS_REGNUM): ... these removed macros.
9408         * vax-tdep.c (vax_register_name): Remove prototype.
9409         (vax_register_name): Reorganize somewhat.  Use ARRAY_SIZE.
9410         (vax_register_byte, vax_register_raw_size,
9411         vax_register_virtual_size, vax_register_virtual_type): Remove
9412         functions.
9413         (vax_register_type): New function.
9414         (vax_breakpoint_from_pc): Reorganize.
9415         (vax_gdbarch_init): Set register_type.  Don't set
9416         deprecated_register_size, deprecated_register_bytes,
9417         deprecated_register_byte, deprecated_register_raw_size,
9418         deprecated_max_register_raw_size,
9419         deprecated_register_virtual_size,
9420         deprecated_max_register_virtual_size and
9421         deprecated_register_virtual_type.  Add comment on stack direction.
9422
9423 2004-04-11  Mark Kettenis  <kettenis@gnu.org>
9424
9425         * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9426         AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9427         AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9428
9429 2004-04-10  Randolph Chung  <tausq@debian.org>
9430
9431         * MAINTAINERS (write after approval): Add myself.
9432
9433 2004-04-07  Randolph Chung  <tausq@debian.org>
9434
9435         * hppa-tdep.c (hppa_inner_than): Remove.
9436         (is_pa_2): Remove unused static variable.
9437         (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9438
9439 2004-03-10  Paul N. Hilfinger  <Hilfinger@gnat.com>
9440
9441         * language.h (language_defn): Add new la_post_parser field.
9442         * parser-defs.h (null_post_parser): New declaration (default for
9443         la_post_parser).
9444
9445         * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9446         insert call to that function.
9447         (parse_exp_in_context): New function, including code formerly in
9448         parse_exp_1.  Calls language-dependent post-parser after
9449         prefixification.
9450         (parse_expression_in_context): New exported function.
9451         (null_post_parser): New definition.
9452         * expression.h (parse_expression_in_context): Add declaration.
9453
9454         * p-lang.c (pascal_language_defn): Add trivial post-parser.
9455         * c-lang.c (c_language_defn): Ditto.
9456         (cplus_language_defn): Ditto.
9457         (asm_language_defn): Ditto.
9458         (minimal_language_defn): Ditto.
9459         * f-lang.c (f_language_defn): Ditto.
9460         * jv-lang.c (java_language_defn): Ditto.
9461         * language.c (unknown_language_defn): Ditto.
9462         (auto_language_defn): Ditto.
9463         (local_language_defn): Ditto.
9464         * m2-lang.c (m2_language_defn): Ditto.
9465         * scm-lang.c (scm_language_defn): Ditto.
9466         * obj-lang.c (objc_language_defn): Ditto.
9467
9468 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9469
9470         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9471         (amd64nbsd_mcontext_addr): New function.
9472         (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9473         amd64nbsd_mcontext_addr.  Directly initialize TDEP->sc_reg_offset
9474         with amd64nbsd_r_reg_offset, instead of building it on the fly.
9475
9476         * corelow.c (core_xfer_partial): Fix coding standards violation.
9477         Add support for TARGET_OBJECT_WCOOKIE.
9478
9479         * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9480         deprecated_pc_in_sigtramp.
9481         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9482         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9483         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9484         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9485         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9486         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9487         * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9488
9489         * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9490         i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9491         Fix typo.
9492
9493         * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9494         I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9495         (amd64_collect_fxsave): Likewise.
9496
9497         * i386-sol2-tdep.c: Include "gdb_string.h".
9498         (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9499         name.
9500         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9501
9502 2004-04-10  Mark Kettenis  <kettenis@gnu.org>
9503
9504         * i386-sol2-tdep.c: Include "solib-svr4.h".
9505         (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9506         * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9507         * config/i386/tm-i386sol2.h: Include :solib.h".
9508         * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9509         solib-svr4.o and solib-legacy.o.
9510         * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9511         solib-svr4.o.
9512
9513 2004-04-09  Mark Kettenis  <kettenis@gnu.org>
9514
9515         * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9516         whether a register is supplied by PTRACE_GETFPREGS.
9517         (store_inferior_registers): Likewise.
9518         * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9519         whether a register is supplied by PT_GETFPREGS.
9520         (store_inferior_registers): Likewise.
9521
9522         * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9523         * config/i386/linux64.mt (TDEPFILES): Likewise.
9524
9525         * i386-linux-nat.c: Update copyrigth year.  Tweak comment.
9526
9527         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9528         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9529         the program counter is in the range specified by `struct
9530         gdbarch_tdep'.
9531         * amd64-linux-tdep.c: Include "symtab.h".
9532         (amd64_linux_pc_in_sigtramp): Remove function.
9533         (amd64_linux_sigtramp_p): New function.
9534         (amd64_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9535         deprecated_pc_in_sigtramp.
9536         * amd64nbsd-tdep.c: Include "symtab.h".
9537         (amd64nbsd_sigtramp_p): New function.
9538         (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9539         deprecated_pc_in_sigtramp.
9540         * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h".  Add a
9541         few comments.
9542         (amd64obsd_pc_in_sigtramp): Remove function.
9543         (amd64obsd_sigtramp_p): New function.
9544         (amd64obsd_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9545         deprecated_pc_in_sigtramp.
9546         * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9547         (i386bsd_pc_ins_sigtramp): Remove prototype.
9548         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9549         * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9550         sigtramp_p member of `struct gdbarch_tdep'.  Also check whether
9551         the program counter is in the range specified by `struct
9552         gdbarch_tdep'.
9553         (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9554         (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9555         (i386_go32_pc_in_sigtramp): Remove function.
9556         (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9557         Initialize TDEP->sigtramp_p.
9558         (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9559         (i386_gdbarch_init): Initialize TDEP->sigtramp_p.  Don't set
9560         deprecated_pc_in_sigtramp.
9561         * i386-linux-tdep.c: Adjust comments.
9562         (i386_linux_pc_in_sigtramp): Remove function.
9563         (i386_linux_sigtramp_p): New function.
9564         (i386_linux_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9565         deprecated_pc_in_sigtramp.
9566         * i386-nto-tdep.c: Update copyright year.
9567         (i386nto_pc_in_sigtramp): Remove function.
9568         (i386nto_sigtramp_p): New function.
9569         (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9570         SP_REGNUM.
9571         (i386nto_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9572         deprecated_pc_in_sigtramp.
9573         * i386-sol2-tdep.c: Update copyright year.
9574         (i386_sol2_pc_in_sigtramp): Remove function.
9575         (i386_sol2_sigtramp_p): New function.
9576         (i386_sol2_init_abi): Initialize TDEP->sigtramp_p.  Don't set
9577         deprecated_pc_in_sigtramp.
9578         * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9579         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9580         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9581         deprecated_sigtramp_start and deprecated_sigtramp_end.
9582         * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9583         (i386nbsd_pc_in_sigtramp): Remove function.
9584         (i386nbsd_sigtramp_p): New function.
9585         (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9586         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9587         TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9588         * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9589         (i386obsd_pc_in_sigtramp): Remove function.
9590         (i386obsd_sigtramp_p): New function.
9591         (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9592         functions.
9593         (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9594         deprecated_sigtramp_start, deprecated_sigtramp_end.  Initialize
9595         TDEP->sigtramp_p.
9596         * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9597         amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9598         dependencies.
9599
9600         * config/i386/i386aout.mt: Remove file.
9601
9602         * configure.tgt: Remove i[34567]86-*-go32*,
9603         i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9604         and i[34567]86-*-isc*.  Set gdb_target to i386 for
9605         i[34567]86-*-netware* and i[34567]86-*-*.
9606         * config/i386/i386.mt: New file.
9607         * config/i386/embed.mt: Remove file.
9608         * config/i386/go32.mt: Remove file.
9609         * config/i386/i386nw.mt: Remove file.
9610         * config/i386/i386v.mt: Remove file.
9611         * config/i386/tm-go32.h: Remove file.
9612
9613         * tui/tui-hooks.c: Include "readline/readline.h" after
9614         "gdb_curses.h" instead of before.
9615         * tui/tui-io.c: Likewise.
9616
9617         * tui/tui.c: Fix typo in comment.
9618
9619         * sparc64-tdep.c (sparc_address_from_register): Remove function.
9620
9621 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9622
9623         * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9624         (deprecated_exception_support_initialized): Declare.
9625         * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9626         (initialize_hp_cxx_exception_support)
9627         (child_enable_exception_callback): Update.
9628         * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9629         (deprecated_exception_support_initialized): Rename
9630         deprecated_exception_catchpoints_are_fragile and
9631         deprecated_exception_support_initialized.
9632         (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9633
9634         * symtab.c (deprecated_hp_som_som_object_present): Rename
9635         hp_som_som_object_present.
9636         * symtab.h (deprecated_hp_som_som_object_present): Declare.
9637         * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9638         Update.  Delete extern declaration.
9639         * valops.c (hp_som_som_object_present): Ditto.
9640         * parse.c (deprecated_hp_som_som_object_present)
9641         (parse_nested_classes_for_hpacc): Ditto.
9642         * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9643         * hppa-hpux-tdep.c (hp_som_som_object_present)
9644         (initialize_hp_cxx_exception_support): Ditto.
9645         * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9646         * cp-valprint.c (hp_som_som_object_present)
9647         (cp_print_class_method): Ditto.
9648         * c-typeprint.c (hp_som_som_object_present):
9649         (c_type_print_base): Ditto.
9650         * c-exp.y (hp_som_som_object_present): Ditto.
9651
9652 2004-04-08  Andrew Cagney  <cagney@redhat.com>
9653
9654         * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9655         (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9656         (frame_unwind_find_by_frame): Re-implement the unwind code so
9657         that it can both prepend and append sniffers.  Replace
9658         frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9659         * tramp-frame.c (tramp_frame_append): Use
9660         frame_unwind_prepend_unwinder.
9661         * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9662         frame_unwind_register_unwinder.
9663         * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9664         tramp_frame_append.
9665         * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9666         * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9667         (mips_linux_init_abi): Update.
9668
9669 2004-04-08  Kevin Buettner  <kevinb@redhat.com>
9670
9671         * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9672         (ELF_FPREGSET_SIZE):  Delete constants formerly used in core
9673         file support.
9674
9675 2004-04-07  Kevin Buettner  <kevinb@redhat.com>
9676
9677         * ia64-tdep.c (elf.h): Don't include.
9678         (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9679
9680 2004-04-07  Jason Molenda  (jmolenda@apple.com)
9681
9682         * frame.h: Typeo corrections in comments.
9683
9684 2004-04-07  Jim Blandy  <jimb@redhat.com>
9685
9686         * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9687         %esp and %ebp
9688
9689 2004-04-07  Mark Kettenis  <kettenis@gnu.org>
9690
9691         * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9692         * config/sparc/linux64.mt (TDEPFILES): Likewise.
9693         * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9694         * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9695         and solib-legacy.o.
9696         * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9697         solib-svr4.o.
9698         * config/sparc/tm-sol2.h: Update copyright year.  Include
9699         "solib.h".
9700
9701         * sparc-sol2-tdep.c: Update copyright year.  Include
9702         "solib-svr4.h".
9703         (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9704         * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9705         (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9706         * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9707         dependencies.
9708
9709 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9710
9711         * infttrace.c: Include "infttrace.h".
9712         * infttrace.h: Include "target.h".
9713         * Makefile.in (infttrace_h): Update.
9714         (infttrace.o): Update.
9715
9716 2004-04-06  Andrew Cagney  <cagney@redhat.com>
9717
9718         * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9719         (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9720         move extern declarations from here ...
9721         * infttrace.h: ... to here.
9722         * Makefile.in (hppah-nat.o): Update dependencies.
9723
9724         * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9725         (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9726         * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9727         (hppa_breakpoint_from_pc): Delete.
9728
9729         * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9730
9731 2004-04-05  Andrew Cagney  <cagney@redhat.com>
9732
9733         * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9734         <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9735         <sys/file.h>.
9736
9737 2004-04-06  Randolph Chung  <tausq@debian.org>
9738
9739         Committed by Andrew Cagney (mechanical change).
9740         * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9741         exception_catchpoints_are_fragile, find_stub_with_shl_get,
9742         cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9743         child_enable_exception_callback, current_ex_event,
9744         null_symtab_and_line, child_get_current_exception_event,
9745         HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9746         HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9747         HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9748         hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9749         eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9750         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9751         Move hpux-specific definitions ...
9752         * hppa-hpux-tdep.c: ... to here.
9753
9754 2004-04-05  Andrew Cagney  <cagney@redhat.com>
9755
9756         * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9757         skip_prologue_using_sal.
9758
9759 2004-04-05  Andrew Cagney  <cagney@redhat.com>
9760
9761         * config/i386/tm-i386.h: Delete file.
9762         * config/i386/tm-vxworks.h: Update copyright, do not include
9763         "tm-i386.h".
9764         * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9765         * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9766         * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9767         * config/i386/ncr3000.mt (TM_FILE): Delete.
9768         * config/i386/interix.mt (TM_FILE): Delete.
9769         * config/i386/i386v.mt (TM_FILE): Delete.
9770         * config/i386/i386nw.mt (TM_FILE): Delete.
9771         * config/i386/i386gnu.mt (TM_FILE): Delete.
9772         * config/i386/i386aout.mt (TM_FILE): Delete.
9773         * config/i386/embed.mt (TM_FILE): Delete.
9774
9775 2004-04-05  Kevin Buettner  <kevinb@redhat.com>
9776
9777         * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9778         (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9779         (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9780         (accg7_regnum): New constants.
9781         (last_spr_regnum, last_pseudo_regnum): Update.
9782         * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9783         accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9784         (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9785         for accg registers.
9786         (frv_register_sim_regno): Update spr_map[].
9787
9788 2004-04-04  Andrew Cagney  <cagney@redhat.com>
9789
9790         * config/mips/xm-riscos.h: Delete.
9791         * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9792         * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9793         * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9794         * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9795         * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9796         * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9797         * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9798         * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9799         * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9800         * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9801         * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9802         * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9803         * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9804         * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9805         * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9806         * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9807         * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9808         * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9809         * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9810         * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9811         * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9812         * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9813         * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9814         * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9815         * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9816         * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9817
9818         * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9819         m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9820         m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9821         * configure.host: Remove m680[01]0-sun-sunos3*,
9822         m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9823         m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9824         m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9825         mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9826         mips-*-riscos*.
9827         * NEWS: Mention removed systems.
9828
9829 2004-04-04  Andrew Cagney  <cagney@redhat.com>
9830
9831         GDB 6.1 release created from 6.1 branch.
9832
9833 2004-04-04  Andrew Cagney  <cagney@redhat.com>
9834
9835         * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9836         * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9837         * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9838
9839         * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9840         * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9841         * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9842
9843 2004-04-03  Jim Blandy  <jimb@redhat.com>
9844
9845         * MAINTAINERS: Chris Faylor has changed employers; add him to
9846         "paper trail" section, and update his E-mail address.
9847
9848 2004-04-03  Andrew Cagney  <cagney@redhat.com>
9849
9850         * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9851         generic dummy frames.
9852         * dummy-frame.c: Update copyright.
9853         (dummy_frame_sniffer): Delete check for generic dummy frames.
9854
9855         * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9856         * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9857         (REG_PARM_STACK_SPACE): Delete.
9858         * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9859         Inline reference to REG_PARM_STACK_SPACE.
9860
9861         * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9862         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9863         (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9864         (FRAME_BASE_BEFORE_SIGTRAMP)
9865         (hppa32_hpux_frame_base_before_sigtramp)
9866         (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9867         * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9868         (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9869         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9870         (FRAME_BASE_BEFORE_SIGTRAMP)
9871         (hppa64_hpux_frame_base_before_sigtramp)
9872         (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9873
9874 2004-04-03  Andrew Cagney  <cagney@redhat.com>
9875
9876         * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9877
9878 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9879
9880         * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9881         DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9882         * dummy-frame.h: Delete out-of-date comments.
9883         * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9884         * gdbarch.h, gdbarch.c: Re-generate.
9885
9886 2004-04-02  Joel Brobecker  <brobecker@gnat.com>
9887
9888         Committed by Andrew Cagney <cagney@redhat.com>.
9889         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9890         into account an instruction saving a register if we have already
9891         seen an earlier instruction saving that same register.
9892
9893 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9894
9895         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9896         * gdbarch.h, gdbarch.c: Re-generate.
9897         * frame.c (legacy_get_prev_frame): Delete references to
9898         DEPRECATED_INIT_FRAME_PC_FIRST.
9899
9900         * infrun.c (pc_in_sigtramp): Delete function.
9901         (check_sigtramp2): Inline call to pc_in_sigtramp, use
9902         get_frame_type.
9903
9904 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9905
9906         * infrun.c (handle_step_into_function): Delete code conditional on
9907         legacy_frame_p.
9908         (handle_inferior_event, step_over_function): Ditto.
9909
9910 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9911
9912         * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9913         "previous frame inner to this frame" test.
9914
9915 2004-04-02  Andrew Cagney  <cagney@redhat.com>
9916
9917         * frame.c (safe_frame_unwind_memory): New function.
9918         * frame.h (safe_frame_unwind_memory): Declare.  Update description
9919         of /safe_/ methods.
9920         * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9921         "next_frame".  Use safe_frame_unwind_memory.
9922         (tramp_frame_sniffer): Update call to tramp_frame_start.
9923
9924 2004-04-01  Daniel Jacobowitz  <drow@mvista.com>
9925
9926         * dwarf2read.c (dwarf2_objfile_data_key): New.
9927         (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9928         (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9929         (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9930         (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9931         (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9932         (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9933         (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9934         Remove variables.
9935         (struct dwarf2_pinfo): Remove per-objfile members.  Update comments.
9936         (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9937         (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9938         (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9939         (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9940         (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9941         Remove macros.
9942         (dwarf2_has_info): Take an objfile argument.  Allocate per-objfile
9943         data.
9944         (dwarf2_locate_sections, dwarf2_build_psymtabs)
9945         (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9946         (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9947         (read_partial_die, read_full_die, read_indirect_string)
9948         (dwarf_decode_line_header, dwarf_decode_macros)
9949         (dwarf2_symbol_mark_computed): Remove use of removed macros.
9950         Update uses of removed variables.
9951         (psymtab_to_symtab_1): Restore per-objfile data pointer.  Remove use
9952         of removed macros.
9953         (_initialize_dwarf2_read): New function.
9954         * symfile.h (dwarf2_has_info): Update prototype.
9955         * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9956         * elfread.c (elf_symfile_read): Likewise.
9957
9958 2004-04-01  Jim Blandy  <jimb@redhat.com>
9959
9960         * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9961         function for register numbers on all the rs6000-derived targets.
9962         (rs6000_gdbarch_init): Don't register a separate
9963         gdbarch_dwarf2_reg_to_regnum function for the E500.  Use
9964         rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9965         variants.
9966
9967         * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9968         numbering.
9969
9970 2004-04-01  Paul N. Hilfinger  <Hilfinger@gnat.com>
9971
9972         * valarith.c: Update copyright notice.
9973         (value_add): Handle range types.
9974         (value_sub): Ditto.
9975         (value_equal): Ditto.
9976         (value_less): Ditto.
9977         (value_neg): Ditto.
9978         (value_complement): Ditto.
9979         (value_binop): Simplify slightly by using is_integral_type and
9980         eliminiating unnecessary COERCE_ENUMs.
9981
9982 2004-03-31  Andrew Cagney  <cagney@redhat.com>
9983
9984         * frame.h (frame_unwind_id): Declare.
9985         * frame.c (frame_unwind_id): New function.
9986         (get_prev_frame_1): New function.
9987         (frame_debug_got_null_frame): New function.
9988         (get_prev_frame): Use frame_debug_got_null_frame.  Move unwind
9989         code proper to prev_frame, update description.
9990         * infrun.c (step_over_function): Use frame_unwind_id.
9991
9992 2004-04-31  J. Brobecker  <brobecker@gnat.com>
9993
9994         * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9995         (hppa64_push_dummy_call): Likewise.
9996
9997 2004-03-30  Jim Blandy  <jimb@redhat.com>
9998
9999         From Ulrich Weigand:
10000         * utils.c (query): Do not use a va_list variable multiple times.
10001
10002 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10003
10004         * Makefile.in (linux_nat_h): Update dependencies.
10005         * configure.in: Check for <gnu/libc-version.h>.
10006         * configure: Regenerate.
10007         * config.in: Regenerate.
10008         * linux-nat.h: Include "target.h".  Add waitstatus field to
10009         struct lwp_info.
10010         * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10011         (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10012         to.
10013         (lin_lwp_handle_extended): New function.  Handle clone events.
10014         (wait_lwp): Use lin_lwp_handle_extended.  Update comment about
10015         thread exit events.
10016         (child_wait): Handle clone events.
10017         (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10018         * linux-nat.c (linux_enable_event_reporting): Turn on
10019         PTRACE_O_TRACECLONE.
10020         (linux_handle_extended_wait): Handle clone events.
10021         * thread-db.c: Include <gnu/libc-version.h>.
10022         (struct private_thread_info): Add dying flag.
10023         (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10024         higher.
10025         (attach_thread): Update comments.  Handle dying threads.
10026         (detach_thread): Set the dying flag.
10027         (check_event): Always call attach_thread.
10028
10029 2004-03-29  Daniel Jacobowitz  <drow@mvista.com>
10030
10031         * mips-tdep.c (mips_pdr_data): New.
10032         (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10033         (_initialize_mips_tdep): Initialize mips_pdr_data.
10034
10035 2004-03-29  Corinna Vinschen  <vinschen@redhat.com>
10036
10037         * minsyms.c (install_minimal_symbols): Move dropping leading
10038         char from linkage name from here...
10039         (prim_record_minimal_symbol_and_info): ...to here.  Simplify
10040         test for "__gnu_compiled*" symbols.
10041
10042 2004-03-28  Jim Blandy  <jimb@redhat.com>
10043
10044         * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10045         registers to temp register r0 and byte stores as prologue
10046         instructions.
10047
10048 2004-03-28  Andrew Cagney  <cagney@redhat.com>
10049
10050         * PROBLEMS (Stack backtraces): Rewrite.  Remove reference to
10051         arm*-*-*.
10052
10053 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
10054
10055         * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10056         and switch the layout to force a display of register window.
10057
10058 2004-02-26  J. Brobecker  <brobecker@gnat.com>
10059
10060         * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10061         of the INTEGER class.
10062
10063 2004-03-26  Jim Blandy  <jimb@redhat.com>
10064
10065         * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10066         bytes long on PPC GNU/Linux.
10067
10068 2004-03-26  David Carlton  <carlton@kealia.com>
10069
10070         * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10071
10072 2004-03-25  Andrew Cagney  <cagney@redhat.com>
10073
10074         * PROBLEMS: Add general section titles, remove references to
10075         specific releases.
10076
10077 2004-03-25  Daniel Jacobowitz  <drow@mvista.com>
10078
10079         * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10080         INT_REGISTER_SIZE.
10081         (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10082         FP_REGISTER_VIRTUAL_SIZE.
10083         * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10084         of DEPRECATED_REGISTER_RAW_SIZE.
10085         (arm_register_type): Add gdbarch argument.
10086         (arm_register_raw_size, arm_register_virtual_size): Delete.
10087         (arm_register_byte, arm_extract_return_value)
10088         (arm_store_return_value, arm_get_longjmp_target): Update references
10089         to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10090         (arm_gdbarch_init): Likewise.  Don't set
10091         deprecated_register_raw_size, deprecated_register_virtual_size,
10092         deprecated_max_register_raw_size,
10093         deprecated_max_register_virtual_size, or
10094         deprecated_max_register_virtual_type.  Do set register_type.
10095         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10096         (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10097         (FP_REGISTER_VIRTUAL_SIZE): Delete.
10098         (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10099         (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10100         * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10101         INT_REGISTER_SIZE.
10102         * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10103         (remote_rdp_store_register): Likewise.
10104
10105 2004-03-24  Daniel Jacobowitz  <drow@mvista.com>
10106
10107         * Makefile.in (mips-linux-tdep.o): Update dependencies.
10108         * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10109         to after osabi initialization.
10110         * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10111         (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10112         functions.
10113         (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10114         (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10115         variables.
10116         (mips_linux_init_abi): Append signal trampoline unwinders.
10117
10118 2004-03-24  Andrew Cagney  <cagney@redhat.com>
10119
10120         * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10121         * tramp-frame.c: Include "gdb_assert.h".
10122         (tramp_frame_start): Use TRAMP_SENTINEL_INSN.  Use ULONGEST and
10123         correct sizeof.
10124         (tramp_frame_append): Validate the tramp frame's instructions.
10125         * Makefile.in (tramp-frame.o): Update dependencies.
10126
10127 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10128
10129         * trad-frame.h (trad_frame_set_reg_addr): Declare.
10130
10131 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10132
10133         * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10134         Nasser as past testsuite/lib/ (and other) maintainers.
10135
10136 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10137
10138         * infcmd.c (attach_command): Reread symbols if we already have
10139         an exec file.
10140
10141 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10142
10143         * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10144
10145 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10146
10147         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10148         * gdbarch.h, gdbarch.c: Re-generate.
10149         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10150         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10151         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10152         * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10153         (DEPRECATED_SIGTRAMP_START): Update.
10154         * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10155         (DEPRECATED_SIGTRAMP_START): Update.
10156         * blockframe.c (find_pc_sect_partial_function): Update.
10157         * arch-utils.c (legacy_pc_in_sigtramp): Update.
10158
10159 2004-03-23  Daniel Jacobowitz  <drow@mvista.com>
10160
10161         * remote.c (remote_open_1): Reopen the exec file and reread symbols
10162         if necessary.
10163
10164 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10165
10166         * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10167         predicate, deprecate.
10168         * gdbarch.h, gdbarch.c: Re-generate.
10169         * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10170         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10171         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10172         * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10173         * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10174         * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10175         * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10176         * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10177         * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10178         * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10179         * blockframe.c (find_pc_partial_function): Update.
10180         * breakpoint.c (bpstat_what): Update.
10181         * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10182         * frv-linux-tdep.c (frv_linux_init_abi): Update.
10183         * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10184         * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10185         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10186         * i386-linux-tdep.c (i386_linux_init_abi): Update.
10187         * i386-nto-tdep.c (i386nto_init_abi): Update.
10188         * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10189         * i386-tdep.c (i386_sigtramp_frame_sniffer)
10190         (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10191         * i386bsd-tdep.c (i386bsd_init_abi): Update.
10192         * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10193         * i386obsd-tdep.c (i386obsd_init_abi): Update.
10194         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10195         * infrun.c (pc_in_sigtramp): Update.
10196         * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10197         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10198         * mips-tdep.c (mips_gdbarch_init): Update.
10199         * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10200         * ppc-linux-tdep.c: Update comment.
10201         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10202         * shnbsd-tdep.c (shnbsd_init_abi): Update.
10203         * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10204         * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10205         * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10206         * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10207         * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10208         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10209         * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10210         * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10211
10212 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10213
10214         * tramp-frame.h, tramp-frame.h: New files.
10215         * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10216         Update rules to include "tramp-frame.h" and "tramp-frame.c".
10217
10218         * Makefile.in: Update all dependencies.
10219
10220 2004-03-23  Andrew Cagney  <cagney@redhat.com>
10221
10222         * Makefile.in (trad_frame_h): Add $(frame_h).
10223         * trad-frame.h: Update copyright.  Include "frame.h".
10224         (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10225         (trad_frame_set_id, trad_frame_get_id): Declare.
10226         (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10227         * trad-frame.c: Update copyright.
10228         (struct trad_frame_cache): Define.
10229         (trad_frame_cache_zalloc): New function.
10230         (trad_frame_set_id, trad_frame_get_id): New functions.
10231         (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10232
10233 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10234
10235         * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10236         s390_pltstub_unwind_cache.
10237         (s390_stub_frame_unwind_cache): Rename
10238         s390_pltstub_frame_unwind_cache.
10239         (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10240         (s390_stub_frame_prev_register): Rename
10241         s390_pltstub_frame_prev_register.
10242         (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10243         (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10244
10245         From Ulrich Weigand:
10246         * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10247         pointer calls like PLT calls.
10248
10249 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10250
10251         * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10252         PC rather than the partial function start address.  Use the start
10253         address to sanity check the found PDR.
10254
10255 2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
10256
10257         * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10258         linux_handle_extended_wait.
10259
10260 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10261
10262         * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10263         function.
10264
10265         * frame.h (generic_pop_current_frame): Delete declaration.
10266         (deprecate_pop_dummy_frame): Deprecate
10267         generic_pop_dummy_frame.
10268         * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10269         (generic_pop_current_frame): Delete function.
10270         * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10271         generic_pop_current_frame.
10272         * v850-tdep.c (v850_pop_frame): Update.
10273         * mcore-tdep.c (mcore_pop_frame): Update.
10274         * sh64-tdep.c (sh64_pop_frame): Update.
10275         * h8300-tdep.c (h8300_pop_frame): Update.
10276
10277 2004-03-22  Andrew Cagney  <cagney@redhat.com>
10278
10279         * frame.h (deprecated_pc_in_call_dummy): Rename
10280         generic_pc_in_call_dummy.
10281         * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10282         * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10283         generic_pc_in_call_dummy.
10284         (pc_in_dummy_frame): Make static.
10285         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10286         * gdbarch.h, gdbarch.c: Re-generate.
10287         * dummy-frame.c (dummy_frame_sniffer): Simplify.
10288         * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10289         (legacy_get_prev_frame): Ditto.
10290         * inferior.h: Delete reference to generic_pc_in_call_dummy in
10291         comment.
10292
10293 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10294
10295         * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10296         declaration and out-of-date comment.
10297         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10298         Delete function.
10299         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10300         deprecated_pc_in_call_dummy.
10301
10302         * infrun.c (handle_inferior_event): For non legacy frames, use the
10303         frame ID and frame type to identify a signal trampoline.  Update
10304         comments.
10305
10306 2004-03-21  Nathan J. Williams  <nathanw@wasabisystems.com>
10307
10308         * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10309         * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10310
10311 2004-03-21  Andrew Cagney  <cagney@redhat.com>
10312
10313         * frame-unwind.h: Update copyright.
10314         (struct frame_data): Add opaque declaration.
10315         (frame_sniffer_ftype): Declare.
10316         (struct frame_unwind): Add "unwind_data" and "sniffer".
10317         (frame_unwind_register_unwinder): Declare.
10318         (frame_unwind_find_by_frame): Add parameter "this_cache".
10319         * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10320         (legacy_get_prev_frame, legacy_get_prev_frame)
10321         (get_frame_type): Pass the prologue_cache to
10322         frame_unwind_find_by_frame.
10323         * frame-unwind.c (struct frame_unwind_table_entry): Add field
10324         "unwinder".
10325         (frame_unwind_register_unwinder): New function.
10326         (frame_unwind_find_by_frame): Handle an unwind sniffer.
10327
10328 2004-03-20  Paul Hilfinger  <hilfingr@nile.gnat.com>
10329
10330         * bcache.c (print_percentage): Use floating point to avoid
10331         incorrect results when portion*100 overflows.
10332
10333 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10334
10335         * ppc_tdep.h (ppc_linux_frame_saved_pc)
10336         (ppc_linux_init_extra_frame_info)
10337         (ppc_linux_frameless_function_invocation)
10338         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10339         (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10340         (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10341         (rs6000_frame_chain): Delete declarations.
10342         * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10343         (ppc_linux_init_extra_frame_info)
10344         (ppc_linux_frameless_function_invocation)
10345         (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10346         (ppc_linux_init_abi): Remove registration of above deleted functions.
10347         * rs6000-tdep.c (rs6000_init_extra_frame_info)
10348         (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10349         (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10350         (rs6000_pop_frame, rs6000_frameless_function_invocation)
10351         (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10352         (rs6000_gdbarch_init): Remove registration of above deleted functions.
10353         Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10354         rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10355         frame management for all OSABIs.
10356
10357 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10358
10359         Committed by Kevin Buettner <kevinb@redhat.com>.
10360
10361         * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10362         Update copyright.
10363         (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10364         (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10365         (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10366         (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10367         unwinders.  #ifdef legacy frame code.
10368         * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10369         "frame-base.h".
10370         (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10371         (struct rs6000_frame_cache, rs6000_frame_cache)
10372         (rs6000_frame_this_id, rs6000_frame_prev_register)
10373         (rs6000_frame_sniffer, rs6000_frame_unwind)
10374         (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10375         (rs6000_frame_base): Implement a traditional frame unwinder.
10376         (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10377         frame unwinder.
10378
10379 2004-03-19  Kevin Buettner  <kevinb@redhat.com>
10380
10381         * breakpoint.c (adjust_breakpoint_address): Don't adjust
10382         breakpoint address for watchpoints or the catch eventpoints.
10383         Add new paramter ``bptype''.  Adjust all callers.
10384
10385 2004-03-19  Andrew Cagney  <cagney@redhat.com>
10386
10387         * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10388
10389         * PROBLEMS: Delete note that ARM does not use frame code, problem
10390         fixed.
10391
10392 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10393
10394         * stack.c (return_command): Delete code wrapped in #ifdef
10395         DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10396
10397         * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10398
10399 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10400
10401         * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10402         DEPRECATED_IN_SIGTRAMP.
10403         * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10404         * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10405         * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10406         * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10407         * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10408         * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10409         * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10410         * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10411         * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10412         * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10413
10414 2004-03-18  Andrew Cagney  <cagney@redhat.com>
10415
10416         * frame-base.c: Update copyright.  Include "gdb_obstack.h".
10417         (struct frame_base_table_entry): Define.
10418         (struct frame_base_table): Re-implement as a linked list.
10419         (frame_base_init): Re-implement.
10420         (frame_base_table): Delete function.
10421         (append_predicate): Delete function.
10422         (frame_base_append_sniffer): Update.
10423         (frame_base_set_default): Update.
10424         (frame_base_find_by_frame): Update.
10425         (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10426         * Makefile.in (frame-base.o): Update dependencies.
10427
10428 2004-03-17  Andrew Cagney  <cagney@redhat.com>
10429
10430         * frame.c (legacy_get_prev_frame): Pass correct frame to
10431         frame_unwind_find_by_frame.
10432
10433 2004-03-17  David Carlton  <carlton@kealia.com>
10434
10435         * NEWS: Mention C++ nested types and namespaces
10436
10437 2004-03-16  Michael Chastain  <mec.gnu@mindspring.com>
10438
10439         * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10440         and "Regressions since gdb 5.3.".  Add known regressions since
10441         gdb 6.0.
10442
10443 2004-03-16  David Carlton  <carlton@kealia.com>
10444
10445         * dwarf2read.c (process_structure_scope): Process children even
10446         when we're a declaration.
10447
10448 2004-03-16  Andrew Cagney  <cagney@redhat.com>
10449
10450         * symtab.h (find_pc_sect_partial_function): Delete declaration.
10451         * blockframe.c (find_pc_partial_function)
10452         (find_pc_sect_partial_function): Merge into a single
10453         find_pc_partial_function.
10454
10455 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10456
10457         * i386bsd-nat.c: s/regno/regnum/g.
10458         (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10459         FP0_REGNUM.
10460         (store_inferior_registers): Likewise.
10461
10462 2004-03-16  Mark Kettenis  <kettenis@gnu.org>
10463
10464         * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10465         of i387_fill_fsave.
10466         (store_inferior_registers): Call i387_collect_fsave and
10467         i387_collect_fxsave instead of i387_fill_fsave and
10468         i387_fill_fxsave.
10469
10470 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10471
10472         * Makefile.in (frame-unwind.o): Update dependencies.
10473         * frame-unwind.c: Include "gdb_obstack.h".
10474         (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10475         parameter.
10476         (append_predicate): Delete function.
10477         (struct frame_unwind_table_entry): New structure.
10478         (struct frame_unwind_table): Replace "sniffer" with "head" and
10479         "tail".
10480         (frame_unwind_append_sniffer): Update.
10481         (frame_unwind_find_by_frame): Update.
10482         (_initialize_frame_unwind): Registe frame_unwind_init using
10483         gdbarch_data_register_pre_init.
10484
10485 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10486
10487         * i386bsd-nat.c: Update copyright year.
10488         (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10489         define unconditionally.
10490
10491 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10492
10493         * i387-tdep.h (i387_collect_fsave): New prototype.
10494         * i387-tdep.c (i387_collect_fsave): New function containing most
10495         of the code from i387_fill_fsave.
10496         (i387_fill_fsave): Call i387_collect_fsave.
10497
10498 2004-03-15  Mark Kettenis  <kettenis@gnu.org>
10499
10500         * i386-linux-tdep.c: Update copyright year.
10501         (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10502         (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10503         svr4_ilp32_link_map_offsets instead of
10504         i386_linux_svr4_fetch_link_map_offsets.
10505
10506 2004-03-15  David Carlton  <carlton@kealia.com>
10507
10508         Fix for PR c++/1553:
10509         * dwarf2read.c (read_structure_type): Determine type name by
10510         calling determine_class_name.
10511         (determine_class_name): New.
10512         (determine_prefix): Look at TYPE_TAG_NAME and call
10513         determine_class_name when appropriate.
10514         (determine_prefix_aux, class_name): Delete.
10515         (read_namespace): Set die->type.
10516
10517 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10518
10519         * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10520         unused macro definition.  The definition in target.h (or perhaps
10521         elsewhere) takes precedence.
10522
10523 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10524
10525         * ppc-tdep.h: Update copyright.
10526         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10527         function signatures to match "regsets.h".
10528         * ppc-linux-tdep.c: Include "regset.h".
10529         (ELF_GREGSET_SIZE): Delete.
10530         (right_supply_register): New function.
10531         (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10532         using right_supply_register.
10533         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10534         functions.
10535         (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10536         (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10537         (_initialize_ppc_linux_tdep): Do not register
10538         ppc_linux_regset_core_fns.
10539         (ppc_linux_regset_from_core_section): Replace
10540         fetch_core_registers.
10541         (ppc_linux_regset_core_fns): Delete.
10542         * ppc-linux-nat.c: (right_fill_reg): New function.
10543         (supply_gregset): Update call to ppc_linux_supply_gregset.
10544         (fill_gregset): Clear the register set, use right_fill_reg.
10545         (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10546         (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10547
10548         * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10549         unsigned.
10550
10551 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10552
10553         * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10554         (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10555         (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10556         and register_gdbarch_data.
10557         (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10558         (struct gdbarch_data): Replace "init" by "pre_init" and
10559         "post_init".
10560         * gdbarch.h, gdbarch.c: Re-generate.
10561         * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10562         with"obstack", use OBSTACK_ZALLOC.
10563         (dwarf2_frame_ops): Delete.
10564         (dwarf2_frame_set_init_reg): Use gdbarch_data.
10565         (dwarf2_frame_init_reg): Use gdbarch_data.
10566         (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10567         * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10568         (_initialize_svr4_solib): Update.
10569         * user-regs.c (_initialize_user_regs): Update.
10570         * reggroups.c (_initialize_reggroup): Update.
10571         * regcache.c (_initialize_regcache): Update.
10572         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10573         * libunwind-frame.c (_initialize_libunwind_frame): Update.
10574         * gnu-v3-abi.c (init_gnuv3_ops): Update.
10575         * frame-unwind.c (_initialize_frame_unwind): Update.
10576         * frame-base.c (_initialize_frame_base): Update.
10577         * user-regs.c (user_reg_add): Update.
10578         * reggroups.c (reggroup_add): Update.
10579         * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10580         * libunwind-frame.c (libunwind_frame_set_descr): Update.
10581         * frame-unwind.c (frame_unwind_append_sniffer): Update.
10582         * frame-base.c (frame_base_table): Update.
10583         * remote.c (_initialize_remote): Update.
10584         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10585
10586 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10587
10588         * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10589
10590 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10591
10592         * Makefile.in (frv-linux-tdep.o): Add dependencies.
10593         * frv-linux-tdep.c: New file.
10594         * frv-tdep.c (struct gdbarch_tdep): Add new field
10595         ``sigcontext_reg_addr''.
10596         (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10597         (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10598         (frv_sigramp_frame_sniffer): New functions.
10599         (frv_sigtramp_frame_unwind): New static global.
10600         (frv_gdbarch_init): Hook in ABI-specific overrides.  Hook up frame
10601         sniffers.
10602         * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10603         * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10604
10605 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10606
10607         * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10608         but not via a call to error(), when unable to read memory.
10609
10610 2004-03-15  Kevin Buettner  <kevinb@redhat.com>
10611
10612         * frv-tdep.c (frv_call_dummy_words): Delete.
10613         (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10614
10615 2004-03-15  Andrew Cagney  <cagney@redhat.com>
10616
10617         * infrun.c (handle_step_into_function, step_over_function): Only
10618         update and use STEP_FRAME_ID when the system is using legacy
10619         frames.  Update comments.
10620
10621 2004-03-14  Mark Kettenis  <kettenis@gnu.org>
10622
10623         * amd64-linux-tdep.h: Remove file.
10624         * amd64-linux-tdep.c: Don't include "inferior.h" and
10625         "amd64-linux-tdep.h".  Include "frame.h" and "solib-svr4.h".
10626         (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10627         (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10628         (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10629         (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10630         macros.
10631         (user_to_gdb_regmap): Remove variable.
10632         (amd64_linux_gregset_reg_offset): New variable.
10633         (amd64_core_fns): Remove variable.
10634         (fetch_core_registers): Remove function.
10635         (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10636         functions.
10637         (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10638         * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10639         * Makefile.in (amd64_linux_tdep_h): Remove.
10640         (amd64-linux-nat.o): Update dependencies.
10641         (amd64-linux-tdep.o): Update dependencies.
10642
10643         * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10644         (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10645         functions.
10646         (fetch_inferior_registers, store_inferior_registers): Rewrite.
10647
10648         * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10649         * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10650
10651 2004-03-14  Daniel Jacobowitz  <drow@mvista.com>
10652
10653         * dwarf2read.c (read_structure_type): Rename from
10654         read_structure_scope.  Don't create a symbol or call process_die.
10655         Return immediately if die->type is set.  Call read_type_die before
10656         dwarf2_add_member_fn.
10657         (process_structure_scope): New function.
10658         (read_enumeration_type, process_enumeration_scope): New functions,
10659         broken out from read_enumeration.  Don't create the enumeration
10660         type if it has already been created.
10661         (read_enumeration): Removed.
10662         (process_die): Call read_structure_type, process_structure_scope,
10663         read_enumeration_type, and process_enumeration_scope.  Just call
10664         new_symbol for base and subrange types.  Add a comment about other
10665         type dies.
10666         (read_type_die): Call read_enumeration_type.
10667         (add_partial_structure, new_symbol): Update comments.
10668
10669 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10670
10671         * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10672
10673 2004-03-13  Stephane Carrez  <stcarrez@nerim.fr>
10674
10675         * tui/tui-win.h (tui_get_cmd_list): Declare.
10676         * tui/tui-win.c (tui_command): New function.
10677         (tui_get_cmd_list): New function.
10678         (_initialize_tui_win): Moved initialization of tui command in
10679         tui_get_cmd_list.
10680
10681         * tui/tui-data.c (init_content_element): Setup new data members.
10682         (init_win_info): Likewise.
10683         (free_content_elements): Free it.
10684         * tui/tui-data.h (struct tui_data_element): Store the register
10685         content to print.
10686         (struct tui_data_info): Keep the current register group.
10687
10688         * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10689
10690         * tui/tui-regs.h (tui_show_registers): Update prototype.
10691         (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10692         (tui_resize_all): No need to calculate anything for register window.
10693         * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10694         (tui_set_register_element, tui_set_general_regs_content): Remove.
10695         (tui_set_special_regs_content): Remove.
10696         (tui_set_general_and_special_regs_content): Remove.
10697         (tui_set_float_regs_content): Remove.
10698         (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10699         (tui_set_regs_content): Remove.
10700         (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10701         (tui_v_show_registers_command_support): Remove.
10702         (tui_show_registers): Use a reggroup to specify the registers to show.
10703         (tui_show_register_group): New function.
10704         (tui_display_registers_from): Compute the layout of register window
10705         and refresh with new API; be sure to delete old register windows.
10706         (tui_check_register_values): Update to use tui_get_register and
10707         tui_display_data.
10708         (tui_display_register): Just refresh the register window part.
10709         (tui_register_format): Format registers and save in tui_data_element.
10710         (tui_get_register): New to combine tui_reg_value_has_changed and
10711         tui_get_register_raw_value; fix to use the new gdb API.
10712         (tui_show_float_command): Renamed tui_reg_float_command.
10713         (tui_show_general_command): Renamed tui_reg_general_command.
10714         (tui_show_special_command): Renamed tui_reg_system_command.
10715         (_initialize_tui_regs): Remove unused commands.
10716
10717 2004-03-13  Mark Kettenis  <kettenis@gnu.org>
10718
10719         * NEWS (New native configurations): Mention OpenBSD/amd64.
10720
10721         * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10722         (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10723         Remove defines.
10724         * config/i386/nm-fbsd64.h: Likewise.
10725         * config/i386/nm-obsd.h: Likewise.
10726         * config/sparc/nm-fbsd.h: Likewise.  Update copyright year.
10727         * config/alpha/nm-fbsd.h: Likewise.  Update copyright year.
10728
10729 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10730
10731         * frv-tdep.c (set_variant_scratch_registers): New function.
10732         * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10733         New constants.
10734
10735         From Richard Sandiford  <rsandifo@redhat.com>:
10736         * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10737
10738 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10739
10740         * frv-tdep.c, frv-tdep.h  (first_gpr_regnum, sp_regnum, fp_regnum)
10741         (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10742         (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10743         (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10744         (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10745         (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10746         (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10747         (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10748         definitions from frv-tdep.c to frv-tdep.h.
10749
10750 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10751
10752         Add shared library support for FR-V FDPIC ABI:
10753         * Makefile.in (solib-frv.o): Add dependencies.
10754         * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10755         New functions.
10756         (frv_push_dummy_call): Add support for FDPIC ABI.
10757         (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10758         for FDPIC ABI.
10759         * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10760         (frv_fdpic_find_canonical_descriptor): Declare.
10761         * solib-frv.c: New file.
10762         * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10763         * config/frv/tm-frv.h (solib.h): Include.
10764
10765 2004-03-12  Kevin Buettner  <kevinb@redhat.com>
10766
10767         * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10768         (frv-tdep.o): Update dependencies.
10769         * frv-tdep.h: New file.
10770         * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10771         (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10772         constants.
10773         (struct gdbarch_tdep): Add new member ``frv_abi''.
10774         (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10775         functions.
10776         (new_variant): Set ``frv_abi'' field.
10777         (gdb_arch_init): Detect FDPIC executables.
10778
10779 2004-03-12  Mark Kettenis  <kettenis@gnu.org>
10780
10781         * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10782         wrapper.
10783
10784 2004-03-11  Andrew Cagney  <cagney@redhat.com>
10785
10786         * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10787
10788 2004-03-11  Kevin Buettner  <kevinb@redhat.com>
10789
10790         * solist.h (master_so_list): New function.
10791         * solib.c (master_so_list): Likewise.
10792         * solib-svr4.c (enable_break): Iterate over so_list entries
10793         obtained from master list instead of entries obtained directly
10794         via svr4_current_sos().
10795
10796 2004-03-10  Ben Elliston  <bje@gnu.org>
10797
10798         * MAINTAINERS: Update my mail address.
10799
10800 2004-03-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
10801
10802         * remote-m32r-sdi.c: Support hardware watchpoint.
10803
10804 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10805
10806         * user-regs.c: Update copyright years.
10807         (struct user_regs): Rename to gdb_user_regs.
10808         (append_user_reg, builtin_user_regs, user_regs_init)
10809         (user_reg_add, user_reg_map_name_to_regnum)
10810         (usernum_to_user_reg): Update.
10811
10812 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10813
10814         * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10815         (skip_children): New functions.
10816         (locate_pdi_sibling): Call skip_children.
10817
10818 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10819
10820         * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10821         * gdbtypes.c (check_typedef): Update comments.
10822
10823 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10824
10825         * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10826         (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10827         pointer.  Update comment about comp_unit_head.
10828         (struct abbrev_info): Shorten two int flags.
10829         (dwarf_alloc_abbrev): Take a CU argument.
10830         (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10831         each time through the loop.  Update cleanup argument.
10832         (psymtab_to_symtab_1): Update cleanup call.
10833         (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10834         abbrev_obstack.
10835         (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10836         Just call obstack_free and clear the pointer.
10837
10838 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10839
10840         * infrun.c (handle_inferior_event): Remove short-circuit code for
10841         events in a different thread.
10842
10843 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10844
10845         * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10846         print the whole transfer.
10847         (initialize_targets): Update description of "set debug target".
10848
10849 2004-03-09  Daniel Jacobowitz  <drow@mvista.com>
10850
10851         * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10852
10853 2004-03-08  Nathan J. Williams  <nathanw@wasabisystems.com>
10854
10855         * MAINTAINERS (write after approval): Add myself.
10856
10857 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
10858
10859         * sh-tdep.c (sh_print_registers_info): Use for loop.
10860         Don't skip multiple registers when a float register is encountered.
10861
10862 2004-03-08  Corinna Vinschen  <vinschen@redhat.com>
10863
10864         Fix PR tdep/1291.
10865         * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10866         to official SH documentation.
10867
10868 2004-03-07  Andrew Cagney  <cagney@redhat.com>
10869
10870         * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10871         unused function.
10872
10873 2004-03-07  Daniel Jacobowitz  <drow@mvista.com>
10874
10875         * arm-tdep.c (thumb_get_next_pc): Handle BX.
10876         (arm_get_next_pc): Handle BX and BLX.
10877
10878 2004-03-07  Andrew Cagney  <cagney@redhat.com>
10879
10880         * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10881         FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10882         HPPA_SP_REGNUM.
10883         (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10884         (hppa_target_read_fp): Delete.
10885         (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10886         register_virtual_size, max_register_raw_size,
10887         max_register_virtual_size, register_byte, register_size,
10888         target_read_fp, fp_regnum, and register_bytes.  Set register_type
10889         instead of register_virtual_type.
10890         (hppa32_register_type, hppa64_register_type): Replace
10891         hppa32_register_virtual_type and hppa64_register_virtual_type.
10892         * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10893         (HPPA_FP_REGNUM): Define.
10894
10895         * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10896
10897         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10898         (pa_do_registers_info): Delete.
10899         * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10900         (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10901         (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10902
10903         * infcall.c (legacy_push_dummy_code): Delete #ifdef
10904         GDB_TARGET_IS_HPPA code.
10905         * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10906         (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10907         (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10908         * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10909         * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10910         (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10911         (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10912         (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10913         (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10914         (hppa_frameless_function_invocation, hppa64_store_return_value)
10915         (hppa_store_struct_return, hppa64_extract_return_value)
10916         (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10917         (hppa32_call_dummy_length, hppa64_call_dummy_length)
10918         (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10919         (find_proc_framesize, deposit_21, restore_pc_queue)
10920         (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10921         (rp_saved, pc_in_linker_stub): Delete.
10922
10923         Unconditionally enable 64-bit frame and ABI code.
10924         * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10925         call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10926         push_dummy_frame, fix_call_dummy, push_arguments,
10927         call_dummy_location, extract_return_value, use_struct_convention,
10928         store_return_value, store_struct_return, saved_pc_after_call,
10929         init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10930         frame_chain, frame_chain_valid, frameless_function_invocation,
10931         frame_saved_pc, and pop_frame.
10932
10933         * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10934         (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10935         (hppa_gdbarch_init): Do not set PC_REGNUM.
10936
10937 2004-03-06  Mark Kettenis  <kettenis@gnu.org>
10938
10939         * config/alpha/tm-fbsd.h: Remove file.
10940         * config/alpha/fbsd.mt: Tweak comment.
10941         (TM_FILE): Set to tm-alpha.h.
10942
10943 2004-03-05  Andrew Cagney  <cagney@redhat.com>
10944
10945         * infrun.c (step_over_function): When non-legacy code, and no
10946         step_frame_id, use the unwinder to get the caller's frame ID.
10947
10948 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
10949
10950         * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10951         i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10952         bfd_arch_unknown.  Adjust comment.
10953
10954         * i386-nat.c: Fix typo in comment.  Re-introduce paranoiac.
10955         * i386obsd-tdep.c: Correct spelling in comment.
10956         * i386nbsd-tdep.c: Correct spelling in comment.
10957         * sparc-tdep.c: Correct spelling in comments.
10958
10959 2004-03-05  David Carlton  <carlton@kealia.com>
10960
10961         * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10962         bug.
10963
10964 2004-03-05  Mark Kettenis  <kettenis@gnu.org>
10965
10966         * sparc-tdep.c: Fix typo in comment.
10967
10968 2004-03-04  J. Brobecker  <brobecker@gnat.com>
10969
10970         * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10971
10972 2004-03-04  Daniel Jacobowitz  <drow@mvista.com>
10973
10974         * dwarf2read.c: Add comment describing memory lifetimes.
10975         (struct dwarf2_pinfo): Update comment.
10976         (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10977         (read_enumeration, new_symbol): Don't use obsavestring.
10978
10979 2004-03-04  Mark Kettenis  <kettenis@gnu.org>
10980
10981         * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10982         instead of amd64_fill_fxsave.
10983         * amd64bsd-nat.c (store_inferior_registers): Likewise.
10984         * amd64fbsd-nat.c (fill_fpregset): Likewise.
10985
10986         * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10987         Reorganize code a bit.
10988
10989 2004-03-04  Orjan Friberg  <orjanf@axis.com>
10990
10991         * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10992         when the frame pointer is pushed.  Don't set the frame pointer's
10993         address on the stack unless it's actually located there.
10994         Set the SRP's address on the stack correctly when the PC is still in
10995         the prologue.
10996         (cris_return_value): New function.
10997         (cris_gdbarch_init): Clear deprecated store_return_value,
10998         extract_return_value.
10999
11000 2004-03-02  Jim Blandy  <jimb@redhat.com>
11001
11002         * stabsread.c (reg_value_complaint): The maximum register number
11003         is one less than the number of registers.
11004
11005 2004-03-02  Andrew Cagney  <cagney@redhat.com>
11006
11007         * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11008         I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM.  Remove
11009         trailing comma and redundant assignment of I386_ST0_REGNUM.
11010         * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11011         32-bit segment registers.
11012
11013 2004-03-01  Andrew Cagney  <cagney@redhat.com>
11014
11015         * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11016         use frame_relative_level and get_next_frame.
11017
11018 2004-02-29  Andrew Cagney  <cagney@redhat.com>
11019
11020         * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11021         (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11022         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11023         Delete macro.
11024
11025 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11026
11027         * inflow.c (terminal_inferior): Don't give up the terminal if we
11028         previously couldn't get the inferior's terminal state.
11029
11030 2004-02-29  Daniel Jacobowitz  <drow@mvista.com>
11031
11032         * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11033         PC_REGNUM.
11034
11035 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11036
11037         * NEWS: Refer to GDB 6.1.
11038         * README: Refer to GDB 6.1.
11039         * PROBLEMS: Refer to GDB 6.1.
11040
11041 2004-02-28  Daniel Jacobowitz  <drow@mvista.com>
11042
11043         * thread-db.c (disable_thread_signals): Remove unused function.
11044
11045 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11046
11047         * amd64-nat.c: Include "gdb_string.h".
11048         (amd64_collect_native_gregset): Zero-extend the 32-bit
11049         general-purpose registers and %eip.
11050
11051         * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11052         * amd64-tdep.c (amd64_collect_fxsave): New function.
11053         (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11054
11055         * i387-tdep.h: Update copyright year.
11056         (i387_collect_fxsave): New prototype.
11057         * i387-tdep.c: Update copyright year.
11058         (i387_collect_fxsave): New function containing most of the code
11059         from i387_fill_fxsave.
11060         (i387_fill_fxsave): Call i387_collect_fxsave.
11061
11062 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11063
11064         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11065         i386 use PTRACE_GET_THREAD_AREA.  Suggested by Roland McGrath.
11066
11067 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11068
11069         * amd64-tdep.c (amd64_frame_cache): Fix comment.
11070
11071 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11072
11073         * utils.c: Use "", instead of <>, to include readline.
11074         tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11075         * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11076         * source.c, solib.c, exec.c, event-top.c: Ditto.
11077         * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11078         * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11079         * Makefile.in: Update all dependencies.
11080         (readline_tilde_h, readline_history_h): Define.
11081         (readline_headers): Delete.
11082
11083 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11084
11085         * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11086         "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11087         "config/i386/tm-lx64.h".
11088
11089         * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11090         "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c".  Remove
11091         rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11092
11093 2004-02-28  Andrew Cagney  <cagney@redhat.com>
11094
11095         * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11096
11097         * breakpoint.c (_initialize_breakpoint): Use
11098         "add_setshow_auto_boolean_cmd.  Better word-wrap help messages.
11099         Add help to show command.
11100
11101 2004-02-28  Mark Kettenis  <kettenis@gnu.org>
11102
11103         * i386-nat.c: Reformat to be closer to coding standards.
11104         (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11105         `retval'.  Make variables `align' and `size' local to while-loop.
11106         (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11107         (_initialize_i386_nat): New prototype.
11108
11109         * tui/tui.c: Include <readline/readline.h> instead of
11110         "readline/readline.h".  Include it after <term.h> and
11111         "gdb_curses.h".
11112
11113 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11114
11115         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11116         the new frame unwind code.
11117         (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11118         (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11119         PCOQ_HEAD_REGNUM.
11120
11121         * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11122         "return_value" and "push_dummy_call".
11123         (hppa32_use_struct_convention): Delete unused function.
11124         (hppa32_store_return_value): Delete unused function.
11125         (hppa32_extract_return_value): Delete unused function.
11126         (hppa32_stack_align): Delete function.
11127
11128 2004-02-27  Eli Zaretskii  <eliz@elta.co.il>
11129
11130         * coffread.c (enter_linenos): Don't let rawptr reference memory
11131         outside linetab[]'s limits.
11132
11133 2004-02-27  Andrew Cagney  <cagney@redhat.com>
11134
11135         * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11136         inferior stack space - the stack needs to grow upwards.
11137         (hppa32_frame_align): New function.
11138         (hppa64_frame_align): Replace hppa_frame_align.
11139         (hppa_gdbarch_init): Update.
11140
11141 2004-02-26  Orjan Friberg  <orjanf@axis.com>
11142
11143         * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11144         (dwarf2-frame.h): Include.
11145         (enum cris_regnums): New enum CRIS_FP_REGNUM.
11146         Remove static variables related to ABI setting.
11147         (struct gdbarch_tdep): Remove cris_abi member.
11148         (struct frame_extra_info): Remove.
11149         (cris_unwind_cache, stack_item): New structs.
11150         (cris_frame_unwind, cris_frame_base): New variables.
11151         (push_stack_item, pop_stack_item)
11152         (cris_frame_unwind_cache, cris_frame_this_id)
11153         (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11154         (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11155         (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11156         (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11157         (cris_reg_struct_has_addr): New functions.
11158         (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11159         (cris_frame_saved_pc, cris_saved_pc_after_call,
11160         (cris_store_struct_return, cris_frameless_function_invocation)
11161         (cris_pop_frame, cris_skip_prologue_main)
11162         (cris_abi_original_store_return_value)
11163         (cris_abi_v2_store_return_value)
11164         (cris_abi_original_extract_return_value)
11165         (cris_abi_v2_extract_return_value)
11166         (cris_abi_original_reg_struct_has_addr)
11167         (cris_abi_v2_reg_struct_has_addr)
11168         (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11169         (cris_push_return_address, cris_abi_update): Remove.
11170         (_initialize_cris_tdep): Remove ABI command.
11171         (cris_dump_tdep): Ditto.
11172         (cris_gdbarch_init): Remove ABI command.
11173         Set store_return_value, extract_return_value, push_dummy_code,
11174         push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11175         frame_unwind_append_sniffer, frame_base_set_default.
11176         Clear deprecated init_frame_pc, push_arguments, store_return_value,
11177         extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11178         sizeof_call_dummy_words, get_saved_register, push_return_address,
11179         pop_frame, store_struct_return, frame_init_saved_regs,
11180         init_extra_frame_info, frameless_function_invocation, frame_chain,
11181         frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11182         dummy_write_sp.
11183
11184 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11185
11186         * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11187         * valprint.c (print_hex_chars): Change from static to external.
11188         (print_char_chars): New function.
11189         * printcmd.c (print_scalar_formatted): For integer and enum types
11190         that are longer than LONGEST, perform processing via appropriate
11191         print_*_chars routines.
11192
11193 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11194
11195         * Makefile.in: Update dependencies.
11196         Changes from Ulrich Weigand,
11197         * s390-tdep.c: Include "dwarf2-frame.h".
11198         (s390_dwarf2_frame_init_reg): New function.
11199         (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11200         dwarf2_frame_base_sniffer.  Call dwarf2_frame_set_init_reg.
11201
11202 2004-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11203
11204         * breakpoint.c (pending_break_support): New setting variable.
11205         (break_command_1): Account for pending_break_support setting
11206         when creating pending breakpoints.
11207         (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11208         (_initialize_breakpoint): Add "set breakpoint pending" and
11209         "show breakpoint pending" commands.
11210
11211 2004-02-26  Andrew Cagney  <cagney@redhat.com>
11212
11213         Fix PR i18n/1570.
11214         * charset.c (backslashable, backslashed, represented): Remove 'e'
11215         from list of escaped characters, not part of ISO-C.
11216
11217 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11218
11219         From Peter Schauer <schauer@pdf.de>:
11220         * tui/tui.c: Move system header includes after local includes.
11221         Fixes a build failure on solaris systems.
11222
11223 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11224
11225         * configure.in: Refine the previous change.
11226         * configure: Regenerate.
11227
11228 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11229
11230         * amd64-tdep.h: Renamed from x86-64-tdep.h.
11231         * amd64-tdep.c: Renamed from x86-64-tdep.c.  Include
11232         "amd64-tdep.h" instead of "x86-64-tdep.h".
11233         * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11234         * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11235         * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c.  Include
11236         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11237         and "x86-64-tdep.c".
11238         * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c.  Include
11239         "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11240         and "x86-64-tdep.c".
11241         * amd64bsd-nat.c: Update copyright year.
11242         Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11243         * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11244         "x86-64-tdep.h".
11245         * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11246         "x86-64-tdep.h".
11247         * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11248         "x86-64-tdep.h".
11249         * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11250         "x86-64-tdep.h".
11251         * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11252         "x86-64-tdep.h".
11253         * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11254         "x86-64-tdep.h".
11255         * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11256         * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11257         * Makefile.in (amd64_linux_tdep_h): Renamed from
11258         x86_64_linux_tdep_h.
11259         (amd64_tdep_h): Renamed from x86_64_tdep_h.
11260         (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11261         (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11262         (amd64obsd-tdep.o): Update dependencies.
11263         (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11264         dependencies.
11265         (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11266         dependencies.
11267         (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11268         amd64-linux-nat.c amd64-linux-tdep.c.
11269         * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11270         * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11271         * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11272         (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11273         amd64-tdep.o and amd64-linux-tdep.o.
11274         (TM_FILE): Set to tm-linux64.h.
11275         * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11276         (NAT_FILE): Set to nm-linux64.h.
11277         (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11278         * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11279         amd64-tdep.o.
11280         * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11281         amd64-tdep.o.
11282         * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11283         amd64-tdep.o.
11284
11285 2004-02-25  Roland McGrath  <roland@redhat.com>
11286
11287         * remote.c (remote_protocol_qPart_auxv): New variable.
11288         (init_all_packet_configs): Initialize it.
11289         (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11290         (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11291         (show_remote_cmd): Call it.
11292         (_initialize_remote): Initialize commands.
11293         (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11294         service TARGET_OBJECT_AUXV requests.
11295
11296 2004-02-25  J. Brobecker  <brobecker@gnat.com>
11297
11298         * configure.in: Make sure that the wborder function is available.
11299         Otherwise, search for it in the cur_colr library.
11300         * configure: Regenerate.
11301
11302 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11303
11304         * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11305
11306 2004-02-25  Mark Kettenis  <kettenis@gnu.org>
11307
11308         * config/i386/tm-x86-64linux.h: Tweak comments.
11309
11310 2004-02-25  Richard Sandiford  <rsandifo@redhat.com>
11311
11312         * MAINTAINERS: Add self to write-after-approval list.
11313
11314 2004-02-25  Andrew Cagney  <cagney@redhat.com>
11315
11316         PR cli/1566.  Problem found, and fix suggested by David Allan.
11317         * cli/cli-script.c (execute_control_command): Unconditionally
11318         install a cleanup.  Default "ret" to "invalid_control".  Use
11319         "break" instead of "return" to escape from the switch.
11320
11321 2004-02-24  J. Brobecker  <brobecker@gnat.com>
11322
11323         * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11324         with the lines macro defined in term.h on AiX.
11325         * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11326         a collision with the label_width macro defined in term.h on AiX.
11327
11328 2004-02-23  David Mosberger  <davidm@hpl.hp.com>
11329
11330         Committed by Kevin Buettner <kevinb@redhat.com>.
11331
11332         * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11333         * ia64-tdep.c (ia64_write_pc): Make it a global function.
11334         (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11335         instead of ia64_write_pc().
11336         * ia64-linux-tdep.c (regcache.h): Include.
11337         (ia64_linux_write_pc): New function.
11338
11339 2004-02-23  Roland McGrath  <roland@redhat.com>
11340
11341         * auxv.c (info_auxv_command): Fix typos in error messages.
11342
11343 2004-02-23  Mark Kettenis  <kettenis@gnu.org>
11344
11345         * x86-64-tdep.h: Tweak comment.
11346         (enum amd64_regnum): New.
11347         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11348         (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11349         (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11350         (X86_64_XMM1_REGNUM): Removed.
11351         (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11352         (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11353         prototypes for renamed functions.
11354         * x86-64-tdep.c: Fix typo.
11355         (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11356         register numbers.
11357         (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11358         Use constants from `enum amd64_regnum' for register numbers.
11359         (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11360         (amd64_analyze_prologue, amd64_frame_cache,
11361         amd64_sigtramp_frame_cache): Use constants from `enum
11362         amd64_regnum' for register numbers.
11363         (amd64_supply_fpregset): Adjust for renamed functions.
11364         (amd64_init_abi): Rename from x86_64_init_abi.  Use constants from
11365         `enum amd64_regnum' for register numbers.
11366         (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11367         (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11368         (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11369         * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11370         (amd64_linux_fill_gregset): Adjust for renamed macros.
11371         (fetch_core_registers): Adjust for renamed functions.
11372         (amd64_linux_init_abi): Adjust for renamed functions.
11373         * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11374         renamed functions.
11375         * amd64-nat.c: Adjust for renamed macros.
11376         * amd64bsd-nat.c (fetch_inferior_registers)
11377         (store_inferior_registers): Use constants from `enum amd64_regnum'
11378         for register numbers.  Adjust for renamed variables.
11379         * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11380         renamed variables.
11381         (_initialize_amd64fbsd_nat): Use constants from `enum
11382         amd64_regnum' for register numbers.
11383         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11384         `enum amd64_regnum' for register numbers.
11385         (amd64fbsd_init_abi): Adjust for renamed functions.
11386         * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11387         `enum amd64_regnum' for register numbers.
11388         (amd64nbsd_init_abi): Adjust for renamed functions.
11389         (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11390         * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11391         `enum amd64_regnum' for register numbers.
11392         (amd64obsd_init_abi): Adjust for renamed functions.
11393         (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11394
11395 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11396
11397         * breakpoint.c (print_one_breakpoint): Do not output spaces
11398         after printing <PENDING> for a pending breakpoint.
11399
11400 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11401
11402         * printcmd.c (print_scalar_formatted): Initialize val_long
11403         to remove compiler warning message.
11404
11405 2004-02-23  Jeff Johnston  <jjohnstn@redhat.com>
11406
11407         * defs.h (nquery, yquery): New prototypes.
11408         * breakpoint.c (break_command_1): Use new nquery interface.
11409         * utils.c (defaulted_query, nquery, yquery): New functions.
11410
11411 2004-02-23  Andrew Cagney  <cagney@redhat.com>
11412
11413         * hppa-tdep.c (hppa_frame_align): New function.
11414         (hppa32_push_dummy_call): New function.
11415         (hppa64_push_dummy_call): New function.
11416         (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11417         disabled.
11418
11419         * infcall.c (legacy_push_dummy_code): Don't call deprecated
11420         FIX_CALL_DUMMY when push_dummy_call is available.
11421         (call_function_by_hand, push_dummy_code): Ditto.
11422
11423 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11424
11425         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11426         (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11427         (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11428         * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11429         use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11430         call_dummy_location to ON_STACK.
11431
11432 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11433
11434         * x86-64-linux-tdep.c: Tweak comment.
11435         (amd64_linux_supply_gregset): Renamed from
11436         x86_64_linux_supply_gresget.
11437         (amd64_linux_fill_gregset): Renamed from
11438         x86_64_linux_fill_gregset.
11439         (fetch_core_registers): Adjust for renamed functions.
11440         (amd64_core_fns): Renamed from x86_64_core_fns.
11441         (amd64_linux_sigtramp_start): Renamed from
11442         x86_64_linux_sigtramp_start.
11443         (amd64_linux_pc_in_sigtramp): Renamed from
11444         x86_64_linux_pc_in_sigtramp.  Adjust for renamed functions.
11445         (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11446         X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11447         (amd64_linux_sigcontext_addr): Renamed from
11448         x86_64_linux_sigcontext_addr.
11449         (amd64_linux_sc_reg_offset): Renamed from
11450         x86_64_linux_sc_reg_offset.
11451         (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11452         Adjust for renamed functions and variables.
11453         (_initialize_amd64_linux_tdep): Renamed from
11454         _initialize_x86_64_linux_tdep.  Adjust for renamed functions and
11455         variables.
11456         * x86-64-linux-tdep.h: Update copyright year.  Tweak comment.
11457         Adjust for renamed functions.
11458
11459         * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11460         from x86_64_linux_gregset64_reg_offset.
11461         (amd64_linux_gregset32_reg_offset): Rename from
11462         x86_64_linux_gregset64_reg_offset.
11463         (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11464         (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11465         (amd64_linux_dr_set_control): Renamed from
11466         x86_64_linux_dr_set_control.  Adjust for renamed functions.
11467         (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11468         Adjust for renamed functions.
11469         (amd64_linux_dr_reset_addr): Renamed from
11470         x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11471         (amd64_linux_dr_get_status): Renamed from
11472         x86_64_linux_dr_get_status.  Adjust for renamed functions.
11473         (_initialize_amd64_linux_nat): Renamed from
11474         _initialize_x86_64_linux_nat.  Adjust for renamed variables and
11475         functions.
11476         * config/i386/nm-x86-64linux.h: Update copyright year.
11477         Adjust for renamed functions.
11478
11479         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11480         amd64fbsd_sigtramp_start.
11481         (amd64fbsd_sigtramp_end_addr): Renamed from
11482         amd64fbsd_sigtramp_end.
11483         (amd64fbsd_init_abi): Adjust for renamed variables.
11484         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11485         variables.
11486         * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11487         amd64fbsd_sigtramp_start.
11488         (amd64fbsd_sigtramp_end_addr): Renamed from
11489         amd64fbsd_sigtramp_end.
11490
11491 2004-02-22  Andrew Cagney  <cagney@redhat.com>
11492
11493         * hppa-tdep.c (hppa32_return_value): New function.
11494         (hppa64_return_value): New function.
11495         (hppa_gdbarch_init): Set return_value; keep disabled.
11496
11497         * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11498         struct-return and inferior function call methods.
11499
11500         * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11501         "frame-base.h".
11502         (struct hppa_frame_cache): Define.
11503         (hppa_frame_cache, hppa_frame_this_id): New functions.
11504         (hppa_frame_prev_register): New function.
11505         (hppa_frame_unwind, hppa_frame_base): New variables.
11506         (hppa_frame_unwind_sniffer): New function.
11507         (hppa_frame_base_address, hppa_unwind_pc): New function.
11508         (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11509         sniffer, and frame base sniffer; keep disabled.
11510         (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11511         * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11512
11513         * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11514         to predicates for "seriously old code".
11515
11516         * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11517         runtime if(0).
11518
11519         * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11520         unsigned.
11521         (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11522
11523         * config/pa/tm-hppa.h: Update copyright.
11524         (DEPRECATED_INIT_FRAME_PC): Delete macro.
11525         (deprecated_init_frame_pc_default): Delete declaration.
11526         (hppa_frame_init_saved_regs): Delete declaration.
11527         (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11528         * hppa-tdep.c: Include "arch-utils.h".
11529         (hppa_gdbarch_init): Set deprecated init_frame_pc
11530         and deprecated frame_init_saved_regs.
11531         (hppa_frame_init_saved_regs): Make static.
11532
11533 2004-02-22  Mark Kettenis  <kettenis@gnu.org>
11534
11535         Remove old 386BSD support.
11536         * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11537         * configure.host: Remove i[34567]86-*-bsd*.
11538         * configure.tgt: Remove i[34567]86-*-bsd*.
11539         * i386b-nat.c: Removed.
11540         * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11541         (i386b-nat.o): Remove dependencies.
11542
11543         * config/i386/i386bsd.mh: Removed.
11544         * config/i386/i386bsd.mt: Removed.
11545         * config/i386/nm-i386bsd.h: Removed.
11546         * config/i386/tm-i386bsd.h: Removed.
11547         * config/i386/xm-i386bsd.h: Removed.
11548
11549         * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11550
11551         * amd64fbsd-tdep.c: Include "solib-svr4.h".
11552         (amd64fbsd_init_abi): Set link map offsets.
11553         * amd64nbsd-tdep.c: Include "slib-svr4.h".
11554         (amd64nbsd_init_abi): Set link map offsets.
11555         * amd64obsd-tdep.c: Include "solib-svr4.h".
11556         (amd64obsd_init_abi): Set link map offsets.
11557         * i386fbsd-tdep.c: Include "solib-svr4.h".
11558         (i386fbsd_init_abi): Set link map offsets.
11559         * i386nbsd-tdep.c: Include "solib-svr4.h".
11560         (i386nbsdelf_init_abi): Set link map offsets.
11561         * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11562         (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11563         * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11564         solib-legacy.o and core-aout.o. Reformat.
11565         * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11566         solib-svr4.o, solib-legacy.o.  Reformat.
11567         * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o.  Reformat.
11568         * config/i386/nbsdelf.mh: Reformat.
11569         * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11570         solib-svr4.o, solib-legacy.o and corelow.o.
11571         * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11572         * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11573         solib-svr4.o, solib-legacy.o and corelow.o.  Reformat.
11574         * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11575         * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11576         (TM_FILE): Set to tm-fbsd.h.
11577         * config/i386/nbsd.mt (TDEPFILES): Reformat.
11578         * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11579         solib-svr4.o.
11580         * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11581         solib-svr4.o.
11582         (TM_FILE): Set to nm-nbsd.h.
11583         * config/i386/nm-fbsd.h: Update copyright year.  Tweak comments.
11584         Simplify shared library support.  Don't include "elf/common.h".
11585         (SVR4_SHARED_LIBS): Don't define.
11586         * config/i386/nm-fbsd64.h: Update copyright year.  Don't include
11587         "solib.h".
11588         * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11589         config/i386/nm-obsd.h: Update copyright year.  Tweak comments.
11590         * config/i386/tm-fbsd.h: Update copyright tear.  Tweak comments.
11591         Don't include "i386/tm-i386.h".  Include "solib.h".
11592         * config/i386/tm-nbsd.h: Update copyright year.  Tweak comments.
11593         Don't include "i386/tm-i386.h".
11594         * config/i386/xm-i386.h: Update copyright year.  Tweak comments.
11595         * config/i386/xm-nbsd.h: Update copyright year.  Tweak comments.
11596         Include "i386/xm-i386.h".
11597         (HOST_LONG_DOUBLE_FORMAT): Remove.
11598
11599         Fix OpenBSD/i386 sigtramp recognition.
11600         * i386-tdep.h: Update copyright year.
11601         (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11602         (i386bsd_sigtramp_end): New prototypes.
11603         (i386fbsd_sigtramp_start_addr): Renamed from
11604         i386fbsd_sigtramp_start.
11605         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11606         (i386obsd_sigtramp_start_addr): Renamed from
11607         i386obsd_sigtramp_start.
11608         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11609         * i386bsd-tdep.c: Update copyright year.
11610         (i386bsd_pc_in_sigtramp): Make public.
11611         * i386fbsd-nat.c: Update copyright year.
11612         (_initialize_i386fbsd_nat): Adjust for renamed variables.
11613         * i386fbsd-tdep.c: Update copyright year.
11614         (i386fbsd_sigtramp_start_addr): Renamed from
11615         i386fbsd_sigtramp_start.
11616         (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11617         (i386fbsdaout_init_abi): Adjust for renamed variables.
11618         * i386obsd-nat.c: Update copyright year.
11619         (_initialize_i386obsd_nat): Adjust for renamed variables.
11620         * i386obsd-tdep.c: Include "target.h".
11621         (i386obsd_page_size): New variable.
11622         (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11623         (i386obsd_sigtramp_end): New functions.
11624         (i386obsd_sigtramp_start_addr): Renamed from
11625         i386obsd_sigtramp_start.
11626         (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11627         (i386obsd_init_abi): Adjust for renamed variables.  Set
11628         pc_in_sigtramp, sigtramp_start and sigtramp_end.
11629         * Makefile.in (i386obsd-tdep.o): Update dependencies.
11630
11631         * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11632         trampoline change in OpenBSD kernel.
11633
11634         * amd64-nat.c: Update copyright year.
11635         (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11636         architecture from REGCACHE.
11637
11638         * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11639         symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11640
11641 2004-02-21  Mark Kettenis  <kettenis@gnu.org>
11642
11643         * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11644         i[34567]86-*-openbsd3.[0-3].
11645         * config/i386/obsdaout.mh: New file.
11646
11647         * config/i386/obsd.mh (MH_FLAGS): Remove.
11648
11649         Fix PR build/1549.
11650         * i386obsd-tdep.c: Update copyright years.  Include
11651         "solib-svr4.h".
11652         (i386obsd_init_abi): Don't set regset_from_core_section here.
11653         (i386obsd_aout_init_abi): New function.  Set
11654         regset_from_core_section here.
11655         (i386obsd_elf_init_abi): New function.
11656         (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11657         * Makefile.in (i386obsd-tdep.o): Update dependecies.
11658         * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11659         (TM_FILE): Set to tm-nbsd.h.
11660
11661         * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11662         solib-sunos.o.
11663
11664         * solib-svr4.h: Update copyright year.
11665         (svr4_ilp32_fetch_link_map_offsets)
11666         (svr4_lp64_fetch_link_map_offsets): New prototype.
11667         * solib-svr4.c: Update copyright year.
11668         (svr4_ilp32_fetch_link_map_offsets)
11669         (svr4_lp64_fetch_link_map_offsets): New function.
11670
11671 2004-02-20  Daniel Jacobowitz  <drow@mvista.com>
11672
11673         * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11674         to the partial symbol table.
11675
11676 2004-02-20  J. brobecker  <brobecker@gnat.com>
11677
11678         * PROBLEMS: Add description of problem documented under gdb/1560.
11679
11680 2004-02-20  Mark Kettenis  <kettenis@gnu.org>
11681
11682         * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h".  Fix
11683         comments.
11684         (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11685         functions.
11686         (amd64obsd_init_abi): Reorder initializations.  Use
11687         amd64obsd_r_reg_offset to initialize the general-purpose register
11688         set details.  Set regset_from_core_section.
11689         (_initialize_amd64obsd_tdep): Rename from
11690         _initialize_amd64obsd_ndep.  Add OS ABI handler for core dumps.
11691         * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11692         * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11693
11694         * NEWS (New native configurations): Mention OpenBSD/alpha.
11695         * configure.tgt: Add alpha*-*-openbsd*.
11696         * configure.host: Add alpha*-*-openbsd*.
11697         * alphanbsd-tdep.c: Update copyright year.
11698         (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11699
11700 2004-02-20  Andrew Cagney  <cagney@redhat.com>
11701
11702         Fix PR tdep/1372.
11703         * configure.tgt: Delete target "none-*-*".
11704         * configure.host: Delete host "none-*-*".
11705         * config/none/none.mh: Delete file.
11706         * config/none/none.mt: Delete file.
11707         * config/none/xm-none.h: Delete file.
11708         * config/none/tm-none.h: Delete file.
11709         * config/none/nm-none.h: Delete file.
11710
11711 2004-02-19  Fred Fish  <fnf@redhat.com>
11712
11713         * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11714         cache->uses_fp prior to setting it.
11715
11716 2004-02-19  Fred Fish  <fnf@redhat.com>
11717
11718         Fix for PR breakpoint/1558.
11719         * sh-tdep.c (IS_JSR): New macro.
11720         (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11721
11722 2004-02-19  Jim Blandy  <jimb@redhat.com>
11723
11724         * findvar.c (value_from_register): Doc fix.
11725
11726 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
11727
11728         * printcmd.c (print_scalar_formatted): Do not check for sizeof
11729         type being greater than sizeof of host's LONGEST.  Always use
11730         unpack_long() unless format 'f' chosen.
11731
11732 2004-02-19  Joel Brobecker  <brobecker@gnat.com>
11733
11734         Committed by Elena Zannoni  <ezannoni@redhat.com>
11735
11736         * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11737         contains a symbol wich is the best, non-exact match for the given
11738         pc.  Update comments.
11739
11740 2004-02-19  Elena Zannoni  <ezannoni@redhat.com>
11741
11742         * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11743         macro, which was part of the now removed Mach 3 port.
11744         * utils.c (request_quit): Ditto.
11745
11746 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
11747
11748         * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11749         "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11750
11751 2004-02-18  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11752
11753         Committed by Mark Kettenis  <kettenis@gnu.org>.
11754
11755         * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11756         Define.
11757
11758 2004-02-18  Andrew Cagney  <cagney@redhat.com>
11759
11760         * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11761         CONFIG_INSTALL and CONFIG_UNINSTALL.
11762         * configure: Re-generate.
11763         * interps.h (INTERP_TUI): Define.
11764         * Makefile.in: Update dependencies.
11765         (TUI): New macro.
11766         (tui-main.o): Specify dependencies.
11767         (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11768         * tui/tui-main.c: New file.
11769
11770 2004-02-18  Mark Kettenis  <kettenis@gnu.org>
11771
11772         * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11773         * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11774         dependencies.
11775         * configure.host: Add x86_64-*-openbsd*.
11776         * configure.tgt: Add x86_64-*-openbsd*.
11777         * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11778
11779         * tui/tui.c: Don't include <malloc.h>.
11780
11781         * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11782         amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11783         amd64nbsd-tdep.c.
11784
11785         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11786         static.  Remove extraneous whitespace.
11787         * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11788         static.
11789
11790 2004-02-17  Jim Blandy  <jimb@redhat.com>
11791
11792         * findvar.c (value_from_register): Doc fix.
11793
11794 2004-02-17  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11795
11796         Committed by Jim Blandy  <jimb@redhat.com>.
11797
11798         * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11799         CORE_ADDR as type for selectors.  Correct types for GNU run time
11800         message lookup function to use double indirection.
11801         * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11802         * objc-lang.h (lookup_child_selector): Adapt prototype.
11803
11804         * s390-nat.c (SUBOFF): New macro.
11805         (supply_gregset, fill_gregset): Use it to handle debugging
11806         of 32-bit exectuables running under a 64-bit kernel.
11807         * s390-tdep.c: Include "solib-svr4.h".
11808         (s390_svr4_fetch_link_map_offset): New function.
11809         (s390x_svr_fetch_link_map_offset): Likewise.
11810         (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11811         * Makefile.in (s390-tdep.o): Update dependencies.
11812
11813         * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11814         "frame-unwind.h".
11815         (s390_readinstruction): Reformat.  Use read_memory_nobpt.
11816         (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11817         (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11818         (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11819         S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11820         S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11821         S390_SIGNAL_FRAMESIZE,
11822         s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11823         (struct frame_extra_info): Remove.
11824         (s390_memset_extra_info): Remove.
11825         (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11826         (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11827         (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11828         (is_rse): Renamed to ...
11829         (is_rsy): ... this.  Support long displacements.
11830         (is_rxe): Renamed to ...
11831         (is_rxy): ... this.  Support long displacements.
11832         (compute_x_addr): Support long displacements.
11833         (struct s390_prologue_data): New data type.
11834         (s390_on_stack): Change API to use struct s390_prologue_data.
11835         (s390_store): Reimplement.
11836         (s390_load): New function.
11837         (s390_get_signal_frame_info): Remove.
11838         (s390_get_frame_info): Remove, replace by ...
11839         (s390_analyze_prolog): ... this new function.
11840         (s390_check_function_end): Remove.
11841         (s390_function_start): Remove.
11842         (s390_frameless_function_invokation): Remove.
11843         (s390_is_sigreturn): Remove.
11844         (s390_init_frame_pc_first): Remove.
11845         (s390_init_frame_extra_info): Remove.
11846         (s390_frame_init_saved_regs): Remove.
11847         (s390_frame_saved_pc_nofix): Remove.
11848         (s390_frame_saved_pc): Remove.
11849         (s390_frame_chain): Remove.
11850         (s390_fp_regnum, s390_read_fp): Remove.
11851         (s390_pop_frame_regular, s390_pop_frame): Remove.
11852         (s390_saved_pc_after_call): Remove.
11853         (s390_skip_prologue): Reimplement.
11854         (s390_in_function_epilogue_p): Support long displacements.
11855         (struct s390_unwind_cache): New data structure.
11856         (s390_frame_unwind_cache): New function.
11857         (s390_prologue_frame_unwind_cache): Likewise.
11858         (s390_backchain_frame_unwind_cache): Likewise.
11859         (s390_frame_this_id, s390_frame_prev_register): Likewise.
11860         (s390_frame_unwind): Define.
11861         (s390_frame_sniffer): New function.
11862         (struct s390_pltstub_unwind_cache): New data structure.
11863         (s390_pltstub_frame_unwind_cache): New function.
11864         (s390_pltstub_frame_this_id): Likewise.
11865         (s390_pltstub_frame_prev_register): Likewise.
11866         (s390_pltstub_frame_unwind): Define.
11867         (s390_pltstub_frame_sniffer): New function.
11868         (struct s390_sigtramp_unwind_cache): New data structure.
11869         (s390_sigtramp_frame_unwind_cache): New function.
11870         (s390_sigtramp_frame_this_id): Likewise.
11871         (s390_sigtramp_frame_prev_register): Likewise.
11872         (s390_sigtramp_frame_unwind): Define.
11873         (s390_sigtramp_frame_sniffer): New function.
11874         (s390_frame_base_address, s390_local_base_address): New functions.
11875         (s390_frame_base): Define.
11876         (s390_unwind_pc, s390_unwind_sp): New function.
11877         (s390_push_dummy_call): Use new frame base location.
11878         (s390_unwind_dummy_id): Likewise.
11879         (s390_gdbarch_init): Remove calls to:
11880         set_gdbarch_frameless_function_invocation,
11881         set_gdbarch_deprecated_init_frame_pc,
11882         set_gdbarch_deprecated_frame_chain,
11883         set_gdbarch_deprecated_frame_init_saved_regs,
11884         set_gdbarch_deprecated_pop_frame,
11885         set_gdbarch_deprecated_init_extra_frame_info,
11886         set_gdbarch_deprecated_init_frame_pc_first,
11887         set_gdbarch_deprecated_target_read_fp,
11888         set_gdbarch_deprecated_frame_saved_pc,
11889         set_gdbarch_deprecated_saved_pc_after_call,
11890         set_gdbarch_deprecated_fp_regnum.
11891         Add calls to:
11892         set_gdbarch_in_solib_call_trampoline,
11893         frame_unwind_append_sniffer,
11894         frame_base_set_default,
11895         set_gdbarch_unwind_pc,
11896         set_gdbarch_unwind_sp.
11897         * Makefile.in (s390-tdep.o): Update dependencies.
11898
11899         * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11900         (S390_STACK_FRAME_OVERHEAD): Remove.
11901         (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11902         (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11903         (s390_promote_integer_argument): Remove.
11904         (s390_cannot_extract_struct_value_address): Remove.
11905         (s390_use_struct_convention, s390_store_struct_return): Remove.
11906         (s390_extract_return_value, s390_store_return_value): Remove.
11907         (s390_return_value_convention, s390_return_value): New functions.
11908         (is_float_singleton): Handle typedefs.
11909         (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11910         Remove, replace by ...
11911         (s390_function_arg_pass_by_reference, s390_function_arg_float,
11912         s390_function_arg_integer): ... these new functions.
11913         (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11914         (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11915         (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11916         Fill in tdep->abi.
11917         Remove calls to:
11918         set_gdbarch_deprecated_store_struct_return,
11919         set_gdbarch_deprecated_extract_return_value,
11920         set_gdbarch_deprecated_store_return_value,
11921         set_gdbarch_use_struct_convention,
11922         set_gdbarch_extract_struct_value_address,
11923         set_gdbarch_deprecated_pc_in_call_dummy,
11924         set_gdbarch_deprecated_push_arguments,
11925         set_gdbarch_deprecated_save_dummy_frame_tos,
11926         set_gdbarch_deprecated_push_return_address,
11927         set_gdbarch_deprecated_sizeof_call_dummy_words,
11928         set_gdbarch_deprecated_call_dummy_words,
11929         set_gdbarch_deprecated_dummy_write_sp.
11930         Add calls to:
11931         set_gdbarch_push_dummy_call,
11932         set_gdbarch_unwind_dummy_id,
11933         set_gdbarch_return_value.
11934
11935         * config/s390/nm-linux.h: Update comments.
11936         (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11937         (STOPPED_BY_WATCHPOINT): Redefine.
11938         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11939         (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11940         (s390_stopped_by_watchpoint): Likewise.
11941         (watch_area_cnt): Remove.
11942         * s390-nat.c: Update comments.
11943         (watch_area): Remove typedef.
11944         Global replace watch_area by struct watch_area.
11945         (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11946         (s390_stopped_by_watchpoint): Remove pid argument,
11947         use s390_inferior_tid.  Add short-cut for the no watchpoint case.
11948         (s390_fix_watch_points): Remove pid argument,
11949         use s390_inferior_tid.  Recompute area spanned by watchpoints.
11950         (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11951         argument.  Reimplement.
11952
11953         * config/s390/nm-linux.h: Update comments.  Do not include "solib.h".
11954         (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11955         (FETCH_INFERIOR_REGISTERS): Define.
11956         * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11957         core-regset.o.
11958         * config/s390/s390x.mt: Remove.
11959         * config/s390/tm-s390.h: Remove.
11960         * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11961         (TARGET_ELF64): Remove.
11962         (SKIP_TRAMPOLINE_CODE): Do not undefine.
11963         * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11964         s390*-*-* case; always set gdb_target to s390.
11965         * regformats/reg-s390.dat: Remove control registers.
11966         * regformats/reg-s390x.dat: Likewise.
11967         * s390-tdep.h: New file.
11968         * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11969         Include "inferior.h" and "s390-tdep.h".
11970         Remove private definition of offsetof.
11971         (s390_register_u_addr): Remove.
11972         (regmap_gregset, regmap_fpregset): Define.
11973         (supply_gregset, fill_gregset): Reimplement.
11974         (supply_fpregset, fill_fpregset): Likewise.
11975         (s390_inferior_tid): New function.
11976         (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11977         (fetch_inferior_registers, store_inferior_registers): Likewise.
11978         * s390-tdep.c: Do not define S390_TDEP.  Include "defs.h" instead
11979         of <defs.h>.  Include "reggroups.h", "regset.h", and "s390-tdep.h".
11980         Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11981         Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11982         (struct gdbarch_tdep): Define.
11983         (struct s390_register_info): Define.
11984         (s390_register_info): New variable.
11985         (s390_register_name): Reimplement.
11986         (s390_register_type): New function.
11987         (s390_register_raw_size, s390x_register_raw_size): Remove.
11988         (s390_cannot_fetch_register): Remove.
11989         (s390_register_byte): Remove.
11990         (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11991         (s390_dwarf_regmap): New variable.
11992         (s390_dwarf_reg_to_regnum): New function.
11993         (s390_stab_reg_to_regnum): Remove.
11994         (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11995         (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11996         (s390_convert_register_p): Likewise.
11997         (s390_register_to_value, s390_value_to_register): Likewise.
11998         (s390_register_reggroup_p): Likewise.
11999         (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12000         s390_gregset, s390x_gregset, s390_fpregset): New variables.
12001         (s390_supply_regset, s390_regset_from_core_section): New functions.
12002         (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12003         (S390_FPR_SIZE): Likewise.
12004         (S390_GPR_SIZE): Likewise.  Redefine in terms of GDB_TARGET_IS_ESAME.
12005         Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12006         (S390_NUM_GPRS): Move here from tm-s390.h.
12007         (S390_NUM_FPRS): Likewise.
12008         (s390_in_function_epilogue_p): New function.
12009         (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12010         Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12011         (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12012         Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12013         Replace S390_FP_REGNUM by S390_SP_REGNUM.
12014         Remove calls to:
12015         set_gdbarch_deprecated_max_register_raw_size,
12016         set_gdbarch_deprecated_max_register_virtual_size,
12017         set_gdbarch_deprecated_register_byte,
12018         set_gdbarch_cannot_fetch_register,
12019         set_gdbarch_cannot_store_register,
12020         set_gdbarch_deprecated_register_size,
12021         set_gdbarch_deprecated_register_raw_size,
12022         set_gdbarch_deprecated_register_virtual_size,
12023         set_gdbarch_deprecated_register_virtual_type,
12024         set_gdbarch_deprecated_register_bytes.
12025         Add calls to:
12026         set_gdbarch_num_pseudo_regs,
12027         set_gdbarch_register_type,
12028         set_gdbarch_convert_register_p,
12029         set_gdbarch_register_to_value,
12030         set_gdbarch_value_to_register,
12031         set_gdbarch_register_reggroup_p,
12032         set_gdbarch_regset_from_core_section,
12033         set_gdbarch_pseudo_register_read,
12034         set_gdbarch_pseudo_register_write,
12035         set_gdbarch_in_function_epilogue_p.
12036         * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12037         (s390_tdep_h): New variable.
12038
12039 2004-02-17  Jim Blandy  <jimb@redhat.com>
12040
12041         * findvar.c (value_from_register): If the type has no length, just
12042         return an acceptable value --- don't report an internal error.
12043
12044         * stabsread.c (read_type): If we find any type numbers that are
12045         forward references, complain if the references aren't resolved by
12046         the time we're finished reading.
12047         (cleanup_undefined_types): Make error message more appropriate for
12048         a complaint.
12049
12050 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12051
12052         * Makefile.in (defs_h): Remove dependency on progress_h.
12053         * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12054         progress.h.
12055         * main.c (captured_main): Delete use of START_PROGRESS and
12056         END_PROGRESS.
12057
12058 2004-02-17  Elena Zannoni  <ezannoni@redhat.com>
12059
12060         * objfiles.c (terminate_minimal_symbol_table): Add back
12061         initialization of MSYMBOL_TYPE.
12062
12063 2004-02-17  David Mosberger  <davidm@hpl.hp.com>
12064
12065         Committed by Andrew Cagney.
12066         * Makefile.in (ia64_tdep_h): New macro.
12067         (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12068         (ia64-tdep.o): Likewise.
12069         * ia64-tdep.h: New file.
12070         * ia64-tdep.c: Update copyright notice.  Include "ia64-tdep.h".
12071         (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12072         (ia64_aix_sigcontext_register_address): Likewise.
12073         (ia64_linux_getunwind_table): Delete declaration.
12074         * ia64-linux-tdep.c: Likewise.
12075
12076 2004-02-17  Corinna Vinschen  <vinschen@redhat.com>
12077
12078         * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12079         * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12080         DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12081
12082 2004-02-17  Andrew Cagney  <cagney@redhat.com>
12083
12084         * symtab.c (skip_prologue_using_sal): New function.
12085         * symtab.h (skip_prologue_using_sal): Declare.
12086         * frv-tdep.c: Include "symtab.h".
12087         (skip_prologue_using_sal): Delete function.
12088         * mips-tdep.c (skip_prologue_using_sal): Delete function.
12089         * rs6000-tdep.c (refine_prologue_limit): Mention
12090         skip_prologue_using_sal.
12091         * ia64-tdep.c (refine_prologue_limit): Ditto.
12092         * Makefile.in: Update dependencies.
12093
12094 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12095
12096         * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12097         START_INFERIOR_TRAPS_EXPECTED.
12098         * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12099         START_INFERIOR_TRAPS_EXPECTED.
12100         * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12101         Delete macro.
12102         * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12103         macro, moved to "nm-osf.h".  Update copyright.
12104         * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12105         update copyright.
12106
12107         * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12108         and function replacing FRAMELESS_FUNCTION_INVOCATION.
12109         * blockframe.c (legacy_frameless_look_for_prologue): Rename
12110         frameless_look_for_prologue.
12111         * frame.h (legacy_frameless_look_for_prologue): Rename
12112         frameless_look_for_prologue.
12113         * gdbarch.h, gdbarch.c: Re-generate.
12114         * sh64-tdep.c (sh64_gdbarch_init): Update.
12115         * sh-tdep.c (sh_gdbarch_init): Update.
12116         * s390-tdep.c (s390_gdbarch_init): Update.
12117         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12118         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12119         * m68k-tdep.c (m68k_gdbarch_init): Update.
12120         (delta68_frame_args_address): Update.
12121         * m32r-tdep.c (m32r_gdbarch_init): Update.
12122         * hppa-tdep.c (hppa_gdbarch_init): Update.
12123         * h8300-tdep.c (h8300_gdbarch_init): Update.
12124         * frv-tdep.c (frv_gdbarch_init): Update.
12125         (frv_frameless_function_invocation): Update.
12126         * cris-tdep.c (cris_gdbarch_init): Update.
12127         (cris_frameless_function_invocation): Update.
12128         * avr-tdep.c (avr_gdbarch_init): Update.
12129         * arm-tdep.c (arm_gdbarch_init): Update.
12130         * stack.c (frame_info): Update, call predicate.
12131         * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12132         * frame.c (legacy_get_prev_frame): Update, call predicate..
12133         * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12134         * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12135         * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12136         invocation.
12137         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12138         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12139         * vax-tdep.c (vax_gdbarch_init): Ditto.
12140
12141         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12142         function.
12143
12144 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12145
12146         * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12147         initializations.
12148
12149 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12150
12151         * tui/tui-windata.c: Include "gdb_string.h".
12152         * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12153         * tui/tui-layout.c, tui/tui-command.c: Ditto.
12154         * Makefile.in: Update dependencies.
12155
12156 2004-02-16  Daniel Jacobowitz  <drow@mvista.com>
12157
12158         * Makefile.in (infrun.o): Add $(gdb_assert_h).
12159         * infrun.c: Include "gdb_assert.h".
12160         (singlestep_ptid, saved_singlestep_ptid)
12161         (stepping_past_singlestep_breakpoint): New variables.
12162         (resume): Set singlestep_ptid.  Check for singlestep thread
12163         hop.
12164         (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12165         (handle_inferior_event): Handle singlestep thread hop.
12166
12167 2004-02-16  Andrew Cagney  <cagney@redhat.com>
12168
12169         * dwarf2-frame.c (dwarf2_frame_ops): New function.
12170         (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12171         (dwarf2_frame_init_reg): Ditto.
12172
12173         * printcmd.c (display_command): Check that EXP isn't NULL.  Fix
12174         suggested by Joshua Neuheisel
12175
12176         * configure.in: Always check for curses, including pdcurses.
12177         Warn, instead of error, when no curses are found.  Enable TUI when
12178         curses is available.
12179         * configure: Re-generate.
12180
12181 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12182
12183         * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12184         sh_sh4_register_convert_to_virtual.
12185         (sh_register_convert_to_raw): Rename from
12186         sh_sh4_register_convert_to_raw.
12187         (sh_pseudo_register_read): Accomodate above name change.
12188         (sh_pseudo_register_write): Ditto.
12189
12190 2004-02-16  Corinna Vinschen  <vinschen@redhat.com>
12191
12192         * sh-tdep.c (sh_generic_register_name): Remove.
12193         (sh_gdbarch_init): Use sh_sh_register_name in default case.
12194
12195 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12196
12197         * configure.in (build_warnings): Add -Wunused-function.
12198         * configure: Re-generate.
12199
12200         * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12201         * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12202
12203         * procfs.c (procfs_init_inferior): Assume that
12204         START_INFERIOR_TRAPS_EXPECTED is defined.
12205         * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12206         * config/ns32k/tm-nbsd.h: Delete file,
12207         START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12208
12209         * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12210         * config/vax/tm-vax.h: Delete file.
12211
12212         * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12213         * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12214         * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12215         * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12216         * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12217         * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12218         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12219
12220 2004-02-15  Mark Kettenis  <kettenis@gnu.org>
12221
12222         * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12223         * dwarf2-frame.c (dwarf2_frame_data): New variable.
12224         (struct dwarf2_frame_ops): New.
12225         (dwarf2_frame_default_init_reg): New function, based on
12226         dwarf2_frame_init_reg.
12227         (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12228         (dwarf2_frame_init_reg): Call architecture-specific function.
12229         (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12230         (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12231         instead of dwarf2_frame_data.
12232         (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12233         Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12234
12235 2004-02-15  Andrew Cagney  <cagney@redhat.com>
12236
12237         * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12238         register_gdbarch_swap.
12239         (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12240         * f-lang.c (_initialize_f_language): Update, use
12241         DEPRECATED_REGISTER_GDBARCH_SWAP.
12242         * remote.c (_initialize_remote): Ditto.
12243         * regcache.c (_initialize_regcache): Ditto.
12244         * parse.c (_initialize_parse): Ditto.
12245         * infrun.c (_initialize_infrun): Ditto.
12246         * mi/mi-main.c (_initialize_mi_main): Ditto.
12247         * gdbtypes.c (_initialize_gdbtypes): Ditto.
12248
12249         * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12250         poking .cacheable directly.
12251         * symfile.c (symfile_bfd_open): Ditto.
12252
12253         * Makefile.in: Update all dependencies.
12254
12255         * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12256         (.y.c, .l.c): Specify implicit rule.  Instead of .tab.c, generate
12257         .c.  Update references.  Delete unnecessary .tab.c and -lex.c rules.
12258         (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12259         (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12260
12261 2004-02-14  Andrew Cagney  <cagney@redhat.com>
12262
12263         * arch-utils.c (legacy_convert_register_p): Check
12264         DEPRECATED_REGISTER_CONVERTIBLE_P.
12265         * findvar.c (value_of_register): Ditto.
12266
12267         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12268         * gdbarch.h, gdbarch.c: Re-generate.
12269         * arch-utils.c (deprecated_register_convertible_not): Delete.
12270         * arch-utils.h (deprecated_register_convertible_not): Delete.
12271         * mi/mi-main.c (get_register): Update.  Update copyright.
12272         * infcmd.c (default_print_registers_info): Update.
12273
12274         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12275         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12276         (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12277         * gdbarch.h, gdbarch.c: Re-generate.
12278         * frame.c (deprecated_get_next_frame_hack): Delete function.
12279         * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12280         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12281         Update.
12282         * infcall.c (call_function_by_hand): Update.
12283
12284 2004-02-14  Elena Zannoni  <ezannoni@redhat.com>
12285
12286         * symfile.c (init_entry_point_info, entry_point_address): Move
12287         from here...
12288         * objfiles.c (init_entry_point_info, entry_point_address):..to
12289         here.
12290         * symfile.h (init_entry_point_info, entry_point_address): Remove
12291         prototypes.
12292         * objfiles.h (init_entry_point_info, entry_point_address):Add
12293         prototypes.
12294         * cris-tdep.c: Remove include of symfile.h. Add include of
12295         objfiles.h.
12296         * infcall.c: Ditto.
12297         * mcore-tdep.c: Ditto.
12298         * mn10300-tdep.c: Ditto.
12299         * sh64-tdep.c: Ditto.
12300         * v850-tdep.c: Ditto.
12301         * arm-tdep.c: Remove include of symfile.h.
12302         * blockframe.c: Ditto.
12303         * coffread.c: Ditto.
12304         * dbxread.c: Ditto.
12305         * dwarf2read.c: Ditto.
12306         * dwarfread.c: Ditto.
12307         * frv-tdep.c: Ditto.
12308         * ia64-tdep.c: Ditto.
12309         * mdebugread.c: Ditto.
12310         * mipsread.c: Ditto.
12311         * rs6000-tdep.c: Ditto.
12312         * s390-tdep.c: Ditto.
12313         * sh-tdep.c: Ditto.
12314         * xstormy16-tdep.c: Ditto.
12315         * gdbarch.sh: Remove include of symfile.h.
12316         * gdbarch.c: Regenerate.
12317         * solib-irix.c (enable_break): Use entry_point_address().
12318         Add comment about include file.
12319         * xcoffread.c: Add comment about include file.
12320         * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12321         (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12322         (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12323         (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12324         (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12325
12326 2004-02-13  Andrew Cagney  <cagney@redhat.com>
12327
12328         * corelow.c (core_xfer_partial): Use "struct bfd_section".
12329         * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12330         copyright.
12331         * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12332
12333 2004-02-12  Fred Fish  <fnf@redhat.com>
12334
12335         * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12336          set_gdbarch_store_return_value.
12337
12338 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12339
12340         * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12341         (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12342         (interrupt_query): Ditto.
12343         (ofunc): Delete unused variable.
12344         * cris-tdep.c (cris_abi): Delete unused function.
12345         (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12346         (cris_get_wide_opcode, cris_get_short_size): Ditto.
12347         (cris_get_asr_quick_shift_steps): Ditto.
12348         (cris_skip_prologue_frameless_p): Ditto.
12349         * arm-tdep.c (arm_push_return_address): Delete unused function.
12350         (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12351         * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12352         * s390-tdep.c (s390_function_start): Delete unused function.
12353
12354 2004-02-12  Andrew Cagney  <cagney@redhat.com>
12355
12356         * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12357         gdbarch.h, gdbarch.c: Re-generate.
12358         * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12359         to generic_prologue_frameless_p.
12360         * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12361         * arch-utils.c (generic_prologue_frameless_p): Delete function.
12362
12363 2004-02-11  Daniel Jacobowitz  <drow@mvista.com>
12364
12365         * mips-linux-tdep.c: Include "frame.h".
12366         (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12367         (mips_linux_skip_resolver): New functions.
12368         (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12369         and set_gdbarch_in_solib_call_trampoline.
12370         * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12371         to after set_gdbarch_in_solib_return_trampoline.  Only set the
12372         solib hooks to mips16 functions if the OS ABI is unknown.
12373         * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12374         including "config/tm-linux.h".
12375         (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12376         * Makefile.in (mips-linux-tdep.o): Update.
12377
12378 2004-02-11  David Carlton  <carlton@kealia.com>
12379
12380         * linespec.c (decode_compound): Only look for a class symbol when
12381         considering all but the rightmost component.
12382
12383 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12384
12385         * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12386         abi code are are separatly grouped.
12387
12388 2004-02-11  Andrew Cagney  <cagney@redhat.com>
12389
12390         * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12391         * gdbarch.h, gdbarch.c: Re-generate.
12392         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12393         * v850-tdep.c (v850_gdbarch_init): Update.
12394         * sh64-tdep.c (sh64_gdbarch_init): Update.
12395         * sh-tdep.c (sh_gdbarch_init): Update.
12396         * s390-tdep.c (s390_gdbarch_init): Update.
12397         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12398         * mips-tdep.c (mips_gdbarch_init): Update.
12399         * mcore-tdep.c (mcore_gdbarch_init): Update.
12400         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12401         * m32r-tdep.c (m32r_gdbarch_init): Update.
12402         * ia64-tdep.c (ia64_gdbarch_init): Update.
12403         * hppa-tdep.c (hppa_gdbarch_init): Update.
12404         * h8300-tdep.c (h8300_gdbarch_init): Update.
12405         * frv-tdep.c (frv_gdbarch_init): Update.
12406         * d10v-tdep.c (d10v_gdbarch_init): Update.
12407         * cris-tdep.c (cris_gdbarch_init): Update.
12408         * avr-tdep.c (avr_gdbarch_init): Update.
12409         * arm-tdep.c (arm_gdbarch_init): Update.
12410         * alpha-tdep.c (alpha_gdbarch_init): Update.
12411
12412 2004-02-11  Corinna Vinschen  <vinschen@redhat.com>
12413
12414         * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12415         comma.
12416         (sh_sh4al_dsp_register_name): Ditto.
12417
12418 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12419
12420         * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12421         (mips_init_frame_pc_first): Delete function.
12422         (mips_frame_saved_pc): Delete function.
12423         (mips_frame_chain): Delete function.
12424         (mips_init_extra_frame_info): Delete function.
12425         (mips_xfer_register): Delete unused variable "reg".
12426         (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12427         (mips_n32n64_return_value): Delete unused variable "reg".
12428         (mips_n32n64_return_value): Delete unused variable "pos".
12429         (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12430         (mips_o32_return_value): Delete unused variable "pos".
12431         (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12432         (mips_print_fp_register): Delete unused variable "namelen"
12433         (mips_print_fp_register): Delete unused variable "flt2"
12434         (get_frame_pointer): Delete function.
12435         (cached_proc_desc): Delete static variable.
12436         (mips_pop_frame): Delete function.
12437         (mips_find_saved_regs): Delete function.
12438         (mips_get_saved_register): Delete function.
12439         (mips_saved_pc_after_call): Delete function.
12440         (SIGFRAME_BASE): Delete macro.
12441         (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12442         (SIGFRAME_PC_OFF): Delete macro.
12443         (SIGFRAME_REGSAVE_OFF): Delete macro.
12444         (mips_dump_tdep): Do not print deleted macro definitions.
12445
12446 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12447
12448         * Makefile.in (SFILES): Remove explictly listed tui files.
12449         (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12450
12451 2004-02-10  Jeff Johnston  <jjohnstn@redhat.com>
12452
12453         * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12454         to use paddr functions to format ia64 addresses and long values.
12455         (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12456         (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12457         (get_kernel_table, ia64_find_proc_info_x): Ditto.
12458         (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12459         (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12460
12461 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12462
12463         * defs.h: Do not include "tui.h".
12464         * gdb_curses.h: New file.
12465         * tui/tui-hooks.h: New file.
12466         * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12467         (tui_install_hooks, tui_remove_hooks): Delete declarations.
12468         (tui_initialize_io): Delete declaration.
12469         (tui_initialize_readline: Delete redundant declaration.
12470         (struct tui_point): Delete definition.
12471         * tui/tui-data.h (struct tui_point): Define.
12472         * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12473         * utils.c: Include "tui/tui.h".
12474         * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12475         * printcmd.c [TUI]: Include "tui/tui.h".
12476         * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12477         * tui/tui-command.c: Include "gdb_curses.h".
12478         * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12479         * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12480         * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12481         * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12482         * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12483         * Makefile.in: Update all dependencies.
12484         (tui_hooks_h, gdb_curses_h): Define.
12485         (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12486
12487 2004-02-10  Elena Zannoni  <ezannoni@redhat.com>
12488
12489         * objfiles.h (struct objfile): Remove unused fields auxf1 and
12490         auxf2. Add comments about some other rarely used fields.
12491
12492 2004-02-10  Andrew Cagney  <cagney@redhat.com>
12493
12494         * Makefile.in (init.c): Fix script removing duplicates. Problem
12495         reported by Peter Schauer.
12496
12497 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12498
12499         * bcache.c (bcache_xmalloc): Use obstack_init instead of
12500         obstack_specify_allocation.
12501         * objfiles.c (allocate_objfile): Ditto.
12502         * solib-sunos.c (solib_add_common_symbols)
12503         (allocate_rt_common_objfile): Ditto.
12504         * symfile.c (reread_symbols): Ditto.
12505         * gdb_obstack.h: Add comment.
12506
12507 2004-02-09  Elena Zannoni  <ezannoni@redhat.com>
12508
12509         * linespec.c (decode_line_1, locate_first_half)
12510         (decode_compound, lookup_prefix_sym): Update comments. Delete old
12511         commented out code.
12512
12513 2004-02-09  Daniel Jacobowitz  <drow@mvista.com>
12514
12515         * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12516         obstack_free.
12517
12518 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12519
12520         * blockframe.c (find_pc_partial_function): If find_pc_overlay
12521         fails, try find_pc_section.  Fix PR c++/1267.
12522         * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12523         instead of find_pc_mapped_section.
12524         (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12525         not default to the section containing PC.  Fix PR symtab/1519.
12526
12527 2004-02-09  Andrew Cagney  <cagney@redhat.com>
12528
12529         * Makefile.in (mips-tdep.o): Update dependencies.
12530         * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12531         "trad-frame.h".
12532         (mips_unwind_pc): Return the pseudo PC register.
12533         (mips_unwind_dummy_id): New function.
12534         (mips16_fetch_instruction): New function.
12535         (mips32_fetch_instruction): New function.
12536         (struct mips_frame_cache): Define.
12537         (mips_mdebug_frame_cache): New function.
12538         (mips_mdebug_frame_this_id): New function.
12539         (mips_mdebug_frame_prev_register): New function.
12540         (mips_mdebug_frame_unwind): Define.
12541         (mips_mdebug_frame_sniffer): New function.
12542         (mips_mdebug_frame_base_address): New function.
12543         (mips_mdebug_frame_base): Define.
12544         (mips_mdebug_frame_base_sniffer): New function.
12545         (mips_gdbarch_init): Append unwind and base sniffers.  Set
12546         unwind_dummy_id.
12547
12548 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12549
12550         * frame.c: Print both the register number and name.
12551
12552         * Makefile.in (init.c): Eliminate duplicates.  Combine two greps
12553         and a sed into a single sed.  Make .c and .o patterns more robust.
12554         (OBS): Delete.
12555         (INIT_FILES): Replace OBS with COMMON_OBS.
12556         (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12557
12558 2004-02-08  Mark Kettenis  <kettenis@gnu.org>
12559
12560         * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12561         the PT_WCOOKIE request.
12562
12563 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12564
12565         * mips-tdep.c (mips_unwind_pc): New function.
12566         (mips_gdbarch_init): Set mips_unwind_pc.
12567
12568         * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12569         (get_frame_id): Allow the UNKNOWN_FRAME.
12570         (frame_register_unwind, get_frame_type): Ditto.
12571
12572         * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12573         and DEPRECATED_FP_REGNUM.  Don't assume that the lack of
12574         unwind_dummy_id indicates a legacy frame.
12575
12576         * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12577         * configure: Re-generate.
12578
12579         * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12580         methods.
12581
12582 2004-02-08  Andrew Cagney  <cagney@redhat.com>
12583
12584         * configure.in (CONFIG_ALL): Set to Makefile target, and not
12585         makefile macro.
12586         * configure: Re-generate.
12587         (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12588         * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12589         (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12590         (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12591         (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12592         (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12593         (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12594         (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12595         (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12596         (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12597
12598 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12599
12600         * Makefile.in: Update all dependencies.
12601
12602         * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12603         * configure: Re-generate.
12604         * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12605         (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12606         (COMMON_OBS): Add "main.o" and "annotate.o".
12607         (ANNOTATE_OBS): Delete.
12608         (OBS): Remove ANNOTATE_OBS.
12609         (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12610         CONFIG_INITS.
12611         (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12612         against CONFIG_OBS and "main.o".
12613         (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12614         (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12615
12616         * tui/tui-command.c: Include "gdb_string.h", delete register
12617         attribute, use ISO-C function signatures.
12618         * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12619         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12620         * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12621         * tui/tui.c: Ditto.
12622
12623         * tui/tui-command.c: Change variable and function names to lower
12624         case.
12625         * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12626         * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12627         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12628         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12629         * tui/tui-winsource.c, tui/tui.c: Ditto.
12630
12631 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12632
12633         * buildsym.c (free_pending_blocks, finish_block)
12634         (record_pending_block, make_blockvector, end_symtab): Replace
12635         symbol_obstack with objfile_obstack.
12636         * coffread.c (process_coff_symbol, coff_read_struct_type)
12637         (coff_read_enum_type): Ditto.
12638         * cp-namespace.c (initialize_namespace_symtab)
12639         (check_one_possible_namespace_symbol): Ditto.
12640         * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12641         (dwarf2_symbol_mark_computed): Ditto.
12642         * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12643         * elfread.c (elf_symtab_read): Ditto.
12644         * hpread.c (hpread_symfile_init, hpread_symfile_init)
12645         (hpread_read_enum_type, hpread_read_function_type)
12646         (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12647         Ditto.
12648         * jv-lang.c (get_java_class_symtab, add_class_symbol)
12649         (java_link_class_type): Ditto.
12650         * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12651         (new_symbol): Ditto.
12652         * minsyms.c (install_minimal_symbols): Ditto.
12653         * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12654         (terminate_minimal_symbol_table): Replace symbol_obstack with
12655         objfile_obstack.
12656         (free_objfile): Remove freeing of symbol_obstack.
12657         * objfiles.h: Remove symbol_obstack field.
12658         * pa64solib.c (add_to_solist): Replace symbol_obstack with
12659         objfile_obstack.
12660         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12661         symbol_obstack.
12662         (solib_add_common_symbols): Replace symbol_obstack with
12663         objfile_obstack.
12664         * somsolib.c (som_solib_add): Ditto.
12665         * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12666         (common_block_start, common_block_end): Ditto.
12667         * symfile.c (reread_symbols): Remove freeing and init of
12668         symbol_obstack.
12669         (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12670         * symfile.h: Update comment.
12671         * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12672         stats printing.
12673         * symtab.c (symbol_set_names): Replace symbol_obstack with
12674         objfile_obstack.
12675         * symtab.h (struct general_symbol_info, struct minimal_symbol):
12676         Update comments.
12677         * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12678         (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12679         objfile_obstack.
12680
12681 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12682
12683         * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12684         "ansidecl.h".  Do not undef "reg" and "chtype".  Fix case of
12685         fields and variables.
12686         * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12687         (m_beInvisible): Delete macro.
12688         * tui/tui-data.h: Fix case case fields and variables.
12689         (m_genWinPtrIsNull): Delete macro.
12690         (tui_win_list): Rename winList.
12691         (TUI_SRC_WIN): Rename srcWin.
12692         (TUI_DISASM_WIN): Rename disassemWin.
12693         (TUI_DATA_WIN): Rename dataWin.
12694         (TUI_CMD_WIN): Rename cmdWin.
12695         (m_genWinPtrNotNull): Delete macro.
12696         (m_winPtrIsNull): Delete macro.
12697         (m_winPtrNotNull): Delete macro.
12698         (tui_win_is_source_type): Replace m_winIsSourceType
12699         (tui_win_is_auxillary): Replace m_winIsAuzillary.
12700         (tui_win_has_locator): Replace m_hasLocator.
12701         (tui_set_win_highlight): Replace m_setWinHighlightOn and
12702         m_setWinHighlightOff.
12703         * tui/tui-data.c: Update references.
12704         (tui_win_is_source_type, tui_set_win_highlight): New functions.
12705         (tui_win_has_locator, tui_win_is_auxillary): New functions.
12706         * tui/tui-command.c, tui/tui-disasm.c: Update references.
12707         * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12708         * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12709         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12710         * tui/tui-winsource.c, tui/tui.c: Ditto.
12711
12712 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
12713
12714         * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12715         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12716         StackGhost.
12717
12718         * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12719         variable `i6' to `i7'.
12720         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12721
12722 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12723
12724         * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12725         (TuiPoint, TuiPointPtr): Ditto.
12726         (TuiStatus, TuiStatusPtr): Ditto.
12727         (TuiWinType, TuiWinTypePtr): Ditto.
12728         (struct tui_point): Rename _TuiPoint.
12729         (tui_get_low_disassembly_address): Rename
12730         tuiGetLowDisassemblyAddress.
12731         (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12732         (tuiFree): Delete declaration.
12733         (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12734         (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12735         * tui/tui.c (tuiFree): Delete function.
12736         * cli/cli-cmds.c (disassemble_command): Update references.
12737         * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12738         * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12739         * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12740         * tui/tui-winsource.c: Ditto.
12741
12742 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12743
12744         * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12745         coffstab_build_psymtabs, elfstab_build_psymtabs)
12746         (stabsect_build_psymtabs): Replace psymbol_obstack with
12747         objfile_obstack.
12748         * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12749         * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12750         Ditto.
12751         * dwarfread.c (scan_compilation_units): Ditto.
12752         * elfread.c (elfstab_offset_sections): Ditto.
12753         * hppa-tdep.c (read_unwind_info): Ditto.
12754         * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12755         (hpread_end_psymtab): Ditto.
12756         * mdebugread.c (mdebug_build_psymtabs, add_pending)
12757         (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12758         Ditto.
12759         * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12760         * objfiles.c (add_to_objfile_sections)
12761         (build_objfile_section_table): Ditto.
12762         (allocate_objfile): Remove init of psymbol_obstack.
12763         (free_objfile): Remove freeing of psymbol_obstack.
12764         * objfiles.h (struct objfile): Remove field
12765         psymbol_obstack. Update comments.
12766         * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12767         psymbol_obstack with objfile_obstack.
12768         * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12769         psymbol_obstack.
12770         * somread.c (som_symfile_offsets, init_import_symbols)
12771         (init_export_symbols): Replace psymbol_obstack with
12772         objfile_obstack.
12773         * somsolib.c (som_solib_add_solib_objfile): Ditto.
12774         * symfile.c (default_symfile_offsets, syms_from_objfile)
12775         (reread_symbols): Remove freeing and init of psymbol_obstack.
12776         (cashier_psymtab): Update comment.
12777         * symmisc.c (print_objfile_statistics): Don't report stats for
12778         psymbol obstack.
12779         * symtab.h (struct general_symbol_info, struct partial_symtab):
12780         Update comments.
12781         * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12782         (xcoff_symfile_offsets): Replace psymbol_obstack with
12783         objfile_obstack.
12784
12785 2004-02-07  Elena Zannoni  <ezannoni@redhat.com>
12786
12787         * objfiles.h (struct objfile): Add objfile_obstack field.
12788         Remove type_obstack field.
12789
12790         * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12791         read_structure_scope read_enumeration, new_symbol): Replace
12792         type_obstack with objfile_obstack.
12793         * dwarfread.c (struct_type, enum_type): Ditto.
12794         * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12795         (lookup_fundamental_type): Ditto.
12796         * gdbtypes.h (TYPE_ALLOC): Ditto.
12797         * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12798         (hpread_read_doc_function_type, hpread_read_struct_type)
12799         (fix_static_member_physnames, hpread_read_array_type)
12800         (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12801         * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12802         (java_link_class_type): Ditto.
12803         * mdebugread.c (parse_type): Ditto.
12804         * objfiles.c (allocate_objfile, free_objfile): Ditto.
12805         * solib-sunos.c (solib_add_common_symbols): Ditto.
12806         * stabsread.c (define_symbol, read_type, read_member_functions,
12807         read_cpp_abbrev, read_one_struct_field): Ditto.
12808         * symfile.c (reread_symbols): Ditto.
12809         * symmisc.c (print_objfile_statistics): Ditto.
12810
12811 2004-02-07  Andrew Cagney  <cagney@redhat.com>
12812
12813         * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12814         (tui_exec_info_content): Rename TuiExecInfoContent.
12815         (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12816         (TuiWinInfo, TuiWinInfoPtr): Ditto.
12817         (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12818         (TuiList, TuiListPtr): Ditto.
12819         (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12820         (TuiDataType, TuiDataTypePtr): Ditto.
12821         (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12822         (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12823         (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12824         (TuiSourceElement, TuiSourceElementPtr): Ditto.
12825         (TuiDataElement, TuiDataElementPtr): Ditto.
12826         (TuiWinElement, TuiWinElementPtr): Ditto.
12827         (TuiDataInfo, TuiDataInfoPtr): Ditto.
12828         (TuiCommandElement, TuiCommandElementPtr): Ditto.
12829         (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12830         (TuiWhichElement, TuiWhichElementPtr): Ditto.
12831         (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12832         (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12833         * tui/tui-command.c, tui/tui-data.c: Update references.
12834         * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12835         * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12836         * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12837         * tui/tui-winsource.c, tui/tui.c: Ditto.
12838
12839 2004-02-07  Mark Kettenis  <kettenis@gnu.org>
12840
12841         * dwarf2-frame.h: Update copyright.
12842         (enum dwarf2_frame_reg_rule): New.
12843         (struct dwarf2_frame_state_reg): New.
12844         (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12845         * dwarf2-frame.c: Update copyright.
12846         (enum dwarf2_reg_rule): Remove.
12847         (struct dwarf2_frame_state): Remove defenition of `struct
12848         dwarf2_frame_state_reg'.
12849         (read_reg): Call get_frame_arch to get the architecture instead of
12850         using CURRENT_GDBARCH.
12851         (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12852         DWARF2_FRAME_.
12853         (dwarf2_frame_init_reg): New function.
12854         (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12855         instead of using CURRENT_GDBARCH.  Call dwarf2_frame_init_reg to
12856         initialize the register state.  Prefix old `enum dwarf2_reg_rule'
12857         tags with DWARF2_FRAME_.
12858         (dwarf2_frame_prev_register): Call get_frame_arch to get the
12859         architecture instead of using CURRENT_GDBARCH.  Prefix old `enum
12860         dwarf2_reg_rule' tags with DWARF2_FRAME_.
12861
12862 2004-02-06  Andrew Cagney  <cagney@redhat.com>
12863
12864         * tui/tui-data.h (struct tui_list): Rename _TuiList.
12865         (enum tui_data_type): Rename _TuiDataType.
12866         (struct tui_layout_def): Rename _TuiLayoutDef.
12867         (struct tui_source_element): Rename _TuiSourceElement.
12868         (struct tui_data_element): Rename _TuiDataElement.
12869         (struct tui_command_element): Rename _TuiCommandElement.
12870         (struct tui_locator_element): Rename _TuiLocatorElement.
12871         (union tui_which_element): Define.
12872         (struct tui_win_element): Rename _TuiWinElement.
12873         (struct tui_data_info): Rename _TuiDataInfo.
12874         (struct tui_source_info): Rename _TuiSourceInfo.
12875         (struct tui_command_info): Rename _TuiCommandInfo.
12876         (tui_initialize_static_data): Rename initializeStaticData.
12877         (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12878         (tui_alloc_win_info): Rename allocWinInfo.
12879         (tui_init_generic_part): Rename initGenericPart.
12880         (tui_init_win_info): Rename initWinInfo.
12881         (tui_alloc_content): Rename allocContent.
12882         (tui_add_content_elements): Rename addContentElements.
12883         (tui_init_content_element): Rename initContentElement.
12884         (tui_free_window): Rename freeWindow.
12885         (tui_free_win_content): Rename freeWinContent.
12886         (tui_free_data_content): Rename freeDataContent.
12887         (tui_free_all_source_wins_content): Rename
12888         freeAllSourceWinsContent.
12889         (tui_del_window): Rename tuiDelWindow.
12890         (tui_del_data_windows): Rename tuiDelDataWindows.
12891         (tui_partial_win_by_name): Rename partialWinByName.
12892         (tui_win_name): Rename winName.
12893         (tui_current_layout): Rename currentLayout.
12894         (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12895         (tui_term_height): Rename termHeight.
12896         (tui_set_term_height_to): Rename setTermHeightTo.
12897         (tui_term_width): Rename termWidth.
12898         (tui_set_term_width_to): Rename setTermWidthTo.
12899         (tui_set_gen_win_origin): Rename setGenWinOrigin.
12900         (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12901         (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12902         (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12903         (tui_source_windows): Rename sourceWindows.
12904         (tui_clear_source_windows): Rename clearSourceWindows.
12905         (tui_clear_source_windows_detail): Rename
12906         clearSourceWindowsDetail.
12907         (tui_clear_win_detail): Rename clearWinDetail.
12908         (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12909         (tui_default_tab_len): Rename tuiDefaultTabLen.
12910         (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12911         (tui_win_with_focus): Rename tuiWinWithFocus.
12912         (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12913         (tui_layout_def): Rename tuiLayoutDef.
12914         (tui_win_resized): Rename tuiWinResized.
12915         (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12916         (tui_next_win): Rename tuiNextWin.
12917         (tui_prev_win): Rename tuiPrevWin.
12918         (tui_add_to_source_windows): Rename addToSourceWindows.
12919         * tui/tui-winsource.c, tui/tui-win.c: Update references.
12920         * tui/tui-layout.c, tui/tui-source.c: Ditto.
12921         * tui/tui-stack.c, tui/tui-io.c: Ditto.
12922         * tui/tui.c, tui/tui-data.c: Ditto.
12923         * tui/tui-interp.c, tui/tui-data.c: Ditto.
12924         * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12925
12926         * tui/tui-source.h: Update copyright.  Include "tui-data.h".
12927         (struct symtab): Declare.
12928         (tui_set_source_content): Rename tuiSetSourceContent.
12929         (tui_show_symtab_source): Rename tuiShowSource.
12930         (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12931         (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12932         * tui/tui-source.c: Update copyright.  Update references.
12933         * tui/tui-win.c, tui/tui-winsource.c: Update references.
12934         * tui/tui-stack.c: Update references.
12935
12936         * tui/tui-win.h: Update copyright.  Include "tui-data.h".
12937         (struct tui_win_info): Declare.
12938         (tui_scroll_forward): Rename tuiScrollForward.
12939         (tui_scroll_backward): Rename tuiScrollBackward.
12940         (tui_scroll_left): Rename tuiScrollLeft.
12941         (tui_scroll_right): Rename tuiScrollRight.
12942         (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12943         (tui_resize_all): Rename tuiResizeAll.
12944         (tui_refresh_all_win): Rename tuiRefreshAll.
12945         (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12946         * tui/tui-layout.c, * tui/tui-io.c: Update references.
12947         * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12948         * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12949
12950         * tui/tui-windata.h: Update copyright.  Include "tui-data.h".
12951         (tui_erase_data_content): Rename tuiEraseDataContent.
12952         (tui_display_all_data): Rename tuiDisplayAllData.
12953         (tui_check_data_values): Rename tuiCheckDataValues.
12954         (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12955         (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12956         (tui_first_data_element_no_in_line): Rename
12957         tuiFirstDataElementNoInLine.
12958         (tui_delete_data_content_windows): Rename
12959         tuiDeleteDataContentWindows.
12960         (tui_refresh_data_win): Rename tuiRefreshDataWin.
12961         (tui_display_data_from): Rename tuiDisplayDataFrom.
12962         (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12963         * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12964         * tui/tui-win.c, tui/tui-regs.c: Update references.
12965         * tui/tui-layout.c, tui/tui.c: Update references.
12966
12967         * tui/tui-wingeneral.h: Update copyright.
12968         (m_allBeVisible): Delete macro.
12969         (m_allBeInvisible): Delete macro.
12970         (struct tui_gen_win_info): Declare.
12971         (struct tui_win_info): Declare.
12972         (tui_unhighlight_win): Rename unhighlightWin.
12973         (tui_make_visible, tui_make_invisible): Replace makeVisible.
12974         (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12975         (tui_make_window): Rename makeWindow.
12976         (tui_copy_win): Rename copyWin.
12977         (tui_box_win): Rename boxWin.
12978         (tui_highlight_win): Rename highlightWin.
12979         (tui_check_and_display_highlight_if_needed): Rename
12980         checkAndDisplayHighlightIfNeeded.
12981         (tui_refresh_all): Rename refreshAll.
12982         (tui_delete_win): Rename tuiDelwin.
12983         (tui_refresh_win): Rename tuiRefreshWin.
12984         * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12985         (tui_make_visible, tui_make_invisible): New functions.
12986         (tui_make_all_visible, tui_make_all_invisible): New functions.
12987         (make_all_visible): Rename makeAllVisible.
12988         * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12989         * tui/tui-data.c, tui/tui-winsource.c: Update references.
12990         * tui/tui-windata.c, tui/tui-win.c: Update references.
12991         * tui/tui-regs.c, tui/tui-layout.c: Update references.
12992         * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12993
12994 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
12995
12996         * proc-api.c (write_with_trace): Initialize local variable to
12997         silence compiler warning.
12998
12999 2004-02-06  Andrew Cagney  <cagney@redhat.com>
13000
13001         * tui/tui-source.h: Do not include "defs.h".
13002         (struct tui_win_info): Declare.
13003         (tui_set_source_content_nil): Declare.
13004         * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13005         (union tui_line_or_address): Rename _TuiLineOrAddress.
13006         * tui/tui-winsource.h: Update copyright.  Include "tui-data.h".
13007         (tui_update_source_window): Rename tuiUpdateSourceWindow.
13008         (tui_update_source_window_as_is): Rename
13009         tuiUpdateSourceWindowAsIs.
13010         (tui_update_source_windows_with_addr): Rename
13011         tuiUpdateSourceWindowsWithAddr.
13012         (tui_update_source_windows_with_line): Rename
13013         tuiUpdateSourceWindowsWithLine.
13014         (tui_clear_source_content): Rename tuiClearSourceContent.
13015         (tui_erase_source_content): Rename tuiEraseSourceContent.
13016         (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13017         (tui_show_source_content): Rename tuiShowSourceContent.
13018         (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13019         (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13020         (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13021         (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13022         (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13023         (tui_update_exec_info): Rename tuiUpdateExecInfo.
13024         (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13025         (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13026         (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13027         (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13028         (struct tui_win_info): Declare.
13029         * tui/tui-stack.c: Update references.
13030         * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13031         * tui/tui-win.c, tui/tui-source.c: Ditto.
13032         * tui/tui.c, tui/tui-disasm.c: Ditto.
13033
13034 2004-02-06  Mark Kettenis  <kettenis@gnu.org>
13035
13036         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13037         of UCONTEXT_ADDR.  Fixes PR backtrace/1545.
13038
13039 2004-02-05  Mark Kettenis  <kettenis@gnu.org>
13040
13041         * infrun.c (handle_inferior_event): Allow for breakpoint
13042         instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13043         and SIGEMT.  Update comments.
13044         * NEWS (Revised SPARC target): Mention support for non-executable
13045         stack.
13046
13047 2004-02-04  Mark Kettenis  <kettenis@gnu.org>
13048
13049         * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13050         * inftarg.c: Update copyright year.
13051         (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13052         * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13053         (sparc_xfer_wcookie): New function.
13054         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13055         * Makefile.in (sparc-nat.o): Update dependencies.
13056         * config/sparc/nm-nbsd.h: Include "target.h".
13057         (NATIVE_XFER_WCOOKIE): New define.
13058         (sparc_xfer_wcookie): New prototype.
13059
13060 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13061
13062         * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13063         SYSCALL_TRAP function.
13064         (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13065
13066 2004-02-04  Andrew Cagney  <cagney@redhat.com>
13067             Daniel Jacobowitz  <drow@mvista.com>
13068
13069         * objfiles.h: Delete comments refering to inside_entry_func and
13070         DEPRECATED_FRAME_CHAIN_VALID.
13071         * defs.h (inside_entry_func): Update prototype..
13072         * blockframe.c (inside_entry_func): Rename to
13073         legacy_inside_entry_func.  Add new inside_entry_func taking a frame.
13074         * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13075
13076 2004-02-03  Jeff Johnston  <jjohnstn@redhat.com>
13077
13078         * breakpoint.c (struct captured_parse_breakpoint_args):  Move
13079         outside of #ifdef SOLIB_ADD region.
13080         (do_restore_lang_radix_cleanup): Ditto.
13081         (resolve_pending_breakpoint): Ditto.
13082
13083 2004-02-03  Andrew Cagney  <cagney@redhat.com>
13084
13085         * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13086         (process_note_abi_tag_sections): Delete unused function.
13087         (ia64_read_fp): Delete unused function.
13088         (gdbarch_extract_struct_value_address): Delete declaration.
13089
13090 2004-02-02  Andrew Cagney  <cagney@redhat.com>
13091
13092         * vax-tdep.c (vax_frame_chain): Delete call to
13093         deprecated_inside_entry_file.
13094         * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13095
13096 2004-02-02  Mark Kettenis  <kettenis@gnu.org>
13097
13098         * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13099         column that's "empty" or "same value" when eliminating REG_RA
13100         rules.
13101
13102 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13103
13104         * NEWS: Add information about new pending breakpoint support.
13105
13106 2004-02-02  Jeff Johnston  <jjohnstn@redhat.com>
13107
13108         * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13109         and pending fields for pending breakpoint support.
13110         * breakpoint.c (breakpoint_enabled): Add check for not pending.
13111         (condition_command): Only parse condition if not a pending
13112         breakpoint.
13113         (print_one_breakpoint): Add support for pending breakpoints.
13114         (describe_other_breakpoints): Add checks to verify we are not
13115         dealing with pending breakpoints.
13116         (check_duplicates): Don't check pending breakpoints.
13117         (set_raw_breakpoint): Initialize pending flag.
13118         (do_restore_lang_radix_cleanup): New cleanup routine.
13119         (resolve_pending_breakpoint): New function.
13120         (re_enable_breakpoints_in_shlibs): Try and resolve any
13121         pending breakpoints via resolve_pending_breakpoint.
13122         (mention): Add pending breakpoint support.
13123         (parse_breakpoint_sals): Add new parameter to pass to
13124         decode_line_1 to indicate silent errors when files or functions
13125         are not found.  Change all callers.
13126         (do_captured_parse_breakpoint): New function.
13127         (break_command_1): Change prototype to return an rc value and to
13128         take an optional pending breakpoint pointer.  Support creating
13129         a pending breakpoint if a "not found" form of error occurs when
13130         parsing the breakpoint.  Also support resolving an existing pending
13131         breakpoint and be silent if the resolution fails.
13132         (create_breakpoints): Change prototype to take pending breakpoint
13133         pointer.  When resolving a pending breakpoint, use the new pointer
13134         to provide a conditional or commands added by the end-user.
13135         (delete_breakpoint): Add appropriate check for pending.
13136         (breakpoint_re_set_one): Ditto.
13137         (do_enable_breakpoint): Ditto.
13138
13139 2004-02-02  David Carlton  <carlton@kealia.com>
13140
13141         * valops.c (enum oload_classification): New.
13142         (find_overload_match): Break implementation into separate
13143         functions; delete #if 0'd code; look for symbols within
13144         namespaces.
13145         (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13146         (find_oload_champ,oload_method_static,classify_oload_match): New.
13147         * cp-support.h: Add declaration for cp_func_name; update
13148         declaration for make_symbol_overload_list.
13149         * cp-support.c (cp_func_name): New.
13150         (overload_list_add_symbol): Fix comment, use
13151         SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13152         (make_symbol_overload_list): Take a function name and a namespace
13153         instead of a symbol; change implementation.
13154         (make_symbol_overload_list_using): New.
13155         (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13156
13157 2004-02-02  Fred Fish  <fnf@redhat.com>
13158
13159         * main.c (gdb_stdtarg): Move definition to group with other
13160         gdb_stdtarg definitions and update copyright years.
13161         * remote-sim.c (gdb_os_write_stderr): Write output to
13162         gdb_stdtargerr stream instead of gdb_stdtarg stream.
13163         (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13164         gdb_stderr stream and update copyright years.
13165
13166 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13167
13168         * Makefile.in (mips-linux-nat.o): Update dependencies.
13169         * mips-linux-nat.c: Include mips-tdep.h.
13170
13171 2004-02-01  Roland McGrath  <roland@redhat.com>
13172
13173         * sol-thread.c (sol_thread_xfer_partial): New function.
13174         (init_sol_thread_ops): Use that for to_xfer_partial hook.
13175         (init_sol_core_ops): Likewise.
13176
13177         * procfs.c (procfs_xfer_partial): New function.
13178         (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13179         * Makefile.in (procfs.o): Add $(auxv_h) dep.
13180
13181         * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13182         procfs_xfer_auxv function.
13183
13184         * procfs.c (procfs_make_note_section): If we can read
13185         TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13186         * linux-proc.c (linux_make_note_section): Likewise.
13187
13188         * auxv.h: New file.
13189         * auxv.c: New file.
13190         * Makefile.in (auxv_h): New variable.
13191         (COMMON_OBS): Add auxv.o here.
13192         (auxv.o): New target.
13193
13194         * corelow.c (core_xfer_partial): New function.
13195         (init_core_ops): Use it for core_ops.to_xfer_partial.
13196
13197         * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13198         * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13199         macro if that is defined.
13200
13201 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13202
13203         * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13204         and check the specified thread for each breakpoint.
13205         * breakpoint.h (bpstat_stop_status): Update prototype.
13206         * infrun.c (handle_inferior_event): Update calls to
13207         bpstat_stop_status.
13208
13209 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13210
13211         * Makefile.in (cli-cmds.o): Add $(readline_h).
13212
13213 2004-02-01  Daniel Jacobowitz  <drow@mvista.com>
13214
13215         * cli/cli-cmds.c: Include readline.h.
13216         (complete_command): Pass the start of the last word to
13217         complete_line.
13218
13219 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13220
13221         * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13222         argument, and change first argument to a CORE_ADDR.
13223         * breakpoint.h (bpstat_stop_status): Update prototype.
13224         * infrun.c (adjust_pc_after_break): Add a new comment.
13225         (handle_inferior_event): Update calls to bpstat_stop_status.
13226
13227 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13228
13229         * breakpoint.h: Update copyright years.
13230
13231 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13232
13233         * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13234         (bpstat_stop_status): Don't decrement PC.
13235         * breakpoint.h (software_breakpoint_inserted_here_p): Add
13236         prototype.
13237         * infrun.c (adjust_pc_after_break): New function.
13238         (handle_inferior_event): Call it, early.  Remove later references
13239         to DECR_PC_AFTER_BREAK.
13240         (normal_stop): Add commentary.
13241
13242 2004-01-31  Daniel Jacobowitz  <drow@mvista.com>
13243
13244         * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13245         2004-01-27 double-free fix.
13246
13247 2004-01-31  Mark Kettenis  <kettenis@gnu.org>
13248
13249         * sparc-tdep.c (sparc_fetch_wcookie): New function.
13250         (sparc32_frame_prev_register): Handle StackGhost.
13251         (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13252
13253 2004-01-29  Roland McGrath  <roland@redhat.com>
13254
13255         * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13256         * configure: Regenerated.
13257
13258         * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13259         * Makefile.in (procfs.o): Add dep.
13260
13261 2004-01-28  Andrew Cagney  <cagney@redhat.com>
13262
13263         * tui/tui-stack.h: Update copyright.
13264         (struct frame_info): Add opaque declaration.
13265         (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13266         (tui_show_locator_content): Rename tuiShowLocatorContent.
13267         (tui_show_frame_info): Rename tuiShowFrameInfo.
13268         * tui/tui-stack.c: Update copyright.  Update references.
13269         * tui/tui-winsource.c: Update references.
13270         * tui/tui-win.c: Update references.
13271         * tui/tui-layout.c: Update references.
13272         * tui/tui-hooks.c: Update copyright, update references.
13273         * tui/tui.c: Update copyright, update references.
13274         * tui/tui-disasm.c: Update references.
13275
13276 2004-01-28  David Carlton  <carlton@kealia.com>
13277
13278         * dwarf2read.c (add_partial_structure): Use demangled name if
13279         namespace equals "".
13280
13281 2004-01-27  Jim Blandy  <jimb@redhat.com>
13282
13283         Clean up misapplied patch:
13284         * dwarf2read.c (determine_prefix): Change one of the two forward
13285         declarations for 'determine_prefix_aux' to a declaration for this.
13286         (read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
13287         argument to 'die_specification'.
13288
13289         * dwarf2read.c (read_func_scope): Re-indent comment.
13290
13291 2004-01-27  Paul N. Hilfinger  <hilfinger@gnat.com>
13292
13293         * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13294         b->exp to NULL after freeing so that error during re-parsing or
13295         evaluation of expressions associated with breakpoint don't
13296         eventually lead to re-freeing of storage.
13297         Committed by Andrew Cagney.
13298
13299 2004-01-27  Andrew Cagney  <cagney@redhat.com>
13300
13301         * source.c (ambiguous_line_spec): Delete undefined declaration.
13302         * m32r-rom.c (m32r_set_board_address): Delete unused function.
13303         (m32r_set_server_address, m32r_set_download_path): Ditto.
13304         * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13305
13306 2004-01-27  Daniel Jacobowitz  <drow@mvista.com>
13307
13308         * dwarf2read.c: Update calls to changed and renamed functions, and
13309         references to moved variables.
13310
13311         (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13312         language, language_defn, list_in_scope, and ftypes members.
13313         (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13314         (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13315         (baseaddr): Remove globals.
13316
13317         (dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
13318         (set_cu_language, die_is_declaration, die_specification)
13319         (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13320         (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13321         (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13322         (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13323
13324         (dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
13325         cu.list_in_scope.  Don't initialize cu_header_offset.
13326         (add_partial_symbol): Add local baseaddr.
13327         (psymtab_to_symtab_1): Add local baseaddr.  Use
13328         objfile->section_offsets for consistency.  Don't initialize
13329         cu_header_offset; do initialize cu.header.offset and
13330         cu.list_in_scope.
13331         (read_file_scope, read_func_scope, read_lexical_block_scope)
13332         (dwarf_decode_lines, new_symbol): Add local baseaddr.
13333
13334 2004-01-27  Michael Chastain  <mec.gnu@mindspring.com>
13335
13336         * PROBLEMS: Add gdb/1516.
13337
13338 2003-12-29  Robert Millan  <robertmh@gnu.org>
13339
13340         Patch committed by Andrw Cagney.
13341         * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13342         * configure.tgt: Match knetbsd*-gnu.
13343
13344 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13345
13346         * breakpoint.c (catch_command_1): Delete #ifdef code.
13347         (catch_fork_command_1): Delete #ifdef wrapper.
13348         (catch_exec_command_1): Ditto.
13349         (catch_load_command_1): Ditto.
13350         (catch_unload_command_1): Ditto.
13351
13352         * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13353         (catch_breakpoint): Delete #if0ed function.
13354         (disable_catch_breakpoint): Ditto.
13355         (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13356         (disable_catch, enable_catch, delete_catch): Ditto.
13357
13358 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13359
13360         * remote.c (echo_check, quit_flag): Delete variables.
13361         (cisco_kernel_mode): Delete variable.
13362         (minitelnet_return, tty_input, escape_count): Delete variables.
13363         (remote_cisco_mode): Delete variable.
13364         (remote_cisco_open, remote_cisco_close): Delete function.
13365         (remote_cisco_mourn, remote_cisco_wait): Delete function.
13366         (init_remote_cisco_ops): Delete function.
13367         (_initialize_remote): Do not install "remote cisco" code.
13368         (read_frame): Delete cisco specific code.
13369         (remote_info_process): Delete function.
13370         (remote_wait): Delete cisco specific code.
13371         (remote_cisco_section_offsets): Delete function.
13372         (remote_cisco_objfile_relocate): Delete function.
13373         (remote_async_wait): Delete cisco specific code.
13374         (minitelnet, readtty, readsocket): Delete function.
13375
13376 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13377
13378         * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
13379         comments mentioning extract_returned_value_address.
13380         * infcmd.c (print_return_value): Update.  Add comments on
13381         extract_returned_value_address.
13382         * stack.c (return_command): Add comments on
13383         extract_returned_value_address.
13384         * values.c: Update comment.
13385         * m32r-tdep.c: Update comment.
13386         * sparc-tdep.c: Update comment.
13387         * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13388         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13389         * sh64-tdep.c (sh64_gdbarch_init): Update.
13390         * sh-tdep.c (sh_gdbarch_init): Update.
13391         * s390-tdep.c (s390_gdbarch_init): Update.
13392         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13393         * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13394         * m68k-tdep.c (m68k_gdbarch_init): Update.
13395         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13396         * m32r-tdep.c (m32r_gdbarch_init): Update.
13397         * ia64-tdep.c (ia64_gdbarch_init): Update.
13398         * h8300-tdep.c (h8300_gdbarch_init): Update.
13399         * frv-tdep.c (frv_gdbarch_init): Update.
13400         * arm-tdep.c (arm_gdbarch_init): Update.
13401         * alpha-tdep.c (alpha_gdbarch_init): Update.
13402
13403 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13404
13405         * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13406         SYMBOL_LOCATION_FUNCS
13407         (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13408         "struct symbol_ops".
13409         * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13410         type to "struct symbol_ops".
13411         * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13412         (struct symbol): Replace ".aux_value.loc.funcs" and
13413         ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13414         (SYMBOL_OBJFILE): Delete macro.
13415         (SYMBOL_LOCATION_FUNCS): Delete macro.
13416         (SYMBOL_LOCATION_BATON): Update.
13417         * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13418         intead of SYMBOL_LOCATION_FUNCS.
13419         * ax-gdb.c (gen_var_ref): Ditto.
13420         * printcmd.c (address_info): Ditto.
13421         * findvar.c (read_var_value): Ditto.
13422         (symbol_read_needs_frame): Ditto.
13423
13424 2004-01-26  Andrew Cagney  <cagney@redhat.com>
13425
13426         * dwarf2read.c (read_func_scope): Document frame-base hack.
13427
13428 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13429
13430         * infcmd.c (print_return_value): Plug memory leak; delete
13431         ui_stream object.  Rename argument `structure_return' to
13432         `struct_return'.
13433
13434 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13435
13436         * infcmd.c (print_return_value): Wrap long lines.
13437         (finish_command_continuation, finish_command): Remove unused
13438         variable `funcaddr'.  Fix some coding-standards problems.
13439
13440         * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13441         SECT_SIZE is large enough, not whether it's exactly the right size.
13442         (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13443         TDEP->fpregset to zero.
13444
13445         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13446         floating-point registers for traditional NetBSD core files.
13447         (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13448         TDEP->sizeof_fpregset here.
13449
13450 2004-01-25  Mark Kettenis  <kettenis@gnu.org>
13451
13452         * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13453         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13454         function with code split out from
13455         sparc32nbsd_sigcontext_frame_cache.
13456         (sparc32nbsd_sigcontext_frame_cache): Use
13457         sparc32nbsd_sigcontext_saved_regs.
13458         (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13459         OpenBSD.
13460         * sparcobsd-tdep.c: New file.
13461         * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13462         (sparcobsd-tdep.o): New dependency.
13463         * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13464         * config/sparc/obsd.mt: New file.
13465
13466         * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13467         TDEP->fpregset to be initialized to enable core file register
13468         sets.
13469
13470 2004-01-24  Mark Kettenis  <kettenis@gnu.org>
13471
13472         * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13473         Add opaque declarations.
13474         (sparc64nbsd_sigcontext_saved_regs): New prototype.
13475         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13476         function with code split out from
13477         sparc64nbsd_sigcontext_frame_cache.
13478         (sparc64nbsd_sigcontext_frame_cache): Use
13479         sparc64nbsd_sigcontext_saved_regs.
13480         (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13481         OpenBSD.
13482         * sparc64obsd-tdep.c: New file.
13483         * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13484         (sparc64obsd-tdep.o): New dependency.
13485         * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13486         gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13487         * config/sparc/obsd64.mt: New file.
13488
13489         * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13490         read the instruction at PC.
13491
13492         * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13493         value of GDB_OSABI_DEFAULT.
13494         (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13495         instead of GDB_OSABI_NETBSD_AOUT.
13496
13497 2004-01-24  Nick Roberts  <nick@nick.uklinux.net>
13498
13499         * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13500         copyright.
13501
13502 2004-01-23  Andrew Cagney  <cagney@redhat.com>
13503
13504         * printcmd.c (display_command): Replace tui_set_display call with
13505         tui_set_layout_for_display_command.
13506         * tui/tui.h (enum tui_win_type): Define.
13507         (tui_set_layout): Delete declaration.
13508         (tui_set_layout_for_display_command): Rename set_tui_layout.
13509         * tui/tui-data.h (enum tui_layout_type): Define.
13510         * tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
13511         "tui.h".
13512         (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13513         (tui_default_win_height): Rename tuiDefaultWinHeight.
13514         (tui_default_win_viewport_height): Rename
13515         tuiDefaultWinViewportHeight.
13516         (tui_set_layout): RenametuiSetLayout.
13517         * tui/tui-layout.c: Update references.
13518         * tui/tui.c: Update references.
13519         * tui/tui-disasm.c: Update references.
13520
13521 2004-01-23  David Carlton  <carlton@kealia.com>
13522
13523         Partial workaround for PR c++/1511:
13524         * cp-namespace.c: Include frame.h.
13525         (cp_lookup_transparent_type): New
13526         (cp_lookup_transparent_type_loop): New.
13527         * cp-support.h: Declare cp_lookup_transparent_type.
13528         * symtab.c (basic_lookup_transparent_type): Renamed from
13529         lookup_transparent_type.
13530         (lookup_transparent_type): Replace old body by a call to
13531         current_language->la_lookup_transparent_type.
13532         * symtab.h: Update copyright.  Declare
13533         basic_lookup_transparent_type.
13534         * language.h: Update copyright.
13535         (struct language_defn): Add la_lookup_transparent_type.
13536         * language.c: Update copyright.
13537         (unknown_language_defn): Add basic_lookup_transparent_type.
13538         (auto_language_defn): Add basic_lookup_transparent_type.
13539         (local_language_defn): Add basic_lookup_transparent_type.
13540         * ada-lang.c: Update copyright.
13541         (ada_language_defn): Add basic_lookup_transparent_type.
13542         * c-lang.c: Update copyright.
13543         (c_language_defn): Add basic_lookup_transparent_type.
13544         (cplus_language_defn): Add basic_lookup_transparent_type.
13545         (asm_language_defn): Add basic_lookup_transparent_type.
13546         (minimal_language_defn): Add basic_lookup_transparent_type.
13547         * f-lang.c: Update copyright.
13548         (f_language_defn): Add basic_lookup_transparent_type.
13549         * jv-lang.c: Update copyright.
13550         (java_language_defn): Add basic_lookup_transparent_type.
13551         * m2-lang.c: Update copyright.
13552         (m2_language_defn): Add basic_lookup_transparent_type.
13553         * objc-lang.c: Update copyright.
13554         (objc_language_defn): Add basic_lookup_transparent_type.
13555         * p-lang.c: Update copyright.
13556         (p_language_defn): Add basic_lookup_transparent_type.
13557         * scm-lang.c: Update copyright.
13558         (scm_language_defn): Add basic_lookup_transparent_type.
13559         * Makefile.in (cp-namespace.o): Depend on frame.h.
13560
13561 2004-01-23  David Carlton  <carlton@kealia.com>
13562
13563         Patch for PR c++/1520:
13564         * dwarf2read.c (read_func_scope): Set processing_current_prefix
13565         properly if we have a specification die.
13566         (determine_prefix_aux): Rename from determine_prefix.
13567         (determine_prefix): Like the old determine_prefix, but never
13568         returns NULL.
13569
13570 2004-01-23  Theodore A. Roth  <troth@openavr.org>
13571
13572         * avr-tdep.c: Update copyright.
13573         (avr_iaddr_p): Delete unused function.
13574         (avr_saddr_p): Delete unused function.
13575
13576 2004-01-23  David Carlton  <carlton@kealia.com>
13577
13578         * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13579         Fix for PR symtab/1534.
13580
13581 2004-01-23  Mark Kettenis  <kettenis@gnu.org>
13582
13583         * NEWS (New native configurations): Mention OpenBSD/sparc and
13584         OpenBSD/sparc64.
13585         * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13586         * configure.host: Likewise.
13587         * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13588         handler for OpenBSD.
13589         * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13590
13591 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13592
13593         * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13594         (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13595
13596         * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13597         * cli/cli-cmds.c (shell_escape): Likewise.
13598
13599         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13600         OpenBSD .note.openbsd.ident sections.
13601
13602 2004-01-22  David Carlton  <carlton@kealia.com>
13603
13604         * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13605         get_scope_pc_bounds.
13606         (read_file_scope): Ditto.
13607         (get_scope_pc_bounds): New function, produced by extracting code
13608         from the above two functions, consolidating it, and adding support
13609         for DW_TAG_namespace.
13610
13611 2004-01-22  Mark Kettenis  <kettenis@gnu.org>
13612
13613         * osabi.c (MAX_NOTESZ): New define.
13614         (check_note): New function.
13615         (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13616         check_note.
13617
13618 2004-01-21  Roland McGrath  <roland@redhat.com>
13619
13620         * MAINTAINERS (write after approval): Add myself.
13621
13622 2004-01-21  Eli Zaretskii  <eliz@gnu.org>
13623
13624         * utils.c (init_page_info): Move declarations of `rows' and
13625         `cols' before the __GO32__-specific code.  Move the closing brace
13626         outside the #ifdef __GO32__..#endif block.
13627         [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13628
13629 2004-01-21  Paul Brook  <paul@codesourcery.com>
13630
13631         * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13632         BPSTAT_WHAT_CHECK_SHLIBS.
13633
13634 2004-01-21  Paul Brook  <paul@codesourcery.com>
13635
13636         * MAINTAINERS: Add myself to write-after-approval.
13637
13638 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13639
13640         * ax-gdb.c (print_axs_value): Delete unused function.
13641         * jv-lang.c (java_lookup_type): Delete unused function.
13642         * cli/cli-dump.c (dump_filetype): Delete unused function.
13643         * remote-mips.c (remote_mips_insert_hw_breakpoint)
13644         (remote_mips_remove_hw_breakpoint): Delete unused functions.
13645         (mips_getstring): Delete unused function.
13646         (pmon_insert_breakpoint): Delete #if0ed function.
13647         (PMON_MAX_BP): Delete #if0ed MACRO.
13648         (mips_pmon_bp_info): Delete #if0ed variable.
13649         (pmon_remove_breakpoint): Delete #if0ed function.
13650         * monitor.c (monitor_write_even_block): Delete unused function.
13651         (monitor_write_memory_block): Delete #if0ed code.
13652         * dink32-rom.c (dink32_load): Delete unused function.
13653         (_initialize_dink32_rom): Delete #if0ed code.
13654         * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13655
13656         * tui/tui-command.c: Update references.
13657         * tui/tui-io.c: Update references.
13658         * tui/tui-command.h: Update copyright.
13659         (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13660
13661         * source.c (ambiguous_line_spec): Delete never-defined function.
13662         * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13663         * gdbtypes.c (add_name, add_mangled_type): Ditto.
13664         * cli/cli-cmds.c (validate_comname): Ditto.
13665
13666         * tui/tui-disasm.h: Update copyright.  Include "tui.h" and
13667         "tui-data.h".
13668         (tui_set_disassem_content): Rename tuiSetDisassemContent.
13669         (tui_show_disassem): Rename tuiShowDisassem.
13670         (tui_show_disassem_and_update_source): Rename
13671         tuiVerticalDisassemScroll.
13672         (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13673         (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13674         * tui/tui.h: Update copyright.
13675         (enum tui_status): Define.
13676         * tui/tui-data.h (enum tui_scroll_direction): Define.
13677         * tui/tui-disasm.c: Update copyright.  Update references.
13678         * tui/tui-winsource.c:  Update copyright.  Update references.
13679         * tui/tui-win.c: Update references.
13680         * tui/tui-layout.c: Update references.
13681
13682 2004-01-20  Andrew Cagney  <cagney@redhat.com>
13683
13684         * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13685         sym2 to start of block.
13686
13687 2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>
13688
13689         * MAINTAINERS: Delete mmalloc.
13690         * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13691         * NEWS: Mention removal of --with-malloc.
13692         * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13693         * config.in: Regenerate.
13694         * configure: Regenerate.
13695         * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13696         USE_MMALLOC, MMCHECK_FORCE.
13697         * gdbinit.in: Remove mmalloc.
13698         * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13699         * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13700         * config/i386/go32.mh: Likewise.
13701         * config/i386/interix.mh: Likewise.
13702         * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13703
13704 2004-01-19  Jeff Johnston  <jjohnstn@redhat.com>
13705
13706         * linespec.c (decode_variable, symtab_from_filename):  Call
13707         error_silent with error message instead of throwing an exception
13708         directly.
13709         * defs.h (error_silent, error_output_message): Add prototypes.
13710         (catch_exceptions_with_msg): Ditto.
13711         * utils.c (error_silent, error_output_message): New functions.
13712         * top.c (catch_exceptions_with_msg): New function.
13713
13714 2004-01-20  Nick Roberts  <nick@nick.uklinux.net>
13715
13716         * mi/mi-cmds.h (enum print_values): Add definition.
13717
13718         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13719         type and value for simple data types and just the name and type
13720         for complex ones, if required.
13721
13722         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13723         children, if required.
13724
13725 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
13726
13727         * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13728         unused declarations.
13729
13730 2004-01-19  Andrew Cagney  <cagney@redhat.com>
13731
13732         * top.h (mapped_symbol_files): Delete declaration.
13733         * main.c (captured_main): Delete option "m" and "mapped".
13734         * objfiles.c (mapped_symbol_files): Delete variable.
13735         * symfile.c (symbol_file_command): Delete mmap code.
13736         (symbol_file_add_with_addrs_or_offsets): Ditto.
13737         (add_symbol_file_command, reread_separate_symbols): Ditto.
13738         * objfiles.h (OBJF_MAPPED): Delete.
13739         * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13740         (free_objfile) [USE_MMALLOC]: Ditto.
13741         (open_existing_mapped_file): Delete function.
13742         (open_mapped_file): Delete function.
13743         (map_to_file): Delete function.
13744
13745 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
13746
13747         * infrun.c (step_into_function): Account for possible breakpoint
13748         adjustment when computing ``stop_func_start''.
13749
13750 2004-01-19  Kevin Buettner  <kevinb@redhat.com>
13751
13752         * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13753         the region size against the size of a pointer, not the size of
13754         a register as given by DEPRECATED_REGISTER_SIZE.
13755
13756 2004-01-19  Andrew Cagney  <cagney@redhat.com>
13757
13758         * tui/tui-regs.h: Include "tui-data.h".
13759         (tuiFirstRegElementNoInLine): Delete declaration.
13760         (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13761         (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13762         (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13763         (tui_calculate_regs_column_count): Rename
13764         tuiCalculateRegsColumnCount.
13765         (tui_check_register_values): Rename tuiCheckRegisterValues.
13766         (tui_show_registers): Rename tuiShowRegisters.
13767         (tui_display_registers_from_line): Rename
13768         tuiDisplayRegistersFromLine.
13769         (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13770         (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13771         (tui_first_reg_element_no_inline): Rename
13772         tuiFirstRegElementNoInLine.
13773         * tui/tui-data.h: Update copyright.
13774         (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13775         * tui/tui-windata.c: Update copyright, update references.
13776         * tui/tui-regs.c: Update copyright, update references.
13777         * tui/tui-win.c: Update copyright, update references.
13778         * tui/tui-layout.c: Update copyright, update references.
13779
13780 2004-01-18  Andrew Cagney  <cagney@redhat.com>
13781
13782         * tui/tui-io.c: Update copyright.
13783         (key_is_end_sequence, key_is_backspace): New functions.
13784         (key_is_command_char, key_is_start_sequence): New function.
13785         (tui_getc): Update references.
13786         * tui/tui-io.h: Update copyright.
13787         (m_tuiStartNewLine): Delete macro.
13788         (m_isBackspace, m_isDeleteChar): Delete macros.
13789         (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13790         (m_isNextPage, m_isPrevPage): Delete macros.
13791         (m_isLeftArrow, m_isRightArrow): Delete macros.
13792         (m_isXdbStyleCommandChar): Delete macro.
13793         (key_is_start_sequence): Declare, replace m_isStartSequence.
13794         (key_is_end_sequence): Declare, replace m_isEndSequence.
13795         (key_is_backspace): Declare ,replace m_isBackspace.
13796         (key_is_command_char): Declare, replace m_isCommandChar.
13797         * tui/tui-command.c: Update copyright.
13798         (tuiDispatchCtrlChar): Update references.
13799
13800         * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13801         tuiSourceWin.h.
13802
13803         * tui/tui-command.c: Rename tui/tuiCommand.c.
13804         * tui/tui-command.h: Rename tui/tuiCommand.h.
13805         * tui/tui-data.c: Rename tui/tuiData.c.
13806         * tui/tui-data.h: Rename tui/tuiData.h.
13807         * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13808         * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13809         * tui/tui-io.c: Rename tui/tuiIO.c.
13810         * tui/tui-io.h: Rename tui/tuiIO.h.
13811         * tui/tui-layout.c: Rename tui/tuiLayout.c.
13812         * tui/tui-layout.h: Rename tui/tuiLayout.h.
13813         * tui/tui-regs.c: Rename tui/tuiRegs.c.
13814         * tui/tui-regs.h: Rename tui/tuiRegs.h.
13815         * tui/tui-source.c: Rename tui/tuiSource.c.
13816         * tui/tui-source.h: Rename tui/tuiSource.h.
13817         * tui/tui-stack.c: Rename tui/tuiStack.c.
13818         * tui/tui-stack.h: Rename tui/tuiStack.h.
13819         * tui/tui-win.c: Rename tui/tuiWin.c.
13820         * tui/tui-win.h: Rename tui/tuiWin.h.
13821         * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13822         * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13823         * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13824         * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13825         * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13826         * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13827         * tui/tui-file.c: Update includes.
13828         * tui/tui-hooks.c: Update includes.
13829         * tui/tui-interp.c: Update includes.
13830         * tui/tui.c: Update includes.
13831         * Makefile.in: Update all tui/ dependencies.
13832         (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13833
13834         * Makefile.in: Update copyright.  Update dependencies.
13835
13836         * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13837         problem.
13838
13839 2004-01-18  Andrew Cagney  <cagney@redhat.com>
13840
13841         * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13842         instead of register_gdbarch_init.
13843
13844         * remote-sds.c (tohex): Delete unused function.  Update copyright.
13845         * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13846         * v850-tdep.c (v850_register_virtual_size): Ditto.
13847         * target.c (normal_target_post_startup_inferior): Ditto.
13848         * source.c (ambiguous_line_spec): Ditto.
13849         * remote.c (adapt_remote_get_threadinfo): Ditto.
13850         * mi/mi-out.c (out_field_fmt): Ditto.
13851         * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13852         (output_control_change_notification): Ditto.
13853         * m68k-tdep.c (m68k_register_byte): Ditto.
13854         (m68k_remote_breakpoint_from_pc): Ditto.
13855         * ui-out.c (init_ui_out_state): Delete unused declaration.
13856         * stabsread.c (search_value): Ditto.
13857         * mi/mi-cmd-env.c (env_cli_command): Ditto.
13858         * maint.c (print_section_table): Ditto.
13859         * infrun.c (set_follow_fork_mode_command): Ditto.
13860
13861 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
13862
13863         * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13864         DW_CFA_def_cfa_exporession.  Add support for
13865         DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13866         DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
13867
13868 2004-01-18  Andrew Cagney  <cagney@redhat.com>
13869
13870         * ocd.c: Update copyright.
13871         (bdm_read_register_command): Delete unused function.
13872         (_initialize_remote_ocd): Delete commented out reference.
13873         (get_quoted_char, reset_packet): Delete #if0ed function.
13874         (output_packet, put_quoted_char): Delete #if0ed function.
13875         (stu_put_packet, stu_get_packet): Delete #if0ed function.
13876         (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13877         (BDM_BREAKPOINT): Delete #if0ed macro.
13878         (remote_timeout): Delete #if0ed variable.
13879
13880 2004-01-18  Mark Kettenis  <kettenis@gnu.org>
13881
13882         * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13883         (core-sol2.o): Remove dependency.
13884         * core-sol2.c: Remove file.
13885
13886 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13887
13888         * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13889         * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13890         enums.
13891
13892 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13893
13894         * remote.c: Update copyright years.
13895
13896 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13897
13898         * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13899
13900 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13901
13902         * mdebugread.c: Update copyright.
13903         (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13904         (parse_type, parse_procedure): Ditto.
13905         (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13906
13907         * cris-tdep.c (cris_store_struct_return): Put back accidently
13908         deleted function.
13909
13910         * gdbarch.sh: Update copyright year.
13911         * gdbarch.h, gdbarch.c: Re-generate.
13912
13913 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13914
13915         Suggested by George Anzinger.
13916         * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13917         correct stack offset.  Include unknown opcode numbers in the error
13918         message.
13919
13920 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13921
13922         * x86-64-tdep.c (x86_64_init_abi): No need to clear
13923         extract_struct_value_address, i386 does not set it.
13924         * sparc64-tdep.c (sparc64_init_abi): Do not set
13925         extract_struct_value_address, never called.
13926         (sparc64_extract_struct_value_address): Delete function.
13927         * m68hc11-tdep.c: Update copyright.
13928         (m68hc11_gdbarch_init): Delete redundant assignment of
13929         extract_struct_value_address.
13930         * i386-tdep.c: Update copyright.
13931         (i386_gdbarch_init): Do not set extract_struct_value_address,
13932         never called.
13933         (i386_extract_struct_value_address): Delete function.
13934         * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13935         extract_struct_value_address, never called.
13936         (sparc32_extract_struct_value_address): #if 0 function.  Add
13937         comments explaining its future.
13938
13939 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13940
13941         * arm-tdep.c (arm_write_pc): New function.
13942         (arm_gdbarch_init): Call set_gdbarch_write_pc.
13943
13944 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
13945
13946         * breakpoint.c (must_shift_inst_regs): Delete.
13947         (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13948         and SHIFT_INST_REGS.
13949         * infcmd.c (step_1, step_1_continuation): Delete references to
13950         SHIFT_INST_REGS.
13951         * infrun.c (keep_going): Likewise.
13952         * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13953         * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13954
13955 2004-01-17  Andrew Cagney  <cagney@redhat.com>
13956
13957         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13958         * gdbarch.h, gdbarch.c: Re-generate.
13959         * infcmd.c (print_return_value): Delete reference to
13960         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13961
13962         * cris-tdep.c (cris_gdbarch_init): Do not set
13963         deprecated_extract_struct_value_address.
13964
13965         * xstormy16-tdep.c: Update copyright.
13966         (xstormy16_extract_struct_value_address): Update to current
13967         extract struct value address interface.
13968         (xstormy16_gdbarch_init): Set extract_struct_value_address.
13969         * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13970         current extract struct value address interface.
13971         (sh64_gdbarch_init): Set extract_struct_value_address.
13972
13973         * cris-tdep.c: Update copyright.
13974         (cris_extract_struct_value_address): Delete function.
13975         (struct_return_address): Delete variable.
13976         (cris_store_struct_return): Do not set struct_return_address.
13977
13978         * mcore-tdep.c: Update copyright.
13979         (mcore_extract_struct_value_address): Delete function.  Update
13980         comments.
13981         (mcore_gdbarch_init): Update.
13982         * mn10300-tdep.c: Update copyright.
13983         (mn10300_extract_struct_value_address): Delete function.
13984         (mn10300_gdbarch_init): Update.
13985         * v850-tdep.c: Update copyright.
13986         (v850_extract_struct_value_address): Delete.
13987         (v850_gdbarch_init): Update.
13988         * ns32k-tdep.c: Update copyright.
13989         (ns32k_extract_struct_value_address): Delete.
13990         (ns32k_gdbarch_init): Update.
13991         * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13992         (hppa_gdbarch_init): Update.
13993         * vax-tdep.c: Update copyright.
13994         (vax_extract_struct_value_address): Delete.
13995         (vax_gdbarch_init): Update.
13996
13997         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13998         * gdbarch.h, gdbarch.c: Re-generate.
13999         * procfs.c (procfs_fetch_registers): Delete reference to
14000         DEPRECATED_NPC_REGNUM.
14001         (procfs_store_registers): Ditto.
14002         * regcache.c (generic_target_write_pc): Simplify.
14003         * lynx-nat.c: Delete #ifdef SPARC code.  Not used.
14004
14005         * core-sol2.c (fetch_core_registers): Replace
14006         DEPRECATED_NPC_REGNUM with equivalent tdep value.
14007
14008         * hppa-tdep.c: Update copyright year.
14009         (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14010         NPC_REGNUM.
14011         (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14012
14013         * mips-tdep.c (mips_write_pc): New function.
14014         (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14015         (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14016         (mips_find_saved_regs, mips_software_single_step: Ditto.
14017         (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14018         mips_init_extra_frame_info, mips_pop_frame): Ditto.
14019
14020 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14021
14022         * mips-tdep.c: Re-indent.  Group functions by ABI.
14023
14024 2004-01-17  Andrew Cagney  <cagney@redhat.com>
14025
14026         * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14027         * gdbarch.c: Re-generate.
14028         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14029         DECR_PC_AFTER_BREAK to zero.
14030         * vax-tdep.c (vax_gdbarch_init): Ditto.
14031         * v850-tdep.c (v850_gdbarch_init): Ditto.
14032         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14033         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14034         * sh-tdep.c (sh_gdbarch_init): Ditto.
14035         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14036         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14037         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14038         * mips-tdep.c (mips_gdbarch_init): Ditto.
14039         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14040         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14041         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14042         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14043         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14044         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14045         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14046         * frv-tdep.c (frv_gdbarch_init): Ditto.
14047         * cris-tdep.c (cris_gdbarch_init): Ditto.
14048         * avr-tdep.c (avr_gdbarch_init): Ditto.
14049         * arm-tdep.c (arm_gdbarch_init): Ditto.
14050         * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14051
14052 2004-01-17  J. Brobecker  <brobecker@gnat.com>
14053
14054         * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14055         Delete, no longer used.
14056         (read_subrange_type): New function, mostly extracted from
14057         read_array_type().
14058         (read_array_type): Replace extracted code by call to
14059         read_subrange_type().
14060         (dwarf2_get_attr_constant_value): New function.
14061         (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14062         (add_partial_symbol): Likewise.
14063         (process_die): Likewise.
14064         (new_symbol): Likewise.
14065         (read_type_die): Likewise.
14066
14067 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14068
14069         * symfile.c: Update copyright year.
14070         (compare_symbols): Delete unused function.
14071         * stabsread.c: Update copyright year.
14072         (lrs_general_complaint): Delete unused function.
14073         (ref_search_value): Ditto.
14074         (get_substring): Delete declaration.
14075         * sh64-tdep.c: Update copyright year.
14076         (sh64_get_gdb_regnum): Delete unused function.
14077         * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14078         Delete unused function.
14079
14080 2004-01-17  Mark Kettenis  <kettenis@gnu.org>
14081
14082         * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14083         * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14084
14085 2004-01-16  Andrew Cagney  <cagney@redhat.com>
14086
14087         Changes from Peter Schauer.
14088         * rs6000-tdep.c: Update copyright year.
14089         (rs6000_push_dummy_call): Update the stack pointer before
14090         accessing the corresponding stack region.
14091         * rs6000-nat.c: Update copyright year.
14092         (set_host_arch): Set "info.abfd" to "exec_bfd".
14093
14094 2004-01-15  Mark Kettenis  <kettenis@gnu.org>
14095
14096         * blockframe.c: Update copyright year.
14097         (inside_entry_func): Don't treat a zero PC specially.
14098
14099 2004-01-14  Elena Zannoni  <ezannoni@redhat.com>
14100
14101         * gcore.c (gcore_copy_callback): Use paddr_d to print size
14102         variable.
14103         (gcore_create_callback): Ditto.  Skip any memory segment that has
14104         no permissions set.
14105
14106 2004-01-14  David Carlton  <carlton@kealia.com>
14107
14108         Change symbols for C++ nested types to contain the fully qualified
14109         name, if possible.  (At least in the DWARF-2 case.)  Partial fix
14110         for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14111         c++/895.
14112         * c-exp.y (qualified_type): Handle types nested within classes.
14113         * cp-namespace.c: Update comments.
14114         (cp_set_block_scope): Delete #if 0.
14115         (cp_lookup_nested_type): Handle types nested within classes.
14116         * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14117         when appropriate.
14118         (add_partial_symbol): Add the name of the enclosing namespace to
14119         types.
14120         (pdi_needs_namespace): New.
14121         (add_partial_namespace): Tweak comment.
14122         (add_partial_structure): New.
14123         (psymtab_to_symtab_1): Initialize processing_current_prefix
14124         here...
14125         (process_die): instead of here.
14126         (read_structure_scope): Try to figure out the name of the class or
14127         namespace that the structure might be defined within.
14128         (read_enumeration): Generate fully-qualified names, if possible.
14129         (read_namespace): Don't set name to NULL.
14130         (die_specification): New.
14131         (new_symbol): Generate fully-qualified names for types.
14132         (read_type_die): Determine appropriate prefix.
14133         (determine_prefix): New.
14134         (typename_concat): New.
14135         (class_name): New.
14136         * valops.c (value_aggregate_elt): Pass NOSIDE to
14137         value_struct_elt_for_reference.
14138         (value_struct_elt_for_reference): Make static, add NOSIDE
14139         parameter, call value_maybe_namespace_elt as a last resort.
14140         (value_namespace_elt): Break out code into
14141         value_maybe_namespace_elt.
14142         (value_maybe_namespace_elt): New.
14143
14144 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14145
14146         * mips-tdep.c (mips_convert_register_p): Handle both raw and
14147         cooked floating-point registers.
14148         (mips_gdbarch_init): Set convert_register_p, register_to_value,
14149         and value_to_register.
14150
14151 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14152
14153         * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14154         * gdbarch.c: Re-generate.
14155         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14156         FUNCTION_START_OFFSET.
14157         * v850-tdep.c (v850_gdbarch_init): Ditto.
14158         * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14159         * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14160         * sh-tdep.c (sh_gdbarch_init): Ditto.
14161         * s390-tdep.c (s390_gdbarch_init): Ditto.
14162         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14163         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14164         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14165         * mips-tdep.c (mips_gdbarch_init): Ditto.
14166         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14167         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14168         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14169         * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14170         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14171         * i386-tdep.c (i386_gdbarch_init): Ditto.
14172         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14173         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14174         * frv-tdep.c (frv_gdbarch_init): Ditto.
14175         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14176         * cris-tdep.c (cris_gdbarch_init): Ditto.
14177         * avr-tdep.c (avr_gdbarch_init): Ditto.
14178         * arm-tdep.c (arm_gdbarch_init): Ditto.
14179         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14180
14181 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
14182
14183         * infrun.c (follow_fork_mode_ask): Remove.
14184         (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14185         (follow_fork): Simplify and remove internal error for
14186         follow_fork_mode_ask.
14187         (_initialize_infrun): Update "set follow-fork-mode" help text.
14188
14189 2004-01-13  Andrew Cagney  <cagney@redhat.com>
14190
14191         * configure.in: Update copyright year.
14192         (build_warnings): Add -Wunused-label.
14193         * configure: Re-generate.
14194
14195 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14196
14197         * exec.h (exec_ops): Make "extern".
14198
14199         * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14200         the function is void.
14201         (mips_pseudo_register_write): Ditto.
14202
14203 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14204
14205         * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14206         call.  Never defined.
14207         * sparc-tdep.h (struct frame_info): Add opaque declaration.
14208         * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14209         (struct sparc_gregset, struct regcache): Ditto.
14210         * sparc-nat.c: Update copyright.  Specify "GNU/Linux".
14211
14212 2004-01-12  Andrew Cagney  <cagney@redhat.com>
14213
14214         * mi/ChangeLog: Delete file.  Renamed to ...
14215         * mi/ChangeLog-1999-2003: New file.
14216         * tui/ChangeLog: Delete file.  Renamed to ...
14217         * tui/ChangeLog-1998-2003: New file.
14218
14219 2004-01-11  Mark Kettenis  <kettenis@gnu.org>
14220
14221         * sparc64nbsd-tdep.c: Include "regset.h".
14222         (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14223         Remove variables.
14224         (fetch_core_registers): Remove function.
14225         (sparc64nbsd_core_fns): Remove variable.
14226         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14227         functions.
14228         (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14229         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14230         (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14231
14232         * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14233         sparc_extract_struct_value_address.
14234         (sparc32_gdbarch_init): Set extract_struct_value_address.
14235         * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14236         function.
14237         (sparc64_init_abi): Set extract_struct_value_address.  Don't set
14238         return_value_on_stack.
14239
14240         * NEWS: Mention that %cs and %ss have been added to the AMD64
14241         configurations
14242
14243         * frame.c: Update copyright year.
14244         (get_prev_frame): Improve comment.
14245
14246         * sparc64fbsd-tdep.c: Include "regset.h".
14247         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14248         Remove variables.
14249         (fetch_core_registers): Remove function.
14250         (sparc64fbsd_core_fns): Remove variable.
14251         (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14252         functions.
14253         (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14254         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14255         (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14256
14257         * sparcnbsd-tdep.c: Include "regset.h".
14258         (fetch_core_registers): Remove function.
14259         (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14260         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14261         functions.
14262         (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14263         TDEP->fpregset.
14264         (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14265
14266         * sparc-tdep.h (struct regset): Provide opaque declaration.
14267         (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14268         fpregset and sizeof_fpregset members.
14269         * sparc-tdep.c (struct regset): Provide opaque declaration.
14270         (sparc_regset_from_core_section): New function.
14271         (sparc32_gdbarch_init): Initialize TDEP->gregset,
14272         TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14273         Set regset_from_core_section when appropriate.
14274
14275 2004-01-10  Mark Kettenis  <kettenis@gnu.org>
14276
14277         * x86-64-tdep.c (amd64_non_pod_p): New function.
14278         (amd64_classify_aggregate): Return class memory for non-POD
14279         C++ structure types.
14280
14281         * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14282         argument.  Use it to reserve a register if necessary.
14283         (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14284         amd64_push_arguments.
14285
14286         * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14287
14288         * x86-64-tdep.c (amd64_register_info): Add %cs and %ss.  Adjust
14289         register numbers in comments.
14290         * x86-64-tdep.h: Update copyright year.
14291         (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14292         Adjust for addition of %cs and %ss.
14293         * amd64fbsd-nat.c: Update copyright year.
14294         (reg_offset): Add register offsets for %cs and %ss.
14295         * amd64fbsd-tdep.c: Update copyright year.
14296         (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14297         (amd64fbsd_sc_reg_offset): Likewise.
14298         * x86-64-linux-nat.c: Update copyright year.
14299         (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14300         and %ss.
14301         * amd64nbsd-nat.c: Update copyright year.
14302         (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14303         * amd64nbsd-tdep.c: Update copyright year.
14304         (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14305         * x86-64-linux-tdep.c: Update copyright year.
14306         (user_to_gdb_regmap): Add mapping for %cs and %ss.
14307         (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14308         * regformats/reg-x86-64.dat: Add %cs and %ss.
14309
14310         * blockframe.c (inside_entry_func): Reformat.  Introduce new local
14311         variables to prevent long lines.  Update comments to reflect
14312         reality.
14313
14314 2004-01-09  David Carlton  <carlton@kealia.com>
14315
14316         Checked in by Elena Zannoni  <ezannoni@redhat.com>.
14317         * dwarf2read.c (read_namespace): Pull out name-generating code
14318         into namespace_name. Rename previous_namespace to previous_prefix
14319         and processing_current_namespace to processing_current_prefix..
14320         (namespace_name): New function.
14321         (add_partial_symbol): Substitute uses of pdi->name with
14322         actual_name.
14323         * cp-support.h: Rename processing_current_namespace to
14324         processing_current_prefix.
14325         Update copyright year.
14326         * cp-namespace.c: Rename processing_current_namespace to
14327         processing_current_prefix.
14328         Update copyright year.
14329
14330 2004-01-09  Andrew Cagney  <cagney@redhat.com>
14331
14332         * jv-valprint.c, ser-unix.c: Add missing copyright years.
14333
14334 2004-01-09  Mark Kettenis  <kettenis@gnu.org>
14335
14336         * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14337         complaining.
14338         (process_one_symbol): Deal with N_PATCH stabs.
14339
14340 2004-01-09  Elena Zannoni  <ezannoni@redhat.com>
14341
14342         * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14343         ifdeffed code.
14344         Update copyright year.
14345
14346 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14347
14348         * config/pa/tm-hppa.h: Update extern declarations for
14349         hppa32_hpux_frame_saved_pc_in_sigtramp,
14350         hppa32_hpux_frame_base_before_sigtramp, and
14351         hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14352
14353 2004-01-08  Michael Chastain  <mec.gnu@mindspring.com>
14354
14355         * config/pa/tm-hppah.h: Update copyright years.
14356
14357 2004-01-08  Andrew Cagney  <cagney@redhat.com>
14358
14359         * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14360         (mips_o32_reg_struct_has_addr): Delete function.
14361         (mips_gdbarch_init): Update.
14362         (mips_extract_struct_value_address): Delete function.
14363
14364 2004-01-08  David Mosberger  <davidm@hpl.hp.com>
14365
14366         * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14367         reality.
14368
14369 2004-01-07  Andrew Cagney  <cagney@redhat.com>
14370
14371         * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14372         architecture's elf flags (when available).
14373
14374         * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14375         FPU to the start, check the MIPS FPU when looking for an old
14376         architecture.
14377         (set_mipsfpu_single_command): Update the architecture.
14378         (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14379
14380         * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14381         (mips_mask_address_p): Add "tdep" parameter.
14382         (show_mask_address, mips_addr_bits_remove): Update.
14383         (mips_dump_tdep): Update.
14384         (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14385         (MIPS_STACK_ARGSIZE): Delete macro.
14386         (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14387         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14388         (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14389         (mips_dump_tdep): Update.
14390         (MIPS_SAVED_REGSIZE): Delete macro.
14391         (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14392         (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14393         (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14394         (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14395         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14396         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14397         (mips_pop_frame, return_value_location): Update.
14398         (mips_n32n64_return_value, mips_dump_tdep): Update.
14399
14400         * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14401         MIPS ABI.
14402
14403         * mips-tdep.c: Update copyright.
14404         (mips_gdbarch_init): Merge two code blocks handling the register
14405         name and number layout.
14406
14407 2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
14408
14409         * tracepoint.c (validate_actionline): Fix segv at EOF
14410
14411 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
14412
14413         * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14414         properly for static fields.
14415
14416 2004-01-06  Jeff Johnston  <jjohnstn@redhat.com>
14417             Jason Molenda  <jmolenda@apple.com>
14418
14419         * disasm.c: Update copyright to include 2004.
14420         (do_mixed_source_and_assembly): For uiout asm list
14421         and tuple cleanups, initialize to null_cleanup instead of
14422         NULL and do so prior to loop.  Only reset when we close off
14423         the tuple/list.  Move check for whether to close off the
14424         asm tuple/list to after dump_insns call where it will be run
14425         on each loop iteration.
14426
14427 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14428
14429         * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14430         should be a switch case and not a label.
14431         * mips-tdep.c (mips32_next_pc): Delete unused labels
14432         "greater_equal_branch" and "less_zero_branch".
14433         * jv-valprint.c (java_print_value_fields): Delete unused label
14434         "flush_it".
14435
14436         * target.c (unpush_target): Only close a target that is in the
14437         target stack.
14438
14439 2004-01-05  Mark Kettenis  <kettenis@gnu.org>
14440
14441         * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14442         address from [sp + 64] instead of %o2.
14443
14444         * frame.c (get_prev_frame): Don't try to unwind the PC.  This
14445         fixes PR backtrace/1476.
14446
14447 2004-01-05  Andrew Cagney  <cagney@redhat.com>
14448
14449         * libunwind-frame.h (struct frame_id): Add opaque declaration,
14450         move to start of file.
14451         * i386-tdep.h (struct regcache): Add opaque declaration.
14452         * config/ia64/nm-linux.h (struct target_ops): Add opaque
14453         declaration.
14454         * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14455         (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14456         * win32-nat.c (fake_create_process): Use ISO C style definition.
14457         * stabsread.c (define_symbol): Delete #ifndef
14458         DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14459         stabs_argument_has_addr call, macro never defined.
14460
14461 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
14462
14463         * op50-rom.c: Delete.
14464         * w89k-rom.c: Delete.
14465         * Makefile.in: Remove references.
14466
14467 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14468
14469         * x86-64-tdep.c: Update copyright year.
14470         (struct amd64_register_info): Rename from x86_64_register_info.
14471         (amd64_register_info): Rename from x86_64_register_info.
14472         (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14473         (amd64_register_name): Rename from x86_64_register_name.
14474         (amd64_register_type): Rename from x86_64_register_type.
14475         (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14476         (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14477         (amd64_dwarf_reg_to_regnum): Rename from
14478         x86_64_dwarf_reg_to_regnum.
14479         (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14480         (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14481         (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14482         (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14483         (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14484         (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14485         (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14486         (amd64_frame_cache): Rename from x86_64_frame_cache.
14487         (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14488         (amd64_frame_prev_register): Rename from
14489         x86_64_frame_prev_register.
14490         (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14491         (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14492         (amd64_sigtramp_frame_cache): Rename from
14493         x86_64_sigtramp_frame_cache.
14494         (amd64_sigtramp_frame_prev_register): Rename from
14495         x86_64_sigtramp_frame_prev_register.
14496         (amd64_sigtramp_frame_unwind): Rename from
14497         x86_64_sigtramp_frame_unwind.
14498         (amd64_sigtramp_frame_sniffer): Rename from
14499         x86_64_sigtramp_frame_sniffer.
14500         (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14501         (amd64_frame_base): Rename from x86_64_frame_base.
14502         (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14503         (amd64_frame_align): Rename from x86_64_frame_align.
14504         (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14505         (amd64_regset_from_core_section): Rename from
14506         x86_64_regset_from_core_section.
14507         (x86_64_init_abi): Update comments.
14508
14509 2004-01-04  Nick Roberts  <nick@nick.uklinux.net>
14510
14511         * MAINTAINERS (write after approval): Add myself.
14512
14513 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14514
14515         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14516         `float' arguments.
14517
14518 2004-01-04  Mark Kettenis  <kettenis@gnu.org>
14519
14520         * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14521         such that it mentions a specific version of GCC that exhibits this
14522         bug.
14523
14524 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14525
14526         * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14527         structure that has a single `float' member, store it in %f1 in
14528         addition to %f0.
14529
14530         * sparc-sol2-nat.c: Add missing '\'.
14531
14532         * sparc-tdep.c (sparc32_return_value): New function.
14533          (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14534         Remove functions.
14535         (sparc32_gdbarch_init): Set return_value, don't set
14536         extract_return_value, store_return_value, use_struct_convention
14537         and return_value_on_stack.
14538
14539         * sparc-sol2-nat.c: Add missing ')'.
14540
14541 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14542
14543         * infrun.c (handle_step_into_function): New function.
14544         (handle_inferior_event): Extract out some code into the new
14545         function above.
14546
14547 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14548
14549         * infrun.c (handle_inferior_event): Move the declaration of
14550         real_stop_pc inside the if blocks where it is used.
14551
14552 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14553
14554         * sparc64-tdep.c (sparc64_16_byte_align_p)
14555         (sparc64_store_floating_fields, sparc64_store_floating_fields):
14556         Use check_typedef to get subtypes of structures and unions.
14557         (sparc64_store_return_value): Fix calculation of the appropriate
14558         offset into VALBUF when storing a structure or union.
14559         (sparc64_return_value): New function.
14560         (sparc64_use_struct_convention): Remove function.
14561         (sparc64_init_abi): Set return_value, don't set
14562         extract_return_value, store_return_value and
14563         use_struct_convention.
14564
14565 2004-01-03  Eli Zaretskii  <eliz@elta.co.il>
14566
14567         * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14568         bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14569         gdb/config/alpha/xm-alphaosf.h,
14570         gdb/config/powerpc/tm-ppcle-eabi.h,
14571         gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14572         gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14573         gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14574         gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14575         gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14576         gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14577         gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14578         gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14579         gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14580         gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14581         gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14582         nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14583         include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14584         opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14585         opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14586         sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14587         sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14588         sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14589         sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14590         sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14591         sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14592         Remove lines for .cvsignore files.
14593
14594 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14595
14596         * infrun.c: Back out the previous change.
14597
14598 2004-01-03  Mark Kettenis  <kettenis@gnu.org>
14599
14600         * NEWS: Mention revised SPARC target.  Add sparc-*-lynxos* and
14601         sparc-*-sunos4* to the list of REMOVED configurations.
14602
14603         * configure.tgt: Add back sparc-*-vxworks*.
14604         * remote-vxsparc.c: Remove all includes except for "defs.h",
14605         "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14606         Include "sparc-tdep.h".
14607         (SPARC_R_G1): New define.
14608         (vxsparc_gregset): New variable.
14609         (ext_format_sparc): Remove extern declaration.
14610         (vx_read_register): Rewrite to use sparc32_supply_gregset and
14611         sparc32_supply_fpregset.
14612         (vx_write_register): Rewrite to use sparc32_collect_gregset,
14613         sparc_collect_rwindow and sparc32_collect_fpregset.
14614         * config/sparc/tm-vxworks.h: New file, based on recently removed
14615         tm-vxsparc.h.
14616         * config/sparc/vxworks.mt: New file, based on recently removed
14617         vxworks.mt.
14618
14619 2004-01-03  J. Brobecker  <brobecker@gnat.com>
14620
14621         * infrun.c (handle_step_into_function): New function.
14622         (handle_inferior_event): Extract out some code into the new
14623         function above.
14624
14625 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
14626
14627         * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14628         sparcl-tdep.c.  Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14629         sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14630         sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14631         sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14632         sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14633         (sparc_nat_h): New variable.
14634         (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14635         (tm-sun4os4.h): Remove dependency.
14636         (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14637         (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14638         sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14639         sparc-tdep.o): Update dependencies.
14640         (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14641         sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14642         sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14643         dependencies.
14644         * configure.host: Remove existing sparc-*-lynxos*,
14645         sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14646         ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14647         sparcv9-*-* and sparc64-*-* triplets.  Add new sparc64-*-linux*,
14648         sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14649         triplets.
14650         * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14651         sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14652         sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14653         sparcv9-*-* and commented out sparc64-*-solars2* triplets.  Add
14654         new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14655         sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14656         sparc64-*-solaris2* and sparc64-*-* triplets.
14657         * sparc64-tdep.c: Update copyright year.  Include "inferior.h",
14658         "symtab.h" and "objfiles.h".
14659         (BIAS): Remove define.
14660         (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14661         (X_DISP19): Remove macros.
14662         (sparc_fetch_instruction): Remove function.
14663         (struct gdbarch_tdep): Remove definition.
14664         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14665         (sparc_breakpoint_from_pc): Remove function.
14666         (struct sparc64_frame_cache): Remove definition.
14667         (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14668         sparc64_unwind_pc): Remove functions.
14669         (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14670         `struct sparc64_frame_cache.  Call sparc_analyze_prologue instead
14671         of sparc64_analyze_prologue.  Mark constant as ULL instead of UL.
14672         (sparc64_frame_cache): Change return type to `struct
14673         sparc_frame_cache *'.  Simply call sparc_frame_cache.
14674         (sparc64_frame_this_id, sparc64_frame_prev_register,
14675         sparc64_frame_base_address): Use `struct sparc_frame_cache'
14676         instead of `struct sparc64_frame_cache.
14677         (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14678         sparc_analyze_control_transfer, sparc_software_single_step,
14679         sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14680         _initialize_sparc64_tdep): Remove functions.
14681         (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14682         (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14683         macros.
14684         (sparc64_supply_gregset, sparc64_collect_gregset,
14685         sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14686         (sparc64_init_abi): New function.
14687         * sparc64-tdep.h: Update copyright year.  Fix typo in multiple
14688         inclusion guard.  Include "sparc-tdep.h".
14689         (BIAS): Define.
14690         (r_tstate_offset, r_fprs_offset): New defines.
14691         (enum sparc_regnum): Remove defenition.
14692         (enum sparc64_regnum): Reformat.
14693         (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14694         (sparc64_init_abi, sparc64_supply_gregset,
14695         sparc64_collect_gregset, sparc64_supply_fpregset,
14696         sparc64_collect_fpregset): New prototypes.
14697         (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14698         Add extern declarations.
14699         (sparc64_sol2_init_abi): New prototype.
14700         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14701         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14702         prototypes.
14703         * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14704         "sparnbsd-nat.h".
14705         (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14706         functions.
14707         (_initialize_sparc64fbsd_nat): Remove initialization of
14708         sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14709         sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14710         sparcbsd_fpreg_supplies_p.  Initialize sparc_gregset.
14711         * sparc64fbsd-tdep.c: Update copyright year.  Include "frame.h",
14712         "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14713         (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14714         (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14715         (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14716         (sparc64fbsd_r_y_offset): Remove variables.
14717         (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14718         Make static and const.
14719         (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14720         (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14721         functions.
14722         (sparc64fbsd_gregset): New variable.
14723         (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14724         and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14725         and sparc64_supply_fpregset.
14726         (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14727         (sparc64fbsd_sigtramp_frame_this_id)
14728         (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14729         (sparc64fbsd_sigtramp_frame_unwind): New variable.
14730         (sparc64fbsd_sigtramp_frame_sniffer): New function.
14731         (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14732         sparc64fbsd_sigtramp_frame_sniffer.  Call sparc64_init_abi.
14733         * sparcnbsd-tdep.c: Update copyright year.  Include
14734         "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14735         "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14736         "value.h" and "sparcnbsd-tdep.h".
14737         (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14738         (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14739         (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14740         (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14741         defines.
14742         (sparcnbsd_gregset): New variable.
14743         (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14744         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14745         (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14746         (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14747         (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14748         variables.
14749         (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14750         (sparc32nbsd_sigcontext_frame_this_id)
14751         (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14752         (sparc32nbsd_sigcontext_frame_unwind): New variable.
14753         (sparc32nbsd_sigtramp_frame_sniffer): New function.
14754         (sparcnbsd_get_longjmp_target_32,
14755         sparcnbsd_get_longjmp_target_64): Remove functions.
14756         (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14757         (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14758         sparcnbsd_init_elf): Remove.
14759         (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14760         (sparcnbsd_elf_init_abi): New functions.
14761         (_initialize_sparcnbsd_tdep): New prototype.
14762         (_initialize_sparnbsd_tdep): Update.
14763         * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14764         corelow.o.  Add sparc64-nat.o and sparc-nat.o.
14765         * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14766         * config/sparc/linux.mh: Update comment.
14767         (XM_FILE, HOST_IPC): Remove variables.
14768         (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o.  Remove
14769         sparc-linux-nat.o.
14770         * config/sparc/linux.mt: Update comment.
14771         (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14772         * config/sparc/nbsd.mt: Reformat.
14773         * config/sparc/nbsd64.mh: Update comment.
14774         (NATDEPFILES): Add sparc-nat.o.
14775         * config/sparc/nbsd64.mt: Update comment.
14776         (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14777         (TM_FILE): Set to tm-nbsd.h.
14778         * config/sparc/nbsdelf.mh: Update comment.
14779         (NATDEPFILES): Add sparc-nat.o.
14780         (XM_FILE): Delete.
14781         * config/sparc/nbsdaout.mh: Update comment.
14782         (NATDEPFILES): Add sparc-nat.o
14783         (XM_FILE): Delete.
14784         * config/sparc/nm-linux.h: Update copyright year.  Don't include
14785         "config/nm-svr4.h" and "solib.h".  Add protection against multiple
14786         inclusion.
14787         (KERNEL_U_SIZE): Remove define.
14788         (kernel_u_size): Remove prototype.
14789         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14790         * config/sparc/nm-nbsd.h: Update copyright.  Don't include
14791         "regcache.h".
14792         (CHILD_PREPARE_TO_STORE): Remove define.
14793         * config/sparc/nm-nbsdaout.h: Tweak some comments.
14794         * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14795         sparcnbsd-nat.c: Rewrite files.
14796         * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14797         * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14798         sparcnbsd-tdep.h: Remove files.
14799         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14800         config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14801         config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14802         config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14803         config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14804         config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14805         config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14806         config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14807         config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14808         config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14809         config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14810         config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14811         * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14812         sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14813         sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14814         * config/sparc/linux64.mh, config/sparc/linux64.mt,
14815         config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14816         config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14817         config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14818
14819 2004-01-02  Andrew Cagney  <cagney@redhat.com>
14820
14821         From 2003-12-18 Kazuhiro Inaoka:
14822         * configure.host: Add m32r-linux target.
14823
14824 2004-01-02  Michael Chastain  <mec.gnu@mindspring.com>
14825
14826         * top.c (print_gdb_version): Update year to 2004.
14827
14828 2004-01-02  Mark Mitchell  <mark@codesourcery.com>
14829
14830         * MAINTAINERS: Add myself to the write-after-approval category.
14831
14832 2004-01-02  Daniel Jacobowitz  <drow@mvista.com>
14833
14834         From Bernardo Innocenti <bernie@develer.com>:
14835         * configure.tgt: Add uClinux target.
14836
14837 2004-01-02  Andrew Cagney  <cagney@redhat.com>
14838
14839         * utils.c (do_my_cleanups): Make static, add forward declaration.
14840         * defs.h (do_my_cleanups): Delete declaration.
14841
14842 2004-01-02  Eli Zaretskii  <eliz@elta.co.il>
14843
14844         * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14845         bfd/ChangeLog-0203.
14846
14847 2004-01-02  Mark Kettenis  <kettenis@gnu.org>
14848
14849         * configure.in: Check for <machine/reg.h>.  Check for `struct reg'
14850         in <machine/reg.h>.
14851         * configure, config.in: Regenerate.
14852
14853 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14854 tui/ChangeLog-1998-2003.
14855 \f
14856 Local Variables:
14857 mode: change-log
14858 left-margin: 8
14859 fill-column: 74
14860 version-control: never
14861 End: