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
e38b8658
AC
3 * config/vax/nm-obsd.h: Delete file.
4 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
5 * config/vax/nm-nbsd.h: Delete file.
6 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
7 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
8 * config/sh/nm-nbsd.h: Delete file.
9 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
10 * config/rs6000/nm-rs6000ly.h: Delete file.
11 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
12 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
13 * config/powerpc/nm-obsd.h: Delete file.
14 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
15 * config/powerpc/nm-nbsd.h: Delete file.
16 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
17 * config/pa/nm-obsd.h: Delete file.
18 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
19 * config/mips/nm-nbsd.h: Delete file.
20 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
21 * config/m88k/nm-obsd.h: Delete file.
22 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
23 * config/m68k/nm-nbsd.h: Delete file.
24 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
25 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
26 * config/i386/nm-nbsd.h: Delete file.
27 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
28 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
29 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
30 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
31 * config/i386/nm-i386lynx.h: Delete file.
32 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
33 * config/arm/nm-nbsd.h: Delete file.
34 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
35 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
36
be1ed680
AC
37 * config/i386/tm-fbsd.h: Delete file.
38 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
39 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
40
4b392b26
AC
41 * config/rs6000/tm-rs6000-aix4.h: Delete file.
42 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
43 * config/rs6000/aix4.mt (TM_FILE): Set to
44 config/rs6000/tm-rs6000.h.
45 * config/powerpc/tm-ppc-aix.h: Delete file.
46 * config/powerpc/aix.mt (TM_FILE): Set to
47 config/rs6000/tm-rs6000.h.
48 * config/m68k/tm-linux.h: Delete file.
49 * config/m68k/linux.mt (TM_FILE): Set to solib.h
50 * config/i386/tm-linux64.h: Delete file.
51 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
52 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
53
f3219c75
AC
54 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
55 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
56 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
57 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
58 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
59 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
60 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
61 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
62 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
63
b8c4aece
AC
64 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
65 gdb_host_cpu.
66
8ac2e020
JB
672004-09-02 Joel Brobecker <brobecker@gnat.com>
68
69 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
70 Minor reformatting. Some code factoring.
71
c185a355
AC
722004-09-02 Andrew Cagney <cagney@gnu.org>
73
63f22f0d
AC
74 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
75 * config/vax/tm-nbsd.h: Delete file.
76 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
77 * config/sparc/tm-vxworks.h: Delete file.
78 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
79 * config/sparc/tm-nbsd.h: Delete file.
80 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
81 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
82 * config/sparc/tm-linux.h: Delete file.
83 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
84 * config/s390/tm-linux.h: Delete file.
85 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
86 * config/pa/tm-bsd.h: Delete file.
87 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
88 * config/m68k/tm-obsd.h: Delete file.
89 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
90 * config/m68k/tm-nbsd.h: Delete file.
91 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
92 * config/i386/tm-vxworks.h: Delete file.
93 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
94 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
95 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
96 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
97 * config/i386/tm-nbsd.h: Delete file.
98 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
99 * config/i386/tm-i386lynx.h: Delete file.
100 * config/cris/cris.mt (TM_FILE): Set to solib.h.
101 * config/cris/tm-cris.h: Delete file.
102
0f475e27
AC
103 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
104 * configure: Re-generate.
105 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
106 * config/arm/tm-nbsd.h: Delete file.
107
458ed000
AC
108 * config/powerpc/tm-ppcle-sim.h: Delete.
109 * config/powerpc/tm-ppcle-eabi.h: Delete.
110 * config/powerpc/tm-nbsd.h: Delete.
111 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
112 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
113 tm-ppcle-eabi.h.
114
f14375f3
AC
115 * config/i386/nto.mh (NAT_FILE): Delete.
116 * config/i386/nm-nto.h: Delete.
117
c34d127c
AC
118 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
119 * config/m68k/tm-os68k.h: Ditto.
120 * config/m68k/tm-monitor.h: Ditto.
121 * config/m68k/tm-cisco.h: Ditto.
122 * config/m68k/st2000.mt (TM_FILE): Delete.
123 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
124 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
125 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
126 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
127
f7f0fe03
AC
128 * config/m68k/tm-st2000.h: Delete.
129 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
130 * config/sparc/fbsd.mt (TM_FILE): Delete.
131 * config/sparc/tm-fbsd.h: Delete.
132
a2558533
AC
133 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
134 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
135 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
136
b78960be
AC
137 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
138 GDB_TM_FILE and GDB_XM_FILE.
139 * gdbarch.c: Re-generate.
140 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
141 quotes in macro definition.
142 * configure.in: Re-generate.
143
4d60522e
AC
144 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
145 validating architecture methods.
146 * gdbarch.c: Re-generate.
147
5010d38b
AC
148 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
149 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
150 GDB_MULTI_ARCH_PARTIAL.
151 * gdbarch.h: Re-generate.
152
c185a355
AC
153 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
154 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
155 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
156 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
157 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
158 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
159 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
160 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
161 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
162 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
163 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
164 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
165
14aaa6ab
AC
1662004-09-01 Andrew Cagney <cagney@gnu.org>
167
168 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
169 and main_func_highpc.
170 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
171 * objfiles.c (init_entry_point_info, objfile_relocate): Update
172 * nlmread.c (nlm_symfile_read): Update.
173
a343eb3c
JB
1742004-09-01 Joel Brobecker <brobecker@gnat.com>
175
176 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
177 (mips_insn32_frame_cache): Inline call to find_proc_desc.
178 (find_proc_desc): Remove dead code.
179
4fbbbd07
JB
1802004-09-01 Joel Brobecker <brobecker@gnat.com>
181
182 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
183
84acb35a
JJ
1842004-09-01 Jeff Johnston <jjohnstn@redhat.com>
185
186 * observer.sh: Add struct so_list declaration.
187 * Makefile.in: Add dependencies on observer.h for solib.c and
188 breakpoint.c.
189 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
190 function.
191 (_initialize_breakpoint): Register
192 disable_breakpoints_in_unloaded_shlib as an observer of the
193 "solib unloaded" observation event.
194 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
195 call decode_line_1 so unfound breakpoint errors are silent.
196 * solib.c (update_solib_list): When a solib is discovered to have
197 been unloaded by the program, notify all observers of the
198 "solib unloaded" observation event.
199
c8cd9f6c
AC
2002004-09-01 Andrew Cagney <cagney@gnu.org>
201
202 * frame.c: Include "objfiles.h".
203 (inside_main_func): New function.
204 (get_prev_frame): Use new inside_main_func.
205 * Makefile.in (frame.o): Update dependencies.
206 * defs.h (inside_main_func): Delete declaration.
207 * blockframe.c (inside_main_func): Delete function.
208
1168df01
JB
2092004-08-31 Jim Blandy <jimb@redhat.com>
210
211 * dwarf2read.c (is_vtable_name): New function, based on logic from
212 read_structure_type, but passing the correct length to strncmp,
213 and using 'sizeof' instead of 'strlen'.
214 (read_structure_type): Call it.
215
f14f9744
JB
2162004-08-31 Joel Brobecker <brobecker@gnat.com>
217
218 * config/powerpc/aix.mh: Add comment.
219
386d4518
PG
2202004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
221
222 * MAINTAINERS: Add self to Write-After-Approval.
223
7d97d5e2
MI
2242004-08-30 Manoj Iyer <manjo@austin.ibm.com>
225
226 * MAINTAINERS: Add self to Write-After-Approval.
227
68f53502
AC
2282004-08-30 Andrew Cagney <cagney@gnu.org>
229
230 Fix PR breakpoints/1757.
231 * infrun.c (struct execution_control_state): Replace
232 remove_breakpoints_on_following_step with
233 step_after_step_resume_breakpoint.
234 (init_execution_control_state): Update.
235 (handle_inferior_event): For signals, when stepping off a
236 breakpoint, set step_after_step_resume_breakpoint. When
237 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
238 (keep_going): Delete code handling
239 remove_breakpoints_on_following_step.
240
7ca2d3a3
DL
2412004-08-29 David Lecomber <david@streamline-computing.com>
242
243 Fix PR gdb/648
244 * language.h (enum array_ordering): New enum.
245 * language.h (struct language_defn): New la_array_ordering
246 attribute.
247 * language.c (unknown_language_defn, auto_language_defn)
248 (local_language_defn): Ditto.
249 * ada-lang.c (ada_language_defn): Ditto.
250 * c-lang.c (c_language_defn, cplus_language_defn)
251 (asm_language_defn, minimal_language_defn): Ditto.
252 * f-lang.c (f_language_defn): Ditto.
253 * jv-lang.c (java_language_defn): Ditto.
254 * m2-lang.c (f_language_defn): Ditto.
255 * objc-lang.c (objc_language_defn): Ditto.
256 * p-lang.c (pascal_language_defn): Ditto.
257 * scm-lang.c (scm_language_defn): Ditto.
258 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
259 oriented large to small in type structure.
260 * dwarf2read.c (read_array_order): New function.
261 (read_array_type): Use read_array_order to check row/column
262 major ordering.
263
e354df01
NW
2642004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
265
266 * target.c (target_resize_to_sections): Check
267 current_target.to_sections for an old value when updating.
268
9185ddce
JB
2692004-08-27 Joel Brobecker <brobecker@gnat.com>
270
271 * procfs.c (dbx_link_bpt_addr): New static global variable.
272 (dbx_link_shadow_contents): New static global variable.
273 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
274 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
275 if we just hit it.
276 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
277 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
278 from run to run.
279 (procfs_create_inferior): Remove syssgi syscall-exit notifications
280 after the inferior has been forked.
281 (remove_dbx_link_breakpoint): New function.
282 (dbx_link_addr): New function.
283 (insert_dbx_link_bpt_in_file): New function.
284 (insert_dbx_link_bpt_in_region): New function.
285 (insert_dbx_link_breakpoint): New function.
286 (proc_trace_syscalls_1): New function, extracted from
287 proc_trace_syscalls.
288 (proc_trace_syscalls): Replace extract code by call to
289 proc_trace_syscalls_1.
290 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
291 is no longer valid.
292
e6742ace
JB
2932004-08-25 Jim Blandy <jimb@redhat.com>
294
295 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
296
8fb3e588
AC
2972004-08-25 Andrew Cagney <cagney@gnu.org>
298
629a41ee
AC
299 * infrun.c (struct execution_control_state): Delete field
300 "stepping_through_sigtramp".
301 (init_execution_control_state): Do not set same.
302 (context_switch): Do not pass same to save_infrun_state and
303 load_infrun_state.
304 * gdbthread.h (struct thread_info): Delete field
305 stepping_through_sigtramp.
306 (save_infrun_state, load_infrun_state): Delete parameter
307 stepping_through_sigtramp.
308 * thread.c (load_infrun_state, save_infrun_state): Update.
309
8fb3e588
AC
310 * infrun.c: Re-indent. Move expression operators to the beginning
311 of the line. Remove long disabled #if 0 code.
312
49c54768
AC
3132004-08-24 Andrew Cagney <cagney@gnu.org>
314
315 * doublest.h (floatformat_ieee_quad): Rename
316 floatformat_ia64_quad.
317 * doublest.c (floatformat_ieee_quad): Rename
318 floatformat_ia64_quad.
319 (_initialize_doublest): Update.
320
5ca2e327
JB
3212004-08-24 Jim Blandy <jimb@redhat.com>
322
87808bd6
JB
323 * dwarf2expr.h (struct dwarf_expr_context): New members
324 'num_pieces' and 'pieces', for returning the result of an
325 expression that uses DW_OP_piece.
326 (struct dwarf_expr_piece): New struct type.
327 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
328 pieces.
329 (free_dwarf_expr_context): Free pieces, if any.
330 (add_piece): New function.
331 (execute_stack_op): Implement DW_OP_piece.
332 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
333 expression is a list of pieces, print an error message.
334 (dwarf2_loc_desc_needs_frame): If the expression yields
335 pieces, and any piece is in a register, then we need a frame.
336
5ca2e327
JB
337 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
338 the stack until we've decided what sort of result the evaluation
339 has produced. Use separate variables, with more specific names.
340
2afeb6b8
RE
3412004-08-23 Richard Earnshaw <rearnsha@arm.com>
342
343 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
344 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
345 (arm_netbsd_init_abi_common): Register them.
346
5885ab49
MK
3472004-08-22 Mark Kettenis <kettenis@gnu.org>
348
fda820a6
MK
349 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
350
1c5bf419
MK
351 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
352 safe_frame_unwind_memory instead of target_read_memory.
353
8cbba7c8
MK
354 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
355 Reorder includes.
356 (fetch_register, store_register): Remove prototypes.
357 (child_resume): Reorganize code and comments such that it is
358 grouped a bit more logically.
359 (attach): Explicitly compare errno against 0.
360 (detach): Likewise. Use perror_with_name instead of
361 print_sys_errmsg.
362 * Makefile.in (infptrace.o): Update dependencies.
363
c5fa4245
MK
364 * ia64-linux-nat.c: Update copyright year.
365 (fetch_debug_register, store_debug_register)
366 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
367 PTRACE_TYPE_ARG3.
368 * config/ia64/nm-linux.h: Update copyright year.
369 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
370
387c058c
MK
371 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
372 from CORE_ADDR to struct frame_info *. Use
373 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
374 (amd64_linux_sigtramp_p): Adjust for changed signature of
375 and64_linux_sigtramp_start
376
277215a6
MK
377 * gdb_ptrace.h: GNU/Linux.
378
25f6178e
MK
379 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
380 Remove defines.
381
652fc137
MK
382 * infptrace.c: Include "gdb_assert.h".
383 (PTRACE_XFER_TYPE): Remove define.
384 (offsetof): Only define if U_REGS_OFFSET isn't defined.
385 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
386 Tweak comment.
387 (fetch_inferior_registers, store_inferior_registers): Remove
388 redundant culry braces. Tweak comment. s/regno/regnum.
389 * Makefile.in (infptrace.o): Update dependencies.
390
5885ab49
MK
391 * configure.in: Change test for return type of ptrace to default
392 to `long' instead of `int'.
393 * configure: Regenerate.
394
11003ae3
MK
3952004-08-21 Mark Kettenis <kettenis@gnu.org>
396
6b95110c
MK
397 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
398
bcb3dc3d
MK
399 * configure.in: Check for ttrace function.
400 * configure, config.in: Regenerate.
401
11003ae3
MK
402 * gdb_ptrace.h: New file.
403 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
404 <sys/ptrace.h>.
405 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
406 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
407 (attach): Don't define PT_ATTACH.
408 (detach): Don't define PT_DETACH.
409 * Makefile.in (gdb_ptrace_h): New variable.
410 (infptrace.o): Update dependencies.
411
f8707cac
MK
4122004-08-16 Mark Kettenis <kettenis@gnu.org>
413
414 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
415 instead of `int' if not already defined.
416 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
417 PTRACE_TYPE_ARG3.
418 * infptrace.c (call_ptrace): Revert change that replaced
419 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
420
655c5466
MK
4212004-08-15 Mark Kettenis <kettenis@gnu.org>
422
156e5ba7
MK
423 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
424 Remove defines.
425
de9a9e51
MK
426 * linux-nat.c (kill_inferior): Add missing third and fourth
427 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
428
88800403
MK
429 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
430 PTRACE_TYPE_RET.
431
849a1d7c
MK
432 * proc-why.c (proc_prettyfprint_why): Fix format string.
433
61ad16d1
MK
434 * solib-osf.c (osf_current_sos): Remove unsused label.
435
a6ed5501
MK
436 * configure.in: Add <ncurses/ncurses.h> to the list of possible
437 curses headers.
438 * configure, config.in: Regenerate.
439 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
440 <ncurses/ncurses.h>.
441
016ddeca
MK
442 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
443 * config/nm-nbsd.h: Update copyright year.
444 (PTRACE_ARG3_TYPE): Remove define.
445
49ec097f
MK
446 * sparc-nat.c (fetch_inferior_registers)
447 (store_inferior_registers, sparc_xfer_wcookie):
448 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
449
9f8e0089
MK
450 * alphabsd-nat.c (fetch_inferior_registers):
451 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
452 PTRACE_TYPE_ARG3.
453 * amd64bsd-nat.c (fetch_inferior_registers)
454 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
455 PTRACE_TYPE_ARG3.
456 * armnbsd-nat.c: Update copyright year.
457 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
458 (store_register, store_regs, store_fp_register, store_fp_regs):
459 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
460 * hppabsd-nat.c (fetch_inferior_registers)
461 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
462 PTRACE_TYPE_ARG3.
463 * i386bsd-nat.c (fetch_inferior_registers)
464 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
465 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
466 * m68kbsd-nat.c (fetch_inferior_registers)
467 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
468 PTRACE_TYPE_ARG3.
469 * m88kbsd-nat.c (fetch_inferior_registers)
470 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
471 PTRACE_TYPE_ARG3.
472 * mipsnbsd-nat.c: Update copyright year.
473 (fetch_inferior_registers, store_inferior_registers):
474 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
475 * ns32knbsd-nat.c: Update copyright year.
476 (fetch_inferior_registers, store_inferior_registers):
477 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
478 * ppcnbsd-nat.c (fetch_inferior_registers):
479 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
480 PTRACE_TYPE_ARG3.
481 * ppcobsd-nat.c (fetch_inferior_registers):
482 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
483 PTRACE_TYPE_ARG3.
484 * shnbsd-nat.c: Update copyright year.
485 (fetch_inferior_registers, store_inferior_registers):
486 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
487 * vaxbsd-nat.c (fetch_inferior_registers)
488 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
489 PTRACE_TYPE_ARG3.
490
655c5466
MK
491 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
492 PTRACE_TYPE_ARG3.
493 * infptrace.c (call_ptrace, child_resume, attach, detach)
494 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
495 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
496 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
497 PTRACE_TYPE_ARG3.
498
c40d0d10
MK
4992004-08-14 Mark Kettenis <kettenis@gnu.org>
500
5cb0ff31
MK
501 * defs.h: Remove out-of-date comment.
502 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
503 [!GETENV_PROVIDED] (getenv): Remove prototype.
504
5f0f34cb
MK
505 * standalone.c: Remove file.
506 * Makefile.in (standalone.o): Remove dependency.
507
7532965f
MK
508 * i386-linux-nat.c (dummy_sse_values): Remove function and
509 prototype.
510 (i386_linux_dr_get): Fix typo in comment.
511 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
512
1bdc6c53
MK
513 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
514
c40d0d10
MK
515 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
516 from declaration.
517 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
518 from definition.
519
64218d3e
MK
5202004-08-13 Mark Kettenis <kettenis@gnu.org>
521
522 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
523 parenthesis in definition.
524 * configure: Regenerated.
525
926c94e7
MC
5262004-08-12 Michael Chastain <mec.gnu@mindspring.com>
527
528 * PROBLEMS: Mention build/1411.
529
69489883
NN
5302004-08-09 Robert Millan <robertmh@gnu.org>
531
532 Committed by Nathanael Nerode.
533 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
534 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
535
ebb7c577
AC
5362004-08-12 Andrew Cagney <cagney@gnu.org>
537
538 * NEWS: Mention fixes in GDB 6.2.1.
539 * PROBLEMS: Remove mention of mips-irix.
540
232d697c
JB
5412004-08-11 Joel Brobecker <brobecker@gnat.com>
542
543 * config/powerpc/xm-aix.h: Delete.
544 * config/powerpc/aix.mh (MH_FILE): Remove.
545 * config/powerpc/aix432.mh (MH_FILE): Remove.
546
72f4e82b
JB
5472004-08-11 Joel Brobecker <brobecker@gnat.com>
548
549 * config/powerpc/aix.mh: Remove obsolete comment.
550 * config/powerpc/aix432.mh: Likewise.
551
0687ccb2
JB
5522004-08-11 Joel Brobecker <brobecker@gnat.com>
553
554 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
555
dbf3ada7
JB
5562004-08-11 Joel Brobecker <brobecker@gnat.com>
557
e08e1886
JB
558 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
559 this file is now empty.
560 * config/xm-aix4.h: Remove, this file is no longer included
561 anywhere.
562
5632004-08-11 Joel Brobecker <brobecker@gnat.com>
564
565 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
566 that file is now empty.
dbf3ada7
JB
567 (termdef): Remove prototype, function no longer used.
568
4c525ef6
JB
5692004-08-11 Joel Brobecker <brobecker@gnat.com>
570
571 * doc/gdbint.texinfo (Host Definition): Remove documentation
572 for USE_O_NOCTTY, no longer used.
573 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
574 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
575
82e0b968
JB
5762004-08-11 Joel Brobecker <brobecker@gnat.com>
577
578 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
579 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
580 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
581
f2acbe1c
MK
5822004-08-11 Mark Kettenis <kettenis@gnu.org>
583
daa98270
MK
584 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
585 instead of FIVE_ARG_PTRACE.
586
f2acbe1c
MK
587 * inflow.c (O_NOCTTY): Define to zero if not already defined.
588 (new_tty): Use O_NOCTTY unconditionally.
589
cc377e6b
MK
5902004-08-10 Mark Kettenis <kettenis@gnu.org>
591
592 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
593 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
594 fflush on stdout.
595
3bcc18fa
JB
5962004-08-10 Joel Brobecker <brobecker@gnat.com>
597
598 * xcoff_symfile_finish: Replace last call to xmfree by call
599 to xfree.
600
7936743b
AC
6012004-08-10 Andrew Cagney <cagney@gnu.org>
602
cc503c8a
AC
603 * main.c (captured_main): Delete call to init_malloc.
604 * defs.h (init_malloc): Delete declaration.
605 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
606 (init_malloc): Delete functions.
607
2dc74dc1
AC
608 * defs.h (xmfree): Delete.
609 * utils.c (xmfree): Delete function.
610 (xfree): Inline calls to xmfree and mfree.
611 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
612 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
613 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
614 * somread.c (som_symfile_finish): Ditto.
615 * objfiles.c (allocate_objfile, free_objfile):
616 * nlmread.c (nlm_symfile_finish): Ditto.
617 * hpread.c (hpread_symfile_finish): Ditto.
618 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
619 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
620 * coffread.c (coff_symfile_finish): Ditto.
621
aa2ee5f6
AC
622 * defs.h (xmcalloc): Delete declaration.
623 * utils.c (xmcalloc): Delete.
624 (xcalloc): Inline calls to xmcalloc and mcalloc.
625 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
626 xcalloc and xfree.
627 * symtab.c (create_demangled_names_hash): Ditto.
628
0efffb96
AC
629 * defs.h (xmrealloc): Delete.
630 * utils.c (xmrealloc): Delete.
631 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
632 * symmisc.c (extend_psymbol_list): Use xrealloc.
633 * source.c (find_source_lines): Ditto.
634 * hpread.c (hpread_lookup_type): Ditto.
635 * dbxread.c (add_bincl_to_list): Ditto.
636
7936743b
AC
637 * utils.c (xmmalloc): Delete.
638 (xmalloc): Inline xmmalloc and mmalloc calls.
639 (msavestring): Use xmalloc.
640 * defs.h (xmmalloc): Delete declaration.
641 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
642 xmmalloc.
643 * symmisc.c (extend_psymbol_list): Ditto.
644 * symfile.c (init_psymbol_list): Ditto.
645 * source.c (find_source_lines): Ditto.
646 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
647 * elfread.c (elf_symtab_read): Ditto.
648 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
649 * coffread.c (coff_symfile_init): Ditto.
650
252ab814
DC
6512004-08-10 David Carlton <carlton@bactrian.org>
652
653 * MAINTAINERS: Remove David Carlton from c++ testsuite
654 maintainers.
655
8f5ba92b
JG
6562004-08-10 Jerome Guitton <guitton@gnat.com>
657
658 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
659 print a line feed before the prompt.
660
21749010
MK
6612004-08-10 Mark Kettenis <kettenis@gnu.org>
662
663 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
664
1f011ce2
JB
6652004-08-09 Joel Brobecker <brobecker@gnat.com>
666
667 General cleanup of the AIX xm include file:
668 * config/xm-aix4.h (fd_set): Remove undefine.
669 Remove include of <sys/select.h>.
670 (HAVE_TERMIO): Remove define.
671 (USG): Likewise.
672 (NULL): Remove redefine.
673 (alloca): Remove #pragma.
674 (vfork): Remove define.
675 (termdef): Remove.
676 (SIGWINCH_HANDLER): Remove.
677 (SIGWINCH_HANDLER_BODY): Remove.
678
cf4e7692
MK
6792004-08-09 Mark Kettenis <kettenis@gnu.org>
680
681 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
682 GDB_OSABI_OPENBSD_ELF.
683
ac5754fa
MK
6842004-08-07 Robert Millan <robertmh@gnu.org>
685
686 * bsd-kvm.c: Check for nlist.h before including it.
687
086ec9eb
MK
6882004-08-09 Mark Kettenis <kettenis@gnu.org>
689
bbe06c74
MK
690 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
691 sigcontext' offset consistency checks for ancient BSD.
692
3aa7b3b3
MK
693 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
694
086ec9eb
MK
695 * configure.in: Check for <sys/types.h>. Check return and
696 argument types of ptrace.
697 * configure, config.in: Regenerate.
698
09991fa0
JB
6992004-08-09 Jim Blandy <jimb@redhat.com>
700
701 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
702 rs6000_register_sim_regno): Doc fixes.
703
fed7ba43
JB
7042004-08-08 Joel Brobecker <brobecker@gnat.com>
705
706 * mips-tdep.c: Include "floatformat.h".
707 (n32n64_floatformat_always_valid): New function.
708 (floatformat_n32n64_long_double_big): New constant.
709 (mips_gdbarch_init): Set size and format of long double
710 for N32 and N64 ABIs.
711 * Makefile.in (mips-tdep.o): Update dependencies.
712
456fcf94
AC
7132004-08-08 Andrew Cagney <cagney@gnu.org>
714
2f9b146e
AC
715 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
716 print. Improve script's error messages.
717 * gdbarch.h: Re-generate.
718
456fcf94
AC
719 * gdbarch.sh (pformat): New function.
720 (float_format, double_format, long_double_format): List with bit
721 members. Use pformat when printing.
722 * gdbarch.c, gdbarch.h: Re-generate.
723
69e9e646
NW
7242004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
725
726 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
727 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
728 (ppcnbsd_supply_pcb): New function.
729 (_initialize_ppcnbsd_nat): New prototype and function.
730 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
731 (LOADLIBES): New variable.
732 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
733
5ef2d0aa
AC
7342004-08-08 Andrew Cagney <cagney@gnu.org>
735
736 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
737 (builtin_type_ieee_double, builtin_type_ia64_quad)
738 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
739 BE/LE floating-point types.
740 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
741 (builtin_type_ieee_double, builtin_type_ia64_quad)
742 (builtin_type_ia64_spill): Declare.
743 * doublest.c (_initialize_doublest, floatformat_ieee_single)
744 (floatformat_ieee_double, floatformat_arm_ext)
745 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
746 of LE/BE floatformats.
747 * doublest.h: (struct floatformat, floatformat_ieee_single)
748 (floatformat_ieee_double, floatformat_arm_ext)
749 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
750
5c7f2947
MK
7512004-08-08 Mark Kettenis <kettenis@gnu.org>
752
ecac404d
MK
753 * i386gnu-nat.c (gnu_store_registers): Fix typo.
754
9b8607ce
MK
755 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
756 instead of regcache_raw_supply when storing the registers.
757
f6052080
MK
758 * i386gnu-nat.c: Update copyright year.
759 (gnu_store_registers): Don't use deprecated_registers and
760 deprecated_registers_valid. Use regcache_valid_p and
761 regcache_raw_supply instead.
762
17777823
MK
763 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
764 frame_pc_unwind.
765
5240ceac
MK
766 * procfs.c (procfs_pid_to_str): Remove redundant and unused
767 variables. Incapitalized "process".
768
5c7f2947
MK
769 * configure.in: Add cursesX to the list of possible curses libs.
770 Add cursesX.h to the list of possible curses headers.
771 * configure, config.in: Regenerate.
772
da7d81e3
NW
7732004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
774
775 * configure.in: Test for struct lwp in <sys/lwp.h>.
776 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
777 the offset of l_addr in struct lwp.
778
7f245d65
NW
7792004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
780
781 * bsd-kvm.c: Include "gdbcore.h"
782 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
783
47b3f456
AC
7842004-08-07 Andrew Cagney <cagney@gnu.org>
785
70bd8e24
AC
786 * gdbtypes.c (build_flt, build_complex): New functions.
787 (gdbtypes_post_init): Use.
788
9b0dea39
AC
789 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
790
5cf7abac
AC
791 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
792 through to builtin_type_uint128.
793
64d2b26d
AC
794 * c-exp.y: Use builtin_type function to obtain builtin types.
795
7ad6570d
AC
796 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
797 builtin_uint128.
798 * gdbtypes.c (gdbtypes_post_init): Update.
799 (build_gdbtypes): Move initialization of builtin_type_int0
800 through to builtin_type_uint128 from here ...
801 (_initialize_gdbtypes): ... to here.
802 * d10v-tdep.c (d10v_register_type): Update.
803
47b3f456
AC
804 * doublest.c: Update copyright.
805 (floatformat_from_length): Call error when floatformat is NULL.
806 (extract_floating_by_length): Remove NULL fmt check.
807 (store_floating_by_length): Ditto.
808
0a8146bf
AC
8092004-08-07 Andrew Cagney <cagney@gnu.org>
810
811 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
812 that the register is valid.
813
c0ccb908
MK
8142004-08-05 Mark Kettenis <kettenis@chello.nl>
815
8e6bed05
MK
816 * i386-linux-tdep.c (i386_linux_sigtramp_start)
817 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
818 struct frame_info *. Use safe_frame_unwind_memory instead of
819 deprecated_read_memory_nobpt.
820 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
821 changed signature of i386_linux_sigtramp_start and
822 i386_linux_rt_sigtramp_start.
823
24f9f5e3
MK
824 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
825 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
826 instead of deprecated_read_memory_nobpt.
827 (i386nbsd_sigtramp_p): Adjust for changed signature of
828 i386nbsd_sigtramp_offset.
829
c822af0c
MK
830 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
831 safe_frame_unwind_memory instead of target_read_memory.
832
c0ccb908
MK
833 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
834 !NO_SYS_FILE.
835 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
836 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
837 (_initialize_kernel_u_addr): Remove prototype and function.
838 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
839 !NO_SYS_FILE.
840 * xcoffread.c: Likewise.
841
b9e1c0d6
MK
8422004-08-06 Mark Kettenis <kettenis@gnu.org>
843
844 * vax-nat.c: New file.
845 * vaxbsd-nat.c: Tweak comment.
846 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
847 vaxnbsd-tdep.c.
848 (vax-nat.o): New dependency.
849 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
850 (vax-*-ultrix2*): Remove.
851 * config/vax/vax.mh: New file.
852 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
853 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
854 (vax_register_u_addr): New prototype.
855 (REGISTER_U_ADDR): Define using vax_register_u_addr.
856 * config/vax/vaxult2.mh: Remove file.
857 * config/vax/vaxult.mh: Remove file.
858 * config/vax/vaxbsd.mh: Remove file.
859 * config/vax/vax.mt (TM_FILE): Remove.
860 * config/vax/tm-vaxbsd.h: Remove file.
861
9ad7bec7
JB
8622004-08-06 Joel Brobecker <brobecker@gnat.com>
863
864 * aix-thread.c (get_signaled_thread): New function.
865 (iter_trap): Delete, no longer used.
866 (iter_tid): New function.
867 (pd_update): Find the thread that received the SIGTRAP signal
868 by first locating the kernel thread, and then finding its
869 associated thread.
870
bf0d233d
UW
8712004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
872
873 * lin-lwp.c (child_wait): Continue inferior after processing
874 PTRACE_EVENT_CLONE event.
875
d0f853e1
NN
8762004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
877
878 * MAINTAINERS: Add self to Write-After-Approval.
879
ab14aeb0
JJ
8802004-08-05 Jeff Johnston <jjohnstn@redhat.com>
881
882 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
883 libunwind-xxxx.so" where xxxx is UNW_TARGET.
884
9c8dbfa9
AC
8852004-08-05 Andrew Cagney <cagney@gnu.org>
886
c8f3ca46
AC
887 * config/xm-sysv4.h: Delete file.
888 * config/mips/xm-irix5.h: Delete file.
889 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
890 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
891 * config/ia64/xm-aix.h: Delete file.
892 * config/ia64/aix.mh (XM_FILE): Delete.
893 * config/pa/xm-hppah.h: Delete file.
894 * config/pa/hpux11w.mh (XM_FILE): Delete.
895 * config/pa/hpux11.mh (XM_FILE): Delete.
896 * config/pa/hpux1020.mh (XM_FILE): Delete.
897 * config/pa/hppahpux.mh (XM_FILE): Delete.
898
5f7daaff
AC
899 * config/alpha/xm-alphalinux.h: Delete file.
900 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
901 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
902 * config/alpha/xm-alphaosf.h: Delete file.
903 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
904 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
905 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
906 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
907
69babf95
AC
908 * config/i386/xm-i386v.h: Delete file.
909 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
910 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
911 * config/i386/xm-i386sco.h: Delete file.
912 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
913 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
914 * config/i386/xm-i386v4.h: Delete file.
915 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
916 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
917 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
918 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
919
6f009c8a
AC
920 * config/vax/xm-vax.h: Delete file.
921 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
922 * config/vax/xm-vaxult2.h: Delete file.
923 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
924 * config/vax/vaxult2.mh (XM_FILE): Delete.
925 * config/vax/xm-vaxult.h: Delete file.
926 * config/vax/vaxult.mh (XM_FILE): Delete.
927 * config/vax/xm-vaxbsd.h: Delete file.
928 * config/vax/vaxbsd.mh (XM_FILE): Delete.
929
9c8dbfa9
AC
930 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
931 * gdbarch.h, gdbarch.c: Re-generate.
932 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
933 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
934 * frame.h: Delete deprecated_read_fp from comments.
935 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
936 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
937
84367a3e
MK
9382004-08-04 Mark Kettenis <kettenis@gnu.org>
939
9c8e3411
MK
940 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
941 trampoline in OpenBSD 3.5-current.
942
b87bc0d8
MK
943 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
944 SSE registers.
945
84367a3e
MK
946 * Makefile.in: Remove embedded page breaks.
947
a44bddec
JB
9482004-08-04 Jim Blandy <jimb@redhat.com>
949
7ab3286f
JB
950 * regcache.c (regcache_raw_read): Assert that, after calling
951 target_fetch_registers, the register we're reading is cached.
952
a44bddec
JB
953 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
954 a call to 'internal_error', with a more helpful error message.
955 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 956 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 957
35124113
AC
9582004-08-04 Andrew Cagney <cagney@gnu.org>
959
960 * Makefile.in: Update dependencies.
961
9f643768
JB
9622004-08-04 Jim Blandy <jimb@redhat.com>
963
6ced10dd
JB
964 Change the layout of the PowerPC E500 raw register cache to allow
965 the lower 32-bit halves of the GPRS to be their own raw registers,
966 not pseudoregisters.
967 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
968 add ppc_ev0_upper_regnum flag.
969 * rs6000-tdep.c: #include "reggroups.h".
970 (spe_register_p): Recognize the ev upper half registers as SPE
971 registers.
972 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
973 registers.
974 (e500_move_ev_register): New function.
975 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
976 vector registers are the pseudo-registers now, formed by splicing
977 together the gprs and the upper-half registers.
978 (e500_register_reggroup_p): New function.
979 (P): Macro deleted.
980 (P8, A4): New macro.
981 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
982 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
983 macros.
984 (registers_e500): Rearrange register set so that the raw register
985 set contains 32-bit GPRs and upper-half registers, and the SPE
986 vector registers become pseudo-registers.
987 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
988 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
989 register numbers are now the same for the E500 as they are for
990 other PowerPC variants. Register e500_register_reggroup_p as the
991 register group function for the E500.
992 * Makefile.in (rs6000-tdep.o): Update dependencies.
993
994 Adapt PPC E500 native support to the new raw regcache layout.
995 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
996 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
997 (fetch_spe_register, store_spe_register): Handle fetching/storing
998 all the SPE registers at once, if regno == -1. These now take
999 over the job of fetch_spe_registers and store_spe_registers.
1000 (fetch_spe_registers, store_spe_registers): Deleted.
1001 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1002 unconditionally; they're always raw. Fetch/store SPE upper half
1003 registers, if present, instead of ev registers.
1004 (fetch_register, store_register): Remove sanity checks: gprs are
1005 never pseudo-registers now, so we never need to even mention any
1006 registers that are ever pseudoregisters.
1007
9f643768
JB
1008 Use a fixed register numbering when communicating with the PowerPC
1009 simulator.
1010 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1011 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1012 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1013 New functions.
1014 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1015 init_sim_regno_table.
1016 * Makefile.in (gdb_sim_ppc_h): New variable.
1017 (rs6000-tdep.o): Update dependencies.
1018
1e2279c8
AC
10192004-08-02 Andrew Cagney <cagney@gnu.org>
1020
1d94326f
AC
1021 * cris-tdep.c (cris_register_size): Restore function, still used
1022 locally.
1023
331ae7ed
AC
1024 * gdbarch.sh (deprecated_target_read_fp)
1025 (deprecated_frame_locals_address, deprecated_frame_args_address)
1026 (deprecated_frame_chain_valid, deprecated_frame_chain)
1027 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1028 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1029 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1030 * gdbarch.h, gdbarch.c: Re-generate.
1031 * regcache.c (deprecated_read_fp): Do not call
1032 DEPRECATED_TARGET_READ_FP_P.
1033 * infcmd.c (default_print_registers_info): Do not call
1034 DEPRECATED_DO_REGISTERS_INFO.
1035 * frame-base.c (default_frame_locals_address): Do not call
1036 DEPRECATED_FRAME_LOCALS_ADDRESS.
1037 (default_frame_args_address): Do not call
1038 DEPRECATED_FRAME_ARGS_ADDRESS.
1039
1e2279c8
AC
1040 * gdbarch.sh (deprecated_register_raw_size)
1041 (deprecated_register_virtual_size:int): Delete.
1042 * gdbarch.h, gdbarch.c: Re-generate.
1043 * cris-tdep.c (cris_register_size): Delete.
1044 (cris_gdbarch_init): Update.
1045 * alpha-tdep.c (alpha_register_raw_size)
1046 (alpha_register_virtual_size): Delete.
1047 (alpha_gdbarch_init): Update.
1048
a90c06b4
AC
1049 * gdbarch.sh (deprecated_register_virtual_type)
1050 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1051 (deprecated_dummy_write_sp): Delete.
1052 * gdbarch.h, gdbarch.c: Re-generate.
1053
f42accbe
AC
1054 * gdbarch.sh (deprecated_register_bytes): Delete.
1055 * gdbarch.h, gdbarch.c: Re-generate.
1056 * regcache.c (deprecated_register_bytes): New function.
1057 * regcache.h (deprecated_register_bytes): Declare.
1058 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1059 * v850-tdep.c (v850_gdbarch_init): Update.
1060 * sh64-tdep.c (sh64_gdbarch_init): Update.
1061 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1062 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1063 * mcore-tdep.c (mcore_gdbarch_init): Update.
1064 * cris-tdep.c (cris_gdbarch_init): Update.
1065 * arm-tdep.c (arm_gdbarch_init): Update.
1066 * remote.c (init_remote_state): Update.
1067 * remote-vx.c (vx_prepare_to_store): Update.
1068 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1069 * irix5-nat.c (fetch_core_registers): Update.
1070 * cris-tdep.c (cris_register_bytes_ok): Update.
1071 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1072
45c9dd44
AC
1073 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1074 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1075 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1076 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1077 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1078 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1079 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1080 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1081 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1082 with mips_insn16 and mips_insn32.
1083
3acba339
AC
1084 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1085 * rs6000-tdep.c (rs6000_push_dummy_call)
1086 (rs6000_extract_return_value): Use register_size.
1087 * xstormy16-tdep.c (xstormy16_get_saved_register)
1088 (xstormy16_extract_return_value): Ditto.
1089 * valops.c (value_assign): Ditto.
1090 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1091 * v850-tdep.c (v850_extract_return_value): Ditto.
1092 * tracepoint.c (collect_symbol): Ditto.
1093 * target.c (debug_print_register): Ditto.
1094 * stack.c (frame_info): Ditto.
1095 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1096 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1097 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1098 (store_register_using_P): Ditto.
1099 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1100 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1101 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1102 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1103 * regcache.c (deprecated_read_register_bytes)
1104 (deprecated_write_register_bytes, read_register)
1105 (write_register): Ditto.
1106 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1107 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1108 * monitor.c (monitor_supply_register, monitor_fetch_register)
1109 (monitor_store_register): Ditto.
1110 * mn10300-tdep.c (mn10300_pop_frame_regular)
1111 (mn10300_print_register): Ditto.
1112 * mipsv4-nat.c (fill_fpregset): Ditto.
1113 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1114 (mips64_fill_fpregset): Ditto.
1115 * mi/mi-main.c (register_changed_p, get_register)
1116 (mi_cmd_data_write_register_values): Ditto.
1117 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1118 * irix5-nat.c (fill_gregset, fetch_core_registers):
1119 * infrun.c (write_inferior_status_register): Ditto.
1120 * infptrace.c (fetch_register, store_register): Ditto.
1121 * infcmd.c (default_print_registers_info): Ditto.
1122 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1123 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1124 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1125 * hpux-thread.c (hpux_thread_fetch_registers)
1126 (hpux_thread_store_registers): Ditto.
1127 * hppah-nat.c (store_inferior_registers, fetch_register):
1128 * findvar.c (value_from_register): Ditto.
1129 * dve3900-rom.c (fetch_bitmapped_register):
1130 * cris-tdep.c (cris_gdbarch_init): Ditto.
1131 * alpha-tdep.h: Ditto.
1132 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1133
01e1877c
AC
1134 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1135 DEPRECATED_REGISTER_RAW_SIZE from comments.
1136 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1137 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1138 DEPRECATED_REGISTER_RAW_SIZE.
1139 * findvar.c (value_of_register): Simplify by assuming that the
1140 registers raw and virtual sizes are identical.
1141 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1142 comment.
1143 * arch-utils.c (generic_register_size): Simplify by assuming
1144 register_type.
1145
73f458fb
AC
1146 * regcache.c (legacy_read_register_gen, real_register)
1147 (legacy_write_register_gen): Delete, not used.
1148
336a3131
AC
1149 * regcache.c (struct regcache_descr): Delete legacy_p.
1150 (init_legacy_regcache_descr): Delete function.
1151 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1152 Do not use deprecated register functions.
1153 (regcache_raw_read, deprecated_write_register_gen):
1154 (deprecated_read_register_gen, regcache_raw_write): Delete code
1155 predicated on legacy_p.
1156 (register_size): Delete check against register raw size.
1157
c1d546cd
AC
1158 * cris-tdep.c (cris_register_type): Replace
1159 cris_register_virtual_type.
1160 (cris_gdbarch_init): Update, set register_type.
1161
48c2c0a6
AC
1162 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1163 * gdbarch.h, gdbarch.c: Re-generate.
1164 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1165 (arm_gdbarch_init) Do not set frameless function invocation.
1166 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1167 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1168 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1169 (frv_gdbarch_init): Do not set frameless function invocation.
1170 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1171 * sh-tdep.c (sh_gdbarch_init): Ditto.
1172 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1173 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1174 * avr-tdep.c (avr_gdbarch_init): Ditto.
1175
474093a6
AC
1176 * blockframe.c (legacy_frame_chain_valid): Delete function.
1177
3c109c8b
AC
1178 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1179 and pc. Update comments.
1180 (pc_in_dummy_frame): Delete function.
1181 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1182 use the "id".
1183 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1184 call_hi, top and pc, use the id.
1185 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1186
96860204
AC
1187 * dummy-frame.c: Include "gdb_string.h".
1188 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1189 (generic_save_dummy_frame_tos): Delete.
1190 (dummy_frame_push): New function, replaces above.
1191 * dummy-frame.h: Update copyright.
1192 (dummy_frame_push): Declare.
1193 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1194 (generic_save_call_dummy_addr): Delete declarations.
1195 * infcall.c: Include "dummy-frame.h".
1196 (call_function_by_hand): Add locals caller_regcache,
1197 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1198 with call to frame_save_as_regcache plus cleanup. Delete calls to
1199 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1200 Move clear_proceed_status to just before the resume, add call to
1201 dummy_frame_push (discard cleanup).
1202 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1203 (dummy-frame.o): Add $(gdb_string_h).
1204
d67ec5db
AC
12052004-08-01 Andrew Cagney <cagney@gnu.org>
1206
1207 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1208 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1209 * dummy-frame.c (find_dummy_frame): Delete.
1210 (struct dummy_frame_cache, dummy_frame_sniffer)
1211 (dummy_frame_prev_register, dummy_frame_this_id)
1212 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1213 frame unwinder using a dummy_frame_cache.
1214
a81dcb05
AC
12152004-08-01 Andrew Cagney <cagney@gnu.org>
1216
1217 * frame.h (frame_save_as_regcache): Declare.
1218 * frame.c (frame_save_as_regcache): New function.
1219 (do_frame_read_register): Replace do_frame_unwind_register.
1220 (frame_pop): Use frame_save_as_regcache.
1221 * dummy-frame.c (generic_push_dummy_frame): Use
1222 frame_save_as_regcache.
1223
aa495d11
JB
12242004-08-01 Joel Brobecker <brobecker@gnat.com>
1225
1226 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1227 file as included until we record the first line in the linetable.
1228
ff65ac78
AC
12292004-08-01 Andrew Cagney <cagney@gnu.org>
1230
1231 * frame.h (deprecated_pop_dummy_frame)
1232 (deprecated_read_register_dummy)
1233 (deprecated_generic_find_dummy_frame): Delete.
1234 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1235 (deprecated_read_register_dummy)
1236 (deprecated_find_dummy_frame_regcache)
1237 (discard_innermost_dummy)
1238 (deprecated_pop_dummy_frame): Delete.
1239 (dummy_frame_this_id): Simplify.
1240 (struct dummy_frame): Delete "fp" and "sp".
1241 (find_dummy_frame): Simplify.
1242 (generic_push_dummy_frame): Do not set "fp" or "sp".
1243 (fprint_dummy_frames): Do not print "fp" and "sp"
1244
37bdc87e
MK
12452004-08-01 Mark Kettenis <kettenis@gnu.org>
1246
1247 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1248 (struct i386_insn): New structure.
1249 (i386_match_insn): New function.
1250 (i386_frame_setup_skip_insns): New variable.
1251 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1252 array i386_frame_setup_insns of instructions that should be
1253 skipped inside the frame setup sequence.
1254
8241eaa6
AC
12552004-08-01 Andrew Cagney <cagney@gnu.org>
1256
5bc602c7
AC
1257 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1258 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1259 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1260 * stack.c (frame_info): Delete references to
1261 DEPRECATED_FRAME_INIT_SAVED_REGS and
1262 deprecated_get_frame_saved_regs.
1263 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1264 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1265 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1266 (frame_unwind_register_signed)
1267 (frame_unwind_register_unsigned)
1268 (frame_unwind_unsigned_register): Use register_size.
1269 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1270 (deprecated_frame_xmalloc_with_cleanup)
1271 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1272 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1273
03d363a1
AC
1274 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1275 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1276 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1277 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1278
8241eaa6
AC
1279 * infcall.c (call_function_by_hand): Do not use
1280 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1281 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1282 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1283 DEPRECATED_STACK_ALIGN.
1284
f00df8b7
AC
12852004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1286
1287 Committed by Andrew Cagney.
1288 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1289
eec63939
AC
12902004-08-01 Andrew Cagney <cagney@gnu.org>
1291
1292 * mips-tdep.c (mips16_frame_cache)
1293 (mips16_frame_this_id, mips16_frame_prev_register)
1294 (mips16_frame_unwind, mips16_frame_sniffer)
1295 (mips16_frame_base_address, mips16_frame_base)
1296 (mips16_frame_base_sniffer, mips32_frame_cache)
1297 (mips32_frame_this_id, mips32_frame_prev_register)
1298 (mips32_frame_unwind, mips32_frame_sniffer)
1299 (mips32_frame_base_address, mips32_frame_base)
1300 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1301 separate heuristic mips16 and mips32 unwinders.
1302 (mips_stub_frame_cache, mips_stub_frame_this_id)
1303 (mips_stub_frame_prev_register)
1304 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1305 (mips_stub_frame_base_address, mips_stub_frame_base)
1306 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1307 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1308 match true mdebug frames.
1309 (non_heuristic_proc_desc): Add forward declaration.
1310
e66299b3
AC
13112004-08-01 Andrew Cagney <cagney@gnu.org>
1312
83cbbf3e
AC
1313 * config/mips/tm-irix6.h: Delete file.
1314 * config/mips/tm-irix5.h: Delete file.
1315 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1316 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1317
22d41b37
AC
1318 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1319 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1320 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1321 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1322 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1323 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1324 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1325 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1326 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1327 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1328 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1329 (TARGET_SIGNAL_RAW_VALUES): Delete.
1330 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1331 Delete.
1332 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1333 (TARGET_HW_WATCH_LIMIT): Delete.
1334 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1335 * minimon.h: Delete file.
1336
e66299b3
AC
1337 * trad-frame.c (trad_frame_get_this_base)
1338 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1339 functions.
1340 * trad-frame.h (trad_frame_set_this_base)
1341 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1342
1f67027d
AC
13432004-07-31 Andrew Cagney <cagney@gnu.org>
1344
1345 * trad-frame.c (trad_frame_get_prev_register): Rename
1346 trad_frame_get_prev_register.
1347 * vax-tdep.c (vax_frame_prev_register): Update.
1348 * trad-frame.h: Update.
1349 * trad-frame.c (trad_frame_get_register): Update.
1350 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1351 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1352 Update.
1353 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1354 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1355 Update.
1356 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1357 Update.
1358 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1359 Update.
1360 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1361 Update.
1362 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1363 Update.
1364 * s390-tdep.c (s390_frame_prev_register)
1365 (s390_stub_frame_prev_register)
1366 (s390_sigtramp_frame_prev_register): Update.
1367 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1368 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1369 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1370 * m88k-tdep.c (m88k_frame_prev_register)
1371 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1372 * m32r-tdep.c (m32r_frame_prev_register): Update.
1373 * hppa-tdep.c (hppa_frame_prev_register_helper)
1374 * frv-tdep.c (frv_frame_prev_register): Update.
1375 * d10v-tdep.c (d10v_frame_prev_register): Update.
1376 * cris-tdep.c (cris_frame_prev_register): Update.
1377 * avr-tdep.c (avr_frame_prev_register): Update.
1378 * arm-tdep.c (arm_prologue_prev_register)
1379 (arm_sigtramp_prev_register): Update.
1380
c1bf6f65
AC
13812004-07-31 Andrew Cagney <cagney@gnu.org>
1382
1383 * frame.h (legacy_saved_regs_unwind)
1384 (legacy_frame_chain_valid, legacy_frame_p)
1385 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1386 * dummy-frame.c (dummy_frame_this_id): Simplify.
1387 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1388 * frame.c (struct frame_info): Delete the field "type".
1389 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1390 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1391 (legacy_saved_regs_unwind, legacy_frame_p)
1392 (frame_type_from_pc): Delete.
1393 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1394 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1395
dc856692
MK
13962004-07-31 Mark Kettenis <kettenis@gnu.org>
1397
5a5effe1
MK
1398 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1399 indentation.
1400
d4fd50a6
MK
1401 * mips-nat.c: Remove file.
1402 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1403 (mips-nat.o): Remove dependency.
1404
2689df5a
MK
1405 * infptrace.c: Update copyright year.
1406 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1407 explicitly setting the buffer to all zeroes.
1408
dc856692
MK
1409 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1410 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1411
763910e0
AC
14122004-07-30 Andrew Cagney <cagney@gnu.org>
1413
1414 * GDB 6.2 released from gdb_6_2-branch.
1415
0b66e38c
EZ
14162004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1417
1418 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1419
1420 * exec.c (exec_file_attach):
1421 * nto-tdep.c (nto_find_and_open_solib):
1422 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1423 * solib.c (solib_open):
1424 * somsolib.c (som_solib_sizeof_symbol_table):
1425 * source.c (is_regular_file, openp, open_source_file):
1426 * symfile.c (symfile_bfd_open):
1427 * wince.c (upload_to_device): Differentiate between the search for
1428 binary and source files.
1429
be7d7357
AC
14302004-07-30 Andrew Cagney <cagney@gnu.org>
1431
1432 * complaints.c (_initialize_complaints): Pass NULL to
1433 add_setshow_zinteger_cmd for help_doc.
1434 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1435
ddc9cd0f
AC
14362004-07-30 Andrew Cagney <cagney@gnu.org>
1437
1438 Fix PR i18n/761.
1439 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1440 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1441 $(PACKAGE).pot and update-po.
1442 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1443 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1444 (update-po): New rules.
1445 (localedir): Define using autoconf.
1446 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1447 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1448 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1449 * configure.in: Generate CATALOGS and LINGUAS from contents of
1450 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1451 * configure: Re-generate.
1452 * po/gdbtext: New file
1453
e92f3704
JG
14542004-07-30 Jerome Guitton <guitton@gnat.com>
1455
1456 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1457 order.
1458
b0f35d58
DL
14592004-07-30 David Lecomber <dsl@sources.redhat.com>
1460
1461 * dwarf2read.c (read_file_scope): Set producer if attribute
1462 present.
1463 (struct dwarf2_cu): Added new member producer.
1464
ce7d4522
JG
14652004-07-30 Jerome Guitton <guitton@gnat.com>
1466
1467 * inflow.c (kill_command): release file handles in BFD.
1468 * exec.c (exec_file_attach): Ditto.
1469 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1470
05ee07c7
AC
14712004-07-29 Andrew Cagney <cagney@gnu.org>
1472
1473 * PROBLEMS (mips-irix): Note that it is broken.
1474
62eceb47
AC
14752004-07-29 Andrew Cagney <cagney@gnu.org>
1476
e57b8d41
AC
1477 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1478 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1479
d334389b
AC
1480 * config/xm-nbsd.h: Delete file.
1481 * config/arm/xm-nbsd.h: Delete file.
1482 * config/i386/xm-nbsd.h: Delete file.
1483 * config/ns32k/xm-nbsd.h: Delete file.
1484 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1485 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1486 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1487 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1488 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1489
e910f676
AC
1490 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1491 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1492 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1493 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1494 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1495 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1496
6fa856b9
AC
1497 * config/powerpc/xm-linux.h: Delete empty file.
1498 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1499 * config/powerpc/linux.mh (XM_FILE): Delete.
1500 * config/m68k/xm-linux.h: Delete empty file.
1501 * config/m68k/linux.mh (XM_FILE): Delete.
1502 * config/ia64/xm-linux.h: Delete empty file.
1503 * config/ia64/linux.mh (XM_FILE): Delete.
1504 * config/arm/xm-linux.h: Delete empty file.
1505 * config/arm/linux.mh (XM_FILE): Delete.
1506
471ae5ae
AC
1507 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1508 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1509 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1510 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1511 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1512 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1513 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1514 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1515
62eceb47
AC
1516 * config/m68k/xm-m68k.h: Delete file.
1517 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1518 copyright.
1519 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1520 * config/pa/xm-linux.h: Delete empty file.
1521 * config/pa/linux.mh (XM_FILE): Delete.
1522 * config/i386/xm-i386.h: Delete empty file.
1523 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1524 "i386/xm-i386.h".
1525 * config/i386/obsdaout.mh (XM_FILE): Delete.
1526 * config/i386/obsd64.mh (XM_FILE): Delete.
1527 * config/i386/fbsd64.mh (XM_FILE): Delete.
1528 * config/i386/nto.mh (XM_FILE): Delete.
1529 * config/i386/obsd.mh (XM_FILE): Delete.
1530 * config/i386/linux64.mh (XM_FILE): Delete.
1531 * config/i386/linux.mh (XM_FILE): Delete.
1532 * config/i386/i386sol2.mh (XM_FILE): Delete.
1533 * config/i386/i386gnu.mh (XM_FILE): Delete.
1534 * config/i386/fbsd.mh (XM_FILE): Delete.
1535 * config/i386/nbsd64.mh (XM_FILE): Delete.
1536
c35f4ffc
AC
15372004-07-29 Andrew Cagney <cagney@gnu.org>
1538
1539 * config/pa/xm-linux.h: Do not include "floatformat.h".
1540 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1541 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1542 * config/i386/xm-i386.h: Do not include "floatformat.h".
1543 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1544 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1545 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1546 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1547 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1548 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1549 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1550 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1551 * configure, config.in: Regenerate.
1552 * configure.host (gdb_host_float_format, gdb_host_double_format)
1553 (gdb_host_long_double_format): Set according to the host.
1554
624a44a3
AC
15552004-07-29 Andrew Cagney <cagney@gnu.org>
1556
1557 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1558
0dea2468
AC
15592004-07-28 Andrew Cagney <cagney@gnu.org>
1560
1561 * PROBLEMS: Mention threads/1650.
1562 * NEWS: Mention the NPTL fix.
1563
b3f42336
AC
15642004-07-28 Andrew Cagney <cagney@gnu.org>
1565
1566 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1567 (add_setshow_cmd_full): Make static.
1568 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1569 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1570 * cli/cli-decode.c (add_setshow_filename_cmd)
1571 (add_setshow_string_cmd): New functions.
1572 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1573 * mips-tdep.c (_initialize_mips_tdep): Update.
1574 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1575 * cli/cli-logging.c (_initialize_cli_logging): Update.
1576 * complaints.c (_initialize_complaints): Update.
1577 * remote.c (_initialize_remote): Update.
1578
3b64bf98
AC
15792004-07-28 Andrew Cagney <cagney@gnu.org>
1580
1581 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1582 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1583 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1584 print parameters. Make string parameters constant.
1585 * command.h: Update. Update copyright.
1586 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1587 * observer.c (_initialize_observer): Ditto.
1588 * frame.c (_initialize_frame): Ditto.
1589 * complaints.c (_initialize_complaints): Ditto.
1590 * maint.c (_initialize_maint_cmds): Ditto.
1591 * target.c (initialize_targets): Ditto.
1592 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1593 * infcall.c (_initialize_infcall): Ditto.
1594 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1595 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1596 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1597 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1598 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1599
e9667a65
AC
16002004-07-28 Andrew Cagney <cagney@gnu.org>
1601
54a5b07d
AC
1602 * gdbtypes.c (lookup_primitive_typename): Delete function.
1603 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1604 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1605 * gdbtypes.c (lookup_typename): Ditto.
1606 * f-exp.y (yylex): Ditto.
1607 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1608
e9667a65
AC
1609 * scm-lang.c (c_builtin_types): Delete extern declaration.
1610 (scm_language_defn): Replace
1611 string_char_type and primitive_type_vector with
1612 la_language_arch_info.
1613 * jv-lang.c (java_language_defn): Replace
1614 string_char_type and primitive_type_vector with
1615 la_language_arch_info.
1616 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1617 c_builtin_types in comment.
1618 * c-lang.h (struct language_arch_info): Declare opaque.
1619 (c_language_arch_info): Declare.
1620 (c_builtin_types): Delete declaration.
1621 * c-lang.c (c_language_arch_info): Set string_char_type to
1622 builtin_char, not builtin_true_char. Make global.
1623 (c_builtin_types): Delete array.
1624 (asm_language_defn, minimal_language_defn): Replace
1625 string_char_type and primitive_type_vector with
1626 la_language_arch_info.
1627
685419e2
AC
16282004-07-28 Andrew Cagney <cagney@gnu.org>
1629
1630 * gdbtypes.h (struct builtin_type): Rename true_char to
1631 builtin_true_char.
1632 * gdbtypes.c (gdbtypes_post_init): Update.
1633 * c-lang.c (arch_info): New function.
1634 (enum c_primitive_types): New enum.
1635 (c_language_defn): Instead of string_char_type and
1636 primitive_type_vector set la_language_arch_info.
1637
5a44ea29
AC
16382004-07-28 Andrew Cagney <cagney@gnu.org>
1639
1640 * language.h (struct language_arch_info): Fix typo
1641 s/primative/primitive/.
1642 * gdbtypes.c (lookup_primitive_typename): Ditto.
1643 * language.c (language_lookup_primitive_type_by_name)
1644 (unknown_language_arch_info): Ditto.
1645
f290d38e
AC
16462004-07-27 Andrew Cagney <cagney@gnu.org>
1647
1648 * defs.h (enum language): Add nr_languages.
1649 * language.h (struct language_arch_info): Define.
1650 (struct language_defn): Add la_language_arch_info.
1651 (language_lookup_primative_type_by_name): Declare.
1652 (language_string_char_type): Declare.
1653 * language.c (_initialize_language, language_gdbarch_post_init)
1654 (struct language_gdbarch, language_gdbarch_data): Implement
1655 per-architecture language information.
1656 (unknown_language_arch_info, language_string_char_type)
1657 (language_lookup_primative_type_by_name): New functions.
1658 (unknown_language_defn, auto_language_defn)
1659 (local_language_defn): Set la_language_arch_info to
1660 unknown_language_arch_info.
1661 (unknown_builtin_types): Delete.
1662 * gdbtypes.c (lookup_primitive_typename): Use
1663 language_lookup_primative_type_by_name.
1664 (create_string_type): Use language_string_char_type.
1665 * values.c (value_from_string): Use language_string_char_type.
1666 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1667 * p-lang.c (pascal_language_defn): Ditto.
1668 * m2-lang.c (m2_language_defn): Ditto.
1669 * jv-lang.c (java_language_defn): Ditto.
1670 * objc-lang.c (objc_language_defn): Ditto.
1671 * f-lang.c (f_language_defn): Ditto.
1672 * c-lang.c (c_language_defn, cplus_language_defn)
1673 (asm_language_defn, minimal_language_defn): Ditto.
1674
000177f0
AC
16752004-07-27 Andrew Cagney <cagney@gnu.org>
1676
1677 * gdbtypes.h (struct builtin_type): Declare.
1678 (builtin_type): Declare.
1679 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1680 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1681 (gdbtypes_post_init): New function.
1682 (builtin_type): New function.
1683
e22f895c
KI
16842004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1685
1686 * remote-m32r-sdi.c: Fix breakpoint bug.
1687 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1688 recv_char_data, recv_long_data): New functions to replace communication
1689 sequences.
1690
536517dd
MC
16912004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1692
1693 Document PR threads/1650.
1694 * PROBLEMS (Threads): Document problem with many threads
1695
a0a44d18
AC
16962004-07-26 Andrew Cagney <cagney@gnu.org>
1697
1698 * gdb-mi.el: Move from here ...
1699 * mi/gdb-mi.el: ... to here.
1700
7ac4ac06
AC
17012004-07-26 Andrew Cagney <cagney@gnu.org>
1702
1703 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1704 * main.c (captured_main): When in batch mode always detach.
1705
a1b461bf
AC
17062004-07-26 Andrew Cagney <cagney@gnu.org>
1707
1708 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1709 and h8300 as broken.
1710 * NEWS: END-OF-LIFE frame compatibility module.
1711 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1712 specific comments.
1713
cb1a6d5f
AC
17142004-07-26 Andrew Cagney <cagney@gnu.org>
1715
1716 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1717 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1718 * wince.c (_initialize_wince): Update.
1719 * win32-nat.c (_initialize_win32_nat): Update.
1720 * varobj.c (_initialize_varobj): Update.
1721 * valops.c (_initialize_valops): Update.
1722 * utils.c (initialize_utils, initialize_utils): Update.
1723 * tui/tui-win.c (_initialize_tui_win): Update.
1724 * top.c (init_main): Update.
1725 * symfile.c (_initialize_symfile): Update.
1726 * source.c (_initialize_source): Update.
1727 * somsolib.c (_initialize_som_solib): Update.
1728 * solib.c (_initialize_solib): Update.
1729 * solib-frv.c (_initialize_frv_solib): Update.
1730 * serial.c (_initialize_serial): Update.
1731 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1732 * remote.c (_initialize_remote, _initialize_remote): Update.
1733 * remote-vx.c (_initialize_vx): Update.
1734 * remote-utils.c (_initialize_sr_support): Update.
1735 * remote-sds.c (_initialize_remote_sds): Update.
1736 * remote-mips.c (_initialize_remote_mips): Update.
1737 * remote-e7000.c (_initialize_remote_e7000): Update.
1738 * proc-api.c (_initialize_proc_api): Update.
1739 * printcmd.c: Update.
1740 * parse.c (_initialize_parse): Update.
1741 * pa64solib.c (_initialize_pa64_solib): Update.
1742 * p-valprint.c (_initialize_pascal_valprint): Update.
1743 * monitor.c (_initialize_remote_monitors): Update.
1744 * mips-tdep.c (_initialize_mips_tdep): Update.
1745 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1746 * maint.c (_initialize_maint_cmds): Update.
1747 * lin-lwp.c (_initialize_lin_lwp): Update.
1748 * language.c (_initialize_language): Update.
1749 * kod.c (_initialize_kod): Update.
1750 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1751 * i386-tdep.c (_initialize_i386_tdep): Update.
1752 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1753 * gdbarch.sh: Update.
1754 * gdbarch.c: Re-generate.
1755 * gdb-events.sh: Update.
1756 * gdb-events.c: Re-generate.
1757 * frame.c (_initialize_frame): Update.
1758 * exec.c: Update.
1759 * demangle.c (_initialize_demangler): Update.
1760 * dcache.c (_initialize_dcache): Update.
1761 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1762 * cp-valprint.c (_initialize_cp_valprint): Update.
1763 * corefile.c (_initialize_core): Update.
1764 * command.h: Update.
1765 * cli/cli-decode.h: Update.
1766 * cli/cli-cmds.c (init_cli_cmds): Update.
1767 * charset.c (_initialize_charset): Update.
1768 * breakpoint.c (_initialize_breakpoint): Update.
1769 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1770 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1771 * aix-thread.c (_initialize_aix_thread): Update.
1772
b4632131
MK
17732004-07-24 Mark Kettenis <kettenis@gnu.org>
1774
1775 Partial fix for PR backtrace/1718.
1776 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1777 that GCC migrates into the prolugue. Don't handle any
1778 instructions that clobber %ebx.
1779
822c9732
AC
17802004-07-23 Andrew Cagney <cagney@gnu.org>
1781
1782 Use regcache_raw_collect instead of regcache_collect.
1783 * regcache.h (regcache_collect): Delete declaration.
1784 * regcache.c (regcache_colect): Delete function.
1785 * win32-nat.c (do_child_store_inferior_registers): Update.
1786 * sol-thread.c (sol_thread_store_registers): Update.
1787 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1788 * rs6000-nat.c (store_register): Update.
1789 * remote.c (store_register_using_P, remote_store_registers): Update.
1790 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1791 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1792 (fill_vrregset, store_spe_registers, fill_gregset)
1793 (fill_gregset): Update.
1794 * nto-procfs.c (procfs_store_registers): Update.
1795 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1796 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1797 * m68klinux-nat.c (store_register, fill_gregset): Update.
1798 * m68k-tdep.c (fill_gregset): Update.
1799 * infptrace.c (store_register): Update.
1800 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1801 * i386-linux-nat.c (store_register, fill_gregset): Update.
1802 * hppa-linux-nat.c (fill_gregset): Update.
1803 * go32-nat.c (store_register): Update.
1804 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1805 (store_fp_regs): Update.
1806 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1807 (store_nwfpe_extended, store_fpregister, store_fpregs)
1808 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1809 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1810 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1811 (store_regs_user_thread, store_regs_kernel_thread): Update.
1812
32b05c07
MK
18132004-07-24 Mark Kettenis <kettenis@gnu.org>
1814
1815 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1816 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1817 encoding.
1818 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1819 member of `struct comp_unit'.
1820
8567c30f
AC
18212004-07-23 Andrew Cagney <cagney@gnu.org>
1822
1823 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1824 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1825
f6da8dd8
MH
18262004-07-23 Martin Hunt <hunt@redhat.com>
1827 Kevin Buettner <kevinb@redhat.com>
1828
1829 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1830 alignment was being added to the offset instead of multiplied.
1831
bd921882
MK
18322004-07-23 Mark Kettenis <kettenis@gnu.org>
1833
24f033e8
MK
1834 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1835 changed signal trampoline in OpenBSD 3.5-current.
1836
90f3cecd
MK
1837 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1838 <machine/pcb.h> and "bsd-kvm.h".
1839 (sparc64nbsd_supply_pcb): New function.
1840 (_initialize_sparc64nbsd_nat): Renamed from
1841 _initialize_sparcnbsd_nat. Enable libkvm interface.
1842 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1843 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1844 (LOADLIBES): New variable.
1845
a4954a62
MK
1846 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1847
bd921882
MK
1848 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1849
23a6d369
AC
18502004-07-21 Andrew Cagney <cagney@gnu.org>
1851
1852 Use regcache_raw_supply instead of supply_register.
1853 * regcache.h (supply_register): Delete declaration.
1854 * regcache.c (supply_register): Delete function.
1855 * wince.c (do_child_fetch_inferior_registers): Update.
1856 * win32-nat.c (do_child_fetch_inferior_registers)
1857 (fetch_elf_core_registers): Update.
1858 * v850ice.c (v850ice_fetch_registers): Update.
1859 * thread-db.c (thread_db_store_registers): Update.
1860 * sol-thread.c (sol_thread_store_registers): Update.
1861 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1862 * rs6000-nat.c (fetch_register): Update.
1863 * rom68k-rom.c (rom68k_supply_one_register): Update.
1864 * remote.c (remote_wait, remote_async_wait): Update.
1865 * remote-st.c (get_hex_regs): Update.
1866 * remote-sim.c (gdbsim_fetch_register): Update.
1867 * remote-sds.c (sds_fetch_registers): Update.
1868 * remote-rdp.c (remote_rdp_fetch_register): Update.
1869 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1870 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1871 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1872 * remote-hms.c (init_hms_cmds): Update.
1873 * remote-est.c (init_est_cmds): Update.
1874 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1875 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1876 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1877 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1878 (fetch_register, supply_vrregset, supply_vrregset)
1879 (fetch_spe_registers): Update.
1880 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1881 * monitor.c (monitor_supply_register): Update.
1882 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1883 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1884 (mipsnbsd_supply_fpreg): Update.
1885 * mips-nat.c (fetch_inferior_registers)
1886 (fetch_core_registers): Update.
1887 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1888 (supply_fpregset, mips64_supply_gregset)
1889 (mips64_supply_fpregset): Update.
1890 * m68klinux-nat.c (fetch_register, supply_gregset)
1891 (supply_fpregset): Update.
1892 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1893 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1894 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1895 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1896 * infptrace.c (fetch_register): Update.
1897 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1898 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1899 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1900 (gnu_fetch_registers, gnu_store_registers): Update.
1901 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1902 * i386-linux-nat.c (fetch_register, supply_gregset)
1903 (dummy_sse_values): Update.
1904 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1905 * hppah-nat.c (fetch_register): Update.
1906 * hppa-linux-nat.c (fetch_register, supply_gregset)
1907 (supply_fpregset): Update.
1908 * go32-nat.c (fetch_register): Update.
1909 * dve3900-rom.c (fetch_bitmapped_register)
1910 (_initialize_r3900_rom): Update.
1911 * cris-tdep.c (supply_gregset): Update.
1912 * abug-rom.c (init_abug_cmds): Update.
1913 * core-aout.c (fetch_core_registers): Update.
1914 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1915 (fetch_register, fetch_fp_register): Update.
1916 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1917 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1918 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1919 * alphanbsd-tdep.c (fetch_core_registers): Update.
1920 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1921 * alpha-nat.c (fetch_osf_core_registers)
1922 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1923 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1924 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1925
73cc75f3
AC
19262004-07-21 Andrew Cagney <cagney@gnu.org>
1927
1928 * PROBLEMS: Mention breakpoints/1702.
1929 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1930 that is known to work.
1931
a53c66de
AC
19322004-07-21 Andrew Cagney <cagney@gnu.org>
1933
1934 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1935 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1936 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1937 (handle_inferior_event): Wrap call to deprecated
1938 IGNORE_HELPER_CALL in #ifdef.
1939 * config/mips/tm-nbsd.h: Update.
1940
708ff411
JB
19412004-07-20 Jim Blandy <jimb@redhat.com>
1942
412b3060
JB
1943 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1944 bfd_mach_ppc has no segment registers.
1945
13ac140c
JB
1946 Include PowerPC SPR numbers for special-purpose registers.
1947 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1948 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1949 new member in initializer.
1950 (S, S4, SN4, S64): New macros for defining special-purpose
1951 registers.
1952 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1953 registers_403, registers_403GC, registers_505, registers_860,
1954 registers_601, registers_602, registers_603, registers_604,
1955 registers_750, registers_e500): Use them.
1956
708ff411
JB
1957 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1958 replace references with expression used to initialize variable.
1959
1f602b35
AC
19602004-07-20 Andrew Cagney <cagney@gnu.org>
1961
1962 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1963 read_memory_nobpt.
1964 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1965 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1966 (s390_sigtramp_frame_sniffer): Update.
1967 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1968 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1969 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1970 (mips32_fetch_instruction): Update.
1971 * mcore-tdep.c (get_insn): Update.
1972 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1973 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1974 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1975 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1976 (i386_linux_rt_sigtramp_start): Update.
1977 * i386-linux-nat.c (child_resume): Update.
1978 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1979 * hppa-linux-tdep.c (insns_match_pattern): Update.
1980 * gdbcore.h: Update.
1981 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1982 * frame.c (safe_frame_unwind_memory): Update.
1983 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1984 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1985 * alpha-tdep.c (alpha_read_insn): Update.
1986
2cd8546d
AC
19872004-07-20 Andrew Cagney <cagney@gnu.org>
1988
1989 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1990 containing both bytes and mask. Add "frame_type".
1991 * tramp-frame.c (tramp_frame_start): Update.
1992 (tramp_frame_prepend_unwinder): Update.
1993 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1994 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1995 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1996 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1997
f928dd62
EZ
19982004-07-19 Eli Zaretskii <eliz@gnu.org>
1999
2000 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2001 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2002 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2003 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2004
d5c560f7
AC
20052004-07-17 Andrew Cagney <cagney@gnu.org>
2006
860660cb
AC
2007 * NEWS, PROBLEMS: Update for 6.2.
2008
8c266f54
AC
2009 * README: Update to 6.2.
2010
a552edd9
AC
2011 * utils.c (xvasprintf): Call xstrvprintf.
2012
c4a172b5
AC
2013 * parse.c: Update copyright.
2014 (null_post_parser): Eliminate ARGSUSED.
2015
da745b36
AC
2016 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2017 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2018 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2019
9cbc6ef0
AC
2020 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2021 * ppc-linux-nat.c: Use "Linux kernel".
2022 * hppa-linux-tdep.c: Use GNU/Linux.
2023 * hppa-linux-nat.c: Use GNU/Linux.
2024 * dwarfread.c: Add [sic] to use of Linux.
2025
1b89295f
AC
2026 * hppa-linux-nat.c: Do not include <string.h>.
2027 (supply_fpregset): Remove "register" attribute.
2028
d5c560f7
AC
2029 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2030
7ddd7709
MK
20312004-07-17 Mark Kettenis <kettenis@gnu.org>
2032
b1d19a62
MK
2033 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2034 * configure, config.in: Regenerated.
2035
7ddd7709
MK
2036 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2037 "bsd-kvm.h".
2038 (vaxbsd_supply_pcb): New function.
2039 (_initialize_vaxbsd_nat): New prototype and function.
2040 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2041 solib-sunos.o.
2042 (LOADLIBES): New variable.
2043 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2044 (LOADLIBES): New variable.
2045 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2046 (LOADLIBES): New variable.
2047 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2048
2c07db7a
AC
20492004-07-16 Andrew Cagney <cagney@gnu.org>
2050
2051 * defs.h (event_loop_p): Replace variable declaration with macro,
2052 always 1.
2053 * main.c (captured_main): Delete options "-async" and "-noasync".
2054 (event_loop_p): Delete variable.
2055 * NEWS: Mention that "-async" and "-noasync" were removed.
2056
717eb1cf
AC
20572004-07-16 Andrew Cagney <cagney@gnu.org>
2058
2059 * remote-m32r-sdi.c: Re-indent.
2060
c101bc14
JB
20612004-07-16 Jim Blandy <jimb@redhat.com>
2062
5109a438
JB
2063 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2064 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2065 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2066 missing MPC823 SPRs.
2067 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2068 incorrect. (This was corrected in GDB's register name tables on
2069 2004-07-14.)
2070
c101bc14
JB
2071 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2072 should be "esasrr" ("ESA Save and Restore Register").
2073
7ce450bd
AC
20742004-07-16 Andrew Cagney <cagney@gnu.org>
2075
2076 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2077 calls, no longer applicable. Update comments and rename parameter
2078 "step_frame" to "return_frame".
2079
ca73dd9d
AC
20802004-07-16 Andrew Cagney <cagney@gnu.org>
2081
2082 * frame.c (fprint_field): New function.
2083 (fprint_frame_id): Use fprint_field.
2084
31941f6d
JB
20852004-07-15 Joel Brobecker <brobecker@gnat.com>
2086
2087 * ada-lang.c (ada_language_defn): Remove commented out code.
2088
f86a7158
JB
20892004-07-15 Jim Blandy <jimb@redhat.com>
2090
2091 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2092 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2093
c24791ec
JB
20942004-07-14 Jim Blandy <jimb@redhat.com>
2095
29bb1356
JB
2096 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2097
cc98b5cc
JB
2098 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2099
8f088af7
JB
2100 * ppc-tdep.h (ppc_num_srs): New enum constant.
2101
0ea0ec5f
JB
2102 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2103 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2104 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2105 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2106 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2107 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2108 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2109 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2110 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2111 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2112 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2113 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2114 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2115 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2116 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2117 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2118 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2119 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2120 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2121 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2122 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2123 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2124 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2125 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2126 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2127 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2128 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2129 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2130 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2131 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2132 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2133 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2134 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2135 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2136 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2137 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2138 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2139 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2140 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2141 special-purpose register numbers.
2142
c24791ec
JB
2143 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2144 manual mentions 'md_twb', but many mention 'm_twb', and at that
2145 point in the register list.)
2146
d833db3b
AC
21472004-07-14 Andrew Cagney <cagney@gnu.org>
2148
2149 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2150 instead of "internal-error".
2151
080228b2
JB
21522004-07-10 Joel Brobecker <brobecker@gnat.com>
2153
2154 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2155 that was inserted inside a comment.
2156
c268433a
RC
21572004-07-10 Randolph Chung <tausq@debian.org>
2158
2159 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2160 function.
2161 (hppa_hpux_push_dummy_code): New function.
2162 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2163 Set find_global_pointer method.
2164
71009278
MK
21652004-07-10 Mark Kettenis <kettenis@gnu.org>
2166
2167 * NEWS: Mention BSD libkvm interface.
2168
b2fa5097
MS
21692004-07-10 Michael Snyder <msnyder@redhat.com>
2170
2171 * symfile.c (generic_load): Comment typo.
2172 * stack.c (get_selected_block): Ditto.
2173 * regcache.c (regcache_cooked_read): Ditto.
2174 * monitor.c (monitor_debug): Ditto.
2175 * mips-tdep.c (mips_read_pc): Ditto.
2176 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2177 * gdb_mbuild.sh: Ditto.
2178 * gdbarch.sh: Ditto.
2179 * gdbarch.h: Ditto.
2180
c3e5cd34
PH
21812004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2182
8a2225b2
PH
2183 * ada-tasks.c: Remove file.
2184
c3e5cd34
PH
2185 Remove ARI problems:
2186
2187 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2188 beginning of line.
2189
2190 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2191 Add comment.
2192 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2193 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2194 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2195 (UMIN_OF_SIZE): Remove.
2196 (max_of_type): New function to replace orphan macro in gdbtypes.h
2197 (min_of_type): Ditto.
2198 (discrete_type_high_bound): Use max_of_type.
2199 (discrete_type_low_bound): Use min_of_type.
2200 (possible_user_operator_p): Move operator to beginning of line.
2201 (ada_is_variant_part): Ditto.
2202 (ensure_lval): Rewrite to avoid deprecated operations.
2203 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2204 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2205 (ada_enum_name): Remove assignments in 'if' statements.
2206 (build_ada_types): Add gdbarch parameter.
2207 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2208 with gdbarch_data_register_post_init.
2209 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2210 add_show_from_set.
2211
2212 * ada-valprint.c (inspect_it): Remove declaration.
2213 (repeat_count_threshold): Remove declaration.
2214 (ada_print_floating): Remove assignments in 'if' statements.
2215 (print_str): Move operator to beginning of line.
2216
61ce229a
JB
22172004-07-08 Jim Blandy <jimb@redhat.com>
2218
2219 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2220
09bcec80
BR
22212004-07-08 Bob Rossi <bob@brasko.net>
2222
2223 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2224
31c27f77
JJ
22252004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2226
2227 * language.h (struct_language_defn): Add new function pointer:
2228 la_class_name_from_physname. Also add new prototype for
2229 language_class_name_from_physname.
2230 * language.c (language_class_name_from_physname): New function.
2231 (unk_lang_class_name): Ditto.
2232 (unknown_language_defn, auto_language_defn): Change
2233 to add unk_lang_class_name function pointer for
2234 la_class_name_from_physname.
2235 (local_language_defn): Ditto.
2236 * dwarf2read.c (guess_structure_name): Change to call
2237 language_class_name_from_physname.
2238 (determine_class_name): Ditto.
2239 * cp-support.c (class_name_from_physname): Renamed.
2240 (cp_class_name_from_physname): New name of function.
2241 * cp-support.h: Ditto.
2242 * c-lang.c (c_language_defn): Change to add NULL
2243 for class_name_from_physname function pointer.
2244 (cplus_language_defn): Change to add cp_class_name_from_physname.
2245 * jv-lang.c (java_class_name_physname): New function.
2246 (java_find_last_component): New static routine.
2247 (java_language_defn): Add java_class_name_from_physname pointer.
2248 * ada-lang.c (ada_language_defn): Change to add NULL
2249 for class_name_from_physname function pointer.
2250 * f-lang.c (f_language_defn): Ditto.
2251 * m2-lang.c (m2_language_defn): Ditto.
2252 * objc-lang.c (objc_language_defn): Ditto.
2253 * p-lang.c (pascal_language_defn): Ditto.
2254 * scm-lang.c (scm_language_defn): Ditto.
2255
ee28ca0f
AC
22562004-07-06 Andrew Cagney <cagney@gnu.org>
2257
2258 Patch from Bart Robinson.
2259 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2260 (O_LARGEFILE): Define to 0, if not defined.
2261
fdb1bf9d
MK
22622004-07-03 Mark Kettenis <kettenis@gnu.org>
2263
cb162ff6
MK
2264 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2265 <machine/pcb.h> and "bsd-kvm.h".
2266 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2267 (m68kbsd_supply_pcb): New function.
2268 (_initialize_m68kbsd_nat): New prototype and function.
2269 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2270 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2271 (LOADLIBES): New variable.
2272 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2273 (LOADLIBES): New variable.
2274
fdb1bf9d
MK
2275 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2276
963c4174
MK
22772004-07-03 Mark Kettenis <kettenis@gnu.org>
2278
2279 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2280 <sys/proc.h>.
2281 (bsd_kvm_cmdlist): New variable.
2282 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2283 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2284 command and "kvm proc" command.
2285 * Makefile.in (bsd-kvm.o): Update dependencies.
2286
533f1d8f
MK
22872004-07-02 Mark Kettenis <kettenis@gnu.org>
2288
2289 * osabi.c: Update copyright year.
2290 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2291 notes if EI_OSABI is set to ELFOSABI_HPUX.
2292
6780dcde
MS
22932004-07-01 Michael Snyder <msnyder@redhat.com>
2294
2295 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2296 that seems to have gotten whacked out of line.
2297
67bebe79
MK
22982004-07-01 Mark Kettenis <kettenis@gnu.org>
2299
2300 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2301 code.
2302
0b5d8877
PH
23032004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2304
2305 * ada-lang.c (decode_packed_array): Minor change to comment.
2306 (ada_value_slice_ptr): New function.
2307 (ada_value_slice): New function.
2308 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2309 test. Don't know why it is there.
2310 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2311 to avoid dereferencing huge arrays from which one is slicing.
2312 (empty_array): Correct to return an array rather than
2313 a subrange value.
2314 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2315 on empty arrays (let'em use 'FIRST instead).
2316
19c1ef65
PH
23172004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2318
2319 Address complaints from gdb_ari.sh:
2320
2321 * ada-exp.y: Include gdb_string.h rather than string.h.
2322 (convert_char_literal): Reformat declaration.
2323 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2324 * ada-lex.l: Change use of free to xfree (the macro would do so
2325 anyway, but this is harmless).
2326 Include gdb_string.h rather than string.h.
2327 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2328
2329 * ada-lang.c (parse): Remove K&Rism in parameter list.
2330 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2331
d81cbc94
MK
23322004-06-30 Mark Kettenis <kettenis@gnu.org>
2333
2334 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2335 dead code.
2336
07681759
MK
23372004-06-30 Mark Kettenis <kettenis@gnu.org>
2338
2339 * alphabsd-nat.c: Update copyright year.
2340 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2341
f7948b5f
JB
23422004-06-29 Joel Brobecker <brobecker@gnat.com>
2343
6e0cdd28 2344 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2345 (i386_cygwin_in_solib_call_trampoline): New function.
2346 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2347 and skip_trampoline_code gdbarch methods.
2348
8f113c9a
JB
23492004-06-29 Jim Blandy <jimb@redhat.com>
2350
2351 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2352 name actually used in the dependency lists.
2353
97dc871c
RC
23542004-06-29 Randolph Chung <tausq@debian.org>
2355
2356 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2357
47216e51
CV
23582004-06-29 Corinna Vinschen <vinschen@redhat.com>
2359
2360 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2361 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2362 functionality.
2363
e623b504
AC
23642004-06-28 Andrew Cagney <cagney@gnu.org>
2365
2366 * defs.h (xstrvprintf): Declare.
2367 * utils.c (xstrvprintf): New function.
2368 (internal_vproblem, xstrprintf, xasprintf)
2369 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2370 * serial.c (serial_printf): Ditto.
2371 * complaints.c (vcomplaint): Ditto.
2372
79acc9b3
CV
23732004-06-29 Corinna Vinschen <vinschen@redhat.com>
2374
2375 * infcmd.c (attach_command): Move call to target_terminal_inferior
2376 behind loading symbol table.
2377
1daf35d9
AC
23782004-06-28 Andrew Cagney <cagney@gnu.org>
2379
2380 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2381 change - add back extern deprecated_ui_loop_hook declaration.
2382
b435e160
AC
23832004-06-28 Andrew Cagney <cagney@gnu.org>
2384
2385 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2386 xstrprintf.
2387 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2388 (c_value_of_variable): Ditto.
2389 * utils.c (internal_vproblem): Ditto.
2390 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2391 * remote.c (add_packet_config_cmd): Ditto.
2392 * remote-rdp.c (rdp_set_command_line): Ditto.
2393 * regcache.c (regcache_dump): Ditto.
2394 * frv-tdep.c (new_variant, new_variant): Ditto.
2395 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2396 (fbsd_find_memory_regions): Ditto.
2397 * breakpoint.c (create_thread_event_breakpoint)
2398 (create_breakpoints): Ditto.
2399 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2400 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2401
06d5cf63
JB
24022004-06-28 Joel Brobecker <brobecker@gnat.com>
2403
2404 * ada-lang.c: Re-indent file, with some massaging to help indent
2405 a bit when the result is otherwise really too ugly.
2406
35809fad
UW
24072004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2408
2409 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2410 code_addr_p and special_addr_p to 'unsigned int'.
2411
40e20472
MK
24122004-06-27 Mark Kettenis <kettenis@gnu.org>
2413
2414 * i386v4-nat.c: Update copyright year and tweak comment.
2415 (regmap): Remove trailing comma.
2416 (supply_gregset): Rename local variable i to regnum. Call
2417 regcache_raw_supply instead of supply_register.
2418 (fill_gregset): Rename argument regno to regnum. Call
2419 regcache_raw_collect instead of regcache_collect.
2420
12b0b6de
UW
24212004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2422
2423 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2424 and special_addr_p.
2425 (frame_id_build, frame_id_build_special): Update comments.
2426 (frame_id_build_wild): New prototype.
2427 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2428 struct frame_id fields.
2429 (frame_id_build_wild): New function.
2430 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2431
47b42a3e
MK
24322004-06-27 Mark Kettenis <kettenis@gnu.org>
2433
2434 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2435 hppabsd-tdep.c.
2436
1265e4aa
JB
24372004-06-27 Joel Brobecker <brobecker@gnat.com>
2438
2439 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2440
76a01679
JB
24412004-06-27 Joel Brobecker <brobecker@gnat.com>
2442
2443 * ada-lang.c: Re-indent file.
2444
7aca490a
JB
24452004-06-27 Joel Brobecker <brobecker@gnat.com>
2446
2447 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2448 (no_symtab_msg): Likewise.
2449
5e987968
AS
24502004-06-27 Andreas Schwab <schwab@suse.de>
2451
2452 * source.c: Fix whitespace.
2453
315c4276
MK
24542004-06-27 Mark Kettenis <kettenis@gnu.org>
2455
d15be926
MK
2456 * configure.in: Include <sys/param.h> for td_pcb test.
2457 * configure: Regenerated.
2458
9062529b
MK
2459 * i386nbsd-nat.c: New file.
2460 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2461 i386obsd-nat.c and i386obsd-tdep.c.
2462 (i386nbsd-nat.o): New dependency.
2463 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2464 bsd-kvm.o.
2465 (LOADLIBES): New variable.
2466 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2467 bsd-kvm.o.
2468 (LOADLIBES): New variable.
2469
8010310e
MK
2470 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2471 (LOADLIBES): New variable.
2472
efe1d7b9
MK
2473 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2474 fetching from BSD_KVM_PADDR. Correctly lookup address for
2475 "_thread0".
2476
315c4276
MK
2477 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2478 "bsd-kvm.h".
2479 (amd64fbsd_supply_pcb): New funcion.
2480 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2481
399cfac6
DL
24822004-06-27 <david@streamline-computing.com>
2483
2484 Partial fix for PR cli/1056.
2485 * valarith.c: Check for zero in division and remainder
2486 evaluation.
2487
6235f9c8
MK
24882004-06-27 Mark Kettenis <kettenis@gnu.org>
2489
2490 * i387-tdep.c: Remove excessive whitespace.
2491
2726dafc
AC
24922004-06-26 Andrew Cagney <cagney@gnu.org>
2493
2494 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2495 * gdb-events.h, gdb-events.c: Re-generate.
2496 * tui/tui-hooks.c (tui_install_hooks): Update.
2497 (tui_remove_hooks): Update.
2498 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2499
0e56aeaf
MK
25002004-06-26 Mark Kettenis <kettenis@gnu.org>
2501
cb461069
MK
2502 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2503 (gregset_t, fpregset_t): Remove typedefs.
2504 (REG_OFFSET): Rename argument.
2505 (amd64bsd_r_reg_offset): Rename from reg_offset.
2506 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2507 Remove functions.
2508 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2509 of reg_offset.
2510 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2511
ecba89de
MK
2512 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2513
4cd80476
MK
2514 * vax-tdep.c: Tweak comment.
2515
0e56aeaf
MK
2516 Add OpenBSD/hppa support.
2517 * NEWS (New native configurations): Mention OpenBSD/hppa.
2518 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2519 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2520 files.
2521 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2522 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2523 * configure.host: Add hppa*-*-openbsd*.
2524 * configure.tgt: Add hppa*-*-openbsd*.
2525
98bbd631
AC
25262004-06-25 Andrew Cagney <cagney@gnu.org>
2527
2528 * defs.h (deprecated_ui_loop_hook): Deprecated.
2529 * wince.c (child_wait): Update.
2530 * win32-nat.c (child_wait): Update.
2531 * v850ice.c (v850ice_wait): Update.
2532 * top.c (deprecated_ui_loop_hook): Update.
2533 * serial.h: Update.
2534 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2535 (do_unix_readchar): Update.
2536 * ser-tcp.c (net_open): Update.
2537 * remote-sim.c (gdb_os_poll_quit): Update.
2538 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2539
769d7dc4
AC
25402004-06-24 Andrew Cagney <cagney@gnu.org>
2541
2542 * defs.h (deprecated_pre_add_symbol_hook)
2543 (deprecated_post_add_symbol_hook): Deprecated.
2544 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2545 (symbol_file_add_with_addrs_or_offsets): Update references.
2546
11c949aa
AC
25472004-06-24 Andrew Cagney <cagney@gnu.org>
2548
2549 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2550 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2551 * wince.c (ui_loop_hook): Delete extern declaration.
2552 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2553 * v850ice.c (ui_loop_hook): Delete extern declaration..
2554 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2555 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2556 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2557 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2558 ui_loop_hook declaration.
2559
eedc19af
AC
25602004-06-24 Andrew Cagney <cagney@gnu.org>
2561
2562 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2563 entry_func_highpc fields.
2564 * objfiles.c (init_entry_point_info): Do not clear
2565 entry_func_lowpc and entry_func_highpc.
2566 (objfile_relocate): Do not relocate entry_func_lowpc and
2567 entry_func_highpc.
2568 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2569 entry_func_highpc.
2570 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2571 entry_func_highpc.
2572 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2573 entry_func_lowpc and entry_func_highpc with call to
2574 inside_entry_func.
2575
d47079be
MK
25762004-06-24 Mark Kettenis <kettenis@gnu.org>
2577
2578 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2579 quad-precision floating point arguments in registers.
2580
2107e348
MK
25812004-06-24 Mark Kettenis <kettenis@gnu.org>
2582
2583 From Michael Mueller <m.mueller99@kay-mueller.de>:
2584 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2585 account.
2586
46587c42
JJ
25872004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2588
2589 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2590 to -1.
2591 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2592 untriggered watchpoints to a separate if clause. Update function
2593 comment regarding STOPPED_BY_WATCHPOINT argument.
2594
226f5cf4
JB
25952004-06-22 Jim Blandy <jimb@redhat.com>
2596
2597 * gdbarch.sh: Doc fix.
2598
f10683bb
MH
25992004-06-21 Martin Hunt <hunt@redhat.com>
2600 Kevin Buettner <kevinb@redhat.com>
2601
2602 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2603 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2604 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2605 to set_gdbarch_sp_regnum(). Use cooked register number.
2606 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2607
412d5987
AC
26082004-06-21 Andrew Cagney <cagney@gnu.org>
2609
2610 * gdbarch.sh: When the macro field is empty, do not generate a
2611 macro definition. When the macro field is "=", generate the macro
2612 name from the upper-case function name.
2613 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2614 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2615 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2616 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2617 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2618 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2619 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2620 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2621 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2622 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2623 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2624 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2625 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2626 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2627 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2628 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2629 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2630 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2631 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2632 (DEPRECATED_USE_STRUCT_CONVENTION)
2633 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2634 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2635 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2636 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2637 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2638 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2639 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2640 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2641 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2642 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2643 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2644 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2645 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2646 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2647 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2648 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2649 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2650 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2651
68908a3e
AC
26522004-06-21 Andrew Cagney <cagney@gnu.org>
2653
48f7351b
AC
2654 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2655 macro name, and the function rather than macro value. Only wrap
2656 macro print statements in #ifdef. Move format logic to where it
2657 is needed.
2658 * gdbarch.c: Re-generate.
2659
283354d8
AC
2660 * gdbarch.sh (read): Delete "print_p" and "description", add
2661 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2662 Delete references to print_p.
2663 (TARGET_ARCHITECTURE): Delete print predicate.
2664 * gdbarch.c: Re-generate.
2665
68908a3e
AC
2666 * gdbarch.sh: Check that multi-arch methods do not provide a
2667 macro.
2668 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2669 (print_registers_info, print_float_info, print_vector_info)
2670 (adjust_breakpoint_address, remote_translate_xfer_address)
2671 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2672 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2673 name from the multi-arch definition.
2674
a2428dbe
AC
26752004-06-20 Andrew Cagney <cagney@gnu.org>
2676
2677 * gdbarch.sh: Sort by the function, instead of macro name.
2678 * gdbarch.c: Re-generate.
2679
750eb019
AC
26802004-06-20 Andrew Cagney <cagney@gnu.org>
2681
66d659b1
AC
2682 * gdbarch.sh: Use the function, instead of macro name in
2683 errors and the log file.
2684 (return_value): Remove stray ":" in spec.
2685
750eb019
AC
2686 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2687 * gdbarch.h, gdbarch.c: Re-generate.
2688 * Makefile.in (arch-utils.o): Update dependencies.
2689 * values.c (using_struct_return): Move code calling
2690 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2691 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2692 to legacy_return_value, simplify.
2693 * infcmd.c (print_return_value): Move code calling
2694 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2695 to legacy_return_value, simplify.
2696 * infcall.c (call_function_by_hand): Move code calling
2697 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2698 * arch-utils.c: Update copyright. Include "gdbcore.h".
2699 (legacy_return_value): New function.
2700 * arch-utils.h: Update copyright.
2701 (legacy_return_value): Declare.
2702
b5622e8d
AC
27032004-06-20 Andrew Cagney <cagney@gnu.org>
2704
2705 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2706 * gdbarch.h, gdbarch.c: Re-generate.
2707 * values.c (using_struct_return): Update call.
2708 * mcore-tdep.c: Update comment.
2709 * infcall.c (call_function_by_hand): Update comment.
2710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2711 * arch-utils.h (always_use_struct_convention): Update.
2712 * v850-tdep.c (v850_gdbarch_init): Update.
2713 * sh64-tdep.c (sh64_gdbarch_init): Update.
2714 * sh-tdep.c (sh_gdbarch_init): Update.
2715 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2716 * mips-tdep.c (mips_gdbarch_init): Update.
2717 * mcore-tdep.c (mcore_gdbarch_init): Update.
2718 * m32r-tdep.c (m32r_gdbarch_init): Update.
2719 * ia64-tdep.c (ia64_gdbarch_init): Update.
2720 * h8300-tdep.c (h8300_gdbarch_init): Update.
2721 * frv-tdep.c (frv_gdbarch_init): Update.
2722 * cris-tdep.c (cris_gdbarch_init): Update.
2723 * arm-tdep.c (arm_gdbarch_init): Update.
2724 * alpha-tdep.c (alpha_gdbarch_init): Update.
2725
5191de37
MC
27262004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2727
2728 * PROBLEMS: Add more specific information, and a work-around,
2729 for PR gdb/1458.
2730
782263ab
AC
27312004-06-18 Andrew Cagney <cagney@gnu.org>
2732
2733 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2734 * gdbarch.h, gdbarch.c: Re-generate.
2735 * ada-lang.c (ada_finish_decode_line_1): Update.
2736 * infrun.c (handle_inferior_event): Update.
2737 * infcall.c (find_function_addr): Update.
2738 * linespec.c (minsym_found): Update.
2739 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2740 Update.
2741 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2742 * cli/cli-cmds.c (disassemble_command): Update.
2743 * vax-tdep.c (vax_gdbarch_init): Update.
2744
2f305df1
MK
27452004-06-18 Mark Kettenis <kettenis@gnu.org>
2746
2747 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2748
e5fe55f7
AC
27492004-06-17 Andrew Cagney <cagney@gnu.org>
2750
2751 GDB 6.1.1 released from the GDB 6.1 branch.
2752 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2753 * PROBLEMS: Ditto.
2754
473b7be6
DJ
27552004-06-16 Daniel Jacobowitz <dan@debian.org>
2756
2757 PR gdb/1658
2758 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2759 operation as a uleb128. Found by Michael Coulter.
2760
96d887e8
PH
27612004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2762
2763 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2764 make it non-static.
2765 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2766 to ada-lang.h; this is needed to be able to implement the kill command
2767 in multi-task mode.
2768 (task_ptid): Ditto.
2769 (task_entry): Ditto.
2770 (task_list): Ditto.
2771 (ada_build_task_list): Ditto.
2772
2773 * ada-lang.c: Conditionalize routines and data structures related
2774 to breakpoints, exceptions, completion, and symbol caching on
2775 GNAT_GDB, since these are not yet used in the submitted public sources.
2776 (ada_main_name): Editorial: Move definition out of exception-related
2777 code.
2778
31eef181
AC
27792004-06-15 Andrew Cagney <cagney@gnu.org>
2780
2781 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2782 deprecated_pc_in_call_dummy.
2783
2c500098
AM
27842004-06-15 Alan Modra <amodra@bigpond.net.au>
2785
2786 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2787 bfd_get_section_size_before_reloc or _raw_size.
2788 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2789 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2790 (dwarf2_read_section): Likewise.
2791 * elfread.c (elf_locate_sections): Likewise.
2792 * gcore.c (derive_heap_segment): Likewise.
2793 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2794 * remote-e7000.c (e7000_load): Likewise.
2795 * remote-m32r-sdi.c (m32r_load): Likewise.
2796 * remote-mips.c (mips_load_srec): Likewise.
2797 (pmon_load_fast): Likewise.
2798 * remote.c (compare_sections_command): Likewise.
2799 * symfile.c (add_section_size_callback): Likewise.
2800 (load_section_callback): Likewise.
2801 (pc_in_unmapped_range): Likewise.
2802 (pc_in_mapped_range): Likewise.
2803 (sections_overlap): Likewise.
2804 (list_overlays_command): Likewise.
2805 (simple_overlay_update_1): Likewise.
2806 (simple_overlay_update): Likewise.
2807 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2808 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2809
90f943f1
RC
28102004-06-14 Randolph Chung <tausq@debian.org>
2811
2812 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2813 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2814 static.
2815 (hppa_hpux_inferior_created): New function.
2816 (hppa_hpux_init_abi): Register observer.
2817 * symfile.c (hp_cxx_exception_support_initialized)
2818 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2819 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2820
700c15aa
RC
28212004-06-14 Randolph Chung <tausq@debian.org>
2822
3973a7d3
AC
2823 * MAINTAINERS (Write After Approval): Alphabetize my entry
2824 correctly.
700c15aa 2825
cea4838c
AC
28262004-06-14 Andrew Cagney <cagney@gnu.org>
2827
2828 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2829 testsuite maintainer.
2830
97092415
AC
28312004-06-13 Andrew Cagney <cagney@gnu.org>
2832
e8c3165b
AC
2833 * infcmd.c (print_return_value): Fix logic, allow
2834 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2835
bceabdd8
AC
2836 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2837 defining any macros.
2838 * gdbarch.h: Re-generate.
2839
57010b1c
AC
2840 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2841 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2842 * gdbarch.h: Re-generate.
2843
bc87dfa0
AC
2844 * values.c (generic_use_struct_convention): Don't check gcc_p.
2845
15ac804d
AC
2846 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2847 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2848 * gdbarch.h, gdbarch.c: Regenerate.
2849 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2850 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2852 deprecated_max_register_raw_size and
2853 deprecated_max_register_virtual_size.
2854 * v850-tdep.c (v850_gdbarch_init): Ditto.
2855 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2856 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2857 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2858 * cris-tdep.c (cris_gdbarch_init): Ditto.
2859
97092415
AC
2860 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2861 * gdbarch.h, gdbarch.c: Re-generate.
2862 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2863 (m68hc11_use_struct_convention): Delete function.
2864 (m68hc11_extract_struct_value_address): Delete function.
2865 (m68hc11_return_value): New function.
2866 (m68hc11_gdbarch_init): Instead of store_return_value,
2867 extract_return_value, return_value_on_stack,
2868 deprecated_extract_struct_value_address and use_struct_convention,
2869 set return_value.
2870 * values.c (using_struct_return): Do not call
2871 RETURN_VALUE_ON_STACK.
2872 * arch-utils.h (generic_return_value_on_stack_not): Delete
2873 declaration.
2874 * arch-utils.c (generic_return_value_on_stack_not): Delete
2875 function.
2876
44e5158b
AC
28772004-06-12 Andrew Cagney <cagney@gnu.org>
2878
2879 * values.c (register_value_being_returned): Delete function.
2880 * infcmd.c (legacy_return_value): Delete function.
2881 * infcall.c (call_function_by_hand): Inline
2882 "register_value_being_returned", simplify.
2883 * values.c (using_struct_return): Update comment, refer to
2884 print_return_value instead of register_value_being_returned.
2885 * infcmd.c (print_return_value): Inline calls to
2886 register_value_being_returned and legacy_return_value. Simplify.
2887
b887c273
RC
28882004-06-11 Randolph Chung <tausq@debian.org>
2889
2890 * somread.c (som_symtab_read): Exclude gcc local symbols.
2891
1b2bfbb9
RC
28922004-06-11 Randolph Chung <tausq@debian.org>
2893
3973a7d3
AC
2894 * infrun.c (handle_inferior_event): Handle the case when a
2895 trampoline ends up in the runtime resolver, and if the trampoline
2896 has no name. Rearrange the code so that all the trampoline
2897 processing happens before other step-out-of-range handling.
1b2bfbb9 2898
a9d61c86
MH
28992004-06-11 Martin Hunt <hunt@redhat.com>
2900
2901 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2902 has no fpu.
2903
2c87cf5a
AC
29042004-06-10 Andrew Cagney <cagney@gnu.org>
2905
2906 * blockframe.c (legacy_inside_entry_func): Delete.
2907 (legacy_frame_chain_valid): Inline call to
2908 legacy_inside_entry_func, simplify.
2909
0b67b468 29102004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2911
2912 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2913 * dwarf2read.c (partial_die_info): Add dirname field.
2914 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2915 (read_partial_die): Save away DW_AT_comp_dir.
2916 * defs.h (symtab_to_filename): Removed.
2917 * source.c (find_and_open_source): Added.
57c22c6c 2918 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2919 (symtab_to_filename): Removed.
2920 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2921 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2922 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2923 symtab_to_filename.
2924 * symtab.h (partial_symtab): Add dirname field.
2925 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2926 (mi_cmd_file_list_exec_source_file): Call new function
2927 symtab_to_fullname to find fullname.
57c22c6c 2928 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2929 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2930 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2931
9a1dd1ad
AC
29322004-06-10 Andrew Cagney <cagney@gnu.org>
2933
239ae8c7
AC
2934 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2935 to generic_use_struct_convention, the default value.
2936
fc720350
AC
2937 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2938 of abort.
2939
9a1dd1ad
AC
2940 * ns32k-tdep.c (ns32k_push_arguments): New function.
2941 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2942 * infcall.c (call_function_by_hand): Call error instead of
2943 legacy_push_arguments.
2944 * value.h (legacy_push_arguments): Delete declaration.
2945 * valops.c (legacy_push_arguments): Delete function.
2946 (value_push): Delete function.
2947
fea25152
BF
29482004-06-10 Brian Ford <ford@vss.fsi.com>
2949
2950 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2951 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2952 info.
2953 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2954
30a4a8e0
AC
29552004-06-10 Andrew Cagney <cagney@gnu.org>
2956
2957 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2958 * gdbarch.h, gdbarch.c: Re-generate.
2959 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2960 parameters.
2961 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2962 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2963 deprecated_pc_in_call_dummy instead of
2964 DEPRECATED_PC_IN_CALL_DUMMY.
2965 (arm_skip_prologue): Ditto.
2966 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2967 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2968 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2969 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2970 Ditto.
2971 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2972 (sh64_init_extra_frame_info, sh64_get_saved_register)
2973 (sh64_pop_frame): Ditto.
2974 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2975 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2976 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2977 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2978 (h8300_pop_frame): Ditto.
2979 * blockframe.c (legacy_inside_entry_func)
2980 (legacy_frame_chain_valid): Ditto.
2981 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2982 to deprecated_pc_in_call_dummy.
2983
81cfbe54
AC
29842004-06-09 Andrew Cagney <cagney@gnu.org>
2985
a1f4a1b6
AC
2986 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2987 provide a default value.
2988 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2989 * gdbarch.h, gdbarch.c: Re-generate.
2990 * arch-utils.c (generic_convert_register_p): Rename
2991 legacy_convert_register_p
2992 (legacy_register_to_value, legacy_value_to_register): Delete
2993 functions.
2994 * arch-utils.h (generic_convert_register_p): Rename
2995 legacy_convert_register_p.
2996 (legacy_register_to_value, legacy_value_to_register): Delete
2997 declarations.
2998
9730f241
AC
2999 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3000 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3001 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3002 * gdbarch.h, gdbarch.c: Re-generate.
3003 * infcmd.c (default_print_registers_info): Simplify.
3004 * findvar.c (value_of_register): Simplify.
3005 * mi/mi-main.c (get_register): Simplify.
3006 * arch-utils.c (legacy_convert_register_p): Always return 0.
3007 (legacy_register_to_value, legacy_value_to_register): Always call
3008 internal_error.
3009
8a1bf479
AC
3010 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3011 #ifdef CLEAR_INSN_CACHE code.
3012 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3013 Delete #ifdef CLEAR_DEFERRED_STORES code.
3014
4b38d6f1
AC
3015 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3016
2d62ecc7
AC
3017 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3018 copyright.
3019 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3020
be4f7469
AC
3021 * config/mips/mipsv4.mh: Delete file.
3022
81cfbe54
AC
3023 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3024 unreferenced macro.
3025 (hpread_adjust_stack_address): Delete declaration.
3026
d966f0cb
AC
30272004-06-08 Andrew Cagney <cagney@gnu.org>
3028
3029 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3030 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3031 PTRACE_ATTACH / PTRACE_DETACH available call error.
3032 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3033 * infttrace.c (update_thread_state_after_attach, attach, detach):
3034 Remove #ifdef wrappers.
3035 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3036 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3037 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3038 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3039 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3040 * config/nm-linux.h (ATTACH_DETACH): Delete.
3041 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3042 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3043 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3044 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3045 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3046
d91670b9
CV
30472004-06-08 Corinna Vinschen <vinschen@redhat.com>
3048
3049 * configure.in: Set $configdir to the right OS specific value.
3050 Use value when setting $tcldir and $tkdir.
3051 * configure: Regenerate.
3052
28ba0b33
PB
30532004-06-06 Paul Brook <paul@codesourcery.com>
3054
3055 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3056 records.
3057
f26caa11
PH
30582004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3059
3060 * ada-lang.c (lookup_symbol_in_language): New function to allow
3061 re-use of another language's symbol lookup code. (Placed here
3062 temporarily while Ada support is being integrated into the public
3063 tree).
3064 (restore_language): New auxiliary function for
3065 lookup_symbol_in_language.
3066 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3067 temporarily while Ada support is being integrated into the public
3068 tree).
3069
d560a54b
AO
30702004-06-08 Alexandre Oliva <aoliva@redhat.com>
3071
e75d110c
AO
3072 * Makefile.in (check//%): New.
3073
d560a54b
AO
3074 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3075 (mn10300_store_return_value): Rewrite.
3076 (mn10300_type_align): New.
3077 (mn10300_use_struct_convention): Rewrite.
3078 (mn10300_return_value): New, using all of the above.
3079 (mn10300_pop_frame_regular): Add saved_regs_size.
3080 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3081
a72fbdb7
AO
3082 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3083 regs if PC is on movm.
3084
01904826
JB
30852004-06-07 Jim Blandy <jimb@redhat.com>
3086
3087 Add native Linux support for the PowerPC E500.
3088 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3089 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3090 all architectures except the E500.
3091 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3092 #definitions.
3093 (struct gdb_evrregset_t): New type.
3094 (have_ptrace_getsetevrregs): New variable.
3095 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3096 fetch_spe_registers): New functions.
3097 (fetch_register): Call fetch_spe_register as appropriate.
3098 Assert that we're only passed raw register numbers.
3099 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3100 Don't fetch gprs if they're pseudoregisters.
3101 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3102 store_spe_registers): New functions.
3103 (store_register): Call store_spe_register as appropriate.
3104 Assert that we're only passed raw register numbers.
3105 (store_ppc_registers): Call store_spe_registers as appropriate.
3106 Don't store gprs if they're pseudoregisters.
3107
f90ef764
JJ
31082004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3109
3110 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3111 struct if one exists, even if we are dealing with a zombie thread.
3112
45b75230
AC
31132004-06-07 Andrew Cagney <cagney@gnu.org>
3114
3115 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3116 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3117 Rename PC_REQUIRES_RUN_BEFORE_USE.
3118 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3119 #ifdef.
3120
1658da49
RC
31212004-06-07 Randolph Chung <tausq@debian.org>
3122
3123 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3124 unwinding after sp has been saved to the stack but before the end
3125 of the prologue, and after the fp has been modified but before it has
3126 been saved to the stack.
3127 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3128 Remove superfluous definitions.
3129 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3130
9a727a3c
RC
31312004-06-07 Guy Martin <gmsoft@gentoo.org>
3132
3133 Committed by Randolph Chung.
3134 * hppa-linux-nat.c: Include the correct version of the header file
3135 depending on the kernel version.
3136
9e500012
RC
31372004-06-06 Randolph Chung <tausq@debian.org>
3138
3139 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3140 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3141
3388d7ff
RC
31422004-06-06 Randolph Chung <tausq@debian.org>
3143
3144 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3145 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3146 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3147 * hppa-tdep.c (hppa_symbol_address): New function definition.
3148 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3149
d49771ef
RC
31502004-06-06 Randolph Chung <tausq@debian.org>
3151
3152 * hppa-tdep.h (struct value): Forward declaration.
3153 (gdbarch_tdep): Define tdep find_global_pointer method.
3154 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3155 associated with the function we are trying to call, and write it
3156 to the gp register.
3157 (hppa32_convert_from_funct_ptr_addr): New function.
3158 (hppa_find_global_pointer): New function.
3159 (hppa_gdbarch_init): Set default find_global_pointer method; set
3160 convert_from_func_ptr_addr method.
3161 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3162 (hppa_linux_init_abi): Set find_global_pointer method.
3163 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3164
7d9b040b
RC
31652004-06-06 Randolph Chung <tausq@debian.org>
3166
3167 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3168 to struct value *function.
3169 * gdbarch.c: Regenerate.
3170 * gdbarch.h: Likewise.
3171 * infcall.c (call_function_by_hand): Pass entire function value
3172 to push_dummy_call.
3173
3174 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3175 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3176 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3177 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3178 * arm-tdep.c (arm_push_dummy_call): Likewise.
3179 * avr-tdep.c (avr_push_dummy_call): Likewise.
3180 * cris-tdep.c (cris_push_dummy_call): Likewise.
3181 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3182 * frv-tdep.c (frv_push_dummy_call): Likewise.
3183 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3184 * hppa-tdep.c (hppa32_push_dummy_call)
3185 (hppa64_push_dummy_call): Likewise.
3186 * i386-tdep.c (i386_push_dummy_call): Likewise.
3187 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3188 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3189 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3190 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3191 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3192 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3193 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3194 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3195 (ppc64_sysv_abi_push_dummy_call): Likewise.
3196 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3197 (ppc64_sysv_abi_push_dummy_call): Likewise.
3198 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3199 * s390-tdep.c (s390_push_dummy_call): Likewise.
3200 * sh-tdep.c (sh_push_dummy_call_fpu)
3201 (sh_push_dummy_call_nofpu): Likewise.
3202 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3203 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3204 * vax-tdep.c (vax_push_dummy_call): Likewise.
3205
4a19ea35
JB
32062004-06-04 Jim Blandy <jimb@redhat.com>
3207
8327ccee
JB
3208 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3209 gdbarch argument to register_size.
3210
a3c001ce
JB
3211 * rs6000-tdep.c (rs6000_store_return_value): Use
3212 regcache_cooked_write_part instead of
3213 deprecated_write_register_bytes.
3214 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3215 not gdbarch_deprecated_store_return_value.
3216
4a19ea35
JB
3217 * ppc-linux-nat.c (store_register, fetch_register): Remove
3218 incorrect assertions. Simplify and generalize handling of
3219 transfers whose sizes are not multiples of, or less than, sizeof
3220 (PTRACE_XFER_TYPE).
3221
b9b5d7ea
JJ
32222004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3223
3224 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3225 as a new thread event.
720c7d64 3226 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3227 zombie, return TD_THR_ZOMBIE.
720c7d64 3228 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3229 TD_THR_ZOMBIE, check if the thread is still on the thread list
3230 and return a -1 ptid if not found.
3231 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3232 change the status to TARGET_WAITKIND_SPURIOUS.
3233
c8a3b559
CV
32342004-06-03 Corinna Vinschen <vinschen@redhat.com>
3235
3236 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3237 double values in little endian mode.
3238
20605361
AC
32392004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3240
3241 Committed by Andrew Cagney.
3242 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3243 after last enum constant to avoid error from IBM C
3244 compiler.
3245
bc97b3ba
JB
32462004-06-02 Jim Blandy <jimb@redhat.com>
3247
3248 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3249 to 'message', and make it local to the lone block that uses it.
3250
1da28ab0
JB
3251 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3252
4c4b4cd2
PH
32532004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3254
8a2225b2
PH
3255 * ada-exp.y: Update copyright notice.
3256 Include block.h.
3257
3258 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3259 SPECIAL_VARIABLE and unify the treatment of these cases.
3260
3261 (write_attribute_call0): Remove.
3262 (write_attribute_call1): Remove.
3263 (write_attribute_calln): Remove.
3264 (save_qualifier): Add missing semicolon.
3265
3266 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3267 temporarily disabled to allow compilation with FSF head version.
3268
3269 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3270 use individual operators (OP_*) for all attributes.
3271 (exp syntax): Use write_int.
3272 Handle STRING literals with OP_STRING.
3273 (variable syntax): Add limit parameter to calls to
3274 write_object_renaming.
3275
3276 (temp_parse_space): New definition to hold entities that need
3277 only live until the next call to ada_parse.
3278 (string_to_operator): Rename fields of ada_opname_table entries.
3279
3280 (write_var_from_sym): Record block.
3281 (write_var_from_name): Minor reformatting.
3282 Make sure saved name is properly encoded in the case of multiple
3283 matches, and set its language to Ada.
3284 Update comment.
3285 Modify to indicate unresolved name as symbol in the UNRESOLVED
3286 namespace, allocated in temp_parse_space.
3287 (write_int): New function.
3288
3289 (write_object_renaming): Add max_depth parameter to limit
3290 chains of object renamings.
3291 Handle case where root of renaming expression is itself a renaming.
3292 Use temp_parse_space for temporary name buffer.
3293 Handle renamings to dereferenced pointers (___XEXA suffices).
3294
3295 (ada_parse, yyerror, string_to_operator,
3296 write_var_from_sym, write_var_from_name, write_attribute_call0,
3297 write_attribute_call1, write_attribute_calln,
3298 write_object_renaming): Protoize.
3299
3300 (_initialize_ada_exp): New function.
3301
3302 * ada-lang.c: Update copyright notice.
3303 General terminology change to conform to GNAT compiler usage:
3304 mangle => encode, demangle => decode
3305 Include gdb_obstack.h.
3306 Include gdb_regex.h
3307 Include frame.h
3308 Include hashtab.h
3309 Include completer.h
3310 Include gdb_stat.h
3311 Include block.h
3312 Include infcall.h
3313
3314 (ADA_RETAIN_DOTS): Make sure this is defined.
3315 (TRUNCATION_TOWARDS_ZERO): Define.
3316 (struct string_vector): Define.
3317 (unresolved_names): Remove definition.
3318 (xnew_string_vector): New function.
3319 (string_vector_append): New function.
3320 (extract_string): Make static.
3321 (ada_unqualified_name): New function.
3322 (add_angle_brackets): New function.
3323 (function_name_from_pc): New function.
3324 (place_on_stack): Rename to ensure_lval.
3325
3326 (ensure_lval): Renamed from place_on_stack.
3327 Make identity on lvals.
3328 Update comment.
3329 (is_nonfunction): New interface.
3330 Only symbols in LOC_CONST class can be enumerals.
3331 (fill_in_ada_prototype): Remove; now independent of language.
3332 (add_defn_to_vec): Add obstack and symtab arguments.
3333 Use obstack to hold collected definitions.
3334 (num_defns_collected): New function.
3335 (defns_collected): New function.
3336 (ada_resolve_subexp): Rename to resolve_subexp.
3337 (resolve_subexp): Renamed from ada_resolve_subexp.
3338 (ada_op_name): Return non-const result.
3339 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3340 other purposes.
3341
3342 (to_fixed_array_type): Add declaration.
3343 (coerce_unspec_val_to_type): Remove offset parameter.
3344 (find_sal_from_funcs_and_line): New interface.
3345 (find_line_in_linetable): Ditto.
3346
3347 (all_sals_for_line): Rename to ada_sals_for_line and make
3348 global.
3349 Add new parameter. When set, do not ask the user to choose the
3350 instance, but use the first one found instead.
3351 Use given line number in returned sals.
3352 Fix comment.
3353 Skip the prologue if funfirstline is set.
3354 Correct for memory leak when 0 lines found.
3355
3356 (value_pos_atr): Use pos_atr.
3357 (pos_atr): New function.
3358 (standard_lookup): Add block parameter.
3359
3360 (makeTimeStart): Remove declaration and uses.
3361 (makeTimeStop): Remove declaration and uses.
3362
3363 (ada_completer_word_break_characters): Allow for VMS.
3364 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3365 (raise_sym_name): New constant.
3366 (raise_unhandled_sym_name): New constant.
3367 (raise_assert_sym_name): New constant.
3368 (process_raise_exception_name): New constant.
3369 (longest_exception_template): New constant.
3370 (warning_limit): New variable to limit warnings during expression
3371 evaluation.
3372 (warnings_issued): New variable to keep track of warnings issued.
3373 (known_runtime_file_name_patterns): New constant.
3374 (known_auxiliary_function_name_patterns): New constant.
3375 (symbol_list_obstack): New variable.
3376
3377 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3378 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3379 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3380 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3381 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3382 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3383 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3384 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3385 and strcmp.
3386
3387 (ada_get_field_index): New function.
3388 (lim_warning): New function.
3389 (ada_translate_error_message): New function.
3390 (MAX_OF_SIZE): New function.
3391 (MIN_OF_SIZE): New function.
3392 (UMAX_OF_SIZE): New function.
3393 (UMIN_OF_SIZE): New function.
3394 (discrete_type_high_bound): New function.
3395 (discrete_type_low_bound): New function.
3396 (base_type): New function.
3397 (do_command): Remove.
3398
3399 (ada_update_initial_language): Use language_ada, not language_unknown.
3400 (ada_encode): Renamed from ada_mangle.
3401 Obey ADA_RETAIN_DOTS.
3402 (ada_decode): Renamed from ada_demangle.
3403 Update coding conventions.
3404 (decoded_names_store): New hash table.
3405 (ada_decode_symbol): New function.
3406 (ada_la_decode): New function.
3407
3408 (modify_general_field): Correct computations of offset and bit
3409 position.
3410 (desc_base_type): Handle ref types, too.
3411 (ada_is_direct_array_type): New function.
3412
3413 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3414 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3415 (ada_is_bogus_array_descriptor,ada_type_of_array,
3416 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3417 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3418 ada_is_array_descriptor_type.
3419
3420 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3421 (ada_is_packed_array_type): Handle pointers or
3422 references to packed arrays as well.
3423 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3424 (decode_packed_array_type): Search for the packed array type
3425 symbol in the currently selected block and associated
3426 superblocks too.
3427 Use lookup_symbol again.
3428
3429 (decode_packed_array): Handle pointers and references.
3430 Update call to coerce_unspec_val_to_type.
3431 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3432 (ada_value_primitive_packed_val): Improve comment.
3433
3434 (ada_index_type): Substitute int type for "undefined".
3435 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3436 ada_array_langth, ada_is_string_type): Use renamed
3437 ada_is_simple_array_type.
3438 (empty_array): New function.
3439
3440 (ada_resolve): Rename to resolve.
3441 (resolve): Make static.
3442 Call renamed resolve_subexp.
3443 Update comment.
3444 (ada_resolve_subexp): Rename to resolve_subexp.
3445 (resolve_subexp): Update comment.
3446 Decomment disabled code.
3447 Add LOC_COMPUTED* cases.
3448 Modify to use temporary struct symbols (marked as being in
3449 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3450 OP_UNRESOLVED_VALUE.
3451 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3452 Add OP_STRING case.
3453 Remove OP_ARRAY.
3454 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3455 Use new ada_lookup_symbol_list interface.
3456 Use new ada_resolve_function interface.
3457 Remove OP_TYPE case.
3458
3459 (ada_args_match): Idiot proof against null actuals.
3460 Use intermediate variables to clarify.
3461 (ada_resolve_function): Update comment and interface.
3462 (mangled_ordered_before): Rename to encoded_ordered_before and
3463 update comment.
3464 (sort_choices): Update comment and interface.
3465 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3466 (user_select_syms): New interface.
3467 Use new sort_choices interface.
3468 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3469 (possible_user_operator_p): Idiot-proof against null values.
3470 (ada_simple_renamed_entity): Don't make cleanup; rely on
3471 caller to free result string.
3472 Remove const from return type.
3473 (make_array_descriptor): Rename uses of place_on_stack to
3474 ensure_lval.
3475 Make sure that arrays are on stack.
3476
3477 (HASH_SIZE): Define.
3478 (struct cache_entry): Define.
3479 (cache_space): Define.
3480 (cache): Define.
3481 (clear_ada_sym_cache): New function.
3482 (find_entry): New function.
3483 (lookup_cached_symbol): New function.
3484 (defn_vector_size): Define.
3485 (cache_symbol): New function.
3486 (defn_symbols): Remove.
3487
3488 (standard_lookup): Use lookup_symbol_in_language to get effect of
3489 C lookup.
3490 Cache results.
3491
3492 (symbol_completion_match): New function.
3493 (symbol_completion_add): New function.
3494 (ada_make_symbol_completion_list): New function.
3495
3496 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3497 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3498 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3499 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3500
3501 (ada_lookup_simple_minsym): New function.
3502 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3503
3504 (add_symbols_from_enclosing_procs): New interface.
3505 Conditionalize more helpfully.
3506 Don't bother if program isn't running.
3507 Use new interface to get_frame_block.
3508 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3509
3510 (remove_extra_symbols): New interface.
3511 (xget_renaming_scope): New function.
3512 (is_package_name): New function.
3513 (renaming_is_visible): New function.
3514 (remove_out_of_scope_renamings): New function.
3515
3516 (ada_lookup_symbol_list): New interface.
3517 Properly reinitialize the symbol list obstack.
3518 Don't call add_symbols_from_enclosing_procs if we start from a
3519 static or global block.
3520 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3521 add_symbols_from_enclosing_procs.
3522 Add symtab data to cached entries.
3523 Handle symbols prefixed with
3524 "standard__" specially; strip prefix and don't look in local symbols.
3525 Do not include out of scope renaming symbols in list of
3526 symbols returned.
3527 Add const to block parameter.
3528 Move check for non-local, non-global symbols earlier.
3529 Remove timing stuff.
3530 (ada_lookup_symbol): New interface.
3531 Find symtab as well.
3532 (ada_lookup_symbol_nonlocal): New function.
3533
3534 (is_name_suffix): Enhance suffix detection to recognize
3535 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3536 (is_dot_digits_suffix): New function.
3537 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3538
3539 (ada_add_block_symbols): New interface. Use obstack to return results
3540 in a vector of struct ada_symbol_infos. Add symtab argument.
3541 Use new interface to add_defn_to_vec.
3542 Remove calls to fill_in_ada_prototype.
3543 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3544
3545 (ada_finish_decode_line_1): Add const qualification to local to fix
3546 warning.
3547 Start looking in static block for functions to avoid attempts
3548 to search frame chain for up-level variables.
3549 Adapt to new ada_sals_for_line interface.
3550 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3551 Handle quoting of the function name inside the spec string.
3552 Skip prologue when funfirstline is set and update the
3553 function documentation to that effect.
3554
3555 (debug_print_lines, debug_print_block, debug_print_blocks,
3556 debug_print_symtab): Remove.
3557
3558 (ada_main_name): New function.
3559 (ada_exception_breakpoint_type): New function.
3560 (is_known_support_routine): New function.
3561 (ada_find_printable_frame): Renamed from find_printable_frame and made
3562 global.
3563 Remove level parameter.
3564 Use new interface to select_frame.
3565
3566 (begin_command): Remove.
3567 (ada_adjust_exception_stop): New function.
3568 (ada_print_exception_stop): New function.
3569 (exception_name_from_cond): New function.
3570 (ada_report_exception_break): Replace disabled code with
3571 conditionalization on GNAT_GDB.
3572 Get the exception name from the condition string.
3573 Remove and move functionality into new functions
3574 ada_print_exception_breakpoint_task and
3575 ada_print_exception_breakpoint_nontask.
3576 (error_breakpoint_runtime_sym_not_found): New function.
3577 (is_runtime_sym_defined): New function.
3578 (ada_breakpoint_rewrite): Uncomment suppressed code.
3579 Use symbolic error-message and runtime-symbol names.
3580 Surround runtime symbol names in quotes.
3581 Allow non-specific breakpoints on exceptions and assertions before
3582 program starts.
3583
3584 (ada_is_tagged_type): Add parameter.
3585 (ada_is_tag_type): New function.
3586 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3587 (ada_variant_discrim_type): Ditto.
3588 (value_tag_from_contents_and_address): New function.
3589 (type_from_tag): New function.
3590 (struct tag_args): New structure used to communicate with
3591 ada_tag_name_1.
3592 (ada_tag_name_1): New function.
3593 (ada_tag_name): New function.
3594
3595 (ada_scan_number): Update comment.
3596 (find_struct_field): New function.
3597 (ada_search_struct_field): Make static.
3598 (ada_value_struct_elt): New version that returns references when
3599 given pointers or references to structs.
3600 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3601 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3602 interface.
3603 (ada_value_ind): Use new ada_to_fixed_value interface.
3604 (ada_coerce_ref): Ditto.
3605 (field_offset): Remove.
3606
3607 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3608 (ada_find_renaming_symbol): New function.
3609 (ada_prefer_type): Prefer named types over unnamed ones.
3610 (variant_field_index): New function.
3611 (contains_variant_part): Removed: subsumed by variant_field_index.
3612 (ada_template_to_fixed_record_type): New function, mostly from
3613 template_to_fixed_record_type.
3614 (template_to_fixed_record_type):
3615 Do not scan the type fields beyond the last one; prevents a
3616 potential SEGV.
3617 Handle case where variant field is listed BEFORE discriminant it
3618 depends on.
3619 Fix calculation of record length when bit length is
3620 not evenly divisible by char length.
3621 Move code to ada_template_to_fixed_record_type and call it.
3622
3623 (template_to_static_fixed_type): Revise comment.
3624 Modify to work on ordinary record types as well as templates,
3625 so as to handle fields that use ___XVE or ___XVU encodings.
3626 (to_record_with_fixed_variant_part): Fill out comment.
3627 Initialize C++ stuff in right type.
3628 Allow case where DVAL is null.
3629 Handle case where variant field is not last.
3630 Fix typo concerning record length.
3631 (to_fixed_record_type): Decomment disabled code.
3632 (to_fixed_record_type): Use variant_field_index instead of
3633 contains_variant_part.
3634 (to_fixed_variant_branch_type): Ditto.
3635 (to_fixed_array_type): Decomment disabled code.
3636 (ada_to_fixed_type): Convert tagged types to the specific type.
3637 Deactivate the size-check for array types in order to avoid
3638 some false size alarms.
3639 (to_static_fixed_type): Decomment disabled code.
3640 Modify to call template_to_static_fixed_type
3641 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3642 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3643 Remove valaddr argument, as it is never really used.
3644 (ada_to_fixed_value): Change interface to act on single struct value*
3645 operand.
3646 (adjust_pc_past_prologue): New function.
3647 (ada_attribute_name): Modify to take enum exp_opcode argument.
3648
3649 (ada_enum_name): Recognize new homonym-distinguishing convention.
3650 Adjust local variable's type to remove compiler warning.
3651 Fix a small problem in the part that unqualifies the enumeration name.
3652 (ada_value_binop): New function.
3653 (ada_value_equal): New function.
3654
3655 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3656 Don't give error message when not doing normal evaluation
3657 and a tagged type doesn't seem to contain a structure member.
3658 Give error message for packed arrays.
3659 For indexing arrays, handle pointers to packed arrays correctly.
3660 Handle case of 'first and 'last attributes of bare integral type
3661 without encoded subtype info.
3662 Remove some unnecessary casts.
3663 Fix uninitialized value of type in computing 'first, 'last, or 'length
3664 of array object.
3665 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3666 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3667 calls.
3668 Attributes are now exp_opcode values.
3669 Correct treatment of 'modulus.
3670 Better error message for taking 'length of wrong kind of type;
3671 improve comment.
3672 Change EVAL_NORMAL to noside for consistency.
3673 Use ada_value_binop for DIV, MOD, REM.
3674 Make special case out of array of length 0, since an argument
3675 of 0 upsets some platforms' malloc.
3676 Use OP_STRING instead of OP_ARRAY.
3677 For slice, add check that we have an array type before extracting
3678 a slice out of it. Avoids a SEGV.
3679 When evaluating an array slice, if the array type is a reference to
3680 an aligner type, then replace the aligner type by the actual type.
3681 Decomment disabled code.
3682 Remove some dead code.
3683 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3684 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3685 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3686 and UNOP_MBR to UNOP_IN_RANGE.
3687 If an array type has a parallel ___XVE type, then use it.
3688 Turn arrays into pointers for lvalue arrays.
3689 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3690 bounds error and handle 0-length slices.
3691 Use lim_warning.
3692 When selecting fields, apply ada_to_fixed_value (because the fields
3693 might have ___XVU or ___XVE encodings even if not dynamic.)
3694 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3695 (ada_is_system_address_type): New function.
3696
3697 (get_var_value): Use new interface to ada_lookup_symbol_list.
3698 (get_int_var_value): New interface.
3699 (to_fixed_range_type): Allow unknown bound, with warning.
3700 (ada_is_modular_type): Decomment disabled code.
3701 (ADA_OPERATORS): New definition.
3702 (ada_operator_length): New function.
3703 (ada_expr_op_name): New function.
3704 (ada_forward_operator_length): New function.
3705 (ada_dump_subexp_body): New function.
3706 (ada_print_subexp): New function.
3707 (ada_exp_descriptor): New constant.
3708 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3709 (ada_language_defn): Add ada_exp_descriptor entry.
3710 Change ada_parse => parse.
3711 Add post-parser entry.
3712 Use ada-specific non-local symbol lookup.
3713 Don't use C-style arrays.
3714 String lower-bound is 1.
3715 Decomment disabled code.
3716 (parse): New function.
3717 New fields ada_translate_error_message, ada_lookup_symbol,
3718 ada_lookup_minimal_symbol.
3719
3720 * ada-lang.h: Update copyright dates.
3721 Replace the mangle/demangle terminology throughout by the
3722 more appropriate encode/decode one.
3723 Include breakpoint.h.
3724 Forward declare struct partial_symbol, struct block.
3725 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3726 (EXTRACT_ADDRESS): Remove.
3727 (EXTRACT_INT): Remove.
3728 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3729 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3730 (MAX_RENAMING_CHAIN_LENGTH): Define.
3731 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3732
3733 (enum task_states): Remove.
3734 ada_task_states: Remove.
3735 (fat_string): Remove.
3736 (struct entry_call): Remove.
3737 (struct task_fields): Remove.
3738 (struct task_entry): Remove.
3739
3740 (struct ada_symbol_info): Define.
3741 (enum ada_attribute): Remove.
3742 (enum ada_operator): Define.
3743
3744 (ada_get_field_index): Declare.
3745 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3746 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3747 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3748 (ada_lookup_symbol_list): New interface.
3749 (ada_decode_symbol): Declare.
3750 (ada_decode): Declare.
3751 (ada_lookup_symbol): New interface.
3752 (ada_update_initial_language): Declare.
3753 (ada_lookup_simple_minsym): Declare.
3754 (user_select_syms): New interface.
3755 (ada_sals_for_line): Declare.
3756 (ada_is_tagged_type): New interface.
3757 (ada_tag_name): Declare.
3758 (ada_lookup_struct_elt_type): Remove declaration.
3759 (ada_search_struct_field): Remove declaration.
3760 (ada_attribute_name): New interface.
3761 (ada_is_system_address_type): Declare.
3762 (ada_to_fixed_value): Remove declaration.
3763 (ada_template_to_fixed_record_type_1): Declare.
3764 (get_int_var_value): New interface.
3765 (ada_find_any_symbol): Declare.
3766 (ada_find_renaming_symbol): Declare.
3767 (ada_mangle): Rename to ada_encode.
3768 (ada_simple_renamed_entity): Remove const.
3769 (ada_main_name): Declare.
3770 (get_current_task): Rename to ada_get_current_task.
3771 (get_entry_number): Remove declaration.
3772 (ada_report_exception_break): Remove declaration.
3773 (ada_print_exception_breakpoint_nontask): Declare.
3774 (ada_print_exception_breakpoint_task): Declare.
3775 (ada_find_printable_frame): Declare.
3776
3777 * ada-lex.l: Update copyright notices.
3778 Use xmalloc and xfree instead of malloc and free.
3779 Use new interface to name_lookup.
3780 Use new interface to
3781 ada_mangle=>ada_encode.
3782 Redo handling of '$...' variable to parallel current treatment
3783 in c-exp.y.
3784 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3785 digit_to_int, strtoulst, processInt, processReal, processId,
3786 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3787 yywrap): Protoize.
3788
3789 (processInt): Use cast to remove harmless warning.
3790 (processReal): Modify to get rid of compiler warning on scan formats.
3791
3792 (processId): Replace xmalloc with obstack_alloc for name and remove
3793 call to ada_name_string_cleanup.
3794 Remove obsolete disabled code.
3795 (name_lookup): Ditto.
3796 New interface.
3797 Use obsavestring on temp_parse_space instead of savestring
3798 on name, and remove call to ada_name_string_cleanup.
3799 Free string returned from ada_simple_renamed_entity.
3800 Use new interface to ada_lookup_symbol_list.
3801 Decomment disabled code.
3802 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3803 not types.
3804 When a type name lookup succeeds as a result of
3805 lookup_primitive_typename, check for regular type entry that has not
3806 yet been read in.
3807 Limit length of chain of renamed symbols we are willing to follow.
3808 Do not break names beginning with "standard__" into segments.
3809 (block_lookup): Use new interface to ada_lookup_symbol_list.
3810
3811 * ada-typeprint.c: Update copyright notice.
3812 (demangled_type_name): Rename to decoded_type_name.
3813 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3814 (print_range_bound): Correct handling of negative
3815 bounds that make the index type looked unsigned under STABS.
3816 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3817 (print_range_type_named): Use the builtin int type if no type
3818 corresponding to the given type name could be found.
3819 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3820 Add some bullet-proofing.
3821 (print_variant_clauses): Allow for variant branches with ___XVU
3822 encodings that are not dynamic fields.
3823 Use new interface to ada_is_tagged_type.
3824 (print_record_type): Allow for fields with ___XVE encodings that
3825 are not dynamic fields.
3826 Use new interface to ada_is_tagged_type.
3827 (ada_print_type): ada_is_array_descriptor =>
3828 ada_is_array_descriptor_type.
3829
3830 * ada-valprint.c: Update copyright notice.
3831 Include gdb_string.h
3832 Include infcall.h
3833 (ui_memcpy): New function.
3834 (ada_print_floating): New function.
3835 (ada_print_str): Order arguments correctly.
3836 Correct handling of empty arrays and arrays of 0-length items.
3837 ada_is_array_descriptor => ada_is_array_descriptor_type
3838 Print values of type System.Address in hexadecimal format.
3839 Use ada_print_floating to print floating-point numbers in Ada format.
3840 Print class tag values with type names.
3841 No longer print the address of reference values. Avoids
3842 a potential confusion.
3843 (ada_value_print): Stop printing the object type for reference
3844 values, but preserve that behavior for access types. Avoids
3845 a potential confusion.
3846 Simplify one conditional expression, as the first part is now
3847 necessarily true.
3848 ada_is_array_descriptor => ada_is_array_descriptor_type
3849 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3850
f65f91b5
JB
38512004-06-01 Jim Blandy <jimb@redhat.com>
3852
3853 * ppc-tdep.h: Delete unused 'regoff' member.
3854 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3855
d4687fa0
MC
38562004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3857
3858 Fix PR symtab/1661.
3859 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3860 (hpread_read_struct_type): Likewise.
3861
de169ec9
AC
38622004-06-01 Andrew Cagney <cagney@gnu.org>
3863
c6902d46
AC
3864 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3865 instead of xasprintf.
3866 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3867 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3868 (mi_cmd_data_list_register_names)
3869 (mi_cmd_data_list_changed_registers)
3870 (mi_cmd_data_list_register_values)
3871 (get_register, mi_cmd_data_write_register_values)
3872 (mi_cmd_data_write_register_values)
3873 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3874 (mi_cmd_target_download, mi_cmd_target_select)
3875 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3876 (mi_execute_cli_command, mi_execute_async_cli_command)
3877 (mi_execute_async_cli_command): Ditto.
3878 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3879 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3880
6085fc2d
AC
3881 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3882 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3883 error_last_message instead of mi_error_last_message.
3884 * mi/mi-main.c (mi_error_last_message): Delete function.
3885
de169ec9
AC
3886 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3887 "invalid number of columns" error. Delete redundant "out of
3888 memory" check.
3889
1fc7d519
MK
38902004-05-31 Mark Kettenis <kettenis@gnu.org>
3891
6cfb2041
MK
3892 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3893 (gregset_t, fpregset_t): Remove typedefs.
3894 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3895 (REG_OFFSET): Rename argument.
3896 (i386bsd_r_reg_offset): Rename from reg_offset.
3897 (REG_ADDR): Remove macro.
3898 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3899 functions.
3900 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3901 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3902 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3903 instead of supply_gregset.
3904 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3905 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3906 instead of fill_gregset.
3907 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3908
1fc7d519
MK
3909 * i386bsd-nat.c: Don't include "gregset.h".
3910 (supply_gregset, fill_gregset): Make static.
3911 (supply_fpregset, fill_fpregset): Remove.
3912 * Makefile.in (i386bsd-nat.o): Update dependencies.
3913
2c34abbe
MK
39142004-05-30 Mark Kettenis <kettenis@gnu.org>
3915
448724fb
MK
3916 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3917 "gdb_assert.h". Con't include "gregset.h".
3918 (fbsd_make_corefile_notes): Use regset-based core file support
3919 instead off fill_gregset and fill_fpregset.
3920 * Makefile.in (fbsd-proc.o): Update dependencies.
3921
5ca8ca7c
MK
3922 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3923 instructions.
3924 (m88k_frame_prev_register): Simplify code a bit.
3925
593adc23
MK
3926 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3927 (amd64_collect_fpregset): New function.
3928 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3929
8d1b517b
MK
3930 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3931
7fdafb5a
MK
3932 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3933 (i386_collect_gregset): New function.
3934 (i386_supply_fpregset): Adjust comment.
3935 (i386_collect_fpregset): New function.
3936 (i386_regset_from_core_section): Use i386_collect_gregset and
3937 i386_collect_fpregset.
3938
8693c419
MK
3939 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3940 handle VALUEP being null.
3941
2c34abbe
MK
3942 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3943
45d134d8
MK
39442004-05-29 Mark Kettenis <kettenis@gnu.org>
3945
1698f4e7
MK
3946 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3947
45d134d8
MK
3948 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3949 assembler in OpenBSD 3.5-current.
3950 (amd64obsd_sigcontext_addr): Likewise.
3951
691d145a
JB
39522004-05-28 Jim Blandy <jimb@redhat.com>
3953
3954 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3955 register set, so our regcache isn't declared "legacy" and our E500
3956 pseudoregister read and write functions aren't ignored.
3957 (rs6000_register_byte, rs6000_register_raw_size,
3958 rs6000_register_virtual_type, rs6000_register_convertible,
3959 rs6000_register_convert_to_virtual,
3960 rs6000_register_convert_to_raw): Deleted.
3961 (rs6000_register_type, rs6000_convert_register_p,
3962 rs6000_register_to_value, rs6000_value_to_register): New
3963 functions.
3964 (rs6000_gdbarch_init): Don't register
3965 gdbarch_deprecated_register_size,
3966 gdbarch_deprecated_register_bytes,
3967 gdbarch_deprecated_register_byte,
3968 gdbarch_deprecated_register_raw_size,
3969 gdbarch_deprecated_register_virtual_type,
3970 gdbarch_deprecated_register_convertible,
3971 gdbarch_deprecated_register_convert_to_virtual, or
3972 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3973 register gdbarch_register_type, gdbarch_convert_register_p,
3974 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3975
18ed0c4e
JB
39762004-05-26 Jim Blandy <jimb@redhat.com>
3977
3978 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3979 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3980 functions, updated to match the register numberings used in GCC.
3981 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3982 rs6000_dwarf2_reg_to_regnum as register number conversions
3983 functions for STABS and Dwarf2.
3984
779af9e3
RC
39852004-05-26 Randolph Chung <tausq@debian.org>
3986
3987 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3988 in header file.
3989
c23968a2
JB
39902004-05-25 Joel Brobecker <brobecker@gnat.com>
3991
3992 * NEWS: Document new "start" command.
3993
3a7d1c27
RC
39942004-05-25 Randolph Chung <tausq@debian.org>
3995
3996 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3997 hppa-linux.
3998
43613416
RC
39992004-05-25 Randolph Chung <tausq@debian.org>
4000
4001 * hppa-hpux-tdep.c (offsetof): Define.
4002 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4003 (hppa32_hpux_frame_base_before_sigtramp)
4004 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4005 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4006 (hppa64_hpux_frame_base_before_sigtramp)
4007 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4008 functions.
4009 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4010 (hppa_hpux_sigtramp_frame_unwind_cache)
4011 (hppa_hpux_sigtramp_frame_this_id)
4012 (hppa_hpux_sigtramp_frame_prev_register)
4013 (hppa_hpux_sigtramp_frame_unwind)
4014 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4015 (hppa_hpux_init_abi): Register sigtramp unwinder.
4016 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4017
6d1be3f1
RC
40182004-05-25 Randolph Chung <tausq@debian.org>
4019
4020 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4021 and multiple stack unwinds.
4022 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4023
97c34f65
AC
40242004-05-25 Andrew Cagney <cagney@gnu.org>
4025
4026 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4027 * symfile-mem.h: Delete file.
4028 * symfile-mem.c: Do not include "symfile-mem.h".
4029 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4030 "struct bfd_section". When an error do not bother returning NULL.
4031 (add_symbol_file_from_memory_command): Use "struct bfd" and
4032 "struct bfd_section".
4033 * Makefile.in (symfile_mem_h): Delete.
4034 (symfile-mem.o): Update dependencies.
4035
e23cbd82
NR
40362004-05-25 Nick Roberts <nickrob@gnu.org>
4037
4038 * gdb-mi.el: New file.
4039
20d2ca3e
AC
40402004-05-25 Andrew Cagney <cagney@gnu.org>
4041
4042 * inftarg.c: Include "observer.h".
4043 (child_attach, child_create_inferior): Notify inferior_created.
4044 * corelow.c: Include "observer.h".
4045 (core_open): Notify inferior_created.
4046 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4047
c27cda74
AC
40482004-05-25 Andrew Cagney <cagney@gnu.org>
4049
4050 * target.h (struct target_ops): Add from_tty to
4051 to_create_inferior.
4052 (target_create_inferior, find_default_create_inferior): Update.
4053 * infcmd.c (run_command): Update.
4054 * wince.c (child_create_inferior): Update.
4055 * win32-nat.c (child_create_inferior): Update.
4056 * uw-thread.c (uw_thread_create_inferior): Update.
4057 * thread-db.c (thread_db_create_inferior): Update.
4058 * target.c (debug_to_create_inferior)
4059 (find_default_create_inferior): Update.
4060 (maybe_kill_then_create_inferior): Update.
4061 * sol-thread.c (sol_thread_create_inferior): Update.
4062 * remote.c (extended_remote_async_create_inferior)
4063 (extended_remote_create_inferior): Update.
4064 * remote-vx.c (vx_create_inferior): Update.
4065 * remote-st.c (st2000_create_inferior): Update.
4066 * remote-sim.c (gdbsim_create_inferior): Update.
4067 * remote-sds.c (sds_create_inferior): Update.
4068 * remote-rdp.c (remote_rdp_create_inferior): Update.
4069 * remote-rdi.c (arm_rdi_create_inferior): Update.
4070 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4071 * remote-e7000.c (e7000_create_inferior): Update.
4072 * procfs.c (procfs_create_inferior): Update.
4073 * ocd.c (ocd_create_inferior): Update.
4074 * ocd.h (ocd_create_inferior): Update.
4075 * nto-procfs.c (procfs_create_inferior): Update.
4076 * monitor.c (monitor_create_inferior): Update.
4077 * lin-lwp.c (lin_lwp_create_inferior): Update.
4078 * inftarg.c (child_create_inferior): Update.
4079 * hpux-thread.c (hpux_thread_create_inferior): Update.
4080 * gnu-nat.c (gnu_create_inferior): Update.
4081
1db2a798
AC
40822004-05-25 Andrew Cagney <cagney@gnu.com>
4083
4084 * MAINTAINERS: Update e-mail address.
4085
007d08bb
RC
40862004-05-24 Randolph Chung <tausq@debian.org>
4087
4088 * thread.c (info_threads_command, thread_apply_all_command)
4089 (thread_apply_command, thread_command, do_captured_thread_select):
4090 Remove HPUXHPPA-specific code.
4091
69e7b95e
RC
40922004-05-24 Randolph Chung <tausq@debian.org>
4093
4094 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4095 unused symbols.
4096 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4097 references.
4098
a4d5f2e0
JB
40992004-05-24 Joel Brobecker <brobecker@gnat.com>
4100
4101 * infcmd.c (kill_if_already_running): New function, extracted
4102 from run_command().
4103 (run_command): Replace extracted code by call to
4104 kill_if_already_running().
4105 (start_command): New function.
4106 (_initialize_infcmd): Add "start" command.
4107
bf2ca189
MK
41082004-05-24 Mark Kettenis <kettenis@gnu.org>
4109
4110 Add OpenBSD/m88k support.
4111 * NEWS (New native configurations): Mention OpenBSD/m88k.
4112 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4113 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4114 * Makefile.in (m88k_tdep_h): New variable.
4115 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4116 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4117 * configure.host: Add m88*-*-openbsd*.
4118 * configure.tgt: Add m88*-*-openbsd*.
4119
80fadb11
JB
41202004-05-24 Jim Blandy <jimb@redhat.com>
4121
4122 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4123 to approve changes.
4124
19e2d14b
KB
41252004-05-24 Kevin Buettner <kevinb@redhat.com>
4126
4127 * symtab.c (fixup_section): Search section table when lookup by
4128 name fails.
4129
1b07b470
RC
41302004-05-24 Randolph Chung <tausq@debian.org>
4131
4132 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4133 be "small_struct".
4134
368702b1
MK
41352004-05-24 Mark Kettenis <kettenis@gnu.org>
4136
5df97fde
MK
4137 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4138 register number in regcache_raw_collect call.
4139 (m68kbsd_collect_fpregset): Likewise.
4140 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4141
368702b1
MK
4142 * regset.h (struct regset): Add back `regset' member.
4143
a770d4ec
MK
41442004-05-23 Mark Kettenis <kettenis@gnu.org>
4145
70f9f479
MK
4146 * configure.in: Check for td_pcb in `struct thread'.
4147 * configure, config.in: Regenerated.
4148
2e16d79e
MK
4149 * dpx2-nat.c: Remove file.
4150 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4151 (dpx2-nat.o): Remove dependencies.
4152
492cf391
MK
4153 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4154 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4155 (amd64obsd_supply_pcb): New function.
4156 (_initialize_amd64obsd_nat): Enable libkvm interface.
4157 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4158 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4159 (LOADLIBES): New variable.
4160
a770d4ec
MK
4161 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4162 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4163 (sparc32nbsd_supply_pcb): New function.
4164 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4165 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4166 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4167 (LOADLIBES): New variable.
4168
9ea75c57
MK
41692004-05-22 Mark Kettenis <kettenis@gnu.org>
4170
2e0c3539
MK
4171 * bsd-kvm.c, bsd-kvm.h: New files.
4172 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4173 "bsd-kvm.h".
4174 (i386fbsd_supply_pcb): New function.
4175 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4176 (i386fbsd-nat.o): Update dependencies.
4177 (bsd_kvm_h): New variable.
4178 (bsd-kvm.o): New dependency.
4179 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4180 (LOADLIBES): New variable.
4181
9ea75c57
MK
4182 * regset.c: Tweak comment.
4183 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4184 macro.
4185 * regset.h: Update copyright year.
4186 (struct regset): Remove `descr' member, add `gdbarch' member.
4187 (regset_alloc): Adjust prototype and comment.
4188 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4189 (i386_supply_fpregset): Likewise.
4190 (i386_regset_from_core_section): Update call to regset_alloc.
4191 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4192 REGSET->arch.
4193 (i386obsd_aout_regset_from_core_section): Update call to
4194 regset_alloc.
4195 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4196 REGSET->arch.
4197 (i386nbsd_aout_regset_from_core_section): Update call to
4198 regset_alloc.
4199 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4200 REGSET->arch.
4201 (amd64_regset_from_core_section): Update call to regset_alloc.
4202 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4203 REGSET->arch.
4204 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4205 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4206 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4207 (sparc32nbsd_init_abi): Update call to regset_alloc.
4208 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4209 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4210 (sparc64obsd_init_abi): Update call to regset_alloc.
4211 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4212 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4213 (sparc64nbsd_init_abi): Update call to regset_alloc.
4214 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4215 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4216 (sparc64fbsd_init_abi): Update call to regset_alloc.
4217
867e2dc5
JB
42182004-05-22 Jim Blandy <jimb@redhat.com>
4219
4220 * ppc-tdep.h (spe_register_p): New declaration.
4221 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4222 ppc_spefscr_regnum.
4223 * rs6000-tdep.c (spe_register_p): New function.
4224 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4225 spefscr.
4226 (rs6000_gdbarch_init): Initialize the new members of the tdep
4227 structure.
4228
617a4cba
JB
42292004-05-21 Jim Blandy <jimb@redhat.com>
4230
0397dee1
JB
4231 * ppc-linux-nat.c (fetch_register): Move code back to be next
4232 to the comment that describes it. (Moved code, instead of
4233 comment, for symmetry with store_register.)
4234
617a4cba
JB
4235 Allocate regset structures in the gdbarch's obstack, not using
4236 xmalloc.
4237 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4238 Add 'arch' argument. Allocate the regset on arch's obstack, not
4239 using xmalloc.
4240 * regset.h (regset_alloc): Update declaration.
4241 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4242 gdbarch argument.
4243 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4244 * i386-tdep.c (i386_regset_from_core_section): Same.
4245 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4246 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4247 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4248 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4249 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4250 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4251
9aa3914d
JB
42522004-05-21 Joel Brobecker <brobecker@gnat.com>
4253
4254 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4255
99c87dab
JB
42562004-05-21 Jim Blandy <jimb@redhat.com>
4257
4258 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4259 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4260
c2b6b4aa
JB
42612004-05-20 Jim Blandy <jimb@redhat.com>
4262
4263 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4264
144529d0
MK
42652004-05-20 Mark Kettenis <kettenis@gnu.org>
4266
4267 * regset.h: Make prototype const-correct.
4268 * regset.c (regset_xmalloc): Make const-correct.
4269
4725b721
PH
42702004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4271
4272 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4273 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4274 (symbol_search_name): Declare.
4275
4276 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4277 (iter_name_next_hashed): Ditto.
4278 (iter_name_next_linear): Ditto.
4279 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4280
4281 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4282 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4283 (symbol_search_name): New function.
4284
4285 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4286
4287 * minsyms.c (build_minimal_symbol_hash_tables): Change
4288 test for adding to demangled hash table to check for difference
4289 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4290
be07a590
JB
42912004-05-19 Jim Blandy <jimb@redhat.com>
4292
4293 Use a constructor function to create regset structures.
4294 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4295 (struct regset): Use supply_regset_ftype. Add new
4296 'collect_regset' member.
4297 (regset_xmalloc): New declaration.
4298 * regset.c: New file.
4299 * am64-tdep.c (amd64_regset_from_core_section): Use
4300 regset_xmalloc to construct regset structures.
4301 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4302 * i386-tdep.c (i386_regset_from_core_section): Same.
4303 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4304 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4305 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4306 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4307 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4308 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4309 * Makefile.in (COMMON_OBS): Add regset.o.
4310 (regset.o): New rule.
4311
604368f5
JB
43122004-05-19 Joel Brobecker <brobecker@gnat.com>
4313
4314 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4315 and pthread_cond_wait.c.
4316
82d69f8b
JB
43172004-05-18 Jim Blandy <jimb@redhat.com>
4318
4319 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4320 before the mach-specific switch, and then let the individual cases
4321 override the defaults, rather than leaving them uninitialized
4322 until the switch and then setting them in each case.
4323
5859efe5
RC
43242004-05-18 Randolph Chung <tausq@debian.org>
4325
4326 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4327 millicode functions.
4328
9ca80cf8
RC
43292004-05-18 Randolph Chung <tausq@debian.org>
4330
4331 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4332 references to dld_flags_buffer consistent.
4333
ed70ba00
RC
43342004-05-18 Randolph Chung <tausq@debian.org>
4335
4336 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4337 it for unwinding the stack.
4338
63100632
RC
43392004-05-18 Randolph Chung <tausq@debian.org>
4340
4341 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4342 Undefine these so we can overide them using gdbarch.
4343
090ccbb7
RC
43442004-05-18 Randolph Chung <tausq@debian.org>
4345
4346 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4347 handling for 64-bit HPUX (elf).
4348
594706e6
DJ
43492004-05-18 Daniel Jacobowitz <dan@debian.org>
4350
4351 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4352 constants.
4353 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4354 * ia64-tdep.c (examine_prologue): Likewise.
4355 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4356 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4357
e5483145
MK
43582004-05-18 Mark Kettenis <kettenis@gnu.org>
4359
4360 * vax-tdep.c (vax_return_value): Implement
4361 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4362
caed1a45
MK
43632004-05-17 Mark Kettenis <kettenis@gnu.org>
4364
4365 * vax-tdep.c (vax_return_value): Fix typo.
4366
3c0b7db2
AC
43672004-05-17 Andrew Cagney <cagney@redhat.com>
4368
5aae53e5
AC
4369 * MAINTAINERS: Mark Salter was also responsible for
4370 testsuite/config/
4371
3c0b7db2
AC
4372 * NEWS: Mention signal fixes.
4373
22b0923d
RC
43742004-05-17 Randolph Chung <tausq@debian.org>
4375
4376 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4377 check to see if we are unwinding an export stub. Export stubs clobber
4378 the %rp in the call path and stores the original rp in a stack slot.
4379
22f2b2f3
JB
43802004-05-17 Jim Blandy <jimb@redhat.com>
4381
4382 * MAINTAINERS: Update address for J.T. Conklin.
4383
cea96d64
RC
43842004-05-17 Randolph Chung <tausq@debian.org>
4385
4386 * hppa-tdep.c: Remove superfluous #include's.
4387 * Makefile.in (hppa-tdep.o): Update dependencies.
4388
f08f6a4a
RC
43892004-05-17 Randolph Chung <tausq@debian.org>
4390
4391 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4392 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4393 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4394 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4395 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4396 Remove static function declarations.
4397
51da707a
MK
43982004-05-17 Mark Kettenis <kettenis@gnu.org>
4399
caed1a45
MK
4400 * alphabsd-nat.c: Update copyright year.
4401 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4402
c0c2b0db
MK
4403 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4404 and M68K_A2_REGNUM.
4405
51da707a
MK
4406 * m68k-tdep.c (m68k_svr4_return_value): Implement
4407 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4408
8d027a04
MK
44092004-05-16 Mark Kettenis <kettenis@gnu.org>
4410
4411 * sol-thread.c Update copyright year. Fix various coding
4412 standards violations. Tweak a few comments.
4413 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4414 Delete prototypes.
4415
0d99fdb9
RC
44162004-05-15 Randolph Chung <tausq@debian.org>
4417
4418 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4419 as pointer instead of array reference since HPUX compiler does
4420 not accept unsized array arguments.
4421 * somsolib.c (dld_flags_buffer): Use constant array size.
4422
f7e3843a
MK
44232004-05-15 Mark Kettenis <kettenis@gnu.org>
4424
0fe85704
MK
4425 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4426 offset with decimal offset.
4427 (amd64obsd_sigcontext_addr): Return correct address for entire
4428 signal trampoline.
4429
a54f9a00
MK
4430 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4431 instead of get_frame_base.
4432
feae6502
MK
4433 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4434 (fill_gregset): Use regcache_raw_collect.
4435
0382d099
MK
4436 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4437 ppcobsd-tdep.c.
4438
f7e3843a
MK
4439 * config/sparc/tm-nbsd64.h: Remove file.
4440 * config/tm-sunos.h: Remove file.
4441
773df3e5
JB
44422004-05-15 Joel Brobecker <brobecker@gnat.com>
4443
4444 * rs6000-tdep.c (store_param_on_stack_p): New function,
4445 an improved version of some code extracted from skip_prologue().
4446 (skip_prologue): Use store_param_on_stack_p() to detect
4447 instructions saving a parameter on the stack. Detect when r0
4448 is used to save a parameter.
4449 Do not mark "li rx, SIMM" instructions as part of the prologue,
4450 unless the following instruction is also part of the prologue.
4451
95918acb
AC
44522004-05-14 Andrew Cagney <cagney@redhat.com>
4453
06f32659
AC
4454 * infrun.c (handle_inferior_event): Simplify
4455 STEP_OVER_UNDEBUGGABLE.
4456
95918acb
AC
4457 * infrun.c (handle_step_into_function): Delete function.
4458 (handle_inferior_event): Inline calls to
4459 handle_step_into_function.
4460
40711ff1 44612004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4462
4463 * rs6000-nat.c: Fix a comment.
4464
02f60eae
JB
44652004-05-12 David Anderson <davea@sgi.com>
4466
4467 Committed by Jim Blandy <jimb@redhat.com>:
4468 * regcache.c (struct regcache_descr): fix comment spelling.
4469
552e377b
JB
44702004-05-13 J. Brobecker <brobecker@gnat.com>
4471
4472 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4473 Fixes a link link failure.
4474
349766b2
JB
44752004-05-13 J. Brobecker <brobecker@gnat.com>
4476
4477 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4478 error that was causing the build to fail.
4479
0d4d5484
JB
44802004-05-13 J. Brobecker <brobecker@gnat.com>
4481
4482 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4483 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4484
0b30808c
AC
44852004-05-13 Andrew Cagney <cagney@redhat.com>
4486
4487 * infrun.c (handle_inferior_event): Check for
4488 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4489 calls. Update comments.
4490
cdf2c5f5
JB
44912004-05-13 Jim Blandy <jimb@redhat.com>
4492
063715bf
JB
4493 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4494 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4495 (store_regs_user_thread, store_regs_kernel_thread): Use
4496 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4497 * ppc-linux-nat.c (fill_gregset): Same.
4498 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4499 (ppc_linux_sigtramp_cache): Same.
4500 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4501 (ppcnbsd_sigtramp_cache_init): Same.
4502 * rs6000-nat.c (fetch_core_registers): Same.
4503 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4504 (rs6000_frame_cache): Same.
4505
cdf2c5f5
JB
4506 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4507 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4508 of assuming that the gprs are numbered starting with zero.
4509 * ppc-linux-nat.c (fill_gregset): Same.
4510 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4511 * ppcnbsd-nat.c (getregs_supplies): Same.
4512 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4513 * rs6000-nat.c (fetch_core_registers): Same.
4514 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4515
450bd37b
MS
45162004-05-07 Michael Snyder <msnyder@redhat.com>
4517
4518 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4519 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4520
4a72a2a6
AC
45212004-05-13 Andrew Cagney <cagney@redhat.com>
4522
4523 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4524
8edfa926
BM
45252004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4526
4527 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4528 base_address for shared libraries.
4529
723e0e3d
BM
45302004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4531
4532 * MAINTAINERS (write after approval): Add myself.
4533
00d4360e
UW
45342004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4535
4536 * breakpoint.c (bpstat_stop_status): Add new argument
4537 STOPPED_BY_WATCHPOINT. Use it instead of testing
4538 target_stopped_data_address agaist 0 to check whether
4539 or not we stopped due to a hardware watchpoint.
4540 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4541 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4542 with new argument.
4543
ec76baa5
JB
45442004-05-12 Jim Blandy <jimb@redhat.com>
4545
4546 * configure.in: When checking whether we should use the -bbigtoc
4547 option, don't forget to restore the original value of LDFLAGS.
4548 * configure: Regenerated.
4549
f2c9ca08
AC
45502004-05-12 Andrew Cagney <cagney@redhat.com>
4551
4552 * thread.c (load_infrun_state): Delete step_sp.
4553 * infrun.c (context_switch): Ditto.
4554 * inferior.h (step_sp): Ditto.
4555 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4556 * gdbthread.h (struct thread_info, save_infrun_state)
4557 (restore_infrun_state): Ditto.
4558
090ddb2a
UW
45592004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4560
4561 * MAINTAINERS (write after approval): Add myself.
4562
8aad930b
AC
45632004-05-12 Andrew Cagney <cagney@redhat.com>
4564
4565 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4566 eliminate reference to step_sp.
4567 (struct execution_control_state, init_execution_control_state)
4568 (handle_inferior_event, keep_going): Delete update_step_sp and
4569 step_sp.
4570 * infcmd.c (step_sp): Note that variable is unused.
4571
922d5ae0
AC
45722004-05-11 Andrew Cagney <cagney@redhat.com>
4573
4574 * infrun.c (step_over_function): Delete function.
4575 (handle_step_into_function): Use insert_step_resume_breakpoint.
4576 (insert_step_resume_breakpoint): Fix assertion.
4577
017c5ca5
NR
45782004-05-11 Nick Roberts <nickrob@gnu.org>
4579
4580 * utils.c (defaulted_query): Just use the normal query input type
4581 when printing the annotations.
4582
42edda50
AC
45832004-05-11 Andrew Cagney <cagney@redhat.com>
4584
4585 * infrun.c (handle_inferior_event): Simplify code handling
4586 step-into or return-from a signal trampoline.
4587
d28b44a7
AC
45882004-05-11 Andrew Cagney <cagney@redhat.com>
4589
4590 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4591 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4592
383f0f5b
JB
45932004-05-10 Jim Blandy <jimb@redhat.com>
4594
d0b57c3a
JB
4595 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4596 with a call to internal_error.
4597
383f0f5b
JB
4598 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4599 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4600 processor variant lacks those registers.
4601 (ppc_floating_point_unit_p): Change description to make it clear
4602 that this returns info about the ISA, not the ABI.
4603 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4604 return true or false by checking tdep->ppc_fp0_regnum and
4605 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4606 arch/mach switching done in rs6000_gdbarch_init; it's better to
4607 keep that logic there, and just check the results here.
4608 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4609 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4610 floating-point registers.
4611 (ppc_supply_fpregset, ppc_collect_fpregset)
4612 (rs6000_push_dummy_call, rs6000_extract_return_value)
4613 (rs6000_store_return_value): Assert that we have floating-point
4614 registers.
4615 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4616 (rs6000_frame_cache): Don't note the locations at which
4617 floating-point registers were saved if we have no fprs.
4618 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4619 registers.
4620 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4621 (store_regs_user_thread, store_regs_kernel_thread): Only call
4622 supply_fprs / fill_fprs if we actually have floating-point
4623 registers.
4624 (special_register_p): Check ppc_fpscr_regnum before matching
4625 against it.
4626 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4627 supply / collect fpscr if we don't have it.
4628 * ppc-bdm.c: #include "gdb_assert.h".
4629 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4630 have floating-point registers, since I can't test this code on
4631 FP-free systems to adapt it.
4632 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4633 fpscr and floating point register numbers if they don't exist.
4634 (fetch_register): Assert that we have floating-point registers
4635 before we reach the code that handles them.
4636 (store_register): Same. And use tdep instead of calling
4637 gdbarch_tdep again.
4638 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4639 don't have them.
4640 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4641 fprs and fpscr if we don't have them.
4642 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4643 don't have them.
4644 * ppcnbsd-nat.c: #include "gdb_assert.h".
4645 (getfpregs_supplies): Assert that we have floating-point registers.
4646 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4647 * ppcobsd-tdep.c: #include "gdb_assert.h".
4648 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4649 have floating-point registers.
4650 * rs6000-nat.c (regmap): Don't match against the fpscr and
4651 floating point register numbers if they don't exist.
4652 (fetch_inferior_registers, store_inferior_registers,
4653 fetch_core_registers): Only fetch / store / supply the
4654 floating-point registers and the fpscr if we have them.
4655 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4656 (ppcobsd-tdep.o): Update dependencies.
4657
15960608
AC
46582004-05-10 Andrew Cagney <cagney@redhat.com>
4659
4660 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4661 (context_switch): Do not switch through_sigtramp_breakpoint.
4662 * gdbthread.h (save_infrun_state, load_infrun_state)
4663 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4664 and structure member.
4665 * thread.c (load_infrun_state, save_infrun_state): Update.
4666
5ab5aa0f
MK
46672004-05-10 Mark Kettenis <kettenis@gnu.org>
4668
4669 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4670
da78b0e7
DJ
46712004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4672
4673 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4674 throughout.
4675 * aclocal.m4: Regenerate.
4676
cca0d3b0
NW
46772004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4678
4679 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4680
d303a6c7
AC
46812004-05-10 Andrew Cagney <cagney@redhat.com>
4682
4683 * infrun.c (check_sigtramp2): Delete function.
4684 (handle_inferior_event): When single stepping, and taking a
4685 signal, set a breakpoint at the signal return address. Delete
4686 redundant calls to check_sigtramp2.
4687 (insert_step_resume_breakpoint): New function.
4688 (through_sigtramp_breakpoint, handle_inferior_event)
4689 (follow_exec, wait_for_inferior, fetch_inferior_event)
4690 (currently_stepping, keep_going): Delete most uses of
4691 through_sigtramp_breakpoint, not that it should be deleted.
4692 (delete_breakpoint_current_contents): Delete function.
4693
03f4cc20
RC
46942004-05-10 Randolph Chung <tausq@debian.org>
4695
4696 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4697 target.
4698 * config/pa/tm-linux.h: New file.
4699
37fc812e
DJ
47002004-05-10 Daniel Jacobowitz <drow@mvista.com>
4701
4702 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4703 of prefixes. Don't print the prefix twice in the CLI.
4704
26c0b942
JB
47052004-05-10 Jim Blandy <jimb@redhat.com>
4706
2e56e9c1
JB
4707 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4708 collect all the gprs.
4709
26c0b942
JB
4710 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4711 loop collecting gprs.
4712
dc497459
AC
47132004-05-09 Andrew Cagney <cagney@redhat.com>
4714
4715 * remote-vx.c (net_step): Delete step-range code.
4716 * remote.c (remote_resume, init_all_packet_configs)
4717 (set_remote_protocol_E_packet_cmd)
4718 (show_remote_protocol_E_packet_cmd)
4719 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4720 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4721 (show_remote_protocol_e_packet_cmd): Ditto.
4722
0543f387
MK
47232004-05-09 Mark Kettenis <kettenis@gnu.org>
4724
c481d1ca
MK
4725 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4726
f626a069
MK
4727 * hppa-tdep.h: Update copyright year.
4728 (struct trad_frame_saved_reg): Add opaque declaration.
4729
6fa57a7d
MK
4730 * amd64-tdep.c (amd64_return_value): Implement
4731 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4732
e47577ab
MK
4733 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4734 (m68k_value_to_register): New functions.
4735 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4736 value_to_register.
4737
31db7b6c
MK
4738 * defs.h (enum return_value_convention): Add
4739 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4740 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4741 * infcmd.c (legacy_return_value): New function.
4742 (print_return_value): Rwerite to implement
4743 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4744 * values.c (using_struct_return): Check for inequality to
4745 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4746 RETURN_VALUE_STRUCT_CONVENTION.
4747 * i386-tdep.c (i386_return_value): Implement
4748 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4749
0543f387
MK
4750 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4751 include "symtab.h", "opcode/vax.h" and "inferior.h".
4752 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4753 to read_memory_unsigned_integer.
4754 (vax_gdbarch_init): Reorder.
4755 (_initialize_vax_tdep): Spell out prototype.
4756 * Makefile.in (vax-tdep.o): Update dependencies.
4757
0c93b7b6
AC
47582004-05-08 Andrew Cagney <cagney@redhat.com>
4759
e6b55ae2
AC
4760 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4761 * target.c (target_detach, target_disconnect): Ditto.
4762
1ac839b8
AC
4763 * infcall.c (call_function_by_hand): When no
4764 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4765 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4766 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4767 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4768 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4769
28954179
AC
4770 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4771 * gdbarch.h, gdbarch.c: Re-generate.
4772 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4773 deprecated_fix_call_dummy.
4774 * v850-tdep.c (v850_gdbarch_init): Ditto.
4775 * infcall.c (call_function_by_hand): Do not call
4776 DEPRECATED_FIX_CALL_DUMMY.
4777
434b87dd
AC
4778 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4779 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4780 * gdbarch.h, gdbarch.c: Re-generate.
4781 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4782 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4783 deprecated_sizeof_call_dummy_words.
4784 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4786 * v850-tdep.c (v850_gdbarch_init): Ditto.
4787 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4788 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4789 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4790 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4791 * arch-utils.h (legacy_call_dummy_words)
4792 (legacy_sizeof_call_dummy_words): Delete declarations.
4793 * arch-utils.c (legacy_call_dummy_words)
4794 (legacy_sizeof_call_dummy_words): Delete variables.
4795
58d28df8
AC
4796 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4797 * gdbarch.h, gdbarch.c: Re-generate.
4798 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4799 * infcall.c (call_function_by_hand): Eliminate call to
4800 DEPRECATED_PUSH_DUMMY_FRAME.
4801 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4802 push_dummy_frame.
4803 (ns32k_push_dummy_frame): Delete function.
4804
e4a2df64
AC
4805 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4806 deprecated_call_dummy_breakpoint_offset or
4807 deprecated_call_dummy_start_offset.
4808 * dummy-frame.c, arm-tdep.c: Update comments.
4809 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4810 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4811 * gdbarch.h, gdbarch.c: Re-generate.
4812
d3712828
AC
4813 * infcall.c (legacy_push_dummy_code): Delete function.
4814 (push_dummy_code): Delete call.
4815
7a882905
AC
4816 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4817 * gdbarch.h, gdbarch.c: Re-generate.
4818 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4819 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4820 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4821 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4822
0ec5872b
AC
4823 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4824 (struct frame_info): Delete opaque declaration.
4825 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4826 * frame.c (get_frame_type): Delete call.
4827
0c93b7b6
AC
4828 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4829 pc_in_call_dummy.
4830 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4831 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4832
75536971
MK
48332004-05-08 Mark Kettenis <kettenis@gnu.org>
4834
527ca6bb
MK
4835 * alphanbsd-tdep.c: Include "gdb_string.h".
4836 * armnbsd-tdep.c: Update copyright year.
4837 Include "gdb_string.h".
4838 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4839 dependencies.
4840
d39fdc61
MK
4841 * delta68-nat.c: Remove file.
4842 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4843 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4844 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4845 (delta68-nat.o): Remove dependency.
4846
75536971
MK
4847 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4848 function.
4849 (m68k_gdbarch_init): Don't set
4850 deprecated_frameless_function_invocation.
4851
f4ca1d1f
RC
48522004-05-07 Randolph Chung <tausq@debian.org>
4853
4854 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4855 read_memory_nobpt for code reading when doing frame unwinding.
4856 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4857
2f0e8c7a
RC
48582004-05-07 Randolph Chung <tausq@debian.org>
4859
4860 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4861 instead of sp, handle sigaltstack case.
4862 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4863 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4864 signal handler and not that of the caller.
4865 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4866 hppa_linux_sigtramp_find_sigcontext.
4867
959464ff
RC
48682004-05-07 Randolph Chung <tausq@debian.org>
4869
4870 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4871 hppa-linux-nat.c.
4872 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4873 * hppa-linux-nat.c (fetch_register, store_register): Define.
4874 (fetch_inferior_registers, store_inferior_registers): Define.
4875 (supply_gregset): Add comment and clean up some unneeded code.
4876 (fill_gregset): Add comment and fix so that it saves registers in
4877 the right place in the gregset.
4878 (fill_fpregset): Fix buffer overrun problem.
4879 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4880
0da28f8a
RC
48812004-05-07 Randolph Chung <tausq@debian.org>
4882
4883 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4884 do common handling of the pcoqt register.
4885 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4886 to use helper function.
4887 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4888 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4889 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4890 generic fallback unwinder when all else fails.
4891 (hppa_gdbarch_init): Add fallback sniffer.
4892 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4893 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4894 to use helper function.
4895
b9ec757a
JB
48962004-05-08 Joel Brobecker <brobecker@gnat.com>
4897
4898 * config/djgpp/fnchange.lst: Add translation rules for
4899 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4900
756e95f1
MK
49012004-05-08 Mark Kettenis <kettenis@gnu.org>
4902
4903 * frame.c (get_prev_frame_1): Work around GCC bug.
4904 * frame.h: Add comment about GCC bug.
4905
2b4855ab
AC
49062004-05-07 Andrew Cagney <cagney@redhat.com>
4907
4908 * observer.c: Include "commands.h" and "gdbcmd.h".
4909 (observer_debug, _initialize_observer): Add the
4910 command "set/show debug observer".
4911 * observer.sh: When observer debugging, log notify calls.
4912 * Makefile.in (observer.o): Update dependencies.
4913
ba3e8e46
JM
49142004-05-07 Jason Molenda (jmolenda@apple.com)
4915
4916 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4917
16796152
JB
49182004-05-07 Jim Blandy <jimb@redhat.com>
4919
daf6dc85
JB
4920 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4921 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4922 to recognize gpr regnums, instead of assuming that
4923 tdep->ppc_fp0_regnum marks the end of the general-purpose
4924 registers.
4925
16796152
JB
4926 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4927 the given architecture has floating-point registers.
4928
c69b8bfc
AC
49292004-05-07 Andrew Cagney <cagney@redhat.com>
4930
4931 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4932 macro defined to 1.
4933 * gdbarch.h, gdbarch.c: Re-generate.
4934 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4935 deprecated_use_generic_dummy_frames.
4936
7243600a
BF
49372004-05-07 Brian Ford <ford@vss.fsi.com>
4938
4939 * NEWS: Mention Cygwin DWARF 2 support.
4940
73c1e0a1
AC
49412004-05-07 Andrew Cagney <cagney@redhat.com>
4942
4943 * objfiles.h (struct entry_info): Delete unused fields
4944 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4945 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4946 * mipsread.c (mipscoff_symfile_read): Update.
4947 * mdebugread.c (parse_partial_symbols): Update.
4948 * dwarfread.c (read_file_scope): Update.
4949 * dwarf2read.c (read_file_scope): Update.
4950 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4951 * coffread.c (complete_symtab): Update.
4952
1d3056ac
MK
49532004-05-07 Mark Kettenis <kettenis@gnu.org>
4954
4955 * infcall.c (_initialize_infcall): Fix typo.
4956
15170568
AC
49572004-05-07 Andrew Cagney <cagney@redhat.com>
4958
4959 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4960 * command.h (add_setshow_zinteger_cmd): Declare.
4961
34f75cc1
RC
49622004-05-06 Randolph Chung <tausq@debian.org>
4963
4964 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4965 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4966 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4967 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4968 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4969 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4970 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4971 definitions ...
4972 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4973 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4974 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4975 (hppa64_hpux_frame_find_saved_regs_in_sig)
4976 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4977 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4978 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4979 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4980 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4981 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4982 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4983 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4984 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4985 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4986 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4987 (hppa32_register_type, hppa_cannot_store_register)
4988 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4989 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4990 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4991 * pa64solib.c (pa64_solib_have_load_event)
4992 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4993 (pa64_solib_unloaded_library_pathname): Likewise.
4994 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4995 (som_solib_library_pathname): Likewise.
4996
0a5e7efe
JI
49972004-05-05 Jim Ingham <jingham@apple.com>
4998
4999 * breakpoint.c (create_breakpoints): Copy the ignore count and
5000 thread id over from the pended breakpoint to the actual
5001 breakpoint.
5002
10a4b113
AC
50032004-05-05 Andrew Cagney <cagney@redhat.com>
5004
5005 * gdbarch.sh (PARM_BOUNDARY): Delete.
5006 gdbarch.h, gdbarch.c: Re-generate.
5007 * valops.c (PARM_BOUNDARY): Delete macro.
5008 (value_push): Delete PARM_BOUNDARY code.
5009 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5010
366f009f
JB
50112004-05-04 Jim Blandy <jimb@redhat.com>
5012
32b99774
JB
5013 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5014 Don't assume that the gprs, fprs, and UISA sprs are
5015 contiguous, start at register number zero, and end with fpscr.
5016 Instead, use the numbers from the tdep structure.
5017
366f009f
JB
5018 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5019 should no longer be used in code specific to the RS6000 and its
5020 derivatives.
5021 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5022 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5023 tdep->ppc_fp0_regnum.
5024 (ppc_supply_fpregset, ppc_collect_fpregset)
5025 (rs6000_push_dummy_call, rs6000_extract_return_value)
5026 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5027 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5028 FP0_REGNUM.
5029 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5030 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5031 Same.
5032 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5033 bdm_ppc_store_registers): Same.
5034 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5035 (store_register, fill_fpregset): Same.
5036 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5037 (ppc_linux_supply_fpregset): Same.
5038 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5039 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5040 Same.
5041 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5042 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5043 ppc64_sysv_abi_return_value): Same.
5044 * rs6000-nat.c (regmap, fetch_inferior_registers)
5045 (store_inferior_registers, fetch_core_registers): Same.
5046
827f338d
MK
50472004-05-01 Mark Kettenis <kettenis@gnu.org>
5048
5049 * m68knbsd-nat.c: Remove file.
5050 * m68knbsd-tdep.c: Remove file.
5051 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5052 dependencies.
5053 * configure.host: Add m68k-*-netbsdelf*.
5054 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5055 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5056 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5057 (XM_FILE): Remove.
5058 * config/m68k/nbsdelf.mh: New file.
5059 * config/m68k/nbsd.mt: New file.
5060 * config/m68k/nbsdaout.mt: Remove file.
5061 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5062 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5063 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5064 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5065 (use_struct_convention): Remove prototype.
5066 (USE_STRUCT_CONVENTION): Remove define.
5067 * config/m68k/xm-nbsd.h: Remove file.
5068
66894781
MS
50692004-05-04 Michael Snyder <msnyder@redhat.com>
5070
5071 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5072 reg_struct_return method (as gcc usually does for cross targets).
5073
f0f63663
AC
50742004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5075
5076 Committed by Andrew Cagney.
5077 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5078 alignment padding when accessing ucontext struct members.
5079
edf61169
JB
50802004-05-04 Jim Blandy <jimb@redhat.com>
5081
8bf659e8
JB
5082 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5083 'ppc_gplast_regnum' member.
5084 (ppc_num_gprs): New enum constant.
5085 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5086 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5087 * rs6000-nat.c (regmap, fetch_inferior_registers,
5088 store_inferior_registers): Same.
5089 * rs6000-tdep.c (e500_pseudo_register_read)
5090 (e500_pseudo_register_write): Same.
5091 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5092
b967e06f
JB
5093 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5094 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5095 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5096 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5097 FPLAST_REGNUM.
5098 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5099 Same.
5100 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5101 * rs6000-nat.c (regmap, fetch_inferior_registers)
5102 (store_inferior_registers): Same.
5103
edf61169
JB
5104 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5105 with FPLAST_REGNUM.
5106
58a9656e
JB
51072004-05-03 Joel Brobecker <brobecker@gnat.com>
5108
5109 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5110 failure detected by recent versions of GCC.
5111 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5112 to be consistent with the usage in dwarf2_create_include_psymtab.
5113
dc305454
MS
51142004-05-03 Michael Snyder <msnyder@redhat.com>
5115
5116 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5117 (heuristic_proc_start): Whitespace cleanup.
5118
29972665
MK
51192004-05-04 Mark Kettenis <kettenis@gnu.org>
5120
6b57680d
MK
5121 * sun3-nat.c: Remove file.
5122 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5123 dependencies.
5124 (ALLDEPFILES): Remove sun3-nat.c.
5125 (sun3-nat.o): Remove dependencies.
5126
29972665
MK
5127 * i386-interix-nat.c, i386-interix-tdep.c,
5128 config/i386/nm-interix.h, config/i386/interix.mh,
5129 config/i386/interix.mt: Remove files.
5130 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5131 dependencies.
5132
f595cb19
MK
51332004-05-03 Mark Kettenis <kettenis@gnu.org>
5134
5135 * m68k-tdep.h (struct gdbarch_tdep): Add member
5136 struct_value_regnum.
5137 (m68k_svr4_init_abi): New prototype.
5138 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5139 different calling conventions.
5140 (m68k_extract_return_value): Remove code dealing with single-field
5141 structs.
5142 (m68k_store_return_value): Remove code dealing with single-field
5143 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5144 (m68k_extract_struct_value_address): Remove function.
5145 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5146 (m68k_reg_struct_return_p, m68k_return_value)
5147 (m68k_svr4_return_value): New functions.
5148 (m68k_use_struct_convention): Remove function.
5149 (m68k_push_dummy_call): Use new struct_value_regnum member of
5150 `struct gdbarch_tdep' instead of hardcoded register number to
5151 store STRUCT_ADDR.
5152 (m68k_svr4_init_abi): New function.
5153 (m68k_gdbarch_init): Don't set extract_return_value,
5154 store_return_values, deprecated_extract_struct_value_address and
5155 use_struct_convention. Set return_value instead. Initialize new
5156 struct_value_regnum member of `struct gdbarch_tdep'.
5157 * m68klinux-tdep.c: Update copyright year.
5158 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5159 (m68k_linux_extract_struct_value_address): Remove function.
5160 (m68k_linux_init_abi): Don't set extract_return_value,
5161 store_return_values, deprecated_extract_struct_value_address and
5162 use_struct_convention. Call m68k_svr4_init_abi but override the
5163 new struct_value_regnum member of `struct gdbarch_tdep'.
5164 * Makefile.in (m68k-tdep.o): Update dependencies.
5165
aaa75496
JB
51662004-05-03 J. Brobecker <brobecker@gnat.com>
5167
5168 * dwarf2read.c (line_header): Add new included_p field in
5169 field file_names.
5170 (partial_die_info): New field has_stmt_list. New field line_offset.
5171 (dwarf2_create_include_psymtab): New function.
5172 (dwarf2_build_include_psymtabs): New function.
5173 (add_file_name): Add forward declaration. Initialize new field.
5174 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5175 to be able to determine the list of files included by the
5176 given unit, and build their associated psymtabs.
5177 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5178 files as well.
5179 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5180 (read_file_scope): Update call to dwarf_decode_lines.
5181 (read_partial_die): Handle DW_AT_stmt_list attributes.
5182
c848556f
MC
51832004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5184
5185 Unfix PR gdb/1626.
5186 * configure.in: Revert special case for osf5.*.
5187 * configure: Regenerate.
5188
eb4556d7
JB
51892004-05-02 Jim Blandy <jimb@redhat.com>
5190
5191 Move the symbol-file-from-memory functions into their own file.
5192 * symfile-mem.c, symfile-mem.h: New files.
5193 * symfile.c (symbol_file_add_from_bfd): New function.
5194 (symbol_file_add): Call symbol_file_add_from_bfd.
5195 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5196 Moved to symfile-mem.c.
5197 (_initialize_symfile): Move definition of
5198 add-symbol-file-from-memory command to symfile-mem.c.
5199 * symfile.h (symbol_file_add_from_bfd): New declaration.
5200 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5201 * config/powerpc/linux.mt (TDEPFILES): Same.
5202 * Makefile.in (SFILES): Add symfile-mem.c.
5203 (symfile_mem_h): New variable.
5204 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5205 (symfile-mem.o): New rule.
5206
80bb239e
AC
52072004-05-01 Andrew Cagney <cagney@redhat.com>
5208
7789d0fa
AC
5209 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5210 frame_find_by_id instead of frame_relative_level.
5211 (do_enable_breakpoint): Ditto.
5212 * thread.c: Update copyright.
5213 (info_threads_command): Ditto, simplify.
5214
80bb239e
AC
5215 * frame.c (deprecated_generic_get_saved_register): Delete
5216 function, moved to "xstormy16-tdep.c".
5217 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5218 deprecated_generic_get_saved_register from "frame.c".
5219 (xstormy16_frame_saved_register): Call
5220 xstormy16_get_saved_register.
5221 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5222 static.
5223 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5224 * frame.h (deprecated_generic_get_saved_register): Delete.
5225
b2a871dd
MC
52262004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5227
5228 * dwarfread.c: Update documentation on the state of dwarf-1.
5229
0e100dab
AC
52302004-05-01 Andrew Cagney <cagney@redhat.com>
5231
acd8056e
AC
5232 * stack.c (select_frame_command): Delete call to
5233 frame_relative_level.
5234 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5235 Delete #if0 code.
5236 (frame_info): Do not print FRAMELESS.
5237 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5238 (catch_info): Delete #if0 code.
5239
0e100dab
AC
5240 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5241 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5242 of frame_relative_level.
5243 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5244 to SENTINEL_FRAME.
5245 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5246 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5247 frame_relative_level.
5248
55699d59
AC
5249 * frame.h (deprecated_set_frame_type): Delete declaration.
5250 * frame.c (deprecated_set_frame_type): Delete function, update
5251 comments.
5252
fcf70625
AC
5253 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5254 * gdbarch.h, gdbarch.c: Re-generate.
5255 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5256 (shnbsd_pc_in_sigtramp): Delete.
5257 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5258 pc_in_sigtramp.
5259 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5260 pc_in_sigtramp.
5261 * frame.h: Update comments.
5262 * ppc-linux-tdep.c: Update comments.
5263 * breakpoint.c (bpstat_what): Update comments.
5264
ac5eccb7
AC
5265 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5266 m68klinux-tdep.o's dependencies, were previously added to
5267 m68klinux-nat.o.
5268
f2524b93
AC
5269 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5270 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5271 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5272 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5273 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5274
17e20bce
AC
5275 * Makefile.in (m68klinux-nat.o): Update dependencies.
5276 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5277 (m68k_linux_sigtramp_frame_cache)
5278 (m68k_linux_sigtramp_frame_this_id)
5279 (m68k_linux_sigtramp_frame_prev_register)
5280 (m68k_linux_sigtramp_frame_unwind)
5281 (m68k_linux_sigtramp_frame_sniffer)
5282 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5283 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5284 names, use trad-frame.h.
5285 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5286 (struct m68k_sigtramp_info): Delete.
5287 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5288 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5289 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5290 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5291 "m68klinux-tdep.c".
5292
c8864fa2
AC
5293 * infrun.c (check_sigtramp2): Delete check for
5294 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5295
511dd2cd
MK
52962004-05-01 Mark Kettenis <kettenis@gnu.org>
5297
5298 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5299
8c6b0e06
AC
53002004-05-01 Andrew Cagney <cagney@redhat.com>
5301
9df0bb3f
AC
5302 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5303 (frv_linux_sigtramp_frame_cache)
5304 (frv_linux_sigtramp_frame_this_id)
5305 (frv_linux_sigtramp_frame_prev_register)
5306 (frv_linux_sigtramp_frame_unwind)
5307 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5308 include "linux" in function and variable names, directly call
5309 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5310 the latest trad-frame code.
5311 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5312 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5313 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5314 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5315 * frv-tdep.c (frv_sigtramp_frame_cache)
5316 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5317 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5318 frv-linux-tdep.c.
5319 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5320 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5321 (frv_set_sigcontext_reg_addr): Delete function.
5322
8c6b0e06
AC
5323 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5324 (DEPRECATED_SIGTRAMP_END): Delete.
5325 * gdbarch.h, gdbarch.c: Re-generate.
5326 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5327 * config/vax/tm-vaxbsd.h: Update copyright.
5328 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5329 (DEPRECATED_IN_SIGTRAMP): Define.
5330 * config/m68k/tm-nbsd.h: Update copyright.
5331 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5332 (DEPRECATED_IN_SIGTRAMP): Define.
5333
50ea7769
MK
53342004-05-01 Mark Kettenis <kettenis@gnu.org>
5335
03ac2a74
MK
5336 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5337 encondings. Fixes PR gdb/1628.
5338
50ea7769
MK
5339 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5340 DW_CFA_restore state without a matching DW_CFA_remember_state
5341 instead of aborting. Fixes PR backtrace/1589.
5342
9a5d7be1
JB
53432004-04-30 Joel Brobecker <brobecker@gnat.com>
5344
5345 * MAINTAINERS: Add self as AIX maintainer.
5346 Update my e-mail address in write-after-approval section.
5347
2593d1cd
AC
53482004-04-30 Andrew Cagney <cagney@redhat.com>
5349
ce12bbf9
AC
5350 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5351 (legacy_get_prev_frame): Ditto.
5352
36710c63
AC
5353 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5354 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5355 * mipsread.c (sigtramp_address): Delete extern variable.
5356 (mipscoff_new_init): Delete reference.
5357 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5358 (fixup_sigtramp): Delete function.
5359 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5360 (fixup_sigtramp): Delete declarations.
5361
2593d1cd
AC
5362 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5363 deprecated_pc_in_sigtramp.
5364 (ppcnbsd_pc_in_sigtramp): Delete function.
5365
2a25f91c
MK
53662004-05-01 Mark Kettenis <kettenis@gnu.org>
5367
5368 * config/m68k/nm-nbsd.h: Tweak comments.
5369 * config/m68k/nm-nbsdaout.h: Likewise.
5370
0b281939
AC
53712004-04-30 Andrew Cagney <cagney@redhat.com>
5372
5373 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5374 legacy_pc_in_sigtramp.
5375 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5376
8f2d3ea0
MK
53772004-05-01 Mark Kettenis <kettenis@gnu.org>
5378
5379 Add OpenBSD/m68k support.
5380 * NEWS (New native configurations): Mention OpenBSD/m68k.
5381 * m68kbsd-tdep.c: New file.
5382 * m68kbsd-nat.c: New file.
5383 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5384 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5385 * configure.host: Add m68k-*-openbsd.
5386 * configure.tgt: Add m68k-*-openbsd.
5387 * config/m68k/tm-obsd.h: New file.
5388 * config/m68k/obsd.mt: New file.
5389 * config/m68k/obsd.mh: New file.
5390 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5391 m68kbsd-tdep.c.
5392
c40f49a4
AC
53932004-04-30 Andrew Cagney <cagney@redhat.com>
5394
5395 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5396 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5397
e81554cd
MK
53982004-04-30 Mark Kettenis <kettenis@gnu.org>
5399
5400 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5401 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5402
d4dc1a91
BF
54032004-04-30 Brian Ford <ford@vss.fsi.com>
5404
5405 Revert 2004-04-16 change.
5406 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5407 (i386_coff_init_abi): Remove.
5408 * i386-tdep.h (i386_coff_init_abi): Remove.
5409 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5410
2f72f850
AC
54112004-04-30 Andrew Cagney <cagney@redhat.com>
5412
e492f9d6
AC
5413 * blockframe.c (find_pc_partial_function): Delete use of
5414 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5415 DEPRECATED_SIGTRAMP_END.
5416
7b7adad0
AC
5417 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5418 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5419 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5420 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5421 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5422
2f72f850
AC
5423 * defs.h (deprecated_inside_entry_file): Delete declaration.
5424 * blockframe.c (deprecated_inside_entry_file): Delete function.
5425 (legacy_frame_chain_valid): Delete call.
5426 * sh64-tdep.c (sh64_frame_chain): Delete call.
5427 * objfiles.h: Update comments.
5428 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5429 call.
5430 * frame.c (get_prev_frame): Delete call, update comments.
5431
283f90a7
BF
54322004-04-30 Brian Ford <ford@vss.fsi.com>
5433
5434 * MAINTAINERS (Write After Approval): Add myself.
5435
8ee56bcf
AC
54362004-04-30 Andrew Cagney <cagney@redhat.com>
5437
5438 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5439 * gdbarch.h, gdbarch.c: Re-generate.
5440 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5441 code.
5442
ee27e1b6
AC
54432004-04-30 Andrew Cagney <cagney@redhat.com>
5444
5445 * gdb-events.sh (selected_thread_changed)
5446 (selected_frame_level_changed, target_changed): Delete.
5447 * gdb-events.h, gdb-events.c: Re-generate.
5448 * valops.c (value_assign): Update.
5449 * stack.c (select_frame_command, up_silently_base)
5450 (down_silently_base): Update.
5451
d5ac5a39
AC
54522004-04-29 Andrew Cagney <cagney@redhat.com>
5453
5454 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5455 registers correctly.
5456 (print_gp_register_row, mips32_heuristic_proc_desc)
5457 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5458 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5459 references to mips_isa_regsize.
5460
ceae6e75
AC
54612004-04-29 Andrew Cagney <cagney@redhat.com>
5462
5463 * mips-tdep.c (struct gdbarch_tdep): Delete
5464 mips_fp_register_double.
5465 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5466 mips_abi_regsize.
5467 (mips_gdbarch_init): Do not set mips_fp_register_double.
5468 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5469
a587af0b
AC
54702004-04-29 Joel Brobecker <brobecker@gnat.com>
5471
5472 Committed by Andrew Cagney.
5473 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5474 function calls.
5475
13326b4e
AC
54762004-04-29 Andrew Cagney <cagney@redhat.com>
5477
5478 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5479 gdbarch, use mips_abi, update callers.
5480 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5481 mips_abi_regsize, update callers.
5482 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5483 mips_default_abi_regsize.
5484 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5485 mips_default_abi_regsize.
5486
711cc5cd
AC
54872004-04-29 Andrew Cagney <cagney@redhat.com>
5488
1b13c4f6
AC
5489 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5490 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5491 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5492 mips_default_abi_regsize.
5493 (mips_isa_regsize): Rename mips_regisze.
5494 * mipsnbsd-tdep.c: Update.
5495 * mips-linux-tdep.c: Update.
5496 * irix5-nat.c: Update.
5497 * mips-tdep.h (mips_isa_regsize): Update.
5498
711cc5cd
AC
5499 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5500 Delete all disabled code.
5501 * gdb-events.h, gdb-events.c: Re-generate.
5502
e63bbc88
MK
55032004-04-19 Jerome Guitton <guitton@gnat.com>
5504 Mark Kettenis <kettenis@gnu.org>
5505
5506 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5507 the function begins with a branch instruction.
5508
fd35795f
MK
55092004-04-29 Mark Kettenis <kettenis@gnu.org>
5510
5511 * i386-tdep.c: Fix spelling mistakes.
5512
c960c18f
AC
55132004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5514 Andrew Cagney <cagney@redhat.com>
5515
5516 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5517 <sys/proc.h>.
5518 * acconfig.h: Provide default _KMEMUSER value.
5519 * config.in, configure: Re-generate.
5520 * NEWS: Mention fix.
5521
50306a9d
RC
55222004-04-24 Randolph Chung <tausq@debian.org>
5523
5524 * configure.host (hppa*-*-linux*): New target.
5525 * configure.tgt (hppa*-*-linux*): Likewise.
5526 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5527 gdbarch_init_osabi() call earlier so that osabi-specific frame
5528 unwinders can be registered first.
5529 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5530 hppa-linux-nat.c.
5531 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5532 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5533 * config/pa/linux.mh: New file.
5534 * config/pa/linux.mt: New file.
5535 * config/pa/nm-linux.h: New file.
5536 * config/pa/xm-linux.h: New file.
5537 * hppa-linux-nat.c: New file.
5538 * hppa-linux-tdep.c: New file.
5539
2a6228ef
RC
55402004-04-28 Randolph Chung <tausq@debian.org>
5541
5542 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5543 return values.
5544 (hppa32_push_dummy_call): Fix small struct and floating point argument
5545 passing, and make sure the stack frame is properly aligned.
5546
82c10df6
AC
55472004-04-28 Andrew Cagney <cagney@redhat.com>
5548
d762c46a
AC
5549 * stack.c (print_stack_frame): Fix description.
5550
82c10df6
AC
5551 * NEWS: Mention gdb/gdbserver/configure execute permission
5552 changed. PR server/519.
5553
0faf0076
AC
55542004-04-28 Andrew Cagney <cagney@redhat.com>
5555
5556 * stack.c (print_stack_frame_stub): Delete declaration.
5557 (struct print_stack_frame_args, print_stack_frame)
5558 (print_frame_info, print_frame): Replace "source" with print what.
5559 Replace "print" with "print_level". Replace "args" with
5560 "print_args".
5561 * frame.h (show_and_print_stack_frame, print_stack_frame)
5562 (print_frame_info): Update declarations.
5563 * stack.c (select_and_print_frame, frame_command)
5564 (current_frame_command, up_command, down_command): Update calls -
5565 use get_selected_frame, pass "enum print_what" for source, do not
5566 call frame_relative_level.
5567 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5568 * remote-rdp.c (remote_rdp_open): Ditto.
5569 * remote-mips.c (common_open): Ditto.
5570 * remote-e7000.c (e7000_start_remote): Ditto.
5571 * ocd.c (ocd_start_remote): Ditto.
5572 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5573 * infrun.c (normal_stop): Ditto.
5574 * inflow.c (kill_command): Ditto.
5575 * infcmd.c (finish_command): Ditto.
5576 * corelow.c (core_open): Ditto.
5577 * tracepoint.c (finish_tfind_command): Ditto.
5578 * thread.c (info_threads_command, info_threads_command)
5579 (restore_current_thread, do_captured_thread_select): Ditto.
5580 * ada-tasks.c (task_command): Ditto.
5581
f4c5303c
OF
55822004-04-26 Orjan Friberg <orjanf@axis.com>
5583
5584 * frame.c: Include "observer.h".
5585 (frame_observer_target_changed): New function.
5586 (_initialize_frame): Attach target_changed observer.
5587 * regcache.c: Include "observer.h".
5588 (regcache_observer_target_changed): New function.
5589 (_initialize_regcache): Attach target_changed observer.
5590 * valops.c: Include "observer.h".
5591 (value_assign): Notify target_changed event when modifying register.
5592 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5593
7270d8f2
OF
55942004-04-26 Orjan Friberg <orjanf@axis.com>
5595
5596 From Paul Koning <pkoning@equallogic.com>:
5597 * breakpoint.c (free_valchain): New function.
5598 (insert_bp_location, delete_breakpoint): Use free_valchain.
5599 (remove_breakpoint): Do not remove the valchain.
5600 (bpstat_stop_status): If not stopped by watchpoint, skip
5601 watchpoints when generating stop status list.
5602 * infrun.c (handle_inferior_event): Make
5603 stepped_after_stopped_by_watchpoint a global variable.
5604 * remote.c (remote_stopped_data_address): Return watch data
5605 address rather than zero if stepped_after_stopped_by_watchpoint is
5606 set.
5607
02d62932
MC
56082004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5609
5610 Fix PR gdb/1626.
5611 * configure.in: Check for curses after termcap.
5612 On osf5.*, do not check for ncurses.
5613 * configure: Regenerate.
5614
3e9a183c
MK
56152004-04-25 Mark Kettenis <kettenis@gnu.org>
5616
c79ac407
MK
5617 * ppcobsd-nat.c: Include "ppc-tdep.h".
5618 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5619
3e9a183c
MK
5620 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5621 Fixes PR tdep/1623 and PR tdep/1624.
5622
38cc9c28
MC
56232004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5624
5625 * xmodem.h, xmodem.c: Remove files.
5626 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5627
7f07c5b6
RC
56282004-04-23 Randolph Chung <tausq@debian.org>
5629
5630 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5631 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5632 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5633 for handling stackless frames.
5634 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5635
9f7194c3
RC
56362004-04-23 Randolph Chung <tausq@debian.org>
5637
5638 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5639 starts at a pc before the frame is created.
5640
dcff6009
JB
56412004-04-23 Joel Brobecker <brobecker@gnat.com>
5642
5643 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5644
40711ff1 56452004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5646
5647 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5648 use convert_typed_floating to get the appropriate format.
5649
abc485a1
RC
56502004-04-22 Randolph Chung <tausq@debian.org>
5651
5652 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5653 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5654 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5655 (hppa_sign_extend): Add prototype.
5656 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5657 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5658 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5659 hppa targets will also use these functions.
5660 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5661 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5662 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5663 (hppa_gdbarch_init): Remove gdbarch setting of
5664 skip_trampoline_code, in_solib_call_trampoline and
5665 in_solib_return_trampoline.
5666 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5667 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5668 hppa_in_solib_call_trampoline.
5669 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5670 Moved from hppa-tdep.c.
5671 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5672 in_solib_call_trampoline and in_solib_return_trampoline.
5673
369aa520
RC
56742004-04-22 Randolph Chung <tausq@debian.org>
5675
5676 * hppa-tdep.c (hppa_debug): New variable.
5677 (find_unwind_entry, hppa_frame_cache): Add debug output.
5678 (_initialize_hppa_tdep): Add command to set debug flag.
5679
476be15e
AC
56802004-04-22 Andrew Cagney <cagney@redhat.com>
5681
5682 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5683 "trad-frame.h".
5684 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5685 signal trampoline unwinder.
5686 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5687
d195bc9f
MK
56882004-04-22 Mark Kettenis <kettenis@gnu.org>
5689
5690 Add OpenBSD/powerpc support.
5691 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5692 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5693 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5694 (ppc_collect_fpregset): New prototypes.
5695 * ppcobsd-nat.c: New file.
5696 * ppcobsd-tdep.c: New file.
5697 * ppcobsd-tdep.h: New file.
5698 * rs6000-tdep.c: Include "regset.h".
5699 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5700 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5701 New functions.
5702 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5703 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5704 (rs6000-tdep.o): Update dependencies.
5705 * configure.host: Add powerpc-*-openbsd.
5706 * configure.tgt: Add powerpc-*-openbsd.
5707 * config/powerpc/obsd.mh: New file.
5708 * config/powerpc/nm-obsd.h: New file.
5709 * config/powerpc/obsd.mt: New file.
5710
6f14cc33
AC
57112004-04-22 Andrew Cagney <cagney@redhat.com>
5712
fcf29e5f
AC
5713 * frame.h (show_frame_info): Delete declaration.
5714
6f14cc33
AC
5715 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5716 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5717 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5718 * frv-tdep.c (frv_frame_this_id): Ditto.
5719 * avr-tdep.c (avr_frame_this_id): Ditto.
5720
e5786a5c
EZ
57212004-04-22 Elena Zannoni <ezannoni@redhat.com>
5722
5723 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5724
26e75e5c
JB
57252004-04-22 Jim Blandy <jimb@redhat.com>
5726
5727 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5728 register number zero.
5729
d8d65dd3
MS
57302004-04-21 Michael Snyder <msnyder@redhat.com>
5731
5732 * mips-tdep.c (heuristic_proc_start):
5733 Warning() already prefixes "Warning: ".
5734
9a4105ab
AC
57352004-04-21 Andrew Cagney <cagney@redhat.com>
5736
5737 * annotate.h (deprecated_annotate_starting_hook)
5738 (deprecated_annotate_stopped_hook)
5739 (deprecated_annotate_exited_hook)
5740 (deprecated_annotate_signal_hook)
5741 (deprecated_annotate_signalled_hook): Deprecate.
5742 * tracepoint.h (deprecated_create_tracepoint_hook)
5743 (deprecated_delete_tracepoint_hook)
5744 (deprecated_modify_tracepoint_hook)
5745 (deprecated_trace_find_hook)
5746 (deprecated_trace_start_stop_hook): Deprecate.
5747 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5748 * remote.h (deprecated_target_resume_hook)
5749 (deprecated_target_wait_loop_hook): Deprecate.
5750 * gdbcore.h (deprecated_exec_file_display_hook)
5751 (deprecated_file_changed_hook): Deprecate.
5752 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5753 * defs.h (deprecated_modify_breakpoint_hook)
5754 (deprecated_command_loop_hook, deprecated_show_load_progress)
5755 (deprecated_print_frame_info_listing_hook)
5756 (deprecated_query_hook, deprecated_warning_hook)
5757 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5758 (deprecated_delete_breakpoint_hook)
5759 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5760 (deprecated_readline_begin_hook, deprecated_readline_hook)
5761 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5762 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5763 (deprecated_context_hook, deprecated_target_wait_hook)
5764 (deprecated_attach_hook, deprecated_detach_hook)
5765 (deprecated_call_command_hook, deprecated_set_hook)
5766 (deprecated_error_hook, deprecated_error_begin_hook)
5767 (deprecated_ui_load_progress_hook): Deprecate.
5768 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5769 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5770 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5771 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5772 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5773 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5774 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5775 * annotate.c, aix-thread.c: Update.
5776
62cf13cc
AC
57772004-04-21 Andrew Cagney <cagney@redhat.com>
5778
b2e31a62
AC
5779 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5780 * vaxnbsd-tdep.c: Include "gdb_string.h".
5781
62cf13cc
AC
5782 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5783 (add_symbol_file_from_memory_command): #if 0 function body, call
5784 error instead.
5785
00e32a35
AC
57862004-04-21 Andrew Cagney <cagney@redhat.com>
5787
5788 * gdbcore.h: Update copyright.
5789 (deprecated_add_core_fns): Rename add_core_fns.
5790 * win32-nat.c (_initialize_core_win32): Update.
5791 * sun3-nat.c (_initialize_core_sun3): Update.
5792 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5793 * rs6000-nat.c (_initialize_core_rs6000): Update.
5794 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5795 * nto-tdep.c (_initialize_nto_tdep): Update.
5796 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5797 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5798 * mips-nat.c (_initialize_core_mips): Update.
5799 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5800 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5801 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5802 * lynx-nat.c (_initialize_core_lynx): Update.
5803 * irix5-nat.c (_initialize_core_irix5): Update.
5804 * i386-interix-nat.c (_initialize_core_interix): Update.
5805 * cris-tdep.c (_initialize_cris_tdep): Update.
5806 * corelow.c (deprecated_add_core_fns): Update.
5807 * core-regset.c (_initialize_core_regset): Update.
5808 * core-aout.c (_initialize_core_aout): Update.
5809 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5810 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5811 * alpha-nat.c (_initialize_core_alpha): Update.
5812
13c7b1ca
JB
58132004-04-21 Jim Blandy <jimb@redhat.com>
5814
5815 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5816
7b5a2f43
DJ
58172004-04-19 Daniel Jacobowitz <drow@mvista.com>
5818
5819 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5820 Delete.
5821 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5822 (read_attribute_value): Update calls to dwarf_alloc_block.
5823 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5824 dwarf2_tmp_obstack.
5825 (psymtab_to_symtab_1): Likewise. Clean up using
5826 free_stack_comp_unit.
5827 (add_to_cu_func_list): Use the comp_unit_obstack.
5828
05cf31d1
JB
58292004-04-19 Joel Brobecker <brobecker@gnat.com>
5830
5831 * dwarf2read.c (dwarf2_flag_true_p): New function.
5832 (die_is_declaration): Use the function above. Add some comments.
5833
adf93a2f
MK
58342004-04-19 Mark Kettenis <kettenis@gnu.org>
5835
5836 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5837 architecture when registering sparcnbsd_core_osabi_sniffer.
5838 Adjust comment.
5839
748894bf
MK
58402004-04-18 Mark Kettenis <kettenis@gnu.org>
5841
f622ad42
MK
5842 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5843 return value.
5844
c4fc7f1b
MK
5845 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5846 * i386-tdep.c: Correct register numbering scheme comments
5847 throughout.
5848 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5849 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5850 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5851 (i386_gdb_arch_init): Likewise.
5852
b4ead1bd
MK
5853 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5854 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5855 ppcnbsd-tdep.o.
5856
748894bf
MK
5857 * m68k-tdep.h: Tweak comments.
5858 * m68k-tdep.c: Tweak comment.
5859
fdd72f95
RC
58602004-04-17 Randolph Chung <tausq@debian.org>
5861
5862 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5863 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5864 (hppa_hpux_som_init_abi): Set is_elf to 0.
5865 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5866 * hppa-tdep.c (low_text_segment_address): Remove global.
5867 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5868 section offset to calculate segment address.
5869 (internalize_unwinds): Define low_text_segment_address as local and
5870 pass to record_text_segment_lowaddr for ELF targets.
5871 (hppa_gdbarch_init): Zero fill tdep structure.
5872 (hppa_dump_tdep): Print tdep structure.
5873 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5874
0f8d9d59
RC
58752004-04-17 Randolph Chung <tausq@debian.org>
5876
5877 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5878 (hppa_gdbarch_init): Set pseudo_register_read.
5879 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5880 * regcache.c (supply_register): Remove check for
5881 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5882
7c46b9fb
RC
58832004-04-17 Randolph Chung <tausq@debian.org>
5884
5885 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5886 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5887 (hpread_adjust_stack_address): Move to hpread.c.
5888 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5889 obj_private_struct): Move from tm-hppa.h.
5890 * hpread.c (hppa-tdep.h): Include.
5891 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5892 (hpread_read_function_type, hpread_read_doc_function_type)
5893 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5894 directly.
5895 * pa64solib.c (hppa-tdep.h): Include.
5896 * somsolib.c (hppa-tdep.h): Include.
5897 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5898 inferior_status): Remove unused forward declarations.
5899 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5900 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5901 obj_private_struct): Move to hppa-tdep.h.
5902 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5903
8d153463
RC
59042004-04-17 Randolph Chung <tausq@debian.org>
5905
5906 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5907 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5908 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5909 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5910 Remove forward declaration and make static.
5911 (hppa_reg_struct_has_addr): Remove.
5912
350c2e5b
JB
59132004-04-16 Joel Brobecker <brobecker@gnat.com>
5914
5915 * observer.sh: Move comments in sed command to first column.
5916
bbde78fa
JM
59172004-04-16 Jason Molenda (jmolenda@apple.com)
5918
5919 * frame.c: Minor typeo corrections in comments.
5920
e0270fd9
JB
59212004-04-16 Joel Brobecker <brobecker@gnat.com>
5922
5923 * observer.c (observer_test_first_notification_function): Update
5924 function profile.
5925 (observer_test_second_notification_function): Likewise.
5926 (observer_test_third_notification_function): Likewise.
5927
3d049254
MK
59282004-04-16 Mark Kettenis <kettenis@gnu.org>
5929
5930 From Brian Ford <ford@vss.fsi.com>:
5931 * i386-tdep.c (i386_coff_init_abi): New function.
5932 * i386-tdep.h (i386_coff_init_abi): New prototype.
5933 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5934 register number translation functions for DWARF and DWARF 2.
5935
7867684d
JB
59362004-04-16 Joel Brobecker <brobecker@gnat.com>
5937
5938 * dwarf2read.c: Back out my previous change, it was incorrect.
5939
72bf9492
DJ
59402004-04-16 Daniel Jacobowitz <drow@mvista.com>
5941
5942 * dwarf2read.c: Include "hashtab.h".
5943 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5944 has_namespace_info.
5945 (struct partial_die_info): Add comments. Use bitfields to reduce
5946 memory footprint. Add scope, scope_set, has_specification,
5947 spec_offset, die_parent, die_child, and die_sibling.
5948 (peek_die_abbrev): Add prototype.
5949 (partial_read_comp_unit_head): New function, broken out from
5950 dwarf2_build_psymtabs_hard.
5951 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5952 Use partial_read_comp_unit_head. Initialize the CU and
5953 comp_unit_obstack. Update calls to read_partial_die and
5954 scan_partial_symbols. Use free_stack_comp_unit and
5955 load_partial_dies.
5956 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5957 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5958 Update calls to helper functions. Remove NAMESPACE argument.
5959 Update comments.
5960 (partial_die_parent_scope, partial_die_full_name): New functions.
5961 (add_partial_symbol): Remove namespace argument. Update call to
5962 pdi_needs_namespace. Use partial_die_full_name. Handle
5963 DW_TAG_namespace. Check has_namespace_info flag.
5964 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5965 tag. Handle namespaces.
5966 (add_partial_namespace, add_partial_enumeration): Simplify.
5967 (guess_structure_name): New function, derived from
5968 add_partial_structure.
5969 (add_partial_structure): Remove.
5970 (determine_class_name): Update comment.
5971 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5972 (is_type_tag_for_partial, load_partial_dies): New functions.
5973 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5974 Record specifications instead of following them immediately.
5975 (find_partial_die_in_comp_unit, find_partial_die)
5976 (fixup_partial_die, free_stack_comp_unit)
5977 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5978 (partial_die_hash, partial_die_eq): New functions.
5979 * Makefile.in (hashtab_h): Define.
5980 (dwarf2read.o): Update dependencies.
5981 (observer_inc, observer_h): Move to the correct section.
5982
fdc860a3
JB
59832004-04-15 Joel Brobecker <brobecker@gnat.com>
5984
5985 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5986 (die_is_declaration): Use the function above. Add comment.
5987
dc718098
JB
59882004-04-15 Joel Brobecker <brobecker@gnat.com>
5989
5990 * dwarf2read.c (read_structure_scope): Identify stub types
5991 using die_is_declaration() only.
5992
8718a420
RM
59932004-04-15 Roland McGrath <roland@redhat.com>
5994
5995 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5996 argument instead of NAME.
5997 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5998 in call to symbol_file_add_with_addrs_or_offsets.
5999 (build_addr_info): New function, helper for ...
6000 (symbol_file_add_from_memory): New function.
6001 (add_symbol_file_from_memory_command): New function using that.
6002 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6003 (pre_add_symbol_hook): Add const to argument type.
6004 * symfile.h (symbol_file_add_from_memory): Declare it.
6005
8b910bab
MK
60062004-04-15 Mark Kettenis <kettenis@gnu.org>
6007
9f076e7a
MK
6008 * NEWS (New native configurations): Mention OpenBSD/vax.
6009 * configure.host: Add vax-*-openbsd*.
6010 * config/vax/obsd.mh: New file.
6011 * config/vax/nm-obsd.h: New file.
6012
8b910bab
MK
6013 * vax-tdep.c: Include "regset.h".
6014 (vax_supply_gregset): New function.
6015 (vax_gregset): New variable.
6016 (vax_regset_from_core_section): New function.
6017 (vax_gdbarch_init): Set regset_from_core_section.
6018 * Makefile.in (vax-tdep.o): Update dependencies.
6019
7a464420
AC
60202004-04-15 Andrew Cagney <cagney@redhat.com>
6021
6022 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6023 (observer_normal_stop_notification_stub)
6024 (observer_attach_normal_stop, observer_detach_normal_stop):
6025 Delete, replaced by #include "observer.inc".
6026 * infrun.c (normal_stop): Pass "stop_bpstat" to
6027 observer_notify_normal_stop.
6028 * Makefile.in (observer_inc): Define.
6029 (observer.o): Update dependencies.
6030 (observer.h, observer.inc): New rules.
6031 * observer.h: Delete file.
6032 * observer.sh: New file.
6033
e36ad527
MK
60342004-04-15 Mark Kettenis <kettenis@gnu.org>
6035
6036 * vax-tdep.c (vax_frame_cache): Fix typo.
6037
67b441e1
MK
60382004-04-14 Mark Kettenis <kettenis@gnu.org>
6039
6f606e1c
MK
6040 * NEWS (New native configurations): Mention NetBSD/vax.
6041 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6042 * config/vax/nbsdelf.mh: New file.
6043 * config/vax/nbsdaout.mh: New file.
6044 * config/vax/nm-nbsd.h: New file.
6045 * config/vax/nm-nbsdaout.h: New file.
6046
9c5519a5
MK
6047 * vaxnbsd-tdep.c: New file.
6048 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6049 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6050 * config/vax/nbsd.mt: New file.
6051 * config/vax/tm-nbsd.h: New file.
6052
4844a614
MK
6053 * Makefile.in (vaxbsd-nat.o): New dependency.
6054
67b441e1
MK
6055 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6056 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6057 struct_addr arguments. Don't push return value address.
6058 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6059 arguments to vax_store_arguments. Store return value address in
6060 R1.
6061 (vax_store_struct_return, vax_extract_return_value)
6062 (vax_store_return_value): Remove functions.
6063 (vax_return_value): New function.
6064 (vax_gdbarch_init): Set return value. Don't set
6065 deprecated_store_struct_return, deprecated_extract_struct_return
6066 and deprecated_store_return_value.
6067
6672f2ae
AS
60682004-04-14 Andreas Schwab <schwab@suse.de>
6069
6070 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6071 value buffer.
6072 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6073
7346c184
MK
60742004-04-14 Mark Kettenis <kettenis@gnu.org>
6075
6076 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6077 (vax_unwind_dummy_id): New functions.
6078 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6079 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6080 variables.
6081 (vax_fix_call_dummy): Remove function.
6082 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6083 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6084 call_dummy_location, deprecated_call_dummy_words,
6085 deprecated_sizeof_call_dummy_words,
6086 deprecated_call_dummy_breakpoint_offset,
6087 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6088 and deprecated_dummy_write_sp.
6089
58e23df4
DC
60902004-04-13 David Carlton <carlton@kealia.com>
6091
6092 * MAINTAINERS: Move myself to "paper trail" section.
6093
5e6b39ff
MK
60942004-04-12 Mark Kettenis <kettenis@gnu.org>
6095
7def7fef
MK
6096 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6097 "trad-frame.h".
6098 (vax_frame_init_saved_regs): Remove function.
6099 (vax_sigtramp_saved_pc): Remove function.
6100 (vax_frame_saved_pc): Remove function.
6101 (vax_frame_args_address): Remove function.
6102 (vax_frame_num_args): Rewrite.
6103 (vax_frame_chain): Remove function.
6104 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6105 VAX_FP_REGNUM.
6106 (vax_pop_frame): Likewise.
6107 (vax_saved_pc_after_call): Remove function.
6108 (struct vax_frame_cache): New structure.
6109 (vax_frame_cache): New function.
6110 (vax_frame_this_id): New function.
6111 (vax_frame_prev_register): New function.
6112 (vax_frame_unwind): New variable.
6113 (vax_frame_sniffer): New function.
6114 (vax_frame_base_address): New function.
6115 (vax_frame_args_address): New function.
6116 (vax_frame_base): New variable.
6117 (vax_unwind_pc): New function.
6118 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6119 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6120 deprecated_frame_chain, deprecated_frame_saved_pc,
6121 deprecated_frame_args_address and
6122 deprecated_frame_init_saved_regs.
6123 * Makefile.in (vax-tdep.o): Update dependencies.
6124
53284fc1
MK
6125 * vaxbsd-nat.c: New file.
6126
5e6b39ff
MK
6127 * vax-tdep.h: Update copyright year. Adjust comments.
6128 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6129 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6130 (vax_regnum): New enum. Replacing...
6131 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6132 (VAX_PS_REGNUM): ... these removed macros.
6133 * vax-tdep.c (vax_register_name): Remove prototype.
6134 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6135 (vax_register_byte, vax_register_raw_size,
6136 vax_register_virtual_size, vax_register_virtual_type): Remove
6137 functions.
6138 (vax_register_type): New function.
6139 (vax_breakpoint_from_pc): Reorganize.
6140 (vax_gdbarch_init): Set register_type. Don't set
6141 deprecated_register_size, deprecated_register_bytes,
6142 deprecated_register_byte, deprecated_register_raw_size,
6143 deprecated_max_register_raw_size,
6144 deprecated_register_virtual_size,
6145 deprecated_max_register_virtual_size and
6146 deprecated_register_virtual_type. Add comment on stack direction.
6147
e9c71e9f
MK
61482004-04-11 Mark Kettenis <kettenis@gnu.org>
6149
6150 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6151 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6152 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6153
d46f1176 61542004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6155
d46f1176
RC
6156 * MAINTAINERS (write after approval): Add myself.
6157
a2a84a72
RC
61582004-04-07 Randolph Chung <tausq@debian.org>
6159
6160 * hppa-tdep.c (hppa_inner_than): Remove.
6161 (is_pa_2): Remove unused static variable.
8718a420 6162 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6163
e85c3284
PH
61642004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6165
6166 * language.h (language_defn): Add new la_post_parser field.
6167 * parser-defs.h (null_post_parser): New declaration (default for
6168 la_post_parser).
8718a420 6169
e85c3284
PH
6170 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6171 insert call to that function.
6172 (parse_exp_in_context): New function, including code formerly in
8718a420 6173 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6174 prefixification.
6175 (parse_expression_in_context): New exported function.
6176 (null_post_parser): New definition.
6177 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6178
e85c3284
PH
6179 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6180 * c-lang.c (c_language_defn): Ditto.
6181 (cplus_language_defn): Ditto.
6182 (asm_language_defn): Ditto.
6183 (minimal_language_defn): Ditto.
6184 * f-lang.c (f_language_defn): Ditto.
6185 * jv-lang.c (java_language_defn): Ditto.
6186 * language.c (unknown_language_defn): Ditto.
6187 (auto_language_defn): Ditto.
6188 (local_language_defn): Ditto.
6189 * m2-lang.c (m2_language_defn): Ditto.
6190 * scm-lang.c (scm_language_defn): Ditto.
6191 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6192
d9f8c85b
MK
61932004-04-10 Mark Kettenis <kettenis@gnu.org>
6194
fa34704a
MK
6195 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6196 (amd64nbsd_mcontext_addr): New function.
6197 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6198 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6199 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6200
403e1656
MK
6201 * corelow.c (core_xfer_partial): Fix coding standards violation.
6202 Add support for TARGET_OBJECT_WCOOKIE.
6203
a57e5a95
MK
6204 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6205 deprecated_pc_in_sigtramp.
6206 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6207 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6208 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6209 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6210 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6211 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6212 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6213
377d9ebd
MK
6214 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6215 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6216 Fix typo.
6217
f0ef85a5
MK
6218 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6219 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6220 (amd64_collect_fxsave): Likewise.
6221
d9f8c85b
MK
6222 * i386-sol2-tdep.c: Include "gdb_string.h".
6223 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6224 name.
6225 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6226
75f501b5
MK
62272004-04-10 Mark Kettenis <kettenis@gnu.org>
6228
6229 * i386-sol2-tdep.c: Include "solib-svr4.h".
6230 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6231 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6232 * config/i386/tm-i386sol2.h: Include :solib.h".
6233 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6234 solib-svr4.o and solib-legacy.o.
6235 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6236 solib-svr4.o.
6237
b31bc724
MK
62382004-04-09 Mark Kettenis <kettenis@gnu.org>
6239
18bbbd9e
MK
6240 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6241 whether a register is supplied by PTRACE_GETFPREGS.
6242 (store_inferior_registers): Likewise.
6243 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6244 whether a register is supplied by PT_GETFPREGS.
6245 (store_inferior_registers): Likewise.
6246
3c30bf1b
MK
6247 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6248 * config/i386/linux64.mt (TDEPFILES): Likewise.
6249
a4194092
MK
6250 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6251
911bc6ee
MK
6252 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6253 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6254 the program counter is in the range specified by `struct
6255 gdbarch_tdep'.
6256 * amd64-linux-tdep.c: Include "symtab.h".
6257 (amd64_linux_pc_in_sigtramp): Remove function.
6258 (amd64_linux_sigtramp_p): New function.
6259 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6260 deprecated_pc_in_sigtramp.
6261 * amd64nbsd-tdep.c: Include "symtab.h".
6262 (amd64nbsd_sigtramp_p): New function.
6263 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6264 deprecated_pc_in_sigtramp.
6265 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6266 few comments.
6267 (amd64obsd_pc_in_sigtramp): Remove function.
6268 (amd64obsd_sigtramp_p): New function.
6269 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6270 deprecated_pc_in_sigtramp.
6271 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6272 (i386bsd_pc_ins_sigtramp): Remove prototype.
6273 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6274 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6275 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6276 the program counter is in the range specified by `struct
6277 gdbarch_tdep'.
6278 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6279 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6280 (i386_go32_pc_in_sigtramp): Remove function.
6281 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6282 Initialize TDEP->sigtramp_p.
6283 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6284 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6285 deprecated_pc_in_sigtramp.
6286 * i386-linux-tdep.c: Adjust comments.
6287 (i386_linux_pc_in_sigtramp): Remove function.
6288 (i386_linux_sigtramp_p): New function.
6289 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6290 deprecated_pc_in_sigtramp.
6291 * i386-nto-tdep.c: Update copyright year.
6292 (i386nto_pc_in_sigtramp): Remove function.
6293 (i386nto_sigtramp_p): New function.
6294 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6295 SP_REGNUM.
6296 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6297 deprecated_pc_in_sigtramp.
6298 * i386-sol2-tdep.c: Update copyright year.
6299 (i386_sol2_pc_in_sigtramp): Remove function.
6300 (i386_sol2_sigtramp_p): New function.
6301 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6302 deprecated_pc_in_sigtramp.
6303 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6304 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6305 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6306 deprecated_sigtramp_start and deprecated_sigtramp_end.
6307 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6308 (i386nbsd_pc_in_sigtramp): Remove function.
6309 (i386nbsd_sigtramp_p): New function.
6310 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6311 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6312 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6313 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6314 (i386obsd_pc_in_sigtramp): Remove function.
6315 (i386obsd_sigtramp_p): New function.
6316 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6317 functions.
6318 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6319 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6320 TDEP->sigtramp_p.
6321 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6322 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6323 dependencies.
6324
e083e6ec
MK
6325 * config/i386/i386aout.mt: Remove file.
6326
bd153b94
MK
6327 * configure.tgt: Remove i[34567]86-*-go32*,
6328 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6329 and i[34567]86-*-isc*. Set gdb_target to i386 for
6330 i[34567]86-*-netware* and i[34567]86-*-*.
6331 * config/i386/i386.mt: New file.
6332 * config/i386/embed.mt: Remove file.
6333 * config/i386/go32.mt: Remove file.
6334 * config/i386/i386nw.mt: Remove file.
6335 * config/i386/i386v.mt: Remove file.
6336 * config/i386/tm-go32.h: Remove file.
6337
4a1bcc8c
MK
6338 * tui/tui-hooks.c: Include "readline/readline.h" after
6339 "gdb_curses.h" instead of before.
6340 * tui/tui-io.c: Likewise.
6341
f9a79064
MK
6342 * tui/tui.c: Fix typo in comment.
6343
b31bc724
MK
6344 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6345
f83f82bc
AC
63462004-04-08 Andrew Cagney <cagney@redhat.com>
6347
6348 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6349 (deprecated_exception_support_initialized): Declare.
8718a420 6350 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6351 (initialize_hp_cxx_exception_support)
6352 (child_enable_exception_callback): Update.
6353 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6354 (deprecated_exception_support_initialized): Rename
6355 deprecated_exception_catchpoints_are_fragile and
6356 deprecated_exception_support_initialized.
6357 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6358
6359 * symtab.c (deprecated_hp_som_som_object_present): Rename
6360 hp_som_som_object_present.
6361 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6362 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6363 Update. Delete extern declaration.
6364 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6365 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6366 (parse_nested_classes_for_hpacc): Ditto.
6367 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6368 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6369 (initialize_hp_cxx_exception_support): Ditto.
6370 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6371 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6372 (cp_print_class_method): Ditto.
8718a420 6373 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6374 (c_type_print_base): Ditto.
6375 * c-exp.y (hp_som_som_object_present): Ditto.
6376
fb2be677
AC
63772004-04-08 Andrew Cagney <cagney@redhat.com>
6378
6379 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6380 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6381 (frame_unwind_find_by_frame): Re-implement the unwind code so
6382 that it can both prepend and append sniffers. Replace
6383 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6384 * tramp-frame.c (tramp_frame_append): Use
6385 frame_unwind_prepend_unwinder.
6386 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6387 frame_unwind_register_unwinder.
6388 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6389 tramp_frame_append.
6390 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6391 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6392 (mips_linux_init_abi): Update.
6393
67faf007
KB
63942004-04-08 Kevin Buettner <kevinb@redhat.com>
6395
6396 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6397 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6398 file support.
6399
8973ff21
KB
64002004-04-07 Kevin Buettner <kevinb@redhat.com>
6401
6402 * ia64-tdep.c (elf.h): Don't include.
6403 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6404
4a0e2f88
JM
64052004-04-07 Jason Molenda (jmolenda@apple.com)
6406
6407 * frame.h: Typeo corrections in comments.
6408
9872ad24
JB
64092004-04-07 Jim Blandy <jimb@redhat.com>
6410
6411 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6412 %esp and %ebp
6413
70b216c8
MK
64142004-04-07 Mark Kettenis <kettenis@gnu.org>
6415
11d5789c
MK
6416 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6417 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6418 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6419 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6420 and solib-legacy.o.
6421 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6422 solib-svr4.o.
6423 * config/sparc/tm-sol2.h: Update copyright year. Include
6424 "solib.h".
6425
70b216c8
MK
6426 * sparc-sol2-tdep.c: Update copyright year. Include
6427 "solib-svr4.h".
6428 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6429 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6430 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6431 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6432 dependencies.
6433
6339dc9e
AC
64342004-04-06 Andrew Cagney <cagney@redhat.com>
6435
6436 * infttrace.c: Include "infttrace.h".
6437 * infttrace.h: Include "target.h".
6438 * Makefile.in (infttrace_h): Update.
6439 (infttrace.o): Update.
8718a420 6440
93449403
AC
64412004-04-06 Andrew Cagney <cagney@redhat.com>
6442
6d518969
AC
6443 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6444 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6445 move extern declarations from here ...
6446 * infttrace.h: ... to here.
6447 * Makefile.in (hppah-nat.o): Update dependencies.
6448
85f4f2d8
AC
6449 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6450 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6451 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6452 (hppa_breakpoint_from_pc): Delete.
6453
93449403
AC
6454 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6455
71456ec6
AC
64562004-04-05 Andrew Cagney <cagney@redhat.com>
6457
6458 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6459 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6460 <sys/file.h>.
8718a420 6461
4c02c60c
AC
64622004-04-06 Randolph Chung <tausq@debian.org>
6463
6464 Committed by Andrew Cagney (mechanical change).
6465 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6466 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6467 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6468 child_enable_exception_callback, current_ex_event,
6469 null_symtab_and_line, child_get_current_exception_event,
6470 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6471 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6472 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6473 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6474 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6475 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6476 Move hpux-specific definitions ...
6477 * hppa-hpux-tdep.c: ... to here.
6478
3a515653
AC
64792004-04-05 Andrew Cagney <cagney@redhat.com>
6480
6481 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6482 skip_prologue_using_sal.
6483
c1730d02
AC
64842004-04-05 Andrew Cagney <cagney@redhat.com>
6485
6486 * config/i386/tm-i386.h: Delete file.
6487 * config/i386/tm-vxworks.h: Update copyright, do not include
6488 "tm-i386.h".
6489 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6490 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6491 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6492 * config/i386/ncr3000.mt (TM_FILE): Delete.
6493 * config/i386/interix.mt (TM_FILE): Delete.
6494 * config/i386/i386v.mt (TM_FILE): Delete.
6495 * config/i386/i386nw.mt (TM_FILE): Delete.
6496 * config/i386/i386gnu.mt (TM_FILE): Delete.
6497 * config/i386/i386aout.mt (TM_FILE): Delete.
6498 * config/i386/embed.mt (TM_FILE): Delete.
6499
8b67aa36
KB
65002004-04-05 Kevin Buettner <kevinb@redhat.com>
6501
6502 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6503 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6504 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6505 (accg7_regnum): New constants.
6506 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6507 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6508 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6509 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6510 for accg registers.
6511 (frv_register_sim_regno): Update spr_map[].
6512
3c7012f5
AC
65132004-04-04 Andrew Cagney <cagney@redhat.com>
6514
6515 * config/mips/xm-riscos.h: Delete.
6516 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6517 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6518 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6519 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6520 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6521 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6522 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6523 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6524 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6525 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6526 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6527 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6528 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6529 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6530 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6531 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6532 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6533 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6534 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6535 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6536 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6537 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6538 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6539 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6540 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6541 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6542
3c7012f5
AC
6543 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6544 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6545 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6546 * configure.host: Remove m680[01]0-sun-sunos3*,
6547 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6548 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6549 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6550 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6551 mips-*-riscos*.
6552 * NEWS: Mention removed systems.
6553
99d16a21
AC
65542004-04-04 Andrew Cagney <cagney@redhat.com>
6555
6556 GDB 6.1 release created from 6.1 branch.
6557
6cdf9d98
AC
65582004-04-04 Andrew Cagney <cagney@redhat.com>
6559
98d346c3
AC
6560 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6561 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6562 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6563
6cdf9d98
AC
6564 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6565 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6566 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6567
859a326d
JB
65682004-04-03 Jim Blandy <jimb@redhat.com>
6569
6570 * MAINTAINERS: Chris Faylor has changed employers; add him to
6571 "paper trail" section, and update his E-mail address.
6572
b87178c3
AC
65732004-04-03 Andrew Cagney <cagney@redhat.com>
6574
4ea2acf0
AC
6575 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6576 generic dummy frames.
6577 * dummy-frame.c: Update copyright.
6578 (dummy_frame_sniffer): Delete check for generic dummy frames.
6579
d0bd2d18 6580 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6581 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6582 (REG_PARM_STACK_SPACE): Delete.
6583 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6584 Inline reference to REG_PARM_STACK_SPACE.
6585
b87178c3
AC
6586 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6587 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6588 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6589 (FRAME_BASE_BEFORE_SIGTRAMP)
6590 (hppa32_hpux_frame_base_before_sigtramp)
6591 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6592 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6593 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6594 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6595 (FRAME_BASE_BEFORE_SIGTRAMP)
6596 (hppa64_hpux_frame_base_before_sigtramp)
6597 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6598
43e2e1a0
AC
65992004-04-03 Andrew Cagney <cagney@redhat.com>
6600
6601 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6602
ddc135a4
AC
66032004-04-02 Andrew Cagney <cagney@redhat.com>
6604
6605 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6606 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6607 * dummy-frame.h: Delete out-of-date comments.
6608 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6609 * gdbarch.h, gdbarch.c: Re-generate.
6610
d15bfd3a 66112004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6612
d15bfd3a
AC
6613 Committed by Andrew Cagney <cagney@redhat.com>.
6614 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6615 into account an instruction saving a register if we have already
6616 seen an earlier instruction saving that same register.
6617
f04ceafa
AC
66182004-04-02 Andrew Cagney <cagney@redhat.com>
6619
08be3abd
AC
6620 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6621 * gdbarch.h, gdbarch.c: Re-generate.
6622 * frame.c (legacy_get_prev_frame): Delete references to
6623 DEPRECATED_INIT_FRAME_PC_FIRST.
6624
f04ceafa
AC
6625 * infrun.c (pc_in_sigtramp): Delete function.
6626 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6627 get_frame_type.
6628
08e69816
AC
66292004-04-02 Andrew Cagney <cagney@redhat.com>
6630
6631 * infrun.c (handle_step_into_function): Delete code conditional on
6632 legacy_frame_p.
6633 (handle_inferior_event, step_over_function): Ditto.
6634
adb54772
AC
66352004-04-02 Andrew Cagney <cagney@redhat.com>
6636
6637 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6638 "previous frame inner to this frame" test.
6639
304396fb
AC
66402004-04-02 Andrew Cagney <cagney@redhat.com>
6641
6642 * frame.c (safe_frame_unwind_memory): New function.
6643 * frame.h (safe_frame_unwind_memory): Declare. Update description
6644 of /safe_/ methods.
6645 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6646 "next_frame". Use safe_frame_unwind_memory.
6647 (tramp_frame_sniffer): Update call to tramp_frame_start.
6648
6502dd73
DJ
66492004-04-01 Daniel Jacobowitz <drow@mvista.com>
6650
6651 * dwarf2read.c (dwarf2_objfile_data_key): New.
6652 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6653 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6654 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6655 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6656 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6657 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6658 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6659 Remove variables.
6660 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6661 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6662 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6663 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6664 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6665 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6666 Remove macros.
6667 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6668 data.
6669 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6670 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6671 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6672 (read_partial_die, read_full_die, read_indirect_string)
6673 (dwarf_decode_line_header, dwarf_decode_macros)
6674 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6675 Update uses of removed variables.
6676 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6677 of removed macros.
6678 (_initialize_dwarf2_read): New function.
6679 * symfile.h (dwarf2_has_info): Update prototype.
6680 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6681 * elfread.c (elf_symfile_read): Likewise.
6682
408752b0
JB
66832004-04-01 Jim Blandy <jimb@redhat.com>
6684
9f744501
JB
6685 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6686 function for register numbers on all the rs6000-derived targets.
6687 (rs6000_gdbarch_init): Don't register a separate
6688 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6689 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6690 variants.
6691
408752b0
JB
6692 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6693 numbering.
6694
2de41bce
PH
66952004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6696
6697 * valarith.c: Update copyright notice.
6698 (value_add): Handle range types.
6699 (value_sub): Ditto.
6700 (value_equal): Ditto.
6701 (value_less): Ditto.
6702 (value_neg): Ditto.
6703 (value_complement): Ditto.
8718a420 6704 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6705 eliminiating unnecessary COERCE_ENUMs.
8718a420 6706
5613d8d3
AC
67072004-03-31 Andrew Cagney <cagney@redhat.com>
6708
6709 * frame.h (frame_unwind_id): Declare.
6710 * frame.c (frame_unwind_id): New function.
6711 (get_prev_frame_1): New function.
6712 (frame_debug_got_null_frame): New function.
6713 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6714 code proper to prev_frame, update description.
6715 * infrun.c (step_over_function): Use frame_unwind_id.
6716
c4557624
JB
67172004-04-31 J. Brobecker <brobecker@gnat.com>
6718
6719 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6720 (hppa64_push_dummy_call): Likewise.
6721
3e6bb910
JB
67222004-03-30 Jim Blandy <jimb@redhat.com>
6723
6724 From Ulrich Weigand:
6725 * utils.c (query): Do not use a va_list variable multiple times.
6726
a2f23071
DJ
67272004-03-29 Daniel Jacobowitz <drow@mvista.com>
6728
6729 * Makefile.in (linux_nat_h): Update dependencies.
6730 * configure.in: Check for <gnu/libc-version.h>.
6731 * configure: Regenerate.
6732 * config.in: Regenerate.
6733 * linux-nat.h: Include "target.h". Add waitstatus field to
6734 struct lwp_info.
6735 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6736 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6737 to.
6738 (lin_lwp_handle_extended): New function. Handle clone events.
6739 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6740 thread exit events.
6741 (child_wait): Handle clone events.
6742 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6743 * linux-nat.c (linux_enable_event_reporting): Turn on
6744 PTRACE_O_TRACECLONE.
6745 (linux_handle_extended_wait): Handle clone events.
6746 * thread-db.c: Include <gnu/libc-version.h>.
6747 (struct private_thread_info): Add dying flag.
6748 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6749 higher.
6750 (attach_thread): Update comments. Handle dying threads.
6751 (detach_thread): Set the dying flag.
6752 (check_event): Always call attach_thread.
6753
8d5f9dcb
DJ
67542004-03-29 Daniel Jacobowitz <drow@mvista.com>
6755
6756 * mips-tdep.c (mips_pdr_data): New.
6757 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6758 (_initialize_mips_tdep): Initialize mips_pdr_data.
6759
66337bb1
CV
67602004-03-29 Corinna Vinschen <vinschen@redhat.com>
6761
6762 * minsyms.c (install_minimal_symbols): Move dropping leading
6763 char from linkage name from here...
6764 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6765 test for "__gnu_compiled*" symbols.
6766
e802b915
JB
67672004-03-28 Jim Blandy <jimb@redhat.com>
6768
6769 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6770 registers to temp register r0 and byte stores as prologue
6771 instructions.
6772
72b56458
AC
67732004-03-28 Andrew Cagney <cagney@redhat.com>
6774
6775 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6776 arm*-*-*.
6777
0bfbda3b
SC
67782004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6779
6780 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6781 and switch the layout to force a display of register window.
6782
5a7225ed
JB
67832004-02-26 J. Brobecker <brobecker@gnat.com>
6784
6785 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6786 of the INTEGER class.
6787
81a07a45
JB
67882004-03-26 Jim Blandy <jimb@redhat.com>
6789
6790 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6791 bytes long on PPC GNU/Linux.
6792
8c691c7a
DC
67932004-03-26 David Carlton <carlton@kealia.com>
6794
6795 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6796
103a0089
AC
67972004-03-25 Andrew Cagney <cagney@redhat.com>
6798
6799 * PROBLEMS: Add general section titles, remove references to
6800 specific releases.
6801
7a5ea0d4
DJ
68022004-03-25 Daniel Jacobowitz <drow@mvista.com>
6803
6804 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6805 INT_REGISTER_SIZE.
6806 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6807 FP_REGISTER_VIRTUAL_SIZE.
6808 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6809 of DEPRECATED_REGISTER_RAW_SIZE.
6810 (arm_register_type): Add gdbarch argument.
6811 (arm_register_raw_size, arm_register_virtual_size): Delete.
6812 (arm_register_byte, arm_extract_return_value)
6813 (arm_store_return_value, arm_get_longjmp_target): Update references
6814 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6815 (arm_gdbarch_init): Likewise. Don't set
6816 deprecated_register_raw_size, deprecated_register_virtual_size,
6817 deprecated_max_register_raw_size,
6818 deprecated_max_register_virtual_size, or
6819 deprecated_max_register_virtual_type. Do set register_type.
6820 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6821 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6822 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6823 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6824 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6825 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6826 INT_REGISTER_SIZE.
6827 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6828 (remote_rdp_store_register): Likewise.
6829
5792a79b
DJ
68302004-03-24 Daniel Jacobowitz <drow@mvista.com>
6831
6832 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6833 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6834 to after osabi initialization.
6835 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6836 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6837 functions.
6838 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6839 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6840 variables.
6841 (mips_linux_init_abi): Append signal trampoline unwinders.
6842
1196bfda
AC
68432004-03-24 Andrew Cagney <cagney@redhat.com>
6844
6845 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6846 * tramp-frame.c: Include "gdb_assert.h".
6847 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6848 correct sizeof.
6849 (tramp_frame_append): Validate the tramp frame's instructions.
6850 * Makefile.in (tramp-frame.o): Update dependencies.
6851
4be282b4
AC
68522004-03-23 Andrew Cagney <cagney@redhat.com>
6853
6854 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6855
69aec09b
AC
68562004-03-23 Andrew Cagney <cagney@redhat.com>
6857
6858 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6859 Nasser as past testsuite/lib/ (and other) maintainers.
6860
63ed89b4
DJ
68612004-03-23 Daniel Jacobowitz <drow@mvista.com>
6862
6863 * infcmd.c (attach_command): Reread symbols if we already have
6864 an exec file.
6865
f3b36427
AC
68662004-03-23 Andrew Cagney <cagney@redhat.com>
6867
6868 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6869
aa2a3f87
AC
68702004-03-23 Andrew Cagney <cagney@redhat.com>
6871
6872 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6873 * gdbarch.h, gdbarch.c: Re-generate.
6874 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6875 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6876 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6877 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6878 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6879 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6880 (DEPRECATED_SIGTRAMP_START): Update.
6881 * blockframe.c (find_pc_sect_partial_function): Update.
6882 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6883
00cac895
DJ
68842004-03-23 Daniel Jacobowitz <drow@mvista.com>
6885
6886 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6887 if necessary.
6888
f561f026
AC
68892004-03-23 Andrew Cagney <cagney@redhat.com>
6890
6891 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6892 predicate, deprecate.
6893 * gdbarch.h, gdbarch.c: Re-generate.
6894 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6895 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6896 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6897 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6898 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6899 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6900 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6901 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6902 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6903 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6904 * blockframe.c (find_pc_partial_function): Update.
6905 * breakpoint.c (bpstat_what): Update.
6906 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6907 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6908 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6909 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6910 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6911 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6912 * i386-nto-tdep.c (i386nto_init_abi): Update.
6913 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6914 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6915 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6916 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6917 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6918 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6919 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6920 * infrun.c (pc_in_sigtramp): Update.
6921 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6922 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6923 * mips-tdep.c (mips_gdbarch_init): Update.
6924 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6925 * ppc-linux-tdep.c: Update comment.
6926 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6927 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6928 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6929 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6930 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6931 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6932 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6933 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6934 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6935 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6936
8050c72f
AC
69372004-03-23 Andrew Cagney <cagney@redhat.com>
6938
d2259dd3
AC
6939 * tramp-frame.h, tramp-frame.h: New files.
6940 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6941 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6942
8050c72f
AC
6943 * Makefile.in: Update all dependencies.
6944
0db9b4b7
AC
69452004-03-23 Andrew Cagney <cagney@redhat.com>
6946
6947 * Makefile.in (trad_frame_h): Add $(frame_h).
6948 * trad-frame.h: Update copyright. Include "frame.h".
6949 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6950 (trad_frame_set_id, trad_frame_get_id): Declare.
6951 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6952 * trad-frame.c: Update copyright.
6953 (struct trad_frame_cache): Define.
6954 (trad_frame_cache_zalloc): New function.
6955 (trad_frame_set_id, trad_frame_get_id): New functions.
6956 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6957
8e645ae7
AC
69582004-03-22 Andrew Cagney <cagney@redhat.com>
6959
6960 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6961 s390_pltstub_unwind_cache.
6962 (s390_stub_frame_unwind_cache): Rename
6963 s390_pltstub_frame_unwind_cache.
6964 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6965 (s390_stub_frame_prev_register): Rename
6966 s390_pltstub_frame_prev_register.
6967 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6968 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6969
6970 From Ulrich Weigand:
6971 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6972 pointer calls like PLT calls.
6973
34fcf120
DJ
69742004-03-22 Daniel Jacobowitz <drow@mvista.com>
6975
6976 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6977 PC rather than the partial function start address. Use the start
6978 address to sanity check the found PDR.
6979
5b917078
DJ
69802004-03-22 Daniel Jacobowitz <drow@mvista.com>
6981
6982 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6983 linux_handle_extended_wait.
6984
8adf9e78
AC
69852004-03-22 Andrew Cagney <cagney@redhat.com>
6986
c3122434
AC
6987 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6988 function.
6989
8adf9e78
AC
6990 * frame.h (generic_pop_current_frame): Delete declaration.
6991 (deprecate_pop_dummy_frame): Deprecate
6992 generic_pop_dummy_frame.
6993 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6994 (generic_pop_current_frame): Delete function.
6995 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6996 generic_pop_current_frame.
6997 * v850-tdep.c (v850_pop_frame): Update.
6998 * mcore-tdep.c (mcore_pop_frame): Update.
6999 * sh64-tdep.c (sh64_pop_frame): Update.
7000 * h8300-tdep.c (h8300_pop_frame): Update.
7001
90ba813f
AC
70022004-03-22 Andrew Cagney <cagney@redhat.com>
7003
7004 * frame.h (deprecated_pc_in_call_dummy): Rename
7005 generic_pc_in_call_dummy.
7006 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7007 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7008 generic_pc_in_call_dummy.
7009 (pc_in_dummy_frame): Make static.
7010 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7011 * gdbarch.h, gdbarch.c: Re-generate.
7012 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7013 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7014 (legacy_get_prev_frame): Ditto.
7015 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7016 comment.
8718a420 7017
ca4bb888
AC
70182004-03-21 Andrew Cagney <cagney@redhat.com>
7019
244675f9
AC
7020 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7021 declaration and out-of-date comment.
7022 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7023 Delete function.
7024 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7025 deprecated_pc_in_call_dummy.
7026
ca4bb888
AC
7027 * infrun.c (handle_inferior_event): For non legacy frames, use the
7028 frame ID and frame type to identify a signal trampoline. Update
7029 comments.
7030
1777c7b4
NW
70312004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7032
7033 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7034 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7035
82417da5
AC
70362004-03-21 Andrew Cagney <cagney@redhat.com>
7037
7038 * frame-unwind.h: Update copyright.
7039 (struct frame_data): Add opaque declaration.
7040 (frame_sniffer_ftype): Declare.
7041 (struct frame_unwind): Add "unwind_data" and "sniffer".
7042 (frame_unwind_register_unwinder): Declare.
7043 (frame_unwind_find_by_frame): Add parameter "this_cache".
7044 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7045 (legacy_get_prev_frame, legacy_get_prev_frame)
7046 (get_frame_type): Pass the prologue_cache to
7047 frame_unwind_find_by_frame.
7048 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7049 "unwinder".
7050 (frame_unwind_register_unwinder): New function.
7051 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7052
b2ba182e
PH
70532004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7054
7055 * bcache.c (print_percentage): Use floating point to avoid
7056 incorrect results when portion*100 overflows.
7057
81332287
KB
70582004-03-19 Kevin Buettner <kevinb@redhat.com>
7059
7060 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7061 (ppc_linux_init_extra_frame_info)
7062 (ppc_linux_frameless_function_invocation)
7063 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7064 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7065 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7066 (rs6000_frame_chain): Delete declarations.
7067 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7068 (ppc_linux_init_extra_frame_info)
7069 (ppc_linux_frameless_function_invocation)
7070 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7071 (ppc_linux_init_abi): Remove registration of above deleted functions.
7072 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7073 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7074 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7075 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7076 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7077 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7078 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7079 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7080 frame management for all OSABIs.
7081
61a65099
KB
70822004-03-19 Andrew Cagney <cagney@redhat.com>
7083
7084 Committed by Kevin Buettner <kevinb@redhat.com>.
7085
7086 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7087 Update copyright.
7088 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7089 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7090 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7091 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7092 unwinders. #ifdef legacy frame code.
7093 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7094 "frame-base.h".
7095 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7096 (struct rs6000_frame_cache, rs6000_frame_cache)
7097 (rs6000_frame_this_id, rs6000_frame_prev_register)
7098 (rs6000_frame_sniffer, rs6000_frame_unwind)
7099 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7100 (rs6000_frame_base): Implement a traditional frame unwinder.
7101 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7102 frame unwinder.
7103
88f7da05
KB
71042004-03-19 Kevin Buettner <kevinb@redhat.com>
7105
7106 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7107 breakpoint address for watchpoints or the catch eventpoints.
7108 Add new paramter ``bptype''. Adjust all callers.
7109
f826dce1
AC
71102004-03-19 Andrew Cagney <cagney@redhat.com>
7111
33cb8b0f
AC
7112 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7113
f826dce1
AC
7114 * PROBLEMS: Delete note that ARM does not use frame code, problem
7115 fixed.
7116
43b1ab88
AC
71172004-03-18 Andrew Cagney <cagney@redhat.com>
7118
292ab034
AC
7119 * stack.c (return_command): Delete code wrapped in #ifdef
7120 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7121
43b1ab88
AC
7122 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7123
dbfe4626
AC
71242004-03-18 Andrew Cagney <cagney@redhat.com>
7125
7126 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7127 DEPRECATED_IN_SIGTRAMP.
7128 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7129 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7130 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7131 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7132 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7133 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7134 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7135 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7136 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7137 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7138
0cad6aec
AC
71392004-03-18 Andrew Cagney <cagney@redhat.com>
7140
7141 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7142 (struct frame_base_table_entry): Define.
7143 (struct frame_base_table): Re-implement as a linked list.
7144 (frame_base_init): Re-implement.
7145 (frame_base_table): Delete function.
7146 (append_predicate): Delete function.
7147 (frame_base_append_sniffer): Update.
7148 (frame_base_set_default): Update.
7149 (frame_base_find_by_frame): Update.
7150 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7151 * Makefile.in (frame-base.o): Update dependencies.
7152
9982c2e7
AC
71532004-03-17 Andrew Cagney <cagney@redhat.com>
7154
7155 * frame.c (legacy_get_prev_frame): Pass correct frame to
7156 frame_unwind_find_by_frame.
7157
8dfe8985
DC
71582004-03-17 David Carlton <carlton@kealia.com>
7159
7160 * NEWS: Mention C++ nested types and namespaces
7161
ed47347a
MC
71622004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7163
7164 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7165 and "Regressions since gdb 5.3.". Add known regressions since
7166 gdb 6.0.
7167
90aeadfc
DC
71682004-03-16 David Carlton <carlton@kealia.com>
7169
7170 * dwarf2read.c (process_structure_scope): Process children even
7171 when we're a declaration.
7172
73912b9b
AC
71732004-03-16 Andrew Cagney <cagney@redhat.com>
7174
7175 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7176 * blockframe.c (find_pc_partial_function)
7177 (find_pc_sect_partial_function): Merge into a single
7178 find_pc_partial_function.
7179
283accbc
MK
71802004-03-16 Mark Kettenis <kettenis@gnu.org>
7181
7182 * i386bsd-nat.c: s/regno/regnum/g.
7183 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7184 FP0_REGNUM.
7185 (store_inferior_registers): Likewise.
7186
f5b1afdf
MK
71872004-03-16 Mark Kettenis <kettenis@gnu.org>
7188
7189 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7190 of i387_fill_fsave.
7191 (store_inferior_registers): Call i387_collect_fsave and
7192 i387_collect_fxsave instead of i387_fill_fsave and
7193 i387_fill_fxsave.
7194
41fe5eb3
AC
71952004-03-15 Andrew Cagney <cagney@redhat.com>
7196
7197 * Makefile.in (frame-unwind.o): Update dependencies.
7198 * frame-unwind.c: Include "gdb_obstack.h".
7199 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7200 parameter.
7201 (append_predicate): Delete function.
7202 (struct frame_unwind_table_entry): New structure.
7203 (struct frame_unwind_table): Replace "sniffer" with "head" and
7204 "tail".
7205 (frame_unwind_append_sniffer): Update.
7206 (frame_unwind_find_by_frame): Update.
7207 (_initialize_frame_unwind): Registe frame_unwind_init using
7208 gdbarch_data_register_pre_init.
7209
3f63813d
MK
72102004-03-15 Mark Kettenis <kettenis@gnu.org>
7211
7212 * i386bsd-nat.c: Update copyright year.
7213 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7214 define unconditionally.
7215
3248c325 72162004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7217
7218 * i387-tdep.h (i387_collect_fsave): New prototype.
7219 * i387-tdep.c (i387_collect_fsave): New function containing most
7220 of the code from i387_fill_fsave.
3248c325 7221 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7222
871fbe6a
MK
72232004-03-15 Mark Kettenis <kettenis@gnu.org>
7224
7225 * i386-linux-tdep.c: Update copyright year.
7226 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7227 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7228 svr4_ilp32_link_map_offsets instead of
7229 i386_linux_svr4_fetch_link_map_offsets.
7230
8176b9b8
DC
72312004-03-15 David Carlton <carlton@kealia.com>
7232
7233 Fix for PR c++/1553:
7234 * dwarf2read.c (read_structure_type): Determine type name by
7235 calling determine_class_name.
7236 (determine_class_name): New.
7237 (determine_prefix): Look at TYPE_TAG_NAME and call
7238 determine_class_name when appropriate.
7239 (determine_prefix_aux, class_name): Delete.
9d58e29d 7240 (read_namespace): Set die->type.
8176b9b8 7241
fe8bf7d7
KB
72422004-03-15 Kevin Buettner <kevinb@redhat.com>
7243
7244 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7245 unused macro definition. The definition in target.h (or perhaps
7246 elsewhere) takes precedence.
7247
ed6edd9b
AC
72482004-03-15 Andrew Cagney <cagney@redhat.com>
7249
f9be684a
AC
7250 * ppc-tdep.h: Update copyright.
7251 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7252 function signatures to match "regsets.h".
7253 * ppc-linux-tdep.c: Include "regset.h".
7254 (ELF_GREGSET_SIZE): Delete.
7255 (right_supply_register): New function.
7256 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7257 using right_supply_register.
7258 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7259 functions.
7260 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7261 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7262 (_initialize_ppc_linux_tdep): Do not register
7263 ppc_linux_regset_core_fns.
7264 (ppc_linux_regset_from_core_section): Replace
7265 fetch_core_registers.
7266 (ppc_linux_regset_core_fns): Delete.
7267 * ppc-linux-nat.c: (right_fill_reg): New function.
7268 (supply_gregset): Update call to ppc_linux_supply_gregset.
7269 (fill_gregset): Clear the register set, use right_fill_reg.
7270 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7271 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7272
ed6edd9b
AC
7273 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7274 unsigned.
7275
030f20e1
AC
72762004-03-15 Andrew Cagney <cagney@redhat.com>
7277
7278 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7279 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7280 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7281 and register_gdbarch_data.
7282 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7283 (struct gdbarch_data): Replace "init" by "pre_init" and
7284 "post_init".
7285 * gdbarch.h, gdbarch.c: Re-generate.
7286 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7287 with"obstack", use OBSTACK_ZALLOC.
7288 (dwarf2_frame_ops): Delete.
7289 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7290 (dwarf2_frame_init_reg): Use gdbarch_data.
7291 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7292 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7293 (_initialize_svr4_solib): Update.
7294 * user-regs.c (_initialize_user_regs): Update.
7295 * reggroups.c (_initialize_reggroup): Update.
7296 * regcache.c (_initialize_regcache): Update.
7297 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7298 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7299 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7300 * frame-unwind.c (_initialize_frame_unwind): Update.
7301 * frame-base.c (_initialize_frame_base): Update.
7302 * user-regs.c (user_reg_add): Update.
7303 * reggroups.c (reggroup_add): Update.
7304 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7305 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7306 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7307 * frame-base.c (frame_base_table): Update.
7308 * remote.c (_initialize_remote): Update.
7309 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7310
3111a3fc
AC
73112004-03-15 Andrew Cagney <cagney@redhat.com>
7312
7313 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7314
5ecb7103
KB
73152004-03-15 Kevin Buettner <kevinb@redhat.com>
7316
7317 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7318 * frv-linux-tdep.c: New file.
7319 * frv-tdep.c (struct gdbarch_tdep): Add new field
7320 ``sigcontext_reg_addr''.
7321 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7322 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7323 (frv_sigramp_frame_sniffer): New functions.
7324 (frv_sigtramp_frame_unwind): New static global.
7325 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7326 sniffers.
7327 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7328 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7329
1ccda5e9
KB
73302004-03-15 Kevin Buettner <kevinb@redhat.com>
7331
7332 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7333 but not via a call to error(), when unable to read memory.
7334
b375a0a5
KB
73352004-03-15 Kevin Buettner <kevinb@redhat.com>
7336
7337 * frv-tdep.c (frv_call_dummy_words): Delete.
7338 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7339
4fdf6121
AC
73402004-03-15 Andrew Cagney <cagney@redhat.com>
7341
7342 * infrun.c (handle_step_into_function, step_over_function): Only
7343 update and use STEP_FRAME_ID when the system is using legacy
7344 frames. Update comments.
7345
34021503
MK
73462004-03-14 Mark Kettenis <kettenis@gnu.org>
7347
187e21d1
MK
7348 * amd64-linux-tdep.h: Remove file.
7349 * amd64-linux-tdep.c: Don't include "inferior.h" and
7350 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7351 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7352 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7353 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7354 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7355 macros.
7356 (user_to_gdb_regmap): Remove variable.
7357 (amd64_linux_gregset_reg_offset): New variable.
7358 (amd64_core_fns): Remove variable.
7359 (fetch_core_registers): Remove function.
7360 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7361 functions.
7362 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7363 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7364 * Makefile.in (amd64_linux_tdep_h): Remove.
7365 (amd64-linux-nat.o): Update dependencies.
7366 (amd64-linux-tdep.o): Update dependencies.
7367
99679982
MK
7368 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7369 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7370 functions.
7371 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7372
34021503
MK
7373 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7374 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7375
134d01f1
DJ
73762004-03-14 Daniel Jacobowitz <drow@mvista.com>
7377
7378 * dwarf2read.c (read_structure_type): Rename from
8718a420 7379 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7380 Return immediately if die->type is set. Call read_type_die before
7381 dwarf2_add_member_fn.
7382 (process_structure_scope): New function.
7383 (read_enumeration_type, process_enumeration_scope): New functions,
7384 broken out from read_enumeration. Don't create the enumeration
7385 type if it has already been created.
7386 (read_enumeration): Removed.
7387 (process_die): Call read_structure_type, process_structure_scope,
7388 read_enumeration_type, and process_enumeration_scope. Just call
7389 new_symbol for base and subrange types. Add a comment about other
7390 type dies.
7391 (read_type_die): Call read_enumeration_type.
7392 (add_partial_structure, new_symbol): Update comments.
7393
65760afb
SC
73942004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7395
7396 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7397
10f59415
SC
73982004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7399
7400 * tui/tui-win.h (tui_get_cmd_list): Declare.
7401 * tui/tui-win.c (tui_command): New function.
7402 (tui_get_cmd_list): New function.
7403 (_initialize_tui_win): Moved initialization of tui command in
7404 tui_get_cmd_list.
7405
7406 * tui/tui-data.c (init_content_element): Setup new data members.
7407 (init_win_info): Likewise.
7408 (free_content_elements): Free it.
7409 * tui/tui-data.h (struct tui_data_element): Store the register
7410 content to print.
7411 (struct tui_data_info): Keep the current register group.
7412
7413 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7414
7415 * tui/tui-regs.h (tui_show_registers): Update prototype.
7416 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7417 (tui_resize_all): No need to calculate anything for register window.
7418 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7419 (tui_set_register_element, tui_set_general_regs_content): Remove.
7420 (tui_set_special_regs_content): Remove.
7421 (tui_set_general_and_special_regs_content): Remove.
7422 (tui_set_float_regs_content): Remove.
7423 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7424 (tui_set_regs_content): Remove.
7425 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7426 (tui_v_show_registers_command_support): Remove.
7427 (tui_show_registers): Use a reggroup to specify the registers to show.
7428 (tui_show_register_group): New function.
7429 (tui_display_registers_from): Compute the layout of register window
7430 and refresh with new API; be sure to delete old register windows.
7431 (tui_check_register_values): Update to use tui_get_register and
7432 tui_display_data.
7433 (tui_display_register): Just refresh the register window part.
7434 (tui_register_format): Format registers and save in tui_data_element.
7435 (tui_get_register): New to combine tui_reg_value_has_changed and
7436 tui_get_register_raw_value; fix to use the new gdb API.
7437 (tui_show_float_command): Renamed tui_reg_float_command.
7438 (tui_show_general_command): Renamed tui_reg_general_command.
7439 (tui_show_special_command): Renamed tui_reg_system_command.
7440 (_initialize_tui_regs): Remove unused commands.
7441
c3364ea4
MK
74422004-03-13 Mark Kettenis <kettenis@gnu.org>
7443
27d1e716
MK
7444 * NEWS (New native configurations): Mention OpenBSD/amd64.
7445
c3364ea4
MK
7446 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7447 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7448 Remove defines.
7449 * config/i386/nm-fbsd64.h: Likewise.
7450 * config/i386/nm-obsd.h: Likewise.
7451 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7452 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7453
b2d6d697
KB
74542004-03-12 Kevin Buettner <kevinb@redhat.com>
7455
7456 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7457 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7458 New constants.
7459
76e43199
KB
7460 From Richard Sandiford <rsandifo@redhat.com>:
7461 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7462
34ce532e
KB
74632004-03-12 Kevin Buettner <kevinb@redhat.com>
7464
7465 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7466 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7467 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7468 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7469 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7470 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7471 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7472 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7473 definitions from frv-tdep.c to frv-tdep.h.
7474
c4d10515
KB
74752004-03-12 Kevin Buettner <kevinb@redhat.com>
7476
7477 Add shared library support for FR-V FDPIC ABI:
7478 * Makefile.in (solib-frv.o): Add dependencies.
7479 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7480 New functions.
7481 (frv_push_dummy_call): Add support for FDPIC ABI.
7482 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7483 for FDPIC ABI.
7484 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7485 (frv_fdpic_find_canonical_descriptor): Declare.
7486 * solib-frv.c: New file.
7487 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7488 * config/frv/tm-frv.h (solib.h): Include.
7489
ed1bd989
KB
74902004-03-12 Kevin Buettner <kevinb@redhat.com>
7491
7492 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7493 (frv-tdep.o): Update dependencies.
7494 * frv-tdep.h: New file.
7495 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7496 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7497 constants.
7498 (struct gdbarch_tdep): Add new member ``frv_abi''.
7499 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7500 functions.
7501 (new_variant): Set ``frv_abi'' field.
7502 (gdb_arch_init): Detect FDPIC executables.
7503
82b38f72
MK
75042004-03-12 Mark Kettenis <kettenis@gnu.org>
7505
7506 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7507 wrapper.
7508
db1ea9ba
AC
75092004-03-11 Andrew Cagney <cagney@redhat.com>
7510
7511 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7512
f8766ec1
KB
75132004-03-11 Kevin Buettner <kevinb@redhat.com>
7514
7515 * solist.h (master_so_list): New function.
7516 * solib.c (master_so_list): Likewise.
7517 * solib-svr4.c (enable_break): Iterate over so_list entries
7518 obtained from master list instead of entries obtained directly
7519 via svr4_current_sos().
7520
523f6a27
BE
75212004-03-10 Ben Elliston <bje@gnu.org>
7522
7523 * MAINTAINERS: Update my mail address.
7524
37814c18
KI
75252004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7526
7527 * remote-m32r-sdi.c: Support hardware watchpoint.
7528
8b9740d8
DJ
75292004-03-09 Daniel Jacobowitz <drow@mvista.com>
7530
7531 * user-regs.c: Update copyright years.
7532 (struct user_regs): Rename to gdb_user_regs.
7533 (append_user_reg, builtin_user_regs, user_regs_init)
7534 (user_reg_add, user_reg_map_name_to_regnum)
7535 (usernum_to_user_reg): Update.
7536
4bb7a0a7
DJ
75372004-03-09 Daniel Jacobowitz <drow@mvista.com>
7538
7539 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7540 (skip_children): New functions.
7541 (locate_pdi_sibling): Call skip_children.
7542
44e1a9eb
DJ
75432004-03-09 Daniel Jacobowitz <drow@mvista.com>
7544
7545 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7546 * gdbtypes.c (check_typedef): Update comments.
7547
f3dd6933
DJ
75482004-03-09 Daniel Jacobowitz <drow@mvista.com>
7549
7550 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7551 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7552 pointer. Update comment about comp_unit_head.
7553 (struct abbrev_info): Shorten two int flags.
7554 (dwarf_alloc_abbrev): Take a CU argument.
7555 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7556 each time through the loop. Update cleanup argument.
7557 (psymtab_to_symtab_1): Update cleanup call.
7558 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7559 abbrev_obstack.
7560 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7561 Just call obstack_free and clear the pointer.
7562
b40c7d58
DJ
75632004-03-09 Daniel Jacobowitz <drow@mvista.com>
7564
7565 * infrun.c (handle_inferior_event): Remove short-circuit code for
7566 events in a different thread.
7567
333dabeb
DJ
75682004-03-09 Daniel Jacobowitz <drow@mvista.com>
7569
7570 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7571 print the whole transfer.
7572 (initialize_targets): Update description of "set debug target".
7573
aa17d93e
DJ
75742004-03-09 Daniel Jacobowitz <drow@mvista.com>
7575
7576 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7577
0b71f08f
NW
75782004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7579
7580 * MAINTAINERS (write after approval): Add myself.
7581
3930f270
CV
75822004-03-08 Corinna Vinschen <vinschen@redhat.com>
7583
7584 * sh-tdep.c (sh_print_registers_info): Use for loop.
7585 Don't skip multiple registers when a float register is encountered.
7586
a2b4a96c
CV
75872004-03-08 Corinna Vinschen <vinschen@redhat.com>
7588
7589 Fix PR tdep/1291.
7590 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7591 to official SH documentation.
7592
f15a4bc0
AC
75932004-03-07 Andrew Cagney <cagney@redhat.com>
7594
7595 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7596 unused function.
7597
9498281f
DJ
75982004-03-07 Daniel Jacobowitz <drow@mvista.com>
7599
7600 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7601 (arm_get_next_pc): Handle BX and BLX.
7602
449e1137
AC
76032004-03-07 Andrew Cagney <cagney@redhat.com>
7604
eded0a31
AC
7605 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7606 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7607 HPPA_SP_REGNUM.
7608 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7609 (hppa_target_read_fp): Delete.
7610 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7611 register_virtual_size, max_register_raw_size,
7612 max_register_virtual_size, register_byte, register_size,
7613 target_read_fp, fp_regnum, and register_bytes. Set register_type
7614 instead of register_virtual_type.
7615 (hppa32_register_type, hppa64_register_type): Replace
7616 hppa32_register_virtual_type and hppa64_register_virtual_type.
7617 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7618 (HPPA_FP_REGNUM): Define.
7619
f5f907e2
AC
7620 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7621
69b4bbe4
AC
7622 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7623 (pa_do_registers_info): Delete.
7624 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7625 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7626 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7627
78161e48
AC
7628 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7629 GDB_TARGET_IS_HPPA code.
7630 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7631 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7632 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7633 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7634 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7635 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7636 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7637 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7638 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7639 (hppa_frameless_function_invocation, hppa64_store_return_value)
7640 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7641 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7642 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7643 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7644 (find_proc_framesize, deposit_21, restore_pc_queue)
7645 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7646 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7647
782eae8b
AC
7648 Unconditionally enable 64-bit frame and ABI code.
7649 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7650 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7651 push_dummy_frame, fix_call_dummy, push_arguments,
7652 call_dummy_location, extract_return_value, use_struct_convention,
7653 store_return_value, store_struct_return, saved_pc_after_call,
7654 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7655 frame_chain, frame_chain_valid, frameless_function_invocation,
7656 frame_saved_pc, and pop_frame.
78161e48 7657
449e1137
AC
7658 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7659 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7660 (hppa_gdbarch_init): Do not set PC_REGNUM.
7661
12507572
MK
76622004-03-06 Mark Kettenis <kettenis@gnu.org>
7663
7664 * config/alpha/tm-fbsd.h: Remove file.
7665 * config/alpha/fbsd.mt: Tweak comment.
7666 (TM_FILE): Set to tm-alpha.h.
7667
c107cc1b
AC
76682004-03-05 Andrew Cagney <cagney@redhat.com>
7669
7670 * infrun.c (step_over_function): When non-legacy code, and no
7671 step_frame_id, use the unwinder to get the caller's frame ID.
7672
f2e7c15d
MK
76732004-03-05 Mark Kettenis <kettenis@gnu.org>
7674
8b0c3633
MK
7675 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7676 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7677 bfd_arch_unknown. Adjust comment.
7678
f2e7c15d
MK
7679 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7680 * i386obsd-tdep.c: Correct spelling in comment.
7681 * i386nbsd-tdep.c: Correct spelling in comment.
7682 * sparc-tdep.c: Correct spelling in comments.
7683
1198ecbe
DC
76842004-03-05 David Carlton <carlton@kealia.com>
7685
7686 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7687 bug.
7688
9eb42ed1
MK
76892004-03-05 Mark Kettenis <kettenis@gnu.org>
7690
7691 * sparc-tdep.c: Fix typo in comment.
7692
52b5e991
JB
76932004-03-04 J. Brobecker <brobecker@gnat.com>
7694
7695 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7696
d8151005
DJ
76972004-03-04 Daniel Jacobowitz <drow@mvista.com>
7698
7699 * dwarf2read.c: Add comment describing memory lifetimes.
7700 (struct dwarf2_pinfo): Update comment.
7701 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7702 (read_enumeration, new_symbol): Don't use obsavestring.
7703
cbeae229
MK
77042004-03-04 Mark Kettenis <kettenis@gnu.org>
7705
722d18c2
MK
7706 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7707 instead of amd64_fill_fxsave.
7708 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7709 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7710
cbeae229
MK
7711 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7712 Reorganize code a bit.
7713
b4206d25
OF
77142004-03-04 Orjan Friberg <orjanf@axis.com>
7715
7716 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7717 when the frame pointer is pushed. Don't set the frame pointer's
7718 address on the stack unless it's actually located there.
b4206d25
OF
7719 Set the SRP's address on the stack correctly when the PC is still in
7720 the prologue.
7721 (cris_return_value): New function.
7722 (cris_gdbarch_init): Clear deprecated store_return_value,
7723 extract_return_value.
7724
49b0b195
JB
77252004-03-02 Jim Blandy <jimb@redhat.com>
7726
7727 * stabsread.c (reg_value_complaint): The maximum register number
7728 is one less than the number of registers.
7729
e9ff708b
AC
77302004-03-02 Andrew Cagney <cagney@redhat.com>
7731
7732 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7733 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7734 trailing comma and redundant assignment of I386_ST0_REGNUM.
7735 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7736 32-bit segment registers.
7737
d4715e41
AC
77382004-03-01 Andrew Cagney <cagney@redhat.com>
7739
7740 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7741 use frame_relative_level and get_next_frame.
7742
3ce2bf18
AC
77432004-02-29 Andrew Cagney <cagney@redhat.com>
7744
7745 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7746 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7747 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7748 Delete macro.
7749
2da6aac3
DJ
77502004-02-29 Daniel Jacobowitz <drow@mvista.com>
7751
7752 * inflow.c (terminal_inferior): Don't give up the terminal if we
7753 previously couldn't get the inferior's terminal state.
7754
6ba34a8d
DJ
77552004-02-29 Daniel Jacobowitz <drow@mvista.com>
7756
7757 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7758 PC_REGNUM.
7759
faae5abe
AC
77602004-02-28 Andrew Cagney <cagney@redhat.com>
7761
7762 * NEWS: Refer to GDB 6.1.
7763 * README: Refer to GDB 6.1.
7764 * PROBLEMS: Refer to GDB 6.1.
7765
2227a3c5
DJ
77662004-02-28 Daniel Jacobowitz <drow@mvista.com>
7767
7768 * thread-db.c (disable_thread_signals): Remove unused function.
7769
80571bff
MK
77702004-02-28 Mark Kettenis <kettenis@gnu.org>
7771
041bd74b
MK
7772 * amd64-nat.c: Include "gdb_string.h".
7773 (amd64_collect_native_gregset): Zero-extend the 32-bit
7774 general-purpose registers and %eip.
7775
3c017e40
MK
7776 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7777 * amd64-tdep.c (amd64_collect_fxsave): New function.
7778 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7779
80571bff
MK
7780 * i387-tdep.h: Update copyright year.
7781 (i387_collect_fxsave): New prototype.
7782 * i387-tdep.c: Update copyright year.
7783 (i387_collect_fxsave): New function containing most of the code
7784 from i387_fill_fxsave.
7785 (i387_fill_fxsave): Call i387_collect_fxsave.
7786
50d71875
AC
77872004-02-28 Andrew Cagney <cagney@redhat.com>
7788
7789 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7790 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7791
4a28816e
MK
77922004-02-28 Mark Kettenis <kettenis@gnu.org>
7793
7794 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7795
dbda9972
AC
77962004-02-28 Andrew Cagney <cagney@redhat.com>
7797
7798 * utils.c: Use "", instead of <>, to include readline.
7799 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7800 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7801 * source.c, solib.c, exec.c, event-top.c: Ditto.
7802 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7803 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7804 * Makefile.in: Update all dependencies.
7805 (readline_tilde_h, readline_history_h): Define.
7806 (readline_headers): Delete.
7807
83277a99
MK
78082004-02-28 Mark Kettenis <kettenis@gnu.org>
7809
91ae4303
MK
7810 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7811 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7812 "config/i386/tm-lx64.h".
7813
83277a99
MK
7814 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7815 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7816 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7817
6e1d7d6c
AC
78182004-02-28 Andrew Cagney <cagney@redhat.com>
7819
ecc9ac84
AC
7820 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7821
6e1d7d6c
AC
7822 * breakpoint.c (_initialize_breakpoint): Use
7823 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7824 Add help to show command.
7825
9671aeef
MK
78262004-02-28 Mark Kettenis <kettenis@gnu.org>
7827
7fa2737c
MK
7828 * i386-nat.c: Reformat to be closer to coding standards.
7829 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7830 `retval'. Make variables `align' and `size' local to while-loop.
7831 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7832 (_initialize_i386_nat): New prototype.
7833
9671aeef
MK
7834 * tui/tui.c: Include <readline/readline.h> instead of
7835 "readline/readline.h". Include it after <term.h> and
7836 "gdb_curses.h".
7837
fca7aa43
AC
78382004-02-27 Andrew Cagney <cagney@redhat.com>
7839
412275d5
AC
7840 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7841 the new frame unwind code.
7842 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7843 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7844 PCOQ_HEAD_REGNUM.
7845
fca7aa43
AC
7846 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7847 "return_value" and "push_dummy_call".
7848 (hppa32_use_struct_convention): Delete unused function.
7849 (hppa32_store_return_value): Delete unused function.
7850 (hppa32_extract_return_value): Delete unused function.
7851 (hppa32_stack_align): Delete function.
7852
e6a8a7d2
EZ
78532004-02-27 Eli Zaretskii <eliz@elta.co.il>
7854
7855 * coffread.c (enter_linenos): Don't let rawptr reference memory
7856 outside linetab[]'s limits.
7857
1797a8f6
AC
78582004-02-27 Andrew Cagney <cagney@redhat.com>
7859
7860 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7861 inferior stack space - the stack needs to grow upwards.
7862 (hppa32_frame_align): New function.
7863 (hppa64_frame_align): Replace hppa_frame_align.
7864 (hppa_gdbarch_init): Update.
7865
2e4b5889
OF
78662004-02-26 Orjan Friberg <orjanf@axis.com>
7867
7868 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7869 (dwarf2-frame.h): Include.
7870 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7871 Remove static variables related to ABI setting.
7872 (struct gdbarch_tdep): Remove cris_abi member.
7873 (struct frame_extra_info): Remove.
7874 (cris_unwind_cache, stack_item): New structs.
7875 (cris_frame_unwind, cris_frame_base): New variables.
7876 (push_stack_item, pop_stack_item)
7877 (cris_frame_unwind_cache, cris_frame_this_id)
7878 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7879 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7880 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7881 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7882 (cris_reg_struct_has_addr): New functions.
7883 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7884 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7885 (cris_store_struct_return, cris_frameless_function_invocation)
7886 (cris_pop_frame, cris_skip_prologue_main)
7887 (cris_abi_original_store_return_value)
7888 (cris_abi_v2_store_return_value)
7889 (cris_abi_original_extract_return_value)
7890 (cris_abi_v2_extract_return_value)
7891 (cris_abi_original_reg_struct_has_addr)
7892 (cris_abi_v2_reg_struct_has_addr)
7893 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7894 (cris_push_return_address, cris_abi_update): Remove.
7895 (_initialize_cris_tdep): Remove ABI command.
7896 (cris_dump_tdep): Ditto.
8718a420 7897 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7898 Set store_return_value, extract_return_value, push_dummy_code,
7899 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7900 frame_unwind_append_sniffer, frame_base_set_default.
7901 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7902 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7903 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7904 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7905 init_extra_frame_info, frameless_function_invocation, frame_chain,
7906 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7907 dummy_write_sp.
8718a420 7908
6b9acc27
JJ
79092004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7910
7911 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7912 * valprint.c (print_hex_chars): Change from static to external.
7913 (print_char_chars): New function.
7914 * printcmd.c (print_scalar_formatted): For integer and enum types
7915 that are longer than LONGEST, perform processing via appropriate
7916 print_*_chars routines.
7917
a431654a
AC
79182004-02-26 Andrew Cagney <cagney@redhat.com>
7919
7920 * Makefile.in: Update dependencies.
7921 Changes from Ulrich Weigand,
7922 * s390-tdep.c: Include "dwarf2-frame.h".
7923 (s390_dwarf2_frame_init_reg): New function.
7924 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7925 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7926
fa8d40ab
JJ
79272004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7928
7929 * breakpoint.c (pending_break_support): New setting variable.
7930 (break_command_1): Account for pending_break_support setting
7931 when creating pending breakpoints.
7932 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7933 (_initialize_breakpoint): Add "set breakpoint pending" and
7934 "show breakpoint pending" commands.
7935
0dcd613f
AC
79362004-02-26 Andrew Cagney <cagney@redhat.com>
7937
7938 Fix PR i18n/1570.
7939 * charset.c (backslashable, backslashed, represented): Remove 'e'
7940 from list of escaped characters, not part of ISO-C.
7941
479272a3
JB
79422004-02-25 J. Brobecker <brobecker@gnat.com>
7943
7944 From Peter Schauer <schauer@pdf.de>:
7945 * tui/tui.c: Move system header includes after local includes.
7946 Fixes a build failure on solaris systems.
7947
7613d933
JB
79482004-02-25 J. Brobecker <brobecker@gnat.com>
7949
7950 * configure.in: Refine the previous change.
7951 * configure: Regenerate.
7952
9c1488cb
MK
79532004-02-25 Mark Kettenis <kettenis@gnu.org>
7954
7955 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7956 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7957 "amd64-tdep.h" instead of "x86-64-tdep.h".
7958 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7959 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7960 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7961 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7962 and "x86-64-tdep.c".
7963 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7964 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7965 and "x86-64-tdep.c".
7966 * amd64bsd-nat.c: Update copyright year.
7967 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7968 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7969 "x86-64-tdep.h".
7970 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7971 "x86-64-tdep.h".
7972 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7973 "x86-64-tdep.h".
7974 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7975 "x86-64-tdep.h".
7976 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7977 "x86-64-tdep.h".
7978 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7979 "x86-64-tdep.h".
8718a420 7980 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7981 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7982 * Makefile.in (amd64_linux_tdep_h): Renamed from
7983 x86_64_linux_tdep_h.
7984 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7985 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7986 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7987 (amd64obsd-tdep.o): Update dependencies.
7988 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7989 dependencies.
7990 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7991 dependencies.
7992 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7993 amd64-linux-nat.c amd64-linux-tdep.c.
7994 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7995 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7996 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7997 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7998 amd64-tdep.o and amd64-linux-tdep.o.
7999 (TM_FILE): Set to tm-linux64.h.
8000 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8001 (NAT_FILE): Set to nm-linux64.h.
8002 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8003 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8004 amd64-tdep.o.
8005 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8006 amd64-tdep.o.
8007 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8008 amd64-tdep.o.
8009
4b8dad4a
RM
80102004-02-25 Roland McGrath <roland@redhat.com>
8011
8012 * remote.c (remote_protocol_qPart_auxv): New variable.
8013 (init_all_packet_configs): Initialize it.
8014 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8015 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8016 (show_remote_cmd): Call it.
8017 (_initialize_remote): Initialize commands.
8018 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8019 service TARGET_OBJECT_AUXV requests.
8020
66745969
JB
80212004-02-25 J. Brobecker <brobecker@gnat.com>
8022
8023 * configure.in: Make sure that the wborder function is available.
8024 Otherwise, search for it in the cur_colr library.
8025 * configure: Regenerate.
8026
79508e1e
AC
80272004-02-25 Andrew Cagney <cagney@redhat.com>
8028
8029 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8030
571ee600
MK
80312004-02-25 Mark Kettenis <kettenis@gnu.org>
8032
8033 * config/i386/tm-x86-64linux.h: Tweak comments.
8034
2b1b322f 80352004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8036
8037 * MAINTAINERS: Add self to write-after-approval list.
8038
4d2acc65
AC
80392004-02-25 Andrew Cagney <cagney@redhat.com>
8040
4b8dad4a 8041 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8042 * cli/cli-script.c (execute_control_command): Unconditionally
8043 install a cleanup. Default "ret" to "invalid_control". Use
8044 "break" instead of "return" to escape from the switch.
8045
4cfcaf21
JB
80462004-02-24 J. Brobecker <brobecker@gnat.com>
8047
8048 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8049 with the lines macro defined in term.h on AiX.
8050 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8051 a collision with the label_width macro defined in term.h on AiX.
8052
54a5c8d8
KB
80532004-02-23 David Mosberger <davidm@hpl.hp.com>
8054
8055 Committed by Kevin Buettner <kevinb@redhat.com>.
8056
8057 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8058 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8059 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8060 instead of ia64_write_pc().
8061 * ia64-linux-tdep.c (regcache.h): Include.
8062 (ia64_linux_write_pc): New function.
4b8dad4a 8063
8a1dac83
RM
80642004-02-23 Roland McGrath <roland@redhat.com>
8065
8066 * auxv.c (info_auxv_command): Fix typos in error messages.
8067
90f90721
MK
80682004-02-23 Mark Kettenis <kettenis@gnu.org>
8069
8a1dac83 8070 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8071 (enum amd64_regnum): New.
8072 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8073 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8074 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8075 (X86_64_XMM1_REGNUM): Removed.
8076 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8077 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8078 prototypes for renamed functions.
8079 * x86-64-tdep.c: Fix typo.
8080 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8081 register numbers.
8082 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8083 Use constants from `enum amd64_regnum' for register numbers.
8084 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8085 (amd64_analyze_prologue, amd64_frame_cache,
8086 amd64_sigtramp_frame_cache): Use constants from `enum
8087 amd64_regnum' for register numbers.
8088 (amd64_supply_fpregset): Adjust for renamed functions.
8089 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8090 `enum amd64_regnum' for register numbers.
8091 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8092 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8093 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8094 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8095 (amd64_linux_fill_gregset): Adjust for renamed macros.
8096 (fetch_core_registers): Adjust for renamed functions.
8097 (amd64_linux_init_abi): Adjust for renamed functions.
8098 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8099 renamed functions.
8100 * amd64-nat.c: Adjust for renamed macros.
8101 * amd64bsd-nat.c (fetch_inferior_registers)
8102 (store_inferior_registers): Use constants from `enum amd64_regnum'
8103 for register numbers. Adjust for renamed variables.
8104 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8105 renamed variables.
8106 (_initialize_amd64fbsd_nat): Use constants from `enum
8107 amd64_regnum' for register numbers.
8108 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8109 `enum amd64_regnum' for register numbers.
8110 (amd64fbsd_init_abi): Adjust for renamed functions.
8111 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8112 `enum amd64_regnum' for register numbers.
8113 (amd64nbsd_init_abi): Adjust for renamed functions.
8114 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8115 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8116 `enum amd64_regnum' for register numbers.
8117 (amd64obsd_init_abi): Adjust for renamed functions.
8118 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8119
d5479188
JJ
81202004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8121
8122 * breakpoint.c (print_one_breakpoint): Do not output spaces
8123 after printing <PENDING> for a pending breakpoint.
8124
81cb7cc9
JJ
81252004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8126
8127 * printcmd.c (print_scalar_formatted): Initialize val_long
8128 to remove compiler warning message.
8129
cbdeadca
JJ
81302004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8131
8132 * defs.h (nquery, yquery): New prototypes.
8133 * breakpoint.c (break_command_1): Use new nquery interface.
8134 * utils.c (defaulted_query, nquery, yquery): New functions.
8135
da6bab63
AC
81362004-02-23 Andrew Cagney <cagney@redhat.com>
8137
2f690297
AC
8138 * hppa-tdep.c (hppa_frame_align): New function.
8139 (hppa32_push_dummy_call): New function.
8140 (hppa64_push_dummy_call): New function.
8141 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8142 disabled.
8a1dac83 8143
da6bab63
AC
8144 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8145 FIX_CALL_DUMMY when push_dummy_call is available.
8146 (call_function_by_hand, push_dummy_code): Ditto.
8147
abf9b42d
AC
81482004-02-22 Andrew Cagney <cagney@redhat.com>
8149
8150 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8151 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8152 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8153 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8154 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8155 call_dummy_location to ON_STACK.
8156
10fc94a4
MK
81572004-02-22 Mark Kettenis <kettenis@gnu.org>
8158
51433e4b
MK
8159 * x86-64-linux-tdep.c: Tweak comment.
8160 (amd64_linux_supply_gregset): Renamed from
8161 x86_64_linux_supply_gresget.
8162 (amd64_linux_fill_gregset): Renamed from
8163 x86_64_linux_fill_gregset.
8164 (fetch_core_registers): Adjust for renamed functions.
8165 (amd64_core_fns): Renamed from x86_64_core_fns.
8166 (amd64_linux_sigtramp_start): Renamed from
8167 x86_64_linux_sigtramp_start.
8168 (amd64_linux_pc_in_sigtramp): Renamed from
8169 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8170 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8171 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8172 (amd64_linux_sigcontext_addr): Renamed from
8173 x86_64_linux_sigcontext_addr.
8174 (amd64_linux_sc_reg_offset): Renamed from
8175 x86_64_linux_sc_reg_offset.
8176 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8177 Adjust for renamed functions and variables.
8178 (_initialize_amd64_linux_tdep): Renamed from
8179 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8180 variables.
8181 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8182 Adjust for renamed functions.
8183
430eaf2e
MK
8184 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8185 from x86_64_linux_gregset64_reg_offset.
8186 (amd64_linux_gregset32_reg_offset): Rename from
8187 x86_64_linux_gregset64_reg_offset.
8188 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8189 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8190 (amd64_linux_dr_set_control): Renamed from
8191 x86_64_linux_dr_set_control. Adjust for renamed functions.
8192 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8193 Adjust for renamed functions.
8194 (amd64_linux_dr_reset_addr): Renamed from
8195 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8196 (amd64_linux_dr_get_status): Renamed from
8197 x86_64_linux_dr_get_status. Adjust for renamed functions.
8198 (_initialize_amd64_linux_nat): Renamed from
8199 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8200 functions.
8201 * config/i386/nm-x86-64linux.h: Update copyright year.
8202 Adjust for renamed functions.
8203
10fc94a4
MK
8204 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8205 amd64fbsd_sigtramp_start.
8206 (amd64fbsd_sigtramp_end_addr): Renamed from
8207 amd64fbsd_sigtramp_end.
8208 (amd64fbsd_init_abi): Adjust for renamed variables.
8209 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8210 variables.
8211 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8212 amd64fbsd_sigtramp_start.
8213 (amd64fbsd_sigtramp_end_addr): Renamed from
8214 amd64fbsd_sigtramp_end.
8215
343af405
AC
82162004-02-22 Andrew Cagney <cagney@redhat.com>
8217
537987fc
AC
8218 * hppa-tdep.c (hppa32_return_value): New function.
8219 (hppa64_return_value): New function.
8220 (hppa_gdbarch_init): Set return_value; keep disabled.
8221
fad850b2
AC
8222 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8223 struct-return and inferior function call methods.
8224
26d08f08
AC
8225 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8226 "frame-base.h".
8227 (struct hppa_frame_cache): Define.
8228 (hppa_frame_cache, hppa_frame_this_id): New functions.
8229 (hppa_frame_prev_register): New function.
8230 (hppa_frame_unwind, hppa_frame_base): New variables.
8231 (hppa_frame_unwind_sniffer): New function.
8232 (hppa_frame_base_address, hppa_unwind_pc): New function.
8233 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8234 sniffer, and frame base sniffer; keep disabled.
8235 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8236 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8237
e7d7bd65
AC
8238 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8239 to predicates for "seriously old code".
8240
e963316f
AC
8241 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8242 runtime if(0).
8243
56132691
AC
8244 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8245 unsigned.
8246 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8247
343af405
AC
8248 * config/pa/tm-hppa.h: Update copyright.
8249 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8250 (deprecated_init_frame_pc_default): Delete declaration.
8251 (hppa_frame_init_saved_regs): Delete declaration.
8252 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8253 * hppa-tdep.c: Include "arch-utils.h".
8254 (hppa_gdbarch_init): Set deprecated init_frame_pc
8255 and deprecated frame_init_saved_regs.
8256 (hppa_frame_init_saved_regs): Make static.
8257
f5859b4d
MK
82582004-02-22 Mark Kettenis <kettenis@gnu.org>
8259
86f6f8e7 8260 Remove old 386BSD support.
cf7c5c23 8261 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8262 * configure.host: Remove i[34567]86-*-bsd*.
8263 * configure.tgt: Remove i[34567]86-*-bsd*.
8264 * i386b-nat.c: Removed.
8265 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8266 (i386b-nat.o): Remove dependencies.
8267
86f6f8e7
MK
8268 * config/i386/i386bsd.mh: Removed.
8269 * config/i386/i386bsd.mt: Removed.
8270 * config/i386/nm-i386bsd.h: Removed.
8271 * config/i386/tm-i386bsd.h: Removed.
8272 * config/i386/xm-i386bsd.h: Removed.
8273
971218cd
MK
8274 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8275
7e654c37
MK
8276 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8277 (amd64fbsd_init_abi): Set link map offsets.
8278 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8279 (amd64nbsd_init_abi): Set link map offsets.
8280 * amd64obsd-tdep.c: Include "solib-svr4.h".
8281 (amd64obsd_init_abi): Set link map offsets.
8282 * i386fbsd-tdep.c: Include "solib-svr4.h".
8283 (i386fbsd_init_abi): Set link map offsets.
8284 * i386nbsd-tdep.c: Include "solib-svr4.h".
8285 (i386nbsdelf_init_abi): Set link map offsets.
8286 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8287 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8288 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8289 solib-legacy.o and core-aout.o. Reformat.
8290 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8291 solib-svr4.o, solib-legacy.o. Reformat.
8292 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8293 * config/i386/nbsdelf.mh: Reformat.
8294 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8295 solib-svr4.o, solib-legacy.o and corelow.o.
8296 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8297 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8298 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8299 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8300 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8301 (TM_FILE): Set to tm-fbsd.h.
8302 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8303 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8304 solib-svr4.o.
8305 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8306 solib-svr4.o.
8307 (TM_FILE): Set to nm-nbsd.h.
8308 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8309 Simplify shared library support. Don't include "elf/common.h".
8310 (SVR4_SHARED_LIBS): Don't define.
8311 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8312 "solib.h".
8313 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8314 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8315 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8316 Don't include "i386/tm-i386.h". Include "solib.h".
8317 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8318 Don't include "i386/tm-i386.h".
8319 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8320 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8321 Include "i386/xm-i386.h".
8322 (HOST_LONG_DOUBLE_FORMAT): Remove.
8323
5d93ae8c
MK
8324 Fix OpenBSD/i386 sigtramp recognition.
8325 * i386-tdep.h: Update copyright year.
8326 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8327 (i386bsd_sigtramp_end): New prototypes.
8328 (i386fbsd_sigtramp_start_addr): Renamed from
8329 i386fbsd_sigtramp_start.
8330 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8331 (i386obsd_sigtramp_start_addr): Renamed from
8332 i386obsd_sigtramp_start.
8333 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8334 * i386bsd-tdep.c: Update copyright year.
8335 (i386bsd_pc_in_sigtramp): Make public.
8336 * i386fbsd-nat.c: Update copyright year.
8337 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8338 * i386fbsd-tdep.c: Update copyright year.
8339 (i386fbsd_sigtramp_start_addr): Renamed from
8340 i386fbsd_sigtramp_start.
8341 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8342 (i386fbsdaout_init_abi): Adjust for renamed variables.
8343 * i386obsd-nat.c: Update copyright year.
8344 (_initialize_i386obsd_nat): Adjust for renamed variables.
8345 * i386obsd-tdep.c: Include "target.h".
8346 (i386obsd_page_size): New variable.
8347 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8348 (i386obsd_sigtramp_end): New functions.
8349 (i386obsd_sigtramp_start_addr): Renamed from
8350 i386obsd_sigtramp_start.
8351 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8352 (i386obsd_init_abi): Adjust for renamed variables. Set
8353 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8354 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8355
84d04465
MK
8356 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8357 trampoline change in OpenBSD kernel.
8358
b053aceb
MK
8359 * amd64-nat.c: Update copyright year.
8360 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8361 architecture from REGCACHE.
8362
f5859b4d
MK
8363 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8364 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8365
e4bbbda8
MK
83662004-02-21 Mark Kettenis <kettenis@gnu.org>
8367
ba361932
MK
8368 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8369 i[34567]86-*-openbsd3.[0-3].
8370 * config/i386/obsdaout.mh: New file.
8371
d3e48264
MK
8372 * config/i386/obsd.mh (MH_FLAGS): Remove.
8373
60a6eeb6
MK
8374 Fix PR build/1549.
8375 * i386obsd-tdep.c: Update copyright years. Include
8376 "solib-svr4.h".
8377 (i386obsd_init_abi): Don't set regset_from_core_section here.
8378 (i386obsd_aout_init_abi): New function. Set
8379 regset_from_core_section here.
8380 (i386obsd_elf_init_abi): New function.
8381 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8382 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8383 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8384 (TM_FILE): Set to tm-nbsd.h.
8385
8386 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8387 solib-sunos.o.
8388
e4bbbda8
MK
8389 * solib-svr4.h: Update copyright year.
8390 (svr4_ilp32_fetch_link_map_offsets)
8391 (svr4_lp64_fetch_link_map_offsets): New prototype.
8392 * solib-svr4.c: Update copyright year.
8393 (svr4_ilp32_fetch_link_map_offsets)
8394 (svr4_lp64_fetch_link_map_offsets): New function.
8395
f6fe98ef
DJ
83962004-02-20 Daniel Jacobowitz <drow@mvista.com>
8397
8398 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8399 to the partial symbol table.
8400
589ca796
JB
84012004-02-20 J. brobecker <brobecker@gnat.com>
8402
8403 * PROBLEMS: Add description of problem documented under gdb/1560.
8404
2031c21a
MK
84052004-02-20 Mark Kettenis <kettenis@gnu.org>
8406
30b344b1
MK
8407 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8408 comments.
8409 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8410 functions.
8411 (amd64obsd_init_abi): Reorder initializations. Use
8412 amd64obsd_r_reg_offset to initialize the general-purpose register
8413 set details. Set regset_from_core_section.
8414 (_initialize_amd64obsd_tdep): Rename from
8415 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8416 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8417 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8418
2031c21a
MK
8419 * NEWS (New native configurations): Mention OpenBSD/alpha.
8420 * configure.tgt: Add alpha*-*-openbsd*.
8421 * configure.host: Add alpha*-*-openbsd*.
8422 * alphanbsd-tdep.c: Update copyright year.
8423 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8424
42471775
AC
84252004-02-20 Andrew Cagney <cagney@redhat.com>
8426
8427 Fix PR tdep/1372.
8428 * configure.tgt: Delete target "none-*-*".
8429 * configure.host: Delete host "none-*-*".
8430 * config/none/none.mh: Delete file.
8431 * config/none/none.mt: Delete file.
8432 * config/none/xm-none.h: Delete file.
8433 * config/none/tm-none.h: Delete file.
8434 * config/none/nm-none.h: Delete file.
8435
960ccd7d
FF
84362004-02-19 Fred Fish <fnf@redhat.com>
8437
8438 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8439 cache->uses_fp prior to setting it.
8440
5f883edd
FF
84412004-02-19 Fred Fish <fnf@redhat.com>
8442
8443 Fix for PR breakpoint/1558.
8444 * sh-tdep.c (IS_JSR): New macro.
8445 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8446
f98c22d5
JB
84472004-02-19 Jim Blandy <jimb@redhat.com>
8448
8449 * findvar.c (value_from_register): Doc fix.
8450
95051d27
JJ
84512004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8452
8453 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8454 type being greater than sizeof of host's LONGEST. Always use
8455 unpack_long() unless format 'f' chosen.
8456
ccefbec3
EZ
84572004-02-19 Joel Brobecker <brobecker@gnat.com>
8458
8459 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8460
ccefbec3
EZ
8461 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8462 contains a symbol wich is the best, non-exact match for the given
8463 pc. Update comments.
8464
84652004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8466
2ede629f
EZ
8467 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8468 macro, which was part of the now removed Mach 3 port.
8469 * utils.c (request_quit): Ditto.
8470
567ee972
MK
84712004-02-18 Mark Kettenis <kettenis@gnu.org>
8472
8473 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8474 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8475
50cca7bb
MK
84762004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8477
8478 Committed by Mark Kettenis <kettenis@gnu.org>.
8479
8480 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8481 Define.
8482
226361c4
AC
84832004-02-18 Andrew Cagney <cagney@redhat.com>
8484
8485 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8486 CONFIG_INSTALL and CONFIG_UNINSTALL.
8487 * configure: Re-generate.
8488 * interps.h (INTERP_TUI): Define.
8489 * Makefile.in: Update dependencies.
8490 (TUI): New macro.
8491 (tui-main.o): Specify dependencies.
8492 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8493 * tui/tui-main.c: New file.
8494
49cfa46f
MK
84952004-02-18 Mark Kettenis <kettenis@gnu.org>
8496
e2879ccb
MK
8497 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8498 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8499 dependencies.
8500 * configure.host: Add x86_64-*-openbsd*.
8501 * configure.tgt: Add x86_64-*-openbsd*.
8502 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8503
c43f4bec
MK
8504 * tui/tui.c: Don't include <malloc.h>.
8505
09ae75b6
MK
8506 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8507 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8508 amd64nbsd-tdep.c.
8509
49cfa46f 8510 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8511 static. Remove extraneous whitespace.
49cfa46f
MK
8512 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8513 static.
8514
05957fdb
JB
85152004-02-17 Jim Blandy <jimb@redhat.com>
8516
8517 * findvar.c (value_from_register): Doc fix.
8518
d0f54f9d
JB
85192004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8520
8521 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8522
8a1dac83 8523 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8524 CORE_ADDR as type for selectors. Correct types for GNU run time
8525 message lookup function to use double indirection.
8526 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8527 * objc-lang.h (lookup_child_selector): Adapt prototype.
8528
9cbd5950
JB
8529 * s390-nat.c (SUBOFF): New macro.
8530 (supply_gregset, fill_gregset): Use it to handle debugging
8531 of 32-bit exectuables running under a 64-bit kernel.
8532 * s390-tdep.c: Include "solib-svr4.h".
8533 (s390_svr4_fetch_link_map_offset): New function.
8534 (s390x_svr_fetch_link_map_offset): Likewise.
8535 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8536 * Makefile.in (s390-tdep.o): Update dependencies.
8537
a8c99f38
JB
8538 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8539 "frame-unwind.h".
8540 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8541 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8542 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8543 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8544 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8545 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8546 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8547 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8548 (struct frame_extra_info): Remove.
8549 (s390_memset_extra_info): Remove.
f73b1eff
JB
8550 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8551 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8552 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8553 (is_rse): Renamed to ...
8554 (is_rsy): ... this. Support long displacements.
8555 (is_rxe): Renamed to ...
8556 (is_rxy): ... this. Support long displacements.
8557 (compute_x_addr): Support long displacements.
8558 (struct s390_prologue_data): New data type.
8559 (s390_on_stack): Change API to use struct s390_prologue_data.
8560 (s390_store): Reimplement.
8561 (s390_load): New function.
8562 (s390_get_signal_frame_info): Remove.
8563 (s390_get_frame_info): Remove, replace by ...
8564 (s390_analyze_prolog): ... this new function.
8565 (s390_check_function_end): Remove.
8566 (s390_function_start): Remove.
8567 (s390_frameless_function_invokation): Remove.
8568 (s390_is_sigreturn): Remove.
8569 (s390_init_frame_pc_first): Remove.
8570 (s390_init_frame_extra_info): Remove.
8571 (s390_frame_init_saved_regs): Remove.
8572 (s390_frame_saved_pc_nofix): Remove.
8573 (s390_frame_saved_pc): Remove.
8574 (s390_frame_chain): Remove.
8575 (s390_fp_regnum, s390_read_fp): Remove.
8576 (s390_pop_frame_regular, s390_pop_frame): Remove.
8577 (s390_saved_pc_after_call): Remove.
8578 (s390_skip_prologue): Reimplement.
8579 (s390_in_function_epilogue_p): Support long displacements.
8580 (struct s390_unwind_cache): New data structure.
8581 (s390_frame_unwind_cache): New function.
8582 (s390_prologue_frame_unwind_cache): Likewise.
8583 (s390_backchain_frame_unwind_cache): Likewise.
8584 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8585 (s390_frame_unwind): Define.
8586 (s390_frame_sniffer): New function.
8587 (struct s390_pltstub_unwind_cache): New data structure.
8588 (s390_pltstub_frame_unwind_cache): New function.
8589 (s390_pltstub_frame_this_id): Likewise.
8590 (s390_pltstub_frame_prev_register): Likewise.
8591 (s390_pltstub_frame_unwind): Define.
8592 (s390_pltstub_frame_sniffer): New function.
8593 (struct s390_sigtramp_unwind_cache): New data structure.
8594 (s390_sigtramp_frame_unwind_cache): New function.
8595 (s390_sigtramp_frame_this_id): Likewise.
8596 (s390_sigtramp_frame_prev_register): Likewise.
8597 (s390_sigtramp_frame_unwind): Define.
8598 (s390_sigtramp_frame_sniffer): New function.
8599 (s390_frame_base_address, s390_local_base_address): New functions.
8600 (s390_frame_base): Define.
8601 (s390_unwind_pc, s390_unwind_sp): New function.
8602 (s390_push_dummy_call): Use new frame base location.
8603 (s390_unwind_dummy_id): Likewise.
8604 (s390_gdbarch_init): Remove calls to:
8605 set_gdbarch_frameless_function_invocation,
8606 set_gdbarch_deprecated_init_frame_pc,
8607 set_gdbarch_deprecated_frame_chain,
8608 set_gdbarch_deprecated_frame_init_saved_regs,
8609 set_gdbarch_deprecated_pop_frame,
8610 set_gdbarch_deprecated_init_extra_frame_info,
8611 set_gdbarch_deprecated_init_frame_pc_first,
8612 set_gdbarch_deprecated_target_read_fp,
8613 set_gdbarch_deprecated_frame_saved_pc,
8614 set_gdbarch_deprecated_saved_pc_after_call,
8615 set_gdbarch_deprecated_fp_regnum.
8616 Add calls to:
8617 set_gdbarch_in_solib_call_trampoline,
8618 frame_unwind_append_sniffer,
8619 frame_base_set_default,
8620 set_gdbarch_unwind_pc,
8621 set_gdbarch_unwind_sp.
8622 * Makefile.in (s390-tdep.o): Update dependencies.
8623
b0cf273e
JB
8624 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8625 (S390_STACK_FRAME_OVERHEAD): Remove.
8626 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8627 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8628 (s390_promote_integer_argument): Remove.
8629 (s390_cannot_extract_struct_value_address): Remove.
8630 (s390_use_struct_convention, s390_store_struct_return): Remove.
8631 (s390_extract_return_value, s390_store_return_value): Remove.
8632 (s390_return_value_convention, s390_return_value): New functions.
8633 (is_float_singleton): Handle typedefs.
8a1dac83 8634 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8635 Remove, replace by ...
8636 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8637 s390_function_arg_integer): ... these new functions.
8638 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8639 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8640 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8641 Fill in tdep->abi.
8642 Remove calls to:
8643 set_gdbarch_deprecated_store_struct_return,
8644 set_gdbarch_deprecated_extract_return_value,
8645 set_gdbarch_deprecated_store_return_value,
8646 set_gdbarch_use_struct_convention,
8647 set_gdbarch_extract_struct_value_address,
8648 set_gdbarch_deprecated_pc_in_call_dummy,
8649 set_gdbarch_deprecated_push_arguments,
8650 set_gdbarch_deprecated_save_dummy_frame_tos,
8651 set_gdbarch_deprecated_push_return_address,
8652 set_gdbarch_deprecated_sizeof_call_dummy_words,
8653 set_gdbarch_deprecated_call_dummy_words,
8654 set_gdbarch_deprecated_dummy_write_sp.
8655 Add calls to:
8656 set_gdbarch_push_dummy_call,
8657 set_gdbarch_unwind_dummy_id,
8658 set_gdbarch_return_value.
8a1dac83 8659
e1457d83
JB
8660 * config/s390/nm-linux.h: Update comments.
8661 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8662 (STOPPED_BY_WATCHPOINT): Redefine.
8663 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8664 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8665 (s390_stopped_by_watchpoint): Likewise.
8666 (watch_area_cnt): Remove.
8667 * s390-nat.c: Update comments.
8668 (watch_area): Remove typedef.
8669 Global replace watch_area by struct watch_area.
8670 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8671 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8672 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8673 (s390_fix_watch_points): Remove pid argument,
8674 use s390_inferior_tid. Recompute area spanned by watchpoints.
8675 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8676 argument. Reimplement.
8677
d0f54f9d
JB
8678 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8679 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8680 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8681 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8682 core-regset.o.
8683 * config/s390/s390x.mt: Remove.
8684 * config/s390/tm-s390.h: Remove.
8685 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8686 (TARGET_ELF64): Remove.
8687 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8688 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8689 s390*-*-* case; always set gdb_target to s390.
8690 * regformats/reg-s390.dat: Remove control registers.
8691 * regformats/reg-s390x.dat: Likewise.
8692 * s390-tdep.h: New file.
8a1dac83 8693 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8694 Include "inferior.h" and "s390-tdep.h".
8695 Remove private definition of offsetof.
8696 (s390_register_u_addr): Remove.
8697 (regmap_gregset, regmap_fpregset): Define.
8698 (supply_gregset, fill_gregset): Reimplement.
8699 (supply_fpregset, fill_fpregset): Likewise.
8700 (s390_inferior_tid): New function.
8701 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8702 (fetch_inferior_registers, store_inferior_registers): Likewise.
8703 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8704 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8705 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8706 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8707 (struct gdbarch_tdep): Define.
8708 (struct s390_register_info): Define.
8709 (s390_register_info): New variable.
8710 (s390_register_name): Reimplement.
8711 (s390_register_type): New function.
8712 (s390_register_raw_size, s390x_register_raw_size): Remove.
8713 (s390_cannot_fetch_register): Remove.
8714 (s390_register_byte): Remove.
8715 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8716 (s390_dwarf_regmap): New variable.
8717 (s390_dwarf_reg_to_regnum): New function.
8718 (s390_stab_reg_to_regnum): Remove.
8719 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8720 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8721 (s390_convert_register_p): Likewise.
8722 (s390_register_to_value, s390_value_to_register): Likewise.
8723 (s390_register_reggroup_p): Likewise.
8724 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8725 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8726 (s390_supply_regset, s390_regset_from_core_section): New functions.
8727 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8728 (S390_FPR_SIZE): Likewise.
8729 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8730 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8731 (S390_NUM_GPRS): Move here from tm-s390.h.
8732 (S390_NUM_FPRS): Likewise.
8733 (s390_in_function_epilogue_p): New function.
8734 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8735 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8736 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8737 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8738 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8739 Remove calls to:
8740 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8741 set_gdbarch_deprecated_max_register_virtual_size,
8742 set_gdbarch_deprecated_register_byte,
d0f54f9d 8743 set_gdbarch_cannot_fetch_register,
8a1dac83 8744 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8745 set_gdbarch_deprecated_register_size,
8746 set_gdbarch_deprecated_register_raw_size,
8747 set_gdbarch_deprecated_register_virtual_size,
8748 set_gdbarch_deprecated_register_virtual_type,
8749 set_gdbarch_deprecated_register_bytes.
8750 Add calls to:
8751 set_gdbarch_num_pseudo_regs,
8752 set_gdbarch_register_type,
8753 set_gdbarch_convert_register_p,
8754 set_gdbarch_register_to_value,
8755 set_gdbarch_value_to_register,
8756 set_gdbarch_register_reggroup_p,
8757 set_gdbarch_regset_from_core_section,
8758 set_gdbarch_pseudo_register_read,
8759 set_gdbarch_pseudo_register_write,
8760 set_gdbarch_in_function_epilogue_p.
8761 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8762 (s390_tdep_h): New variable.
8763
8cfe231d
JB
87642004-02-17 Jim Blandy <jimb@redhat.com>
8765
4589a601
JB
8766 * findvar.c (value_from_register): If the type has no length, just
8767 return an acceptable value --- don't report an internal error.
8768
8cfe231d
JB
8769 * stabsread.c (read_type): If we find any type numbers that are
8770 forward references, complain if the references aren't resolved by
8771 the time we're finished reading.
8772 (cleanup_undefined_types): Make error message more appropriate for
8773 a complaint.
8774
5bf0017e
EZ
87752004-02-17 Elena Zannoni <ezannoni@redhat.com>
8776
9d62932d
EZ
8777 * Makefile.in (defs_h): Remove dependency on progress_h.
8778 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8779 progress.h.
8780 * main.c (captured_main): Delete use of START_PROGRESS and
8781 END_PROGRESS.
8782
87832004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8784
5bf0017e
EZ
8785 * objfiles.c (terminate_minimal_symbol_table): Add back
8786 initialization of MSYMBOL_TYPE.
8787
9fc9f5e2
AC
87882004-02-17 David Mosberger <davidm@hpl.hp.com>
8789
8790 Committed by Andrew Cagney.
8791 * Makefile.in (ia64_tdep_h): New macro.
8792 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8793 (ia64-tdep.o): Likewise.
8794 * ia64-tdep.h: New file.
8795 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8796 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8797 (ia64_aix_sigcontext_register_address): Likewise.
8798 (ia64_linux_getunwind_table): Delete declaration.
8799 * ia64-linux-tdep.c: Likewise.
8800
76cd2bd9
CV
88012004-02-17 Corinna Vinschen <vinschen@redhat.com>
8802
8803 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8804 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8805 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8806
634aa483
AC
88072004-02-17 Andrew Cagney <cagney@redhat.com>
8808
8809 * symtab.c (skip_prologue_using_sal): New function.
8810 * symtab.h (skip_prologue_using_sal): Declare.
8811 * frv-tdep.c: Include "symtab.h".
8812 (skip_prologue_using_sal): Delete function.
8813 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8814 * rs6000-tdep.c (refine_prologue_limit): Mention
8815 skip_prologue_using_sal.
8816 * ia64-tdep.c (refine_prologue_limit): Ditto.
8817 * Makefile.in: Update dependencies.
8818
88192004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8820
39ce7b3f
AC
8821 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8822 START_INFERIOR_TRAPS_EXPECTED.
8823 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8824 START_INFERIOR_TRAPS_EXPECTED.
8825 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8826 Delete macro.
8827 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8828 macro, moved to "nm-osf.h". Update copyright.
8829 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8830 update copyright.
8831
19772a2c
AC
8832 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8833 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8834 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8835 frameless_look_for_prologue.
8836 * frame.h (legacy_frameless_look_for_prologue): Rename
8837 frameless_look_for_prologue.
8838 * gdbarch.h, gdbarch.c: Re-generate.
8839 * sh64-tdep.c (sh64_gdbarch_init): Update.
8840 * sh-tdep.c (sh_gdbarch_init): Update.
8841 * s390-tdep.c (s390_gdbarch_init): Update.
8842 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8843 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8844 * m68k-tdep.c (m68k_gdbarch_init): Update.
8845 (delta68_frame_args_address): Update.
8846 * m32r-tdep.c (m32r_gdbarch_init): Update.
8847 * hppa-tdep.c (hppa_gdbarch_init): Update.
8848 * h8300-tdep.c (h8300_gdbarch_init): Update.
8849 * frv-tdep.c (frv_gdbarch_init): Update.
8850 (frv_frameless_function_invocation): Update.
8851 * cris-tdep.c (cris_gdbarch_init): Update.
8852 (cris_frameless_function_invocation): Update.
8853 * avr-tdep.c (avr_gdbarch_init): Update.
8854 * arm-tdep.c (arm_gdbarch_init): Update.
8855 * stack.c (frame_info): Update, call predicate.
8856 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8857 * frame.c (legacy_get_prev_frame): Update, call predicate..
8858 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8859 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8860 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8861 invocation.
8862 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8863 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8864 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8865
8866 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8867 function.
8868
7dcaac91
DJ
88692004-02-16 Daniel Jacobowitz <drow@mvista.com>
8870
8871 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8872 initializations.
8873
88289b6e
AC
88742004-02-16 Andrew Cagney <cagney@redhat.com>
8875
8876 * tui/tui-windata.c: Include "gdb_string.h".
8877 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8878 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8879 * Makefile.in: Update dependencies.
8880
9f976b41
DJ
88812004-02-16 Daniel Jacobowitz <drow@mvista.com>
8882
8883 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8884 * infrun.c: Include "gdb_assert.h".
8885 (singlestep_ptid, saved_singlestep_ptid)
8886 (stepping_past_singlestep_breakpoint): New variables.
8887 (resume): Set singlestep_ptid. Check for singlestep thread
8888 hop.
8889 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8890 (handle_inferior_event): Handle singlestep thread hop.
8891
c324d747
AC
88922004-02-16 Andrew Cagney <cagney@redhat.com>
8893
f090b9b1
AC
8894 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8895 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8896 (dwarf2_frame_init_reg): Ditto.
8897
fd33e6cb
AC
8898 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8899 suggested by Joshua Neuheisel
8900
c324d747
AC
8901 * configure.in: Always check for curses, including pdcurses.
8902 Warn, instead of error, when no curses are found. Enable TUI when
8903 curses is available.
8904 * configure: Re-generate.
8905
b66ba949
CV
89062004-02-16 Corinna Vinschen <vinschen@redhat.com>
8907
8908 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8909 sh_sh4_register_convert_to_virtual.
8910 (sh_register_convert_to_raw): Rename from
8911 sh_sh4_register_convert_to_raw.
8912 (sh_pseudo_register_read): Accomodate above name change.
8913 (sh_pseudo_register_write): Ditto.
8914
b58cbbf2
CV
89152004-02-16 Corinna Vinschen <vinschen@redhat.com>
8916
8917 * sh-tdep.c (sh_generic_register_name): Remove.
8918 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8919
5929a910
AC
89202004-02-15 Andrew Cagney <cagney@redhat.com>
8921
4566dfcf
AC
8922 * configure.in (build_warnings): Add -Wunused-function.
8923 * configure: Re-generate.
8924
db11ed55
AC
8925 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8926 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8927
46ac7a5d
AC
8928 * procfs.c (procfs_init_inferior): Assume that
8929 START_INFERIOR_TRAPS_EXPECTED is defined.
8930 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8931 * config/ns32k/tm-nbsd.h: Delete file,
8932 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8933
ba801595
AC
8934 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8935 * config/vax/tm-vax.h: Delete file.
8936
5929a910
AC
8937 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8938 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8939 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8940 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8941 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8942 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8943 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8944
8f22cb90
MK
89452004-02-15 Mark Kettenis <kettenis@gnu.org>
8946
8947 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8948 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8949 (struct dwarf2_frame_ops): New.
8950 (dwarf2_frame_default_init_reg): New function, based on
8951 dwarf2_frame_init_reg.
8952 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8953 (dwarf2_frame_init_reg): Call architecture-specific function.
8954 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8955 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8956 instead of dwarf2_frame_data.
8957 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8958 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8959
8132723e
AC
89602004-02-15 Andrew Cagney <cagney@redhat.com>
8961
046a4708
AC
8962 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8963 register_gdbarch_swap.
8964 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8965 * f-lang.c (_initialize_f_language): Update, use
8966 DEPRECATED_REGISTER_GDBARCH_SWAP.
8967 * remote.c (_initialize_remote): Ditto.
8968 * regcache.c (_initialize_regcache): Ditto.
8969 * parse.c (_initialize_parse): Ditto.
8970 * infrun.c (_initialize_infrun): Ditto.
8971 * mi/mi-main.c (_initialize_mi_main): Ditto.
8972 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8973
549c1eea
AC
8974 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8975 poking .cacheable directly.
8976 * symfile.c (symfile_bfd_open): Ditto.
8977
0c0b39de
AC
8978 * Makefile.in: Update all dependencies.
8979
8132723e
AC
8980 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8981 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8982 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8983 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8984 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8985
b9d26eb9
AC
89862004-02-14 Andrew Cagney <cagney@redhat.com>
8987
8e1f669a
AC
8988 * arch-utils.c (legacy_convert_register_p): Check
8989 DEPRECATED_REGISTER_CONVERTIBLE_P.
8990 * findvar.c (value_of_register): Ditto.
8991
cd0bfa36
AC
8992 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8993 * gdbarch.h, gdbarch.c: Re-generate.
8994 * arch-utils.c (deprecated_register_convertible_not): Delete.
8995 * arch-utils.h (deprecated_register_convertible_not): Delete.
8996 * mi/mi-main.c (get_register): Update. Update copyright.
8997 * infcmd.c (default_print_registers_info): Update.
8998
b9d26eb9
AC
8999 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9000 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9001 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9002 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9003 * frame.c (deprecated_get_next_frame_hack): Delete function.
9004 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9005 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9006 Update.
9007 * infcall.c (call_function_by_hand): Update.
9008
9ab9195f
EZ
90092004-02-14 Elena Zannoni <ezannoni@redhat.com>
9010
9011 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9012 from here...
9ab9195f
EZ
9013 * objfiles.c (init_entry_point_info, entry_point_address):..to
9014 here.
9015 * symfile.h (init_entry_point_info, entry_point_address): Remove
9016 prototypes.
9017 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9018 prototypes.
9ab9195f
EZ
9019 * cris-tdep.c: Remove include of symfile.h. Add include of
9020 objfiles.h.
9021 * infcall.c: Ditto.
9022 * mcore-tdep.c: Ditto.
9023 * mn10300-tdep.c: Ditto.
9024 * sh64-tdep.c: Ditto.
9025 * v850-tdep.c: Ditto.
9026 * arm-tdep.c: Remove include of symfile.h.
9027 * blockframe.c: Ditto.
9028 * coffread.c: Ditto.
9029 * dbxread.c: Ditto.
9030 * dwarf2read.c: Ditto.
9031 * dwarfread.c: Ditto.
8a1dac83 9032 * frv-tdep.c: Ditto.
9ab9195f
EZ
9033 * ia64-tdep.c: Ditto.
9034 * mdebugread.c: Ditto.
9035 * mipsread.c: Ditto.
8a1dac83 9036 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9037 * s390-tdep.c: Ditto.
9038 * sh-tdep.c: Ditto.
8a1dac83 9039 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9040 * gdbarch.sh: Remove include of symfile.h.
9041 * gdbarch.c: Regenerate.
9042 * solib-irix.c (enable_break): Use entry_point_address().
9043 Add comment about include file.
9044 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9045 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9046 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9047 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9048 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9049 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9050
c4c5b7ba
AC
90512004-02-13 Andrew Cagney <cagney@redhat.com>
9052
9053 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9054 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9055 copyright.
9056 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9057
3e7879de
FF
90582004-02-12 Fred Fish <fnf@redhat.com>
9059
9060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9061 set_gdbarch_store_return_value.
9062
6a7760b6
AC
90632004-02-12 Andrew Cagney <cagney@redhat.com>
9064
9065 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9066 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9067 (interrupt_query): Ditto.
9068 (ofunc): Delete unused variable.
9069 * cris-tdep.c (cris_abi): Delete unused function.
9070 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9071 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9072 (cris_get_asr_quick_shift_steps): Ditto.
9073 (cris_skip_prologue_frameless_p): Ditto.
9074 * arm-tdep.c (arm_push_return_address): Delete unused function.
9075 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9076 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9077 * s390-tdep.c (s390_function_start): Delete unused function.
9078
31687c3c
AC
90792004-02-12 Andrew Cagney <cagney@redhat.com>
9080
9081 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9082 gdbarch.h, gdbarch.c: Re-generate.
9083 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9084 to generic_prologue_frameless_p.
9085 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9086 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9087
6de918a6
DJ
90882004-02-11 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * mips-linux-tdep.c: Include "frame.h".
9091 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9092 (mips_linux_skip_resolver): New functions.
9093 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9094 and set_gdbarch_in_solib_call_trampoline.
9095 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9096 to after set_gdbarch_in_solib_return_trampoline. Only set the
9097 solib hooks to mips16 functions if the OS ABI is unknown.
9098 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9099 including "config/tm-linux.h".
9100 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9101 * Makefile.in (mips-linux-tdep.o): Update.
9102
87b3ede8
DC
91032004-02-11 David Carlton <carlton@kealia.com>
9104
9105 * linespec.c (decode_compound): Only look for a class symbol when
9106 considering all but the rightmost component.
9107
5979bc46
AC
91082004-02-11 Andrew Cagney <cagney@redhat.com>
9109
9110 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9111 abi code are are separatly grouped.
9112
5867a2fb
AC
91132004-02-11 Andrew Cagney <cagney@redhat.com>
9114
9115 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9116 * gdbarch.h, gdbarch.c: Re-generate.
9117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9118 * v850-tdep.c (v850_gdbarch_init): Update.
9119 * sh64-tdep.c (sh64_gdbarch_init): Update.
9120 * sh-tdep.c (sh_gdbarch_init): Update.
9121 * s390-tdep.c (s390_gdbarch_init): Update.
9122 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9123 * mips-tdep.c (mips_gdbarch_init): Update.
9124 * mcore-tdep.c (mcore_gdbarch_init): Update.
9125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9126 * m32r-tdep.c (m32r_gdbarch_init): Update.
9127 * ia64-tdep.c (ia64_gdbarch_init): Update.
9128 * hppa-tdep.c (hppa_gdbarch_init): Update.
9129 * h8300-tdep.c (h8300_gdbarch_init): Update.
9130 * frv-tdep.c (frv_gdbarch_init): Update.
9131 * d10v-tdep.c (d10v_gdbarch_init): Update.
9132 * cris-tdep.c (cris_gdbarch_init): Update.
9133 * avr-tdep.c (avr_gdbarch_init): Update.
9134 * arm-tdep.c (arm_gdbarch_init): Update.
9135 * alpha-tdep.c (alpha_gdbarch_init): Update.
9136
026a72f8
CV
91372004-02-11 Corinna Vinschen <vinschen@redhat.com>
9138
9139 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9140 comma.
9141 (sh_sh4al_dsp_register_name): Ditto.
9142
3903d437
AC
91432004-02-10 Andrew Cagney <cagney@redhat.com>
9144
9145 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9146 (mips_init_frame_pc_first): Delete function.
9147 (mips_frame_saved_pc): Delete function.
9148 (mips_frame_chain): Delete function.
9149 (mips_init_extra_frame_info): Delete function.
9150 (mips_xfer_register): Delete unused variable "reg".
9151 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9152 (mips_n32n64_return_value): Delete unused variable "reg".
9153 (mips_n32n64_return_value): Delete unused variable "pos".
9154 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9155 (mips_o32_return_value): Delete unused variable "pos".
9156 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9157 (mips_print_fp_register): Delete unused variable "namelen"
9158 (mips_print_fp_register): Delete unused variable "flt2"
9159 (get_frame_pointer): Delete function.
9160 (cached_proc_desc): Delete static variable.
9161 (mips_pop_frame): Delete function.
9162 (mips_find_saved_regs): Delete function.
9163 (mips_get_saved_register): Delete function.
9164 (mips_saved_pc_after_call): Delete function.
9165 (SIGFRAME_BASE): Delete macro.
9166 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9167 (SIGFRAME_PC_OFF): Delete macro.
9168 (SIGFRAME_REGSAVE_OFF): Delete macro.
9169 (mips_dump_tdep): Do not print deleted macro definitions.
9170
b9fb98bd
AC
91712004-02-10 Andrew Cagney <cagney@redhat.com>
9172
9173 * Makefile.in (SFILES): Remove explictly listed tui files.
9174 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9175
78ced177 91762004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9177
78ced177
JJ
9178 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9179 to use paddr functions to format ia64 addresses and long values.
9180 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9181 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9182 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9183 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9184 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9185
6a83354a
AC
91862004-02-10 Andrew Cagney <cagney@redhat.com>
9187
9188 * defs.h: Do not include "tui.h".
9189 * gdb_curses.h: New file.
9190 * tui/tui-hooks.h: New file.
9191 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9192 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9193 (tui_initialize_io): Delete declaration.
9194 (tui_initialize_readline: Delete redundant declaration.
9195 (struct tui_point): Delete definition.
9196 * tui/tui-data.h (struct tui_point): Define.
9197 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9198 * utils.c: Include "tui/tui.h".
9199 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9200 * printcmd.c [TUI]: Include "tui/tui.h".
9201 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9202 * tui/tui-command.c: Include "gdb_curses.h".
9203 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9204 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9205 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9206 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9207 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9208 * Makefile.in: Update all dependencies.
9209 (tui_hooks_h, gdb_curses_h): Define.
9210 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9211
997470ef
EZ
92122004-02-10 Elena Zannoni <ezannoni@redhat.com>
9213
9214 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9215 auxf2. Add comments about some other rarely used fields.
9216
4ff2cc4d
AC
92172004-02-10 Andrew Cagney <cagney@redhat.com>
9218
9219 * Makefile.in (init.c): Fix script removing duplicates. Problem
9220 reported by Peter Schauer.
9221
1ab21617
EZ
92222004-02-09 Elena Zannoni <ezannoni@redhat.com>
9223
9224 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9225 obstack_specify_allocation.
9226 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9227 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9228 (allocate_rt_common_objfile): Ditto.
9229 * symfile.c (reread_symbols): Ditto.
9230 * gdb_obstack.h: Add comment.
9231
17763fd9
EZ
92322004-02-09 Elena Zannoni <ezannoni@redhat.com>
9233
9234 * linespec.c (decode_line_1, locate_first_half)
9235 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9236 commented out code.
9237
ec5cdd75
DJ
92382004-02-09 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9241 obstack_free.
9242
43b54b88
AC
92432004-02-09 Andrew Cagney <cagney@redhat.com>
9244
9245 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9246 fails, try find_pc_section. Fix PR c++/1267.
9247 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9248 instead of find_pc_mapped_section.
9249 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9250 not default to the section containing PC. Fix PR symtab/1519.
9251
edfae063
AC
92522004-02-09 Andrew Cagney <cagney@redhat.com>
9253
9254 * Makefile.in (mips-tdep.o): Update dependencies.
9255 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9256 "trad-frame.h".
9257 (mips_unwind_pc): Return the pseudo PC register.
9258 (mips_unwind_dummy_id): New function.
9259 (mips16_fetch_instruction): New function.
9260 (mips32_fetch_instruction): New function.
9261 (struct mips_frame_cache): Define.
9262 (mips_mdebug_frame_cache): New function.
9263 (mips_mdebug_frame_this_id): New function.
9264 (mips_mdebug_frame_prev_register): New function.
9265 (mips_mdebug_frame_unwind): Define.
9266 (mips_mdebug_frame_sniffer): New function.
9267 (mips_mdebug_frame_base_address): New function.
9268 (mips_mdebug_frame_base): Define.
9269 (mips_mdebug_frame_base_sniffer): New function.
9270 (mips_gdbarch_init): Append unwind and base sniffers. Set
9271 unwind_dummy_id.
9272
defc864c
AC
92732004-02-08 Andrew Cagney <cagney@redhat.com>
9274
6764ddad
AC
9275 * frame.c: Print both the register number and name.
9276
defc864c
AC
9277 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9278 and a sed into a single sed. Make .c and .o patterns more robust.
9279 (OBS): Delete.
9280 (INIT_FILES): Replace OBS with COMMON_OBS.
9281 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9282
645d6d10
MK
92832004-02-08 Mark Kettenis <kettenis@gnu.org>
9284
9285 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9286 the PT_WCOOKIE request.
9287
23e3c3fc
AC
92882004-02-08 Andrew Cagney <cagney@redhat.com>
9289
58dfe9ff
AC
9290 * mips-tdep.c (mips_unwind_pc): New function.
9291 (mips_gdbarch_init): Set mips_unwind_pc.
9292
1152e35e
AC
9293 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9294 (get_frame_id): Allow the UNKNOWN_FRAME.
9295 (frame_register_unwind, get_frame_type): Ditto.
9296
31b75dbf
AC
9297 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9298 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9299 unwind_dummy_id indicates a legacy frame.
9300
3483b318
AC
9301 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9302 * configure: Re-generate.
9303
23e3c3fc
AC
9304 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9305 methods.
9306
33f8ca73
AC
93072004-02-08 Andrew Cagney <cagney@redhat.com>
9308
9309 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9310 makefile macro.
9311 * configure: Re-generate.
9312 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9313 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9314 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9315 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9316 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9317 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9318 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9319 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9320 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9321 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9322
6ba8e26f 93232004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9324
20d286a5
AC
9325 * Makefile.in: Update all dependencies.
9326
d836ee13
AC
9327 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9328 * configure: Re-generate.
9329 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9330 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9331 (COMMON_OBS): Add "main.o" and "annotate.o".
9332 (ANNOTATE_OBS): Delete.
9333 (OBS): Remove ANNOTATE_OBS.
9334 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9335 CONFIG_INITS.
9336 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9337 against CONFIG_OBS and "main.o".
9338 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9339 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9340
d02c80cd
AC
9341 * tui/tui-command.c: Include "gdb_string.h", delete register
9342 attribute, use ISO-C function signatures.
9343 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9344 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9345 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9346 * tui/tui.c: Ditto.
6ba8e26f
AC
9347
9348 * tui/tui-command.c: Change variable and function names to lower
9349 case.
9350 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9351 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9352 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9353 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9354 * tui/tui-winsource.c, tui/tui.c: Ditto.
9355
4a146b47
EZ
93562004-02-07 Elena Zannoni <ezannoni@redhat.com>
9357
9358 * buildsym.c (free_pending_blocks, finish_block)
9359 (record_pending_block, make_blockvector, end_symtab): Replace
9360 symbol_obstack with objfile_obstack.
8a1dac83 9361 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9362 (coff_read_enum_type): Ditto.
8a1dac83 9363 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9364 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9365 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9366 (dwarf2_symbol_mark_computed): Ditto.
9367 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9368 * elfread.c (elf_symtab_read): Ditto.
9369 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9370 (hpread_read_enum_type, hpread_read_function_type)
9371 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9372 Ditto.
8a1dac83 9373 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9374 (java_link_class_type): Ditto.
8a1dac83 9375 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9376 (new_symbol): Ditto.
9377 * minsyms.c (install_minimal_symbols): Ditto.
9378 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9379 (terminate_minimal_symbol_table): Replace symbol_obstack with
9380 objfile_obstack.
9381 (free_objfile): Remove freeing of symbol_obstack.
9382 * objfiles.h: Remove symbol_obstack field.
9383 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9384 objfile_obstack.
9385 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9386 symbol_obstack.
9387 (solib_add_common_symbols): Replace symbol_obstack with
9388 objfile_obstack.
9389 * somsolib.c (som_solib_add): Ditto.
9390 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9391 (common_block_start, common_block_end): Ditto.
9392 * symfile.c (reread_symbols): Remove freeing and init of
9393 symbol_obstack.
9394 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9395 * symfile.h: Update comment.
9396 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9397 stats printing.
9398 * symtab.c (symbol_set_names): Replace symbol_obstack with
9399 objfile_obstack.
9400 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9401 Update comments.
9402 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9403 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9404 objfile_obstack.
9405
6d012f14
AC
94062004-02-07 Andrew Cagney <cagney@redhat.com>
9407
9408 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9409 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9410 fields and variables.
9411 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9412 (m_beInvisible): Delete macro.
9413 * tui/tui-data.h: Fix case case fields and variables.
9414 (m_genWinPtrIsNull): Delete macro.
9415 (tui_win_list): Rename winList.
9416 (TUI_SRC_WIN): Rename srcWin.
9417 (TUI_DISASM_WIN): Rename disassemWin.
9418 (TUI_DATA_WIN): Rename dataWin.
9419 (TUI_CMD_WIN): Rename cmdWin.
9420 (m_genWinPtrNotNull): Delete macro.
9421 (m_winPtrIsNull): Delete macro.
9422 (m_winPtrNotNull): Delete macro.
9423 (tui_win_is_source_type): Replace m_winIsSourceType
9424 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9425 (tui_win_has_locator): Replace m_hasLocator.
9426 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9427 m_setWinHighlightOff.
9428 * tui/tui-data.c: Update references.
9429 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9430 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9431 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9432 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9433 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9434 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9435 * tui/tui-winsource.c, tui/tui.c: Ditto.
9436
7d34766b
MK
94372004-02-07 Mark Kettenis <kettenis@gnu.org>
9438
1c800673
MK
9439 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9440 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9441 StackGhost.
9442
7d34766b
MK
9443 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9444 variable `i6' to `i7'.
9445 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9446
22940a24
AC
94472004-02-07 Andrew Cagney <cagney@redhat.com>
9448
9449 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9450 (TuiPoint, TuiPointPtr): Ditto.
9451 (TuiStatus, TuiStatusPtr): Ditto.
9452 (TuiWinType, TuiWinTypePtr): Ditto.
9453 (struct tui_point): Rename _TuiPoint.
9454 (tui_get_low_disassembly_address): Rename
9455 tuiGetLowDisassemblyAddress.
9456 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9457 (tuiFree): Delete declaration.
9458 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9459 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9460 * tui/tui.c (tuiFree): Delete function.
9461 * cli/cli-cmds.c (disassemble_command): Update references.
9462 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9463 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9464 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9465 * tui/tui-winsource.c: Ditto.
9466
8b92e4d5
EZ
94672004-02-07 Elena Zannoni <ezannoni@redhat.com>
9468
9469 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9470 coffstab_build_psymtabs, elfstab_build_psymtabs)
9471 (stabsect_build_psymtabs): Replace psymbol_obstack with
9472 objfile_obstack.
9473 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9474 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9475 Ditto.
9476 * dwarfread.c (scan_compilation_units): Ditto.
9477 * elfread.c (elfstab_offset_sections): Ditto.
9478 * hppa-tdep.c (read_unwind_info): Ditto.
9479 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9480 (hpread_end_psymtab): Ditto.
9481 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9482 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9483 Ditto.
9484 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9485 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9486 (build_objfile_section_table): Ditto.
9487 (allocate_objfile): Remove init of psymbol_obstack.
9488 (free_objfile): Remove freeing of psymbol_obstack.
9489 * objfiles.h (struct objfile): Remove field
9490 psymbol_obstack. Update comments.
9491 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9492 psymbol_obstack with objfile_obstack.
9493 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9494 psymbol_obstack.
9495 * somread.c (som_symfile_offsets, init_import_symbols)
9496 (init_export_symbols): Replace psymbol_obstack with
9497 objfile_obstack.
9498 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9499 * symfile.c (default_symfile_offsets, syms_from_objfile)
9500 (reread_symbols): Remove freeing and init of psymbol_obstack.
9501 (cashier_psymtab): Update comment.
9502 * symmisc.c (print_objfile_statistics): Don't report stats for
9503 psymbol obstack.
9504 * symtab.h (struct general_symbol_info, struct partial_symtab):
9505 Update comments.
9506 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9507 (xcoff_symfile_offsets): Replace psymbol_obstack with
9508 objfile_obstack.
9509
b99607ea
EZ
95102004-02-07 Elena Zannoni <ezannoni@redhat.com>
9511
9512 * objfiles.h (struct objfile): Add objfile_obstack field.
9513 Remove type_obstack field.
9514
9515 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9516 read_structure_scope read_enumeration, new_symbol): Replace
9517 type_obstack with objfile_obstack.
9518 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9519 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9520 (lookup_fundamental_type): Ditto.
9521 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9522 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9523 (hpread_read_doc_function_type, hpread_read_struct_type)
9524 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9525 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9526 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9527 (java_link_class_type): Ditto.
9528 * mdebugread.c (parse_type): Ditto.
9529 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9530 * solib-sunos.c (solib_add_common_symbols): Ditto.
9531 * stabsread.c (define_symbol, read_type, read_member_functions,
9532 read_cpp_abbrev, read_one_struct_field): Ditto.
9533 * symfile.c (reread_symbols): Ditto.
9534 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9535
2a8854a7
AC
95362004-02-07 Andrew Cagney <cagney@redhat.com>
9537
9538 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9539 (tui_exec_info_content): Rename TuiExecInfoContent.
9540 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9541 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9542 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9543 (TuiList, TuiListPtr): Ditto.
9544 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9545 (TuiDataType, TuiDataTypePtr): Ditto.
9546 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9547 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9548 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9549 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9550 (TuiDataElement, TuiDataElementPtr): Ditto.
9551 (TuiWinElement, TuiWinElementPtr): Ditto.
9552 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9553 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9554 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9555 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9556 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9557 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9558 * tui/tui-command.c, tui/tui-data.c: Update references.
9559 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9560 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9561 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9562 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9563
05cbe71a
MK
95642004-02-07 Mark Kettenis <kettenis@gnu.org>
9565
9566 * dwarf2-frame.h: Update copyright.
9567 (enum dwarf2_frame_reg_rule): New.
9568 (struct dwarf2_frame_state_reg): New.
9569 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9570 * dwarf2-frame.c: Update copyright.
9571 (enum dwarf2_reg_rule): Remove.
9572 (struct dwarf2_frame_state): Remove defenition of `struct
9573 dwarf2_frame_state_reg'.
9574 (read_reg): Call get_frame_arch to get the architecture instead of
9575 using CURRENT_GDBARCH.
9576 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9577 DWARF2_FRAME_.
9578 (dwarf2_frame_init_reg): New function.
9579 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9580 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9581 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9582 tags with DWARF2_FRAME_.
9583 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9584 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9585 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9586
ec7d9e56
AC
95872004-02-06 Andrew Cagney <cagney@redhat.com>
9588
dd1abb8c
AC
9589 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9590 (enum tui_data_type): Rename _TuiDataType.
9591 (struct tui_layout_def): Rename _TuiLayoutDef.
9592 (struct tui_source_element): Rename _TuiSourceElement.
9593 (struct tui_data_element): Rename _TuiDataElement.
9594 (struct tui_command_element): Rename _TuiCommandElement.
9595 (struct tui_locator_element): Rename _TuiLocatorElement.
9596 (union tui_which_element): Define.
9597 (struct tui_win_element): Rename _TuiWinElement.
9598 (struct tui_data_info): Rename _TuiDataInfo.
9599 (struct tui_source_info): Rename _TuiSourceInfo.
9600 (struct tui_command_info): Rename _TuiCommandInfo.
9601 (tui_initialize_static_data): Rename initializeStaticData.
9602 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9603 (tui_alloc_win_info): Rename allocWinInfo.
9604 (tui_init_generic_part): Rename initGenericPart.
9605 (tui_init_win_info): Rename initWinInfo.
9606 (tui_alloc_content): Rename allocContent.
9607 (tui_add_content_elements): Rename addContentElements.
9608 (tui_init_content_element): Rename initContentElement.
9609 (tui_free_window): Rename freeWindow.
9610 (tui_free_win_content): Rename freeWinContent.
9611 (tui_free_data_content): Rename freeDataContent.
9612 (tui_free_all_source_wins_content): Rename
9613 freeAllSourceWinsContent.
9614 (tui_del_window): Rename tuiDelWindow.
9615 (tui_del_data_windows): Rename tuiDelDataWindows.
9616 (tui_partial_win_by_name): Rename partialWinByName.
9617 (tui_win_name): Rename winName.
9618 (tui_current_layout): Rename currentLayout.
9619 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9620 (tui_term_height): Rename termHeight.
9621 (tui_set_term_height_to): Rename setTermHeightTo.
9622 (tui_term_width): Rename termWidth.
9623 (tui_set_term_width_to): Rename setTermWidthTo.
9624 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9625 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9626 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9627 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9628 (tui_source_windows): Rename sourceWindows.
9629 (tui_clear_source_windows): Rename clearSourceWindows.
9630 (tui_clear_source_windows_detail): Rename
9631 clearSourceWindowsDetail.
9632 (tui_clear_win_detail): Rename clearWinDetail.
9633 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9634 (tui_default_tab_len): Rename tuiDefaultTabLen.
9635 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9636 (tui_win_with_focus): Rename tuiWinWithFocus.
9637 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9638 (tui_layout_def): Rename tuiLayoutDef.
9639 (tui_win_resized): Rename tuiWinResized.
9640 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9641 (tui_next_win): Rename tuiNextWin.
9642 (tui_prev_win): Rename tuiPrevWin.
9643 (tui_add_to_source_windows): Rename addToSourceWindows.
9644 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9645 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9646 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9647 * tui/tui.c, tui/tui-data.c: Ditto.
9648 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9649 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9650
a358af15
AC
9651 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9652 (struct symtab): Declare.
9653 (tui_set_source_content): Rename tuiSetSourceContent.
9654 (tui_show_symtab_source): Rename tuiShowSource.
9655 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9656 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9657 * tui/tui-source.c: Update copyright. Update references.
9658 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9659 * tui/tui-stack.c: Update references.
9660
a21fcd8f
AC
9661 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9662 (struct tui_win_info): Declare.
9663 (tui_scroll_forward): Rename tuiScrollForward.
9664 (tui_scroll_backward): Rename tuiScrollBackward.
9665 (tui_scroll_left): Rename tuiScrollLeft.
9666 (tui_scroll_right): Rename tuiScrollRight.
9667 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9668 (tui_resize_all): Rename tuiResizeAll.
9669 (tui_refresh_all_win): Rename tuiRefreshAll.
9670 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9671 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9672 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9673 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9674
edae1ccf
AC
9675 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9676 (tui_erase_data_content): Rename tuiEraseDataContent.
9677 (tui_display_all_data): Rename tuiDisplayAllData.
9678 (tui_check_data_values): Rename tuiCheckDataValues.
9679 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9680 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9681 (tui_first_data_element_no_in_line): Rename
9682 tuiFirstDataElementNoInLine.
9683 (tui_delete_data_content_windows): Rename
9684 tuiDeleteDataContentWindows.
9685 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9686 (tui_display_data_from): Rename tuiDisplayDataFrom.
9687 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9688 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9689 * tui/tui-win.c, tui/tui-regs.c: Update references.
9690 * tui/tui-layout.c, tui/tui.c: Update references.
9691
ec7d9e56
AC
9692 * tui/tui-wingeneral.h: Update copyright.
9693 (m_allBeVisible): Delete macro.
8a1dac83 9694 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9695 (struct tui_gen_win_info): Declare.
9696 (struct tui_win_info): Declare.
9697 (tui_unhighlight_win): Rename unhighlightWin.
9698 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9699 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9700 (tui_make_window): Rename makeWindow.
9701 (tui_copy_win): Rename copyWin.
9702 (tui_box_win): Rename boxWin.
9703 (tui_highlight_win): Rename highlightWin.
9704 (tui_check_and_display_highlight_if_needed): Rename
9705 checkAndDisplayHighlightIfNeeded.
9706 (tui_refresh_all): Rename refreshAll.
9707 (tui_delete_win): Rename tuiDelwin.
9708 (tui_refresh_win): Rename tuiRefreshWin.
9709 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9710 (tui_make_visible, tui_make_invisible): New functions.
9711 (tui_make_all_visible, tui_make_all_invisible): New functions.
9712 (make_all_visible): Rename makeAllVisible.
9713 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9714 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9715 * tui/tui-windata.c, tui/tui-win.c: Update references.
9716 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9717 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9718
1e52e2eb
MK
97192004-02-06 Mark Kettenis <kettenis@gnu.org>
9720
9721 * proc-api.c (write_with_trace): Initialize local variable to
9722 silence compiler warning.
9723
f80bda8e
AC
97242004-02-06 Andrew Cagney <cagney@redhat.com>
9725
9726 * tui/tui-source.h: Do not include "defs.h".
9727 (struct tui_win_info): Declare.
9728 (tui_set_source_content_nil): Declare.
9729 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9730 (union tui_line_or_address): Rename _TuiLineOrAddress.
9731 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9732 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9733 (tui_update_source_window_as_is): Rename
9734 tuiUpdateSourceWindowAsIs.
9735 (tui_update_source_windows_with_addr): Rename
9736 tuiUpdateSourceWindowsWithAddr.
9737 (tui_update_source_windows_with_line): Rename
9738 tuiUpdateSourceWindowsWithLine.
9739 (tui_clear_source_content): Rename tuiClearSourceContent.
9740 (tui_erase_source_content): Rename tuiEraseSourceContent.
9741 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9742 (tui_show_source_content): Rename tuiShowSourceContent.
9743 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9744 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9745 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9746 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9747 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9748 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9749 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9750 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9751 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9752 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9753 (struct tui_win_info): Declare.
9754 * tui/tui-stack.c: Update references.
9755 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9756 * tui/tui-win.c, tui/tui-source.c: Ditto.
9757 * tui/tui.c, tui/tui-disasm.c: Ditto.
9758
9fbfb822
MK
97592004-02-06 Mark Kettenis <kettenis@gnu.org>
9760
9761 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9762 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9763
03cebad2
MK
97642004-02-05 Mark Kettenis <kettenis@gnu.org>
9765
9766 * infrun.c (handle_inferior_event): Allow for breakpoint
9767 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9768 and SIGEMT. Update comments.
9769 * NEWS (Revised SPARC target): Mention support for non-executable
9770 stack.
9771
290281b1
MK
97722004-02-04 Mark Kettenis <kettenis@gnu.org>
9773
9774 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9775 * inftarg.c: Update copyright year.
9776 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9777 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9778 (sparc_xfer_wcookie): New function.
9779 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9780 * Makefile.in (sparc-nat.o): Update dependencies.
9781 * config/sparc/nm-nbsd.h: Include "target.h".
9782 (NATIVE_XFER_WCOOKIE): New define.
9783 (sparc_xfer_wcookie): New prototype.
9784
212161df
AC
97852004-02-04 Andrew Cagney <cagney@redhat.com>
9786
9787 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9788 SYSCALL_TRAP function.
9789 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9790
6e4c6c91
DJ
97912004-02-04 Andrew Cagney <cagney@redhat.com>
9792 Daniel Jacobowitz <drow@mvista.com>
9793
9794 * objfiles.h: Delete comments refering to inside_entry_func and
9795 DEPRECATED_FRAME_CHAIN_VALID.
9796 * defs.h (inside_entry_func): Update prototype..
9797 * blockframe.c (inside_entry_func): Rename to
9798 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9799 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9800
cae688ec
JJ
98012004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9802
9803 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9804 outside of #ifdef SOLIB_ADD region.
9805 (do_restore_lang_radix_cleanup): Ditto.
9806 (resolve_pending_breakpoint): Ditto.
9807
19217676
AC
98082004-02-03 Andrew Cagney <cagney@redhat.com>
9809
9810 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9811 (process_note_abi_tag_sections): Delete unused function.
9812 (ia64_read_fp): Delete unused function.
9813 (gdbarch_extract_struct_value_address): Delete declaration.
9814
876753be
AC
98152004-02-02 Andrew Cagney <cagney@redhat.com>
9816
9817 * vax-tdep.c (vax_frame_chain): Delete call to
9818 deprecated_inside_entry_file.
9819 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9820
d4f10bf2
MK
98212004-02-02 Mark Kettenis <kettenis@gnu.org>
9822
9823 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9824 column that's "empty" or "same value" when eliminating REG_RA
9825 rules.
9826
cae688ec
JJ
98272004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9828
9829 * NEWS: Add information about new pending breakpoint support.
9830
0101ce28
JJ
98312004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9832
9833 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9834 and pending fields for pending breakpoint support.
9835 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9836 (condition_command): Only parse condition if not a pending
9837 breakpoint.
9838 (print_one_breakpoint): Add support for pending breakpoints.
9839 (describe_other_breakpoints): Add checks to verify we are not
9840 dealing with pending breakpoints.
9841 (check_duplicates): Don't check pending breakpoints.
9842 (set_raw_breakpoint): Initialize pending flag.
9843 (do_restore_lang_radix_cleanup): New cleanup routine.
9844 (resolve_pending_breakpoint): New function.
9845 (re_enable_breakpoints_in_shlibs): Try and resolve any
9846 pending breakpoints via resolve_pending_breakpoint.
9847 (mention): Add pending breakpoint support.
9848 (parse_breakpoint_sals): Add new parameter to pass to
9849 decode_line_1 to indicate silent errors when files or functions
9850 are not found. Change all callers.
9851 (do_captured_parse_breakpoint): New function.
9852 (break_command_1): Change prototype to return an rc value and to
9853 take an optional pending breakpoint pointer. Support creating
9854 a pending breakpoint if a "not found" form of error occurs when
9855 parsing the breakpoint. Also support resolving an existing pending
9856 breakpoint and be silent if the resolution fails.
9857 (create_breakpoints): Change prototype to take pending breakpoint
9858 pointer. When resolving a pending breakpoint, use the new pointer
9859 to provide a conditional or commands added by the end-user.
9860 (delete_breakpoint): Add appropriate check for pending.
9861 (breakpoint_re_set_one): Ditto.
9862 (do_enable_breakpoint): Ditto.
9863
8d577d32
DC
98642004-02-02 David Carlton <carlton@kealia.com>
9865
9866 * valops.c (enum oload_classification): New.
9867 (find_overload_match): Break implementation into separate
9868 functions; delete #if 0'd code; look for symbols within
9869 namespaces.
9870 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9871 (find_oload_champ,oload_method_static,classify_oload_match): New.
9872 * cp-support.h: Add declaration for cp_func_name; update
9873 declaration for make_symbol_overload_list.
9874 * cp-support.c (cp_func_name): New.
9875 (overload_list_add_symbol): Fix comment, use
9876 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9877 (make_symbol_overload_list): Take a function name and a namespace
9878 instead of a symbol; change implementation.
9879 (make_symbol_overload_list_using): New.
9880 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9881
22e8e3c7
FF
98822004-02-02 Fred Fish <fnf@redhat.com>
9883
9884 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9885 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9886 * remote-sim.c (gdb_os_write_stderr): Write output to
9887 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9888 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9889 gdb_stderr stream and update copyright years.
22e8e3c7 9890
6b753f60
DJ
98912004-02-01 Daniel Jacobowitz <drow@mvista.com>
9892
9893 * Makefile.in (mips-linux-nat.o): Update dependencies.
9894 * mips-linux-nat.c: Include mips-tdep.h.
9895
98962004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9897
9898 * sol-thread.c (sol_thread_xfer_partial): New function.
9899 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9900 (init_sol_core_ops): Likewise.
9901
9902 * procfs.c (procfs_xfer_partial): New function.
9903 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9904 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9905
9906 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9907 procfs_xfer_auxv function.
9908
9909 * procfs.c (procfs_make_note_section): If we can read
9910 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9911 * linux-proc.c (linux_make_note_section): Likewise.
9912
9913 * auxv.h: New file.
9914 * auxv.c: New file.
9915 * Makefile.in (auxv_h): New variable.
9916 (COMMON_OBS): Add auxv.o here.
9917 (auxv.o): New target.
9918
9919 * corelow.c (core_xfer_partial): New function.
9920 (init_core_ops): Use it for core_ops.to_xfer_partial.
9921
9922 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9923 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9924 macro if that is defined.
9925
fa5281d0
DJ
99262004-02-01 Daniel Jacobowitz <drow@mvista.com>
9927
9928 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9929 and check the specified thread for each breakpoint.
9930 * breakpoint.h (bpstat_stop_status): Update prototype.
9931 * infrun.c (handle_inferior_event): Update calls to
9932 bpstat_stop_status.
9933
26ee262d
DJ
99342004-02-01 Daniel Jacobowitz <drow@mvista.com>
9935
9936 * Makefile.in (cli-cmds.o): Add $(readline_h).
9937
d9b52655
DJ
99382004-02-01 Daniel Jacobowitz <drow@mvista.com>
9939
9940 * cli/cli-cmds.c: Include readline.h.
9941 (complete_command): Pass the start of the last word to
9942 complete_line.
9943
9709f61c
DJ
99442004-01-31 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9947 argument, and change first argument to a CORE_ADDR.
9948 * breakpoint.h (bpstat_stop_status): Update prototype.
9949 * infrun.c (adjust_pc_after_break): Add a new comment.
9950 (handle_inferior_event): Update calls to bpstat_stop_status.
9951
4f1280bb
DJ
99522004-01-31 Daniel Jacobowitz <drow@mvista.com>
9953
9954 * breakpoint.h: Update copyright years.
9955
4fa8626c
DJ
99562004-01-31 Daniel Jacobowitz <drow@mvista.com>
9957
9958 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9959 (bpstat_stop_status): Don't decrement PC.
9960 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9961 prototype.
9962 * infrun.c (adjust_pc_after_break): New function.
9963 (handle_inferior_event): Call it, early. Remove later references
9964 to DECR_PC_AFTER_BREAK.
9965 (normal_stop): Add commentary.
9966
fad0733a
DJ
99672004-01-31 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9970 2004-01-27 double-free fix.
9971
42cdca6c
MK
99722004-01-31 Mark Kettenis <kettenis@gnu.org>
9973
9974 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9975 (sparc32_frame_prev_register): Handle StackGhost.
9976 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9977
932d5416
RM
99782004-01-29 Roland McGrath <roland@redhat.com>
9979
9980 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9981 * configure: Regenerated.
9982
9983 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9984 * Makefile.in (procfs.o): Add dep.
9985
47d3492a
AC
99862004-01-28 Andrew Cagney <cagney@redhat.com>
9987
9988 * tui/tui-stack.h: Update copyright.
9989 (struct frame_info): Add opaque declaration.
9990 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9991 (tui_show_locator_content): Rename tuiShowLocatorContent.
9992 (tui_show_frame_info): Rename tuiShowFrameInfo.
9993 * tui/tui-stack.c: Update copyright. Update references.
9994 * tui/tui-winsource.c: Update references.
9995 * tui/tui-win.c: Update references.
9996 * tui/tui-layout.c: Update references.
9997 * tui/tui-hooks.c: Update copyright, update references.
9998 * tui/tui.c: Update copyright, update references.
9999 * tui/tui-disasm.c: Update references.
10000
5d51ca54
DC
100012004-01-28 David Carlton <carlton@kealia.com>
10002
10003 * dwarf2read.c (add_partial_structure): Use demangled name if
10004 namespace equals "".
10005
086ed43d
JB
100062004-01-27 Jim Blandy <jimb@redhat.com>
10007
10008 Clean up misapplied patch:
10009 * dwarf2read.c (determine_prefix): Change one of the two forward
10010 declarations for 'determine_prefix_aux' to a declaration for this.
10011 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10012 argument to 'die_specification'.
10013
2a35147e
JB
10014 * dwarf2read.c (read_func_scope): Re-indent comment.
10015
a355c7de 100162004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10017
a355c7de
AC
10018 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10019 b->exp to NULL after freeing so that error during re-parsing or
10020 evaluation of expressions associated with breakpoint don't
10021 eventually lead to re-freeing of storage.
10022 Committed by Andrew Cagney.
10023
63ff5125
AC
100242004-01-27 Andrew Cagney <cagney@redhat.com>
10025
10026 * source.c (ambiguous_line_spec): Delete undefined declaration.
10027 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10028 (m32r_set_server_address, m32r_set_download_path): Ditto.
10029 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10030
e142c38c
DJ
100312004-01-27 Daniel Jacobowitz <drow@mvista.com>
10032
10033 * dwarf2read.c: Update calls to changed and renamed functions, and
10034 references to moved variables.
10035
10036 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10037 language, language_defn, list_in_scope, and ftypes members.
10038 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10039 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10040 (baseaddr): Remove globals.
10041
10042 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10043 (set_cu_language, die_is_declaration, die_specification)
10044 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10045 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10046 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10047 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10048
10049 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10050 cu.list_in_scope. Don't initialize cu_header_offset.
10051 (add_partial_symbol): Add local baseaddr.
10052 (psymtab_to_symtab_1): Add local baseaddr. Use
10053 objfile->section_offsets for consistency. Don't initialize
10054 cu_header_offset; do initialize cu.header.offset and
10055 cu.list_in_scope.
10056 (read_file_scope, read_func_scope, read_lexical_block_scope)
10057 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10058
c6e06ede
MC
100592004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10060
fb328ecc 10061 * PROBLEMS: Add gdb/1516.
c6e06ede 10062
48184fd4
AC
100632003-12-29 Robert Millan <robertmh@gnu.org>
10064
10065 Patch committed by Andrw Cagney.
10066 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10067 * configure.tgt: Match knetbsd*-gnu.
10068
c1321b30
AC
100692004-01-26 Andrew Cagney <cagney@redhat.com>
10070
f3699be3
AC
10071 * breakpoint.c (catch_command_1): Delete #ifdef code.
10072 (catch_fork_command_1): Delete #ifdef wrapper.
10073 (catch_exec_command_1): Ditto.
10074 (catch_load_command_1): Ditto.
10075 (catch_unload_command_1): Ditto.
10076
c1321b30
AC
10077 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10078 (catch_breakpoint): Delete #if0ed function.
10079 (disable_catch_breakpoint): Ditto.
10080 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10081 (disable_catch, enable_catch, delete_catch): Ditto.
10082
b4501125
AC
100832004-01-26 Andrew Cagney <cagney@redhat.com>
10084
10085 * remote.c (echo_check, quit_flag): Delete variables.
10086 (cisco_kernel_mode): Delete variable.
10087 (minitelnet_return, tty_input, escape_count): Delete variables.
10088 (remote_cisco_mode): Delete variable.
10089 (remote_cisco_open, remote_cisco_close): Delete function.
10090 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10091 (init_remote_cisco_ops): Delete function.
10092 (_initialize_remote): Do not install "remote cisco" code.
10093 (read_frame): Delete cisco specific code.
10094 (remote_info_process): Delete function.
10095 (remote_wait): Delete cisco specific code.
10096 (remote_cisco_section_offsets): Delete function.
10097 (remote_cisco_objfile_relocate): Delete function.
10098 (remote_async_wait): Delete cisco specific code.
10099 (minitelnet, readtty, readsocket): Delete function.
10100
74055713
AC
101012004-01-26 Andrew Cagney <cagney@redhat.com>
10102
10103 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10104 comments mentioning extract_returned_value_address.
10105 * infcmd.c (print_return_value): Update. Add comments on
10106 extract_returned_value_address.
10107 * stack.c (return_command): Add comments on
10108 extract_returned_value_address.
10109 * values.c: Update comment.
10110 * m32r-tdep.c: Update comment.
10111 * sparc-tdep.c: Update comment.
10112 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10114 * sh64-tdep.c (sh64_gdbarch_init): Update.
10115 * sh-tdep.c (sh_gdbarch_init): Update.
10116 * s390-tdep.c (s390_gdbarch_init): Update.
10117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10118 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10119 * m68k-tdep.c (m68k_gdbarch_init): Update.
10120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10121 * m32r-tdep.c (m32r_gdbarch_init): Update.
10122 * ia64-tdep.c (ia64_gdbarch_init): Update.
10123 * h8300-tdep.c (h8300_gdbarch_init): Update.
10124 * frv-tdep.c (frv_gdbarch_init): Update.
10125 * arm-tdep.c (arm_gdbarch_init): Update.
10126 * alpha-tdep.c (alpha_gdbarch_init): Update.
10127
a67af2b9
AC
101282004-01-26 Andrew Cagney <cagney@redhat.com>
10129
10130 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10131 SYMBOL_LOCATION_FUNCS
10132 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10133 "struct symbol_ops".
10134 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10135 type to "struct symbol_ops".
10136 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10137 (struct symbol): Replace ".aux_value.loc.funcs" and
10138 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10139 (SYMBOL_OBJFILE): Delete macro.
10140 (SYMBOL_LOCATION_FUNCS): Delete macro.
10141 (SYMBOL_LOCATION_BATON): Update.
10142 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10143 intead of SYMBOL_LOCATION_FUNCS.
10144 * ax-gdb.c (gen_var_ref): Ditto.
10145 * printcmd.c (address_info): Ditto.
10146 * findvar.c (read_var_value): Ditto.
10147 (symbol_read_needs_frame): Ditto.
10148
c034e007
AC
101492004-01-26 Andrew Cagney <cagney@redhat.com>
10150
10151 * dwarf2read.c (read_func_scope): Document frame-base hack.
10152
bb472c1e
MK
101532004-01-25 Mark Kettenis <kettenis@gnu.org>
10154
10155 * infcmd.c (print_return_value): Plug memory leak; delete
10156 ui_stream object. Rename argument `structure_return' to
10157 `struct_return'.
10158
c8e737d5
MK
101592004-01-25 Mark Kettenis <kettenis@gnu.org>
10160
f941662f
MK
10161 * infcmd.c (print_return_value): Wrap long lines.
10162 (finish_command_continuation, finish_command): Remove unused
10163 variable `funcaddr'. Fix some coding-standards problems.
10164
c558d81a 10165 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10166 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10167 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10168 TDEP->fpregset to zero.
10169
bf1e5861 10170 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10171 floating-point registers for traditional NetBSD core files.
10172 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10173 TDEP->sizeof_fpregset here.
10174
4c72d57a
MK
101752004-01-25 Mark Kettenis <kettenis@gnu.org>
10176
566626fa
MK
10177 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10178 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10179 function with code split out from
10180 sparc32nbsd_sigcontext_frame_cache.
10181 (sparc32nbsd_sigcontext_frame_cache): Use
10182 sparc32nbsd_sigcontext_saved_regs.
10183 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10184 OpenBSD.
10185 * sparcobsd-tdep.c: New file.
10186 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10187 (sparcobsd-tdep.o): New dependency.
10188 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10189 * config/sparc/obsd.mt: New file.
10190
4c72d57a
MK
10191 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10192 TDEP->fpregset to be initialized to enable core file register
10193 sets.
10194
7e5e9f88
MK
101952004-01-24 Mark Kettenis <kettenis@gnu.org>
10196
f0f207fd 10197 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10198 Add opaque declarations.
10199 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10200 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10201 function with code split out from
10202 sparc64nbsd_sigcontext_frame_cache.
10203 (sparc64nbsd_sigcontext_frame_cache): Use
10204 sparc64nbsd_sigcontext_saved_regs.
10205 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10206 OpenBSD.
10207 * sparc64obsd-tdep.c: New file.
10208 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10209 (sparc64obsd-tdep.o): New dependency.
10210 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10211 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10212 * config/sparc/obsd64.mt: New file.
10213
690668cc
MK
10214 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10215 read the instruction at PC.
10216
7e5e9f88
MK
10217 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10218 value of GDB_OSABI_DEFAULT.
10219 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10220 instead of GDB_OSABI_NETBSD_AOUT.
10221
68b6dce9
NR
102222004-01-24 Nick Roberts <nick@nick.uklinux.net>
10223
10224 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10225 copyright.
10226
080ce8c0
AC
102272004-01-23 Andrew Cagney <cagney@redhat.com>
10228
10229 * printcmd.c (display_command): Replace tui_set_display call with
10230 tui_set_layout_for_display_command.
10231 * tui/tui.h (enum tui_win_type): Define.
10232 (tui_set_layout): Delete declaration.
10233 (tui_set_layout_for_display_command): Rename set_tui_layout.
10234 * tui/tui-data.h (enum tui_layout_type): Define.
10235 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10236 "tui.h".
10237 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10238 (tui_default_win_height): Rename tuiDefaultWinHeight.
10239 (tui_default_win_viewport_height): Rename
10240 tuiDefaultWinViewportHeight.
10241 (tui_set_layout): RenametuiSetLayout.
10242 * tui/tui-layout.c: Update references.
10243 * tui/tui.c: Update references.
10244 * tui/tui-disasm.c: Update references.
10245
b368761e
DC
102462004-01-23 David Carlton <carlton@kealia.com>
10247
10248 Partial workaround for PR c++/1511:
10249 * cp-namespace.c: Include frame.h.
10250 (cp_lookup_transparent_type): New
10251 (cp_lookup_transparent_type_loop): New.
10252 * cp-support.h: Declare cp_lookup_transparent_type.
10253 * symtab.c (basic_lookup_transparent_type): Renamed from
10254 lookup_transparent_type.
10255 (lookup_transparent_type): Replace old body by a call to
10256 current_language->la_lookup_transparent_type.
10257 * symtab.h: Update copyright. Declare
10258 basic_lookup_transparent_type.
10259 * language.h: Update copyright.
10260 (struct language_defn): Add la_lookup_transparent_type.
10261 * language.c: Update copyright.
10262 (unknown_language_defn): Add basic_lookup_transparent_type.
10263 (auto_language_defn): Add basic_lookup_transparent_type.
10264 (local_language_defn): Add basic_lookup_transparent_type.
10265 * ada-lang.c: Update copyright.
10266 (ada_language_defn): Add basic_lookup_transparent_type.
10267 * c-lang.c: Update copyright.
10268 (c_language_defn): Add basic_lookup_transparent_type.
10269 (cplus_language_defn): Add basic_lookup_transparent_type.
10270 (asm_language_defn): Add basic_lookup_transparent_type.
10271 (minimal_language_defn): Add basic_lookup_transparent_type.
10272 * f-lang.c: Update copyright.
10273 (f_language_defn): Add basic_lookup_transparent_type.
10274 * jv-lang.c: Update copyright.
10275 (java_language_defn): Add basic_lookup_transparent_type.
10276 * m2-lang.c: Update copyright.
10277 (m2_language_defn): Add basic_lookup_transparent_type.
10278 * objc-lang.c: Update copyright.
10279 (objc_language_defn): Add basic_lookup_transparent_type.
10280 * p-lang.c: Update copyright.
10281 (p_language_defn): Add basic_lookup_transparent_type.
10282 * scm-lang.c: Update copyright.
10283 (scm_language_defn): Add basic_lookup_transparent_type.
10284 * Makefile.in (cp-namespace.o): Depend on frame.h.
10285
fdde2d81
DC
102862004-01-23 David Carlton <carlton@kealia.com>
10287
10288 Patch for PR c++/1520:
10289 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10290 properly if we have a specification die.
10291 (determine_prefix_aux): Rename from determine_prefix.
10292 (determine_prefix): Like the old determine_prefix, but never
10293 returns NULL.
10294
5b828b6b
TR
102952004-01-23 Theodore A. Roth <troth@openavr.org>
10296
10297 * avr-tdep.c: Update copyright.
10298 (avr_iaddr_p): Delete unused function.
10299 (avr_saddr_p): Delete unused function.
10300
a1b8c067
DC
103012004-01-23 David Carlton <carlton@kealia.com>
10302
10303 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10304 Fix for PR symtab/1534.
10305
f2cab569
MK
103062004-01-23 Mark Kettenis <kettenis@gnu.org>
10307
10308 * NEWS (New native configurations): Mention OpenBSD/sparc and
10309 OpenBSD/sparc64.
10310 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10311 * configure.host: Likewise.
10312 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10313 handler for OpenBSD.
10314 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10315
642d8300
MK
103162004-01-22 Mark Kettenis <kettenis@gnu.org>
10317
89aac506
MK
10318 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10319 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10320
36662fde
MK
10321 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10322 * cli/cli-cmds.c (shell_escape): Likewise.
10323
642d8300
MK
10324 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10325 OpenBSD .note.openbsd.ident sections.
10326
fae299cd
DC
103272004-01-22 David Carlton <carlton@kealia.com>
10328
10329 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10330 get_scope_pc_bounds.
10331 (read_file_scope): Ditto.
10332 (get_scope_pc_bounds): New function, produced by extracting code
10333 from the above two functions, consolidating it, and adding support
10334 for DW_TAG_namespace.
10335
a49d618c
MK
103362004-01-22 Mark Kettenis <kettenis@gnu.org>
10337
10338 * osabi.c (MAX_NOTESZ): New define.
10339 (check_note): New function.
10340 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10341 check_note.
10342
fe61caab
RM
103432004-01-21 Roland McGrath <roland@redhat.com>
10344
10345 * MAINTAINERS (write after approval): Add myself.
10346
ec145965
EZ
103472004-01-21 Eli Zaretskii <eliz@gnu.org>
10348
10349 * utils.c (init_page_info): Move declarations of `rows' and
10350 `cols' before the __GO32__-specific code. Move the closing brace
10351 outside the #ifdef __GO32__..#endif block.
10352 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10353
877522db
PB
103542004-01-21 Paul Brook <paul@codesourcery.com>
10355
10356 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10357 BPSTAT_WHAT_CHECK_SHLIBS.
10358
dbf5be1c
PB
103592004-01-21 Paul Brook <paul@codesourcery.com>
10360
10361 * MAINTAINERS: Add myself to write-after-approval.
10362
81f08b92
AC
103632004-01-20 Andrew Cagney <cagney@redhat.com>
10364
5a1efed7
AC
10365 * ax-gdb.c (print_axs_value): Delete unused function.
10366 * jv-lang.c (java_lookup_type): Delete unused function.
10367 * cli/cli-dump.c (dump_filetype): Delete unused function.
10368 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10369 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10370 (mips_getstring): Delete unused function.
10371 (pmon_insert_breakpoint): Delete #if0ed function.
10372 (PMON_MAX_BP): Delete #if0ed MACRO.
10373 (mips_pmon_bp_info): Delete #if0ed variable.
10374 (pmon_remove_breakpoint): Delete #if0ed function.
10375 * monitor.c (monitor_write_even_block): Delete unused function.
10376 (monitor_write_memory_block): Delete #if0ed code.
10377 * dink32-rom.c (dink32_load): Delete unused function.
10378 (_initialize_dink32_rom): Delete #if0ed code.
10379 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10380
b0a30fce
AC
10381 * tui/tui-command.c: Update references.
10382 * tui/tui-io.c: Update references.
10383 * tui/tui-command.h: Update copyright.
10384 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10385
81f08b92
AC
10386 * source.c (ambiguous_line_spec): Delete never-defined function.
10387 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10388 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10389 * cli/cli-cmds.c (validate_comname): Ditto.
10390
65f05602
AC
10391 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10392 "tui-data.h".
10393 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10394 (tui_show_disassem): Rename tuiShowDisassem.
10395 (tui_show_disassem_and_update_source): Rename
10396 tuiVerticalDisassemScroll.
10397 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10398 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10399 * tui/tui.h: Update copyright.
10400 (enum tui_status): Define.
10401 * tui/tui-data.h (enum tui_scroll_direction): Define.
10402 * tui/tui-disasm.c: Update copyright. Update references.
10403 * tui/tui-winsource.c: Update copyright. Update references.
10404 * tui/tui-win.c: Update references.
10405 * tui/tui-layout.c: Update references.
10406
6bb0384f
AC
104072004-01-20 Andrew Cagney <cagney@redhat.com>
10408
10409 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10410 sym2 to start of block.
10411
9175c9a3
MC
104122004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10413
10414 * MAINTAINERS: Delete mmalloc.
10415 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10416 * NEWS: Mention removal of --with-malloc.
10417 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10418 * config.in: Regenerate.
10419 * configure: Regenerate.
6bb0384f
AC
10420 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10421 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10422 * gdbinit.in: Remove mmalloc.
10423 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10424 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10425 * config/i386/go32.mh: Likewise.
10426 * config/i386/interix.mh: Likewise.
10427 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10428
4fcef00a
JJ
104292004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10430
10431 * linespec.c (decode_variable, symtab_from_filename): Call
10432 error_silent with error message instead of throwing an exception
10433 directly.
10434 * defs.h (error_silent, error_output_message): Add prototypes.
10435 (catch_exceptions_with_msg): Ditto.
10436 * utils.c (error_silent, error_output_message): New functions.
10437 * top.c (catch_exceptions_with_msg): New function.
10438
8e94b928
NR
104392004-01-20 Nick Roberts <nick@nick.uklinux.net>
10440
10441 * mi/mi-cmds.h (enum print_values): Add definition.
10442
10443 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10444 type and value for simple data types and just the name and type
10445 for complex ones, if required.
10446
10447 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10448 children, if required.
10449
a02d6af8
KB
104502004-01-19 Kevin Buettner <kevinb@redhat.com>
10451
10452 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10453 unused declarations.
10454
78a4a9b9
AC
104552004-01-19 Andrew Cagney <cagney@redhat.com>
10456
10457 * top.h (mapped_symbol_files): Delete declaration.
10458 * main.c (captured_main): Delete option "m" and "mapped".
10459 * objfiles.c (mapped_symbol_files): Delete variable.
10460 * symfile.c (symbol_file_command): Delete mmap code.
10461 (symbol_file_add_with_addrs_or_offsets): Ditto.
10462 (add_symbol_file_command, reread_separate_symbols): Ditto.
10463 * objfiles.h (OBJF_MAPPED): Delete.
10464 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10465 (free_objfile) [USE_MMALLOC]: Ditto.
10466 (open_existing_mapped_file): Delete function.
10467 (open_mapped_file): Delete function.
10468 (map_to_file): Delete function.
10469
2dbd5e30
KB
104702004-01-19 Kevin Buettner <kevinb@redhat.com>
10471
10472 * infrun.c (step_into_function): Account for possible breakpoint
10473 adjustment when computing ``stop_func_start''.
10474
437b434f
KB
104752004-01-19 Kevin Buettner <kevinb@redhat.com>
10476
10477 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10478 the region size against the size of a pointer, not the size of
10479 a register as given by DEPRECATED_REGISTER_SIZE.
10480
55fb0713
AC
104812004-01-19 Andrew Cagney <cagney@redhat.com>
10482
10483 * tui/tui-regs.h: Include "tui-data.h".
10484 (tuiFirstRegElementNoInLine): Delete declaration.
10485 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10486 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10487 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10488 (tui_calculate_regs_column_count): Rename
10489 tuiCalculateRegsColumnCount.
10490 (tui_check_register_values): Rename tuiCheckRegisterValues.
10491 (tui_show_registers): Rename tuiShowRegisters.
10492 (tui_display_registers_from_line): Rename
10493 tuiDisplayRegistersFromLine.
10494 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10495 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10496 (tui_first_reg_element_no_inline): Rename
10497 tuiFirstRegElementNoInLine.
10498 * tui/tui-data.h: Update copyright.
10499 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10500 * tui/tui-windata.c: Update copyright, update references.
10501 * tui/tui-regs.c: Update copyright, update references.
10502 * tui/tui-win.c: Update copyright, update references.
10503 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10504
cebe9500
AC
105052004-01-18 Andrew Cagney <cagney@redhat.com>
10506
bcdf1568
AC
10507 * tui/tui-io.c: Update copyright.
10508 (key_is_end_sequence, key_is_backspace): New functions.
10509 (key_is_command_char, key_is_start_sequence): New function.
10510 (tui_getc): Update references.
10511 * tui/tui-io.h: Update copyright.
10512 (m_tuiStartNewLine): Delete macro.
10513 (m_isBackspace, m_isDeleteChar): Delete macros.
10514 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10515 (m_isNextPage, m_isPrevPage): Delete macros.
10516 (m_isLeftArrow, m_isRightArrow): Delete macros.
10517 (m_isXdbStyleCommandChar): Delete macro.
10518 (key_is_start_sequence): Declare, replace m_isStartSequence.
10519 (key_is_end_sequence): Declare, replace m_isEndSequence.
10520 (key_is_backspace): Declare ,replace m_isBackspace.
10521 (key_is_command_char): Declare, replace m_isCommandChar.
10522 * tui/tui-command.c: Update copyright.
10523 (tuiDispatchCtrlChar): Update references.
10524
130d87e6
AC
10525 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10526 tuiSourceWin.h.
10527
d7b2e967
AC
10528 * tui/tui-command.c: Rename tui/tuiCommand.c.
10529 * tui/tui-command.h: Rename tui/tuiCommand.h.
10530 * tui/tui-data.c: Rename tui/tuiData.c.
10531 * tui/tui-data.h: Rename tui/tuiData.h.
10532 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10533 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10534 * tui/tui-io.c: Rename tui/tuiIO.c.
10535 * tui/tui-io.h: Rename tui/tuiIO.h.
10536 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10537 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10538 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10539 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10540 * tui/tui-source.c: Rename tui/tuiSource.c.
10541 * tui/tui-source.h: Rename tui/tuiSource.h.
10542 * tui/tui-stack.c: Rename tui/tuiStack.c.
10543 * tui/tui-stack.h: Rename tui/tuiStack.h.
10544 * tui/tui-win.c: Rename tui/tuiWin.c.
10545 * tui/tui-win.h: Rename tui/tuiWin.h.
10546 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10547 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10548 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10549 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10550 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10551 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10552 * tui/tui-file.c: Update includes.
10553 * tui/tui-hooks.c: Update includes.
10554 * tui/tui-interp.c: Update includes.
10555 * tui/tui.c: Update includes.
10556 * Makefile.in: Update all tui/ dependencies.
10557 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10558
b2100910
AC
10559 * Makefile.in: Update copyright. Update dependencies.
10560
cebe9500
AC
10561 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10562 problem.
10563
c6f0559b
AC
105642004-01-18 Andrew Cagney <cagney@redhat.com>
10565
43e9390b
AC
10566 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10567 instead of register_gdbarch_init.
10568
c6f0559b
AC
10569 * remote-sds.c (tohex): Delete unused function. Update copyright.
10570 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10571 * v850-tdep.c (v850_register_virtual_size): Ditto.
10572 * target.c (normal_target_post_startup_inferior): Ditto.
10573 * source.c (ambiguous_line_spec): Ditto.
10574 * remote.c (adapt_remote_get_threadinfo): Ditto.
10575 * mi/mi-out.c (out_field_fmt): Ditto.
10576 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10577 (output_control_change_notification): Ditto.
10578 * m68k-tdep.c (m68k_register_byte): Ditto.
10579 (m68k_remote_breakpoint_from_pc): Ditto.
10580 * ui-out.c (init_ui_out_state): Delete unused declaration.
10581 * stabsread.c (search_value): Ditto.
10582 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10583 * maint.c (print_section_table): Ditto.
10584 * infrun.c (set_follow_fork_mode_command): Ditto.
10585
a8504492
MK
105862004-01-18 Mark Kettenis <kettenis@gnu.org>
10587
10588 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10589 DW_CFA_def_cfa_exporession. Add support for
10590 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10591 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10592
0bd8997e
AC
105932004-01-18 Andrew Cagney <cagney@redhat.com>
10594
10595 * ocd.c: Update copyright.
10596 (bdm_read_register_command): Delete unused function.
10597 (_initialize_remote_ocd): Delete commented out reference.
10598 (get_quoted_char, reset_packet): Delete #if0ed function.
10599 (output_packet, put_quoted_char): Delete #if0ed function.
10600 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10601 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10602 (BDM_BREAKPOINT): Delete #if0ed macro.
10603 (remote_timeout): Delete #if0ed variable.
10604
31bb40e4
MK
106052004-01-18 Mark Kettenis <kettenis@gnu.org>
10606
10607 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10608 (core-sol2.o): Remove dependency.
10609 * core-sol2.c: Remove file.
10610
887432a5
AC
106112004-01-17 Andrew Cagney <cagney@redhat.com>
10612
10613 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10614 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10615 enums.
10616
29182b13
DJ
106172004-01-17 Daniel Jacobowitz <drow@mvista.com>
10618
10619 * remote.c: Update copyright years.
10620
2963ee1d
DJ
106212004-01-17 Daniel Jacobowitz <drow@mvista.com>
10622
10623 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10624
79d45cd4
AC
106252004-01-17 Andrew Cagney <cagney@redhat.com>
10626
ee300cd4
AC
10627 * mdebugread.c: Update copyright.
10628 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10629 (parse_type, parse_procedure): Ditto.
10630 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10631
fcacc9c2
AC
10632 * cris-tdep.c (cris_store_struct_return): Put back accidently
10633 deleted function.
10634
79d45cd4
AC
10635 * gdbarch.sh: Update copyright year.
10636 * gdbarch.h, gdbarch.c: Re-generate.
10637
b263358a
DJ
106382004-01-17 Daniel Jacobowitz <drow@mvista.com>
10639
10640 Suggested by George Anzinger.
10641 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10642 correct stack offset. Include unknown opcode numbers in the error
10643 message.
10644
931aecf5
AC
106452004-01-17 Andrew Cagney <cagney@redhat.com>
10646
10647 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10648 extract_struct_value_address, i386 does not set it.
10649 * sparc64-tdep.c (sparc64_init_abi): Do not set
10650 extract_struct_value_address, never called.
10651 (sparc64_extract_struct_value_address): Delete function.
10652 * m68hc11-tdep.c: Update copyright.
10653 (m68hc11_gdbarch_init): Delete redundant assignment of
10654 extract_struct_value_address.
10655 * i386-tdep.c: Update copyright.
10656 (i386_gdbarch_init): Do not set extract_struct_value_address,
10657 never called.
10658 (i386_extract_struct_value_address): Delete function.
10659 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10660 extract_struct_value_address, never called.
10661 (sparc32_extract_struct_value_address): #if 0 function. Add
10662 comments explaining its future.
10663
756fe439
DJ
106642004-01-17 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * arm-tdep.c (arm_write_pc): New function.
10667 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10668
e74f0f02
DJ
106692004-01-17 Daniel Jacobowitz <drow@mvista.com>
10670
10671 * breakpoint.c (must_shift_inst_regs): Delete.
10672 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10673 and SHIFT_INST_REGS.
10674 * infcmd.c (step_1, step_1_continuation): Delete references to
10675 SHIFT_INST_REGS.
10676 * infrun.c (keep_going): Likewise.
10677 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10678 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10679
b6cb9035
AC
106802004-01-17 Andrew Cagney <cagney@redhat.com>
10681
444a1e2e
AC
10682 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10683 * gdbarch.h, gdbarch.c: Re-generate.
10684 * infcmd.c (print_return_value): Delete reference to
10685 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10686
def7e6ed
AC
10687 * cris-tdep.c (cris_gdbarch_init): Do not set
10688 deprecated_extract_struct_value_address.
10689
07be497a
AC
10690 * xstormy16-tdep.c: Update copyright.
10691 (xstormy16_extract_struct_value_address): Update to current
10692 extract struct value address interface.
10693 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10694 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10695 current extract struct value address interface.
10696 (sh64_gdbarch_init): Set extract_struct_value_address.
10697
6b4d5c91
AC
10698 * cris-tdep.c: Update copyright.
10699 (cris_extract_struct_value_address): Delete function.
10700 (struct_return_address): Delete variable.
10701 (cris_store_struct_return): Do not set struct_return_address.
10702
464e0365
AC
10703 * mcore-tdep.c: Update copyright.
10704 (mcore_extract_struct_value_address): Delete function. Update
10705 comments.
10706 (mcore_gdbarch_init): Update.
10707 * mn10300-tdep.c: Update copyright.
10708 (mn10300_extract_struct_value_address): Delete function.
10709 (mn10300_gdbarch_init): Update.
10710 * v850-tdep.c: Update copyright.
10711 (v850_extract_struct_value_address): Delete.
10712 (v850_gdbarch_init): Update.
10713 * ns32k-tdep.c: Update copyright.
10714 (ns32k_extract_struct_value_address): Delete.
10715 (ns32k_gdbarch_init): Update.
10716 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10717 (hppa_gdbarch_init): Update.
10718 * vax-tdep.c: Update copyright.
10719 (vax_extract_struct_value_address): Delete.
10720 (vax_gdbarch_init): Update.
10721
afb18d0f
AC
10722 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10723 * gdbarch.h, gdbarch.c: Re-generate.
10724 * procfs.c (procfs_fetch_registers): Delete reference to
10725 DEPRECATED_NPC_REGNUM.
10726 (procfs_store_registers): Ditto.
10727 * regcache.c (generic_target_write_pc): Simplify.
10728 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10729
a698f53e
AC
10730 * core-sol2.c (fetch_core_registers): Replace
10731 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10732
adc11376
AC
10733 * hppa-tdep.c: Update copyright year.
10734 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10735 NPC_REGNUM.
10736 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10737
b6cb9035
AC
10738 * mips-tdep.c (mips_write_pc): New function.
10739 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10740 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10741 (mips_find_saved_regs, mips_software_single_step: Ditto.
10742 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10743 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10744
6d82d43b
AC
107452004-01-17 Andrew Cagney <cagney@redhat.com>
10746
10747 * mips-tdep.c: Re-indent. Group functions by ABI.
10748
71bd6bd4
AC
107492004-01-17 Andrew Cagney <cagney@redhat.com>
10750
10751 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10752 * gdbarch.c: Re-generate.
10753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10754 DECR_PC_AFTER_BREAK to zero.
10755 * vax-tdep.c (vax_gdbarch_init): Ditto.
10756 * v850-tdep.c (v850_gdbarch_init): Ditto.
10757 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10758 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10759 * sh-tdep.c (sh_gdbarch_init): Ditto.
10760 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10761 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10762 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10763 * mips-tdep.c (mips_gdbarch_init): Ditto.
10764 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10766 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10767 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10768 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10769 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10770 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10771 * frv-tdep.c (frv_gdbarch_init): Ditto.
10772 * cris-tdep.c (cris_gdbarch_init): Ditto.
10773 * avr-tdep.c (avr_gdbarch_init): Ditto.
10774 * arm-tdep.c (arm_gdbarch_init): Ditto.
10775 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10776
a02abb62
JB
107772004-01-17 J. Brobecker <brobecker@gnat.com>
10778
10779 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10780 Delete, no longer used.
10781 (read_subrange_type): New function, mostly extracted from
10782 read_array_type().
10783 (read_array_type): Replace extracted code by call to
10784 read_subrange_type().
10785 (dwarf2_get_attr_constant_value): New function.
10786 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10787 (add_partial_symbol): Likewise.
10788 (process_die): Likewise.
10789 (new_symbol): Likewise.
10790 (read_type_die): Likewise.
10791
cf5b2f1b
AC
107922004-01-16 Andrew Cagney <cagney@redhat.com>
10793
10794 * symfile.c: Update copyright year.
10795 (compare_symbols): Delete unused function.
10796 * stabsread.c: Update copyright year.
10797 (lrs_general_complaint): Delete unused function.
10798 (ref_search_value): Ditto.
10799 (get_substring): Delete declaration.
10800 * sh64-tdep.c: Update copyright year.
10801 (sh64_get_gdb_regnum): Delete unused function.
10802 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10803 Delete unused function.
10804
d33b9831
MK
108052004-01-17 Mark Kettenis <kettenis@gnu.org>
10806
10807 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10808 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10809
7aea86e6
AC
108102004-01-16 Andrew Cagney <cagney@redhat.com>
10811
10812 Changes from Peter Schauer.
10813 * rs6000-tdep.c: Update copyright year.
10814 (rs6000_push_dummy_call): Update the stack pointer before
10815 accessing the corresponding stack region.
10816 * rs6000-nat.c: Update copyright year.
10817 (set_host_arch): Set "info.abfd" to "exec_bfd".
10818
26b0da32
MK
108192004-01-15 Mark Kettenis <kettenis@gnu.org>
10820
10821 * blockframe.c: Update copyright year.
10822 (inside_entry_func): Don't treat a zero PC specially.
10823
86fbe6cc
EZ
108242004-01-14 Elena Zannoni <ezannoni@redhat.com>
10825
10826 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10827 variable.
10828 (gcore_create_callback): Ditto. Skip any memory segment that has
10829 no permissions set.
10830
63d06c5c
DC
108312004-01-14 David Carlton <carlton@kealia.com>
10832
10833 Change symbols for C++ nested types to contain the fully qualified
10834 name, if possible. (At least in the DWARF-2 case.) Partial fix
10835 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10836 c++/895.
10837 * c-exp.y (qualified_type): Handle types nested within classes.
10838 * cp-namespace.c: Update comments.
10839 (cp_set_block_scope): Delete #if 0.
10840 (cp_lookup_nested_type): Handle types nested within classes.
10841 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10842 when appropriate.
10843 (add_partial_symbol): Add the name of the enclosing namespace to
10844 types.
10845 (pdi_needs_namespace): New.
10846 (add_partial_namespace): Tweak comment.
10847 (add_partial_structure): New.
10848 (psymtab_to_symtab_1): Initialize processing_current_prefix
10849 here...
10850 (process_die): instead of here.
10851 (read_structure_scope): Try to figure out the name of the class or
10852 namespace that the structure might be defined within.
10853 (read_enumeration): Generate fully-qualified names, if possible.
10854 (read_namespace): Don't set name to NULL.
10855 (die_specification): New.
10856 (new_symbol): Generate fully-qualified names for types.
10857 (read_type_die): Determine appropriate prefix.
10858 (determine_prefix): New.
10859 (typename_concat): New.
10860 (class_name): New.
10861 * valops.c (value_aggregate_elt): Pass NOSIDE to
10862 value_struct_elt_for_reference.
10863 (value_struct_elt_for_reference): Make static, add NOSIDE
10864 parameter, call value_maybe_namespace_elt as a last resort.
10865 (value_namespace_elt): Break out code into
10866 value_maybe_namespace_elt.
10867 (value_maybe_namespace_elt): New.
10868
87783b8b
AC
108692004-01-12 Andrew Cagney <cagney@redhat.com>
10870
10871 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10872 cooked floating-point registers.
10873 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10874 and value_to_register.
10875
6503b91e
AC
108762004-01-13 Andrew Cagney <cagney@redhat.com>
10877
10878 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10879 * gdbarch.c: Re-generate.
10880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10881 FUNCTION_START_OFFSET.
10882 * v850-tdep.c (v850_gdbarch_init): Ditto.
10883 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10884 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10885 * sh-tdep.c (sh_gdbarch_init): Ditto.
10886 * s390-tdep.c (s390_gdbarch_init): Ditto.
10887 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10888 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10889 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10890 * mips-tdep.c (mips_gdbarch_init): Ditto.
10891 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10892 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10894 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10895 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10896 * i386-tdep.c (i386_gdbarch_init): Ditto.
10897 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10898 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10899 * frv-tdep.c (frv_gdbarch_init): Ditto.
10900 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10901 * cris-tdep.c (cris_gdbarch_init): Ditto.
10902 * avr-tdep.c (avr_gdbarch_init): Ditto.
10903 * arm-tdep.c (arm_gdbarch_init): Ditto.
10904 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10905
ea1dd7bc
DJ
109062004-01-13 Daniel Jacobowitz <drow@mvista.com>
10907
10908 * infrun.c (follow_fork_mode_ask): Remove.
10909 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10910 (follow_fork): Simplify and remove internal error for
10911 follow_fork_mode_ask.
10912 (_initialize_infrun): Update "set follow-fork-mode" help text.
10913
0f0cffd2
AC
109142004-01-13 Andrew Cagney <cagney@redhat.com>
10915
10916 * configure.in: Update copyright year.
10917 (build_warnings): Add -Wunused-label.
10918 * configure: Re-generate.
10919
de38af99
AC
109202004-01-12 Andrew Cagney <cagney@redhat.com>
10921
954a7fba
AC
10922 * exec.h (exec_ops): Make "extern".
10923
de38af99
AC
10924 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10925 the function is void.
10926 (mips_pseudo_register_write): Ditto.
10927
1a111ce3
AC
109282004-01-12 Andrew Cagney <cagney@redhat.com>
10929
10930 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10931 call. Never defined.
10932 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10933 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10934 (struct sparc_gregset, struct regcache): Ditto.
10935 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10936
48efe704
AC
109372004-01-12 Andrew Cagney <cagney@redhat.com>
10938
10939 * mi/ChangeLog: Delete file. Renamed to ...
10940 * mi/ChangeLog-1999-2003: New file.
10941 * tui/ChangeLog: Delete file. Renamed to ...
10942 * tui/ChangeLog-1998-2003: New file.
fe61caab 10943
a54124c5
MK
109442004-01-11 Mark Kettenis <kettenis@gnu.org>
10945
2ca62865
MK
10946 * sparc64nbsd-tdep.c: Include "regset.h".
10947 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10948 Remove variables.
10949 (fetch_core_registers): Remove function.
10950 (sparc64nbsd_core_fns): Remove variable.
10951 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10952 functions.
10953 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10954 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10955 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10956
ca9d58e9
MK
10957 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10958 sparc_extract_struct_value_address.
10959 (sparc32_gdbarch_init): Set extract_struct_value_address.
10960 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10961 function.
10962 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10963 return_value_on_stack.
10964
3cc87ec0
MK
10965 * NEWS: Mention that %cs and %ss have been added to the AMD64
10966 configurations
10967
5bf00f29
MK
10968 * frame.c: Update copyright year.
10969 (get_prev_frame): Improve comment.
10970
4f7ec84e
MK
10971 * sparc64fbsd-tdep.c: Include "regset.h".
10972 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10973 Remove variables.
10974 (fetch_core_registers): Remove function.
10975 (sparc64fbsd_core_fns): Remove variable.
10976 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10977 functions.
10978 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10979 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10980 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10981
4e7b0cd3
MK
10982 * sparcnbsd-tdep.c: Include "regset.h".
10983 (fetch_core_registers): Remove function.
10984 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10985 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10986 functions.
10987 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10988 TDEP->fpregset.
46b58ce9 10989 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10990
a54124c5
MK
10991 * sparc-tdep.h (struct regset): Provide opaque declaration.
10992 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10993 fpregset and sizeof_fpregset members.
10994 * sparc-tdep.c (struct regset): Provide opaque declaration.
10995 (sparc_regset_from_core_section): New function.
10996 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10997 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10998 Set regset_from_core_section when appropriate.
10999
29ff87c5
MK
110002004-01-10 Mark Kettenis <kettenis@gnu.org>
11001
79b1ab3d
MK
11002 * x86-64-tdep.c (amd64_non_pod_p): New function.
11003 (amd64_classify_aggregate): Return class memory for non-POD
11004 C++ structure types.
11005
6470d250
MK
11006 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11007 argument. Use it to reserve a register if necessary.
11008 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11009 amd64_push_arguments.
11010
562c50c2
MK
11011 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11012
af233647
MK
11013 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11014 register numbers in comments.
11015 * x86-64-tdep.h: Update copyright year.
11016 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11017 Adjust for addition of %cs and %ss.
11018 * amd64fbsd-nat.c: Update copyright year.
11019 (reg_offset): Add register offsets for %cs and %ss.
11020 * amd64fbsd-tdep.c: Update copyright year.
11021 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11022 (amd64fbsd_sc_reg_offset): Likewise.
11023 * x86-64-linux-nat.c: Update copyright year.
11024 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11025 and %ss.
11026 * amd64nbsd-nat.c: Update copyright year.
11027 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11028 * amd64nbsd-tdep.c: Update copyright year.
11029 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11030 * x86-64-linux-tdep.c: Update copyright year.
11031 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11032 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11033 * regformats/reg-x86-64.dat: Add %cs and %ss.
11034
29ff87c5
MK
11035 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11036 variables to prevent long lines. Update comments to reflect
11037 reality.
11038
38d518c9
EZ
110392004-01-09 David Carlton <carlton@kealia.com>
11040
11041 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11042 * dwarf2read.c (read_namespace): Pull out name-generating code
11043 into namespace_name. Rename previous_namespace to previous_prefix
11044 and processing_current_namespace to processing_current_prefix..
11045 (namespace_name): New function.
11046 (add_partial_symbol): Substitute uses of pdi->name with
11047 actual_name.
11048 * cp-support.h: Rename processing_current_namespace to
11049 processing_current_prefix.
11050 Update copyright year.
11051 * cp-namespace.c: Rename processing_current_namespace to
11052 processing_current_prefix.
11053 Update copyright year.
fe61caab 11054
1e4728e7
AC
110552004-01-09 Andrew Cagney <cagney@redhat.com>
11056
11057 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11058
c77c642a
MK
110592004-01-09 Mark Kettenis <kettenis@gnu.org>
11060
11061 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11062 complaining.
11063 (process_one_symbol): Deal with N_PATCH stabs.
11064
b44e9041
EZ
110652004-01-09 Elena Zannoni <ezannoni@redhat.com>
11066
11067 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11068 ifdeffed code.
11069 Update copyright year.
38d518c9 11070
eccfb640
MC
110712004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11072
11073 * config/pa/tm-hppa.h: Update extern declarations for
11074 hppa32_hpux_frame_saved_pc_in_sigtramp,
11075 hppa32_hpux_frame_base_before_sigtramp, and
11076 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11077
848c5feb
MC
110782004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11079
11080 * config/pa/tm-hppah.h: Update copyright years.
11081
3cc5d663
AC
110822004-01-08 Andrew Cagney <cagney@redhat.com>
11083
11084 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11085 (mips_o32_reg_struct_has_addr): Delete function.
11086 (mips_gdbarch_init): Update.
11087 (mips_extract_struct_value_address): Delete function.
11088
bfec0b41
JJ
110892004-01-08 David Mosberger <davidm@hpl.hp.com>
11090
11091 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11092 reality.
11093
16e109ca
AC
110942004-01-07 Andrew Cagney <cagney@redhat.com>
11095
6214a8a1
AC
11096 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11097 architecture's elf flags (when available).
11098
8d5838b5
AC
11099 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11100 FPU to the start, check the MIPS FPU when looking for an old
11101 architecture.
11102 (set_mipsfpu_single_command): Update the architecture.
11103 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11104
480d3dd2
AC
11105 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11106 (mips_mask_address_p): Add "tdep" parameter.
11107 (show_mask_address, mips_addr_bits_remove): Update.
11108 (mips_dump_tdep): Update.
11109 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11110 (MIPS_STACK_ARGSIZE): Delete macro.
11111 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11112 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11113 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11114 (mips_dump_tdep): Update.
11115 (MIPS_SAVED_REGSIZE): Delete macro.
11116 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11117 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11118 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11119 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11120 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11121 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11122 (mips_pop_frame, return_value_location): Update.
11123 (mips_n32n64_return_value, mips_dump_tdep): Update.
11124
ec03c1ac
AC
11125 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11126 MIPS ABI.
11127
16e109ca
AC
11128 * mips-tdep.c: Update copyright.
11129 (mips_gdbarch_init): Merge two code blocks handling the register
11130 name and number layout.
11131
15255275
MS
111322004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11133
11134 * tracepoint.c (validate_actionline): Fix segv at EOF
11135
9f9057da
MC
111362004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11137
11138 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11139 properly for static fields.
11140
0127c0d3 111412004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11142 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11143
11144 * disasm.c: Update copyright to include 2004.
11145 (do_mixed_source_and_assembly): For uiout asm list
11146 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11147 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11148 the tuple/list. Move check for whether to close off the
fe61caab 11149 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11150 on each loop iteration.
11151
5269965e
AC
111522004-01-05 Andrew Cagney <cagney@redhat.com>
11153
54f1137d
AC
11154 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11155 should be a switch case and not a label.
11156 * mips-tdep.c (mips32_next_pc): Delete unused labels
11157 "greater_equal_branch" and "less_zero_branch".
11158 * jv-valprint.c (java_print_value_fields): Delete unused label
11159 "flush_it".
11160
5269965e
AC
11161 * target.c (unpush_target): Only close a target that is in the
11162 target stack.
11163
dbc22fa1
MK
111642004-01-05 Mark Kettenis <kettenis@gnu.org>
11165
9515395e
MK
11166 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11167 address from [sp + 64] instead of %o2.
11168
dbc22fa1
MK
11169 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11170 fixes PR backtrace/1476.
11171
5439edaa
AC
111722004-01-05 Andrew Cagney <cagney@redhat.com>
11173
11174 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11175 move to start of file.
11176 * i386-tdep.h (struct regcache): Add opaque declaration.
11177 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11178 declaration.
11179 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11180 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11181 * win32-nat.c (fake_create_process): Use ISO C style definition.
11182 * stabsread.c (define_symbol): Delete #ifndef
11183 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11184 stabs_argument_has_addr call, macro never defined.
11185
19061abe
MC
111862004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11187
11188 * op50-rom.c: Delete.
11189 * w89k-rom.c: Delete.
11190 * Makefile.in: Remove references.
11191
e53bef9f
MK
111922004-01-04 Mark Kettenis <kettenis@gnu.org>
11193
11194 * x86-64-tdep.c: Update copyright year.
11195 (struct amd64_register_info): Rename from x86_64_register_info.
11196 (amd64_register_info): Rename from x86_64_register_info.
11197 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11198 (amd64_register_name): Rename from x86_64_register_name.
11199 (amd64_register_type): Rename from x86_64_register_type.
11200 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11201 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11202 (amd64_dwarf_reg_to_regnum): Rename from
11203 x86_64_dwarf_reg_to_regnum.
11204 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11205 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11206 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11207 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11208 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11209 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11210 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11211 (amd64_frame_cache): Rename from x86_64_frame_cache.
11212 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11213 (amd64_frame_prev_register): Rename from
11214 x86_64_frame_prev_register.
11215 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11216 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11217 (amd64_sigtramp_frame_cache): Rename from
11218 x86_64_sigtramp_frame_cache.
11219 (amd64_sigtramp_frame_prev_register): Rename from
11220 x86_64_sigtramp_frame_prev_register.
11221 (amd64_sigtramp_frame_unwind): Rename from
11222 x86_64_sigtramp_frame_unwind.
11223 (amd64_sigtramp_frame_sniffer): Rename from
11224 x86_64_sigtramp_frame_sniffer.
11225 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11226 (amd64_frame_base): Rename from x86_64_frame_base.
11227 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11228 (amd64_frame_align): Rename from x86_64_frame_align.
11229 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11230 (amd64_regset_from_core_section): Rename from
11231 x86_64_regset_from_core_section.
11232 (x86_64_init_abi): Update comments.
11233
fca6aa58
NR
112342004-01-04 Nick Roberts <nick@nick.uklinux.net>
11235
11236 * MAINTAINERS (write after approval): Add myself.
11237
8ada74e3
MK
112382004-01-04 Mark Kettenis <kettenis@gnu.org>
11239
11240 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11241 `float' arguments.
11242
5154b0cd
MK
112432004-01-04 Mark Kettenis <kettenis@gnu.org>
11244
11245 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11246 such that it mentions a specific version of GCC that exhibits this
11247 bug.
11248
fb316966
MK
112492004-01-03 Mark Kettenis <kettenis@gnu.org>
11250
200cc553
MK
11251 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11252 structure that has a single `float' member, store it in %f1 in
11253 addition to %f0.
11254
e226a4a0
MK
11255 * sparc-sol2-nat.c: Add missing '\'.
11256
b9d4c5ed
MK
11257 * sparc-tdep.c (sparc32_return_value): New function.
11258 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11259 Remove functions.
11260 (sparc32_gdbarch_init): Set return_value, don't set
11261 extract_return_value, store_return_value, use_struct_convention
11262 and return_value_on_stack.
11263
fb316966
MK
11264 * sparc-sol2-nat.c: Add missing ')'.
11265
1af510a8
JB
112662004-01-03 J. Brobecker <brobecker@gnat.com>
11267
11268 * infrun.c (handle_step_into_function): New function.
11269 (handle_inferior_event): Extract out some code into the new
11270 function above.
11271
5cf4d23a
JB
112722004-01-03 J. Brobecker <brobecker@gnat.com>
11273
11274 * infrun.c (handle_inferior_event): Move the declaration of
11275 real_stop_pc inside the if blocks where it is used.
11276
60af1db2
MK
112772004-01-03 Mark Kettenis <kettenis@gnu.org>
11278
11279 * sparc64-tdep.c (sparc64_16_byte_align_p)
11280 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11281 Use check_typedef to get subtypes of structures and unions.
11282 (sparc64_store_return_value): Fix calculation of the appropriate
11283 offset into VALBUF when storing a structure or union.
11284 (sparc64_return_value): New function.
11285 (sparc64_use_struct_convention): Remove function.
11286 (sparc64_init_abi): Set return_value, don't set
11287 extract_return_value, store_return_value and
11288 use_struct_convention.
11289
1a901d3f
EZ
112902004-01-03 Eli Zaretskii <eliz@elta.co.il>
11291
11292 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11293 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11294 gdb/config/alpha/xm-alphaosf.h,
11295 gdb/config/powerpc/tm-ppcle-eabi.h,
11296 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11297 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11298 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11299 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11300 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11301 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11302 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11303 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11304 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11305 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11306 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11307 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11308 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11309 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11310 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11311 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11312 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11313 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11314 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11315 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11316 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11317 Remove lines for .cvsignore files.
11318
ef52e463
JB
113192004-01-03 J. Brobecker <brobecker@gnat.com>
11320
11321 * infrun.c: Back out the previous change.
11322
cb1bf9dc
MK
113232004-01-03 Mark Kettenis <kettenis@gnu.org>
11324
f0424ef6
MK
11325 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11326 sparc-*-sunos4* to the list of REMOVED configurations.
11327
cb1bf9dc
MK
11328 * configure.tgt: Add back sparc-*-vxworks*.
11329 * remote-vxsparc.c: Remove all includes except for "defs.h",
11330 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11331 Include "sparc-tdep.h".
11332 (SPARC_R_G1): New define.
11333 (vxsparc_gregset): New variable.
11334 (ext_format_sparc): Remove extern declaration.
11335 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11336 sparc32_supply_fpregset.
11337 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11338 sparc_collect_rwindow and sparc32_collect_fpregset.
11339 * config/sparc/tm-vxworks.h: New file, based on recently removed
11340 tm-vxsparc.h.
11341 * config/sparc/vxworks.mt: New file, based on recently removed
11342 vxworks.mt.
fe61caab 11343
5e938f9f
JB
113442004-01-03 J. Brobecker <brobecker@gnat.com>
11345
11346 * infrun.c (handle_step_into_function): New function.
11347 (handle_inferior_event): Extract out some code into the new
11348 function above.
11349
386c036b
MK
113502004-01-02 Mark Kettenis <kettenis@gnu.org>
11351
11352 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11353 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11354 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11355 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11356 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11357 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11358 (sparc_nat_h): New variable.
11359 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11360 (tm-sun4os4.h): Remove dependency.
11361 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11362 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11363 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11364 sparc-tdep.o): Update dependencies.
11365 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11366 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11367 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11368 dependencies.
11369 * configure.host: Remove existing sparc-*-lynxos*,
11370 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11371 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11372 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11373 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11374 triplets.
11375 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11376 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11377 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11378 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11379 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11380 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11381 sparc64-*-solaris2* and sparc64-*-* triplets.
11382 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11383 "symtab.h" and "objfiles.h".
11384 (BIAS): Remove define.
11385 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11386 (X_DISP19): Remove macros.
11387 (sparc_fetch_instruction): Remove function.
11388 (struct gdbarch_tdep): Remove definition.
11389 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11390 (sparc_breakpoint_from_pc): Remove function.
11391 (struct sparc64_frame_cache): Remove definition.
11392 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11393 sparc64_unwind_pc): Remove functions.
11394 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11395 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11396 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11397 (sparc64_frame_cache): Change return type to `struct
11398 sparc_frame_cache *'. Simply call sparc_frame_cache.
11399 (sparc64_frame_this_id, sparc64_frame_prev_register,
11400 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11401 instead of `struct sparc64_frame_cache.
11402 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11403 sparc_analyze_control_transfer, sparc_software_single_step,
11404 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11405 _initialize_sparc64_tdep): Remove functions.
11406 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11407 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11408 macros.
11409 (sparc64_supply_gregset, sparc64_collect_gregset,
11410 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11411 (sparc64_init_abi): New function.
11412 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11413 inclusion guard. Include "sparc-tdep.h".
11414 (BIAS): Define.
11415 (r_tstate_offset, r_fprs_offset): New defines.
11416 (enum sparc_regnum): Remove defenition.
11417 (enum sparc64_regnum): Reformat.
11418 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11419 (sparc64_init_abi, sparc64_supply_gregset,
11420 sparc64_collect_gregset, sparc64_supply_fpregset,
11421 sparc64_collect_fpregset): New prototypes.
11422 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11423 Add extern declarations.
11424 (sparc64_sol2_init_abi): New prototype.
11425 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11426 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11427 prototypes.
11428 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11429 "sparnbsd-nat.h".
11430 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11431 functions.
11432 (_initialize_sparc64fbsd_nat): Remove initialization of
11433 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11434 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11435 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11436 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11437 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11438 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11439 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11440 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11441 (sparc64fbsd_r_y_offset): Remove variables.
11442 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11443 Make static and const.
11444 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11445 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11446 functions.
11447 (sparc64fbsd_gregset): New variable.
11448 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11449 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11450 and sparc64_supply_fpregset.
11451 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11452 (sparc64fbsd_sigtramp_frame_this_id)
11453 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11454 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11455 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11456 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11457 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11458 * sparcnbsd-tdep.c: Update copyright year. Include
11459 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11460 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11461 "value.h" and "sparcnbsd-tdep.h".
11462 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11463 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11464 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11465 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11466 defines.
11467 (sparcnbsd_gregset): New variable.
11468 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11469 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11470 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11471 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11472 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11473 variables.
11474 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11475 (sparc32nbsd_sigcontext_frame_this_id)
11476 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11477 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11478 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11479 (sparcnbsd_get_longjmp_target_32,
11480 sparcnbsd_get_longjmp_target_64): Remove functions.
11481 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11482 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11483 sparcnbsd_init_elf): Remove.
11484 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11485 (sparcnbsd_elf_init_abi): New functions.
11486 (_initialize_sparcnbsd_tdep): New prototype.
11487 (_initialize_sparnbsd_tdep): Update.
11488 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11489 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11490 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11491 * config/sparc/linux.mh: Update comment.
11492 (XM_FILE, HOST_IPC): Remove variables.
11493 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11494 sparc-linux-nat.o.
11495 * config/sparc/linux.mt: Update comment.
11496 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11497 * config/sparc/nbsd.mt: Reformat.
11498 * config/sparc/nbsd64.mh: Update comment.
11499 (NATDEPFILES): Add sparc-nat.o.
11500 * config/sparc/nbsd64.mt: Update comment.
11501 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11502 (TM_FILE): Set to tm-nbsd.h.
11503 * config/sparc/nbsdelf.mh: Update comment.
11504 (NATDEPFILES): Add sparc-nat.o.
11505 (XM_FILE): Delete.
11506 * config/sparc/nbsdaout.mh: Update comment.
11507 (NATDEPFILES): Add sparc-nat.o
11508 (XM_FILE): Delete.
11509 * config/sparc/nm-linux.h: Update copyright year. Don't include
11510 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11511 inclusion.
11512 (KERNEL_U_SIZE): Remove define.
11513 (kernel_u_size): Remove prototype.
11514 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11515 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11516 "regcache.h".
11517 (CHILD_PREPARE_TO_STORE): Remove define.
11518 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11519 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11520 sparcnbsd-nat.c: Rewrite files.
11521 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11522 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11523 sparcnbsd-tdep.h: Remove files.
11524 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11525 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11526 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11527 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11528 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11529 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11530 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11531 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11532 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11533 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11534 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11535 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11536 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11537 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11538 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11539 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11540 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11541 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11542 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11543
ee84457a
AC
115442004-01-02 Andrew Cagney <cagney@redhat.com>
11545
11546 From 2003-12-18 Kazuhiro Inaoka:
11547 * configure.host: Add m32r-linux target.
11548
0bc2134e
MC
115492004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11550
11551 * top.c (print_gdb_version): Update year to 2004.
11552
89a72f9c
MM
115532004-01-02 Mark Mitchell <mark@codesourcery.com>
11554
11555 * MAINTAINERS: Add myself to the write-after-approval category.
11556
86b013ed
DJ
115572004-01-02 Daniel Jacobowitz <drow@mvista.com>
11558
11559 From Bernardo Innocenti <bernie@develer.com>:
11560 * configure.tgt: Add uClinux target.
11561
e42c9534
AC
115622004-01-02 Andrew Cagney <cagney@redhat.com>
11563
11564 * utils.c (do_my_cleanups): Make static, add forward declaration.
11565 * defs.h (do_my_cleanups): Delete declaration.
11566
162467d3
EZ
115672004-01-02 Eli Zaretskii <eliz@elta.co.il>
11568
11569 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11570 bfd/ChangeLog-0203.
11571
78434e59
MK
115722004-01-02 Mark Kettenis <kettenis@gnu.org>
11573
11574 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11575 in <machine/reg.h>.
11576 * configure, config.in: Regenerate.
11577
48efe704
AC
11578For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11579tui/ChangeLog-1998-2003.
c906108c
SS
11580\f
11581Local Variables:
11582mode: change-log
11583left-margin: 8
11584fill-column: 74
11585version-control: never
11586End:
This page took 1.483636 seconds and 4 git commands to generate.