2004-09-03 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b8c4aece
AC
12004-09-03 Andrew Cagney <cagney@gnu.org>
2
0d5febcc
AC
3 * mips-tdep.c (find_proc_desc): Delete function.
4 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
5 simplify.
6 (mips_insn16_frame_cache): Replace find_proc_desc with code from
7 mips_insn32_frame_cache.
8
283be873
AC
9 * mips-tdep.c (find_proc_desc): Inline call to find_proc_desc.
10 Simplify as NEXT_FRAME is NULL.
11 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
12
177f84a3
AC
13 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
14 local variable.
15 (mips_skip_prologue): Update.
16
465f7520
AC
17 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
18 "cur_frame" parameter.
177f84a3
AC
19 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
20 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 21
e38b8658
AC
22 * config/vax/nm-obsd.h: Delete file.
23 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
24 * config/vax/nm-nbsd.h: Delete file.
25 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
26 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
27 * config/sh/nm-nbsd.h: Delete file.
28 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
29 * config/rs6000/nm-rs6000ly.h: Delete file.
30 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
31 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
32 * config/powerpc/nm-obsd.h: Delete file.
33 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
34 * config/powerpc/nm-nbsd.h: Delete file.
35 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
36 * config/pa/nm-obsd.h: Delete file.
37 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
38 * config/mips/nm-nbsd.h: Delete file.
39 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
40 * config/m88k/nm-obsd.h: Delete file.
41 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
42 * config/m68k/nm-nbsd.h: Delete file.
43 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
44 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
45 * config/i386/nm-nbsd.h: Delete file.
46 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
47 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
48 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
49 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
50 * config/i386/nm-i386lynx.h: Delete file.
51 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
52 * config/arm/nm-nbsd.h: Delete file.
53 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
54 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
55
be1ed680
AC
56 * config/i386/tm-fbsd.h: Delete file.
57 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
58 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
59
4b392b26
AC
60 * config/rs6000/tm-rs6000-aix4.h: Delete file.
61 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
62 * config/rs6000/aix4.mt (TM_FILE): Set to
63 config/rs6000/tm-rs6000.h.
64 * config/powerpc/tm-ppc-aix.h: Delete file.
65 * config/powerpc/aix.mt (TM_FILE): Set to
66 config/rs6000/tm-rs6000.h.
67 * config/m68k/tm-linux.h: Delete file.
68 * config/m68k/linux.mt (TM_FILE): Set to solib.h
69 * config/i386/tm-linux64.h: Delete file.
70 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
71 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
72
f3219c75
AC
73 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
74 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
75 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
76 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
77 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
78 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
79 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
80 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
81 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
82
b8c4aece
AC
83 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
84 gdb_host_cpu.
85
8ac2e020
JB
862004-09-02 Joel Brobecker <brobecker@gnat.com>
87
88 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
89 Minor reformatting. Some code factoring.
90
c185a355
AC
912004-09-02 Andrew Cagney <cagney@gnu.org>
92
63f22f0d
AC
93 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
94 * config/vax/tm-nbsd.h: Delete file.
95 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
96 * config/sparc/tm-vxworks.h: Delete file.
97 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
98 * config/sparc/tm-nbsd.h: Delete file.
99 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
100 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
101 * config/sparc/tm-linux.h: Delete file.
102 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
103 * config/s390/tm-linux.h: Delete file.
104 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
105 * config/pa/tm-bsd.h: Delete file.
106 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
107 * config/m68k/tm-obsd.h: Delete file.
108 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
109 * config/m68k/tm-nbsd.h: Delete file.
110 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
111 * config/i386/tm-vxworks.h: Delete file.
112 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
113 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
114 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
115 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
116 * config/i386/tm-nbsd.h: Delete file.
117 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
118 * config/i386/tm-i386lynx.h: Delete file.
119 * config/cris/cris.mt (TM_FILE): Set to solib.h.
120 * config/cris/tm-cris.h: Delete file.
121
0f475e27
AC
122 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
123 * configure: Re-generate.
124 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
125 * config/arm/tm-nbsd.h: Delete file.
126
458ed000
AC
127 * config/powerpc/tm-ppcle-sim.h: Delete.
128 * config/powerpc/tm-ppcle-eabi.h: Delete.
129 * config/powerpc/tm-nbsd.h: Delete.
130 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
131 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
132 tm-ppcle-eabi.h.
133
f14375f3
AC
134 * config/i386/nto.mh (NAT_FILE): Delete.
135 * config/i386/nm-nto.h: Delete.
136
c34d127c
AC
137 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
138 * config/m68k/tm-os68k.h: Ditto.
139 * config/m68k/tm-monitor.h: Ditto.
140 * config/m68k/tm-cisco.h: Ditto.
141 * config/m68k/st2000.mt (TM_FILE): Delete.
142 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
143 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
144 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
145 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
146
f7f0fe03
AC
147 * config/m68k/tm-st2000.h: Delete.
148 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
149 * config/sparc/fbsd.mt (TM_FILE): Delete.
150 * config/sparc/tm-fbsd.h: Delete.
151
a2558533
AC
152 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
153 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
154 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
155
b78960be
AC
156 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
157 GDB_TM_FILE and GDB_XM_FILE.
158 * gdbarch.c: Re-generate.
159 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
160 quotes in macro definition.
161 * configure.in: Re-generate.
162
4d60522e
AC
163 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
164 validating architecture methods.
165 * gdbarch.c: Re-generate.
166
5010d38b
AC
167 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
168 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
169 GDB_MULTI_ARCH_PARTIAL.
170 * gdbarch.h: Re-generate.
171
c185a355
AC
172 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
173 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
174 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
175 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
176 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
177 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
178 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
179 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
180 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
181 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
182 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
183 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
184
14aaa6ab
AC
1852004-09-01 Andrew Cagney <cagney@gnu.org>
186
187 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
188 and main_func_highpc.
189 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
190 * objfiles.c (init_entry_point_info, objfile_relocate): Update
191 * nlmread.c (nlm_symfile_read): Update.
192
a343eb3c
JB
1932004-09-01 Joel Brobecker <brobecker@gnat.com>
194
195 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
196 (mips_insn32_frame_cache): Inline call to find_proc_desc.
197 (find_proc_desc): Remove dead code.
198
4fbbbd07
JB
1992004-09-01 Joel Brobecker <brobecker@gnat.com>
200
201 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
202
84acb35a
JJ
2032004-09-01 Jeff Johnston <jjohnstn@redhat.com>
204
205 * observer.sh: Add struct so_list declaration.
206 * Makefile.in: Add dependencies on observer.h for solib.c and
207 breakpoint.c.
208 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
209 function.
210 (_initialize_breakpoint): Register
211 disable_breakpoints_in_unloaded_shlib as an observer of the
212 "solib unloaded" observation event.
213 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
214 call decode_line_1 so unfound breakpoint errors are silent.
215 * solib.c (update_solib_list): When a solib is discovered to have
216 been unloaded by the program, notify all observers of the
217 "solib unloaded" observation event.
218
c8cd9f6c
AC
2192004-09-01 Andrew Cagney <cagney@gnu.org>
220
221 * frame.c: Include "objfiles.h".
222 (inside_main_func): New function.
223 (get_prev_frame): Use new inside_main_func.
224 * Makefile.in (frame.o): Update dependencies.
225 * defs.h (inside_main_func): Delete declaration.
226 * blockframe.c (inside_main_func): Delete function.
227
1168df01
JB
2282004-08-31 Jim Blandy <jimb@redhat.com>
229
230 * dwarf2read.c (is_vtable_name): New function, based on logic from
231 read_structure_type, but passing the correct length to strncmp,
232 and using 'sizeof' instead of 'strlen'.
233 (read_structure_type): Call it.
234
f14f9744
JB
2352004-08-31 Joel Brobecker <brobecker@gnat.com>
236
237 * config/powerpc/aix.mh: Add comment.
238
386d4518
PG
2392004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
240
241 * MAINTAINERS: Add self to Write-After-Approval.
242
7d97d5e2
MI
2432004-08-30 Manoj Iyer <manjo@austin.ibm.com>
244
245 * MAINTAINERS: Add self to Write-After-Approval.
246
68f53502
AC
2472004-08-30 Andrew Cagney <cagney@gnu.org>
248
249 Fix PR breakpoints/1757.
250 * infrun.c (struct execution_control_state): Replace
251 remove_breakpoints_on_following_step with
252 step_after_step_resume_breakpoint.
253 (init_execution_control_state): Update.
254 (handle_inferior_event): For signals, when stepping off a
255 breakpoint, set step_after_step_resume_breakpoint. When
256 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
257 (keep_going): Delete code handling
258 remove_breakpoints_on_following_step.
259
7ca2d3a3
DL
2602004-08-29 David Lecomber <david@streamline-computing.com>
261
262 Fix PR gdb/648
263 * language.h (enum array_ordering): New enum.
264 * language.h (struct language_defn): New la_array_ordering
265 attribute.
266 * language.c (unknown_language_defn, auto_language_defn)
267 (local_language_defn): Ditto.
268 * ada-lang.c (ada_language_defn): Ditto.
269 * c-lang.c (c_language_defn, cplus_language_defn)
270 (asm_language_defn, minimal_language_defn): Ditto.
271 * f-lang.c (f_language_defn): Ditto.
272 * jv-lang.c (java_language_defn): Ditto.
273 * m2-lang.c (f_language_defn): Ditto.
274 * objc-lang.c (objc_language_defn): Ditto.
275 * p-lang.c (pascal_language_defn): Ditto.
276 * scm-lang.c (scm_language_defn): Ditto.
277 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
278 oriented large to small in type structure.
279 * dwarf2read.c (read_array_order): New function.
280 (read_array_type): Use read_array_order to check row/column
281 major ordering.
282
e354df01
NW
2832004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
284
285 * target.c (target_resize_to_sections): Check
286 current_target.to_sections for an old value when updating.
287
9185ddce
JB
2882004-08-27 Joel Brobecker <brobecker@gnat.com>
289
290 * procfs.c (dbx_link_bpt_addr): New static global variable.
291 (dbx_link_shadow_contents): New static global variable.
292 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
293 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
294 if we just hit it.
295 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
296 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
297 from run to run.
298 (procfs_create_inferior): Remove syssgi syscall-exit notifications
299 after the inferior has been forked.
300 (remove_dbx_link_breakpoint): New function.
301 (dbx_link_addr): New function.
302 (insert_dbx_link_bpt_in_file): New function.
303 (insert_dbx_link_bpt_in_region): New function.
304 (insert_dbx_link_breakpoint): New function.
305 (proc_trace_syscalls_1): New function, extracted from
306 proc_trace_syscalls.
307 (proc_trace_syscalls): Replace extract code by call to
308 proc_trace_syscalls_1.
309 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
310 is no longer valid.
311
e6742ace
JB
3122004-08-25 Jim Blandy <jimb@redhat.com>
313
314 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
315
8fb3e588
AC
3162004-08-25 Andrew Cagney <cagney@gnu.org>
317
629a41ee
AC
318 * infrun.c (struct execution_control_state): Delete field
319 "stepping_through_sigtramp".
320 (init_execution_control_state): Do not set same.
321 (context_switch): Do not pass same to save_infrun_state and
322 load_infrun_state.
323 * gdbthread.h (struct thread_info): Delete field
324 stepping_through_sigtramp.
325 (save_infrun_state, load_infrun_state): Delete parameter
326 stepping_through_sigtramp.
327 * thread.c (load_infrun_state, save_infrun_state): Update.
328
8fb3e588
AC
329 * infrun.c: Re-indent. Move expression operators to the beginning
330 of the line. Remove long disabled #if 0 code.
331
49c54768
AC
3322004-08-24 Andrew Cagney <cagney@gnu.org>
333
334 * doublest.h (floatformat_ieee_quad): Rename
335 floatformat_ia64_quad.
336 * doublest.c (floatformat_ieee_quad): Rename
337 floatformat_ia64_quad.
338 (_initialize_doublest): Update.
339
5ca2e327
JB
3402004-08-24 Jim Blandy <jimb@redhat.com>
341
87808bd6
JB
342 * dwarf2expr.h (struct dwarf_expr_context): New members
343 'num_pieces' and 'pieces', for returning the result of an
344 expression that uses DW_OP_piece.
345 (struct dwarf_expr_piece): New struct type.
346 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
347 pieces.
348 (free_dwarf_expr_context): Free pieces, if any.
349 (add_piece): New function.
350 (execute_stack_op): Implement DW_OP_piece.
351 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
352 expression is a list of pieces, print an error message.
353 (dwarf2_loc_desc_needs_frame): If the expression yields
354 pieces, and any piece is in a register, then we need a frame.
355
5ca2e327
JB
356 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
357 the stack until we've decided what sort of result the evaluation
358 has produced. Use separate variables, with more specific names.
359
2afeb6b8
RE
3602004-08-23 Richard Earnshaw <rearnsha@arm.com>
361
362 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
363 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
364 (arm_netbsd_init_abi_common): Register them.
365
5885ab49
MK
3662004-08-22 Mark Kettenis <kettenis@gnu.org>
367
fda820a6
MK
368 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
369
1c5bf419
MK
370 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
371 safe_frame_unwind_memory instead of target_read_memory.
372
8cbba7c8
MK
373 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
374 Reorder includes.
375 (fetch_register, store_register): Remove prototypes.
376 (child_resume): Reorganize code and comments such that it is
377 grouped a bit more logically.
378 (attach): Explicitly compare errno against 0.
379 (detach): Likewise. Use perror_with_name instead of
380 print_sys_errmsg.
381 * Makefile.in (infptrace.o): Update dependencies.
382
c5fa4245
MK
383 * ia64-linux-nat.c: Update copyright year.
384 (fetch_debug_register, store_debug_register)
385 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
386 PTRACE_TYPE_ARG3.
387 * config/ia64/nm-linux.h: Update copyright year.
388 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
389
387c058c
MK
390 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
391 from CORE_ADDR to struct frame_info *. Use
392 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
393 (amd64_linux_sigtramp_p): Adjust for changed signature of
394 and64_linux_sigtramp_start
395
277215a6
MK
396 * gdb_ptrace.h: GNU/Linux.
397
25f6178e
MK
398 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
399 Remove defines.
400
652fc137
MK
401 * infptrace.c: Include "gdb_assert.h".
402 (PTRACE_XFER_TYPE): Remove define.
403 (offsetof): Only define if U_REGS_OFFSET isn't defined.
404 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
405 Tweak comment.
406 (fetch_inferior_registers, store_inferior_registers): Remove
407 redundant culry braces. Tweak comment. s/regno/regnum.
408 * Makefile.in (infptrace.o): Update dependencies.
409
5885ab49
MK
410 * configure.in: Change test for return type of ptrace to default
411 to `long' instead of `int'.
412 * configure: Regenerate.
413
11003ae3
MK
4142004-08-21 Mark Kettenis <kettenis@gnu.org>
415
6b95110c
MK
416 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
417
bcb3dc3d
MK
418 * configure.in: Check for ttrace function.
419 * configure, config.in: Regenerate.
420
11003ae3
MK
421 * gdb_ptrace.h: New file.
422 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
423 <sys/ptrace.h>.
424 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
425 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
426 (attach): Don't define PT_ATTACH.
427 (detach): Don't define PT_DETACH.
428 * Makefile.in (gdb_ptrace_h): New variable.
429 (infptrace.o): Update dependencies.
430
f8707cac
MK
4312004-08-16 Mark Kettenis <kettenis@gnu.org>
432
433 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
434 instead of `int' if not already defined.
435 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
436 PTRACE_TYPE_ARG3.
437 * infptrace.c (call_ptrace): Revert change that replaced
438 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
439
655c5466
MK
4402004-08-15 Mark Kettenis <kettenis@gnu.org>
441
156e5ba7
MK
442 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
443 Remove defines.
444
de9a9e51
MK
445 * linux-nat.c (kill_inferior): Add missing third and fourth
446 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
447
88800403
MK
448 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
449 PTRACE_TYPE_RET.
450
849a1d7c
MK
451 * proc-why.c (proc_prettyfprint_why): Fix format string.
452
61ad16d1
MK
453 * solib-osf.c (osf_current_sos): Remove unsused label.
454
a6ed5501
MK
455 * configure.in: Add <ncurses/ncurses.h> to the list of possible
456 curses headers.
457 * configure, config.in: Regenerate.
458 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
459 <ncurses/ncurses.h>.
460
016ddeca
MK
461 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
462 * config/nm-nbsd.h: Update copyright year.
463 (PTRACE_ARG3_TYPE): Remove define.
464
49ec097f
MK
465 * sparc-nat.c (fetch_inferior_registers)
466 (store_inferior_registers, sparc_xfer_wcookie):
467 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
468
9f8e0089
MK
469 * alphabsd-nat.c (fetch_inferior_registers):
470 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
471 PTRACE_TYPE_ARG3.
472 * amd64bsd-nat.c (fetch_inferior_registers)
473 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
474 PTRACE_TYPE_ARG3.
475 * armnbsd-nat.c: Update copyright year.
476 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
477 (store_register, store_regs, store_fp_register, store_fp_regs):
478 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
479 * hppabsd-nat.c (fetch_inferior_registers)
480 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
481 PTRACE_TYPE_ARG3.
482 * i386bsd-nat.c (fetch_inferior_registers)
483 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
484 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
485 * m68kbsd-nat.c (fetch_inferior_registers)
486 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
487 PTRACE_TYPE_ARG3.
488 * m88kbsd-nat.c (fetch_inferior_registers)
489 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
490 PTRACE_TYPE_ARG3.
491 * mipsnbsd-nat.c: Update copyright year.
492 (fetch_inferior_registers, store_inferior_registers):
493 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
494 * ns32knbsd-nat.c: Update copyright year.
495 (fetch_inferior_registers, store_inferior_registers):
496 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
497 * ppcnbsd-nat.c (fetch_inferior_registers):
498 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
499 PTRACE_TYPE_ARG3.
500 * ppcobsd-nat.c (fetch_inferior_registers):
501 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
502 PTRACE_TYPE_ARG3.
503 * shnbsd-nat.c: Update copyright year.
504 (fetch_inferior_registers, store_inferior_registers):
505 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
506 * vaxbsd-nat.c (fetch_inferior_registers)
507 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
508 PTRACE_TYPE_ARG3.
509
655c5466
MK
510 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
511 PTRACE_TYPE_ARG3.
512 * infptrace.c (call_ptrace, child_resume, attach, detach)
513 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
514 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
515 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
516 PTRACE_TYPE_ARG3.
517
c40d0d10
MK
5182004-08-14 Mark Kettenis <kettenis@gnu.org>
519
5cb0ff31
MK
520 * defs.h: Remove out-of-date comment.
521 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
522 [!GETENV_PROVIDED] (getenv): Remove prototype.
523
5f0f34cb
MK
524 * standalone.c: Remove file.
525 * Makefile.in (standalone.o): Remove dependency.
526
7532965f
MK
527 * i386-linux-nat.c (dummy_sse_values): Remove function and
528 prototype.
529 (i386_linux_dr_get): Fix typo in comment.
530 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
531
1bdc6c53
MK
532 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
533
c40d0d10
MK
534 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
535 from declaration.
536 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
537 from definition.
538
64218d3e
MK
5392004-08-13 Mark Kettenis <kettenis@gnu.org>
540
541 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
542 parenthesis in definition.
543 * configure: Regenerated.
544
926c94e7
MC
5452004-08-12 Michael Chastain <mec.gnu@mindspring.com>
546
547 * PROBLEMS: Mention build/1411.
548
69489883
NN
5492004-08-09 Robert Millan <robertmh@gnu.org>
550
551 Committed by Nathanael Nerode.
552 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
553 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
554
ebb7c577
AC
5552004-08-12 Andrew Cagney <cagney@gnu.org>
556
557 * NEWS: Mention fixes in GDB 6.2.1.
558 * PROBLEMS: Remove mention of mips-irix.
559
232d697c
JB
5602004-08-11 Joel Brobecker <brobecker@gnat.com>
561
562 * config/powerpc/xm-aix.h: Delete.
563 * config/powerpc/aix.mh (MH_FILE): Remove.
564 * config/powerpc/aix432.mh (MH_FILE): Remove.
565
72f4e82b
JB
5662004-08-11 Joel Brobecker <brobecker@gnat.com>
567
568 * config/powerpc/aix.mh: Remove obsolete comment.
569 * config/powerpc/aix432.mh: Likewise.
570
0687ccb2
JB
5712004-08-11 Joel Brobecker <brobecker@gnat.com>
572
573 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
574
dbf3ada7
JB
5752004-08-11 Joel Brobecker <brobecker@gnat.com>
576
e08e1886
JB
577 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
578 this file is now empty.
579 * config/xm-aix4.h: Remove, this file is no longer included
580 anywhere.
581
5822004-08-11 Joel Brobecker <brobecker@gnat.com>
583
584 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
585 that file is now empty.
dbf3ada7
JB
586 (termdef): Remove prototype, function no longer used.
587
4c525ef6
JB
5882004-08-11 Joel Brobecker <brobecker@gnat.com>
589
590 * doc/gdbint.texinfo (Host Definition): Remove documentation
591 for USE_O_NOCTTY, no longer used.
592 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
593 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
594
82e0b968
JB
5952004-08-11 Joel Brobecker <brobecker@gnat.com>
596
597 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
598 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
599 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
600
f2acbe1c
MK
6012004-08-11 Mark Kettenis <kettenis@gnu.org>
602
daa98270
MK
603 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
604 instead of FIVE_ARG_PTRACE.
605
f2acbe1c
MK
606 * inflow.c (O_NOCTTY): Define to zero if not already defined.
607 (new_tty): Use O_NOCTTY unconditionally.
608
cc377e6b
MK
6092004-08-10 Mark Kettenis <kettenis@gnu.org>
610
611 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
612 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
613 fflush on stdout.
614
3bcc18fa
JB
6152004-08-10 Joel Brobecker <brobecker@gnat.com>
616
617 * xcoff_symfile_finish: Replace last call to xmfree by call
618 to xfree.
619
7936743b
AC
6202004-08-10 Andrew Cagney <cagney@gnu.org>
621
cc503c8a
AC
622 * main.c (captured_main): Delete call to init_malloc.
623 * defs.h (init_malloc): Delete declaration.
624 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
625 (init_malloc): Delete functions.
626
2dc74dc1
AC
627 * defs.h (xmfree): Delete.
628 * utils.c (xmfree): Delete function.
629 (xfree): Inline calls to xmfree and mfree.
630 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
631 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
632 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
633 * somread.c (som_symfile_finish): Ditto.
634 * objfiles.c (allocate_objfile, free_objfile):
635 * nlmread.c (nlm_symfile_finish): Ditto.
636 * hpread.c (hpread_symfile_finish): Ditto.
637 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
638 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
639 * coffread.c (coff_symfile_finish): Ditto.
640
aa2ee5f6
AC
641 * defs.h (xmcalloc): Delete declaration.
642 * utils.c (xmcalloc): Delete.
643 (xcalloc): Inline calls to xmcalloc and mcalloc.
644 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
645 xcalloc and xfree.
646 * symtab.c (create_demangled_names_hash): Ditto.
647
0efffb96
AC
648 * defs.h (xmrealloc): Delete.
649 * utils.c (xmrealloc): Delete.
650 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
651 * symmisc.c (extend_psymbol_list): Use xrealloc.
652 * source.c (find_source_lines): Ditto.
653 * hpread.c (hpread_lookup_type): Ditto.
654 * dbxread.c (add_bincl_to_list): Ditto.
655
7936743b
AC
656 * utils.c (xmmalloc): Delete.
657 (xmalloc): Inline xmmalloc and mmalloc calls.
658 (msavestring): Use xmalloc.
659 * defs.h (xmmalloc): Delete declaration.
660 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
661 xmmalloc.
662 * symmisc.c (extend_psymbol_list): Ditto.
663 * symfile.c (init_psymbol_list): Ditto.
664 * source.c (find_source_lines): Ditto.
665 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
666 * elfread.c (elf_symtab_read): Ditto.
667 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
668 * coffread.c (coff_symfile_init): Ditto.
669
252ab814
DC
6702004-08-10 David Carlton <carlton@bactrian.org>
671
672 * MAINTAINERS: Remove David Carlton from c++ testsuite
673 maintainers.
674
8f5ba92b
JG
6752004-08-10 Jerome Guitton <guitton@gnat.com>
676
677 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
678 print a line feed before the prompt.
679
21749010
MK
6802004-08-10 Mark Kettenis <kettenis@gnu.org>
681
682 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
683
1f011ce2
JB
6842004-08-09 Joel Brobecker <brobecker@gnat.com>
685
686 General cleanup of the AIX xm include file:
687 * config/xm-aix4.h (fd_set): Remove undefine.
688 Remove include of <sys/select.h>.
689 (HAVE_TERMIO): Remove define.
690 (USG): Likewise.
691 (NULL): Remove redefine.
692 (alloca): Remove #pragma.
693 (vfork): Remove define.
694 (termdef): Remove.
695 (SIGWINCH_HANDLER): Remove.
696 (SIGWINCH_HANDLER_BODY): Remove.
697
cf4e7692
MK
6982004-08-09 Mark Kettenis <kettenis@gnu.org>
699
700 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
701 GDB_OSABI_OPENBSD_ELF.
702
ac5754fa
MK
7032004-08-07 Robert Millan <robertmh@gnu.org>
704
705 * bsd-kvm.c: Check for nlist.h before including it.
706
086ec9eb
MK
7072004-08-09 Mark Kettenis <kettenis@gnu.org>
708
bbe06c74
MK
709 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
710 sigcontext' offset consistency checks for ancient BSD.
711
3aa7b3b3
MK
712 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
713
086ec9eb
MK
714 * configure.in: Check for <sys/types.h>. Check return and
715 argument types of ptrace.
716 * configure, config.in: Regenerate.
717
09991fa0
JB
7182004-08-09 Jim Blandy <jimb@redhat.com>
719
720 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
721 rs6000_register_sim_regno): Doc fixes.
722
fed7ba43
JB
7232004-08-08 Joel Brobecker <brobecker@gnat.com>
724
725 * mips-tdep.c: Include "floatformat.h".
726 (n32n64_floatformat_always_valid): New function.
727 (floatformat_n32n64_long_double_big): New constant.
728 (mips_gdbarch_init): Set size and format of long double
729 for N32 and N64 ABIs.
730 * Makefile.in (mips-tdep.o): Update dependencies.
731
456fcf94
AC
7322004-08-08 Andrew Cagney <cagney@gnu.org>
733
2f9b146e
AC
734 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
735 print. Improve script's error messages.
736 * gdbarch.h: Re-generate.
737
456fcf94
AC
738 * gdbarch.sh (pformat): New function.
739 (float_format, double_format, long_double_format): List with bit
740 members. Use pformat when printing.
741 * gdbarch.c, gdbarch.h: Re-generate.
742
69e9e646
NW
7432004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
744
745 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
746 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
747 (ppcnbsd_supply_pcb): New function.
748 (_initialize_ppcnbsd_nat): New prototype and function.
749 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
750 (LOADLIBES): New variable.
751 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
752
5ef2d0aa
AC
7532004-08-08 Andrew Cagney <cagney@gnu.org>
754
755 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
756 (builtin_type_ieee_double, builtin_type_ia64_quad)
757 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
758 BE/LE floating-point types.
759 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
760 (builtin_type_ieee_double, builtin_type_ia64_quad)
761 (builtin_type_ia64_spill): Declare.
762 * doublest.c (_initialize_doublest, floatformat_ieee_single)
763 (floatformat_ieee_double, floatformat_arm_ext)
764 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
765 of LE/BE floatformats.
766 * doublest.h: (struct floatformat, floatformat_ieee_single)
767 (floatformat_ieee_double, floatformat_arm_ext)
768 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
769
5c7f2947
MK
7702004-08-08 Mark Kettenis <kettenis@gnu.org>
771
ecac404d
MK
772 * i386gnu-nat.c (gnu_store_registers): Fix typo.
773
9b8607ce
MK
774 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
775 instead of regcache_raw_supply when storing the registers.
776
f6052080
MK
777 * i386gnu-nat.c: Update copyright year.
778 (gnu_store_registers): Don't use deprecated_registers and
779 deprecated_registers_valid. Use regcache_valid_p and
780 regcache_raw_supply instead.
781
17777823
MK
782 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
783 frame_pc_unwind.
784
5240ceac
MK
785 * procfs.c (procfs_pid_to_str): Remove redundant and unused
786 variables. Incapitalized "process".
787
5c7f2947
MK
788 * configure.in: Add cursesX to the list of possible curses libs.
789 Add cursesX.h to the list of possible curses headers.
790 * configure, config.in: Regenerate.
791
da7d81e3
NW
7922004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
793
794 * configure.in: Test for struct lwp in <sys/lwp.h>.
795 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
796 the offset of l_addr in struct lwp.
797
7f245d65
NW
7982004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
799
800 * bsd-kvm.c: Include "gdbcore.h"
801 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
802
47b3f456
AC
8032004-08-07 Andrew Cagney <cagney@gnu.org>
804
70bd8e24
AC
805 * gdbtypes.c (build_flt, build_complex): New functions.
806 (gdbtypes_post_init): Use.
807
9b0dea39
AC
808 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
809
5cf7abac
AC
810 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
811 through to builtin_type_uint128.
812
64d2b26d
AC
813 * c-exp.y: Use builtin_type function to obtain builtin types.
814
7ad6570d
AC
815 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
816 builtin_uint128.
817 * gdbtypes.c (gdbtypes_post_init): Update.
818 (build_gdbtypes): Move initialization of builtin_type_int0
819 through to builtin_type_uint128 from here ...
820 (_initialize_gdbtypes): ... to here.
821 * d10v-tdep.c (d10v_register_type): Update.
822
47b3f456
AC
823 * doublest.c: Update copyright.
824 (floatformat_from_length): Call error when floatformat is NULL.
825 (extract_floating_by_length): Remove NULL fmt check.
826 (store_floating_by_length): Ditto.
827
0a8146bf
AC
8282004-08-07 Andrew Cagney <cagney@gnu.org>
829
830 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
831 that the register is valid.
832
c0ccb908
MK
8332004-08-05 Mark Kettenis <kettenis@chello.nl>
834
8e6bed05
MK
835 * i386-linux-tdep.c (i386_linux_sigtramp_start)
836 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
837 struct frame_info *. Use safe_frame_unwind_memory instead of
838 deprecated_read_memory_nobpt.
839 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
840 changed signature of i386_linux_sigtramp_start and
841 i386_linux_rt_sigtramp_start.
842
24f9f5e3
MK
843 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
844 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
845 instead of deprecated_read_memory_nobpt.
846 (i386nbsd_sigtramp_p): Adjust for changed signature of
847 i386nbsd_sigtramp_offset.
848
c822af0c
MK
849 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
850 safe_frame_unwind_memory instead of target_read_memory.
851
c0ccb908
MK
852 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
853 !NO_SYS_FILE.
854 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
855 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
856 (_initialize_kernel_u_addr): Remove prototype and function.
857 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
858 !NO_SYS_FILE.
859 * xcoffread.c: Likewise.
860
b9e1c0d6
MK
8612004-08-06 Mark Kettenis <kettenis@gnu.org>
862
863 * vax-nat.c: New file.
864 * vaxbsd-nat.c: Tweak comment.
865 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
866 vaxnbsd-tdep.c.
867 (vax-nat.o): New dependency.
868 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
869 (vax-*-ultrix2*): Remove.
870 * config/vax/vax.mh: New file.
871 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
872 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
873 (vax_register_u_addr): New prototype.
874 (REGISTER_U_ADDR): Define using vax_register_u_addr.
875 * config/vax/vaxult2.mh: Remove file.
876 * config/vax/vaxult.mh: Remove file.
877 * config/vax/vaxbsd.mh: Remove file.
878 * config/vax/vax.mt (TM_FILE): Remove.
879 * config/vax/tm-vaxbsd.h: Remove file.
880
9ad7bec7
JB
8812004-08-06 Joel Brobecker <brobecker@gnat.com>
882
883 * aix-thread.c (get_signaled_thread): New function.
884 (iter_trap): Delete, no longer used.
885 (iter_tid): New function.
886 (pd_update): Find the thread that received the SIGTRAP signal
887 by first locating the kernel thread, and then finding its
888 associated thread.
889
bf0d233d
UW
8902004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
891
892 * lin-lwp.c (child_wait): Continue inferior after processing
893 PTRACE_EVENT_CLONE event.
894
d0f853e1
NN
8952004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
896
897 * MAINTAINERS: Add self to Write-After-Approval.
898
ab14aeb0
JJ
8992004-08-05 Jeff Johnston <jjohnstn@redhat.com>
900
901 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
902 libunwind-xxxx.so" where xxxx is UNW_TARGET.
903
9c8dbfa9
AC
9042004-08-05 Andrew Cagney <cagney@gnu.org>
905
c8f3ca46
AC
906 * config/xm-sysv4.h: Delete file.
907 * config/mips/xm-irix5.h: Delete file.
908 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
909 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
910 * config/ia64/xm-aix.h: Delete file.
911 * config/ia64/aix.mh (XM_FILE): Delete.
912 * config/pa/xm-hppah.h: Delete file.
913 * config/pa/hpux11w.mh (XM_FILE): Delete.
914 * config/pa/hpux11.mh (XM_FILE): Delete.
915 * config/pa/hpux1020.mh (XM_FILE): Delete.
916 * config/pa/hppahpux.mh (XM_FILE): Delete.
917
5f7daaff
AC
918 * config/alpha/xm-alphalinux.h: Delete file.
919 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
920 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
921 * config/alpha/xm-alphaosf.h: Delete file.
922 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
923 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
924 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
925 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
926
69babf95
AC
927 * config/i386/xm-i386v.h: Delete file.
928 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
929 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
930 * config/i386/xm-i386sco.h: Delete file.
931 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
932 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
933 * config/i386/xm-i386v4.h: Delete file.
934 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
935 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
936 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
937 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
938
6f009c8a
AC
939 * config/vax/xm-vax.h: Delete file.
940 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
941 * config/vax/xm-vaxult2.h: Delete file.
942 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
943 * config/vax/vaxult2.mh (XM_FILE): Delete.
944 * config/vax/xm-vaxult.h: Delete file.
945 * config/vax/vaxult.mh (XM_FILE): Delete.
946 * config/vax/xm-vaxbsd.h: Delete file.
947 * config/vax/vaxbsd.mh (XM_FILE): Delete.
948
9c8dbfa9
AC
949 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
950 * gdbarch.h, gdbarch.c: Re-generate.
951 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
952 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
953 * frame.h: Delete deprecated_read_fp from comments.
954 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
955 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
956
84367a3e
MK
9572004-08-04 Mark Kettenis <kettenis@gnu.org>
958
9c8e3411
MK
959 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
960 trampoline in OpenBSD 3.5-current.
961
b87bc0d8
MK
962 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
963 SSE registers.
964
84367a3e
MK
965 * Makefile.in: Remove embedded page breaks.
966
a44bddec
JB
9672004-08-04 Jim Blandy <jimb@redhat.com>
968
7ab3286f
JB
969 * regcache.c (regcache_raw_read): Assert that, after calling
970 target_fetch_registers, the register we're reading is cached.
971
a44bddec
JB
972 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
973 a call to 'internal_error', with a more helpful error message.
974 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 975 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 976
35124113
AC
9772004-08-04 Andrew Cagney <cagney@gnu.org>
978
979 * Makefile.in: Update dependencies.
980
9f643768
JB
9812004-08-04 Jim Blandy <jimb@redhat.com>
982
6ced10dd
JB
983 Change the layout of the PowerPC E500 raw register cache to allow
984 the lower 32-bit halves of the GPRS to be their own raw registers,
985 not pseudoregisters.
986 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
987 add ppc_ev0_upper_regnum flag.
988 * rs6000-tdep.c: #include "reggroups.h".
989 (spe_register_p): Recognize the ev upper half registers as SPE
990 registers.
991 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
992 registers.
993 (e500_move_ev_register): New function.
994 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
995 vector registers are the pseudo-registers now, formed by splicing
996 together the gprs and the upper-half registers.
997 (e500_register_reggroup_p): New function.
998 (P): Macro deleted.
999 (P8, A4): New macro.
1000 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1001 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1002 macros.
1003 (registers_e500): Rearrange register set so that the raw register
1004 set contains 32-bit GPRs and upper-half registers, and the SPE
1005 vector registers become pseudo-registers.
1006 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1007 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1008 register numbers are now the same for the E500 as they are for
1009 other PowerPC variants. Register e500_register_reggroup_p as the
1010 register group function for the E500.
1011 * Makefile.in (rs6000-tdep.o): Update dependencies.
1012
1013 Adapt PPC E500 native support to the new raw regcache layout.
1014 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1015 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1016 (fetch_spe_register, store_spe_register): Handle fetching/storing
1017 all the SPE registers at once, if regno == -1. These now take
1018 over the job of fetch_spe_registers and store_spe_registers.
1019 (fetch_spe_registers, store_spe_registers): Deleted.
1020 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1021 unconditionally; they're always raw. Fetch/store SPE upper half
1022 registers, if present, instead of ev registers.
1023 (fetch_register, store_register): Remove sanity checks: gprs are
1024 never pseudo-registers now, so we never need to even mention any
1025 registers that are ever pseudoregisters.
1026
9f643768
JB
1027 Use a fixed register numbering when communicating with the PowerPC
1028 simulator.
1029 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1030 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1031 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1032 New functions.
1033 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1034 init_sim_regno_table.
1035 * Makefile.in (gdb_sim_ppc_h): New variable.
1036 (rs6000-tdep.o): Update dependencies.
1037
1e2279c8
AC
10382004-08-02 Andrew Cagney <cagney@gnu.org>
1039
1d94326f
AC
1040 * cris-tdep.c (cris_register_size): Restore function, still used
1041 locally.
1042
331ae7ed
AC
1043 * gdbarch.sh (deprecated_target_read_fp)
1044 (deprecated_frame_locals_address, deprecated_frame_args_address)
1045 (deprecated_frame_chain_valid, deprecated_frame_chain)
1046 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1047 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1048 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1049 * gdbarch.h, gdbarch.c: Re-generate.
1050 * regcache.c (deprecated_read_fp): Do not call
1051 DEPRECATED_TARGET_READ_FP_P.
1052 * infcmd.c (default_print_registers_info): Do not call
1053 DEPRECATED_DO_REGISTERS_INFO.
1054 * frame-base.c (default_frame_locals_address): Do not call
1055 DEPRECATED_FRAME_LOCALS_ADDRESS.
1056 (default_frame_args_address): Do not call
1057 DEPRECATED_FRAME_ARGS_ADDRESS.
1058
1e2279c8
AC
1059 * gdbarch.sh (deprecated_register_raw_size)
1060 (deprecated_register_virtual_size:int): Delete.
1061 * gdbarch.h, gdbarch.c: Re-generate.
1062 * cris-tdep.c (cris_register_size): Delete.
1063 (cris_gdbarch_init): Update.
1064 * alpha-tdep.c (alpha_register_raw_size)
1065 (alpha_register_virtual_size): Delete.
1066 (alpha_gdbarch_init): Update.
1067
a90c06b4
AC
1068 * gdbarch.sh (deprecated_register_virtual_type)
1069 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1070 (deprecated_dummy_write_sp): Delete.
1071 * gdbarch.h, gdbarch.c: Re-generate.
1072
f42accbe
AC
1073 * gdbarch.sh (deprecated_register_bytes): Delete.
1074 * gdbarch.h, gdbarch.c: Re-generate.
1075 * regcache.c (deprecated_register_bytes): New function.
1076 * regcache.h (deprecated_register_bytes): Declare.
1077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1078 * v850-tdep.c (v850_gdbarch_init): Update.
1079 * sh64-tdep.c (sh64_gdbarch_init): Update.
1080 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1081 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1082 * mcore-tdep.c (mcore_gdbarch_init): Update.
1083 * cris-tdep.c (cris_gdbarch_init): Update.
1084 * arm-tdep.c (arm_gdbarch_init): Update.
1085 * remote.c (init_remote_state): Update.
1086 * remote-vx.c (vx_prepare_to_store): Update.
1087 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1088 * irix5-nat.c (fetch_core_registers): Update.
1089 * cris-tdep.c (cris_register_bytes_ok): Update.
1090 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1091
45c9dd44
AC
1092 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1093 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1094 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1095 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1096 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1097 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1098 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1099 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1100 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1101 with mips_insn16 and mips_insn32.
1102
3acba339
AC
1103 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1104 * rs6000-tdep.c (rs6000_push_dummy_call)
1105 (rs6000_extract_return_value): Use register_size.
1106 * xstormy16-tdep.c (xstormy16_get_saved_register)
1107 (xstormy16_extract_return_value): Ditto.
1108 * valops.c (value_assign): Ditto.
1109 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1110 * v850-tdep.c (v850_extract_return_value): Ditto.
1111 * tracepoint.c (collect_symbol): Ditto.
1112 * target.c (debug_print_register): Ditto.
1113 * stack.c (frame_info): Ditto.
1114 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1115 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1116 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1117 (store_register_using_P): Ditto.
1118 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1119 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1120 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1121 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1122 * regcache.c (deprecated_read_register_bytes)
1123 (deprecated_write_register_bytes, read_register)
1124 (write_register): Ditto.
1125 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1126 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1127 * monitor.c (monitor_supply_register, monitor_fetch_register)
1128 (monitor_store_register): Ditto.
1129 * mn10300-tdep.c (mn10300_pop_frame_regular)
1130 (mn10300_print_register): Ditto.
1131 * mipsv4-nat.c (fill_fpregset): Ditto.
1132 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1133 (mips64_fill_fpregset): Ditto.
1134 * mi/mi-main.c (register_changed_p, get_register)
1135 (mi_cmd_data_write_register_values): Ditto.
1136 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1137 * irix5-nat.c (fill_gregset, fetch_core_registers):
1138 * infrun.c (write_inferior_status_register): Ditto.
1139 * infptrace.c (fetch_register, store_register): Ditto.
1140 * infcmd.c (default_print_registers_info): Ditto.
1141 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1142 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1143 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1144 * hpux-thread.c (hpux_thread_fetch_registers)
1145 (hpux_thread_store_registers): Ditto.
1146 * hppah-nat.c (store_inferior_registers, fetch_register):
1147 * findvar.c (value_from_register): Ditto.
1148 * dve3900-rom.c (fetch_bitmapped_register):
1149 * cris-tdep.c (cris_gdbarch_init): Ditto.
1150 * alpha-tdep.h: Ditto.
1151 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1152
01e1877c
AC
1153 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1154 DEPRECATED_REGISTER_RAW_SIZE from comments.
1155 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1156 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1157 DEPRECATED_REGISTER_RAW_SIZE.
1158 * findvar.c (value_of_register): Simplify by assuming that the
1159 registers raw and virtual sizes are identical.
1160 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1161 comment.
1162 * arch-utils.c (generic_register_size): Simplify by assuming
1163 register_type.
1164
73f458fb
AC
1165 * regcache.c (legacy_read_register_gen, real_register)
1166 (legacy_write_register_gen): Delete, not used.
1167
336a3131
AC
1168 * regcache.c (struct regcache_descr): Delete legacy_p.
1169 (init_legacy_regcache_descr): Delete function.
1170 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1171 Do not use deprecated register functions.
1172 (regcache_raw_read, deprecated_write_register_gen):
1173 (deprecated_read_register_gen, regcache_raw_write): Delete code
1174 predicated on legacy_p.
1175 (register_size): Delete check against register raw size.
1176
c1d546cd
AC
1177 * cris-tdep.c (cris_register_type): Replace
1178 cris_register_virtual_type.
1179 (cris_gdbarch_init): Update, set register_type.
1180
48c2c0a6
AC
1181 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1182 * gdbarch.h, gdbarch.c: Re-generate.
1183 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1184 (arm_gdbarch_init) Do not set frameless function invocation.
1185 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1186 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1187 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1188 (frv_gdbarch_init): Do not set frameless function invocation.
1189 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1190 * sh-tdep.c (sh_gdbarch_init): Ditto.
1191 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1192 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1193 * avr-tdep.c (avr_gdbarch_init): Ditto.
1194
474093a6
AC
1195 * blockframe.c (legacy_frame_chain_valid): Delete function.
1196
3c109c8b
AC
1197 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1198 and pc. Update comments.
1199 (pc_in_dummy_frame): Delete function.
1200 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1201 use the "id".
1202 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1203 call_hi, top and pc, use the id.
1204 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1205
96860204
AC
1206 * dummy-frame.c: Include "gdb_string.h".
1207 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1208 (generic_save_dummy_frame_tos): Delete.
1209 (dummy_frame_push): New function, replaces above.
1210 * dummy-frame.h: Update copyright.
1211 (dummy_frame_push): Declare.
1212 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1213 (generic_save_call_dummy_addr): Delete declarations.
1214 * infcall.c: Include "dummy-frame.h".
1215 (call_function_by_hand): Add locals caller_regcache,
1216 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1217 with call to frame_save_as_regcache plus cleanup. Delete calls to
1218 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1219 Move clear_proceed_status to just before the resume, add call to
1220 dummy_frame_push (discard cleanup).
1221 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1222 (dummy-frame.o): Add $(gdb_string_h).
1223
d67ec5db
AC
12242004-08-01 Andrew Cagney <cagney@gnu.org>
1225
1226 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1227 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1228 * dummy-frame.c (find_dummy_frame): Delete.
1229 (struct dummy_frame_cache, dummy_frame_sniffer)
1230 (dummy_frame_prev_register, dummy_frame_this_id)
1231 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1232 frame unwinder using a dummy_frame_cache.
1233
a81dcb05
AC
12342004-08-01 Andrew Cagney <cagney@gnu.org>
1235
1236 * frame.h (frame_save_as_regcache): Declare.
1237 * frame.c (frame_save_as_regcache): New function.
1238 (do_frame_read_register): Replace do_frame_unwind_register.
1239 (frame_pop): Use frame_save_as_regcache.
1240 * dummy-frame.c (generic_push_dummy_frame): Use
1241 frame_save_as_regcache.
1242
aa495d11
JB
12432004-08-01 Joel Brobecker <brobecker@gnat.com>
1244
1245 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1246 file as included until we record the first line in the linetable.
1247
ff65ac78
AC
12482004-08-01 Andrew Cagney <cagney@gnu.org>
1249
1250 * frame.h (deprecated_pop_dummy_frame)
1251 (deprecated_read_register_dummy)
1252 (deprecated_generic_find_dummy_frame): Delete.
1253 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1254 (deprecated_read_register_dummy)
1255 (deprecated_find_dummy_frame_regcache)
1256 (discard_innermost_dummy)
1257 (deprecated_pop_dummy_frame): Delete.
1258 (dummy_frame_this_id): Simplify.
1259 (struct dummy_frame): Delete "fp" and "sp".
1260 (find_dummy_frame): Simplify.
1261 (generic_push_dummy_frame): Do not set "fp" or "sp".
1262 (fprint_dummy_frames): Do not print "fp" and "sp"
1263
37bdc87e
MK
12642004-08-01 Mark Kettenis <kettenis@gnu.org>
1265
1266 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1267 (struct i386_insn): New structure.
1268 (i386_match_insn): New function.
1269 (i386_frame_setup_skip_insns): New variable.
1270 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1271 array i386_frame_setup_insns of instructions that should be
1272 skipped inside the frame setup sequence.
1273
8241eaa6
AC
12742004-08-01 Andrew Cagney <cagney@gnu.org>
1275
5bc602c7
AC
1276 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1277 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1278 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1279 * stack.c (frame_info): Delete references to
1280 DEPRECATED_FRAME_INIT_SAVED_REGS and
1281 deprecated_get_frame_saved_regs.
1282 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1283 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1284 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1285 (frame_unwind_register_signed)
1286 (frame_unwind_register_unsigned)
1287 (frame_unwind_unsigned_register): Use register_size.
1288 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1289 (deprecated_frame_xmalloc_with_cleanup)
1290 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1291 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1292
03d363a1
AC
1293 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1294 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1295 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1296 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1297
8241eaa6
AC
1298 * infcall.c (call_function_by_hand): Do not use
1299 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1300 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1301 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1302 DEPRECATED_STACK_ALIGN.
1303
f00df8b7
AC
13042004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1305
1306 Committed by Andrew Cagney.
1307 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1308
eec63939
AC
13092004-08-01 Andrew Cagney <cagney@gnu.org>
1310
1311 * mips-tdep.c (mips16_frame_cache)
1312 (mips16_frame_this_id, mips16_frame_prev_register)
1313 (mips16_frame_unwind, mips16_frame_sniffer)
1314 (mips16_frame_base_address, mips16_frame_base)
1315 (mips16_frame_base_sniffer, mips32_frame_cache)
1316 (mips32_frame_this_id, mips32_frame_prev_register)
1317 (mips32_frame_unwind, mips32_frame_sniffer)
1318 (mips32_frame_base_address, mips32_frame_base)
1319 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1320 separate heuristic mips16 and mips32 unwinders.
1321 (mips_stub_frame_cache, mips_stub_frame_this_id)
1322 (mips_stub_frame_prev_register)
1323 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1324 (mips_stub_frame_base_address, mips_stub_frame_base)
1325 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1326 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1327 match true mdebug frames.
1328 (non_heuristic_proc_desc): Add forward declaration.
1329
e66299b3
AC
13302004-08-01 Andrew Cagney <cagney@gnu.org>
1331
83cbbf3e
AC
1332 * config/mips/tm-irix6.h: Delete file.
1333 * config/mips/tm-irix5.h: Delete file.
1334 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1335 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1336
22d41b37
AC
1337 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1338 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1339 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1340 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1341 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1342 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1343 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1344 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1345 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1346 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1347 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1348 (TARGET_SIGNAL_RAW_VALUES): Delete.
1349 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1350 Delete.
1351 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1352 (TARGET_HW_WATCH_LIMIT): Delete.
1353 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1354 * minimon.h: Delete file.
1355
e66299b3
AC
1356 * trad-frame.c (trad_frame_get_this_base)
1357 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1358 functions.
1359 * trad-frame.h (trad_frame_set_this_base)
1360 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1361
1f67027d
AC
13622004-07-31 Andrew Cagney <cagney@gnu.org>
1363
1364 * trad-frame.c (trad_frame_get_prev_register): Rename
1365 trad_frame_get_prev_register.
1366 * vax-tdep.c (vax_frame_prev_register): Update.
1367 * trad-frame.h: Update.
1368 * trad-frame.c (trad_frame_get_register): Update.
1369 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1370 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1371 Update.
1372 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1373 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1374 Update.
1375 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1376 Update.
1377 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1378 Update.
1379 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1380 Update.
1381 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1382 Update.
1383 * s390-tdep.c (s390_frame_prev_register)
1384 (s390_stub_frame_prev_register)
1385 (s390_sigtramp_frame_prev_register): Update.
1386 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1387 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1388 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1389 * m88k-tdep.c (m88k_frame_prev_register)
1390 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1391 * m32r-tdep.c (m32r_frame_prev_register): Update.
1392 * hppa-tdep.c (hppa_frame_prev_register_helper)
1393 * frv-tdep.c (frv_frame_prev_register): Update.
1394 * d10v-tdep.c (d10v_frame_prev_register): Update.
1395 * cris-tdep.c (cris_frame_prev_register): Update.
1396 * avr-tdep.c (avr_frame_prev_register): Update.
1397 * arm-tdep.c (arm_prologue_prev_register)
1398 (arm_sigtramp_prev_register): Update.
1399
c1bf6f65
AC
14002004-07-31 Andrew Cagney <cagney@gnu.org>
1401
1402 * frame.h (legacy_saved_regs_unwind)
1403 (legacy_frame_chain_valid, legacy_frame_p)
1404 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1405 * dummy-frame.c (dummy_frame_this_id): Simplify.
1406 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1407 * frame.c (struct frame_info): Delete the field "type".
1408 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1409 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1410 (legacy_saved_regs_unwind, legacy_frame_p)
1411 (frame_type_from_pc): Delete.
1412 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1413 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1414
dc856692
MK
14152004-07-31 Mark Kettenis <kettenis@gnu.org>
1416
5a5effe1
MK
1417 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1418 indentation.
1419
d4fd50a6
MK
1420 * mips-nat.c: Remove file.
1421 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1422 (mips-nat.o): Remove dependency.
1423
2689df5a
MK
1424 * infptrace.c: Update copyright year.
1425 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1426 explicitly setting the buffer to all zeroes.
1427
dc856692
MK
1428 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1429 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1430
763910e0
AC
14312004-07-30 Andrew Cagney <cagney@gnu.org>
1432
1433 * GDB 6.2 released from gdb_6_2-branch.
1434
0b66e38c
EZ
14352004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1436
1437 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1438
1439 * exec.c (exec_file_attach):
1440 * nto-tdep.c (nto_find_and_open_solib):
1441 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1442 * solib.c (solib_open):
1443 * somsolib.c (som_solib_sizeof_symbol_table):
1444 * source.c (is_regular_file, openp, open_source_file):
1445 * symfile.c (symfile_bfd_open):
1446 * wince.c (upload_to_device): Differentiate between the search for
1447 binary and source files.
1448
be7d7357
AC
14492004-07-30 Andrew Cagney <cagney@gnu.org>
1450
1451 * complaints.c (_initialize_complaints): Pass NULL to
1452 add_setshow_zinteger_cmd for help_doc.
1453 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1454
ddc9cd0f
AC
14552004-07-30 Andrew Cagney <cagney@gnu.org>
1456
1457 Fix PR i18n/761.
1458 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1459 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1460 $(PACKAGE).pot and update-po.
1461 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1462 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1463 (update-po): New rules.
1464 (localedir): Define using autoconf.
1465 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1466 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1467 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1468 * configure.in: Generate CATALOGS and LINGUAS from contents of
1469 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1470 * configure: Re-generate.
1471 * po/gdbtext: New file
1472
e92f3704
JG
14732004-07-30 Jerome Guitton <guitton@gnat.com>
1474
1475 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1476 order.
1477
b0f35d58
DL
14782004-07-30 David Lecomber <dsl@sources.redhat.com>
1479
1480 * dwarf2read.c (read_file_scope): Set producer if attribute
1481 present.
1482 (struct dwarf2_cu): Added new member producer.
1483
ce7d4522
JG
14842004-07-30 Jerome Guitton <guitton@gnat.com>
1485
1486 * inflow.c (kill_command): release file handles in BFD.
1487 * exec.c (exec_file_attach): Ditto.
1488 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1489
05ee07c7
AC
14902004-07-29 Andrew Cagney <cagney@gnu.org>
1491
1492 * PROBLEMS (mips-irix): Note that it is broken.
1493
62eceb47
AC
14942004-07-29 Andrew Cagney <cagney@gnu.org>
1495
e57b8d41
AC
1496 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1497 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1498
d334389b
AC
1499 * config/xm-nbsd.h: Delete file.
1500 * config/arm/xm-nbsd.h: Delete file.
1501 * config/i386/xm-nbsd.h: Delete file.
1502 * config/ns32k/xm-nbsd.h: Delete file.
1503 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1504 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1505 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1506 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1507 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1508
e910f676
AC
1509 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1510 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1511 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1512 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1513 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1514 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1515
6fa856b9
AC
1516 * config/powerpc/xm-linux.h: Delete empty file.
1517 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1518 * config/powerpc/linux.mh (XM_FILE): Delete.
1519 * config/m68k/xm-linux.h: Delete empty file.
1520 * config/m68k/linux.mh (XM_FILE): Delete.
1521 * config/ia64/xm-linux.h: Delete empty file.
1522 * config/ia64/linux.mh (XM_FILE): Delete.
1523 * config/arm/xm-linux.h: Delete empty file.
1524 * config/arm/linux.mh (XM_FILE): Delete.
1525
471ae5ae
AC
1526 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1527 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1528 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1529 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1530 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1531 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1532 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1533 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1534
62eceb47
AC
1535 * config/m68k/xm-m68k.h: Delete file.
1536 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1537 copyright.
1538 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1539 * config/pa/xm-linux.h: Delete empty file.
1540 * config/pa/linux.mh (XM_FILE): Delete.
1541 * config/i386/xm-i386.h: Delete empty file.
1542 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1543 "i386/xm-i386.h".
1544 * config/i386/obsdaout.mh (XM_FILE): Delete.
1545 * config/i386/obsd64.mh (XM_FILE): Delete.
1546 * config/i386/fbsd64.mh (XM_FILE): Delete.
1547 * config/i386/nto.mh (XM_FILE): Delete.
1548 * config/i386/obsd.mh (XM_FILE): Delete.
1549 * config/i386/linux64.mh (XM_FILE): Delete.
1550 * config/i386/linux.mh (XM_FILE): Delete.
1551 * config/i386/i386sol2.mh (XM_FILE): Delete.
1552 * config/i386/i386gnu.mh (XM_FILE): Delete.
1553 * config/i386/fbsd.mh (XM_FILE): Delete.
1554 * config/i386/nbsd64.mh (XM_FILE): Delete.
1555
c35f4ffc
AC
15562004-07-29 Andrew Cagney <cagney@gnu.org>
1557
1558 * config/pa/xm-linux.h: Do not include "floatformat.h".
1559 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1560 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1561 * config/i386/xm-i386.h: Do not include "floatformat.h".
1562 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1563 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1564 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1565 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1566 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1567 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1568 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1569 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1570 * configure, config.in: Regenerate.
1571 * configure.host (gdb_host_float_format, gdb_host_double_format)
1572 (gdb_host_long_double_format): Set according to the host.
1573
624a44a3
AC
15742004-07-29 Andrew Cagney <cagney@gnu.org>
1575
1576 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1577
0dea2468
AC
15782004-07-28 Andrew Cagney <cagney@gnu.org>
1579
1580 * PROBLEMS: Mention threads/1650.
1581 * NEWS: Mention the NPTL fix.
1582
b3f42336
AC
15832004-07-28 Andrew Cagney <cagney@gnu.org>
1584
1585 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1586 (add_setshow_cmd_full): Make static.
1587 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1588 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1589 * cli/cli-decode.c (add_setshow_filename_cmd)
1590 (add_setshow_string_cmd): New functions.
1591 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1592 * mips-tdep.c (_initialize_mips_tdep): Update.
1593 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1594 * cli/cli-logging.c (_initialize_cli_logging): Update.
1595 * complaints.c (_initialize_complaints): Update.
1596 * remote.c (_initialize_remote): Update.
1597
3b64bf98
AC
15982004-07-28 Andrew Cagney <cagney@gnu.org>
1599
1600 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1601 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1602 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1603 print parameters. Make string parameters constant.
1604 * command.h: Update. Update copyright.
1605 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1606 * observer.c (_initialize_observer): Ditto.
1607 * frame.c (_initialize_frame): Ditto.
1608 * complaints.c (_initialize_complaints): Ditto.
1609 * maint.c (_initialize_maint_cmds): Ditto.
1610 * target.c (initialize_targets): Ditto.
1611 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1612 * infcall.c (_initialize_infcall): Ditto.
1613 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1614 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1615 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1616 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1617 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1618
e9667a65
AC
16192004-07-28 Andrew Cagney <cagney@gnu.org>
1620
54a5b07d
AC
1621 * gdbtypes.c (lookup_primitive_typename): Delete function.
1622 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1623 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1624 * gdbtypes.c (lookup_typename): Ditto.
1625 * f-exp.y (yylex): Ditto.
1626 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1627
e9667a65
AC
1628 * scm-lang.c (c_builtin_types): Delete extern declaration.
1629 (scm_language_defn): Replace
1630 string_char_type and primitive_type_vector with
1631 la_language_arch_info.
1632 * jv-lang.c (java_language_defn): Replace
1633 string_char_type and primitive_type_vector with
1634 la_language_arch_info.
1635 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1636 c_builtin_types in comment.
1637 * c-lang.h (struct language_arch_info): Declare opaque.
1638 (c_language_arch_info): Declare.
1639 (c_builtin_types): Delete declaration.
1640 * c-lang.c (c_language_arch_info): Set string_char_type to
1641 builtin_char, not builtin_true_char. Make global.
1642 (c_builtin_types): Delete array.
1643 (asm_language_defn, minimal_language_defn): Replace
1644 string_char_type and primitive_type_vector with
1645 la_language_arch_info.
1646
685419e2
AC
16472004-07-28 Andrew Cagney <cagney@gnu.org>
1648
1649 * gdbtypes.h (struct builtin_type): Rename true_char to
1650 builtin_true_char.
1651 * gdbtypes.c (gdbtypes_post_init): Update.
1652 * c-lang.c (arch_info): New function.
1653 (enum c_primitive_types): New enum.
1654 (c_language_defn): Instead of string_char_type and
1655 primitive_type_vector set la_language_arch_info.
1656
5a44ea29
AC
16572004-07-28 Andrew Cagney <cagney@gnu.org>
1658
1659 * language.h (struct language_arch_info): Fix typo
1660 s/primative/primitive/.
1661 * gdbtypes.c (lookup_primitive_typename): Ditto.
1662 * language.c (language_lookup_primitive_type_by_name)
1663 (unknown_language_arch_info): Ditto.
1664
f290d38e
AC
16652004-07-27 Andrew Cagney <cagney@gnu.org>
1666
1667 * defs.h (enum language): Add nr_languages.
1668 * language.h (struct language_arch_info): Define.
1669 (struct language_defn): Add la_language_arch_info.
1670 (language_lookup_primative_type_by_name): Declare.
1671 (language_string_char_type): Declare.
1672 * language.c (_initialize_language, language_gdbarch_post_init)
1673 (struct language_gdbarch, language_gdbarch_data): Implement
1674 per-architecture language information.
1675 (unknown_language_arch_info, language_string_char_type)
1676 (language_lookup_primative_type_by_name): New functions.
1677 (unknown_language_defn, auto_language_defn)
1678 (local_language_defn): Set la_language_arch_info to
1679 unknown_language_arch_info.
1680 (unknown_builtin_types): Delete.
1681 * gdbtypes.c (lookup_primitive_typename): Use
1682 language_lookup_primative_type_by_name.
1683 (create_string_type): Use language_string_char_type.
1684 * values.c (value_from_string): Use language_string_char_type.
1685 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1686 * p-lang.c (pascal_language_defn): Ditto.
1687 * m2-lang.c (m2_language_defn): Ditto.
1688 * jv-lang.c (java_language_defn): Ditto.
1689 * objc-lang.c (objc_language_defn): Ditto.
1690 * f-lang.c (f_language_defn): Ditto.
1691 * c-lang.c (c_language_defn, cplus_language_defn)
1692 (asm_language_defn, minimal_language_defn): Ditto.
1693
000177f0
AC
16942004-07-27 Andrew Cagney <cagney@gnu.org>
1695
1696 * gdbtypes.h (struct builtin_type): Declare.
1697 (builtin_type): Declare.
1698 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1699 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1700 (gdbtypes_post_init): New function.
1701 (builtin_type): New function.
1702
e22f895c
KI
17032004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1704
1705 * remote-m32r-sdi.c: Fix breakpoint bug.
1706 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1707 recv_char_data, recv_long_data): New functions to replace communication
1708 sequences.
1709
536517dd
MC
17102004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1711
1712 Document PR threads/1650.
1713 * PROBLEMS (Threads): Document problem with many threads
1714
a0a44d18
AC
17152004-07-26 Andrew Cagney <cagney@gnu.org>
1716
1717 * gdb-mi.el: Move from here ...
1718 * mi/gdb-mi.el: ... to here.
1719
7ac4ac06
AC
17202004-07-26 Andrew Cagney <cagney@gnu.org>
1721
1722 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1723 * main.c (captured_main): When in batch mode always detach.
1724
a1b461bf
AC
17252004-07-26 Andrew Cagney <cagney@gnu.org>
1726
1727 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1728 and h8300 as broken.
1729 * NEWS: END-OF-LIFE frame compatibility module.
1730 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1731 specific comments.
1732
cb1a6d5f
AC
17332004-07-26 Andrew Cagney <cagney@gnu.org>
1734
1735 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1736 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1737 * wince.c (_initialize_wince): Update.
1738 * win32-nat.c (_initialize_win32_nat): Update.
1739 * varobj.c (_initialize_varobj): Update.
1740 * valops.c (_initialize_valops): Update.
1741 * utils.c (initialize_utils, initialize_utils): Update.
1742 * tui/tui-win.c (_initialize_tui_win): Update.
1743 * top.c (init_main): Update.
1744 * symfile.c (_initialize_symfile): Update.
1745 * source.c (_initialize_source): Update.
1746 * somsolib.c (_initialize_som_solib): Update.
1747 * solib.c (_initialize_solib): Update.
1748 * solib-frv.c (_initialize_frv_solib): Update.
1749 * serial.c (_initialize_serial): Update.
1750 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1751 * remote.c (_initialize_remote, _initialize_remote): Update.
1752 * remote-vx.c (_initialize_vx): Update.
1753 * remote-utils.c (_initialize_sr_support): Update.
1754 * remote-sds.c (_initialize_remote_sds): Update.
1755 * remote-mips.c (_initialize_remote_mips): Update.
1756 * remote-e7000.c (_initialize_remote_e7000): Update.
1757 * proc-api.c (_initialize_proc_api): Update.
1758 * printcmd.c: Update.
1759 * parse.c (_initialize_parse): Update.
1760 * pa64solib.c (_initialize_pa64_solib): Update.
1761 * p-valprint.c (_initialize_pascal_valprint): Update.
1762 * monitor.c (_initialize_remote_monitors): Update.
1763 * mips-tdep.c (_initialize_mips_tdep): Update.
1764 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1765 * maint.c (_initialize_maint_cmds): Update.
1766 * lin-lwp.c (_initialize_lin_lwp): Update.
1767 * language.c (_initialize_language): Update.
1768 * kod.c (_initialize_kod): Update.
1769 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1770 * i386-tdep.c (_initialize_i386_tdep): Update.
1771 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1772 * gdbarch.sh: Update.
1773 * gdbarch.c: Re-generate.
1774 * gdb-events.sh: Update.
1775 * gdb-events.c: Re-generate.
1776 * frame.c (_initialize_frame): Update.
1777 * exec.c: Update.
1778 * demangle.c (_initialize_demangler): Update.
1779 * dcache.c (_initialize_dcache): Update.
1780 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1781 * cp-valprint.c (_initialize_cp_valprint): Update.
1782 * corefile.c (_initialize_core): Update.
1783 * command.h: Update.
1784 * cli/cli-decode.h: Update.
1785 * cli/cli-cmds.c (init_cli_cmds): Update.
1786 * charset.c (_initialize_charset): Update.
1787 * breakpoint.c (_initialize_breakpoint): Update.
1788 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1789 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1790 * aix-thread.c (_initialize_aix_thread): Update.
1791
b4632131
MK
17922004-07-24 Mark Kettenis <kettenis@gnu.org>
1793
1794 Partial fix for PR backtrace/1718.
1795 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1796 that GCC migrates into the prolugue. Don't handle any
1797 instructions that clobber %ebx.
1798
822c9732
AC
17992004-07-23 Andrew Cagney <cagney@gnu.org>
1800
1801 Use regcache_raw_collect instead of regcache_collect.
1802 * regcache.h (regcache_collect): Delete declaration.
1803 * regcache.c (regcache_colect): Delete function.
1804 * win32-nat.c (do_child_store_inferior_registers): Update.
1805 * sol-thread.c (sol_thread_store_registers): Update.
1806 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1807 * rs6000-nat.c (store_register): Update.
1808 * remote.c (store_register_using_P, remote_store_registers): Update.
1809 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1810 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1811 (fill_vrregset, store_spe_registers, fill_gregset)
1812 (fill_gregset): Update.
1813 * nto-procfs.c (procfs_store_registers): Update.
1814 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1815 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1816 * m68klinux-nat.c (store_register, fill_gregset): Update.
1817 * m68k-tdep.c (fill_gregset): Update.
1818 * infptrace.c (store_register): Update.
1819 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1820 * i386-linux-nat.c (store_register, fill_gregset): Update.
1821 * hppa-linux-nat.c (fill_gregset): Update.
1822 * go32-nat.c (store_register): Update.
1823 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1824 (store_fp_regs): Update.
1825 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1826 (store_nwfpe_extended, store_fpregister, store_fpregs)
1827 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1828 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1829 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1830 (store_regs_user_thread, store_regs_kernel_thread): Update.
1831
32b05c07
MK
18322004-07-24 Mark Kettenis <kettenis@gnu.org>
1833
1834 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1835 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1836 encoding.
1837 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1838 member of `struct comp_unit'.
1839
8567c30f
AC
18402004-07-23 Andrew Cagney <cagney@gnu.org>
1841
1842 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1843 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1844
f6da8dd8
MH
18452004-07-23 Martin Hunt <hunt@redhat.com>
1846 Kevin Buettner <kevinb@redhat.com>
1847
1848 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1849 alignment was being added to the offset instead of multiplied.
1850
bd921882
MK
18512004-07-23 Mark Kettenis <kettenis@gnu.org>
1852
24f033e8
MK
1853 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1854 changed signal trampoline in OpenBSD 3.5-current.
1855
90f3cecd
MK
1856 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1857 <machine/pcb.h> and "bsd-kvm.h".
1858 (sparc64nbsd_supply_pcb): New function.
1859 (_initialize_sparc64nbsd_nat): Renamed from
1860 _initialize_sparcnbsd_nat. Enable libkvm interface.
1861 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1862 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1863 (LOADLIBES): New variable.
1864
a4954a62
MK
1865 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1866
bd921882
MK
1867 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1868
23a6d369
AC
18692004-07-21 Andrew Cagney <cagney@gnu.org>
1870
1871 Use regcache_raw_supply instead of supply_register.
1872 * regcache.h (supply_register): Delete declaration.
1873 * regcache.c (supply_register): Delete function.
1874 * wince.c (do_child_fetch_inferior_registers): Update.
1875 * win32-nat.c (do_child_fetch_inferior_registers)
1876 (fetch_elf_core_registers): Update.
1877 * v850ice.c (v850ice_fetch_registers): Update.
1878 * thread-db.c (thread_db_store_registers): Update.
1879 * sol-thread.c (sol_thread_store_registers): Update.
1880 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1881 * rs6000-nat.c (fetch_register): Update.
1882 * rom68k-rom.c (rom68k_supply_one_register): Update.
1883 * remote.c (remote_wait, remote_async_wait): Update.
1884 * remote-st.c (get_hex_regs): Update.
1885 * remote-sim.c (gdbsim_fetch_register): Update.
1886 * remote-sds.c (sds_fetch_registers): Update.
1887 * remote-rdp.c (remote_rdp_fetch_register): Update.
1888 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1889 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1890 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1891 * remote-hms.c (init_hms_cmds): Update.
1892 * remote-est.c (init_est_cmds): Update.
1893 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1894 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1895 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1896 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1897 (fetch_register, supply_vrregset, supply_vrregset)
1898 (fetch_spe_registers): Update.
1899 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1900 * monitor.c (monitor_supply_register): Update.
1901 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1902 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1903 (mipsnbsd_supply_fpreg): Update.
1904 * mips-nat.c (fetch_inferior_registers)
1905 (fetch_core_registers): Update.
1906 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1907 (supply_fpregset, mips64_supply_gregset)
1908 (mips64_supply_fpregset): Update.
1909 * m68klinux-nat.c (fetch_register, supply_gregset)
1910 (supply_fpregset): Update.
1911 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1912 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1913 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1914 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1915 * infptrace.c (fetch_register): Update.
1916 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1917 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1918 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1919 (gnu_fetch_registers, gnu_store_registers): Update.
1920 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1921 * i386-linux-nat.c (fetch_register, supply_gregset)
1922 (dummy_sse_values): Update.
1923 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1924 * hppah-nat.c (fetch_register): Update.
1925 * hppa-linux-nat.c (fetch_register, supply_gregset)
1926 (supply_fpregset): Update.
1927 * go32-nat.c (fetch_register): Update.
1928 * dve3900-rom.c (fetch_bitmapped_register)
1929 (_initialize_r3900_rom): Update.
1930 * cris-tdep.c (supply_gregset): Update.
1931 * abug-rom.c (init_abug_cmds): Update.
1932 * core-aout.c (fetch_core_registers): Update.
1933 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1934 (fetch_register, fetch_fp_register): Update.
1935 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1936 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1937 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1938 * alphanbsd-tdep.c (fetch_core_registers): Update.
1939 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1940 * alpha-nat.c (fetch_osf_core_registers)
1941 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1942 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1943 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1944
73cc75f3
AC
19452004-07-21 Andrew Cagney <cagney@gnu.org>
1946
1947 * PROBLEMS: Mention breakpoints/1702.
1948 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1949 that is known to work.
1950
a53c66de
AC
19512004-07-21 Andrew Cagney <cagney@gnu.org>
1952
1953 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1954 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1955 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1956 (handle_inferior_event): Wrap call to deprecated
1957 IGNORE_HELPER_CALL in #ifdef.
1958 * config/mips/tm-nbsd.h: Update.
1959
708ff411
JB
19602004-07-20 Jim Blandy <jimb@redhat.com>
1961
412b3060
JB
1962 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1963 bfd_mach_ppc has no segment registers.
1964
13ac140c
JB
1965 Include PowerPC SPR numbers for special-purpose registers.
1966 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1967 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1968 new member in initializer.
1969 (S, S4, SN4, S64): New macros for defining special-purpose
1970 registers.
1971 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1972 registers_403, registers_403GC, registers_505, registers_860,
1973 registers_601, registers_602, registers_603, registers_604,
1974 registers_750, registers_e500): Use them.
1975
708ff411
JB
1976 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1977 replace references with expression used to initialize variable.
1978
1f602b35
AC
19792004-07-20 Andrew Cagney <cagney@gnu.org>
1980
1981 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1982 read_memory_nobpt.
1983 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1984 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1985 (s390_sigtramp_frame_sniffer): Update.
1986 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1987 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1988 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1989 (mips32_fetch_instruction): Update.
1990 * mcore-tdep.c (get_insn): Update.
1991 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1992 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1993 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1994 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1995 (i386_linux_rt_sigtramp_start): Update.
1996 * i386-linux-nat.c (child_resume): Update.
1997 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1998 * hppa-linux-tdep.c (insns_match_pattern): Update.
1999 * gdbcore.h: Update.
2000 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2001 * frame.c (safe_frame_unwind_memory): Update.
2002 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2003 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2004 * alpha-tdep.c (alpha_read_insn): Update.
2005
2cd8546d
AC
20062004-07-20 Andrew Cagney <cagney@gnu.org>
2007
2008 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2009 containing both bytes and mask. Add "frame_type".
2010 * tramp-frame.c (tramp_frame_start): Update.
2011 (tramp_frame_prepend_unwinder): Update.
2012 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2013 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2014 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2015 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2016
f928dd62
EZ
20172004-07-19 Eli Zaretskii <eliz@gnu.org>
2018
2019 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2020 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2021 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2022 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2023
d5c560f7
AC
20242004-07-17 Andrew Cagney <cagney@gnu.org>
2025
860660cb
AC
2026 * NEWS, PROBLEMS: Update for 6.2.
2027
8c266f54
AC
2028 * README: Update to 6.2.
2029
a552edd9
AC
2030 * utils.c (xvasprintf): Call xstrvprintf.
2031
c4a172b5
AC
2032 * parse.c: Update copyright.
2033 (null_post_parser): Eliminate ARGSUSED.
2034
da745b36
AC
2035 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2036 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2037 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2038
9cbc6ef0
AC
2039 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2040 * ppc-linux-nat.c: Use "Linux kernel".
2041 * hppa-linux-tdep.c: Use GNU/Linux.
2042 * hppa-linux-nat.c: Use GNU/Linux.
2043 * dwarfread.c: Add [sic] to use of Linux.
2044
1b89295f
AC
2045 * hppa-linux-nat.c: Do not include <string.h>.
2046 (supply_fpregset): Remove "register" attribute.
2047
d5c560f7
AC
2048 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2049
7ddd7709
MK
20502004-07-17 Mark Kettenis <kettenis@gnu.org>
2051
b1d19a62
MK
2052 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2053 * configure, config.in: Regenerated.
2054
7ddd7709
MK
2055 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2056 "bsd-kvm.h".
2057 (vaxbsd_supply_pcb): New function.
2058 (_initialize_vaxbsd_nat): New prototype and function.
2059 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2060 solib-sunos.o.
2061 (LOADLIBES): New variable.
2062 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2063 (LOADLIBES): New variable.
2064 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2065 (LOADLIBES): New variable.
2066 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2067
2c07db7a
AC
20682004-07-16 Andrew Cagney <cagney@gnu.org>
2069
2070 * defs.h (event_loop_p): Replace variable declaration with macro,
2071 always 1.
2072 * main.c (captured_main): Delete options "-async" and "-noasync".
2073 (event_loop_p): Delete variable.
2074 * NEWS: Mention that "-async" and "-noasync" were removed.
2075
717eb1cf
AC
20762004-07-16 Andrew Cagney <cagney@gnu.org>
2077
2078 * remote-m32r-sdi.c: Re-indent.
2079
c101bc14
JB
20802004-07-16 Jim Blandy <jimb@redhat.com>
2081
5109a438
JB
2082 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2083 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2084 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2085 missing MPC823 SPRs.
2086 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2087 incorrect. (This was corrected in GDB's register name tables on
2088 2004-07-14.)
2089
c101bc14
JB
2090 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2091 should be "esasrr" ("ESA Save and Restore Register").
2092
7ce450bd
AC
20932004-07-16 Andrew Cagney <cagney@gnu.org>
2094
2095 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2096 calls, no longer applicable. Update comments and rename parameter
2097 "step_frame" to "return_frame".
2098
ca73dd9d
AC
20992004-07-16 Andrew Cagney <cagney@gnu.org>
2100
2101 * frame.c (fprint_field): New function.
2102 (fprint_frame_id): Use fprint_field.
2103
31941f6d
JB
21042004-07-15 Joel Brobecker <brobecker@gnat.com>
2105
2106 * ada-lang.c (ada_language_defn): Remove commented out code.
2107
f86a7158
JB
21082004-07-15 Jim Blandy <jimb@redhat.com>
2109
2110 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2111 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2112
c24791ec
JB
21132004-07-14 Jim Blandy <jimb@redhat.com>
2114
29bb1356
JB
2115 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2116
cc98b5cc
JB
2117 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2118
8f088af7
JB
2119 * ppc-tdep.h (ppc_num_srs): New enum constant.
2120
0ea0ec5f
JB
2121 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2122 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2123 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2124 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2125 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2126 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2127 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2128 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2129 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2130 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2131 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2132 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2133 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2134 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2135 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2136 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2137 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2138 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2139 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2140 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2141 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2142 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2143 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2144 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2145 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2146 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2147 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2148 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2149 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2150 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2151 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2152 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2153 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2154 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2155 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2156 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2157 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2158 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2159 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2160 special-purpose register numbers.
2161
c24791ec
JB
2162 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2163 manual mentions 'md_twb', but many mention 'm_twb', and at that
2164 point in the register list.)
2165
d833db3b
AC
21662004-07-14 Andrew Cagney <cagney@gnu.org>
2167
2168 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2169 instead of "internal-error".
2170
080228b2
JB
21712004-07-10 Joel Brobecker <brobecker@gnat.com>
2172
2173 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2174 that was inserted inside a comment.
2175
c268433a
RC
21762004-07-10 Randolph Chung <tausq@debian.org>
2177
2178 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2179 function.
2180 (hppa_hpux_push_dummy_code): New function.
2181 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2182 Set find_global_pointer method.
2183
71009278
MK
21842004-07-10 Mark Kettenis <kettenis@gnu.org>
2185
2186 * NEWS: Mention BSD libkvm interface.
2187
b2fa5097
MS
21882004-07-10 Michael Snyder <msnyder@redhat.com>
2189
2190 * symfile.c (generic_load): Comment typo.
2191 * stack.c (get_selected_block): Ditto.
2192 * regcache.c (regcache_cooked_read): Ditto.
2193 * monitor.c (monitor_debug): Ditto.
2194 * mips-tdep.c (mips_read_pc): Ditto.
2195 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2196 * gdb_mbuild.sh: Ditto.
2197 * gdbarch.sh: Ditto.
2198 * gdbarch.h: Ditto.
2199
c3e5cd34
PH
22002004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2201
8a2225b2
PH
2202 * ada-tasks.c: Remove file.
2203
c3e5cd34
PH
2204 Remove ARI problems:
2205
2206 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2207 beginning of line.
2208
2209 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2210 Add comment.
2211 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2212 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2213 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2214 (UMIN_OF_SIZE): Remove.
2215 (max_of_type): New function to replace orphan macro in gdbtypes.h
2216 (min_of_type): Ditto.
2217 (discrete_type_high_bound): Use max_of_type.
2218 (discrete_type_low_bound): Use min_of_type.
2219 (possible_user_operator_p): Move operator to beginning of line.
2220 (ada_is_variant_part): Ditto.
2221 (ensure_lval): Rewrite to avoid deprecated operations.
2222 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2223 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2224 (ada_enum_name): Remove assignments in 'if' statements.
2225 (build_ada_types): Add gdbarch parameter.
2226 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2227 with gdbarch_data_register_post_init.
2228 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2229 add_show_from_set.
2230
2231 * ada-valprint.c (inspect_it): Remove declaration.
2232 (repeat_count_threshold): Remove declaration.
2233 (ada_print_floating): Remove assignments in 'if' statements.
2234 (print_str): Move operator to beginning of line.
2235
61ce229a
JB
22362004-07-08 Jim Blandy <jimb@redhat.com>
2237
2238 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2239
09bcec80
BR
22402004-07-08 Bob Rossi <bob@brasko.net>
2241
2242 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2243
31c27f77
JJ
22442004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2245
2246 * language.h (struct_language_defn): Add new function pointer:
2247 la_class_name_from_physname. Also add new prototype for
2248 language_class_name_from_physname.
2249 * language.c (language_class_name_from_physname): New function.
2250 (unk_lang_class_name): Ditto.
2251 (unknown_language_defn, auto_language_defn): Change
2252 to add unk_lang_class_name function pointer for
2253 la_class_name_from_physname.
2254 (local_language_defn): Ditto.
2255 * dwarf2read.c (guess_structure_name): Change to call
2256 language_class_name_from_physname.
2257 (determine_class_name): Ditto.
2258 * cp-support.c (class_name_from_physname): Renamed.
2259 (cp_class_name_from_physname): New name of function.
2260 * cp-support.h: Ditto.
2261 * c-lang.c (c_language_defn): Change to add NULL
2262 for class_name_from_physname function pointer.
2263 (cplus_language_defn): Change to add cp_class_name_from_physname.
2264 * jv-lang.c (java_class_name_physname): New function.
2265 (java_find_last_component): New static routine.
2266 (java_language_defn): Add java_class_name_from_physname pointer.
2267 * ada-lang.c (ada_language_defn): Change to add NULL
2268 for class_name_from_physname function pointer.
2269 * f-lang.c (f_language_defn): Ditto.
2270 * m2-lang.c (m2_language_defn): Ditto.
2271 * objc-lang.c (objc_language_defn): Ditto.
2272 * p-lang.c (pascal_language_defn): Ditto.
2273 * scm-lang.c (scm_language_defn): Ditto.
2274
ee28ca0f
AC
22752004-07-06 Andrew Cagney <cagney@gnu.org>
2276
2277 Patch from Bart Robinson.
2278 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2279 (O_LARGEFILE): Define to 0, if not defined.
2280
fdb1bf9d
MK
22812004-07-03 Mark Kettenis <kettenis@gnu.org>
2282
cb162ff6
MK
2283 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2284 <machine/pcb.h> and "bsd-kvm.h".
2285 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2286 (m68kbsd_supply_pcb): New function.
2287 (_initialize_m68kbsd_nat): New prototype and function.
2288 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2289 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2290 (LOADLIBES): New variable.
2291 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2292 (LOADLIBES): New variable.
2293
fdb1bf9d
MK
2294 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2295
963c4174
MK
22962004-07-03 Mark Kettenis <kettenis@gnu.org>
2297
2298 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2299 <sys/proc.h>.
2300 (bsd_kvm_cmdlist): New variable.
2301 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2302 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2303 command and "kvm proc" command.
2304 * Makefile.in (bsd-kvm.o): Update dependencies.
2305
533f1d8f
MK
23062004-07-02 Mark Kettenis <kettenis@gnu.org>
2307
2308 * osabi.c: Update copyright year.
2309 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2310 notes if EI_OSABI is set to ELFOSABI_HPUX.
2311
6780dcde
MS
23122004-07-01 Michael Snyder <msnyder@redhat.com>
2313
2314 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2315 that seems to have gotten whacked out of line.
2316
67bebe79
MK
23172004-07-01 Mark Kettenis <kettenis@gnu.org>
2318
2319 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2320 code.
2321
0b5d8877
PH
23222004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2323
2324 * ada-lang.c (decode_packed_array): Minor change to comment.
2325 (ada_value_slice_ptr): New function.
2326 (ada_value_slice): New function.
2327 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2328 test. Don't know why it is there.
2329 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2330 to avoid dereferencing huge arrays from which one is slicing.
2331 (empty_array): Correct to return an array rather than
2332 a subrange value.
2333 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2334 on empty arrays (let'em use 'FIRST instead).
2335
19c1ef65
PH
23362004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2337
2338 Address complaints from gdb_ari.sh:
2339
2340 * ada-exp.y: Include gdb_string.h rather than string.h.
2341 (convert_char_literal): Reformat declaration.
2342 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2343 * ada-lex.l: Change use of free to xfree (the macro would do so
2344 anyway, but this is harmless).
2345 Include gdb_string.h rather than string.h.
2346 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2347
2348 * ada-lang.c (parse): Remove K&Rism in parameter list.
2349 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2350
d81cbc94
MK
23512004-06-30 Mark Kettenis <kettenis@gnu.org>
2352
2353 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2354 dead code.
2355
07681759
MK
23562004-06-30 Mark Kettenis <kettenis@gnu.org>
2357
2358 * alphabsd-nat.c: Update copyright year.
2359 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2360
f7948b5f
JB
23612004-06-29 Joel Brobecker <brobecker@gnat.com>
2362
6e0cdd28 2363 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2364 (i386_cygwin_in_solib_call_trampoline): New function.
2365 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2366 and skip_trampoline_code gdbarch methods.
2367
8f113c9a
JB
23682004-06-29 Jim Blandy <jimb@redhat.com>
2369
2370 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2371 name actually used in the dependency lists.
2372
97dc871c
RC
23732004-06-29 Randolph Chung <tausq@debian.org>
2374
2375 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2376
47216e51
CV
23772004-06-29 Corinna Vinschen <vinschen@redhat.com>
2378
2379 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2380 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2381 functionality.
2382
e623b504
AC
23832004-06-28 Andrew Cagney <cagney@gnu.org>
2384
2385 * defs.h (xstrvprintf): Declare.
2386 * utils.c (xstrvprintf): New function.
2387 (internal_vproblem, xstrprintf, xasprintf)
2388 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2389 * serial.c (serial_printf): Ditto.
2390 * complaints.c (vcomplaint): Ditto.
2391
79acc9b3
CV
23922004-06-29 Corinna Vinschen <vinschen@redhat.com>
2393
2394 * infcmd.c (attach_command): Move call to target_terminal_inferior
2395 behind loading symbol table.
2396
1daf35d9
AC
23972004-06-28 Andrew Cagney <cagney@gnu.org>
2398
2399 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2400 change - add back extern deprecated_ui_loop_hook declaration.
2401
b435e160
AC
24022004-06-28 Andrew Cagney <cagney@gnu.org>
2403
2404 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2405 xstrprintf.
2406 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2407 (c_value_of_variable): Ditto.
2408 * utils.c (internal_vproblem): Ditto.
2409 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2410 * remote.c (add_packet_config_cmd): Ditto.
2411 * remote-rdp.c (rdp_set_command_line): Ditto.
2412 * regcache.c (regcache_dump): Ditto.
2413 * frv-tdep.c (new_variant, new_variant): Ditto.
2414 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2415 (fbsd_find_memory_regions): Ditto.
2416 * breakpoint.c (create_thread_event_breakpoint)
2417 (create_breakpoints): Ditto.
2418 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2419 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2420
06d5cf63
JB
24212004-06-28 Joel Brobecker <brobecker@gnat.com>
2422
2423 * ada-lang.c: Re-indent file, with some massaging to help indent
2424 a bit when the result is otherwise really too ugly.
2425
35809fad
UW
24262004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2427
2428 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2429 code_addr_p and special_addr_p to 'unsigned int'.
2430
40e20472
MK
24312004-06-27 Mark Kettenis <kettenis@gnu.org>
2432
2433 * i386v4-nat.c: Update copyright year and tweak comment.
2434 (regmap): Remove trailing comma.
2435 (supply_gregset): Rename local variable i to regnum. Call
2436 regcache_raw_supply instead of supply_register.
2437 (fill_gregset): Rename argument regno to regnum. Call
2438 regcache_raw_collect instead of regcache_collect.
2439
12b0b6de
UW
24402004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2441
2442 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2443 and special_addr_p.
2444 (frame_id_build, frame_id_build_special): Update comments.
2445 (frame_id_build_wild): New prototype.
2446 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2447 struct frame_id fields.
2448 (frame_id_build_wild): New function.
2449 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2450
47b42a3e
MK
24512004-06-27 Mark Kettenis <kettenis@gnu.org>
2452
2453 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2454 hppabsd-tdep.c.
2455
1265e4aa
JB
24562004-06-27 Joel Brobecker <brobecker@gnat.com>
2457
2458 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2459
76a01679
JB
24602004-06-27 Joel Brobecker <brobecker@gnat.com>
2461
2462 * ada-lang.c: Re-indent file.
2463
7aca490a
JB
24642004-06-27 Joel Brobecker <brobecker@gnat.com>
2465
2466 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2467 (no_symtab_msg): Likewise.
2468
5e987968
AS
24692004-06-27 Andreas Schwab <schwab@suse.de>
2470
2471 * source.c: Fix whitespace.
2472
315c4276
MK
24732004-06-27 Mark Kettenis <kettenis@gnu.org>
2474
d15be926
MK
2475 * configure.in: Include <sys/param.h> for td_pcb test.
2476 * configure: Regenerated.
2477
9062529b
MK
2478 * i386nbsd-nat.c: New file.
2479 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2480 i386obsd-nat.c and i386obsd-tdep.c.
2481 (i386nbsd-nat.o): New dependency.
2482 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2483 bsd-kvm.o.
2484 (LOADLIBES): New variable.
2485 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2486 bsd-kvm.o.
2487 (LOADLIBES): New variable.
2488
8010310e
MK
2489 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2490 (LOADLIBES): New variable.
2491
efe1d7b9
MK
2492 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2493 fetching from BSD_KVM_PADDR. Correctly lookup address for
2494 "_thread0".
2495
315c4276
MK
2496 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2497 "bsd-kvm.h".
2498 (amd64fbsd_supply_pcb): New funcion.
2499 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2500
399cfac6
DL
25012004-06-27 <david@streamline-computing.com>
2502
2503 Partial fix for PR cli/1056.
2504 * valarith.c: Check for zero in division and remainder
2505 evaluation.
2506
6235f9c8
MK
25072004-06-27 Mark Kettenis <kettenis@gnu.org>
2508
2509 * i387-tdep.c: Remove excessive whitespace.
2510
2726dafc
AC
25112004-06-26 Andrew Cagney <cagney@gnu.org>
2512
2513 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2514 * gdb-events.h, gdb-events.c: Re-generate.
2515 * tui/tui-hooks.c (tui_install_hooks): Update.
2516 (tui_remove_hooks): Update.
2517 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2518
0e56aeaf
MK
25192004-06-26 Mark Kettenis <kettenis@gnu.org>
2520
cb461069
MK
2521 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2522 (gregset_t, fpregset_t): Remove typedefs.
2523 (REG_OFFSET): Rename argument.
2524 (amd64bsd_r_reg_offset): Rename from reg_offset.
2525 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2526 Remove functions.
2527 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2528 of reg_offset.
2529 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2530
ecba89de
MK
2531 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2532
4cd80476
MK
2533 * vax-tdep.c: Tweak comment.
2534
0e56aeaf
MK
2535 Add OpenBSD/hppa support.
2536 * NEWS (New native configurations): Mention OpenBSD/hppa.
2537 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2538 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2539 files.
2540 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2541 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2542 * configure.host: Add hppa*-*-openbsd*.
2543 * configure.tgt: Add hppa*-*-openbsd*.
2544
98bbd631
AC
25452004-06-25 Andrew Cagney <cagney@gnu.org>
2546
2547 * defs.h (deprecated_ui_loop_hook): Deprecated.
2548 * wince.c (child_wait): Update.
2549 * win32-nat.c (child_wait): Update.
2550 * v850ice.c (v850ice_wait): Update.
2551 * top.c (deprecated_ui_loop_hook): Update.
2552 * serial.h: Update.
2553 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2554 (do_unix_readchar): Update.
2555 * ser-tcp.c (net_open): Update.
2556 * remote-sim.c (gdb_os_poll_quit): Update.
2557 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2558
769d7dc4
AC
25592004-06-24 Andrew Cagney <cagney@gnu.org>
2560
2561 * defs.h (deprecated_pre_add_symbol_hook)
2562 (deprecated_post_add_symbol_hook): Deprecated.
2563 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2564 (symbol_file_add_with_addrs_or_offsets): Update references.
2565
11c949aa
AC
25662004-06-24 Andrew Cagney <cagney@gnu.org>
2567
2568 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2569 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2570 * wince.c (ui_loop_hook): Delete extern declaration.
2571 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2572 * v850ice.c (ui_loop_hook): Delete extern declaration..
2573 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2574 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2575 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2576 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2577 ui_loop_hook declaration.
2578
eedc19af
AC
25792004-06-24 Andrew Cagney <cagney@gnu.org>
2580
2581 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2582 entry_func_highpc fields.
2583 * objfiles.c (init_entry_point_info): Do not clear
2584 entry_func_lowpc and entry_func_highpc.
2585 (objfile_relocate): Do not relocate entry_func_lowpc and
2586 entry_func_highpc.
2587 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2588 entry_func_highpc.
2589 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2590 entry_func_highpc.
2591 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2592 entry_func_lowpc and entry_func_highpc with call to
2593 inside_entry_func.
2594
d47079be
MK
25952004-06-24 Mark Kettenis <kettenis@gnu.org>
2596
2597 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2598 quad-precision floating point arguments in registers.
2599
2107e348
MK
26002004-06-24 Mark Kettenis <kettenis@gnu.org>
2601
2602 From Michael Mueller <m.mueller99@kay-mueller.de>:
2603 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2604 account.
2605
46587c42
JJ
26062004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2607
2608 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2609 to -1.
2610 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2611 untriggered watchpoints to a separate if clause. Update function
2612 comment regarding STOPPED_BY_WATCHPOINT argument.
2613
226f5cf4
JB
26142004-06-22 Jim Blandy <jimb@redhat.com>
2615
2616 * gdbarch.sh: Doc fix.
2617
f10683bb
MH
26182004-06-21 Martin Hunt <hunt@redhat.com>
2619 Kevin Buettner <kevinb@redhat.com>
2620
2621 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2622 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2623 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2624 to set_gdbarch_sp_regnum(). Use cooked register number.
2625 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2626
412d5987
AC
26272004-06-21 Andrew Cagney <cagney@gnu.org>
2628
2629 * gdbarch.sh: When the macro field is empty, do not generate a
2630 macro definition. When the macro field is "=", generate the macro
2631 name from the upper-case function name.
2632 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2633 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2634 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2635 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2636 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2637 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2638 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2639 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2640 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2641 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2642 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2643 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2644 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2645 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2646 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2647 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2648 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2649 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2650 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2651 (DEPRECATED_USE_STRUCT_CONVENTION)
2652 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2653 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2654 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2655 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2656 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2657 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2658 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2659 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2660 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2661 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2662 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2663 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2664 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2665 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2666 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2667 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2668 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2669 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2670
68908a3e
AC
26712004-06-21 Andrew Cagney <cagney@gnu.org>
2672
48f7351b
AC
2673 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2674 macro name, and the function rather than macro value. Only wrap
2675 macro print statements in #ifdef. Move format logic to where it
2676 is needed.
2677 * gdbarch.c: Re-generate.
2678
283354d8
AC
2679 * gdbarch.sh (read): Delete "print_p" and "description", add
2680 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2681 Delete references to print_p.
2682 (TARGET_ARCHITECTURE): Delete print predicate.
2683 * gdbarch.c: Re-generate.
2684
68908a3e
AC
2685 * gdbarch.sh: Check that multi-arch methods do not provide a
2686 macro.
2687 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2688 (print_registers_info, print_float_info, print_vector_info)
2689 (adjust_breakpoint_address, remote_translate_xfer_address)
2690 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2691 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2692 name from the multi-arch definition.
2693
a2428dbe
AC
26942004-06-20 Andrew Cagney <cagney@gnu.org>
2695
2696 * gdbarch.sh: Sort by the function, instead of macro name.
2697 * gdbarch.c: Re-generate.
2698
750eb019
AC
26992004-06-20 Andrew Cagney <cagney@gnu.org>
2700
66d659b1
AC
2701 * gdbarch.sh: Use the function, instead of macro name in
2702 errors and the log file.
2703 (return_value): Remove stray ":" in spec.
2704
750eb019
AC
2705 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2706 * gdbarch.h, gdbarch.c: Re-generate.
2707 * Makefile.in (arch-utils.o): Update dependencies.
2708 * values.c (using_struct_return): Move code calling
2709 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2710 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2711 to legacy_return_value, simplify.
2712 * infcmd.c (print_return_value): Move code calling
2713 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2714 to legacy_return_value, simplify.
2715 * infcall.c (call_function_by_hand): Move code calling
2716 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2717 * arch-utils.c: Update copyright. Include "gdbcore.h".
2718 (legacy_return_value): New function.
2719 * arch-utils.h: Update copyright.
2720 (legacy_return_value): Declare.
2721
b5622e8d
AC
27222004-06-20 Andrew Cagney <cagney@gnu.org>
2723
2724 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2725 * gdbarch.h, gdbarch.c: Re-generate.
2726 * values.c (using_struct_return): Update call.
2727 * mcore-tdep.c: Update comment.
2728 * infcall.c (call_function_by_hand): Update comment.
2729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2730 * arch-utils.h (always_use_struct_convention): Update.
2731 * v850-tdep.c (v850_gdbarch_init): Update.
2732 * sh64-tdep.c (sh64_gdbarch_init): Update.
2733 * sh-tdep.c (sh_gdbarch_init): Update.
2734 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2735 * mips-tdep.c (mips_gdbarch_init): Update.
2736 * mcore-tdep.c (mcore_gdbarch_init): Update.
2737 * m32r-tdep.c (m32r_gdbarch_init): Update.
2738 * ia64-tdep.c (ia64_gdbarch_init): Update.
2739 * h8300-tdep.c (h8300_gdbarch_init): Update.
2740 * frv-tdep.c (frv_gdbarch_init): Update.
2741 * cris-tdep.c (cris_gdbarch_init): Update.
2742 * arm-tdep.c (arm_gdbarch_init): Update.
2743 * alpha-tdep.c (alpha_gdbarch_init): Update.
2744
5191de37
MC
27452004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2746
2747 * PROBLEMS: Add more specific information, and a work-around,
2748 for PR gdb/1458.
2749
782263ab
AC
27502004-06-18 Andrew Cagney <cagney@gnu.org>
2751
2752 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2753 * gdbarch.h, gdbarch.c: Re-generate.
2754 * ada-lang.c (ada_finish_decode_line_1): Update.
2755 * infrun.c (handle_inferior_event): Update.
2756 * infcall.c (find_function_addr): Update.
2757 * linespec.c (minsym_found): Update.
2758 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2759 Update.
2760 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2761 * cli/cli-cmds.c (disassemble_command): Update.
2762 * vax-tdep.c (vax_gdbarch_init): Update.
2763
2f305df1
MK
27642004-06-18 Mark Kettenis <kettenis@gnu.org>
2765
2766 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2767
e5fe55f7
AC
27682004-06-17 Andrew Cagney <cagney@gnu.org>
2769
2770 GDB 6.1.1 released from the GDB 6.1 branch.
2771 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2772 * PROBLEMS: Ditto.
2773
473b7be6
DJ
27742004-06-16 Daniel Jacobowitz <dan@debian.org>
2775
2776 PR gdb/1658
2777 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2778 operation as a uleb128. Found by Michael Coulter.
2779
96d887e8
PH
27802004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2781
2782 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2783 make it non-static.
2784 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2785 to ada-lang.h; this is needed to be able to implement the kill command
2786 in multi-task mode.
2787 (task_ptid): Ditto.
2788 (task_entry): Ditto.
2789 (task_list): Ditto.
2790 (ada_build_task_list): Ditto.
2791
2792 * ada-lang.c: Conditionalize routines and data structures related
2793 to breakpoints, exceptions, completion, and symbol caching on
2794 GNAT_GDB, since these are not yet used in the submitted public sources.
2795 (ada_main_name): Editorial: Move definition out of exception-related
2796 code.
2797
31eef181
AC
27982004-06-15 Andrew Cagney <cagney@gnu.org>
2799
2800 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2801 deprecated_pc_in_call_dummy.
2802
2c500098
AM
28032004-06-15 Alan Modra <amodra@bigpond.net.au>
2804
2805 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2806 bfd_get_section_size_before_reloc or _raw_size.
2807 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2808 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2809 (dwarf2_read_section): Likewise.
2810 * elfread.c (elf_locate_sections): Likewise.
2811 * gcore.c (derive_heap_segment): Likewise.
2812 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2813 * remote-e7000.c (e7000_load): Likewise.
2814 * remote-m32r-sdi.c (m32r_load): Likewise.
2815 * remote-mips.c (mips_load_srec): Likewise.
2816 (pmon_load_fast): Likewise.
2817 * remote.c (compare_sections_command): Likewise.
2818 * symfile.c (add_section_size_callback): Likewise.
2819 (load_section_callback): Likewise.
2820 (pc_in_unmapped_range): Likewise.
2821 (pc_in_mapped_range): Likewise.
2822 (sections_overlap): Likewise.
2823 (list_overlays_command): Likewise.
2824 (simple_overlay_update_1): Likewise.
2825 (simple_overlay_update): Likewise.
2826 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2827 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2828
90f943f1
RC
28292004-06-14 Randolph Chung <tausq@debian.org>
2830
2831 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2832 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2833 static.
2834 (hppa_hpux_inferior_created): New function.
2835 (hppa_hpux_init_abi): Register observer.
2836 * symfile.c (hp_cxx_exception_support_initialized)
2837 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2838 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2839
700c15aa
RC
28402004-06-14 Randolph Chung <tausq@debian.org>
2841
3973a7d3
AC
2842 * MAINTAINERS (Write After Approval): Alphabetize my entry
2843 correctly.
700c15aa 2844
cea4838c
AC
28452004-06-14 Andrew Cagney <cagney@gnu.org>
2846
2847 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2848 testsuite maintainer.
2849
97092415
AC
28502004-06-13 Andrew Cagney <cagney@gnu.org>
2851
e8c3165b
AC
2852 * infcmd.c (print_return_value): Fix logic, allow
2853 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2854
bceabdd8
AC
2855 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2856 defining any macros.
2857 * gdbarch.h: Re-generate.
2858
57010b1c
AC
2859 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2860 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2861 * gdbarch.h: Re-generate.
2862
bc87dfa0
AC
2863 * values.c (generic_use_struct_convention): Don't check gcc_p.
2864
15ac804d
AC
2865 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2866 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2867 * gdbarch.h, gdbarch.c: Regenerate.
2868 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2869 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2871 deprecated_max_register_raw_size and
2872 deprecated_max_register_virtual_size.
2873 * v850-tdep.c (v850_gdbarch_init): Ditto.
2874 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2875 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2876 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2877 * cris-tdep.c (cris_gdbarch_init): Ditto.
2878
97092415
AC
2879 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2880 * gdbarch.h, gdbarch.c: Re-generate.
2881 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2882 (m68hc11_use_struct_convention): Delete function.
2883 (m68hc11_extract_struct_value_address): Delete function.
2884 (m68hc11_return_value): New function.
2885 (m68hc11_gdbarch_init): Instead of store_return_value,
2886 extract_return_value, return_value_on_stack,
2887 deprecated_extract_struct_value_address and use_struct_convention,
2888 set return_value.
2889 * values.c (using_struct_return): Do not call
2890 RETURN_VALUE_ON_STACK.
2891 * arch-utils.h (generic_return_value_on_stack_not): Delete
2892 declaration.
2893 * arch-utils.c (generic_return_value_on_stack_not): Delete
2894 function.
2895
44e5158b
AC
28962004-06-12 Andrew Cagney <cagney@gnu.org>
2897
2898 * values.c (register_value_being_returned): Delete function.
2899 * infcmd.c (legacy_return_value): Delete function.
2900 * infcall.c (call_function_by_hand): Inline
2901 "register_value_being_returned", simplify.
2902 * values.c (using_struct_return): Update comment, refer to
2903 print_return_value instead of register_value_being_returned.
2904 * infcmd.c (print_return_value): Inline calls to
2905 register_value_being_returned and legacy_return_value. Simplify.
2906
b887c273
RC
29072004-06-11 Randolph Chung <tausq@debian.org>
2908
2909 * somread.c (som_symtab_read): Exclude gcc local symbols.
2910
1b2bfbb9
RC
29112004-06-11 Randolph Chung <tausq@debian.org>
2912
3973a7d3
AC
2913 * infrun.c (handle_inferior_event): Handle the case when a
2914 trampoline ends up in the runtime resolver, and if the trampoline
2915 has no name. Rearrange the code so that all the trampoline
2916 processing happens before other step-out-of-range handling.
1b2bfbb9 2917
a9d61c86
MH
29182004-06-11 Martin Hunt <hunt@redhat.com>
2919
2920 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2921 has no fpu.
2922
2c87cf5a
AC
29232004-06-10 Andrew Cagney <cagney@gnu.org>
2924
2925 * blockframe.c (legacy_inside_entry_func): Delete.
2926 (legacy_frame_chain_valid): Inline call to
2927 legacy_inside_entry_func, simplify.
2928
0b67b468 29292004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2930
2931 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2932 * dwarf2read.c (partial_die_info): Add dirname field.
2933 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2934 (read_partial_die): Save away DW_AT_comp_dir.
2935 * defs.h (symtab_to_filename): Removed.
2936 * source.c (find_and_open_source): Added.
57c22c6c 2937 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2938 (symtab_to_filename): Removed.
2939 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2940 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2941 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2942 symtab_to_filename.
2943 * symtab.h (partial_symtab): Add dirname field.
2944 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2945 (mi_cmd_file_list_exec_source_file): Call new function
2946 symtab_to_fullname to find fullname.
57c22c6c 2947 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2948 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2949 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2950
9a1dd1ad
AC
29512004-06-10 Andrew Cagney <cagney@gnu.org>
2952
239ae8c7
AC
2953 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2954 to generic_use_struct_convention, the default value.
2955
fc720350
AC
2956 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2957 of abort.
2958
9a1dd1ad
AC
2959 * ns32k-tdep.c (ns32k_push_arguments): New function.
2960 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2961 * infcall.c (call_function_by_hand): Call error instead of
2962 legacy_push_arguments.
2963 * value.h (legacy_push_arguments): Delete declaration.
2964 * valops.c (legacy_push_arguments): Delete function.
2965 (value_push): Delete function.
2966
fea25152
BF
29672004-06-10 Brian Ford <ford@vss.fsi.com>
2968
2969 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2970 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2971 info.
2972 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2973
30a4a8e0
AC
29742004-06-10 Andrew Cagney <cagney@gnu.org>
2975
2976 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2977 * gdbarch.h, gdbarch.c: Re-generate.
2978 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2979 parameters.
2980 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2981 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2982 deprecated_pc_in_call_dummy instead of
2983 DEPRECATED_PC_IN_CALL_DUMMY.
2984 (arm_skip_prologue): Ditto.
2985 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2986 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2987 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2988 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2989 Ditto.
2990 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2991 (sh64_init_extra_frame_info, sh64_get_saved_register)
2992 (sh64_pop_frame): Ditto.
2993 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2994 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2995 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2996 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2997 (h8300_pop_frame): Ditto.
2998 * blockframe.c (legacy_inside_entry_func)
2999 (legacy_frame_chain_valid): Ditto.
3000 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3001 to deprecated_pc_in_call_dummy.
3002
81cfbe54
AC
30032004-06-09 Andrew Cagney <cagney@gnu.org>
3004
a1f4a1b6
AC
3005 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3006 provide a default value.
3007 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3008 * gdbarch.h, gdbarch.c: Re-generate.
3009 * arch-utils.c (generic_convert_register_p): Rename
3010 legacy_convert_register_p
3011 (legacy_register_to_value, legacy_value_to_register): Delete
3012 functions.
3013 * arch-utils.h (generic_convert_register_p): Rename
3014 legacy_convert_register_p.
3015 (legacy_register_to_value, legacy_value_to_register): Delete
3016 declarations.
3017
9730f241
AC
3018 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3019 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3020 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3021 * gdbarch.h, gdbarch.c: Re-generate.
3022 * infcmd.c (default_print_registers_info): Simplify.
3023 * findvar.c (value_of_register): Simplify.
3024 * mi/mi-main.c (get_register): Simplify.
3025 * arch-utils.c (legacy_convert_register_p): Always return 0.
3026 (legacy_register_to_value, legacy_value_to_register): Always call
3027 internal_error.
3028
8a1bf479
AC
3029 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3030 #ifdef CLEAR_INSN_CACHE code.
3031 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3032 Delete #ifdef CLEAR_DEFERRED_STORES code.
3033
4b38d6f1
AC
3034 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3035
2d62ecc7
AC
3036 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3037 copyright.
3038 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3039
be4f7469
AC
3040 * config/mips/mipsv4.mh: Delete file.
3041
81cfbe54
AC
3042 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3043 unreferenced macro.
3044 (hpread_adjust_stack_address): Delete declaration.
3045
d966f0cb
AC
30462004-06-08 Andrew Cagney <cagney@gnu.org>
3047
3048 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3049 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3050 PTRACE_ATTACH / PTRACE_DETACH available call error.
3051 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3052 * infttrace.c (update_thread_state_after_attach, attach, detach):
3053 Remove #ifdef wrappers.
3054 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3055 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3056 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3057 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3058 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3059 * config/nm-linux.h (ATTACH_DETACH): Delete.
3060 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3061 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3062 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3063 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3064 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3065
d91670b9
CV
30662004-06-08 Corinna Vinschen <vinschen@redhat.com>
3067
3068 * configure.in: Set $configdir to the right OS specific value.
3069 Use value when setting $tcldir and $tkdir.
3070 * configure: Regenerate.
3071
28ba0b33
PB
30722004-06-06 Paul Brook <paul@codesourcery.com>
3073
3074 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3075 records.
3076
f26caa11
PH
30772004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3078
3079 * ada-lang.c (lookup_symbol_in_language): New function to allow
3080 re-use of another language's symbol lookup code. (Placed here
3081 temporarily while Ada support is being integrated into the public
3082 tree).
3083 (restore_language): New auxiliary function for
3084 lookup_symbol_in_language.
3085 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3086 temporarily while Ada support is being integrated into the public
3087 tree).
3088
d560a54b
AO
30892004-06-08 Alexandre Oliva <aoliva@redhat.com>
3090
e75d110c
AO
3091 * Makefile.in (check//%): New.
3092
d560a54b
AO
3093 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3094 (mn10300_store_return_value): Rewrite.
3095 (mn10300_type_align): New.
3096 (mn10300_use_struct_convention): Rewrite.
3097 (mn10300_return_value): New, using all of the above.
3098 (mn10300_pop_frame_regular): Add saved_regs_size.
3099 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3100
a72fbdb7
AO
3101 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3102 regs if PC is on movm.
3103
01904826
JB
31042004-06-07 Jim Blandy <jimb@redhat.com>
3105
3106 Add native Linux support for the PowerPC E500.
3107 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3108 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3109 all architectures except the E500.
3110 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3111 #definitions.
3112 (struct gdb_evrregset_t): New type.
3113 (have_ptrace_getsetevrregs): New variable.
3114 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3115 fetch_spe_registers): New functions.
3116 (fetch_register): Call fetch_spe_register as appropriate.
3117 Assert that we're only passed raw register numbers.
3118 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3119 Don't fetch gprs if they're pseudoregisters.
3120 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3121 store_spe_registers): New functions.
3122 (store_register): Call store_spe_register as appropriate.
3123 Assert that we're only passed raw register numbers.
3124 (store_ppc_registers): Call store_spe_registers as appropriate.
3125 Don't store gprs if they're pseudoregisters.
3126
f90ef764
JJ
31272004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3128
3129 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3130 struct if one exists, even if we are dealing with a zombie thread.
3131
45b75230
AC
31322004-06-07 Andrew Cagney <cagney@gnu.org>
3133
3134 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3135 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3136 Rename PC_REQUIRES_RUN_BEFORE_USE.
3137 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3138 #ifdef.
3139
1658da49
RC
31402004-06-07 Randolph Chung <tausq@debian.org>
3141
3142 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3143 unwinding after sp has been saved to the stack but before the end
3144 of the prologue, and after the fp has been modified but before it has
3145 been saved to the stack.
3146 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3147 Remove superfluous definitions.
3148 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3149
9a727a3c
RC
31502004-06-07 Guy Martin <gmsoft@gentoo.org>
3151
3152 Committed by Randolph Chung.
3153 * hppa-linux-nat.c: Include the correct version of the header file
3154 depending on the kernel version.
3155
9e500012
RC
31562004-06-06 Randolph Chung <tausq@debian.org>
3157
3158 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3159 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3160
3388d7ff
RC
31612004-06-06 Randolph Chung <tausq@debian.org>
3162
3163 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3164 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3165 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3166 * hppa-tdep.c (hppa_symbol_address): New function definition.
3167 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3168
d49771ef
RC
31692004-06-06 Randolph Chung <tausq@debian.org>
3170
3171 * hppa-tdep.h (struct value): Forward declaration.
3172 (gdbarch_tdep): Define tdep find_global_pointer method.
3173 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3174 associated with the function we are trying to call, and write it
3175 to the gp register.
3176 (hppa32_convert_from_funct_ptr_addr): New function.
3177 (hppa_find_global_pointer): New function.
3178 (hppa_gdbarch_init): Set default find_global_pointer method; set
3179 convert_from_func_ptr_addr method.
3180 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3181 (hppa_linux_init_abi): Set find_global_pointer method.
3182 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3183
7d9b040b
RC
31842004-06-06 Randolph Chung <tausq@debian.org>
3185
3186 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3187 to struct value *function.
3188 * gdbarch.c: Regenerate.
3189 * gdbarch.h: Likewise.
3190 * infcall.c (call_function_by_hand): Pass entire function value
3191 to push_dummy_call.
3192
3193 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3194 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3195 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3196 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3197 * arm-tdep.c (arm_push_dummy_call): Likewise.
3198 * avr-tdep.c (avr_push_dummy_call): Likewise.
3199 * cris-tdep.c (cris_push_dummy_call): Likewise.
3200 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3201 * frv-tdep.c (frv_push_dummy_call): Likewise.
3202 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3203 * hppa-tdep.c (hppa32_push_dummy_call)
3204 (hppa64_push_dummy_call): Likewise.
3205 * i386-tdep.c (i386_push_dummy_call): Likewise.
3206 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3207 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3208 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3209 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3210 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3211 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3212 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3213 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3214 (ppc64_sysv_abi_push_dummy_call): Likewise.
3215 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3216 (ppc64_sysv_abi_push_dummy_call): Likewise.
3217 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3218 * s390-tdep.c (s390_push_dummy_call): Likewise.
3219 * sh-tdep.c (sh_push_dummy_call_fpu)
3220 (sh_push_dummy_call_nofpu): Likewise.
3221 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3222 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3223 * vax-tdep.c (vax_push_dummy_call): Likewise.
3224
4a19ea35
JB
32252004-06-04 Jim Blandy <jimb@redhat.com>
3226
8327ccee
JB
3227 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3228 gdbarch argument to register_size.
3229
a3c001ce
JB
3230 * rs6000-tdep.c (rs6000_store_return_value): Use
3231 regcache_cooked_write_part instead of
3232 deprecated_write_register_bytes.
3233 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3234 not gdbarch_deprecated_store_return_value.
3235
4a19ea35
JB
3236 * ppc-linux-nat.c (store_register, fetch_register): Remove
3237 incorrect assertions. Simplify and generalize handling of
3238 transfers whose sizes are not multiples of, or less than, sizeof
3239 (PTRACE_XFER_TYPE).
3240
b9b5d7ea
JJ
32412004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3242
3243 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3244 as a new thread event.
720c7d64 3245 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3246 zombie, return TD_THR_ZOMBIE.
720c7d64 3247 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3248 TD_THR_ZOMBIE, check if the thread is still on the thread list
3249 and return a -1 ptid if not found.
3250 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3251 change the status to TARGET_WAITKIND_SPURIOUS.
3252
c8a3b559
CV
32532004-06-03 Corinna Vinschen <vinschen@redhat.com>
3254
3255 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3256 double values in little endian mode.
3257
20605361
AC
32582004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3259
3260 Committed by Andrew Cagney.
3261 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3262 after last enum constant to avoid error from IBM C
3263 compiler.
3264
bc97b3ba
JB
32652004-06-02 Jim Blandy <jimb@redhat.com>
3266
3267 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3268 to 'message', and make it local to the lone block that uses it.
3269
1da28ab0
JB
3270 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3271
4c4b4cd2
PH
32722004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3273
8a2225b2
PH
3274 * ada-exp.y: Update copyright notice.
3275 Include block.h.
3276
3277 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3278 SPECIAL_VARIABLE and unify the treatment of these cases.
3279
3280 (write_attribute_call0): Remove.
3281 (write_attribute_call1): Remove.
3282 (write_attribute_calln): Remove.
3283 (save_qualifier): Add missing semicolon.
3284
3285 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3286 temporarily disabled to allow compilation with FSF head version.
3287
3288 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3289 use individual operators (OP_*) for all attributes.
3290 (exp syntax): Use write_int.
3291 Handle STRING literals with OP_STRING.
3292 (variable syntax): Add limit parameter to calls to
3293 write_object_renaming.
3294
3295 (temp_parse_space): New definition to hold entities that need
3296 only live until the next call to ada_parse.
3297 (string_to_operator): Rename fields of ada_opname_table entries.
3298
3299 (write_var_from_sym): Record block.
3300 (write_var_from_name): Minor reformatting.
3301 Make sure saved name is properly encoded in the case of multiple
3302 matches, and set its language to Ada.
3303 Update comment.
3304 Modify to indicate unresolved name as symbol in the UNRESOLVED
3305 namespace, allocated in temp_parse_space.
3306 (write_int): New function.
3307
3308 (write_object_renaming): Add max_depth parameter to limit
3309 chains of object renamings.
3310 Handle case where root of renaming expression is itself a renaming.
3311 Use temp_parse_space for temporary name buffer.
3312 Handle renamings to dereferenced pointers (___XEXA suffices).
3313
3314 (ada_parse, yyerror, string_to_operator,
3315 write_var_from_sym, write_var_from_name, write_attribute_call0,
3316 write_attribute_call1, write_attribute_calln,
3317 write_object_renaming): Protoize.
3318
3319 (_initialize_ada_exp): New function.
3320
3321 * ada-lang.c: Update copyright notice.
3322 General terminology change to conform to GNAT compiler usage:
3323 mangle => encode, demangle => decode
3324 Include gdb_obstack.h.
3325 Include gdb_regex.h
3326 Include frame.h
3327 Include hashtab.h
3328 Include completer.h
3329 Include gdb_stat.h
3330 Include block.h
3331 Include infcall.h
3332
3333 (ADA_RETAIN_DOTS): Make sure this is defined.
3334 (TRUNCATION_TOWARDS_ZERO): Define.
3335 (struct string_vector): Define.
3336 (unresolved_names): Remove definition.
3337 (xnew_string_vector): New function.
3338 (string_vector_append): New function.
3339 (extract_string): Make static.
3340 (ada_unqualified_name): New function.
3341 (add_angle_brackets): New function.
3342 (function_name_from_pc): New function.
3343 (place_on_stack): Rename to ensure_lval.
3344
3345 (ensure_lval): Renamed from place_on_stack.
3346 Make identity on lvals.
3347 Update comment.
3348 (is_nonfunction): New interface.
3349 Only symbols in LOC_CONST class can be enumerals.
3350 (fill_in_ada_prototype): Remove; now independent of language.
3351 (add_defn_to_vec): Add obstack and symtab arguments.
3352 Use obstack to hold collected definitions.
3353 (num_defns_collected): New function.
3354 (defns_collected): New function.
3355 (ada_resolve_subexp): Rename to resolve_subexp.
3356 (resolve_subexp): Renamed from ada_resolve_subexp.
3357 (ada_op_name): Return non-const result.
3358 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3359 other purposes.
3360
3361 (to_fixed_array_type): Add declaration.
3362 (coerce_unspec_val_to_type): Remove offset parameter.
3363 (find_sal_from_funcs_and_line): New interface.
3364 (find_line_in_linetable): Ditto.
3365
3366 (all_sals_for_line): Rename to ada_sals_for_line and make
3367 global.
3368 Add new parameter. When set, do not ask the user to choose the
3369 instance, but use the first one found instead.
3370 Use given line number in returned sals.
3371 Fix comment.
3372 Skip the prologue if funfirstline is set.
3373 Correct for memory leak when 0 lines found.
3374
3375 (value_pos_atr): Use pos_atr.
3376 (pos_atr): New function.
3377 (standard_lookup): Add block parameter.
3378
3379 (makeTimeStart): Remove declaration and uses.
3380 (makeTimeStop): Remove declaration and uses.
3381
3382 (ada_completer_word_break_characters): Allow for VMS.
3383 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3384 (raise_sym_name): New constant.
3385 (raise_unhandled_sym_name): New constant.
3386 (raise_assert_sym_name): New constant.
3387 (process_raise_exception_name): New constant.
3388 (longest_exception_template): New constant.
3389 (warning_limit): New variable to limit warnings during expression
3390 evaluation.
3391 (warnings_issued): New variable to keep track of warnings issued.
3392 (known_runtime_file_name_patterns): New constant.
3393 (known_auxiliary_function_name_patterns): New constant.
3394 (symbol_list_obstack): New variable.
3395
3396 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3397 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3398 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3399 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3400 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3401 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3402 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3403 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3404 and strcmp.
3405
3406 (ada_get_field_index): New function.
3407 (lim_warning): New function.
3408 (ada_translate_error_message): New function.
3409 (MAX_OF_SIZE): New function.
3410 (MIN_OF_SIZE): New function.
3411 (UMAX_OF_SIZE): New function.
3412 (UMIN_OF_SIZE): New function.
3413 (discrete_type_high_bound): New function.
3414 (discrete_type_low_bound): New function.
3415 (base_type): New function.
3416 (do_command): Remove.
3417
3418 (ada_update_initial_language): Use language_ada, not language_unknown.
3419 (ada_encode): Renamed from ada_mangle.
3420 Obey ADA_RETAIN_DOTS.
3421 (ada_decode): Renamed from ada_demangle.
3422 Update coding conventions.
3423 (decoded_names_store): New hash table.
3424 (ada_decode_symbol): New function.
3425 (ada_la_decode): New function.
3426
3427 (modify_general_field): Correct computations of offset and bit
3428 position.
3429 (desc_base_type): Handle ref types, too.
3430 (ada_is_direct_array_type): New function.
3431
3432 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3433 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3434 (ada_is_bogus_array_descriptor,ada_type_of_array,
3435 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3436 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3437 ada_is_array_descriptor_type.
3438
3439 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3440 (ada_is_packed_array_type): Handle pointers or
3441 references to packed arrays as well.
3442 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3443 (decode_packed_array_type): Search for the packed array type
3444 symbol in the currently selected block and associated
3445 superblocks too.
3446 Use lookup_symbol again.
3447
3448 (decode_packed_array): Handle pointers and references.
3449 Update call to coerce_unspec_val_to_type.
3450 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3451 (ada_value_primitive_packed_val): Improve comment.
3452
3453 (ada_index_type): Substitute int type for "undefined".
3454 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3455 ada_array_langth, ada_is_string_type): Use renamed
3456 ada_is_simple_array_type.
3457 (empty_array): New function.
3458
3459 (ada_resolve): Rename to resolve.
3460 (resolve): Make static.
3461 Call renamed resolve_subexp.
3462 Update comment.
3463 (ada_resolve_subexp): Rename to resolve_subexp.
3464 (resolve_subexp): Update comment.
3465 Decomment disabled code.
3466 Add LOC_COMPUTED* cases.
3467 Modify to use temporary struct symbols (marked as being in
3468 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3469 OP_UNRESOLVED_VALUE.
3470 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3471 Add OP_STRING case.
3472 Remove OP_ARRAY.
3473 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3474 Use new ada_lookup_symbol_list interface.
3475 Use new ada_resolve_function interface.
3476 Remove OP_TYPE case.
3477
3478 (ada_args_match): Idiot proof against null actuals.
3479 Use intermediate variables to clarify.
3480 (ada_resolve_function): Update comment and interface.
3481 (mangled_ordered_before): Rename to encoded_ordered_before and
3482 update comment.
3483 (sort_choices): Update comment and interface.
3484 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3485 (user_select_syms): New interface.
3486 Use new sort_choices interface.
3487 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3488 (possible_user_operator_p): Idiot-proof against null values.
3489 (ada_simple_renamed_entity): Don't make cleanup; rely on
3490 caller to free result string.
3491 Remove const from return type.
3492 (make_array_descriptor): Rename uses of place_on_stack to
3493 ensure_lval.
3494 Make sure that arrays are on stack.
3495
3496 (HASH_SIZE): Define.
3497 (struct cache_entry): Define.
3498 (cache_space): Define.
3499 (cache): Define.
3500 (clear_ada_sym_cache): New function.
3501 (find_entry): New function.
3502 (lookup_cached_symbol): New function.
3503 (defn_vector_size): Define.
3504 (cache_symbol): New function.
3505 (defn_symbols): Remove.
3506
3507 (standard_lookup): Use lookup_symbol_in_language to get effect of
3508 C lookup.
3509 Cache results.
3510
3511 (symbol_completion_match): New function.
3512 (symbol_completion_add): New function.
3513 (ada_make_symbol_completion_list): New function.
3514
3515 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3516 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3517 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3518 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3519
3520 (ada_lookup_simple_minsym): New function.
3521 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3522
3523 (add_symbols_from_enclosing_procs): New interface.
3524 Conditionalize more helpfully.
3525 Don't bother if program isn't running.
3526 Use new interface to get_frame_block.
3527 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3528
3529 (remove_extra_symbols): New interface.
3530 (xget_renaming_scope): New function.
3531 (is_package_name): New function.
3532 (renaming_is_visible): New function.
3533 (remove_out_of_scope_renamings): New function.
3534
3535 (ada_lookup_symbol_list): New interface.
3536 Properly reinitialize the symbol list obstack.
3537 Don't call add_symbols_from_enclosing_procs if we start from a
3538 static or global block.
3539 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3540 add_symbols_from_enclosing_procs.
3541 Add symtab data to cached entries.
3542 Handle symbols prefixed with
3543 "standard__" specially; strip prefix and don't look in local symbols.
3544 Do not include out of scope renaming symbols in list of
3545 symbols returned.
3546 Add const to block parameter.
3547 Move check for non-local, non-global symbols earlier.
3548 Remove timing stuff.
3549 (ada_lookup_symbol): New interface.
3550 Find symtab as well.
3551 (ada_lookup_symbol_nonlocal): New function.
3552
3553 (is_name_suffix): Enhance suffix detection to recognize
3554 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3555 (is_dot_digits_suffix): New function.
3556 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3557
3558 (ada_add_block_symbols): New interface. Use obstack to return results
3559 in a vector of struct ada_symbol_infos. Add symtab argument.
3560 Use new interface to add_defn_to_vec.
3561 Remove calls to fill_in_ada_prototype.
3562 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3563
3564 (ada_finish_decode_line_1): Add const qualification to local to fix
3565 warning.
3566 Start looking in static block for functions to avoid attempts
3567 to search frame chain for up-level variables.
3568 Adapt to new ada_sals_for_line interface.
3569 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3570 Handle quoting of the function name inside the spec string.
3571 Skip prologue when funfirstline is set and update the
3572 function documentation to that effect.
3573
3574 (debug_print_lines, debug_print_block, debug_print_blocks,
3575 debug_print_symtab): Remove.
3576
3577 (ada_main_name): New function.
3578 (ada_exception_breakpoint_type): New function.
3579 (is_known_support_routine): New function.
3580 (ada_find_printable_frame): Renamed from find_printable_frame and made
3581 global.
3582 Remove level parameter.
3583 Use new interface to select_frame.
3584
3585 (begin_command): Remove.
3586 (ada_adjust_exception_stop): New function.
3587 (ada_print_exception_stop): New function.
3588 (exception_name_from_cond): New function.
3589 (ada_report_exception_break): Replace disabled code with
3590 conditionalization on GNAT_GDB.
3591 Get the exception name from the condition string.
3592 Remove and move functionality into new functions
3593 ada_print_exception_breakpoint_task and
3594 ada_print_exception_breakpoint_nontask.
3595 (error_breakpoint_runtime_sym_not_found): New function.
3596 (is_runtime_sym_defined): New function.
3597 (ada_breakpoint_rewrite): Uncomment suppressed code.
3598 Use symbolic error-message and runtime-symbol names.
3599 Surround runtime symbol names in quotes.
3600 Allow non-specific breakpoints on exceptions and assertions before
3601 program starts.
3602
3603 (ada_is_tagged_type): Add parameter.
3604 (ada_is_tag_type): New function.
3605 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3606 (ada_variant_discrim_type): Ditto.
3607 (value_tag_from_contents_and_address): New function.
3608 (type_from_tag): New function.
3609 (struct tag_args): New structure used to communicate with
3610 ada_tag_name_1.
3611 (ada_tag_name_1): New function.
3612 (ada_tag_name): New function.
3613
3614 (ada_scan_number): Update comment.
3615 (find_struct_field): New function.
3616 (ada_search_struct_field): Make static.
3617 (ada_value_struct_elt): New version that returns references when
3618 given pointers or references to structs.
3619 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3620 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3621 interface.
3622 (ada_value_ind): Use new ada_to_fixed_value interface.
3623 (ada_coerce_ref): Ditto.
3624 (field_offset): Remove.
3625
3626 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3627 (ada_find_renaming_symbol): New function.
3628 (ada_prefer_type): Prefer named types over unnamed ones.
3629 (variant_field_index): New function.
3630 (contains_variant_part): Removed: subsumed by variant_field_index.
3631 (ada_template_to_fixed_record_type): New function, mostly from
3632 template_to_fixed_record_type.
3633 (template_to_fixed_record_type):
3634 Do not scan the type fields beyond the last one; prevents a
3635 potential SEGV.
3636 Handle case where variant field is listed BEFORE discriminant it
3637 depends on.
3638 Fix calculation of record length when bit length is
3639 not evenly divisible by char length.
3640 Move code to ada_template_to_fixed_record_type and call it.
3641
3642 (template_to_static_fixed_type): Revise comment.
3643 Modify to work on ordinary record types as well as templates,
3644 so as to handle fields that use ___XVE or ___XVU encodings.
3645 (to_record_with_fixed_variant_part): Fill out comment.
3646 Initialize C++ stuff in right type.
3647 Allow case where DVAL is null.
3648 Handle case where variant field is not last.
3649 Fix typo concerning record length.
3650 (to_fixed_record_type): Decomment disabled code.
3651 (to_fixed_record_type): Use variant_field_index instead of
3652 contains_variant_part.
3653 (to_fixed_variant_branch_type): Ditto.
3654 (to_fixed_array_type): Decomment disabled code.
3655 (ada_to_fixed_type): Convert tagged types to the specific type.
3656 Deactivate the size-check for array types in order to avoid
3657 some false size alarms.
3658 (to_static_fixed_type): Decomment disabled code.
3659 Modify to call template_to_static_fixed_type
3660 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3661 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3662 Remove valaddr argument, as it is never really used.
3663 (ada_to_fixed_value): Change interface to act on single struct value*
3664 operand.
3665 (adjust_pc_past_prologue): New function.
3666 (ada_attribute_name): Modify to take enum exp_opcode argument.
3667
3668 (ada_enum_name): Recognize new homonym-distinguishing convention.
3669 Adjust local variable's type to remove compiler warning.
3670 Fix a small problem in the part that unqualifies the enumeration name.
3671 (ada_value_binop): New function.
3672 (ada_value_equal): New function.
3673
3674 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3675 Don't give error message when not doing normal evaluation
3676 and a tagged type doesn't seem to contain a structure member.
3677 Give error message for packed arrays.
3678 For indexing arrays, handle pointers to packed arrays correctly.
3679 Handle case of 'first and 'last attributes of bare integral type
3680 without encoded subtype info.
3681 Remove some unnecessary casts.
3682 Fix uninitialized value of type in computing 'first, 'last, or 'length
3683 of array object.
3684 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3685 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3686 calls.
3687 Attributes are now exp_opcode values.
3688 Correct treatment of 'modulus.
3689 Better error message for taking 'length of wrong kind of type;
3690 improve comment.
3691 Change EVAL_NORMAL to noside for consistency.
3692 Use ada_value_binop for DIV, MOD, REM.
3693 Make special case out of array of length 0, since an argument
3694 of 0 upsets some platforms' malloc.
3695 Use OP_STRING instead of OP_ARRAY.
3696 For slice, add check that we have an array type before extracting
3697 a slice out of it. Avoids a SEGV.
3698 When evaluating an array slice, if the array type is a reference to
3699 an aligner type, then replace the aligner type by the actual type.
3700 Decomment disabled code.
3701 Remove some dead code.
3702 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3703 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3704 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3705 and UNOP_MBR to UNOP_IN_RANGE.
3706 If an array type has a parallel ___XVE type, then use it.
3707 Turn arrays into pointers for lvalue arrays.
3708 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3709 bounds error and handle 0-length slices.
3710 Use lim_warning.
3711 When selecting fields, apply ada_to_fixed_value (because the fields
3712 might have ___XVU or ___XVE encodings even if not dynamic.)
3713 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3714 (ada_is_system_address_type): New function.
3715
3716 (get_var_value): Use new interface to ada_lookup_symbol_list.
3717 (get_int_var_value): New interface.
3718 (to_fixed_range_type): Allow unknown bound, with warning.
3719 (ada_is_modular_type): Decomment disabled code.
3720 (ADA_OPERATORS): New definition.
3721 (ada_operator_length): New function.
3722 (ada_expr_op_name): New function.
3723 (ada_forward_operator_length): New function.
3724 (ada_dump_subexp_body): New function.
3725 (ada_print_subexp): New function.
3726 (ada_exp_descriptor): New constant.
3727 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3728 (ada_language_defn): Add ada_exp_descriptor entry.
3729 Change ada_parse => parse.
3730 Add post-parser entry.
3731 Use ada-specific non-local symbol lookup.
3732 Don't use C-style arrays.
3733 String lower-bound is 1.
3734 Decomment disabled code.
3735 (parse): New function.
3736 New fields ada_translate_error_message, ada_lookup_symbol,
3737 ada_lookup_minimal_symbol.
3738
3739 * ada-lang.h: Update copyright dates.
3740 Replace the mangle/demangle terminology throughout by the
3741 more appropriate encode/decode one.
3742 Include breakpoint.h.
3743 Forward declare struct partial_symbol, struct block.
3744 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3745 (EXTRACT_ADDRESS): Remove.
3746 (EXTRACT_INT): Remove.
3747 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3748 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3749 (MAX_RENAMING_CHAIN_LENGTH): Define.
3750 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3751
3752 (enum task_states): Remove.
3753 ada_task_states: Remove.
3754 (fat_string): Remove.
3755 (struct entry_call): Remove.
3756 (struct task_fields): Remove.
3757 (struct task_entry): Remove.
3758
3759 (struct ada_symbol_info): Define.
3760 (enum ada_attribute): Remove.
3761 (enum ada_operator): Define.
3762
3763 (ada_get_field_index): Declare.
3764 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3765 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3766 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3767 (ada_lookup_symbol_list): New interface.
3768 (ada_decode_symbol): Declare.
3769 (ada_decode): Declare.
3770 (ada_lookup_symbol): New interface.
3771 (ada_update_initial_language): Declare.
3772 (ada_lookup_simple_minsym): Declare.
3773 (user_select_syms): New interface.
3774 (ada_sals_for_line): Declare.
3775 (ada_is_tagged_type): New interface.
3776 (ada_tag_name): Declare.
3777 (ada_lookup_struct_elt_type): Remove declaration.
3778 (ada_search_struct_field): Remove declaration.
3779 (ada_attribute_name): New interface.
3780 (ada_is_system_address_type): Declare.
3781 (ada_to_fixed_value): Remove declaration.
3782 (ada_template_to_fixed_record_type_1): Declare.
3783 (get_int_var_value): New interface.
3784 (ada_find_any_symbol): Declare.
3785 (ada_find_renaming_symbol): Declare.
3786 (ada_mangle): Rename to ada_encode.
3787 (ada_simple_renamed_entity): Remove const.
3788 (ada_main_name): Declare.
3789 (get_current_task): Rename to ada_get_current_task.
3790 (get_entry_number): Remove declaration.
3791 (ada_report_exception_break): Remove declaration.
3792 (ada_print_exception_breakpoint_nontask): Declare.
3793 (ada_print_exception_breakpoint_task): Declare.
3794 (ada_find_printable_frame): Declare.
3795
3796 * ada-lex.l: Update copyright notices.
3797 Use xmalloc and xfree instead of malloc and free.
3798 Use new interface to name_lookup.
3799 Use new interface to
3800 ada_mangle=>ada_encode.
3801 Redo handling of '$...' variable to parallel current treatment
3802 in c-exp.y.
3803 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3804 digit_to_int, strtoulst, processInt, processReal, processId,
3805 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3806 yywrap): Protoize.
3807
3808 (processInt): Use cast to remove harmless warning.
3809 (processReal): Modify to get rid of compiler warning on scan formats.
3810
3811 (processId): Replace xmalloc with obstack_alloc for name and remove
3812 call to ada_name_string_cleanup.
3813 Remove obsolete disabled code.
3814 (name_lookup): Ditto.
3815 New interface.
3816 Use obsavestring on temp_parse_space instead of savestring
3817 on name, and remove call to ada_name_string_cleanup.
3818 Free string returned from ada_simple_renamed_entity.
3819 Use new interface to ada_lookup_symbol_list.
3820 Decomment disabled code.
3821 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3822 not types.
3823 When a type name lookup succeeds as a result of
3824 lookup_primitive_typename, check for regular type entry that has not
3825 yet been read in.
3826 Limit length of chain of renamed symbols we are willing to follow.
3827 Do not break names beginning with "standard__" into segments.
3828 (block_lookup): Use new interface to ada_lookup_symbol_list.
3829
3830 * ada-typeprint.c: Update copyright notice.
3831 (demangled_type_name): Rename to decoded_type_name.
3832 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3833 (print_range_bound): Correct handling of negative
3834 bounds that make the index type looked unsigned under STABS.
3835 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3836 (print_range_type_named): Use the builtin int type if no type
3837 corresponding to the given type name could be found.
3838 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3839 Add some bullet-proofing.
3840 (print_variant_clauses): Allow for variant branches with ___XVU
3841 encodings that are not dynamic fields.
3842 Use new interface to ada_is_tagged_type.
3843 (print_record_type): Allow for fields with ___XVE encodings that
3844 are not dynamic fields.
3845 Use new interface to ada_is_tagged_type.
3846 (ada_print_type): ada_is_array_descriptor =>
3847 ada_is_array_descriptor_type.
3848
3849 * ada-valprint.c: Update copyright notice.
3850 Include gdb_string.h
3851 Include infcall.h
3852 (ui_memcpy): New function.
3853 (ada_print_floating): New function.
3854 (ada_print_str): Order arguments correctly.
3855 Correct handling of empty arrays and arrays of 0-length items.
3856 ada_is_array_descriptor => ada_is_array_descriptor_type
3857 Print values of type System.Address in hexadecimal format.
3858 Use ada_print_floating to print floating-point numbers in Ada format.
3859 Print class tag values with type names.
3860 No longer print the address of reference values. Avoids
3861 a potential confusion.
3862 (ada_value_print): Stop printing the object type for reference
3863 values, but preserve that behavior for access types. Avoids
3864 a potential confusion.
3865 Simplify one conditional expression, as the first part is now
3866 necessarily true.
3867 ada_is_array_descriptor => ada_is_array_descriptor_type
3868 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3869
f65f91b5
JB
38702004-06-01 Jim Blandy <jimb@redhat.com>
3871
3872 * ppc-tdep.h: Delete unused 'regoff' member.
3873 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3874
d4687fa0
MC
38752004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3876
3877 Fix PR symtab/1661.
3878 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3879 (hpread_read_struct_type): Likewise.
3880
de169ec9
AC
38812004-06-01 Andrew Cagney <cagney@gnu.org>
3882
c6902d46
AC
3883 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3884 instead of xasprintf.
3885 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3886 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3887 (mi_cmd_data_list_register_names)
3888 (mi_cmd_data_list_changed_registers)
3889 (mi_cmd_data_list_register_values)
3890 (get_register, mi_cmd_data_write_register_values)
3891 (mi_cmd_data_write_register_values)
3892 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3893 (mi_cmd_target_download, mi_cmd_target_select)
3894 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3895 (mi_execute_cli_command, mi_execute_async_cli_command)
3896 (mi_execute_async_cli_command): Ditto.
3897 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3898 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3899
6085fc2d
AC
3900 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3901 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3902 error_last_message instead of mi_error_last_message.
3903 * mi/mi-main.c (mi_error_last_message): Delete function.
3904
de169ec9
AC
3905 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3906 "invalid number of columns" error. Delete redundant "out of
3907 memory" check.
3908
1fc7d519
MK
39092004-05-31 Mark Kettenis <kettenis@gnu.org>
3910
6cfb2041
MK
3911 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3912 (gregset_t, fpregset_t): Remove typedefs.
3913 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3914 (REG_OFFSET): Rename argument.
3915 (i386bsd_r_reg_offset): Rename from reg_offset.
3916 (REG_ADDR): Remove macro.
3917 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3918 functions.
3919 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3920 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3921 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3922 instead of supply_gregset.
3923 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3924 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3925 instead of fill_gregset.
3926 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3927
1fc7d519
MK
3928 * i386bsd-nat.c: Don't include "gregset.h".
3929 (supply_gregset, fill_gregset): Make static.
3930 (supply_fpregset, fill_fpregset): Remove.
3931 * Makefile.in (i386bsd-nat.o): Update dependencies.
3932
2c34abbe
MK
39332004-05-30 Mark Kettenis <kettenis@gnu.org>
3934
448724fb
MK
3935 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3936 "gdb_assert.h". Con't include "gregset.h".
3937 (fbsd_make_corefile_notes): Use regset-based core file support
3938 instead off fill_gregset and fill_fpregset.
3939 * Makefile.in (fbsd-proc.o): Update dependencies.
3940
5ca8ca7c
MK
3941 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3942 instructions.
3943 (m88k_frame_prev_register): Simplify code a bit.
3944
593adc23
MK
3945 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3946 (amd64_collect_fpregset): New function.
3947 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3948
8d1b517b
MK
3949 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3950
7fdafb5a
MK
3951 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3952 (i386_collect_gregset): New function.
3953 (i386_supply_fpregset): Adjust comment.
3954 (i386_collect_fpregset): New function.
3955 (i386_regset_from_core_section): Use i386_collect_gregset and
3956 i386_collect_fpregset.
3957
8693c419
MK
3958 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3959 handle VALUEP being null.
3960
2c34abbe
MK
3961 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3962
45d134d8
MK
39632004-05-29 Mark Kettenis <kettenis@gnu.org>
3964
1698f4e7
MK
3965 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3966
45d134d8
MK
3967 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3968 assembler in OpenBSD 3.5-current.
3969 (amd64obsd_sigcontext_addr): Likewise.
3970
691d145a
JB
39712004-05-28 Jim Blandy <jimb@redhat.com>
3972
3973 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3974 register set, so our regcache isn't declared "legacy" and our E500
3975 pseudoregister read and write functions aren't ignored.
3976 (rs6000_register_byte, rs6000_register_raw_size,
3977 rs6000_register_virtual_type, rs6000_register_convertible,
3978 rs6000_register_convert_to_virtual,
3979 rs6000_register_convert_to_raw): Deleted.
3980 (rs6000_register_type, rs6000_convert_register_p,
3981 rs6000_register_to_value, rs6000_value_to_register): New
3982 functions.
3983 (rs6000_gdbarch_init): Don't register
3984 gdbarch_deprecated_register_size,
3985 gdbarch_deprecated_register_bytes,
3986 gdbarch_deprecated_register_byte,
3987 gdbarch_deprecated_register_raw_size,
3988 gdbarch_deprecated_register_virtual_type,
3989 gdbarch_deprecated_register_convertible,
3990 gdbarch_deprecated_register_convert_to_virtual, or
3991 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3992 register gdbarch_register_type, gdbarch_convert_register_p,
3993 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3994
18ed0c4e
JB
39952004-05-26 Jim Blandy <jimb@redhat.com>
3996
3997 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3998 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3999 functions, updated to match the register numberings used in GCC.
4000 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4001 rs6000_dwarf2_reg_to_regnum as register number conversions
4002 functions for STABS and Dwarf2.
4003
779af9e3
RC
40042004-05-26 Randolph Chung <tausq@debian.org>
4005
4006 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4007 in header file.
4008
c23968a2
JB
40092004-05-25 Joel Brobecker <brobecker@gnat.com>
4010
4011 * NEWS: Document new "start" command.
4012
3a7d1c27
RC
40132004-05-25 Randolph Chung <tausq@debian.org>
4014
4015 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4016 hppa-linux.
4017
43613416
RC
40182004-05-25 Randolph Chung <tausq@debian.org>
4019
4020 * hppa-hpux-tdep.c (offsetof): Define.
4021 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4022 (hppa32_hpux_frame_base_before_sigtramp)
4023 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4024 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4025 (hppa64_hpux_frame_base_before_sigtramp)
4026 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4027 functions.
4028 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4029 (hppa_hpux_sigtramp_frame_unwind_cache)
4030 (hppa_hpux_sigtramp_frame_this_id)
4031 (hppa_hpux_sigtramp_frame_prev_register)
4032 (hppa_hpux_sigtramp_frame_unwind)
4033 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4034 (hppa_hpux_init_abi): Register sigtramp unwinder.
4035 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4036
6d1be3f1
RC
40372004-05-25 Randolph Chung <tausq@debian.org>
4038
4039 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4040 and multiple stack unwinds.
4041 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4042
97c34f65
AC
40432004-05-25 Andrew Cagney <cagney@gnu.org>
4044
4045 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4046 * symfile-mem.h: Delete file.
4047 * symfile-mem.c: Do not include "symfile-mem.h".
4048 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4049 "struct bfd_section". When an error do not bother returning NULL.
4050 (add_symbol_file_from_memory_command): Use "struct bfd" and
4051 "struct bfd_section".
4052 * Makefile.in (symfile_mem_h): Delete.
4053 (symfile-mem.o): Update dependencies.
4054
e23cbd82
NR
40552004-05-25 Nick Roberts <nickrob@gnu.org>
4056
4057 * gdb-mi.el: New file.
4058
20d2ca3e
AC
40592004-05-25 Andrew Cagney <cagney@gnu.org>
4060
4061 * inftarg.c: Include "observer.h".
4062 (child_attach, child_create_inferior): Notify inferior_created.
4063 * corelow.c: Include "observer.h".
4064 (core_open): Notify inferior_created.
4065 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4066
c27cda74
AC
40672004-05-25 Andrew Cagney <cagney@gnu.org>
4068
4069 * target.h (struct target_ops): Add from_tty to
4070 to_create_inferior.
4071 (target_create_inferior, find_default_create_inferior): Update.
4072 * infcmd.c (run_command): Update.
4073 * wince.c (child_create_inferior): Update.
4074 * win32-nat.c (child_create_inferior): Update.
4075 * uw-thread.c (uw_thread_create_inferior): Update.
4076 * thread-db.c (thread_db_create_inferior): Update.
4077 * target.c (debug_to_create_inferior)
4078 (find_default_create_inferior): Update.
4079 (maybe_kill_then_create_inferior): Update.
4080 * sol-thread.c (sol_thread_create_inferior): Update.
4081 * remote.c (extended_remote_async_create_inferior)
4082 (extended_remote_create_inferior): Update.
4083 * remote-vx.c (vx_create_inferior): Update.
4084 * remote-st.c (st2000_create_inferior): Update.
4085 * remote-sim.c (gdbsim_create_inferior): Update.
4086 * remote-sds.c (sds_create_inferior): Update.
4087 * remote-rdp.c (remote_rdp_create_inferior): Update.
4088 * remote-rdi.c (arm_rdi_create_inferior): Update.
4089 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4090 * remote-e7000.c (e7000_create_inferior): Update.
4091 * procfs.c (procfs_create_inferior): Update.
4092 * ocd.c (ocd_create_inferior): Update.
4093 * ocd.h (ocd_create_inferior): Update.
4094 * nto-procfs.c (procfs_create_inferior): Update.
4095 * monitor.c (monitor_create_inferior): Update.
4096 * lin-lwp.c (lin_lwp_create_inferior): Update.
4097 * inftarg.c (child_create_inferior): Update.
4098 * hpux-thread.c (hpux_thread_create_inferior): Update.
4099 * gnu-nat.c (gnu_create_inferior): Update.
4100
1db2a798
AC
41012004-05-25 Andrew Cagney <cagney@gnu.com>
4102
4103 * MAINTAINERS: Update e-mail address.
4104
007d08bb
RC
41052004-05-24 Randolph Chung <tausq@debian.org>
4106
4107 * thread.c (info_threads_command, thread_apply_all_command)
4108 (thread_apply_command, thread_command, do_captured_thread_select):
4109 Remove HPUXHPPA-specific code.
4110
69e7b95e
RC
41112004-05-24 Randolph Chung <tausq@debian.org>
4112
4113 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4114 unused symbols.
4115 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4116 references.
4117
a4d5f2e0
JB
41182004-05-24 Joel Brobecker <brobecker@gnat.com>
4119
4120 * infcmd.c (kill_if_already_running): New function, extracted
4121 from run_command().
4122 (run_command): Replace extracted code by call to
4123 kill_if_already_running().
4124 (start_command): New function.
4125 (_initialize_infcmd): Add "start" command.
4126
bf2ca189
MK
41272004-05-24 Mark Kettenis <kettenis@gnu.org>
4128
4129 Add OpenBSD/m88k support.
4130 * NEWS (New native configurations): Mention OpenBSD/m88k.
4131 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4132 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4133 * Makefile.in (m88k_tdep_h): New variable.
4134 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4135 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4136 * configure.host: Add m88*-*-openbsd*.
4137 * configure.tgt: Add m88*-*-openbsd*.
4138
80fadb11
JB
41392004-05-24 Jim Blandy <jimb@redhat.com>
4140
4141 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4142 to approve changes.
4143
19e2d14b
KB
41442004-05-24 Kevin Buettner <kevinb@redhat.com>
4145
4146 * symtab.c (fixup_section): Search section table when lookup by
4147 name fails.
4148
1b07b470
RC
41492004-05-24 Randolph Chung <tausq@debian.org>
4150
4151 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4152 be "small_struct".
4153
368702b1
MK
41542004-05-24 Mark Kettenis <kettenis@gnu.org>
4155
5df97fde
MK
4156 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4157 register number in regcache_raw_collect call.
4158 (m68kbsd_collect_fpregset): Likewise.
4159 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4160
368702b1
MK
4161 * regset.h (struct regset): Add back `regset' member.
4162
a770d4ec
MK
41632004-05-23 Mark Kettenis <kettenis@gnu.org>
4164
70f9f479
MK
4165 * configure.in: Check for td_pcb in `struct thread'.
4166 * configure, config.in: Regenerated.
4167
2e16d79e
MK
4168 * dpx2-nat.c: Remove file.
4169 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4170 (dpx2-nat.o): Remove dependencies.
4171
492cf391
MK
4172 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4173 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4174 (amd64obsd_supply_pcb): New function.
4175 (_initialize_amd64obsd_nat): Enable libkvm interface.
4176 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4177 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4178 (LOADLIBES): New variable.
4179
a770d4ec
MK
4180 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4181 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4182 (sparc32nbsd_supply_pcb): New function.
4183 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4184 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4185 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4186 (LOADLIBES): New variable.
4187
9ea75c57
MK
41882004-05-22 Mark Kettenis <kettenis@gnu.org>
4189
2e0c3539
MK
4190 * bsd-kvm.c, bsd-kvm.h: New files.
4191 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4192 "bsd-kvm.h".
4193 (i386fbsd_supply_pcb): New function.
4194 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4195 (i386fbsd-nat.o): Update dependencies.
4196 (bsd_kvm_h): New variable.
4197 (bsd-kvm.o): New dependency.
4198 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4199 (LOADLIBES): New variable.
4200
9ea75c57
MK
4201 * regset.c: Tweak comment.
4202 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4203 macro.
4204 * regset.h: Update copyright year.
4205 (struct regset): Remove `descr' member, add `gdbarch' member.
4206 (regset_alloc): Adjust prototype and comment.
4207 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4208 (i386_supply_fpregset): Likewise.
4209 (i386_regset_from_core_section): Update call to regset_alloc.
4210 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4211 REGSET->arch.
4212 (i386obsd_aout_regset_from_core_section): Update call to
4213 regset_alloc.
4214 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4215 REGSET->arch.
4216 (i386nbsd_aout_regset_from_core_section): Update call to
4217 regset_alloc.
4218 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4219 REGSET->arch.
4220 (amd64_regset_from_core_section): Update call to regset_alloc.
4221 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4222 REGSET->arch.
4223 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4224 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4225 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4226 (sparc32nbsd_init_abi): Update call to regset_alloc.
4227 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4228 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4229 (sparc64obsd_init_abi): Update call to regset_alloc.
4230 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4231 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4232 (sparc64nbsd_init_abi): Update call to regset_alloc.
4233 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4234 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4235 (sparc64fbsd_init_abi): Update call to regset_alloc.
4236
867e2dc5
JB
42372004-05-22 Jim Blandy <jimb@redhat.com>
4238
4239 * ppc-tdep.h (spe_register_p): New declaration.
4240 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4241 ppc_spefscr_regnum.
4242 * rs6000-tdep.c (spe_register_p): New function.
4243 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4244 spefscr.
4245 (rs6000_gdbarch_init): Initialize the new members of the tdep
4246 structure.
4247
617a4cba
JB
42482004-05-21 Jim Blandy <jimb@redhat.com>
4249
0397dee1
JB
4250 * ppc-linux-nat.c (fetch_register): Move code back to be next
4251 to the comment that describes it. (Moved code, instead of
4252 comment, for symmetry with store_register.)
4253
617a4cba
JB
4254 Allocate regset structures in the gdbarch's obstack, not using
4255 xmalloc.
4256 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4257 Add 'arch' argument. Allocate the regset on arch's obstack, not
4258 using xmalloc.
4259 * regset.h (regset_alloc): Update declaration.
4260 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4261 gdbarch argument.
4262 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4263 * i386-tdep.c (i386_regset_from_core_section): Same.
4264 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4265 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4266 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4267 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4268 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4269 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4270
9aa3914d
JB
42712004-05-21 Joel Brobecker <brobecker@gnat.com>
4272
4273 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4274
99c87dab
JB
42752004-05-21 Jim Blandy <jimb@redhat.com>
4276
4277 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4278 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4279
c2b6b4aa
JB
42802004-05-20 Jim Blandy <jimb@redhat.com>
4281
4282 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4283
144529d0
MK
42842004-05-20 Mark Kettenis <kettenis@gnu.org>
4285
4286 * regset.h: Make prototype const-correct.
4287 * regset.c (regset_xmalloc): Make const-correct.
4288
4725b721
PH
42892004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4290
4291 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4292 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4293 (symbol_search_name): Declare.
4294
4295 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4296 (iter_name_next_hashed): Ditto.
4297 (iter_name_next_linear): Ditto.
4298 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4299
4300 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4301 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4302 (symbol_search_name): New function.
4303
4304 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4305
4306 * minsyms.c (build_minimal_symbol_hash_tables): Change
4307 test for adding to demangled hash table to check for difference
4308 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4309
be07a590
JB
43102004-05-19 Jim Blandy <jimb@redhat.com>
4311
4312 Use a constructor function to create regset structures.
4313 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4314 (struct regset): Use supply_regset_ftype. Add new
4315 'collect_regset' member.
4316 (regset_xmalloc): New declaration.
4317 * regset.c: New file.
4318 * am64-tdep.c (amd64_regset_from_core_section): Use
4319 regset_xmalloc to construct regset structures.
4320 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4321 * i386-tdep.c (i386_regset_from_core_section): Same.
4322 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4323 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4324 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4325 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4326 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4327 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4328 * Makefile.in (COMMON_OBS): Add regset.o.
4329 (regset.o): New rule.
4330
604368f5
JB
43312004-05-19 Joel Brobecker <brobecker@gnat.com>
4332
4333 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4334 and pthread_cond_wait.c.
4335
82d69f8b
JB
43362004-05-18 Jim Blandy <jimb@redhat.com>
4337
4338 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4339 before the mach-specific switch, and then let the individual cases
4340 override the defaults, rather than leaving them uninitialized
4341 until the switch and then setting them in each case.
4342
5859efe5
RC
43432004-05-18 Randolph Chung <tausq@debian.org>
4344
4345 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4346 millicode functions.
4347
9ca80cf8
RC
43482004-05-18 Randolph Chung <tausq@debian.org>
4349
4350 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4351 references to dld_flags_buffer consistent.
4352
ed70ba00
RC
43532004-05-18 Randolph Chung <tausq@debian.org>
4354
4355 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4356 it for unwinding the stack.
4357
63100632
RC
43582004-05-18 Randolph Chung <tausq@debian.org>
4359
4360 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4361 Undefine these so we can overide them using gdbarch.
4362
090ccbb7
RC
43632004-05-18 Randolph Chung <tausq@debian.org>
4364
4365 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4366 handling for 64-bit HPUX (elf).
4367
594706e6
DJ
43682004-05-18 Daniel Jacobowitz <dan@debian.org>
4369
4370 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4371 constants.
4372 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4373 * ia64-tdep.c (examine_prologue): Likewise.
4374 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4375 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4376
e5483145
MK
43772004-05-18 Mark Kettenis <kettenis@gnu.org>
4378
4379 * vax-tdep.c (vax_return_value): Implement
4380 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4381
caed1a45
MK
43822004-05-17 Mark Kettenis <kettenis@gnu.org>
4383
4384 * vax-tdep.c (vax_return_value): Fix typo.
4385
3c0b7db2
AC
43862004-05-17 Andrew Cagney <cagney@redhat.com>
4387
5aae53e5
AC
4388 * MAINTAINERS: Mark Salter was also responsible for
4389 testsuite/config/
4390
3c0b7db2
AC
4391 * NEWS: Mention signal fixes.
4392
22b0923d
RC
43932004-05-17 Randolph Chung <tausq@debian.org>
4394
4395 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4396 check to see if we are unwinding an export stub. Export stubs clobber
4397 the %rp in the call path and stores the original rp in a stack slot.
4398
22f2b2f3
JB
43992004-05-17 Jim Blandy <jimb@redhat.com>
4400
4401 * MAINTAINERS: Update address for J.T. Conklin.
4402
cea96d64
RC
44032004-05-17 Randolph Chung <tausq@debian.org>
4404
4405 * hppa-tdep.c: Remove superfluous #include's.
4406 * Makefile.in (hppa-tdep.o): Update dependencies.
4407
f08f6a4a
RC
44082004-05-17 Randolph Chung <tausq@debian.org>
4409
4410 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4411 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4412 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4413 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4414 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4415 Remove static function declarations.
4416
51da707a
MK
44172004-05-17 Mark Kettenis <kettenis@gnu.org>
4418
caed1a45
MK
4419 * alphabsd-nat.c: Update copyright year.
4420 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4421
c0c2b0db
MK
4422 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4423 and M68K_A2_REGNUM.
4424
51da707a
MK
4425 * m68k-tdep.c (m68k_svr4_return_value): Implement
4426 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4427
8d027a04
MK
44282004-05-16 Mark Kettenis <kettenis@gnu.org>
4429
4430 * sol-thread.c Update copyright year. Fix various coding
4431 standards violations. Tweak a few comments.
4432 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4433 Delete prototypes.
4434
0d99fdb9
RC
44352004-05-15 Randolph Chung <tausq@debian.org>
4436
4437 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4438 as pointer instead of array reference since HPUX compiler does
4439 not accept unsized array arguments.
4440 * somsolib.c (dld_flags_buffer): Use constant array size.
4441
f7e3843a
MK
44422004-05-15 Mark Kettenis <kettenis@gnu.org>
4443
0fe85704
MK
4444 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4445 offset with decimal offset.
4446 (amd64obsd_sigcontext_addr): Return correct address for entire
4447 signal trampoline.
4448
a54f9a00
MK
4449 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4450 instead of get_frame_base.
4451
feae6502
MK
4452 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4453 (fill_gregset): Use regcache_raw_collect.
4454
0382d099
MK
4455 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4456 ppcobsd-tdep.c.
4457
f7e3843a
MK
4458 * config/sparc/tm-nbsd64.h: Remove file.
4459 * config/tm-sunos.h: Remove file.
4460
773df3e5
JB
44612004-05-15 Joel Brobecker <brobecker@gnat.com>
4462
4463 * rs6000-tdep.c (store_param_on_stack_p): New function,
4464 an improved version of some code extracted from skip_prologue().
4465 (skip_prologue): Use store_param_on_stack_p() to detect
4466 instructions saving a parameter on the stack. Detect when r0
4467 is used to save a parameter.
4468 Do not mark "li rx, SIMM" instructions as part of the prologue,
4469 unless the following instruction is also part of the prologue.
4470
95918acb
AC
44712004-05-14 Andrew Cagney <cagney@redhat.com>
4472
06f32659
AC
4473 * infrun.c (handle_inferior_event): Simplify
4474 STEP_OVER_UNDEBUGGABLE.
4475
95918acb
AC
4476 * infrun.c (handle_step_into_function): Delete function.
4477 (handle_inferior_event): Inline calls to
4478 handle_step_into_function.
4479
40711ff1 44802004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4481
4482 * rs6000-nat.c: Fix a comment.
4483
02f60eae
JB
44842004-05-12 David Anderson <davea@sgi.com>
4485
4486 Committed by Jim Blandy <jimb@redhat.com>:
4487 * regcache.c (struct regcache_descr): fix comment spelling.
4488
552e377b
JB
44892004-05-13 J. Brobecker <brobecker@gnat.com>
4490
4491 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4492 Fixes a link link failure.
4493
349766b2
JB
44942004-05-13 J. Brobecker <brobecker@gnat.com>
4495
4496 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4497 error that was causing the build to fail.
4498
0d4d5484
JB
44992004-05-13 J. Brobecker <brobecker@gnat.com>
4500
4501 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4502 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4503
0b30808c
AC
45042004-05-13 Andrew Cagney <cagney@redhat.com>
4505
4506 * infrun.c (handle_inferior_event): Check for
4507 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4508 calls. Update comments.
4509
cdf2c5f5
JB
45102004-05-13 Jim Blandy <jimb@redhat.com>
4511
063715bf
JB
4512 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4513 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4514 (store_regs_user_thread, store_regs_kernel_thread): Use
4515 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4516 * ppc-linux-nat.c (fill_gregset): Same.
4517 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4518 (ppc_linux_sigtramp_cache): Same.
4519 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4520 (ppcnbsd_sigtramp_cache_init): Same.
4521 * rs6000-nat.c (fetch_core_registers): Same.
4522 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4523 (rs6000_frame_cache): Same.
4524
cdf2c5f5
JB
4525 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4526 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4527 of assuming that the gprs are numbered starting with zero.
4528 * ppc-linux-nat.c (fill_gregset): Same.
4529 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4530 * ppcnbsd-nat.c (getregs_supplies): Same.
4531 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4532 * rs6000-nat.c (fetch_core_registers): Same.
4533 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4534
450bd37b
MS
45352004-05-07 Michael Snyder <msnyder@redhat.com>
4536
4537 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4538 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4539
4a72a2a6
AC
45402004-05-13 Andrew Cagney <cagney@redhat.com>
4541
4542 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4543
8edfa926
BM
45442004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4545
4546 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4547 base_address for shared libraries.
4548
723e0e3d
BM
45492004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4550
4551 * MAINTAINERS (write after approval): Add myself.
4552
00d4360e
UW
45532004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4554
4555 * breakpoint.c (bpstat_stop_status): Add new argument
4556 STOPPED_BY_WATCHPOINT. Use it instead of testing
4557 target_stopped_data_address agaist 0 to check whether
4558 or not we stopped due to a hardware watchpoint.
4559 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4560 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4561 with new argument.
4562
ec76baa5
JB
45632004-05-12 Jim Blandy <jimb@redhat.com>
4564
4565 * configure.in: When checking whether we should use the -bbigtoc
4566 option, don't forget to restore the original value of LDFLAGS.
4567 * configure: Regenerated.
4568
f2c9ca08
AC
45692004-05-12 Andrew Cagney <cagney@redhat.com>
4570
4571 * thread.c (load_infrun_state): Delete step_sp.
4572 * infrun.c (context_switch): Ditto.
4573 * inferior.h (step_sp): Ditto.
4574 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4575 * gdbthread.h (struct thread_info, save_infrun_state)
4576 (restore_infrun_state): Ditto.
4577
090ddb2a
UW
45782004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4579
4580 * MAINTAINERS (write after approval): Add myself.
4581
8aad930b
AC
45822004-05-12 Andrew Cagney <cagney@redhat.com>
4583
4584 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4585 eliminate reference to step_sp.
4586 (struct execution_control_state, init_execution_control_state)
4587 (handle_inferior_event, keep_going): Delete update_step_sp and
4588 step_sp.
4589 * infcmd.c (step_sp): Note that variable is unused.
4590
922d5ae0
AC
45912004-05-11 Andrew Cagney <cagney@redhat.com>
4592
4593 * infrun.c (step_over_function): Delete function.
4594 (handle_step_into_function): Use insert_step_resume_breakpoint.
4595 (insert_step_resume_breakpoint): Fix assertion.
4596
017c5ca5
NR
45972004-05-11 Nick Roberts <nickrob@gnu.org>
4598
4599 * utils.c (defaulted_query): Just use the normal query input type
4600 when printing the annotations.
4601
42edda50
AC
46022004-05-11 Andrew Cagney <cagney@redhat.com>
4603
4604 * infrun.c (handle_inferior_event): Simplify code handling
4605 step-into or return-from a signal trampoline.
4606
d28b44a7
AC
46072004-05-11 Andrew Cagney <cagney@redhat.com>
4608
4609 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4610 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4611
383f0f5b
JB
46122004-05-10 Jim Blandy <jimb@redhat.com>
4613
d0b57c3a
JB
4614 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4615 with a call to internal_error.
4616
383f0f5b
JB
4617 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4618 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4619 processor variant lacks those registers.
4620 (ppc_floating_point_unit_p): Change description to make it clear
4621 that this returns info about the ISA, not the ABI.
4622 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4623 return true or false by checking tdep->ppc_fp0_regnum and
4624 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4625 arch/mach switching done in rs6000_gdbarch_init; it's better to
4626 keep that logic there, and just check the results here.
4627 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4628 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4629 floating-point registers.
4630 (ppc_supply_fpregset, ppc_collect_fpregset)
4631 (rs6000_push_dummy_call, rs6000_extract_return_value)
4632 (rs6000_store_return_value): Assert that we have floating-point
4633 registers.
4634 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4635 (rs6000_frame_cache): Don't note the locations at which
4636 floating-point registers were saved if we have no fprs.
4637 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4638 registers.
4639 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4640 (store_regs_user_thread, store_regs_kernel_thread): Only call
4641 supply_fprs / fill_fprs if we actually have floating-point
4642 registers.
4643 (special_register_p): Check ppc_fpscr_regnum before matching
4644 against it.
4645 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4646 supply / collect fpscr if we don't have it.
4647 * ppc-bdm.c: #include "gdb_assert.h".
4648 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4649 have floating-point registers, since I can't test this code on
4650 FP-free systems to adapt it.
4651 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4652 fpscr and floating point register numbers if they don't exist.
4653 (fetch_register): Assert that we have floating-point registers
4654 before we reach the code that handles them.
4655 (store_register): Same. And use tdep instead of calling
4656 gdbarch_tdep again.
4657 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4658 don't have them.
4659 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4660 fprs and fpscr if we don't have them.
4661 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4662 don't have them.
4663 * ppcnbsd-nat.c: #include "gdb_assert.h".
4664 (getfpregs_supplies): Assert that we have floating-point registers.
4665 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4666 * ppcobsd-tdep.c: #include "gdb_assert.h".
4667 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4668 have floating-point registers.
4669 * rs6000-nat.c (regmap): Don't match against the fpscr and
4670 floating point register numbers if they don't exist.
4671 (fetch_inferior_registers, store_inferior_registers,
4672 fetch_core_registers): Only fetch / store / supply the
4673 floating-point registers and the fpscr if we have them.
4674 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4675 (ppcobsd-tdep.o): Update dependencies.
4676
15960608
AC
46772004-05-10 Andrew Cagney <cagney@redhat.com>
4678
4679 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4680 (context_switch): Do not switch through_sigtramp_breakpoint.
4681 * gdbthread.h (save_infrun_state, load_infrun_state)
4682 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4683 and structure member.
4684 * thread.c (load_infrun_state, save_infrun_state): Update.
4685
5ab5aa0f
MK
46862004-05-10 Mark Kettenis <kettenis@gnu.org>
4687
4688 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4689
da78b0e7
DJ
46902004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4691
4692 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4693 throughout.
4694 * aclocal.m4: Regenerate.
4695
cca0d3b0
NW
46962004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4697
4698 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4699
d303a6c7
AC
47002004-05-10 Andrew Cagney <cagney@redhat.com>
4701
4702 * infrun.c (check_sigtramp2): Delete function.
4703 (handle_inferior_event): When single stepping, and taking a
4704 signal, set a breakpoint at the signal return address. Delete
4705 redundant calls to check_sigtramp2.
4706 (insert_step_resume_breakpoint): New function.
4707 (through_sigtramp_breakpoint, handle_inferior_event)
4708 (follow_exec, wait_for_inferior, fetch_inferior_event)
4709 (currently_stepping, keep_going): Delete most uses of
4710 through_sigtramp_breakpoint, not that it should be deleted.
4711 (delete_breakpoint_current_contents): Delete function.
4712
03f4cc20
RC
47132004-05-10 Randolph Chung <tausq@debian.org>
4714
4715 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4716 target.
4717 * config/pa/tm-linux.h: New file.
4718
37fc812e
DJ
47192004-05-10 Daniel Jacobowitz <drow@mvista.com>
4720
4721 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4722 of prefixes. Don't print the prefix twice in the CLI.
4723
26c0b942
JB
47242004-05-10 Jim Blandy <jimb@redhat.com>
4725
2e56e9c1
JB
4726 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4727 collect all the gprs.
4728
26c0b942
JB
4729 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4730 loop collecting gprs.
4731
dc497459
AC
47322004-05-09 Andrew Cagney <cagney@redhat.com>
4733
4734 * remote-vx.c (net_step): Delete step-range code.
4735 * remote.c (remote_resume, init_all_packet_configs)
4736 (set_remote_protocol_E_packet_cmd)
4737 (show_remote_protocol_E_packet_cmd)
4738 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4739 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4740 (show_remote_protocol_e_packet_cmd): Ditto.
4741
0543f387
MK
47422004-05-09 Mark Kettenis <kettenis@gnu.org>
4743
c481d1ca
MK
4744 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4745
f626a069
MK
4746 * hppa-tdep.h: Update copyright year.
4747 (struct trad_frame_saved_reg): Add opaque declaration.
4748
6fa57a7d
MK
4749 * amd64-tdep.c (amd64_return_value): Implement
4750 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4751
e47577ab
MK
4752 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4753 (m68k_value_to_register): New functions.
4754 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4755 value_to_register.
4756
31db7b6c
MK
4757 * defs.h (enum return_value_convention): Add
4758 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4759 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4760 * infcmd.c (legacy_return_value): New function.
4761 (print_return_value): Rwerite to implement
4762 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4763 * values.c (using_struct_return): Check for inequality to
4764 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4765 RETURN_VALUE_STRUCT_CONVENTION.
4766 * i386-tdep.c (i386_return_value): Implement
4767 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4768
0543f387
MK
4769 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4770 include "symtab.h", "opcode/vax.h" and "inferior.h".
4771 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4772 to read_memory_unsigned_integer.
4773 (vax_gdbarch_init): Reorder.
4774 (_initialize_vax_tdep): Spell out prototype.
4775 * Makefile.in (vax-tdep.o): Update dependencies.
4776
0c93b7b6
AC
47772004-05-08 Andrew Cagney <cagney@redhat.com>
4778
e6b55ae2
AC
4779 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4780 * target.c (target_detach, target_disconnect): Ditto.
4781
1ac839b8
AC
4782 * infcall.c (call_function_by_hand): When no
4783 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4784 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4785 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4786 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4787 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4788
28954179
AC
4789 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4790 * gdbarch.h, gdbarch.c: Re-generate.
4791 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4792 deprecated_fix_call_dummy.
4793 * v850-tdep.c (v850_gdbarch_init): Ditto.
4794 * infcall.c (call_function_by_hand): Do not call
4795 DEPRECATED_FIX_CALL_DUMMY.
4796
434b87dd
AC
4797 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4798 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4799 * gdbarch.h, gdbarch.c: Re-generate.
4800 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4801 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4802 deprecated_sizeof_call_dummy_words.
4803 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4805 * v850-tdep.c (v850_gdbarch_init): Ditto.
4806 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4807 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4808 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4809 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4810 * arch-utils.h (legacy_call_dummy_words)
4811 (legacy_sizeof_call_dummy_words): Delete declarations.
4812 * arch-utils.c (legacy_call_dummy_words)
4813 (legacy_sizeof_call_dummy_words): Delete variables.
4814
58d28df8
AC
4815 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4816 * gdbarch.h, gdbarch.c: Re-generate.
4817 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4818 * infcall.c (call_function_by_hand): Eliminate call to
4819 DEPRECATED_PUSH_DUMMY_FRAME.
4820 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4821 push_dummy_frame.
4822 (ns32k_push_dummy_frame): Delete function.
4823
e4a2df64
AC
4824 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4825 deprecated_call_dummy_breakpoint_offset or
4826 deprecated_call_dummy_start_offset.
4827 * dummy-frame.c, arm-tdep.c: Update comments.
4828 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4829 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4830 * gdbarch.h, gdbarch.c: Re-generate.
4831
d3712828
AC
4832 * infcall.c (legacy_push_dummy_code): Delete function.
4833 (push_dummy_code): Delete call.
4834
7a882905
AC
4835 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4836 * gdbarch.h, gdbarch.c: Re-generate.
4837 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4838 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4839 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4840 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4841
0ec5872b
AC
4842 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4843 (struct frame_info): Delete opaque declaration.
4844 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4845 * frame.c (get_frame_type): Delete call.
4846
0c93b7b6
AC
4847 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4848 pc_in_call_dummy.
4849 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4850 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4851
75536971
MK
48522004-05-08 Mark Kettenis <kettenis@gnu.org>
4853
527ca6bb
MK
4854 * alphanbsd-tdep.c: Include "gdb_string.h".
4855 * armnbsd-tdep.c: Update copyright year.
4856 Include "gdb_string.h".
4857 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4858 dependencies.
4859
d39fdc61
MK
4860 * delta68-nat.c: Remove file.
4861 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4862 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4863 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4864 (delta68-nat.o): Remove dependency.
4865
75536971
MK
4866 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4867 function.
4868 (m68k_gdbarch_init): Don't set
4869 deprecated_frameless_function_invocation.
4870
f4ca1d1f
RC
48712004-05-07 Randolph Chung <tausq@debian.org>
4872
4873 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4874 read_memory_nobpt for code reading when doing frame unwinding.
4875 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4876
2f0e8c7a
RC
48772004-05-07 Randolph Chung <tausq@debian.org>
4878
4879 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4880 instead of sp, handle sigaltstack case.
4881 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4882 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4883 signal handler and not that of the caller.
4884 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4885 hppa_linux_sigtramp_find_sigcontext.
4886
959464ff
RC
48872004-05-07 Randolph Chung <tausq@debian.org>
4888
4889 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4890 hppa-linux-nat.c.
4891 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4892 * hppa-linux-nat.c (fetch_register, store_register): Define.
4893 (fetch_inferior_registers, store_inferior_registers): Define.
4894 (supply_gregset): Add comment and clean up some unneeded code.
4895 (fill_gregset): Add comment and fix so that it saves registers in
4896 the right place in the gregset.
4897 (fill_fpregset): Fix buffer overrun problem.
4898 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4899
0da28f8a
RC
49002004-05-07 Randolph Chung <tausq@debian.org>
4901
4902 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4903 do common handling of the pcoqt register.
4904 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4905 to use helper function.
4906 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4907 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4908 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4909 generic fallback unwinder when all else fails.
4910 (hppa_gdbarch_init): Add fallback sniffer.
4911 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4912 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4913 to use helper function.
4914
b9ec757a
JB
49152004-05-08 Joel Brobecker <brobecker@gnat.com>
4916
4917 * config/djgpp/fnchange.lst: Add translation rules for
4918 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4919
756e95f1
MK
49202004-05-08 Mark Kettenis <kettenis@gnu.org>
4921
4922 * frame.c (get_prev_frame_1): Work around GCC bug.
4923 * frame.h: Add comment about GCC bug.
4924
2b4855ab
AC
49252004-05-07 Andrew Cagney <cagney@redhat.com>
4926
4927 * observer.c: Include "commands.h" and "gdbcmd.h".
4928 (observer_debug, _initialize_observer): Add the
4929 command "set/show debug observer".
4930 * observer.sh: When observer debugging, log notify calls.
4931 * Makefile.in (observer.o): Update dependencies.
4932
ba3e8e46
JM
49332004-05-07 Jason Molenda (jmolenda@apple.com)
4934
4935 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4936
16796152
JB
49372004-05-07 Jim Blandy <jimb@redhat.com>
4938
daf6dc85
JB
4939 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4940 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4941 to recognize gpr regnums, instead of assuming that
4942 tdep->ppc_fp0_regnum marks the end of the general-purpose
4943 registers.
4944
16796152
JB
4945 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4946 the given architecture has floating-point registers.
4947
c69b8bfc
AC
49482004-05-07 Andrew Cagney <cagney@redhat.com>
4949
4950 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4951 macro defined to 1.
4952 * gdbarch.h, gdbarch.c: Re-generate.
4953 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4954 deprecated_use_generic_dummy_frames.
4955
7243600a
BF
49562004-05-07 Brian Ford <ford@vss.fsi.com>
4957
4958 * NEWS: Mention Cygwin DWARF 2 support.
4959
73c1e0a1
AC
49602004-05-07 Andrew Cagney <cagney@redhat.com>
4961
4962 * objfiles.h (struct entry_info): Delete unused fields
4963 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4964 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4965 * mipsread.c (mipscoff_symfile_read): Update.
4966 * mdebugread.c (parse_partial_symbols): Update.
4967 * dwarfread.c (read_file_scope): Update.
4968 * dwarf2read.c (read_file_scope): Update.
4969 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4970 * coffread.c (complete_symtab): Update.
4971
1d3056ac
MK
49722004-05-07 Mark Kettenis <kettenis@gnu.org>
4973
4974 * infcall.c (_initialize_infcall): Fix typo.
4975
15170568
AC
49762004-05-07 Andrew Cagney <cagney@redhat.com>
4977
4978 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4979 * command.h (add_setshow_zinteger_cmd): Declare.
4980
34f75cc1
RC
49812004-05-06 Randolph Chung <tausq@debian.org>
4982
4983 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4984 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4985 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4986 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4987 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4988 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4989 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4990 definitions ...
4991 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4992 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4993 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4994 (hppa64_hpux_frame_find_saved_regs_in_sig)
4995 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4996 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4997 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4998 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4999 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5000 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5001 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5002 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5003 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5004 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5005 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5006 (hppa32_register_type, hppa_cannot_store_register)
5007 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5008 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5009 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5010 * pa64solib.c (pa64_solib_have_load_event)
5011 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5012 (pa64_solib_unloaded_library_pathname): Likewise.
5013 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5014 (som_solib_library_pathname): Likewise.
5015
0a5e7efe
JI
50162004-05-05 Jim Ingham <jingham@apple.com>
5017
5018 * breakpoint.c (create_breakpoints): Copy the ignore count and
5019 thread id over from the pended breakpoint to the actual
5020 breakpoint.
5021
10a4b113
AC
50222004-05-05 Andrew Cagney <cagney@redhat.com>
5023
5024 * gdbarch.sh (PARM_BOUNDARY): Delete.
5025 gdbarch.h, gdbarch.c: Re-generate.
5026 * valops.c (PARM_BOUNDARY): Delete macro.
5027 (value_push): Delete PARM_BOUNDARY code.
5028 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5029
366f009f
JB
50302004-05-04 Jim Blandy <jimb@redhat.com>
5031
32b99774
JB
5032 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5033 Don't assume that the gprs, fprs, and UISA sprs are
5034 contiguous, start at register number zero, and end with fpscr.
5035 Instead, use the numbers from the tdep structure.
5036
366f009f
JB
5037 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5038 should no longer be used in code specific to the RS6000 and its
5039 derivatives.
5040 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5041 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5042 tdep->ppc_fp0_regnum.
5043 (ppc_supply_fpregset, ppc_collect_fpregset)
5044 (rs6000_push_dummy_call, rs6000_extract_return_value)
5045 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5046 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5047 FP0_REGNUM.
5048 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5049 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5050 Same.
5051 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5052 bdm_ppc_store_registers): Same.
5053 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5054 (store_register, fill_fpregset): Same.
5055 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5056 (ppc_linux_supply_fpregset): Same.
5057 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5058 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5059 Same.
5060 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5061 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5062 ppc64_sysv_abi_return_value): Same.
5063 * rs6000-nat.c (regmap, fetch_inferior_registers)
5064 (store_inferior_registers, fetch_core_registers): Same.
5065
827f338d
MK
50662004-05-01 Mark Kettenis <kettenis@gnu.org>
5067
5068 * m68knbsd-nat.c: Remove file.
5069 * m68knbsd-tdep.c: Remove file.
5070 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5071 dependencies.
5072 * configure.host: Add m68k-*-netbsdelf*.
5073 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5074 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5075 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5076 (XM_FILE): Remove.
5077 * config/m68k/nbsdelf.mh: New file.
5078 * config/m68k/nbsd.mt: New file.
5079 * config/m68k/nbsdaout.mt: Remove file.
5080 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5081 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5082 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5083 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5084 (use_struct_convention): Remove prototype.
5085 (USE_STRUCT_CONVENTION): Remove define.
5086 * config/m68k/xm-nbsd.h: Remove file.
5087
66894781
MS
50882004-05-04 Michael Snyder <msnyder@redhat.com>
5089
5090 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5091 reg_struct_return method (as gcc usually does for cross targets).
5092
f0f63663
AC
50932004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5094
5095 Committed by Andrew Cagney.
5096 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5097 alignment padding when accessing ucontext struct members.
5098
edf61169
JB
50992004-05-04 Jim Blandy <jimb@redhat.com>
5100
8bf659e8
JB
5101 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5102 'ppc_gplast_regnum' member.
5103 (ppc_num_gprs): New enum constant.
5104 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5105 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5106 * rs6000-nat.c (regmap, fetch_inferior_registers,
5107 store_inferior_registers): Same.
5108 * rs6000-tdep.c (e500_pseudo_register_read)
5109 (e500_pseudo_register_write): Same.
5110 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5111
b967e06f
JB
5112 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5113 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5114 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5115 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5116 FPLAST_REGNUM.
5117 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5118 Same.
5119 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5120 * rs6000-nat.c (regmap, fetch_inferior_registers)
5121 (store_inferior_registers): Same.
5122
edf61169
JB
5123 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5124 with FPLAST_REGNUM.
5125
58a9656e
JB
51262004-05-03 Joel Brobecker <brobecker@gnat.com>
5127
5128 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5129 failure detected by recent versions of GCC.
5130 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5131 to be consistent with the usage in dwarf2_create_include_psymtab.
5132
dc305454
MS
51332004-05-03 Michael Snyder <msnyder@redhat.com>
5134
5135 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5136 (heuristic_proc_start): Whitespace cleanup.
5137
29972665
MK
51382004-05-04 Mark Kettenis <kettenis@gnu.org>
5139
6b57680d
MK
5140 * sun3-nat.c: Remove file.
5141 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5142 dependencies.
5143 (ALLDEPFILES): Remove sun3-nat.c.
5144 (sun3-nat.o): Remove dependencies.
5145
29972665
MK
5146 * i386-interix-nat.c, i386-interix-tdep.c,
5147 config/i386/nm-interix.h, config/i386/interix.mh,
5148 config/i386/interix.mt: Remove files.
5149 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5150 dependencies.
5151
f595cb19
MK
51522004-05-03 Mark Kettenis <kettenis@gnu.org>
5153
5154 * m68k-tdep.h (struct gdbarch_tdep): Add member
5155 struct_value_regnum.
5156 (m68k_svr4_init_abi): New prototype.
5157 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5158 different calling conventions.
5159 (m68k_extract_return_value): Remove code dealing with single-field
5160 structs.
5161 (m68k_store_return_value): Remove code dealing with single-field
5162 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5163 (m68k_extract_struct_value_address): Remove function.
5164 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5165 (m68k_reg_struct_return_p, m68k_return_value)
5166 (m68k_svr4_return_value): New functions.
5167 (m68k_use_struct_convention): Remove function.
5168 (m68k_push_dummy_call): Use new struct_value_regnum member of
5169 `struct gdbarch_tdep' instead of hardcoded register number to
5170 store STRUCT_ADDR.
5171 (m68k_svr4_init_abi): New function.
5172 (m68k_gdbarch_init): Don't set extract_return_value,
5173 store_return_values, deprecated_extract_struct_value_address and
5174 use_struct_convention. Set return_value instead. Initialize new
5175 struct_value_regnum member of `struct gdbarch_tdep'.
5176 * m68klinux-tdep.c: Update copyright year.
5177 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5178 (m68k_linux_extract_struct_value_address): Remove function.
5179 (m68k_linux_init_abi): Don't set extract_return_value,
5180 store_return_values, deprecated_extract_struct_value_address and
5181 use_struct_convention. Call m68k_svr4_init_abi but override the
5182 new struct_value_regnum member of `struct gdbarch_tdep'.
5183 * Makefile.in (m68k-tdep.o): Update dependencies.
5184
aaa75496
JB
51852004-05-03 J. Brobecker <brobecker@gnat.com>
5186
5187 * dwarf2read.c (line_header): Add new included_p field in
5188 field file_names.
5189 (partial_die_info): New field has_stmt_list. New field line_offset.
5190 (dwarf2_create_include_psymtab): New function.
5191 (dwarf2_build_include_psymtabs): New function.
5192 (add_file_name): Add forward declaration. Initialize new field.
5193 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5194 to be able to determine the list of files included by the
5195 given unit, and build their associated psymtabs.
5196 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5197 files as well.
5198 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5199 (read_file_scope): Update call to dwarf_decode_lines.
5200 (read_partial_die): Handle DW_AT_stmt_list attributes.
5201
c848556f
MC
52022004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5203
5204 Unfix PR gdb/1626.
5205 * configure.in: Revert special case for osf5.*.
5206 * configure: Regenerate.
5207
eb4556d7
JB
52082004-05-02 Jim Blandy <jimb@redhat.com>
5209
5210 Move the symbol-file-from-memory functions into their own file.
5211 * symfile-mem.c, symfile-mem.h: New files.
5212 * symfile.c (symbol_file_add_from_bfd): New function.
5213 (symbol_file_add): Call symbol_file_add_from_bfd.
5214 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5215 Moved to symfile-mem.c.
5216 (_initialize_symfile): Move definition of
5217 add-symbol-file-from-memory command to symfile-mem.c.
5218 * symfile.h (symbol_file_add_from_bfd): New declaration.
5219 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5220 * config/powerpc/linux.mt (TDEPFILES): Same.
5221 * Makefile.in (SFILES): Add symfile-mem.c.
5222 (symfile_mem_h): New variable.
5223 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5224 (symfile-mem.o): New rule.
5225
80bb239e
AC
52262004-05-01 Andrew Cagney <cagney@redhat.com>
5227
7789d0fa
AC
5228 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5229 frame_find_by_id instead of frame_relative_level.
5230 (do_enable_breakpoint): Ditto.
5231 * thread.c: Update copyright.
5232 (info_threads_command): Ditto, simplify.
5233
80bb239e
AC
5234 * frame.c (deprecated_generic_get_saved_register): Delete
5235 function, moved to "xstormy16-tdep.c".
5236 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5237 deprecated_generic_get_saved_register from "frame.c".
5238 (xstormy16_frame_saved_register): Call
5239 xstormy16_get_saved_register.
5240 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5241 static.
5242 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5243 * frame.h (deprecated_generic_get_saved_register): Delete.
5244
b2a871dd
MC
52452004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5246
5247 * dwarfread.c: Update documentation on the state of dwarf-1.
5248
0e100dab
AC
52492004-05-01 Andrew Cagney <cagney@redhat.com>
5250
acd8056e
AC
5251 * stack.c (select_frame_command): Delete call to
5252 frame_relative_level.
5253 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5254 Delete #if0 code.
5255 (frame_info): Do not print FRAMELESS.
5256 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5257 (catch_info): Delete #if0 code.
5258
0e100dab
AC
5259 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5260 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5261 of frame_relative_level.
5262 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5263 to SENTINEL_FRAME.
5264 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5265 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5266 frame_relative_level.
5267
55699d59
AC
5268 * frame.h (deprecated_set_frame_type): Delete declaration.
5269 * frame.c (deprecated_set_frame_type): Delete function, update
5270 comments.
5271
fcf70625
AC
5272 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5273 * gdbarch.h, gdbarch.c: Re-generate.
5274 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5275 (shnbsd_pc_in_sigtramp): Delete.
5276 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5277 pc_in_sigtramp.
5278 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5279 pc_in_sigtramp.
5280 * frame.h: Update comments.
5281 * ppc-linux-tdep.c: Update comments.
5282 * breakpoint.c (bpstat_what): Update comments.
5283
ac5eccb7
AC
5284 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5285 m68klinux-tdep.o's dependencies, were previously added to
5286 m68klinux-nat.o.
5287
f2524b93
AC
5288 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5289 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5290 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5291 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5292 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5293
17e20bce
AC
5294 * Makefile.in (m68klinux-nat.o): Update dependencies.
5295 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5296 (m68k_linux_sigtramp_frame_cache)
5297 (m68k_linux_sigtramp_frame_this_id)
5298 (m68k_linux_sigtramp_frame_prev_register)
5299 (m68k_linux_sigtramp_frame_unwind)
5300 (m68k_linux_sigtramp_frame_sniffer)
5301 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5302 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5303 names, use trad-frame.h.
5304 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5305 (struct m68k_sigtramp_info): Delete.
5306 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5307 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5308 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5309 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5310 "m68klinux-tdep.c".
5311
c8864fa2
AC
5312 * infrun.c (check_sigtramp2): Delete check for
5313 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5314
511dd2cd
MK
53152004-05-01 Mark Kettenis <kettenis@gnu.org>
5316
5317 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5318
8c6b0e06
AC
53192004-05-01 Andrew Cagney <cagney@redhat.com>
5320
9df0bb3f
AC
5321 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5322 (frv_linux_sigtramp_frame_cache)
5323 (frv_linux_sigtramp_frame_this_id)
5324 (frv_linux_sigtramp_frame_prev_register)
5325 (frv_linux_sigtramp_frame_unwind)
5326 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5327 include "linux" in function and variable names, directly call
5328 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5329 the latest trad-frame code.
5330 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5331 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5332 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5333 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5334 * frv-tdep.c (frv_sigtramp_frame_cache)
5335 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5336 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5337 frv-linux-tdep.c.
5338 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5339 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5340 (frv_set_sigcontext_reg_addr): Delete function.
5341
8c6b0e06
AC
5342 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5343 (DEPRECATED_SIGTRAMP_END): Delete.
5344 * gdbarch.h, gdbarch.c: Re-generate.
5345 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5346 * config/vax/tm-vaxbsd.h: Update copyright.
5347 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5348 (DEPRECATED_IN_SIGTRAMP): Define.
5349 * config/m68k/tm-nbsd.h: Update copyright.
5350 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5351 (DEPRECATED_IN_SIGTRAMP): Define.
5352
50ea7769
MK
53532004-05-01 Mark Kettenis <kettenis@gnu.org>
5354
03ac2a74
MK
5355 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5356 encondings. Fixes PR gdb/1628.
5357
50ea7769
MK
5358 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5359 DW_CFA_restore state without a matching DW_CFA_remember_state
5360 instead of aborting. Fixes PR backtrace/1589.
5361
9a5d7be1
JB
53622004-04-30 Joel Brobecker <brobecker@gnat.com>
5363
5364 * MAINTAINERS: Add self as AIX maintainer.
5365 Update my e-mail address in write-after-approval section.
5366
2593d1cd
AC
53672004-04-30 Andrew Cagney <cagney@redhat.com>
5368
ce12bbf9
AC
5369 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5370 (legacy_get_prev_frame): Ditto.
5371
36710c63
AC
5372 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5373 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5374 * mipsread.c (sigtramp_address): Delete extern variable.
5375 (mipscoff_new_init): Delete reference.
5376 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5377 (fixup_sigtramp): Delete function.
5378 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5379 (fixup_sigtramp): Delete declarations.
5380
2593d1cd
AC
5381 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5382 deprecated_pc_in_sigtramp.
5383 (ppcnbsd_pc_in_sigtramp): Delete function.
5384
2a25f91c
MK
53852004-05-01 Mark Kettenis <kettenis@gnu.org>
5386
5387 * config/m68k/nm-nbsd.h: Tweak comments.
5388 * config/m68k/nm-nbsdaout.h: Likewise.
5389
0b281939
AC
53902004-04-30 Andrew Cagney <cagney@redhat.com>
5391
5392 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5393 legacy_pc_in_sigtramp.
5394 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5395
8f2d3ea0
MK
53962004-05-01 Mark Kettenis <kettenis@gnu.org>
5397
5398 Add OpenBSD/m68k support.
5399 * NEWS (New native configurations): Mention OpenBSD/m68k.
5400 * m68kbsd-tdep.c: New file.
5401 * m68kbsd-nat.c: New file.
5402 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5403 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5404 * configure.host: Add m68k-*-openbsd.
5405 * configure.tgt: Add m68k-*-openbsd.
5406 * config/m68k/tm-obsd.h: New file.
5407 * config/m68k/obsd.mt: New file.
5408 * config/m68k/obsd.mh: New file.
5409 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5410 m68kbsd-tdep.c.
5411
c40f49a4
AC
54122004-04-30 Andrew Cagney <cagney@redhat.com>
5413
5414 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5415 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5416
e81554cd
MK
54172004-04-30 Mark Kettenis <kettenis@gnu.org>
5418
5419 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5420 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5421
d4dc1a91
BF
54222004-04-30 Brian Ford <ford@vss.fsi.com>
5423
5424 Revert 2004-04-16 change.
5425 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5426 (i386_coff_init_abi): Remove.
5427 * i386-tdep.h (i386_coff_init_abi): Remove.
5428 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5429
2f72f850
AC
54302004-04-30 Andrew Cagney <cagney@redhat.com>
5431
e492f9d6
AC
5432 * blockframe.c (find_pc_partial_function): Delete use of
5433 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5434 DEPRECATED_SIGTRAMP_END.
5435
7b7adad0
AC
5436 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5437 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5438 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5439 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5440 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5441
2f72f850
AC
5442 * defs.h (deprecated_inside_entry_file): Delete declaration.
5443 * blockframe.c (deprecated_inside_entry_file): Delete function.
5444 (legacy_frame_chain_valid): Delete call.
5445 * sh64-tdep.c (sh64_frame_chain): Delete call.
5446 * objfiles.h: Update comments.
5447 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5448 call.
5449 * frame.c (get_prev_frame): Delete call, update comments.
5450
283f90a7
BF
54512004-04-30 Brian Ford <ford@vss.fsi.com>
5452
5453 * MAINTAINERS (Write After Approval): Add myself.
5454
8ee56bcf
AC
54552004-04-30 Andrew Cagney <cagney@redhat.com>
5456
5457 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5458 * gdbarch.h, gdbarch.c: Re-generate.
5459 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5460 code.
5461
ee27e1b6
AC
54622004-04-30 Andrew Cagney <cagney@redhat.com>
5463
5464 * gdb-events.sh (selected_thread_changed)
5465 (selected_frame_level_changed, target_changed): Delete.
5466 * gdb-events.h, gdb-events.c: Re-generate.
5467 * valops.c (value_assign): Update.
5468 * stack.c (select_frame_command, up_silently_base)
5469 (down_silently_base): Update.
5470
d5ac5a39
AC
54712004-04-29 Andrew Cagney <cagney@redhat.com>
5472
5473 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5474 registers correctly.
5475 (print_gp_register_row, mips32_heuristic_proc_desc)
5476 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5477 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5478 references to mips_isa_regsize.
5479
ceae6e75
AC
54802004-04-29 Andrew Cagney <cagney@redhat.com>
5481
5482 * mips-tdep.c (struct gdbarch_tdep): Delete
5483 mips_fp_register_double.
5484 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5485 mips_abi_regsize.
5486 (mips_gdbarch_init): Do not set mips_fp_register_double.
5487 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5488
a587af0b
AC
54892004-04-29 Joel Brobecker <brobecker@gnat.com>
5490
5491 Committed by Andrew Cagney.
5492 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5493 function calls.
5494
13326b4e
AC
54952004-04-29 Andrew Cagney <cagney@redhat.com>
5496
5497 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5498 gdbarch, use mips_abi, update callers.
5499 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5500 mips_abi_regsize, update callers.
5501 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5502 mips_default_abi_regsize.
5503 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5504 mips_default_abi_regsize.
5505
711cc5cd
AC
55062004-04-29 Andrew Cagney <cagney@redhat.com>
5507
1b13c4f6
AC
5508 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5509 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5510 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5511 mips_default_abi_regsize.
5512 (mips_isa_regsize): Rename mips_regisze.
5513 * mipsnbsd-tdep.c: Update.
5514 * mips-linux-tdep.c: Update.
5515 * irix5-nat.c: Update.
5516 * mips-tdep.h (mips_isa_regsize): Update.
5517
711cc5cd
AC
5518 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5519 Delete all disabled code.
5520 * gdb-events.h, gdb-events.c: Re-generate.
5521
e63bbc88
MK
55222004-04-19 Jerome Guitton <guitton@gnat.com>
5523 Mark Kettenis <kettenis@gnu.org>
5524
5525 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5526 the function begins with a branch instruction.
5527
fd35795f
MK
55282004-04-29 Mark Kettenis <kettenis@gnu.org>
5529
5530 * i386-tdep.c: Fix spelling mistakes.
5531
c960c18f
AC
55322004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5533 Andrew Cagney <cagney@redhat.com>
5534
5535 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5536 <sys/proc.h>.
5537 * acconfig.h: Provide default _KMEMUSER value.
5538 * config.in, configure: Re-generate.
5539 * NEWS: Mention fix.
5540
50306a9d
RC
55412004-04-24 Randolph Chung <tausq@debian.org>
5542
5543 * configure.host (hppa*-*-linux*): New target.
5544 * configure.tgt (hppa*-*-linux*): Likewise.
5545 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5546 gdbarch_init_osabi() call earlier so that osabi-specific frame
5547 unwinders can be registered first.
5548 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5549 hppa-linux-nat.c.
5550 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5551 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5552 * config/pa/linux.mh: New file.
5553 * config/pa/linux.mt: New file.
5554 * config/pa/nm-linux.h: New file.
5555 * config/pa/xm-linux.h: New file.
5556 * hppa-linux-nat.c: New file.
5557 * hppa-linux-tdep.c: New file.
5558
2a6228ef
RC
55592004-04-28 Randolph Chung <tausq@debian.org>
5560
5561 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5562 return values.
5563 (hppa32_push_dummy_call): Fix small struct and floating point argument
5564 passing, and make sure the stack frame is properly aligned.
5565
82c10df6
AC
55662004-04-28 Andrew Cagney <cagney@redhat.com>
5567
d762c46a
AC
5568 * stack.c (print_stack_frame): Fix description.
5569
82c10df6
AC
5570 * NEWS: Mention gdb/gdbserver/configure execute permission
5571 changed. PR server/519.
5572
0faf0076
AC
55732004-04-28 Andrew Cagney <cagney@redhat.com>
5574
5575 * stack.c (print_stack_frame_stub): Delete declaration.
5576 (struct print_stack_frame_args, print_stack_frame)
5577 (print_frame_info, print_frame): Replace "source" with print what.
5578 Replace "print" with "print_level". Replace "args" with
5579 "print_args".
5580 * frame.h (show_and_print_stack_frame, print_stack_frame)
5581 (print_frame_info): Update declarations.
5582 * stack.c (select_and_print_frame, frame_command)
5583 (current_frame_command, up_command, down_command): Update calls -
5584 use get_selected_frame, pass "enum print_what" for source, do not
5585 call frame_relative_level.
5586 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5587 * remote-rdp.c (remote_rdp_open): Ditto.
5588 * remote-mips.c (common_open): Ditto.
5589 * remote-e7000.c (e7000_start_remote): Ditto.
5590 * ocd.c (ocd_start_remote): Ditto.
5591 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5592 * infrun.c (normal_stop): Ditto.
5593 * inflow.c (kill_command): Ditto.
5594 * infcmd.c (finish_command): Ditto.
5595 * corelow.c (core_open): Ditto.
5596 * tracepoint.c (finish_tfind_command): Ditto.
5597 * thread.c (info_threads_command, info_threads_command)
5598 (restore_current_thread, do_captured_thread_select): Ditto.
5599 * ada-tasks.c (task_command): Ditto.
5600
f4c5303c
OF
56012004-04-26 Orjan Friberg <orjanf@axis.com>
5602
5603 * frame.c: Include "observer.h".
5604 (frame_observer_target_changed): New function.
5605 (_initialize_frame): Attach target_changed observer.
5606 * regcache.c: Include "observer.h".
5607 (regcache_observer_target_changed): New function.
5608 (_initialize_regcache): Attach target_changed observer.
5609 * valops.c: Include "observer.h".
5610 (value_assign): Notify target_changed event when modifying register.
5611 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5612
7270d8f2
OF
56132004-04-26 Orjan Friberg <orjanf@axis.com>
5614
5615 From Paul Koning <pkoning@equallogic.com>:
5616 * breakpoint.c (free_valchain): New function.
5617 (insert_bp_location, delete_breakpoint): Use free_valchain.
5618 (remove_breakpoint): Do not remove the valchain.
5619 (bpstat_stop_status): If not stopped by watchpoint, skip
5620 watchpoints when generating stop status list.
5621 * infrun.c (handle_inferior_event): Make
5622 stepped_after_stopped_by_watchpoint a global variable.
5623 * remote.c (remote_stopped_data_address): Return watch data
5624 address rather than zero if stepped_after_stopped_by_watchpoint is
5625 set.
5626
02d62932
MC
56272004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5628
5629 Fix PR gdb/1626.
5630 * configure.in: Check for curses after termcap.
5631 On osf5.*, do not check for ncurses.
5632 * configure: Regenerate.
5633
3e9a183c
MK
56342004-04-25 Mark Kettenis <kettenis@gnu.org>
5635
c79ac407
MK
5636 * ppcobsd-nat.c: Include "ppc-tdep.h".
5637 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5638
3e9a183c
MK
5639 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5640 Fixes PR tdep/1623 and PR tdep/1624.
5641
38cc9c28
MC
56422004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5643
5644 * xmodem.h, xmodem.c: Remove files.
5645 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5646
7f07c5b6
RC
56472004-04-23 Randolph Chung <tausq@debian.org>
5648
5649 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5650 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5651 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5652 for handling stackless frames.
5653 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5654
9f7194c3
RC
56552004-04-23 Randolph Chung <tausq@debian.org>
5656
5657 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5658 starts at a pc before the frame is created.
5659
dcff6009
JB
56602004-04-23 Joel Brobecker <brobecker@gnat.com>
5661
5662 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5663
40711ff1 56642004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5665
5666 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5667 use convert_typed_floating to get the appropriate format.
5668
abc485a1
RC
56692004-04-22 Randolph Chung <tausq@debian.org>
5670
5671 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5672 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5673 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5674 (hppa_sign_extend): Add prototype.
5675 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5676 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5677 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5678 hppa targets will also use these functions.
5679 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5680 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5681 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5682 (hppa_gdbarch_init): Remove gdbarch setting of
5683 skip_trampoline_code, in_solib_call_trampoline and
5684 in_solib_return_trampoline.
5685 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5686 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5687 hppa_in_solib_call_trampoline.
5688 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5689 Moved from hppa-tdep.c.
5690 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5691 in_solib_call_trampoline and in_solib_return_trampoline.
5692
369aa520
RC
56932004-04-22 Randolph Chung <tausq@debian.org>
5694
5695 * hppa-tdep.c (hppa_debug): New variable.
5696 (find_unwind_entry, hppa_frame_cache): Add debug output.
5697 (_initialize_hppa_tdep): Add command to set debug flag.
5698
476be15e
AC
56992004-04-22 Andrew Cagney <cagney@redhat.com>
5700
5701 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5702 "trad-frame.h".
5703 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5704 signal trampoline unwinder.
5705 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5706
d195bc9f
MK
57072004-04-22 Mark Kettenis <kettenis@gnu.org>
5708
5709 Add OpenBSD/powerpc support.
5710 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5711 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5712 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5713 (ppc_collect_fpregset): New prototypes.
5714 * ppcobsd-nat.c: New file.
5715 * ppcobsd-tdep.c: New file.
5716 * ppcobsd-tdep.h: New file.
5717 * rs6000-tdep.c: Include "regset.h".
5718 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5719 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5720 New functions.
5721 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5722 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5723 (rs6000-tdep.o): Update dependencies.
5724 * configure.host: Add powerpc-*-openbsd.
5725 * configure.tgt: Add powerpc-*-openbsd.
5726 * config/powerpc/obsd.mh: New file.
5727 * config/powerpc/nm-obsd.h: New file.
5728 * config/powerpc/obsd.mt: New file.
5729
6f14cc33
AC
57302004-04-22 Andrew Cagney <cagney@redhat.com>
5731
fcf29e5f
AC
5732 * frame.h (show_frame_info): Delete declaration.
5733
6f14cc33
AC
5734 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5735 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5736 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5737 * frv-tdep.c (frv_frame_this_id): Ditto.
5738 * avr-tdep.c (avr_frame_this_id): Ditto.
5739
e5786a5c
EZ
57402004-04-22 Elena Zannoni <ezannoni@redhat.com>
5741
5742 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5743
26e75e5c
JB
57442004-04-22 Jim Blandy <jimb@redhat.com>
5745
5746 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5747 register number zero.
5748
d8d65dd3
MS
57492004-04-21 Michael Snyder <msnyder@redhat.com>
5750
5751 * mips-tdep.c (heuristic_proc_start):
5752 Warning() already prefixes "Warning: ".
5753
9a4105ab
AC
57542004-04-21 Andrew Cagney <cagney@redhat.com>
5755
5756 * annotate.h (deprecated_annotate_starting_hook)
5757 (deprecated_annotate_stopped_hook)
5758 (deprecated_annotate_exited_hook)
5759 (deprecated_annotate_signal_hook)
5760 (deprecated_annotate_signalled_hook): Deprecate.
5761 * tracepoint.h (deprecated_create_tracepoint_hook)
5762 (deprecated_delete_tracepoint_hook)
5763 (deprecated_modify_tracepoint_hook)
5764 (deprecated_trace_find_hook)
5765 (deprecated_trace_start_stop_hook): Deprecate.
5766 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5767 * remote.h (deprecated_target_resume_hook)
5768 (deprecated_target_wait_loop_hook): Deprecate.
5769 * gdbcore.h (deprecated_exec_file_display_hook)
5770 (deprecated_file_changed_hook): Deprecate.
5771 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5772 * defs.h (deprecated_modify_breakpoint_hook)
5773 (deprecated_command_loop_hook, deprecated_show_load_progress)
5774 (deprecated_print_frame_info_listing_hook)
5775 (deprecated_query_hook, deprecated_warning_hook)
5776 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5777 (deprecated_delete_breakpoint_hook)
5778 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5779 (deprecated_readline_begin_hook, deprecated_readline_hook)
5780 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5781 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5782 (deprecated_context_hook, deprecated_target_wait_hook)
5783 (deprecated_attach_hook, deprecated_detach_hook)
5784 (deprecated_call_command_hook, deprecated_set_hook)
5785 (deprecated_error_hook, deprecated_error_begin_hook)
5786 (deprecated_ui_load_progress_hook): Deprecate.
5787 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5788 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5789 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5790 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5791 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5792 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5793 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5794 * annotate.c, aix-thread.c: Update.
5795
62cf13cc
AC
57962004-04-21 Andrew Cagney <cagney@redhat.com>
5797
b2e31a62
AC
5798 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5799 * vaxnbsd-tdep.c: Include "gdb_string.h".
5800
62cf13cc
AC
5801 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5802 (add_symbol_file_from_memory_command): #if 0 function body, call
5803 error instead.
5804
00e32a35
AC
58052004-04-21 Andrew Cagney <cagney@redhat.com>
5806
5807 * gdbcore.h: Update copyright.
5808 (deprecated_add_core_fns): Rename add_core_fns.
5809 * win32-nat.c (_initialize_core_win32): Update.
5810 * sun3-nat.c (_initialize_core_sun3): Update.
5811 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5812 * rs6000-nat.c (_initialize_core_rs6000): Update.
5813 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5814 * nto-tdep.c (_initialize_nto_tdep): Update.
5815 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5816 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5817 * mips-nat.c (_initialize_core_mips): Update.
5818 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5819 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5820 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5821 * lynx-nat.c (_initialize_core_lynx): Update.
5822 * irix5-nat.c (_initialize_core_irix5): Update.
5823 * i386-interix-nat.c (_initialize_core_interix): Update.
5824 * cris-tdep.c (_initialize_cris_tdep): Update.
5825 * corelow.c (deprecated_add_core_fns): Update.
5826 * core-regset.c (_initialize_core_regset): Update.
5827 * core-aout.c (_initialize_core_aout): Update.
5828 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5829 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5830 * alpha-nat.c (_initialize_core_alpha): Update.
5831
13c7b1ca
JB
58322004-04-21 Jim Blandy <jimb@redhat.com>
5833
5834 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5835
7b5a2f43
DJ
58362004-04-19 Daniel Jacobowitz <drow@mvista.com>
5837
5838 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5839 Delete.
5840 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5841 (read_attribute_value): Update calls to dwarf_alloc_block.
5842 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5843 dwarf2_tmp_obstack.
5844 (psymtab_to_symtab_1): Likewise. Clean up using
5845 free_stack_comp_unit.
5846 (add_to_cu_func_list): Use the comp_unit_obstack.
5847
05cf31d1
JB
58482004-04-19 Joel Brobecker <brobecker@gnat.com>
5849
5850 * dwarf2read.c (dwarf2_flag_true_p): New function.
5851 (die_is_declaration): Use the function above. Add some comments.
5852
adf93a2f
MK
58532004-04-19 Mark Kettenis <kettenis@gnu.org>
5854
5855 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5856 architecture when registering sparcnbsd_core_osabi_sniffer.
5857 Adjust comment.
5858
748894bf
MK
58592004-04-18 Mark Kettenis <kettenis@gnu.org>
5860
f622ad42
MK
5861 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5862 return value.
5863
c4fc7f1b
MK
5864 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5865 * i386-tdep.c: Correct register numbering scheme comments
5866 throughout.
5867 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5868 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5869 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5870 (i386_gdb_arch_init): Likewise.
5871
b4ead1bd
MK
5872 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5873 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5874 ppcnbsd-tdep.o.
5875
748894bf
MK
5876 * m68k-tdep.h: Tweak comments.
5877 * m68k-tdep.c: Tweak comment.
5878
fdd72f95
RC
58792004-04-17 Randolph Chung <tausq@debian.org>
5880
5881 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5882 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5883 (hppa_hpux_som_init_abi): Set is_elf to 0.
5884 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5885 * hppa-tdep.c (low_text_segment_address): Remove global.
5886 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5887 section offset to calculate segment address.
5888 (internalize_unwinds): Define low_text_segment_address as local and
5889 pass to record_text_segment_lowaddr for ELF targets.
5890 (hppa_gdbarch_init): Zero fill tdep structure.
5891 (hppa_dump_tdep): Print tdep structure.
5892 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5893
0f8d9d59
RC
58942004-04-17 Randolph Chung <tausq@debian.org>
5895
5896 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5897 (hppa_gdbarch_init): Set pseudo_register_read.
5898 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5899 * regcache.c (supply_register): Remove check for
5900 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5901
7c46b9fb
RC
59022004-04-17 Randolph Chung <tausq@debian.org>
5903
5904 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5905 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5906 (hpread_adjust_stack_address): Move to hpread.c.
5907 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5908 obj_private_struct): Move from tm-hppa.h.
5909 * hpread.c (hppa-tdep.h): Include.
5910 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5911 (hpread_read_function_type, hpread_read_doc_function_type)
5912 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5913 directly.
5914 * pa64solib.c (hppa-tdep.h): Include.
5915 * somsolib.c (hppa-tdep.h): Include.
5916 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5917 inferior_status): Remove unused forward declarations.
5918 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5919 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5920 obj_private_struct): Move to hppa-tdep.h.
5921 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5922
8d153463
RC
59232004-04-17 Randolph Chung <tausq@debian.org>
5924
5925 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5926 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5927 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5928 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5929 Remove forward declaration and make static.
5930 (hppa_reg_struct_has_addr): Remove.
5931
350c2e5b
JB
59322004-04-16 Joel Brobecker <brobecker@gnat.com>
5933
5934 * observer.sh: Move comments in sed command to first column.
5935
bbde78fa
JM
59362004-04-16 Jason Molenda (jmolenda@apple.com)
5937
5938 * frame.c: Minor typeo corrections in comments.
5939
e0270fd9
JB
59402004-04-16 Joel Brobecker <brobecker@gnat.com>
5941
5942 * observer.c (observer_test_first_notification_function): Update
5943 function profile.
5944 (observer_test_second_notification_function): Likewise.
5945 (observer_test_third_notification_function): Likewise.
5946
3d049254
MK
59472004-04-16 Mark Kettenis <kettenis@gnu.org>
5948
5949 From Brian Ford <ford@vss.fsi.com>:
5950 * i386-tdep.c (i386_coff_init_abi): New function.
5951 * i386-tdep.h (i386_coff_init_abi): New prototype.
5952 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5953 register number translation functions for DWARF and DWARF 2.
5954
7867684d
JB
59552004-04-16 Joel Brobecker <brobecker@gnat.com>
5956
5957 * dwarf2read.c: Back out my previous change, it was incorrect.
5958
72bf9492
DJ
59592004-04-16 Daniel Jacobowitz <drow@mvista.com>
5960
5961 * dwarf2read.c: Include "hashtab.h".
5962 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5963 has_namespace_info.
5964 (struct partial_die_info): Add comments. Use bitfields to reduce
5965 memory footprint. Add scope, scope_set, has_specification,
5966 spec_offset, die_parent, die_child, and die_sibling.
5967 (peek_die_abbrev): Add prototype.
5968 (partial_read_comp_unit_head): New function, broken out from
5969 dwarf2_build_psymtabs_hard.
5970 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5971 Use partial_read_comp_unit_head. Initialize the CU and
5972 comp_unit_obstack. Update calls to read_partial_die and
5973 scan_partial_symbols. Use free_stack_comp_unit and
5974 load_partial_dies.
5975 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5976 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5977 Update calls to helper functions. Remove NAMESPACE argument.
5978 Update comments.
5979 (partial_die_parent_scope, partial_die_full_name): New functions.
5980 (add_partial_symbol): Remove namespace argument. Update call to
5981 pdi_needs_namespace. Use partial_die_full_name. Handle
5982 DW_TAG_namespace. Check has_namespace_info flag.
5983 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5984 tag. Handle namespaces.
5985 (add_partial_namespace, add_partial_enumeration): Simplify.
5986 (guess_structure_name): New function, derived from
5987 add_partial_structure.
5988 (add_partial_structure): Remove.
5989 (determine_class_name): Update comment.
5990 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5991 (is_type_tag_for_partial, load_partial_dies): New functions.
5992 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5993 Record specifications instead of following them immediately.
5994 (find_partial_die_in_comp_unit, find_partial_die)
5995 (fixup_partial_die, free_stack_comp_unit)
5996 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5997 (partial_die_hash, partial_die_eq): New functions.
5998 * Makefile.in (hashtab_h): Define.
5999 (dwarf2read.o): Update dependencies.
6000 (observer_inc, observer_h): Move to the correct section.
6001
fdc860a3
JB
60022004-04-15 Joel Brobecker <brobecker@gnat.com>
6003
6004 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6005 (die_is_declaration): Use the function above. Add comment.
6006
dc718098
JB
60072004-04-15 Joel Brobecker <brobecker@gnat.com>
6008
6009 * dwarf2read.c (read_structure_scope): Identify stub types
6010 using die_is_declaration() only.
6011
8718a420
RM
60122004-04-15 Roland McGrath <roland@redhat.com>
6013
6014 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6015 argument instead of NAME.
6016 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6017 in call to symbol_file_add_with_addrs_or_offsets.
6018 (build_addr_info): New function, helper for ...
6019 (symbol_file_add_from_memory): New function.
6020 (add_symbol_file_from_memory_command): New function using that.
6021 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6022 (pre_add_symbol_hook): Add const to argument type.
6023 * symfile.h (symbol_file_add_from_memory): Declare it.
6024
8b910bab
MK
60252004-04-15 Mark Kettenis <kettenis@gnu.org>
6026
9f076e7a
MK
6027 * NEWS (New native configurations): Mention OpenBSD/vax.
6028 * configure.host: Add vax-*-openbsd*.
6029 * config/vax/obsd.mh: New file.
6030 * config/vax/nm-obsd.h: New file.
6031
8b910bab
MK
6032 * vax-tdep.c: Include "regset.h".
6033 (vax_supply_gregset): New function.
6034 (vax_gregset): New variable.
6035 (vax_regset_from_core_section): New function.
6036 (vax_gdbarch_init): Set regset_from_core_section.
6037 * Makefile.in (vax-tdep.o): Update dependencies.
6038
7a464420
AC
60392004-04-15 Andrew Cagney <cagney@redhat.com>
6040
6041 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6042 (observer_normal_stop_notification_stub)
6043 (observer_attach_normal_stop, observer_detach_normal_stop):
6044 Delete, replaced by #include "observer.inc".
6045 * infrun.c (normal_stop): Pass "stop_bpstat" to
6046 observer_notify_normal_stop.
6047 * Makefile.in (observer_inc): Define.
6048 (observer.o): Update dependencies.
6049 (observer.h, observer.inc): New rules.
6050 * observer.h: Delete file.
6051 * observer.sh: New file.
6052
e36ad527
MK
60532004-04-15 Mark Kettenis <kettenis@gnu.org>
6054
6055 * vax-tdep.c (vax_frame_cache): Fix typo.
6056
67b441e1
MK
60572004-04-14 Mark Kettenis <kettenis@gnu.org>
6058
6f606e1c
MK
6059 * NEWS (New native configurations): Mention NetBSD/vax.
6060 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6061 * config/vax/nbsdelf.mh: New file.
6062 * config/vax/nbsdaout.mh: New file.
6063 * config/vax/nm-nbsd.h: New file.
6064 * config/vax/nm-nbsdaout.h: New file.
6065
9c5519a5
MK
6066 * vaxnbsd-tdep.c: New file.
6067 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6068 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6069 * config/vax/nbsd.mt: New file.
6070 * config/vax/tm-nbsd.h: New file.
6071
4844a614
MK
6072 * Makefile.in (vaxbsd-nat.o): New dependency.
6073
67b441e1
MK
6074 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6075 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6076 struct_addr arguments. Don't push return value address.
6077 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6078 arguments to vax_store_arguments. Store return value address in
6079 R1.
6080 (vax_store_struct_return, vax_extract_return_value)
6081 (vax_store_return_value): Remove functions.
6082 (vax_return_value): New function.
6083 (vax_gdbarch_init): Set return value. Don't set
6084 deprecated_store_struct_return, deprecated_extract_struct_return
6085 and deprecated_store_return_value.
6086
6672f2ae
AS
60872004-04-14 Andreas Schwab <schwab@suse.de>
6088
6089 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6090 value buffer.
6091 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6092
7346c184
MK
60932004-04-14 Mark Kettenis <kettenis@gnu.org>
6094
6095 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6096 (vax_unwind_dummy_id): New functions.
6097 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6098 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6099 variables.
6100 (vax_fix_call_dummy): Remove function.
6101 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6102 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6103 call_dummy_location, deprecated_call_dummy_words,
6104 deprecated_sizeof_call_dummy_words,
6105 deprecated_call_dummy_breakpoint_offset,
6106 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6107 and deprecated_dummy_write_sp.
6108
58e23df4
DC
61092004-04-13 David Carlton <carlton@kealia.com>
6110
6111 * MAINTAINERS: Move myself to "paper trail" section.
6112
5e6b39ff
MK
61132004-04-12 Mark Kettenis <kettenis@gnu.org>
6114
7def7fef
MK
6115 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6116 "trad-frame.h".
6117 (vax_frame_init_saved_regs): Remove function.
6118 (vax_sigtramp_saved_pc): Remove function.
6119 (vax_frame_saved_pc): Remove function.
6120 (vax_frame_args_address): Remove function.
6121 (vax_frame_num_args): Rewrite.
6122 (vax_frame_chain): Remove function.
6123 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6124 VAX_FP_REGNUM.
6125 (vax_pop_frame): Likewise.
6126 (vax_saved_pc_after_call): Remove function.
6127 (struct vax_frame_cache): New structure.
6128 (vax_frame_cache): New function.
6129 (vax_frame_this_id): New function.
6130 (vax_frame_prev_register): New function.
6131 (vax_frame_unwind): New variable.
6132 (vax_frame_sniffer): New function.
6133 (vax_frame_base_address): New function.
6134 (vax_frame_args_address): New function.
6135 (vax_frame_base): New variable.
6136 (vax_unwind_pc): New function.
6137 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6138 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6139 deprecated_frame_chain, deprecated_frame_saved_pc,
6140 deprecated_frame_args_address and
6141 deprecated_frame_init_saved_regs.
6142 * Makefile.in (vax-tdep.o): Update dependencies.
6143
53284fc1
MK
6144 * vaxbsd-nat.c: New file.
6145
5e6b39ff
MK
6146 * vax-tdep.h: Update copyright year. Adjust comments.
6147 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6148 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6149 (vax_regnum): New enum. Replacing...
6150 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6151 (VAX_PS_REGNUM): ... these removed macros.
6152 * vax-tdep.c (vax_register_name): Remove prototype.
6153 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6154 (vax_register_byte, vax_register_raw_size,
6155 vax_register_virtual_size, vax_register_virtual_type): Remove
6156 functions.
6157 (vax_register_type): New function.
6158 (vax_breakpoint_from_pc): Reorganize.
6159 (vax_gdbarch_init): Set register_type. Don't set
6160 deprecated_register_size, deprecated_register_bytes,
6161 deprecated_register_byte, deprecated_register_raw_size,
6162 deprecated_max_register_raw_size,
6163 deprecated_register_virtual_size,
6164 deprecated_max_register_virtual_size and
6165 deprecated_register_virtual_type. Add comment on stack direction.
6166
e9c71e9f
MK
61672004-04-11 Mark Kettenis <kettenis@gnu.org>
6168
6169 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6170 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6171 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6172
d46f1176 61732004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6174
d46f1176
RC
6175 * MAINTAINERS (write after approval): Add myself.
6176
a2a84a72
RC
61772004-04-07 Randolph Chung <tausq@debian.org>
6178
6179 * hppa-tdep.c (hppa_inner_than): Remove.
6180 (is_pa_2): Remove unused static variable.
8718a420 6181 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6182
e85c3284
PH
61832004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6184
6185 * language.h (language_defn): Add new la_post_parser field.
6186 * parser-defs.h (null_post_parser): New declaration (default for
6187 la_post_parser).
8718a420 6188
e85c3284
PH
6189 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6190 insert call to that function.
6191 (parse_exp_in_context): New function, including code formerly in
8718a420 6192 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6193 prefixification.
6194 (parse_expression_in_context): New exported function.
6195 (null_post_parser): New definition.
6196 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6197
e85c3284
PH
6198 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6199 * c-lang.c (c_language_defn): Ditto.
6200 (cplus_language_defn): Ditto.
6201 (asm_language_defn): Ditto.
6202 (minimal_language_defn): Ditto.
6203 * f-lang.c (f_language_defn): Ditto.
6204 * jv-lang.c (java_language_defn): Ditto.
6205 * language.c (unknown_language_defn): Ditto.
6206 (auto_language_defn): Ditto.
6207 (local_language_defn): Ditto.
6208 * m2-lang.c (m2_language_defn): Ditto.
6209 * scm-lang.c (scm_language_defn): Ditto.
6210 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6211
d9f8c85b
MK
62122004-04-10 Mark Kettenis <kettenis@gnu.org>
6213
fa34704a
MK
6214 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6215 (amd64nbsd_mcontext_addr): New function.
6216 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6217 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6218 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6219
403e1656
MK
6220 * corelow.c (core_xfer_partial): Fix coding standards violation.
6221 Add support for TARGET_OBJECT_WCOOKIE.
6222
a57e5a95
MK
6223 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6224 deprecated_pc_in_sigtramp.
6225 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6226 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6227 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6228 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6229 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6230 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6231 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6232
377d9ebd
MK
6233 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6234 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6235 Fix typo.
6236
f0ef85a5
MK
6237 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6238 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6239 (amd64_collect_fxsave): Likewise.
6240
d9f8c85b
MK
6241 * i386-sol2-tdep.c: Include "gdb_string.h".
6242 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6243 name.
6244 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6245
75f501b5
MK
62462004-04-10 Mark Kettenis <kettenis@gnu.org>
6247
6248 * i386-sol2-tdep.c: Include "solib-svr4.h".
6249 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6250 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6251 * config/i386/tm-i386sol2.h: Include :solib.h".
6252 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6253 solib-svr4.o and solib-legacy.o.
6254 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6255 solib-svr4.o.
6256
b31bc724
MK
62572004-04-09 Mark Kettenis <kettenis@gnu.org>
6258
18bbbd9e
MK
6259 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6260 whether a register is supplied by PTRACE_GETFPREGS.
6261 (store_inferior_registers): Likewise.
6262 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6263 whether a register is supplied by PT_GETFPREGS.
6264 (store_inferior_registers): Likewise.
6265
3c30bf1b
MK
6266 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6267 * config/i386/linux64.mt (TDEPFILES): Likewise.
6268
a4194092
MK
6269 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6270
911bc6ee
MK
6271 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6272 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6273 the program counter is in the range specified by `struct
6274 gdbarch_tdep'.
6275 * amd64-linux-tdep.c: Include "symtab.h".
6276 (amd64_linux_pc_in_sigtramp): Remove function.
6277 (amd64_linux_sigtramp_p): New function.
6278 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6279 deprecated_pc_in_sigtramp.
6280 * amd64nbsd-tdep.c: Include "symtab.h".
6281 (amd64nbsd_sigtramp_p): New function.
6282 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6283 deprecated_pc_in_sigtramp.
6284 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6285 few comments.
6286 (amd64obsd_pc_in_sigtramp): Remove function.
6287 (amd64obsd_sigtramp_p): New function.
6288 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6289 deprecated_pc_in_sigtramp.
6290 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6291 (i386bsd_pc_ins_sigtramp): Remove prototype.
6292 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6293 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6294 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6295 the program counter is in the range specified by `struct
6296 gdbarch_tdep'.
6297 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6298 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6299 (i386_go32_pc_in_sigtramp): Remove function.
6300 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6301 Initialize TDEP->sigtramp_p.
6302 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6303 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6304 deprecated_pc_in_sigtramp.
6305 * i386-linux-tdep.c: Adjust comments.
6306 (i386_linux_pc_in_sigtramp): Remove function.
6307 (i386_linux_sigtramp_p): New function.
6308 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6309 deprecated_pc_in_sigtramp.
6310 * i386-nto-tdep.c: Update copyright year.
6311 (i386nto_pc_in_sigtramp): Remove function.
6312 (i386nto_sigtramp_p): New function.
6313 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6314 SP_REGNUM.
6315 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6316 deprecated_pc_in_sigtramp.
6317 * i386-sol2-tdep.c: Update copyright year.
6318 (i386_sol2_pc_in_sigtramp): Remove function.
6319 (i386_sol2_sigtramp_p): New function.
6320 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6321 deprecated_pc_in_sigtramp.
6322 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6323 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6324 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6325 deprecated_sigtramp_start and deprecated_sigtramp_end.
6326 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6327 (i386nbsd_pc_in_sigtramp): Remove function.
6328 (i386nbsd_sigtramp_p): New function.
6329 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6330 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6331 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6332 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6333 (i386obsd_pc_in_sigtramp): Remove function.
6334 (i386obsd_sigtramp_p): New function.
6335 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6336 functions.
6337 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6338 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6339 TDEP->sigtramp_p.
6340 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6341 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6342 dependencies.
6343
e083e6ec
MK
6344 * config/i386/i386aout.mt: Remove file.
6345
bd153b94
MK
6346 * configure.tgt: Remove i[34567]86-*-go32*,
6347 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6348 and i[34567]86-*-isc*. Set gdb_target to i386 for
6349 i[34567]86-*-netware* and i[34567]86-*-*.
6350 * config/i386/i386.mt: New file.
6351 * config/i386/embed.mt: Remove file.
6352 * config/i386/go32.mt: Remove file.
6353 * config/i386/i386nw.mt: Remove file.
6354 * config/i386/i386v.mt: Remove file.
6355 * config/i386/tm-go32.h: Remove file.
6356
4a1bcc8c
MK
6357 * tui/tui-hooks.c: Include "readline/readline.h" after
6358 "gdb_curses.h" instead of before.
6359 * tui/tui-io.c: Likewise.
6360
f9a79064
MK
6361 * tui/tui.c: Fix typo in comment.
6362
b31bc724
MK
6363 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6364
f83f82bc
AC
63652004-04-08 Andrew Cagney <cagney@redhat.com>
6366
6367 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6368 (deprecated_exception_support_initialized): Declare.
8718a420 6369 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6370 (initialize_hp_cxx_exception_support)
6371 (child_enable_exception_callback): Update.
6372 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6373 (deprecated_exception_support_initialized): Rename
6374 deprecated_exception_catchpoints_are_fragile and
6375 deprecated_exception_support_initialized.
6376 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6377
6378 * symtab.c (deprecated_hp_som_som_object_present): Rename
6379 hp_som_som_object_present.
6380 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6381 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6382 Update. Delete extern declaration.
6383 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6384 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6385 (parse_nested_classes_for_hpacc): Ditto.
6386 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6387 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6388 (initialize_hp_cxx_exception_support): Ditto.
6389 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6390 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6391 (cp_print_class_method): Ditto.
8718a420 6392 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6393 (c_type_print_base): Ditto.
6394 * c-exp.y (hp_som_som_object_present): Ditto.
6395
fb2be677
AC
63962004-04-08 Andrew Cagney <cagney@redhat.com>
6397
6398 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6399 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6400 (frame_unwind_find_by_frame): Re-implement the unwind code so
6401 that it can both prepend and append sniffers. Replace
6402 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6403 * tramp-frame.c (tramp_frame_append): Use
6404 frame_unwind_prepend_unwinder.
6405 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6406 frame_unwind_register_unwinder.
6407 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6408 tramp_frame_append.
6409 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6410 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6411 (mips_linux_init_abi): Update.
6412
67faf007
KB
64132004-04-08 Kevin Buettner <kevinb@redhat.com>
6414
6415 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6416 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6417 file support.
6418
8973ff21
KB
64192004-04-07 Kevin Buettner <kevinb@redhat.com>
6420
6421 * ia64-tdep.c (elf.h): Don't include.
6422 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6423
4a0e2f88
JM
64242004-04-07 Jason Molenda (jmolenda@apple.com)
6425
6426 * frame.h: Typeo corrections in comments.
6427
9872ad24
JB
64282004-04-07 Jim Blandy <jimb@redhat.com>
6429
6430 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6431 %esp and %ebp
6432
70b216c8
MK
64332004-04-07 Mark Kettenis <kettenis@gnu.org>
6434
11d5789c
MK
6435 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6436 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6437 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6438 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6439 and solib-legacy.o.
6440 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6441 solib-svr4.o.
6442 * config/sparc/tm-sol2.h: Update copyright year. Include
6443 "solib.h".
6444
70b216c8
MK
6445 * sparc-sol2-tdep.c: Update copyright year. Include
6446 "solib-svr4.h".
6447 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6448 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6449 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6450 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6451 dependencies.
6452
6339dc9e
AC
64532004-04-06 Andrew Cagney <cagney@redhat.com>
6454
6455 * infttrace.c: Include "infttrace.h".
6456 * infttrace.h: Include "target.h".
6457 * Makefile.in (infttrace_h): Update.
6458 (infttrace.o): Update.
8718a420 6459
93449403
AC
64602004-04-06 Andrew Cagney <cagney@redhat.com>
6461
6d518969
AC
6462 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6463 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6464 move extern declarations from here ...
6465 * infttrace.h: ... to here.
6466 * Makefile.in (hppah-nat.o): Update dependencies.
6467
85f4f2d8
AC
6468 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6469 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6470 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6471 (hppa_breakpoint_from_pc): Delete.
6472
93449403
AC
6473 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6474
71456ec6
AC
64752004-04-05 Andrew Cagney <cagney@redhat.com>
6476
6477 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6478 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6479 <sys/file.h>.
8718a420 6480
4c02c60c
AC
64812004-04-06 Randolph Chung <tausq@debian.org>
6482
6483 Committed by Andrew Cagney (mechanical change).
6484 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6485 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6486 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6487 child_enable_exception_callback, current_ex_event,
6488 null_symtab_and_line, child_get_current_exception_event,
6489 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6490 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6491 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6492 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6493 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6494 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6495 Move hpux-specific definitions ...
6496 * hppa-hpux-tdep.c: ... to here.
6497
3a515653
AC
64982004-04-05 Andrew Cagney <cagney@redhat.com>
6499
6500 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6501 skip_prologue_using_sal.
6502
c1730d02
AC
65032004-04-05 Andrew Cagney <cagney@redhat.com>
6504
6505 * config/i386/tm-i386.h: Delete file.
6506 * config/i386/tm-vxworks.h: Update copyright, do not include
6507 "tm-i386.h".
6508 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6509 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6510 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6511 * config/i386/ncr3000.mt (TM_FILE): Delete.
6512 * config/i386/interix.mt (TM_FILE): Delete.
6513 * config/i386/i386v.mt (TM_FILE): Delete.
6514 * config/i386/i386nw.mt (TM_FILE): Delete.
6515 * config/i386/i386gnu.mt (TM_FILE): Delete.
6516 * config/i386/i386aout.mt (TM_FILE): Delete.
6517 * config/i386/embed.mt (TM_FILE): Delete.
6518
8b67aa36
KB
65192004-04-05 Kevin Buettner <kevinb@redhat.com>
6520
6521 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6522 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6523 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6524 (accg7_regnum): New constants.
6525 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6526 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6527 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6528 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6529 for accg registers.
6530 (frv_register_sim_regno): Update spr_map[].
6531
3c7012f5
AC
65322004-04-04 Andrew Cagney <cagney@redhat.com>
6533
6534 * config/mips/xm-riscos.h: Delete.
6535 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6536 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6537 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6538 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6539 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6540 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6541 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6542 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6543 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6544 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6545 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6546 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6547 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6548 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6549 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6550 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6551 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6552 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6553 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6554 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6555 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6556 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6557 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6558 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6559 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6560 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6561
3c7012f5
AC
6562 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6563 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6564 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6565 * configure.host: Remove m680[01]0-sun-sunos3*,
6566 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6567 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6568 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6569 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6570 mips-*-riscos*.
6571 * NEWS: Mention removed systems.
6572
99d16a21
AC
65732004-04-04 Andrew Cagney <cagney@redhat.com>
6574
6575 GDB 6.1 release created from 6.1 branch.
6576
6cdf9d98
AC
65772004-04-04 Andrew Cagney <cagney@redhat.com>
6578
98d346c3
AC
6579 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6580 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6581 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6582
6cdf9d98
AC
6583 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6584 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6585 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6586
859a326d
JB
65872004-04-03 Jim Blandy <jimb@redhat.com>
6588
6589 * MAINTAINERS: Chris Faylor has changed employers; add him to
6590 "paper trail" section, and update his E-mail address.
6591
b87178c3
AC
65922004-04-03 Andrew Cagney <cagney@redhat.com>
6593
4ea2acf0
AC
6594 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6595 generic dummy frames.
6596 * dummy-frame.c: Update copyright.
6597 (dummy_frame_sniffer): Delete check for generic dummy frames.
6598
d0bd2d18 6599 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6600 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6601 (REG_PARM_STACK_SPACE): Delete.
6602 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6603 Inline reference to REG_PARM_STACK_SPACE.
6604
b87178c3
AC
6605 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6606 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6607 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6608 (FRAME_BASE_BEFORE_SIGTRAMP)
6609 (hppa32_hpux_frame_base_before_sigtramp)
6610 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6611 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6612 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6613 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6614 (FRAME_BASE_BEFORE_SIGTRAMP)
6615 (hppa64_hpux_frame_base_before_sigtramp)
6616 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6617
43e2e1a0
AC
66182004-04-03 Andrew Cagney <cagney@redhat.com>
6619
6620 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6621
ddc135a4
AC
66222004-04-02 Andrew Cagney <cagney@redhat.com>
6623
6624 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6625 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6626 * dummy-frame.h: Delete out-of-date comments.
6627 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6628 * gdbarch.h, gdbarch.c: Re-generate.
6629
d15bfd3a 66302004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6631
d15bfd3a
AC
6632 Committed by Andrew Cagney <cagney@redhat.com>.
6633 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6634 into account an instruction saving a register if we have already
6635 seen an earlier instruction saving that same register.
6636
f04ceafa
AC
66372004-04-02 Andrew Cagney <cagney@redhat.com>
6638
08be3abd
AC
6639 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6640 * gdbarch.h, gdbarch.c: Re-generate.
6641 * frame.c (legacy_get_prev_frame): Delete references to
6642 DEPRECATED_INIT_FRAME_PC_FIRST.
6643
f04ceafa
AC
6644 * infrun.c (pc_in_sigtramp): Delete function.
6645 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6646 get_frame_type.
6647
08e69816
AC
66482004-04-02 Andrew Cagney <cagney@redhat.com>
6649
6650 * infrun.c (handle_step_into_function): Delete code conditional on
6651 legacy_frame_p.
6652 (handle_inferior_event, step_over_function): Ditto.
6653
adb54772
AC
66542004-04-02 Andrew Cagney <cagney@redhat.com>
6655
6656 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6657 "previous frame inner to this frame" test.
6658
304396fb
AC
66592004-04-02 Andrew Cagney <cagney@redhat.com>
6660
6661 * frame.c (safe_frame_unwind_memory): New function.
6662 * frame.h (safe_frame_unwind_memory): Declare. Update description
6663 of /safe_/ methods.
6664 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6665 "next_frame". Use safe_frame_unwind_memory.
6666 (tramp_frame_sniffer): Update call to tramp_frame_start.
6667
6502dd73
DJ
66682004-04-01 Daniel Jacobowitz <drow@mvista.com>
6669
6670 * dwarf2read.c (dwarf2_objfile_data_key): New.
6671 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6672 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6673 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6674 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6675 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6676 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6677 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6678 Remove variables.
6679 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6680 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6681 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6682 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6683 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6684 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6685 Remove macros.
6686 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6687 data.
6688 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6689 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6690 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6691 (read_partial_die, read_full_die, read_indirect_string)
6692 (dwarf_decode_line_header, dwarf_decode_macros)
6693 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6694 Update uses of removed variables.
6695 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6696 of removed macros.
6697 (_initialize_dwarf2_read): New function.
6698 * symfile.h (dwarf2_has_info): Update prototype.
6699 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6700 * elfread.c (elf_symfile_read): Likewise.
6701
408752b0
JB
67022004-04-01 Jim Blandy <jimb@redhat.com>
6703
9f744501
JB
6704 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6705 function for register numbers on all the rs6000-derived targets.
6706 (rs6000_gdbarch_init): Don't register a separate
6707 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6708 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6709 variants.
6710
408752b0
JB
6711 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6712 numbering.
6713
2de41bce
PH
67142004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6715
6716 * valarith.c: Update copyright notice.
6717 (value_add): Handle range types.
6718 (value_sub): Ditto.
6719 (value_equal): Ditto.
6720 (value_less): Ditto.
6721 (value_neg): Ditto.
6722 (value_complement): Ditto.
8718a420 6723 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6724 eliminiating unnecessary COERCE_ENUMs.
8718a420 6725
5613d8d3
AC
67262004-03-31 Andrew Cagney <cagney@redhat.com>
6727
6728 * frame.h (frame_unwind_id): Declare.
6729 * frame.c (frame_unwind_id): New function.
6730 (get_prev_frame_1): New function.
6731 (frame_debug_got_null_frame): New function.
6732 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6733 code proper to prev_frame, update description.
6734 * infrun.c (step_over_function): Use frame_unwind_id.
6735
c4557624
JB
67362004-04-31 J. Brobecker <brobecker@gnat.com>
6737
6738 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6739 (hppa64_push_dummy_call): Likewise.
6740
3e6bb910
JB
67412004-03-30 Jim Blandy <jimb@redhat.com>
6742
6743 From Ulrich Weigand:
6744 * utils.c (query): Do not use a va_list variable multiple times.
6745
a2f23071
DJ
67462004-03-29 Daniel Jacobowitz <drow@mvista.com>
6747
6748 * Makefile.in (linux_nat_h): Update dependencies.
6749 * configure.in: Check for <gnu/libc-version.h>.
6750 * configure: Regenerate.
6751 * config.in: Regenerate.
6752 * linux-nat.h: Include "target.h". Add waitstatus field to
6753 struct lwp_info.
6754 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6755 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6756 to.
6757 (lin_lwp_handle_extended): New function. Handle clone events.
6758 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6759 thread exit events.
6760 (child_wait): Handle clone events.
6761 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6762 * linux-nat.c (linux_enable_event_reporting): Turn on
6763 PTRACE_O_TRACECLONE.
6764 (linux_handle_extended_wait): Handle clone events.
6765 * thread-db.c: Include <gnu/libc-version.h>.
6766 (struct private_thread_info): Add dying flag.
6767 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6768 higher.
6769 (attach_thread): Update comments. Handle dying threads.
6770 (detach_thread): Set the dying flag.
6771 (check_event): Always call attach_thread.
6772
8d5f9dcb
DJ
67732004-03-29 Daniel Jacobowitz <drow@mvista.com>
6774
6775 * mips-tdep.c (mips_pdr_data): New.
6776 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6777 (_initialize_mips_tdep): Initialize mips_pdr_data.
6778
66337bb1
CV
67792004-03-29 Corinna Vinschen <vinschen@redhat.com>
6780
6781 * minsyms.c (install_minimal_symbols): Move dropping leading
6782 char from linkage name from here...
6783 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6784 test for "__gnu_compiled*" symbols.
6785
e802b915
JB
67862004-03-28 Jim Blandy <jimb@redhat.com>
6787
6788 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6789 registers to temp register r0 and byte stores as prologue
6790 instructions.
6791
72b56458
AC
67922004-03-28 Andrew Cagney <cagney@redhat.com>
6793
6794 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6795 arm*-*-*.
6796
0bfbda3b
SC
67972004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6798
6799 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6800 and switch the layout to force a display of register window.
6801
5a7225ed
JB
68022004-02-26 J. Brobecker <brobecker@gnat.com>
6803
6804 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6805 of the INTEGER class.
6806
81a07a45
JB
68072004-03-26 Jim Blandy <jimb@redhat.com>
6808
6809 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6810 bytes long on PPC GNU/Linux.
6811
8c691c7a
DC
68122004-03-26 David Carlton <carlton@kealia.com>
6813
6814 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6815
103a0089
AC
68162004-03-25 Andrew Cagney <cagney@redhat.com>
6817
6818 * PROBLEMS: Add general section titles, remove references to
6819 specific releases.
6820
7a5ea0d4
DJ
68212004-03-25 Daniel Jacobowitz <drow@mvista.com>
6822
6823 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6824 INT_REGISTER_SIZE.
6825 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6826 FP_REGISTER_VIRTUAL_SIZE.
6827 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6828 of DEPRECATED_REGISTER_RAW_SIZE.
6829 (arm_register_type): Add gdbarch argument.
6830 (arm_register_raw_size, arm_register_virtual_size): Delete.
6831 (arm_register_byte, arm_extract_return_value)
6832 (arm_store_return_value, arm_get_longjmp_target): Update references
6833 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6834 (arm_gdbarch_init): Likewise. Don't set
6835 deprecated_register_raw_size, deprecated_register_virtual_size,
6836 deprecated_max_register_raw_size,
6837 deprecated_max_register_virtual_size, or
6838 deprecated_max_register_virtual_type. Do set register_type.
6839 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6840 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6841 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6842 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6843 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6844 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6845 INT_REGISTER_SIZE.
6846 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6847 (remote_rdp_store_register): Likewise.
6848
5792a79b
DJ
68492004-03-24 Daniel Jacobowitz <drow@mvista.com>
6850
6851 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6852 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6853 to after osabi initialization.
6854 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6855 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6856 functions.
6857 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6858 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6859 variables.
6860 (mips_linux_init_abi): Append signal trampoline unwinders.
6861
1196bfda
AC
68622004-03-24 Andrew Cagney <cagney@redhat.com>
6863
6864 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6865 * tramp-frame.c: Include "gdb_assert.h".
6866 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6867 correct sizeof.
6868 (tramp_frame_append): Validate the tramp frame's instructions.
6869 * Makefile.in (tramp-frame.o): Update dependencies.
6870
4be282b4
AC
68712004-03-23 Andrew Cagney <cagney@redhat.com>
6872
6873 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6874
69aec09b
AC
68752004-03-23 Andrew Cagney <cagney@redhat.com>
6876
6877 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6878 Nasser as past testsuite/lib/ (and other) maintainers.
6879
63ed89b4
DJ
68802004-03-23 Daniel Jacobowitz <drow@mvista.com>
6881
6882 * infcmd.c (attach_command): Reread symbols if we already have
6883 an exec file.
6884
f3b36427
AC
68852004-03-23 Andrew Cagney <cagney@redhat.com>
6886
6887 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6888
aa2a3f87
AC
68892004-03-23 Andrew Cagney <cagney@redhat.com>
6890
6891 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6892 * gdbarch.h, gdbarch.c: Re-generate.
6893 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6894 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6895 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6896 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6897 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6898 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6899 (DEPRECATED_SIGTRAMP_START): Update.
6900 * blockframe.c (find_pc_sect_partial_function): Update.
6901 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6902
00cac895
DJ
69032004-03-23 Daniel Jacobowitz <drow@mvista.com>
6904
6905 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6906 if necessary.
6907
f561f026
AC
69082004-03-23 Andrew Cagney <cagney@redhat.com>
6909
6910 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6911 predicate, deprecate.
6912 * gdbarch.h, gdbarch.c: Re-generate.
6913 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6914 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6915 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6916 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6917 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6918 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6919 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6920 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6921 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6922 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6923 * blockframe.c (find_pc_partial_function): Update.
6924 * breakpoint.c (bpstat_what): Update.
6925 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6926 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6927 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6928 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6929 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6930 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6931 * i386-nto-tdep.c (i386nto_init_abi): Update.
6932 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6933 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6934 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6935 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6936 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6937 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6938 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6939 * infrun.c (pc_in_sigtramp): Update.
6940 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6941 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6942 * mips-tdep.c (mips_gdbarch_init): Update.
6943 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6944 * ppc-linux-tdep.c: Update comment.
6945 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6946 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6947 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6948 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6949 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6950 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6951 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6952 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6953 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6954 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6955
8050c72f
AC
69562004-03-23 Andrew Cagney <cagney@redhat.com>
6957
d2259dd3
AC
6958 * tramp-frame.h, tramp-frame.h: New files.
6959 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6960 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6961
8050c72f
AC
6962 * Makefile.in: Update all dependencies.
6963
0db9b4b7
AC
69642004-03-23 Andrew Cagney <cagney@redhat.com>
6965
6966 * Makefile.in (trad_frame_h): Add $(frame_h).
6967 * trad-frame.h: Update copyright. Include "frame.h".
6968 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6969 (trad_frame_set_id, trad_frame_get_id): Declare.
6970 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6971 * trad-frame.c: Update copyright.
6972 (struct trad_frame_cache): Define.
6973 (trad_frame_cache_zalloc): New function.
6974 (trad_frame_set_id, trad_frame_get_id): New functions.
6975 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6976
8e645ae7
AC
69772004-03-22 Andrew Cagney <cagney@redhat.com>
6978
6979 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6980 s390_pltstub_unwind_cache.
6981 (s390_stub_frame_unwind_cache): Rename
6982 s390_pltstub_frame_unwind_cache.
6983 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6984 (s390_stub_frame_prev_register): Rename
6985 s390_pltstub_frame_prev_register.
6986 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6987 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6988
6989 From Ulrich Weigand:
6990 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6991 pointer calls like PLT calls.
6992
34fcf120
DJ
69932004-03-22 Daniel Jacobowitz <drow@mvista.com>
6994
6995 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6996 PC rather than the partial function start address. Use the start
6997 address to sanity check the found PDR.
6998
5b917078
DJ
69992004-03-22 Daniel Jacobowitz <drow@mvista.com>
7000
7001 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7002 linux_handle_extended_wait.
7003
8adf9e78
AC
70042004-03-22 Andrew Cagney <cagney@redhat.com>
7005
c3122434
AC
7006 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7007 function.
7008
8adf9e78
AC
7009 * frame.h (generic_pop_current_frame): Delete declaration.
7010 (deprecate_pop_dummy_frame): Deprecate
7011 generic_pop_dummy_frame.
7012 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7013 (generic_pop_current_frame): Delete function.
7014 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7015 generic_pop_current_frame.
7016 * v850-tdep.c (v850_pop_frame): Update.
7017 * mcore-tdep.c (mcore_pop_frame): Update.
7018 * sh64-tdep.c (sh64_pop_frame): Update.
7019 * h8300-tdep.c (h8300_pop_frame): Update.
7020
90ba813f
AC
70212004-03-22 Andrew Cagney <cagney@redhat.com>
7022
7023 * frame.h (deprecated_pc_in_call_dummy): Rename
7024 generic_pc_in_call_dummy.
7025 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7026 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7027 generic_pc_in_call_dummy.
7028 (pc_in_dummy_frame): Make static.
7029 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7030 * gdbarch.h, gdbarch.c: Re-generate.
7031 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7032 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7033 (legacy_get_prev_frame): Ditto.
7034 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7035 comment.
8718a420 7036
ca4bb888
AC
70372004-03-21 Andrew Cagney <cagney@redhat.com>
7038
244675f9
AC
7039 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7040 declaration and out-of-date comment.
7041 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7042 Delete function.
7043 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7044 deprecated_pc_in_call_dummy.
7045
ca4bb888
AC
7046 * infrun.c (handle_inferior_event): For non legacy frames, use the
7047 frame ID and frame type to identify a signal trampoline. Update
7048 comments.
7049
1777c7b4
NW
70502004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7051
7052 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7053 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7054
82417da5
AC
70552004-03-21 Andrew Cagney <cagney@redhat.com>
7056
7057 * frame-unwind.h: Update copyright.
7058 (struct frame_data): Add opaque declaration.
7059 (frame_sniffer_ftype): Declare.
7060 (struct frame_unwind): Add "unwind_data" and "sniffer".
7061 (frame_unwind_register_unwinder): Declare.
7062 (frame_unwind_find_by_frame): Add parameter "this_cache".
7063 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7064 (legacy_get_prev_frame, legacy_get_prev_frame)
7065 (get_frame_type): Pass the prologue_cache to
7066 frame_unwind_find_by_frame.
7067 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7068 "unwinder".
7069 (frame_unwind_register_unwinder): New function.
7070 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7071
b2ba182e
PH
70722004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7073
7074 * bcache.c (print_percentage): Use floating point to avoid
7075 incorrect results when portion*100 overflows.
7076
81332287
KB
70772004-03-19 Kevin Buettner <kevinb@redhat.com>
7078
7079 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7080 (ppc_linux_init_extra_frame_info)
7081 (ppc_linux_frameless_function_invocation)
7082 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7083 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7084 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7085 (rs6000_frame_chain): Delete declarations.
7086 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7087 (ppc_linux_init_extra_frame_info)
7088 (ppc_linux_frameless_function_invocation)
7089 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7090 (ppc_linux_init_abi): Remove registration of above deleted functions.
7091 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7092 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7093 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7094 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7095 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7096 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7097 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7098 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7099 frame management for all OSABIs.
7100
61a65099
KB
71012004-03-19 Andrew Cagney <cagney@redhat.com>
7102
7103 Committed by Kevin Buettner <kevinb@redhat.com>.
7104
7105 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7106 Update copyright.
7107 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7108 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7109 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7110 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7111 unwinders. #ifdef legacy frame code.
7112 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7113 "frame-base.h".
7114 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7115 (struct rs6000_frame_cache, rs6000_frame_cache)
7116 (rs6000_frame_this_id, rs6000_frame_prev_register)
7117 (rs6000_frame_sniffer, rs6000_frame_unwind)
7118 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7119 (rs6000_frame_base): Implement a traditional frame unwinder.
7120 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7121 frame unwinder.
7122
88f7da05
KB
71232004-03-19 Kevin Buettner <kevinb@redhat.com>
7124
7125 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7126 breakpoint address for watchpoints or the catch eventpoints.
7127 Add new paramter ``bptype''. Adjust all callers.
7128
f826dce1
AC
71292004-03-19 Andrew Cagney <cagney@redhat.com>
7130
33cb8b0f
AC
7131 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7132
f826dce1
AC
7133 * PROBLEMS: Delete note that ARM does not use frame code, problem
7134 fixed.
7135
43b1ab88
AC
71362004-03-18 Andrew Cagney <cagney@redhat.com>
7137
292ab034
AC
7138 * stack.c (return_command): Delete code wrapped in #ifdef
7139 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7140
43b1ab88
AC
7141 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7142
dbfe4626
AC
71432004-03-18 Andrew Cagney <cagney@redhat.com>
7144
7145 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7146 DEPRECATED_IN_SIGTRAMP.
7147 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7148 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7149 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7150 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7151 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7152 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7153 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7154 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7155 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7156 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7157
0cad6aec
AC
71582004-03-18 Andrew Cagney <cagney@redhat.com>
7159
7160 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7161 (struct frame_base_table_entry): Define.
7162 (struct frame_base_table): Re-implement as a linked list.
7163 (frame_base_init): Re-implement.
7164 (frame_base_table): Delete function.
7165 (append_predicate): Delete function.
7166 (frame_base_append_sniffer): Update.
7167 (frame_base_set_default): Update.
7168 (frame_base_find_by_frame): Update.
7169 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7170 * Makefile.in (frame-base.o): Update dependencies.
7171
9982c2e7
AC
71722004-03-17 Andrew Cagney <cagney@redhat.com>
7173
7174 * frame.c (legacy_get_prev_frame): Pass correct frame to
7175 frame_unwind_find_by_frame.
7176
8dfe8985
DC
71772004-03-17 David Carlton <carlton@kealia.com>
7178
7179 * NEWS: Mention C++ nested types and namespaces
7180
ed47347a
MC
71812004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7182
7183 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7184 and "Regressions since gdb 5.3.". Add known regressions since
7185 gdb 6.0.
7186
90aeadfc
DC
71872004-03-16 David Carlton <carlton@kealia.com>
7188
7189 * dwarf2read.c (process_structure_scope): Process children even
7190 when we're a declaration.
7191
73912b9b
AC
71922004-03-16 Andrew Cagney <cagney@redhat.com>
7193
7194 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7195 * blockframe.c (find_pc_partial_function)
7196 (find_pc_sect_partial_function): Merge into a single
7197 find_pc_partial_function.
7198
283accbc
MK
71992004-03-16 Mark Kettenis <kettenis@gnu.org>
7200
7201 * i386bsd-nat.c: s/regno/regnum/g.
7202 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7203 FP0_REGNUM.
7204 (store_inferior_registers): Likewise.
7205
f5b1afdf
MK
72062004-03-16 Mark Kettenis <kettenis@gnu.org>
7207
7208 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7209 of i387_fill_fsave.
7210 (store_inferior_registers): Call i387_collect_fsave and
7211 i387_collect_fxsave instead of i387_fill_fsave and
7212 i387_fill_fxsave.
7213
41fe5eb3
AC
72142004-03-15 Andrew Cagney <cagney@redhat.com>
7215
7216 * Makefile.in (frame-unwind.o): Update dependencies.
7217 * frame-unwind.c: Include "gdb_obstack.h".
7218 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7219 parameter.
7220 (append_predicate): Delete function.
7221 (struct frame_unwind_table_entry): New structure.
7222 (struct frame_unwind_table): Replace "sniffer" with "head" and
7223 "tail".
7224 (frame_unwind_append_sniffer): Update.
7225 (frame_unwind_find_by_frame): Update.
7226 (_initialize_frame_unwind): Registe frame_unwind_init using
7227 gdbarch_data_register_pre_init.
7228
3f63813d
MK
72292004-03-15 Mark Kettenis <kettenis@gnu.org>
7230
7231 * i386bsd-nat.c: Update copyright year.
7232 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7233 define unconditionally.
7234
3248c325 72352004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7236
7237 * i387-tdep.h (i387_collect_fsave): New prototype.
7238 * i387-tdep.c (i387_collect_fsave): New function containing most
7239 of the code from i387_fill_fsave.
3248c325 7240 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7241
871fbe6a
MK
72422004-03-15 Mark Kettenis <kettenis@gnu.org>
7243
7244 * i386-linux-tdep.c: Update copyright year.
7245 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7246 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7247 svr4_ilp32_link_map_offsets instead of
7248 i386_linux_svr4_fetch_link_map_offsets.
7249
8176b9b8
DC
72502004-03-15 David Carlton <carlton@kealia.com>
7251
7252 Fix for PR c++/1553:
7253 * dwarf2read.c (read_structure_type): Determine type name by
7254 calling determine_class_name.
7255 (determine_class_name): New.
7256 (determine_prefix): Look at TYPE_TAG_NAME and call
7257 determine_class_name when appropriate.
7258 (determine_prefix_aux, class_name): Delete.
9d58e29d 7259 (read_namespace): Set die->type.
8176b9b8 7260
fe8bf7d7
KB
72612004-03-15 Kevin Buettner <kevinb@redhat.com>
7262
7263 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7264 unused macro definition. The definition in target.h (or perhaps
7265 elsewhere) takes precedence.
7266
ed6edd9b
AC
72672004-03-15 Andrew Cagney <cagney@redhat.com>
7268
f9be684a
AC
7269 * ppc-tdep.h: Update copyright.
7270 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7271 function signatures to match "regsets.h".
7272 * ppc-linux-tdep.c: Include "regset.h".
7273 (ELF_GREGSET_SIZE): Delete.
7274 (right_supply_register): New function.
7275 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7276 using right_supply_register.
7277 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7278 functions.
7279 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7280 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7281 (_initialize_ppc_linux_tdep): Do not register
7282 ppc_linux_regset_core_fns.
7283 (ppc_linux_regset_from_core_section): Replace
7284 fetch_core_registers.
7285 (ppc_linux_regset_core_fns): Delete.
7286 * ppc-linux-nat.c: (right_fill_reg): New function.
7287 (supply_gregset): Update call to ppc_linux_supply_gregset.
7288 (fill_gregset): Clear the register set, use right_fill_reg.
7289 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7290 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7291
ed6edd9b
AC
7292 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7293 unsigned.
7294
030f20e1
AC
72952004-03-15 Andrew Cagney <cagney@redhat.com>
7296
7297 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7298 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7299 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7300 and register_gdbarch_data.
7301 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7302 (struct gdbarch_data): Replace "init" by "pre_init" and
7303 "post_init".
7304 * gdbarch.h, gdbarch.c: Re-generate.
7305 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7306 with"obstack", use OBSTACK_ZALLOC.
7307 (dwarf2_frame_ops): Delete.
7308 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7309 (dwarf2_frame_init_reg): Use gdbarch_data.
7310 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7311 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7312 (_initialize_svr4_solib): Update.
7313 * user-regs.c (_initialize_user_regs): Update.
7314 * reggroups.c (_initialize_reggroup): Update.
7315 * regcache.c (_initialize_regcache): Update.
7316 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7317 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7318 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7319 * frame-unwind.c (_initialize_frame_unwind): Update.
7320 * frame-base.c (_initialize_frame_base): Update.
7321 * user-regs.c (user_reg_add): Update.
7322 * reggroups.c (reggroup_add): Update.
7323 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7324 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7325 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7326 * frame-base.c (frame_base_table): Update.
7327 * remote.c (_initialize_remote): Update.
7328 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7329
3111a3fc
AC
73302004-03-15 Andrew Cagney <cagney@redhat.com>
7331
7332 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7333
5ecb7103
KB
73342004-03-15 Kevin Buettner <kevinb@redhat.com>
7335
7336 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7337 * frv-linux-tdep.c: New file.
7338 * frv-tdep.c (struct gdbarch_tdep): Add new field
7339 ``sigcontext_reg_addr''.
7340 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7341 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7342 (frv_sigramp_frame_sniffer): New functions.
7343 (frv_sigtramp_frame_unwind): New static global.
7344 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7345 sniffers.
7346 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7347 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7348
1ccda5e9
KB
73492004-03-15 Kevin Buettner <kevinb@redhat.com>
7350
7351 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7352 but not via a call to error(), when unable to read memory.
7353
b375a0a5
KB
73542004-03-15 Kevin Buettner <kevinb@redhat.com>
7355
7356 * frv-tdep.c (frv_call_dummy_words): Delete.
7357 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7358
4fdf6121
AC
73592004-03-15 Andrew Cagney <cagney@redhat.com>
7360
7361 * infrun.c (handle_step_into_function, step_over_function): Only
7362 update and use STEP_FRAME_ID when the system is using legacy
7363 frames. Update comments.
7364
34021503
MK
73652004-03-14 Mark Kettenis <kettenis@gnu.org>
7366
187e21d1
MK
7367 * amd64-linux-tdep.h: Remove file.
7368 * amd64-linux-tdep.c: Don't include "inferior.h" and
7369 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7370 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7371 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7372 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7373 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7374 macros.
7375 (user_to_gdb_regmap): Remove variable.
7376 (amd64_linux_gregset_reg_offset): New variable.
7377 (amd64_core_fns): Remove variable.
7378 (fetch_core_registers): Remove function.
7379 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7380 functions.
7381 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7382 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7383 * Makefile.in (amd64_linux_tdep_h): Remove.
7384 (amd64-linux-nat.o): Update dependencies.
7385 (amd64-linux-tdep.o): Update dependencies.
7386
99679982
MK
7387 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7388 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7389 functions.
7390 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7391
34021503
MK
7392 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7393 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7394
134d01f1
DJ
73952004-03-14 Daniel Jacobowitz <drow@mvista.com>
7396
7397 * dwarf2read.c (read_structure_type): Rename from
8718a420 7398 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7399 Return immediately if die->type is set. Call read_type_die before
7400 dwarf2_add_member_fn.
7401 (process_structure_scope): New function.
7402 (read_enumeration_type, process_enumeration_scope): New functions,
7403 broken out from read_enumeration. Don't create the enumeration
7404 type if it has already been created.
7405 (read_enumeration): Removed.
7406 (process_die): Call read_structure_type, process_structure_scope,
7407 read_enumeration_type, and process_enumeration_scope. Just call
7408 new_symbol for base and subrange types. Add a comment about other
7409 type dies.
7410 (read_type_die): Call read_enumeration_type.
7411 (add_partial_structure, new_symbol): Update comments.
7412
65760afb
SC
74132004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7414
7415 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7416
10f59415
SC
74172004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7418
7419 * tui/tui-win.h (tui_get_cmd_list): Declare.
7420 * tui/tui-win.c (tui_command): New function.
7421 (tui_get_cmd_list): New function.
7422 (_initialize_tui_win): Moved initialization of tui command in
7423 tui_get_cmd_list.
7424
7425 * tui/tui-data.c (init_content_element): Setup new data members.
7426 (init_win_info): Likewise.
7427 (free_content_elements): Free it.
7428 * tui/tui-data.h (struct tui_data_element): Store the register
7429 content to print.
7430 (struct tui_data_info): Keep the current register group.
7431
7432 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7433
7434 * tui/tui-regs.h (tui_show_registers): Update prototype.
7435 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7436 (tui_resize_all): No need to calculate anything for register window.
7437 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7438 (tui_set_register_element, tui_set_general_regs_content): Remove.
7439 (tui_set_special_regs_content): Remove.
7440 (tui_set_general_and_special_regs_content): Remove.
7441 (tui_set_float_regs_content): Remove.
7442 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7443 (tui_set_regs_content): Remove.
7444 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7445 (tui_v_show_registers_command_support): Remove.
7446 (tui_show_registers): Use a reggroup to specify the registers to show.
7447 (tui_show_register_group): New function.
7448 (tui_display_registers_from): Compute the layout of register window
7449 and refresh with new API; be sure to delete old register windows.
7450 (tui_check_register_values): Update to use tui_get_register and
7451 tui_display_data.
7452 (tui_display_register): Just refresh the register window part.
7453 (tui_register_format): Format registers and save in tui_data_element.
7454 (tui_get_register): New to combine tui_reg_value_has_changed and
7455 tui_get_register_raw_value; fix to use the new gdb API.
7456 (tui_show_float_command): Renamed tui_reg_float_command.
7457 (tui_show_general_command): Renamed tui_reg_general_command.
7458 (tui_show_special_command): Renamed tui_reg_system_command.
7459 (_initialize_tui_regs): Remove unused commands.
7460
c3364ea4
MK
74612004-03-13 Mark Kettenis <kettenis@gnu.org>
7462
27d1e716
MK
7463 * NEWS (New native configurations): Mention OpenBSD/amd64.
7464
c3364ea4
MK
7465 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7466 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7467 Remove defines.
7468 * config/i386/nm-fbsd64.h: Likewise.
7469 * config/i386/nm-obsd.h: Likewise.
7470 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7471 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7472
b2d6d697
KB
74732004-03-12 Kevin Buettner <kevinb@redhat.com>
7474
7475 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7476 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7477 New constants.
7478
76e43199
KB
7479 From Richard Sandiford <rsandifo@redhat.com>:
7480 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7481
34ce532e
KB
74822004-03-12 Kevin Buettner <kevinb@redhat.com>
7483
7484 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7485 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7486 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7487 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7488 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7489 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7490 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7491 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7492 definitions from frv-tdep.c to frv-tdep.h.
7493
c4d10515
KB
74942004-03-12 Kevin Buettner <kevinb@redhat.com>
7495
7496 Add shared library support for FR-V FDPIC ABI:
7497 * Makefile.in (solib-frv.o): Add dependencies.
7498 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7499 New functions.
7500 (frv_push_dummy_call): Add support for FDPIC ABI.
7501 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7502 for FDPIC ABI.
7503 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7504 (frv_fdpic_find_canonical_descriptor): Declare.
7505 * solib-frv.c: New file.
7506 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7507 * config/frv/tm-frv.h (solib.h): Include.
7508
ed1bd989
KB
75092004-03-12 Kevin Buettner <kevinb@redhat.com>
7510
7511 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7512 (frv-tdep.o): Update dependencies.
7513 * frv-tdep.h: New file.
7514 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7515 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7516 constants.
7517 (struct gdbarch_tdep): Add new member ``frv_abi''.
7518 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7519 functions.
7520 (new_variant): Set ``frv_abi'' field.
7521 (gdb_arch_init): Detect FDPIC executables.
7522
82b38f72
MK
75232004-03-12 Mark Kettenis <kettenis@gnu.org>
7524
7525 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7526 wrapper.
7527
db1ea9ba
AC
75282004-03-11 Andrew Cagney <cagney@redhat.com>
7529
7530 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7531
f8766ec1
KB
75322004-03-11 Kevin Buettner <kevinb@redhat.com>
7533
7534 * solist.h (master_so_list): New function.
7535 * solib.c (master_so_list): Likewise.
7536 * solib-svr4.c (enable_break): Iterate over so_list entries
7537 obtained from master list instead of entries obtained directly
7538 via svr4_current_sos().
7539
523f6a27
BE
75402004-03-10 Ben Elliston <bje@gnu.org>
7541
7542 * MAINTAINERS: Update my mail address.
7543
37814c18
KI
75442004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7545
7546 * remote-m32r-sdi.c: Support hardware watchpoint.
7547
8b9740d8
DJ
75482004-03-09 Daniel Jacobowitz <drow@mvista.com>
7549
7550 * user-regs.c: Update copyright years.
7551 (struct user_regs): Rename to gdb_user_regs.
7552 (append_user_reg, builtin_user_regs, user_regs_init)
7553 (user_reg_add, user_reg_map_name_to_regnum)
7554 (usernum_to_user_reg): Update.
7555
4bb7a0a7
DJ
75562004-03-09 Daniel Jacobowitz <drow@mvista.com>
7557
7558 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7559 (skip_children): New functions.
7560 (locate_pdi_sibling): Call skip_children.
7561
44e1a9eb
DJ
75622004-03-09 Daniel Jacobowitz <drow@mvista.com>
7563
7564 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7565 * gdbtypes.c (check_typedef): Update comments.
7566
f3dd6933
DJ
75672004-03-09 Daniel Jacobowitz <drow@mvista.com>
7568
7569 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7570 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7571 pointer. Update comment about comp_unit_head.
7572 (struct abbrev_info): Shorten two int flags.
7573 (dwarf_alloc_abbrev): Take a CU argument.
7574 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7575 each time through the loop. Update cleanup argument.
7576 (psymtab_to_symtab_1): Update cleanup call.
7577 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7578 abbrev_obstack.
7579 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7580 Just call obstack_free and clear the pointer.
7581
b40c7d58
DJ
75822004-03-09 Daniel Jacobowitz <drow@mvista.com>
7583
7584 * infrun.c (handle_inferior_event): Remove short-circuit code for
7585 events in a different thread.
7586
333dabeb
DJ
75872004-03-09 Daniel Jacobowitz <drow@mvista.com>
7588
7589 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7590 print the whole transfer.
7591 (initialize_targets): Update description of "set debug target".
7592
aa17d93e
DJ
75932004-03-09 Daniel Jacobowitz <drow@mvista.com>
7594
7595 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7596
0b71f08f
NW
75972004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7598
7599 * MAINTAINERS (write after approval): Add myself.
7600
3930f270
CV
76012004-03-08 Corinna Vinschen <vinschen@redhat.com>
7602
7603 * sh-tdep.c (sh_print_registers_info): Use for loop.
7604 Don't skip multiple registers when a float register is encountered.
7605
a2b4a96c
CV
76062004-03-08 Corinna Vinschen <vinschen@redhat.com>
7607
7608 Fix PR tdep/1291.
7609 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7610 to official SH documentation.
7611
f15a4bc0
AC
76122004-03-07 Andrew Cagney <cagney@redhat.com>
7613
7614 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7615 unused function.
7616
9498281f
DJ
76172004-03-07 Daniel Jacobowitz <drow@mvista.com>
7618
7619 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7620 (arm_get_next_pc): Handle BX and BLX.
7621
449e1137
AC
76222004-03-07 Andrew Cagney <cagney@redhat.com>
7623
eded0a31
AC
7624 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7625 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7626 HPPA_SP_REGNUM.
7627 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7628 (hppa_target_read_fp): Delete.
7629 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7630 register_virtual_size, max_register_raw_size,
7631 max_register_virtual_size, register_byte, register_size,
7632 target_read_fp, fp_regnum, and register_bytes. Set register_type
7633 instead of register_virtual_type.
7634 (hppa32_register_type, hppa64_register_type): Replace
7635 hppa32_register_virtual_type and hppa64_register_virtual_type.
7636 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7637 (HPPA_FP_REGNUM): Define.
7638
f5f907e2
AC
7639 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7640
69b4bbe4
AC
7641 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7642 (pa_do_registers_info): Delete.
7643 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7644 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7645 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7646
78161e48
AC
7647 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7648 GDB_TARGET_IS_HPPA code.
7649 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7650 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7651 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7652 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7653 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7654 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7655 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7656 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7657 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7658 (hppa_frameless_function_invocation, hppa64_store_return_value)
7659 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7660 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7661 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7662 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7663 (find_proc_framesize, deposit_21, restore_pc_queue)
7664 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7665 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7666
782eae8b
AC
7667 Unconditionally enable 64-bit frame and ABI code.
7668 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7669 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7670 push_dummy_frame, fix_call_dummy, push_arguments,
7671 call_dummy_location, extract_return_value, use_struct_convention,
7672 store_return_value, store_struct_return, saved_pc_after_call,
7673 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7674 frame_chain, frame_chain_valid, frameless_function_invocation,
7675 frame_saved_pc, and pop_frame.
78161e48 7676
449e1137
AC
7677 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7678 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7679 (hppa_gdbarch_init): Do not set PC_REGNUM.
7680
12507572
MK
76812004-03-06 Mark Kettenis <kettenis@gnu.org>
7682
7683 * config/alpha/tm-fbsd.h: Remove file.
7684 * config/alpha/fbsd.mt: Tweak comment.
7685 (TM_FILE): Set to tm-alpha.h.
7686
c107cc1b
AC
76872004-03-05 Andrew Cagney <cagney@redhat.com>
7688
7689 * infrun.c (step_over_function): When non-legacy code, and no
7690 step_frame_id, use the unwinder to get the caller's frame ID.
7691
f2e7c15d
MK
76922004-03-05 Mark Kettenis <kettenis@gnu.org>
7693
8b0c3633
MK
7694 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7695 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7696 bfd_arch_unknown. Adjust comment.
7697
f2e7c15d
MK
7698 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7699 * i386obsd-tdep.c: Correct spelling in comment.
7700 * i386nbsd-tdep.c: Correct spelling in comment.
7701 * sparc-tdep.c: Correct spelling in comments.
7702
1198ecbe
DC
77032004-03-05 David Carlton <carlton@kealia.com>
7704
7705 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7706 bug.
7707
9eb42ed1
MK
77082004-03-05 Mark Kettenis <kettenis@gnu.org>
7709
7710 * sparc-tdep.c: Fix typo in comment.
7711
52b5e991
JB
77122004-03-04 J. Brobecker <brobecker@gnat.com>
7713
7714 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7715
d8151005
DJ
77162004-03-04 Daniel Jacobowitz <drow@mvista.com>
7717
7718 * dwarf2read.c: Add comment describing memory lifetimes.
7719 (struct dwarf2_pinfo): Update comment.
7720 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7721 (read_enumeration, new_symbol): Don't use obsavestring.
7722
cbeae229
MK
77232004-03-04 Mark Kettenis <kettenis@gnu.org>
7724
722d18c2
MK
7725 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7726 instead of amd64_fill_fxsave.
7727 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7728 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7729
cbeae229
MK
7730 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7731 Reorganize code a bit.
7732
b4206d25
OF
77332004-03-04 Orjan Friberg <orjanf@axis.com>
7734
7735 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7736 when the frame pointer is pushed. Don't set the frame pointer's
7737 address on the stack unless it's actually located there.
b4206d25
OF
7738 Set the SRP's address on the stack correctly when the PC is still in
7739 the prologue.
7740 (cris_return_value): New function.
7741 (cris_gdbarch_init): Clear deprecated store_return_value,
7742 extract_return_value.
7743
49b0b195
JB
77442004-03-02 Jim Blandy <jimb@redhat.com>
7745
7746 * stabsread.c (reg_value_complaint): The maximum register number
7747 is one less than the number of registers.
7748
e9ff708b
AC
77492004-03-02 Andrew Cagney <cagney@redhat.com>
7750
7751 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7752 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7753 trailing comma and redundant assignment of I386_ST0_REGNUM.
7754 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7755 32-bit segment registers.
7756
d4715e41
AC
77572004-03-01 Andrew Cagney <cagney@redhat.com>
7758
7759 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7760 use frame_relative_level and get_next_frame.
7761
3ce2bf18
AC
77622004-02-29 Andrew Cagney <cagney@redhat.com>
7763
7764 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7765 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7766 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7767 Delete macro.
7768
2da6aac3
DJ
77692004-02-29 Daniel Jacobowitz <drow@mvista.com>
7770
7771 * inflow.c (terminal_inferior): Don't give up the terminal if we
7772 previously couldn't get the inferior's terminal state.
7773
6ba34a8d
DJ
77742004-02-29 Daniel Jacobowitz <drow@mvista.com>
7775
7776 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7777 PC_REGNUM.
7778
faae5abe
AC
77792004-02-28 Andrew Cagney <cagney@redhat.com>
7780
7781 * NEWS: Refer to GDB 6.1.
7782 * README: Refer to GDB 6.1.
7783 * PROBLEMS: Refer to GDB 6.1.
7784
2227a3c5
DJ
77852004-02-28 Daniel Jacobowitz <drow@mvista.com>
7786
7787 * thread-db.c (disable_thread_signals): Remove unused function.
7788
80571bff
MK
77892004-02-28 Mark Kettenis <kettenis@gnu.org>
7790
041bd74b
MK
7791 * amd64-nat.c: Include "gdb_string.h".
7792 (amd64_collect_native_gregset): Zero-extend the 32-bit
7793 general-purpose registers and %eip.
7794
3c017e40
MK
7795 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7796 * amd64-tdep.c (amd64_collect_fxsave): New function.
7797 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7798
80571bff
MK
7799 * i387-tdep.h: Update copyright year.
7800 (i387_collect_fxsave): New prototype.
7801 * i387-tdep.c: Update copyright year.
7802 (i387_collect_fxsave): New function containing most of the code
7803 from i387_fill_fxsave.
7804 (i387_fill_fxsave): Call i387_collect_fxsave.
7805
50d71875
AC
78062004-02-28 Andrew Cagney <cagney@redhat.com>
7807
7808 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7809 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7810
4a28816e
MK
78112004-02-28 Mark Kettenis <kettenis@gnu.org>
7812
7813 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7814
dbda9972
AC
78152004-02-28 Andrew Cagney <cagney@redhat.com>
7816
7817 * utils.c: Use "", instead of <>, to include readline.
7818 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7819 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7820 * source.c, solib.c, exec.c, event-top.c: Ditto.
7821 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7822 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7823 * Makefile.in: Update all dependencies.
7824 (readline_tilde_h, readline_history_h): Define.
7825 (readline_headers): Delete.
7826
83277a99
MK
78272004-02-28 Mark Kettenis <kettenis@gnu.org>
7828
91ae4303
MK
7829 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7830 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7831 "config/i386/tm-lx64.h".
7832
83277a99
MK
7833 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7834 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7835 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7836
6e1d7d6c
AC
78372004-02-28 Andrew Cagney <cagney@redhat.com>
7838
ecc9ac84
AC
7839 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7840
6e1d7d6c
AC
7841 * breakpoint.c (_initialize_breakpoint): Use
7842 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7843 Add help to show command.
7844
9671aeef
MK
78452004-02-28 Mark Kettenis <kettenis@gnu.org>
7846
7fa2737c
MK
7847 * i386-nat.c: Reformat to be closer to coding standards.
7848 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7849 `retval'. Make variables `align' and `size' local to while-loop.
7850 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7851 (_initialize_i386_nat): New prototype.
7852
9671aeef
MK
7853 * tui/tui.c: Include <readline/readline.h> instead of
7854 "readline/readline.h". Include it after <term.h> and
7855 "gdb_curses.h".
7856
fca7aa43
AC
78572004-02-27 Andrew Cagney <cagney@redhat.com>
7858
412275d5
AC
7859 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7860 the new frame unwind code.
7861 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7862 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7863 PCOQ_HEAD_REGNUM.
7864
fca7aa43
AC
7865 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7866 "return_value" and "push_dummy_call".
7867 (hppa32_use_struct_convention): Delete unused function.
7868 (hppa32_store_return_value): Delete unused function.
7869 (hppa32_extract_return_value): Delete unused function.
7870 (hppa32_stack_align): Delete function.
7871
e6a8a7d2
EZ
78722004-02-27 Eli Zaretskii <eliz@elta.co.il>
7873
7874 * coffread.c (enter_linenos): Don't let rawptr reference memory
7875 outside linetab[]'s limits.
7876
1797a8f6
AC
78772004-02-27 Andrew Cagney <cagney@redhat.com>
7878
7879 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7880 inferior stack space - the stack needs to grow upwards.
7881 (hppa32_frame_align): New function.
7882 (hppa64_frame_align): Replace hppa_frame_align.
7883 (hppa_gdbarch_init): Update.
7884
2e4b5889
OF
78852004-02-26 Orjan Friberg <orjanf@axis.com>
7886
7887 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7888 (dwarf2-frame.h): Include.
7889 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7890 Remove static variables related to ABI setting.
7891 (struct gdbarch_tdep): Remove cris_abi member.
7892 (struct frame_extra_info): Remove.
7893 (cris_unwind_cache, stack_item): New structs.
7894 (cris_frame_unwind, cris_frame_base): New variables.
7895 (push_stack_item, pop_stack_item)
7896 (cris_frame_unwind_cache, cris_frame_this_id)
7897 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7898 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7899 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7900 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7901 (cris_reg_struct_has_addr): New functions.
7902 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7903 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7904 (cris_store_struct_return, cris_frameless_function_invocation)
7905 (cris_pop_frame, cris_skip_prologue_main)
7906 (cris_abi_original_store_return_value)
7907 (cris_abi_v2_store_return_value)
7908 (cris_abi_original_extract_return_value)
7909 (cris_abi_v2_extract_return_value)
7910 (cris_abi_original_reg_struct_has_addr)
7911 (cris_abi_v2_reg_struct_has_addr)
7912 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7913 (cris_push_return_address, cris_abi_update): Remove.
7914 (_initialize_cris_tdep): Remove ABI command.
7915 (cris_dump_tdep): Ditto.
8718a420 7916 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7917 Set store_return_value, extract_return_value, push_dummy_code,
7918 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7919 frame_unwind_append_sniffer, frame_base_set_default.
7920 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7921 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7922 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7923 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7924 init_extra_frame_info, frameless_function_invocation, frame_chain,
7925 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7926 dummy_write_sp.
8718a420 7927
6b9acc27
JJ
79282004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7929
7930 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7931 * valprint.c (print_hex_chars): Change from static to external.
7932 (print_char_chars): New function.
7933 * printcmd.c (print_scalar_formatted): For integer and enum types
7934 that are longer than LONGEST, perform processing via appropriate
7935 print_*_chars routines.
7936
a431654a
AC
79372004-02-26 Andrew Cagney <cagney@redhat.com>
7938
7939 * Makefile.in: Update dependencies.
7940 Changes from Ulrich Weigand,
7941 * s390-tdep.c: Include "dwarf2-frame.h".
7942 (s390_dwarf2_frame_init_reg): New function.
7943 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7944 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7945
fa8d40ab
JJ
79462004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7947
7948 * breakpoint.c (pending_break_support): New setting variable.
7949 (break_command_1): Account for pending_break_support setting
7950 when creating pending breakpoints.
7951 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7952 (_initialize_breakpoint): Add "set breakpoint pending" and
7953 "show breakpoint pending" commands.
7954
0dcd613f
AC
79552004-02-26 Andrew Cagney <cagney@redhat.com>
7956
7957 Fix PR i18n/1570.
7958 * charset.c (backslashable, backslashed, represented): Remove 'e'
7959 from list of escaped characters, not part of ISO-C.
7960
479272a3
JB
79612004-02-25 J. Brobecker <brobecker@gnat.com>
7962
7963 From Peter Schauer <schauer@pdf.de>:
7964 * tui/tui.c: Move system header includes after local includes.
7965 Fixes a build failure on solaris systems.
7966
7613d933
JB
79672004-02-25 J. Brobecker <brobecker@gnat.com>
7968
7969 * configure.in: Refine the previous change.
7970 * configure: Regenerate.
7971
9c1488cb
MK
79722004-02-25 Mark Kettenis <kettenis@gnu.org>
7973
7974 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7975 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7976 "amd64-tdep.h" instead of "x86-64-tdep.h".
7977 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7978 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7979 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7980 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7981 and "x86-64-tdep.c".
7982 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7983 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7984 and "x86-64-tdep.c".
7985 * amd64bsd-nat.c: Update copyright year.
7986 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7987 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7988 "x86-64-tdep.h".
7989 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7990 "x86-64-tdep.h".
7991 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7992 "x86-64-tdep.h".
7993 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7994 "x86-64-tdep.h".
7995 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7996 "x86-64-tdep.h".
7997 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7998 "x86-64-tdep.h".
8718a420 7999 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8000 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8001 * Makefile.in (amd64_linux_tdep_h): Renamed from
8002 x86_64_linux_tdep_h.
8003 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8004 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8005 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8006 (amd64obsd-tdep.o): Update dependencies.
8007 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8008 dependencies.
8009 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8010 dependencies.
8011 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8012 amd64-linux-nat.c amd64-linux-tdep.c.
8013 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8014 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8015 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8016 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8017 amd64-tdep.o and amd64-linux-tdep.o.
8018 (TM_FILE): Set to tm-linux64.h.
8019 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8020 (NAT_FILE): Set to nm-linux64.h.
8021 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8022 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8023 amd64-tdep.o.
8024 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8025 amd64-tdep.o.
8026 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8027 amd64-tdep.o.
8028
4b8dad4a
RM
80292004-02-25 Roland McGrath <roland@redhat.com>
8030
8031 * remote.c (remote_protocol_qPart_auxv): New variable.
8032 (init_all_packet_configs): Initialize it.
8033 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8034 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8035 (show_remote_cmd): Call it.
8036 (_initialize_remote): Initialize commands.
8037 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8038 service TARGET_OBJECT_AUXV requests.
8039
66745969
JB
80402004-02-25 J. Brobecker <brobecker@gnat.com>
8041
8042 * configure.in: Make sure that the wborder function is available.
8043 Otherwise, search for it in the cur_colr library.
8044 * configure: Regenerate.
8045
79508e1e
AC
80462004-02-25 Andrew Cagney <cagney@redhat.com>
8047
8048 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8049
571ee600
MK
80502004-02-25 Mark Kettenis <kettenis@gnu.org>
8051
8052 * config/i386/tm-x86-64linux.h: Tweak comments.
8053
2b1b322f 80542004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8055
8056 * MAINTAINERS: Add self to write-after-approval list.
8057
4d2acc65
AC
80582004-02-25 Andrew Cagney <cagney@redhat.com>
8059
4b8dad4a 8060 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8061 * cli/cli-script.c (execute_control_command): Unconditionally
8062 install a cleanup. Default "ret" to "invalid_control". Use
8063 "break" instead of "return" to escape from the switch.
8064
4cfcaf21
JB
80652004-02-24 J. Brobecker <brobecker@gnat.com>
8066
8067 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8068 with the lines macro defined in term.h on AiX.
8069 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8070 a collision with the label_width macro defined in term.h on AiX.
8071
54a5c8d8
KB
80722004-02-23 David Mosberger <davidm@hpl.hp.com>
8073
8074 Committed by Kevin Buettner <kevinb@redhat.com>.
8075
8076 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8077 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8078 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8079 instead of ia64_write_pc().
8080 * ia64-linux-tdep.c (regcache.h): Include.
8081 (ia64_linux_write_pc): New function.
4b8dad4a 8082
8a1dac83
RM
80832004-02-23 Roland McGrath <roland@redhat.com>
8084
8085 * auxv.c (info_auxv_command): Fix typos in error messages.
8086
90f90721
MK
80872004-02-23 Mark Kettenis <kettenis@gnu.org>
8088
8a1dac83 8089 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8090 (enum amd64_regnum): New.
8091 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8092 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8093 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8094 (X86_64_XMM1_REGNUM): Removed.
8095 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8096 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8097 prototypes for renamed functions.
8098 * x86-64-tdep.c: Fix typo.
8099 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8100 register numbers.
8101 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8102 Use constants from `enum amd64_regnum' for register numbers.
8103 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8104 (amd64_analyze_prologue, amd64_frame_cache,
8105 amd64_sigtramp_frame_cache): Use constants from `enum
8106 amd64_regnum' for register numbers.
8107 (amd64_supply_fpregset): Adjust for renamed functions.
8108 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8109 `enum amd64_regnum' for register numbers.
8110 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8111 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8112 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8113 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8114 (amd64_linux_fill_gregset): Adjust for renamed macros.
8115 (fetch_core_registers): Adjust for renamed functions.
8116 (amd64_linux_init_abi): Adjust for renamed functions.
8117 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8118 renamed functions.
8119 * amd64-nat.c: Adjust for renamed macros.
8120 * amd64bsd-nat.c (fetch_inferior_registers)
8121 (store_inferior_registers): Use constants from `enum amd64_regnum'
8122 for register numbers. Adjust for renamed variables.
8123 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8124 renamed variables.
8125 (_initialize_amd64fbsd_nat): Use constants from `enum
8126 amd64_regnum' for register numbers.
8127 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8128 `enum amd64_regnum' for register numbers.
8129 (amd64fbsd_init_abi): Adjust for renamed functions.
8130 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8131 `enum amd64_regnum' for register numbers.
8132 (amd64nbsd_init_abi): Adjust for renamed functions.
8133 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8134 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8135 `enum amd64_regnum' for register numbers.
8136 (amd64obsd_init_abi): Adjust for renamed functions.
8137 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8138
d5479188
JJ
81392004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8140
8141 * breakpoint.c (print_one_breakpoint): Do not output spaces
8142 after printing <PENDING> for a pending breakpoint.
8143
81cb7cc9
JJ
81442004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8145
8146 * printcmd.c (print_scalar_formatted): Initialize val_long
8147 to remove compiler warning message.
8148
cbdeadca
JJ
81492004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8150
8151 * defs.h (nquery, yquery): New prototypes.
8152 * breakpoint.c (break_command_1): Use new nquery interface.
8153 * utils.c (defaulted_query, nquery, yquery): New functions.
8154
da6bab63
AC
81552004-02-23 Andrew Cagney <cagney@redhat.com>
8156
2f690297
AC
8157 * hppa-tdep.c (hppa_frame_align): New function.
8158 (hppa32_push_dummy_call): New function.
8159 (hppa64_push_dummy_call): New function.
8160 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8161 disabled.
8a1dac83 8162
da6bab63
AC
8163 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8164 FIX_CALL_DUMMY when push_dummy_call is available.
8165 (call_function_by_hand, push_dummy_code): Ditto.
8166
abf9b42d
AC
81672004-02-22 Andrew Cagney <cagney@redhat.com>
8168
8169 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8170 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8171 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8172 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8173 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8174 call_dummy_location to ON_STACK.
8175
10fc94a4
MK
81762004-02-22 Mark Kettenis <kettenis@gnu.org>
8177
51433e4b
MK
8178 * x86-64-linux-tdep.c: Tweak comment.
8179 (amd64_linux_supply_gregset): Renamed from
8180 x86_64_linux_supply_gresget.
8181 (amd64_linux_fill_gregset): Renamed from
8182 x86_64_linux_fill_gregset.
8183 (fetch_core_registers): Adjust for renamed functions.
8184 (amd64_core_fns): Renamed from x86_64_core_fns.
8185 (amd64_linux_sigtramp_start): Renamed from
8186 x86_64_linux_sigtramp_start.
8187 (amd64_linux_pc_in_sigtramp): Renamed from
8188 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8189 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8190 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8191 (amd64_linux_sigcontext_addr): Renamed from
8192 x86_64_linux_sigcontext_addr.
8193 (amd64_linux_sc_reg_offset): Renamed from
8194 x86_64_linux_sc_reg_offset.
8195 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8196 Adjust for renamed functions and variables.
8197 (_initialize_amd64_linux_tdep): Renamed from
8198 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8199 variables.
8200 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8201 Adjust for renamed functions.
8202
430eaf2e
MK
8203 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8204 from x86_64_linux_gregset64_reg_offset.
8205 (amd64_linux_gregset32_reg_offset): Rename from
8206 x86_64_linux_gregset64_reg_offset.
8207 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8208 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8209 (amd64_linux_dr_set_control): Renamed from
8210 x86_64_linux_dr_set_control. Adjust for renamed functions.
8211 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8212 Adjust for renamed functions.
8213 (amd64_linux_dr_reset_addr): Renamed from
8214 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8215 (amd64_linux_dr_get_status): Renamed from
8216 x86_64_linux_dr_get_status. Adjust for renamed functions.
8217 (_initialize_amd64_linux_nat): Renamed from
8218 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8219 functions.
8220 * config/i386/nm-x86-64linux.h: Update copyright year.
8221 Adjust for renamed functions.
8222
10fc94a4
MK
8223 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8224 amd64fbsd_sigtramp_start.
8225 (amd64fbsd_sigtramp_end_addr): Renamed from
8226 amd64fbsd_sigtramp_end.
8227 (amd64fbsd_init_abi): Adjust for renamed variables.
8228 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8229 variables.
8230 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8231 amd64fbsd_sigtramp_start.
8232 (amd64fbsd_sigtramp_end_addr): Renamed from
8233 amd64fbsd_sigtramp_end.
8234
343af405
AC
82352004-02-22 Andrew Cagney <cagney@redhat.com>
8236
537987fc
AC
8237 * hppa-tdep.c (hppa32_return_value): New function.
8238 (hppa64_return_value): New function.
8239 (hppa_gdbarch_init): Set return_value; keep disabled.
8240
fad850b2
AC
8241 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8242 struct-return and inferior function call methods.
8243
26d08f08
AC
8244 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8245 "frame-base.h".
8246 (struct hppa_frame_cache): Define.
8247 (hppa_frame_cache, hppa_frame_this_id): New functions.
8248 (hppa_frame_prev_register): New function.
8249 (hppa_frame_unwind, hppa_frame_base): New variables.
8250 (hppa_frame_unwind_sniffer): New function.
8251 (hppa_frame_base_address, hppa_unwind_pc): New function.
8252 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8253 sniffer, and frame base sniffer; keep disabled.
8254 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8255 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8256
e7d7bd65
AC
8257 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8258 to predicates for "seriously old code".
8259
e963316f
AC
8260 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8261 runtime if(0).
8262
56132691
AC
8263 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8264 unsigned.
8265 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8266
343af405
AC
8267 * config/pa/tm-hppa.h: Update copyright.
8268 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8269 (deprecated_init_frame_pc_default): Delete declaration.
8270 (hppa_frame_init_saved_regs): Delete declaration.
8271 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8272 * hppa-tdep.c: Include "arch-utils.h".
8273 (hppa_gdbarch_init): Set deprecated init_frame_pc
8274 and deprecated frame_init_saved_regs.
8275 (hppa_frame_init_saved_regs): Make static.
8276
f5859b4d
MK
82772004-02-22 Mark Kettenis <kettenis@gnu.org>
8278
86f6f8e7 8279 Remove old 386BSD support.
cf7c5c23 8280 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8281 * configure.host: Remove i[34567]86-*-bsd*.
8282 * configure.tgt: Remove i[34567]86-*-bsd*.
8283 * i386b-nat.c: Removed.
8284 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8285 (i386b-nat.o): Remove dependencies.
8286
86f6f8e7
MK
8287 * config/i386/i386bsd.mh: Removed.
8288 * config/i386/i386bsd.mt: Removed.
8289 * config/i386/nm-i386bsd.h: Removed.
8290 * config/i386/tm-i386bsd.h: Removed.
8291 * config/i386/xm-i386bsd.h: Removed.
8292
971218cd
MK
8293 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8294
7e654c37
MK
8295 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8296 (amd64fbsd_init_abi): Set link map offsets.
8297 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8298 (amd64nbsd_init_abi): Set link map offsets.
8299 * amd64obsd-tdep.c: Include "solib-svr4.h".
8300 (amd64obsd_init_abi): Set link map offsets.
8301 * i386fbsd-tdep.c: Include "solib-svr4.h".
8302 (i386fbsd_init_abi): Set link map offsets.
8303 * i386nbsd-tdep.c: Include "solib-svr4.h".
8304 (i386nbsdelf_init_abi): Set link map offsets.
8305 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8306 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8307 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8308 solib-legacy.o and core-aout.o. Reformat.
8309 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8310 solib-svr4.o, solib-legacy.o. Reformat.
8311 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8312 * config/i386/nbsdelf.mh: Reformat.
8313 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8314 solib-svr4.o, solib-legacy.o and corelow.o.
8315 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8316 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8317 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8318 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8319 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8320 (TM_FILE): Set to tm-fbsd.h.
8321 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8322 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8323 solib-svr4.o.
8324 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8325 solib-svr4.o.
8326 (TM_FILE): Set to nm-nbsd.h.
8327 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8328 Simplify shared library support. Don't include "elf/common.h".
8329 (SVR4_SHARED_LIBS): Don't define.
8330 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8331 "solib.h".
8332 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8333 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8334 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8335 Don't include "i386/tm-i386.h". Include "solib.h".
8336 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8337 Don't include "i386/tm-i386.h".
8338 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8339 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8340 Include "i386/xm-i386.h".
8341 (HOST_LONG_DOUBLE_FORMAT): Remove.
8342
5d93ae8c
MK
8343 Fix OpenBSD/i386 sigtramp recognition.
8344 * i386-tdep.h: Update copyright year.
8345 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8346 (i386bsd_sigtramp_end): New prototypes.
8347 (i386fbsd_sigtramp_start_addr): Renamed from
8348 i386fbsd_sigtramp_start.
8349 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8350 (i386obsd_sigtramp_start_addr): Renamed from
8351 i386obsd_sigtramp_start.
8352 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8353 * i386bsd-tdep.c: Update copyright year.
8354 (i386bsd_pc_in_sigtramp): Make public.
8355 * i386fbsd-nat.c: Update copyright year.
8356 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8357 * i386fbsd-tdep.c: Update copyright year.
8358 (i386fbsd_sigtramp_start_addr): Renamed from
8359 i386fbsd_sigtramp_start.
8360 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8361 (i386fbsdaout_init_abi): Adjust for renamed variables.
8362 * i386obsd-nat.c: Update copyright year.
8363 (_initialize_i386obsd_nat): Adjust for renamed variables.
8364 * i386obsd-tdep.c: Include "target.h".
8365 (i386obsd_page_size): New variable.
8366 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8367 (i386obsd_sigtramp_end): New functions.
8368 (i386obsd_sigtramp_start_addr): Renamed from
8369 i386obsd_sigtramp_start.
8370 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8371 (i386obsd_init_abi): Adjust for renamed variables. Set
8372 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8373 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8374
84d04465
MK
8375 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8376 trampoline change in OpenBSD kernel.
8377
b053aceb
MK
8378 * amd64-nat.c: Update copyright year.
8379 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8380 architecture from REGCACHE.
8381
f5859b4d
MK
8382 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8383 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8384
e4bbbda8
MK
83852004-02-21 Mark Kettenis <kettenis@gnu.org>
8386
ba361932
MK
8387 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8388 i[34567]86-*-openbsd3.[0-3].
8389 * config/i386/obsdaout.mh: New file.
8390
d3e48264
MK
8391 * config/i386/obsd.mh (MH_FLAGS): Remove.
8392
60a6eeb6
MK
8393 Fix PR build/1549.
8394 * i386obsd-tdep.c: Update copyright years. Include
8395 "solib-svr4.h".
8396 (i386obsd_init_abi): Don't set regset_from_core_section here.
8397 (i386obsd_aout_init_abi): New function. Set
8398 regset_from_core_section here.
8399 (i386obsd_elf_init_abi): New function.
8400 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8401 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8402 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8403 (TM_FILE): Set to tm-nbsd.h.
8404
8405 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8406 solib-sunos.o.
8407
e4bbbda8
MK
8408 * solib-svr4.h: Update copyright year.
8409 (svr4_ilp32_fetch_link_map_offsets)
8410 (svr4_lp64_fetch_link_map_offsets): New prototype.
8411 * solib-svr4.c: Update copyright year.
8412 (svr4_ilp32_fetch_link_map_offsets)
8413 (svr4_lp64_fetch_link_map_offsets): New function.
8414
f6fe98ef
DJ
84152004-02-20 Daniel Jacobowitz <drow@mvista.com>
8416
8417 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8418 to the partial symbol table.
8419
589ca796
JB
84202004-02-20 J. brobecker <brobecker@gnat.com>
8421
8422 * PROBLEMS: Add description of problem documented under gdb/1560.
8423
2031c21a
MK
84242004-02-20 Mark Kettenis <kettenis@gnu.org>
8425
30b344b1
MK
8426 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8427 comments.
8428 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8429 functions.
8430 (amd64obsd_init_abi): Reorder initializations. Use
8431 amd64obsd_r_reg_offset to initialize the general-purpose register
8432 set details. Set regset_from_core_section.
8433 (_initialize_amd64obsd_tdep): Rename from
8434 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8435 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8436 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8437
2031c21a
MK
8438 * NEWS (New native configurations): Mention OpenBSD/alpha.
8439 * configure.tgt: Add alpha*-*-openbsd*.
8440 * configure.host: Add alpha*-*-openbsd*.
8441 * alphanbsd-tdep.c: Update copyright year.
8442 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8443
42471775
AC
84442004-02-20 Andrew Cagney <cagney@redhat.com>
8445
8446 Fix PR tdep/1372.
8447 * configure.tgt: Delete target "none-*-*".
8448 * configure.host: Delete host "none-*-*".
8449 * config/none/none.mh: Delete file.
8450 * config/none/none.mt: Delete file.
8451 * config/none/xm-none.h: Delete file.
8452 * config/none/tm-none.h: Delete file.
8453 * config/none/nm-none.h: Delete file.
8454
960ccd7d
FF
84552004-02-19 Fred Fish <fnf@redhat.com>
8456
8457 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8458 cache->uses_fp prior to setting it.
8459
5f883edd
FF
84602004-02-19 Fred Fish <fnf@redhat.com>
8461
8462 Fix for PR breakpoint/1558.
8463 * sh-tdep.c (IS_JSR): New macro.
8464 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8465
f98c22d5
JB
84662004-02-19 Jim Blandy <jimb@redhat.com>
8467
8468 * findvar.c (value_from_register): Doc fix.
8469
95051d27
JJ
84702004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8471
8472 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8473 type being greater than sizeof of host's LONGEST. Always use
8474 unpack_long() unless format 'f' chosen.
8475
ccefbec3
EZ
84762004-02-19 Joel Brobecker <brobecker@gnat.com>
8477
8478 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8479
ccefbec3
EZ
8480 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8481 contains a symbol wich is the best, non-exact match for the given
8482 pc. Update comments.
8483
84842004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8485
2ede629f
EZ
8486 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8487 macro, which was part of the now removed Mach 3 port.
8488 * utils.c (request_quit): Ditto.
8489
567ee972
MK
84902004-02-18 Mark Kettenis <kettenis@gnu.org>
8491
8492 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8493 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8494
50cca7bb
MK
84952004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8496
8497 Committed by Mark Kettenis <kettenis@gnu.org>.
8498
8499 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8500 Define.
8501
226361c4
AC
85022004-02-18 Andrew Cagney <cagney@redhat.com>
8503
8504 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8505 CONFIG_INSTALL and CONFIG_UNINSTALL.
8506 * configure: Re-generate.
8507 * interps.h (INTERP_TUI): Define.
8508 * Makefile.in: Update dependencies.
8509 (TUI): New macro.
8510 (tui-main.o): Specify dependencies.
8511 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8512 * tui/tui-main.c: New file.
8513
49cfa46f
MK
85142004-02-18 Mark Kettenis <kettenis@gnu.org>
8515
e2879ccb
MK
8516 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8517 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8518 dependencies.
8519 * configure.host: Add x86_64-*-openbsd*.
8520 * configure.tgt: Add x86_64-*-openbsd*.
8521 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8522
c43f4bec
MK
8523 * tui/tui.c: Don't include <malloc.h>.
8524
09ae75b6
MK
8525 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8526 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8527 amd64nbsd-tdep.c.
8528
49cfa46f 8529 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8530 static. Remove extraneous whitespace.
49cfa46f
MK
8531 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8532 static.
8533
05957fdb
JB
85342004-02-17 Jim Blandy <jimb@redhat.com>
8535
8536 * findvar.c (value_from_register): Doc fix.
8537
d0f54f9d
JB
85382004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8539
8540 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8541
8a1dac83 8542 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8543 CORE_ADDR as type for selectors. Correct types for GNU run time
8544 message lookup function to use double indirection.
8545 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8546 * objc-lang.h (lookup_child_selector): Adapt prototype.
8547
9cbd5950
JB
8548 * s390-nat.c (SUBOFF): New macro.
8549 (supply_gregset, fill_gregset): Use it to handle debugging
8550 of 32-bit exectuables running under a 64-bit kernel.
8551 * s390-tdep.c: Include "solib-svr4.h".
8552 (s390_svr4_fetch_link_map_offset): New function.
8553 (s390x_svr_fetch_link_map_offset): Likewise.
8554 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8555 * Makefile.in (s390-tdep.o): Update dependencies.
8556
a8c99f38
JB
8557 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8558 "frame-unwind.h".
8559 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8560 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8561 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8562 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8563 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8564 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8565 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8566 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8567 (struct frame_extra_info): Remove.
8568 (s390_memset_extra_info): Remove.
f73b1eff
JB
8569 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8570 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8571 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8572 (is_rse): Renamed to ...
8573 (is_rsy): ... this. Support long displacements.
8574 (is_rxe): Renamed to ...
8575 (is_rxy): ... this. Support long displacements.
8576 (compute_x_addr): Support long displacements.
8577 (struct s390_prologue_data): New data type.
8578 (s390_on_stack): Change API to use struct s390_prologue_data.
8579 (s390_store): Reimplement.
8580 (s390_load): New function.
8581 (s390_get_signal_frame_info): Remove.
8582 (s390_get_frame_info): Remove, replace by ...
8583 (s390_analyze_prolog): ... this new function.
8584 (s390_check_function_end): Remove.
8585 (s390_function_start): Remove.
8586 (s390_frameless_function_invokation): Remove.
8587 (s390_is_sigreturn): Remove.
8588 (s390_init_frame_pc_first): Remove.
8589 (s390_init_frame_extra_info): Remove.
8590 (s390_frame_init_saved_regs): Remove.
8591 (s390_frame_saved_pc_nofix): Remove.
8592 (s390_frame_saved_pc): Remove.
8593 (s390_frame_chain): Remove.
8594 (s390_fp_regnum, s390_read_fp): Remove.
8595 (s390_pop_frame_regular, s390_pop_frame): Remove.
8596 (s390_saved_pc_after_call): Remove.
8597 (s390_skip_prologue): Reimplement.
8598 (s390_in_function_epilogue_p): Support long displacements.
8599 (struct s390_unwind_cache): New data structure.
8600 (s390_frame_unwind_cache): New function.
8601 (s390_prologue_frame_unwind_cache): Likewise.
8602 (s390_backchain_frame_unwind_cache): Likewise.
8603 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8604 (s390_frame_unwind): Define.
8605 (s390_frame_sniffer): New function.
8606 (struct s390_pltstub_unwind_cache): New data structure.
8607 (s390_pltstub_frame_unwind_cache): New function.
8608 (s390_pltstub_frame_this_id): Likewise.
8609 (s390_pltstub_frame_prev_register): Likewise.
8610 (s390_pltstub_frame_unwind): Define.
8611 (s390_pltstub_frame_sniffer): New function.
8612 (struct s390_sigtramp_unwind_cache): New data structure.
8613 (s390_sigtramp_frame_unwind_cache): New function.
8614 (s390_sigtramp_frame_this_id): Likewise.
8615 (s390_sigtramp_frame_prev_register): Likewise.
8616 (s390_sigtramp_frame_unwind): Define.
8617 (s390_sigtramp_frame_sniffer): New function.
8618 (s390_frame_base_address, s390_local_base_address): New functions.
8619 (s390_frame_base): Define.
8620 (s390_unwind_pc, s390_unwind_sp): New function.
8621 (s390_push_dummy_call): Use new frame base location.
8622 (s390_unwind_dummy_id): Likewise.
8623 (s390_gdbarch_init): Remove calls to:
8624 set_gdbarch_frameless_function_invocation,
8625 set_gdbarch_deprecated_init_frame_pc,
8626 set_gdbarch_deprecated_frame_chain,
8627 set_gdbarch_deprecated_frame_init_saved_regs,
8628 set_gdbarch_deprecated_pop_frame,
8629 set_gdbarch_deprecated_init_extra_frame_info,
8630 set_gdbarch_deprecated_init_frame_pc_first,
8631 set_gdbarch_deprecated_target_read_fp,
8632 set_gdbarch_deprecated_frame_saved_pc,
8633 set_gdbarch_deprecated_saved_pc_after_call,
8634 set_gdbarch_deprecated_fp_regnum.
8635 Add calls to:
8636 set_gdbarch_in_solib_call_trampoline,
8637 frame_unwind_append_sniffer,
8638 frame_base_set_default,
8639 set_gdbarch_unwind_pc,
8640 set_gdbarch_unwind_sp.
8641 * Makefile.in (s390-tdep.o): Update dependencies.
8642
b0cf273e
JB
8643 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8644 (S390_STACK_FRAME_OVERHEAD): Remove.
8645 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8646 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8647 (s390_promote_integer_argument): Remove.
8648 (s390_cannot_extract_struct_value_address): Remove.
8649 (s390_use_struct_convention, s390_store_struct_return): Remove.
8650 (s390_extract_return_value, s390_store_return_value): Remove.
8651 (s390_return_value_convention, s390_return_value): New functions.
8652 (is_float_singleton): Handle typedefs.
8a1dac83 8653 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8654 Remove, replace by ...
8655 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8656 s390_function_arg_integer): ... these new functions.
8657 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8658 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8659 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8660 Fill in tdep->abi.
8661 Remove calls to:
8662 set_gdbarch_deprecated_store_struct_return,
8663 set_gdbarch_deprecated_extract_return_value,
8664 set_gdbarch_deprecated_store_return_value,
8665 set_gdbarch_use_struct_convention,
8666 set_gdbarch_extract_struct_value_address,
8667 set_gdbarch_deprecated_pc_in_call_dummy,
8668 set_gdbarch_deprecated_push_arguments,
8669 set_gdbarch_deprecated_save_dummy_frame_tos,
8670 set_gdbarch_deprecated_push_return_address,
8671 set_gdbarch_deprecated_sizeof_call_dummy_words,
8672 set_gdbarch_deprecated_call_dummy_words,
8673 set_gdbarch_deprecated_dummy_write_sp.
8674 Add calls to:
8675 set_gdbarch_push_dummy_call,
8676 set_gdbarch_unwind_dummy_id,
8677 set_gdbarch_return_value.
8a1dac83 8678
e1457d83
JB
8679 * config/s390/nm-linux.h: Update comments.
8680 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8681 (STOPPED_BY_WATCHPOINT): Redefine.
8682 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8683 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8684 (s390_stopped_by_watchpoint): Likewise.
8685 (watch_area_cnt): Remove.
8686 * s390-nat.c: Update comments.
8687 (watch_area): Remove typedef.
8688 Global replace watch_area by struct watch_area.
8689 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8690 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8691 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8692 (s390_fix_watch_points): Remove pid argument,
8693 use s390_inferior_tid. Recompute area spanned by watchpoints.
8694 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8695 argument. Reimplement.
8696
d0f54f9d
JB
8697 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8698 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8699 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8700 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8701 core-regset.o.
8702 * config/s390/s390x.mt: Remove.
8703 * config/s390/tm-s390.h: Remove.
8704 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8705 (TARGET_ELF64): Remove.
8706 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8707 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8708 s390*-*-* case; always set gdb_target to s390.
8709 * regformats/reg-s390.dat: Remove control registers.
8710 * regformats/reg-s390x.dat: Likewise.
8711 * s390-tdep.h: New file.
8a1dac83 8712 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8713 Include "inferior.h" and "s390-tdep.h".
8714 Remove private definition of offsetof.
8715 (s390_register_u_addr): Remove.
8716 (regmap_gregset, regmap_fpregset): Define.
8717 (supply_gregset, fill_gregset): Reimplement.
8718 (supply_fpregset, fill_fpregset): Likewise.
8719 (s390_inferior_tid): New function.
8720 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8721 (fetch_inferior_registers, store_inferior_registers): Likewise.
8722 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8723 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8724 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8725 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8726 (struct gdbarch_tdep): Define.
8727 (struct s390_register_info): Define.
8728 (s390_register_info): New variable.
8729 (s390_register_name): Reimplement.
8730 (s390_register_type): New function.
8731 (s390_register_raw_size, s390x_register_raw_size): Remove.
8732 (s390_cannot_fetch_register): Remove.
8733 (s390_register_byte): Remove.
8734 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8735 (s390_dwarf_regmap): New variable.
8736 (s390_dwarf_reg_to_regnum): New function.
8737 (s390_stab_reg_to_regnum): Remove.
8738 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8739 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8740 (s390_convert_register_p): Likewise.
8741 (s390_register_to_value, s390_value_to_register): Likewise.
8742 (s390_register_reggroup_p): Likewise.
8743 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8744 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8745 (s390_supply_regset, s390_regset_from_core_section): New functions.
8746 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8747 (S390_FPR_SIZE): Likewise.
8748 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8749 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8750 (S390_NUM_GPRS): Move here from tm-s390.h.
8751 (S390_NUM_FPRS): Likewise.
8752 (s390_in_function_epilogue_p): New function.
8753 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8754 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8755 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8756 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8757 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8758 Remove calls to:
8759 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8760 set_gdbarch_deprecated_max_register_virtual_size,
8761 set_gdbarch_deprecated_register_byte,
d0f54f9d 8762 set_gdbarch_cannot_fetch_register,
8a1dac83 8763 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8764 set_gdbarch_deprecated_register_size,
8765 set_gdbarch_deprecated_register_raw_size,
8766 set_gdbarch_deprecated_register_virtual_size,
8767 set_gdbarch_deprecated_register_virtual_type,
8768 set_gdbarch_deprecated_register_bytes.
8769 Add calls to:
8770 set_gdbarch_num_pseudo_regs,
8771 set_gdbarch_register_type,
8772 set_gdbarch_convert_register_p,
8773 set_gdbarch_register_to_value,
8774 set_gdbarch_value_to_register,
8775 set_gdbarch_register_reggroup_p,
8776 set_gdbarch_regset_from_core_section,
8777 set_gdbarch_pseudo_register_read,
8778 set_gdbarch_pseudo_register_write,
8779 set_gdbarch_in_function_epilogue_p.
8780 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8781 (s390_tdep_h): New variable.
8782
8cfe231d
JB
87832004-02-17 Jim Blandy <jimb@redhat.com>
8784
4589a601
JB
8785 * findvar.c (value_from_register): If the type has no length, just
8786 return an acceptable value --- don't report an internal error.
8787
8cfe231d
JB
8788 * stabsread.c (read_type): If we find any type numbers that are
8789 forward references, complain if the references aren't resolved by
8790 the time we're finished reading.
8791 (cleanup_undefined_types): Make error message more appropriate for
8792 a complaint.
8793
5bf0017e
EZ
87942004-02-17 Elena Zannoni <ezannoni@redhat.com>
8795
9d62932d
EZ
8796 * Makefile.in (defs_h): Remove dependency on progress_h.
8797 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8798 progress.h.
8799 * main.c (captured_main): Delete use of START_PROGRESS and
8800 END_PROGRESS.
8801
88022004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8803
5bf0017e
EZ
8804 * objfiles.c (terminate_minimal_symbol_table): Add back
8805 initialization of MSYMBOL_TYPE.
8806
9fc9f5e2
AC
88072004-02-17 David Mosberger <davidm@hpl.hp.com>
8808
8809 Committed by Andrew Cagney.
8810 * Makefile.in (ia64_tdep_h): New macro.
8811 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8812 (ia64-tdep.o): Likewise.
8813 * ia64-tdep.h: New file.
8814 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8815 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8816 (ia64_aix_sigcontext_register_address): Likewise.
8817 (ia64_linux_getunwind_table): Delete declaration.
8818 * ia64-linux-tdep.c: Likewise.
8819
76cd2bd9
CV
88202004-02-17 Corinna Vinschen <vinschen@redhat.com>
8821
8822 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8823 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8824 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8825
634aa483
AC
88262004-02-17 Andrew Cagney <cagney@redhat.com>
8827
8828 * symtab.c (skip_prologue_using_sal): New function.
8829 * symtab.h (skip_prologue_using_sal): Declare.
8830 * frv-tdep.c: Include "symtab.h".
8831 (skip_prologue_using_sal): Delete function.
8832 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8833 * rs6000-tdep.c (refine_prologue_limit): Mention
8834 skip_prologue_using_sal.
8835 * ia64-tdep.c (refine_prologue_limit): Ditto.
8836 * Makefile.in: Update dependencies.
8837
88382004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8839
39ce7b3f
AC
8840 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8841 START_INFERIOR_TRAPS_EXPECTED.
8842 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8843 START_INFERIOR_TRAPS_EXPECTED.
8844 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8845 Delete macro.
8846 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8847 macro, moved to "nm-osf.h". Update copyright.
8848 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8849 update copyright.
8850
19772a2c
AC
8851 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8852 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8853 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8854 frameless_look_for_prologue.
8855 * frame.h (legacy_frameless_look_for_prologue): Rename
8856 frameless_look_for_prologue.
8857 * gdbarch.h, gdbarch.c: Re-generate.
8858 * sh64-tdep.c (sh64_gdbarch_init): Update.
8859 * sh-tdep.c (sh_gdbarch_init): Update.
8860 * s390-tdep.c (s390_gdbarch_init): Update.
8861 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8862 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8863 * m68k-tdep.c (m68k_gdbarch_init): Update.
8864 (delta68_frame_args_address): Update.
8865 * m32r-tdep.c (m32r_gdbarch_init): Update.
8866 * hppa-tdep.c (hppa_gdbarch_init): Update.
8867 * h8300-tdep.c (h8300_gdbarch_init): Update.
8868 * frv-tdep.c (frv_gdbarch_init): Update.
8869 (frv_frameless_function_invocation): Update.
8870 * cris-tdep.c (cris_gdbarch_init): Update.
8871 (cris_frameless_function_invocation): Update.
8872 * avr-tdep.c (avr_gdbarch_init): Update.
8873 * arm-tdep.c (arm_gdbarch_init): Update.
8874 * stack.c (frame_info): Update, call predicate.
8875 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8876 * frame.c (legacy_get_prev_frame): Update, call predicate..
8877 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8878 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8879 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8880 invocation.
8881 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8882 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8883 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8884
8885 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8886 function.
8887
7dcaac91
DJ
88882004-02-16 Daniel Jacobowitz <drow@mvista.com>
8889
8890 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8891 initializations.
8892
88289b6e
AC
88932004-02-16 Andrew Cagney <cagney@redhat.com>
8894
8895 * tui/tui-windata.c: Include "gdb_string.h".
8896 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8897 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8898 * Makefile.in: Update dependencies.
8899
9f976b41
DJ
89002004-02-16 Daniel Jacobowitz <drow@mvista.com>
8901
8902 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8903 * infrun.c: Include "gdb_assert.h".
8904 (singlestep_ptid, saved_singlestep_ptid)
8905 (stepping_past_singlestep_breakpoint): New variables.
8906 (resume): Set singlestep_ptid. Check for singlestep thread
8907 hop.
8908 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8909 (handle_inferior_event): Handle singlestep thread hop.
8910
c324d747
AC
89112004-02-16 Andrew Cagney <cagney@redhat.com>
8912
f090b9b1
AC
8913 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8914 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8915 (dwarf2_frame_init_reg): Ditto.
8916
fd33e6cb
AC
8917 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8918 suggested by Joshua Neuheisel
8919
c324d747
AC
8920 * configure.in: Always check for curses, including pdcurses.
8921 Warn, instead of error, when no curses are found. Enable TUI when
8922 curses is available.
8923 * configure: Re-generate.
8924
b66ba949
CV
89252004-02-16 Corinna Vinschen <vinschen@redhat.com>
8926
8927 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8928 sh_sh4_register_convert_to_virtual.
8929 (sh_register_convert_to_raw): Rename from
8930 sh_sh4_register_convert_to_raw.
8931 (sh_pseudo_register_read): Accomodate above name change.
8932 (sh_pseudo_register_write): Ditto.
8933
b58cbbf2
CV
89342004-02-16 Corinna Vinschen <vinschen@redhat.com>
8935
8936 * sh-tdep.c (sh_generic_register_name): Remove.
8937 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8938
5929a910
AC
89392004-02-15 Andrew Cagney <cagney@redhat.com>
8940
4566dfcf
AC
8941 * configure.in (build_warnings): Add -Wunused-function.
8942 * configure: Re-generate.
8943
db11ed55
AC
8944 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8945 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8946
46ac7a5d
AC
8947 * procfs.c (procfs_init_inferior): Assume that
8948 START_INFERIOR_TRAPS_EXPECTED is defined.
8949 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8950 * config/ns32k/tm-nbsd.h: Delete file,
8951 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8952
ba801595
AC
8953 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8954 * config/vax/tm-vax.h: Delete file.
8955
5929a910
AC
8956 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8957 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8958 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8959 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8960 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8961 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8962 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8963
8f22cb90
MK
89642004-02-15 Mark Kettenis <kettenis@gnu.org>
8965
8966 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8967 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8968 (struct dwarf2_frame_ops): New.
8969 (dwarf2_frame_default_init_reg): New function, based on
8970 dwarf2_frame_init_reg.
8971 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8972 (dwarf2_frame_init_reg): Call architecture-specific function.
8973 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8974 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8975 instead of dwarf2_frame_data.
8976 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8977 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8978
8132723e
AC
89792004-02-15 Andrew Cagney <cagney@redhat.com>
8980
046a4708
AC
8981 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8982 register_gdbarch_swap.
8983 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8984 * f-lang.c (_initialize_f_language): Update, use
8985 DEPRECATED_REGISTER_GDBARCH_SWAP.
8986 * remote.c (_initialize_remote): Ditto.
8987 * regcache.c (_initialize_regcache): Ditto.
8988 * parse.c (_initialize_parse): Ditto.
8989 * infrun.c (_initialize_infrun): Ditto.
8990 * mi/mi-main.c (_initialize_mi_main): Ditto.
8991 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8992
549c1eea
AC
8993 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8994 poking .cacheable directly.
8995 * symfile.c (symfile_bfd_open): Ditto.
8996
0c0b39de
AC
8997 * Makefile.in: Update all dependencies.
8998
8132723e
AC
8999 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9000 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9001 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9002 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9003 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9004
b9d26eb9
AC
90052004-02-14 Andrew Cagney <cagney@redhat.com>
9006
8e1f669a
AC
9007 * arch-utils.c (legacy_convert_register_p): Check
9008 DEPRECATED_REGISTER_CONVERTIBLE_P.
9009 * findvar.c (value_of_register): Ditto.
9010
cd0bfa36
AC
9011 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9012 * gdbarch.h, gdbarch.c: Re-generate.
9013 * arch-utils.c (deprecated_register_convertible_not): Delete.
9014 * arch-utils.h (deprecated_register_convertible_not): Delete.
9015 * mi/mi-main.c (get_register): Update. Update copyright.
9016 * infcmd.c (default_print_registers_info): Update.
9017
b9d26eb9
AC
9018 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9019 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9020 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9021 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9022 * frame.c (deprecated_get_next_frame_hack): Delete function.
9023 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9024 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9025 Update.
9026 * infcall.c (call_function_by_hand): Update.
9027
9ab9195f
EZ
90282004-02-14 Elena Zannoni <ezannoni@redhat.com>
9029
9030 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9031 from here...
9ab9195f
EZ
9032 * objfiles.c (init_entry_point_info, entry_point_address):..to
9033 here.
9034 * symfile.h (init_entry_point_info, entry_point_address): Remove
9035 prototypes.
9036 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9037 prototypes.
9ab9195f
EZ
9038 * cris-tdep.c: Remove include of symfile.h. Add include of
9039 objfiles.h.
9040 * infcall.c: Ditto.
9041 * mcore-tdep.c: Ditto.
9042 * mn10300-tdep.c: Ditto.
9043 * sh64-tdep.c: Ditto.
9044 * v850-tdep.c: Ditto.
9045 * arm-tdep.c: Remove include of symfile.h.
9046 * blockframe.c: Ditto.
9047 * coffread.c: Ditto.
9048 * dbxread.c: Ditto.
9049 * dwarf2read.c: Ditto.
9050 * dwarfread.c: Ditto.
8a1dac83 9051 * frv-tdep.c: Ditto.
9ab9195f
EZ
9052 * ia64-tdep.c: Ditto.
9053 * mdebugread.c: Ditto.
9054 * mipsread.c: Ditto.
8a1dac83 9055 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9056 * s390-tdep.c: Ditto.
9057 * sh-tdep.c: Ditto.
8a1dac83 9058 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9059 * gdbarch.sh: Remove include of symfile.h.
9060 * gdbarch.c: Regenerate.
9061 * solib-irix.c (enable_break): Use entry_point_address().
9062 Add comment about include file.
9063 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9064 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9065 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9066 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9067 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9068 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9069
c4c5b7ba
AC
90702004-02-13 Andrew Cagney <cagney@redhat.com>
9071
9072 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9073 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9074 copyright.
9075 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9076
3e7879de
FF
90772004-02-12 Fred Fish <fnf@redhat.com>
9078
9079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9080 set_gdbarch_store_return_value.
9081
6a7760b6
AC
90822004-02-12 Andrew Cagney <cagney@redhat.com>
9083
9084 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9085 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9086 (interrupt_query): Ditto.
9087 (ofunc): Delete unused variable.
9088 * cris-tdep.c (cris_abi): Delete unused function.
9089 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9090 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9091 (cris_get_asr_quick_shift_steps): Ditto.
9092 (cris_skip_prologue_frameless_p): Ditto.
9093 * arm-tdep.c (arm_push_return_address): Delete unused function.
9094 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9095 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9096 * s390-tdep.c (s390_function_start): Delete unused function.
9097
31687c3c
AC
90982004-02-12 Andrew Cagney <cagney@redhat.com>
9099
9100 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9101 gdbarch.h, gdbarch.c: Re-generate.
9102 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9103 to generic_prologue_frameless_p.
9104 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9105 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9106
6de918a6
DJ
91072004-02-11 Daniel Jacobowitz <drow@mvista.com>
9108
9109 * mips-linux-tdep.c: Include "frame.h".
9110 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9111 (mips_linux_skip_resolver): New functions.
9112 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9113 and set_gdbarch_in_solib_call_trampoline.
9114 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9115 to after set_gdbarch_in_solib_return_trampoline. Only set the
9116 solib hooks to mips16 functions if the OS ABI is unknown.
9117 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9118 including "config/tm-linux.h".
9119 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9120 * Makefile.in (mips-linux-tdep.o): Update.
9121
87b3ede8
DC
91222004-02-11 David Carlton <carlton@kealia.com>
9123
9124 * linespec.c (decode_compound): Only look for a class symbol when
9125 considering all but the rightmost component.
9126
5979bc46
AC
91272004-02-11 Andrew Cagney <cagney@redhat.com>
9128
9129 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9130 abi code are are separatly grouped.
9131
5867a2fb
AC
91322004-02-11 Andrew Cagney <cagney@redhat.com>
9133
9134 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9135 * gdbarch.h, gdbarch.c: Re-generate.
9136 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9137 * v850-tdep.c (v850_gdbarch_init): Update.
9138 * sh64-tdep.c (sh64_gdbarch_init): Update.
9139 * sh-tdep.c (sh_gdbarch_init): Update.
9140 * s390-tdep.c (s390_gdbarch_init): Update.
9141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9142 * mips-tdep.c (mips_gdbarch_init): Update.
9143 * mcore-tdep.c (mcore_gdbarch_init): Update.
9144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9145 * m32r-tdep.c (m32r_gdbarch_init): Update.
9146 * ia64-tdep.c (ia64_gdbarch_init): Update.
9147 * hppa-tdep.c (hppa_gdbarch_init): Update.
9148 * h8300-tdep.c (h8300_gdbarch_init): Update.
9149 * frv-tdep.c (frv_gdbarch_init): Update.
9150 * d10v-tdep.c (d10v_gdbarch_init): Update.
9151 * cris-tdep.c (cris_gdbarch_init): Update.
9152 * avr-tdep.c (avr_gdbarch_init): Update.
9153 * arm-tdep.c (arm_gdbarch_init): Update.
9154 * alpha-tdep.c (alpha_gdbarch_init): Update.
9155
026a72f8
CV
91562004-02-11 Corinna Vinschen <vinschen@redhat.com>
9157
9158 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9159 comma.
9160 (sh_sh4al_dsp_register_name): Ditto.
9161
3903d437
AC
91622004-02-10 Andrew Cagney <cagney@redhat.com>
9163
9164 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9165 (mips_init_frame_pc_first): Delete function.
9166 (mips_frame_saved_pc): Delete function.
9167 (mips_frame_chain): Delete function.
9168 (mips_init_extra_frame_info): Delete function.
9169 (mips_xfer_register): Delete unused variable "reg".
9170 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9171 (mips_n32n64_return_value): Delete unused variable "reg".
9172 (mips_n32n64_return_value): Delete unused variable "pos".
9173 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9174 (mips_o32_return_value): Delete unused variable "pos".
9175 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9176 (mips_print_fp_register): Delete unused variable "namelen"
9177 (mips_print_fp_register): Delete unused variable "flt2"
9178 (get_frame_pointer): Delete function.
9179 (cached_proc_desc): Delete static variable.
9180 (mips_pop_frame): Delete function.
9181 (mips_find_saved_regs): Delete function.
9182 (mips_get_saved_register): Delete function.
9183 (mips_saved_pc_after_call): Delete function.
9184 (SIGFRAME_BASE): Delete macro.
9185 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9186 (SIGFRAME_PC_OFF): Delete macro.
9187 (SIGFRAME_REGSAVE_OFF): Delete macro.
9188 (mips_dump_tdep): Do not print deleted macro definitions.
9189
b9fb98bd
AC
91902004-02-10 Andrew Cagney <cagney@redhat.com>
9191
9192 * Makefile.in (SFILES): Remove explictly listed tui files.
9193 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9194
78ced177 91952004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9196
78ced177
JJ
9197 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9198 to use paddr functions to format ia64 addresses and long values.
9199 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9200 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9201 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9202 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9203 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9204
6a83354a
AC
92052004-02-10 Andrew Cagney <cagney@redhat.com>
9206
9207 * defs.h: Do not include "tui.h".
9208 * gdb_curses.h: New file.
9209 * tui/tui-hooks.h: New file.
9210 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9211 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9212 (tui_initialize_io): Delete declaration.
9213 (tui_initialize_readline: Delete redundant declaration.
9214 (struct tui_point): Delete definition.
9215 * tui/tui-data.h (struct tui_point): Define.
9216 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9217 * utils.c: Include "tui/tui.h".
9218 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9219 * printcmd.c [TUI]: Include "tui/tui.h".
9220 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9221 * tui/tui-command.c: Include "gdb_curses.h".
9222 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9223 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9224 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9225 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9226 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9227 * Makefile.in: Update all dependencies.
9228 (tui_hooks_h, gdb_curses_h): Define.
9229 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9230
997470ef
EZ
92312004-02-10 Elena Zannoni <ezannoni@redhat.com>
9232
9233 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9234 auxf2. Add comments about some other rarely used fields.
9235
4ff2cc4d
AC
92362004-02-10 Andrew Cagney <cagney@redhat.com>
9237
9238 * Makefile.in (init.c): Fix script removing duplicates. Problem
9239 reported by Peter Schauer.
9240
1ab21617
EZ
92412004-02-09 Elena Zannoni <ezannoni@redhat.com>
9242
9243 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9244 obstack_specify_allocation.
9245 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9246 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9247 (allocate_rt_common_objfile): Ditto.
9248 * symfile.c (reread_symbols): Ditto.
9249 * gdb_obstack.h: Add comment.
9250
17763fd9
EZ
92512004-02-09 Elena Zannoni <ezannoni@redhat.com>
9252
9253 * linespec.c (decode_line_1, locate_first_half)
9254 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9255 commented out code.
9256
ec5cdd75
DJ
92572004-02-09 Daniel Jacobowitz <drow@mvista.com>
9258
9259 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9260 obstack_free.
9261
43b54b88
AC
92622004-02-09 Andrew Cagney <cagney@redhat.com>
9263
9264 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9265 fails, try find_pc_section. Fix PR c++/1267.
9266 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9267 instead of find_pc_mapped_section.
9268 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9269 not default to the section containing PC. Fix PR symtab/1519.
9270
edfae063
AC
92712004-02-09 Andrew Cagney <cagney@redhat.com>
9272
9273 * Makefile.in (mips-tdep.o): Update dependencies.
9274 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9275 "trad-frame.h".
9276 (mips_unwind_pc): Return the pseudo PC register.
9277 (mips_unwind_dummy_id): New function.
9278 (mips16_fetch_instruction): New function.
9279 (mips32_fetch_instruction): New function.
9280 (struct mips_frame_cache): Define.
9281 (mips_mdebug_frame_cache): New function.
9282 (mips_mdebug_frame_this_id): New function.
9283 (mips_mdebug_frame_prev_register): New function.
9284 (mips_mdebug_frame_unwind): Define.
9285 (mips_mdebug_frame_sniffer): New function.
9286 (mips_mdebug_frame_base_address): New function.
9287 (mips_mdebug_frame_base): Define.
9288 (mips_mdebug_frame_base_sniffer): New function.
9289 (mips_gdbarch_init): Append unwind and base sniffers. Set
9290 unwind_dummy_id.
9291
defc864c
AC
92922004-02-08 Andrew Cagney <cagney@redhat.com>
9293
6764ddad
AC
9294 * frame.c: Print both the register number and name.
9295
defc864c
AC
9296 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9297 and a sed into a single sed. Make .c and .o patterns more robust.
9298 (OBS): Delete.
9299 (INIT_FILES): Replace OBS with COMMON_OBS.
9300 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9301
645d6d10
MK
93022004-02-08 Mark Kettenis <kettenis@gnu.org>
9303
9304 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9305 the PT_WCOOKIE request.
9306
23e3c3fc
AC
93072004-02-08 Andrew Cagney <cagney@redhat.com>
9308
58dfe9ff
AC
9309 * mips-tdep.c (mips_unwind_pc): New function.
9310 (mips_gdbarch_init): Set mips_unwind_pc.
9311
1152e35e
AC
9312 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9313 (get_frame_id): Allow the UNKNOWN_FRAME.
9314 (frame_register_unwind, get_frame_type): Ditto.
9315
31b75dbf
AC
9316 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9317 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9318 unwind_dummy_id indicates a legacy frame.
9319
3483b318
AC
9320 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9321 * configure: Re-generate.
9322
23e3c3fc
AC
9323 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9324 methods.
9325
33f8ca73
AC
93262004-02-08 Andrew Cagney <cagney@redhat.com>
9327
9328 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9329 makefile macro.
9330 * configure: Re-generate.
9331 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9332 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9333 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9334 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9335 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9336 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9337 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9338 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9339 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9340 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9341
6ba8e26f 93422004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9343
20d286a5
AC
9344 * Makefile.in: Update all dependencies.
9345
d836ee13
AC
9346 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9347 * configure: Re-generate.
9348 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9349 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9350 (COMMON_OBS): Add "main.o" and "annotate.o".
9351 (ANNOTATE_OBS): Delete.
9352 (OBS): Remove ANNOTATE_OBS.
9353 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9354 CONFIG_INITS.
9355 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9356 against CONFIG_OBS and "main.o".
9357 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9358 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9359
d02c80cd
AC
9360 * tui/tui-command.c: Include "gdb_string.h", delete register
9361 attribute, use ISO-C function signatures.
9362 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9363 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9364 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9365 * tui/tui.c: Ditto.
6ba8e26f
AC
9366
9367 * tui/tui-command.c: Change variable and function names to lower
9368 case.
9369 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9370 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9371 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9372 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9373 * tui/tui-winsource.c, tui/tui.c: Ditto.
9374
4a146b47
EZ
93752004-02-07 Elena Zannoni <ezannoni@redhat.com>
9376
9377 * buildsym.c (free_pending_blocks, finish_block)
9378 (record_pending_block, make_blockvector, end_symtab): Replace
9379 symbol_obstack with objfile_obstack.
8a1dac83 9380 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9381 (coff_read_enum_type): Ditto.
8a1dac83 9382 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9383 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9384 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9385 (dwarf2_symbol_mark_computed): Ditto.
9386 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9387 * elfread.c (elf_symtab_read): Ditto.
9388 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9389 (hpread_read_enum_type, hpread_read_function_type)
9390 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9391 Ditto.
8a1dac83 9392 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9393 (java_link_class_type): Ditto.
8a1dac83 9394 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9395 (new_symbol): Ditto.
9396 * minsyms.c (install_minimal_symbols): Ditto.
9397 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9398 (terminate_minimal_symbol_table): Replace symbol_obstack with
9399 objfile_obstack.
9400 (free_objfile): Remove freeing of symbol_obstack.
9401 * objfiles.h: Remove symbol_obstack field.
9402 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9403 objfile_obstack.
9404 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9405 symbol_obstack.
9406 (solib_add_common_symbols): Replace symbol_obstack with
9407 objfile_obstack.
9408 * somsolib.c (som_solib_add): Ditto.
9409 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9410 (common_block_start, common_block_end): Ditto.
9411 * symfile.c (reread_symbols): Remove freeing and init of
9412 symbol_obstack.
9413 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9414 * symfile.h: Update comment.
9415 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9416 stats printing.
9417 * symtab.c (symbol_set_names): Replace symbol_obstack with
9418 objfile_obstack.
9419 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9420 Update comments.
9421 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9422 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9423 objfile_obstack.
9424
6d012f14
AC
94252004-02-07 Andrew Cagney <cagney@redhat.com>
9426
9427 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9428 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9429 fields and variables.
9430 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9431 (m_beInvisible): Delete macro.
9432 * tui/tui-data.h: Fix case case fields and variables.
9433 (m_genWinPtrIsNull): Delete macro.
9434 (tui_win_list): Rename winList.
9435 (TUI_SRC_WIN): Rename srcWin.
9436 (TUI_DISASM_WIN): Rename disassemWin.
9437 (TUI_DATA_WIN): Rename dataWin.
9438 (TUI_CMD_WIN): Rename cmdWin.
9439 (m_genWinPtrNotNull): Delete macro.
9440 (m_winPtrIsNull): Delete macro.
9441 (m_winPtrNotNull): Delete macro.
9442 (tui_win_is_source_type): Replace m_winIsSourceType
9443 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9444 (tui_win_has_locator): Replace m_hasLocator.
9445 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9446 m_setWinHighlightOff.
9447 * tui/tui-data.c: Update references.
9448 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9449 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9450 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9451 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9452 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9453 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9454 * tui/tui-winsource.c, tui/tui.c: Ditto.
9455
7d34766b
MK
94562004-02-07 Mark Kettenis <kettenis@gnu.org>
9457
1c800673
MK
9458 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9459 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9460 StackGhost.
9461
7d34766b
MK
9462 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9463 variable `i6' to `i7'.
9464 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9465
22940a24
AC
94662004-02-07 Andrew Cagney <cagney@redhat.com>
9467
9468 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9469 (TuiPoint, TuiPointPtr): Ditto.
9470 (TuiStatus, TuiStatusPtr): Ditto.
9471 (TuiWinType, TuiWinTypePtr): Ditto.
9472 (struct tui_point): Rename _TuiPoint.
9473 (tui_get_low_disassembly_address): Rename
9474 tuiGetLowDisassemblyAddress.
9475 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9476 (tuiFree): Delete declaration.
9477 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9478 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9479 * tui/tui.c (tuiFree): Delete function.
9480 * cli/cli-cmds.c (disassemble_command): Update references.
9481 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9482 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9483 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9484 * tui/tui-winsource.c: Ditto.
9485
8b92e4d5
EZ
94862004-02-07 Elena Zannoni <ezannoni@redhat.com>
9487
9488 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9489 coffstab_build_psymtabs, elfstab_build_psymtabs)
9490 (stabsect_build_psymtabs): Replace psymbol_obstack with
9491 objfile_obstack.
9492 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9493 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9494 Ditto.
9495 * dwarfread.c (scan_compilation_units): Ditto.
9496 * elfread.c (elfstab_offset_sections): Ditto.
9497 * hppa-tdep.c (read_unwind_info): Ditto.
9498 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9499 (hpread_end_psymtab): Ditto.
9500 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9501 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9502 Ditto.
9503 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9504 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9505 (build_objfile_section_table): Ditto.
9506 (allocate_objfile): Remove init of psymbol_obstack.
9507 (free_objfile): Remove freeing of psymbol_obstack.
9508 * objfiles.h (struct objfile): Remove field
9509 psymbol_obstack. Update comments.
9510 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9511 psymbol_obstack with objfile_obstack.
9512 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9513 psymbol_obstack.
9514 * somread.c (som_symfile_offsets, init_import_symbols)
9515 (init_export_symbols): Replace psymbol_obstack with
9516 objfile_obstack.
9517 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9518 * symfile.c (default_symfile_offsets, syms_from_objfile)
9519 (reread_symbols): Remove freeing and init of psymbol_obstack.
9520 (cashier_psymtab): Update comment.
9521 * symmisc.c (print_objfile_statistics): Don't report stats for
9522 psymbol obstack.
9523 * symtab.h (struct general_symbol_info, struct partial_symtab):
9524 Update comments.
9525 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9526 (xcoff_symfile_offsets): Replace psymbol_obstack with
9527 objfile_obstack.
9528
b99607ea
EZ
95292004-02-07 Elena Zannoni <ezannoni@redhat.com>
9530
9531 * objfiles.h (struct objfile): Add objfile_obstack field.
9532 Remove type_obstack field.
9533
9534 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9535 read_structure_scope read_enumeration, new_symbol): Replace
9536 type_obstack with objfile_obstack.
9537 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9538 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9539 (lookup_fundamental_type): Ditto.
9540 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9541 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9542 (hpread_read_doc_function_type, hpread_read_struct_type)
9543 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9544 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9545 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9546 (java_link_class_type): Ditto.
9547 * mdebugread.c (parse_type): Ditto.
9548 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9549 * solib-sunos.c (solib_add_common_symbols): Ditto.
9550 * stabsread.c (define_symbol, read_type, read_member_functions,
9551 read_cpp_abbrev, read_one_struct_field): Ditto.
9552 * symfile.c (reread_symbols): Ditto.
9553 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9554
2a8854a7
AC
95552004-02-07 Andrew Cagney <cagney@redhat.com>
9556
9557 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9558 (tui_exec_info_content): Rename TuiExecInfoContent.
9559 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9560 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9561 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9562 (TuiList, TuiListPtr): Ditto.
9563 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9564 (TuiDataType, TuiDataTypePtr): Ditto.
9565 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9566 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9567 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9568 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9569 (TuiDataElement, TuiDataElementPtr): Ditto.
9570 (TuiWinElement, TuiWinElementPtr): Ditto.
9571 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9572 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9573 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9574 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9575 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9576 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9577 * tui/tui-command.c, tui/tui-data.c: Update references.
9578 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9579 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9580 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9581 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9582
05cbe71a
MK
95832004-02-07 Mark Kettenis <kettenis@gnu.org>
9584
9585 * dwarf2-frame.h: Update copyright.
9586 (enum dwarf2_frame_reg_rule): New.
9587 (struct dwarf2_frame_state_reg): New.
9588 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9589 * dwarf2-frame.c: Update copyright.
9590 (enum dwarf2_reg_rule): Remove.
9591 (struct dwarf2_frame_state): Remove defenition of `struct
9592 dwarf2_frame_state_reg'.
9593 (read_reg): Call get_frame_arch to get the architecture instead of
9594 using CURRENT_GDBARCH.
9595 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9596 DWARF2_FRAME_.
9597 (dwarf2_frame_init_reg): New function.
9598 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9599 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9600 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9601 tags with DWARF2_FRAME_.
9602 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9603 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9604 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9605
ec7d9e56
AC
96062004-02-06 Andrew Cagney <cagney@redhat.com>
9607
dd1abb8c
AC
9608 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9609 (enum tui_data_type): Rename _TuiDataType.
9610 (struct tui_layout_def): Rename _TuiLayoutDef.
9611 (struct tui_source_element): Rename _TuiSourceElement.
9612 (struct tui_data_element): Rename _TuiDataElement.
9613 (struct tui_command_element): Rename _TuiCommandElement.
9614 (struct tui_locator_element): Rename _TuiLocatorElement.
9615 (union tui_which_element): Define.
9616 (struct tui_win_element): Rename _TuiWinElement.
9617 (struct tui_data_info): Rename _TuiDataInfo.
9618 (struct tui_source_info): Rename _TuiSourceInfo.
9619 (struct tui_command_info): Rename _TuiCommandInfo.
9620 (tui_initialize_static_data): Rename initializeStaticData.
9621 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9622 (tui_alloc_win_info): Rename allocWinInfo.
9623 (tui_init_generic_part): Rename initGenericPart.
9624 (tui_init_win_info): Rename initWinInfo.
9625 (tui_alloc_content): Rename allocContent.
9626 (tui_add_content_elements): Rename addContentElements.
9627 (tui_init_content_element): Rename initContentElement.
9628 (tui_free_window): Rename freeWindow.
9629 (tui_free_win_content): Rename freeWinContent.
9630 (tui_free_data_content): Rename freeDataContent.
9631 (tui_free_all_source_wins_content): Rename
9632 freeAllSourceWinsContent.
9633 (tui_del_window): Rename tuiDelWindow.
9634 (tui_del_data_windows): Rename tuiDelDataWindows.
9635 (tui_partial_win_by_name): Rename partialWinByName.
9636 (tui_win_name): Rename winName.
9637 (tui_current_layout): Rename currentLayout.
9638 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9639 (tui_term_height): Rename termHeight.
9640 (tui_set_term_height_to): Rename setTermHeightTo.
9641 (tui_term_width): Rename termWidth.
9642 (tui_set_term_width_to): Rename setTermWidthTo.
9643 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9644 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9645 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9646 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9647 (tui_source_windows): Rename sourceWindows.
9648 (tui_clear_source_windows): Rename clearSourceWindows.
9649 (tui_clear_source_windows_detail): Rename
9650 clearSourceWindowsDetail.
9651 (tui_clear_win_detail): Rename clearWinDetail.
9652 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9653 (tui_default_tab_len): Rename tuiDefaultTabLen.
9654 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9655 (tui_win_with_focus): Rename tuiWinWithFocus.
9656 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9657 (tui_layout_def): Rename tuiLayoutDef.
9658 (tui_win_resized): Rename tuiWinResized.
9659 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9660 (tui_next_win): Rename tuiNextWin.
9661 (tui_prev_win): Rename tuiPrevWin.
9662 (tui_add_to_source_windows): Rename addToSourceWindows.
9663 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9664 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9665 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9666 * tui/tui.c, tui/tui-data.c: Ditto.
9667 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9668 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9669
a358af15
AC
9670 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9671 (struct symtab): Declare.
9672 (tui_set_source_content): Rename tuiSetSourceContent.
9673 (tui_show_symtab_source): Rename tuiShowSource.
9674 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9675 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9676 * tui/tui-source.c: Update copyright. Update references.
9677 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9678 * tui/tui-stack.c: Update references.
9679
a21fcd8f
AC
9680 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9681 (struct tui_win_info): Declare.
9682 (tui_scroll_forward): Rename tuiScrollForward.
9683 (tui_scroll_backward): Rename tuiScrollBackward.
9684 (tui_scroll_left): Rename tuiScrollLeft.
9685 (tui_scroll_right): Rename tuiScrollRight.
9686 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9687 (tui_resize_all): Rename tuiResizeAll.
9688 (tui_refresh_all_win): Rename tuiRefreshAll.
9689 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9690 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9691 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9692 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9693
edae1ccf
AC
9694 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9695 (tui_erase_data_content): Rename tuiEraseDataContent.
9696 (tui_display_all_data): Rename tuiDisplayAllData.
9697 (tui_check_data_values): Rename tuiCheckDataValues.
9698 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9699 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9700 (tui_first_data_element_no_in_line): Rename
9701 tuiFirstDataElementNoInLine.
9702 (tui_delete_data_content_windows): Rename
9703 tuiDeleteDataContentWindows.
9704 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9705 (tui_display_data_from): Rename tuiDisplayDataFrom.
9706 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9707 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9708 * tui/tui-win.c, tui/tui-regs.c: Update references.
9709 * tui/tui-layout.c, tui/tui.c: Update references.
9710
ec7d9e56
AC
9711 * tui/tui-wingeneral.h: Update copyright.
9712 (m_allBeVisible): Delete macro.
8a1dac83 9713 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9714 (struct tui_gen_win_info): Declare.
9715 (struct tui_win_info): Declare.
9716 (tui_unhighlight_win): Rename unhighlightWin.
9717 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9718 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9719 (tui_make_window): Rename makeWindow.
9720 (tui_copy_win): Rename copyWin.
9721 (tui_box_win): Rename boxWin.
9722 (tui_highlight_win): Rename highlightWin.
9723 (tui_check_and_display_highlight_if_needed): Rename
9724 checkAndDisplayHighlightIfNeeded.
9725 (tui_refresh_all): Rename refreshAll.
9726 (tui_delete_win): Rename tuiDelwin.
9727 (tui_refresh_win): Rename tuiRefreshWin.
9728 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9729 (tui_make_visible, tui_make_invisible): New functions.
9730 (tui_make_all_visible, tui_make_all_invisible): New functions.
9731 (make_all_visible): Rename makeAllVisible.
9732 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9733 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9734 * tui/tui-windata.c, tui/tui-win.c: Update references.
9735 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9736 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9737
1e52e2eb
MK
97382004-02-06 Mark Kettenis <kettenis@gnu.org>
9739
9740 * proc-api.c (write_with_trace): Initialize local variable to
9741 silence compiler warning.
9742
f80bda8e
AC
97432004-02-06 Andrew Cagney <cagney@redhat.com>
9744
9745 * tui/tui-source.h: Do not include "defs.h".
9746 (struct tui_win_info): Declare.
9747 (tui_set_source_content_nil): Declare.
9748 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9749 (union tui_line_or_address): Rename _TuiLineOrAddress.
9750 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9751 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9752 (tui_update_source_window_as_is): Rename
9753 tuiUpdateSourceWindowAsIs.
9754 (tui_update_source_windows_with_addr): Rename
9755 tuiUpdateSourceWindowsWithAddr.
9756 (tui_update_source_windows_with_line): Rename
9757 tuiUpdateSourceWindowsWithLine.
9758 (tui_clear_source_content): Rename tuiClearSourceContent.
9759 (tui_erase_source_content): Rename tuiEraseSourceContent.
9760 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9761 (tui_show_source_content): Rename tuiShowSourceContent.
9762 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9763 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9764 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9765 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9766 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9767 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9768 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9769 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9770 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9771 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9772 (struct tui_win_info): Declare.
9773 * tui/tui-stack.c: Update references.
9774 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9775 * tui/tui-win.c, tui/tui-source.c: Ditto.
9776 * tui/tui.c, tui/tui-disasm.c: Ditto.
9777
9fbfb822
MK
97782004-02-06 Mark Kettenis <kettenis@gnu.org>
9779
9780 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9781 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9782
03cebad2
MK
97832004-02-05 Mark Kettenis <kettenis@gnu.org>
9784
9785 * infrun.c (handle_inferior_event): Allow for breakpoint
9786 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9787 and SIGEMT. Update comments.
9788 * NEWS (Revised SPARC target): Mention support for non-executable
9789 stack.
9790
290281b1
MK
97912004-02-04 Mark Kettenis <kettenis@gnu.org>
9792
9793 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9794 * inftarg.c: Update copyright year.
9795 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9796 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9797 (sparc_xfer_wcookie): New function.
9798 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9799 * Makefile.in (sparc-nat.o): Update dependencies.
9800 * config/sparc/nm-nbsd.h: Include "target.h".
9801 (NATIVE_XFER_WCOOKIE): New define.
9802 (sparc_xfer_wcookie): New prototype.
9803
212161df
AC
98042004-02-04 Andrew Cagney <cagney@redhat.com>
9805
9806 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9807 SYSCALL_TRAP function.
9808 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9809
6e4c6c91
DJ
98102004-02-04 Andrew Cagney <cagney@redhat.com>
9811 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * objfiles.h: Delete comments refering to inside_entry_func and
9814 DEPRECATED_FRAME_CHAIN_VALID.
9815 * defs.h (inside_entry_func): Update prototype..
9816 * blockframe.c (inside_entry_func): Rename to
9817 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9818 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9819
cae688ec
JJ
98202004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9821
9822 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9823 outside of #ifdef SOLIB_ADD region.
9824 (do_restore_lang_radix_cleanup): Ditto.
9825 (resolve_pending_breakpoint): Ditto.
9826
19217676
AC
98272004-02-03 Andrew Cagney <cagney@redhat.com>
9828
9829 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9830 (process_note_abi_tag_sections): Delete unused function.
9831 (ia64_read_fp): Delete unused function.
9832 (gdbarch_extract_struct_value_address): Delete declaration.
9833
876753be
AC
98342004-02-02 Andrew Cagney <cagney@redhat.com>
9835
9836 * vax-tdep.c (vax_frame_chain): Delete call to
9837 deprecated_inside_entry_file.
9838 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9839
d4f10bf2
MK
98402004-02-02 Mark Kettenis <kettenis@gnu.org>
9841
9842 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9843 column that's "empty" or "same value" when eliminating REG_RA
9844 rules.
9845
cae688ec
JJ
98462004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9847
9848 * NEWS: Add information about new pending breakpoint support.
9849
0101ce28
JJ
98502004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9851
9852 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9853 and pending fields for pending breakpoint support.
9854 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9855 (condition_command): Only parse condition if not a pending
9856 breakpoint.
9857 (print_one_breakpoint): Add support for pending breakpoints.
9858 (describe_other_breakpoints): Add checks to verify we are not
9859 dealing with pending breakpoints.
9860 (check_duplicates): Don't check pending breakpoints.
9861 (set_raw_breakpoint): Initialize pending flag.
9862 (do_restore_lang_radix_cleanup): New cleanup routine.
9863 (resolve_pending_breakpoint): New function.
9864 (re_enable_breakpoints_in_shlibs): Try and resolve any
9865 pending breakpoints via resolve_pending_breakpoint.
9866 (mention): Add pending breakpoint support.
9867 (parse_breakpoint_sals): Add new parameter to pass to
9868 decode_line_1 to indicate silent errors when files or functions
9869 are not found. Change all callers.
9870 (do_captured_parse_breakpoint): New function.
9871 (break_command_1): Change prototype to return an rc value and to
9872 take an optional pending breakpoint pointer. Support creating
9873 a pending breakpoint if a "not found" form of error occurs when
9874 parsing the breakpoint. Also support resolving an existing pending
9875 breakpoint and be silent if the resolution fails.
9876 (create_breakpoints): Change prototype to take pending breakpoint
9877 pointer. When resolving a pending breakpoint, use the new pointer
9878 to provide a conditional or commands added by the end-user.
9879 (delete_breakpoint): Add appropriate check for pending.
9880 (breakpoint_re_set_one): Ditto.
9881 (do_enable_breakpoint): Ditto.
9882
8d577d32
DC
98832004-02-02 David Carlton <carlton@kealia.com>
9884
9885 * valops.c (enum oload_classification): New.
9886 (find_overload_match): Break implementation into separate
9887 functions; delete #if 0'd code; look for symbols within
9888 namespaces.
9889 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9890 (find_oload_champ,oload_method_static,classify_oload_match): New.
9891 * cp-support.h: Add declaration for cp_func_name; update
9892 declaration for make_symbol_overload_list.
9893 * cp-support.c (cp_func_name): New.
9894 (overload_list_add_symbol): Fix comment, use
9895 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9896 (make_symbol_overload_list): Take a function name and a namespace
9897 instead of a symbol; change implementation.
9898 (make_symbol_overload_list_using): New.
9899 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9900
22e8e3c7
FF
99012004-02-02 Fred Fish <fnf@redhat.com>
9902
9903 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9904 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9905 * remote-sim.c (gdb_os_write_stderr): Write output to
9906 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9907 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9908 gdb_stderr stream and update copyright years.
22e8e3c7 9909
6b753f60
DJ
99102004-02-01 Daniel Jacobowitz <drow@mvista.com>
9911
9912 * Makefile.in (mips-linux-nat.o): Update dependencies.
9913 * mips-linux-nat.c: Include mips-tdep.h.
9914
99152004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9916
9917 * sol-thread.c (sol_thread_xfer_partial): New function.
9918 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9919 (init_sol_core_ops): Likewise.
9920
9921 * procfs.c (procfs_xfer_partial): New function.
9922 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9923 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9924
9925 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9926 procfs_xfer_auxv function.
9927
9928 * procfs.c (procfs_make_note_section): If we can read
9929 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9930 * linux-proc.c (linux_make_note_section): Likewise.
9931
9932 * auxv.h: New file.
9933 * auxv.c: New file.
9934 * Makefile.in (auxv_h): New variable.
9935 (COMMON_OBS): Add auxv.o here.
9936 (auxv.o): New target.
9937
9938 * corelow.c (core_xfer_partial): New function.
9939 (init_core_ops): Use it for core_ops.to_xfer_partial.
9940
9941 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9942 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9943 macro if that is defined.
9944
fa5281d0
DJ
99452004-02-01 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9948 and check the specified thread for each breakpoint.
9949 * breakpoint.h (bpstat_stop_status): Update prototype.
9950 * infrun.c (handle_inferior_event): Update calls to
9951 bpstat_stop_status.
9952
26ee262d
DJ
99532004-02-01 Daniel Jacobowitz <drow@mvista.com>
9954
9955 * Makefile.in (cli-cmds.o): Add $(readline_h).
9956
d9b52655
DJ
99572004-02-01 Daniel Jacobowitz <drow@mvista.com>
9958
9959 * cli/cli-cmds.c: Include readline.h.
9960 (complete_command): Pass the start of the last word to
9961 complete_line.
9962
9709f61c
DJ
99632004-01-31 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9966 argument, and change first argument to a CORE_ADDR.
9967 * breakpoint.h (bpstat_stop_status): Update prototype.
9968 * infrun.c (adjust_pc_after_break): Add a new comment.
9969 (handle_inferior_event): Update calls to bpstat_stop_status.
9970
4f1280bb
DJ
99712004-01-31 Daniel Jacobowitz <drow@mvista.com>
9972
9973 * breakpoint.h: Update copyright years.
9974
4fa8626c
DJ
99752004-01-31 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9978 (bpstat_stop_status): Don't decrement PC.
9979 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9980 prototype.
9981 * infrun.c (adjust_pc_after_break): New function.
9982 (handle_inferior_event): Call it, early. Remove later references
9983 to DECR_PC_AFTER_BREAK.
9984 (normal_stop): Add commentary.
9985
fad0733a
DJ
99862004-01-31 Daniel Jacobowitz <drow@mvista.com>
9987
9988 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9989 2004-01-27 double-free fix.
9990
42cdca6c
MK
99912004-01-31 Mark Kettenis <kettenis@gnu.org>
9992
9993 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9994 (sparc32_frame_prev_register): Handle StackGhost.
9995 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9996
932d5416
RM
99972004-01-29 Roland McGrath <roland@redhat.com>
9998
9999 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10000 * configure: Regenerated.
10001
10002 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10003 * Makefile.in (procfs.o): Add dep.
10004
47d3492a
AC
100052004-01-28 Andrew Cagney <cagney@redhat.com>
10006
10007 * tui/tui-stack.h: Update copyright.
10008 (struct frame_info): Add opaque declaration.
10009 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10010 (tui_show_locator_content): Rename tuiShowLocatorContent.
10011 (tui_show_frame_info): Rename tuiShowFrameInfo.
10012 * tui/tui-stack.c: Update copyright. Update references.
10013 * tui/tui-winsource.c: Update references.
10014 * tui/tui-win.c: Update references.
10015 * tui/tui-layout.c: Update references.
10016 * tui/tui-hooks.c: Update copyright, update references.
10017 * tui/tui.c: Update copyright, update references.
10018 * tui/tui-disasm.c: Update references.
10019
5d51ca54
DC
100202004-01-28 David Carlton <carlton@kealia.com>
10021
10022 * dwarf2read.c (add_partial_structure): Use demangled name if
10023 namespace equals "".
10024
086ed43d
JB
100252004-01-27 Jim Blandy <jimb@redhat.com>
10026
10027 Clean up misapplied patch:
10028 * dwarf2read.c (determine_prefix): Change one of the two forward
10029 declarations for 'determine_prefix_aux' to a declaration for this.
10030 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10031 argument to 'die_specification'.
10032
2a35147e
JB
10033 * dwarf2read.c (read_func_scope): Re-indent comment.
10034
a355c7de 100352004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10036
a355c7de
AC
10037 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10038 b->exp to NULL after freeing so that error during re-parsing or
10039 evaluation of expressions associated with breakpoint don't
10040 eventually lead to re-freeing of storage.
10041 Committed by Andrew Cagney.
10042
63ff5125
AC
100432004-01-27 Andrew Cagney <cagney@redhat.com>
10044
10045 * source.c (ambiguous_line_spec): Delete undefined declaration.
10046 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10047 (m32r_set_server_address, m32r_set_download_path): Ditto.
10048 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10049
e142c38c
DJ
100502004-01-27 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * dwarf2read.c: Update calls to changed and renamed functions, and
10053 references to moved variables.
10054
10055 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10056 language, language_defn, list_in_scope, and ftypes members.
10057 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10058 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10059 (baseaddr): Remove globals.
10060
10061 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10062 (set_cu_language, die_is_declaration, die_specification)
10063 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10064 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10065 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10066 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10067
10068 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10069 cu.list_in_scope. Don't initialize cu_header_offset.
10070 (add_partial_symbol): Add local baseaddr.
10071 (psymtab_to_symtab_1): Add local baseaddr. Use
10072 objfile->section_offsets for consistency. Don't initialize
10073 cu_header_offset; do initialize cu.header.offset and
10074 cu.list_in_scope.
10075 (read_file_scope, read_func_scope, read_lexical_block_scope)
10076 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10077
c6e06ede
MC
100782004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10079
fb328ecc 10080 * PROBLEMS: Add gdb/1516.
c6e06ede 10081
48184fd4
AC
100822003-12-29 Robert Millan <robertmh@gnu.org>
10083
10084 Patch committed by Andrw Cagney.
10085 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10086 * configure.tgt: Match knetbsd*-gnu.
10087
c1321b30
AC
100882004-01-26 Andrew Cagney <cagney@redhat.com>
10089
f3699be3
AC
10090 * breakpoint.c (catch_command_1): Delete #ifdef code.
10091 (catch_fork_command_1): Delete #ifdef wrapper.
10092 (catch_exec_command_1): Ditto.
10093 (catch_load_command_1): Ditto.
10094 (catch_unload_command_1): Ditto.
10095
c1321b30
AC
10096 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10097 (catch_breakpoint): Delete #if0ed function.
10098 (disable_catch_breakpoint): Ditto.
10099 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10100 (disable_catch, enable_catch, delete_catch): Ditto.
10101
b4501125
AC
101022004-01-26 Andrew Cagney <cagney@redhat.com>
10103
10104 * remote.c (echo_check, quit_flag): Delete variables.
10105 (cisco_kernel_mode): Delete variable.
10106 (minitelnet_return, tty_input, escape_count): Delete variables.
10107 (remote_cisco_mode): Delete variable.
10108 (remote_cisco_open, remote_cisco_close): Delete function.
10109 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10110 (init_remote_cisco_ops): Delete function.
10111 (_initialize_remote): Do not install "remote cisco" code.
10112 (read_frame): Delete cisco specific code.
10113 (remote_info_process): Delete function.
10114 (remote_wait): Delete cisco specific code.
10115 (remote_cisco_section_offsets): Delete function.
10116 (remote_cisco_objfile_relocate): Delete function.
10117 (remote_async_wait): Delete cisco specific code.
10118 (minitelnet, readtty, readsocket): Delete function.
10119
74055713
AC
101202004-01-26 Andrew Cagney <cagney@redhat.com>
10121
10122 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10123 comments mentioning extract_returned_value_address.
10124 * infcmd.c (print_return_value): Update. Add comments on
10125 extract_returned_value_address.
10126 * stack.c (return_command): Add comments on
10127 extract_returned_value_address.
10128 * values.c: Update comment.
10129 * m32r-tdep.c: Update comment.
10130 * sparc-tdep.c: Update comment.
10131 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10133 * sh64-tdep.c (sh64_gdbarch_init): Update.
10134 * sh-tdep.c (sh_gdbarch_init): Update.
10135 * s390-tdep.c (s390_gdbarch_init): Update.
10136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10137 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10138 * m68k-tdep.c (m68k_gdbarch_init): Update.
10139 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10140 * m32r-tdep.c (m32r_gdbarch_init): Update.
10141 * ia64-tdep.c (ia64_gdbarch_init): Update.
10142 * h8300-tdep.c (h8300_gdbarch_init): Update.
10143 * frv-tdep.c (frv_gdbarch_init): Update.
10144 * arm-tdep.c (arm_gdbarch_init): Update.
10145 * alpha-tdep.c (alpha_gdbarch_init): Update.
10146
a67af2b9
AC
101472004-01-26 Andrew Cagney <cagney@redhat.com>
10148
10149 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10150 SYMBOL_LOCATION_FUNCS
10151 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10152 "struct symbol_ops".
10153 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10154 type to "struct symbol_ops".
10155 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10156 (struct symbol): Replace ".aux_value.loc.funcs" and
10157 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10158 (SYMBOL_OBJFILE): Delete macro.
10159 (SYMBOL_LOCATION_FUNCS): Delete macro.
10160 (SYMBOL_LOCATION_BATON): Update.
10161 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10162 intead of SYMBOL_LOCATION_FUNCS.
10163 * ax-gdb.c (gen_var_ref): Ditto.
10164 * printcmd.c (address_info): Ditto.
10165 * findvar.c (read_var_value): Ditto.
10166 (symbol_read_needs_frame): Ditto.
10167
c034e007
AC
101682004-01-26 Andrew Cagney <cagney@redhat.com>
10169
10170 * dwarf2read.c (read_func_scope): Document frame-base hack.
10171
bb472c1e
MK
101722004-01-25 Mark Kettenis <kettenis@gnu.org>
10173
10174 * infcmd.c (print_return_value): Plug memory leak; delete
10175 ui_stream object. Rename argument `structure_return' to
10176 `struct_return'.
10177
c8e737d5
MK
101782004-01-25 Mark Kettenis <kettenis@gnu.org>
10179
f941662f
MK
10180 * infcmd.c (print_return_value): Wrap long lines.
10181 (finish_command_continuation, finish_command): Remove unused
10182 variable `funcaddr'. Fix some coding-standards problems.
10183
c558d81a 10184 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10185 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10186 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10187 TDEP->fpregset to zero.
10188
bf1e5861 10189 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10190 floating-point registers for traditional NetBSD core files.
10191 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10192 TDEP->sizeof_fpregset here.
10193
4c72d57a
MK
101942004-01-25 Mark Kettenis <kettenis@gnu.org>
10195
566626fa
MK
10196 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10197 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10198 function with code split out from
10199 sparc32nbsd_sigcontext_frame_cache.
10200 (sparc32nbsd_sigcontext_frame_cache): Use
10201 sparc32nbsd_sigcontext_saved_regs.
10202 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10203 OpenBSD.
10204 * sparcobsd-tdep.c: New file.
10205 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10206 (sparcobsd-tdep.o): New dependency.
10207 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10208 * config/sparc/obsd.mt: New file.
10209
4c72d57a
MK
10210 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10211 TDEP->fpregset to be initialized to enable core file register
10212 sets.
10213
7e5e9f88
MK
102142004-01-24 Mark Kettenis <kettenis@gnu.org>
10215
f0f207fd 10216 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10217 Add opaque declarations.
10218 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10219 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10220 function with code split out from
10221 sparc64nbsd_sigcontext_frame_cache.
10222 (sparc64nbsd_sigcontext_frame_cache): Use
10223 sparc64nbsd_sigcontext_saved_regs.
10224 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10225 OpenBSD.
10226 * sparc64obsd-tdep.c: New file.
10227 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10228 (sparc64obsd-tdep.o): New dependency.
10229 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10230 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10231 * config/sparc/obsd64.mt: New file.
10232
690668cc
MK
10233 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10234 read the instruction at PC.
10235
7e5e9f88
MK
10236 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10237 value of GDB_OSABI_DEFAULT.
10238 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10239 instead of GDB_OSABI_NETBSD_AOUT.
10240
68b6dce9
NR
102412004-01-24 Nick Roberts <nick@nick.uklinux.net>
10242
10243 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10244 copyright.
10245
080ce8c0
AC
102462004-01-23 Andrew Cagney <cagney@redhat.com>
10247
10248 * printcmd.c (display_command): Replace tui_set_display call with
10249 tui_set_layout_for_display_command.
10250 * tui/tui.h (enum tui_win_type): Define.
10251 (tui_set_layout): Delete declaration.
10252 (tui_set_layout_for_display_command): Rename set_tui_layout.
10253 * tui/tui-data.h (enum tui_layout_type): Define.
10254 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10255 "tui.h".
10256 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10257 (tui_default_win_height): Rename tuiDefaultWinHeight.
10258 (tui_default_win_viewport_height): Rename
10259 tuiDefaultWinViewportHeight.
10260 (tui_set_layout): RenametuiSetLayout.
10261 * tui/tui-layout.c: Update references.
10262 * tui/tui.c: Update references.
10263 * tui/tui-disasm.c: Update references.
10264
b368761e
DC
102652004-01-23 David Carlton <carlton@kealia.com>
10266
10267 Partial workaround for PR c++/1511:
10268 * cp-namespace.c: Include frame.h.
10269 (cp_lookup_transparent_type): New
10270 (cp_lookup_transparent_type_loop): New.
10271 * cp-support.h: Declare cp_lookup_transparent_type.
10272 * symtab.c (basic_lookup_transparent_type): Renamed from
10273 lookup_transparent_type.
10274 (lookup_transparent_type): Replace old body by a call to
10275 current_language->la_lookup_transparent_type.
10276 * symtab.h: Update copyright. Declare
10277 basic_lookup_transparent_type.
10278 * language.h: Update copyright.
10279 (struct language_defn): Add la_lookup_transparent_type.
10280 * language.c: Update copyright.
10281 (unknown_language_defn): Add basic_lookup_transparent_type.
10282 (auto_language_defn): Add basic_lookup_transparent_type.
10283 (local_language_defn): Add basic_lookup_transparent_type.
10284 * ada-lang.c: Update copyright.
10285 (ada_language_defn): Add basic_lookup_transparent_type.
10286 * c-lang.c: Update copyright.
10287 (c_language_defn): Add basic_lookup_transparent_type.
10288 (cplus_language_defn): Add basic_lookup_transparent_type.
10289 (asm_language_defn): Add basic_lookup_transparent_type.
10290 (minimal_language_defn): Add basic_lookup_transparent_type.
10291 * f-lang.c: Update copyright.
10292 (f_language_defn): Add basic_lookup_transparent_type.
10293 * jv-lang.c: Update copyright.
10294 (java_language_defn): Add basic_lookup_transparent_type.
10295 * m2-lang.c: Update copyright.
10296 (m2_language_defn): Add basic_lookup_transparent_type.
10297 * objc-lang.c: Update copyright.
10298 (objc_language_defn): Add basic_lookup_transparent_type.
10299 * p-lang.c: Update copyright.
10300 (p_language_defn): Add basic_lookup_transparent_type.
10301 * scm-lang.c: Update copyright.
10302 (scm_language_defn): Add basic_lookup_transparent_type.
10303 * Makefile.in (cp-namespace.o): Depend on frame.h.
10304
fdde2d81
DC
103052004-01-23 David Carlton <carlton@kealia.com>
10306
10307 Patch for PR c++/1520:
10308 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10309 properly if we have a specification die.
10310 (determine_prefix_aux): Rename from determine_prefix.
10311 (determine_prefix): Like the old determine_prefix, but never
10312 returns NULL.
10313
5b828b6b
TR
103142004-01-23 Theodore A. Roth <troth@openavr.org>
10315
10316 * avr-tdep.c: Update copyright.
10317 (avr_iaddr_p): Delete unused function.
10318 (avr_saddr_p): Delete unused function.
10319
a1b8c067
DC
103202004-01-23 David Carlton <carlton@kealia.com>
10321
10322 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10323 Fix for PR symtab/1534.
10324
f2cab569
MK
103252004-01-23 Mark Kettenis <kettenis@gnu.org>
10326
10327 * NEWS (New native configurations): Mention OpenBSD/sparc and
10328 OpenBSD/sparc64.
10329 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10330 * configure.host: Likewise.
10331 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10332 handler for OpenBSD.
10333 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10334
642d8300
MK
103352004-01-22 Mark Kettenis <kettenis@gnu.org>
10336
89aac506
MK
10337 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10338 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10339
36662fde
MK
10340 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10341 * cli/cli-cmds.c (shell_escape): Likewise.
10342
642d8300
MK
10343 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10344 OpenBSD .note.openbsd.ident sections.
10345
fae299cd
DC
103462004-01-22 David Carlton <carlton@kealia.com>
10347
10348 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10349 get_scope_pc_bounds.
10350 (read_file_scope): Ditto.
10351 (get_scope_pc_bounds): New function, produced by extracting code
10352 from the above two functions, consolidating it, and adding support
10353 for DW_TAG_namespace.
10354
a49d618c
MK
103552004-01-22 Mark Kettenis <kettenis@gnu.org>
10356
10357 * osabi.c (MAX_NOTESZ): New define.
10358 (check_note): New function.
10359 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10360 check_note.
10361
fe61caab
RM
103622004-01-21 Roland McGrath <roland@redhat.com>
10363
10364 * MAINTAINERS (write after approval): Add myself.
10365
ec145965
EZ
103662004-01-21 Eli Zaretskii <eliz@gnu.org>
10367
10368 * utils.c (init_page_info): Move declarations of `rows' and
10369 `cols' before the __GO32__-specific code. Move the closing brace
10370 outside the #ifdef __GO32__..#endif block.
10371 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10372
877522db
PB
103732004-01-21 Paul Brook <paul@codesourcery.com>
10374
10375 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10376 BPSTAT_WHAT_CHECK_SHLIBS.
10377
dbf5be1c
PB
103782004-01-21 Paul Brook <paul@codesourcery.com>
10379
10380 * MAINTAINERS: Add myself to write-after-approval.
10381
81f08b92
AC
103822004-01-20 Andrew Cagney <cagney@redhat.com>
10383
5a1efed7
AC
10384 * ax-gdb.c (print_axs_value): Delete unused function.
10385 * jv-lang.c (java_lookup_type): Delete unused function.
10386 * cli/cli-dump.c (dump_filetype): Delete unused function.
10387 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10388 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10389 (mips_getstring): Delete unused function.
10390 (pmon_insert_breakpoint): Delete #if0ed function.
10391 (PMON_MAX_BP): Delete #if0ed MACRO.
10392 (mips_pmon_bp_info): Delete #if0ed variable.
10393 (pmon_remove_breakpoint): Delete #if0ed function.
10394 * monitor.c (monitor_write_even_block): Delete unused function.
10395 (monitor_write_memory_block): Delete #if0ed code.
10396 * dink32-rom.c (dink32_load): Delete unused function.
10397 (_initialize_dink32_rom): Delete #if0ed code.
10398 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10399
b0a30fce
AC
10400 * tui/tui-command.c: Update references.
10401 * tui/tui-io.c: Update references.
10402 * tui/tui-command.h: Update copyright.
10403 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10404
81f08b92
AC
10405 * source.c (ambiguous_line_spec): Delete never-defined function.
10406 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10407 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10408 * cli/cli-cmds.c (validate_comname): Ditto.
10409
65f05602
AC
10410 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10411 "tui-data.h".
10412 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10413 (tui_show_disassem): Rename tuiShowDisassem.
10414 (tui_show_disassem_and_update_source): Rename
10415 tuiVerticalDisassemScroll.
10416 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10417 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10418 * tui/tui.h: Update copyright.
10419 (enum tui_status): Define.
10420 * tui/tui-data.h (enum tui_scroll_direction): Define.
10421 * tui/tui-disasm.c: Update copyright. Update references.
10422 * tui/tui-winsource.c: Update copyright. Update references.
10423 * tui/tui-win.c: Update references.
10424 * tui/tui-layout.c: Update references.
10425
6bb0384f
AC
104262004-01-20 Andrew Cagney <cagney@redhat.com>
10427
10428 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10429 sym2 to start of block.
10430
9175c9a3
MC
104312004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10432
10433 * MAINTAINERS: Delete mmalloc.
10434 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10435 * NEWS: Mention removal of --with-malloc.
10436 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10437 * config.in: Regenerate.
10438 * configure: Regenerate.
6bb0384f
AC
10439 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10440 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10441 * gdbinit.in: Remove mmalloc.
10442 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10443 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10444 * config/i386/go32.mh: Likewise.
10445 * config/i386/interix.mh: Likewise.
10446 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10447
4fcef00a
JJ
104482004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10449
10450 * linespec.c (decode_variable, symtab_from_filename): Call
10451 error_silent with error message instead of throwing an exception
10452 directly.
10453 * defs.h (error_silent, error_output_message): Add prototypes.
10454 (catch_exceptions_with_msg): Ditto.
10455 * utils.c (error_silent, error_output_message): New functions.
10456 * top.c (catch_exceptions_with_msg): New function.
10457
8e94b928
NR
104582004-01-20 Nick Roberts <nick@nick.uklinux.net>
10459
10460 * mi/mi-cmds.h (enum print_values): Add definition.
10461
10462 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10463 type and value for simple data types and just the name and type
10464 for complex ones, if required.
10465
10466 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10467 children, if required.
10468
a02d6af8
KB
104692004-01-19 Kevin Buettner <kevinb@redhat.com>
10470
10471 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10472 unused declarations.
10473
78a4a9b9
AC
104742004-01-19 Andrew Cagney <cagney@redhat.com>
10475
10476 * top.h (mapped_symbol_files): Delete declaration.
10477 * main.c (captured_main): Delete option "m" and "mapped".
10478 * objfiles.c (mapped_symbol_files): Delete variable.
10479 * symfile.c (symbol_file_command): Delete mmap code.
10480 (symbol_file_add_with_addrs_or_offsets): Ditto.
10481 (add_symbol_file_command, reread_separate_symbols): Ditto.
10482 * objfiles.h (OBJF_MAPPED): Delete.
10483 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10484 (free_objfile) [USE_MMALLOC]: Ditto.
10485 (open_existing_mapped_file): Delete function.
10486 (open_mapped_file): Delete function.
10487 (map_to_file): Delete function.
10488
2dbd5e30
KB
104892004-01-19 Kevin Buettner <kevinb@redhat.com>
10490
10491 * infrun.c (step_into_function): Account for possible breakpoint
10492 adjustment when computing ``stop_func_start''.
10493
437b434f
KB
104942004-01-19 Kevin Buettner <kevinb@redhat.com>
10495
10496 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10497 the region size against the size of a pointer, not the size of
10498 a register as given by DEPRECATED_REGISTER_SIZE.
10499
55fb0713
AC
105002004-01-19 Andrew Cagney <cagney@redhat.com>
10501
10502 * tui/tui-regs.h: Include "tui-data.h".
10503 (tuiFirstRegElementNoInLine): Delete declaration.
10504 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10505 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10506 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10507 (tui_calculate_regs_column_count): Rename
10508 tuiCalculateRegsColumnCount.
10509 (tui_check_register_values): Rename tuiCheckRegisterValues.
10510 (tui_show_registers): Rename tuiShowRegisters.
10511 (tui_display_registers_from_line): Rename
10512 tuiDisplayRegistersFromLine.
10513 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10514 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10515 (tui_first_reg_element_no_inline): Rename
10516 tuiFirstRegElementNoInLine.
10517 * tui/tui-data.h: Update copyright.
10518 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10519 * tui/tui-windata.c: Update copyright, update references.
10520 * tui/tui-regs.c: Update copyright, update references.
10521 * tui/tui-win.c: Update copyright, update references.
10522 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10523
cebe9500
AC
105242004-01-18 Andrew Cagney <cagney@redhat.com>
10525
bcdf1568
AC
10526 * tui/tui-io.c: Update copyright.
10527 (key_is_end_sequence, key_is_backspace): New functions.
10528 (key_is_command_char, key_is_start_sequence): New function.
10529 (tui_getc): Update references.
10530 * tui/tui-io.h: Update copyright.
10531 (m_tuiStartNewLine): Delete macro.
10532 (m_isBackspace, m_isDeleteChar): Delete macros.
10533 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10534 (m_isNextPage, m_isPrevPage): Delete macros.
10535 (m_isLeftArrow, m_isRightArrow): Delete macros.
10536 (m_isXdbStyleCommandChar): Delete macro.
10537 (key_is_start_sequence): Declare, replace m_isStartSequence.
10538 (key_is_end_sequence): Declare, replace m_isEndSequence.
10539 (key_is_backspace): Declare ,replace m_isBackspace.
10540 (key_is_command_char): Declare, replace m_isCommandChar.
10541 * tui/tui-command.c: Update copyright.
10542 (tuiDispatchCtrlChar): Update references.
10543
130d87e6
AC
10544 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10545 tuiSourceWin.h.
10546
d7b2e967
AC
10547 * tui/tui-command.c: Rename tui/tuiCommand.c.
10548 * tui/tui-command.h: Rename tui/tuiCommand.h.
10549 * tui/tui-data.c: Rename tui/tuiData.c.
10550 * tui/tui-data.h: Rename tui/tuiData.h.
10551 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10552 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10553 * tui/tui-io.c: Rename tui/tuiIO.c.
10554 * tui/tui-io.h: Rename tui/tuiIO.h.
10555 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10556 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10557 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10558 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10559 * tui/tui-source.c: Rename tui/tuiSource.c.
10560 * tui/tui-source.h: Rename tui/tuiSource.h.
10561 * tui/tui-stack.c: Rename tui/tuiStack.c.
10562 * tui/tui-stack.h: Rename tui/tuiStack.h.
10563 * tui/tui-win.c: Rename tui/tuiWin.c.
10564 * tui/tui-win.h: Rename tui/tuiWin.h.
10565 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10566 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10567 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10568 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10569 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10570 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10571 * tui/tui-file.c: Update includes.
10572 * tui/tui-hooks.c: Update includes.
10573 * tui/tui-interp.c: Update includes.
10574 * tui/tui.c: Update includes.
10575 * Makefile.in: Update all tui/ dependencies.
10576 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10577
b2100910
AC
10578 * Makefile.in: Update copyright. Update dependencies.
10579
cebe9500
AC
10580 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10581 problem.
10582
c6f0559b
AC
105832004-01-18 Andrew Cagney <cagney@redhat.com>
10584
43e9390b
AC
10585 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10586 instead of register_gdbarch_init.
10587
c6f0559b
AC
10588 * remote-sds.c (tohex): Delete unused function. Update copyright.
10589 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10590 * v850-tdep.c (v850_register_virtual_size): Ditto.
10591 * target.c (normal_target_post_startup_inferior): Ditto.
10592 * source.c (ambiguous_line_spec): Ditto.
10593 * remote.c (adapt_remote_get_threadinfo): Ditto.
10594 * mi/mi-out.c (out_field_fmt): Ditto.
10595 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10596 (output_control_change_notification): Ditto.
10597 * m68k-tdep.c (m68k_register_byte): Ditto.
10598 (m68k_remote_breakpoint_from_pc): Ditto.
10599 * ui-out.c (init_ui_out_state): Delete unused declaration.
10600 * stabsread.c (search_value): Ditto.
10601 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10602 * maint.c (print_section_table): Ditto.
10603 * infrun.c (set_follow_fork_mode_command): Ditto.
10604
a8504492
MK
106052004-01-18 Mark Kettenis <kettenis@gnu.org>
10606
10607 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10608 DW_CFA_def_cfa_exporession. Add support for
10609 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10610 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10611
0bd8997e
AC
106122004-01-18 Andrew Cagney <cagney@redhat.com>
10613
10614 * ocd.c: Update copyright.
10615 (bdm_read_register_command): Delete unused function.
10616 (_initialize_remote_ocd): Delete commented out reference.
10617 (get_quoted_char, reset_packet): Delete #if0ed function.
10618 (output_packet, put_quoted_char): Delete #if0ed function.
10619 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10620 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10621 (BDM_BREAKPOINT): Delete #if0ed macro.
10622 (remote_timeout): Delete #if0ed variable.
10623
31bb40e4
MK
106242004-01-18 Mark Kettenis <kettenis@gnu.org>
10625
10626 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10627 (core-sol2.o): Remove dependency.
10628 * core-sol2.c: Remove file.
10629
887432a5
AC
106302004-01-17 Andrew Cagney <cagney@redhat.com>
10631
10632 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10633 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10634 enums.
10635
29182b13
DJ
106362004-01-17 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * remote.c: Update copyright years.
10639
2963ee1d
DJ
106402004-01-17 Daniel Jacobowitz <drow@mvista.com>
10641
10642 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10643
79d45cd4
AC
106442004-01-17 Andrew Cagney <cagney@redhat.com>
10645
ee300cd4
AC
10646 * mdebugread.c: Update copyright.
10647 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10648 (parse_type, parse_procedure): Ditto.
10649 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10650
fcacc9c2
AC
10651 * cris-tdep.c (cris_store_struct_return): Put back accidently
10652 deleted function.
10653
79d45cd4
AC
10654 * gdbarch.sh: Update copyright year.
10655 * gdbarch.h, gdbarch.c: Re-generate.
10656
b263358a
DJ
106572004-01-17 Daniel Jacobowitz <drow@mvista.com>
10658
10659 Suggested by George Anzinger.
10660 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10661 correct stack offset. Include unknown opcode numbers in the error
10662 message.
10663
931aecf5
AC
106642004-01-17 Andrew Cagney <cagney@redhat.com>
10665
10666 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10667 extract_struct_value_address, i386 does not set it.
10668 * sparc64-tdep.c (sparc64_init_abi): Do not set
10669 extract_struct_value_address, never called.
10670 (sparc64_extract_struct_value_address): Delete function.
10671 * m68hc11-tdep.c: Update copyright.
10672 (m68hc11_gdbarch_init): Delete redundant assignment of
10673 extract_struct_value_address.
10674 * i386-tdep.c: Update copyright.
10675 (i386_gdbarch_init): Do not set extract_struct_value_address,
10676 never called.
10677 (i386_extract_struct_value_address): Delete function.
10678 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10679 extract_struct_value_address, never called.
10680 (sparc32_extract_struct_value_address): #if 0 function. Add
10681 comments explaining its future.
10682
756fe439
DJ
106832004-01-17 Daniel Jacobowitz <drow@mvista.com>
10684
10685 * arm-tdep.c (arm_write_pc): New function.
10686 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10687
e74f0f02
DJ
106882004-01-17 Daniel Jacobowitz <drow@mvista.com>
10689
10690 * breakpoint.c (must_shift_inst_regs): Delete.
10691 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10692 and SHIFT_INST_REGS.
10693 * infcmd.c (step_1, step_1_continuation): Delete references to
10694 SHIFT_INST_REGS.
10695 * infrun.c (keep_going): Likewise.
10696 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10697 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10698
b6cb9035
AC
106992004-01-17 Andrew Cagney <cagney@redhat.com>
10700
444a1e2e
AC
10701 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10702 * gdbarch.h, gdbarch.c: Re-generate.
10703 * infcmd.c (print_return_value): Delete reference to
10704 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10705
def7e6ed
AC
10706 * cris-tdep.c (cris_gdbarch_init): Do not set
10707 deprecated_extract_struct_value_address.
10708
07be497a
AC
10709 * xstormy16-tdep.c: Update copyright.
10710 (xstormy16_extract_struct_value_address): Update to current
10711 extract struct value address interface.
10712 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10713 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10714 current extract struct value address interface.
10715 (sh64_gdbarch_init): Set extract_struct_value_address.
10716
6b4d5c91
AC
10717 * cris-tdep.c: Update copyright.
10718 (cris_extract_struct_value_address): Delete function.
10719 (struct_return_address): Delete variable.
10720 (cris_store_struct_return): Do not set struct_return_address.
10721
464e0365
AC
10722 * mcore-tdep.c: Update copyright.
10723 (mcore_extract_struct_value_address): Delete function. Update
10724 comments.
10725 (mcore_gdbarch_init): Update.
10726 * mn10300-tdep.c: Update copyright.
10727 (mn10300_extract_struct_value_address): Delete function.
10728 (mn10300_gdbarch_init): Update.
10729 * v850-tdep.c: Update copyright.
10730 (v850_extract_struct_value_address): Delete.
10731 (v850_gdbarch_init): Update.
10732 * ns32k-tdep.c: Update copyright.
10733 (ns32k_extract_struct_value_address): Delete.
10734 (ns32k_gdbarch_init): Update.
10735 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10736 (hppa_gdbarch_init): Update.
10737 * vax-tdep.c: Update copyright.
10738 (vax_extract_struct_value_address): Delete.
10739 (vax_gdbarch_init): Update.
10740
afb18d0f
AC
10741 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10742 * gdbarch.h, gdbarch.c: Re-generate.
10743 * procfs.c (procfs_fetch_registers): Delete reference to
10744 DEPRECATED_NPC_REGNUM.
10745 (procfs_store_registers): Ditto.
10746 * regcache.c (generic_target_write_pc): Simplify.
10747 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10748
a698f53e
AC
10749 * core-sol2.c (fetch_core_registers): Replace
10750 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10751
adc11376
AC
10752 * hppa-tdep.c: Update copyright year.
10753 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10754 NPC_REGNUM.
10755 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10756
b6cb9035
AC
10757 * mips-tdep.c (mips_write_pc): New function.
10758 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10759 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10760 (mips_find_saved_regs, mips_software_single_step: Ditto.
10761 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10762 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10763
6d82d43b
AC
107642004-01-17 Andrew Cagney <cagney@redhat.com>
10765
10766 * mips-tdep.c: Re-indent. Group functions by ABI.
10767
71bd6bd4
AC
107682004-01-17 Andrew Cagney <cagney@redhat.com>
10769
10770 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10771 * gdbarch.c: Re-generate.
10772 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10773 DECR_PC_AFTER_BREAK to zero.
10774 * vax-tdep.c (vax_gdbarch_init): Ditto.
10775 * v850-tdep.c (v850_gdbarch_init): Ditto.
10776 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10777 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10778 * sh-tdep.c (sh_gdbarch_init): Ditto.
10779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10780 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10782 * mips-tdep.c (mips_gdbarch_init): Ditto.
10783 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10785 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10786 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10787 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10788 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10789 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10790 * frv-tdep.c (frv_gdbarch_init): Ditto.
10791 * cris-tdep.c (cris_gdbarch_init): Ditto.
10792 * avr-tdep.c (avr_gdbarch_init): Ditto.
10793 * arm-tdep.c (arm_gdbarch_init): Ditto.
10794 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10795
a02abb62
JB
107962004-01-17 J. Brobecker <brobecker@gnat.com>
10797
10798 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10799 Delete, no longer used.
10800 (read_subrange_type): New function, mostly extracted from
10801 read_array_type().
10802 (read_array_type): Replace extracted code by call to
10803 read_subrange_type().
10804 (dwarf2_get_attr_constant_value): New function.
10805 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10806 (add_partial_symbol): Likewise.
10807 (process_die): Likewise.
10808 (new_symbol): Likewise.
10809 (read_type_die): Likewise.
10810
cf5b2f1b
AC
108112004-01-16 Andrew Cagney <cagney@redhat.com>
10812
10813 * symfile.c: Update copyright year.
10814 (compare_symbols): Delete unused function.
10815 * stabsread.c: Update copyright year.
10816 (lrs_general_complaint): Delete unused function.
10817 (ref_search_value): Ditto.
10818 (get_substring): Delete declaration.
10819 * sh64-tdep.c: Update copyright year.
10820 (sh64_get_gdb_regnum): Delete unused function.
10821 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10822 Delete unused function.
10823
d33b9831
MK
108242004-01-17 Mark Kettenis <kettenis@gnu.org>
10825
10826 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10827 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10828
7aea86e6
AC
108292004-01-16 Andrew Cagney <cagney@redhat.com>
10830
10831 Changes from Peter Schauer.
10832 * rs6000-tdep.c: Update copyright year.
10833 (rs6000_push_dummy_call): Update the stack pointer before
10834 accessing the corresponding stack region.
10835 * rs6000-nat.c: Update copyright year.
10836 (set_host_arch): Set "info.abfd" to "exec_bfd".
10837
26b0da32
MK
108382004-01-15 Mark Kettenis <kettenis@gnu.org>
10839
10840 * blockframe.c: Update copyright year.
10841 (inside_entry_func): Don't treat a zero PC specially.
10842
86fbe6cc
EZ
108432004-01-14 Elena Zannoni <ezannoni@redhat.com>
10844
10845 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10846 variable.
10847 (gcore_create_callback): Ditto. Skip any memory segment that has
10848 no permissions set.
10849
63d06c5c
DC
108502004-01-14 David Carlton <carlton@kealia.com>
10851
10852 Change symbols for C++ nested types to contain the fully qualified
10853 name, if possible. (At least in the DWARF-2 case.) Partial fix
10854 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10855 c++/895.
10856 * c-exp.y (qualified_type): Handle types nested within classes.
10857 * cp-namespace.c: Update comments.
10858 (cp_set_block_scope): Delete #if 0.
10859 (cp_lookup_nested_type): Handle types nested within classes.
10860 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10861 when appropriate.
10862 (add_partial_symbol): Add the name of the enclosing namespace to
10863 types.
10864 (pdi_needs_namespace): New.
10865 (add_partial_namespace): Tweak comment.
10866 (add_partial_structure): New.
10867 (psymtab_to_symtab_1): Initialize processing_current_prefix
10868 here...
10869 (process_die): instead of here.
10870 (read_structure_scope): Try to figure out the name of the class or
10871 namespace that the structure might be defined within.
10872 (read_enumeration): Generate fully-qualified names, if possible.
10873 (read_namespace): Don't set name to NULL.
10874 (die_specification): New.
10875 (new_symbol): Generate fully-qualified names for types.
10876 (read_type_die): Determine appropriate prefix.
10877 (determine_prefix): New.
10878 (typename_concat): New.
10879 (class_name): New.
10880 * valops.c (value_aggregate_elt): Pass NOSIDE to
10881 value_struct_elt_for_reference.
10882 (value_struct_elt_for_reference): Make static, add NOSIDE
10883 parameter, call value_maybe_namespace_elt as a last resort.
10884 (value_namespace_elt): Break out code into
10885 value_maybe_namespace_elt.
10886 (value_maybe_namespace_elt): New.
10887
87783b8b
AC
108882004-01-12 Andrew Cagney <cagney@redhat.com>
10889
10890 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10891 cooked floating-point registers.
10892 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10893 and value_to_register.
10894
6503b91e
AC
108952004-01-13 Andrew Cagney <cagney@redhat.com>
10896
10897 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10898 * gdbarch.c: Re-generate.
10899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10900 FUNCTION_START_OFFSET.
10901 * v850-tdep.c (v850_gdbarch_init): Ditto.
10902 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10903 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10904 * sh-tdep.c (sh_gdbarch_init): Ditto.
10905 * s390-tdep.c (s390_gdbarch_init): Ditto.
10906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10907 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10908 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10909 * mips-tdep.c (mips_gdbarch_init): Ditto.
10910 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10911 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10913 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10914 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10915 * i386-tdep.c (i386_gdbarch_init): Ditto.
10916 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10917 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10918 * frv-tdep.c (frv_gdbarch_init): Ditto.
10919 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10920 * cris-tdep.c (cris_gdbarch_init): Ditto.
10921 * avr-tdep.c (avr_gdbarch_init): Ditto.
10922 * arm-tdep.c (arm_gdbarch_init): Ditto.
10923 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10924
ea1dd7bc
DJ
109252004-01-13 Daniel Jacobowitz <drow@mvista.com>
10926
10927 * infrun.c (follow_fork_mode_ask): Remove.
10928 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10929 (follow_fork): Simplify and remove internal error for
10930 follow_fork_mode_ask.
10931 (_initialize_infrun): Update "set follow-fork-mode" help text.
10932
0f0cffd2
AC
109332004-01-13 Andrew Cagney <cagney@redhat.com>
10934
10935 * configure.in: Update copyright year.
10936 (build_warnings): Add -Wunused-label.
10937 * configure: Re-generate.
10938
de38af99
AC
109392004-01-12 Andrew Cagney <cagney@redhat.com>
10940
954a7fba
AC
10941 * exec.h (exec_ops): Make "extern".
10942
de38af99
AC
10943 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10944 the function is void.
10945 (mips_pseudo_register_write): Ditto.
10946
1a111ce3
AC
109472004-01-12 Andrew Cagney <cagney@redhat.com>
10948
10949 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10950 call. Never defined.
10951 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10952 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10953 (struct sparc_gregset, struct regcache): Ditto.
10954 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10955
48efe704
AC
109562004-01-12 Andrew Cagney <cagney@redhat.com>
10957
10958 * mi/ChangeLog: Delete file. Renamed to ...
10959 * mi/ChangeLog-1999-2003: New file.
10960 * tui/ChangeLog: Delete file. Renamed to ...
10961 * tui/ChangeLog-1998-2003: New file.
fe61caab 10962
a54124c5
MK
109632004-01-11 Mark Kettenis <kettenis@gnu.org>
10964
2ca62865
MK
10965 * sparc64nbsd-tdep.c: Include "regset.h".
10966 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10967 Remove variables.
10968 (fetch_core_registers): Remove function.
10969 (sparc64nbsd_core_fns): Remove variable.
10970 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10971 functions.
10972 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10973 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10974 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10975
ca9d58e9
MK
10976 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10977 sparc_extract_struct_value_address.
10978 (sparc32_gdbarch_init): Set extract_struct_value_address.
10979 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10980 function.
10981 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10982 return_value_on_stack.
10983
3cc87ec0
MK
10984 * NEWS: Mention that %cs and %ss have been added to the AMD64
10985 configurations
10986
5bf00f29
MK
10987 * frame.c: Update copyright year.
10988 (get_prev_frame): Improve comment.
10989
4f7ec84e
MK
10990 * sparc64fbsd-tdep.c: Include "regset.h".
10991 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10992 Remove variables.
10993 (fetch_core_registers): Remove function.
10994 (sparc64fbsd_core_fns): Remove variable.
10995 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10996 functions.
10997 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10998 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10999 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11000
4e7b0cd3
MK
11001 * sparcnbsd-tdep.c: Include "regset.h".
11002 (fetch_core_registers): Remove function.
11003 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11004 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11005 functions.
11006 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11007 TDEP->fpregset.
46b58ce9 11008 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11009
a54124c5
MK
11010 * sparc-tdep.h (struct regset): Provide opaque declaration.
11011 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11012 fpregset and sizeof_fpregset members.
11013 * sparc-tdep.c (struct regset): Provide opaque declaration.
11014 (sparc_regset_from_core_section): New function.
11015 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11016 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11017 Set regset_from_core_section when appropriate.
11018
29ff87c5
MK
110192004-01-10 Mark Kettenis <kettenis@gnu.org>
11020
79b1ab3d
MK
11021 * x86-64-tdep.c (amd64_non_pod_p): New function.
11022 (amd64_classify_aggregate): Return class memory for non-POD
11023 C++ structure types.
11024
6470d250
MK
11025 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11026 argument. Use it to reserve a register if necessary.
11027 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11028 amd64_push_arguments.
11029
562c50c2
MK
11030 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11031
af233647
MK
11032 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11033 register numbers in comments.
11034 * x86-64-tdep.h: Update copyright year.
11035 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11036 Adjust for addition of %cs and %ss.
11037 * amd64fbsd-nat.c: Update copyright year.
11038 (reg_offset): Add register offsets for %cs and %ss.
11039 * amd64fbsd-tdep.c: Update copyright year.
11040 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11041 (amd64fbsd_sc_reg_offset): Likewise.
11042 * x86-64-linux-nat.c: Update copyright year.
11043 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11044 and %ss.
11045 * amd64nbsd-nat.c: Update copyright year.
11046 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11047 * amd64nbsd-tdep.c: Update copyright year.
11048 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11049 * x86-64-linux-tdep.c: Update copyright year.
11050 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11051 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11052 * regformats/reg-x86-64.dat: Add %cs and %ss.
11053
29ff87c5
MK
11054 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11055 variables to prevent long lines. Update comments to reflect
11056 reality.
11057
38d518c9
EZ
110582004-01-09 David Carlton <carlton@kealia.com>
11059
11060 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11061 * dwarf2read.c (read_namespace): Pull out name-generating code
11062 into namespace_name. Rename previous_namespace to previous_prefix
11063 and processing_current_namespace to processing_current_prefix..
11064 (namespace_name): New function.
11065 (add_partial_symbol): Substitute uses of pdi->name with
11066 actual_name.
11067 * cp-support.h: Rename processing_current_namespace to
11068 processing_current_prefix.
11069 Update copyright year.
11070 * cp-namespace.c: Rename processing_current_namespace to
11071 processing_current_prefix.
11072 Update copyright year.
fe61caab 11073
1e4728e7
AC
110742004-01-09 Andrew Cagney <cagney@redhat.com>
11075
11076 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11077
c77c642a
MK
110782004-01-09 Mark Kettenis <kettenis@gnu.org>
11079
11080 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11081 complaining.
11082 (process_one_symbol): Deal with N_PATCH stabs.
11083
b44e9041
EZ
110842004-01-09 Elena Zannoni <ezannoni@redhat.com>
11085
11086 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11087 ifdeffed code.
11088 Update copyright year.
38d518c9 11089
eccfb640
MC
110902004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11091
11092 * config/pa/tm-hppa.h: Update extern declarations for
11093 hppa32_hpux_frame_saved_pc_in_sigtramp,
11094 hppa32_hpux_frame_base_before_sigtramp, and
11095 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11096
848c5feb
MC
110972004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11098
11099 * config/pa/tm-hppah.h: Update copyright years.
11100
3cc5d663
AC
111012004-01-08 Andrew Cagney <cagney@redhat.com>
11102
11103 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11104 (mips_o32_reg_struct_has_addr): Delete function.
11105 (mips_gdbarch_init): Update.
11106 (mips_extract_struct_value_address): Delete function.
11107
bfec0b41
JJ
111082004-01-08 David Mosberger <davidm@hpl.hp.com>
11109
11110 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11111 reality.
11112
16e109ca
AC
111132004-01-07 Andrew Cagney <cagney@redhat.com>
11114
6214a8a1
AC
11115 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11116 architecture's elf flags (when available).
11117
8d5838b5
AC
11118 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11119 FPU to the start, check the MIPS FPU when looking for an old
11120 architecture.
11121 (set_mipsfpu_single_command): Update the architecture.
11122 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11123
480d3dd2
AC
11124 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11125 (mips_mask_address_p): Add "tdep" parameter.
11126 (show_mask_address, mips_addr_bits_remove): Update.
11127 (mips_dump_tdep): Update.
11128 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11129 (MIPS_STACK_ARGSIZE): Delete macro.
11130 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11131 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11132 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11133 (mips_dump_tdep): Update.
11134 (MIPS_SAVED_REGSIZE): Delete macro.
11135 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11136 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11137 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11138 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11139 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11140 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11141 (mips_pop_frame, return_value_location): Update.
11142 (mips_n32n64_return_value, mips_dump_tdep): Update.
11143
ec03c1ac
AC
11144 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11145 MIPS ABI.
11146
16e109ca
AC
11147 * mips-tdep.c: Update copyright.
11148 (mips_gdbarch_init): Merge two code blocks handling the register
11149 name and number layout.
11150
15255275
MS
111512004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11152
11153 * tracepoint.c (validate_actionline): Fix segv at EOF
11154
9f9057da
MC
111552004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11156
11157 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11158 properly for static fields.
11159
0127c0d3 111602004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11161 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11162
11163 * disasm.c: Update copyright to include 2004.
11164 (do_mixed_source_and_assembly): For uiout asm list
11165 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11166 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11167 the tuple/list. Move check for whether to close off the
fe61caab 11168 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11169 on each loop iteration.
11170
5269965e
AC
111712004-01-05 Andrew Cagney <cagney@redhat.com>
11172
54f1137d
AC
11173 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11174 should be a switch case and not a label.
11175 * mips-tdep.c (mips32_next_pc): Delete unused labels
11176 "greater_equal_branch" and "less_zero_branch".
11177 * jv-valprint.c (java_print_value_fields): Delete unused label
11178 "flush_it".
11179
5269965e
AC
11180 * target.c (unpush_target): Only close a target that is in the
11181 target stack.
11182
dbc22fa1
MK
111832004-01-05 Mark Kettenis <kettenis@gnu.org>
11184
9515395e
MK
11185 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11186 address from [sp + 64] instead of %o2.
11187
dbc22fa1
MK
11188 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11189 fixes PR backtrace/1476.
11190
5439edaa
AC
111912004-01-05 Andrew Cagney <cagney@redhat.com>
11192
11193 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11194 move to start of file.
11195 * i386-tdep.h (struct regcache): Add opaque declaration.
11196 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11197 declaration.
11198 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11199 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11200 * win32-nat.c (fake_create_process): Use ISO C style definition.
11201 * stabsread.c (define_symbol): Delete #ifndef
11202 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11203 stabs_argument_has_addr call, macro never defined.
11204
19061abe
MC
112052004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11206
11207 * op50-rom.c: Delete.
11208 * w89k-rom.c: Delete.
11209 * Makefile.in: Remove references.
11210
e53bef9f
MK
112112004-01-04 Mark Kettenis <kettenis@gnu.org>
11212
11213 * x86-64-tdep.c: Update copyright year.
11214 (struct amd64_register_info): Rename from x86_64_register_info.
11215 (amd64_register_info): Rename from x86_64_register_info.
11216 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11217 (amd64_register_name): Rename from x86_64_register_name.
11218 (amd64_register_type): Rename from x86_64_register_type.
11219 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11220 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11221 (amd64_dwarf_reg_to_regnum): Rename from
11222 x86_64_dwarf_reg_to_regnum.
11223 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11224 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11225 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11226 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11227 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11228 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11229 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11230 (amd64_frame_cache): Rename from x86_64_frame_cache.
11231 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11232 (amd64_frame_prev_register): Rename from
11233 x86_64_frame_prev_register.
11234 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11235 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11236 (amd64_sigtramp_frame_cache): Rename from
11237 x86_64_sigtramp_frame_cache.
11238 (amd64_sigtramp_frame_prev_register): Rename from
11239 x86_64_sigtramp_frame_prev_register.
11240 (amd64_sigtramp_frame_unwind): Rename from
11241 x86_64_sigtramp_frame_unwind.
11242 (amd64_sigtramp_frame_sniffer): Rename from
11243 x86_64_sigtramp_frame_sniffer.
11244 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11245 (amd64_frame_base): Rename from x86_64_frame_base.
11246 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11247 (amd64_frame_align): Rename from x86_64_frame_align.
11248 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11249 (amd64_regset_from_core_section): Rename from
11250 x86_64_regset_from_core_section.
11251 (x86_64_init_abi): Update comments.
11252
fca6aa58
NR
112532004-01-04 Nick Roberts <nick@nick.uklinux.net>
11254
11255 * MAINTAINERS (write after approval): Add myself.
11256
8ada74e3
MK
112572004-01-04 Mark Kettenis <kettenis@gnu.org>
11258
11259 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11260 `float' arguments.
11261
5154b0cd
MK
112622004-01-04 Mark Kettenis <kettenis@gnu.org>
11263
11264 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11265 such that it mentions a specific version of GCC that exhibits this
11266 bug.
11267
fb316966
MK
112682004-01-03 Mark Kettenis <kettenis@gnu.org>
11269
200cc553
MK
11270 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11271 structure that has a single `float' member, store it in %f1 in
11272 addition to %f0.
11273
e226a4a0
MK
11274 * sparc-sol2-nat.c: Add missing '\'.
11275
b9d4c5ed
MK
11276 * sparc-tdep.c (sparc32_return_value): New function.
11277 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11278 Remove functions.
11279 (sparc32_gdbarch_init): Set return_value, don't set
11280 extract_return_value, store_return_value, use_struct_convention
11281 and return_value_on_stack.
11282
fb316966
MK
11283 * sparc-sol2-nat.c: Add missing ')'.
11284
1af510a8
JB
112852004-01-03 J. Brobecker <brobecker@gnat.com>
11286
11287 * infrun.c (handle_step_into_function): New function.
11288 (handle_inferior_event): Extract out some code into the new
11289 function above.
11290
5cf4d23a
JB
112912004-01-03 J. Brobecker <brobecker@gnat.com>
11292
11293 * infrun.c (handle_inferior_event): Move the declaration of
11294 real_stop_pc inside the if blocks where it is used.
11295
60af1db2
MK
112962004-01-03 Mark Kettenis <kettenis@gnu.org>
11297
11298 * sparc64-tdep.c (sparc64_16_byte_align_p)
11299 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11300 Use check_typedef to get subtypes of structures and unions.
11301 (sparc64_store_return_value): Fix calculation of the appropriate
11302 offset into VALBUF when storing a structure or union.
11303 (sparc64_return_value): New function.
11304 (sparc64_use_struct_convention): Remove function.
11305 (sparc64_init_abi): Set return_value, don't set
11306 extract_return_value, store_return_value and
11307 use_struct_convention.
11308
1a901d3f
EZ
113092004-01-03 Eli Zaretskii <eliz@elta.co.il>
11310
11311 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11312 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11313 gdb/config/alpha/xm-alphaosf.h,
11314 gdb/config/powerpc/tm-ppcle-eabi.h,
11315 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11316 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11317 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11318 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11319 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11320 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11321 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11322 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11323 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11324 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11325 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11326 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11327 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11328 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11329 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11330 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11331 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11332 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11333 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11334 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11335 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11336 Remove lines for .cvsignore files.
11337
ef52e463
JB
113382004-01-03 J. Brobecker <brobecker@gnat.com>
11339
11340 * infrun.c: Back out the previous change.
11341
cb1bf9dc
MK
113422004-01-03 Mark Kettenis <kettenis@gnu.org>
11343
f0424ef6
MK
11344 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11345 sparc-*-sunos4* to the list of REMOVED configurations.
11346
cb1bf9dc
MK
11347 * configure.tgt: Add back sparc-*-vxworks*.
11348 * remote-vxsparc.c: Remove all includes except for "defs.h",
11349 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11350 Include "sparc-tdep.h".
11351 (SPARC_R_G1): New define.
11352 (vxsparc_gregset): New variable.
11353 (ext_format_sparc): Remove extern declaration.
11354 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11355 sparc32_supply_fpregset.
11356 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11357 sparc_collect_rwindow and sparc32_collect_fpregset.
11358 * config/sparc/tm-vxworks.h: New file, based on recently removed
11359 tm-vxsparc.h.
11360 * config/sparc/vxworks.mt: New file, based on recently removed
11361 vxworks.mt.
fe61caab 11362
5e938f9f
JB
113632004-01-03 J. Brobecker <brobecker@gnat.com>
11364
11365 * infrun.c (handle_step_into_function): New function.
11366 (handle_inferior_event): Extract out some code into the new
11367 function above.
11368
386c036b
MK
113692004-01-02 Mark Kettenis <kettenis@gnu.org>
11370
11371 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11372 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11373 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11374 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11375 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11376 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11377 (sparc_nat_h): New variable.
11378 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11379 (tm-sun4os4.h): Remove dependency.
11380 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11381 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11382 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11383 sparc-tdep.o): Update dependencies.
11384 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11385 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11386 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11387 dependencies.
11388 * configure.host: Remove existing sparc-*-lynxos*,
11389 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11390 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11391 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11392 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11393 triplets.
11394 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11395 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11396 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11397 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11398 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11399 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11400 sparc64-*-solaris2* and sparc64-*-* triplets.
11401 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11402 "symtab.h" and "objfiles.h".
11403 (BIAS): Remove define.
11404 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11405 (X_DISP19): Remove macros.
11406 (sparc_fetch_instruction): Remove function.
11407 (struct gdbarch_tdep): Remove definition.
11408 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11409 (sparc_breakpoint_from_pc): Remove function.
11410 (struct sparc64_frame_cache): Remove definition.
11411 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11412 sparc64_unwind_pc): Remove functions.
11413 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11414 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11415 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11416 (sparc64_frame_cache): Change return type to `struct
11417 sparc_frame_cache *'. Simply call sparc_frame_cache.
11418 (sparc64_frame_this_id, sparc64_frame_prev_register,
11419 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11420 instead of `struct sparc64_frame_cache.
11421 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11422 sparc_analyze_control_transfer, sparc_software_single_step,
11423 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11424 _initialize_sparc64_tdep): Remove functions.
11425 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11426 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11427 macros.
11428 (sparc64_supply_gregset, sparc64_collect_gregset,
11429 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11430 (sparc64_init_abi): New function.
11431 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11432 inclusion guard. Include "sparc-tdep.h".
11433 (BIAS): Define.
11434 (r_tstate_offset, r_fprs_offset): New defines.
11435 (enum sparc_regnum): Remove defenition.
11436 (enum sparc64_regnum): Reformat.
11437 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11438 (sparc64_init_abi, sparc64_supply_gregset,
11439 sparc64_collect_gregset, sparc64_supply_fpregset,
11440 sparc64_collect_fpregset): New prototypes.
11441 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11442 Add extern declarations.
11443 (sparc64_sol2_init_abi): New prototype.
11444 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11445 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11446 prototypes.
11447 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11448 "sparnbsd-nat.h".
11449 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11450 functions.
11451 (_initialize_sparc64fbsd_nat): Remove initialization of
11452 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11453 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11454 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11455 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11456 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11457 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11458 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11459 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11460 (sparc64fbsd_r_y_offset): Remove variables.
11461 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11462 Make static and const.
11463 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11464 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11465 functions.
11466 (sparc64fbsd_gregset): New variable.
11467 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11468 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11469 and sparc64_supply_fpregset.
11470 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11471 (sparc64fbsd_sigtramp_frame_this_id)
11472 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11473 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11474 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11475 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11476 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11477 * sparcnbsd-tdep.c: Update copyright year. Include
11478 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11479 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11480 "value.h" and "sparcnbsd-tdep.h".
11481 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11482 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11483 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11484 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11485 defines.
11486 (sparcnbsd_gregset): New variable.
11487 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11488 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11489 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11490 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11491 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11492 variables.
11493 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11494 (sparc32nbsd_sigcontext_frame_this_id)
11495 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11496 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11497 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11498 (sparcnbsd_get_longjmp_target_32,
11499 sparcnbsd_get_longjmp_target_64): Remove functions.
11500 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11501 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11502 sparcnbsd_init_elf): Remove.
11503 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11504 (sparcnbsd_elf_init_abi): New functions.
11505 (_initialize_sparcnbsd_tdep): New prototype.
11506 (_initialize_sparnbsd_tdep): Update.
11507 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11508 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11509 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11510 * config/sparc/linux.mh: Update comment.
11511 (XM_FILE, HOST_IPC): Remove variables.
11512 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11513 sparc-linux-nat.o.
11514 * config/sparc/linux.mt: Update comment.
11515 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11516 * config/sparc/nbsd.mt: Reformat.
11517 * config/sparc/nbsd64.mh: Update comment.
11518 (NATDEPFILES): Add sparc-nat.o.
11519 * config/sparc/nbsd64.mt: Update comment.
11520 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11521 (TM_FILE): Set to tm-nbsd.h.
11522 * config/sparc/nbsdelf.mh: Update comment.
11523 (NATDEPFILES): Add sparc-nat.o.
11524 (XM_FILE): Delete.
11525 * config/sparc/nbsdaout.mh: Update comment.
11526 (NATDEPFILES): Add sparc-nat.o
11527 (XM_FILE): Delete.
11528 * config/sparc/nm-linux.h: Update copyright year. Don't include
11529 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11530 inclusion.
11531 (KERNEL_U_SIZE): Remove define.
11532 (kernel_u_size): Remove prototype.
11533 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11534 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11535 "regcache.h".
11536 (CHILD_PREPARE_TO_STORE): Remove define.
11537 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11538 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11539 sparcnbsd-nat.c: Rewrite files.
11540 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11541 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11542 sparcnbsd-tdep.h: Remove files.
11543 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11544 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11545 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11546 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11547 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11548 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11549 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11550 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11551 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11552 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11553 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11554 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11555 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11556 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11557 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11558 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11559 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11560 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11561 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11562
ee84457a
AC
115632004-01-02 Andrew Cagney <cagney@redhat.com>
11564
11565 From 2003-12-18 Kazuhiro Inaoka:
11566 * configure.host: Add m32r-linux target.
11567
0bc2134e
MC
115682004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11569
11570 * top.c (print_gdb_version): Update year to 2004.
11571
89a72f9c
MM
115722004-01-02 Mark Mitchell <mark@codesourcery.com>
11573
11574 * MAINTAINERS: Add myself to the write-after-approval category.
11575
86b013ed
DJ
115762004-01-02 Daniel Jacobowitz <drow@mvista.com>
11577
11578 From Bernardo Innocenti <bernie@develer.com>:
11579 * configure.tgt: Add uClinux target.
11580
e42c9534
AC
115812004-01-02 Andrew Cagney <cagney@redhat.com>
11582
11583 * utils.c (do_my_cleanups): Make static, add forward declaration.
11584 * defs.h (do_my_cleanups): Delete declaration.
11585
162467d3
EZ
115862004-01-02 Eli Zaretskii <eliz@elta.co.il>
11587
11588 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11589 bfd/ChangeLog-0203.
11590
78434e59
MK
115912004-01-02 Mark Kettenis <kettenis@gnu.org>
11592
11593 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11594 in <machine/reg.h>.
11595 * configure, config.in: Regenerate.
11596
48efe704
AC
11597For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11598tui/ChangeLog-1998-2003.
c906108c
SS
11599\f
11600Local Variables:
11601mode: change-log
11602left-margin: 8
11603fill-column: 74
11604version-control: never
11605End:
This page took 1.375267 seconds and 4 git commands to generate.