Correct pasto in ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b8c4aece
AC
12004-09-03 Andrew Cagney <cagney@gnu.org>
2
fb603883
AC
3 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
4 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
5 only use.
6
c9343fd1
AC
7 * mips-tdep.c (temp_saved_regs): Delete.
8 (set_reg_offset): Replace saved_regs parameter with this_cache.
9 (heuristic_proc_desc, mips16_heuristic_proc_desc)
10 (mips32_heuristic_proc_desc): Add this_cache parameter.
11 (mips_insn32_frame_cache, mips_insn16_frame_cache)
12 (after_prologue): Pass a NULL this_cache.
13
9733cfe1
AC
14 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
15 non-kernel trap prologues.
16
0d5febcc
AC
17 * mips-tdep.c (find_proc_desc): Delete function.
18 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
19 simplify.
20 (mips_insn16_frame_cache): Replace find_proc_desc with code from
21 mips_insn32_frame_cache.
22
9733cfe1 23 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
24 Simplify as NEXT_FRAME is NULL.
25 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
26
177f84a3
AC
27 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
28 local variable.
29 (mips_skip_prologue): Update.
30
465f7520
AC
31 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
32 "cur_frame" parameter.
177f84a3
AC
33 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
34 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 35
e38b8658
AC
36 * config/vax/nm-obsd.h: Delete file.
37 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
38 * config/vax/nm-nbsd.h: Delete file.
39 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
40 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
41 * config/sh/nm-nbsd.h: Delete file.
42 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
43 * config/rs6000/nm-rs6000ly.h: Delete file.
44 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
45 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
46 * config/powerpc/nm-obsd.h: Delete file.
47 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
48 * config/powerpc/nm-nbsd.h: Delete file.
49 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
50 * config/pa/nm-obsd.h: Delete file.
51 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
52 * config/mips/nm-nbsd.h: Delete file.
53 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
54 * config/m88k/nm-obsd.h: Delete file.
55 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
56 * config/m68k/nm-nbsd.h: Delete file.
57 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
58 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
59 * config/i386/nm-nbsd.h: Delete file.
60 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
61 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
62 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
63 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
64 * config/i386/nm-i386lynx.h: Delete file.
65 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
66 * config/arm/nm-nbsd.h: Delete file.
67 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
68 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
69
be1ed680
AC
70 * config/i386/tm-fbsd.h: Delete file.
71 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
72 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
73
4b392b26
AC
74 * config/rs6000/tm-rs6000-aix4.h: Delete file.
75 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
76 * config/rs6000/aix4.mt (TM_FILE): Set to
77 config/rs6000/tm-rs6000.h.
78 * config/powerpc/tm-ppc-aix.h: Delete file.
79 * config/powerpc/aix.mt (TM_FILE): Set to
80 config/rs6000/tm-rs6000.h.
81 * config/m68k/tm-linux.h: Delete file.
82 * config/m68k/linux.mt (TM_FILE): Set to solib.h
83 * config/i386/tm-linux64.h: Delete file.
84 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
85 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
86
f3219c75
AC
87 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
88 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
89 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
90 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
91 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
92 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
93 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
94 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
95 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
96
b8c4aece
AC
97 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
98 gdb_host_cpu.
99
8ac2e020
JB
1002004-09-02 Joel Brobecker <brobecker@gnat.com>
101
102 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
103 Minor reformatting. Some code factoring.
104
c185a355
AC
1052004-09-02 Andrew Cagney <cagney@gnu.org>
106
63f22f0d
AC
107 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
108 * config/vax/tm-nbsd.h: Delete file.
109 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
110 * config/sparc/tm-vxworks.h: Delete file.
111 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
112 * config/sparc/tm-nbsd.h: Delete file.
113 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
114 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
115 * config/sparc/tm-linux.h: Delete file.
116 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
117 * config/s390/tm-linux.h: Delete file.
118 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
119 * config/pa/tm-bsd.h: Delete file.
120 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
121 * config/m68k/tm-obsd.h: Delete file.
122 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
123 * config/m68k/tm-nbsd.h: Delete file.
124 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
125 * config/i386/tm-vxworks.h: Delete file.
126 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
127 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
128 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
129 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
130 * config/i386/tm-nbsd.h: Delete file.
131 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
132 * config/i386/tm-i386lynx.h: Delete file.
133 * config/cris/cris.mt (TM_FILE): Set to solib.h.
134 * config/cris/tm-cris.h: Delete file.
135
0f475e27
AC
136 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
137 * configure: Re-generate.
138 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
139 * config/arm/tm-nbsd.h: Delete file.
140
458ed000
AC
141 * config/powerpc/tm-ppcle-sim.h: Delete.
142 * config/powerpc/tm-ppcle-eabi.h: Delete.
143 * config/powerpc/tm-nbsd.h: Delete.
144 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
145 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
146 tm-ppcle-eabi.h.
147
f14375f3
AC
148 * config/i386/nto.mh (NAT_FILE): Delete.
149 * config/i386/nm-nto.h: Delete.
150
c34d127c
AC
151 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
152 * config/m68k/tm-os68k.h: Ditto.
153 * config/m68k/tm-monitor.h: Ditto.
154 * config/m68k/tm-cisco.h: Ditto.
155 * config/m68k/st2000.mt (TM_FILE): Delete.
156 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
157 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
158 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
159 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
160
f7f0fe03
AC
161 * config/m68k/tm-st2000.h: Delete.
162 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
163 * config/sparc/fbsd.mt (TM_FILE): Delete.
164 * config/sparc/tm-fbsd.h: Delete.
165
a2558533
AC
166 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
167 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
168 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
169
b78960be
AC
170 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
171 GDB_TM_FILE and GDB_XM_FILE.
172 * gdbarch.c: Re-generate.
173 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
174 quotes in macro definition.
175 * configure.in: Re-generate.
176
4d60522e
AC
177 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
178 validating architecture methods.
179 * gdbarch.c: Re-generate.
180
5010d38b
AC
181 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
182 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
183 GDB_MULTI_ARCH_PARTIAL.
184 * gdbarch.h: Re-generate.
185
c185a355
AC
186 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
187 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
188 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
189 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
190 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
191 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
192 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
193 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
194 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
195 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
196 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
197 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
198
14aaa6ab
AC
1992004-09-01 Andrew Cagney <cagney@gnu.org>
200
201 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
202 and main_func_highpc.
203 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
204 * objfiles.c (init_entry_point_info, objfile_relocate): Update
205 * nlmread.c (nlm_symfile_read): Update.
206
a343eb3c
JB
2072004-09-01 Joel Brobecker <brobecker@gnat.com>
208
209 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
210 (mips_insn32_frame_cache): Inline call to find_proc_desc.
211 (find_proc_desc): Remove dead code.
212
4fbbbd07
JB
2132004-09-01 Joel Brobecker <brobecker@gnat.com>
214
215 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
216
84acb35a
JJ
2172004-09-01 Jeff Johnston <jjohnstn@redhat.com>
218
219 * observer.sh: Add struct so_list declaration.
220 * Makefile.in: Add dependencies on observer.h for solib.c and
221 breakpoint.c.
222 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
223 function.
224 (_initialize_breakpoint): Register
225 disable_breakpoints_in_unloaded_shlib as an observer of the
226 "solib unloaded" observation event.
227 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
228 call decode_line_1 so unfound breakpoint errors are silent.
229 * solib.c (update_solib_list): When a solib is discovered to have
230 been unloaded by the program, notify all observers of the
231 "solib unloaded" observation event.
232
c8cd9f6c
AC
2332004-09-01 Andrew Cagney <cagney@gnu.org>
234
235 * frame.c: Include "objfiles.h".
236 (inside_main_func): New function.
237 (get_prev_frame): Use new inside_main_func.
238 * Makefile.in (frame.o): Update dependencies.
239 * defs.h (inside_main_func): Delete declaration.
240 * blockframe.c (inside_main_func): Delete function.
241
1168df01
JB
2422004-08-31 Jim Blandy <jimb@redhat.com>
243
244 * dwarf2read.c (is_vtable_name): New function, based on logic from
245 read_structure_type, but passing the correct length to strncmp,
246 and using 'sizeof' instead of 'strlen'.
247 (read_structure_type): Call it.
248
f14f9744
JB
2492004-08-31 Joel Brobecker <brobecker@gnat.com>
250
251 * config/powerpc/aix.mh: Add comment.
252
386d4518
PG
2532004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
254
255 * MAINTAINERS: Add self to Write-After-Approval.
256
7d97d5e2
MI
2572004-08-30 Manoj Iyer <manjo@austin.ibm.com>
258
259 * MAINTAINERS: Add self to Write-After-Approval.
260
68f53502
AC
2612004-08-30 Andrew Cagney <cagney@gnu.org>
262
263 Fix PR breakpoints/1757.
264 * infrun.c (struct execution_control_state): Replace
265 remove_breakpoints_on_following_step with
266 step_after_step_resume_breakpoint.
267 (init_execution_control_state): Update.
268 (handle_inferior_event): For signals, when stepping off a
269 breakpoint, set step_after_step_resume_breakpoint. When
270 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
271 (keep_going): Delete code handling
272 remove_breakpoints_on_following_step.
273
7ca2d3a3
DL
2742004-08-29 David Lecomber <david@streamline-computing.com>
275
276 Fix PR gdb/648
277 * language.h (enum array_ordering): New enum.
278 * language.h (struct language_defn): New la_array_ordering
279 attribute.
280 * language.c (unknown_language_defn, auto_language_defn)
281 (local_language_defn): Ditto.
282 * ada-lang.c (ada_language_defn): Ditto.
283 * c-lang.c (c_language_defn, cplus_language_defn)
284 (asm_language_defn, minimal_language_defn): Ditto.
285 * f-lang.c (f_language_defn): Ditto.
286 * jv-lang.c (java_language_defn): Ditto.
287 * m2-lang.c (f_language_defn): Ditto.
288 * objc-lang.c (objc_language_defn): Ditto.
289 * p-lang.c (pascal_language_defn): Ditto.
290 * scm-lang.c (scm_language_defn): Ditto.
291 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
292 oriented large to small in type structure.
293 * dwarf2read.c (read_array_order): New function.
294 (read_array_type): Use read_array_order to check row/column
295 major ordering.
296
e354df01
NW
2972004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
298
299 * target.c (target_resize_to_sections): Check
300 current_target.to_sections for an old value when updating.
301
9185ddce
JB
3022004-08-27 Joel Brobecker <brobecker@gnat.com>
303
304 * procfs.c (dbx_link_bpt_addr): New static global variable.
305 (dbx_link_shadow_contents): New static global variable.
306 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
307 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
308 if we just hit it.
309 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
310 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
311 from run to run.
312 (procfs_create_inferior): Remove syssgi syscall-exit notifications
313 after the inferior has been forked.
314 (remove_dbx_link_breakpoint): New function.
315 (dbx_link_addr): New function.
316 (insert_dbx_link_bpt_in_file): New function.
317 (insert_dbx_link_bpt_in_region): New function.
318 (insert_dbx_link_breakpoint): New function.
319 (proc_trace_syscalls_1): New function, extracted from
320 proc_trace_syscalls.
321 (proc_trace_syscalls): Replace extract code by call to
322 proc_trace_syscalls_1.
323 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
324 is no longer valid.
325
e6742ace
JB
3262004-08-25 Jim Blandy <jimb@redhat.com>
327
328 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
329
8fb3e588
AC
3302004-08-25 Andrew Cagney <cagney@gnu.org>
331
629a41ee
AC
332 * infrun.c (struct execution_control_state): Delete field
333 "stepping_through_sigtramp".
334 (init_execution_control_state): Do not set same.
335 (context_switch): Do not pass same to save_infrun_state and
336 load_infrun_state.
337 * gdbthread.h (struct thread_info): Delete field
338 stepping_through_sigtramp.
339 (save_infrun_state, load_infrun_state): Delete parameter
340 stepping_through_sigtramp.
341 * thread.c (load_infrun_state, save_infrun_state): Update.
342
8fb3e588
AC
343 * infrun.c: Re-indent. Move expression operators to the beginning
344 of the line. Remove long disabled #if 0 code.
345
49c54768
AC
3462004-08-24 Andrew Cagney <cagney@gnu.org>
347
348 * doublest.h (floatformat_ieee_quad): Rename
349 floatformat_ia64_quad.
350 * doublest.c (floatformat_ieee_quad): Rename
351 floatformat_ia64_quad.
352 (_initialize_doublest): Update.
353
5ca2e327
JB
3542004-08-24 Jim Blandy <jimb@redhat.com>
355
87808bd6
JB
356 * dwarf2expr.h (struct dwarf_expr_context): New members
357 'num_pieces' and 'pieces', for returning the result of an
358 expression that uses DW_OP_piece.
359 (struct dwarf_expr_piece): New struct type.
360 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
361 pieces.
362 (free_dwarf_expr_context): Free pieces, if any.
363 (add_piece): New function.
364 (execute_stack_op): Implement DW_OP_piece.
365 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
366 expression is a list of pieces, print an error message.
367 (dwarf2_loc_desc_needs_frame): If the expression yields
368 pieces, and any piece is in a register, then we need a frame.
369
5ca2e327
JB
370 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
371 the stack until we've decided what sort of result the evaluation
372 has produced. Use separate variables, with more specific names.
373
2afeb6b8
RE
3742004-08-23 Richard Earnshaw <rearnsha@arm.com>
375
376 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
377 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
378 (arm_netbsd_init_abi_common): Register them.
379
5885ab49
MK
3802004-08-22 Mark Kettenis <kettenis@gnu.org>
381
fda820a6
MK
382 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
383
1c5bf419
MK
384 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
385 safe_frame_unwind_memory instead of target_read_memory.
386
8cbba7c8
MK
387 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
388 Reorder includes.
389 (fetch_register, store_register): Remove prototypes.
390 (child_resume): Reorganize code and comments such that it is
391 grouped a bit more logically.
392 (attach): Explicitly compare errno against 0.
393 (detach): Likewise. Use perror_with_name instead of
394 print_sys_errmsg.
395 * Makefile.in (infptrace.o): Update dependencies.
396
c5fa4245
MK
397 * ia64-linux-nat.c: Update copyright year.
398 (fetch_debug_register, store_debug_register)
399 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
400 PTRACE_TYPE_ARG3.
401 * config/ia64/nm-linux.h: Update copyright year.
402 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
403
387c058c
MK
404 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
405 from CORE_ADDR to struct frame_info *. Use
406 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
407 (amd64_linux_sigtramp_p): Adjust for changed signature of
408 and64_linux_sigtramp_start
409
277215a6
MK
410 * gdb_ptrace.h: GNU/Linux.
411
25f6178e
MK
412 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
413 Remove defines.
414
652fc137
MK
415 * infptrace.c: Include "gdb_assert.h".
416 (PTRACE_XFER_TYPE): Remove define.
417 (offsetof): Only define if U_REGS_OFFSET isn't defined.
418 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
419 Tweak comment.
420 (fetch_inferior_registers, store_inferior_registers): Remove
421 redundant culry braces. Tweak comment. s/regno/regnum.
422 * Makefile.in (infptrace.o): Update dependencies.
423
5885ab49
MK
424 * configure.in: Change test for return type of ptrace to default
425 to `long' instead of `int'.
426 * configure: Regenerate.
427
11003ae3
MK
4282004-08-21 Mark Kettenis <kettenis@gnu.org>
429
6b95110c
MK
430 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
431
bcb3dc3d
MK
432 * configure.in: Check for ttrace function.
433 * configure, config.in: Regenerate.
434
11003ae3
MK
435 * gdb_ptrace.h: New file.
436 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
437 <sys/ptrace.h>.
438 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
439 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
440 (attach): Don't define PT_ATTACH.
441 (detach): Don't define PT_DETACH.
442 * Makefile.in (gdb_ptrace_h): New variable.
443 (infptrace.o): Update dependencies.
444
f8707cac
MK
4452004-08-16 Mark Kettenis <kettenis@gnu.org>
446
447 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
448 instead of `int' if not already defined.
449 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
450 PTRACE_TYPE_ARG3.
451 * infptrace.c (call_ptrace): Revert change that replaced
452 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
453
655c5466
MK
4542004-08-15 Mark Kettenis <kettenis@gnu.org>
455
156e5ba7
MK
456 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
457 Remove defines.
458
de9a9e51
MK
459 * linux-nat.c (kill_inferior): Add missing third and fourth
460 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
461
88800403
MK
462 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
463 PTRACE_TYPE_RET.
464
849a1d7c
MK
465 * proc-why.c (proc_prettyfprint_why): Fix format string.
466
61ad16d1
MK
467 * solib-osf.c (osf_current_sos): Remove unsused label.
468
a6ed5501
MK
469 * configure.in: Add <ncurses/ncurses.h> to the list of possible
470 curses headers.
471 * configure, config.in: Regenerate.
472 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
473 <ncurses/ncurses.h>.
474
016ddeca
MK
475 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
476 * config/nm-nbsd.h: Update copyright year.
477 (PTRACE_ARG3_TYPE): Remove define.
478
49ec097f
MK
479 * sparc-nat.c (fetch_inferior_registers)
480 (store_inferior_registers, sparc_xfer_wcookie):
481 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
482
9f8e0089
MK
483 * alphabsd-nat.c (fetch_inferior_registers):
484 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
485 PTRACE_TYPE_ARG3.
486 * amd64bsd-nat.c (fetch_inferior_registers)
487 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
488 PTRACE_TYPE_ARG3.
489 * armnbsd-nat.c: Update copyright year.
490 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
491 (store_register, store_regs, store_fp_register, store_fp_regs):
492 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
493 * hppabsd-nat.c (fetch_inferior_registers)
494 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
495 PTRACE_TYPE_ARG3.
496 * i386bsd-nat.c (fetch_inferior_registers)
497 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
498 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
499 * m68kbsd-nat.c (fetch_inferior_registers)
500 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
501 PTRACE_TYPE_ARG3.
502 * m88kbsd-nat.c (fetch_inferior_registers)
503 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
504 PTRACE_TYPE_ARG3.
505 * mipsnbsd-nat.c: Update copyright year.
506 (fetch_inferior_registers, store_inferior_registers):
507 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
508 * ns32knbsd-nat.c: Update copyright year.
509 (fetch_inferior_registers, store_inferior_registers):
510 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
511 * ppcnbsd-nat.c (fetch_inferior_registers):
512 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
513 PTRACE_TYPE_ARG3.
514 * ppcobsd-nat.c (fetch_inferior_registers):
515 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
516 PTRACE_TYPE_ARG3.
517 * shnbsd-nat.c: Update copyright year.
518 (fetch_inferior_registers, store_inferior_registers):
519 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
520 * vaxbsd-nat.c (fetch_inferior_registers)
521 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
522 PTRACE_TYPE_ARG3.
523
655c5466
MK
524 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
525 PTRACE_TYPE_ARG3.
526 * infptrace.c (call_ptrace, child_resume, attach, detach)
527 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
528 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
529 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
530 PTRACE_TYPE_ARG3.
531
c40d0d10
MK
5322004-08-14 Mark Kettenis <kettenis@gnu.org>
533
5cb0ff31
MK
534 * defs.h: Remove out-of-date comment.
535 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
536 [!GETENV_PROVIDED] (getenv): Remove prototype.
537
5f0f34cb
MK
538 * standalone.c: Remove file.
539 * Makefile.in (standalone.o): Remove dependency.
540
7532965f
MK
541 * i386-linux-nat.c (dummy_sse_values): Remove function and
542 prototype.
543 (i386_linux_dr_get): Fix typo in comment.
544 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
545
1bdc6c53
MK
546 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
547
c40d0d10
MK
548 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
549 from declaration.
550 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
551 from definition.
552
64218d3e
MK
5532004-08-13 Mark Kettenis <kettenis@gnu.org>
554
555 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
556 parenthesis in definition.
557 * configure: Regenerated.
558
926c94e7
MC
5592004-08-12 Michael Chastain <mec.gnu@mindspring.com>
560
561 * PROBLEMS: Mention build/1411.
562
69489883
NN
5632004-08-09 Robert Millan <robertmh@gnu.org>
564
565 Committed by Nathanael Nerode.
566 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
567 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
568
ebb7c577
AC
5692004-08-12 Andrew Cagney <cagney@gnu.org>
570
571 * NEWS: Mention fixes in GDB 6.2.1.
572 * PROBLEMS: Remove mention of mips-irix.
573
232d697c
JB
5742004-08-11 Joel Brobecker <brobecker@gnat.com>
575
576 * config/powerpc/xm-aix.h: Delete.
577 * config/powerpc/aix.mh (MH_FILE): Remove.
578 * config/powerpc/aix432.mh (MH_FILE): Remove.
579
72f4e82b
JB
5802004-08-11 Joel Brobecker <brobecker@gnat.com>
581
582 * config/powerpc/aix.mh: Remove obsolete comment.
583 * config/powerpc/aix432.mh: Likewise.
584
0687ccb2
JB
5852004-08-11 Joel Brobecker <brobecker@gnat.com>
586
587 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
588
dbf3ada7
JB
5892004-08-11 Joel Brobecker <brobecker@gnat.com>
590
e08e1886
JB
591 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
592 this file is now empty.
593 * config/xm-aix4.h: Remove, this file is no longer included
594 anywhere.
595
5962004-08-11 Joel Brobecker <brobecker@gnat.com>
597
598 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
599 that file is now empty.
dbf3ada7
JB
600 (termdef): Remove prototype, function no longer used.
601
4c525ef6
JB
6022004-08-11 Joel Brobecker <brobecker@gnat.com>
603
604 * doc/gdbint.texinfo (Host Definition): Remove documentation
605 for USE_O_NOCTTY, no longer used.
606 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
607 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
608
82e0b968
JB
6092004-08-11 Joel Brobecker <brobecker@gnat.com>
610
611 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
612 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
613 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
614
f2acbe1c
MK
6152004-08-11 Mark Kettenis <kettenis@gnu.org>
616
daa98270
MK
617 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
618 instead of FIVE_ARG_PTRACE.
619
f2acbe1c
MK
620 * inflow.c (O_NOCTTY): Define to zero if not already defined.
621 (new_tty): Use O_NOCTTY unconditionally.
622
cc377e6b
MK
6232004-08-10 Mark Kettenis <kettenis@gnu.org>
624
625 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
626 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
627 fflush on stdout.
628
3bcc18fa
JB
6292004-08-10 Joel Brobecker <brobecker@gnat.com>
630
631 * xcoff_symfile_finish: Replace last call to xmfree by call
632 to xfree.
633
7936743b
AC
6342004-08-10 Andrew Cagney <cagney@gnu.org>
635
cc503c8a
AC
636 * main.c (captured_main): Delete call to init_malloc.
637 * defs.h (init_malloc): Delete declaration.
638 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
639 (init_malloc): Delete functions.
640
2dc74dc1
AC
641 * defs.h (xmfree): Delete.
642 * utils.c (xmfree): Delete function.
643 (xfree): Inline calls to xmfree and mfree.
644 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
645 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
646 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
647 * somread.c (som_symfile_finish): Ditto.
648 * objfiles.c (allocate_objfile, free_objfile):
649 * nlmread.c (nlm_symfile_finish): Ditto.
650 * hpread.c (hpread_symfile_finish): Ditto.
651 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
652 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
653 * coffread.c (coff_symfile_finish): Ditto.
654
aa2ee5f6
AC
655 * defs.h (xmcalloc): Delete declaration.
656 * utils.c (xmcalloc): Delete.
657 (xcalloc): Inline calls to xmcalloc and mcalloc.
658 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
659 xcalloc and xfree.
660 * symtab.c (create_demangled_names_hash): Ditto.
661
0efffb96
AC
662 * defs.h (xmrealloc): Delete.
663 * utils.c (xmrealloc): Delete.
664 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
665 * symmisc.c (extend_psymbol_list): Use xrealloc.
666 * source.c (find_source_lines): Ditto.
667 * hpread.c (hpread_lookup_type): Ditto.
668 * dbxread.c (add_bincl_to_list): Ditto.
669
7936743b
AC
670 * utils.c (xmmalloc): Delete.
671 (xmalloc): Inline xmmalloc and mmalloc calls.
672 (msavestring): Use xmalloc.
673 * defs.h (xmmalloc): Delete declaration.
674 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
675 xmmalloc.
676 * symmisc.c (extend_psymbol_list): Ditto.
677 * symfile.c (init_psymbol_list): Ditto.
678 * source.c (find_source_lines): Ditto.
679 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
680 * elfread.c (elf_symtab_read): Ditto.
681 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
682 * coffread.c (coff_symfile_init): Ditto.
683
252ab814
DC
6842004-08-10 David Carlton <carlton@bactrian.org>
685
686 * MAINTAINERS: Remove David Carlton from c++ testsuite
687 maintainers.
688
8f5ba92b
JG
6892004-08-10 Jerome Guitton <guitton@gnat.com>
690
691 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
692 print a line feed before the prompt.
693
21749010
MK
6942004-08-10 Mark Kettenis <kettenis@gnu.org>
695
696 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
697
1f011ce2
JB
6982004-08-09 Joel Brobecker <brobecker@gnat.com>
699
700 General cleanup of the AIX xm include file:
701 * config/xm-aix4.h (fd_set): Remove undefine.
702 Remove include of <sys/select.h>.
703 (HAVE_TERMIO): Remove define.
704 (USG): Likewise.
705 (NULL): Remove redefine.
706 (alloca): Remove #pragma.
707 (vfork): Remove define.
708 (termdef): Remove.
709 (SIGWINCH_HANDLER): Remove.
710 (SIGWINCH_HANDLER_BODY): Remove.
711
cf4e7692
MK
7122004-08-09 Mark Kettenis <kettenis@gnu.org>
713
714 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
715 GDB_OSABI_OPENBSD_ELF.
716
ac5754fa
MK
7172004-08-07 Robert Millan <robertmh@gnu.org>
718
719 * bsd-kvm.c: Check for nlist.h before including it.
720
086ec9eb
MK
7212004-08-09 Mark Kettenis <kettenis@gnu.org>
722
bbe06c74
MK
723 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
724 sigcontext' offset consistency checks for ancient BSD.
725
3aa7b3b3
MK
726 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
727
086ec9eb
MK
728 * configure.in: Check for <sys/types.h>. Check return and
729 argument types of ptrace.
730 * configure, config.in: Regenerate.
731
09991fa0
JB
7322004-08-09 Jim Blandy <jimb@redhat.com>
733
734 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
735 rs6000_register_sim_regno): Doc fixes.
736
fed7ba43
JB
7372004-08-08 Joel Brobecker <brobecker@gnat.com>
738
739 * mips-tdep.c: Include "floatformat.h".
740 (n32n64_floatformat_always_valid): New function.
741 (floatformat_n32n64_long_double_big): New constant.
742 (mips_gdbarch_init): Set size and format of long double
743 for N32 and N64 ABIs.
744 * Makefile.in (mips-tdep.o): Update dependencies.
745
456fcf94
AC
7462004-08-08 Andrew Cagney <cagney@gnu.org>
747
2f9b146e
AC
748 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
749 print. Improve script's error messages.
750 * gdbarch.h: Re-generate.
751
456fcf94
AC
752 * gdbarch.sh (pformat): New function.
753 (float_format, double_format, long_double_format): List with bit
754 members. Use pformat when printing.
755 * gdbarch.c, gdbarch.h: Re-generate.
756
69e9e646
NW
7572004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
758
759 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
760 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
761 (ppcnbsd_supply_pcb): New function.
762 (_initialize_ppcnbsd_nat): New prototype and function.
763 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
764 (LOADLIBES): New variable.
765 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
766
5ef2d0aa
AC
7672004-08-08 Andrew Cagney <cagney@gnu.org>
768
769 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
770 (builtin_type_ieee_double, builtin_type_ia64_quad)
771 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
772 BE/LE floating-point types.
773 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
774 (builtin_type_ieee_double, builtin_type_ia64_quad)
775 (builtin_type_ia64_spill): Declare.
776 * doublest.c (_initialize_doublest, floatformat_ieee_single)
777 (floatformat_ieee_double, floatformat_arm_ext)
778 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
779 of LE/BE floatformats.
780 * doublest.h: (struct floatformat, floatformat_ieee_single)
781 (floatformat_ieee_double, floatformat_arm_ext)
782 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
783
5c7f2947
MK
7842004-08-08 Mark Kettenis <kettenis@gnu.org>
785
ecac404d
MK
786 * i386gnu-nat.c (gnu_store_registers): Fix typo.
787
9b8607ce
MK
788 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
789 instead of regcache_raw_supply when storing the registers.
790
f6052080
MK
791 * i386gnu-nat.c: Update copyright year.
792 (gnu_store_registers): Don't use deprecated_registers and
793 deprecated_registers_valid. Use regcache_valid_p and
794 regcache_raw_supply instead.
795
17777823
MK
796 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
797 frame_pc_unwind.
798
5240ceac
MK
799 * procfs.c (procfs_pid_to_str): Remove redundant and unused
800 variables. Incapitalized "process".
801
5c7f2947
MK
802 * configure.in: Add cursesX to the list of possible curses libs.
803 Add cursesX.h to the list of possible curses headers.
804 * configure, config.in: Regenerate.
805
da7d81e3
NW
8062004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
807
808 * configure.in: Test for struct lwp in <sys/lwp.h>.
809 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
810 the offset of l_addr in struct lwp.
811
7f245d65
NW
8122004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
813
814 * bsd-kvm.c: Include "gdbcore.h"
815 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
816
47b3f456
AC
8172004-08-07 Andrew Cagney <cagney@gnu.org>
818
70bd8e24
AC
819 * gdbtypes.c (build_flt, build_complex): New functions.
820 (gdbtypes_post_init): Use.
821
9b0dea39
AC
822 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
823
5cf7abac
AC
824 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
825 through to builtin_type_uint128.
826
64d2b26d
AC
827 * c-exp.y: Use builtin_type function to obtain builtin types.
828
7ad6570d
AC
829 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
830 builtin_uint128.
831 * gdbtypes.c (gdbtypes_post_init): Update.
832 (build_gdbtypes): Move initialization of builtin_type_int0
833 through to builtin_type_uint128 from here ...
834 (_initialize_gdbtypes): ... to here.
835 * d10v-tdep.c (d10v_register_type): Update.
836
47b3f456
AC
837 * doublest.c: Update copyright.
838 (floatformat_from_length): Call error when floatformat is NULL.
839 (extract_floating_by_length): Remove NULL fmt check.
840 (store_floating_by_length): Ditto.
841
0a8146bf
AC
8422004-08-07 Andrew Cagney <cagney@gnu.org>
843
844 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
845 that the register is valid.
846
c0ccb908
MK
8472004-08-05 Mark Kettenis <kettenis@chello.nl>
848
8e6bed05
MK
849 * i386-linux-tdep.c (i386_linux_sigtramp_start)
850 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
851 struct frame_info *. Use safe_frame_unwind_memory instead of
852 deprecated_read_memory_nobpt.
853 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
854 changed signature of i386_linux_sigtramp_start and
855 i386_linux_rt_sigtramp_start.
856
24f9f5e3
MK
857 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
858 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
859 instead of deprecated_read_memory_nobpt.
860 (i386nbsd_sigtramp_p): Adjust for changed signature of
861 i386nbsd_sigtramp_offset.
862
c822af0c
MK
863 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
864 safe_frame_unwind_memory instead of target_read_memory.
865
c0ccb908
MK
866 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
867 !NO_SYS_FILE.
868 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
869 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
870 (_initialize_kernel_u_addr): Remove prototype and function.
871 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
872 !NO_SYS_FILE.
873 * xcoffread.c: Likewise.
874
b9e1c0d6
MK
8752004-08-06 Mark Kettenis <kettenis@gnu.org>
876
877 * vax-nat.c: New file.
878 * vaxbsd-nat.c: Tweak comment.
879 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
880 vaxnbsd-tdep.c.
881 (vax-nat.o): New dependency.
882 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
883 (vax-*-ultrix2*): Remove.
884 * config/vax/vax.mh: New file.
885 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
886 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
887 (vax_register_u_addr): New prototype.
888 (REGISTER_U_ADDR): Define using vax_register_u_addr.
889 * config/vax/vaxult2.mh: Remove file.
890 * config/vax/vaxult.mh: Remove file.
891 * config/vax/vaxbsd.mh: Remove file.
892 * config/vax/vax.mt (TM_FILE): Remove.
893 * config/vax/tm-vaxbsd.h: Remove file.
894
9ad7bec7
JB
8952004-08-06 Joel Brobecker <brobecker@gnat.com>
896
897 * aix-thread.c (get_signaled_thread): New function.
898 (iter_trap): Delete, no longer used.
899 (iter_tid): New function.
900 (pd_update): Find the thread that received the SIGTRAP signal
901 by first locating the kernel thread, and then finding its
902 associated thread.
903
bf0d233d
UW
9042004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
905
906 * lin-lwp.c (child_wait): Continue inferior after processing
907 PTRACE_EVENT_CLONE event.
908
d0f853e1
NN
9092004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
910
911 * MAINTAINERS: Add self to Write-After-Approval.
912
ab14aeb0
JJ
9132004-08-05 Jeff Johnston <jjohnstn@redhat.com>
914
915 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
916 libunwind-xxxx.so" where xxxx is UNW_TARGET.
917
9c8dbfa9
AC
9182004-08-05 Andrew Cagney <cagney@gnu.org>
919
c8f3ca46
AC
920 * config/xm-sysv4.h: Delete file.
921 * config/mips/xm-irix5.h: Delete file.
922 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
923 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
924 * config/ia64/xm-aix.h: Delete file.
925 * config/ia64/aix.mh (XM_FILE): Delete.
926 * config/pa/xm-hppah.h: Delete file.
927 * config/pa/hpux11w.mh (XM_FILE): Delete.
928 * config/pa/hpux11.mh (XM_FILE): Delete.
929 * config/pa/hpux1020.mh (XM_FILE): Delete.
930 * config/pa/hppahpux.mh (XM_FILE): Delete.
931
5f7daaff
AC
932 * config/alpha/xm-alphalinux.h: Delete file.
933 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
934 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
935 * config/alpha/xm-alphaosf.h: Delete file.
936 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
937 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
938 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
939 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
940
69babf95
AC
941 * config/i386/xm-i386v.h: Delete file.
942 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
943 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
944 * config/i386/xm-i386sco.h: Delete file.
945 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
946 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
947 * config/i386/xm-i386v4.h: Delete file.
948 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
949 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
950 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
951 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
952
6f009c8a
AC
953 * config/vax/xm-vax.h: Delete file.
954 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
955 * config/vax/xm-vaxult2.h: Delete file.
956 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
957 * config/vax/vaxult2.mh (XM_FILE): Delete.
958 * config/vax/xm-vaxult.h: Delete file.
959 * config/vax/vaxult.mh (XM_FILE): Delete.
960 * config/vax/xm-vaxbsd.h: Delete file.
961 * config/vax/vaxbsd.mh (XM_FILE): Delete.
962
9c8dbfa9
AC
963 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
964 * gdbarch.h, gdbarch.c: Re-generate.
965 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
966 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
967 * frame.h: Delete deprecated_read_fp from comments.
968 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
969 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
970
84367a3e
MK
9712004-08-04 Mark Kettenis <kettenis@gnu.org>
972
9c8e3411
MK
973 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
974 trampoline in OpenBSD 3.5-current.
975
b87bc0d8
MK
976 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
977 SSE registers.
978
84367a3e
MK
979 * Makefile.in: Remove embedded page breaks.
980
a44bddec
JB
9812004-08-04 Jim Blandy <jimb@redhat.com>
982
7ab3286f
JB
983 * regcache.c (regcache_raw_read): Assert that, after calling
984 target_fetch_registers, the register we're reading is cached.
985
a44bddec
JB
986 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
987 a call to 'internal_error', with a more helpful error message.
988 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 989 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 990
35124113
AC
9912004-08-04 Andrew Cagney <cagney@gnu.org>
992
993 * Makefile.in: Update dependencies.
994
9f643768
JB
9952004-08-04 Jim Blandy <jimb@redhat.com>
996
6ced10dd
JB
997 Change the layout of the PowerPC E500 raw register cache to allow
998 the lower 32-bit halves of the GPRS to be their own raw registers,
999 not pseudoregisters.
1000 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1001 add ppc_ev0_upper_regnum flag.
1002 * rs6000-tdep.c: #include "reggroups.h".
1003 (spe_register_p): Recognize the ev upper half registers as SPE
1004 registers.
1005 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1006 registers.
1007 (e500_move_ev_register): New function.
1008 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1009 vector registers are the pseudo-registers now, formed by splicing
1010 together the gprs and the upper-half registers.
1011 (e500_register_reggroup_p): New function.
1012 (P): Macro deleted.
1013 (P8, A4): New macro.
1014 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1015 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1016 macros.
1017 (registers_e500): Rearrange register set so that the raw register
1018 set contains 32-bit GPRs and upper-half registers, and the SPE
1019 vector registers become pseudo-registers.
1020 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1021 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1022 register numbers are now the same for the E500 as they are for
1023 other PowerPC variants. Register e500_register_reggroup_p as the
1024 register group function for the E500.
1025 * Makefile.in (rs6000-tdep.o): Update dependencies.
1026
1027 Adapt PPC E500 native support to the new raw regcache layout.
1028 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1029 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1030 (fetch_spe_register, store_spe_register): Handle fetching/storing
1031 all the SPE registers at once, if regno == -1. These now take
1032 over the job of fetch_spe_registers and store_spe_registers.
1033 (fetch_spe_registers, store_spe_registers): Deleted.
1034 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1035 unconditionally; they're always raw. Fetch/store SPE upper half
1036 registers, if present, instead of ev registers.
1037 (fetch_register, store_register): Remove sanity checks: gprs are
1038 never pseudo-registers now, so we never need to even mention any
1039 registers that are ever pseudoregisters.
1040
9f643768
JB
1041 Use a fixed register numbering when communicating with the PowerPC
1042 simulator.
1043 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1044 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1045 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1046 New functions.
1047 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1048 init_sim_regno_table.
1049 * Makefile.in (gdb_sim_ppc_h): New variable.
1050 (rs6000-tdep.o): Update dependencies.
1051
1e2279c8
AC
10522004-08-02 Andrew Cagney <cagney@gnu.org>
1053
1d94326f
AC
1054 * cris-tdep.c (cris_register_size): Restore function, still used
1055 locally.
1056
331ae7ed
AC
1057 * gdbarch.sh (deprecated_target_read_fp)
1058 (deprecated_frame_locals_address, deprecated_frame_args_address)
1059 (deprecated_frame_chain_valid, deprecated_frame_chain)
1060 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1061 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1062 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1063 * gdbarch.h, gdbarch.c: Re-generate.
1064 * regcache.c (deprecated_read_fp): Do not call
1065 DEPRECATED_TARGET_READ_FP_P.
1066 * infcmd.c (default_print_registers_info): Do not call
1067 DEPRECATED_DO_REGISTERS_INFO.
1068 * frame-base.c (default_frame_locals_address): Do not call
1069 DEPRECATED_FRAME_LOCALS_ADDRESS.
1070 (default_frame_args_address): Do not call
1071 DEPRECATED_FRAME_ARGS_ADDRESS.
1072
1e2279c8
AC
1073 * gdbarch.sh (deprecated_register_raw_size)
1074 (deprecated_register_virtual_size:int): Delete.
1075 * gdbarch.h, gdbarch.c: Re-generate.
1076 * cris-tdep.c (cris_register_size): Delete.
1077 (cris_gdbarch_init): Update.
1078 * alpha-tdep.c (alpha_register_raw_size)
1079 (alpha_register_virtual_size): Delete.
1080 (alpha_gdbarch_init): Update.
1081
a90c06b4
AC
1082 * gdbarch.sh (deprecated_register_virtual_type)
1083 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1084 (deprecated_dummy_write_sp): Delete.
1085 * gdbarch.h, gdbarch.c: Re-generate.
1086
f42accbe
AC
1087 * gdbarch.sh (deprecated_register_bytes): Delete.
1088 * gdbarch.h, gdbarch.c: Re-generate.
1089 * regcache.c (deprecated_register_bytes): New function.
1090 * regcache.h (deprecated_register_bytes): Declare.
1091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1092 * v850-tdep.c (v850_gdbarch_init): Update.
1093 * sh64-tdep.c (sh64_gdbarch_init): Update.
1094 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1095 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1096 * mcore-tdep.c (mcore_gdbarch_init): Update.
1097 * cris-tdep.c (cris_gdbarch_init): Update.
1098 * arm-tdep.c (arm_gdbarch_init): Update.
1099 * remote.c (init_remote_state): Update.
1100 * remote-vx.c (vx_prepare_to_store): Update.
1101 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1102 * irix5-nat.c (fetch_core_registers): Update.
1103 * cris-tdep.c (cris_register_bytes_ok): Update.
1104 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1105
45c9dd44
AC
1106 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1107 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1108 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1109 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1110 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1111 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1112 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1113 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1114 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1115 with mips_insn16 and mips_insn32.
1116
3acba339
AC
1117 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1118 * rs6000-tdep.c (rs6000_push_dummy_call)
1119 (rs6000_extract_return_value): Use register_size.
1120 * xstormy16-tdep.c (xstormy16_get_saved_register)
1121 (xstormy16_extract_return_value): Ditto.
1122 * valops.c (value_assign): Ditto.
1123 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1124 * v850-tdep.c (v850_extract_return_value): Ditto.
1125 * tracepoint.c (collect_symbol): Ditto.
1126 * target.c (debug_print_register): Ditto.
1127 * stack.c (frame_info): Ditto.
1128 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1129 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1130 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1131 (store_register_using_P): Ditto.
1132 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1133 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1134 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1135 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1136 * regcache.c (deprecated_read_register_bytes)
1137 (deprecated_write_register_bytes, read_register)
1138 (write_register): Ditto.
1139 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1140 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1141 * monitor.c (monitor_supply_register, monitor_fetch_register)
1142 (monitor_store_register): Ditto.
1143 * mn10300-tdep.c (mn10300_pop_frame_regular)
1144 (mn10300_print_register): Ditto.
1145 * mipsv4-nat.c (fill_fpregset): Ditto.
1146 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1147 (mips64_fill_fpregset): Ditto.
1148 * mi/mi-main.c (register_changed_p, get_register)
1149 (mi_cmd_data_write_register_values): Ditto.
1150 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1151 * irix5-nat.c (fill_gregset, fetch_core_registers):
1152 * infrun.c (write_inferior_status_register): Ditto.
1153 * infptrace.c (fetch_register, store_register): Ditto.
1154 * infcmd.c (default_print_registers_info): Ditto.
1155 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1156 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1157 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1158 * hpux-thread.c (hpux_thread_fetch_registers)
1159 (hpux_thread_store_registers): Ditto.
1160 * hppah-nat.c (store_inferior_registers, fetch_register):
1161 * findvar.c (value_from_register): Ditto.
1162 * dve3900-rom.c (fetch_bitmapped_register):
1163 * cris-tdep.c (cris_gdbarch_init): Ditto.
1164 * alpha-tdep.h: Ditto.
1165 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1166
01e1877c
AC
1167 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1168 DEPRECATED_REGISTER_RAW_SIZE from comments.
1169 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1170 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1171 DEPRECATED_REGISTER_RAW_SIZE.
1172 * findvar.c (value_of_register): Simplify by assuming that the
1173 registers raw and virtual sizes are identical.
1174 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1175 comment.
1176 * arch-utils.c (generic_register_size): Simplify by assuming
1177 register_type.
1178
73f458fb
AC
1179 * regcache.c (legacy_read_register_gen, real_register)
1180 (legacy_write_register_gen): Delete, not used.
1181
336a3131
AC
1182 * regcache.c (struct regcache_descr): Delete legacy_p.
1183 (init_legacy_regcache_descr): Delete function.
1184 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1185 Do not use deprecated register functions.
1186 (regcache_raw_read, deprecated_write_register_gen):
1187 (deprecated_read_register_gen, regcache_raw_write): Delete code
1188 predicated on legacy_p.
1189 (register_size): Delete check against register raw size.
1190
c1d546cd
AC
1191 * cris-tdep.c (cris_register_type): Replace
1192 cris_register_virtual_type.
1193 (cris_gdbarch_init): Update, set register_type.
1194
48c2c0a6
AC
1195 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1196 * gdbarch.h, gdbarch.c: Re-generate.
1197 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1198 (arm_gdbarch_init) Do not set frameless function invocation.
1199 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1200 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1201 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1202 (frv_gdbarch_init): Do not set frameless function invocation.
1203 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1204 * sh-tdep.c (sh_gdbarch_init): Ditto.
1205 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1206 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1207 * avr-tdep.c (avr_gdbarch_init): Ditto.
1208
474093a6
AC
1209 * blockframe.c (legacy_frame_chain_valid): Delete function.
1210
3c109c8b
AC
1211 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1212 and pc. Update comments.
1213 (pc_in_dummy_frame): Delete function.
1214 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1215 use the "id".
1216 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1217 call_hi, top and pc, use the id.
1218 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1219
96860204
AC
1220 * dummy-frame.c: Include "gdb_string.h".
1221 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1222 (generic_save_dummy_frame_tos): Delete.
1223 (dummy_frame_push): New function, replaces above.
1224 * dummy-frame.h: Update copyright.
1225 (dummy_frame_push): Declare.
1226 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1227 (generic_save_call_dummy_addr): Delete declarations.
1228 * infcall.c: Include "dummy-frame.h".
1229 (call_function_by_hand): Add locals caller_regcache,
1230 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1231 with call to frame_save_as_regcache plus cleanup. Delete calls to
1232 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1233 Move clear_proceed_status to just before the resume, add call to
1234 dummy_frame_push (discard cleanup).
1235 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1236 (dummy-frame.o): Add $(gdb_string_h).
1237
d67ec5db
AC
12382004-08-01 Andrew Cagney <cagney@gnu.org>
1239
1240 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1241 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1242 * dummy-frame.c (find_dummy_frame): Delete.
1243 (struct dummy_frame_cache, dummy_frame_sniffer)
1244 (dummy_frame_prev_register, dummy_frame_this_id)
1245 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1246 frame unwinder using a dummy_frame_cache.
1247
a81dcb05
AC
12482004-08-01 Andrew Cagney <cagney@gnu.org>
1249
1250 * frame.h (frame_save_as_regcache): Declare.
1251 * frame.c (frame_save_as_regcache): New function.
1252 (do_frame_read_register): Replace do_frame_unwind_register.
1253 (frame_pop): Use frame_save_as_regcache.
1254 * dummy-frame.c (generic_push_dummy_frame): Use
1255 frame_save_as_regcache.
1256
aa495d11
JB
12572004-08-01 Joel Brobecker <brobecker@gnat.com>
1258
1259 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1260 file as included until we record the first line in the linetable.
1261
ff65ac78
AC
12622004-08-01 Andrew Cagney <cagney@gnu.org>
1263
1264 * frame.h (deprecated_pop_dummy_frame)
1265 (deprecated_read_register_dummy)
1266 (deprecated_generic_find_dummy_frame): Delete.
1267 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1268 (deprecated_read_register_dummy)
1269 (deprecated_find_dummy_frame_regcache)
1270 (discard_innermost_dummy)
1271 (deprecated_pop_dummy_frame): Delete.
1272 (dummy_frame_this_id): Simplify.
1273 (struct dummy_frame): Delete "fp" and "sp".
1274 (find_dummy_frame): Simplify.
1275 (generic_push_dummy_frame): Do not set "fp" or "sp".
1276 (fprint_dummy_frames): Do not print "fp" and "sp"
1277
37bdc87e
MK
12782004-08-01 Mark Kettenis <kettenis@gnu.org>
1279
1280 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1281 (struct i386_insn): New structure.
1282 (i386_match_insn): New function.
1283 (i386_frame_setup_skip_insns): New variable.
1284 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1285 array i386_frame_setup_insns of instructions that should be
1286 skipped inside the frame setup sequence.
1287
8241eaa6
AC
12882004-08-01 Andrew Cagney <cagney@gnu.org>
1289
5bc602c7
AC
1290 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1291 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1292 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1293 * stack.c (frame_info): Delete references to
1294 DEPRECATED_FRAME_INIT_SAVED_REGS and
1295 deprecated_get_frame_saved_regs.
1296 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1297 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1298 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1299 (frame_unwind_register_signed)
1300 (frame_unwind_register_unsigned)
1301 (frame_unwind_unsigned_register): Use register_size.
1302 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1303 (deprecated_frame_xmalloc_with_cleanup)
1304 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1305 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1306
03d363a1
AC
1307 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1308 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1309 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1310 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1311
8241eaa6
AC
1312 * infcall.c (call_function_by_hand): Do not use
1313 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1314 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1315 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1316 DEPRECATED_STACK_ALIGN.
1317
f00df8b7
AC
13182004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1319
1320 Committed by Andrew Cagney.
1321 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1322
eec63939
AC
13232004-08-01 Andrew Cagney <cagney@gnu.org>
1324
1325 * mips-tdep.c (mips16_frame_cache)
1326 (mips16_frame_this_id, mips16_frame_prev_register)
1327 (mips16_frame_unwind, mips16_frame_sniffer)
1328 (mips16_frame_base_address, mips16_frame_base)
1329 (mips16_frame_base_sniffer, mips32_frame_cache)
1330 (mips32_frame_this_id, mips32_frame_prev_register)
1331 (mips32_frame_unwind, mips32_frame_sniffer)
1332 (mips32_frame_base_address, mips32_frame_base)
1333 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1334 separate heuristic mips16 and mips32 unwinders.
1335 (mips_stub_frame_cache, mips_stub_frame_this_id)
1336 (mips_stub_frame_prev_register)
1337 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1338 (mips_stub_frame_base_address, mips_stub_frame_base)
1339 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1340 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1341 match true mdebug frames.
1342 (non_heuristic_proc_desc): Add forward declaration.
1343
e66299b3
AC
13442004-08-01 Andrew Cagney <cagney@gnu.org>
1345
83cbbf3e
AC
1346 * config/mips/tm-irix6.h: Delete file.
1347 * config/mips/tm-irix5.h: Delete file.
1348 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1349 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1350
22d41b37
AC
1351 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1352 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1353 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1354 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1355 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1356 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1357 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1358 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1359 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1360 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1361 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1362 (TARGET_SIGNAL_RAW_VALUES): Delete.
1363 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1364 Delete.
1365 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1366 (TARGET_HW_WATCH_LIMIT): Delete.
1367 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1368 * minimon.h: Delete file.
1369
e66299b3
AC
1370 * trad-frame.c (trad_frame_get_this_base)
1371 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1372 functions.
1373 * trad-frame.h (trad_frame_set_this_base)
1374 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1375
1f67027d
AC
13762004-07-31 Andrew Cagney <cagney@gnu.org>
1377
1378 * trad-frame.c (trad_frame_get_prev_register): Rename
1379 trad_frame_get_prev_register.
1380 * vax-tdep.c (vax_frame_prev_register): Update.
1381 * trad-frame.h: Update.
1382 * trad-frame.c (trad_frame_get_register): Update.
1383 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1384 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1385 Update.
1386 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1387 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1388 Update.
1389 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1390 Update.
1391 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1392 Update.
1393 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1394 Update.
1395 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1396 Update.
1397 * s390-tdep.c (s390_frame_prev_register)
1398 (s390_stub_frame_prev_register)
1399 (s390_sigtramp_frame_prev_register): Update.
1400 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1401 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1402 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1403 * m88k-tdep.c (m88k_frame_prev_register)
1404 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1405 * m32r-tdep.c (m32r_frame_prev_register): Update.
1406 * hppa-tdep.c (hppa_frame_prev_register_helper)
1407 * frv-tdep.c (frv_frame_prev_register): Update.
1408 * d10v-tdep.c (d10v_frame_prev_register): Update.
1409 * cris-tdep.c (cris_frame_prev_register): Update.
1410 * avr-tdep.c (avr_frame_prev_register): Update.
1411 * arm-tdep.c (arm_prologue_prev_register)
1412 (arm_sigtramp_prev_register): Update.
1413
c1bf6f65
AC
14142004-07-31 Andrew Cagney <cagney@gnu.org>
1415
1416 * frame.h (legacy_saved_regs_unwind)
1417 (legacy_frame_chain_valid, legacy_frame_p)
1418 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1419 * dummy-frame.c (dummy_frame_this_id): Simplify.
1420 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1421 * frame.c (struct frame_info): Delete the field "type".
1422 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1423 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1424 (legacy_saved_regs_unwind, legacy_frame_p)
1425 (frame_type_from_pc): Delete.
1426 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1427 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1428
dc856692
MK
14292004-07-31 Mark Kettenis <kettenis@gnu.org>
1430
5a5effe1
MK
1431 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1432 indentation.
1433
d4fd50a6
MK
1434 * mips-nat.c: Remove file.
1435 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1436 (mips-nat.o): Remove dependency.
1437
2689df5a
MK
1438 * infptrace.c: Update copyright year.
1439 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1440 explicitly setting the buffer to all zeroes.
1441
dc856692
MK
1442 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1443 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1444
763910e0
AC
14452004-07-30 Andrew Cagney <cagney@gnu.org>
1446
1447 * GDB 6.2 released from gdb_6_2-branch.
1448
0b66e38c
EZ
14492004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1450
1451 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1452
1453 * exec.c (exec_file_attach):
1454 * nto-tdep.c (nto_find_and_open_solib):
1455 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1456 * solib.c (solib_open):
1457 * somsolib.c (som_solib_sizeof_symbol_table):
1458 * source.c (is_regular_file, openp, open_source_file):
1459 * symfile.c (symfile_bfd_open):
1460 * wince.c (upload_to_device): Differentiate between the search for
1461 binary and source files.
1462
be7d7357
AC
14632004-07-30 Andrew Cagney <cagney@gnu.org>
1464
1465 * complaints.c (_initialize_complaints): Pass NULL to
1466 add_setshow_zinteger_cmd for help_doc.
1467 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1468
ddc9cd0f
AC
14692004-07-30 Andrew Cagney <cagney@gnu.org>
1470
1471 Fix PR i18n/761.
1472 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1473 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1474 $(PACKAGE).pot and update-po.
1475 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1476 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1477 (update-po): New rules.
1478 (localedir): Define using autoconf.
1479 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1480 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1481 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1482 * configure.in: Generate CATALOGS and LINGUAS from contents of
1483 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1484 * configure: Re-generate.
1485 * po/gdbtext: New file
1486
e92f3704
JG
14872004-07-30 Jerome Guitton <guitton@gnat.com>
1488
1489 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1490 order.
1491
b0f35d58
DL
14922004-07-30 David Lecomber <dsl@sources.redhat.com>
1493
1494 * dwarf2read.c (read_file_scope): Set producer if attribute
1495 present.
1496 (struct dwarf2_cu): Added new member producer.
1497
ce7d4522
JG
14982004-07-30 Jerome Guitton <guitton@gnat.com>
1499
1500 * inflow.c (kill_command): release file handles in BFD.
1501 * exec.c (exec_file_attach): Ditto.
1502 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1503
05ee07c7
AC
15042004-07-29 Andrew Cagney <cagney@gnu.org>
1505
1506 * PROBLEMS (mips-irix): Note that it is broken.
1507
62eceb47
AC
15082004-07-29 Andrew Cagney <cagney@gnu.org>
1509
e57b8d41
AC
1510 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1511 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1512
d334389b
AC
1513 * config/xm-nbsd.h: Delete file.
1514 * config/arm/xm-nbsd.h: Delete file.
1515 * config/i386/xm-nbsd.h: Delete file.
1516 * config/ns32k/xm-nbsd.h: Delete file.
1517 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1518 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1519 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1520 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1521 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1522
e910f676
AC
1523 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1524 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1525 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1526 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1527 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1528 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1529
6fa856b9
AC
1530 * config/powerpc/xm-linux.h: Delete empty file.
1531 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1532 * config/powerpc/linux.mh (XM_FILE): Delete.
1533 * config/m68k/xm-linux.h: Delete empty file.
1534 * config/m68k/linux.mh (XM_FILE): Delete.
1535 * config/ia64/xm-linux.h: Delete empty file.
1536 * config/ia64/linux.mh (XM_FILE): Delete.
1537 * config/arm/xm-linux.h: Delete empty file.
1538 * config/arm/linux.mh (XM_FILE): Delete.
1539
471ae5ae
AC
1540 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1541 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1542 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1543 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1544 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1545 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1546 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1547 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1548
62eceb47
AC
1549 * config/m68k/xm-m68k.h: Delete file.
1550 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1551 copyright.
1552 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1553 * config/pa/xm-linux.h: Delete empty file.
1554 * config/pa/linux.mh (XM_FILE): Delete.
1555 * config/i386/xm-i386.h: Delete empty file.
1556 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1557 "i386/xm-i386.h".
1558 * config/i386/obsdaout.mh (XM_FILE): Delete.
1559 * config/i386/obsd64.mh (XM_FILE): Delete.
1560 * config/i386/fbsd64.mh (XM_FILE): Delete.
1561 * config/i386/nto.mh (XM_FILE): Delete.
1562 * config/i386/obsd.mh (XM_FILE): Delete.
1563 * config/i386/linux64.mh (XM_FILE): Delete.
1564 * config/i386/linux.mh (XM_FILE): Delete.
1565 * config/i386/i386sol2.mh (XM_FILE): Delete.
1566 * config/i386/i386gnu.mh (XM_FILE): Delete.
1567 * config/i386/fbsd.mh (XM_FILE): Delete.
1568 * config/i386/nbsd64.mh (XM_FILE): Delete.
1569
c35f4ffc
AC
15702004-07-29 Andrew Cagney <cagney@gnu.org>
1571
1572 * config/pa/xm-linux.h: Do not include "floatformat.h".
1573 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1574 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1575 * config/i386/xm-i386.h: Do not include "floatformat.h".
1576 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1577 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1578 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1579 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1580 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1581 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1582 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1583 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1584 * configure, config.in: Regenerate.
1585 * configure.host (gdb_host_float_format, gdb_host_double_format)
1586 (gdb_host_long_double_format): Set according to the host.
1587
624a44a3
AC
15882004-07-29 Andrew Cagney <cagney@gnu.org>
1589
1590 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1591
0dea2468
AC
15922004-07-28 Andrew Cagney <cagney@gnu.org>
1593
1594 * PROBLEMS: Mention threads/1650.
1595 * NEWS: Mention the NPTL fix.
1596
b3f42336
AC
15972004-07-28 Andrew Cagney <cagney@gnu.org>
1598
1599 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1600 (add_setshow_cmd_full): Make static.
1601 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1602 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1603 * cli/cli-decode.c (add_setshow_filename_cmd)
1604 (add_setshow_string_cmd): New functions.
1605 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1606 * mips-tdep.c (_initialize_mips_tdep): Update.
1607 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1608 * cli/cli-logging.c (_initialize_cli_logging): Update.
1609 * complaints.c (_initialize_complaints): Update.
1610 * remote.c (_initialize_remote): Update.
1611
3b64bf98
AC
16122004-07-28 Andrew Cagney <cagney@gnu.org>
1613
1614 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1615 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1616 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1617 print parameters. Make string parameters constant.
1618 * command.h: Update. Update copyright.
1619 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1620 * observer.c (_initialize_observer): Ditto.
1621 * frame.c (_initialize_frame): Ditto.
1622 * complaints.c (_initialize_complaints): Ditto.
1623 * maint.c (_initialize_maint_cmds): Ditto.
1624 * target.c (initialize_targets): Ditto.
1625 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1626 * infcall.c (_initialize_infcall): Ditto.
1627 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1628 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1629 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1630 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1631 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1632
e9667a65
AC
16332004-07-28 Andrew Cagney <cagney@gnu.org>
1634
54a5b07d
AC
1635 * gdbtypes.c (lookup_primitive_typename): Delete function.
1636 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1637 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1638 * gdbtypes.c (lookup_typename): Ditto.
1639 * f-exp.y (yylex): Ditto.
1640 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1641
e9667a65
AC
1642 * scm-lang.c (c_builtin_types): Delete extern declaration.
1643 (scm_language_defn): Replace
1644 string_char_type and primitive_type_vector with
1645 la_language_arch_info.
1646 * jv-lang.c (java_language_defn): Replace
1647 string_char_type and primitive_type_vector with
1648 la_language_arch_info.
1649 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1650 c_builtin_types in comment.
1651 * c-lang.h (struct language_arch_info): Declare opaque.
1652 (c_language_arch_info): Declare.
1653 (c_builtin_types): Delete declaration.
1654 * c-lang.c (c_language_arch_info): Set string_char_type to
1655 builtin_char, not builtin_true_char. Make global.
1656 (c_builtin_types): Delete array.
1657 (asm_language_defn, minimal_language_defn): Replace
1658 string_char_type and primitive_type_vector with
1659 la_language_arch_info.
1660
685419e2
AC
16612004-07-28 Andrew Cagney <cagney@gnu.org>
1662
1663 * gdbtypes.h (struct builtin_type): Rename true_char to
1664 builtin_true_char.
1665 * gdbtypes.c (gdbtypes_post_init): Update.
1666 * c-lang.c (arch_info): New function.
1667 (enum c_primitive_types): New enum.
1668 (c_language_defn): Instead of string_char_type and
1669 primitive_type_vector set la_language_arch_info.
1670
5a44ea29
AC
16712004-07-28 Andrew Cagney <cagney@gnu.org>
1672
1673 * language.h (struct language_arch_info): Fix typo
1674 s/primative/primitive/.
1675 * gdbtypes.c (lookup_primitive_typename): Ditto.
1676 * language.c (language_lookup_primitive_type_by_name)
1677 (unknown_language_arch_info): Ditto.
1678
f290d38e
AC
16792004-07-27 Andrew Cagney <cagney@gnu.org>
1680
1681 * defs.h (enum language): Add nr_languages.
1682 * language.h (struct language_arch_info): Define.
1683 (struct language_defn): Add la_language_arch_info.
1684 (language_lookup_primative_type_by_name): Declare.
1685 (language_string_char_type): Declare.
1686 * language.c (_initialize_language, language_gdbarch_post_init)
1687 (struct language_gdbarch, language_gdbarch_data): Implement
1688 per-architecture language information.
1689 (unknown_language_arch_info, language_string_char_type)
1690 (language_lookup_primative_type_by_name): New functions.
1691 (unknown_language_defn, auto_language_defn)
1692 (local_language_defn): Set la_language_arch_info to
1693 unknown_language_arch_info.
1694 (unknown_builtin_types): Delete.
1695 * gdbtypes.c (lookup_primitive_typename): Use
1696 language_lookup_primative_type_by_name.
1697 (create_string_type): Use language_string_char_type.
1698 * values.c (value_from_string): Use language_string_char_type.
1699 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1700 * p-lang.c (pascal_language_defn): Ditto.
1701 * m2-lang.c (m2_language_defn): Ditto.
1702 * jv-lang.c (java_language_defn): Ditto.
1703 * objc-lang.c (objc_language_defn): Ditto.
1704 * f-lang.c (f_language_defn): Ditto.
1705 * c-lang.c (c_language_defn, cplus_language_defn)
1706 (asm_language_defn, minimal_language_defn): Ditto.
1707
000177f0
AC
17082004-07-27 Andrew Cagney <cagney@gnu.org>
1709
1710 * gdbtypes.h (struct builtin_type): Declare.
1711 (builtin_type): Declare.
1712 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1713 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1714 (gdbtypes_post_init): New function.
1715 (builtin_type): New function.
1716
e22f895c
KI
17172004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1718
1719 * remote-m32r-sdi.c: Fix breakpoint bug.
1720 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1721 recv_char_data, recv_long_data): New functions to replace communication
1722 sequences.
1723
536517dd
MC
17242004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1725
1726 Document PR threads/1650.
1727 * PROBLEMS (Threads): Document problem with many threads
1728
a0a44d18
AC
17292004-07-26 Andrew Cagney <cagney@gnu.org>
1730
1731 * gdb-mi.el: Move from here ...
1732 * mi/gdb-mi.el: ... to here.
1733
7ac4ac06
AC
17342004-07-26 Andrew Cagney <cagney@gnu.org>
1735
1736 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1737 * main.c (captured_main): When in batch mode always detach.
1738
a1b461bf
AC
17392004-07-26 Andrew Cagney <cagney@gnu.org>
1740
1741 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1742 and h8300 as broken.
1743 * NEWS: END-OF-LIFE frame compatibility module.
1744 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1745 specific comments.
1746
cb1a6d5f
AC
17472004-07-26 Andrew Cagney <cagney@gnu.org>
1748
1749 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1750 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1751 * wince.c (_initialize_wince): Update.
1752 * win32-nat.c (_initialize_win32_nat): Update.
1753 * varobj.c (_initialize_varobj): Update.
1754 * valops.c (_initialize_valops): Update.
1755 * utils.c (initialize_utils, initialize_utils): Update.
1756 * tui/tui-win.c (_initialize_tui_win): Update.
1757 * top.c (init_main): Update.
1758 * symfile.c (_initialize_symfile): Update.
1759 * source.c (_initialize_source): Update.
1760 * somsolib.c (_initialize_som_solib): Update.
1761 * solib.c (_initialize_solib): Update.
1762 * solib-frv.c (_initialize_frv_solib): Update.
1763 * serial.c (_initialize_serial): Update.
1764 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1765 * remote.c (_initialize_remote, _initialize_remote): Update.
1766 * remote-vx.c (_initialize_vx): Update.
1767 * remote-utils.c (_initialize_sr_support): Update.
1768 * remote-sds.c (_initialize_remote_sds): Update.
1769 * remote-mips.c (_initialize_remote_mips): Update.
1770 * remote-e7000.c (_initialize_remote_e7000): Update.
1771 * proc-api.c (_initialize_proc_api): Update.
1772 * printcmd.c: Update.
1773 * parse.c (_initialize_parse): Update.
1774 * pa64solib.c (_initialize_pa64_solib): Update.
1775 * p-valprint.c (_initialize_pascal_valprint): Update.
1776 * monitor.c (_initialize_remote_monitors): Update.
1777 * mips-tdep.c (_initialize_mips_tdep): Update.
1778 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1779 * maint.c (_initialize_maint_cmds): Update.
1780 * lin-lwp.c (_initialize_lin_lwp): Update.
1781 * language.c (_initialize_language): Update.
1782 * kod.c (_initialize_kod): Update.
1783 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1784 * i386-tdep.c (_initialize_i386_tdep): Update.
1785 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1786 * gdbarch.sh: Update.
1787 * gdbarch.c: Re-generate.
1788 * gdb-events.sh: Update.
1789 * gdb-events.c: Re-generate.
1790 * frame.c (_initialize_frame): Update.
1791 * exec.c: Update.
1792 * demangle.c (_initialize_demangler): Update.
1793 * dcache.c (_initialize_dcache): Update.
1794 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1795 * cp-valprint.c (_initialize_cp_valprint): Update.
1796 * corefile.c (_initialize_core): Update.
1797 * command.h: Update.
1798 * cli/cli-decode.h: Update.
1799 * cli/cli-cmds.c (init_cli_cmds): Update.
1800 * charset.c (_initialize_charset): Update.
1801 * breakpoint.c (_initialize_breakpoint): Update.
1802 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1803 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1804 * aix-thread.c (_initialize_aix_thread): Update.
1805
b4632131
MK
18062004-07-24 Mark Kettenis <kettenis@gnu.org>
1807
1808 Partial fix for PR backtrace/1718.
1809 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1810 that GCC migrates into the prolugue. Don't handle any
1811 instructions that clobber %ebx.
1812
822c9732
AC
18132004-07-23 Andrew Cagney <cagney@gnu.org>
1814
1815 Use regcache_raw_collect instead of regcache_collect.
1816 * regcache.h (regcache_collect): Delete declaration.
1817 * regcache.c (regcache_colect): Delete function.
1818 * win32-nat.c (do_child_store_inferior_registers): Update.
1819 * sol-thread.c (sol_thread_store_registers): Update.
1820 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1821 * rs6000-nat.c (store_register): Update.
1822 * remote.c (store_register_using_P, remote_store_registers): Update.
1823 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1824 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1825 (fill_vrregset, store_spe_registers, fill_gregset)
1826 (fill_gregset): Update.
1827 * nto-procfs.c (procfs_store_registers): Update.
1828 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1829 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1830 * m68klinux-nat.c (store_register, fill_gregset): Update.
1831 * m68k-tdep.c (fill_gregset): Update.
1832 * infptrace.c (store_register): Update.
1833 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1834 * i386-linux-nat.c (store_register, fill_gregset): Update.
1835 * hppa-linux-nat.c (fill_gregset): Update.
1836 * go32-nat.c (store_register): Update.
1837 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1838 (store_fp_regs): Update.
1839 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1840 (store_nwfpe_extended, store_fpregister, store_fpregs)
1841 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1842 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1843 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1844 (store_regs_user_thread, store_regs_kernel_thread): Update.
1845
32b05c07
MK
18462004-07-24 Mark Kettenis <kettenis@gnu.org>
1847
1848 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1849 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1850 encoding.
1851 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1852 member of `struct comp_unit'.
1853
8567c30f
AC
18542004-07-23 Andrew Cagney <cagney@gnu.org>
1855
1856 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1857 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1858
f6da8dd8
MH
18592004-07-23 Martin Hunt <hunt@redhat.com>
1860 Kevin Buettner <kevinb@redhat.com>
1861
1862 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1863 alignment was being added to the offset instead of multiplied.
1864
bd921882
MK
18652004-07-23 Mark Kettenis <kettenis@gnu.org>
1866
24f033e8
MK
1867 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1868 changed signal trampoline in OpenBSD 3.5-current.
1869
90f3cecd
MK
1870 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1871 <machine/pcb.h> and "bsd-kvm.h".
1872 (sparc64nbsd_supply_pcb): New function.
1873 (_initialize_sparc64nbsd_nat): Renamed from
1874 _initialize_sparcnbsd_nat. Enable libkvm interface.
1875 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1876 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1877 (LOADLIBES): New variable.
1878
a4954a62
MK
1879 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1880
bd921882
MK
1881 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1882
23a6d369
AC
18832004-07-21 Andrew Cagney <cagney@gnu.org>
1884
1885 Use regcache_raw_supply instead of supply_register.
1886 * regcache.h (supply_register): Delete declaration.
1887 * regcache.c (supply_register): Delete function.
1888 * wince.c (do_child_fetch_inferior_registers): Update.
1889 * win32-nat.c (do_child_fetch_inferior_registers)
1890 (fetch_elf_core_registers): Update.
1891 * v850ice.c (v850ice_fetch_registers): Update.
1892 * thread-db.c (thread_db_store_registers): Update.
1893 * sol-thread.c (sol_thread_store_registers): Update.
1894 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1895 * rs6000-nat.c (fetch_register): Update.
1896 * rom68k-rom.c (rom68k_supply_one_register): Update.
1897 * remote.c (remote_wait, remote_async_wait): Update.
1898 * remote-st.c (get_hex_regs): Update.
1899 * remote-sim.c (gdbsim_fetch_register): Update.
1900 * remote-sds.c (sds_fetch_registers): Update.
1901 * remote-rdp.c (remote_rdp_fetch_register): Update.
1902 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1903 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1904 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1905 * remote-hms.c (init_hms_cmds): Update.
1906 * remote-est.c (init_est_cmds): Update.
1907 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1908 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1909 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1910 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1911 (fetch_register, supply_vrregset, supply_vrregset)
1912 (fetch_spe_registers): Update.
1913 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1914 * monitor.c (monitor_supply_register): Update.
1915 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1916 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1917 (mipsnbsd_supply_fpreg): Update.
1918 * mips-nat.c (fetch_inferior_registers)
1919 (fetch_core_registers): Update.
1920 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1921 (supply_fpregset, mips64_supply_gregset)
1922 (mips64_supply_fpregset): Update.
1923 * m68klinux-nat.c (fetch_register, supply_gregset)
1924 (supply_fpregset): Update.
1925 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1926 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1927 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1928 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1929 * infptrace.c (fetch_register): Update.
1930 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1931 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1932 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1933 (gnu_fetch_registers, gnu_store_registers): Update.
1934 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1935 * i386-linux-nat.c (fetch_register, supply_gregset)
1936 (dummy_sse_values): Update.
1937 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1938 * hppah-nat.c (fetch_register): Update.
1939 * hppa-linux-nat.c (fetch_register, supply_gregset)
1940 (supply_fpregset): Update.
1941 * go32-nat.c (fetch_register): Update.
1942 * dve3900-rom.c (fetch_bitmapped_register)
1943 (_initialize_r3900_rom): Update.
1944 * cris-tdep.c (supply_gregset): Update.
1945 * abug-rom.c (init_abug_cmds): Update.
1946 * core-aout.c (fetch_core_registers): Update.
1947 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1948 (fetch_register, fetch_fp_register): Update.
1949 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1950 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1951 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1952 * alphanbsd-tdep.c (fetch_core_registers): Update.
1953 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1954 * alpha-nat.c (fetch_osf_core_registers)
1955 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1956 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1957 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1958
73cc75f3
AC
19592004-07-21 Andrew Cagney <cagney@gnu.org>
1960
1961 * PROBLEMS: Mention breakpoints/1702.
1962 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1963 that is known to work.
1964
a53c66de
AC
19652004-07-21 Andrew Cagney <cagney@gnu.org>
1966
1967 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1968 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1969 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1970 (handle_inferior_event): Wrap call to deprecated
1971 IGNORE_HELPER_CALL in #ifdef.
1972 * config/mips/tm-nbsd.h: Update.
1973
708ff411
JB
19742004-07-20 Jim Blandy <jimb@redhat.com>
1975
412b3060
JB
1976 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1977 bfd_mach_ppc has no segment registers.
1978
13ac140c
JB
1979 Include PowerPC SPR numbers for special-purpose registers.
1980 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1981 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1982 new member in initializer.
1983 (S, S4, SN4, S64): New macros for defining special-purpose
1984 registers.
1985 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1986 registers_403, registers_403GC, registers_505, registers_860,
1987 registers_601, registers_602, registers_603, registers_604,
1988 registers_750, registers_e500): Use them.
1989
708ff411
JB
1990 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1991 replace references with expression used to initialize variable.
1992
1f602b35
AC
19932004-07-20 Andrew Cagney <cagney@gnu.org>
1994
1995 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1996 read_memory_nobpt.
1997 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1998 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1999 (s390_sigtramp_frame_sniffer): Update.
2000 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2001 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2002 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2003 (mips32_fetch_instruction): Update.
2004 * mcore-tdep.c (get_insn): Update.
2005 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2006 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2007 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2008 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2009 (i386_linux_rt_sigtramp_start): Update.
2010 * i386-linux-nat.c (child_resume): Update.
2011 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2012 * hppa-linux-tdep.c (insns_match_pattern): Update.
2013 * gdbcore.h: Update.
2014 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2015 * frame.c (safe_frame_unwind_memory): Update.
2016 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2017 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2018 * alpha-tdep.c (alpha_read_insn): Update.
2019
2cd8546d
AC
20202004-07-20 Andrew Cagney <cagney@gnu.org>
2021
2022 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2023 containing both bytes and mask. Add "frame_type".
2024 * tramp-frame.c (tramp_frame_start): Update.
2025 (tramp_frame_prepend_unwinder): Update.
2026 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2027 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2028 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2029 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2030
f928dd62
EZ
20312004-07-19 Eli Zaretskii <eliz@gnu.org>
2032
2033 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2034 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2035 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2036 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2037
d5c560f7
AC
20382004-07-17 Andrew Cagney <cagney@gnu.org>
2039
860660cb
AC
2040 * NEWS, PROBLEMS: Update for 6.2.
2041
8c266f54
AC
2042 * README: Update to 6.2.
2043
a552edd9
AC
2044 * utils.c (xvasprintf): Call xstrvprintf.
2045
c4a172b5
AC
2046 * parse.c: Update copyright.
2047 (null_post_parser): Eliminate ARGSUSED.
2048
da745b36
AC
2049 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2050 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2051 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2052
9cbc6ef0
AC
2053 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2054 * ppc-linux-nat.c: Use "Linux kernel".
2055 * hppa-linux-tdep.c: Use GNU/Linux.
2056 * hppa-linux-nat.c: Use GNU/Linux.
2057 * dwarfread.c: Add [sic] to use of Linux.
2058
1b89295f
AC
2059 * hppa-linux-nat.c: Do not include <string.h>.
2060 (supply_fpregset): Remove "register" attribute.
2061
d5c560f7
AC
2062 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2063
7ddd7709
MK
20642004-07-17 Mark Kettenis <kettenis@gnu.org>
2065
b1d19a62
MK
2066 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2067 * configure, config.in: Regenerated.
2068
7ddd7709
MK
2069 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2070 "bsd-kvm.h".
2071 (vaxbsd_supply_pcb): New function.
2072 (_initialize_vaxbsd_nat): New prototype and function.
2073 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2074 solib-sunos.o.
2075 (LOADLIBES): New variable.
2076 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2077 (LOADLIBES): New variable.
2078 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2079 (LOADLIBES): New variable.
2080 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2081
2c07db7a
AC
20822004-07-16 Andrew Cagney <cagney@gnu.org>
2083
2084 * defs.h (event_loop_p): Replace variable declaration with macro,
2085 always 1.
2086 * main.c (captured_main): Delete options "-async" and "-noasync".
2087 (event_loop_p): Delete variable.
2088 * NEWS: Mention that "-async" and "-noasync" were removed.
2089
717eb1cf
AC
20902004-07-16 Andrew Cagney <cagney@gnu.org>
2091
2092 * remote-m32r-sdi.c: Re-indent.
2093
c101bc14
JB
20942004-07-16 Jim Blandy <jimb@redhat.com>
2095
5109a438
JB
2096 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2097 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2098 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2099 missing MPC823 SPRs.
2100 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2101 incorrect. (This was corrected in GDB's register name tables on
2102 2004-07-14.)
2103
c101bc14
JB
2104 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2105 should be "esasrr" ("ESA Save and Restore Register").
2106
7ce450bd
AC
21072004-07-16 Andrew Cagney <cagney@gnu.org>
2108
2109 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2110 calls, no longer applicable. Update comments and rename parameter
2111 "step_frame" to "return_frame".
2112
ca73dd9d
AC
21132004-07-16 Andrew Cagney <cagney@gnu.org>
2114
2115 * frame.c (fprint_field): New function.
2116 (fprint_frame_id): Use fprint_field.
2117
31941f6d
JB
21182004-07-15 Joel Brobecker <brobecker@gnat.com>
2119
2120 * ada-lang.c (ada_language_defn): Remove commented out code.
2121
f86a7158
JB
21222004-07-15 Jim Blandy <jimb@redhat.com>
2123
2124 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2125 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2126
c24791ec
JB
21272004-07-14 Jim Blandy <jimb@redhat.com>
2128
29bb1356
JB
2129 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2130
cc98b5cc
JB
2131 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2132
8f088af7
JB
2133 * ppc-tdep.h (ppc_num_srs): New enum constant.
2134
0ea0ec5f
JB
2135 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2136 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2137 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2138 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2139 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2140 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2141 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2142 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2143 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2144 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2145 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2146 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2147 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2148 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2149 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2150 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2151 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2152 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2153 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2154 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2155 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2156 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2157 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2158 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2159 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2160 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2161 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2162 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2163 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2164 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2165 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2166 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2167 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2168 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2169 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2170 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2171 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2172 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2173 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2174 special-purpose register numbers.
2175
c24791ec
JB
2176 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2177 manual mentions 'md_twb', but many mention 'm_twb', and at that
2178 point in the register list.)
2179
d833db3b
AC
21802004-07-14 Andrew Cagney <cagney@gnu.org>
2181
2182 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2183 instead of "internal-error".
2184
080228b2
JB
21852004-07-10 Joel Brobecker <brobecker@gnat.com>
2186
2187 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2188 that was inserted inside a comment.
2189
c268433a
RC
21902004-07-10 Randolph Chung <tausq@debian.org>
2191
2192 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2193 function.
2194 (hppa_hpux_push_dummy_code): New function.
2195 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2196 Set find_global_pointer method.
2197
71009278
MK
21982004-07-10 Mark Kettenis <kettenis@gnu.org>
2199
2200 * NEWS: Mention BSD libkvm interface.
2201
b2fa5097
MS
22022004-07-10 Michael Snyder <msnyder@redhat.com>
2203
2204 * symfile.c (generic_load): Comment typo.
2205 * stack.c (get_selected_block): Ditto.
2206 * regcache.c (regcache_cooked_read): Ditto.
2207 * monitor.c (monitor_debug): Ditto.
2208 * mips-tdep.c (mips_read_pc): Ditto.
2209 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2210 * gdb_mbuild.sh: Ditto.
2211 * gdbarch.sh: Ditto.
2212 * gdbarch.h: Ditto.
2213
c3e5cd34
PH
22142004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2215
8a2225b2
PH
2216 * ada-tasks.c: Remove file.
2217
c3e5cd34
PH
2218 Remove ARI problems:
2219
2220 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2221 beginning of line.
2222
2223 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2224 Add comment.
2225 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2226 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2227 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2228 (UMIN_OF_SIZE): Remove.
2229 (max_of_type): New function to replace orphan macro in gdbtypes.h
2230 (min_of_type): Ditto.
2231 (discrete_type_high_bound): Use max_of_type.
2232 (discrete_type_low_bound): Use min_of_type.
2233 (possible_user_operator_p): Move operator to beginning of line.
2234 (ada_is_variant_part): Ditto.
2235 (ensure_lval): Rewrite to avoid deprecated operations.
2236 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2237 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2238 (ada_enum_name): Remove assignments in 'if' statements.
2239 (build_ada_types): Add gdbarch parameter.
2240 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2241 with gdbarch_data_register_post_init.
2242 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2243 add_show_from_set.
2244
2245 * ada-valprint.c (inspect_it): Remove declaration.
2246 (repeat_count_threshold): Remove declaration.
2247 (ada_print_floating): Remove assignments in 'if' statements.
2248 (print_str): Move operator to beginning of line.
2249
61ce229a
JB
22502004-07-08 Jim Blandy <jimb@redhat.com>
2251
2252 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2253
09bcec80
BR
22542004-07-08 Bob Rossi <bob@brasko.net>
2255
2256 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2257
31c27f77
JJ
22582004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2259
2260 * language.h (struct_language_defn): Add new function pointer:
2261 la_class_name_from_physname. Also add new prototype for
2262 language_class_name_from_physname.
2263 * language.c (language_class_name_from_physname): New function.
2264 (unk_lang_class_name): Ditto.
2265 (unknown_language_defn, auto_language_defn): Change
2266 to add unk_lang_class_name function pointer for
2267 la_class_name_from_physname.
2268 (local_language_defn): Ditto.
2269 * dwarf2read.c (guess_structure_name): Change to call
2270 language_class_name_from_physname.
2271 (determine_class_name): Ditto.
2272 * cp-support.c (class_name_from_physname): Renamed.
2273 (cp_class_name_from_physname): New name of function.
2274 * cp-support.h: Ditto.
2275 * c-lang.c (c_language_defn): Change to add NULL
2276 for class_name_from_physname function pointer.
2277 (cplus_language_defn): Change to add cp_class_name_from_physname.
2278 * jv-lang.c (java_class_name_physname): New function.
2279 (java_find_last_component): New static routine.
2280 (java_language_defn): Add java_class_name_from_physname pointer.
2281 * ada-lang.c (ada_language_defn): Change to add NULL
2282 for class_name_from_physname function pointer.
2283 * f-lang.c (f_language_defn): Ditto.
2284 * m2-lang.c (m2_language_defn): Ditto.
2285 * objc-lang.c (objc_language_defn): Ditto.
2286 * p-lang.c (pascal_language_defn): Ditto.
2287 * scm-lang.c (scm_language_defn): Ditto.
2288
ee28ca0f
AC
22892004-07-06 Andrew Cagney <cagney@gnu.org>
2290
2291 Patch from Bart Robinson.
2292 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2293 (O_LARGEFILE): Define to 0, if not defined.
2294
fdb1bf9d
MK
22952004-07-03 Mark Kettenis <kettenis@gnu.org>
2296
cb162ff6
MK
2297 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2298 <machine/pcb.h> and "bsd-kvm.h".
2299 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2300 (m68kbsd_supply_pcb): New function.
2301 (_initialize_m68kbsd_nat): New prototype and function.
2302 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2303 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2304 (LOADLIBES): New variable.
2305 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2306 (LOADLIBES): New variable.
2307
fdb1bf9d
MK
2308 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2309
963c4174
MK
23102004-07-03 Mark Kettenis <kettenis@gnu.org>
2311
2312 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2313 <sys/proc.h>.
2314 (bsd_kvm_cmdlist): New variable.
2315 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2316 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2317 command and "kvm proc" command.
2318 * Makefile.in (bsd-kvm.o): Update dependencies.
2319
533f1d8f
MK
23202004-07-02 Mark Kettenis <kettenis@gnu.org>
2321
2322 * osabi.c: Update copyright year.
2323 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2324 notes if EI_OSABI is set to ELFOSABI_HPUX.
2325
6780dcde
MS
23262004-07-01 Michael Snyder <msnyder@redhat.com>
2327
2328 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2329 that seems to have gotten whacked out of line.
2330
67bebe79
MK
23312004-07-01 Mark Kettenis <kettenis@gnu.org>
2332
2333 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2334 code.
2335
0b5d8877
PH
23362004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2337
2338 * ada-lang.c (decode_packed_array): Minor change to comment.
2339 (ada_value_slice_ptr): New function.
2340 (ada_value_slice): New function.
2341 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2342 test. Don't know why it is there.
2343 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2344 to avoid dereferencing huge arrays from which one is slicing.
2345 (empty_array): Correct to return an array rather than
2346 a subrange value.
2347 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2348 on empty arrays (let'em use 'FIRST instead).
2349
19c1ef65
PH
23502004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2351
2352 Address complaints from gdb_ari.sh:
2353
2354 * ada-exp.y: Include gdb_string.h rather than string.h.
2355 (convert_char_literal): Reformat declaration.
2356 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2357 * ada-lex.l: Change use of free to xfree (the macro would do so
2358 anyway, but this is harmless).
2359 Include gdb_string.h rather than string.h.
2360 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2361
2362 * ada-lang.c (parse): Remove K&Rism in parameter list.
2363 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2364
d81cbc94
MK
23652004-06-30 Mark Kettenis <kettenis@gnu.org>
2366
2367 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2368 dead code.
2369
07681759
MK
23702004-06-30 Mark Kettenis <kettenis@gnu.org>
2371
2372 * alphabsd-nat.c: Update copyright year.
2373 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2374
f7948b5f
JB
23752004-06-29 Joel Brobecker <brobecker@gnat.com>
2376
6e0cdd28 2377 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2378 (i386_cygwin_in_solib_call_trampoline): New function.
2379 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2380 and skip_trampoline_code gdbarch methods.
2381
8f113c9a
JB
23822004-06-29 Jim Blandy <jimb@redhat.com>
2383
2384 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2385 name actually used in the dependency lists.
2386
97dc871c
RC
23872004-06-29 Randolph Chung <tausq@debian.org>
2388
2389 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2390
47216e51
CV
23912004-06-29 Corinna Vinschen <vinschen@redhat.com>
2392
2393 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2394 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2395 functionality.
2396
e623b504
AC
23972004-06-28 Andrew Cagney <cagney@gnu.org>
2398
2399 * defs.h (xstrvprintf): Declare.
2400 * utils.c (xstrvprintf): New function.
2401 (internal_vproblem, xstrprintf, xasprintf)
2402 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2403 * serial.c (serial_printf): Ditto.
2404 * complaints.c (vcomplaint): Ditto.
2405
79acc9b3
CV
24062004-06-29 Corinna Vinschen <vinschen@redhat.com>
2407
2408 * infcmd.c (attach_command): Move call to target_terminal_inferior
2409 behind loading symbol table.
2410
1daf35d9
AC
24112004-06-28 Andrew Cagney <cagney@gnu.org>
2412
2413 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2414 change - add back extern deprecated_ui_loop_hook declaration.
2415
b435e160
AC
24162004-06-28 Andrew Cagney <cagney@gnu.org>
2417
2418 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2419 xstrprintf.
2420 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2421 (c_value_of_variable): Ditto.
2422 * utils.c (internal_vproblem): Ditto.
2423 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2424 * remote.c (add_packet_config_cmd): Ditto.
2425 * remote-rdp.c (rdp_set_command_line): Ditto.
2426 * regcache.c (regcache_dump): Ditto.
2427 * frv-tdep.c (new_variant, new_variant): Ditto.
2428 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2429 (fbsd_find_memory_regions): Ditto.
2430 * breakpoint.c (create_thread_event_breakpoint)
2431 (create_breakpoints): Ditto.
2432 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2433 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2434
06d5cf63
JB
24352004-06-28 Joel Brobecker <brobecker@gnat.com>
2436
2437 * ada-lang.c: Re-indent file, with some massaging to help indent
2438 a bit when the result is otherwise really too ugly.
2439
35809fad
UW
24402004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2441
2442 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2443 code_addr_p and special_addr_p to 'unsigned int'.
2444
40e20472
MK
24452004-06-27 Mark Kettenis <kettenis@gnu.org>
2446
2447 * i386v4-nat.c: Update copyright year and tweak comment.
2448 (regmap): Remove trailing comma.
2449 (supply_gregset): Rename local variable i to regnum. Call
2450 regcache_raw_supply instead of supply_register.
2451 (fill_gregset): Rename argument regno to regnum. Call
2452 regcache_raw_collect instead of regcache_collect.
2453
12b0b6de
UW
24542004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2455
2456 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2457 and special_addr_p.
2458 (frame_id_build, frame_id_build_special): Update comments.
2459 (frame_id_build_wild): New prototype.
2460 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2461 struct frame_id fields.
2462 (frame_id_build_wild): New function.
2463 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2464
47b42a3e
MK
24652004-06-27 Mark Kettenis <kettenis@gnu.org>
2466
2467 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2468 hppabsd-tdep.c.
2469
1265e4aa
JB
24702004-06-27 Joel Brobecker <brobecker@gnat.com>
2471
2472 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2473
76a01679
JB
24742004-06-27 Joel Brobecker <brobecker@gnat.com>
2475
2476 * ada-lang.c: Re-indent file.
2477
7aca490a
JB
24782004-06-27 Joel Brobecker <brobecker@gnat.com>
2479
2480 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2481 (no_symtab_msg): Likewise.
2482
5e987968
AS
24832004-06-27 Andreas Schwab <schwab@suse.de>
2484
2485 * source.c: Fix whitespace.
2486
315c4276
MK
24872004-06-27 Mark Kettenis <kettenis@gnu.org>
2488
d15be926
MK
2489 * configure.in: Include <sys/param.h> for td_pcb test.
2490 * configure: Regenerated.
2491
9062529b
MK
2492 * i386nbsd-nat.c: New file.
2493 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2494 i386obsd-nat.c and i386obsd-tdep.c.
2495 (i386nbsd-nat.o): New dependency.
2496 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2497 bsd-kvm.o.
2498 (LOADLIBES): New variable.
2499 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2500 bsd-kvm.o.
2501 (LOADLIBES): New variable.
2502
8010310e
MK
2503 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2504 (LOADLIBES): New variable.
2505
efe1d7b9
MK
2506 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2507 fetching from BSD_KVM_PADDR. Correctly lookup address for
2508 "_thread0".
2509
315c4276
MK
2510 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2511 "bsd-kvm.h".
2512 (amd64fbsd_supply_pcb): New funcion.
2513 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2514
399cfac6
DL
25152004-06-27 <david@streamline-computing.com>
2516
2517 Partial fix for PR cli/1056.
2518 * valarith.c: Check for zero in division and remainder
2519 evaluation.
2520
6235f9c8
MK
25212004-06-27 Mark Kettenis <kettenis@gnu.org>
2522
2523 * i387-tdep.c: Remove excessive whitespace.
2524
2726dafc
AC
25252004-06-26 Andrew Cagney <cagney@gnu.org>
2526
2527 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2528 * gdb-events.h, gdb-events.c: Re-generate.
2529 * tui/tui-hooks.c (tui_install_hooks): Update.
2530 (tui_remove_hooks): Update.
2531 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2532
0e56aeaf
MK
25332004-06-26 Mark Kettenis <kettenis@gnu.org>
2534
cb461069
MK
2535 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2536 (gregset_t, fpregset_t): Remove typedefs.
2537 (REG_OFFSET): Rename argument.
2538 (amd64bsd_r_reg_offset): Rename from reg_offset.
2539 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2540 Remove functions.
2541 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2542 of reg_offset.
2543 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2544
ecba89de
MK
2545 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2546
4cd80476
MK
2547 * vax-tdep.c: Tweak comment.
2548
0e56aeaf
MK
2549 Add OpenBSD/hppa support.
2550 * NEWS (New native configurations): Mention OpenBSD/hppa.
2551 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2552 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2553 files.
2554 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2555 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2556 * configure.host: Add hppa*-*-openbsd*.
2557 * configure.tgt: Add hppa*-*-openbsd*.
2558
98bbd631
AC
25592004-06-25 Andrew Cagney <cagney@gnu.org>
2560
2561 * defs.h (deprecated_ui_loop_hook): Deprecated.
2562 * wince.c (child_wait): Update.
2563 * win32-nat.c (child_wait): Update.
2564 * v850ice.c (v850ice_wait): Update.
2565 * top.c (deprecated_ui_loop_hook): Update.
2566 * serial.h: Update.
2567 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2568 (do_unix_readchar): Update.
2569 * ser-tcp.c (net_open): Update.
2570 * remote-sim.c (gdb_os_poll_quit): Update.
2571 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2572
769d7dc4
AC
25732004-06-24 Andrew Cagney <cagney@gnu.org>
2574
2575 * defs.h (deprecated_pre_add_symbol_hook)
2576 (deprecated_post_add_symbol_hook): Deprecated.
2577 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2578 (symbol_file_add_with_addrs_or_offsets): Update references.
2579
11c949aa
AC
25802004-06-24 Andrew Cagney <cagney@gnu.org>
2581
2582 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2583 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2584 * wince.c (ui_loop_hook): Delete extern declaration.
2585 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2586 * v850ice.c (ui_loop_hook): Delete extern declaration..
2587 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2588 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2589 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2590 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2591 ui_loop_hook declaration.
2592
eedc19af
AC
25932004-06-24 Andrew Cagney <cagney@gnu.org>
2594
2595 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2596 entry_func_highpc fields.
2597 * objfiles.c (init_entry_point_info): Do not clear
2598 entry_func_lowpc and entry_func_highpc.
2599 (objfile_relocate): Do not relocate entry_func_lowpc and
2600 entry_func_highpc.
2601 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2602 entry_func_highpc.
2603 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2604 entry_func_highpc.
2605 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2606 entry_func_lowpc and entry_func_highpc with call to
2607 inside_entry_func.
2608
d47079be
MK
26092004-06-24 Mark Kettenis <kettenis@gnu.org>
2610
2611 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2612 quad-precision floating point arguments in registers.
2613
2107e348
MK
26142004-06-24 Mark Kettenis <kettenis@gnu.org>
2615
2616 From Michael Mueller <m.mueller99@kay-mueller.de>:
2617 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2618 account.
2619
46587c42
JJ
26202004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2621
2622 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2623 to -1.
2624 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2625 untriggered watchpoints to a separate if clause. Update function
2626 comment regarding STOPPED_BY_WATCHPOINT argument.
2627
226f5cf4
JB
26282004-06-22 Jim Blandy <jimb@redhat.com>
2629
2630 * gdbarch.sh: Doc fix.
2631
f10683bb
MH
26322004-06-21 Martin Hunt <hunt@redhat.com>
2633 Kevin Buettner <kevinb@redhat.com>
2634
2635 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2636 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2637 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2638 to set_gdbarch_sp_regnum(). Use cooked register number.
2639 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2640
412d5987
AC
26412004-06-21 Andrew Cagney <cagney@gnu.org>
2642
2643 * gdbarch.sh: When the macro field is empty, do not generate a
2644 macro definition. When the macro field is "=", generate the macro
2645 name from the upper-case function name.
2646 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2647 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2648 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2649 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2650 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2651 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2652 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2653 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2654 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2655 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2656 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2657 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2658 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2659 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2660 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2661 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2662 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2663 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2664 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2665 (DEPRECATED_USE_STRUCT_CONVENTION)
2666 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2667 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2668 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2669 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2670 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2671 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2672 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2673 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2674 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2675 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2676 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2677 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2678 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2679 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2680 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2681 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2682 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2683 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2684
68908a3e
AC
26852004-06-21 Andrew Cagney <cagney@gnu.org>
2686
48f7351b
AC
2687 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2688 macro name, and the function rather than macro value. Only wrap
2689 macro print statements in #ifdef. Move format logic to where it
2690 is needed.
2691 * gdbarch.c: Re-generate.
2692
283354d8
AC
2693 * gdbarch.sh (read): Delete "print_p" and "description", add
2694 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2695 Delete references to print_p.
2696 (TARGET_ARCHITECTURE): Delete print predicate.
2697 * gdbarch.c: Re-generate.
2698
68908a3e
AC
2699 * gdbarch.sh: Check that multi-arch methods do not provide a
2700 macro.
2701 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2702 (print_registers_info, print_float_info, print_vector_info)
2703 (adjust_breakpoint_address, remote_translate_xfer_address)
2704 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2705 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2706 name from the multi-arch definition.
2707
a2428dbe
AC
27082004-06-20 Andrew Cagney <cagney@gnu.org>
2709
2710 * gdbarch.sh: Sort by the function, instead of macro name.
2711 * gdbarch.c: Re-generate.
2712
750eb019
AC
27132004-06-20 Andrew Cagney <cagney@gnu.org>
2714
66d659b1
AC
2715 * gdbarch.sh: Use the function, instead of macro name in
2716 errors and the log file.
2717 (return_value): Remove stray ":" in spec.
2718
750eb019
AC
2719 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2720 * gdbarch.h, gdbarch.c: Re-generate.
2721 * Makefile.in (arch-utils.o): Update dependencies.
2722 * values.c (using_struct_return): Move code calling
2723 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2724 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2725 to legacy_return_value, simplify.
2726 * infcmd.c (print_return_value): Move code calling
2727 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2728 to legacy_return_value, simplify.
2729 * infcall.c (call_function_by_hand): Move code calling
2730 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2731 * arch-utils.c: Update copyright. Include "gdbcore.h".
2732 (legacy_return_value): New function.
2733 * arch-utils.h: Update copyright.
2734 (legacy_return_value): Declare.
2735
b5622e8d
AC
27362004-06-20 Andrew Cagney <cagney@gnu.org>
2737
2738 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2739 * gdbarch.h, gdbarch.c: Re-generate.
2740 * values.c (using_struct_return): Update call.
2741 * mcore-tdep.c: Update comment.
2742 * infcall.c (call_function_by_hand): Update comment.
2743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2744 * arch-utils.h (always_use_struct_convention): Update.
2745 * v850-tdep.c (v850_gdbarch_init): Update.
2746 * sh64-tdep.c (sh64_gdbarch_init): Update.
2747 * sh-tdep.c (sh_gdbarch_init): Update.
2748 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2749 * mips-tdep.c (mips_gdbarch_init): Update.
2750 * mcore-tdep.c (mcore_gdbarch_init): Update.
2751 * m32r-tdep.c (m32r_gdbarch_init): Update.
2752 * ia64-tdep.c (ia64_gdbarch_init): Update.
2753 * h8300-tdep.c (h8300_gdbarch_init): Update.
2754 * frv-tdep.c (frv_gdbarch_init): Update.
2755 * cris-tdep.c (cris_gdbarch_init): Update.
2756 * arm-tdep.c (arm_gdbarch_init): Update.
2757 * alpha-tdep.c (alpha_gdbarch_init): Update.
2758
5191de37
MC
27592004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2760
2761 * PROBLEMS: Add more specific information, and a work-around,
2762 for PR gdb/1458.
2763
782263ab
AC
27642004-06-18 Andrew Cagney <cagney@gnu.org>
2765
2766 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2767 * gdbarch.h, gdbarch.c: Re-generate.
2768 * ada-lang.c (ada_finish_decode_line_1): Update.
2769 * infrun.c (handle_inferior_event): Update.
2770 * infcall.c (find_function_addr): Update.
2771 * linespec.c (minsym_found): Update.
2772 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2773 Update.
2774 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2775 * cli/cli-cmds.c (disassemble_command): Update.
2776 * vax-tdep.c (vax_gdbarch_init): Update.
2777
2f305df1
MK
27782004-06-18 Mark Kettenis <kettenis@gnu.org>
2779
2780 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2781
e5fe55f7
AC
27822004-06-17 Andrew Cagney <cagney@gnu.org>
2783
2784 GDB 6.1.1 released from the GDB 6.1 branch.
2785 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2786 * PROBLEMS: Ditto.
2787
473b7be6
DJ
27882004-06-16 Daniel Jacobowitz <dan@debian.org>
2789
2790 PR gdb/1658
2791 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2792 operation as a uleb128. Found by Michael Coulter.
2793
96d887e8
PH
27942004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2795
2796 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2797 make it non-static.
2798 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2799 to ada-lang.h; this is needed to be able to implement the kill command
2800 in multi-task mode.
2801 (task_ptid): Ditto.
2802 (task_entry): Ditto.
2803 (task_list): Ditto.
2804 (ada_build_task_list): Ditto.
2805
2806 * ada-lang.c: Conditionalize routines and data structures related
2807 to breakpoints, exceptions, completion, and symbol caching on
2808 GNAT_GDB, since these are not yet used in the submitted public sources.
2809 (ada_main_name): Editorial: Move definition out of exception-related
2810 code.
2811
31eef181
AC
28122004-06-15 Andrew Cagney <cagney@gnu.org>
2813
2814 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2815 deprecated_pc_in_call_dummy.
2816
2c500098
AM
28172004-06-15 Alan Modra <amodra@bigpond.net.au>
2818
2819 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2820 bfd_get_section_size_before_reloc or _raw_size.
2821 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2822 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2823 (dwarf2_read_section): Likewise.
2824 * elfread.c (elf_locate_sections): Likewise.
2825 * gcore.c (derive_heap_segment): Likewise.
2826 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2827 * remote-e7000.c (e7000_load): Likewise.
2828 * remote-m32r-sdi.c (m32r_load): Likewise.
2829 * remote-mips.c (mips_load_srec): Likewise.
2830 (pmon_load_fast): Likewise.
2831 * remote.c (compare_sections_command): Likewise.
2832 * symfile.c (add_section_size_callback): Likewise.
2833 (load_section_callback): Likewise.
2834 (pc_in_unmapped_range): Likewise.
2835 (pc_in_mapped_range): Likewise.
2836 (sections_overlap): Likewise.
2837 (list_overlays_command): Likewise.
2838 (simple_overlay_update_1): Likewise.
2839 (simple_overlay_update): Likewise.
2840 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2841 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2842
90f943f1
RC
28432004-06-14 Randolph Chung <tausq@debian.org>
2844
2845 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2846 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2847 static.
2848 (hppa_hpux_inferior_created): New function.
2849 (hppa_hpux_init_abi): Register observer.
2850 * symfile.c (hp_cxx_exception_support_initialized)
2851 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2852 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2853
700c15aa
RC
28542004-06-14 Randolph Chung <tausq@debian.org>
2855
3973a7d3
AC
2856 * MAINTAINERS (Write After Approval): Alphabetize my entry
2857 correctly.
700c15aa 2858
cea4838c
AC
28592004-06-14 Andrew Cagney <cagney@gnu.org>
2860
2861 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2862 testsuite maintainer.
2863
97092415
AC
28642004-06-13 Andrew Cagney <cagney@gnu.org>
2865
e8c3165b
AC
2866 * infcmd.c (print_return_value): Fix logic, allow
2867 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2868
bceabdd8
AC
2869 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2870 defining any macros.
2871 * gdbarch.h: Re-generate.
2872
57010b1c
AC
2873 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2874 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2875 * gdbarch.h: Re-generate.
2876
bc87dfa0
AC
2877 * values.c (generic_use_struct_convention): Don't check gcc_p.
2878
15ac804d
AC
2879 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2880 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2881 * gdbarch.h, gdbarch.c: Regenerate.
2882 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2883 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2885 deprecated_max_register_raw_size and
2886 deprecated_max_register_virtual_size.
2887 * v850-tdep.c (v850_gdbarch_init): Ditto.
2888 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2889 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2890 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2891 * cris-tdep.c (cris_gdbarch_init): Ditto.
2892
97092415
AC
2893 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2894 * gdbarch.h, gdbarch.c: Re-generate.
2895 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2896 (m68hc11_use_struct_convention): Delete function.
2897 (m68hc11_extract_struct_value_address): Delete function.
2898 (m68hc11_return_value): New function.
2899 (m68hc11_gdbarch_init): Instead of store_return_value,
2900 extract_return_value, return_value_on_stack,
2901 deprecated_extract_struct_value_address and use_struct_convention,
2902 set return_value.
2903 * values.c (using_struct_return): Do not call
2904 RETURN_VALUE_ON_STACK.
2905 * arch-utils.h (generic_return_value_on_stack_not): Delete
2906 declaration.
2907 * arch-utils.c (generic_return_value_on_stack_not): Delete
2908 function.
2909
44e5158b
AC
29102004-06-12 Andrew Cagney <cagney@gnu.org>
2911
2912 * values.c (register_value_being_returned): Delete function.
2913 * infcmd.c (legacy_return_value): Delete function.
2914 * infcall.c (call_function_by_hand): Inline
2915 "register_value_being_returned", simplify.
2916 * values.c (using_struct_return): Update comment, refer to
2917 print_return_value instead of register_value_being_returned.
2918 * infcmd.c (print_return_value): Inline calls to
2919 register_value_being_returned and legacy_return_value. Simplify.
2920
b887c273
RC
29212004-06-11 Randolph Chung <tausq@debian.org>
2922
2923 * somread.c (som_symtab_read): Exclude gcc local symbols.
2924
1b2bfbb9
RC
29252004-06-11 Randolph Chung <tausq@debian.org>
2926
3973a7d3
AC
2927 * infrun.c (handle_inferior_event): Handle the case when a
2928 trampoline ends up in the runtime resolver, and if the trampoline
2929 has no name. Rearrange the code so that all the trampoline
2930 processing happens before other step-out-of-range handling.
1b2bfbb9 2931
a9d61c86
MH
29322004-06-11 Martin Hunt <hunt@redhat.com>
2933
2934 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2935 has no fpu.
2936
2c87cf5a
AC
29372004-06-10 Andrew Cagney <cagney@gnu.org>
2938
2939 * blockframe.c (legacy_inside_entry_func): Delete.
2940 (legacy_frame_chain_valid): Inline call to
2941 legacy_inside_entry_func, simplify.
2942
0b67b468 29432004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2944
2945 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2946 * dwarf2read.c (partial_die_info): Add dirname field.
2947 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2948 (read_partial_die): Save away DW_AT_comp_dir.
2949 * defs.h (symtab_to_filename): Removed.
2950 * source.c (find_and_open_source): Added.
57c22c6c 2951 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2952 (symtab_to_filename): Removed.
2953 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2954 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2955 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2956 symtab_to_filename.
2957 * symtab.h (partial_symtab): Add dirname field.
2958 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2959 (mi_cmd_file_list_exec_source_file): Call new function
2960 symtab_to_fullname to find fullname.
57c22c6c 2961 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2962 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2963 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2964
9a1dd1ad
AC
29652004-06-10 Andrew Cagney <cagney@gnu.org>
2966
239ae8c7
AC
2967 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2968 to generic_use_struct_convention, the default value.
2969
fc720350
AC
2970 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2971 of abort.
2972
9a1dd1ad
AC
2973 * ns32k-tdep.c (ns32k_push_arguments): New function.
2974 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2975 * infcall.c (call_function_by_hand): Call error instead of
2976 legacy_push_arguments.
2977 * value.h (legacy_push_arguments): Delete declaration.
2978 * valops.c (legacy_push_arguments): Delete function.
2979 (value_push): Delete function.
2980
fea25152
BF
29812004-06-10 Brian Ford <ford@vss.fsi.com>
2982
2983 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2984 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2985 info.
2986 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2987
30a4a8e0
AC
29882004-06-10 Andrew Cagney <cagney@gnu.org>
2989
2990 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2991 * gdbarch.h, gdbarch.c: Re-generate.
2992 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2993 parameters.
2994 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2995 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2996 deprecated_pc_in_call_dummy instead of
2997 DEPRECATED_PC_IN_CALL_DUMMY.
2998 (arm_skip_prologue): Ditto.
2999 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3000 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3001 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3002 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3003 Ditto.
3004 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3005 (sh64_init_extra_frame_info, sh64_get_saved_register)
3006 (sh64_pop_frame): Ditto.
3007 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3008 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3009 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3010 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3011 (h8300_pop_frame): Ditto.
3012 * blockframe.c (legacy_inside_entry_func)
3013 (legacy_frame_chain_valid): Ditto.
3014 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3015 to deprecated_pc_in_call_dummy.
3016
81cfbe54
AC
30172004-06-09 Andrew Cagney <cagney@gnu.org>
3018
a1f4a1b6
AC
3019 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3020 provide a default value.
3021 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3022 * gdbarch.h, gdbarch.c: Re-generate.
3023 * arch-utils.c (generic_convert_register_p): Rename
3024 legacy_convert_register_p
3025 (legacy_register_to_value, legacy_value_to_register): Delete
3026 functions.
3027 * arch-utils.h (generic_convert_register_p): Rename
3028 legacy_convert_register_p.
3029 (legacy_register_to_value, legacy_value_to_register): Delete
3030 declarations.
3031
9730f241
AC
3032 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3033 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3034 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3035 * gdbarch.h, gdbarch.c: Re-generate.
3036 * infcmd.c (default_print_registers_info): Simplify.
3037 * findvar.c (value_of_register): Simplify.
3038 * mi/mi-main.c (get_register): Simplify.
3039 * arch-utils.c (legacy_convert_register_p): Always return 0.
3040 (legacy_register_to_value, legacy_value_to_register): Always call
3041 internal_error.
3042
8a1bf479
AC
3043 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3044 #ifdef CLEAR_INSN_CACHE code.
3045 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3046 Delete #ifdef CLEAR_DEFERRED_STORES code.
3047
4b38d6f1
AC
3048 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3049
2d62ecc7
AC
3050 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3051 copyright.
3052 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3053
be4f7469
AC
3054 * config/mips/mipsv4.mh: Delete file.
3055
81cfbe54
AC
3056 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3057 unreferenced macro.
3058 (hpread_adjust_stack_address): Delete declaration.
3059
d966f0cb
AC
30602004-06-08 Andrew Cagney <cagney@gnu.org>
3061
3062 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3063 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3064 PTRACE_ATTACH / PTRACE_DETACH available call error.
3065 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3066 * infttrace.c (update_thread_state_after_attach, attach, detach):
3067 Remove #ifdef wrappers.
3068 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3069 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3070 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3071 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3072 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3073 * config/nm-linux.h (ATTACH_DETACH): Delete.
3074 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3075 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3076 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3077 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3078 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3079
d91670b9
CV
30802004-06-08 Corinna Vinschen <vinschen@redhat.com>
3081
3082 * configure.in: Set $configdir to the right OS specific value.
3083 Use value when setting $tcldir and $tkdir.
3084 * configure: Regenerate.
3085
28ba0b33
PB
30862004-06-06 Paul Brook <paul@codesourcery.com>
3087
3088 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3089 records.
3090
f26caa11
PH
30912004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3092
3093 * ada-lang.c (lookup_symbol_in_language): New function to allow
3094 re-use of another language's symbol lookup code. (Placed here
3095 temporarily while Ada support is being integrated into the public
3096 tree).
3097 (restore_language): New auxiliary function for
3098 lookup_symbol_in_language.
3099 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3100 temporarily while Ada support is being integrated into the public
3101 tree).
3102
d560a54b
AO
31032004-06-08 Alexandre Oliva <aoliva@redhat.com>
3104
e75d110c
AO
3105 * Makefile.in (check//%): New.
3106
d560a54b
AO
3107 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3108 (mn10300_store_return_value): Rewrite.
3109 (mn10300_type_align): New.
3110 (mn10300_use_struct_convention): Rewrite.
3111 (mn10300_return_value): New, using all of the above.
3112 (mn10300_pop_frame_regular): Add saved_regs_size.
3113 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3114
a72fbdb7
AO
3115 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3116 regs if PC is on movm.
3117
01904826
JB
31182004-06-07 Jim Blandy <jimb@redhat.com>
3119
3120 Add native Linux support for the PowerPC E500.
3121 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3122 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3123 all architectures except the E500.
3124 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3125 #definitions.
3126 (struct gdb_evrregset_t): New type.
3127 (have_ptrace_getsetevrregs): New variable.
3128 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3129 fetch_spe_registers): New functions.
3130 (fetch_register): Call fetch_spe_register as appropriate.
3131 Assert that we're only passed raw register numbers.
3132 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3133 Don't fetch gprs if they're pseudoregisters.
3134 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3135 store_spe_registers): New functions.
3136 (store_register): Call store_spe_register as appropriate.
3137 Assert that we're only passed raw register numbers.
3138 (store_ppc_registers): Call store_spe_registers as appropriate.
3139 Don't store gprs if they're pseudoregisters.
3140
f90ef764
JJ
31412004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3142
3143 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3144 struct if one exists, even if we are dealing with a zombie thread.
3145
45b75230
AC
31462004-06-07 Andrew Cagney <cagney@gnu.org>
3147
3148 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3149 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3150 Rename PC_REQUIRES_RUN_BEFORE_USE.
3151 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3152 #ifdef.
3153
1658da49
RC
31542004-06-07 Randolph Chung <tausq@debian.org>
3155
3156 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3157 unwinding after sp has been saved to the stack but before the end
3158 of the prologue, and after the fp has been modified but before it has
3159 been saved to the stack.
3160 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3161 Remove superfluous definitions.
3162 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3163
9a727a3c
RC
31642004-06-07 Guy Martin <gmsoft@gentoo.org>
3165
3166 Committed by Randolph Chung.
3167 * hppa-linux-nat.c: Include the correct version of the header file
3168 depending on the kernel version.
3169
9e500012
RC
31702004-06-06 Randolph Chung <tausq@debian.org>
3171
3172 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3173 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3174
3388d7ff
RC
31752004-06-06 Randolph Chung <tausq@debian.org>
3176
3177 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3178 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3179 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3180 * hppa-tdep.c (hppa_symbol_address): New function definition.
3181 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3182
d49771ef
RC
31832004-06-06 Randolph Chung <tausq@debian.org>
3184
3185 * hppa-tdep.h (struct value): Forward declaration.
3186 (gdbarch_tdep): Define tdep find_global_pointer method.
3187 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3188 associated with the function we are trying to call, and write it
3189 to the gp register.
3190 (hppa32_convert_from_funct_ptr_addr): New function.
3191 (hppa_find_global_pointer): New function.
3192 (hppa_gdbarch_init): Set default find_global_pointer method; set
3193 convert_from_func_ptr_addr method.
3194 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3195 (hppa_linux_init_abi): Set find_global_pointer method.
3196 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3197
7d9b040b
RC
31982004-06-06 Randolph Chung <tausq@debian.org>
3199
3200 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3201 to struct value *function.
3202 * gdbarch.c: Regenerate.
3203 * gdbarch.h: Likewise.
3204 * infcall.c (call_function_by_hand): Pass entire function value
3205 to push_dummy_call.
3206
3207 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3208 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3209 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3210 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3211 * arm-tdep.c (arm_push_dummy_call): Likewise.
3212 * avr-tdep.c (avr_push_dummy_call): Likewise.
3213 * cris-tdep.c (cris_push_dummy_call): Likewise.
3214 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3215 * frv-tdep.c (frv_push_dummy_call): Likewise.
3216 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3217 * hppa-tdep.c (hppa32_push_dummy_call)
3218 (hppa64_push_dummy_call): Likewise.
3219 * i386-tdep.c (i386_push_dummy_call): Likewise.
3220 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3221 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3222 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3223 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3224 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3225 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3226 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3227 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3228 (ppc64_sysv_abi_push_dummy_call): Likewise.
3229 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3230 (ppc64_sysv_abi_push_dummy_call): Likewise.
3231 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3232 * s390-tdep.c (s390_push_dummy_call): Likewise.
3233 * sh-tdep.c (sh_push_dummy_call_fpu)
3234 (sh_push_dummy_call_nofpu): Likewise.
3235 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3236 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3237 * vax-tdep.c (vax_push_dummy_call): Likewise.
3238
4a19ea35
JB
32392004-06-04 Jim Blandy <jimb@redhat.com>
3240
8327ccee
JB
3241 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3242 gdbarch argument to register_size.
3243
a3c001ce
JB
3244 * rs6000-tdep.c (rs6000_store_return_value): Use
3245 regcache_cooked_write_part instead of
3246 deprecated_write_register_bytes.
3247 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3248 not gdbarch_deprecated_store_return_value.
3249
4a19ea35
JB
3250 * ppc-linux-nat.c (store_register, fetch_register): Remove
3251 incorrect assertions. Simplify and generalize handling of
3252 transfers whose sizes are not multiples of, or less than, sizeof
3253 (PTRACE_XFER_TYPE).
3254
b9b5d7ea
JJ
32552004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3256
3257 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3258 as a new thread event.
720c7d64 3259 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3260 zombie, return TD_THR_ZOMBIE.
720c7d64 3261 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3262 TD_THR_ZOMBIE, check if the thread is still on the thread list
3263 and return a -1 ptid if not found.
3264 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3265 change the status to TARGET_WAITKIND_SPURIOUS.
3266
c8a3b559
CV
32672004-06-03 Corinna Vinschen <vinschen@redhat.com>
3268
3269 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3270 double values in little endian mode.
3271
20605361
AC
32722004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3273
3274 Committed by Andrew Cagney.
3275 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3276 after last enum constant to avoid error from IBM C
3277 compiler.
3278
bc97b3ba
JB
32792004-06-02 Jim Blandy <jimb@redhat.com>
3280
3281 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3282 to 'message', and make it local to the lone block that uses it.
3283
1da28ab0
JB
3284 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3285
4c4b4cd2
PH
32862004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3287
8a2225b2
PH
3288 * ada-exp.y: Update copyright notice.
3289 Include block.h.
3290
3291 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3292 SPECIAL_VARIABLE and unify the treatment of these cases.
3293
3294 (write_attribute_call0): Remove.
3295 (write_attribute_call1): Remove.
3296 (write_attribute_calln): Remove.
3297 (save_qualifier): Add missing semicolon.
3298
3299 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3300 temporarily disabled to allow compilation with FSF head version.
3301
3302 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3303 use individual operators (OP_*) for all attributes.
3304 (exp syntax): Use write_int.
3305 Handle STRING literals with OP_STRING.
3306 (variable syntax): Add limit parameter to calls to
3307 write_object_renaming.
3308
3309 (temp_parse_space): New definition to hold entities that need
3310 only live until the next call to ada_parse.
3311 (string_to_operator): Rename fields of ada_opname_table entries.
3312
3313 (write_var_from_sym): Record block.
3314 (write_var_from_name): Minor reformatting.
3315 Make sure saved name is properly encoded in the case of multiple
3316 matches, and set its language to Ada.
3317 Update comment.
3318 Modify to indicate unresolved name as symbol in the UNRESOLVED
3319 namespace, allocated in temp_parse_space.
3320 (write_int): New function.
3321
3322 (write_object_renaming): Add max_depth parameter to limit
3323 chains of object renamings.
3324 Handle case where root of renaming expression is itself a renaming.
3325 Use temp_parse_space for temporary name buffer.
3326 Handle renamings to dereferenced pointers (___XEXA suffices).
3327
3328 (ada_parse, yyerror, string_to_operator,
3329 write_var_from_sym, write_var_from_name, write_attribute_call0,
3330 write_attribute_call1, write_attribute_calln,
3331 write_object_renaming): Protoize.
3332
3333 (_initialize_ada_exp): New function.
3334
3335 * ada-lang.c: Update copyright notice.
3336 General terminology change to conform to GNAT compiler usage:
3337 mangle => encode, demangle => decode
3338 Include gdb_obstack.h.
3339 Include gdb_regex.h
3340 Include frame.h
3341 Include hashtab.h
3342 Include completer.h
3343 Include gdb_stat.h
3344 Include block.h
3345 Include infcall.h
3346
3347 (ADA_RETAIN_DOTS): Make sure this is defined.
3348 (TRUNCATION_TOWARDS_ZERO): Define.
3349 (struct string_vector): Define.
3350 (unresolved_names): Remove definition.
3351 (xnew_string_vector): New function.
3352 (string_vector_append): New function.
3353 (extract_string): Make static.
3354 (ada_unqualified_name): New function.
3355 (add_angle_brackets): New function.
3356 (function_name_from_pc): New function.
3357 (place_on_stack): Rename to ensure_lval.
3358
3359 (ensure_lval): Renamed from place_on_stack.
3360 Make identity on lvals.
3361 Update comment.
3362 (is_nonfunction): New interface.
3363 Only symbols in LOC_CONST class can be enumerals.
3364 (fill_in_ada_prototype): Remove; now independent of language.
3365 (add_defn_to_vec): Add obstack and symtab arguments.
3366 Use obstack to hold collected definitions.
3367 (num_defns_collected): New function.
3368 (defns_collected): New function.
3369 (ada_resolve_subexp): Rename to resolve_subexp.
3370 (resolve_subexp): Renamed from ada_resolve_subexp.
3371 (ada_op_name): Return non-const result.
3372 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3373 other purposes.
3374
3375 (to_fixed_array_type): Add declaration.
3376 (coerce_unspec_val_to_type): Remove offset parameter.
3377 (find_sal_from_funcs_and_line): New interface.
3378 (find_line_in_linetable): Ditto.
3379
3380 (all_sals_for_line): Rename to ada_sals_for_line and make
3381 global.
3382 Add new parameter. When set, do not ask the user to choose the
3383 instance, but use the first one found instead.
3384 Use given line number in returned sals.
3385 Fix comment.
3386 Skip the prologue if funfirstline is set.
3387 Correct for memory leak when 0 lines found.
3388
3389 (value_pos_atr): Use pos_atr.
3390 (pos_atr): New function.
3391 (standard_lookup): Add block parameter.
3392
3393 (makeTimeStart): Remove declaration and uses.
3394 (makeTimeStop): Remove declaration and uses.
3395
3396 (ada_completer_word_break_characters): Allow for VMS.
3397 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3398 (raise_sym_name): New constant.
3399 (raise_unhandled_sym_name): New constant.
3400 (raise_assert_sym_name): New constant.
3401 (process_raise_exception_name): New constant.
3402 (longest_exception_template): New constant.
3403 (warning_limit): New variable to limit warnings during expression
3404 evaluation.
3405 (warnings_issued): New variable to keep track of warnings issued.
3406 (known_runtime_file_name_patterns): New constant.
3407 (known_auxiliary_function_name_patterns): New constant.
3408 (symbol_list_obstack): New variable.
3409
3410 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3411 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3412 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3413 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3414 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3415 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3416 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3417 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3418 and strcmp.
3419
3420 (ada_get_field_index): New function.
3421 (lim_warning): New function.
3422 (ada_translate_error_message): New function.
3423 (MAX_OF_SIZE): New function.
3424 (MIN_OF_SIZE): New function.
3425 (UMAX_OF_SIZE): New function.
3426 (UMIN_OF_SIZE): New function.
3427 (discrete_type_high_bound): New function.
3428 (discrete_type_low_bound): New function.
3429 (base_type): New function.
3430 (do_command): Remove.
3431
3432 (ada_update_initial_language): Use language_ada, not language_unknown.
3433 (ada_encode): Renamed from ada_mangle.
3434 Obey ADA_RETAIN_DOTS.
3435 (ada_decode): Renamed from ada_demangle.
3436 Update coding conventions.
3437 (decoded_names_store): New hash table.
3438 (ada_decode_symbol): New function.
3439 (ada_la_decode): New function.
3440
3441 (modify_general_field): Correct computations of offset and bit
3442 position.
3443 (desc_base_type): Handle ref types, too.
3444 (ada_is_direct_array_type): New function.
3445
3446 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3447 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3448 (ada_is_bogus_array_descriptor,ada_type_of_array,
3449 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3450 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3451 ada_is_array_descriptor_type.
3452
3453 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3454 (ada_is_packed_array_type): Handle pointers or
3455 references to packed arrays as well.
3456 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3457 (decode_packed_array_type): Search for the packed array type
3458 symbol in the currently selected block and associated
3459 superblocks too.
3460 Use lookup_symbol again.
3461
3462 (decode_packed_array): Handle pointers and references.
3463 Update call to coerce_unspec_val_to_type.
3464 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3465 (ada_value_primitive_packed_val): Improve comment.
3466
3467 (ada_index_type): Substitute int type for "undefined".
3468 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3469 ada_array_langth, ada_is_string_type): Use renamed
3470 ada_is_simple_array_type.
3471 (empty_array): New function.
3472
3473 (ada_resolve): Rename to resolve.
3474 (resolve): Make static.
3475 Call renamed resolve_subexp.
3476 Update comment.
3477 (ada_resolve_subexp): Rename to resolve_subexp.
3478 (resolve_subexp): Update comment.
3479 Decomment disabled code.
3480 Add LOC_COMPUTED* cases.
3481 Modify to use temporary struct symbols (marked as being in
3482 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3483 OP_UNRESOLVED_VALUE.
3484 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3485 Add OP_STRING case.
3486 Remove OP_ARRAY.
3487 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3488 Use new ada_lookup_symbol_list interface.
3489 Use new ada_resolve_function interface.
3490 Remove OP_TYPE case.
3491
3492 (ada_args_match): Idiot proof against null actuals.
3493 Use intermediate variables to clarify.
3494 (ada_resolve_function): Update comment and interface.
3495 (mangled_ordered_before): Rename to encoded_ordered_before and
3496 update comment.
3497 (sort_choices): Update comment and interface.
3498 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3499 (user_select_syms): New interface.
3500 Use new sort_choices interface.
3501 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3502 (possible_user_operator_p): Idiot-proof against null values.
3503 (ada_simple_renamed_entity): Don't make cleanup; rely on
3504 caller to free result string.
3505 Remove const from return type.
3506 (make_array_descriptor): Rename uses of place_on_stack to
3507 ensure_lval.
3508 Make sure that arrays are on stack.
3509
3510 (HASH_SIZE): Define.
3511 (struct cache_entry): Define.
3512 (cache_space): Define.
3513 (cache): Define.
3514 (clear_ada_sym_cache): New function.
3515 (find_entry): New function.
3516 (lookup_cached_symbol): New function.
3517 (defn_vector_size): Define.
3518 (cache_symbol): New function.
3519 (defn_symbols): Remove.
3520
3521 (standard_lookup): Use lookup_symbol_in_language to get effect of
3522 C lookup.
3523 Cache results.
3524
3525 (symbol_completion_match): New function.
3526 (symbol_completion_add): New function.
3527 (ada_make_symbol_completion_list): New function.
3528
3529 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3530 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3531 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3532 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3533
3534 (ada_lookup_simple_minsym): New function.
3535 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3536
3537 (add_symbols_from_enclosing_procs): New interface.
3538 Conditionalize more helpfully.
3539 Don't bother if program isn't running.
3540 Use new interface to get_frame_block.
3541 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3542
3543 (remove_extra_symbols): New interface.
3544 (xget_renaming_scope): New function.
3545 (is_package_name): New function.
3546 (renaming_is_visible): New function.
3547 (remove_out_of_scope_renamings): New function.
3548
3549 (ada_lookup_symbol_list): New interface.
3550 Properly reinitialize the symbol list obstack.
3551 Don't call add_symbols_from_enclosing_procs if we start from a
3552 static or global block.
3553 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3554 add_symbols_from_enclosing_procs.
3555 Add symtab data to cached entries.
3556 Handle symbols prefixed with
3557 "standard__" specially; strip prefix and don't look in local symbols.
3558 Do not include out of scope renaming symbols in list of
3559 symbols returned.
3560 Add const to block parameter.
3561 Move check for non-local, non-global symbols earlier.
3562 Remove timing stuff.
3563 (ada_lookup_symbol): New interface.
3564 Find symtab as well.
3565 (ada_lookup_symbol_nonlocal): New function.
3566
3567 (is_name_suffix): Enhance suffix detection to recognize
3568 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3569 (is_dot_digits_suffix): New function.
3570 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3571
3572 (ada_add_block_symbols): New interface. Use obstack to return results
3573 in a vector of struct ada_symbol_infos. Add symtab argument.
3574 Use new interface to add_defn_to_vec.
3575 Remove calls to fill_in_ada_prototype.
3576 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3577
3578 (ada_finish_decode_line_1): Add const qualification to local to fix
3579 warning.
3580 Start looking in static block for functions to avoid attempts
3581 to search frame chain for up-level variables.
3582 Adapt to new ada_sals_for_line interface.
3583 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3584 Handle quoting of the function name inside the spec string.
3585 Skip prologue when funfirstline is set and update the
3586 function documentation to that effect.
3587
3588 (debug_print_lines, debug_print_block, debug_print_blocks,
3589 debug_print_symtab): Remove.
3590
3591 (ada_main_name): New function.
3592 (ada_exception_breakpoint_type): New function.
3593 (is_known_support_routine): New function.
3594 (ada_find_printable_frame): Renamed from find_printable_frame and made
3595 global.
3596 Remove level parameter.
3597 Use new interface to select_frame.
3598
3599 (begin_command): Remove.
3600 (ada_adjust_exception_stop): New function.
3601 (ada_print_exception_stop): New function.
3602 (exception_name_from_cond): New function.
3603 (ada_report_exception_break): Replace disabled code with
3604 conditionalization on GNAT_GDB.
3605 Get the exception name from the condition string.
3606 Remove and move functionality into new functions
3607 ada_print_exception_breakpoint_task and
3608 ada_print_exception_breakpoint_nontask.
3609 (error_breakpoint_runtime_sym_not_found): New function.
3610 (is_runtime_sym_defined): New function.
3611 (ada_breakpoint_rewrite): Uncomment suppressed code.
3612 Use symbolic error-message and runtime-symbol names.
3613 Surround runtime symbol names in quotes.
3614 Allow non-specific breakpoints on exceptions and assertions before
3615 program starts.
3616
3617 (ada_is_tagged_type): Add parameter.
3618 (ada_is_tag_type): New function.
3619 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3620 (ada_variant_discrim_type): Ditto.
3621 (value_tag_from_contents_and_address): New function.
3622 (type_from_tag): New function.
3623 (struct tag_args): New structure used to communicate with
3624 ada_tag_name_1.
3625 (ada_tag_name_1): New function.
3626 (ada_tag_name): New function.
3627
3628 (ada_scan_number): Update comment.
3629 (find_struct_field): New function.
3630 (ada_search_struct_field): Make static.
3631 (ada_value_struct_elt): New version that returns references when
3632 given pointers or references to structs.
3633 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3634 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3635 interface.
3636 (ada_value_ind): Use new ada_to_fixed_value interface.
3637 (ada_coerce_ref): Ditto.
3638 (field_offset): Remove.
3639
3640 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3641 (ada_find_renaming_symbol): New function.
3642 (ada_prefer_type): Prefer named types over unnamed ones.
3643 (variant_field_index): New function.
3644 (contains_variant_part): Removed: subsumed by variant_field_index.
3645 (ada_template_to_fixed_record_type): New function, mostly from
3646 template_to_fixed_record_type.
3647 (template_to_fixed_record_type):
3648 Do not scan the type fields beyond the last one; prevents a
3649 potential SEGV.
3650 Handle case where variant field is listed BEFORE discriminant it
3651 depends on.
3652 Fix calculation of record length when bit length is
3653 not evenly divisible by char length.
3654 Move code to ada_template_to_fixed_record_type and call it.
3655
3656 (template_to_static_fixed_type): Revise comment.
3657 Modify to work on ordinary record types as well as templates,
3658 so as to handle fields that use ___XVE or ___XVU encodings.
3659 (to_record_with_fixed_variant_part): Fill out comment.
3660 Initialize C++ stuff in right type.
3661 Allow case where DVAL is null.
3662 Handle case where variant field is not last.
3663 Fix typo concerning record length.
3664 (to_fixed_record_type): Decomment disabled code.
3665 (to_fixed_record_type): Use variant_field_index instead of
3666 contains_variant_part.
3667 (to_fixed_variant_branch_type): Ditto.
3668 (to_fixed_array_type): Decomment disabled code.
3669 (ada_to_fixed_type): Convert tagged types to the specific type.
3670 Deactivate the size-check for array types in order to avoid
3671 some false size alarms.
3672 (to_static_fixed_type): Decomment disabled code.
3673 Modify to call template_to_static_fixed_type
3674 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3675 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3676 Remove valaddr argument, as it is never really used.
3677 (ada_to_fixed_value): Change interface to act on single struct value*
3678 operand.
3679 (adjust_pc_past_prologue): New function.
3680 (ada_attribute_name): Modify to take enum exp_opcode argument.
3681
3682 (ada_enum_name): Recognize new homonym-distinguishing convention.
3683 Adjust local variable's type to remove compiler warning.
3684 Fix a small problem in the part that unqualifies the enumeration name.
3685 (ada_value_binop): New function.
3686 (ada_value_equal): New function.
3687
3688 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3689 Don't give error message when not doing normal evaluation
3690 and a tagged type doesn't seem to contain a structure member.
3691 Give error message for packed arrays.
3692 For indexing arrays, handle pointers to packed arrays correctly.
3693 Handle case of 'first and 'last attributes of bare integral type
3694 without encoded subtype info.
3695 Remove some unnecessary casts.
3696 Fix uninitialized value of type in computing 'first, 'last, or 'length
3697 of array object.
3698 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3699 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3700 calls.
3701 Attributes are now exp_opcode values.
3702 Correct treatment of 'modulus.
3703 Better error message for taking 'length of wrong kind of type;
3704 improve comment.
3705 Change EVAL_NORMAL to noside for consistency.
3706 Use ada_value_binop for DIV, MOD, REM.
3707 Make special case out of array of length 0, since an argument
3708 of 0 upsets some platforms' malloc.
3709 Use OP_STRING instead of OP_ARRAY.
3710 For slice, add check that we have an array type before extracting
3711 a slice out of it. Avoids a SEGV.
3712 When evaluating an array slice, if the array type is a reference to
3713 an aligner type, then replace the aligner type by the actual type.
3714 Decomment disabled code.
3715 Remove some dead code.
3716 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3717 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3718 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3719 and UNOP_MBR to UNOP_IN_RANGE.
3720 If an array type has a parallel ___XVE type, then use it.
3721 Turn arrays into pointers for lvalue arrays.
3722 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3723 bounds error and handle 0-length slices.
3724 Use lim_warning.
3725 When selecting fields, apply ada_to_fixed_value (because the fields
3726 might have ___XVU or ___XVE encodings even if not dynamic.)
3727 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3728 (ada_is_system_address_type): New function.
3729
3730 (get_var_value): Use new interface to ada_lookup_symbol_list.
3731 (get_int_var_value): New interface.
3732 (to_fixed_range_type): Allow unknown bound, with warning.
3733 (ada_is_modular_type): Decomment disabled code.
3734 (ADA_OPERATORS): New definition.
3735 (ada_operator_length): New function.
3736 (ada_expr_op_name): New function.
3737 (ada_forward_operator_length): New function.
3738 (ada_dump_subexp_body): New function.
3739 (ada_print_subexp): New function.
3740 (ada_exp_descriptor): New constant.
3741 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3742 (ada_language_defn): Add ada_exp_descriptor entry.
3743 Change ada_parse => parse.
3744 Add post-parser entry.
3745 Use ada-specific non-local symbol lookup.
3746 Don't use C-style arrays.
3747 String lower-bound is 1.
3748 Decomment disabled code.
3749 (parse): New function.
3750 New fields ada_translate_error_message, ada_lookup_symbol,
3751 ada_lookup_minimal_symbol.
3752
3753 * ada-lang.h: Update copyright dates.
3754 Replace the mangle/demangle terminology throughout by the
3755 more appropriate encode/decode one.
3756 Include breakpoint.h.
3757 Forward declare struct partial_symbol, struct block.
3758 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3759 (EXTRACT_ADDRESS): Remove.
3760 (EXTRACT_INT): Remove.
3761 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3762 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3763 (MAX_RENAMING_CHAIN_LENGTH): Define.
3764 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3765
3766 (enum task_states): Remove.
3767 ada_task_states: Remove.
3768 (fat_string): Remove.
3769 (struct entry_call): Remove.
3770 (struct task_fields): Remove.
3771 (struct task_entry): Remove.
3772
3773 (struct ada_symbol_info): Define.
3774 (enum ada_attribute): Remove.
3775 (enum ada_operator): Define.
3776
3777 (ada_get_field_index): Declare.
3778 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3779 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3780 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3781 (ada_lookup_symbol_list): New interface.
3782 (ada_decode_symbol): Declare.
3783 (ada_decode): Declare.
3784 (ada_lookup_symbol): New interface.
3785 (ada_update_initial_language): Declare.
3786 (ada_lookup_simple_minsym): Declare.
3787 (user_select_syms): New interface.
3788 (ada_sals_for_line): Declare.
3789 (ada_is_tagged_type): New interface.
3790 (ada_tag_name): Declare.
3791 (ada_lookup_struct_elt_type): Remove declaration.
3792 (ada_search_struct_field): Remove declaration.
3793 (ada_attribute_name): New interface.
3794 (ada_is_system_address_type): Declare.
3795 (ada_to_fixed_value): Remove declaration.
3796 (ada_template_to_fixed_record_type_1): Declare.
3797 (get_int_var_value): New interface.
3798 (ada_find_any_symbol): Declare.
3799 (ada_find_renaming_symbol): Declare.
3800 (ada_mangle): Rename to ada_encode.
3801 (ada_simple_renamed_entity): Remove const.
3802 (ada_main_name): Declare.
3803 (get_current_task): Rename to ada_get_current_task.
3804 (get_entry_number): Remove declaration.
3805 (ada_report_exception_break): Remove declaration.
3806 (ada_print_exception_breakpoint_nontask): Declare.
3807 (ada_print_exception_breakpoint_task): Declare.
3808 (ada_find_printable_frame): Declare.
3809
3810 * ada-lex.l: Update copyright notices.
3811 Use xmalloc and xfree instead of malloc and free.
3812 Use new interface to name_lookup.
3813 Use new interface to
3814 ada_mangle=>ada_encode.
3815 Redo handling of '$...' variable to parallel current treatment
3816 in c-exp.y.
3817 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3818 digit_to_int, strtoulst, processInt, processReal, processId,
3819 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3820 yywrap): Protoize.
3821
3822 (processInt): Use cast to remove harmless warning.
3823 (processReal): Modify to get rid of compiler warning on scan formats.
3824
3825 (processId): Replace xmalloc with obstack_alloc for name and remove
3826 call to ada_name_string_cleanup.
3827 Remove obsolete disabled code.
3828 (name_lookup): Ditto.
3829 New interface.
3830 Use obsavestring on temp_parse_space instead of savestring
3831 on name, and remove call to ada_name_string_cleanup.
3832 Free string returned from ada_simple_renamed_entity.
3833 Use new interface to ada_lookup_symbol_list.
3834 Decomment disabled code.
3835 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3836 not types.
3837 When a type name lookup succeeds as a result of
3838 lookup_primitive_typename, check for regular type entry that has not
3839 yet been read in.
3840 Limit length of chain of renamed symbols we are willing to follow.
3841 Do not break names beginning with "standard__" into segments.
3842 (block_lookup): Use new interface to ada_lookup_symbol_list.
3843
3844 * ada-typeprint.c: Update copyright notice.
3845 (demangled_type_name): Rename to decoded_type_name.
3846 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3847 (print_range_bound): Correct handling of negative
3848 bounds that make the index type looked unsigned under STABS.
3849 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3850 (print_range_type_named): Use the builtin int type if no type
3851 corresponding to the given type name could be found.
3852 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3853 Add some bullet-proofing.
3854 (print_variant_clauses): Allow for variant branches with ___XVU
3855 encodings that are not dynamic fields.
3856 Use new interface to ada_is_tagged_type.
3857 (print_record_type): Allow for fields with ___XVE encodings that
3858 are not dynamic fields.
3859 Use new interface to ada_is_tagged_type.
3860 (ada_print_type): ada_is_array_descriptor =>
3861 ada_is_array_descriptor_type.
3862
3863 * ada-valprint.c: Update copyright notice.
3864 Include gdb_string.h
3865 Include infcall.h
3866 (ui_memcpy): New function.
3867 (ada_print_floating): New function.
3868 (ada_print_str): Order arguments correctly.
3869 Correct handling of empty arrays and arrays of 0-length items.
3870 ada_is_array_descriptor => ada_is_array_descriptor_type
3871 Print values of type System.Address in hexadecimal format.
3872 Use ada_print_floating to print floating-point numbers in Ada format.
3873 Print class tag values with type names.
3874 No longer print the address of reference values. Avoids
3875 a potential confusion.
3876 (ada_value_print): Stop printing the object type for reference
3877 values, but preserve that behavior for access types. Avoids
3878 a potential confusion.
3879 Simplify one conditional expression, as the first part is now
3880 necessarily true.
3881 ada_is_array_descriptor => ada_is_array_descriptor_type
3882 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3883
f65f91b5
JB
38842004-06-01 Jim Blandy <jimb@redhat.com>
3885
3886 * ppc-tdep.h: Delete unused 'regoff' member.
3887 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3888
d4687fa0
MC
38892004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3890
3891 Fix PR symtab/1661.
3892 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3893 (hpread_read_struct_type): Likewise.
3894
de169ec9
AC
38952004-06-01 Andrew Cagney <cagney@gnu.org>
3896
c6902d46
AC
3897 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3898 instead of xasprintf.
3899 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3900 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3901 (mi_cmd_data_list_register_names)
3902 (mi_cmd_data_list_changed_registers)
3903 (mi_cmd_data_list_register_values)
3904 (get_register, mi_cmd_data_write_register_values)
3905 (mi_cmd_data_write_register_values)
3906 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3907 (mi_cmd_target_download, mi_cmd_target_select)
3908 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3909 (mi_execute_cli_command, mi_execute_async_cli_command)
3910 (mi_execute_async_cli_command): Ditto.
3911 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3912 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3913
6085fc2d
AC
3914 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3915 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3916 error_last_message instead of mi_error_last_message.
3917 * mi/mi-main.c (mi_error_last_message): Delete function.
3918
de169ec9
AC
3919 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3920 "invalid number of columns" error. Delete redundant "out of
3921 memory" check.
3922
1fc7d519
MK
39232004-05-31 Mark Kettenis <kettenis@gnu.org>
3924
6cfb2041
MK
3925 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3926 (gregset_t, fpregset_t): Remove typedefs.
3927 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3928 (REG_OFFSET): Rename argument.
3929 (i386bsd_r_reg_offset): Rename from reg_offset.
3930 (REG_ADDR): Remove macro.
3931 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3932 functions.
3933 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3934 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3935 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3936 instead of supply_gregset.
3937 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3938 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3939 instead of fill_gregset.
3940 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3941
1fc7d519
MK
3942 * i386bsd-nat.c: Don't include "gregset.h".
3943 (supply_gregset, fill_gregset): Make static.
3944 (supply_fpregset, fill_fpregset): Remove.
3945 * Makefile.in (i386bsd-nat.o): Update dependencies.
3946
2c34abbe
MK
39472004-05-30 Mark Kettenis <kettenis@gnu.org>
3948
448724fb
MK
3949 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3950 "gdb_assert.h". Con't include "gregset.h".
3951 (fbsd_make_corefile_notes): Use regset-based core file support
3952 instead off fill_gregset and fill_fpregset.
3953 * Makefile.in (fbsd-proc.o): Update dependencies.
3954
5ca8ca7c
MK
3955 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3956 instructions.
3957 (m88k_frame_prev_register): Simplify code a bit.
3958
593adc23
MK
3959 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3960 (amd64_collect_fpregset): New function.
3961 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3962
8d1b517b
MK
3963 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3964
7fdafb5a
MK
3965 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3966 (i386_collect_gregset): New function.
3967 (i386_supply_fpregset): Adjust comment.
3968 (i386_collect_fpregset): New function.
3969 (i386_regset_from_core_section): Use i386_collect_gregset and
3970 i386_collect_fpregset.
3971
8693c419
MK
3972 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3973 handle VALUEP being null.
3974
2c34abbe
MK
3975 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3976
45d134d8
MK
39772004-05-29 Mark Kettenis <kettenis@gnu.org>
3978
1698f4e7
MK
3979 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3980
45d134d8
MK
3981 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3982 assembler in OpenBSD 3.5-current.
3983 (amd64obsd_sigcontext_addr): Likewise.
3984
691d145a
JB
39852004-05-28 Jim Blandy <jimb@redhat.com>
3986
3987 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3988 register set, so our regcache isn't declared "legacy" and our E500
3989 pseudoregister read and write functions aren't ignored.
3990 (rs6000_register_byte, rs6000_register_raw_size,
3991 rs6000_register_virtual_type, rs6000_register_convertible,
3992 rs6000_register_convert_to_virtual,
3993 rs6000_register_convert_to_raw): Deleted.
3994 (rs6000_register_type, rs6000_convert_register_p,
3995 rs6000_register_to_value, rs6000_value_to_register): New
3996 functions.
3997 (rs6000_gdbarch_init): Don't register
3998 gdbarch_deprecated_register_size,
3999 gdbarch_deprecated_register_bytes,
4000 gdbarch_deprecated_register_byte,
4001 gdbarch_deprecated_register_raw_size,
4002 gdbarch_deprecated_register_virtual_type,
4003 gdbarch_deprecated_register_convertible,
4004 gdbarch_deprecated_register_convert_to_virtual, or
4005 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4006 register gdbarch_register_type, gdbarch_convert_register_p,
4007 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4008
18ed0c4e
JB
40092004-05-26 Jim Blandy <jimb@redhat.com>
4010
4011 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4012 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4013 functions, updated to match the register numberings used in GCC.
4014 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4015 rs6000_dwarf2_reg_to_regnum as register number conversions
4016 functions for STABS and Dwarf2.
4017
779af9e3
RC
40182004-05-26 Randolph Chung <tausq@debian.org>
4019
4020 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4021 in header file.
4022
c23968a2
JB
40232004-05-25 Joel Brobecker <brobecker@gnat.com>
4024
4025 * NEWS: Document new "start" command.
4026
3a7d1c27
RC
40272004-05-25 Randolph Chung <tausq@debian.org>
4028
4029 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4030 hppa-linux.
4031
43613416
RC
40322004-05-25 Randolph Chung <tausq@debian.org>
4033
4034 * hppa-hpux-tdep.c (offsetof): Define.
4035 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4036 (hppa32_hpux_frame_base_before_sigtramp)
4037 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4038 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4039 (hppa64_hpux_frame_base_before_sigtramp)
4040 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4041 functions.
4042 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4043 (hppa_hpux_sigtramp_frame_unwind_cache)
4044 (hppa_hpux_sigtramp_frame_this_id)
4045 (hppa_hpux_sigtramp_frame_prev_register)
4046 (hppa_hpux_sigtramp_frame_unwind)
4047 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4048 (hppa_hpux_init_abi): Register sigtramp unwinder.
4049 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4050
6d1be3f1
RC
40512004-05-25 Randolph Chung <tausq@debian.org>
4052
4053 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4054 and multiple stack unwinds.
4055 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4056
97c34f65
AC
40572004-05-25 Andrew Cagney <cagney@gnu.org>
4058
4059 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4060 * symfile-mem.h: Delete file.
4061 * symfile-mem.c: Do not include "symfile-mem.h".
4062 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4063 "struct bfd_section". When an error do not bother returning NULL.
4064 (add_symbol_file_from_memory_command): Use "struct bfd" and
4065 "struct bfd_section".
4066 * Makefile.in (symfile_mem_h): Delete.
4067 (symfile-mem.o): Update dependencies.
4068
e23cbd82
NR
40692004-05-25 Nick Roberts <nickrob@gnu.org>
4070
4071 * gdb-mi.el: New file.
4072
20d2ca3e
AC
40732004-05-25 Andrew Cagney <cagney@gnu.org>
4074
4075 * inftarg.c: Include "observer.h".
4076 (child_attach, child_create_inferior): Notify inferior_created.
4077 * corelow.c: Include "observer.h".
4078 (core_open): Notify inferior_created.
4079 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4080
c27cda74
AC
40812004-05-25 Andrew Cagney <cagney@gnu.org>
4082
4083 * target.h (struct target_ops): Add from_tty to
4084 to_create_inferior.
4085 (target_create_inferior, find_default_create_inferior): Update.
4086 * infcmd.c (run_command): Update.
4087 * wince.c (child_create_inferior): Update.
4088 * win32-nat.c (child_create_inferior): Update.
4089 * uw-thread.c (uw_thread_create_inferior): Update.
4090 * thread-db.c (thread_db_create_inferior): Update.
4091 * target.c (debug_to_create_inferior)
4092 (find_default_create_inferior): Update.
4093 (maybe_kill_then_create_inferior): Update.
4094 * sol-thread.c (sol_thread_create_inferior): Update.
4095 * remote.c (extended_remote_async_create_inferior)
4096 (extended_remote_create_inferior): Update.
4097 * remote-vx.c (vx_create_inferior): Update.
4098 * remote-st.c (st2000_create_inferior): Update.
4099 * remote-sim.c (gdbsim_create_inferior): Update.
4100 * remote-sds.c (sds_create_inferior): Update.
4101 * remote-rdp.c (remote_rdp_create_inferior): Update.
4102 * remote-rdi.c (arm_rdi_create_inferior): Update.
4103 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4104 * remote-e7000.c (e7000_create_inferior): Update.
4105 * procfs.c (procfs_create_inferior): Update.
4106 * ocd.c (ocd_create_inferior): Update.
4107 * ocd.h (ocd_create_inferior): Update.
4108 * nto-procfs.c (procfs_create_inferior): Update.
4109 * monitor.c (monitor_create_inferior): Update.
4110 * lin-lwp.c (lin_lwp_create_inferior): Update.
4111 * inftarg.c (child_create_inferior): Update.
4112 * hpux-thread.c (hpux_thread_create_inferior): Update.
4113 * gnu-nat.c (gnu_create_inferior): Update.
4114
1db2a798
AC
41152004-05-25 Andrew Cagney <cagney@gnu.com>
4116
4117 * MAINTAINERS: Update e-mail address.
4118
007d08bb
RC
41192004-05-24 Randolph Chung <tausq@debian.org>
4120
4121 * thread.c (info_threads_command, thread_apply_all_command)
4122 (thread_apply_command, thread_command, do_captured_thread_select):
4123 Remove HPUXHPPA-specific code.
4124
69e7b95e
RC
41252004-05-24 Randolph Chung <tausq@debian.org>
4126
4127 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4128 unused symbols.
4129 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4130 references.
4131
a4d5f2e0
JB
41322004-05-24 Joel Brobecker <brobecker@gnat.com>
4133
4134 * infcmd.c (kill_if_already_running): New function, extracted
4135 from run_command().
4136 (run_command): Replace extracted code by call to
4137 kill_if_already_running().
4138 (start_command): New function.
4139 (_initialize_infcmd): Add "start" command.
4140
bf2ca189
MK
41412004-05-24 Mark Kettenis <kettenis@gnu.org>
4142
4143 Add OpenBSD/m88k support.
4144 * NEWS (New native configurations): Mention OpenBSD/m88k.
4145 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4146 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4147 * Makefile.in (m88k_tdep_h): New variable.
4148 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4149 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4150 * configure.host: Add m88*-*-openbsd*.
4151 * configure.tgt: Add m88*-*-openbsd*.
4152
80fadb11
JB
41532004-05-24 Jim Blandy <jimb@redhat.com>
4154
4155 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4156 to approve changes.
4157
19e2d14b
KB
41582004-05-24 Kevin Buettner <kevinb@redhat.com>
4159
4160 * symtab.c (fixup_section): Search section table when lookup by
4161 name fails.
4162
1b07b470
RC
41632004-05-24 Randolph Chung <tausq@debian.org>
4164
4165 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4166 be "small_struct".
4167
368702b1
MK
41682004-05-24 Mark Kettenis <kettenis@gnu.org>
4169
5df97fde
MK
4170 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4171 register number in regcache_raw_collect call.
4172 (m68kbsd_collect_fpregset): Likewise.
4173 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4174
368702b1
MK
4175 * regset.h (struct regset): Add back `regset' member.
4176
a770d4ec
MK
41772004-05-23 Mark Kettenis <kettenis@gnu.org>
4178
70f9f479
MK
4179 * configure.in: Check for td_pcb in `struct thread'.
4180 * configure, config.in: Regenerated.
4181
2e16d79e
MK
4182 * dpx2-nat.c: Remove file.
4183 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4184 (dpx2-nat.o): Remove dependencies.
4185
492cf391
MK
4186 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4187 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4188 (amd64obsd_supply_pcb): New function.
4189 (_initialize_amd64obsd_nat): Enable libkvm interface.
4190 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4191 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4192 (LOADLIBES): New variable.
4193
a770d4ec
MK
4194 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4195 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4196 (sparc32nbsd_supply_pcb): New function.
4197 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4198 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4199 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4200 (LOADLIBES): New variable.
4201
9ea75c57
MK
42022004-05-22 Mark Kettenis <kettenis@gnu.org>
4203
2e0c3539
MK
4204 * bsd-kvm.c, bsd-kvm.h: New files.
4205 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4206 "bsd-kvm.h".
4207 (i386fbsd_supply_pcb): New function.
4208 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4209 (i386fbsd-nat.o): Update dependencies.
4210 (bsd_kvm_h): New variable.
4211 (bsd-kvm.o): New dependency.
4212 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4213 (LOADLIBES): New variable.
4214
9ea75c57
MK
4215 * regset.c: Tweak comment.
4216 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4217 macro.
4218 * regset.h: Update copyright year.
4219 (struct regset): Remove `descr' member, add `gdbarch' member.
4220 (regset_alloc): Adjust prototype and comment.
4221 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4222 (i386_supply_fpregset): Likewise.
4223 (i386_regset_from_core_section): Update call to regset_alloc.
4224 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4225 REGSET->arch.
4226 (i386obsd_aout_regset_from_core_section): Update call to
4227 regset_alloc.
4228 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4229 REGSET->arch.
4230 (i386nbsd_aout_regset_from_core_section): Update call to
4231 regset_alloc.
4232 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4233 REGSET->arch.
4234 (amd64_regset_from_core_section): Update call to regset_alloc.
4235 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4236 REGSET->arch.
4237 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4238 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4239 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4240 (sparc32nbsd_init_abi): Update call to regset_alloc.
4241 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4242 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4243 (sparc64obsd_init_abi): Update call to regset_alloc.
4244 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4245 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4246 (sparc64nbsd_init_abi): Update call to regset_alloc.
4247 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4248 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4249 (sparc64fbsd_init_abi): Update call to regset_alloc.
4250
867e2dc5
JB
42512004-05-22 Jim Blandy <jimb@redhat.com>
4252
4253 * ppc-tdep.h (spe_register_p): New declaration.
4254 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4255 ppc_spefscr_regnum.
4256 * rs6000-tdep.c (spe_register_p): New function.
4257 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4258 spefscr.
4259 (rs6000_gdbarch_init): Initialize the new members of the tdep
4260 structure.
4261
617a4cba
JB
42622004-05-21 Jim Blandy <jimb@redhat.com>
4263
0397dee1
JB
4264 * ppc-linux-nat.c (fetch_register): Move code back to be next
4265 to the comment that describes it. (Moved code, instead of
4266 comment, for symmetry with store_register.)
4267
617a4cba
JB
4268 Allocate regset structures in the gdbarch's obstack, not using
4269 xmalloc.
4270 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4271 Add 'arch' argument. Allocate the regset on arch's obstack, not
4272 using xmalloc.
4273 * regset.h (regset_alloc): Update declaration.
4274 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4275 gdbarch argument.
4276 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4277 * i386-tdep.c (i386_regset_from_core_section): Same.
4278 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4279 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4280 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4281 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4282 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4283 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4284
9aa3914d
JB
42852004-05-21 Joel Brobecker <brobecker@gnat.com>
4286
4287 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4288
99c87dab
JB
42892004-05-21 Jim Blandy <jimb@redhat.com>
4290
4291 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4292 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4293
c2b6b4aa
JB
42942004-05-20 Jim Blandy <jimb@redhat.com>
4295
4296 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4297
144529d0
MK
42982004-05-20 Mark Kettenis <kettenis@gnu.org>
4299
4300 * regset.h: Make prototype const-correct.
4301 * regset.c (regset_xmalloc): Make const-correct.
4302
4725b721
PH
43032004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4304
4305 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4306 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4307 (symbol_search_name): Declare.
4308
4309 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4310 (iter_name_next_hashed): Ditto.
4311 (iter_name_next_linear): Ditto.
4312 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4313
4314 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4315 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4316 (symbol_search_name): New function.
4317
4318 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4319
4320 * minsyms.c (build_minimal_symbol_hash_tables): Change
4321 test for adding to demangled hash table to check for difference
4322 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4323
be07a590
JB
43242004-05-19 Jim Blandy <jimb@redhat.com>
4325
4326 Use a constructor function to create regset structures.
4327 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4328 (struct regset): Use supply_regset_ftype. Add new
4329 'collect_regset' member.
4330 (regset_xmalloc): New declaration.
4331 * regset.c: New file.
4332 * am64-tdep.c (amd64_regset_from_core_section): Use
4333 regset_xmalloc to construct regset structures.
4334 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4335 * i386-tdep.c (i386_regset_from_core_section): Same.
4336 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4337 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4338 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4339 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4340 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4341 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4342 * Makefile.in (COMMON_OBS): Add regset.o.
4343 (regset.o): New rule.
4344
604368f5
JB
43452004-05-19 Joel Brobecker <brobecker@gnat.com>
4346
4347 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4348 and pthread_cond_wait.c.
4349
82d69f8b
JB
43502004-05-18 Jim Blandy <jimb@redhat.com>
4351
4352 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4353 before the mach-specific switch, and then let the individual cases
4354 override the defaults, rather than leaving them uninitialized
4355 until the switch and then setting them in each case.
4356
5859efe5
RC
43572004-05-18 Randolph Chung <tausq@debian.org>
4358
4359 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4360 millicode functions.
4361
9ca80cf8
RC
43622004-05-18 Randolph Chung <tausq@debian.org>
4363
4364 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4365 references to dld_flags_buffer consistent.
4366
ed70ba00
RC
43672004-05-18 Randolph Chung <tausq@debian.org>
4368
4369 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4370 it for unwinding the stack.
4371
63100632
RC
43722004-05-18 Randolph Chung <tausq@debian.org>
4373
4374 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4375 Undefine these so we can overide them using gdbarch.
4376
090ccbb7
RC
43772004-05-18 Randolph Chung <tausq@debian.org>
4378
4379 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4380 handling for 64-bit HPUX (elf).
4381
594706e6
DJ
43822004-05-18 Daniel Jacobowitz <dan@debian.org>
4383
4384 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4385 constants.
4386 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4387 * ia64-tdep.c (examine_prologue): Likewise.
4388 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4389 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4390
e5483145
MK
43912004-05-18 Mark Kettenis <kettenis@gnu.org>
4392
4393 * vax-tdep.c (vax_return_value): Implement
4394 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4395
caed1a45
MK
43962004-05-17 Mark Kettenis <kettenis@gnu.org>
4397
4398 * vax-tdep.c (vax_return_value): Fix typo.
4399
3c0b7db2
AC
44002004-05-17 Andrew Cagney <cagney@redhat.com>
4401
5aae53e5
AC
4402 * MAINTAINERS: Mark Salter was also responsible for
4403 testsuite/config/
4404
3c0b7db2
AC
4405 * NEWS: Mention signal fixes.
4406
22b0923d
RC
44072004-05-17 Randolph Chung <tausq@debian.org>
4408
4409 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4410 check to see if we are unwinding an export stub. Export stubs clobber
4411 the %rp in the call path and stores the original rp in a stack slot.
4412
22f2b2f3
JB
44132004-05-17 Jim Blandy <jimb@redhat.com>
4414
4415 * MAINTAINERS: Update address for J.T. Conklin.
4416
cea96d64
RC
44172004-05-17 Randolph Chung <tausq@debian.org>
4418
4419 * hppa-tdep.c: Remove superfluous #include's.
4420 * Makefile.in (hppa-tdep.o): Update dependencies.
4421
f08f6a4a
RC
44222004-05-17 Randolph Chung <tausq@debian.org>
4423
4424 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4425 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4426 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4427 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4428 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4429 Remove static function declarations.
4430
51da707a
MK
44312004-05-17 Mark Kettenis <kettenis@gnu.org>
4432
caed1a45
MK
4433 * alphabsd-nat.c: Update copyright year.
4434 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4435
c0c2b0db
MK
4436 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4437 and M68K_A2_REGNUM.
4438
51da707a
MK
4439 * m68k-tdep.c (m68k_svr4_return_value): Implement
4440 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4441
8d027a04
MK
44422004-05-16 Mark Kettenis <kettenis@gnu.org>
4443
4444 * sol-thread.c Update copyright year. Fix various coding
4445 standards violations. Tweak a few comments.
4446 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4447 Delete prototypes.
4448
0d99fdb9
RC
44492004-05-15 Randolph Chung <tausq@debian.org>
4450
4451 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4452 as pointer instead of array reference since HPUX compiler does
4453 not accept unsized array arguments.
4454 * somsolib.c (dld_flags_buffer): Use constant array size.
4455
f7e3843a
MK
44562004-05-15 Mark Kettenis <kettenis@gnu.org>
4457
0fe85704
MK
4458 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4459 offset with decimal offset.
4460 (amd64obsd_sigcontext_addr): Return correct address for entire
4461 signal trampoline.
4462
a54f9a00
MK
4463 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4464 instead of get_frame_base.
4465
feae6502
MK
4466 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4467 (fill_gregset): Use regcache_raw_collect.
4468
0382d099
MK
4469 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4470 ppcobsd-tdep.c.
4471
f7e3843a
MK
4472 * config/sparc/tm-nbsd64.h: Remove file.
4473 * config/tm-sunos.h: Remove file.
4474
773df3e5
JB
44752004-05-15 Joel Brobecker <brobecker@gnat.com>
4476
4477 * rs6000-tdep.c (store_param_on_stack_p): New function,
4478 an improved version of some code extracted from skip_prologue().
4479 (skip_prologue): Use store_param_on_stack_p() to detect
4480 instructions saving a parameter on the stack. Detect when r0
4481 is used to save a parameter.
4482 Do not mark "li rx, SIMM" instructions as part of the prologue,
4483 unless the following instruction is also part of the prologue.
4484
95918acb
AC
44852004-05-14 Andrew Cagney <cagney@redhat.com>
4486
06f32659
AC
4487 * infrun.c (handle_inferior_event): Simplify
4488 STEP_OVER_UNDEBUGGABLE.
4489
95918acb
AC
4490 * infrun.c (handle_step_into_function): Delete function.
4491 (handle_inferior_event): Inline calls to
4492 handle_step_into_function.
4493
40711ff1 44942004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4495
4496 * rs6000-nat.c: Fix a comment.
4497
02f60eae
JB
44982004-05-12 David Anderson <davea@sgi.com>
4499
4500 Committed by Jim Blandy <jimb@redhat.com>:
4501 * regcache.c (struct regcache_descr): fix comment spelling.
4502
552e377b
JB
45032004-05-13 J. Brobecker <brobecker@gnat.com>
4504
4505 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4506 Fixes a link link failure.
4507
349766b2
JB
45082004-05-13 J. Brobecker <brobecker@gnat.com>
4509
4510 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4511 error that was causing the build to fail.
4512
0d4d5484
JB
45132004-05-13 J. Brobecker <brobecker@gnat.com>
4514
4515 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4516 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4517
0b30808c
AC
45182004-05-13 Andrew Cagney <cagney@redhat.com>
4519
4520 * infrun.c (handle_inferior_event): Check for
4521 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4522 calls. Update comments.
4523
cdf2c5f5
JB
45242004-05-13 Jim Blandy <jimb@redhat.com>
4525
063715bf
JB
4526 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4527 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4528 (store_regs_user_thread, store_regs_kernel_thread): Use
4529 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4530 * ppc-linux-nat.c (fill_gregset): Same.
4531 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4532 (ppc_linux_sigtramp_cache): Same.
4533 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4534 (ppcnbsd_sigtramp_cache_init): Same.
4535 * rs6000-nat.c (fetch_core_registers): Same.
4536 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4537 (rs6000_frame_cache): Same.
4538
cdf2c5f5
JB
4539 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4540 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4541 of assuming that the gprs are numbered starting with zero.
4542 * ppc-linux-nat.c (fill_gregset): Same.
4543 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4544 * ppcnbsd-nat.c (getregs_supplies): Same.
4545 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4546 * rs6000-nat.c (fetch_core_registers): Same.
4547 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4548
450bd37b
MS
45492004-05-07 Michael Snyder <msnyder@redhat.com>
4550
4551 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4552 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4553
4a72a2a6
AC
45542004-05-13 Andrew Cagney <cagney@redhat.com>
4555
4556 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4557
8edfa926
BM
45582004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4559
4560 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4561 base_address for shared libraries.
4562
723e0e3d
BM
45632004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4564
4565 * MAINTAINERS (write after approval): Add myself.
4566
00d4360e
UW
45672004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4568
4569 * breakpoint.c (bpstat_stop_status): Add new argument
4570 STOPPED_BY_WATCHPOINT. Use it instead of testing
4571 target_stopped_data_address agaist 0 to check whether
4572 or not we stopped due to a hardware watchpoint.
4573 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4574 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4575 with new argument.
4576
ec76baa5
JB
45772004-05-12 Jim Blandy <jimb@redhat.com>
4578
4579 * configure.in: When checking whether we should use the -bbigtoc
4580 option, don't forget to restore the original value of LDFLAGS.
4581 * configure: Regenerated.
4582
f2c9ca08
AC
45832004-05-12 Andrew Cagney <cagney@redhat.com>
4584
4585 * thread.c (load_infrun_state): Delete step_sp.
4586 * infrun.c (context_switch): Ditto.
4587 * inferior.h (step_sp): Ditto.
4588 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4589 * gdbthread.h (struct thread_info, save_infrun_state)
4590 (restore_infrun_state): Ditto.
4591
090ddb2a
UW
45922004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4593
4594 * MAINTAINERS (write after approval): Add myself.
4595
8aad930b
AC
45962004-05-12 Andrew Cagney <cagney@redhat.com>
4597
4598 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4599 eliminate reference to step_sp.
4600 (struct execution_control_state, init_execution_control_state)
4601 (handle_inferior_event, keep_going): Delete update_step_sp and
4602 step_sp.
4603 * infcmd.c (step_sp): Note that variable is unused.
4604
922d5ae0
AC
46052004-05-11 Andrew Cagney <cagney@redhat.com>
4606
4607 * infrun.c (step_over_function): Delete function.
4608 (handle_step_into_function): Use insert_step_resume_breakpoint.
4609 (insert_step_resume_breakpoint): Fix assertion.
4610
017c5ca5
NR
46112004-05-11 Nick Roberts <nickrob@gnu.org>
4612
4613 * utils.c (defaulted_query): Just use the normal query input type
4614 when printing the annotations.
4615
42edda50
AC
46162004-05-11 Andrew Cagney <cagney@redhat.com>
4617
4618 * infrun.c (handle_inferior_event): Simplify code handling
4619 step-into or return-from a signal trampoline.
4620
d28b44a7
AC
46212004-05-11 Andrew Cagney <cagney@redhat.com>
4622
4623 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4624 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4625
383f0f5b
JB
46262004-05-10 Jim Blandy <jimb@redhat.com>
4627
d0b57c3a
JB
4628 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4629 with a call to internal_error.
4630
383f0f5b
JB
4631 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4632 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4633 processor variant lacks those registers.
4634 (ppc_floating_point_unit_p): Change description to make it clear
4635 that this returns info about the ISA, not the ABI.
4636 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4637 return true or false by checking tdep->ppc_fp0_regnum and
4638 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4639 arch/mach switching done in rs6000_gdbarch_init; it's better to
4640 keep that logic there, and just check the results here.
4641 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4642 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4643 floating-point registers.
4644 (ppc_supply_fpregset, ppc_collect_fpregset)
4645 (rs6000_push_dummy_call, rs6000_extract_return_value)
4646 (rs6000_store_return_value): Assert that we have floating-point
4647 registers.
4648 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4649 (rs6000_frame_cache): Don't note the locations at which
4650 floating-point registers were saved if we have no fprs.
4651 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4652 registers.
4653 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4654 (store_regs_user_thread, store_regs_kernel_thread): Only call
4655 supply_fprs / fill_fprs if we actually have floating-point
4656 registers.
4657 (special_register_p): Check ppc_fpscr_regnum before matching
4658 against it.
4659 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4660 supply / collect fpscr if we don't have it.
4661 * ppc-bdm.c: #include "gdb_assert.h".
4662 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4663 have floating-point registers, since I can't test this code on
4664 FP-free systems to adapt it.
4665 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4666 fpscr and floating point register numbers if they don't exist.
4667 (fetch_register): Assert that we have floating-point registers
4668 before we reach the code that handles them.
4669 (store_register): Same. And use tdep instead of calling
4670 gdbarch_tdep again.
4671 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4672 don't have them.
4673 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4674 fprs and fpscr if we don't have them.
4675 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4676 don't have them.
4677 * ppcnbsd-nat.c: #include "gdb_assert.h".
4678 (getfpregs_supplies): Assert that we have floating-point registers.
4679 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4680 * ppcobsd-tdep.c: #include "gdb_assert.h".
4681 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4682 have floating-point registers.
4683 * rs6000-nat.c (regmap): Don't match against the fpscr and
4684 floating point register numbers if they don't exist.
4685 (fetch_inferior_registers, store_inferior_registers,
4686 fetch_core_registers): Only fetch / store / supply the
4687 floating-point registers and the fpscr if we have them.
4688 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4689 (ppcobsd-tdep.o): Update dependencies.
4690
15960608
AC
46912004-05-10 Andrew Cagney <cagney@redhat.com>
4692
4693 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4694 (context_switch): Do not switch through_sigtramp_breakpoint.
4695 * gdbthread.h (save_infrun_state, load_infrun_state)
4696 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4697 and structure member.
4698 * thread.c (load_infrun_state, save_infrun_state): Update.
4699
5ab5aa0f
MK
47002004-05-10 Mark Kettenis <kettenis@gnu.org>
4701
4702 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4703
da78b0e7
DJ
47042004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4705
4706 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4707 throughout.
4708 * aclocal.m4: Regenerate.
4709
cca0d3b0
NW
47102004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4711
4712 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4713
d303a6c7
AC
47142004-05-10 Andrew Cagney <cagney@redhat.com>
4715
4716 * infrun.c (check_sigtramp2): Delete function.
4717 (handle_inferior_event): When single stepping, and taking a
4718 signal, set a breakpoint at the signal return address. Delete
4719 redundant calls to check_sigtramp2.
4720 (insert_step_resume_breakpoint): New function.
4721 (through_sigtramp_breakpoint, handle_inferior_event)
4722 (follow_exec, wait_for_inferior, fetch_inferior_event)
4723 (currently_stepping, keep_going): Delete most uses of
4724 through_sigtramp_breakpoint, not that it should be deleted.
4725 (delete_breakpoint_current_contents): Delete function.
4726
03f4cc20
RC
47272004-05-10 Randolph Chung <tausq@debian.org>
4728
4729 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4730 target.
4731 * config/pa/tm-linux.h: New file.
4732
37fc812e
DJ
47332004-05-10 Daniel Jacobowitz <drow@mvista.com>
4734
4735 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4736 of prefixes. Don't print the prefix twice in the CLI.
4737
26c0b942
JB
47382004-05-10 Jim Blandy <jimb@redhat.com>
4739
2e56e9c1
JB
4740 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4741 collect all the gprs.
4742
26c0b942
JB
4743 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4744 loop collecting gprs.
4745
dc497459
AC
47462004-05-09 Andrew Cagney <cagney@redhat.com>
4747
4748 * remote-vx.c (net_step): Delete step-range code.
4749 * remote.c (remote_resume, init_all_packet_configs)
4750 (set_remote_protocol_E_packet_cmd)
4751 (show_remote_protocol_E_packet_cmd)
4752 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4753 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4754 (show_remote_protocol_e_packet_cmd): Ditto.
4755
0543f387
MK
47562004-05-09 Mark Kettenis <kettenis@gnu.org>
4757
c481d1ca
MK
4758 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4759
f626a069
MK
4760 * hppa-tdep.h: Update copyright year.
4761 (struct trad_frame_saved_reg): Add opaque declaration.
4762
6fa57a7d
MK
4763 * amd64-tdep.c (amd64_return_value): Implement
4764 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4765
e47577ab
MK
4766 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4767 (m68k_value_to_register): New functions.
4768 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4769 value_to_register.
4770
31db7b6c
MK
4771 * defs.h (enum return_value_convention): Add
4772 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4773 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4774 * infcmd.c (legacy_return_value): New function.
4775 (print_return_value): Rwerite to implement
4776 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4777 * values.c (using_struct_return): Check for inequality to
4778 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4779 RETURN_VALUE_STRUCT_CONVENTION.
4780 * i386-tdep.c (i386_return_value): Implement
4781 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4782
0543f387
MK
4783 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4784 include "symtab.h", "opcode/vax.h" and "inferior.h".
4785 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4786 to read_memory_unsigned_integer.
4787 (vax_gdbarch_init): Reorder.
4788 (_initialize_vax_tdep): Spell out prototype.
4789 * Makefile.in (vax-tdep.o): Update dependencies.
4790
0c93b7b6
AC
47912004-05-08 Andrew Cagney <cagney@redhat.com>
4792
e6b55ae2
AC
4793 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4794 * target.c (target_detach, target_disconnect): Ditto.
4795
1ac839b8
AC
4796 * infcall.c (call_function_by_hand): When no
4797 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4798 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4799 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4800 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4801 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4802
28954179
AC
4803 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4804 * gdbarch.h, gdbarch.c: Re-generate.
4805 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4806 deprecated_fix_call_dummy.
4807 * v850-tdep.c (v850_gdbarch_init): Ditto.
4808 * infcall.c (call_function_by_hand): Do not call
4809 DEPRECATED_FIX_CALL_DUMMY.
4810
434b87dd
AC
4811 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4812 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4813 * gdbarch.h, gdbarch.c: Re-generate.
4814 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4815 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4816 deprecated_sizeof_call_dummy_words.
4817 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4819 * v850-tdep.c (v850_gdbarch_init): Ditto.
4820 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4821 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4822 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4823 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4824 * arch-utils.h (legacy_call_dummy_words)
4825 (legacy_sizeof_call_dummy_words): Delete declarations.
4826 * arch-utils.c (legacy_call_dummy_words)
4827 (legacy_sizeof_call_dummy_words): Delete variables.
4828
58d28df8
AC
4829 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4830 * gdbarch.h, gdbarch.c: Re-generate.
4831 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4832 * infcall.c (call_function_by_hand): Eliminate call to
4833 DEPRECATED_PUSH_DUMMY_FRAME.
4834 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4835 push_dummy_frame.
4836 (ns32k_push_dummy_frame): Delete function.
4837
e4a2df64
AC
4838 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4839 deprecated_call_dummy_breakpoint_offset or
4840 deprecated_call_dummy_start_offset.
4841 * dummy-frame.c, arm-tdep.c: Update comments.
4842 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4843 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4844 * gdbarch.h, gdbarch.c: Re-generate.
4845
d3712828
AC
4846 * infcall.c (legacy_push_dummy_code): Delete function.
4847 (push_dummy_code): Delete call.
4848
7a882905
AC
4849 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4850 * gdbarch.h, gdbarch.c: Re-generate.
4851 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4852 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4853 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4854 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4855
0ec5872b
AC
4856 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4857 (struct frame_info): Delete opaque declaration.
4858 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4859 * frame.c (get_frame_type): Delete call.
4860
0c93b7b6
AC
4861 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4862 pc_in_call_dummy.
4863 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4864 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4865
75536971
MK
48662004-05-08 Mark Kettenis <kettenis@gnu.org>
4867
527ca6bb
MK
4868 * alphanbsd-tdep.c: Include "gdb_string.h".
4869 * armnbsd-tdep.c: Update copyright year.
4870 Include "gdb_string.h".
4871 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4872 dependencies.
4873
d39fdc61
MK
4874 * delta68-nat.c: Remove file.
4875 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4876 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4877 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4878 (delta68-nat.o): Remove dependency.
4879
75536971
MK
4880 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4881 function.
4882 (m68k_gdbarch_init): Don't set
4883 deprecated_frameless_function_invocation.
4884
f4ca1d1f
RC
48852004-05-07 Randolph Chung <tausq@debian.org>
4886
4887 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4888 read_memory_nobpt for code reading when doing frame unwinding.
4889 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4890
2f0e8c7a
RC
48912004-05-07 Randolph Chung <tausq@debian.org>
4892
4893 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4894 instead of sp, handle sigaltstack case.
4895 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4896 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4897 signal handler and not that of the caller.
4898 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4899 hppa_linux_sigtramp_find_sigcontext.
4900
959464ff
RC
49012004-05-07 Randolph Chung <tausq@debian.org>
4902
4903 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4904 hppa-linux-nat.c.
4905 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4906 * hppa-linux-nat.c (fetch_register, store_register): Define.
4907 (fetch_inferior_registers, store_inferior_registers): Define.
4908 (supply_gregset): Add comment and clean up some unneeded code.
4909 (fill_gregset): Add comment and fix so that it saves registers in
4910 the right place in the gregset.
4911 (fill_fpregset): Fix buffer overrun problem.
4912 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4913
0da28f8a
RC
49142004-05-07 Randolph Chung <tausq@debian.org>
4915
4916 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4917 do common handling of the pcoqt register.
4918 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4919 to use helper function.
4920 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4921 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4922 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4923 generic fallback unwinder when all else fails.
4924 (hppa_gdbarch_init): Add fallback sniffer.
4925 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4926 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4927 to use helper function.
4928
b9ec757a
JB
49292004-05-08 Joel Brobecker <brobecker@gnat.com>
4930
4931 * config/djgpp/fnchange.lst: Add translation rules for
4932 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4933
756e95f1
MK
49342004-05-08 Mark Kettenis <kettenis@gnu.org>
4935
4936 * frame.c (get_prev_frame_1): Work around GCC bug.
4937 * frame.h: Add comment about GCC bug.
4938
2b4855ab
AC
49392004-05-07 Andrew Cagney <cagney@redhat.com>
4940
4941 * observer.c: Include "commands.h" and "gdbcmd.h".
4942 (observer_debug, _initialize_observer): Add the
4943 command "set/show debug observer".
4944 * observer.sh: When observer debugging, log notify calls.
4945 * Makefile.in (observer.o): Update dependencies.
4946
ba3e8e46
JM
49472004-05-07 Jason Molenda (jmolenda@apple.com)
4948
4949 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4950
16796152
JB
49512004-05-07 Jim Blandy <jimb@redhat.com>
4952
daf6dc85
JB
4953 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4954 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4955 to recognize gpr regnums, instead of assuming that
4956 tdep->ppc_fp0_regnum marks the end of the general-purpose
4957 registers.
4958
16796152
JB
4959 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4960 the given architecture has floating-point registers.
4961
c69b8bfc
AC
49622004-05-07 Andrew Cagney <cagney@redhat.com>
4963
4964 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4965 macro defined to 1.
4966 * gdbarch.h, gdbarch.c: Re-generate.
4967 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4968 deprecated_use_generic_dummy_frames.
4969
7243600a
BF
49702004-05-07 Brian Ford <ford@vss.fsi.com>
4971
4972 * NEWS: Mention Cygwin DWARF 2 support.
4973
73c1e0a1
AC
49742004-05-07 Andrew Cagney <cagney@redhat.com>
4975
4976 * objfiles.h (struct entry_info): Delete unused fields
4977 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4978 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4979 * mipsread.c (mipscoff_symfile_read): Update.
4980 * mdebugread.c (parse_partial_symbols): Update.
4981 * dwarfread.c (read_file_scope): Update.
4982 * dwarf2read.c (read_file_scope): Update.
4983 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4984 * coffread.c (complete_symtab): Update.
4985
1d3056ac
MK
49862004-05-07 Mark Kettenis <kettenis@gnu.org>
4987
4988 * infcall.c (_initialize_infcall): Fix typo.
4989
15170568
AC
49902004-05-07 Andrew Cagney <cagney@redhat.com>
4991
4992 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4993 * command.h (add_setshow_zinteger_cmd): Declare.
4994
34f75cc1
RC
49952004-05-06 Randolph Chung <tausq@debian.org>
4996
4997 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4998 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4999 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5000 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5001 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5002 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5003 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5004 definitions ...
5005 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5006 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5007 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5008 (hppa64_hpux_frame_find_saved_regs_in_sig)
5009 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5010 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5011 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5012 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5013 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5014 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5015 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5016 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5017 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5018 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5019 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5020 (hppa32_register_type, hppa_cannot_store_register)
5021 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5022 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5023 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5024 * pa64solib.c (pa64_solib_have_load_event)
5025 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5026 (pa64_solib_unloaded_library_pathname): Likewise.
5027 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5028 (som_solib_library_pathname): Likewise.
5029
0a5e7efe
JI
50302004-05-05 Jim Ingham <jingham@apple.com>
5031
5032 * breakpoint.c (create_breakpoints): Copy the ignore count and
5033 thread id over from the pended breakpoint to the actual
5034 breakpoint.
5035
10a4b113
AC
50362004-05-05 Andrew Cagney <cagney@redhat.com>
5037
5038 * gdbarch.sh (PARM_BOUNDARY): Delete.
5039 gdbarch.h, gdbarch.c: Re-generate.
5040 * valops.c (PARM_BOUNDARY): Delete macro.
5041 (value_push): Delete PARM_BOUNDARY code.
5042 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5043
366f009f
JB
50442004-05-04 Jim Blandy <jimb@redhat.com>
5045
32b99774
JB
5046 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5047 Don't assume that the gprs, fprs, and UISA sprs are
5048 contiguous, start at register number zero, and end with fpscr.
5049 Instead, use the numbers from the tdep structure.
5050
366f009f
JB
5051 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5052 should no longer be used in code specific to the RS6000 and its
5053 derivatives.
5054 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5055 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5056 tdep->ppc_fp0_regnum.
5057 (ppc_supply_fpregset, ppc_collect_fpregset)
5058 (rs6000_push_dummy_call, rs6000_extract_return_value)
5059 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5060 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5061 FP0_REGNUM.
5062 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5063 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5064 Same.
5065 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5066 bdm_ppc_store_registers): Same.
5067 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5068 (store_register, fill_fpregset): Same.
5069 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5070 (ppc_linux_supply_fpregset): Same.
5071 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5072 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5073 Same.
5074 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5075 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5076 ppc64_sysv_abi_return_value): Same.
5077 * rs6000-nat.c (regmap, fetch_inferior_registers)
5078 (store_inferior_registers, fetch_core_registers): Same.
5079
827f338d
MK
50802004-05-01 Mark Kettenis <kettenis@gnu.org>
5081
5082 * m68knbsd-nat.c: Remove file.
5083 * m68knbsd-tdep.c: Remove file.
5084 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5085 dependencies.
5086 * configure.host: Add m68k-*-netbsdelf*.
5087 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5088 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5089 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5090 (XM_FILE): Remove.
5091 * config/m68k/nbsdelf.mh: New file.
5092 * config/m68k/nbsd.mt: New file.
5093 * config/m68k/nbsdaout.mt: Remove file.
5094 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5095 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5096 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5097 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5098 (use_struct_convention): Remove prototype.
5099 (USE_STRUCT_CONVENTION): Remove define.
5100 * config/m68k/xm-nbsd.h: Remove file.
5101
66894781
MS
51022004-05-04 Michael Snyder <msnyder@redhat.com>
5103
5104 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5105 reg_struct_return method (as gcc usually does for cross targets).
5106
f0f63663
AC
51072004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5108
5109 Committed by Andrew Cagney.
5110 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5111 alignment padding when accessing ucontext struct members.
5112
edf61169
JB
51132004-05-04 Jim Blandy <jimb@redhat.com>
5114
8bf659e8
JB
5115 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5116 'ppc_gplast_regnum' member.
5117 (ppc_num_gprs): New enum constant.
5118 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5119 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5120 * rs6000-nat.c (regmap, fetch_inferior_registers,
5121 store_inferior_registers): Same.
5122 * rs6000-tdep.c (e500_pseudo_register_read)
5123 (e500_pseudo_register_write): Same.
5124 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5125
b967e06f
JB
5126 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5127 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5128 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5129 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5130 FPLAST_REGNUM.
5131 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5132 Same.
5133 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5134 * rs6000-nat.c (regmap, fetch_inferior_registers)
5135 (store_inferior_registers): Same.
5136
edf61169
JB
5137 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5138 with FPLAST_REGNUM.
5139
58a9656e
JB
51402004-05-03 Joel Brobecker <brobecker@gnat.com>
5141
5142 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5143 failure detected by recent versions of GCC.
5144 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5145 to be consistent with the usage in dwarf2_create_include_psymtab.
5146
dc305454
MS
51472004-05-03 Michael Snyder <msnyder@redhat.com>
5148
5149 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5150 (heuristic_proc_start): Whitespace cleanup.
5151
29972665
MK
51522004-05-04 Mark Kettenis <kettenis@gnu.org>
5153
6b57680d
MK
5154 * sun3-nat.c: Remove file.
5155 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5156 dependencies.
5157 (ALLDEPFILES): Remove sun3-nat.c.
5158 (sun3-nat.o): Remove dependencies.
5159
29972665
MK
5160 * i386-interix-nat.c, i386-interix-tdep.c,
5161 config/i386/nm-interix.h, config/i386/interix.mh,
5162 config/i386/interix.mt: Remove files.
5163 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5164 dependencies.
5165
f595cb19
MK
51662004-05-03 Mark Kettenis <kettenis@gnu.org>
5167
5168 * m68k-tdep.h (struct gdbarch_tdep): Add member
5169 struct_value_regnum.
5170 (m68k_svr4_init_abi): New prototype.
5171 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5172 different calling conventions.
5173 (m68k_extract_return_value): Remove code dealing with single-field
5174 structs.
5175 (m68k_store_return_value): Remove code dealing with single-field
5176 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5177 (m68k_extract_struct_value_address): Remove function.
5178 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5179 (m68k_reg_struct_return_p, m68k_return_value)
5180 (m68k_svr4_return_value): New functions.
5181 (m68k_use_struct_convention): Remove function.
5182 (m68k_push_dummy_call): Use new struct_value_regnum member of
5183 `struct gdbarch_tdep' instead of hardcoded register number to
5184 store STRUCT_ADDR.
5185 (m68k_svr4_init_abi): New function.
5186 (m68k_gdbarch_init): Don't set extract_return_value,
5187 store_return_values, deprecated_extract_struct_value_address and
5188 use_struct_convention. Set return_value instead. Initialize new
5189 struct_value_regnum member of `struct gdbarch_tdep'.
5190 * m68klinux-tdep.c: Update copyright year.
5191 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5192 (m68k_linux_extract_struct_value_address): Remove function.
5193 (m68k_linux_init_abi): Don't set extract_return_value,
5194 store_return_values, deprecated_extract_struct_value_address and
5195 use_struct_convention. Call m68k_svr4_init_abi but override the
5196 new struct_value_regnum member of `struct gdbarch_tdep'.
5197 * Makefile.in (m68k-tdep.o): Update dependencies.
5198
aaa75496
JB
51992004-05-03 J. Brobecker <brobecker@gnat.com>
5200
5201 * dwarf2read.c (line_header): Add new included_p field in
5202 field file_names.
5203 (partial_die_info): New field has_stmt_list. New field line_offset.
5204 (dwarf2_create_include_psymtab): New function.
5205 (dwarf2_build_include_psymtabs): New function.
5206 (add_file_name): Add forward declaration. Initialize new field.
5207 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5208 to be able to determine the list of files included by the
5209 given unit, and build their associated psymtabs.
5210 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5211 files as well.
5212 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5213 (read_file_scope): Update call to dwarf_decode_lines.
5214 (read_partial_die): Handle DW_AT_stmt_list attributes.
5215
c848556f
MC
52162004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5217
5218 Unfix PR gdb/1626.
5219 * configure.in: Revert special case for osf5.*.
5220 * configure: Regenerate.
5221
eb4556d7
JB
52222004-05-02 Jim Blandy <jimb@redhat.com>
5223
5224 Move the symbol-file-from-memory functions into their own file.
5225 * symfile-mem.c, symfile-mem.h: New files.
5226 * symfile.c (symbol_file_add_from_bfd): New function.
5227 (symbol_file_add): Call symbol_file_add_from_bfd.
5228 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5229 Moved to symfile-mem.c.
5230 (_initialize_symfile): Move definition of
5231 add-symbol-file-from-memory command to symfile-mem.c.
5232 * symfile.h (symbol_file_add_from_bfd): New declaration.
5233 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5234 * config/powerpc/linux.mt (TDEPFILES): Same.
5235 * Makefile.in (SFILES): Add symfile-mem.c.
5236 (symfile_mem_h): New variable.
5237 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5238 (symfile-mem.o): New rule.
5239
80bb239e
AC
52402004-05-01 Andrew Cagney <cagney@redhat.com>
5241
7789d0fa
AC
5242 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5243 frame_find_by_id instead of frame_relative_level.
5244 (do_enable_breakpoint): Ditto.
5245 * thread.c: Update copyright.
5246 (info_threads_command): Ditto, simplify.
5247
80bb239e
AC
5248 * frame.c (deprecated_generic_get_saved_register): Delete
5249 function, moved to "xstormy16-tdep.c".
5250 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5251 deprecated_generic_get_saved_register from "frame.c".
5252 (xstormy16_frame_saved_register): Call
5253 xstormy16_get_saved_register.
5254 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5255 static.
5256 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5257 * frame.h (deprecated_generic_get_saved_register): Delete.
5258
b2a871dd
MC
52592004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5260
5261 * dwarfread.c: Update documentation on the state of dwarf-1.
5262
0e100dab
AC
52632004-05-01 Andrew Cagney <cagney@redhat.com>
5264
acd8056e
AC
5265 * stack.c (select_frame_command): Delete call to
5266 frame_relative_level.
5267 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5268 Delete #if0 code.
5269 (frame_info): Do not print FRAMELESS.
5270 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5271 (catch_info): Delete #if0 code.
5272
0e100dab
AC
5273 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5274 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5275 of frame_relative_level.
5276 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5277 to SENTINEL_FRAME.
5278 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5279 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5280 frame_relative_level.
5281
55699d59
AC
5282 * frame.h (deprecated_set_frame_type): Delete declaration.
5283 * frame.c (deprecated_set_frame_type): Delete function, update
5284 comments.
5285
fcf70625
AC
5286 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5287 * gdbarch.h, gdbarch.c: Re-generate.
5288 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5289 (shnbsd_pc_in_sigtramp): Delete.
5290 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5291 pc_in_sigtramp.
5292 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5293 pc_in_sigtramp.
5294 * frame.h: Update comments.
5295 * ppc-linux-tdep.c: Update comments.
5296 * breakpoint.c (bpstat_what): Update comments.
5297
ac5eccb7
AC
5298 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5299 m68klinux-tdep.o's dependencies, were previously added to
5300 m68klinux-nat.o.
5301
f2524b93
AC
5302 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5303 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5304 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5305 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5306 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5307
17e20bce
AC
5308 * Makefile.in (m68klinux-nat.o): Update dependencies.
5309 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5310 (m68k_linux_sigtramp_frame_cache)
5311 (m68k_linux_sigtramp_frame_this_id)
5312 (m68k_linux_sigtramp_frame_prev_register)
5313 (m68k_linux_sigtramp_frame_unwind)
5314 (m68k_linux_sigtramp_frame_sniffer)
5315 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5316 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5317 names, use trad-frame.h.
5318 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5319 (struct m68k_sigtramp_info): Delete.
5320 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5321 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5322 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5323 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5324 "m68klinux-tdep.c".
5325
c8864fa2
AC
5326 * infrun.c (check_sigtramp2): Delete check for
5327 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5328
511dd2cd
MK
53292004-05-01 Mark Kettenis <kettenis@gnu.org>
5330
5331 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5332
8c6b0e06
AC
53332004-05-01 Andrew Cagney <cagney@redhat.com>
5334
9df0bb3f
AC
5335 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5336 (frv_linux_sigtramp_frame_cache)
5337 (frv_linux_sigtramp_frame_this_id)
5338 (frv_linux_sigtramp_frame_prev_register)
5339 (frv_linux_sigtramp_frame_unwind)
5340 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5341 include "linux" in function and variable names, directly call
5342 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5343 the latest trad-frame code.
5344 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5345 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5346 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5347 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5348 * frv-tdep.c (frv_sigtramp_frame_cache)
5349 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5350 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5351 frv-linux-tdep.c.
5352 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5353 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5354 (frv_set_sigcontext_reg_addr): Delete function.
5355
8c6b0e06
AC
5356 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5357 (DEPRECATED_SIGTRAMP_END): Delete.
5358 * gdbarch.h, gdbarch.c: Re-generate.
5359 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5360 * config/vax/tm-vaxbsd.h: Update copyright.
5361 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5362 (DEPRECATED_IN_SIGTRAMP): Define.
5363 * config/m68k/tm-nbsd.h: Update copyright.
5364 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5365 (DEPRECATED_IN_SIGTRAMP): Define.
5366
50ea7769
MK
53672004-05-01 Mark Kettenis <kettenis@gnu.org>
5368
03ac2a74
MK
5369 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5370 encondings. Fixes PR gdb/1628.
5371
50ea7769
MK
5372 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5373 DW_CFA_restore state without a matching DW_CFA_remember_state
5374 instead of aborting. Fixes PR backtrace/1589.
5375
9a5d7be1
JB
53762004-04-30 Joel Brobecker <brobecker@gnat.com>
5377
5378 * MAINTAINERS: Add self as AIX maintainer.
5379 Update my e-mail address in write-after-approval section.
5380
2593d1cd
AC
53812004-04-30 Andrew Cagney <cagney@redhat.com>
5382
ce12bbf9
AC
5383 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5384 (legacy_get_prev_frame): Ditto.
5385
36710c63
AC
5386 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5387 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5388 * mipsread.c (sigtramp_address): Delete extern variable.
5389 (mipscoff_new_init): Delete reference.
5390 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5391 (fixup_sigtramp): Delete function.
5392 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5393 (fixup_sigtramp): Delete declarations.
5394
2593d1cd
AC
5395 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5396 deprecated_pc_in_sigtramp.
5397 (ppcnbsd_pc_in_sigtramp): Delete function.
5398
2a25f91c
MK
53992004-05-01 Mark Kettenis <kettenis@gnu.org>
5400
5401 * config/m68k/nm-nbsd.h: Tweak comments.
5402 * config/m68k/nm-nbsdaout.h: Likewise.
5403
0b281939
AC
54042004-04-30 Andrew Cagney <cagney@redhat.com>
5405
5406 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5407 legacy_pc_in_sigtramp.
5408 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5409
8f2d3ea0
MK
54102004-05-01 Mark Kettenis <kettenis@gnu.org>
5411
5412 Add OpenBSD/m68k support.
5413 * NEWS (New native configurations): Mention OpenBSD/m68k.
5414 * m68kbsd-tdep.c: New file.
5415 * m68kbsd-nat.c: New file.
5416 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5417 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5418 * configure.host: Add m68k-*-openbsd.
5419 * configure.tgt: Add m68k-*-openbsd.
5420 * config/m68k/tm-obsd.h: New file.
5421 * config/m68k/obsd.mt: New file.
5422 * config/m68k/obsd.mh: New file.
5423 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5424 m68kbsd-tdep.c.
5425
c40f49a4
AC
54262004-04-30 Andrew Cagney <cagney@redhat.com>
5427
5428 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5429 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5430
e81554cd
MK
54312004-04-30 Mark Kettenis <kettenis@gnu.org>
5432
5433 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5434 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5435
d4dc1a91
BF
54362004-04-30 Brian Ford <ford@vss.fsi.com>
5437
5438 Revert 2004-04-16 change.
5439 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5440 (i386_coff_init_abi): Remove.
5441 * i386-tdep.h (i386_coff_init_abi): Remove.
5442 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5443
2f72f850
AC
54442004-04-30 Andrew Cagney <cagney@redhat.com>
5445
e492f9d6
AC
5446 * blockframe.c (find_pc_partial_function): Delete use of
5447 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5448 DEPRECATED_SIGTRAMP_END.
5449
7b7adad0
AC
5450 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5451 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5452 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5453 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5454 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5455
2f72f850
AC
5456 * defs.h (deprecated_inside_entry_file): Delete declaration.
5457 * blockframe.c (deprecated_inside_entry_file): Delete function.
5458 (legacy_frame_chain_valid): Delete call.
5459 * sh64-tdep.c (sh64_frame_chain): Delete call.
5460 * objfiles.h: Update comments.
5461 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5462 call.
5463 * frame.c (get_prev_frame): Delete call, update comments.
5464
283f90a7
BF
54652004-04-30 Brian Ford <ford@vss.fsi.com>
5466
5467 * MAINTAINERS (Write After Approval): Add myself.
5468
8ee56bcf
AC
54692004-04-30 Andrew Cagney <cagney@redhat.com>
5470
5471 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5472 * gdbarch.h, gdbarch.c: Re-generate.
5473 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5474 code.
5475
ee27e1b6
AC
54762004-04-30 Andrew Cagney <cagney@redhat.com>
5477
5478 * gdb-events.sh (selected_thread_changed)
5479 (selected_frame_level_changed, target_changed): Delete.
5480 * gdb-events.h, gdb-events.c: Re-generate.
5481 * valops.c (value_assign): Update.
5482 * stack.c (select_frame_command, up_silently_base)
5483 (down_silently_base): Update.
5484
d5ac5a39
AC
54852004-04-29 Andrew Cagney <cagney@redhat.com>
5486
5487 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5488 registers correctly.
5489 (print_gp_register_row, mips32_heuristic_proc_desc)
5490 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5491 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5492 references to mips_isa_regsize.
5493
ceae6e75
AC
54942004-04-29 Andrew Cagney <cagney@redhat.com>
5495
5496 * mips-tdep.c (struct gdbarch_tdep): Delete
5497 mips_fp_register_double.
5498 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5499 mips_abi_regsize.
5500 (mips_gdbarch_init): Do not set mips_fp_register_double.
5501 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5502
a587af0b
AC
55032004-04-29 Joel Brobecker <brobecker@gnat.com>
5504
5505 Committed by Andrew Cagney.
5506 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5507 function calls.
5508
13326b4e
AC
55092004-04-29 Andrew Cagney <cagney@redhat.com>
5510
5511 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5512 gdbarch, use mips_abi, update callers.
5513 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5514 mips_abi_regsize, update callers.
5515 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5516 mips_default_abi_regsize.
5517 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5518 mips_default_abi_regsize.
5519
711cc5cd
AC
55202004-04-29 Andrew Cagney <cagney@redhat.com>
5521
1b13c4f6
AC
5522 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5523 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5524 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5525 mips_default_abi_regsize.
5526 (mips_isa_regsize): Rename mips_regisze.
5527 * mipsnbsd-tdep.c: Update.
5528 * mips-linux-tdep.c: Update.
5529 * irix5-nat.c: Update.
5530 * mips-tdep.h (mips_isa_regsize): Update.
5531
711cc5cd
AC
5532 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5533 Delete all disabled code.
5534 * gdb-events.h, gdb-events.c: Re-generate.
5535
e63bbc88
MK
55362004-04-19 Jerome Guitton <guitton@gnat.com>
5537 Mark Kettenis <kettenis@gnu.org>
5538
5539 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5540 the function begins with a branch instruction.
5541
fd35795f
MK
55422004-04-29 Mark Kettenis <kettenis@gnu.org>
5543
5544 * i386-tdep.c: Fix spelling mistakes.
5545
c960c18f
AC
55462004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5547 Andrew Cagney <cagney@redhat.com>
5548
5549 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5550 <sys/proc.h>.
5551 * acconfig.h: Provide default _KMEMUSER value.
5552 * config.in, configure: Re-generate.
5553 * NEWS: Mention fix.
5554
50306a9d
RC
55552004-04-24 Randolph Chung <tausq@debian.org>
5556
5557 * configure.host (hppa*-*-linux*): New target.
5558 * configure.tgt (hppa*-*-linux*): Likewise.
5559 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5560 gdbarch_init_osabi() call earlier so that osabi-specific frame
5561 unwinders can be registered first.
5562 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5563 hppa-linux-nat.c.
5564 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5565 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5566 * config/pa/linux.mh: New file.
5567 * config/pa/linux.mt: New file.
5568 * config/pa/nm-linux.h: New file.
5569 * config/pa/xm-linux.h: New file.
5570 * hppa-linux-nat.c: New file.
5571 * hppa-linux-tdep.c: New file.
5572
2a6228ef
RC
55732004-04-28 Randolph Chung <tausq@debian.org>
5574
5575 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5576 return values.
5577 (hppa32_push_dummy_call): Fix small struct and floating point argument
5578 passing, and make sure the stack frame is properly aligned.
5579
82c10df6
AC
55802004-04-28 Andrew Cagney <cagney@redhat.com>
5581
d762c46a
AC
5582 * stack.c (print_stack_frame): Fix description.
5583
82c10df6
AC
5584 * NEWS: Mention gdb/gdbserver/configure execute permission
5585 changed. PR server/519.
5586
0faf0076
AC
55872004-04-28 Andrew Cagney <cagney@redhat.com>
5588
5589 * stack.c (print_stack_frame_stub): Delete declaration.
5590 (struct print_stack_frame_args, print_stack_frame)
5591 (print_frame_info, print_frame): Replace "source" with print what.
5592 Replace "print" with "print_level". Replace "args" with
5593 "print_args".
5594 * frame.h (show_and_print_stack_frame, print_stack_frame)
5595 (print_frame_info): Update declarations.
5596 * stack.c (select_and_print_frame, frame_command)
5597 (current_frame_command, up_command, down_command): Update calls -
5598 use get_selected_frame, pass "enum print_what" for source, do not
5599 call frame_relative_level.
5600 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5601 * remote-rdp.c (remote_rdp_open): Ditto.
5602 * remote-mips.c (common_open): Ditto.
5603 * remote-e7000.c (e7000_start_remote): Ditto.
5604 * ocd.c (ocd_start_remote): Ditto.
5605 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5606 * infrun.c (normal_stop): Ditto.
5607 * inflow.c (kill_command): Ditto.
5608 * infcmd.c (finish_command): Ditto.
5609 * corelow.c (core_open): Ditto.
5610 * tracepoint.c (finish_tfind_command): Ditto.
5611 * thread.c (info_threads_command, info_threads_command)
5612 (restore_current_thread, do_captured_thread_select): Ditto.
5613 * ada-tasks.c (task_command): Ditto.
5614
f4c5303c
OF
56152004-04-26 Orjan Friberg <orjanf@axis.com>
5616
5617 * frame.c: Include "observer.h".
5618 (frame_observer_target_changed): New function.
5619 (_initialize_frame): Attach target_changed observer.
5620 * regcache.c: Include "observer.h".
5621 (regcache_observer_target_changed): New function.
5622 (_initialize_regcache): Attach target_changed observer.
5623 * valops.c: Include "observer.h".
5624 (value_assign): Notify target_changed event when modifying register.
5625 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5626
7270d8f2
OF
56272004-04-26 Orjan Friberg <orjanf@axis.com>
5628
5629 From Paul Koning <pkoning@equallogic.com>:
5630 * breakpoint.c (free_valchain): New function.
5631 (insert_bp_location, delete_breakpoint): Use free_valchain.
5632 (remove_breakpoint): Do not remove the valchain.
5633 (bpstat_stop_status): If not stopped by watchpoint, skip
5634 watchpoints when generating stop status list.
5635 * infrun.c (handle_inferior_event): Make
5636 stepped_after_stopped_by_watchpoint a global variable.
5637 * remote.c (remote_stopped_data_address): Return watch data
5638 address rather than zero if stepped_after_stopped_by_watchpoint is
5639 set.
5640
02d62932
MC
56412004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5642
5643 Fix PR gdb/1626.
5644 * configure.in: Check for curses after termcap.
5645 On osf5.*, do not check for ncurses.
5646 * configure: Regenerate.
5647
3e9a183c
MK
56482004-04-25 Mark Kettenis <kettenis@gnu.org>
5649
c79ac407
MK
5650 * ppcobsd-nat.c: Include "ppc-tdep.h".
5651 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5652
3e9a183c
MK
5653 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5654 Fixes PR tdep/1623 and PR tdep/1624.
5655
38cc9c28
MC
56562004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5657
5658 * xmodem.h, xmodem.c: Remove files.
5659 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5660
7f07c5b6
RC
56612004-04-23 Randolph Chung <tausq@debian.org>
5662
5663 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5664 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5665 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5666 for handling stackless frames.
5667 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5668
9f7194c3
RC
56692004-04-23 Randolph Chung <tausq@debian.org>
5670
5671 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5672 starts at a pc before the frame is created.
5673
dcff6009
JB
56742004-04-23 Joel Brobecker <brobecker@gnat.com>
5675
5676 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5677
40711ff1 56782004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5679
5680 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5681 use convert_typed_floating to get the appropriate format.
5682
abc485a1
RC
56832004-04-22 Randolph Chung <tausq@debian.org>
5684
5685 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5686 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5687 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5688 (hppa_sign_extend): Add prototype.
5689 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5690 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5691 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5692 hppa targets will also use these functions.
5693 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5694 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5695 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5696 (hppa_gdbarch_init): Remove gdbarch setting of
5697 skip_trampoline_code, in_solib_call_trampoline and
5698 in_solib_return_trampoline.
5699 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5700 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5701 hppa_in_solib_call_trampoline.
5702 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5703 Moved from hppa-tdep.c.
5704 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5705 in_solib_call_trampoline and in_solib_return_trampoline.
5706
369aa520
RC
57072004-04-22 Randolph Chung <tausq@debian.org>
5708
5709 * hppa-tdep.c (hppa_debug): New variable.
5710 (find_unwind_entry, hppa_frame_cache): Add debug output.
5711 (_initialize_hppa_tdep): Add command to set debug flag.
5712
476be15e
AC
57132004-04-22 Andrew Cagney <cagney@redhat.com>
5714
5715 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5716 "trad-frame.h".
5717 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5718 signal trampoline unwinder.
5719 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5720
d195bc9f
MK
57212004-04-22 Mark Kettenis <kettenis@gnu.org>
5722
5723 Add OpenBSD/powerpc support.
5724 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5725 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5726 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5727 (ppc_collect_fpregset): New prototypes.
5728 * ppcobsd-nat.c: New file.
5729 * ppcobsd-tdep.c: New file.
5730 * ppcobsd-tdep.h: New file.
5731 * rs6000-tdep.c: Include "regset.h".
5732 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5733 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5734 New functions.
5735 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5736 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5737 (rs6000-tdep.o): Update dependencies.
5738 * configure.host: Add powerpc-*-openbsd.
5739 * configure.tgt: Add powerpc-*-openbsd.
5740 * config/powerpc/obsd.mh: New file.
5741 * config/powerpc/nm-obsd.h: New file.
5742 * config/powerpc/obsd.mt: New file.
5743
6f14cc33
AC
57442004-04-22 Andrew Cagney <cagney@redhat.com>
5745
fcf29e5f
AC
5746 * frame.h (show_frame_info): Delete declaration.
5747
6f14cc33
AC
5748 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5749 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5750 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5751 * frv-tdep.c (frv_frame_this_id): Ditto.
5752 * avr-tdep.c (avr_frame_this_id): Ditto.
5753
e5786a5c
EZ
57542004-04-22 Elena Zannoni <ezannoni@redhat.com>
5755
5756 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5757
26e75e5c
JB
57582004-04-22 Jim Blandy <jimb@redhat.com>
5759
5760 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5761 register number zero.
5762
d8d65dd3
MS
57632004-04-21 Michael Snyder <msnyder@redhat.com>
5764
5765 * mips-tdep.c (heuristic_proc_start):
5766 Warning() already prefixes "Warning: ".
5767
9a4105ab
AC
57682004-04-21 Andrew Cagney <cagney@redhat.com>
5769
5770 * annotate.h (deprecated_annotate_starting_hook)
5771 (deprecated_annotate_stopped_hook)
5772 (deprecated_annotate_exited_hook)
5773 (deprecated_annotate_signal_hook)
5774 (deprecated_annotate_signalled_hook): Deprecate.
5775 * tracepoint.h (deprecated_create_tracepoint_hook)
5776 (deprecated_delete_tracepoint_hook)
5777 (deprecated_modify_tracepoint_hook)
5778 (deprecated_trace_find_hook)
5779 (deprecated_trace_start_stop_hook): Deprecate.
5780 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5781 * remote.h (deprecated_target_resume_hook)
5782 (deprecated_target_wait_loop_hook): Deprecate.
5783 * gdbcore.h (deprecated_exec_file_display_hook)
5784 (deprecated_file_changed_hook): Deprecate.
5785 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5786 * defs.h (deprecated_modify_breakpoint_hook)
5787 (deprecated_command_loop_hook, deprecated_show_load_progress)
5788 (deprecated_print_frame_info_listing_hook)
5789 (deprecated_query_hook, deprecated_warning_hook)
5790 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5791 (deprecated_delete_breakpoint_hook)
5792 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5793 (deprecated_readline_begin_hook, deprecated_readline_hook)
5794 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5795 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5796 (deprecated_context_hook, deprecated_target_wait_hook)
5797 (deprecated_attach_hook, deprecated_detach_hook)
5798 (deprecated_call_command_hook, deprecated_set_hook)
5799 (deprecated_error_hook, deprecated_error_begin_hook)
5800 (deprecated_ui_load_progress_hook): Deprecate.
5801 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5802 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5803 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5804 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5805 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5806 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5807 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5808 * annotate.c, aix-thread.c: Update.
5809
62cf13cc
AC
58102004-04-21 Andrew Cagney <cagney@redhat.com>
5811
b2e31a62
AC
5812 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5813 * vaxnbsd-tdep.c: Include "gdb_string.h".
5814
62cf13cc
AC
5815 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5816 (add_symbol_file_from_memory_command): #if 0 function body, call
5817 error instead.
5818
00e32a35
AC
58192004-04-21 Andrew Cagney <cagney@redhat.com>
5820
5821 * gdbcore.h: Update copyright.
5822 (deprecated_add_core_fns): Rename add_core_fns.
5823 * win32-nat.c (_initialize_core_win32): Update.
5824 * sun3-nat.c (_initialize_core_sun3): Update.
5825 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5826 * rs6000-nat.c (_initialize_core_rs6000): Update.
5827 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5828 * nto-tdep.c (_initialize_nto_tdep): Update.
5829 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5830 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5831 * mips-nat.c (_initialize_core_mips): Update.
5832 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5833 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5834 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5835 * lynx-nat.c (_initialize_core_lynx): Update.
5836 * irix5-nat.c (_initialize_core_irix5): Update.
5837 * i386-interix-nat.c (_initialize_core_interix): Update.
5838 * cris-tdep.c (_initialize_cris_tdep): Update.
5839 * corelow.c (deprecated_add_core_fns): Update.
5840 * core-regset.c (_initialize_core_regset): Update.
5841 * core-aout.c (_initialize_core_aout): Update.
5842 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5843 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5844 * alpha-nat.c (_initialize_core_alpha): Update.
5845
13c7b1ca
JB
58462004-04-21 Jim Blandy <jimb@redhat.com>
5847
5848 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5849
7b5a2f43
DJ
58502004-04-19 Daniel Jacobowitz <drow@mvista.com>
5851
5852 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5853 Delete.
5854 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5855 (read_attribute_value): Update calls to dwarf_alloc_block.
5856 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5857 dwarf2_tmp_obstack.
5858 (psymtab_to_symtab_1): Likewise. Clean up using
5859 free_stack_comp_unit.
5860 (add_to_cu_func_list): Use the comp_unit_obstack.
5861
05cf31d1
JB
58622004-04-19 Joel Brobecker <brobecker@gnat.com>
5863
5864 * dwarf2read.c (dwarf2_flag_true_p): New function.
5865 (die_is_declaration): Use the function above. Add some comments.
5866
adf93a2f
MK
58672004-04-19 Mark Kettenis <kettenis@gnu.org>
5868
5869 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5870 architecture when registering sparcnbsd_core_osabi_sniffer.
5871 Adjust comment.
5872
748894bf
MK
58732004-04-18 Mark Kettenis <kettenis@gnu.org>
5874
f622ad42
MK
5875 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5876 return value.
5877
c4fc7f1b
MK
5878 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5879 * i386-tdep.c: Correct register numbering scheme comments
5880 throughout.
5881 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5882 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5883 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5884 (i386_gdb_arch_init): Likewise.
5885
b4ead1bd
MK
5886 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5887 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5888 ppcnbsd-tdep.o.
5889
748894bf
MK
5890 * m68k-tdep.h: Tweak comments.
5891 * m68k-tdep.c: Tweak comment.
5892
fdd72f95
RC
58932004-04-17 Randolph Chung <tausq@debian.org>
5894
5895 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5896 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5897 (hppa_hpux_som_init_abi): Set is_elf to 0.
5898 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5899 * hppa-tdep.c (low_text_segment_address): Remove global.
5900 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5901 section offset to calculate segment address.
5902 (internalize_unwinds): Define low_text_segment_address as local and
5903 pass to record_text_segment_lowaddr for ELF targets.
5904 (hppa_gdbarch_init): Zero fill tdep structure.
5905 (hppa_dump_tdep): Print tdep structure.
5906 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5907
0f8d9d59
RC
59082004-04-17 Randolph Chung <tausq@debian.org>
5909
5910 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5911 (hppa_gdbarch_init): Set pseudo_register_read.
5912 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5913 * regcache.c (supply_register): Remove check for
5914 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5915
7c46b9fb
RC
59162004-04-17 Randolph Chung <tausq@debian.org>
5917
5918 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5919 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5920 (hpread_adjust_stack_address): Move to hpread.c.
5921 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5922 obj_private_struct): Move from tm-hppa.h.
5923 * hpread.c (hppa-tdep.h): Include.
5924 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5925 (hpread_read_function_type, hpread_read_doc_function_type)
5926 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5927 directly.
5928 * pa64solib.c (hppa-tdep.h): Include.
5929 * somsolib.c (hppa-tdep.h): Include.
5930 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5931 inferior_status): Remove unused forward declarations.
5932 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5933 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5934 obj_private_struct): Move to hppa-tdep.h.
5935 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5936
8d153463
RC
59372004-04-17 Randolph Chung <tausq@debian.org>
5938
5939 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5940 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5941 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5942 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5943 Remove forward declaration and make static.
5944 (hppa_reg_struct_has_addr): Remove.
5945
350c2e5b
JB
59462004-04-16 Joel Brobecker <brobecker@gnat.com>
5947
5948 * observer.sh: Move comments in sed command to first column.
5949
bbde78fa
JM
59502004-04-16 Jason Molenda (jmolenda@apple.com)
5951
5952 * frame.c: Minor typeo corrections in comments.
5953
e0270fd9
JB
59542004-04-16 Joel Brobecker <brobecker@gnat.com>
5955
5956 * observer.c (observer_test_first_notification_function): Update
5957 function profile.
5958 (observer_test_second_notification_function): Likewise.
5959 (observer_test_third_notification_function): Likewise.
5960
3d049254
MK
59612004-04-16 Mark Kettenis <kettenis@gnu.org>
5962
5963 From Brian Ford <ford@vss.fsi.com>:
5964 * i386-tdep.c (i386_coff_init_abi): New function.
5965 * i386-tdep.h (i386_coff_init_abi): New prototype.
5966 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5967 register number translation functions for DWARF and DWARF 2.
5968
7867684d
JB
59692004-04-16 Joel Brobecker <brobecker@gnat.com>
5970
5971 * dwarf2read.c: Back out my previous change, it was incorrect.
5972
72bf9492
DJ
59732004-04-16 Daniel Jacobowitz <drow@mvista.com>
5974
5975 * dwarf2read.c: Include "hashtab.h".
5976 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5977 has_namespace_info.
5978 (struct partial_die_info): Add comments. Use bitfields to reduce
5979 memory footprint. Add scope, scope_set, has_specification,
5980 spec_offset, die_parent, die_child, and die_sibling.
5981 (peek_die_abbrev): Add prototype.
5982 (partial_read_comp_unit_head): New function, broken out from
5983 dwarf2_build_psymtabs_hard.
5984 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5985 Use partial_read_comp_unit_head. Initialize the CU and
5986 comp_unit_obstack. Update calls to read_partial_die and
5987 scan_partial_symbols. Use free_stack_comp_unit and
5988 load_partial_dies.
5989 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5990 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5991 Update calls to helper functions. Remove NAMESPACE argument.
5992 Update comments.
5993 (partial_die_parent_scope, partial_die_full_name): New functions.
5994 (add_partial_symbol): Remove namespace argument. Update call to
5995 pdi_needs_namespace. Use partial_die_full_name. Handle
5996 DW_TAG_namespace. Check has_namespace_info flag.
5997 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5998 tag. Handle namespaces.
5999 (add_partial_namespace, add_partial_enumeration): Simplify.
6000 (guess_structure_name): New function, derived from
6001 add_partial_structure.
6002 (add_partial_structure): Remove.
6003 (determine_class_name): Update comment.
6004 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6005 (is_type_tag_for_partial, load_partial_dies): New functions.
6006 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6007 Record specifications instead of following them immediately.
6008 (find_partial_die_in_comp_unit, find_partial_die)
6009 (fixup_partial_die, free_stack_comp_unit)
6010 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6011 (partial_die_hash, partial_die_eq): New functions.
6012 * Makefile.in (hashtab_h): Define.
6013 (dwarf2read.o): Update dependencies.
6014 (observer_inc, observer_h): Move to the correct section.
6015
fdc860a3
JB
60162004-04-15 Joel Brobecker <brobecker@gnat.com>
6017
6018 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6019 (die_is_declaration): Use the function above. Add comment.
6020
dc718098
JB
60212004-04-15 Joel Brobecker <brobecker@gnat.com>
6022
6023 * dwarf2read.c (read_structure_scope): Identify stub types
6024 using die_is_declaration() only.
6025
8718a420
RM
60262004-04-15 Roland McGrath <roland@redhat.com>
6027
6028 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6029 argument instead of NAME.
6030 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6031 in call to symbol_file_add_with_addrs_or_offsets.
6032 (build_addr_info): New function, helper for ...
6033 (symbol_file_add_from_memory): New function.
6034 (add_symbol_file_from_memory_command): New function using that.
6035 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6036 (pre_add_symbol_hook): Add const to argument type.
6037 * symfile.h (symbol_file_add_from_memory): Declare it.
6038
8b910bab
MK
60392004-04-15 Mark Kettenis <kettenis@gnu.org>
6040
9f076e7a
MK
6041 * NEWS (New native configurations): Mention OpenBSD/vax.
6042 * configure.host: Add vax-*-openbsd*.
6043 * config/vax/obsd.mh: New file.
6044 * config/vax/nm-obsd.h: New file.
6045
8b910bab
MK
6046 * vax-tdep.c: Include "regset.h".
6047 (vax_supply_gregset): New function.
6048 (vax_gregset): New variable.
6049 (vax_regset_from_core_section): New function.
6050 (vax_gdbarch_init): Set regset_from_core_section.
6051 * Makefile.in (vax-tdep.o): Update dependencies.
6052
7a464420
AC
60532004-04-15 Andrew Cagney <cagney@redhat.com>
6054
6055 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6056 (observer_normal_stop_notification_stub)
6057 (observer_attach_normal_stop, observer_detach_normal_stop):
6058 Delete, replaced by #include "observer.inc".
6059 * infrun.c (normal_stop): Pass "stop_bpstat" to
6060 observer_notify_normal_stop.
6061 * Makefile.in (observer_inc): Define.
6062 (observer.o): Update dependencies.
6063 (observer.h, observer.inc): New rules.
6064 * observer.h: Delete file.
6065 * observer.sh: New file.
6066
e36ad527
MK
60672004-04-15 Mark Kettenis <kettenis@gnu.org>
6068
6069 * vax-tdep.c (vax_frame_cache): Fix typo.
6070
67b441e1
MK
60712004-04-14 Mark Kettenis <kettenis@gnu.org>
6072
6f606e1c
MK
6073 * NEWS (New native configurations): Mention NetBSD/vax.
6074 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6075 * config/vax/nbsdelf.mh: New file.
6076 * config/vax/nbsdaout.mh: New file.
6077 * config/vax/nm-nbsd.h: New file.
6078 * config/vax/nm-nbsdaout.h: New file.
6079
9c5519a5
MK
6080 * vaxnbsd-tdep.c: New file.
6081 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6082 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6083 * config/vax/nbsd.mt: New file.
6084 * config/vax/tm-nbsd.h: New file.
6085
4844a614
MK
6086 * Makefile.in (vaxbsd-nat.o): New dependency.
6087
67b441e1
MK
6088 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6089 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6090 struct_addr arguments. Don't push return value address.
6091 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6092 arguments to vax_store_arguments. Store return value address in
6093 R1.
6094 (vax_store_struct_return, vax_extract_return_value)
6095 (vax_store_return_value): Remove functions.
6096 (vax_return_value): New function.
6097 (vax_gdbarch_init): Set return value. Don't set
6098 deprecated_store_struct_return, deprecated_extract_struct_return
6099 and deprecated_store_return_value.
6100
6672f2ae
AS
61012004-04-14 Andreas Schwab <schwab@suse.de>
6102
6103 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6104 value buffer.
6105 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6106
7346c184
MK
61072004-04-14 Mark Kettenis <kettenis@gnu.org>
6108
6109 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6110 (vax_unwind_dummy_id): New functions.
6111 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6112 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6113 variables.
6114 (vax_fix_call_dummy): Remove function.
6115 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6116 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6117 call_dummy_location, deprecated_call_dummy_words,
6118 deprecated_sizeof_call_dummy_words,
6119 deprecated_call_dummy_breakpoint_offset,
6120 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6121 and deprecated_dummy_write_sp.
6122
58e23df4
DC
61232004-04-13 David Carlton <carlton@kealia.com>
6124
6125 * MAINTAINERS: Move myself to "paper trail" section.
6126
5e6b39ff
MK
61272004-04-12 Mark Kettenis <kettenis@gnu.org>
6128
7def7fef
MK
6129 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6130 "trad-frame.h".
6131 (vax_frame_init_saved_regs): Remove function.
6132 (vax_sigtramp_saved_pc): Remove function.
6133 (vax_frame_saved_pc): Remove function.
6134 (vax_frame_args_address): Remove function.
6135 (vax_frame_num_args): Rewrite.
6136 (vax_frame_chain): Remove function.
6137 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6138 VAX_FP_REGNUM.
6139 (vax_pop_frame): Likewise.
6140 (vax_saved_pc_after_call): Remove function.
6141 (struct vax_frame_cache): New structure.
6142 (vax_frame_cache): New function.
6143 (vax_frame_this_id): New function.
6144 (vax_frame_prev_register): New function.
6145 (vax_frame_unwind): New variable.
6146 (vax_frame_sniffer): New function.
6147 (vax_frame_base_address): New function.
6148 (vax_frame_args_address): New function.
6149 (vax_frame_base): New variable.
6150 (vax_unwind_pc): New function.
6151 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6152 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6153 deprecated_frame_chain, deprecated_frame_saved_pc,
6154 deprecated_frame_args_address and
6155 deprecated_frame_init_saved_regs.
6156 * Makefile.in (vax-tdep.o): Update dependencies.
6157
53284fc1
MK
6158 * vaxbsd-nat.c: New file.
6159
5e6b39ff
MK
6160 * vax-tdep.h: Update copyright year. Adjust comments.
6161 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6162 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6163 (vax_regnum): New enum. Replacing...
6164 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6165 (VAX_PS_REGNUM): ... these removed macros.
6166 * vax-tdep.c (vax_register_name): Remove prototype.
6167 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6168 (vax_register_byte, vax_register_raw_size,
6169 vax_register_virtual_size, vax_register_virtual_type): Remove
6170 functions.
6171 (vax_register_type): New function.
6172 (vax_breakpoint_from_pc): Reorganize.
6173 (vax_gdbarch_init): Set register_type. Don't set
6174 deprecated_register_size, deprecated_register_bytes,
6175 deprecated_register_byte, deprecated_register_raw_size,
6176 deprecated_max_register_raw_size,
6177 deprecated_register_virtual_size,
6178 deprecated_max_register_virtual_size and
6179 deprecated_register_virtual_type. Add comment on stack direction.
6180
e9c71e9f
MK
61812004-04-11 Mark Kettenis <kettenis@gnu.org>
6182
6183 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6184 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6185 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6186
d46f1176 61872004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6188
d46f1176
RC
6189 * MAINTAINERS (write after approval): Add myself.
6190
a2a84a72
RC
61912004-04-07 Randolph Chung <tausq@debian.org>
6192
6193 * hppa-tdep.c (hppa_inner_than): Remove.
6194 (is_pa_2): Remove unused static variable.
8718a420 6195 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6196
e85c3284
PH
61972004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6198
6199 * language.h (language_defn): Add new la_post_parser field.
6200 * parser-defs.h (null_post_parser): New declaration (default for
6201 la_post_parser).
8718a420 6202
e85c3284
PH
6203 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6204 insert call to that function.
6205 (parse_exp_in_context): New function, including code formerly in
8718a420 6206 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6207 prefixification.
6208 (parse_expression_in_context): New exported function.
6209 (null_post_parser): New definition.
6210 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6211
e85c3284
PH
6212 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6213 * c-lang.c (c_language_defn): Ditto.
6214 (cplus_language_defn): Ditto.
6215 (asm_language_defn): Ditto.
6216 (minimal_language_defn): Ditto.
6217 * f-lang.c (f_language_defn): Ditto.
6218 * jv-lang.c (java_language_defn): Ditto.
6219 * language.c (unknown_language_defn): Ditto.
6220 (auto_language_defn): Ditto.
6221 (local_language_defn): Ditto.
6222 * m2-lang.c (m2_language_defn): Ditto.
6223 * scm-lang.c (scm_language_defn): Ditto.
6224 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6225
d9f8c85b
MK
62262004-04-10 Mark Kettenis <kettenis@gnu.org>
6227
fa34704a
MK
6228 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6229 (amd64nbsd_mcontext_addr): New function.
6230 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6231 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6232 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6233
403e1656
MK
6234 * corelow.c (core_xfer_partial): Fix coding standards violation.
6235 Add support for TARGET_OBJECT_WCOOKIE.
6236
a57e5a95
MK
6237 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6238 deprecated_pc_in_sigtramp.
6239 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6240 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6241 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6242 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6243 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6244 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6245 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6246
377d9ebd
MK
6247 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6248 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6249 Fix typo.
6250
f0ef85a5
MK
6251 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6252 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6253 (amd64_collect_fxsave): Likewise.
6254
d9f8c85b
MK
6255 * i386-sol2-tdep.c: Include "gdb_string.h".
6256 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6257 name.
6258 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6259
75f501b5
MK
62602004-04-10 Mark Kettenis <kettenis@gnu.org>
6261
6262 * i386-sol2-tdep.c: Include "solib-svr4.h".
6263 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6264 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6265 * config/i386/tm-i386sol2.h: Include :solib.h".
6266 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6267 solib-svr4.o and solib-legacy.o.
6268 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6269 solib-svr4.o.
6270
b31bc724
MK
62712004-04-09 Mark Kettenis <kettenis@gnu.org>
6272
18bbbd9e
MK
6273 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6274 whether a register is supplied by PTRACE_GETFPREGS.
6275 (store_inferior_registers): Likewise.
6276 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6277 whether a register is supplied by PT_GETFPREGS.
6278 (store_inferior_registers): Likewise.
6279
3c30bf1b
MK
6280 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6281 * config/i386/linux64.mt (TDEPFILES): Likewise.
6282
a4194092
MK
6283 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6284
911bc6ee
MK
6285 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6286 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6287 the program counter is in the range specified by `struct
6288 gdbarch_tdep'.
6289 * amd64-linux-tdep.c: Include "symtab.h".
6290 (amd64_linux_pc_in_sigtramp): Remove function.
6291 (amd64_linux_sigtramp_p): New function.
6292 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6293 deprecated_pc_in_sigtramp.
6294 * amd64nbsd-tdep.c: Include "symtab.h".
6295 (amd64nbsd_sigtramp_p): New function.
6296 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6297 deprecated_pc_in_sigtramp.
6298 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6299 few comments.
6300 (amd64obsd_pc_in_sigtramp): Remove function.
6301 (amd64obsd_sigtramp_p): New function.
6302 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6303 deprecated_pc_in_sigtramp.
6304 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6305 (i386bsd_pc_ins_sigtramp): Remove prototype.
6306 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6307 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6308 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6309 the program counter is in the range specified by `struct
6310 gdbarch_tdep'.
6311 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6312 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6313 (i386_go32_pc_in_sigtramp): Remove function.
6314 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6315 Initialize TDEP->sigtramp_p.
6316 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6317 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6318 deprecated_pc_in_sigtramp.
6319 * i386-linux-tdep.c: Adjust comments.
6320 (i386_linux_pc_in_sigtramp): Remove function.
6321 (i386_linux_sigtramp_p): New function.
6322 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6323 deprecated_pc_in_sigtramp.
6324 * i386-nto-tdep.c: Update copyright year.
6325 (i386nto_pc_in_sigtramp): Remove function.
6326 (i386nto_sigtramp_p): New function.
6327 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6328 SP_REGNUM.
6329 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6330 deprecated_pc_in_sigtramp.
6331 * i386-sol2-tdep.c: Update copyright year.
6332 (i386_sol2_pc_in_sigtramp): Remove function.
6333 (i386_sol2_sigtramp_p): New function.
6334 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6335 deprecated_pc_in_sigtramp.
6336 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6337 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6338 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6339 deprecated_sigtramp_start and deprecated_sigtramp_end.
6340 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6341 (i386nbsd_pc_in_sigtramp): Remove function.
6342 (i386nbsd_sigtramp_p): New function.
6343 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6344 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6345 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6346 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6347 (i386obsd_pc_in_sigtramp): Remove function.
6348 (i386obsd_sigtramp_p): New function.
6349 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6350 functions.
6351 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6352 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6353 TDEP->sigtramp_p.
6354 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6355 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6356 dependencies.
6357
e083e6ec
MK
6358 * config/i386/i386aout.mt: Remove file.
6359
bd153b94
MK
6360 * configure.tgt: Remove i[34567]86-*-go32*,
6361 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6362 and i[34567]86-*-isc*. Set gdb_target to i386 for
6363 i[34567]86-*-netware* and i[34567]86-*-*.
6364 * config/i386/i386.mt: New file.
6365 * config/i386/embed.mt: Remove file.
6366 * config/i386/go32.mt: Remove file.
6367 * config/i386/i386nw.mt: Remove file.
6368 * config/i386/i386v.mt: Remove file.
6369 * config/i386/tm-go32.h: Remove file.
6370
4a1bcc8c
MK
6371 * tui/tui-hooks.c: Include "readline/readline.h" after
6372 "gdb_curses.h" instead of before.
6373 * tui/tui-io.c: Likewise.
6374
f9a79064
MK
6375 * tui/tui.c: Fix typo in comment.
6376
b31bc724
MK
6377 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6378
f83f82bc
AC
63792004-04-08 Andrew Cagney <cagney@redhat.com>
6380
6381 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6382 (deprecated_exception_support_initialized): Declare.
8718a420 6383 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6384 (initialize_hp_cxx_exception_support)
6385 (child_enable_exception_callback): Update.
6386 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6387 (deprecated_exception_support_initialized): Rename
6388 deprecated_exception_catchpoints_are_fragile and
6389 deprecated_exception_support_initialized.
6390 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6391
6392 * symtab.c (deprecated_hp_som_som_object_present): Rename
6393 hp_som_som_object_present.
6394 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6395 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6396 Update. Delete extern declaration.
6397 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6398 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6399 (parse_nested_classes_for_hpacc): Ditto.
6400 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6401 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6402 (initialize_hp_cxx_exception_support): Ditto.
6403 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6404 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6405 (cp_print_class_method): Ditto.
8718a420 6406 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6407 (c_type_print_base): Ditto.
6408 * c-exp.y (hp_som_som_object_present): Ditto.
6409
fb2be677
AC
64102004-04-08 Andrew Cagney <cagney@redhat.com>
6411
6412 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6413 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6414 (frame_unwind_find_by_frame): Re-implement the unwind code so
6415 that it can both prepend and append sniffers. Replace
6416 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6417 * tramp-frame.c (tramp_frame_append): Use
6418 frame_unwind_prepend_unwinder.
6419 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6420 frame_unwind_register_unwinder.
6421 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6422 tramp_frame_append.
6423 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6424 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6425 (mips_linux_init_abi): Update.
6426
67faf007
KB
64272004-04-08 Kevin Buettner <kevinb@redhat.com>
6428
6429 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6430 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6431 file support.
6432
8973ff21
KB
64332004-04-07 Kevin Buettner <kevinb@redhat.com>
6434
6435 * ia64-tdep.c (elf.h): Don't include.
6436 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6437
4a0e2f88
JM
64382004-04-07 Jason Molenda (jmolenda@apple.com)
6439
6440 * frame.h: Typeo corrections in comments.
6441
9872ad24
JB
64422004-04-07 Jim Blandy <jimb@redhat.com>
6443
6444 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6445 %esp and %ebp
6446
70b216c8
MK
64472004-04-07 Mark Kettenis <kettenis@gnu.org>
6448
11d5789c
MK
6449 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6450 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6451 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6452 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6453 and solib-legacy.o.
6454 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6455 solib-svr4.o.
6456 * config/sparc/tm-sol2.h: Update copyright year. Include
6457 "solib.h".
6458
70b216c8
MK
6459 * sparc-sol2-tdep.c: Update copyright year. Include
6460 "solib-svr4.h".
6461 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6462 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6463 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6464 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6465 dependencies.
6466
6339dc9e
AC
64672004-04-06 Andrew Cagney <cagney@redhat.com>
6468
6469 * infttrace.c: Include "infttrace.h".
6470 * infttrace.h: Include "target.h".
6471 * Makefile.in (infttrace_h): Update.
6472 (infttrace.o): Update.
8718a420 6473
93449403
AC
64742004-04-06 Andrew Cagney <cagney@redhat.com>
6475
6d518969
AC
6476 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6477 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6478 move extern declarations from here ...
6479 * infttrace.h: ... to here.
6480 * Makefile.in (hppah-nat.o): Update dependencies.
6481
85f4f2d8
AC
6482 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6483 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6484 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6485 (hppa_breakpoint_from_pc): Delete.
6486
93449403
AC
6487 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6488
71456ec6
AC
64892004-04-05 Andrew Cagney <cagney@redhat.com>
6490
6491 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6492 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6493 <sys/file.h>.
8718a420 6494
4c02c60c
AC
64952004-04-06 Randolph Chung <tausq@debian.org>
6496
6497 Committed by Andrew Cagney (mechanical change).
6498 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6499 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6500 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6501 child_enable_exception_callback, current_ex_event,
6502 null_symtab_and_line, child_get_current_exception_event,
6503 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6504 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6505 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6506 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6507 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6508 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6509 Move hpux-specific definitions ...
6510 * hppa-hpux-tdep.c: ... to here.
6511
3a515653
AC
65122004-04-05 Andrew Cagney <cagney@redhat.com>
6513
6514 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6515 skip_prologue_using_sal.
6516
c1730d02
AC
65172004-04-05 Andrew Cagney <cagney@redhat.com>
6518
6519 * config/i386/tm-i386.h: Delete file.
6520 * config/i386/tm-vxworks.h: Update copyright, do not include
6521 "tm-i386.h".
6522 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6523 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6524 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6525 * config/i386/ncr3000.mt (TM_FILE): Delete.
6526 * config/i386/interix.mt (TM_FILE): Delete.
6527 * config/i386/i386v.mt (TM_FILE): Delete.
6528 * config/i386/i386nw.mt (TM_FILE): Delete.
6529 * config/i386/i386gnu.mt (TM_FILE): Delete.
6530 * config/i386/i386aout.mt (TM_FILE): Delete.
6531 * config/i386/embed.mt (TM_FILE): Delete.
6532
8b67aa36
KB
65332004-04-05 Kevin Buettner <kevinb@redhat.com>
6534
6535 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6536 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6537 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6538 (accg7_regnum): New constants.
6539 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6540 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6541 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6542 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6543 for accg registers.
6544 (frv_register_sim_regno): Update spr_map[].
6545
3c7012f5
AC
65462004-04-04 Andrew Cagney <cagney@redhat.com>
6547
6548 * config/mips/xm-riscos.h: Delete.
6549 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6550 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6551 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6552 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6553 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6554 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6555 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6556 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6557 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6558 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6559 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6560 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6561 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6562 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6563 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6564 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6565 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6566 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6567 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6568 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6569 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6570 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6571 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6572 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6573 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6574 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6575
3c7012f5
AC
6576 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6577 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6578 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6579 * configure.host: Remove m680[01]0-sun-sunos3*,
6580 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6581 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6582 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6583 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6584 mips-*-riscos*.
6585 * NEWS: Mention removed systems.
6586
99d16a21
AC
65872004-04-04 Andrew Cagney <cagney@redhat.com>
6588
6589 GDB 6.1 release created from 6.1 branch.
6590
6cdf9d98
AC
65912004-04-04 Andrew Cagney <cagney@redhat.com>
6592
98d346c3
AC
6593 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6594 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6595 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6596
6cdf9d98
AC
6597 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6598 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6599 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6600
859a326d
JB
66012004-04-03 Jim Blandy <jimb@redhat.com>
6602
6603 * MAINTAINERS: Chris Faylor has changed employers; add him to
6604 "paper trail" section, and update his E-mail address.
6605
b87178c3
AC
66062004-04-03 Andrew Cagney <cagney@redhat.com>
6607
4ea2acf0
AC
6608 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6609 generic dummy frames.
6610 * dummy-frame.c: Update copyright.
6611 (dummy_frame_sniffer): Delete check for generic dummy frames.
6612
d0bd2d18 6613 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6614 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6615 (REG_PARM_STACK_SPACE): Delete.
6616 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6617 Inline reference to REG_PARM_STACK_SPACE.
6618
b87178c3
AC
6619 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6620 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6621 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6622 (FRAME_BASE_BEFORE_SIGTRAMP)
6623 (hppa32_hpux_frame_base_before_sigtramp)
6624 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6625 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6626 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6627 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6628 (FRAME_BASE_BEFORE_SIGTRAMP)
6629 (hppa64_hpux_frame_base_before_sigtramp)
6630 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6631
43e2e1a0
AC
66322004-04-03 Andrew Cagney <cagney@redhat.com>
6633
6634 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6635
ddc135a4
AC
66362004-04-02 Andrew Cagney <cagney@redhat.com>
6637
6638 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6639 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6640 * dummy-frame.h: Delete out-of-date comments.
6641 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6642 * gdbarch.h, gdbarch.c: Re-generate.
6643
d15bfd3a 66442004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6645
d15bfd3a
AC
6646 Committed by Andrew Cagney <cagney@redhat.com>.
6647 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6648 into account an instruction saving a register if we have already
6649 seen an earlier instruction saving that same register.
6650
f04ceafa
AC
66512004-04-02 Andrew Cagney <cagney@redhat.com>
6652
08be3abd
AC
6653 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6654 * gdbarch.h, gdbarch.c: Re-generate.
6655 * frame.c (legacy_get_prev_frame): Delete references to
6656 DEPRECATED_INIT_FRAME_PC_FIRST.
6657
f04ceafa
AC
6658 * infrun.c (pc_in_sigtramp): Delete function.
6659 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6660 get_frame_type.
6661
08e69816
AC
66622004-04-02 Andrew Cagney <cagney@redhat.com>
6663
6664 * infrun.c (handle_step_into_function): Delete code conditional on
6665 legacy_frame_p.
6666 (handle_inferior_event, step_over_function): Ditto.
6667
adb54772
AC
66682004-04-02 Andrew Cagney <cagney@redhat.com>
6669
6670 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6671 "previous frame inner to this frame" test.
6672
304396fb
AC
66732004-04-02 Andrew Cagney <cagney@redhat.com>
6674
6675 * frame.c (safe_frame_unwind_memory): New function.
6676 * frame.h (safe_frame_unwind_memory): Declare. Update description
6677 of /safe_/ methods.
6678 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6679 "next_frame". Use safe_frame_unwind_memory.
6680 (tramp_frame_sniffer): Update call to tramp_frame_start.
6681
6502dd73
DJ
66822004-04-01 Daniel Jacobowitz <drow@mvista.com>
6683
6684 * dwarf2read.c (dwarf2_objfile_data_key): New.
6685 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6686 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6687 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6688 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6689 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6690 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6691 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6692 Remove variables.
6693 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6694 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6695 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6696 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6697 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6698 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6699 Remove macros.
6700 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6701 data.
6702 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6703 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6704 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6705 (read_partial_die, read_full_die, read_indirect_string)
6706 (dwarf_decode_line_header, dwarf_decode_macros)
6707 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6708 Update uses of removed variables.
6709 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6710 of removed macros.
6711 (_initialize_dwarf2_read): New function.
6712 * symfile.h (dwarf2_has_info): Update prototype.
6713 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6714 * elfread.c (elf_symfile_read): Likewise.
6715
408752b0
JB
67162004-04-01 Jim Blandy <jimb@redhat.com>
6717
9f744501
JB
6718 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6719 function for register numbers on all the rs6000-derived targets.
6720 (rs6000_gdbarch_init): Don't register a separate
6721 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6722 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6723 variants.
6724
408752b0
JB
6725 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6726 numbering.
6727
2de41bce
PH
67282004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6729
6730 * valarith.c: Update copyright notice.
6731 (value_add): Handle range types.
6732 (value_sub): Ditto.
6733 (value_equal): Ditto.
6734 (value_less): Ditto.
6735 (value_neg): Ditto.
6736 (value_complement): Ditto.
8718a420 6737 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6738 eliminiating unnecessary COERCE_ENUMs.
8718a420 6739
5613d8d3
AC
67402004-03-31 Andrew Cagney <cagney@redhat.com>
6741
6742 * frame.h (frame_unwind_id): Declare.
6743 * frame.c (frame_unwind_id): New function.
6744 (get_prev_frame_1): New function.
6745 (frame_debug_got_null_frame): New function.
6746 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6747 code proper to prev_frame, update description.
6748 * infrun.c (step_over_function): Use frame_unwind_id.
6749
c4557624
JB
67502004-04-31 J. Brobecker <brobecker@gnat.com>
6751
6752 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6753 (hppa64_push_dummy_call): Likewise.
6754
3e6bb910
JB
67552004-03-30 Jim Blandy <jimb@redhat.com>
6756
6757 From Ulrich Weigand:
6758 * utils.c (query): Do not use a va_list variable multiple times.
6759
a2f23071
DJ
67602004-03-29 Daniel Jacobowitz <drow@mvista.com>
6761
6762 * Makefile.in (linux_nat_h): Update dependencies.
6763 * configure.in: Check for <gnu/libc-version.h>.
6764 * configure: Regenerate.
6765 * config.in: Regenerate.
6766 * linux-nat.h: Include "target.h". Add waitstatus field to
6767 struct lwp_info.
6768 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6769 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6770 to.
6771 (lin_lwp_handle_extended): New function. Handle clone events.
6772 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6773 thread exit events.
6774 (child_wait): Handle clone events.
6775 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6776 * linux-nat.c (linux_enable_event_reporting): Turn on
6777 PTRACE_O_TRACECLONE.
6778 (linux_handle_extended_wait): Handle clone events.
6779 * thread-db.c: Include <gnu/libc-version.h>.
6780 (struct private_thread_info): Add dying flag.
6781 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6782 higher.
6783 (attach_thread): Update comments. Handle dying threads.
6784 (detach_thread): Set the dying flag.
6785 (check_event): Always call attach_thread.
6786
8d5f9dcb
DJ
67872004-03-29 Daniel Jacobowitz <drow@mvista.com>
6788
6789 * mips-tdep.c (mips_pdr_data): New.
6790 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6791 (_initialize_mips_tdep): Initialize mips_pdr_data.
6792
66337bb1
CV
67932004-03-29 Corinna Vinschen <vinschen@redhat.com>
6794
6795 * minsyms.c (install_minimal_symbols): Move dropping leading
6796 char from linkage name from here...
6797 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6798 test for "__gnu_compiled*" symbols.
6799
e802b915
JB
68002004-03-28 Jim Blandy <jimb@redhat.com>
6801
6802 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6803 registers to temp register r0 and byte stores as prologue
6804 instructions.
6805
72b56458
AC
68062004-03-28 Andrew Cagney <cagney@redhat.com>
6807
6808 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6809 arm*-*-*.
6810
0bfbda3b
SC
68112004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6812
6813 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6814 and switch the layout to force a display of register window.
6815
5a7225ed
JB
68162004-02-26 J. Brobecker <brobecker@gnat.com>
6817
6818 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6819 of the INTEGER class.
6820
81a07a45
JB
68212004-03-26 Jim Blandy <jimb@redhat.com>
6822
6823 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6824 bytes long on PPC GNU/Linux.
6825
8c691c7a
DC
68262004-03-26 David Carlton <carlton@kealia.com>
6827
6828 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6829
103a0089
AC
68302004-03-25 Andrew Cagney <cagney@redhat.com>
6831
6832 * PROBLEMS: Add general section titles, remove references to
6833 specific releases.
6834
7a5ea0d4
DJ
68352004-03-25 Daniel Jacobowitz <drow@mvista.com>
6836
6837 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6838 INT_REGISTER_SIZE.
6839 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6840 FP_REGISTER_VIRTUAL_SIZE.
6841 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6842 of DEPRECATED_REGISTER_RAW_SIZE.
6843 (arm_register_type): Add gdbarch argument.
6844 (arm_register_raw_size, arm_register_virtual_size): Delete.
6845 (arm_register_byte, arm_extract_return_value)
6846 (arm_store_return_value, arm_get_longjmp_target): Update references
6847 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6848 (arm_gdbarch_init): Likewise. Don't set
6849 deprecated_register_raw_size, deprecated_register_virtual_size,
6850 deprecated_max_register_raw_size,
6851 deprecated_max_register_virtual_size, or
6852 deprecated_max_register_virtual_type. Do set register_type.
6853 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6854 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6855 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6856 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6857 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6858 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6859 INT_REGISTER_SIZE.
6860 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6861 (remote_rdp_store_register): Likewise.
6862
5792a79b
DJ
68632004-03-24 Daniel Jacobowitz <drow@mvista.com>
6864
6865 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6866 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6867 to after osabi initialization.
6868 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6869 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6870 functions.
6871 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6872 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6873 variables.
6874 (mips_linux_init_abi): Append signal trampoline unwinders.
6875
1196bfda
AC
68762004-03-24 Andrew Cagney <cagney@redhat.com>
6877
6878 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6879 * tramp-frame.c: Include "gdb_assert.h".
6880 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6881 correct sizeof.
6882 (tramp_frame_append): Validate the tramp frame's instructions.
6883 * Makefile.in (tramp-frame.o): Update dependencies.
6884
4be282b4
AC
68852004-03-23 Andrew Cagney <cagney@redhat.com>
6886
6887 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6888
69aec09b
AC
68892004-03-23 Andrew Cagney <cagney@redhat.com>
6890
6891 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6892 Nasser as past testsuite/lib/ (and other) maintainers.
6893
63ed89b4
DJ
68942004-03-23 Daniel Jacobowitz <drow@mvista.com>
6895
6896 * infcmd.c (attach_command): Reread symbols if we already have
6897 an exec file.
6898
f3b36427
AC
68992004-03-23 Andrew Cagney <cagney@redhat.com>
6900
6901 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6902
aa2a3f87
AC
69032004-03-23 Andrew Cagney <cagney@redhat.com>
6904
6905 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6906 * gdbarch.h, gdbarch.c: Re-generate.
6907 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6908 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6909 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6910 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6911 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6912 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6913 (DEPRECATED_SIGTRAMP_START): Update.
6914 * blockframe.c (find_pc_sect_partial_function): Update.
6915 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6916
00cac895
DJ
69172004-03-23 Daniel Jacobowitz <drow@mvista.com>
6918
6919 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6920 if necessary.
6921
f561f026
AC
69222004-03-23 Andrew Cagney <cagney@redhat.com>
6923
6924 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6925 predicate, deprecate.
6926 * gdbarch.h, gdbarch.c: Re-generate.
6927 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6928 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6929 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6930 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6931 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6932 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6933 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6934 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6935 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6936 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6937 * blockframe.c (find_pc_partial_function): Update.
6938 * breakpoint.c (bpstat_what): Update.
6939 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6940 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6941 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6942 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6943 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6944 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6945 * i386-nto-tdep.c (i386nto_init_abi): Update.
6946 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6947 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6948 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6949 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6950 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6951 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6952 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6953 * infrun.c (pc_in_sigtramp): Update.
6954 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6955 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6956 * mips-tdep.c (mips_gdbarch_init): Update.
6957 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6958 * ppc-linux-tdep.c: Update comment.
6959 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6960 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6961 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6962 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6963 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6964 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6965 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6966 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6967 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6968 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6969
8050c72f
AC
69702004-03-23 Andrew Cagney <cagney@redhat.com>
6971
d2259dd3
AC
6972 * tramp-frame.h, tramp-frame.h: New files.
6973 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6974 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6975
8050c72f
AC
6976 * Makefile.in: Update all dependencies.
6977
0db9b4b7
AC
69782004-03-23 Andrew Cagney <cagney@redhat.com>
6979
6980 * Makefile.in (trad_frame_h): Add $(frame_h).
6981 * trad-frame.h: Update copyright. Include "frame.h".
6982 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6983 (trad_frame_set_id, trad_frame_get_id): Declare.
6984 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6985 * trad-frame.c: Update copyright.
6986 (struct trad_frame_cache): Define.
6987 (trad_frame_cache_zalloc): New function.
6988 (trad_frame_set_id, trad_frame_get_id): New functions.
6989 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6990
8e645ae7
AC
69912004-03-22 Andrew Cagney <cagney@redhat.com>
6992
6993 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6994 s390_pltstub_unwind_cache.
6995 (s390_stub_frame_unwind_cache): Rename
6996 s390_pltstub_frame_unwind_cache.
6997 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6998 (s390_stub_frame_prev_register): Rename
6999 s390_pltstub_frame_prev_register.
7000 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7001 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7002
7003 From Ulrich Weigand:
7004 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7005 pointer calls like PLT calls.
7006
34fcf120
DJ
70072004-03-22 Daniel Jacobowitz <drow@mvista.com>
7008
7009 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7010 PC rather than the partial function start address. Use the start
7011 address to sanity check the found PDR.
7012
5b917078
DJ
70132004-03-22 Daniel Jacobowitz <drow@mvista.com>
7014
7015 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7016 linux_handle_extended_wait.
7017
8adf9e78
AC
70182004-03-22 Andrew Cagney <cagney@redhat.com>
7019
c3122434
AC
7020 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7021 function.
7022
8adf9e78
AC
7023 * frame.h (generic_pop_current_frame): Delete declaration.
7024 (deprecate_pop_dummy_frame): Deprecate
7025 generic_pop_dummy_frame.
7026 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7027 (generic_pop_current_frame): Delete function.
7028 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7029 generic_pop_current_frame.
7030 * v850-tdep.c (v850_pop_frame): Update.
7031 * mcore-tdep.c (mcore_pop_frame): Update.
7032 * sh64-tdep.c (sh64_pop_frame): Update.
7033 * h8300-tdep.c (h8300_pop_frame): Update.
7034
90ba813f
AC
70352004-03-22 Andrew Cagney <cagney@redhat.com>
7036
7037 * frame.h (deprecated_pc_in_call_dummy): Rename
7038 generic_pc_in_call_dummy.
7039 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7040 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7041 generic_pc_in_call_dummy.
7042 (pc_in_dummy_frame): Make static.
7043 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7044 * gdbarch.h, gdbarch.c: Re-generate.
7045 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7046 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7047 (legacy_get_prev_frame): Ditto.
7048 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7049 comment.
8718a420 7050
ca4bb888
AC
70512004-03-21 Andrew Cagney <cagney@redhat.com>
7052
244675f9
AC
7053 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7054 declaration and out-of-date comment.
7055 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7056 Delete function.
7057 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7058 deprecated_pc_in_call_dummy.
7059
ca4bb888
AC
7060 * infrun.c (handle_inferior_event): For non legacy frames, use the
7061 frame ID and frame type to identify a signal trampoline. Update
7062 comments.
7063
1777c7b4
NW
70642004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7065
7066 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7067 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7068
82417da5
AC
70692004-03-21 Andrew Cagney <cagney@redhat.com>
7070
7071 * frame-unwind.h: Update copyright.
7072 (struct frame_data): Add opaque declaration.
7073 (frame_sniffer_ftype): Declare.
7074 (struct frame_unwind): Add "unwind_data" and "sniffer".
7075 (frame_unwind_register_unwinder): Declare.
7076 (frame_unwind_find_by_frame): Add parameter "this_cache".
7077 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7078 (legacy_get_prev_frame, legacy_get_prev_frame)
7079 (get_frame_type): Pass the prologue_cache to
7080 frame_unwind_find_by_frame.
7081 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7082 "unwinder".
7083 (frame_unwind_register_unwinder): New function.
7084 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7085
b2ba182e
PH
70862004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7087
7088 * bcache.c (print_percentage): Use floating point to avoid
7089 incorrect results when portion*100 overflows.
7090
81332287
KB
70912004-03-19 Kevin Buettner <kevinb@redhat.com>
7092
7093 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7094 (ppc_linux_init_extra_frame_info)
7095 (ppc_linux_frameless_function_invocation)
7096 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7097 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7098 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7099 (rs6000_frame_chain): Delete declarations.
7100 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7101 (ppc_linux_init_extra_frame_info)
7102 (ppc_linux_frameless_function_invocation)
7103 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7104 (ppc_linux_init_abi): Remove registration of above deleted functions.
7105 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7106 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7107 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7108 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7109 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7110 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7111 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7112 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7113 frame management for all OSABIs.
7114
61a65099
KB
71152004-03-19 Andrew Cagney <cagney@redhat.com>
7116
7117 Committed by Kevin Buettner <kevinb@redhat.com>.
7118
7119 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7120 Update copyright.
7121 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7122 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7123 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7124 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7125 unwinders. #ifdef legacy frame code.
7126 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7127 "frame-base.h".
7128 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7129 (struct rs6000_frame_cache, rs6000_frame_cache)
7130 (rs6000_frame_this_id, rs6000_frame_prev_register)
7131 (rs6000_frame_sniffer, rs6000_frame_unwind)
7132 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7133 (rs6000_frame_base): Implement a traditional frame unwinder.
7134 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7135 frame unwinder.
7136
88f7da05
KB
71372004-03-19 Kevin Buettner <kevinb@redhat.com>
7138
7139 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7140 breakpoint address for watchpoints or the catch eventpoints.
7141 Add new paramter ``bptype''. Adjust all callers.
7142
f826dce1
AC
71432004-03-19 Andrew Cagney <cagney@redhat.com>
7144
33cb8b0f
AC
7145 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7146
f826dce1
AC
7147 * PROBLEMS: Delete note that ARM does not use frame code, problem
7148 fixed.
7149
43b1ab88
AC
71502004-03-18 Andrew Cagney <cagney@redhat.com>
7151
292ab034
AC
7152 * stack.c (return_command): Delete code wrapped in #ifdef
7153 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7154
43b1ab88
AC
7155 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7156
dbfe4626
AC
71572004-03-18 Andrew Cagney <cagney@redhat.com>
7158
7159 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7160 DEPRECATED_IN_SIGTRAMP.
7161 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7162 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7163 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7164 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7165 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7166 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7167 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7168 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7169 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7170 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7171
0cad6aec
AC
71722004-03-18 Andrew Cagney <cagney@redhat.com>
7173
7174 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7175 (struct frame_base_table_entry): Define.
7176 (struct frame_base_table): Re-implement as a linked list.
7177 (frame_base_init): Re-implement.
7178 (frame_base_table): Delete function.
7179 (append_predicate): Delete function.
7180 (frame_base_append_sniffer): Update.
7181 (frame_base_set_default): Update.
7182 (frame_base_find_by_frame): Update.
7183 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7184 * Makefile.in (frame-base.o): Update dependencies.
7185
9982c2e7
AC
71862004-03-17 Andrew Cagney <cagney@redhat.com>
7187
7188 * frame.c (legacy_get_prev_frame): Pass correct frame to
7189 frame_unwind_find_by_frame.
7190
8dfe8985
DC
71912004-03-17 David Carlton <carlton@kealia.com>
7192
7193 * NEWS: Mention C++ nested types and namespaces
7194
ed47347a
MC
71952004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7196
7197 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7198 and "Regressions since gdb 5.3.". Add known regressions since
7199 gdb 6.0.
7200
90aeadfc
DC
72012004-03-16 David Carlton <carlton@kealia.com>
7202
7203 * dwarf2read.c (process_structure_scope): Process children even
7204 when we're a declaration.
7205
73912b9b
AC
72062004-03-16 Andrew Cagney <cagney@redhat.com>
7207
7208 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7209 * blockframe.c (find_pc_partial_function)
7210 (find_pc_sect_partial_function): Merge into a single
7211 find_pc_partial_function.
7212
283accbc
MK
72132004-03-16 Mark Kettenis <kettenis@gnu.org>
7214
7215 * i386bsd-nat.c: s/regno/regnum/g.
7216 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7217 FP0_REGNUM.
7218 (store_inferior_registers): Likewise.
7219
f5b1afdf
MK
72202004-03-16 Mark Kettenis <kettenis@gnu.org>
7221
7222 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7223 of i387_fill_fsave.
7224 (store_inferior_registers): Call i387_collect_fsave and
7225 i387_collect_fxsave instead of i387_fill_fsave and
7226 i387_fill_fxsave.
7227
41fe5eb3
AC
72282004-03-15 Andrew Cagney <cagney@redhat.com>
7229
7230 * Makefile.in (frame-unwind.o): Update dependencies.
7231 * frame-unwind.c: Include "gdb_obstack.h".
7232 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7233 parameter.
7234 (append_predicate): Delete function.
7235 (struct frame_unwind_table_entry): New structure.
7236 (struct frame_unwind_table): Replace "sniffer" with "head" and
7237 "tail".
7238 (frame_unwind_append_sniffer): Update.
7239 (frame_unwind_find_by_frame): Update.
7240 (_initialize_frame_unwind): Registe frame_unwind_init using
7241 gdbarch_data_register_pre_init.
7242
3f63813d
MK
72432004-03-15 Mark Kettenis <kettenis@gnu.org>
7244
7245 * i386bsd-nat.c: Update copyright year.
7246 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7247 define unconditionally.
7248
3248c325 72492004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7250
7251 * i387-tdep.h (i387_collect_fsave): New prototype.
7252 * i387-tdep.c (i387_collect_fsave): New function containing most
7253 of the code from i387_fill_fsave.
3248c325 7254 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7255
871fbe6a
MK
72562004-03-15 Mark Kettenis <kettenis@gnu.org>
7257
7258 * i386-linux-tdep.c: Update copyright year.
7259 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7260 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7261 svr4_ilp32_link_map_offsets instead of
7262 i386_linux_svr4_fetch_link_map_offsets.
7263
8176b9b8
DC
72642004-03-15 David Carlton <carlton@kealia.com>
7265
7266 Fix for PR c++/1553:
7267 * dwarf2read.c (read_structure_type): Determine type name by
7268 calling determine_class_name.
7269 (determine_class_name): New.
7270 (determine_prefix): Look at TYPE_TAG_NAME and call
7271 determine_class_name when appropriate.
7272 (determine_prefix_aux, class_name): Delete.
9d58e29d 7273 (read_namespace): Set die->type.
8176b9b8 7274
fe8bf7d7
KB
72752004-03-15 Kevin Buettner <kevinb@redhat.com>
7276
7277 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7278 unused macro definition. The definition in target.h (or perhaps
7279 elsewhere) takes precedence.
7280
ed6edd9b
AC
72812004-03-15 Andrew Cagney <cagney@redhat.com>
7282
f9be684a
AC
7283 * ppc-tdep.h: Update copyright.
7284 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7285 function signatures to match "regsets.h".
7286 * ppc-linux-tdep.c: Include "regset.h".
7287 (ELF_GREGSET_SIZE): Delete.
7288 (right_supply_register): New function.
7289 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7290 using right_supply_register.
7291 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7292 functions.
7293 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7294 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7295 (_initialize_ppc_linux_tdep): Do not register
7296 ppc_linux_regset_core_fns.
7297 (ppc_linux_regset_from_core_section): Replace
7298 fetch_core_registers.
7299 (ppc_linux_regset_core_fns): Delete.
7300 * ppc-linux-nat.c: (right_fill_reg): New function.
7301 (supply_gregset): Update call to ppc_linux_supply_gregset.
7302 (fill_gregset): Clear the register set, use right_fill_reg.
7303 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7304 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7305
ed6edd9b
AC
7306 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7307 unsigned.
7308
030f20e1
AC
73092004-03-15 Andrew Cagney <cagney@redhat.com>
7310
7311 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7312 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7313 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7314 and register_gdbarch_data.
7315 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7316 (struct gdbarch_data): Replace "init" by "pre_init" and
7317 "post_init".
7318 * gdbarch.h, gdbarch.c: Re-generate.
7319 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7320 with"obstack", use OBSTACK_ZALLOC.
7321 (dwarf2_frame_ops): Delete.
7322 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7323 (dwarf2_frame_init_reg): Use gdbarch_data.
7324 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7325 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7326 (_initialize_svr4_solib): Update.
7327 * user-regs.c (_initialize_user_regs): Update.
7328 * reggroups.c (_initialize_reggroup): Update.
7329 * regcache.c (_initialize_regcache): Update.
7330 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7331 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7332 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7333 * frame-unwind.c (_initialize_frame_unwind): Update.
7334 * frame-base.c (_initialize_frame_base): Update.
7335 * user-regs.c (user_reg_add): Update.
7336 * reggroups.c (reggroup_add): Update.
7337 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7338 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7339 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7340 * frame-base.c (frame_base_table): Update.
7341 * remote.c (_initialize_remote): Update.
7342 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7343
3111a3fc
AC
73442004-03-15 Andrew Cagney <cagney@redhat.com>
7345
7346 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7347
5ecb7103
KB
73482004-03-15 Kevin Buettner <kevinb@redhat.com>
7349
7350 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7351 * frv-linux-tdep.c: New file.
7352 * frv-tdep.c (struct gdbarch_tdep): Add new field
7353 ``sigcontext_reg_addr''.
7354 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7355 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7356 (frv_sigramp_frame_sniffer): New functions.
7357 (frv_sigtramp_frame_unwind): New static global.
7358 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7359 sniffers.
7360 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7361 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7362
1ccda5e9
KB
73632004-03-15 Kevin Buettner <kevinb@redhat.com>
7364
7365 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7366 but not via a call to error(), when unable to read memory.
7367
b375a0a5
KB
73682004-03-15 Kevin Buettner <kevinb@redhat.com>
7369
7370 * frv-tdep.c (frv_call_dummy_words): Delete.
7371 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7372
4fdf6121
AC
73732004-03-15 Andrew Cagney <cagney@redhat.com>
7374
7375 * infrun.c (handle_step_into_function, step_over_function): Only
7376 update and use STEP_FRAME_ID when the system is using legacy
7377 frames. Update comments.
7378
34021503
MK
73792004-03-14 Mark Kettenis <kettenis@gnu.org>
7380
187e21d1
MK
7381 * amd64-linux-tdep.h: Remove file.
7382 * amd64-linux-tdep.c: Don't include "inferior.h" and
7383 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7384 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7385 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7386 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7387 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7388 macros.
7389 (user_to_gdb_regmap): Remove variable.
7390 (amd64_linux_gregset_reg_offset): New variable.
7391 (amd64_core_fns): Remove variable.
7392 (fetch_core_registers): Remove function.
7393 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7394 functions.
7395 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7396 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7397 * Makefile.in (amd64_linux_tdep_h): Remove.
7398 (amd64-linux-nat.o): Update dependencies.
7399 (amd64-linux-tdep.o): Update dependencies.
7400
99679982
MK
7401 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7402 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7403 functions.
7404 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7405
34021503
MK
7406 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7407 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7408
134d01f1
DJ
74092004-03-14 Daniel Jacobowitz <drow@mvista.com>
7410
7411 * dwarf2read.c (read_structure_type): Rename from
8718a420 7412 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7413 Return immediately if die->type is set. Call read_type_die before
7414 dwarf2_add_member_fn.
7415 (process_structure_scope): New function.
7416 (read_enumeration_type, process_enumeration_scope): New functions,
7417 broken out from read_enumeration. Don't create the enumeration
7418 type if it has already been created.
7419 (read_enumeration): Removed.
7420 (process_die): Call read_structure_type, process_structure_scope,
7421 read_enumeration_type, and process_enumeration_scope. Just call
7422 new_symbol for base and subrange types. Add a comment about other
7423 type dies.
7424 (read_type_die): Call read_enumeration_type.
7425 (add_partial_structure, new_symbol): Update comments.
7426
65760afb
SC
74272004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7428
7429 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7430
10f59415
SC
74312004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7432
7433 * tui/tui-win.h (tui_get_cmd_list): Declare.
7434 * tui/tui-win.c (tui_command): New function.
7435 (tui_get_cmd_list): New function.
7436 (_initialize_tui_win): Moved initialization of tui command in
7437 tui_get_cmd_list.
7438
7439 * tui/tui-data.c (init_content_element): Setup new data members.
7440 (init_win_info): Likewise.
7441 (free_content_elements): Free it.
7442 * tui/tui-data.h (struct tui_data_element): Store the register
7443 content to print.
7444 (struct tui_data_info): Keep the current register group.
7445
7446 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7447
7448 * tui/tui-regs.h (tui_show_registers): Update prototype.
7449 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7450 (tui_resize_all): No need to calculate anything for register window.
7451 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7452 (tui_set_register_element, tui_set_general_regs_content): Remove.
7453 (tui_set_special_regs_content): Remove.
7454 (tui_set_general_and_special_regs_content): Remove.
7455 (tui_set_float_regs_content): Remove.
7456 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7457 (tui_set_regs_content): Remove.
7458 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7459 (tui_v_show_registers_command_support): Remove.
7460 (tui_show_registers): Use a reggroup to specify the registers to show.
7461 (tui_show_register_group): New function.
7462 (tui_display_registers_from): Compute the layout of register window
7463 and refresh with new API; be sure to delete old register windows.
7464 (tui_check_register_values): Update to use tui_get_register and
7465 tui_display_data.
7466 (tui_display_register): Just refresh the register window part.
7467 (tui_register_format): Format registers and save in tui_data_element.
7468 (tui_get_register): New to combine tui_reg_value_has_changed and
7469 tui_get_register_raw_value; fix to use the new gdb API.
7470 (tui_show_float_command): Renamed tui_reg_float_command.
7471 (tui_show_general_command): Renamed tui_reg_general_command.
7472 (tui_show_special_command): Renamed tui_reg_system_command.
7473 (_initialize_tui_regs): Remove unused commands.
7474
c3364ea4
MK
74752004-03-13 Mark Kettenis <kettenis@gnu.org>
7476
27d1e716
MK
7477 * NEWS (New native configurations): Mention OpenBSD/amd64.
7478
c3364ea4
MK
7479 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7480 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7481 Remove defines.
7482 * config/i386/nm-fbsd64.h: Likewise.
7483 * config/i386/nm-obsd.h: Likewise.
7484 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7485 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7486
b2d6d697
KB
74872004-03-12 Kevin Buettner <kevinb@redhat.com>
7488
7489 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7490 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7491 New constants.
7492
76e43199
KB
7493 From Richard Sandiford <rsandifo@redhat.com>:
7494 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7495
34ce532e
KB
74962004-03-12 Kevin Buettner <kevinb@redhat.com>
7497
7498 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7499 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7500 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7501 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7502 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7503 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7504 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7505 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7506 definitions from frv-tdep.c to frv-tdep.h.
7507
c4d10515
KB
75082004-03-12 Kevin Buettner <kevinb@redhat.com>
7509
7510 Add shared library support for FR-V FDPIC ABI:
7511 * Makefile.in (solib-frv.o): Add dependencies.
7512 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7513 New functions.
7514 (frv_push_dummy_call): Add support for FDPIC ABI.
7515 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7516 for FDPIC ABI.
7517 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7518 (frv_fdpic_find_canonical_descriptor): Declare.
7519 * solib-frv.c: New file.
7520 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7521 * config/frv/tm-frv.h (solib.h): Include.
7522
ed1bd989
KB
75232004-03-12 Kevin Buettner <kevinb@redhat.com>
7524
7525 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7526 (frv-tdep.o): Update dependencies.
7527 * frv-tdep.h: New file.
7528 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7529 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7530 constants.
7531 (struct gdbarch_tdep): Add new member ``frv_abi''.
7532 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7533 functions.
7534 (new_variant): Set ``frv_abi'' field.
7535 (gdb_arch_init): Detect FDPIC executables.
7536
82b38f72
MK
75372004-03-12 Mark Kettenis <kettenis@gnu.org>
7538
7539 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7540 wrapper.
7541
db1ea9ba
AC
75422004-03-11 Andrew Cagney <cagney@redhat.com>
7543
7544 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7545
f8766ec1
KB
75462004-03-11 Kevin Buettner <kevinb@redhat.com>
7547
7548 * solist.h (master_so_list): New function.
7549 * solib.c (master_so_list): Likewise.
7550 * solib-svr4.c (enable_break): Iterate over so_list entries
7551 obtained from master list instead of entries obtained directly
7552 via svr4_current_sos().
7553
523f6a27
BE
75542004-03-10 Ben Elliston <bje@gnu.org>
7555
7556 * MAINTAINERS: Update my mail address.
7557
37814c18
KI
75582004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7559
7560 * remote-m32r-sdi.c: Support hardware watchpoint.
7561
8b9740d8
DJ
75622004-03-09 Daniel Jacobowitz <drow@mvista.com>
7563
7564 * user-regs.c: Update copyright years.
7565 (struct user_regs): Rename to gdb_user_regs.
7566 (append_user_reg, builtin_user_regs, user_regs_init)
7567 (user_reg_add, user_reg_map_name_to_regnum)
7568 (usernum_to_user_reg): Update.
7569
4bb7a0a7
DJ
75702004-03-09 Daniel Jacobowitz <drow@mvista.com>
7571
7572 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7573 (skip_children): New functions.
7574 (locate_pdi_sibling): Call skip_children.
7575
44e1a9eb
DJ
75762004-03-09 Daniel Jacobowitz <drow@mvista.com>
7577
7578 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7579 * gdbtypes.c (check_typedef): Update comments.
7580
f3dd6933
DJ
75812004-03-09 Daniel Jacobowitz <drow@mvista.com>
7582
7583 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7584 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7585 pointer. Update comment about comp_unit_head.
7586 (struct abbrev_info): Shorten two int flags.
7587 (dwarf_alloc_abbrev): Take a CU argument.
7588 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7589 each time through the loop. Update cleanup argument.
7590 (psymtab_to_symtab_1): Update cleanup call.
7591 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7592 abbrev_obstack.
7593 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7594 Just call obstack_free and clear the pointer.
7595
b40c7d58
DJ
75962004-03-09 Daniel Jacobowitz <drow@mvista.com>
7597
7598 * infrun.c (handle_inferior_event): Remove short-circuit code for
7599 events in a different thread.
7600
333dabeb
DJ
76012004-03-09 Daniel Jacobowitz <drow@mvista.com>
7602
7603 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7604 print the whole transfer.
7605 (initialize_targets): Update description of "set debug target".
7606
aa17d93e
DJ
76072004-03-09 Daniel Jacobowitz <drow@mvista.com>
7608
7609 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7610
0b71f08f
NW
76112004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7612
7613 * MAINTAINERS (write after approval): Add myself.
7614
3930f270
CV
76152004-03-08 Corinna Vinschen <vinschen@redhat.com>
7616
7617 * sh-tdep.c (sh_print_registers_info): Use for loop.
7618 Don't skip multiple registers when a float register is encountered.
7619
a2b4a96c
CV
76202004-03-08 Corinna Vinschen <vinschen@redhat.com>
7621
7622 Fix PR tdep/1291.
7623 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7624 to official SH documentation.
7625
f15a4bc0
AC
76262004-03-07 Andrew Cagney <cagney@redhat.com>
7627
7628 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7629 unused function.
7630
9498281f
DJ
76312004-03-07 Daniel Jacobowitz <drow@mvista.com>
7632
7633 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7634 (arm_get_next_pc): Handle BX and BLX.
7635
449e1137
AC
76362004-03-07 Andrew Cagney <cagney@redhat.com>
7637
eded0a31
AC
7638 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7639 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7640 HPPA_SP_REGNUM.
7641 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7642 (hppa_target_read_fp): Delete.
7643 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7644 register_virtual_size, max_register_raw_size,
7645 max_register_virtual_size, register_byte, register_size,
7646 target_read_fp, fp_regnum, and register_bytes. Set register_type
7647 instead of register_virtual_type.
7648 (hppa32_register_type, hppa64_register_type): Replace
7649 hppa32_register_virtual_type and hppa64_register_virtual_type.
7650 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7651 (HPPA_FP_REGNUM): Define.
7652
f5f907e2
AC
7653 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7654
69b4bbe4
AC
7655 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7656 (pa_do_registers_info): Delete.
7657 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7658 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7659 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7660
78161e48
AC
7661 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7662 GDB_TARGET_IS_HPPA code.
7663 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7664 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7665 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7666 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7667 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7668 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7669 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7670 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7671 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7672 (hppa_frameless_function_invocation, hppa64_store_return_value)
7673 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7674 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7675 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7676 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7677 (find_proc_framesize, deposit_21, restore_pc_queue)
7678 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7679 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7680
782eae8b
AC
7681 Unconditionally enable 64-bit frame and ABI code.
7682 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7683 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7684 push_dummy_frame, fix_call_dummy, push_arguments,
7685 call_dummy_location, extract_return_value, use_struct_convention,
7686 store_return_value, store_struct_return, saved_pc_after_call,
7687 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7688 frame_chain, frame_chain_valid, frameless_function_invocation,
7689 frame_saved_pc, and pop_frame.
78161e48 7690
449e1137
AC
7691 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7692 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7693 (hppa_gdbarch_init): Do not set PC_REGNUM.
7694
12507572
MK
76952004-03-06 Mark Kettenis <kettenis@gnu.org>
7696
7697 * config/alpha/tm-fbsd.h: Remove file.
7698 * config/alpha/fbsd.mt: Tweak comment.
7699 (TM_FILE): Set to tm-alpha.h.
7700
c107cc1b
AC
77012004-03-05 Andrew Cagney <cagney@redhat.com>
7702
7703 * infrun.c (step_over_function): When non-legacy code, and no
7704 step_frame_id, use the unwinder to get the caller's frame ID.
7705
f2e7c15d
MK
77062004-03-05 Mark Kettenis <kettenis@gnu.org>
7707
8b0c3633
MK
7708 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7709 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7710 bfd_arch_unknown. Adjust comment.
7711
f2e7c15d
MK
7712 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7713 * i386obsd-tdep.c: Correct spelling in comment.
7714 * i386nbsd-tdep.c: Correct spelling in comment.
7715 * sparc-tdep.c: Correct spelling in comments.
7716
1198ecbe
DC
77172004-03-05 David Carlton <carlton@kealia.com>
7718
7719 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7720 bug.
7721
9eb42ed1
MK
77222004-03-05 Mark Kettenis <kettenis@gnu.org>
7723
7724 * sparc-tdep.c: Fix typo in comment.
7725
52b5e991
JB
77262004-03-04 J. Brobecker <brobecker@gnat.com>
7727
7728 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7729
d8151005
DJ
77302004-03-04 Daniel Jacobowitz <drow@mvista.com>
7731
7732 * dwarf2read.c: Add comment describing memory lifetimes.
7733 (struct dwarf2_pinfo): Update comment.
7734 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7735 (read_enumeration, new_symbol): Don't use obsavestring.
7736
cbeae229
MK
77372004-03-04 Mark Kettenis <kettenis@gnu.org>
7738
722d18c2
MK
7739 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7740 instead of amd64_fill_fxsave.
7741 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7742 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7743
cbeae229
MK
7744 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7745 Reorganize code a bit.
7746
b4206d25
OF
77472004-03-04 Orjan Friberg <orjanf@axis.com>
7748
7749 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7750 when the frame pointer is pushed. Don't set the frame pointer's
7751 address on the stack unless it's actually located there.
b4206d25
OF
7752 Set the SRP's address on the stack correctly when the PC is still in
7753 the prologue.
7754 (cris_return_value): New function.
7755 (cris_gdbarch_init): Clear deprecated store_return_value,
7756 extract_return_value.
7757
49b0b195
JB
77582004-03-02 Jim Blandy <jimb@redhat.com>
7759
7760 * stabsread.c (reg_value_complaint): The maximum register number
7761 is one less than the number of registers.
7762
e9ff708b
AC
77632004-03-02 Andrew Cagney <cagney@redhat.com>
7764
7765 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7766 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7767 trailing comma and redundant assignment of I386_ST0_REGNUM.
7768 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7769 32-bit segment registers.
7770
d4715e41
AC
77712004-03-01 Andrew Cagney <cagney@redhat.com>
7772
7773 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7774 use frame_relative_level and get_next_frame.
7775
3ce2bf18
AC
77762004-02-29 Andrew Cagney <cagney@redhat.com>
7777
7778 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7779 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7780 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7781 Delete macro.
7782
2da6aac3
DJ
77832004-02-29 Daniel Jacobowitz <drow@mvista.com>
7784
7785 * inflow.c (terminal_inferior): Don't give up the terminal if we
7786 previously couldn't get the inferior's terminal state.
7787
6ba34a8d
DJ
77882004-02-29 Daniel Jacobowitz <drow@mvista.com>
7789
7790 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7791 PC_REGNUM.
7792
faae5abe
AC
77932004-02-28 Andrew Cagney <cagney@redhat.com>
7794
7795 * NEWS: Refer to GDB 6.1.
7796 * README: Refer to GDB 6.1.
7797 * PROBLEMS: Refer to GDB 6.1.
7798
2227a3c5
DJ
77992004-02-28 Daniel Jacobowitz <drow@mvista.com>
7800
7801 * thread-db.c (disable_thread_signals): Remove unused function.
7802
80571bff
MK
78032004-02-28 Mark Kettenis <kettenis@gnu.org>
7804
041bd74b
MK
7805 * amd64-nat.c: Include "gdb_string.h".
7806 (amd64_collect_native_gregset): Zero-extend the 32-bit
7807 general-purpose registers and %eip.
7808
3c017e40
MK
7809 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7810 * amd64-tdep.c (amd64_collect_fxsave): New function.
7811 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7812
80571bff
MK
7813 * i387-tdep.h: Update copyright year.
7814 (i387_collect_fxsave): New prototype.
7815 * i387-tdep.c: Update copyright year.
7816 (i387_collect_fxsave): New function containing most of the code
7817 from i387_fill_fxsave.
7818 (i387_fill_fxsave): Call i387_collect_fxsave.
7819
50d71875
AC
78202004-02-28 Andrew Cagney <cagney@redhat.com>
7821
7822 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7823 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7824
4a28816e
MK
78252004-02-28 Mark Kettenis <kettenis@gnu.org>
7826
7827 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7828
dbda9972
AC
78292004-02-28 Andrew Cagney <cagney@redhat.com>
7830
7831 * utils.c: Use "", instead of <>, to include readline.
7832 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7833 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7834 * source.c, solib.c, exec.c, event-top.c: Ditto.
7835 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7836 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7837 * Makefile.in: Update all dependencies.
7838 (readline_tilde_h, readline_history_h): Define.
7839 (readline_headers): Delete.
7840
83277a99
MK
78412004-02-28 Mark Kettenis <kettenis@gnu.org>
7842
91ae4303
MK
7843 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7844 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7845 "config/i386/tm-lx64.h".
7846
83277a99
MK
7847 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7848 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7849 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7850
6e1d7d6c
AC
78512004-02-28 Andrew Cagney <cagney@redhat.com>
7852
ecc9ac84
AC
7853 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7854
6e1d7d6c
AC
7855 * breakpoint.c (_initialize_breakpoint): Use
7856 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7857 Add help to show command.
7858
9671aeef
MK
78592004-02-28 Mark Kettenis <kettenis@gnu.org>
7860
7fa2737c
MK
7861 * i386-nat.c: Reformat to be closer to coding standards.
7862 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7863 `retval'. Make variables `align' and `size' local to while-loop.
7864 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7865 (_initialize_i386_nat): New prototype.
7866
9671aeef
MK
7867 * tui/tui.c: Include <readline/readline.h> instead of
7868 "readline/readline.h". Include it after <term.h> and
7869 "gdb_curses.h".
7870
fca7aa43
AC
78712004-02-27 Andrew Cagney <cagney@redhat.com>
7872
412275d5
AC
7873 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7874 the new frame unwind code.
7875 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7876 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7877 PCOQ_HEAD_REGNUM.
7878
fca7aa43
AC
7879 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7880 "return_value" and "push_dummy_call".
7881 (hppa32_use_struct_convention): Delete unused function.
7882 (hppa32_store_return_value): Delete unused function.
7883 (hppa32_extract_return_value): Delete unused function.
7884 (hppa32_stack_align): Delete function.
7885
e6a8a7d2
EZ
78862004-02-27 Eli Zaretskii <eliz@elta.co.il>
7887
7888 * coffread.c (enter_linenos): Don't let rawptr reference memory
7889 outside linetab[]'s limits.
7890
1797a8f6
AC
78912004-02-27 Andrew Cagney <cagney@redhat.com>
7892
7893 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7894 inferior stack space - the stack needs to grow upwards.
7895 (hppa32_frame_align): New function.
7896 (hppa64_frame_align): Replace hppa_frame_align.
7897 (hppa_gdbarch_init): Update.
7898
2e4b5889
OF
78992004-02-26 Orjan Friberg <orjanf@axis.com>
7900
7901 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7902 (dwarf2-frame.h): Include.
7903 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7904 Remove static variables related to ABI setting.
7905 (struct gdbarch_tdep): Remove cris_abi member.
7906 (struct frame_extra_info): Remove.
7907 (cris_unwind_cache, stack_item): New structs.
7908 (cris_frame_unwind, cris_frame_base): New variables.
7909 (push_stack_item, pop_stack_item)
7910 (cris_frame_unwind_cache, cris_frame_this_id)
7911 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7912 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7913 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7914 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7915 (cris_reg_struct_has_addr): New functions.
7916 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7917 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7918 (cris_store_struct_return, cris_frameless_function_invocation)
7919 (cris_pop_frame, cris_skip_prologue_main)
7920 (cris_abi_original_store_return_value)
7921 (cris_abi_v2_store_return_value)
7922 (cris_abi_original_extract_return_value)
7923 (cris_abi_v2_extract_return_value)
7924 (cris_abi_original_reg_struct_has_addr)
7925 (cris_abi_v2_reg_struct_has_addr)
7926 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7927 (cris_push_return_address, cris_abi_update): Remove.
7928 (_initialize_cris_tdep): Remove ABI command.
7929 (cris_dump_tdep): Ditto.
8718a420 7930 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7931 Set store_return_value, extract_return_value, push_dummy_code,
7932 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7933 frame_unwind_append_sniffer, frame_base_set_default.
7934 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7935 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7936 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7937 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7938 init_extra_frame_info, frameless_function_invocation, frame_chain,
7939 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7940 dummy_write_sp.
8718a420 7941
6b9acc27
JJ
79422004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7943
7944 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7945 * valprint.c (print_hex_chars): Change from static to external.
7946 (print_char_chars): New function.
7947 * printcmd.c (print_scalar_formatted): For integer and enum types
7948 that are longer than LONGEST, perform processing via appropriate
7949 print_*_chars routines.
7950
a431654a
AC
79512004-02-26 Andrew Cagney <cagney@redhat.com>
7952
7953 * Makefile.in: Update dependencies.
7954 Changes from Ulrich Weigand,
7955 * s390-tdep.c: Include "dwarf2-frame.h".
7956 (s390_dwarf2_frame_init_reg): New function.
7957 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7958 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7959
fa8d40ab
JJ
79602004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7961
7962 * breakpoint.c (pending_break_support): New setting variable.
7963 (break_command_1): Account for pending_break_support setting
7964 when creating pending breakpoints.
7965 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7966 (_initialize_breakpoint): Add "set breakpoint pending" and
7967 "show breakpoint pending" commands.
7968
0dcd613f
AC
79692004-02-26 Andrew Cagney <cagney@redhat.com>
7970
7971 Fix PR i18n/1570.
7972 * charset.c (backslashable, backslashed, represented): Remove 'e'
7973 from list of escaped characters, not part of ISO-C.
7974
479272a3
JB
79752004-02-25 J. Brobecker <brobecker@gnat.com>
7976
7977 From Peter Schauer <schauer@pdf.de>:
7978 * tui/tui.c: Move system header includes after local includes.
7979 Fixes a build failure on solaris systems.
7980
7613d933
JB
79812004-02-25 J. Brobecker <brobecker@gnat.com>
7982
7983 * configure.in: Refine the previous change.
7984 * configure: Regenerate.
7985
9c1488cb
MK
79862004-02-25 Mark Kettenis <kettenis@gnu.org>
7987
7988 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7989 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7990 "amd64-tdep.h" instead of "x86-64-tdep.h".
7991 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7992 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7993 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7994 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7995 and "x86-64-tdep.c".
7996 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7997 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7998 and "x86-64-tdep.c".
7999 * amd64bsd-nat.c: Update copyright year.
8000 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8001 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8002 "x86-64-tdep.h".
8003 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8004 "x86-64-tdep.h".
8005 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8006 "x86-64-tdep.h".
8007 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8008 "x86-64-tdep.h".
8009 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8010 "x86-64-tdep.h".
8011 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8012 "x86-64-tdep.h".
8718a420 8013 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8014 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8015 * Makefile.in (amd64_linux_tdep_h): Renamed from
8016 x86_64_linux_tdep_h.
8017 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8018 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8019 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8020 (amd64obsd-tdep.o): Update dependencies.
8021 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8022 dependencies.
8023 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8024 dependencies.
8025 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8026 amd64-linux-nat.c amd64-linux-tdep.c.
8027 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8028 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8029 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8030 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8031 amd64-tdep.o and amd64-linux-tdep.o.
8032 (TM_FILE): Set to tm-linux64.h.
8033 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8034 (NAT_FILE): Set to nm-linux64.h.
8035 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8036 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8037 amd64-tdep.o.
8038 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8039 amd64-tdep.o.
8040 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8041 amd64-tdep.o.
8042
4b8dad4a
RM
80432004-02-25 Roland McGrath <roland@redhat.com>
8044
8045 * remote.c (remote_protocol_qPart_auxv): New variable.
8046 (init_all_packet_configs): Initialize it.
8047 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8048 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8049 (show_remote_cmd): Call it.
8050 (_initialize_remote): Initialize commands.
8051 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8052 service TARGET_OBJECT_AUXV requests.
8053
66745969
JB
80542004-02-25 J. Brobecker <brobecker@gnat.com>
8055
8056 * configure.in: Make sure that the wborder function is available.
8057 Otherwise, search for it in the cur_colr library.
8058 * configure: Regenerate.
8059
79508e1e
AC
80602004-02-25 Andrew Cagney <cagney@redhat.com>
8061
8062 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8063
571ee600
MK
80642004-02-25 Mark Kettenis <kettenis@gnu.org>
8065
8066 * config/i386/tm-x86-64linux.h: Tweak comments.
8067
2b1b322f 80682004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8069
8070 * MAINTAINERS: Add self to write-after-approval list.
8071
4d2acc65
AC
80722004-02-25 Andrew Cagney <cagney@redhat.com>
8073
4b8dad4a 8074 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8075 * cli/cli-script.c (execute_control_command): Unconditionally
8076 install a cleanup. Default "ret" to "invalid_control". Use
8077 "break" instead of "return" to escape from the switch.
8078
4cfcaf21
JB
80792004-02-24 J. Brobecker <brobecker@gnat.com>
8080
8081 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8082 with the lines macro defined in term.h on AiX.
8083 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8084 a collision with the label_width macro defined in term.h on AiX.
8085
54a5c8d8
KB
80862004-02-23 David Mosberger <davidm@hpl.hp.com>
8087
8088 Committed by Kevin Buettner <kevinb@redhat.com>.
8089
8090 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8091 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8092 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8093 instead of ia64_write_pc().
8094 * ia64-linux-tdep.c (regcache.h): Include.
8095 (ia64_linux_write_pc): New function.
4b8dad4a 8096
8a1dac83
RM
80972004-02-23 Roland McGrath <roland@redhat.com>
8098
8099 * auxv.c (info_auxv_command): Fix typos in error messages.
8100
90f90721
MK
81012004-02-23 Mark Kettenis <kettenis@gnu.org>
8102
8a1dac83 8103 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8104 (enum amd64_regnum): New.
8105 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8106 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8107 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8108 (X86_64_XMM1_REGNUM): Removed.
8109 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8110 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8111 prototypes for renamed functions.
8112 * x86-64-tdep.c: Fix typo.
8113 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8114 register numbers.
8115 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8116 Use constants from `enum amd64_regnum' for register numbers.
8117 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8118 (amd64_analyze_prologue, amd64_frame_cache,
8119 amd64_sigtramp_frame_cache): Use constants from `enum
8120 amd64_regnum' for register numbers.
8121 (amd64_supply_fpregset): Adjust for renamed functions.
8122 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8123 `enum amd64_regnum' for register numbers.
8124 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8125 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8126 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8127 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8128 (amd64_linux_fill_gregset): Adjust for renamed macros.
8129 (fetch_core_registers): Adjust for renamed functions.
8130 (amd64_linux_init_abi): Adjust for renamed functions.
8131 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8132 renamed functions.
8133 * amd64-nat.c: Adjust for renamed macros.
8134 * amd64bsd-nat.c (fetch_inferior_registers)
8135 (store_inferior_registers): Use constants from `enum amd64_regnum'
8136 for register numbers. Adjust for renamed variables.
8137 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8138 renamed variables.
8139 (_initialize_amd64fbsd_nat): Use constants from `enum
8140 amd64_regnum' for register numbers.
8141 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8142 `enum amd64_regnum' for register numbers.
8143 (amd64fbsd_init_abi): Adjust for renamed functions.
8144 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8145 `enum amd64_regnum' for register numbers.
8146 (amd64nbsd_init_abi): Adjust for renamed functions.
8147 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8148 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8149 `enum amd64_regnum' for register numbers.
8150 (amd64obsd_init_abi): Adjust for renamed functions.
8151 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8152
d5479188
JJ
81532004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8154
8155 * breakpoint.c (print_one_breakpoint): Do not output spaces
8156 after printing <PENDING> for a pending breakpoint.
8157
81cb7cc9
JJ
81582004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8159
8160 * printcmd.c (print_scalar_formatted): Initialize val_long
8161 to remove compiler warning message.
8162
cbdeadca
JJ
81632004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8164
8165 * defs.h (nquery, yquery): New prototypes.
8166 * breakpoint.c (break_command_1): Use new nquery interface.
8167 * utils.c (defaulted_query, nquery, yquery): New functions.
8168
da6bab63
AC
81692004-02-23 Andrew Cagney <cagney@redhat.com>
8170
2f690297
AC
8171 * hppa-tdep.c (hppa_frame_align): New function.
8172 (hppa32_push_dummy_call): New function.
8173 (hppa64_push_dummy_call): New function.
8174 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8175 disabled.
8a1dac83 8176
da6bab63
AC
8177 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8178 FIX_CALL_DUMMY when push_dummy_call is available.
8179 (call_function_by_hand, push_dummy_code): Ditto.
8180
abf9b42d
AC
81812004-02-22 Andrew Cagney <cagney@redhat.com>
8182
8183 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8184 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8185 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8186 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8187 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8188 call_dummy_location to ON_STACK.
8189
10fc94a4
MK
81902004-02-22 Mark Kettenis <kettenis@gnu.org>
8191
51433e4b
MK
8192 * x86-64-linux-tdep.c: Tweak comment.
8193 (amd64_linux_supply_gregset): Renamed from
8194 x86_64_linux_supply_gresget.
8195 (amd64_linux_fill_gregset): Renamed from
8196 x86_64_linux_fill_gregset.
8197 (fetch_core_registers): Adjust for renamed functions.
8198 (amd64_core_fns): Renamed from x86_64_core_fns.
8199 (amd64_linux_sigtramp_start): Renamed from
8200 x86_64_linux_sigtramp_start.
8201 (amd64_linux_pc_in_sigtramp): Renamed from
8202 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8203 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8204 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8205 (amd64_linux_sigcontext_addr): Renamed from
8206 x86_64_linux_sigcontext_addr.
8207 (amd64_linux_sc_reg_offset): Renamed from
8208 x86_64_linux_sc_reg_offset.
8209 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8210 Adjust for renamed functions and variables.
8211 (_initialize_amd64_linux_tdep): Renamed from
8212 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8213 variables.
8214 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8215 Adjust for renamed functions.
8216
430eaf2e
MK
8217 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8218 from x86_64_linux_gregset64_reg_offset.
8219 (amd64_linux_gregset32_reg_offset): Rename from
8220 x86_64_linux_gregset64_reg_offset.
8221 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8222 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8223 (amd64_linux_dr_set_control): Renamed from
8224 x86_64_linux_dr_set_control. Adjust for renamed functions.
8225 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8226 Adjust for renamed functions.
8227 (amd64_linux_dr_reset_addr): Renamed from
8228 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8229 (amd64_linux_dr_get_status): Renamed from
8230 x86_64_linux_dr_get_status. Adjust for renamed functions.
8231 (_initialize_amd64_linux_nat): Renamed from
8232 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8233 functions.
8234 * config/i386/nm-x86-64linux.h: Update copyright year.
8235 Adjust for renamed functions.
8236
10fc94a4
MK
8237 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8238 amd64fbsd_sigtramp_start.
8239 (amd64fbsd_sigtramp_end_addr): Renamed from
8240 amd64fbsd_sigtramp_end.
8241 (amd64fbsd_init_abi): Adjust for renamed variables.
8242 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8243 variables.
8244 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8245 amd64fbsd_sigtramp_start.
8246 (amd64fbsd_sigtramp_end_addr): Renamed from
8247 amd64fbsd_sigtramp_end.
8248
343af405
AC
82492004-02-22 Andrew Cagney <cagney@redhat.com>
8250
537987fc
AC
8251 * hppa-tdep.c (hppa32_return_value): New function.
8252 (hppa64_return_value): New function.
8253 (hppa_gdbarch_init): Set return_value; keep disabled.
8254
fad850b2
AC
8255 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8256 struct-return and inferior function call methods.
8257
26d08f08
AC
8258 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8259 "frame-base.h".
8260 (struct hppa_frame_cache): Define.
8261 (hppa_frame_cache, hppa_frame_this_id): New functions.
8262 (hppa_frame_prev_register): New function.
8263 (hppa_frame_unwind, hppa_frame_base): New variables.
8264 (hppa_frame_unwind_sniffer): New function.
8265 (hppa_frame_base_address, hppa_unwind_pc): New function.
8266 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8267 sniffer, and frame base sniffer; keep disabled.
8268 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8269 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8270
e7d7bd65
AC
8271 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8272 to predicates for "seriously old code".
8273
e963316f
AC
8274 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8275 runtime if(0).
8276
56132691
AC
8277 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8278 unsigned.
8279 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8280
343af405
AC
8281 * config/pa/tm-hppa.h: Update copyright.
8282 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8283 (deprecated_init_frame_pc_default): Delete declaration.
8284 (hppa_frame_init_saved_regs): Delete declaration.
8285 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8286 * hppa-tdep.c: Include "arch-utils.h".
8287 (hppa_gdbarch_init): Set deprecated init_frame_pc
8288 and deprecated frame_init_saved_regs.
8289 (hppa_frame_init_saved_regs): Make static.
8290
f5859b4d
MK
82912004-02-22 Mark Kettenis <kettenis@gnu.org>
8292
86f6f8e7 8293 Remove old 386BSD support.
cf7c5c23 8294 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8295 * configure.host: Remove i[34567]86-*-bsd*.
8296 * configure.tgt: Remove i[34567]86-*-bsd*.
8297 * i386b-nat.c: Removed.
8298 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8299 (i386b-nat.o): Remove dependencies.
8300
86f6f8e7
MK
8301 * config/i386/i386bsd.mh: Removed.
8302 * config/i386/i386bsd.mt: Removed.
8303 * config/i386/nm-i386bsd.h: Removed.
8304 * config/i386/tm-i386bsd.h: Removed.
8305 * config/i386/xm-i386bsd.h: Removed.
8306
971218cd
MK
8307 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8308
7e654c37
MK
8309 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8310 (amd64fbsd_init_abi): Set link map offsets.
8311 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8312 (amd64nbsd_init_abi): Set link map offsets.
8313 * amd64obsd-tdep.c: Include "solib-svr4.h".
8314 (amd64obsd_init_abi): Set link map offsets.
8315 * i386fbsd-tdep.c: Include "solib-svr4.h".
8316 (i386fbsd_init_abi): Set link map offsets.
8317 * i386nbsd-tdep.c: Include "solib-svr4.h".
8318 (i386nbsdelf_init_abi): Set link map offsets.
8319 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8320 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8321 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8322 solib-legacy.o and core-aout.o. Reformat.
8323 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8324 solib-svr4.o, solib-legacy.o. Reformat.
8325 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8326 * config/i386/nbsdelf.mh: Reformat.
8327 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8328 solib-svr4.o, solib-legacy.o and corelow.o.
8329 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8330 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8331 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8332 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8333 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8334 (TM_FILE): Set to tm-fbsd.h.
8335 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8336 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8337 solib-svr4.o.
8338 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8339 solib-svr4.o.
8340 (TM_FILE): Set to nm-nbsd.h.
8341 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8342 Simplify shared library support. Don't include "elf/common.h".
8343 (SVR4_SHARED_LIBS): Don't define.
8344 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8345 "solib.h".
8346 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8347 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8348 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8349 Don't include "i386/tm-i386.h". Include "solib.h".
8350 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8351 Don't include "i386/tm-i386.h".
8352 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8353 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8354 Include "i386/xm-i386.h".
8355 (HOST_LONG_DOUBLE_FORMAT): Remove.
8356
5d93ae8c
MK
8357 Fix OpenBSD/i386 sigtramp recognition.
8358 * i386-tdep.h: Update copyright year.
8359 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8360 (i386bsd_sigtramp_end): New prototypes.
8361 (i386fbsd_sigtramp_start_addr): Renamed from
8362 i386fbsd_sigtramp_start.
8363 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8364 (i386obsd_sigtramp_start_addr): Renamed from
8365 i386obsd_sigtramp_start.
8366 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8367 * i386bsd-tdep.c: Update copyright year.
8368 (i386bsd_pc_in_sigtramp): Make public.
8369 * i386fbsd-nat.c: Update copyright year.
8370 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8371 * i386fbsd-tdep.c: Update copyright year.
8372 (i386fbsd_sigtramp_start_addr): Renamed from
8373 i386fbsd_sigtramp_start.
8374 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8375 (i386fbsdaout_init_abi): Adjust for renamed variables.
8376 * i386obsd-nat.c: Update copyright year.
8377 (_initialize_i386obsd_nat): Adjust for renamed variables.
8378 * i386obsd-tdep.c: Include "target.h".
8379 (i386obsd_page_size): New variable.
8380 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8381 (i386obsd_sigtramp_end): New functions.
8382 (i386obsd_sigtramp_start_addr): Renamed from
8383 i386obsd_sigtramp_start.
8384 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8385 (i386obsd_init_abi): Adjust for renamed variables. Set
8386 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8387 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8388
84d04465
MK
8389 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8390 trampoline change in OpenBSD kernel.
8391
b053aceb
MK
8392 * amd64-nat.c: Update copyright year.
8393 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8394 architecture from REGCACHE.
8395
f5859b4d
MK
8396 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8397 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8398
e4bbbda8
MK
83992004-02-21 Mark Kettenis <kettenis@gnu.org>
8400
ba361932
MK
8401 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8402 i[34567]86-*-openbsd3.[0-3].
8403 * config/i386/obsdaout.mh: New file.
8404
d3e48264
MK
8405 * config/i386/obsd.mh (MH_FLAGS): Remove.
8406
60a6eeb6
MK
8407 Fix PR build/1549.
8408 * i386obsd-tdep.c: Update copyright years. Include
8409 "solib-svr4.h".
8410 (i386obsd_init_abi): Don't set regset_from_core_section here.
8411 (i386obsd_aout_init_abi): New function. Set
8412 regset_from_core_section here.
8413 (i386obsd_elf_init_abi): New function.
8414 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8415 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8416 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8417 (TM_FILE): Set to tm-nbsd.h.
8418
8419 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8420 solib-sunos.o.
8421
e4bbbda8
MK
8422 * solib-svr4.h: Update copyright year.
8423 (svr4_ilp32_fetch_link_map_offsets)
8424 (svr4_lp64_fetch_link_map_offsets): New prototype.
8425 * solib-svr4.c: Update copyright year.
8426 (svr4_ilp32_fetch_link_map_offsets)
8427 (svr4_lp64_fetch_link_map_offsets): New function.
8428
f6fe98ef
DJ
84292004-02-20 Daniel Jacobowitz <drow@mvista.com>
8430
8431 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8432 to the partial symbol table.
8433
589ca796
JB
84342004-02-20 J. brobecker <brobecker@gnat.com>
8435
8436 * PROBLEMS: Add description of problem documented under gdb/1560.
8437
2031c21a
MK
84382004-02-20 Mark Kettenis <kettenis@gnu.org>
8439
30b344b1
MK
8440 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8441 comments.
8442 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8443 functions.
8444 (amd64obsd_init_abi): Reorder initializations. Use
8445 amd64obsd_r_reg_offset to initialize the general-purpose register
8446 set details. Set regset_from_core_section.
8447 (_initialize_amd64obsd_tdep): Rename from
8448 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8449 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8450 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8451
2031c21a
MK
8452 * NEWS (New native configurations): Mention OpenBSD/alpha.
8453 * configure.tgt: Add alpha*-*-openbsd*.
8454 * configure.host: Add alpha*-*-openbsd*.
8455 * alphanbsd-tdep.c: Update copyright year.
8456 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8457
42471775
AC
84582004-02-20 Andrew Cagney <cagney@redhat.com>
8459
8460 Fix PR tdep/1372.
8461 * configure.tgt: Delete target "none-*-*".
8462 * configure.host: Delete host "none-*-*".
8463 * config/none/none.mh: Delete file.
8464 * config/none/none.mt: Delete file.
8465 * config/none/xm-none.h: Delete file.
8466 * config/none/tm-none.h: Delete file.
8467 * config/none/nm-none.h: Delete file.
8468
960ccd7d
FF
84692004-02-19 Fred Fish <fnf@redhat.com>
8470
8471 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8472 cache->uses_fp prior to setting it.
8473
5f883edd
FF
84742004-02-19 Fred Fish <fnf@redhat.com>
8475
8476 Fix for PR breakpoint/1558.
8477 * sh-tdep.c (IS_JSR): New macro.
8478 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8479
f98c22d5
JB
84802004-02-19 Jim Blandy <jimb@redhat.com>
8481
8482 * findvar.c (value_from_register): Doc fix.
8483
95051d27
JJ
84842004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8485
8486 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8487 type being greater than sizeof of host's LONGEST. Always use
8488 unpack_long() unless format 'f' chosen.
8489
ccefbec3
EZ
84902004-02-19 Joel Brobecker <brobecker@gnat.com>
8491
8492 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8493
ccefbec3
EZ
8494 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8495 contains a symbol wich is the best, non-exact match for the given
8496 pc. Update comments.
8497
84982004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8499
2ede629f
EZ
8500 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8501 macro, which was part of the now removed Mach 3 port.
8502 * utils.c (request_quit): Ditto.
8503
567ee972
MK
85042004-02-18 Mark Kettenis <kettenis@gnu.org>
8505
8506 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8507 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8508
50cca7bb
MK
85092004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8510
8511 Committed by Mark Kettenis <kettenis@gnu.org>.
8512
8513 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8514 Define.
8515
226361c4
AC
85162004-02-18 Andrew Cagney <cagney@redhat.com>
8517
8518 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8519 CONFIG_INSTALL and CONFIG_UNINSTALL.
8520 * configure: Re-generate.
8521 * interps.h (INTERP_TUI): Define.
8522 * Makefile.in: Update dependencies.
8523 (TUI): New macro.
8524 (tui-main.o): Specify dependencies.
8525 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8526 * tui/tui-main.c: New file.
8527
49cfa46f
MK
85282004-02-18 Mark Kettenis <kettenis@gnu.org>
8529
e2879ccb
MK
8530 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8531 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8532 dependencies.
8533 * configure.host: Add x86_64-*-openbsd*.
8534 * configure.tgt: Add x86_64-*-openbsd*.
8535 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8536
c43f4bec
MK
8537 * tui/tui.c: Don't include <malloc.h>.
8538
09ae75b6
MK
8539 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8540 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8541 amd64nbsd-tdep.c.
8542
49cfa46f 8543 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8544 static. Remove extraneous whitespace.
49cfa46f
MK
8545 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8546 static.
8547
05957fdb
JB
85482004-02-17 Jim Blandy <jimb@redhat.com>
8549
8550 * findvar.c (value_from_register): Doc fix.
8551
d0f54f9d
JB
85522004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8553
8554 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8555
8a1dac83 8556 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8557 CORE_ADDR as type for selectors. Correct types for GNU run time
8558 message lookup function to use double indirection.
8559 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8560 * objc-lang.h (lookup_child_selector): Adapt prototype.
8561
9cbd5950
JB
8562 * s390-nat.c (SUBOFF): New macro.
8563 (supply_gregset, fill_gregset): Use it to handle debugging
8564 of 32-bit exectuables running under a 64-bit kernel.
8565 * s390-tdep.c: Include "solib-svr4.h".
8566 (s390_svr4_fetch_link_map_offset): New function.
8567 (s390x_svr_fetch_link_map_offset): Likewise.
8568 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8569 * Makefile.in (s390-tdep.o): Update dependencies.
8570
a8c99f38
JB
8571 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8572 "frame-unwind.h".
8573 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8574 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8575 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8576 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8577 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8578 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8579 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8580 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8581 (struct frame_extra_info): Remove.
8582 (s390_memset_extra_info): Remove.
f73b1eff
JB
8583 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8584 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8585 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8586 (is_rse): Renamed to ...
8587 (is_rsy): ... this. Support long displacements.
8588 (is_rxe): Renamed to ...
8589 (is_rxy): ... this. Support long displacements.
8590 (compute_x_addr): Support long displacements.
8591 (struct s390_prologue_data): New data type.
8592 (s390_on_stack): Change API to use struct s390_prologue_data.
8593 (s390_store): Reimplement.
8594 (s390_load): New function.
8595 (s390_get_signal_frame_info): Remove.
8596 (s390_get_frame_info): Remove, replace by ...
8597 (s390_analyze_prolog): ... this new function.
8598 (s390_check_function_end): Remove.
8599 (s390_function_start): Remove.
8600 (s390_frameless_function_invokation): Remove.
8601 (s390_is_sigreturn): Remove.
8602 (s390_init_frame_pc_first): Remove.
8603 (s390_init_frame_extra_info): Remove.
8604 (s390_frame_init_saved_regs): Remove.
8605 (s390_frame_saved_pc_nofix): Remove.
8606 (s390_frame_saved_pc): Remove.
8607 (s390_frame_chain): Remove.
8608 (s390_fp_regnum, s390_read_fp): Remove.
8609 (s390_pop_frame_regular, s390_pop_frame): Remove.
8610 (s390_saved_pc_after_call): Remove.
8611 (s390_skip_prologue): Reimplement.
8612 (s390_in_function_epilogue_p): Support long displacements.
8613 (struct s390_unwind_cache): New data structure.
8614 (s390_frame_unwind_cache): New function.
8615 (s390_prologue_frame_unwind_cache): Likewise.
8616 (s390_backchain_frame_unwind_cache): Likewise.
8617 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8618 (s390_frame_unwind): Define.
8619 (s390_frame_sniffer): New function.
8620 (struct s390_pltstub_unwind_cache): New data structure.
8621 (s390_pltstub_frame_unwind_cache): New function.
8622 (s390_pltstub_frame_this_id): Likewise.
8623 (s390_pltstub_frame_prev_register): Likewise.
8624 (s390_pltstub_frame_unwind): Define.
8625 (s390_pltstub_frame_sniffer): New function.
8626 (struct s390_sigtramp_unwind_cache): New data structure.
8627 (s390_sigtramp_frame_unwind_cache): New function.
8628 (s390_sigtramp_frame_this_id): Likewise.
8629 (s390_sigtramp_frame_prev_register): Likewise.
8630 (s390_sigtramp_frame_unwind): Define.
8631 (s390_sigtramp_frame_sniffer): New function.
8632 (s390_frame_base_address, s390_local_base_address): New functions.
8633 (s390_frame_base): Define.
8634 (s390_unwind_pc, s390_unwind_sp): New function.
8635 (s390_push_dummy_call): Use new frame base location.
8636 (s390_unwind_dummy_id): Likewise.
8637 (s390_gdbarch_init): Remove calls to:
8638 set_gdbarch_frameless_function_invocation,
8639 set_gdbarch_deprecated_init_frame_pc,
8640 set_gdbarch_deprecated_frame_chain,
8641 set_gdbarch_deprecated_frame_init_saved_regs,
8642 set_gdbarch_deprecated_pop_frame,
8643 set_gdbarch_deprecated_init_extra_frame_info,
8644 set_gdbarch_deprecated_init_frame_pc_first,
8645 set_gdbarch_deprecated_target_read_fp,
8646 set_gdbarch_deprecated_frame_saved_pc,
8647 set_gdbarch_deprecated_saved_pc_after_call,
8648 set_gdbarch_deprecated_fp_regnum.
8649 Add calls to:
8650 set_gdbarch_in_solib_call_trampoline,
8651 frame_unwind_append_sniffer,
8652 frame_base_set_default,
8653 set_gdbarch_unwind_pc,
8654 set_gdbarch_unwind_sp.
8655 * Makefile.in (s390-tdep.o): Update dependencies.
8656
b0cf273e
JB
8657 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8658 (S390_STACK_FRAME_OVERHEAD): Remove.
8659 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8660 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8661 (s390_promote_integer_argument): Remove.
8662 (s390_cannot_extract_struct_value_address): Remove.
8663 (s390_use_struct_convention, s390_store_struct_return): Remove.
8664 (s390_extract_return_value, s390_store_return_value): Remove.
8665 (s390_return_value_convention, s390_return_value): New functions.
8666 (is_float_singleton): Handle typedefs.
8a1dac83 8667 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8668 Remove, replace by ...
8669 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8670 s390_function_arg_integer): ... these new functions.
8671 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8672 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8673 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8674 Fill in tdep->abi.
8675 Remove calls to:
8676 set_gdbarch_deprecated_store_struct_return,
8677 set_gdbarch_deprecated_extract_return_value,
8678 set_gdbarch_deprecated_store_return_value,
8679 set_gdbarch_use_struct_convention,
8680 set_gdbarch_extract_struct_value_address,
8681 set_gdbarch_deprecated_pc_in_call_dummy,
8682 set_gdbarch_deprecated_push_arguments,
8683 set_gdbarch_deprecated_save_dummy_frame_tos,
8684 set_gdbarch_deprecated_push_return_address,
8685 set_gdbarch_deprecated_sizeof_call_dummy_words,
8686 set_gdbarch_deprecated_call_dummy_words,
8687 set_gdbarch_deprecated_dummy_write_sp.
8688 Add calls to:
8689 set_gdbarch_push_dummy_call,
8690 set_gdbarch_unwind_dummy_id,
8691 set_gdbarch_return_value.
8a1dac83 8692
e1457d83
JB
8693 * config/s390/nm-linux.h: Update comments.
8694 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8695 (STOPPED_BY_WATCHPOINT): Redefine.
8696 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8697 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8698 (s390_stopped_by_watchpoint): Likewise.
8699 (watch_area_cnt): Remove.
8700 * s390-nat.c: Update comments.
8701 (watch_area): Remove typedef.
8702 Global replace watch_area by struct watch_area.
8703 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8704 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8705 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8706 (s390_fix_watch_points): Remove pid argument,
8707 use s390_inferior_tid. Recompute area spanned by watchpoints.
8708 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8709 argument. Reimplement.
8710
d0f54f9d
JB
8711 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8712 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8713 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8714 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8715 core-regset.o.
8716 * config/s390/s390x.mt: Remove.
8717 * config/s390/tm-s390.h: Remove.
8718 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8719 (TARGET_ELF64): Remove.
8720 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8721 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8722 s390*-*-* case; always set gdb_target to s390.
8723 * regformats/reg-s390.dat: Remove control registers.
8724 * regformats/reg-s390x.dat: Likewise.
8725 * s390-tdep.h: New file.
8a1dac83 8726 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8727 Include "inferior.h" and "s390-tdep.h".
8728 Remove private definition of offsetof.
8729 (s390_register_u_addr): Remove.
8730 (regmap_gregset, regmap_fpregset): Define.
8731 (supply_gregset, fill_gregset): Reimplement.
8732 (supply_fpregset, fill_fpregset): Likewise.
8733 (s390_inferior_tid): New function.
8734 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8735 (fetch_inferior_registers, store_inferior_registers): Likewise.
8736 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8737 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8738 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8739 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8740 (struct gdbarch_tdep): Define.
8741 (struct s390_register_info): Define.
8742 (s390_register_info): New variable.
8743 (s390_register_name): Reimplement.
8744 (s390_register_type): New function.
8745 (s390_register_raw_size, s390x_register_raw_size): Remove.
8746 (s390_cannot_fetch_register): Remove.
8747 (s390_register_byte): Remove.
8748 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8749 (s390_dwarf_regmap): New variable.
8750 (s390_dwarf_reg_to_regnum): New function.
8751 (s390_stab_reg_to_regnum): Remove.
8752 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8753 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8754 (s390_convert_register_p): Likewise.
8755 (s390_register_to_value, s390_value_to_register): Likewise.
8756 (s390_register_reggroup_p): Likewise.
8757 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8758 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8759 (s390_supply_regset, s390_regset_from_core_section): New functions.
8760 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8761 (S390_FPR_SIZE): Likewise.
8762 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8763 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8764 (S390_NUM_GPRS): Move here from tm-s390.h.
8765 (S390_NUM_FPRS): Likewise.
8766 (s390_in_function_epilogue_p): New function.
8767 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8768 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8769 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8770 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8771 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8772 Remove calls to:
8773 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8774 set_gdbarch_deprecated_max_register_virtual_size,
8775 set_gdbarch_deprecated_register_byte,
d0f54f9d 8776 set_gdbarch_cannot_fetch_register,
8a1dac83 8777 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8778 set_gdbarch_deprecated_register_size,
8779 set_gdbarch_deprecated_register_raw_size,
8780 set_gdbarch_deprecated_register_virtual_size,
8781 set_gdbarch_deprecated_register_virtual_type,
8782 set_gdbarch_deprecated_register_bytes.
8783 Add calls to:
8784 set_gdbarch_num_pseudo_regs,
8785 set_gdbarch_register_type,
8786 set_gdbarch_convert_register_p,
8787 set_gdbarch_register_to_value,
8788 set_gdbarch_value_to_register,
8789 set_gdbarch_register_reggroup_p,
8790 set_gdbarch_regset_from_core_section,
8791 set_gdbarch_pseudo_register_read,
8792 set_gdbarch_pseudo_register_write,
8793 set_gdbarch_in_function_epilogue_p.
8794 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8795 (s390_tdep_h): New variable.
8796
8cfe231d
JB
87972004-02-17 Jim Blandy <jimb@redhat.com>
8798
4589a601
JB
8799 * findvar.c (value_from_register): If the type has no length, just
8800 return an acceptable value --- don't report an internal error.
8801
8cfe231d
JB
8802 * stabsread.c (read_type): If we find any type numbers that are
8803 forward references, complain if the references aren't resolved by
8804 the time we're finished reading.
8805 (cleanup_undefined_types): Make error message more appropriate for
8806 a complaint.
8807
5bf0017e
EZ
88082004-02-17 Elena Zannoni <ezannoni@redhat.com>
8809
9d62932d
EZ
8810 * Makefile.in (defs_h): Remove dependency on progress_h.
8811 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8812 progress.h.
8813 * main.c (captured_main): Delete use of START_PROGRESS and
8814 END_PROGRESS.
8815
88162004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8817
5bf0017e
EZ
8818 * objfiles.c (terminate_minimal_symbol_table): Add back
8819 initialization of MSYMBOL_TYPE.
8820
9fc9f5e2
AC
88212004-02-17 David Mosberger <davidm@hpl.hp.com>
8822
8823 Committed by Andrew Cagney.
8824 * Makefile.in (ia64_tdep_h): New macro.
8825 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8826 (ia64-tdep.o): Likewise.
8827 * ia64-tdep.h: New file.
8828 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8829 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8830 (ia64_aix_sigcontext_register_address): Likewise.
8831 (ia64_linux_getunwind_table): Delete declaration.
8832 * ia64-linux-tdep.c: Likewise.
8833
76cd2bd9
CV
88342004-02-17 Corinna Vinschen <vinschen@redhat.com>
8835
8836 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8837 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8838 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8839
634aa483
AC
88402004-02-17 Andrew Cagney <cagney@redhat.com>
8841
8842 * symtab.c (skip_prologue_using_sal): New function.
8843 * symtab.h (skip_prologue_using_sal): Declare.
8844 * frv-tdep.c: Include "symtab.h".
8845 (skip_prologue_using_sal): Delete function.
8846 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8847 * rs6000-tdep.c (refine_prologue_limit): Mention
8848 skip_prologue_using_sal.
8849 * ia64-tdep.c (refine_prologue_limit): Ditto.
8850 * Makefile.in: Update dependencies.
8851
88522004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8853
39ce7b3f
AC
8854 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8855 START_INFERIOR_TRAPS_EXPECTED.
8856 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8857 START_INFERIOR_TRAPS_EXPECTED.
8858 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8859 Delete macro.
8860 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8861 macro, moved to "nm-osf.h". Update copyright.
8862 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8863 update copyright.
8864
19772a2c
AC
8865 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8866 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8867 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8868 frameless_look_for_prologue.
8869 * frame.h (legacy_frameless_look_for_prologue): Rename
8870 frameless_look_for_prologue.
8871 * gdbarch.h, gdbarch.c: Re-generate.
8872 * sh64-tdep.c (sh64_gdbarch_init): Update.
8873 * sh-tdep.c (sh_gdbarch_init): Update.
8874 * s390-tdep.c (s390_gdbarch_init): Update.
8875 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8876 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8877 * m68k-tdep.c (m68k_gdbarch_init): Update.
8878 (delta68_frame_args_address): Update.
8879 * m32r-tdep.c (m32r_gdbarch_init): Update.
8880 * hppa-tdep.c (hppa_gdbarch_init): Update.
8881 * h8300-tdep.c (h8300_gdbarch_init): Update.
8882 * frv-tdep.c (frv_gdbarch_init): Update.
8883 (frv_frameless_function_invocation): Update.
8884 * cris-tdep.c (cris_gdbarch_init): Update.
8885 (cris_frameless_function_invocation): Update.
8886 * avr-tdep.c (avr_gdbarch_init): Update.
8887 * arm-tdep.c (arm_gdbarch_init): Update.
8888 * stack.c (frame_info): Update, call predicate.
8889 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8890 * frame.c (legacy_get_prev_frame): Update, call predicate..
8891 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8892 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8893 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8894 invocation.
8895 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8896 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8897 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8898
8899 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8900 function.
8901
7dcaac91
DJ
89022004-02-16 Daniel Jacobowitz <drow@mvista.com>
8903
8904 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8905 initializations.
8906
88289b6e
AC
89072004-02-16 Andrew Cagney <cagney@redhat.com>
8908
8909 * tui/tui-windata.c: Include "gdb_string.h".
8910 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8911 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8912 * Makefile.in: Update dependencies.
8913
9f976b41
DJ
89142004-02-16 Daniel Jacobowitz <drow@mvista.com>
8915
8916 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8917 * infrun.c: Include "gdb_assert.h".
8918 (singlestep_ptid, saved_singlestep_ptid)
8919 (stepping_past_singlestep_breakpoint): New variables.
8920 (resume): Set singlestep_ptid. Check for singlestep thread
8921 hop.
8922 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8923 (handle_inferior_event): Handle singlestep thread hop.
8924
c324d747
AC
89252004-02-16 Andrew Cagney <cagney@redhat.com>
8926
f090b9b1
AC
8927 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8928 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8929 (dwarf2_frame_init_reg): Ditto.
8930
fd33e6cb
AC
8931 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8932 suggested by Joshua Neuheisel
8933
c324d747
AC
8934 * configure.in: Always check for curses, including pdcurses.
8935 Warn, instead of error, when no curses are found. Enable TUI when
8936 curses is available.
8937 * configure: Re-generate.
8938
b66ba949
CV
89392004-02-16 Corinna Vinschen <vinschen@redhat.com>
8940
8941 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8942 sh_sh4_register_convert_to_virtual.
8943 (sh_register_convert_to_raw): Rename from
8944 sh_sh4_register_convert_to_raw.
8945 (sh_pseudo_register_read): Accomodate above name change.
8946 (sh_pseudo_register_write): Ditto.
8947
b58cbbf2
CV
89482004-02-16 Corinna Vinschen <vinschen@redhat.com>
8949
8950 * sh-tdep.c (sh_generic_register_name): Remove.
8951 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8952
5929a910
AC
89532004-02-15 Andrew Cagney <cagney@redhat.com>
8954
4566dfcf
AC
8955 * configure.in (build_warnings): Add -Wunused-function.
8956 * configure: Re-generate.
8957
db11ed55
AC
8958 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8959 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8960
46ac7a5d
AC
8961 * procfs.c (procfs_init_inferior): Assume that
8962 START_INFERIOR_TRAPS_EXPECTED is defined.
8963 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8964 * config/ns32k/tm-nbsd.h: Delete file,
8965 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8966
ba801595
AC
8967 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8968 * config/vax/tm-vax.h: Delete file.
8969
5929a910
AC
8970 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8971 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8972 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8973 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8974 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8975 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8976 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8977
8f22cb90
MK
89782004-02-15 Mark Kettenis <kettenis@gnu.org>
8979
8980 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8981 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8982 (struct dwarf2_frame_ops): New.
8983 (dwarf2_frame_default_init_reg): New function, based on
8984 dwarf2_frame_init_reg.
8985 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8986 (dwarf2_frame_init_reg): Call architecture-specific function.
8987 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8988 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8989 instead of dwarf2_frame_data.
8990 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8991 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8992
8132723e
AC
89932004-02-15 Andrew Cagney <cagney@redhat.com>
8994
046a4708
AC
8995 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8996 register_gdbarch_swap.
8997 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8998 * f-lang.c (_initialize_f_language): Update, use
8999 DEPRECATED_REGISTER_GDBARCH_SWAP.
9000 * remote.c (_initialize_remote): Ditto.
9001 * regcache.c (_initialize_regcache): Ditto.
9002 * parse.c (_initialize_parse): Ditto.
9003 * infrun.c (_initialize_infrun): Ditto.
9004 * mi/mi-main.c (_initialize_mi_main): Ditto.
9005 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9006
549c1eea
AC
9007 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9008 poking .cacheable directly.
9009 * symfile.c (symfile_bfd_open): Ditto.
9010
0c0b39de
AC
9011 * Makefile.in: Update all dependencies.
9012
8132723e
AC
9013 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9014 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9015 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9016 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9017 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9018
b9d26eb9
AC
90192004-02-14 Andrew Cagney <cagney@redhat.com>
9020
8e1f669a
AC
9021 * arch-utils.c (legacy_convert_register_p): Check
9022 DEPRECATED_REGISTER_CONVERTIBLE_P.
9023 * findvar.c (value_of_register): Ditto.
9024
cd0bfa36
AC
9025 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9026 * gdbarch.h, gdbarch.c: Re-generate.
9027 * arch-utils.c (deprecated_register_convertible_not): Delete.
9028 * arch-utils.h (deprecated_register_convertible_not): Delete.
9029 * mi/mi-main.c (get_register): Update. Update copyright.
9030 * infcmd.c (default_print_registers_info): Update.
9031
b9d26eb9
AC
9032 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9033 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9034 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9035 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9036 * frame.c (deprecated_get_next_frame_hack): Delete function.
9037 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9038 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9039 Update.
9040 * infcall.c (call_function_by_hand): Update.
9041
9ab9195f
EZ
90422004-02-14 Elena Zannoni <ezannoni@redhat.com>
9043
9044 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9045 from here...
9ab9195f
EZ
9046 * objfiles.c (init_entry_point_info, entry_point_address):..to
9047 here.
9048 * symfile.h (init_entry_point_info, entry_point_address): Remove
9049 prototypes.
9050 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9051 prototypes.
9ab9195f
EZ
9052 * cris-tdep.c: Remove include of symfile.h. Add include of
9053 objfiles.h.
9054 * infcall.c: Ditto.
9055 * mcore-tdep.c: Ditto.
9056 * mn10300-tdep.c: Ditto.
9057 * sh64-tdep.c: Ditto.
9058 * v850-tdep.c: Ditto.
9059 * arm-tdep.c: Remove include of symfile.h.
9060 * blockframe.c: Ditto.
9061 * coffread.c: Ditto.
9062 * dbxread.c: Ditto.
9063 * dwarf2read.c: Ditto.
9064 * dwarfread.c: Ditto.
8a1dac83 9065 * frv-tdep.c: Ditto.
9ab9195f
EZ
9066 * ia64-tdep.c: Ditto.
9067 * mdebugread.c: Ditto.
9068 * mipsread.c: Ditto.
8a1dac83 9069 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9070 * s390-tdep.c: Ditto.
9071 * sh-tdep.c: Ditto.
8a1dac83 9072 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9073 * gdbarch.sh: Remove include of symfile.h.
9074 * gdbarch.c: Regenerate.
9075 * solib-irix.c (enable_break): Use entry_point_address().
9076 Add comment about include file.
9077 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9078 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9079 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9080 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9081 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9082 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9083
c4c5b7ba
AC
90842004-02-13 Andrew Cagney <cagney@redhat.com>
9085
9086 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9087 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9088 copyright.
9089 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9090
3e7879de
FF
90912004-02-12 Fred Fish <fnf@redhat.com>
9092
9093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9094 set_gdbarch_store_return_value.
9095
6a7760b6
AC
90962004-02-12 Andrew Cagney <cagney@redhat.com>
9097
9098 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9099 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9100 (interrupt_query): Ditto.
9101 (ofunc): Delete unused variable.
9102 * cris-tdep.c (cris_abi): Delete unused function.
9103 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9104 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9105 (cris_get_asr_quick_shift_steps): Ditto.
9106 (cris_skip_prologue_frameless_p): Ditto.
9107 * arm-tdep.c (arm_push_return_address): Delete unused function.
9108 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9109 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9110 * s390-tdep.c (s390_function_start): Delete unused function.
9111
31687c3c
AC
91122004-02-12 Andrew Cagney <cagney@redhat.com>
9113
9114 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9115 gdbarch.h, gdbarch.c: Re-generate.
9116 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9117 to generic_prologue_frameless_p.
9118 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9119 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9120
6de918a6
DJ
91212004-02-11 Daniel Jacobowitz <drow@mvista.com>
9122
9123 * mips-linux-tdep.c: Include "frame.h".
9124 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9125 (mips_linux_skip_resolver): New functions.
9126 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9127 and set_gdbarch_in_solib_call_trampoline.
9128 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9129 to after set_gdbarch_in_solib_return_trampoline. Only set the
9130 solib hooks to mips16 functions if the OS ABI is unknown.
9131 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9132 including "config/tm-linux.h".
9133 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9134 * Makefile.in (mips-linux-tdep.o): Update.
9135
87b3ede8
DC
91362004-02-11 David Carlton <carlton@kealia.com>
9137
9138 * linespec.c (decode_compound): Only look for a class symbol when
9139 considering all but the rightmost component.
9140
5979bc46
AC
91412004-02-11 Andrew Cagney <cagney@redhat.com>
9142
9143 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9144 abi code are are separatly grouped.
9145
5867a2fb
AC
91462004-02-11 Andrew Cagney <cagney@redhat.com>
9147
9148 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9149 * gdbarch.h, gdbarch.c: Re-generate.
9150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9151 * v850-tdep.c (v850_gdbarch_init): Update.
9152 * sh64-tdep.c (sh64_gdbarch_init): Update.
9153 * sh-tdep.c (sh_gdbarch_init): Update.
9154 * s390-tdep.c (s390_gdbarch_init): Update.
9155 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9156 * mips-tdep.c (mips_gdbarch_init): Update.
9157 * mcore-tdep.c (mcore_gdbarch_init): Update.
9158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9159 * m32r-tdep.c (m32r_gdbarch_init): Update.
9160 * ia64-tdep.c (ia64_gdbarch_init): Update.
9161 * hppa-tdep.c (hppa_gdbarch_init): Update.
9162 * h8300-tdep.c (h8300_gdbarch_init): Update.
9163 * frv-tdep.c (frv_gdbarch_init): Update.
9164 * d10v-tdep.c (d10v_gdbarch_init): Update.
9165 * cris-tdep.c (cris_gdbarch_init): Update.
9166 * avr-tdep.c (avr_gdbarch_init): Update.
9167 * arm-tdep.c (arm_gdbarch_init): Update.
9168 * alpha-tdep.c (alpha_gdbarch_init): Update.
9169
026a72f8
CV
91702004-02-11 Corinna Vinschen <vinschen@redhat.com>
9171
9172 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9173 comma.
9174 (sh_sh4al_dsp_register_name): Ditto.
9175
3903d437
AC
91762004-02-10 Andrew Cagney <cagney@redhat.com>
9177
9178 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9179 (mips_init_frame_pc_first): Delete function.
9180 (mips_frame_saved_pc): Delete function.
9181 (mips_frame_chain): Delete function.
9182 (mips_init_extra_frame_info): Delete function.
9183 (mips_xfer_register): Delete unused variable "reg".
9184 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9185 (mips_n32n64_return_value): Delete unused variable "reg".
9186 (mips_n32n64_return_value): Delete unused variable "pos".
9187 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9188 (mips_o32_return_value): Delete unused variable "pos".
9189 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9190 (mips_print_fp_register): Delete unused variable "namelen"
9191 (mips_print_fp_register): Delete unused variable "flt2"
9192 (get_frame_pointer): Delete function.
9193 (cached_proc_desc): Delete static variable.
9194 (mips_pop_frame): Delete function.
9195 (mips_find_saved_regs): Delete function.
9196 (mips_get_saved_register): Delete function.
9197 (mips_saved_pc_after_call): Delete function.
9198 (SIGFRAME_BASE): Delete macro.
9199 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9200 (SIGFRAME_PC_OFF): Delete macro.
9201 (SIGFRAME_REGSAVE_OFF): Delete macro.
9202 (mips_dump_tdep): Do not print deleted macro definitions.
9203
b9fb98bd
AC
92042004-02-10 Andrew Cagney <cagney@redhat.com>
9205
9206 * Makefile.in (SFILES): Remove explictly listed tui files.
9207 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9208
78ced177 92092004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9210
78ced177
JJ
9211 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9212 to use paddr functions to format ia64 addresses and long values.
9213 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9214 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9215 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9216 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9217 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9218
6a83354a
AC
92192004-02-10 Andrew Cagney <cagney@redhat.com>
9220
9221 * defs.h: Do not include "tui.h".
9222 * gdb_curses.h: New file.
9223 * tui/tui-hooks.h: New file.
9224 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9225 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9226 (tui_initialize_io): Delete declaration.
9227 (tui_initialize_readline: Delete redundant declaration.
9228 (struct tui_point): Delete definition.
9229 * tui/tui-data.h (struct tui_point): Define.
9230 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9231 * utils.c: Include "tui/tui.h".
9232 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9233 * printcmd.c [TUI]: Include "tui/tui.h".
9234 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9235 * tui/tui-command.c: Include "gdb_curses.h".
9236 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9237 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9238 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9239 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9240 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9241 * Makefile.in: Update all dependencies.
9242 (tui_hooks_h, gdb_curses_h): Define.
9243 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9244
997470ef
EZ
92452004-02-10 Elena Zannoni <ezannoni@redhat.com>
9246
9247 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9248 auxf2. Add comments about some other rarely used fields.
9249
4ff2cc4d
AC
92502004-02-10 Andrew Cagney <cagney@redhat.com>
9251
9252 * Makefile.in (init.c): Fix script removing duplicates. Problem
9253 reported by Peter Schauer.
9254
1ab21617
EZ
92552004-02-09 Elena Zannoni <ezannoni@redhat.com>
9256
9257 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9258 obstack_specify_allocation.
9259 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9260 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9261 (allocate_rt_common_objfile): Ditto.
9262 * symfile.c (reread_symbols): Ditto.
9263 * gdb_obstack.h: Add comment.
9264
17763fd9
EZ
92652004-02-09 Elena Zannoni <ezannoni@redhat.com>
9266
9267 * linespec.c (decode_line_1, locate_first_half)
9268 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9269 commented out code.
9270
ec5cdd75
DJ
92712004-02-09 Daniel Jacobowitz <drow@mvista.com>
9272
9273 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9274 obstack_free.
9275
43b54b88
AC
92762004-02-09 Andrew Cagney <cagney@redhat.com>
9277
9278 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9279 fails, try find_pc_section. Fix PR c++/1267.
9280 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9281 instead of find_pc_mapped_section.
9282 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9283 not default to the section containing PC. Fix PR symtab/1519.
9284
edfae063
AC
92852004-02-09 Andrew Cagney <cagney@redhat.com>
9286
9287 * Makefile.in (mips-tdep.o): Update dependencies.
9288 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9289 "trad-frame.h".
9290 (mips_unwind_pc): Return the pseudo PC register.
9291 (mips_unwind_dummy_id): New function.
9292 (mips16_fetch_instruction): New function.
9293 (mips32_fetch_instruction): New function.
9294 (struct mips_frame_cache): Define.
9295 (mips_mdebug_frame_cache): New function.
9296 (mips_mdebug_frame_this_id): New function.
9297 (mips_mdebug_frame_prev_register): New function.
9298 (mips_mdebug_frame_unwind): Define.
9299 (mips_mdebug_frame_sniffer): New function.
9300 (mips_mdebug_frame_base_address): New function.
9301 (mips_mdebug_frame_base): Define.
9302 (mips_mdebug_frame_base_sniffer): New function.
9303 (mips_gdbarch_init): Append unwind and base sniffers. Set
9304 unwind_dummy_id.
9305
defc864c
AC
93062004-02-08 Andrew Cagney <cagney@redhat.com>
9307
6764ddad
AC
9308 * frame.c: Print both the register number and name.
9309
defc864c
AC
9310 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9311 and a sed into a single sed. Make .c and .o patterns more robust.
9312 (OBS): Delete.
9313 (INIT_FILES): Replace OBS with COMMON_OBS.
9314 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9315
645d6d10
MK
93162004-02-08 Mark Kettenis <kettenis@gnu.org>
9317
9318 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9319 the PT_WCOOKIE request.
9320
23e3c3fc
AC
93212004-02-08 Andrew Cagney <cagney@redhat.com>
9322
58dfe9ff
AC
9323 * mips-tdep.c (mips_unwind_pc): New function.
9324 (mips_gdbarch_init): Set mips_unwind_pc.
9325
1152e35e
AC
9326 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9327 (get_frame_id): Allow the UNKNOWN_FRAME.
9328 (frame_register_unwind, get_frame_type): Ditto.
9329
31b75dbf
AC
9330 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9331 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9332 unwind_dummy_id indicates a legacy frame.
9333
3483b318
AC
9334 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9335 * configure: Re-generate.
9336
23e3c3fc
AC
9337 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9338 methods.
9339
33f8ca73
AC
93402004-02-08 Andrew Cagney <cagney@redhat.com>
9341
9342 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9343 makefile macro.
9344 * configure: Re-generate.
9345 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9346 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9347 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9348 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9349 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9350 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9351 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9352 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9353 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9354 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9355
6ba8e26f 93562004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9357
20d286a5
AC
9358 * Makefile.in: Update all dependencies.
9359
d836ee13
AC
9360 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9361 * configure: Re-generate.
9362 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9363 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9364 (COMMON_OBS): Add "main.o" and "annotate.o".
9365 (ANNOTATE_OBS): Delete.
9366 (OBS): Remove ANNOTATE_OBS.
9367 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9368 CONFIG_INITS.
9369 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9370 against CONFIG_OBS and "main.o".
9371 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9372 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9373
d02c80cd
AC
9374 * tui/tui-command.c: Include "gdb_string.h", delete register
9375 attribute, use ISO-C function signatures.
9376 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9377 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9378 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9379 * tui/tui.c: Ditto.
6ba8e26f
AC
9380
9381 * tui/tui-command.c: Change variable and function names to lower
9382 case.
9383 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9384 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9385 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9386 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9387 * tui/tui-winsource.c, tui/tui.c: Ditto.
9388
4a146b47
EZ
93892004-02-07 Elena Zannoni <ezannoni@redhat.com>
9390
9391 * buildsym.c (free_pending_blocks, finish_block)
9392 (record_pending_block, make_blockvector, end_symtab): Replace
9393 symbol_obstack with objfile_obstack.
8a1dac83 9394 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9395 (coff_read_enum_type): Ditto.
8a1dac83 9396 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9397 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9398 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9399 (dwarf2_symbol_mark_computed): Ditto.
9400 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9401 * elfread.c (elf_symtab_read): Ditto.
9402 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9403 (hpread_read_enum_type, hpread_read_function_type)
9404 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9405 Ditto.
8a1dac83 9406 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9407 (java_link_class_type): Ditto.
8a1dac83 9408 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9409 (new_symbol): Ditto.
9410 * minsyms.c (install_minimal_symbols): Ditto.
9411 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9412 (terminate_minimal_symbol_table): Replace symbol_obstack with
9413 objfile_obstack.
9414 (free_objfile): Remove freeing of symbol_obstack.
9415 * objfiles.h: Remove symbol_obstack field.
9416 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9417 objfile_obstack.
9418 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9419 symbol_obstack.
9420 (solib_add_common_symbols): Replace symbol_obstack with
9421 objfile_obstack.
9422 * somsolib.c (som_solib_add): Ditto.
9423 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9424 (common_block_start, common_block_end): Ditto.
9425 * symfile.c (reread_symbols): Remove freeing and init of
9426 symbol_obstack.
9427 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9428 * symfile.h: Update comment.
9429 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9430 stats printing.
9431 * symtab.c (symbol_set_names): Replace symbol_obstack with
9432 objfile_obstack.
9433 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9434 Update comments.
9435 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9436 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9437 objfile_obstack.
9438
6d012f14
AC
94392004-02-07 Andrew Cagney <cagney@redhat.com>
9440
9441 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9442 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9443 fields and variables.
9444 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9445 (m_beInvisible): Delete macro.
9446 * tui/tui-data.h: Fix case case fields and variables.
9447 (m_genWinPtrIsNull): Delete macro.
9448 (tui_win_list): Rename winList.
9449 (TUI_SRC_WIN): Rename srcWin.
9450 (TUI_DISASM_WIN): Rename disassemWin.
9451 (TUI_DATA_WIN): Rename dataWin.
9452 (TUI_CMD_WIN): Rename cmdWin.
9453 (m_genWinPtrNotNull): Delete macro.
9454 (m_winPtrIsNull): Delete macro.
9455 (m_winPtrNotNull): Delete macro.
9456 (tui_win_is_source_type): Replace m_winIsSourceType
9457 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9458 (tui_win_has_locator): Replace m_hasLocator.
9459 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9460 m_setWinHighlightOff.
9461 * tui/tui-data.c: Update references.
9462 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9463 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9464 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9465 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9466 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9467 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9468 * tui/tui-winsource.c, tui/tui.c: Ditto.
9469
7d34766b
MK
94702004-02-07 Mark Kettenis <kettenis@gnu.org>
9471
1c800673
MK
9472 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9473 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9474 StackGhost.
9475
7d34766b
MK
9476 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9477 variable `i6' to `i7'.
9478 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9479
22940a24
AC
94802004-02-07 Andrew Cagney <cagney@redhat.com>
9481
9482 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9483 (TuiPoint, TuiPointPtr): Ditto.
9484 (TuiStatus, TuiStatusPtr): Ditto.
9485 (TuiWinType, TuiWinTypePtr): Ditto.
9486 (struct tui_point): Rename _TuiPoint.
9487 (tui_get_low_disassembly_address): Rename
9488 tuiGetLowDisassemblyAddress.
9489 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9490 (tuiFree): Delete declaration.
9491 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9492 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9493 * tui/tui.c (tuiFree): Delete function.
9494 * cli/cli-cmds.c (disassemble_command): Update references.
9495 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9496 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9497 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9498 * tui/tui-winsource.c: Ditto.
9499
8b92e4d5
EZ
95002004-02-07 Elena Zannoni <ezannoni@redhat.com>
9501
9502 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9503 coffstab_build_psymtabs, elfstab_build_psymtabs)
9504 (stabsect_build_psymtabs): Replace psymbol_obstack with
9505 objfile_obstack.
9506 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9507 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9508 Ditto.
9509 * dwarfread.c (scan_compilation_units): Ditto.
9510 * elfread.c (elfstab_offset_sections): Ditto.
9511 * hppa-tdep.c (read_unwind_info): Ditto.
9512 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9513 (hpread_end_psymtab): Ditto.
9514 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9515 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9516 Ditto.
9517 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9518 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9519 (build_objfile_section_table): Ditto.
9520 (allocate_objfile): Remove init of psymbol_obstack.
9521 (free_objfile): Remove freeing of psymbol_obstack.
9522 * objfiles.h (struct objfile): Remove field
9523 psymbol_obstack. Update comments.
9524 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9525 psymbol_obstack with objfile_obstack.
9526 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9527 psymbol_obstack.
9528 * somread.c (som_symfile_offsets, init_import_symbols)
9529 (init_export_symbols): Replace psymbol_obstack with
9530 objfile_obstack.
9531 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9532 * symfile.c (default_symfile_offsets, syms_from_objfile)
9533 (reread_symbols): Remove freeing and init of psymbol_obstack.
9534 (cashier_psymtab): Update comment.
9535 * symmisc.c (print_objfile_statistics): Don't report stats for
9536 psymbol obstack.
9537 * symtab.h (struct general_symbol_info, struct partial_symtab):
9538 Update comments.
9539 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9540 (xcoff_symfile_offsets): Replace psymbol_obstack with
9541 objfile_obstack.
9542
b99607ea
EZ
95432004-02-07 Elena Zannoni <ezannoni@redhat.com>
9544
9545 * objfiles.h (struct objfile): Add objfile_obstack field.
9546 Remove type_obstack field.
9547
9548 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9549 read_structure_scope read_enumeration, new_symbol): Replace
9550 type_obstack with objfile_obstack.
9551 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9552 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9553 (lookup_fundamental_type): Ditto.
9554 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9555 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9556 (hpread_read_doc_function_type, hpread_read_struct_type)
9557 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9558 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9559 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9560 (java_link_class_type): Ditto.
9561 * mdebugread.c (parse_type): Ditto.
9562 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9563 * solib-sunos.c (solib_add_common_symbols): Ditto.
9564 * stabsread.c (define_symbol, read_type, read_member_functions,
9565 read_cpp_abbrev, read_one_struct_field): Ditto.
9566 * symfile.c (reread_symbols): Ditto.
9567 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9568
2a8854a7
AC
95692004-02-07 Andrew Cagney <cagney@redhat.com>
9570
9571 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9572 (tui_exec_info_content): Rename TuiExecInfoContent.
9573 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9574 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9575 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9576 (TuiList, TuiListPtr): Ditto.
9577 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9578 (TuiDataType, TuiDataTypePtr): Ditto.
9579 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9580 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9581 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9582 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9583 (TuiDataElement, TuiDataElementPtr): Ditto.
9584 (TuiWinElement, TuiWinElementPtr): Ditto.
9585 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9586 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9587 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9588 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9589 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9590 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9591 * tui/tui-command.c, tui/tui-data.c: Update references.
9592 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9593 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9594 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9595 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9596
05cbe71a
MK
95972004-02-07 Mark Kettenis <kettenis@gnu.org>
9598
9599 * dwarf2-frame.h: Update copyright.
9600 (enum dwarf2_frame_reg_rule): New.
9601 (struct dwarf2_frame_state_reg): New.
9602 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9603 * dwarf2-frame.c: Update copyright.
9604 (enum dwarf2_reg_rule): Remove.
9605 (struct dwarf2_frame_state): Remove defenition of `struct
9606 dwarf2_frame_state_reg'.
9607 (read_reg): Call get_frame_arch to get the architecture instead of
9608 using CURRENT_GDBARCH.
9609 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9610 DWARF2_FRAME_.
9611 (dwarf2_frame_init_reg): New function.
9612 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9613 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9614 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9615 tags with DWARF2_FRAME_.
9616 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9617 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9618 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9619
ec7d9e56
AC
96202004-02-06 Andrew Cagney <cagney@redhat.com>
9621
dd1abb8c
AC
9622 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9623 (enum tui_data_type): Rename _TuiDataType.
9624 (struct tui_layout_def): Rename _TuiLayoutDef.
9625 (struct tui_source_element): Rename _TuiSourceElement.
9626 (struct tui_data_element): Rename _TuiDataElement.
9627 (struct tui_command_element): Rename _TuiCommandElement.
9628 (struct tui_locator_element): Rename _TuiLocatorElement.
9629 (union tui_which_element): Define.
9630 (struct tui_win_element): Rename _TuiWinElement.
9631 (struct tui_data_info): Rename _TuiDataInfo.
9632 (struct tui_source_info): Rename _TuiSourceInfo.
9633 (struct tui_command_info): Rename _TuiCommandInfo.
9634 (tui_initialize_static_data): Rename initializeStaticData.
9635 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9636 (tui_alloc_win_info): Rename allocWinInfo.
9637 (tui_init_generic_part): Rename initGenericPart.
9638 (tui_init_win_info): Rename initWinInfo.
9639 (tui_alloc_content): Rename allocContent.
9640 (tui_add_content_elements): Rename addContentElements.
9641 (tui_init_content_element): Rename initContentElement.
9642 (tui_free_window): Rename freeWindow.
9643 (tui_free_win_content): Rename freeWinContent.
9644 (tui_free_data_content): Rename freeDataContent.
9645 (tui_free_all_source_wins_content): Rename
9646 freeAllSourceWinsContent.
9647 (tui_del_window): Rename tuiDelWindow.
9648 (tui_del_data_windows): Rename tuiDelDataWindows.
9649 (tui_partial_win_by_name): Rename partialWinByName.
9650 (tui_win_name): Rename winName.
9651 (tui_current_layout): Rename currentLayout.
9652 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9653 (tui_term_height): Rename termHeight.
9654 (tui_set_term_height_to): Rename setTermHeightTo.
9655 (tui_term_width): Rename termWidth.
9656 (tui_set_term_width_to): Rename setTermWidthTo.
9657 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9658 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9659 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9660 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9661 (tui_source_windows): Rename sourceWindows.
9662 (tui_clear_source_windows): Rename clearSourceWindows.
9663 (tui_clear_source_windows_detail): Rename
9664 clearSourceWindowsDetail.
9665 (tui_clear_win_detail): Rename clearWinDetail.
9666 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9667 (tui_default_tab_len): Rename tuiDefaultTabLen.
9668 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9669 (tui_win_with_focus): Rename tuiWinWithFocus.
9670 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9671 (tui_layout_def): Rename tuiLayoutDef.
9672 (tui_win_resized): Rename tuiWinResized.
9673 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9674 (tui_next_win): Rename tuiNextWin.
9675 (tui_prev_win): Rename tuiPrevWin.
9676 (tui_add_to_source_windows): Rename addToSourceWindows.
9677 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9678 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9679 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9680 * tui/tui.c, tui/tui-data.c: Ditto.
9681 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9682 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9683
a358af15
AC
9684 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9685 (struct symtab): Declare.
9686 (tui_set_source_content): Rename tuiSetSourceContent.
9687 (tui_show_symtab_source): Rename tuiShowSource.
9688 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9689 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9690 * tui/tui-source.c: Update copyright. Update references.
9691 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9692 * tui/tui-stack.c: Update references.
9693
a21fcd8f
AC
9694 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9695 (struct tui_win_info): Declare.
9696 (tui_scroll_forward): Rename tuiScrollForward.
9697 (tui_scroll_backward): Rename tuiScrollBackward.
9698 (tui_scroll_left): Rename tuiScrollLeft.
9699 (tui_scroll_right): Rename tuiScrollRight.
9700 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9701 (tui_resize_all): Rename tuiResizeAll.
9702 (tui_refresh_all_win): Rename tuiRefreshAll.
9703 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9704 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9705 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9706 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9707
edae1ccf
AC
9708 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9709 (tui_erase_data_content): Rename tuiEraseDataContent.
9710 (tui_display_all_data): Rename tuiDisplayAllData.
9711 (tui_check_data_values): Rename tuiCheckDataValues.
9712 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9713 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9714 (tui_first_data_element_no_in_line): Rename
9715 tuiFirstDataElementNoInLine.
9716 (tui_delete_data_content_windows): Rename
9717 tuiDeleteDataContentWindows.
9718 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9719 (tui_display_data_from): Rename tuiDisplayDataFrom.
9720 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9721 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9722 * tui/tui-win.c, tui/tui-regs.c: Update references.
9723 * tui/tui-layout.c, tui/tui.c: Update references.
9724
ec7d9e56
AC
9725 * tui/tui-wingeneral.h: Update copyright.
9726 (m_allBeVisible): Delete macro.
8a1dac83 9727 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9728 (struct tui_gen_win_info): Declare.
9729 (struct tui_win_info): Declare.
9730 (tui_unhighlight_win): Rename unhighlightWin.
9731 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9732 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9733 (tui_make_window): Rename makeWindow.
9734 (tui_copy_win): Rename copyWin.
9735 (tui_box_win): Rename boxWin.
9736 (tui_highlight_win): Rename highlightWin.
9737 (tui_check_and_display_highlight_if_needed): Rename
9738 checkAndDisplayHighlightIfNeeded.
9739 (tui_refresh_all): Rename refreshAll.
9740 (tui_delete_win): Rename tuiDelwin.
9741 (tui_refresh_win): Rename tuiRefreshWin.
9742 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9743 (tui_make_visible, tui_make_invisible): New functions.
9744 (tui_make_all_visible, tui_make_all_invisible): New functions.
9745 (make_all_visible): Rename makeAllVisible.
9746 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9747 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9748 * tui/tui-windata.c, tui/tui-win.c: Update references.
9749 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9750 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9751
1e52e2eb
MK
97522004-02-06 Mark Kettenis <kettenis@gnu.org>
9753
9754 * proc-api.c (write_with_trace): Initialize local variable to
9755 silence compiler warning.
9756
f80bda8e
AC
97572004-02-06 Andrew Cagney <cagney@redhat.com>
9758
9759 * tui/tui-source.h: Do not include "defs.h".
9760 (struct tui_win_info): Declare.
9761 (tui_set_source_content_nil): Declare.
9762 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9763 (union tui_line_or_address): Rename _TuiLineOrAddress.
9764 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9765 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9766 (tui_update_source_window_as_is): Rename
9767 tuiUpdateSourceWindowAsIs.
9768 (tui_update_source_windows_with_addr): Rename
9769 tuiUpdateSourceWindowsWithAddr.
9770 (tui_update_source_windows_with_line): Rename
9771 tuiUpdateSourceWindowsWithLine.
9772 (tui_clear_source_content): Rename tuiClearSourceContent.
9773 (tui_erase_source_content): Rename tuiEraseSourceContent.
9774 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9775 (tui_show_source_content): Rename tuiShowSourceContent.
9776 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9777 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9778 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9779 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9780 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9781 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9782 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9783 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9784 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9785 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9786 (struct tui_win_info): Declare.
9787 * tui/tui-stack.c: Update references.
9788 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9789 * tui/tui-win.c, tui/tui-source.c: Ditto.
9790 * tui/tui.c, tui/tui-disasm.c: Ditto.
9791
9fbfb822
MK
97922004-02-06 Mark Kettenis <kettenis@gnu.org>
9793
9794 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9795 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9796
03cebad2
MK
97972004-02-05 Mark Kettenis <kettenis@gnu.org>
9798
9799 * infrun.c (handle_inferior_event): Allow for breakpoint
9800 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9801 and SIGEMT. Update comments.
9802 * NEWS (Revised SPARC target): Mention support for non-executable
9803 stack.
9804
290281b1
MK
98052004-02-04 Mark Kettenis <kettenis@gnu.org>
9806
9807 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9808 * inftarg.c: Update copyright year.
9809 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9810 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9811 (sparc_xfer_wcookie): New function.
9812 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9813 * Makefile.in (sparc-nat.o): Update dependencies.
9814 * config/sparc/nm-nbsd.h: Include "target.h".
9815 (NATIVE_XFER_WCOOKIE): New define.
9816 (sparc_xfer_wcookie): New prototype.
9817
212161df
AC
98182004-02-04 Andrew Cagney <cagney@redhat.com>
9819
9820 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9821 SYSCALL_TRAP function.
9822 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9823
6e4c6c91
DJ
98242004-02-04 Andrew Cagney <cagney@redhat.com>
9825 Daniel Jacobowitz <drow@mvista.com>
9826
9827 * objfiles.h: Delete comments refering to inside_entry_func and
9828 DEPRECATED_FRAME_CHAIN_VALID.
9829 * defs.h (inside_entry_func): Update prototype..
9830 * blockframe.c (inside_entry_func): Rename to
9831 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9832 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9833
cae688ec
JJ
98342004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9835
9836 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9837 outside of #ifdef SOLIB_ADD region.
9838 (do_restore_lang_radix_cleanup): Ditto.
9839 (resolve_pending_breakpoint): Ditto.
9840
19217676
AC
98412004-02-03 Andrew Cagney <cagney@redhat.com>
9842
9843 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9844 (process_note_abi_tag_sections): Delete unused function.
9845 (ia64_read_fp): Delete unused function.
9846 (gdbarch_extract_struct_value_address): Delete declaration.
9847
876753be
AC
98482004-02-02 Andrew Cagney <cagney@redhat.com>
9849
9850 * vax-tdep.c (vax_frame_chain): Delete call to
9851 deprecated_inside_entry_file.
9852 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9853
d4f10bf2
MK
98542004-02-02 Mark Kettenis <kettenis@gnu.org>
9855
9856 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9857 column that's "empty" or "same value" when eliminating REG_RA
9858 rules.
9859
cae688ec
JJ
98602004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9861
9862 * NEWS: Add information about new pending breakpoint support.
9863
0101ce28
JJ
98642004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9865
9866 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9867 and pending fields for pending breakpoint support.
9868 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9869 (condition_command): Only parse condition if not a pending
9870 breakpoint.
9871 (print_one_breakpoint): Add support for pending breakpoints.
9872 (describe_other_breakpoints): Add checks to verify we are not
9873 dealing with pending breakpoints.
9874 (check_duplicates): Don't check pending breakpoints.
9875 (set_raw_breakpoint): Initialize pending flag.
9876 (do_restore_lang_radix_cleanup): New cleanup routine.
9877 (resolve_pending_breakpoint): New function.
9878 (re_enable_breakpoints_in_shlibs): Try and resolve any
9879 pending breakpoints via resolve_pending_breakpoint.
9880 (mention): Add pending breakpoint support.
9881 (parse_breakpoint_sals): Add new parameter to pass to
9882 decode_line_1 to indicate silent errors when files or functions
9883 are not found. Change all callers.
9884 (do_captured_parse_breakpoint): New function.
9885 (break_command_1): Change prototype to return an rc value and to
9886 take an optional pending breakpoint pointer. Support creating
9887 a pending breakpoint if a "not found" form of error occurs when
9888 parsing the breakpoint. Also support resolving an existing pending
9889 breakpoint and be silent if the resolution fails.
9890 (create_breakpoints): Change prototype to take pending breakpoint
9891 pointer. When resolving a pending breakpoint, use the new pointer
9892 to provide a conditional or commands added by the end-user.
9893 (delete_breakpoint): Add appropriate check for pending.
9894 (breakpoint_re_set_one): Ditto.
9895 (do_enable_breakpoint): Ditto.
9896
8d577d32
DC
98972004-02-02 David Carlton <carlton@kealia.com>
9898
9899 * valops.c (enum oload_classification): New.
9900 (find_overload_match): Break implementation into separate
9901 functions; delete #if 0'd code; look for symbols within
9902 namespaces.
9903 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9904 (find_oload_champ,oload_method_static,classify_oload_match): New.
9905 * cp-support.h: Add declaration for cp_func_name; update
9906 declaration for make_symbol_overload_list.
9907 * cp-support.c (cp_func_name): New.
9908 (overload_list_add_symbol): Fix comment, use
9909 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9910 (make_symbol_overload_list): Take a function name and a namespace
9911 instead of a symbol; change implementation.
9912 (make_symbol_overload_list_using): New.
9913 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9914
22e8e3c7
FF
99152004-02-02 Fred Fish <fnf@redhat.com>
9916
9917 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9918 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9919 * remote-sim.c (gdb_os_write_stderr): Write output to
9920 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9921 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9922 gdb_stderr stream and update copyright years.
22e8e3c7 9923
6b753f60
DJ
99242004-02-01 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * Makefile.in (mips-linux-nat.o): Update dependencies.
9927 * mips-linux-nat.c: Include mips-tdep.h.
9928
99292004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9930
9931 * sol-thread.c (sol_thread_xfer_partial): New function.
9932 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9933 (init_sol_core_ops): Likewise.
9934
9935 * procfs.c (procfs_xfer_partial): New function.
9936 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9937 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9938
9939 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9940 procfs_xfer_auxv function.
9941
9942 * procfs.c (procfs_make_note_section): If we can read
9943 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9944 * linux-proc.c (linux_make_note_section): Likewise.
9945
9946 * auxv.h: New file.
9947 * auxv.c: New file.
9948 * Makefile.in (auxv_h): New variable.
9949 (COMMON_OBS): Add auxv.o here.
9950 (auxv.o): New target.
9951
9952 * corelow.c (core_xfer_partial): New function.
9953 (init_core_ops): Use it for core_ops.to_xfer_partial.
9954
9955 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9956 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9957 macro if that is defined.
9958
fa5281d0
DJ
99592004-02-01 Daniel Jacobowitz <drow@mvista.com>
9960
9961 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9962 and check the specified thread for each breakpoint.
9963 * breakpoint.h (bpstat_stop_status): Update prototype.
9964 * infrun.c (handle_inferior_event): Update calls to
9965 bpstat_stop_status.
9966
26ee262d
DJ
99672004-02-01 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * Makefile.in (cli-cmds.o): Add $(readline_h).
9970
d9b52655
DJ
99712004-02-01 Daniel Jacobowitz <drow@mvista.com>
9972
9973 * cli/cli-cmds.c: Include readline.h.
9974 (complete_command): Pass the start of the last word to
9975 complete_line.
9976
9709f61c
DJ
99772004-01-31 Daniel Jacobowitz <drow@mvista.com>
9978
9979 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9980 argument, and change first argument to a CORE_ADDR.
9981 * breakpoint.h (bpstat_stop_status): Update prototype.
9982 * infrun.c (adjust_pc_after_break): Add a new comment.
9983 (handle_inferior_event): Update calls to bpstat_stop_status.
9984
4f1280bb
DJ
99852004-01-31 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * breakpoint.h: Update copyright years.
9988
4fa8626c
DJ
99892004-01-31 Daniel Jacobowitz <drow@mvista.com>
9990
9991 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9992 (bpstat_stop_status): Don't decrement PC.
9993 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9994 prototype.
9995 * infrun.c (adjust_pc_after_break): New function.
9996 (handle_inferior_event): Call it, early. Remove later references
9997 to DECR_PC_AFTER_BREAK.
9998 (normal_stop): Add commentary.
9999
fad0733a
DJ
100002004-01-31 Daniel Jacobowitz <drow@mvista.com>
10001
10002 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10003 2004-01-27 double-free fix.
10004
42cdca6c
MK
100052004-01-31 Mark Kettenis <kettenis@gnu.org>
10006
10007 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10008 (sparc32_frame_prev_register): Handle StackGhost.
10009 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10010
932d5416
RM
100112004-01-29 Roland McGrath <roland@redhat.com>
10012
10013 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10014 * configure: Regenerated.
10015
10016 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10017 * Makefile.in (procfs.o): Add dep.
10018
47d3492a
AC
100192004-01-28 Andrew Cagney <cagney@redhat.com>
10020
10021 * tui/tui-stack.h: Update copyright.
10022 (struct frame_info): Add opaque declaration.
10023 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10024 (tui_show_locator_content): Rename tuiShowLocatorContent.
10025 (tui_show_frame_info): Rename tuiShowFrameInfo.
10026 * tui/tui-stack.c: Update copyright. Update references.
10027 * tui/tui-winsource.c: Update references.
10028 * tui/tui-win.c: Update references.
10029 * tui/tui-layout.c: Update references.
10030 * tui/tui-hooks.c: Update copyright, update references.
10031 * tui/tui.c: Update copyright, update references.
10032 * tui/tui-disasm.c: Update references.
10033
5d51ca54
DC
100342004-01-28 David Carlton <carlton@kealia.com>
10035
10036 * dwarf2read.c (add_partial_structure): Use demangled name if
10037 namespace equals "".
10038
086ed43d
JB
100392004-01-27 Jim Blandy <jimb@redhat.com>
10040
10041 Clean up misapplied patch:
10042 * dwarf2read.c (determine_prefix): Change one of the two forward
10043 declarations for 'determine_prefix_aux' to a declaration for this.
10044 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10045 argument to 'die_specification'.
10046
2a35147e
JB
10047 * dwarf2read.c (read_func_scope): Re-indent comment.
10048
a355c7de 100492004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10050
a355c7de
AC
10051 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10052 b->exp to NULL after freeing so that error during re-parsing or
10053 evaluation of expressions associated with breakpoint don't
10054 eventually lead to re-freeing of storage.
10055 Committed by Andrew Cagney.
10056
63ff5125
AC
100572004-01-27 Andrew Cagney <cagney@redhat.com>
10058
10059 * source.c (ambiguous_line_spec): Delete undefined declaration.
10060 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10061 (m32r_set_server_address, m32r_set_download_path): Ditto.
10062 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10063
e142c38c
DJ
100642004-01-27 Daniel Jacobowitz <drow@mvista.com>
10065
10066 * dwarf2read.c: Update calls to changed and renamed functions, and
10067 references to moved variables.
10068
10069 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10070 language, language_defn, list_in_scope, and ftypes members.
10071 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10072 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10073 (baseaddr): Remove globals.
10074
10075 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10076 (set_cu_language, die_is_declaration, die_specification)
10077 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10078 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10079 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10080 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10081
10082 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10083 cu.list_in_scope. Don't initialize cu_header_offset.
10084 (add_partial_symbol): Add local baseaddr.
10085 (psymtab_to_symtab_1): Add local baseaddr. Use
10086 objfile->section_offsets for consistency. Don't initialize
10087 cu_header_offset; do initialize cu.header.offset and
10088 cu.list_in_scope.
10089 (read_file_scope, read_func_scope, read_lexical_block_scope)
10090 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10091
c6e06ede
MC
100922004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10093
fb328ecc 10094 * PROBLEMS: Add gdb/1516.
c6e06ede 10095
48184fd4
AC
100962003-12-29 Robert Millan <robertmh@gnu.org>
10097
10098 Patch committed by Andrw Cagney.
10099 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10100 * configure.tgt: Match knetbsd*-gnu.
10101
c1321b30
AC
101022004-01-26 Andrew Cagney <cagney@redhat.com>
10103
f3699be3
AC
10104 * breakpoint.c (catch_command_1): Delete #ifdef code.
10105 (catch_fork_command_1): Delete #ifdef wrapper.
10106 (catch_exec_command_1): Ditto.
10107 (catch_load_command_1): Ditto.
10108 (catch_unload_command_1): Ditto.
10109
c1321b30
AC
10110 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10111 (catch_breakpoint): Delete #if0ed function.
10112 (disable_catch_breakpoint): Ditto.
10113 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10114 (disable_catch, enable_catch, delete_catch): Ditto.
10115
b4501125
AC
101162004-01-26 Andrew Cagney <cagney@redhat.com>
10117
10118 * remote.c (echo_check, quit_flag): Delete variables.
10119 (cisco_kernel_mode): Delete variable.
10120 (minitelnet_return, tty_input, escape_count): Delete variables.
10121 (remote_cisco_mode): Delete variable.
10122 (remote_cisco_open, remote_cisco_close): Delete function.
10123 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10124 (init_remote_cisco_ops): Delete function.
10125 (_initialize_remote): Do not install "remote cisco" code.
10126 (read_frame): Delete cisco specific code.
10127 (remote_info_process): Delete function.
10128 (remote_wait): Delete cisco specific code.
10129 (remote_cisco_section_offsets): Delete function.
10130 (remote_cisco_objfile_relocate): Delete function.
10131 (remote_async_wait): Delete cisco specific code.
10132 (minitelnet, readtty, readsocket): Delete function.
10133
74055713
AC
101342004-01-26 Andrew Cagney <cagney@redhat.com>
10135
10136 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10137 comments mentioning extract_returned_value_address.
10138 * infcmd.c (print_return_value): Update. Add comments on
10139 extract_returned_value_address.
10140 * stack.c (return_command): Add comments on
10141 extract_returned_value_address.
10142 * values.c: Update comment.
10143 * m32r-tdep.c: Update comment.
10144 * sparc-tdep.c: Update comment.
10145 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10147 * sh64-tdep.c (sh64_gdbarch_init): Update.
10148 * sh-tdep.c (sh_gdbarch_init): Update.
10149 * s390-tdep.c (s390_gdbarch_init): Update.
10150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10151 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10152 * m68k-tdep.c (m68k_gdbarch_init): Update.
10153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10154 * m32r-tdep.c (m32r_gdbarch_init): Update.
10155 * ia64-tdep.c (ia64_gdbarch_init): Update.
10156 * h8300-tdep.c (h8300_gdbarch_init): Update.
10157 * frv-tdep.c (frv_gdbarch_init): Update.
10158 * arm-tdep.c (arm_gdbarch_init): Update.
10159 * alpha-tdep.c (alpha_gdbarch_init): Update.
10160
a67af2b9
AC
101612004-01-26 Andrew Cagney <cagney@redhat.com>
10162
10163 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10164 SYMBOL_LOCATION_FUNCS
10165 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10166 "struct symbol_ops".
10167 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10168 type to "struct symbol_ops".
10169 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10170 (struct symbol): Replace ".aux_value.loc.funcs" and
10171 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10172 (SYMBOL_OBJFILE): Delete macro.
10173 (SYMBOL_LOCATION_FUNCS): Delete macro.
10174 (SYMBOL_LOCATION_BATON): Update.
10175 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10176 intead of SYMBOL_LOCATION_FUNCS.
10177 * ax-gdb.c (gen_var_ref): Ditto.
10178 * printcmd.c (address_info): Ditto.
10179 * findvar.c (read_var_value): Ditto.
10180 (symbol_read_needs_frame): Ditto.
10181
c034e007
AC
101822004-01-26 Andrew Cagney <cagney@redhat.com>
10183
10184 * dwarf2read.c (read_func_scope): Document frame-base hack.
10185
bb472c1e
MK
101862004-01-25 Mark Kettenis <kettenis@gnu.org>
10187
10188 * infcmd.c (print_return_value): Plug memory leak; delete
10189 ui_stream object. Rename argument `structure_return' to
10190 `struct_return'.
10191
c8e737d5
MK
101922004-01-25 Mark Kettenis <kettenis@gnu.org>
10193
f941662f
MK
10194 * infcmd.c (print_return_value): Wrap long lines.
10195 (finish_command_continuation, finish_command): Remove unused
10196 variable `funcaddr'. Fix some coding-standards problems.
10197
c558d81a 10198 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10199 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10200 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10201 TDEP->fpregset to zero.
10202
bf1e5861 10203 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10204 floating-point registers for traditional NetBSD core files.
10205 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10206 TDEP->sizeof_fpregset here.
10207
4c72d57a
MK
102082004-01-25 Mark Kettenis <kettenis@gnu.org>
10209
566626fa
MK
10210 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10211 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10212 function with code split out from
10213 sparc32nbsd_sigcontext_frame_cache.
10214 (sparc32nbsd_sigcontext_frame_cache): Use
10215 sparc32nbsd_sigcontext_saved_regs.
10216 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10217 OpenBSD.
10218 * sparcobsd-tdep.c: New file.
10219 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10220 (sparcobsd-tdep.o): New dependency.
10221 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10222 * config/sparc/obsd.mt: New file.
10223
4c72d57a
MK
10224 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10225 TDEP->fpregset to be initialized to enable core file register
10226 sets.
10227
7e5e9f88
MK
102282004-01-24 Mark Kettenis <kettenis@gnu.org>
10229
f0f207fd 10230 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10231 Add opaque declarations.
10232 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10233 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10234 function with code split out from
10235 sparc64nbsd_sigcontext_frame_cache.
10236 (sparc64nbsd_sigcontext_frame_cache): Use
10237 sparc64nbsd_sigcontext_saved_regs.
10238 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10239 OpenBSD.
10240 * sparc64obsd-tdep.c: New file.
10241 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10242 (sparc64obsd-tdep.o): New dependency.
10243 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10244 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10245 * config/sparc/obsd64.mt: New file.
10246
690668cc
MK
10247 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10248 read the instruction at PC.
10249
7e5e9f88
MK
10250 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10251 value of GDB_OSABI_DEFAULT.
10252 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10253 instead of GDB_OSABI_NETBSD_AOUT.
10254
68b6dce9
NR
102552004-01-24 Nick Roberts <nick@nick.uklinux.net>
10256
10257 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10258 copyright.
10259
080ce8c0
AC
102602004-01-23 Andrew Cagney <cagney@redhat.com>
10261
10262 * printcmd.c (display_command): Replace tui_set_display call with
10263 tui_set_layout_for_display_command.
10264 * tui/tui.h (enum tui_win_type): Define.
10265 (tui_set_layout): Delete declaration.
10266 (tui_set_layout_for_display_command): Rename set_tui_layout.
10267 * tui/tui-data.h (enum tui_layout_type): Define.
10268 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10269 "tui.h".
10270 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10271 (tui_default_win_height): Rename tuiDefaultWinHeight.
10272 (tui_default_win_viewport_height): Rename
10273 tuiDefaultWinViewportHeight.
10274 (tui_set_layout): RenametuiSetLayout.
10275 * tui/tui-layout.c: Update references.
10276 * tui/tui.c: Update references.
10277 * tui/tui-disasm.c: Update references.
10278
b368761e
DC
102792004-01-23 David Carlton <carlton@kealia.com>
10280
10281 Partial workaround for PR c++/1511:
10282 * cp-namespace.c: Include frame.h.
10283 (cp_lookup_transparent_type): New
10284 (cp_lookup_transparent_type_loop): New.
10285 * cp-support.h: Declare cp_lookup_transparent_type.
10286 * symtab.c (basic_lookup_transparent_type): Renamed from
10287 lookup_transparent_type.
10288 (lookup_transparent_type): Replace old body by a call to
10289 current_language->la_lookup_transparent_type.
10290 * symtab.h: Update copyright. Declare
10291 basic_lookup_transparent_type.
10292 * language.h: Update copyright.
10293 (struct language_defn): Add la_lookup_transparent_type.
10294 * language.c: Update copyright.
10295 (unknown_language_defn): Add basic_lookup_transparent_type.
10296 (auto_language_defn): Add basic_lookup_transparent_type.
10297 (local_language_defn): Add basic_lookup_transparent_type.
10298 * ada-lang.c: Update copyright.
10299 (ada_language_defn): Add basic_lookup_transparent_type.
10300 * c-lang.c: Update copyright.
10301 (c_language_defn): Add basic_lookup_transparent_type.
10302 (cplus_language_defn): Add basic_lookup_transparent_type.
10303 (asm_language_defn): Add basic_lookup_transparent_type.
10304 (minimal_language_defn): Add basic_lookup_transparent_type.
10305 * f-lang.c: Update copyright.
10306 (f_language_defn): Add basic_lookup_transparent_type.
10307 * jv-lang.c: Update copyright.
10308 (java_language_defn): Add basic_lookup_transparent_type.
10309 * m2-lang.c: Update copyright.
10310 (m2_language_defn): Add basic_lookup_transparent_type.
10311 * objc-lang.c: Update copyright.
10312 (objc_language_defn): Add basic_lookup_transparent_type.
10313 * p-lang.c: Update copyright.
10314 (p_language_defn): Add basic_lookup_transparent_type.
10315 * scm-lang.c: Update copyright.
10316 (scm_language_defn): Add basic_lookup_transparent_type.
10317 * Makefile.in (cp-namespace.o): Depend on frame.h.
10318
fdde2d81
DC
103192004-01-23 David Carlton <carlton@kealia.com>
10320
10321 Patch for PR c++/1520:
10322 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10323 properly if we have a specification die.
10324 (determine_prefix_aux): Rename from determine_prefix.
10325 (determine_prefix): Like the old determine_prefix, but never
10326 returns NULL.
10327
5b828b6b
TR
103282004-01-23 Theodore A. Roth <troth@openavr.org>
10329
10330 * avr-tdep.c: Update copyright.
10331 (avr_iaddr_p): Delete unused function.
10332 (avr_saddr_p): Delete unused function.
10333
a1b8c067
DC
103342004-01-23 David Carlton <carlton@kealia.com>
10335
10336 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10337 Fix for PR symtab/1534.
10338
f2cab569
MK
103392004-01-23 Mark Kettenis <kettenis@gnu.org>
10340
10341 * NEWS (New native configurations): Mention OpenBSD/sparc and
10342 OpenBSD/sparc64.
10343 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10344 * configure.host: Likewise.
10345 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10346 handler for OpenBSD.
10347 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10348
642d8300
MK
103492004-01-22 Mark Kettenis <kettenis@gnu.org>
10350
89aac506
MK
10351 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10352 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10353
36662fde
MK
10354 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10355 * cli/cli-cmds.c (shell_escape): Likewise.
10356
642d8300
MK
10357 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10358 OpenBSD .note.openbsd.ident sections.
10359
fae299cd
DC
103602004-01-22 David Carlton <carlton@kealia.com>
10361
10362 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10363 get_scope_pc_bounds.
10364 (read_file_scope): Ditto.
10365 (get_scope_pc_bounds): New function, produced by extracting code
10366 from the above two functions, consolidating it, and adding support
10367 for DW_TAG_namespace.
10368
a49d618c
MK
103692004-01-22 Mark Kettenis <kettenis@gnu.org>
10370
10371 * osabi.c (MAX_NOTESZ): New define.
10372 (check_note): New function.
10373 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10374 check_note.
10375
fe61caab
RM
103762004-01-21 Roland McGrath <roland@redhat.com>
10377
10378 * MAINTAINERS (write after approval): Add myself.
10379
ec145965
EZ
103802004-01-21 Eli Zaretskii <eliz@gnu.org>
10381
10382 * utils.c (init_page_info): Move declarations of `rows' and
10383 `cols' before the __GO32__-specific code. Move the closing brace
10384 outside the #ifdef __GO32__..#endif block.
10385 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10386
877522db
PB
103872004-01-21 Paul Brook <paul@codesourcery.com>
10388
10389 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10390 BPSTAT_WHAT_CHECK_SHLIBS.
10391
dbf5be1c
PB
103922004-01-21 Paul Brook <paul@codesourcery.com>
10393
10394 * MAINTAINERS: Add myself to write-after-approval.
10395
81f08b92
AC
103962004-01-20 Andrew Cagney <cagney@redhat.com>
10397
5a1efed7
AC
10398 * ax-gdb.c (print_axs_value): Delete unused function.
10399 * jv-lang.c (java_lookup_type): Delete unused function.
10400 * cli/cli-dump.c (dump_filetype): Delete unused function.
10401 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10402 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10403 (mips_getstring): Delete unused function.
10404 (pmon_insert_breakpoint): Delete #if0ed function.
10405 (PMON_MAX_BP): Delete #if0ed MACRO.
10406 (mips_pmon_bp_info): Delete #if0ed variable.
10407 (pmon_remove_breakpoint): Delete #if0ed function.
10408 * monitor.c (monitor_write_even_block): Delete unused function.
10409 (monitor_write_memory_block): Delete #if0ed code.
10410 * dink32-rom.c (dink32_load): Delete unused function.
10411 (_initialize_dink32_rom): Delete #if0ed code.
10412 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10413
b0a30fce
AC
10414 * tui/tui-command.c: Update references.
10415 * tui/tui-io.c: Update references.
10416 * tui/tui-command.h: Update copyright.
10417 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10418
81f08b92
AC
10419 * source.c (ambiguous_line_spec): Delete never-defined function.
10420 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10421 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10422 * cli/cli-cmds.c (validate_comname): Ditto.
10423
65f05602
AC
10424 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10425 "tui-data.h".
10426 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10427 (tui_show_disassem): Rename tuiShowDisassem.
10428 (tui_show_disassem_and_update_source): Rename
10429 tuiVerticalDisassemScroll.
10430 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10431 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10432 * tui/tui.h: Update copyright.
10433 (enum tui_status): Define.
10434 * tui/tui-data.h (enum tui_scroll_direction): Define.
10435 * tui/tui-disasm.c: Update copyright. Update references.
10436 * tui/tui-winsource.c: Update copyright. Update references.
10437 * tui/tui-win.c: Update references.
10438 * tui/tui-layout.c: Update references.
10439
6bb0384f
AC
104402004-01-20 Andrew Cagney <cagney@redhat.com>
10441
10442 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10443 sym2 to start of block.
10444
9175c9a3
MC
104452004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10446
10447 * MAINTAINERS: Delete mmalloc.
10448 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10449 * NEWS: Mention removal of --with-malloc.
10450 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10451 * config.in: Regenerate.
10452 * configure: Regenerate.
6bb0384f
AC
10453 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10454 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10455 * gdbinit.in: Remove mmalloc.
10456 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10457 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10458 * config/i386/go32.mh: Likewise.
10459 * config/i386/interix.mh: Likewise.
10460 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10461
4fcef00a
JJ
104622004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10463
10464 * linespec.c (decode_variable, symtab_from_filename): Call
10465 error_silent with error message instead of throwing an exception
10466 directly.
10467 * defs.h (error_silent, error_output_message): Add prototypes.
10468 (catch_exceptions_with_msg): Ditto.
10469 * utils.c (error_silent, error_output_message): New functions.
10470 * top.c (catch_exceptions_with_msg): New function.
10471
8e94b928
NR
104722004-01-20 Nick Roberts <nick@nick.uklinux.net>
10473
10474 * mi/mi-cmds.h (enum print_values): Add definition.
10475
10476 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10477 type and value for simple data types and just the name and type
10478 for complex ones, if required.
10479
10480 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10481 children, if required.
10482
a02d6af8
KB
104832004-01-19 Kevin Buettner <kevinb@redhat.com>
10484
10485 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10486 unused declarations.
10487
78a4a9b9
AC
104882004-01-19 Andrew Cagney <cagney@redhat.com>
10489
10490 * top.h (mapped_symbol_files): Delete declaration.
10491 * main.c (captured_main): Delete option "m" and "mapped".
10492 * objfiles.c (mapped_symbol_files): Delete variable.
10493 * symfile.c (symbol_file_command): Delete mmap code.
10494 (symbol_file_add_with_addrs_or_offsets): Ditto.
10495 (add_symbol_file_command, reread_separate_symbols): Ditto.
10496 * objfiles.h (OBJF_MAPPED): Delete.
10497 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10498 (free_objfile) [USE_MMALLOC]: Ditto.
10499 (open_existing_mapped_file): Delete function.
10500 (open_mapped_file): Delete function.
10501 (map_to_file): Delete function.
10502
2dbd5e30
KB
105032004-01-19 Kevin Buettner <kevinb@redhat.com>
10504
10505 * infrun.c (step_into_function): Account for possible breakpoint
10506 adjustment when computing ``stop_func_start''.
10507
437b434f
KB
105082004-01-19 Kevin Buettner <kevinb@redhat.com>
10509
10510 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10511 the region size against the size of a pointer, not the size of
10512 a register as given by DEPRECATED_REGISTER_SIZE.
10513
55fb0713
AC
105142004-01-19 Andrew Cagney <cagney@redhat.com>
10515
10516 * tui/tui-regs.h: Include "tui-data.h".
10517 (tuiFirstRegElementNoInLine): Delete declaration.
10518 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10519 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10520 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10521 (tui_calculate_regs_column_count): Rename
10522 tuiCalculateRegsColumnCount.
10523 (tui_check_register_values): Rename tuiCheckRegisterValues.
10524 (tui_show_registers): Rename tuiShowRegisters.
10525 (tui_display_registers_from_line): Rename
10526 tuiDisplayRegistersFromLine.
10527 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10528 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10529 (tui_first_reg_element_no_inline): Rename
10530 tuiFirstRegElementNoInLine.
10531 * tui/tui-data.h: Update copyright.
10532 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10533 * tui/tui-windata.c: Update copyright, update references.
10534 * tui/tui-regs.c: Update copyright, update references.
10535 * tui/tui-win.c: Update copyright, update references.
10536 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10537
cebe9500
AC
105382004-01-18 Andrew Cagney <cagney@redhat.com>
10539
bcdf1568
AC
10540 * tui/tui-io.c: Update copyright.
10541 (key_is_end_sequence, key_is_backspace): New functions.
10542 (key_is_command_char, key_is_start_sequence): New function.
10543 (tui_getc): Update references.
10544 * tui/tui-io.h: Update copyright.
10545 (m_tuiStartNewLine): Delete macro.
10546 (m_isBackspace, m_isDeleteChar): Delete macros.
10547 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10548 (m_isNextPage, m_isPrevPage): Delete macros.
10549 (m_isLeftArrow, m_isRightArrow): Delete macros.
10550 (m_isXdbStyleCommandChar): Delete macro.
10551 (key_is_start_sequence): Declare, replace m_isStartSequence.
10552 (key_is_end_sequence): Declare, replace m_isEndSequence.
10553 (key_is_backspace): Declare ,replace m_isBackspace.
10554 (key_is_command_char): Declare, replace m_isCommandChar.
10555 * tui/tui-command.c: Update copyright.
10556 (tuiDispatchCtrlChar): Update references.
10557
130d87e6
AC
10558 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10559 tuiSourceWin.h.
10560
d7b2e967
AC
10561 * tui/tui-command.c: Rename tui/tuiCommand.c.
10562 * tui/tui-command.h: Rename tui/tuiCommand.h.
10563 * tui/tui-data.c: Rename tui/tuiData.c.
10564 * tui/tui-data.h: Rename tui/tuiData.h.
10565 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10566 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10567 * tui/tui-io.c: Rename tui/tuiIO.c.
10568 * tui/tui-io.h: Rename tui/tuiIO.h.
10569 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10570 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10571 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10572 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10573 * tui/tui-source.c: Rename tui/tuiSource.c.
10574 * tui/tui-source.h: Rename tui/tuiSource.h.
10575 * tui/tui-stack.c: Rename tui/tuiStack.c.
10576 * tui/tui-stack.h: Rename tui/tuiStack.h.
10577 * tui/tui-win.c: Rename tui/tuiWin.c.
10578 * tui/tui-win.h: Rename tui/tuiWin.h.
10579 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10580 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10581 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10582 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10583 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10584 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10585 * tui/tui-file.c: Update includes.
10586 * tui/tui-hooks.c: Update includes.
10587 * tui/tui-interp.c: Update includes.
10588 * tui/tui.c: Update includes.
10589 * Makefile.in: Update all tui/ dependencies.
10590 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10591
b2100910
AC
10592 * Makefile.in: Update copyright. Update dependencies.
10593
cebe9500
AC
10594 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10595 problem.
10596
c6f0559b
AC
105972004-01-18 Andrew Cagney <cagney@redhat.com>
10598
43e9390b
AC
10599 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10600 instead of register_gdbarch_init.
10601
c6f0559b
AC
10602 * remote-sds.c (tohex): Delete unused function. Update copyright.
10603 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10604 * v850-tdep.c (v850_register_virtual_size): Ditto.
10605 * target.c (normal_target_post_startup_inferior): Ditto.
10606 * source.c (ambiguous_line_spec): Ditto.
10607 * remote.c (adapt_remote_get_threadinfo): Ditto.
10608 * mi/mi-out.c (out_field_fmt): Ditto.
10609 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10610 (output_control_change_notification): Ditto.
10611 * m68k-tdep.c (m68k_register_byte): Ditto.
10612 (m68k_remote_breakpoint_from_pc): Ditto.
10613 * ui-out.c (init_ui_out_state): Delete unused declaration.
10614 * stabsread.c (search_value): Ditto.
10615 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10616 * maint.c (print_section_table): Ditto.
10617 * infrun.c (set_follow_fork_mode_command): Ditto.
10618
a8504492
MK
106192004-01-18 Mark Kettenis <kettenis@gnu.org>
10620
10621 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10622 DW_CFA_def_cfa_exporession. Add support for
10623 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10624 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10625
0bd8997e
AC
106262004-01-18 Andrew Cagney <cagney@redhat.com>
10627
10628 * ocd.c: Update copyright.
10629 (bdm_read_register_command): Delete unused function.
10630 (_initialize_remote_ocd): Delete commented out reference.
10631 (get_quoted_char, reset_packet): Delete #if0ed function.
10632 (output_packet, put_quoted_char): Delete #if0ed function.
10633 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10634 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10635 (BDM_BREAKPOINT): Delete #if0ed macro.
10636 (remote_timeout): Delete #if0ed variable.
10637
31bb40e4
MK
106382004-01-18 Mark Kettenis <kettenis@gnu.org>
10639
10640 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10641 (core-sol2.o): Remove dependency.
10642 * core-sol2.c: Remove file.
10643
887432a5
AC
106442004-01-17 Andrew Cagney <cagney@redhat.com>
10645
10646 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10647 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10648 enums.
10649
29182b13
DJ
106502004-01-17 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * remote.c: Update copyright years.
10653
2963ee1d
DJ
106542004-01-17 Daniel Jacobowitz <drow@mvista.com>
10655
10656 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10657
79d45cd4
AC
106582004-01-17 Andrew Cagney <cagney@redhat.com>
10659
ee300cd4
AC
10660 * mdebugread.c: Update copyright.
10661 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10662 (parse_type, parse_procedure): Ditto.
10663 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10664
fcacc9c2
AC
10665 * cris-tdep.c (cris_store_struct_return): Put back accidently
10666 deleted function.
10667
79d45cd4
AC
10668 * gdbarch.sh: Update copyright year.
10669 * gdbarch.h, gdbarch.c: Re-generate.
10670
b263358a
DJ
106712004-01-17 Daniel Jacobowitz <drow@mvista.com>
10672
10673 Suggested by George Anzinger.
10674 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10675 correct stack offset. Include unknown opcode numbers in the error
10676 message.
10677
931aecf5
AC
106782004-01-17 Andrew Cagney <cagney@redhat.com>
10679
10680 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10681 extract_struct_value_address, i386 does not set it.
10682 * sparc64-tdep.c (sparc64_init_abi): Do not set
10683 extract_struct_value_address, never called.
10684 (sparc64_extract_struct_value_address): Delete function.
10685 * m68hc11-tdep.c: Update copyright.
10686 (m68hc11_gdbarch_init): Delete redundant assignment of
10687 extract_struct_value_address.
10688 * i386-tdep.c: Update copyright.
10689 (i386_gdbarch_init): Do not set extract_struct_value_address,
10690 never called.
10691 (i386_extract_struct_value_address): Delete function.
10692 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10693 extract_struct_value_address, never called.
10694 (sparc32_extract_struct_value_address): #if 0 function. Add
10695 comments explaining its future.
10696
756fe439
DJ
106972004-01-17 Daniel Jacobowitz <drow@mvista.com>
10698
10699 * arm-tdep.c (arm_write_pc): New function.
10700 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10701
e74f0f02
DJ
107022004-01-17 Daniel Jacobowitz <drow@mvista.com>
10703
10704 * breakpoint.c (must_shift_inst_regs): Delete.
10705 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10706 and SHIFT_INST_REGS.
10707 * infcmd.c (step_1, step_1_continuation): Delete references to
10708 SHIFT_INST_REGS.
10709 * infrun.c (keep_going): Likewise.
10710 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10711 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10712
b6cb9035
AC
107132004-01-17 Andrew Cagney <cagney@redhat.com>
10714
444a1e2e
AC
10715 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10716 * gdbarch.h, gdbarch.c: Re-generate.
10717 * infcmd.c (print_return_value): Delete reference to
10718 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10719
def7e6ed
AC
10720 * cris-tdep.c (cris_gdbarch_init): Do not set
10721 deprecated_extract_struct_value_address.
10722
07be497a
AC
10723 * xstormy16-tdep.c: Update copyright.
10724 (xstormy16_extract_struct_value_address): Update to current
10725 extract struct value address interface.
10726 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10727 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10728 current extract struct value address interface.
10729 (sh64_gdbarch_init): Set extract_struct_value_address.
10730
6b4d5c91
AC
10731 * cris-tdep.c: Update copyright.
10732 (cris_extract_struct_value_address): Delete function.
10733 (struct_return_address): Delete variable.
10734 (cris_store_struct_return): Do not set struct_return_address.
10735
464e0365
AC
10736 * mcore-tdep.c: Update copyright.
10737 (mcore_extract_struct_value_address): Delete function. Update
10738 comments.
10739 (mcore_gdbarch_init): Update.
10740 * mn10300-tdep.c: Update copyright.
10741 (mn10300_extract_struct_value_address): Delete function.
10742 (mn10300_gdbarch_init): Update.
10743 * v850-tdep.c: Update copyright.
10744 (v850_extract_struct_value_address): Delete.
10745 (v850_gdbarch_init): Update.
10746 * ns32k-tdep.c: Update copyright.
10747 (ns32k_extract_struct_value_address): Delete.
10748 (ns32k_gdbarch_init): Update.
10749 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10750 (hppa_gdbarch_init): Update.
10751 * vax-tdep.c: Update copyright.
10752 (vax_extract_struct_value_address): Delete.
10753 (vax_gdbarch_init): Update.
10754
afb18d0f
AC
10755 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10756 * gdbarch.h, gdbarch.c: Re-generate.
10757 * procfs.c (procfs_fetch_registers): Delete reference to
10758 DEPRECATED_NPC_REGNUM.
10759 (procfs_store_registers): Ditto.
10760 * regcache.c (generic_target_write_pc): Simplify.
10761 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10762
a698f53e
AC
10763 * core-sol2.c (fetch_core_registers): Replace
10764 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10765
adc11376
AC
10766 * hppa-tdep.c: Update copyright year.
10767 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10768 NPC_REGNUM.
10769 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10770
b6cb9035
AC
10771 * mips-tdep.c (mips_write_pc): New function.
10772 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10773 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10774 (mips_find_saved_regs, mips_software_single_step: Ditto.
10775 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10776 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10777
6d82d43b
AC
107782004-01-17 Andrew Cagney <cagney@redhat.com>
10779
10780 * mips-tdep.c: Re-indent. Group functions by ABI.
10781
71bd6bd4
AC
107822004-01-17 Andrew Cagney <cagney@redhat.com>
10783
10784 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10785 * gdbarch.c: Re-generate.
10786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10787 DECR_PC_AFTER_BREAK to zero.
10788 * vax-tdep.c (vax_gdbarch_init): Ditto.
10789 * v850-tdep.c (v850_gdbarch_init): Ditto.
10790 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10791 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10792 * sh-tdep.c (sh_gdbarch_init): Ditto.
10793 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10794 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10796 * mips-tdep.c (mips_gdbarch_init): Ditto.
10797 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10799 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10800 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10801 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10802 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10803 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10804 * frv-tdep.c (frv_gdbarch_init): Ditto.
10805 * cris-tdep.c (cris_gdbarch_init): Ditto.
10806 * avr-tdep.c (avr_gdbarch_init): Ditto.
10807 * arm-tdep.c (arm_gdbarch_init): Ditto.
10808 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10809
a02abb62
JB
108102004-01-17 J. Brobecker <brobecker@gnat.com>
10811
10812 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10813 Delete, no longer used.
10814 (read_subrange_type): New function, mostly extracted from
10815 read_array_type().
10816 (read_array_type): Replace extracted code by call to
10817 read_subrange_type().
10818 (dwarf2_get_attr_constant_value): New function.
10819 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10820 (add_partial_symbol): Likewise.
10821 (process_die): Likewise.
10822 (new_symbol): Likewise.
10823 (read_type_die): Likewise.
10824
cf5b2f1b
AC
108252004-01-16 Andrew Cagney <cagney@redhat.com>
10826
10827 * symfile.c: Update copyright year.
10828 (compare_symbols): Delete unused function.
10829 * stabsread.c: Update copyright year.
10830 (lrs_general_complaint): Delete unused function.
10831 (ref_search_value): Ditto.
10832 (get_substring): Delete declaration.
10833 * sh64-tdep.c: Update copyright year.
10834 (sh64_get_gdb_regnum): Delete unused function.
10835 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10836 Delete unused function.
10837
d33b9831
MK
108382004-01-17 Mark Kettenis <kettenis@gnu.org>
10839
10840 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10841 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10842
7aea86e6
AC
108432004-01-16 Andrew Cagney <cagney@redhat.com>
10844
10845 Changes from Peter Schauer.
10846 * rs6000-tdep.c: Update copyright year.
10847 (rs6000_push_dummy_call): Update the stack pointer before
10848 accessing the corresponding stack region.
10849 * rs6000-nat.c: Update copyright year.
10850 (set_host_arch): Set "info.abfd" to "exec_bfd".
10851
26b0da32
MK
108522004-01-15 Mark Kettenis <kettenis@gnu.org>
10853
10854 * blockframe.c: Update copyright year.
10855 (inside_entry_func): Don't treat a zero PC specially.
10856
86fbe6cc
EZ
108572004-01-14 Elena Zannoni <ezannoni@redhat.com>
10858
10859 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10860 variable.
10861 (gcore_create_callback): Ditto. Skip any memory segment that has
10862 no permissions set.
10863
63d06c5c
DC
108642004-01-14 David Carlton <carlton@kealia.com>
10865
10866 Change symbols for C++ nested types to contain the fully qualified
10867 name, if possible. (At least in the DWARF-2 case.) Partial fix
10868 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10869 c++/895.
10870 * c-exp.y (qualified_type): Handle types nested within classes.
10871 * cp-namespace.c: Update comments.
10872 (cp_set_block_scope): Delete #if 0.
10873 (cp_lookup_nested_type): Handle types nested within classes.
10874 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10875 when appropriate.
10876 (add_partial_symbol): Add the name of the enclosing namespace to
10877 types.
10878 (pdi_needs_namespace): New.
10879 (add_partial_namespace): Tweak comment.
10880 (add_partial_structure): New.
10881 (psymtab_to_symtab_1): Initialize processing_current_prefix
10882 here...
10883 (process_die): instead of here.
10884 (read_structure_scope): Try to figure out the name of the class or
10885 namespace that the structure might be defined within.
10886 (read_enumeration): Generate fully-qualified names, if possible.
10887 (read_namespace): Don't set name to NULL.
10888 (die_specification): New.
10889 (new_symbol): Generate fully-qualified names for types.
10890 (read_type_die): Determine appropriate prefix.
10891 (determine_prefix): New.
10892 (typename_concat): New.
10893 (class_name): New.
10894 * valops.c (value_aggregate_elt): Pass NOSIDE to
10895 value_struct_elt_for_reference.
10896 (value_struct_elt_for_reference): Make static, add NOSIDE
10897 parameter, call value_maybe_namespace_elt as a last resort.
10898 (value_namespace_elt): Break out code into
10899 value_maybe_namespace_elt.
10900 (value_maybe_namespace_elt): New.
10901
87783b8b
AC
109022004-01-12 Andrew Cagney <cagney@redhat.com>
10903
10904 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10905 cooked floating-point registers.
10906 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10907 and value_to_register.
10908
6503b91e
AC
109092004-01-13 Andrew Cagney <cagney@redhat.com>
10910
10911 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10912 * gdbarch.c: Re-generate.
10913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10914 FUNCTION_START_OFFSET.
10915 * v850-tdep.c (v850_gdbarch_init): Ditto.
10916 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10917 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10918 * sh-tdep.c (sh_gdbarch_init): Ditto.
10919 * s390-tdep.c (s390_gdbarch_init): Ditto.
10920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10921 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10923 * mips-tdep.c (mips_gdbarch_init): Ditto.
10924 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10925 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10927 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10928 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10929 * i386-tdep.c (i386_gdbarch_init): Ditto.
10930 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10931 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10932 * frv-tdep.c (frv_gdbarch_init): Ditto.
10933 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10934 * cris-tdep.c (cris_gdbarch_init): Ditto.
10935 * avr-tdep.c (avr_gdbarch_init): Ditto.
10936 * arm-tdep.c (arm_gdbarch_init): Ditto.
10937 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10938
ea1dd7bc
DJ
109392004-01-13 Daniel Jacobowitz <drow@mvista.com>
10940
10941 * infrun.c (follow_fork_mode_ask): Remove.
10942 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10943 (follow_fork): Simplify and remove internal error for
10944 follow_fork_mode_ask.
10945 (_initialize_infrun): Update "set follow-fork-mode" help text.
10946
0f0cffd2
AC
109472004-01-13 Andrew Cagney <cagney@redhat.com>
10948
10949 * configure.in: Update copyright year.
10950 (build_warnings): Add -Wunused-label.
10951 * configure: Re-generate.
10952
de38af99
AC
109532004-01-12 Andrew Cagney <cagney@redhat.com>
10954
954a7fba
AC
10955 * exec.h (exec_ops): Make "extern".
10956
de38af99
AC
10957 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10958 the function is void.
10959 (mips_pseudo_register_write): Ditto.
10960
1a111ce3
AC
109612004-01-12 Andrew Cagney <cagney@redhat.com>
10962
10963 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10964 call. Never defined.
10965 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10966 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10967 (struct sparc_gregset, struct regcache): Ditto.
10968 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10969
48efe704
AC
109702004-01-12 Andrew Cagney <cagney@redhat.com>
10971
10972 * mi/ChangeLog: Delete file. Renamed to ...
10973 * mi/ChangeLog-1999-2003: New file.
10974 * tui/ChangeLog: Delete file. Renamed to ...
10975 * tui/ChangeLog-1998-2003: New file.
fe61caab 10976
a54124c5
MK
109772004-01-11 Mark Kettenis <kettenis@gnu.org>
10978
2ca62865
MK
10979 * sparc64nbsd-tdep.c: Include "regset.h".
10980 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10981 Remove variables.
10982 (fetch_core_registers): Remove function.
10983 (sparc64nbsd_core_fns): Remove variable.
10984 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10985 functions.
10986 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10987 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10988 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10989
ca9d58e9
MK
10990 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10991 sparc_extract_struct_value_address.
10992 (sparc32_gdbarch_init): Set extract_struct_value_address.
10993 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10994 function.
10995 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10996 return_value_on_stack.
10997
3cc87ec0
MK
10998 * NEWS: Mention that %cs and %ss have been added to the AMD64
10999 configurations
11000
5bf00f29
MK
11001 * frame.c: Update copyright year.
11002 (get_prev_frame): Improve comment.
11003
4f7ec84e
MK
11004 * sparc64fbsd-tdep.c: Include "regset.h".
11005 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11006 Remove variables.
11007 (fetch_core_registers): Remove function.
11008 (sparc64fbsd_core_fns): Remove variable.
11009 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11010 functions.
11011 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11012 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11013 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11014
4e7b0cd3
MK
11015 * sparcnbsd-tdep.c: Include "regset.h".
11016 (fetch_core_registers): Remove function.
11017 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11018 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11019 functions.
11020 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11021 TDEP->fpregset.
46b58ce9 11022 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11023
a54124c5
MK
11024 * sparc-tdep.h (struct regset): Provide opaque declaration.
11025 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11026 fpregset and sizeof_fpregset members.
11027 * sparc-tdep.c (struct regset): Provide opaque declaration.
11028 (sparc_regset_from_core_section): New function.
11029 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11030 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11031 Set regset_from_core_section when appropriate.
11032
29ff87c5
MK
110332004-01-10 Mark Kettenis <kettenis@gnu.org>
11034
79b1ab3d
MK
11035 * x86-64-tdep.c (amd64_non_pod_p): New function.
11036 (amd64_classify_aggregate): Return class memory for non-POD
11037 C++ structure types.
11038
6470d250
MK
11039 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11040 argument. Use it to reserve a register if necessary.
11041 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11042 amd64_push_arguments.
11043
562c50c2
MK
11044 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11045
af233647
MK
11046 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11047 register numbers in comments.
11048 * x86-64-tdep.h: Update copyright year.
11049 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11050 Adjust for addition of %cs and %ss.
11051 * amd64fbsd-nat.c: Update copyright year.
11052 (reg_offset): Add register offsets for %cs and %ss.
11053 * amd64fbsd-tdep.c: Update copyright year.
11054 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11055 (amd64fbsd_sc_reg_offset): Likewise.
11056 * x86-64-linux-nat.c: Update copyright year.
11057 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11058 and %ss.
11059 * amd64nbsd-nat.c: Update copyright year.
11060 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11061 * amd64nbsd-tdep.c: Update copyright year.
11062 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11063 * x86-64-linux-tdep.c: Update copyright year.
11064 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11065 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11066 * regformats/reg-x86-64.dat: Add %cs and %ss.
11067
29ff87c5
MK
11068 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11069 variables to prevent long lines. Update comments to reflect
11070 reality.
11071
38d518c9
EZ
110722004-01-09 David Carlton <carlton@kealia.com>
11073
11074 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11075 * dwarf2read.c (read_namespace): Pull out name-generating code
11076 into namespace_name. Rename previous_namespace to previous_prefix
11077 and processing_current_namespace to processing_current_prefix..
11078 (namespace_name): New function.
11079 (add_partial_symbol): Substitute uses of pdi->name with
11080 actual_name.
11081 * cp-support.h: Rename processing_current_namespace to
11082 processing_current_prefix.
11083 Update copyright year.
11084 * cp-namespace.c: Rename processing_current_namespace to
11085 processing_current_prefix.
11086 Update copyright year.
fe61caab 11087
1e4728e7
AC
110882004-01-09 Andrew Cagney <cagney@redhat.com>
11089
11090 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11091
c77c642a
MK
110922004-01-09 Mark Kettenis <kettenis@gnu.org>
11093
11094 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11095 complaining.
11096 (process_one_symbol): Deal with N_PATCH stabs.
11097
b44e9041
EZ
110982004-01-09 Elena Zannoni <ezannoni@redhat.com>
11099
11100 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11101 ifdeffed code.
11102 Update copyright year.
38d518c9 11103
eccfb640
MC
111042004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11105
11106 * config/pa/tm-hppa.h: Update extern declarations for
11107 hppa32_hpux_frame_saved_pc_in_sigtramp,
11108 hppa32_hpux_frame_base_before_sigtramp, and
11109 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11110
848c5feb
MC
111112004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11112
11113 * config/pa/tm-hppah.h: Update copyright years.
11114
3cc5d663
AC
111152004-01-08 Andrew Cagney <cagney@redhat.com>
11116
11117 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11118 (mips_o32_reg_struct_has_addr): Delete function.
11119 (mips_gdbarch_init): Update.
11120 (mips_extract_struct_value_address): Delete function.
11121
bfec0b41
JJ
111222004-01-08 David Mosberger <davidm@hpl.hp.com>
11123
11124 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11125 reality.
11126
16e109ca
AC
111272004-01-07 Andrew Cagney <cagney@redhat.com>
11128
6214a8a1
AC
11129 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11130 architecture's elf flags (when available).
11131
8d5838b5
AC
11132 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11133 FPU to the start, check the MIPS FPU when looking for an old
11134 architecture.
11135 (set_mipsfpu_single_command): Update the architecture.
11136 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11137
480d3dd2
AC
11138 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11139 (mips_mask_address_p): Add "tdep" parameter.
11140 (show_mask_address, mips_addr_bits_remove): Update.
11141 (mips_dump_tdep): Update.
11142 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11143 (MIPS_STACK_ARGSIZE): Delete macro.
11144 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11145 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11146 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11147 (mips_dump_tdep): Update.
11148 (MIPS_SAVED_REGSIZE): Delete macro.
11149 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11150 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11151 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11152 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11153 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11154 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11155 (mips_pop_frame, return_value_location): Update.
11156 (mips_n32n64_return_value, mips_dump_tdep): Update.
11157
ec03c1ac
AC
11158 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11159 MIPS ABI.
11160
16e109ca
AC
11161 * mips-tdep.c: Update copyright.
11162 (mips_gdbarch_init): Merge two code blocks handling the register
11163 name and number layout.
11164
15255275
MS
111652004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11166
11167 * tracepoint.c (validate_actionline): Fix segv at EOF
11168
9f9057da
MC
111692004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11170
11171 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11172 properly for static fields.
11173
0127c0d3 111742004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11175 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11176
11177 * disasm.c: Update copyright to include 2004.
11178 (do_mixed_source_and_assembly): For uiout asm list
11179 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11180 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11181 the tuple/list. Move check for whether to close off the
fe61caab 11182 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11183 on each loop iteration.
11184
5269965e
AC
111852004-01-05 Andrew Cagney <cagney@redhat.com>
11186
54f1137d
AC
11187 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11188 should be a switch case and not a label.
11189 * mips-tdep.c (mips32_next_pc): Delete unused labels
11190 "greater_equal_branch" and "less_zero_branch".
11191 * jv-valprint.c (java_print_value_fields): Delete unused label
11192 "flush_it".
11193
5269965e
AC
11194 * target.c (unpush_target): Only close a target that is in the
11195 target stack.
11196
dbc22fa1
MK
111972004-01-05 Mark Kettenis <kettenis@gnu.org>
11198
9515395e
MK
11199 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11200 address from [sp + 64] instead of %o2.
11201
dbc22fa1
MK
11202 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11203 fixes PR backtrace/1476.
11204
5439edaa
AC
112052004-01-05 Andrew Cagney <cagney@redhat.com>
11206
11207 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11208 move to start of file.
11209 * i386-tdep.h (struct regcache): Add opaque declaration.
11210 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11211 declaration.
11212 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11213 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11214 * win32-nat.c (fake_create_process): Use ISO C style definition.
11215 * stabsread.c (define_symbol): Delete #ifndef
11216 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11217 stabs_argument_has_addr call, macro never defined.
11218
19061abe
MC
112192004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11220
11221 * op50-rom.c: Delete.
11222 * w89k-rom.c: Delete.
11223 * Makefile.in: Remove references.
11224
e53bef9f
MK
112252004-01-04 Mark Kettenis <kettenis@gnu.org>
11226
11227 * x86-64-tdep.c: Update copyright year.
11228 (struct amd64_register_info): Rename from x86_64_register_info.
11229 (amd64_register_info): Rename from x86_64_register_info.
11230 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11231 (amd64_register_name): Rename from x86_64_register_name.
11232 (amd64_register_type): Rename from x86_64_register_type.
11233 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11234 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11235 (amd64_dwarf_reg_to_regnum): Rename from
11236 x86_64_dwarf_reg_to_regnum.
11237 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11238 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11239 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11240 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11241 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11242 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11243 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11244 (amd64_frame_cache): Rename from x86_64_frame_cache.
11245 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11246 (amd64_frame_prev_register): Rename from
11247 x86_64_frame_prev_register.
11248 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11249 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11250 (amd64_sigtramp_frame_cache): Rename from
11251 x86_64_sigtramp_frame_cache.
11252 (amd64_sigtramp_frame_prev_register): Rename from
11253 x86_64_sigtramp_frame_prev_register.
11254 (amd64_sigtramp_frame_unwind): Rename from
11255 x86_64_sigtramp_frame_unwind.
11256 (amd64_sigtramp_frame_sniffer): Rename from
11257 x86_64_sigtramp_frame_sniffer.
11258 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11259 (amd64_frame_base): Rename from x86_64_frame_base.
11260 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11261 (amd64_frame_align): Rename from x86_64_frame_align.
11262 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11263 (amd64_regset_from_core_section): Rename from
11264 x86_64_regset_from_core_section.
11265 (x86_64_init_abi): Update comments.
11266
fca6aa58
NR
112672004-01-04 Nick Roberts <nick@nick.uklinux.net>
11268
11269 * MAINTAINERS (write after approval): Add myself.
11270
8ada74e3
MK
112712004-01-04 Mark Kettenis <kettenis@gnu.org>
11272
11273 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11274 `float' arguments.
11275
5154b0cd
MK
112762004-01-04 Mark Kettenis <kettenis@gnu.org>
11277
11278 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11279 such that it mentions a specific version of GCC that exhibits this
11280 bug.
11281
fb316966
MK
112822004-01-03 Mark Kettenis <kettenis@gnu.org>
11283
200cc553
MK
11284 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11285 structure that has a single `float' member, store it in %f1 in
11286 addition to %f0.
11287
e226a4a0
MK
11288 * sparc-sol2-nat.c: Add missing '\'.
11289
b9d4c5ed
MK
11290 * sparc-tdep.c (sparc32_return_value): New function.
11291 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11292 Remove functions.
11293 (sparc32_gdbarch_init): Set return_value, don't set
11294 extract_return_value, store_return_value, use_struct_convention
11295 and return_value_on_stack.
11296
fb316966
MK
11297 * sparc-sol2-nat.c: Add missing ')'.
11298
1af510a8
JB
112992004-01-03 J. Brobecker <brobecker@gnat.com>
11300
11301 * infrun.c (handle_step_into_function): New function.
11302 (handle_inferior_event): Extract out some code into the new
11303 function above.
11304
5cf4d23a
JB
113052004-01-03 J. Brobecker <brobecker@gnat.com>
11306
11307 * infrun.c (handle_inferior_event): Move the declaration of
11308 real_stop_pc inside the if blocks where it is used.
11309
60af1db2
MK
113102004-01-03 Mark Kettenis <kettenis@gnu.org>
11311
11312 * sparc64-tdep.c (sparc64_16_byte_align_p)
11313 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11314 Use check_typedef to get subtypes of structures and unions.
11315 (sparc64_store_return_value): Fix calculation of the appropriate
11316 offset into VALBUF when storing a structure or union.
11317 (sparc64_return_value): New function.
11318 (sparc64_use_struct_convention): Remove function.
11319 (sparc64_init_abi): Set return_value, don't set
11320 extract_return_value, store_return_value and
11321 use_struct_convention.
11322
1a901d3f
EZ
113232004-01-03 Eli Zaretskii <eliz@elta.co.il>
11324
11325 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11326 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11327 gdb/config/alpha/xm-alphaosf.h,
11328 gdb/config/powerpc/tm-ppcle-eabi.h,
11329 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11330 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11331 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11332 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11333 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11334 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11335 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11336 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11337 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11338 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11339 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11340 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11341 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11342 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11343 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11344 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11345 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11346 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11347 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11348 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11349 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11350 Remove lines for .cvsignore files.
11351
ef52e463
JB
113522004-01-03 J. Brobecker <brobecker@gnat.com>
11353
11354 * infrun.c: Back out the previous change.
11355
cb1bf9dc
MK
113562004-01-03 Mark Kettenis <kettenis@gnu.org>
11357
f0424ef6
MK
11358 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11359 sparc-*-sunos4* to the list of REMOVED configurations.
11360
cb1bf9dc
MK
11361 * configure.tgt: Add back sparc-*-vxworks*.
11362 * remote-vxsparc.c: Remove all includes except for "defs.h",
11363 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11364 Include "sparc-tdep.h".
11365 (SPARC_R_G1): New define.
11366 (vxsparc_gregset): New variable.
11367 (ext_format_sparc): Remove extern declaration.
11368 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11369 sparc32_supply_fpregset.
11370 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11371 sparc_collect_rwindow and sparc32_collect_fpregset.
11372 * config/sparc/tm-vxworks.h: New file, based on recently removed
11373 tm-vxsparc.h.
11374 * config/sparc/vxworks.mt: New file, based on recently removed
11375 vxworks.mt.
fe61caab 11376
5e938f9f
JB
113772004-01-03 J. Brobecker <brobecker@gnat.com>
11378
11379 * infrun.c (handle_step_into_function): New function.
11380 (handle_inferior_event): Extract out some code into the new
11381 function above.
11382
386c036b
MK
113832004-01-02 Mark Kettenis <kettenis@gnu.org>
11384
11385 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11386 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11387 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11388 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11389 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11390 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11391 (sparc_nat_h): New variable.
11392 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11393 (tm-sun4os4.h): Remove dependency.
11394 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11395 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11396 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11397 sparc-tdep.o): Update dependencies.
11398 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11399 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11400 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11401 dependencies.
11402 * configure.host: Remove existing sparc-*-lynxos*,
11403 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11404 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11405 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11406 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11407 triplets.
11408 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11409 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11410 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11411 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11412 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11413 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11414 sparc64-*-solaris2* and sparc64-*-* triplets.
11415 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11416 "symtab.h" and "objfiles.h".
11417 (BIAS): Remove define.
11418 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11419 (X_DISP19): Remove macros.
11420 (sparc_fetch_instruction): Remove function.
11421 (struct gdbarch_tdep): Remove definition.
11422 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11423 (sparc_breakpoint_from_pc): Remove function.
11424 (struct sparc64_frame_cache): Remove definition.
11425 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11426 sparc64_unwind_pc): Remove functions.
11427 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11428 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11429 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11430 (sparc64_frame_cache): Change return type to `struct
11431 sparc_frame_cache *'. Simply call sparc_frame_cache.
11432 (sparc64_frame_this_id, sparc64_frame_prev_register,
11433 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11434 instead of `struct sparc64_frame_cache.
11435 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11436 sparc_analyze_control_transfer, sparc_software_single_step,
11437 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11438 _initialize_sparc64_tdep): Remove functions.
11439 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11440 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11441 macros.
11442 (sparc64_supply_gregset, sparc64_collect_gregset,
11443 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11444 (sparc64_init_abi): New function.
11445 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11446 inclusion guard. Include "sparc-tdep.h".
11447 (BIAS): Define.
11448 (r_tstate_offset, r_fprs_offset): New defines.
11449 (enum sparc_regnum): Remove defenition.
11450 (enum sparc64_regnum): Reformat.
11451 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11452 (sparc64_init_abi, sparc64_supply_gregset,
11453 sparc64_collect_gregset, sparc64_supply_fpregset,
11454 sparc64_collect_fpregset): New prototypes.
11455 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11456 Add extern declarations.
11457 (sparc64_sol2_init_abi): New prototype.
11458 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11459 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11460 prototypes.
11461 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11462 "sparnbsd-nat.h".
11463 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11464 functions.
11465 (_initialize_sparc64fbsd_nat): Remove initialization of
11466 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11467 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11468 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11469 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11470 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11471 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11472 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11473 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11474 (sparc64fbsd_r_y_offset): Remove variables.
11475 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11476 Make static and const.
11477 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11478 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11479 functions.
11480 (sparc64fbsd_gregset): New variable.
11481 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11482 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11483 and sparc64_supply_fpregset.
11484 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11485 (sparc64fbsd_sigtramp_frame_this_id)
11486 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11487 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11488 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11489 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11490 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11491 * sparcnbsd-tdep.c: Update copyright year. Include
11492 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11493 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11494 "value.h" and "sparcnbsd-tdep.h".
11495 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11496 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11497 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11498 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11499 defines.
11500 (sparcnbsd_gregset): New variable.
11501 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11502 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11503 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11504 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11505 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11506 variables.
11507 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11508 (sparc32nbsd_sigcontext_frame_this_id)
11509 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11510 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11511 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11512 (sparcnbsd_get_longjmp_target_32,
11513 sparcnbsd_get_longjmp_target_64): Remove functions.
11514 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11515 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11516 sparcnbsd_init_elf): Remove.
11517 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11518 (sparcnbsd_elf_init_abi): New functions.
11519 (_initialize_sparcnbsd_tdep): New prototype.
11520 (_initialize_sparnbsd_tdep): Update.
11521 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11522 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11523 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11524 * config/sparc/linux.mh: Update comment.
11525 (XM_FILE, HOST_IPC): Remove variables.
11526 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11527 sparc-linux-nat.o.
11528 * config/sparc/linux.mt: Update comment.
11529 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11530 * config/sparc/nbsd.mt: Reformat.
11531 * config/sparc/nbsd64.mh: Update comment.
11532 (NATDEPFILES): Add sparc-nat.o.
11533 * config/sparc/nbsd64.mt: Update comment.
11534 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11535 (TM_FILE): Set to tm-nbsd.h.
11536 * config/sparc/nbsdelf.mh: Update comment.
11537 (NATDEPFILES): Add sparc-nat.o.
11538 (XM_FILE): Delete.
11539 * config/sparc/nbsdaout.mh: Update comment.
11540 (NATDEPFILES): Add sparc-nat.o
11541 (XM_FILE): Delete.
11542 * config/sparc/nm-linux.h: Update copyright year. Don't include
11543 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11544 inclusion.
11545 (KERNEL_U_SIZE): Remove define.
11546 (kernel_u_size): Remove prototype.
11547 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11548 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11549 "regcache.h".
11550 (CHILD_PREPARE_TO_STORE): Remove define.
11551 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11552 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11553 sparcnbsd-nat.c: Rewrite files.
11554 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11555 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11556 sparcnbsd-tdep.h: Remove files.
11557 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11558 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11559 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11560 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11561 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11562 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11563 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11564 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11565 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11566 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11567 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11568 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11569 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11570 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11571 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11572 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11573 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11574 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11575 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11576
ee84457a
AC
115772004-01-02 Andrew Cagney <cagney@redhat.com>
11578
11579 From 2003-12-18 Kazuhiro Inaoka:
11580 * configure.host: Add m32r-linux target.
11581
0bc2134e
MC
115822004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11583
11584 * top.c (print_gdb_version): Update year to 2004.
11585
89a72f9c
MM
115862004-01-02 Mark Mitchell <mark@codesourcery.com>
11587
11588 * MAINTAINERS: Add myself to the write-after-approval category.
11589
86b013ed
DJ
115902004-01-02 Daniel Jacobowitz <drow@mvista.com>
11591
11592 From Bernardo Innocenti <bernie@develer.com>:
11593 * configure.tgt: Add uClinux target.
11594
e42c9534
AC
115952004-01-02 Andrew Cagney <cagney@redhat.com>
11596
11597 * utils.c (do_my_cleanups): Make static, add forward declaration.
11598 * defs.h (do_my_cleanups): Delete declaration.
11599
162467d3
EZ
116002004-01-02 Eli Zaretskii <eliz@elta.co.il>
11601
11602 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11603 bfd/ChangeLog-0203.
11604
78434e59
MK
116052004-01-02 Mark Kettenis <kettenis@gnu.org>
11606
11607 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11608 in <machine/reg.h>.
11609 * configure, config.in: Regenerate.
11610
48efe704
AC
11611For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11612tui/ChangeLog-1998-2003.
c906108c
SS
11613\f
11614Local Variables:
11615mode: change-log
11616left-margin: 8
11617fill-column: 74
11618version-control: never
11619End:
This page took 1.46281 seconds and 4 git commands to generate.