Index: ChangeLog
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b8c4aece
AC
12004-09-03 Andrew Cagney <cagney@gnu.org>
2
f3219c75
AC
3 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
4 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
5 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
6 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
7 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
8 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
9 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
10 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
11 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
12
b8c4aece
AC
13 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
14 gdb_host_cpu.
15
8ac2e020
JB
162004-09-02 Joel Brobecker <brobecker@gnat.com>
17
18 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
19 Minor reformatting. Some code factoring.
20
c185a355
AC
212004-09-02 Andrew Cagney <cagney@gnu.org>
22
63f22f0d
AC
23 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
24 * config/vax/tm-nbsd.h: Delete file.
25 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
26 * config/sparc/tm-vxworks.h: Delete file.
27 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
28 * config/sparc/tm-nbsd.h: Delete file.
29 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
30 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
31 * config/sparc/tm-linux.h: Delete file.
32 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
33 * config/s390/tm-linux.h: Delete file.
34 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
35 * config/pa/tm-bsd.h: Delete file.
36 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
37 * config/m68k/tm-obsd.h: Delete file.
38 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
39 * config/m68k/tm-nbsd.h: Delete file.
40 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
41 * config/i386/tm-vxworks.h: Delete file.
42 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
43 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
44 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
45 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
46 * config/i386/tm-nbsd.h: Delete file.
47 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
48 * config/i386/tm-i386lynx.h: Delete file.
49 * config/cris/cris.mt (TM_FILE): Set to solib.h.
50 * config/cris/tm-cris.h: Delete file.
51
0f475e27
AC
52 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
53 * configure: Re-generate.
54 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
55 * config/arm/tm-nbsd.h: Delete file.
56
458ed000
AC
57 * config/powerpc/tm-ppcle-sim.h: Delete.
58 * config/powerpc/tm-ppcle-eabi.h: Delete.
59 * config/powerpc/tm-nbsd.h: Delete.
60 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
61 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
62 tm-ppcle-eabi.h.
63
f14375f3
AC
64 * config/i386/nto.mh (NAT_FILE): Delete.
65 * config/i386/nm-nto.h: Delete.
66
c34d127c
AC
67 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
68 * config/m68k/tm-os68k.h: Ditto.
69 * config/m68k/tm-monitor.h: Ditto.
70 * config/m68k/tm-cisco.h: Ditto.
71 * config/m68k/st2000.mt (TM_FILE): Delete.
72 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
73 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
74 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
75 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
76
f7f0fe03
AC
77 * config/m68k/tm-st2000.h: Delete.
78 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
79 * config/sparc/fbsd.mt (TM_FILE): Delete.
80 * config/sparc/tm-fbsd.h: Delete.
81
a2558533
AC
82 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
83 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
84 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
85
b78960be
AC
86 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
87 GDB_TM_FILE and GDB_XM_FILE.
88 * gdbarch.c: Re-generate.
89 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
90 quotes in macro definition.
91 * configure.in: Re-generate.
92
4d60522e
AC
93 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
94 validating architecture methods.
95 * gdbarch.c: Re-generate.
96
5010d38b
AC
97 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
98 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
99 GDB_MULTI_ARCH_PARTIAL.
100 * gdbarch.h: Re-generate.
101
c185a355
AC
102 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
103 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
104 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
105 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
106 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
107 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
108 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
109 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
110 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
111 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
112 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
113 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
114
14aaa6ab
AC
1152004-09-01 Andrew Cagney <cagney@gnu.org>
116
117 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
118 and main_func_highpc.
119 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
120 * objfiles.c (init_entry_point_info, objfile_relocate): Update
121 * nlmread.c (nlm_symfile_read): Update.
122
a343eb3c
JB
1232004-09-01 Joel Brobecker <brobecker@gnat.com>
124
125 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
126 (mips_insn32_frame_cache): Inline call to find_proc_desc.
127 (find_proc_desc): Remove dead code.
128
4fbbbd07
JB
1292004-09-01 Joel Brobecker <brobecker@gnat.com>
130
131 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
132
84acb35a
JJ
1332004-09-01 Jeff Johnston <jjohnstn@redhat.com>
134
135 * observer.sh: Add struct so_list declaration.
136 * Makefile.in: Add dependencies on observer.h for solib.c and
137 breakpoint.c.
138 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
139 function.
140 (_initialize_breakpoint): Register
141 disable_breakpoints_in_unloaded_shlib as an observer of the
142 "solib unloaded" observation event.
143 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
144 call decode_line_1 so unfound breakpoint errors are silent.
145 * solib.c (update_solib_list): When a solib is discovered to have
146 been unloaded by the program, notify all observers of the
147 "solib unloaded" observation event.
148
c8cd9f6c
AC
1492004-09-01 Andrew Cagney <cagney@gnu.org>
150
151 * frame.c: Include "objfiles.h".
152 (inside_main_func): New function.
153 (get_prev_frame): Use new inside_main_func.
154 * Makefile.in (frame.o): Update dependencies.
155 * defs.h (inside_main_func): Delete declaration.
156 * blockframe.c (inside_main_func): Delete function.
157
1168df01
JB
1582004-08-31 Jim Blandy <jimb@redhat.com>
159
160 * dwarf2read.c (is_vtable_name): New function, based on logic from
161 read_structure_type, but passing the correct length to strncmp,
162 and using 'sizeof' instead of 'strlen'.
163 (read_structure_type): Call it.
164
f14f9744
JB
1652004-08-31 Joel Brobecker <brobecker@gnat.com>
166
167 * config/powerpc/aix.mh: Add comment.
168
386d4518
PG
1692004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
170
171 * MAINTAINERS: Add self to Write-After-Approval.
172
7d97d5e2
MI
1732004-08-30 Manoj Iyer <manjo@austin.ibm.com>
174
175 * MAINTAINERS: Add self to Write-After-Approval.
176
68f53502
AC
1772004-08-30 Andrew Cagney <cagney@gnu.org>
178
179 Fix PR breakpoints/1757.
180 * infrun.c (struct execution_control_state): Replace
181 remove_breakpoints_on_following_step with
182 step_after_step_resume_breakpoint.
183 (init_execution_control_state): Update.
184 (handle_inferior_event): For signals, when stepping off a
185 breakpoint, set step_after_step_resume_breakpoint. When
186 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
187 (keep_going): Delete code handling
188 remove_breakpoints_on_following_step.
189
7ca2d3a3
DL
1902004-08-29 David Lecomber <david@streamline-computing.com>
191
192 Fix PR gdb/648
193 * language.h (enum array_ordering): New enum.
194 * language.h (struct language_defn): New la_array_ordering
195 attribute.
196 * language.c (unknown_language_defn, auto_language_defn)
197 (local_language_defn): Ditto.
198 * ada-lang.c (ada_language_defn): Ditto.
199 * c-lang.c (c_language_defn, cplus_language_defn)
200 (asm_language_defn, minimal_language_defn): Ditto.
201 * f-lang.c (f_language_defn): Ditto.
202 * jv-lang.c (java_language_defn): Ditto.
203 * m2-lang.c (f_language_defn): Ditto.
204 * objc-lang.c (objc_language_defn): Ditto.
205 * p-lang.c (pascal_language_defn): Ditto.
206 * scm-lang.c (scm_language_defn): Ditto.
207 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
208 oriented large to small in type structure.
209 * dwarf2read.c (read_array_order): New function.
210 (read_array_type): Use read_array_order to check row/column
211 major ordering.
212
e354df01
NW
2132004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
214
215 * target.c (target_resize_to_sections): Check
216 current_target.to_sections for an old value when updating.
217
9185ddce
JB
2182004-08-27 Joel Brobecker <brobecker@gnat.com>
219
220 * procfs.c (dbx_link_bpt_addr): New static global variable.
221 (dbx_link_shadow_contents): New static global variable.
222 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
223 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
224 if we just hit it.
225 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
226 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
227 from run to run.
228 (procfs_create_inferior): Remove syssgi syscall-exit notifications
229 after the inferior has been forked.
230 (remove_dbx_link_breakpoint): New function.
231 (dbx_link_addr): New function.
232 (insert_dbx_link_bpt_in_file): New function.
233 (insert_dbx_link_bpt_in_region): New function.
234 (insert_dbx_link_breakpoint): New function.
235 (proc_trace_syscalls_1): New function, extracted from
236 proc_trace_syscalls.
237 (proc_trace_syscalls): Replace extract code by call to
238 proc_trace_syscalls_1.
239 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
240 is no longer valid.
241
e6742ace
JB
2422004-08-25 Jim Blandy <jimb@redhat.com>
243
244 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
245
8fb3e588
AC
2462004-08-25 Andrew Cagney <cagney@gnu.org>
247
629a41ee
AC
248 * infrun.c (struct execution_control_state): Delete field
249 "stepping_through_sigtramp".
250 (init_execution_control_state): Do not set same.
251 (context_switch): Do not pass same to save_infrun_state and
252 load_infrun_state.
253 * gdbthread.h (struct thread_info): Delete field
254 stepping_through_sigtramp.
255 (save_infrun_state, load_infrun_state): Delete parameter
256 stepping_through_sigtramp.
257 * thread.c (load_infrun_state, save_infrun_state): Update.
258
8fb3e588
AC
259 * infrun.c: Re-indent. Move expression operators to the beginning
260 of the line. Remove long disabled #if 0 code.
261
49c54768
AC
2622004-08-24 Andrew Cagney <cagney@gnu.org>
263
264 * doublest.h (floatformat_ieee_quad): Rename
265 floatformat_ia64_quad.
266 * doublest.c (floatformat_ieee_quad): Rename
267 floatformat_ia64_quad.
268 (_initialize_doublest): Update.
269
5ca2e327
JB
2702004-08-24 Jim Blandy <jimb@redhat.com>
271
87808bd6
JB
272 * dwarf2expr.h (struct dwarf_expr_context): New members
273 'num_pieces' and 'pieces', for returning the result of an
274 expression that uses DW_OP_piece.
275 (struct dwarf_expr_piece): New struct type.
276 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
277 pieces.
278 (free_dwarf_expr_context): Free pieces, if any.
279 (add_piece): New function.
280 (execute_stack_op): Implement DW_OP_piece.
281 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
282 expression is a list of pieces, print an error message.
283 (dwarf2_loc_desc_needs_frame): If the expression yields
284 pieces, and any piece is in a register, then we need a frame.
285
5ca2e327
JB
286 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
287 the stack until we've decided what sort of result the evaluation
288 has produced. Use separate variables, with more specific names.
289
2afeb6b8
RE
2902004-08-23 Richard Earnshaw <rearnsha@arm.com>
291
292 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
293 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
294 (arm_netbsd_init_abi_common): Register them.
295
5885ab49
MK
2962004-08-22 Mark Kettenis <kettenis@gnu.org>
297
fda820a6
MK
298 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
299
1c5bf419
MK
300 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
301 safe_frame_unwind_memory instead of target_read_memory.
302
8cbba7c8
MK
303 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
304 Reorder includes.
305 (fetch_register, store_register): Remove prototypes.
306 (child_resume): Reorganize code and comments such that it is
307 grouped a bit more logically.
308 (attach): Explicitly compare errno against 0.
309 (detach): Likewise. Use perror_with_name instead of
310 print_sys_errmsg.
311 * Makefile.in (infptrace.o): Update dependencies.
312
c5fa4245
MK
313 * ia64-linux-nat.c: Update copyright year.
314 (fetch_debug_register, store_debug_register)
315 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
316 PTRACE_TYPE_ARG3.
317 * config/ia64/nm-linux.h: Update copyright year.
318 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
319
387c058c
MK
320 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
321 from CORE_ADDR to struct frame_info *. Use
322 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
323 (amd64_linux_sigtramp_p): Adjust for changed signature of
324 and64_linux_sigtramp_start
325
277215a6
MK
326 * gdb_ptrace.h: GNU/Linux.
327
25f6178e
MK
328 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
329 Remove defines.
330
652fc137
MK
331 * infptrace.c: Include "gdb_assert.h".
332 (PTRACE_XFER_TYPE): Remove define.
333 (offsetof): Only define if U_REGS_OFFSET isn't defined.
334 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
335 Tweak comment.
336 (fetch_inferior_registers, store_inferior_registers): Remove
337 redundant culry braces. Tweak comment. s/regno/regnum.
338 * Makefile.in (infptrace.o): Update dependencies.
339
5885ab49
MK
340 * configure.in: Change test for return type of ptrace to default
341 to `long' instead of `int'.
342 * configure: Regenerate.
343
11003ae3
MK
3442004-08-21 Mark Kettenis <kettenis@gnu.org>
345
6b95110c
MK
346 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
347
bcb3dc3d
MK
348 * configure.in: Check for ttrace function.
349 * configure, config.in: Regenerate.
350
11003ae3
MK
351 * gdb_ptrace.h: New file.
352 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
353 <sys/ptrace.h>.
354 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
355 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
356 (attach): Don't define PT_ATTACH.
357 (detach): Don't define PT_DETACH.
358 * Makefile.in (gdb_ptrace_h): New variable.
359 (infptrace.o): Update dependencies.
360
f8707cac
MK
3612004-08-16 Mark Kettenis <kettenis@gnu.org>
362
363 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
364 instead of `int' if not already defined.
365 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
366 PTRACE_TYPE_ARG3.
367 * infptrace.c (call_ptrace): Revert change that replaced
368 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
369
655c5466
MK
3702004-08-15 Mark Kettenis <kettenis@gnu.org>
371
156e5ba7
MK
372 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
373 Remove defines.
374
de9a9e51
MK
375 * linux-nat.c (kill_inferior): Add missing third and fourth
376 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
377
88800403
MK
378 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
379 PTRACE_TYPE_RET.
380
849a1d7c
MK
381 * proc-why.c (proc_prettyfprint_why): Fix format string.
382
61ad16d1
MK
383 * solib-osf.c (osf_current_sos): Remove unsused label.
384
a6ed5501
MK
385 * configure.in: Add <ncurses/ncurses.h> to the list of possible
386 curses headers.
387 * configure, config.in: Regenerate.
388 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
389 <ncurses/ncurses.h>.
390
016ddeca
MK
391 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
392 * config/nm-nbsd.h: Update copyright year.
393 (PTRACE_ARG3_TYPE): Remove define.
394
49ec097f
MK
395 * sparc-nat.c (fetch_inferior_registers)
396 (store_inferior_registers, sparc_xfer_wcookie):
397 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
398
9f8e0089
MK
399 * alphabsd-nat.c (fetch_inferior_registers):
400 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
401 PTRACE_TYPE_ARG3.
402 * amd64bsd-nat.c (fetch_inferior_registers)
403 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
404 PTRACE_TYPE_ARG3.
405 * armnbsd-nat.c: Update copyright year.
406 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
407 (store_register, store_regs, store_fp_register, store_fp_regs):
408 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
409 * hppabsd-nat.c (fetch_inferior_registers)
410 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
411 PTRACE_TYPE_ARG3.
412 * i386bsd-nat.c (fetch_inferior_registers)
413 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
414 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
415 * m68kbsd-nat.c (fetch_inferior_registers)
416 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
417 PTRACE_TYPE_ARG3.
418 * m88kbsd-nat.c (fetch_inferior_registers)
419 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
420 PTRACE_TYPE_ARG3.
421 * mipsnbsd-nat.c: Update copyright year.
422 (fetch_inferior_registers, store_inferior_registers):
423 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
424 * ns32knbsd-nat.c: Update copyright year.
425 (fetch_inferior_registers, store_inferior_registers):
426 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
427 * ppcnbsd-nat.c (fetch_inferior_registers):
428 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
429 PTRACE_TYPE_ARG3.
430 * ppcobsd-nat.c (fetch_inferior_registers):
431 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
432 PTRACE_TYPE_ARG3.
433 * shnbsd-nat.c: Update copyright year.
434 (fetch_inferior_registers, store_inferior_registers):
435 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
436 * vaxbsd-nat.c (fetch_inferior_registers)
437 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
438 PTRACE_TYPE_ARG3.
439
655c5466
MK
440 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
441 PTRACE_TYPE_ARG3.
442 * infptrace.c (call_ptrace, child_resume, attach, detach)
443 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
444 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
445 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
446 PTRACE_TYPE_ARG3.
447
c40d0d10
MK
4482004-08-14 Mark Kettenis <kettenis@gnu.org>
449
5cb0ff31
MK
450 * defs.h: Remove out-of-date comment.
451 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
452 [!GETENV_PROVIDED] (getenv): Remove prototype.
453
5f0f34cb
MK
454 * standalone.c: Remove file.
455 * Makefile.in (standalone.o): Remove dependency.
456
7532965f
MK
457 * i386-linux-nat.c (dummy_sse_values): Remove function and
458 prototype.
459 (i386_linux_dr_get): Fix typo in comment.
460 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
461
1bdc6c53
MK
462 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
463
c40d0d10
MK
464 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
465 from declaration.
466 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
467 from definition.
468
64218d3e
MK
4692004-08-13 Mark Kettenis <kettenis@gnu.org>
470
471 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
472 parenthesis in definition.
473 * configure: Regenerated.
474
926c94e7
MC
4752004-08-12 Michael Chastain <mec.gnu@mindspring.com>
476
477 * PROBLEMS: Mention build/1411.
478
69489883
NN
4792004-08-09 Robert Millan <robertmh@gnu.org>
480
481 Committed by Nathanael Nerode.
482 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
483 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
484
ebb7c577
AC
4852004-08-12 Andrew Cagney <cagney@gnu.org>
486
487 * NEWS: Mention fixes in GDB 6.2.1.
488 * PROBLEMS: Remove mention of mips-irix.
489
232d697c
JB
4902004-08-11 Joel Brobecker <brobecker@gnat.com>
491
492 * config/powerpc/xm-aix.h: Delete.
493 * config/powerpc/aix.mh (MH_FILE): Remove.
494 * config/powerpc/aix432.mh (MH_FILE): Remove.
495
72f4e82b
JB
4962004-08-11 Joel Brobecker <brobecker@gnat.com>
497
498 * config/powerpc/aix.mh: Remove obsolete comment.
499 * config/powerpc/aix432.mh: Likewise.
500
0687ccb2
JB
5012004-08-11 Joel Brobecker <brobecker@gnat.com>
502
503 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
504
dbf3ada7
JB
5052004-08-11 Joel Brobecker <brobecker@gnat.com>
506
e08e1886
JB
507 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
508 this file is now empty.
509 * config/xm-aix4.h: Remove, this file is no longer included
510 anywhere.
511
5122004-08-11 Joel Brobecker <brobecker@gnat.com>
513
514 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
515 that file is now empty.
dbf3ada7
JB
516 (termdef): Remove prototype, function no longer used.
517
4c525ef6
JB
5182004-08-11 Joel Brobecker <brobecker@gnat.com>
519
520 * doc/gdbint.texinfo (Host Definition): Remove documentation
521 for USE_O_NOCTTY, no longer used.
522 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
523 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
524
82e0b968
JB
5252004-08-11 Joel Brobecker <brobecker@gnat.com>
526
527 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
528 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
529 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
530
f2acbe1c
MK
5312004-08-11 Mark Kettenis <kettenis@gnu.org>
532
daa98270
MK
533 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
534 instead of FIVE_ARG_PTRACE.
535
f2acbe1c
MK
536 * inflow.c (O_NOCTTY): Define to zero if not already defined.
537 (new_tty): Use O_NOCTTY unconditionally.
538
cc377e6b
MK
5392004-08-10 Mark Kettenis <kettenis@gnu.org>
540
541 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
542 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
543 fflush on stdout.
544
3bcc18fa
JB
5452004-08-10 Joel Brobecker <brobecker@gnat.com>
546
547 * xcoff_symfile_finish: Replace last call to xmfree by call
548 to xfree.
549
7936743b
AC
5502004-08-10 Andrew Cagney <cagney@gnu.org>
551
cc503c8a
AC
552 * main.c (captured_main): Delete call to init_malloc.
553 * defs.h (init_malloc): Delete declaration.
554 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
555 (init_malloc): Delete functions.
556
2dc74dc1
AC
557 * defs.h (xmfree): Delete.
558 * utils.c (xmfree): Delete function.
559 (xfree): Inline calls to xmfree and mfree.
560 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
561 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
562 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
563 * somread.c (som_symfile_finish): Ditto.
564 * objfiles.c (allocate_objfile, free_objfile):
565 * nlmread.c (nlm_symfile_finish): Ditto.
566 * hpread.c (hpread_symfile_finish): Ditto.
567 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
568 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
569 * coffread.c (coff_symfile_finish): Ditto.
570
aa2ee5f6
AC
571 * defs.h (xmcalloc): Delete declaration.
572 * utils.c (xmcalloc): Delete.
573 (xcalloc): Inline calls to xmcalloc and mcalloc.
574 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
575 xcalloc and xfree.
576 * symtab.c (create_demangled_names_hash): Ditto.
577
0efffb96
AC
578 * defs.h (xmrealloc): Delete.
579 * utils.c (xmrealloc): Delete.
580 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
581 * symmisc.c (extend_psymbol_list): Use xrealloc.
582 * source.c (find_source_lines): Ditto.
583 * hpread.c (hpread_lookup_type): Ditto.
584 * dbxread.c (add_bincl_to_list): Ditto.
585
7936743b
AC
586 * utils.c (xmmalloc): Delete.
587 (xmalloc): Inline xmmalloc and mmalloc calls.
588 (msavestring): Use xmalloc.
589 * defs.h (xmmalloc): Delete declaration.
590 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
591 xmmalloc.
592 * symmisc.c (extend_psymbol_list): Ditto.
593 * symfile.c (init_psymbol_list): Ditto.
594 * source.c (find_source_lines): Ditto.
595 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
596 * elfread.c (elf_symtab_read): Ditto.
597 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
598 * coffread.c (coff_symfile_init): Ditto.
599
252ab814
DC
6002004-08-10 David Carlton <carlton@bactrian.org>
601
602 * MAINTAINERS: Remove David Carlton from c++ testsuite
603 maintainers.
604
8f5ba92b
JG
6052004-08-10 Jerome Guitton <guitton@gnat.com>
606
607 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
608 print a line feed before the prompt.
609
21749010
MK
6102004-08-10 Mark Kettenis <kettenis@gnu.org>
611
612 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
613
1f011ce2
JB
6142004-08-09 Joel Brobecker <brobecker@gnat.com>
615
616 General cleanup of the AIX xm include file:
617 * config/xm-aix4.h (fd_set): Remove undefine.
618 Remove include of <sys/select.h>.
619 (HAVE_TERMIO): Remove define.
620 (USG): Likewise.
621 (NULL): Remove redefine.
622 (alloca): Remove #pragma.
623 (vfork): Remove define.
624 (termdef): Remove.
625 (SIGWINCH_HANDLER): Remove.
626 (SIGWINCH_HANDLER_BODY): Remove.
627
cf4e7692
MK
6282004-08-09 Mark Kettenis <kettenis@gnu.org>
629
630 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
631 GDB_OSABI_OPENBSD_ELF.
632
ac5754fa
MK
6332004-08-07 Robert Millan <robertmh@gnu.org>
634
635 * bsd-kvm.c: Check for nlist.h before including it.
636
086ec9eb
MK
6372004-08-09 Mark Kettenis <kettenis@gnu.org>
638
bbe06c74
MK
639 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
640 sigcontext' offset consistency checks for ancient BSD.
641
3aa7b3b3
MK
642 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
643
086ec9eb
MK
644 * configure.in: Check for <sys/types.h>. Check return and
645 argument types of ptrace.
646 * configure, config.in: Regenerate.
647
09991fa0
JB
6482004-08-09 Jim Blandy <jimb@redhat.com>
649
650 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
651 rs6000_register_sim_regno): Doc fixes.
652
fed7ba43
JB
6532004-08-08 Joel Brobecker <brobecker@gnat.com>
654
655 * mips-tdep.c: Include "floatformat.h".
656 (n32n64_floatformat_always_valid): New function.
657 (floatformat_n32n64_long_double_big): New constant.
658 (mips_gdbarch_init): Set size and format of long double
659 for N32 and N64 ABIs.
660 * Makefile.in (mips-tdep.o): Update dependencies.
661
456fcf94
AC
6622004-08-08 Andrew Cagney <cagney@gnu.org>
663
2f9b146e
AC
664 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
665 print. Improve script's error messages.
666 * gdbarch.h: Re-generate.
667
456fcf94
AC
668 * gdbarch.sh (pformat): New function.
669 (float_format, double_format, long_double_format): List with bit
670 members. Use pformat when printing.
671 * gdbarch.c, gdbarch.h: Re-generate.
672
69e9e646
NW
6732004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
674
675 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
676 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
677 (ppcnbsd_supply_pcb): New function.
678 (_initialize_ppcnbsd_nat): New prototype and function.
679 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
680 (LOADLIBES): New variable.
681 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
682
5ef2d0aa
AC
6832004-08-08 Andrew Cagney <cagney@gnu.org>
684
685 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
686 (builtin_type_ieee_double, builtin_type_ia64_quad)
687 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
688 BE/LE floating-point types.
689 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
690 (builtin_type_ieee_double, builtin_type_ia64_quad)
691 (builtin_type_ia64_spill): Declare.
692 * doublest.c (_initialize_doublest, floatformat_ieee_single)
693 (floatformat_ieee_double, floatformat_arm_ext)
694 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
695 of LE/BE floatformats.
696 * doublest.h: (struct floatformat, floatformat_ieee_single)
697 (floatformat_ieee_double, floatformat_arm_ext)
698 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
699
5c7f2947
MK
7002004-08-08 Mark Kettenis <kettenis@gnu.org>
701
ecac404d
MK
702 * i386gnu-nat.c (gnu_store_registers): Fix typo.
703
9b8607ce
MK
704 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
705 instead of regcache_raw_supply when storing the registers.
706
f6052080
MK
707 * i386gnu-nat.c: Update copyright year.
708 (gnu_store_registers): Don't use deprecated_registers and
709 deprecated_registers_valid. Use regcache_valid_p and
710 regcache_raw_supply instead.
711
17777823
MK
712 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
713 frame_pc_unwind.
714
5240ceac
MK
715 * procfs.c (procfs_pid_to_str): Remove redundant and unused
716 variables. Incapitalized "process".
717
5c7f2947
MK
718 * configure.in: Add cursesX to the list of possible curses libs.
719 Add cursesX.h to the list of possible curses headers.
720 * configure, config.in: Regenerate.
721
da7d81e3
NW
7222004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
723
724 * configure.in: Test for struct lwp in <sys/lwp.h>.
725 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
726 the offset of l_addr in struct lwp.
727
7f245d65
NW
7282004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
729
730 * bsd-kvm.c: Include "gdbcore.h"
731 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
732
47b3f456
AC
7332004-08-07 Andrew Cagney <cagney@gnu.org>
734
70bd8e24
AC
735 * gdbtypes.c (build_flt, build_complex): New functions.
736 (gdbtypes_post_init): Use.
737
9b0dea39
AC
738 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
739
5cf7abac
AC
740 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
741 through to builtin_type_uint128.
742
64d2b26d
AC
743 * c-exp.y: Use builtin_type function to obtain builtin types.
744
7ad6570d
AC
745 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
746 builtin_uint128.
747 * gdbtypes.c (gdbtypes_post_init): Update.
748 (build_gdbtypes): Move initialization of builtin_type_int0
749 through to builtin_type_uint128 from here ...
750 (_initialize_gdbtypes): ... to here.
751 * d10v-tdep.c (d10v_register_type): Update.
752
47b3f456
AC
753 * doublest.c: Update copyright.
754 (floatformat_from_length): Call error when floatformat is NULL.
755 (extract_floating_by_length): Remove NULL fmt check.
756 (store_floating_by_length): Ditto.
757
0a8146bf
AC
7582004-08-07 Andrew Cagney <cagney@gnu.org>
759
760 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
761 that the register is valid.
762
c0ccb908
MK
7632004-08-05 Mark Kettenis <kettenis@chello.nl>
764
8e6bed05
MK
765 * i386-linux-tdep.c (i386_linux_sigtramp_start)
766 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
767 struct frame_info *. Use safe_frame_unwind_memory instead of
768 deprecated_read_memory_nobpt.
769 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
770 changed signature of i386_linux_sigtramp_start and
771 i386_linux_rt_sigtramp_start.
772
24f9f5e3
MK
773 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
774 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
775 instead of deprecated_read_memory_nobpt.
776 (i386nbsd_sigtramp_p): Adjust for changed signature of
777 i386nbsd_sigtramp_offset.
778
c822af0c
MK
779 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
780 safe_frame_unwind_memory instead of target_read_memory.
781
c0ccb908
MK
782 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
783 !NO_SYS_FILE.
784 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
785 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
786 (_initialize_kernel_u_addr): Remove prototype and function.
787 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
788 !NO_SYS_FILE.
789 * xcoffread.c: Likewise.
790
b9e1c0d6
MK
7912004-08-06 Mark Kettenis <kettenis@gnu.org>
792
793 * vax-nat.c: New file.
794 * vaxbsd-nat.c: Tweak comment.
795 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
796 vaxnbsd-tdep.c.
797 (vax-nat.o): New dependency.
798 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
799 (vax-*-ultrix2*): Remove.
800 * config/vax/vax.mh: New file.
801 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
802 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
803 (vax_register_u_addr): New prototype.
804 (REGISTER_U_ADDR): Define using vax_register_u_addr.
805 * config/vax/vaxult2.mh: Remove file.
806 * config/vax/vaxult.mh: Remove file.
807 * config/vax/vaxbsd.mh: Remove file.
808 * config/vax/vax.mt (TM_FILE): Remove.
809 * config/vax/tm-vaxbsd.h: Remove file.
810
9ad7bec7
JB
8112004-08-06 Joel Brobecker <brobecker@gnat.com>
812
813 * aix-thread.c (get_signaled_thread): New function.
814 (iter_trap): Delete, no longer used.
815 (iter_tid): New function.
816 (pd_update): Find the thread that received the SIGTRAP signal
817 by first locating the kernel thread, and then finding its
818 associated thread.
819
bf0d233d
UW
8202004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
821
822 * lin-lwp.c (child_wait): Continue inferior after processing
823 PTRACE_EVENT_CLONE event.
824
d0f853e1
NN
8252004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
826
827 * MAINTAINERS: Add self to Write-After-Approval.
828
ab14aeb0
JJ
8292004-08-05 Jeff Johnston <jjohnstn@redhat.com>
830
831 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
832 libunwind-xxxx.so" where xxxx is UNW_TARGET.
833
9c8dbfa9
AC
8342004-08-05 Andrew Cagney <cagney@gnu.org>
835
c8f3ca46
AC
836 * config/xm-sysv4.h: Delete file.
837 * config/mips/xm-irix5.h: Delete file.
838 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
839 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
840 * config/ia64/xm-aix.h: Delete file.
841 * config/ia64/aix.mh (XM_FILE): Delete.
842 * config/pa/xm-hppah.h: Delete file.
843 * config/pa/hpux11w.mh (XM_FILE): Delete.
844 * config/pa/hpux11.mh (XM_FILE): Delete.
845 * config/pa/hpux1020.mh (XM_FILE): Delete.
846 * config/pa/hppahpux.mh (XM_FILE): Delete.
847
5f7daaff
AC
848 * config/alpha/xm-alphalinux.h: Delete file.
849 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
850 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
851 * config/alpha/xm-alphaosf.h: Delete file.
852 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
853 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
854 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
855 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
856
69babf95
AC
857 * config/i386/xm-i386v.h: Delete file.
858 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
859 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
860 * config/i386/xm-i386sco.h: Delete file.
861 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
862 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
863 * config/i386/xm-i386v4.h: Delete file.
864 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
865 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
866 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
867 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
868
6f009c8a
AC
869 * config/vax/xm-vax.h: Delete file.
870 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
871 * config/vax/xm-vaxult2.h: Delete file.
872 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
873 * config/vax/vaxult2.mh (XM_FILE): Delete.
874 * config/vax/xm-vaxult.h: Delete file.
875 * config/vax/vaxult.mh (XM_FILE): Delete.
876 * config/vax/xm-vaxbsd.h: Delete file.
877 * config/vax/vaxbsd.mh (XM_FILE): Delete.
878
9c8dbfa9
AC
879 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
880 * gdbarch.h, gdbarch.c: Re-generate.
881 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
882 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
883 * frame.h: Delete deprecated_read_fp from comments.
884 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
885 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
886
84367a3e
MK
8872004-08-04 Mark Kettenis <kettenis@gnu.org>
888
9c8e3411
MK
889 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
890 trampoline in OpenBSD 3.5-current.
891
b87bc0d8
MK
892 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
893 SSE registers.
894
84367a3e
MK
895 * Makefile.in: Remove embedded page breaks.
896
a44bddec
JB
8972004-08-04 Jim Blandy <jimb@redhat.com>
898
7ab3286f
JB
899 * regcache.c (regcache_raw_read): Assert that, after calling
900 target_fetch_registers, the register we're reading is cached.
901
a44bddec
JB
902 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
903 a call to 'internal_error', with a more helpful error message.
904 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 905 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 906
35124113
AC
9072004-08-04 Andrew Cagney <cagney@gnu.org>
908
909 * Makefile.in: Update dependencies.
910
9f643768
JB
9112004-08-04 Jim Blandy <jimb@redhat.com>
912
6ced10dd
JB
913 Change the layout of the PowerPC E500 raw register cache to allow
914 the lower 32-bit halves of the GPRS to be their own raw registers,
915 not pseudoregisters.
916 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
917 add ppc_ev0_upper_regnum flag.
918 * rs6000-tdep.c: #include "reggroups.h".
919 (spe_register_p): Recognize the ev upper half registers as SPE
920 registers.
921 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
922 registers.
923 (e500_move_ev_register): New function.
924 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
925 vector registers are the pseudo-registers now, formed by splicing
926 together the gprs and the upper-half registers.
927 (e500_register_reggroup_p): New function.
928 (P): Macro deleted.
929 (P8, A4): New macro.
930 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
931 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
932 macros.
933 (registers_e500): Rearrange register set so that the raw register
934 set contains 32-bit GPRs and upper-half registers, and the SPE
935 vector registers become pseudo-registers.
936 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
937 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
938 register numbers are now the same for the E500 as they are for
939 other PowerPC variants. Register e500_register_reggroup_p as the
940 register group function for the E500.
941 * Makefile.in (rs6000-tdep.o): Update dependencies.
942
943 Adapt PPC E500 native support to the new raw regcache layout.
944 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
945 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
946 (fetch_spe_register, store_spe_register): Handle fetching/storing
947 all the SPE registers at once, if regno == -1. These now take
948 over the job of fetch_spe_registers and store_spe_registers.
949 (fetch_spe_registers, store_spe_registers): Deleted.
950 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
951 unconditionally; they're always raw. Fetch/store SPE upper half
952 registers, if present, instead of ev registers.
953 (fetch_register, store_register): Remove sanity checks: gprs are
954 never pseudo-registers now, so we never need to even mention any
955 registers that are ever pseudoregisters.
956
9f643768
JB
957 Use a fixed register numbering when communicating with the PowerPC
958 simulator.
959 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
960 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
961 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
962 New functions.
963 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
964 init_sim_regno_table.
965 * Makefile.in (gdb_sim_ppc_h): New variable.
966 (rs6000-tdep.o): Update dependencies.
967
1e2279c8
AC
9682004-08-02 Andrew Cagney <cagney@gnu.org>
969
1d94326f
AC
970 * cris-tdep.c (cris_register_size): Restore function, still used
971 locally.
972
331ae7ed
AC
973 * gdbarch.sh (deprecated_target_read_fp)
974 (deprecated_frame_locals_address, deprecated_frame_args_address)
975 (deprecated_frame_chain_valid, deprecated_frame_chain)
976 (deprecated_init_extra_frame_info, deprecated_pop_frame)
977 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
978 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
979 * gdbarch.h, gdbarch.c: Re-generate.
980 * regcache.c (deprecated_read_fp): Do not call
981 DEPRECATED_TARGET_READ_FP_P.
982 * infcmd.c (default_print_registers_info): Do not call
983 DEPRECATED_DO_REGISTERS_INFO.
984 * frame-base.c (default_frame_locals_address): Do not call
985 DEPRECATED_FRAME_LOCALS_ADDRESS.
986 (default_frame_args_address): Do not call
987 DEPRECATED_FRAME_ARGS_ADDRESS.
988
1e2279c8
AC
989 * gdbarch.sh (deprecated_register_raw_size)
990 (deprecated_register_virtual_size:int): Delete.
991 * gdbarch.h, gdbarch.c: Re-generate.
992 * cris-tdep.c (cris_register_size): Delete.
993 (cris_gdbarch_init): Update.
994 * alpha-tdep.c (alpha_register_raw_size)
995 (alpha_register_virtual_size): Delete.
996 (alpha_gdbarch_init): Update.
997
a90c06b4
AC
998 * gdbarch.sh (deprecated_register_virtual_type)
999 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1000 (deprecated_dummy_write_sp): Delete.
1001 * gdbarch.h, gdbarch.c: Re-generate.
1002
f42accbe
AC
1003 * gdbarch.sh (deprecated_register_bytes): Delete.
1004 * gdbarch.h, gdbarch.c: Re-generate.
1005 * regcache.c (deprecated_register_bytes): New function.
1006 * regcache.h (deprecated_register_bytes): Declare.
1007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1008 * v850-tdep.c (v850_gdbarch_init): Update.
1009 * sh64-tdep.c (sh64_gdbarch_init): Update.
1010 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1011 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1012 * mcore-tdep.c (mcore_gdbarch_init): Update.
1013 * cris-tdep.c (cris_gdbarch_init): Update.
1014 * arm-tdep.c (arm_gdbarch_init): Update.
1015 * remote.c (init_remote_state): Update.
1016 * remote-vx.c (vx_prepare_to_store): Update.
1017 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1018 * irix5-nat.c (fetch_core_registers): Update.
1019 * cris-tdep.c (cris_register_bytes_ok): Update.
1020 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1021
45c9dd44
AC
1022 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1023 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1024 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1025 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1026 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1027 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1028 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1029 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1030 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1031 with mips_insn16 and mips_insn32.
1032
3acba339
AC
1033 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1034 * rs6000-tdep.c (rs6000_push_dummy_call)
1035 (rs6000_extract_return_value): Use register_size.
1036 * xstormy16-tdep.c (xstormy16_get_saved_register)
1037 (xstormy16_extract_return_value): Ditto.
1038 * valops.c (value_assign): Ditto.
1039 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1040 * v850-tdep.c (v850_extract_return_value): Ditto.
1041 * tracepoint.c (collect_symbol): Ditto.
1042 * target.c (debug_print_register): Ditto.
1043 * stack.c (frame_info): Ditto.
1044 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1045 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1046 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1047 (store_register_using_P): Ditto.
1048 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1049 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1050 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1051 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1052 * regcache.c (deprecated_read_register_bytes)
1053 (deprecated_write_register_bytes, read_register)
1054 (write_register): Ditto.
1055 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1056 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1057 * monitor.c (monitor_supply_register, monitor_fetch_register)
1058 (monitor_store_register): Ditto.
1059 * mn10300-tdep.c (mn10300_pop_frame_regular)
1060 (mn10300_print_register): Ditto.
1061 * mipsv4-nat.c (fill_fpregset): Ditto.
1062 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1063 (mips64_fill_fpregset): Ditto.
1064 * mi/mi-main.c (register_changed_p, get_register)
1065 (mi_cmd_data_write_register_values): Ditto.
1066 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1067 * irix5-nat.c (fill_gregset, fetch_core_registers):
1068 * infrun.c (write_inferior_status_register): Ditto.
1069 * infptrace.c (fetch_register, store_register): Ditto.
1070 * infcmd.c (default_print_registers_info): Ditto.
1071 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1072 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1073 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1074 * hpux-thread.c (hpux_thread_fetch_registers)
1075 (hpux_thread_store_registers): Ditto.
1076 * hppah-nat.c (store_inferior_registers, fetch_register):
1077 * findvar.c (value_from_register): Ditto.
1078 * dve3900-rom.c (fetch_bitmapped_register):
1079 * cris-tdep.c (cris_gdbarch_init): Ditto.
1080 * alpha-tdep.h: Ditto.
1081 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1082
01e1877c
AC
1083 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1084 DEPRECATED_REGISTER_RAW_SIZE from comments.
1085 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1086 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1087 DEPRECATED_REGISTER_RAW_SIZE.
1088 * findvar.c (value_of_register): Simplify by assuming that the
1089 registers raw and virtual sizes are identical.
1090 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1091 comment.
1092 * arch-utils.c (generic_register_size): Simplify by assuming
1093 register_type.
1094
73f458fb
AC
1095 * regcache.c (legacy_read_register_gen, real_register)
1096 (legacy_write_register_gen): Delete, not used.
1097
336a3131
AC
1098 * regcache.c (struct regcache_descr): Delete legacy_p.
1099 (init_legacy_regcache_descr): Delete function.
1100 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1101 Do not use deprecated register functions.
1102 (regcache_raw_read, deprecated_write_register_gen):
1103 (deprecated_read_register_gen, regcache_raw_write): Delete code
1104 predicated on legacy_p.
1105 (register_size): Delete check against register raw size.
1106
c1d546cd
AC
1107 * cris-tdep.c (cris_register_type): Replace
1108 cris_register_virtual_type.
1109 (cris_gdbarch_init): Update, set register_type.
1110
48c2c0a6
AC
1111 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1112 * gdbarch.h, gdbarch.c: Re-generate.
1113 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1114 (arm_gdbarch_init) Do not set frameless function invocation.
1115 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1116 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1117 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1118 (frv_gdbarch_init): Do not set frameless function invocation.
1119 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1120 * sh-tdep.c (sh_gdbarch_init): Ditto.
1121 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1122 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1123 * avr-tdep.c (avr_gdbarch_init): Ditto.
1124
474093a6
AC
1125 * blockframe.c (legacy_frame_chain_valid): Delete function.
1126
3c109c8b
AC
1127 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1128 and pc. Update comments.
1129 (pc_in_dummy_frame): Delete function.
1130 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1131 use the "id".
1132 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1133 call_hi, top and pc, use the id.
1134 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1135
96860204
AC
1136 * dummy-frame.c: Include "gdb_string.h".
1137 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1138 (generic_save_dummy_frame_tos): Delete.
1139 (dummy_frame_push): New function, replaces above.
1140 * dummy-frame.h: Update copyright.
1141 (dummy_frame_push): Declare.
1142 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1143 (generic_save_call_dummy_addr): Delete declarations.
1144 * infcall.c: Include "dummy-frame.h".
1145 (call_function_by_hand): Add locals caller_regcache,
1146 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1147 with call to frame_save_as_regcache plus cleanup. Delete calls to
1148 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1149 Move clear_proceed_status to just before the resume, add call to
1150 dummy_frame_push (discard cleanup).
1151 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1152 (dummy-frame.o): Add $(gdb_string_h).
1153
d67ec5db
AC
11542004-08-01 Andrew Cagney <cagney@gnu.org>
1155
1156 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1157 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1158 * dummy-frame.c (find_dummy_frame): Delete.
1159 (struct dummy_frame_cache, dummy_frame_sniffer)
1160 (dummy_frame_prev_register, dummy_frame_this_id)
1161 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1162 frame unwinder using a dummy_frame_cache.
1163
a81dcb05
AC
11642004-08-01 Andrew Cagney <cagney@gnu.org>
1165
1166 * frame.h (frame_save_as_regcache): Declare.
1167 * frame.c (frame_save_as_regcache): New function.
1168 (do_frame_read_register): Replace do_frame_unwind_register.
1169 (frame_pop): Use frame_save_as_regcache.
1170 * dummy-frame.c (generic_push_dummy_frame): Use
1171 frame_save_as_regcache.
1172
aa495d11
JB
11732004-08-01 Joel Brobecker <brobecker@gnat.com>
1174
1175 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1176 file as included until we record the first line in the linetable.
1177
ff65ac78
AC
11782004-08-01 Andrew Cagney <cagney@gnu.org>
1179
1180 * frame.h (deprecated_pop_dummy_frame)
1181 (deprecated_read_register_dummy)
1182 (deprecated_generic_find_dummy_frame): Delete.
1183 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1184 (deprecated_read_register_dummy)
1185 (deprecated_find_dummy_frame_regcache)
1186 (discard_innermost_dummy)
1187 (deprecated_pop_dummy_frame): Delete.
1188 (dummy_frame_this_id): Simplify.
1189 (struct dummy_frame): Delete "fp" and "sp".
1190 (find_dummy_frame): Simplify.
1191 (generic_push_dummy_frame): Do not set "fp" or "sp".
1192 (fprint_dummy_frames): Do not print "fp" and "sp"
1193
37bdc87e
MK
11942004-08-01 Mark Kettenis <kettenis@gnu.org>
1195
1196 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1197 (struct i386_insn): New structure.
1198 (i386_match_insn): New function.
1199 (i386_frame_setup_skip_insns): New variable.
1200 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1201 array i386_frame_setup_insns of instructions that should be
1202 skipped inside the frame setup sequence.
1203
8241eaa6
AC
12042004-08-01 Andrew Cagney <cagney@gnu.org>
1205
5bc602c7
AC
1206 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1207 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1208 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1209 * stack.c (frame_info): Delete references to
1210 DEPRECATED_FRAME_INIT_SAVED_REGS and
1211 deprecated_get_frame_saved_regs.
1212 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1213 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1214 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1215 (frame_unwind_register_signed)
1216 (frame_unwind_register_unsigned)
1217 (frame_unwind_unsigned_register): Use register_size.
1218 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1219 (deprecated_frame_xmalloc_with_cleanup)
1220 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1221 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1222
03d363a1
AC
1223 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1224 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1225 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1226 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1227
8241eaa6
AC
1228 * infcall.c (call_function_by_hand): Do not use
1229 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1230 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1231 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1232 DEPRECATED_STACK_ALIGN.
1233
f00df8b7
AC
12342004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1235
1236 Committed by Andrew Cagney.
1237 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1238
eec63939
AC
12392004-08-01 Andrew Cagney <cagney@gnu.org>
1240
1241 * mips-tdep.c (mips16_frame_cache)
1242 (mips16_frame_this_id, mips16_frame_prev_register)
1243 (mips16_frame_unwind, mips16_frame_sniffer)
1244 (mips16_frame_base_address, mips16_frame_base)
1245 (mips16_frame_base_sniffer, mips32_frame_cache)
1246 (mips32_frame_this_id, mips32_frame_prev_register)
1247 (mips32_frame_unwind, mips32_frame_sniffer)
1248 (mips32_frame_base_address, mips32_frame_base)
1249 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1250 separate heuristic mips16 and mips32 unwinders.
1251 (mips_stub_frame_cache, mips_stub_frame_this_id)
1252 (mips_stub_frame_prev_register)
1253 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1254 (mips_stub_frame_base_address, mips_stub_frame_base)
1255 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1256 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1257 match true mdebug frames.
1258 (non_heuristic_proc_desc): Add forward declaration.
1259
e66299b3
AC
12602004-08-01 Andrew Cagney <cagney@gnu.org>
1261
83cbbf3e
AC
1262 * config/mips/tm-irix6.h: Delete file.
1263 * config/mips/tm-irix5.h: Delete file.
1264 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1265 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1266
22d41b37
AC
1267 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1268 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1269 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1270 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1271 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1272 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1273 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1274 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1275 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1276 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1277 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1278 (TARGET_SIGNAL_RAW_VALUES): Delete.
1279 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1280 Delete.
1281 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1282 (TARGET_HW_WATCH_LIMIT): Delete.
1283 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1284 * minimon.h: Delete file.
1285
e66299b3
AC
1286 * trad-frame.c (trad_frame_get_this_base)
1287 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1288 functions.
1289 * trad-frame.h (trad_frame_set_this_base)
1290 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1291
1f67027d
AC
12922004-07-31 Andrew Cagney <cagney@gnu.org>
1293
1294 * trad-frame.c (trad_frame_get_prev_register): Rename
1295 trad_frame_get_prev_register.
1296 * vax-tdep.c (vax_frame_prev_register): Update.
1297 * trad-frame.h: Update.
1298 * trad-frame.c (trad_frame_get_register): Update.
1299 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1300 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1301 Update.
1302 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1303 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1304 Update.
1305 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1306 Update.
1307 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1308 Update.
1309 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1310 Update.
1311 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1312 Update.
1313 * s390-tdep.c (s390_frame_prev_register)
1314 (s390_stub_frame_prev_register)
1315 (s390_sigtramp_frame_prev_register): Update.
1316 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1317 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1318 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1319 * m88k-tdep.c (m88k_frame_prev_register)
1320 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1321 * m32r-tdep.c (m32r_frame_prev_register): Update.
1322 * hppa-tdep.c (hppa_frame_prev_register_helper)
1323 * frv-tdep.c (frv_frame_prev_register): Update.
1324 * d10v-tdep.c (d10v_frame_prev_register): Update.
1325 * cris-tdep.c (cris_frame_prev_register): Update.
1326 * avr-tdep.c (avr_frame_prev_register): Update.
1327 * arm-tdep.c (arm_prologue_prev_register)
1328 (arm_sigtramp_prev_register): Update.
1329
c1bf6f65
AC
13302004-07-31 Andrew Cagney <cagney@gnu.org>
1331
1332 * frame.h (legacy_saved_regs_unwind)
1333 (legacy_frame_chain_valid, legacy_frame_p)
1334 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
1335 * dummy-frame.c (dummy_frame_this_id): Simplify.
1336 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
1337 * frame.c (struct frame_info): Delete the field "type".
1338 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1339 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1340 (legacy_saved_regs_unwind, legacy_frame_p)
1341 (frame_type_from_pc): Delete.
1342 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1343 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1344
dc856692
MK
13452004-07-31 Mark Kettenis <kettenis@gnu.org>
1346
5a5effe1
MK
1347 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1348 indentation.
1349
d4fd50a6
MK
1350 * mips-nat.c: Remove file.
1351 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1352 (mips-nat.o): Remove dependency.
1353
2689df5a
MK
1354 * infptrace.c: Update copyright year.
1355 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1356 explicitly setting the buffer to all zeroes.
1357
dc856692
MK
1358 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1359 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1360
763910e0
AC
13612004-07-30 Andrew Cagney <cagney@gnu.org>
1362
1363 * GDB 6.2 released from gdb_6_2-branch.
1364
0b66e38c
EZ
13652004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1366
1367 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1368
1369 * exec.c (exec_file_attach):
1370 * nto-tdep.c (nto_find_and_open_solib):
1371 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1372 * solib.c (solib_open):
1373 * somsolib.c (som_solib_sizeof_symbol_table):
1374 * source.c (is_regular_file, openp, open_source_file):
1375 * symfile.c (symfile_bfd_open):
1376 * wince.c (upload_to_device): Differentiate between the search for
1377 binary and source files.
1378
be7d7357
AC
13792004-07-30 Andrew Cagney <cagney@gnu.org>
1380
1381 * complaints.c (_initialize_complaints): Pass NULL to
1382 add_setshow_zinteger_cmd for help_doc.
1383 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1384
ddc9cd0f
AC
13852004-07-30 Andrew Cagney <cagney@gnu.org>
1386
1387 Fix PR i18n/761.
1388 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1389 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1390 $(PACKAGE).pot and update-po.
1391 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1392 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1393 (update-po): New rules.
1394 (localedir): Define using autoconf.
1395 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1396 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1397 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1398 * configure.in: Generate CATALOGS and LINGUAS from contents of
1399 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1400 * configure: Re-generate.
1401 * po/gdbtext: New file
1402
e92f3704
JG
14032004-07-30 Jerome Guitton <guitton@gnat.com>
1404
1405 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1406 order.
1407
b0f35d58
DL
14082004-07-30 David Lecomber <dsl@sources.redhat.com>
1409
1410 * dwarf2read.c (read_file_scope): Set producer if attribute
1411 present.
1412 (struct dwarf2_cu): Added new member producer.
1413
ce7d4522
JG
14142004-07-30 Jerome Guitton <guitton@gnat.com>
1415
1416 * inflow.c (kill_command): release file handles in BFD.
1417 * exec.c (exec_file_attach): Ditto.
1418 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1419
05ee07c7
AC
14202004-07-29 Andrew Cagney <cagney@gnu.org>
1421
1422 * PROBLEMS (mips-irix): Note that it is broken.
1423
62eceb47
AC
14242004-07-29 Andrew Cagney <cagney@gnu.org>
1425
e57b8d41
AC
1426 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1427 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1428
d334389b
AC
1429 * config/xm-nbsd.h: Delete file.
1430 * config/arm/xm-nbsd.h: Delete file.
1431 * config/i386/xm-nbsd.h: Delete file.
1432 * config/ns32k/xm-nbsd.h: Delete file.
1433 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1434 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1435 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1436 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1437 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1438
e910f676
AC
1439 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1440 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1441 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1442 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1443 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1444 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1445
6fa856b9
AC
1446 * config/powerpc/xm-linux.h: Delete empty file.
1447 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1448 * config/powerpc/linux.mh (XM_FILE): Delete.
1449 * config/m68k/xm-linux.h: Delete empty file.
1450 * config/m68k/linux.mh (XM_FILE): Delete.
1451 * config/ia64/xm-linux.h: Delete empty file.
1452 * config/ia64/linux.mh (XM_FILE): Delete.
1453 * config/arm/xm-linux.h: Delete empty file.
1454 * config/arm/linux.mh (XM_FILE): Delete.
1455
471ae5ae
AC
1456 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1457 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1458 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1459 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1460 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1461 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1462 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1463 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1464
62eceb47
AC
1465 * config/m68k/xm-m68k.h: Delete file.
1466 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1467 copyright.
1468 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1469 * config/pa/xm-linux.h: Delete empty file.
1470 * config/pa/linux.mh (XM_FILE): Delete.
1471 * config/i386/xm-i386.h: Delete empty file.
1472 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1473 "i386/xm-i386.h".
1474 * config/i386/obsdaout.mh (XM_FILE): Delete.
1475 * config/i386/obsd64.mh (XM_FILE): Delete.
1476 * config/i386/fbsd64.mh (XM_FILE): Delete.
1477 * config/i386/nto.mh (XM_FILE): Delete.
1478 * config/i386/obsd.mh (XM_FILE): Delete.
1479 * config/i386/linux64.mh (XM_FILE): Delete.
1480 * config/i386/linux.mh (XM_FILE): Delete.
1481 * config/i386/i386sol2.mh (XM_FILE): Delete.
1482 * config/i386/i386gnu.mh (XM_FILE): Delete.
1483 * config/i386/fbsd.mh (XM_FILE): Delete.
1484 * config/i386/nbsd64.mh (XM_FILE): Delete.
1485
c35f4ffc
AC
14862004-07-29 Andrew Cagney <cagney@gnu.org>
1487
1488 * config/pa/xm-linux.h: Do not include "floatformat.h".
1489 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1490 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1491 * config/i386/xm-i386.h: Do not include "floatformat.h".
1492 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1493 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1494 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1495 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1496 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1497 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1498 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1499 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1500 * configure, config.in: Regenerate.
1501 * configure.host (gdb_host_float_format, gdb_host_double_format)
1502 (gdb_host_long_double_format): Set according to the host.
1503
624a44a3
AC
15042004-07-29 Andrew Cagney <cagney@gnu.org>
1505
1506 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1507
0dea2468
AC
15082004-07-28 Andrew Cagney <cagney@gnu.org>
1509
1510 * PROBLEMS: Mention threads/1650.
1511 * NEWS: Mention the NPTL fix.
1512
b3f42336
AC
15132004-07-28 Andrew Cagney <cagney@gnu.org>
1514
1515 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1516 (add_setshow_cmd_full): Make static.
1517 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1518 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1519 * cli/cli-decode.c (add_setshow_filename_cmd)
1520 (add_setshow_string_cmd): New functions.
1521 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1522 * mips-tdep.c (_initialize_mips_tdep): Update.
1523 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1524 * cli/cli-logging.c (_initialize_cli_logging): Update.
1525 * complaints.c (_initialize_complaints): Update.
1526 * remote.c (_initialize_remote): Update.
1527
3b64bf98
AC
15282004-07-28 Andrew Cagney <cagney@gnu.org>
1529
1530 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1531 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1532 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1533 print parameters. Make string parameters constant.
1534 * command.h: Update. Update copyright.
1535 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1536 * observer.c (_initialize_observer): Ditto.
1537 * frame.c (_initialize_frame): Ditto.
1538 * complaints.c (_initialize_complaints): Ditto.
1539 * maint.c (_initialize_maint_cmds): Ditto.
1540 * target.c (initialize_targets): Ditto.
1541 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1542 * infcall.c (_initialize_infcall): Ditto.
1543 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1544 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1545 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1546 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1547 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1548
e9667a65
AC
15492004-07-28 Andrew Cagney <cagney@gnu.org>
1550
54a5b07d
AC
1551 * gdbtypes.c (lookup_primitive_typename): Delete function.
1552 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1553 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1554 * gdbtypes.c (lookup_typename): Ditto.
1555 * f-exp.y (yylex): Ditto.
1556 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1557
e9667a65
AC
1558 * scm-lang.c (c_builtin_types): Delete extern declaration.
1559 (scm_language_defn): Replace
1560 string_char_type and primitive_type_vector with
1561 la_language_arch_info.
1562 * jv-lang.c (java_language_defn): Replace
1563 string_char_type and primitive_type_vector with
1564 la_language_arch_info.
1565 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1566 c_builtin_types in comment.
1567 * c-lang.h (struct language_arch_info): Declare opaque.
1568 (c_language_arch_info): Declare.
1569 (c_builtin_types): Delete declaration.
1570 * c-lang.c (c_language_arch_info): Set string_char_type to
1571 builtin_char, not builtin_true_char. Make global.
1572 (c_builtin_types): Delete array.
1573 (asm_language_defn, minimal_language_defn): Replace
1574 string_char_type and primitive_type_vector with
1575 la_language_arch_info.
1576
685419e2
AC
15772004-07-28 Andrew Cagney <cagney@gnu.org>
1578
1579 * gdbtypes.h (struct builtin_type): Rename true_char to
1580 builtin_true_char.
1581 * gdbtypes.c (gdbtypes_post_init): Update.
1582 * c-lang.c (arch_info): New function.
1583 (enum c_primitive_types): New enum.
1584 (c_language_defn): Instead of string_char_type and
1585 primitive_type_vector set la_language_arch_info.
1586
5a44ea29
AC
15872004-07-28 Andrew Cagney <cagney@gnu.org>
1588
1589 * language.h (struct language_arch_info): Fix typo
1590 s/primative/primitive/.
1591 * gdbtypes.c (lookup_primitive_typename): Ditto.
1592 * language.c (language_lookup_primitive_type_by_name)
1593 (unknown_language_arch_info): Ditto.
1594
f290d38e
AC
15952004-07-27 Andrew Cagney <cagney@gnu.org>
1596
1597 * defs.h (enum language): Add nr_languages.
1598 * language.h (struct language_arch_info): Define.
1599 (struct language_defn): Add la_language_arch_info.
1600 (language_lookup_primative_type_by_name): Declare.
1601 (language_string_char_type): Declare.
1602 * language.c (_initialize_language, language_gdbarch_post_init)
1603 (struct language_gdbarch, language_gdbarch_data): Implement
1604 per-architecture language information.
1605 (unknown_language_arch_info, language_string_char_type)
1606 (language_lookup_primative_type_by_name): New functions.
1607 (unknown_language_defn, auto_language_defn)
1608 (local_language_defn): Set la_language_arch_info to
1609 unknown_language_arch_info.
1610 (unknown_builtin_types): Delete.
1611 * gdbtypes.c (lookup_primitive_typename): Use
1612 language_lookup_primative_type_by_name.
1613 (create_string_type): Use language_string_char_type.
1614 * values.c (value_from_string): Use language_string_char_type.
1615 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1616 * p-lang.c (pascal_language_defn): Ditto.
1617 * m2-lang.c (m2_language_defn): Ditto.
1618 * jv-lang.c (java_language_defn): Ditto.
1619 * objc-lang.c (objc_language_defn): Ditto.
1620 * f-lang.c (f_language_defn): Ditto.
1621 * c-lang.c (c_language_defn, cplus_language_defn)
1622 (asm_language_defn, minimal_language_defn): Ditto.
1623
000177f0
AC
16242004-07-27 Andrew Cagney <cagney@gnu.org>
1625
1626 * gdbtypes.h (struct builtin_type): Declare.
1627 (builtin_type): Declare.
1628 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1629 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1630 (gdbtypes_post_init): New function.
1631 (builtin_type): New function.
1632
e22f895c
KI
16332004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1634
1635 * remote-m32r-sdi.c: Fix breakpoint bug.
1636 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1637 recv_char_data, recv_long_data): New functions to replace communication
1638 sequences.
1639
536517dd
MC
16402004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1641
1642 Document PR threads/1650.
1643 * PROBLEMS (Threads): Document problem with many threads
1644
a0a44d18
AC
16452004-07-26 Andrew Cagney <cagney@gnu.org>
1646
1647 * gdb-mi.el: Move from here ...
1648 * mi/gdb-mi.el: ... to here.
1649
7ac4ac06
AC
16502004-07-26 Andrew Cagney <cagney@gnu.org>
1651
1652 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1653 * main.c (captured_main): When in batch mode always detach.
1654
a1b461bf
AC
16552004-07-26 Andrew Cagney <cagney@gnu.org>
1656
1657 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1658 and h8300 as broken.
1659 * NEWS: END-OF-LIFE frame compatibility module.
1660 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1661 specific comments.
1662
cb1a6d5f
AC
16632004-07-26 Andrew Cagney <cagney@gnu.org>
1664
1665 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1666 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1667 * wince.c (_initialize_wince): Update.
1668 * win32-nat.c (_initialize_win32_nat): Update.
1669 * varobj.c (_initialize_varobj): Update.
1670 * valops.c (_initialize_valops): Update.
1671 * utils.c (initialize_utils, initialize_utils): Update.
1672 * tui/tui-win.c (_initialize_tui_win): Update.
1673 * top.c (init_main): Update.
1674 * symfile.c (_initialize_symfile): Update.
1675 * source.c (_initialize_source): Update.
1676 * somsolib.c (_initialize_som_solib): Update.
1677 * solib.c (_initialize_solib): Update.
1678 * solib-frv.c (_initialize_frv_solib): Update.
1679 * serial.c (_initialize_serial): Update.
1680 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1681 * remote.c (_initialize_remote, _initialize_remote): Update.
1682 * remote-vx.c (_initialize_vx): Update.
1683 * remote-utils.c (_initialize_sr_support): Update.
1684 * remote-sds.c (_initialize_remote_sds): Update.
1685 * remote-mips.c (_initialize_remote_mips): Update.
1686 * remote-e7000.c (_initialize_remote_e7000): Update.
1687 * proc-api.c (_initialize_proc_api): Update.
1688 * printcmd.c: Update.
1689 * parse.c (_initialize_parse): Update.
1690 * pa64solib.c (_initialize_pa64_solib): Update.
1691 * p-valprint.c (_initialize_pascal_valprint): Update.
1692 * monitor.c (_initialize_remote_monitors): Update.
1693 * mips-tdep.c (_initialize_mips_tdep): Update.
1694 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1695 * maint.c (_initialize_maint_cmds): Update.
1696 * lin-lwp.c (_initialize_lin_lwp): Update.
1697 * language.c (_initialize_language): Update.
1698 * kod.c (_initialize_kod): Update.
1699 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1700 * i386-tdep.c (_initialize_i386_tdep): Update.
1701 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1702 * gdbarch.sh: Update.
1703 * gdbarch.c: Re-generate.
1704 * gdb-events.sh: Update.
1705 * gdb-events.c: Re-generate.
1706 * frame.c (_initialize_frame): Update.
1707 * exec.c: Update.
1708 * demangle.c (_initialize_demangler): Update.
1709 * dcache.c (_initialize_dcache): Update.
1710 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1711 * cp-valprint.c (_initialize_cp_valprint): Update.
1712 * corefile.c (_initialize_core): Update.
1713 * command.h: Update.
1714 * cli/cli-decode.h: Update.
1715 * cli/cli-cmds.c (init_cli_cmds): Update.
1716 * charset.c (_initialize_charset): Update.
1717 * breakpoint.c (_initialize_breakpoint): Update.
1718 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1719 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1720 * aix-thread.c (_initialize_aix_thread): Update.
1721
b4632131
MK
17222004-07-24 Mark Kettenis <kettenis@gnu.org>
1723
1724 Partial fix for PR backtrace/1718.
1725 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1726 that GCC migrates into the prolugue. Don't handle any
1727 instructions that clobber %ebx.
1728
822c9732
AC
17292004-07-23 Andrew Cagney <cagney@gnu.org>
1730
1731 Use regcache_raw_collect instead of regcache_collect.
1732 * regcache.h (regcache_collect): Delete declaration.
1733 * regcache.c (regcache_colect): Delete function.
1734 * win32-nat.c (do_child_store_inferior_registers): Update.
1735 * sol-thread.c (sol_thread_store_registers): Update.
1736 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1737 * rs6000-nat.c (store_register): Update.
1738 * remote.c (store_register_using_P, remote_store_registers): Update.
1739 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1740 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1741 (fill_vrregset, store_spe_registers, fill_gregset)
1742 (fill_gregset): Update.
1743 * nto-procfs.c (procfs_store_registers): Update.
1744 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1745 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1746 * m68klinux-nat.c (store_register, fill_gregset): Update.
1747 * m68k-tdep.c (fill_gregset): Update.
1748 * infptrace.c (store_register): Update.
1749 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1750 * i386-linux-nat.c (store_register, fill_gregset): Update.
1751 * hppa-linux-nat.c (fill_gregset): Update.
1752 * go32-nat.c (store_register): Update.
1753 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1754 (store_fp_regs): Update.
1755 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1756 (store_nwfpe_extended, store_fpregister, store_fpregs)
1757 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1758 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1759 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1760 (store_regs_user_thread, store_regs_kernel_thread): Update.
1761
32b05c07
MK
17622004-07-24 Mark Kettenis <kettenis@gnu.org>
1763
1764 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1765 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1766 encoding.
1767 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1768 member of `struct comp_unit'.
1769
8567c30f
AC
17702004-07-23 Andrew Cagney <cagney@gnu.org>
1771
1772 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1773 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1774
f6da8dd8
MH
17752004-07-23 Martin Hunt <hunt@redhat.com>
1776 Kevin Buettner <kevinb@redhat.com>
1777
1778 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1779 alignment was being added to the offset instead of multiplied.
1780
bd921882
MK
17812004-07-23 Mark Kettenis <kettenis@gnu.org>
1782
24f033e8
MK
1783 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1784 changed signal trampoline in OpenBSD 3.5-current.
1785
90f3cecd
MK
1786 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1787 <machine/pcb.h> and "bsd-kvm.h".
1788 (sparc64nbsd_supply_pcb): New function.
1789 (_initialize_sparc64nbsd_nat): Renamed from
1790 _initialize_sparcnbsd_nat. Enable libkvm interface.
1791 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1792 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1793 (LOADLIBES): New variable.
1794
a4954a62
MK
1795 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1796
bd921882
MK
1797 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1798
23a6d369
AC
17992004-07-21 Andrew Cagney <cagney@gnu.org>
1800
1801 Use regcache_raw_supply instead of supply_register.
1802 * regcache.h (supply_register): Delete declaration.
1803 * regcache.c (supply_register): Delete function.
1804 * wince.c (do_child_fetch_inferior_registers): Update.
1805 * win32-nat.c (do_child_fetch_inferior_registers)
1806 (fetch_elf_core_registers): Update.
1807 * v850ice.c (v850ice_fetch_registers): Update.
1808 * thread-db.c (thread_db_store_registers): Update.
1809 * sol-thread.c (sol_thread_store_registers): Update.
1810 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1811 * rs6000-nat.c (fetch_register): Update.
1812 * rom68k-rom.c (rom68k_supply_one_register): Update.
1813 * remote.c (remote_wait, remote_async_wait): Update.
1814 * remote-st.c (get_hex_regs): Update.
1815 * remote-sim.c (gdbsim_fetch_register): Update.
1816 * remote-sds.c (sds_fetch_registers): Update.
1817 * remote-rdp.c (remote_rdp_fetch_register): Update.
1818 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1819 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1820 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1821 * remote-hms.c (init_hms_cmds): Update.
1822 * remote-est.c (init_est_cmds): Update.
1823 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1824 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1825 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1826 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1827 (fetch_register, supply_vrregset, supply_vrregset)
1828 (fetch_spe_registers): Update.
1829 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1830 * monitor.c (monitor_supply_register): Update.
1831 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1832 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1833 (mipsnbsd_supply_fpreg): Update.
1834 * mips-nat.c (fetch_inferior_registers)
1835 (fetch_core_registers): Update.
1836 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1837 (supply_fpregset, mips64_supply_gregset)
1838 (mips64_supply_fpregset): Update.
1839 * m68klinux-nat.c (fetch_register, supply_gregset)
1840 (supply_fpregset): Update.
1841 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1842 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1843 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1844 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1845 * infptrace.c (fetch_register): Update.
1846 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1847 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1848 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1849 (gnu_fetch_registers, gnu_store_registers): Update.
1850 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1851 * i386-linux-nat.c (fetch_register, supply_gregset)
1852 (dummy_sse_values): Update.
1853 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1854 * hppah-nat.c (fetch_register): Update.
1855 * hppa-linux-nat.c (fetch_register, supply_gregset)
1856 (supply_fpregset): Update.
1857 * go32-nat.c (fetch_register): Update.
1858 * dve3900-rom.c (fetch_bitmapped_register)
1859 (_initialize_r3900_rom): Update.
1860 * cris-tdep.c (supply_gregset): Update.
1861 * abug-rom.c (init_abug_cmds): Update.
1862 * core-aout.c (fetch_core_registers): Update.
1863 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1864 (fetch_register, fetch_fp_register): Update.
1865 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1866 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1867 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1868 * alphanbsd-tdep.c (fetch_core_registers): Update.
1869 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1870 * alpha-nat.c (fetch_osf_core_registers)
1871 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1872 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1873 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1874
73cc75f3
AC
18752004-07-21 Andrew Cagney <cagney@gnu.org>
1876
1877 * PROBLEMS: Mention breakpoints/1702.
1878 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1879 that is known to work.
1880
a53c66de
AC
18812004-07-21 Andrew Cagney <cagney@gnu.org>
1882
1883 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1884 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1885 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1886 (handle_inferior_event): Wrap call to deprecated
1887 IGNORE_HELPER_CALL in #ifdef.
1888 * config/mips/tm-nbsd.h: Update.
1889
708ff411
JB
18902004-07-20 Jim Blandy <jimb@redhat.com>
1891
412b3060
JB
1892 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1893 bfd_mach_ppc has no segment registers.
1894
13ac140c
JB
1895 Include PowerPC SPR numbers for special-purpose registers.
1896 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1897 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1898 new member in initializer.
1899 (S, S4, SN4, S64): New macros for defining special-purpose
1900 registers.
1901 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1902 registers_403, registers_403GC, registers_505, registers_860,
1903 registers_601, registers_602, registers_603, registers_604,
1904 registers_750, registers_e500): Use them.
1905
708ff411
JB
1906 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1907 replace references with expression used to initialize variable.
1908
1f602b35
AC
19092004-07-20 Andrew Cagney <cagney@gnu.org>
1910
1911 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1912 read_memory_nobpt.
1913 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1914 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1915 (s390_sigtramp_frame_sniffer): Update.
1916 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1917 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1918 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1919 (mips32_fetch_instruction): Update.
1920 * mcore-tdep.c (get_insn): Update.
1921 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1922 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1923 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1924 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1925 (i386_linux_rt_sigtramp_start): Update.
1926 * i386-linux-nat.c (child_resume): Update.
1927 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1928 * hppa-linux-tdep.c (insns_match_pattern): Update.
1929 * gdbcore.h: Update.
1930 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1931 * frame.c (safe_frame_unwind_memory): Update.
1932 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1933 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1934 * alpha-tdep.c (alpha_read_insn): Update.
1935
2cd8546d
AC
19362004-07-20 Andrew Cagney <cagney@gnu.org>
1937
1938 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1939 containing both bytes and mask. Add "frame_type".
1940 * tramp-frame.c (tramp_frame_start): Update.
1941 (tramp_frame_prepend_unwinder): Update.
1942 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1943 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1944 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1945 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1946
f928dd62
EZ
19472004-07-19 Eli Zaretskii <eliz@gnu.org>
1948
1949 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1950 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1951 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1952 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1953
d5c560f7
AC
19542004-07-17 Andrew Cagney <cagney@gnu.org>
1955
860660cb
AC
1956 * NEWS, PROBLEMS: Update for 6.2.
1957
8c266f54
AC
1958 * README: Update to 6.2.
1959
a552edd9
AC
1960 * utils.c (xvasprintf): Call xstrvprintf.
1961
c4a172b5
AC
1962 * parse.c: Update copyright.
1963 (null_post_parser): Eliminate ARGSUSED.
1964
da745b36
AC
1965 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1966 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1967 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1968
9cbc6ef0
AC
1969 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1970 * ppc-linux-nat.c: Use "Linux kernel".
1971 * hppa-linux-tdep.c: Use GNU/Linux.
1972 * hppa-linux-nat.c: Use GNU/Linux.
1973 * dwarfread.c: Add [sic] to use of Linux.
1974
1b89295f
AC
1975 * hppa-linux-nat.c: Do not include <string.h>.
1976 (supply_fpregset): Remove "register" attribute.
1977
d5c560f7
AC
1978 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1979
7ddd7709
MK
19802004-07-17 Mark Kettenis <kettenis@gnu.org>
1981
b1d19a62
MK
1982 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1983 * configure, config.in: Regenerated.
1984
7ddd7709
MK
1985 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1986 "bsd-kvm.h".
1987 (vaxbsd_supply_pcb): New function.
1988 (_initialize_vaxbsd_nat): New prototype and function.
1989 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1990 solib-sunos.o.
1991 (LOADLIBES): New variable.
1992 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1993 (LOADLIBES): New variable.
1994 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1995 (LOADLIBES): New variable.
1996 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1997
2c07db7a
AC
19982004-07-16 Andrew Cagney <cagney@gnu.org>
1999
2000 * defs.h (event_loop_p): Replace variable declaration with macro,
2001 always 1.
2002 * main.c (captured_main): Delete options "-async" and "-noasync".
2003 (event_loop_p): Delete variable.
2004 * NEWS: Mention that "-async" and "-noasync" were removed.
2005
717eb1cf
AC
20062004-07-16 Andrew Cagney <cagney@gnu.org>
2007
2008 * remote-m32r-sdi.c: Re-indent.
2009
c101bc14
JB
20102004-07-16 Jim Blandy <jimb@redhat.com>
2011
5109a438
JB
2012 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2013 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2014 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2015 missing MPC823 SPRs.
2016 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2017 incorrect. (This was corrected in GDB's register name tables on
2018 2004-07-14.)
2019
c101bc14
JB
2020 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2021 should be "esasrr" ("ESA Save and Restore Register").
2022
7ce450bd
AC
20232004-07-16 Andrew Cagney <cagney@gnu.org>
2024
2025 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2026 calls, no longer applicable. Update comments and rename parameter
2027 "step_frame" to "return_frame".
2028
ca73dd9d
AC
20292004-07-16 Andrew Cagney <cagney@gnu.org>
2030
2031 * frame.c (fprint_field): New function.
2032 (fprint_frame_id): Use fprint_field.
2033
31941f6d
JB
20342004-07-15 Joel Brobecker <brobecker@gnat.com>
2035
2036 * ada-lang.c (ada_language_defn): Remove commented out code.
2037
f86a7158
JB
20382004-07-15 Jim Blandy <jimb@redhat.com>
2039
2040 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2041 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2042
c24791ec
JB
20432004-07-14 Jim Blandy <jimb@redhat.com>
2044
29bb1356
JB
2045 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2046
cc98b5cc
JB
2047 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2048
8f088af7
JB
2049 * ppc-tdep.h (ppc_num_srs): New enum constant.
2050
0ea0ec5f
JB
2051 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2052 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2053 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2054 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2055 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2056 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2057 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2058 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2059 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2060 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2061 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2062 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2063 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2064 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2065 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2066 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2067 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2068 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2069 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2070 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2071 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2072 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2073 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2074 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2075 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2076 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2077 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2078 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2079 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2080 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2081 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2082 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2083 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2084 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2085 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2086 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2087 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2088 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2089 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2090 special-purpose register numbers.
2091
c24791ec
JB
2092 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2093 manual mentions 'md_twb', but many mention 'm_twb', and at that
2094 point in the register list.)
2095
d833db3b
AC
20962004-07-14 Andrew Cagney <cagney@gnu.org>
2097
2098 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2099 instead of "internal-error".
2100
080228b2
JB
21012004-07-10 Joel Brobecker <brobecker@gnat.com>
2102
2103 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2104 that was inserted inside a comment.
2105
c268433a
RC
21062004-07-10 Randolph Chung <tausq@debian.org>
2107
2108 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2109 function.
2110 (hppa_hpux_push_dummy_code): New function.
2111 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2112 Set find_global_pointer method.
2113
71009278
MK
21142004-07-10 Mark Kettenis <kettenis@gnu.org>
2115
2116 * NEWS: Mention BSD libkvm interface.
2117
b2fa5097
MS
21182004-07-10 Michael Snyder <msnyder@redhat.com>
2119
2120 * symfile.c (generic_load): Comment typo.
2121 * stack.c (get_selected_block): Ditto.
2122 * regcache.c (regcache_cooked_read): Ditto.
2123 * monitor.c (monitor_debug): Ditto.
2124 * mips-tdep.c (mips_read_pc): Ditto.
2125 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2126 * gdb_mbuild.sh: Ditto.
2127 * gdbarch.sh: Ditto.
2128 * gdbarch.h: Ditto.
2129
c3e5cd34
PH
21302004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2131
8a2225b2
PH
2132 * ada-tasks.c: Remove file.
2133
c3e5cd34
PH
2134 Remove ARI problems:
2135
2136 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2137 beginning of line.
2138
2139 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2140 Add comment.
2141 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2142 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2143 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2144 (UMIN_OF_SIZE): Remove.
2145 (max_of_type): New function to replace orphan macro in gdbtypes.h
2146 (min_of_type): Ditto.
2147 (discrete_type_high_bound): Use max_of_type.
2148 (discrete_type_low_bound): Use min_of_type.
2149 (possible_user_operator_p): Move operator to beginning of line.
2150 (ada_is_variant_part): Ditto.
2151 (ensure_lval): Rewrite to avoid deprecated operations.
2152 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2153 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2154 (ada_enum_name): Remove assignments in 'if' statements.
2155 (build_ada_types): Add gdbarch parameter.
2156 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2157 with gdbarch_data_register_post_init.
2158 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2159 add_show_from_set.
2160
2161 * ada-valprint.c (inspect_it): Remove declaration.
2162 (repeat_count_threshold): Remove declaration.
2163 (ada_print_floating): Remove assignments in 'if' statements.
2164 (print_str): Move operator to beginning of line.
2165
61ce229a
JB
21662004-07-08 Jim Blandy <jimb@redhat.com>
2167
2168 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2169
09bcec80
BR
21702004-07-08 Bob Rossi <bob@brasko.net>
2171
2172 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2173
31c27f77
JJ
21742004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2175
2176 * language.h (struct_language_defn): Add new function pointer:
2177 la_class_name_from_physname. Also add new prototype for
2178 language_class_name_from_physname.
2179 * language.c (language_class_name_from_physname): New function.
2180 (unk_lang_class_name): Ditto.
2181 (unknown_language_defn, auto_language_defn): Change
2182 to add unk_lang_class_name function pointer for
2183 la_class_name_from_physname.
2184 (local_language_defn): Ditto.
2185 * dwarf2read.c (guess_structure_name): Change to call
2186 language_class_name_from_physname.
2187 (determine_class_name): Ditto.
2188 * cp-support.c (class_name_from_physname): Renamed.
2189 (cp_class_name_from_physname): New name of function.
2190 * cp-support.h: Ditto.
2191 * c-lang.c (c_language_defn): Change to add NULL
2192 for class_name_from_physname function pointer.
2193 (cplus_language_defn): Change to add cp_class_name_from_physname.
2194 * jv-lang.c (java_class_name_physname): New function.
2195 (java_find_last_component): New static routine.
2196 (java_language_defn): Add java_class_name_from_physname pointer.
2197 * ada-lang.c (ada_language_defn): Change to add NULL
2198 for class_name_from_physname function pointer.
2199 * f-lang.c (f_language_defn): Ditto.
2200 * m2-lang.c (m2_language_defn): Ditto.
2201 * objc-lang.c (objc_language_defn): Ditto.
2202 * p-lang.c (pascal_language_defn): Ditto.
2203 * scm-lang.c (scm_language_defn): Ditto.
2204
ee28ca0f
AC
22052004-07-06 Andrew Cagney <cagney@gnu.org>
2206
2207 Patch from Bart Robinson.
2208 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2209 (O_LARGEFILE): Define to 0, if not defined.
2210
fdb1bf9d
MK
22112004-07-03 Mark Kettenis <kettenis@gnu.org>
2212
cb162ff6
MK
2213 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2214 <machine/pcb.h> and "bsd-kvm.h".
2215 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2216 (m68kbsd_supply_pcb): New function.
2217 (_initialize_m68kbsd_nat): New prototype and function.
2218 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2219 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2220 (LOADLIBES): New variable.
2221 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2222 (LOADLIBES): New variable.
2223
fdb1bf9d
MK
2224 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2225
963c4174
MK
22262004-07-03 Mark Kettenis <kettenis@gnu.org>
2227
2228 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2229 <sys/proc.h>.
2230 (bsd_kvm_cmdlist): New variable.
2231 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2232 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2233 command and "kvm proc" command.
2234 * Makefile.in (bsd-kvm.o): Update dependencies.
2235
533f1d8f
MK
22362004-07-02 Mark Kettenis <kettenis@gnu.org>
2237
2238 * osabi.c: Update copyright year.
2239 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2240 notes if EI_OSABI is set to ELFOSABI_HPUX.
2241
6780dcde
MS
22422004-07-01 Michael Snyder <msnyder@redhat.com>
2243
2244 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2245 that seems to have gotten whacked out of line.
2246
67bebe79
MK
22472004-07-01 Mark Kettenis <kettenis@gnu.org>
2248
2249 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2250 code.
2251
0b5d8877
PH
22522004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2253
2254 * ada-lang.c (decode_packed_array): Minor change to comment.
2255 (ada_value_slice_ptr): New function.
2256 (ada_value_slice): New function.
2257 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2258 test. Don't know why it is there.
2259 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2260 to avoid dereferencing huge arrays from which one is slicing.
2261 (empty_array): Correct to return an array rather than
2262 a subrange value.
2263 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2264 on empty arrays (let'em use 'FIRST instead).
2265
19c1ef65
PH
22662004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2267
2268 Address complaints from gdb_ari.sh:
2269
2270 * ada-exp.y: Include gdb_string.h rather than string.h.
2271 (convert_char_literal): Reformat declaration.
2272 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2273 * ada-lex.l: Change use of free to xfree (the macro would do so
2274 anyway, but this is harmless).
2275 Include gdb_string.h rather than string.h.
2276 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2277
2278 * ada-lang.c (parse): Remove K&Rism in parameter list.
2279 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2280
d81cbc94
MK
22812004-06-30 Mark Kettenis <kettenis@gnu.org>
2282
2283 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2284 dead code.
2285
07681759
MK
22862004-06-30 Mark Kettenis <kettenis@gnu.org>
2287
2288 * alphabsd-nat.c: Update copyright year.
2289 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2290
f7948b5f
JB
22912004-06-29 Joel Brobecker <brobecker@gnat.com>
2292
6e0cdd28 2293 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
2294 (i386_cygwin_in_solib_call_trampoline): New function.
2295 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2296 and skip_trampoline_code gdbarch methods.
2297
8f113c9a
JB
22982004-06-29 Jim Blandy <jimb@redhat.com>
2299
2300 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2301 name actually used in the dependency lists.
2302
97dc871c
RC
23032004-06-29 Randolph Chung <tausq@debian.org>
2304
2305 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2306
47216e51
CV
23072004-06-29 Corinna Vinschen <vinschen@redhat.com>
2308
2309 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 2310 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
2311 functionality.
2312
e623b504
AC
23132004-06-28 Andrew Cagney <cagney@gnu.org>
2314
2315 * defs.h (xstrvprintf): Declare.
2316 * utils.c (xstrvprintf): New function.
2317 (internal_vproblem, xstrprintf, xasprintf)
2318 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2319 * serial.c (serial_printf): Ditto.
2320 * complaints.c (vcomplaint): Ditto.
2321
79acc9b3
CV
23222004-06-29 Corinna Vinschen <vinschen@redhat.com>
2323
2324 * infcmd.c (attach_command): Move call to target_terminal_inferior
2325 behind loading symbol table.
2326
1daf35d9
AC
23272004-06-28 Andrew Cagney <cagney@gnu.org>
2328
2329 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2330 change - add back extern deprecated_ui_loop_hook declaration.
2331
b435e160
AC
23322004-06-28 Andrew Cagney <cagney@gnu.org>
2333
2334 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2335 xstrprintf.
2336 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2337 (c_value_of_variable): Ditto.
2338 * utils.c (internal_vproblem): Ditto.
2339 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2340 * remote.c (add_packet_config_cmd): Ditto.
2341 * remote-rdp.c (rdp_set_command_line): Ditto.
2342 * regcache.c (regcache_dump): Ditto.
2343 * frv-tdep.c (new_variant, new_variant): Ditto.
2344 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2345 (fbsd_find_memory_regions): Ditto.
2346 * breakpoint.c (create_thread_event_breakpoint)
2347 (create_breakpoints): Ditto.
2348 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2349 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2350
06d5cf63
JB
23512004-06-28 Joel Brobecker <brobecker@gnat.com>
2352
2353 * ada-lang.c: Re-indent file, with some massaging to help indent
2354 a bit when the result is otherwise really too ugly.
2355
35809fad
UW
23562004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2357
2358 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2359 code_addr_p and special_addr_p to 'unsigned int'.
2360
40e20472
MK
23612004-06-27 Mark Kettenis <kettenis@gnu.org>
2362
2363 * i386v4-nat.c: Update copyright year and tweak comment.
2364 (regmap): Remove trailing comma.
2365 (supply_gregset): Rename local variable i to regnum. Call
2366 regcache_raw_supply instead of supply_register.
2367 (fill_gregset): Rename argument regno to regnum. Call
2368 regcache_raw_collect instead of regcache_collect.
2369
12b0b6de
UW
23702004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2371
2372 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2373 and special_addr_p.
2374 (frame_id_build, frame_id_build_special): Update comments.
2375 (frame_id_build_wild): New prototype.
2376 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2377 struct frame_id fields.
2378 (frame_id_build_wild): New function.
2379 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2380
47b42a3e
MK
23812004-06-27 Mark Kettenis <kettenis@gnu.org>
2382
2383 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2384 hppabsd-tdep.c.
2385
1265e4aa
JB
23862004-06-27 Joel Brobecker <brobecker@gnat.com>
2387
2388 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2389
76a01679
JB
23902004-06-27 Joel Brobecker <brobecker@gnat.com>
2391
2392 * ada-lang.c: Re-indent file.
2393
7aca490a
JB
23942004-06-27 Joel Brobecker <brobecker@gnat.com>
2395
2396 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2397 (no_symtab_msg): Likewise.
2398
5e987968
AS
23992004-06-27 Andreas Schwab <schwab@suse.de>
2400
2401 * source.c: Fix whitespace.
2402
315c4276
MK
24032004-06-27 Mark Kettenis <kettenis@gnu.org>
2404
d15be926
MK
2405 * configure.in: Include <sys/param.h> for td_pcb test.
2406 * configure: Regenerated.
2407
9062529b
MK
2408 * i386nbsd-nat.c: New file.
2409 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2410 i386obsd-nat.c and i386obsd-tdep.c.
2411 (i386nbsd-nat.o): New dependency.
2412 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2413 bsd-kvm.o.
2414 (LOADLIBES): New variable.
2415 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2416 bsd-kvm.o.
2417 (LOADLIBES): New variable.
2418
8010310e
MK
2419 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2420 (LOADLIBES): New variable.
2421
efe1d7b9
MK
2422 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2423 fetching from BSD_KVM_PADDR. Correctly lookup address for
2424 "_thread0".
2425
315c4276
MK
2426 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2427 "bsd-kvm.h".
2428 (amd64fbsd_supply_pcb): New funcion.
2429 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2430
399cfac6
DL
24312004-06-27 <david@streamline-computing.com>
2432
2433 Partial fix for PR cli/1056.
2434 * valarith.c: Check for zero in division and remainder
2435 evaluation.
2436
6235f9c8
MK
24372004-06-27 Mark Kettenis <kettenis@gnu.org>
2438
2439 * i387-tdep.c: Remove excessive whitespace.
2440
2726dafc
AC
24412004-06-26 Andrew Cagney <cagney@gnu.org>
2442
2443 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2444 * gdb-events.h, gdb-events.c: Re-generate.
2445 * tui/tui-hooks.c (tui_install_hooks): Update.
2446 (tui_remove_hooks): Update.
2447 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2448
0e56aeaf
MK
24492004-06-26 Mark Kettenis <kettenis@gnu.org>
2450
cb461069
MK
2451 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2452 (gregset_t, fpregset_t): Remove typedefs.
2453 (REG_OFFSET): Rename argument.
2454 (amd64bsd_r_reg_offset): Rename from reg_offset.
2455 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2456 Remove functions.
2457 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2458 of reg_offset.
2459 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2460
ecba89de
MK
2461 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2462
4cd80476
MK
2463 * vax-tdep.c: Tweak comment.
2464
0e56aeaf
MK
2465 Add OpenBSD/hppa support.
2466 * NEWS (New native configurations): Mention OpenBSD/hppa.
2467 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2468 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2469 files.
2470 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2471 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2472 * configure.host: Add hppa*-*-openbsd*.
2473 * configure.tgt: Add hppa*-*-openbsd*.
2474
98bbd631
AC
24752004-06-25 Andrew Cagney <cagney@gnu.org>
2476
2477 * defs.h (deprecated_ui_loop_hook): Deprecated.
2478 * wince.c (child_wait): Update.
2479 * win32-nat.c (child_wait): Update.
2480 * v850ice.c (v850ice_wait): Update.
2481 * top.c (deprecated_ui_loop_hook): Update.
2482 * serial.h: Update.
2483 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2484 (do_unix_readchar): Update.
2485 * ser-tcp.c (net_open): Update.
2486 * remote-sim.c (gdb_os_poll_quit): Update.
2487 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2488
769d7dc4
AC
24892004-06-24 Andrew Cagney <cagney@gnu.org>
2490
2491 * defs.h (deprecated_pre_add_symbol_hook)
2492 (deprecated_post_add_symbol_hook): Deprecated.
2493 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2494 (symbol_file_add_with_addrs_or_offsets): Update references.
2495
11c949aa
AC
24962004-06-24 Andrew Cagney <cagney@gnu.org>
2497
2498 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2499 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2500 * wince.c (ui_loop_hook): Delete extern declaration.
2501 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2502 * v850ice.c (ui_loop_hook): Delete extern declaration..
2503 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2504 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2505 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2506 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2507 ui_loop_hook declaration.
2508
eedc19af
AC
25092004-06-24 Andrew Cagney <cagney@gnu.org>
2510
2511 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2512 entry_func_highpc fields.
2513 * objfiles.c (init_entry_point_info): Do not clear
2514 entry_func_lowpc and entry_func_highpc.
2515 (objfile_relocate): Do not relocate entry_func_lowpc and
2516 entry_func_highpc.
2517 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2518 entry_func_highpc.
2519 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2520 entry_func_highpc.
2521 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2522 entry_func_lowpc and entry_func_highpc with call to
2523 inside_entry_func.
2524
d47079be
MK
25252004-06-24 Mark Kettenis <kettenis@gnu.org>
2526
2527 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2528 quad-precision floating point arguments in registers.
2529
2107e348
MK
25302004-06-24 Mark Kettenis <kettenis@gnu.org>
2531
2532 From Michael Mueller <m.mueller99@kay-mueller.de>:
2533 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2534 account.
2535
46587c42
JJ
25362004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2537
2538 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2539 to -1.
2540 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2541 untriggered watchpoints to a separate if clause. Update function
2542 comment regarding STOPPED_BY_WATCHPOINT argument.
2543
226f5cf4
JB
25442004-06-22 Jim Blandy <jimb@redhat.com>
2545
2546 * gdbarch.sh: Doc fix.
2547
f10683bb
MH
25482004-06-21 Martin Hunt <hunt@redhat.com>
2549 Kevin Buettner <kevinb@redhat.com>
2550
2551 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2552 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2553 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2554 to set_gdbarch_sp_regnum(). Use cooked register number.
2555 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2556
412d5987
AC
25572004-06-21 Andrew Cagney <cagney@gnu.org>
2558
2559 * gdbarch.sh: When the macro field is empty, do not generate a
2560 macro definition. When the macro field is "=", generate the macro
2561 name from the upper-case function name.
2562 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2563 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2564 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2565 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2566 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2567 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2568 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2569 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2570 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2571 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2572 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2573 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2574 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2575 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2576 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2577 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2578 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2579 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2580 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2581 (DEPRECATED_USE_STRUCT_CONVENTION)
2582 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2583 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2584 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2585 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2586 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2587 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2588 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2589 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2590 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2591 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2592 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2593 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2594 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2595 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2596 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2597 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2598 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2599 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2600
68908a3e
AC
26012004-06-21 Andrew Cagney <cagney@gnu.org>
2602
48f7351b
AC
2603 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2604 macro name, and the function rather than macro value. Only wrap
2605 macro print statements in #ifdef. Move format logic to where it
2606 is needed.
2607 * gdbarch.c: Re-generate.
2608
283354d8
AC
2609 * gdbarch.sh (read): Delete "print_p" and "description", add
2610 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2611 Delete references to print_p.
2612 (TARGET_ARCHITECTURE): Delete print predicate.
2613 * gdbarch.c: Re-generate.
2614
68908a3e
AC
2615 * gdbarch.sh: Check that multi-arch methods do not provide a
2616 macro.
2617 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2618 (print_registers_info, print_float_info, print_vector_info)
2619 (adjust_breakpoint_address, remote_translate_xfer_address)
2620 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2621 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2622 name from the multi-arch definition.
2623
a2428dbe
AC
26242004-06-20 Andrew Cagney <cagney@gnu.org>
2625
2626 * gdbarch.sh: Sort by the function, instead of macro name.
2627 * gdbarch.c: Re-generate.
2628
750eb019
AC
26292004-06-20 Andrew Cagney <cagney@gnu.org>
2630
66d659b1
AC
2631 * gdbarch.sh: Use the function, instead of macro name in
2632 errors and the log file.
2633 (return_value): Remove stray ":" in spec.
2634
750eb019
AC
2635 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2636 * gdbarch.h, gdbarch.c: Re-generate.
2637 * Makefile.in (arch-utils.o): Update dependencies.
2638 * values.c (using_struct_return): Move code calling
2639 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2640 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2641 to legacy_return_value, simplify.
2642 * infcmd.c (print_return_value): Move code calling
2643 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2644 to legacy_return_value, simplify.
2645 * infcall.c (call_function_by_hand): Move code calling
2646 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2647 * arch-utils.c: Update copyright. Include "gdbcore.h".
2648 (legacy_return_value): New function.
2649 * arch-utils.h: Update copyright.
2650 (legacy_return_value): Declare.
2651
b5622e8d
AC
26522004-06-20 Andrew Cagney <cagney@gnu.org>
2653
2654 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2655 * gdbarch.h, gdbarch.c: Re-generate.
2656 * values.c (using_struct_return): Update call.
2657 * mcore-tdep.c: Update comment.
2658 * infcall.c (call_function_by_hand): Update comment.
2659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2660 * arch-utils.h (always_use_struct_convention): Update.
2661 * v850-tdep.c (v850_gdbarch_init): Update.
2662 * sh64-tdep.c (sh64_gdbarch_init): Update.
2663 * sh-tdep.c (sh_gdbarch_init): Update.
2664 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2665 * mips-tdep.c (mips_gdbarch_init): Update.
2666 * mcore-tdep.c (mcore_gdbarch_init): Update.
2667 * m32r-tdep.c (m32r_gdbarch_init): Update.
2668 * ia64-tdep.c (ia64_gdbarch_init): Update.
2669 * h8300-tdep.c (h8300_gdbarch_init): Update.
2670 * frv-tdep.c (frv_gdbarch_init): Update.
2671 * cris-tdep.c (cris_gdbarch_init): Update.
2672 * arm-tdep.c (arm_gdbarch_init): Update.
2673 * alpha-tdep.c (alpha_gdbarch_init): Update.
2674
5191de37
MC
26752004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2676
2677 * PROBLEMS: Add more specific information, and a work-around,
2678 for PR gdb/1458.
2679
782263ab
AC
26802004-06-18 Andrew Cagney <cagney@gnu.org>
2681
2682 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2683 * gdbarch.h, gdbarch.c: Re-generate.
2684 * ada-lang.c (ada_finish_decode_line_1): Update.
2685 * infrun.c (handle_inferior_event): Update.
2686 * infcall.c (find_function_addr): Update.
2687 * linespec.c (minsym_found): Update.
2688 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2689 Update.
2690 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2691 * cli/cli-cmds.c (disassemble_command): Update.
2692 * vax-tdep.c (vax_gdbarch_init): Update.
2693
2f305df1
MK
26942004-06-18 Mark Kettenis <kettenis@gnu.org>
2695
2696 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2697
e5fe55f7
AC
26982004-06-17 Andrew Cagney <cagney@gnu.org>
2699
2700 GDB 6.1.1 released from the GDB 6.1 branch.
2701 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2702 * PROBLEMS: Ditto.
2703
473b7be6
DJ
27042004-06-16 Daniel Jacobowitz <dan@debian.org>
2705
2706 PR gdb/1658
2707 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2708 operation as a uleb128. Found by Michael Coulter.
2709
96d887e8
PH
27102004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2711
2712 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2713 make it non-static.
2714 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2715 to ada-lang.h; this is needed to be able to implement the kill command
2716 in multi-task mode.
2717 (task_ptid): Ditto.
2718 (task_entry): Ditto.
2719 (task_list): Ditto.
2720 (ada_build_task_list): Ditto.
2721
2722 * ada-lang.c: Conditionalize routines and data structures related
2723 to breakpoints, exceptions, completion, and symbol caching on
2724 GNAT_GDB, since these are not yet used in the submitted public sources.
2725 (ada_main_name): Editorial: Move definition out of exception-related
2726 code.
2727
31eef181
AC
27282004-06-15 Andrew Cagney <cagney@gnu.org>
2729
2730 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2731 deprecated_pc_in_call_dummy.
2732
2c500098
AM
27332004-06-15 Alan Modra <amodra@bigpond.net.au>
2734
2735 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2736 bfd_get_section_size_before_reloc or _raw_size.
2737 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2738 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2739 (dwarf2_read_section): Likewise.
2740 * elfread.c (elf_locate_sections): Likewise.
2741 * gcore.c (derive_heap_segment): Likewise.
2742 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2743 * remote-e7000.c (e7000_load): Likewise.
2744 * remote-m32r-sdi.c (m32r_load): Likewise.
2745 * remote-mips.c (mips_load_srec): Likewise.
2746 (pmon_load_fast): Likewise.
2747 * remote.c (compare_sections_command): Likewise.
2748 * symfile.c (add_section_size_callback): Likewise.
2749 (load_section_callback): Likewise.
2750 (pc_in_unmapped_range): Likewise.
2751 (pc_in_mapped_range): Likewise.
2752 (sections_overlap): Likewise.
2753 (list_overlays_command): Likewise.
2754 (simple_overlay_update_1): Likewise.
2755 (simple_overlay_update): Likewise.
2756 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2757 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2758
90f943f1
RC
27592004-06-14 Randolph Chung <tausq@debian.org>
2760
2761 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2762 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2763 static.
2764 (hppa_hpux_inferior_created): New function.
2765 (hppa_hpux_init_abi): Register observer.
2766 * symfile.c (hp_cxx_exception_support_initialized)
2767 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2768 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2769
700c15aa
RC
27702004-06-14 Randolph Chung <tausq@debian.org>
2771
3973a7d3
AC
2772 * MAINTAINERS (Write After Approval): Alphabetize my entry
2773 correctly.
700c15aa 2774
cea4838c
AC
27752004-06-14 Andrew Cagney <cagney@gnu.org>
2776
2777 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2778 testsuite maintainer.
2779
97092415
AC
27802004-06-13 Andrew Cagney <cagney@gnu.org>
2781
e8c3165b
AC
2782 * infcmd.c (print_return_value): Fix logic, allow
2783 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2784
bceabdd8
AC
2785 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2786 defining any macros.
2787 * gdbarch.h: Re-generate.
2788
57010b1c
AC
2789 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2790 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2791 * gdbarch.h: Re-generate.
2792
bc87dfa0
AC
2793 * values.c (generic_use_struct_convention): Don't check gcc_p.
2794
15ac804d
AC
2795 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2796 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2797 * gdbarch.h, gdbarch.c: Regenerate.
2798 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2799 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2800 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2801 deprecated_max_register_raw_size and
2802 deprecated_max_register_virtual_size.
2803 * v850-tdep.c (v850_gdbarch_init): Ditto.
2804 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2805 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2806 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2807 * cris-tdep.c (cris_gdbarch_init): Ditto.
2808
97092415
AC
2809 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2810 * gdbarch.h, gdbarch.c: Re-generate.
2811 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2812 (m68hc11_use_struct_convention): Delete function.
2813 (m68hc11_extract_struct_value_address): Delete function.
2814 (m68hc11_return_value): New function.
2815 (m68hc11_gdbarch_init): Instead of store_return_value,
2816 extract_return_value, return_value_on_stack,
2817 deprecated_extract_struct_value_address and use_struct_convention,
2818 set return_value.
2819 * values.c (using_struct_return): Do not call
2820 RETURN_VALUE_ON_STACK.
2821 * arch-utils.h (generic_return_value_on_stack_not): Delete
2822 declaration.
2823 * arch-utils.c (generic_return_value_on_stack_not): Delete
2824 function.
2825
44e5158b
AC
28262004-06-12 Andrew Cagney <cagney@gnu.org>
2827
2828 * values.c (register_value_being_returned): Delete function.
2829 * infcmd.c (legacy_return_value): Delete function.
2830 * infcall.c (call_function_by_hand): Inline
2831 "register_value_being_returned", simplify.
2832 * values.c (using_struct_return): Update comment, refer to
2833 print_return_value instead of register_value_being_returned.
2834 * infcmd.c (print_return_value): Inline calls to
2835 register_value_being_returned and legacy_return_value. Simplify.
2836
b887c273
RC
28372004-06-11 Randolph Chung <tausq@debian.org>
2838
2839 * somread.c (som_symtab_read): Exclude gcc local symbols.
2840
1b2bfbb9
RC
28412004-06-11 Randolph Chung <tausq@debian.org>
2842
3973a7d3
AC
2843 * infrun.c (handle_inferior_event): Handle the case when a
2844 trampoline ends up in the runtime resolver, and if the trampoline
2845 has no name. Rearrange the code so that all the trampoline
2846 processing happens before other step-out-of-range handling.
1b2bfbb9 2847
a9d61c86
MH
28482004-06-11 Martin Hunt <hunt@redhat.com>
2849
2850 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2851 has no fpu.
2852
2c87cf5a
AC
28532004-06-10 Andrew Cagney <cagney@gnu.org>
2854
2855 * blockframe.c (legacy_inside_entry_func): Delete.
2856 (legacy_frame_chain_valid): Inline call to
2857 legacy_inside_entry_func, simplify.
2858
0b67b468 28592004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2860
2861 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2862 * dwarf2read.c (partial_die_info): Add dirname field.
2863 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2864 (read_partial_die): Save away DW_AT_comp_dir.
2865 * defs.h (symtab_to_filename): Removed.
2866 * source.c (find_and_open_source): Added.
57c22c6c 2867 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2868 (symtab_to_filename): Removed.
2869 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2870 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2871 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2872 symtab_to_filename.
2873 * symtab.h (partial_symtab): Add dirname field.
2874 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2875 (mi_cmd_file_list_exec_source_file): Call new function
2876 symtab_to_fullname to find fullname.
57c22c6c 2877 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2878 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2879 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2880
9a1dd1ad
AC
28812004-06-10 Andrew Cagney <cagney@gnu.org>
2882
239ae8c7
AC
2883 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2884 to generic_use_struct_convention, the default value.
2885
fc720350
AC
2886 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2887 of abort.
2888
9a1dd1ad
AC
2889 * ns32k-tdep.c (ns32k_push_arguments): New function.
2890 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2891 * infcall.c (call_function_by_hand): Call error instead of
2892 legacy_push_arguments.
2893 * value.h (legacy_push_arguments): Delete declaration.
2894 * valops.c (legacy_push_arguments): Delete function.
2895 (value_push): Delete function.
2896
fea25152
BF
28972004-06-10 Brian Ford <ford@vss.fsi.com>
2898
2899 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2900 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2901 info.
2902 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2903
30a4a8e0
AC
29042004-06-10 Andrew Cagney <cagney@gnu.org>
2905
2906 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2907 * gdbarch.h, gdbarch.c: Re-generate.
2908 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2909 parameters.
2910 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2911 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2912 deprecated_pc_in_call_dummy instead of
2913 DEPRECATED_PC_IN_CALL_DUMMY.
2914 (arm_skip_prologue): Ditto.
2915 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2916 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2917 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2918 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2919 Ditto.
2920 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2921 (sh64_init_extra_frame_info, sh64_get_saved_register)
2922 (sh64_pop_frame): Ditto.
2923 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2924 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2925 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2926 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2927 (h8300_pop_frame): Ditto.
2928 * blockframe.c (legacy_inside_entry_func)
2929 (legacy_frame_chain_valid): Ditto.
2930 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2931 to deprecated_pc_in_call_dummy.
2932
81cfbe54
AC
29332004-06-09 Andrew Cagney <cagney@gnu.org>
2934
a1f4a1b6
AC
2935 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2936 provide a default value.
2937 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2938 * gdbarch.h, gdbarch.c: Re-generate.
2939 * arch-utils.c (generic_convert_register_p): Rename
2940 legacy_convert_register_p
2941 (legacy_register_to_value, legacy_value_to_register): Delete
2942 functions.
2943 * arch-utils.h (generic_convert_register_p): Rename
2944 legacy_convert_register_p.
2945 (legacy_register_to_value, legacy_value_to_register): Delete
2946 declarations.
2947
9730f241
AC
2948 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2949 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2950 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2951 * gdbarch.h, gdbarch.c: Re-generate.
2952 * infcmd.c (default_print_registers_info): Simplify.
2953 * findvar.c (value_of_register): Simplify.
2954 * mi/mi-main.c (get_register): Simplify.
2955 * arch-utils.c (legacy_convert_register_p): Always return 0.
2956 (legacy_register_to_value, legacy_value_to_register): Always call
2957 internal_error.
2958
8a1bf479
AC
2959 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2960 #ifdef CLEAR_INSN_CACHE code.
2961 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2962 Delete #ifdef CLEAR_DEFERRED_STORES code.
2963
4b38d6f1
AC
2964 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2965
2d62ecc7
AC
2966 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2967 copyright.
2968 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2969
be4f7469
AC
2970 * config/mips/mipsv4.mh: Delete file.
2971
81cfbe54
AC
2972 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2973 unreferenced macro.
2974 (hpread_adjust_stack_address): Delete declaration.
2975
d966f0cb
AC
29762004-06-08 Andrew Cagney <cagney@gnu.org>
2977
2978 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2979 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2980 PTRACE_ATTACH / PTRACE_DETACH available call error.
2981 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2982 * infttrace.c (update_thread_state_after_attach, attach, detach):
2983 Remove #ifdef wrappers.
2984 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2985 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2986 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2987 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2988 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2989 * config/nm-linux.h (ATTACH_DETACH): Delete.
2990 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2991 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2992 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2993 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2994 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2995
d91670b9
CV
29962004-06-08 Corinna Vinschen <vinschen@redhat.com>
2997
2998 * configure.in: Set $configdir to the right OS specific value.
2999 Use value when setting $tcldir and $tkdir.
3000 * configure: Regenerate.
3001
28ba0b33
PB
30022004-06-06 Paul Brook <paul@codesourcery.com>
3003
3004 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3005 records.
3006
f26caa11
PH
30072004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3008
3009 * ada-lang.c (lookup_symbol_in_language): New function to allow
3010 re-use of another language's symbol lookup code. (Placed here
3011 temporarily while Ada support is being integrated into the public
3012 tree).
3013 (restore_language): New auxiliary function for
3014 lookup_symbol_in_language.
3015 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3016 temporarily while Ada support is being integrated into the public
3017 tree).
3018
d560a54b
AO
30192004-06-08 Alexandre Oliva <aoliva@redhat.com>
3020
e75d110c
AO
3021 * Makefile.in (check//%): New.
3022
d560a54b
AO
3023 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3024 (mn10300_store_return_value): Rewrite.
3025 (mn10300_type_align): New.
3026 (mn10300_use_struct_convention): Rewrite.
3027 (mn10300_return_value): New, using all of the above.
3028 (mn10300_pop_frame_regular): Add saved_regs_size.
3029 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3030
a72fbdb7
AO
3031 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3032 regs if PC is on movm.
3033
01904826
JB
30342004-06-07 Jim Blandy <jimb@redhat.com>
3035
3036 Add native Linux support for the PowerPC E500.
3037 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3038 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3039 all architectures except the E500.
3040 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3041 #definitions.
3042 (struct gdb_evrregset_t): New type.
3043 (have_ptrace_getsetevrregs): New variable.
3044 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3045 fetch_spe_registers): New functions.
3046 (fetch_register): Call fetch_spe_register as appropriate.
3047 Assert that we're only passed raw register numbers.
3048 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3049 Don't fetch gprs if they're pseudoregisters.
3050 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3051 store_spe_registers): New functions.
3052 (store_register): Call store_spe_register as appropriate.
3053 Assert that we're only passed raw register numbers.
3054 (store_ppc_registers): Call store_spe_registers as appropriate.
3055 Don't store gprs if they're pseudoregisters.
3056
f90ef764
JJ
30572004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3058
3059 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3060 struct if one exists, even if we are dealing with a zombie thread.
3061
45b75230
AC
30622004-06-07 Andrew Cagney <cagney@gnu.org>
3063
3064 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3065 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3066 Rename PC_REQUIRES_RUN_BEFORE_USE.
3067 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3068 #ifdef.
3069
1658da49
RC
30702004-06-07 Randolph Chung <tausq@debian.org>
3071
3072 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3073 unwinding after sp has been saved to the stack but before the end
3074 of the prologue, and after the fp has been modified but before it has
3075 been saved to the stack.
3076 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3077 Remove superfluous definitions.
3078 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3079
9a727a3c
RC
30802004-06-07 Guy Martin <gmsoft@gentoo.org>
3081
3082 Committed by Randolph Chung.
3083 * hppa-linux-nat.c: Include the correct version of the header file
3084 depending on the kernel version.
3085
9e500012
RC
30862004-06-06 Randolph Chung <tausq@debian.org>
3087
3088 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3089 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3090
3388d7ff
RC
30912004-06-06 Randolph Chung <tausq@debian.org>
3092
3093 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3094 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3095 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3096 * hppa-tdep.c (hppa_symbol_address): New function definition.
3097 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3098
d49771ef
RC
30992004-06-06 Randolph Chung <tausq@debian.org>
3100
3101 * hppa-tdep.h (struct value): Forward declaration.
3102 (gdbarch_tdep): Define tdep find_global_pointer method.
3103 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3104 associated with the function we are trying to call, and write it
3105 to the gp register.
3106 (hppa32_convert_from_funct_ptr_addr): New function.
3107 (hppa_find_global_pointer): New function.
3108 (hppa_gdbarch_init): Set default find_global_pointer method; set
3109 convert_from_func_ptr_addr method.
3110 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3111 (hppa_linux_init_abi): Set find_global_pointer method.
3112 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3113
7d9b040b
RC
31142004-06-06 Randolph Chung <tausq@debian.org>
3115
3116 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3117 to struct value *function.
3118 * gdbarch.c: Regenerate.
3119 * gdbarch.h: Likewise.
3120 * infcall.c (call_function_by_hand): Pass entire function value
3121 to push_dummy_call.
3122
3123 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3124 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3125 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3126 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3127 * arm-tdep.c (arm_push_dummy_call): Likewise.
3128 * avr-tdep.c (avr_push_dummy_call): Likewise.
3129 * cris-tdep.c (cris_push_dummy_call): Likewise.
3130 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3131 * frv-tdep.c (frv_push_dummy_call): Likewise.
3132 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3133 * hppa-tdep.c (hppa32_push_dummy_call)
3134 (hppa64_push_dummy_call): Likewise.
3135 * i386-tdep.c (i386_push_dummy_call): Likewise.
3136 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3137 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3138 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3139 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3140 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3141 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3142 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3143 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3144 (ppc64_sysv_abi_push_dummy_call): Likewise.
3145 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3146 (ppc64_sysv_abi_push_dummy_call): Likewise.
3147 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3148 * s390-tdep.c (s390_push_dummy_call): Likewise.
3149 * sh-tdep.c (sh_push_dummy_call_fpu)
3150 (sh_push_dummy_call_nofpu): Likewise.
3151 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3152 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3153 * vax-tdep.c (vax_push_dummy_call): Likewise.
3154
4a19ea35
JB
31552004-06-04 Jim Blandy <jimb@redhat.com>
3156
8327ccee
JB
3157 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3158 gdbarch argument to register_size.
3159
a3c001ce
JB
3160 * rs6000-tdep.c (rs6000_store_return_value): Use
3161 regcache_cooked_write_part instead of
3162 deprecated_write_register_bytes.
3163 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3164 not gdbarch_deprecated_store_return_value.
3165
4a19ea35
JB
3166 * ppc-linux-nat.c (store_register, fetch_register): Remove
3167 incorrect assertions. Simplify and generalize handling of
3168 transfers whose sizes are not multiples of, or less than, sizeof
3169 (PTRACE_XFER_TYPE).
3170
b9b5d7ea
JJ
31712004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3172
3173 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3174 as a new thread event.
720c7d64 3175 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 3176 zombie, return TD_THR_ZOMBIE.
720c7d64 3177 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
3178 TD_THR_ZOMBIE, check if the thread is still on the thread list
3179 and return a -1 ptid if not found.
3180 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3181 change the status to TARGET_WAITKIND_SPURIOUS.
3182
c8a3b559
CV
31832004-06-03 Corinna Vinschen <vinschen@redhat.com>
3184
3185 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3186 double values in little endian mode.
3187
20605361
AC
31882004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3189
3190 Committed by Andrew Cagney.
3191 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3192 after last enum constant to avoid error from IBM C
3193 compiler.
3194
bc97b3ba
JB
31952004-06-02 Jim Blandy <jimb@redhat.com>
3196
3197 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3198 to 'message', and make it local to the lone block that uses it.
3199
1da28ab0
JB
3200 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3201
4c4b4cd2
PH
32022004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3203
8a2225b2
PH
3204 * ada-exp.y: Update copyright notice.
3205 Include block.h.
3206
3207 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3208 SPECIAL_VARIABLE and unify the treatment of these cases.
3209
3210 (write_attribute_call0): Remove.
3211 (write_attribute_call1): Remove.
3212 (write_attribute_calln): Remove.
3213 (save_qualifier): Add missing semicolon.
3214
3215 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3216 temporarily disabled to allow compilation with FSF head version.
3217
3218 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3219 use individual operators (OP_*) for all attributes.
3220 (exp syntax): Use write_int.
3221 Handle STRING literals with OP_STRING.
3222 (variable syntax): Add limit parameter to calls to
3223 write_object_renaming.
3224
3225 (temp_parse_space): New definition to hold entities that need
3226 only live until the next call to ada_parse.
3227 (string_to_operator): Rename fields of ada_opname_table entries.
3228
3229 (write_var_from_sym): Record block.
3230 (write_var_from_name): Minor reformatting.
3231 Make sure saved name is properly encoded in the case of multiple
3232 matches, and set its language to Ada.
3233 Update comment.
3234 Modify to indicate unresolved name as symbol in the UNRESOLVED
3235 namespace, allocated in temp_parse_space.
3236 (write_int): New function.
3237
3238 (write_object_renaming): Add max_depth parameter to limit
3239 chains of object renamings.
3240 Handle case where root of renaming expression is itself a renaming.
3241 Use temp_parse_space for temporary name buffer.
3242 Handle renamings to dereferenced pointers (___XEXA suffices).
3243
3244 (ada_parse, yyerror, string_to_operator,
3245 write_var_from_sym, write_var_from_name, write_attribute_call0,
3246 write_attribute_call1, write_attribute_calln,
3247 write_object_renaming): Protoize.
3248
3249 (_initialize_ada_exp): New function.
3250
3251 * ada-lang.c: Update copyright notice.
3252 General terminology change to conform to GNAT compiler usage:
3253 mangle => encode, demangle => decode
3254 Include gdb_obstack.h.
3255 Include gdb_regex.h
3256 Include frame.h
3257 Include hashtab.h
3258 Include completer.h
3259 Include gdb_stat.h
3260 Include block.h
3261 Include infcall.h
3262
3263 (ADA_RETAIN_DOTS): Make sure this is defined.
3264 (TRUNCATION_TOWARDS_ZERO): Define.
3265 (struct string_vector): Define.
3266 (unresolved_names): Remove definition.
3267 (xnew_string_vector): New function.
3268 (string_vector_append): New function.
3269 (extract_string): Make static.
3270 (ada_unqualified_name): New function.
3271 (add_angle_brackets): New function.
3272 (function_name_from_pc): New function.
3273 (place_on_stack): Rename to ensure_lval.
3274
3275 (ensure_lval): Renamed from place_on_stack.
3276 Make identity on lvals.
3277 Update comment.
3278 (is_nonfunction): New interface.
3279 Only symbols in LOC_CONST class can be enumerals.
3280 (fill_in_ada_prototype): Remove; now independent of language.
3281 (add_defn_to_vec): Add obstack and symtab arguments.
3282 Use obstack to hold collected definitions.
3283 (num_defns_collected): New function.
3284 (defns_collected): New function.
3285 (ada_resolve_subexp): Rename to resolve_subexp.
3286 (resolve_subexp): Renamed from ada_resolve_subexp.
3287 (ada_op_name): Return non-const result.
3288 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3289 other purposes.
3290
3291 (to_fixed_array_type): Add declaration.
3292 (coerce_unspec_val_to_type): Remove offset parameter.
3293 (find_sal_from_funcs_and_line): New interface.
3294 (find_line_in_linetable): Ditto.
3295
3296 (all_sals_for_line): Rename to ada_sals_for_line and make
3297 global.
3298 Add new parameter. When set, do not ask the user to choose the
3299 instance, but use the first one found instead.
3300 Use given line number in returned sals.
3301 Fix comment.
3302 Skip the prologue if funfirstline is set.
3303 Correct for memory leak when 0 lines found.
3304
3305 (value_pos_atr): Use pos_atr.
3306 (pos_atr): New function.
3307 (standard_lookup): Add block parameter.
3308
3309 (makeTimeStart): Remove declaration and uses.
3310 (makeTimeStop): Remove declaration and uses.
3311
3312 (ada_completer_word_break_characters): Allow for VMS.
3313 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3314 (raise_sym_name): New constant.
3315 (raise_unhandled_sym_name): New constant.
3316 (raise_assert_sym_name): New constant.
3317 (process_raise_exception_name): New constant.
3318 (longest_exception_template): New constant.
3319 (warning_limit): New variable to limit warnings during expression
3320 evaluation.
3321 (warnings_issued): New variable to keep track of warnings issued.
3322 (known_runtime_file_name_patterns): New constant.
3323 (known_auxiliary_function_name_patterns): New constant.
3324 (symbol_list_obstack): New variable.
3325
3326 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3327 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3328 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3329 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3330 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3331 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3332 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3333 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3334 and strcmp.
3335
3336 (ada_get_field_index): New function.
3337 (lim_warning): New function.
3338 (ada_translate_error_message): New function.
3339 (MAX_OF_SIZE): New function.
3340 (MIN_OF_SIZE): New function.
3341 (UMAX_OF_SIZE): New function.
3342 (UMIN_OF_SIZE): New function.
3343 (discrete_type_high_bound): New function.
3344 (discrete_type_low_bound): New function.
3345 (base_type): New function.
3346 (do_command): Remove.
3347
3348 (ada_update_initial_language): Use language_ada, not language_unknown.
3349 (ada_encode): Renamed from ada_mangle.
3350 Obey ADA_RETAIN_DOTS.
3351 (ada_decode): Renamed from ada_demangle.
3352 Update coding conventions.
3353 (decoded_names_store): New hash table.
3354 (ada_decode_symbol): New function.
3355 (ada_la_decode): New function.
3356
3357 (modify_general_field): Correct computations of offset and bit
3358 position.
3359 (desc_base_type): Handle ref types, too.
3360 (ada_is_direct_array_type): New function.
3361
3362 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3363 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3364 (ada_is_bogus_array_descriptor,ada_type_of_array,
3365 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3366 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3367 ada_is_array_descriptor_type.
3368
3369 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3370 (ada_is_packed_array_type): Handle pointers or
3371 references to packed arrays as well.
3372 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3373 (decode_packed_array_type): Search for the packed array type
3374 symbol in the currently selected block and associated
3375 superblocks too.
3376 Use lookup_symbol again.
3377
3378 (decode_packed_array): Handle pointers and references.
3379 Update call to coerce_unspec_val_to_type.
3380 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3381 (ada_value_primitive_packed_val): Improve comment.
3382
3383 (ada_index_type): Substitute int type for "undefined".
3384 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3385 ada_array_langth, ada_is_string_type): Use renamed
3386 ada_is_simple_array_type.
3387 (empty_array): New function.
3388
3389 (ada_resolve): Rename to resolve.
3390 (resolve): Make static.
3391 Call renamed resolve_subexp.
3392 Update comment.
3393 (ada_resolve_subexp): Rename to resolve_subexp.
3394 (resolve_subexp): Update comment.
3395 Decomment disabled code.
3396 Add LOC_COMPUTED* cases.
3397 Modify to use temporary struct symbols (marked as being in
3398 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3399 OP_UNRESOLVED_VALUE.
3400 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3401 Add OP_STRING case.
3402 Remove OP_ARRAY.
3403 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3404 Use new ada_lookup_symbol_list interface.
3405 Use new ada_resolve_function interface.
3406 Remove OP_TYPE case.
3407
3408 (ada_args_match): Idiot proof against null actuals.
3409 Use intermediate variables to clarify.
3410 (ada_resolve_function): Update comment and interface.
3411 (mangled_ordered_before): Rename to encoded_ordered_before and
3412 update comment.
3413 (sort_choices): Update comment and interface.
3414 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3415 (user_select_syms): New interface.
3416 Use new sort_choices interface.
3417 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3418 (possible_user_operator_p): Idiot-proof against null values.
3419 (ada_simple_renamed_entity): Don't make cleanup; rely on
3420 caller to free result string.
3421 Remove const from return type.
3422 (make_array_descriptor): Rename uses of place_on_stack to
3423 ensure_lval.
3424 Make sure that arrays are on stack.
3425
3426 (HASH_SIZE): Define.
3427 (struct cache_entry): Define.
3428 (cache_space): Define.
3429 (cache): Define.
3430 (clear_ada_sym_cache): New function.
3431 (find_entry): New function.
3432 (lookup_cached_symbol): New function.
3433 (defn_vector_size): Define.
3434 (cache_symbol): New function.
3435 (defn_symbols): Remove.
3436
3437 (standard_lookup): Use lookup_symbol_in_language to get effect of
3438 C lookup.
3439 Cache results.
3440
3441 (symbol_completion_match): New function.
3442 (symbol_completion_add): New function.
3443 (ada_make_symbol_completion_list): New function.
3444
3445 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3446 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3447 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3448 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3449
3450 (ada_lookup_simple_minsym): New function.
3451 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3452
3453 (add_symbols_from_enclosing_procs): New interface.
3454 Conditionalize more helpfully.
3455 Don't bother if program isn't running.
3456 Use new interface to get_frame_block.
3457 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3458
3459 (remove_extra_symbols): New interface.
3460 (xget_renaming_scope): New function.
3461 (is_package_name): New function.
3462 (renaming_is_visible): New function.
3463 (remove_out_of_scope_renamings): New function.
3464
3465 (ada_lookup_symbol_list): New interface.
3466 Properly reinitialize the symbol list obstack.
3467 Don't call add_symbols_from_enclosing_procs if we start from a
3468 static or global block.
3469 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3470 add_symbols_from_enclosing_procs.
3471 Add symtab data to cached entries.
3472 Handle symbols prefixed with
3473 "standard__" specially; strip prefix and don't look in local symbols.
3474 Do not include out of scope renaming symbols in list of
3475 symbols returned.
3476 Add const to block parameter.
3477 Move check for non-local, non-global symbols earlier.
3478 Remove timing stuff.
3479 (ada_lookup_symbol): New interface.
3480 Find symtab as well.
3481 (ada_lookup_symbol_nonlocal): New function.
3482
3483 (is_name_suffix): Enhance suffix detection to recognize
3484 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3485 (is_dot_digits_suffix): New function.
3486 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3487
3488 (ada_add_block_symbols): New interface. Use obstack to return results
3489 in a vector of struct ada_symbol_infos. Add symtab argument.
3490 Use new interface to add_defn_to_vec.
3491 Remove calls to fill_in_ada_prototype.
3492 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3493
3494 (ada_finish_decode_line_1): Add const qualification to local to fix
3495 warning.
3496 Start looking in static block for functions to avoid attempts
3497 to search frame chain for up-level variables.
3498 Adapt to new ada_sals_for_line interface.
3499 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3500 Handle quoting of the function name inside the spec string.
3501 Skip prologue when funfirstline is set and update the
3502 function documentation to that effect.
3503
3504 (debug_print_lines, debug_print_block, debug_print_blocks,
3505 debug_print_symtab): Remove.
3506
3507 (ada_main_name): New function.
3508 (ada_exception_breakpoint_type): New function.
3509 (is_known_support_routine): New function.
3510 (ada_find_printable_frame): Renamed from find_printable_frame and made
3511 global.
3512 Remove level parameter.
3513 Use new interface to select_frame.
3514
3515 (begin_command): Remove.
3516 (ada_adjust_exception_stop): New function.
3517 (ada_print_exception_stop): New function.
3518 (exception_name_from_cond): New function.
3519 (ada_report_exception_break): Replace disabled code with
3520 conditionalization on GNAT_GDB.
3521 Get the exception name from the condition string.
3522 Remove and move functionality into new functions
3523 ada_print_exception_breakpoint_task and
3524 ada_print_exception_breakpoint_nontask.
3525 (error_breakpoint_runtime_sym_not_found): New function.
3526 (is_runtime_sym_defined): New function.
3527 (ada_breakpoint_rewrite): Uncomment suppressed code.
3528 Use symbolic error-message and runtime-symbol names.
3529 Surround runtime symbol names in quotes.
3530 Allow non-specific breakpoints on exceptions and assertions before
3531 program starts.
3532
3533 (ada_is_tagged_type): Add parameter.
3534 (ada_is_tag_type): New function.
3535 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3536 (ada_variant_discrim_type): Ditto.
3537 (value_tag_from_contents_and_address): New function.
3538 (type_from_tag): New function.
3539 (struct tag_args): New structure used to communicate with
3540 ada_tag_name_1.
3541 (ada_tag_name_1): New function.
3542 (ada_tag_name): New function.
3543
3544 (ada_scan_number): Update comment.
3545 (find_struct_field): New function.
3546 (ada_search_struct_field): Make static.
3547 (ada_value_struct_elt): New version that returns references when
3548 given pointers or references to structs.
3549 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3550 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3551 interface.
3552 (ada_value_ind): Use new ada_to_fixed_value interface.
3553 (ada_coerce_ref): Ditto.
3554 (field_offset): Remove.
3555
3556 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3557 (ada_find_renaming_symbol): New function.
3558 (ada_prefer_type): Prefer named types over unnamed ones.
3559 (variant_field_index): New function.
3560 (contains_variant_part): Removed: subsumed by variant_field_index.
3561 (ada_template_to_fixed_record_type): New function, mostly from
3562 template_to_fixed_record_type.
3563 (template_to_fixed_record_type):
3564 Do not scan the type fields beyond the last one; prevents a
3565 potential SEGV.
3566 Handle case where variant field is listed BEFORE discriminant it
3567 depends on.
3568 Fix calculation of record length when bit length is
3569 not evenly divisible by char length.
3570 Move code to ada_template_to_fixed_record_type and call it.
3571
3572 (template_to_static_fixed_type): Revise comment.
3573 Modify to work on ordinary record types as well as templates,
3574 so as to handle fields that use ___XVE or ___XVU encodings.
3575 (to_record_with_fixed_variant_part): Fill out comment.
3576 Initialize C++ stuff in right type.
3577 Allow case where DVAL is null.
3578 Handle case where variant field is not last.
3579 Fix typo concerning record length.
3580 (to_fixed_record_type): Decomment disabled code.
3581 (to_fixed_record_type): Use variant_field_index instead of
3582 contains_variant_part.
3583 (to_fixed_variant_branch_type): Ditto.
3584 (to_fixed_array_type): Decomment disabled code.
3585 (ada_to_fixed_type): Convert tagged types to the specific type.
3586 Deactivate the size-check for array types in order to avoid
3587 some false size alarms.
3588 (to_static_fixed_type): Decomment disabled code.
3589 Modify to call template_to_static_fixed_type
3590 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3591 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3592 Remove valaddr argument, as it is never really used.
3593 (ada_to_fixed_value): Change interface to act on single struct value*
3594 operand.
3595 (adjust_pc_past_prologue): New function.
3596 (ada_attribute_name): Modify to take enum exp_opcode argument.
3597
3598 (ada_enum_name): Recognize new homonym-distinguishing convention.
3599 Adjust local variable's type to remove compiler warning.
3600 Fix a small problem in the part that unqualifies the enumeration name.
3601 (ada_value_binop): New function.
3602 (ada_value_equal): New function.
3603
3604 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3605 Don't give error message when not doing normal evaluation
3606 and a tagged type doesn't seem to contain a structure member.
3607 Give error message for packed arrays.
3608 For indexing arrays, handle pointers to packed arrays correctly.
3609 Handle case of 'first and 'last attributes of bare integral type
3610 without encoded subtype info.
3611 Remove some unnecessary casts.
3612 Fix uninitialized value of type in computing 'first, 'last, or 'length
3613 of array object.
3614 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3615 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3616 calls.
3617 Attributes are now exp_opcode values.
3618 Correct treatment of 'modulus.
3619 Better error message for taking 'length of wrong kind of type;
3620 improve comment.
3621 Change EVAL_NORMAL to noside for consistency.
3622 Use ada_value_binop for DIV, MOD, REM.
3623 Make special case out of array of length 0, since an argument
3624 of 0 upsets some platforms' malloc.
3625 Use OP_STRING instead of OP_ARRAY.
3626 For slice, add check that we have an array type before extracting
3627 a slice out of it. Avoids a SEGV.
3628 When evaluating an array slice, if the array type is a reference to
3629 an aligner type, then replace the aligner type by the actual type.
3630 Decomment disabled code.
3631 Remove some dead code.
3632 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3633 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3634 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3635 and UNOP_MBR to UNOP_IN_RANGE.
3636 If an array type has a parallel ___XVE type, then use it.
3637 Turn arrays into pointers for lvalue arrays.
3638 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3639 bounds error and handle 0-length slices.
3640 Use lim_warning.
3641 When selecting fields, apply ada_to_fixed_value (because the fields
3642 might have ___XVU or ___XVE encodings even if not dynamic.)
3643 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3644 (ada_is_system_address_type): New function.
3645
3646 (get_var_value): Use new interface to ada_lookup_symbol_list.
3647 (get_int_var_value): New interface.
3648 (to_fixed_range_type): Allow unknown bound, with warning.
3649 (ada_is_modular_type): Decomment disabled code.
3650 (ADA_OPERATORS): New definition.
3651 (ada_operator_length): New function.
3652 (ada_expr_op_name): New function.
3653 (ada_forward_operator_length): New function.
3654 (ada_dump_subexp_body): New function.
3655 (ada_print_subexp): New function.
3656 (ada_exp_descriptor): New constant.
3657 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3658 (ada_language_defn): Add ada_exp_descriptor entry.
3659 Change ada_parse => parse.
3660 Add post-parser entry.
3661 Use ada-specific non-local symbol lookup.
3662 Don't use C-style arrays.
3663 String lower-bound is 1.
3664 Decomment disabled code.
3665 (parse): New function.
3666 New fields ada_translate_error_message, ada_lookup_symbol,
3667 ada_lookup_minimal_symbol.
3668
3669 * ada-lang.h: Update copyright dates.
3670 Replace the mangle/demangle terminology throughout by the
3671 more appropriate encode/decode one.
3672 Include breakpoint.h.
3673 Forward declare struct partial_symbol, struct block.
3674 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3675 (EXTRACT_ADDRESS): Remove.
3676 (EXTRACT_INT): Remove.
3677 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3678 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3679 (MAX_RENAMING_CHAIN_LENGTH): Define.
3680 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3681
3682 (enum task_states): Remove.
3683 ada_task_states: Remove.
3684 (fat_string): Remove.
3685 (struct entry_call): Remove.
3686 (struct task_fields): Remove.
3687 (struct task_entry): Remove.
3688
3689 (struct ada_symbol_info): Define.
3690 (enum ada_attribute): Remove.
3691 (enum ada_operator): Define.
3692
3693 (ada_get_field_index): Declare.
3694 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3695 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3696 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3697 (ada_lookup_symbol_list): New interface.
3698 (ada_decode_symbol): Declare.
3699 (ada_decode): Declare.
3700 (ada_lookup_symbol): New interface.
3701 (ada_update_initial_language): Declare.
3702 (ada_lookup_simple_minsym): Declare.
3703 (user_select_syms): New interface.
3704 (ada_sals_for_line): Declare.
3705 (ada_is_tagged_type): New interface.
3706 (ada_tag_name): Declare.
3707 (ada_lookup_struct_elt_type): Remove declaration.
3708 (ada_search_struct_field): Remove declaration.
3709 (ada_attribute_name): New interface.
3710 (ada_is_system_address_type): Declare.
3711 (ada_to_fixed_value): Remove declaration.
3712 (ada_template_to_fixed_record_type_1): Declare.
3713 (get_int_var_value): New interface.
3714 (ada_find_any_symbol): Declare.
3715 (ada_find_renaming_symbol): Declare.
3716 (ada_mangle): Rename to ada_encode.
3717 (ada_simple_renamed_entity): Remove const.
3718 (ada_main_name): Declare.
3719 (get_current_task): Rename to ada_get_current_task.
3720 (get_entry_number): Remove declaration.
3721 (ada_report_exception_break): Remove declaration.
3722 (ada_print_exception_breakpoint_nontask): Declare.
3723 (ada_print_exception_breakpoint_task): Declare.
3724 (ada_find_printable_frame): Declare.
3725
3726 * ada-lex.l: Update copyright notices.
3727 Use xmalloc and xfree instead of malloc and free.
3728 Use new interface to name_lookup.
3729 Use new interface to
3730 ada_mangle=>ada_encode.
3731 Redo handling of '$...' variable to parallel current treatment
3732 in c-exp.y.
3733 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3734 digit_to_int, strtoulst, processInt, processReal, processId,
3735 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3736 yywrap): Protoize.
3737
3738 (processInt): Use cast to remove harmless warning.
3739 (processReal): Modify to get rid of compiler warning on scan formats.
3740
3741 (processId): Replace xmalloc with obstack_alloc for name and remove
3742 call to ada_name_string_cleanup.
3743 Remove obsolete disabled code.
3744 (name_lookup): Ditto.
3745 New interface.
3746 Use obsavestring on temp_parse_space instead of savestring
3747 on name, and remove call to ada_name_string_cleanup.
3748 Free string returned from ada_simple_renamed_entity.
3749 Use new interface to ada_lookup_symbol_list.
3750 Decomment disabled code.
3751 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3752 not types.
3753 When a type name lookup succeeds as a result of
3754 lookup_primitive_typename, check for regular type entry that has not
3755 yet been read in.
3756 Limit length of chain of renamed symbols we are willing to follow.
3757 Do not break names beginning with "standard__" into segments.
3758 (block_lookup): Use new interface to ada_lookup_symbol_list.
3759
3760 * ada-typeprint.c: Update copyright notice.
3761 (demangled_type_name): Rename to decoded_type_name.
3762 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3763 (print_range_bound): Correct handling of negative
3764 bounds that make the index type looked unsigned under STABS.
3765 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3766 (print_range_type_named): Use the builtin int type if no type
3767 corresponding to the given type name could be found.
3768 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3769 Add some bullet-proofing.
3770 (print_variant_clauses): Allow for variant branches with ___XVU
3771 encodings that are not dynamic fields.
3772 Use new interface to ada_is_tagged_type.
3773 (print_record_type): Allow for fields with ___XVE encodings that
3774 are not dynamic fields.
3775 Use new interface to ada_is_tagged_type.
3776 (ada_print_type): ada_is_array_descriptor =>
3777 ada_is_array_descriptor_type.
3778
3779 * ada-valprint.c: Update copyright notice.
3780 Include gdb_string.h
3781 Include infcall.h
3782 (ui_memcpy): New function.
3783 (ada_print_floating): New function.
3784 (ada_print_str): Order arguments correctly.
3785 Correct handling of empty arrays and arrays of 0-length items.
3786 ada_is_array_descriptor => ada_is_array_descriptor_type
3787 Print values of type System.Address in hexadecimal format.
3788 Use ada_print_floating to print floating-point numbers in Ada format.
3789 Print class tag values with type names.
3790 No longer print the address of reference values. Avoids
3791 a potential confusion.
3792 (ada_value_print): Stop printing the object type for reference
3793 values, but preserve that behavior for access types. Avoids
3794 a potential confusion.
3795 Simplify one conditional expression, as the first part is now
3796 necessarily true.
3797 ada_is_array_descriptor => ada_is_array_descriptor_type
3798 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3799
f65f91b5
JB
38002004-06-01 Jim Blandy <jimb@redhat.com>
3801
3802 * ppc-tdep.h: Delete unused 'regoff' member.
3803 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3804
d4687fa0
MC
38052004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3806
3807 Fix PR symtab/1661.
3808 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3809 (hpread_read_struct_type): Likewise.
3810
de169ec9
AC
38112004-06-01 Andrew Cagney <cagney@gnu.org>
3812
c6902d46
AC
3813 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3814 instead of xasprintf.
3815 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3816 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3817 (mi_cmd_data_list_register_names)
3818 (mi_cmd_data_list_changed_registers)
3819 (mi_cmd_data_list_register_values)
3820 (get_register, mi_cmd_data_write_register_values)
3821 (mi_cmd_data_write_register_values)
3822 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3823 (mi_cmd_target_download, mi_cmd_target_select)
3824 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3825 (mi_execute_cli_command, mi_execute_async_cli_command)
3826 (mi_execute_async_cli_command): Ditto.
3827 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3828 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3829
6085fc2d
AC
3830 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3831 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3832 error_last_message instead of mi_error_last_message.
3833 * mi/mi-main.c (mi_error_last_message): Delete function.
3834
de169ec9
AC
3835 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3836 "invalid number of columns" error. Delete redundant "out of
3837 memory" check.
3838
1fc7d519
MK
38392004-05-31 Mark Kettenis <kettenis@gnu.org>
3840
6cfb2041
MK
3841 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3842 (gregset_t, fpregset_t): Remove typedefs.
3843 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3844 (REG_OFFSET): Rename argument.
3845 (i386bsd_r_reg_offset): Rename from reg_offset.
3846 (REG_ADDR): Remove macro.
3847 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3848 functions.
3849 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3850 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3851 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3852 instead of supply_gregset.
3853 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3854 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3855 instead of fill_gregset.
3856 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3857
1fc7d519
MK
3858 * i386bsd-nat.c: Don't include "gregset.h".
3859 (supply_gregset, fill_gregset): Make static.
3860 (supply_fpregset, fill_fpregset): Remove.
3861 * Makefile.in (i386bsd-nat.o): Update dependencies.
3862
2c34abbe
MK
38632004-05-30 Mark Kettenis <kettenis@gnu.org>
3864
448724fb
MK
3865 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3866 "gdb_assert.h". Con't include "gregset.h".
3867 (fbsd_make_corefile_notes): Use regset-based core file support
3868 instead off fill_gregset and fill_fpregset.
3869 * Makefile.in (fbsd-proc.o): Update dependencies.
3870
5ca8ca7c
MK
3871 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3872 instructions.
3873 (m88k_frame_prev_register): Simplify code a bit.
3874
593adc23
MK
3875 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3876 (amd64_collect_fpregset): New function.
3877 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3878
8d1b517b
MK
3879 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3880
7fdafb5a
MK
3881 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3882 (i386_collect_gregset): New function.
3883 (i386_supply_fpregset): Adjust comment.
3884 (i386_collect_fpregset): New function.
3885 (i386_regset_from_core_section): Use i386_collect_gregset and
3886 i386_collect_fpregset.
3887
8693c419
MK
3888 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3889 handle VALUEP being null.
3890
2c34abbe
MK
3891 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3892
45d134d8
MK
38932004-05-29 Mark Kettenis <kettenis@gnu.org>
3894
1698f4e7
MK
3895 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3896
45d134d8
MK
3897 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3898 assembler in OpenBSD 3.5-current.
3899 (amd64obsd_sigcontext_addr): Likewise.
3900
691d145a
JB
39012004-05-28 Jim Blandy <jimb@redhat.com>
3902
3903 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3904 register set, so our regcache isn't declared "legacy" and our E500
3905 pseudoregister read and write functions aren't ignored.
3906 (rs6000_register_byte, rs6000_register_raw_size,
3907 rs6000_register_virtual_type, rs6000_register_convertible,
3908 rs6000_register_convert_to_virtual,
3909 rs6000_register_convert_to_raw): Deleted.
3910 (rs6000_register_type, rs6000_convert_register_p,
3911 rs6000_register_to_value, rs6000_value_to_register): New
3912 functions.
3913 (rs6000_gdbarch_init): Don't register
3914 gdbarch_deprecated_register_size,
3915 gdbarch_deprecated_register_bytes,
3916 gdbarch_deprecated_register_byte,
3917 gdbarch_deprecated_register_raw_size,
3918 gdbarch_deprecated_register_virtual_type,
3919 gdbarch_deprecated_register_convertible,
3920 gdbarch_deprecated_register_convert_to_virtual, or
3921 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3922 register gdbarch_register_type, gdbarch_convert_register_p,
3923 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3924
18ed0c4e
JB
39252004-05-26 Jim Blandy <jimb@redhat.com>
3926
3927 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3928 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3929 functions, updated to match the register numberings used in GCC.
3930 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3931 rs6000_dwarf2_reg_to_regnum as register number conversions
3932 functions for STABS and Dwarf2.
3933
779af9e3
RC
39342004-05-26 Randolph Chung <tausq@debian.org>
3935
3936 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3937 in header file.
3938
c23968a2
JB
39392004-05-25 Joel Brobecker <brobecker@gnat.com>
3940
3941 * NEWS: Document new "start" command.
3942
3a7d1c27
RC
39432004-05-25 Randolph Chung <tausq@debian.org>
3944
3945 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3946 hppa-linux.
3947
43613416
RC
39482004-05-25 Randolph Chung <tausq@debian.org>
3949
3950 * hppa-hpux-tdep.c (offsetof): Define.
3951 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3952 (hppa32_hpux_frame_base_before_sigtramp)
3953 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3954 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3955 (hppa64_hpux_frame_base_before_sigtramp)
3956 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3957 functions.
3958 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3959 (hppa_hpux_sigtramp_frame_unwind_cache)
3960 (hppa_hpux_sigtramp_frame_this_id)
3961 (hppa_hpux_sigtramp_frame_prev_register)
3962 (hppa_hpux_sigtramp_frame_unwind)
3963 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3964 (hppa_hpux_init_abi): Register sigtramp unwinder.
3965 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3966
6d1be3f1
RC
39672004-05-25 Randolph Chung <tausq@debian.org>
3968
3969 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3970 and multiple stack unwinds.
3971 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3972
97c34f65
AC
39732004-05-25 Andrew Cagney <cagney@gnu.org>
3974
3975 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3976 * symfile-mem.h: Delete file.
3977 * symfile-mem.c: Do not include "symfile-mem.h".
3978 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3979 "struct bfd_section". When an error do not bother returning NULL.
3980 (add_symbol_file_from_memory_command): Use "struct bfd" and
3981 "struct bfd_section".
3982 * Makefile.in (symfile_mem_h): Delete.
3983 (symfile-mem.o): Update dependencies.
3984
e23cbd82
NR
39852004-05-25 Nick Roberts <nickrob@gnu.org>
3986
3987 * gdb-mi.el: New file.
3988
20d2ca3e
AC
39892004-05-25 Andrew Cagney <cagney@gnu.org>
3990
3991 * inftarg.c: Include "observer.h".
3992 (child_attach, child_create_inferior): Notify inferior_created.
3993 * corelow.c: Include "observer.h".
3994 (core_open): Notify inferior_created.
3995 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3996
c27cda74
AC
39972004-05-25 Andrew Cagney <cagney@gnu.org>
3998
3999 * target.h (struct target_ops): Add from_tty to
4000 to_create_inferior.
4001 (target_create_inferior, find_default_create_inferior): Update.
4002 * infcmd.c (run_command): Update.
4003 * wince.c (child_create_inferior): Update.
4004 * win32-nat.c (child_create_inferior): Update.
4005 * uw-thread.c (uw_thread_create_inferior): Update.
4006 * thread-db.c (thread_db_create_inferior): Update.
4007 * target.c (debug_to_create_inferior)
4008 (find_default_create_inferior): Update.
4009 (maybe_kill_then_create_inferior): Update.
4010 * sol-thread.c (sol_thread_create_inferior): Update.
4011 * remote.c (extended_remote_async_create_inferior)
4012 (extended_remote_create_inferior): Update.
4013 * remote-vx.c (vx_create_inferior): Update.
4014 * remote-st.c (st2000_create_inferior): Update.
4015 * remote-sim.c (gdbsim_create_inferior): Update.
4016 * remote-sds.c (sds_create_inferior): Update.
4017 * remote-rdp.c (remote_rdp_create_inferior): Update.
4018 * remote-rdi.c (arm_rdi_create_inferior): Update.
4019 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4020 * remote-e7000.c (e7000_create_inferior): Update.
4021 * procfs.c (procfs_create_inferior): Update.
4022 * ocd.c (ocd_create_inferior): Update.
4023 * ocd.h (ocd_create_inferior): Update.
4024 * nto-procfs.c (procfs_create_inferior): Update.
4025 * monitor.c (monitor_create_inferior): Update.
4026 * lin-lwp.c (lin_lwp_create_inferior): Update.
4027 * inftarg.c (child_create_inferior): Update.
4028 * hpux-thread.c (hpux_thread_create_inferior): Update.
4029 * gnu-nat.c (gnu_create_inferior): Update.
4030
1db2a798
AC
40312004-05-25 Andrew Cagney <cagney@gnu.com>
4032
4033 * MAINTAINERS: Update e-mail address.
4034
007d08bb
RC
40352004-05-24 Randolph Chung <tausq@debian.org>
4036
4037 * thread.c (info_threads_command, thread_apply_all_command)
4038 (thread_apply_command, thread_command, do_captured_thread_select):
4039 Remove HPUXHPPA-specific code.
4040
69e7b95e
RC
40412004-05-24 Randolph Chung <tausq@debian.org>
4042
4043 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4044 unused symbols.
4045 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4046 references.
4047
a4d5f2e0
JB
40482004-05-24 Joel Brobecker <brobecker@gnat.com>
4049
4050 * infcmd.c (kill_if_already_running): New function, extracted
4051 from run_command().
4052 (run_command): Replace extracted code by call to
4053 kill_if_already_running().
4054 (start_command): New function.
4055 (_initialize_infcmd): Add "start" command.
4056
bf2ca189
MK
40572004-05-24 Mark Kettenis <kettenis@gnu.org>
4058
4059 Add OpenBSD/m88k support.
4060 * NEWS (New native configurations): Mention OpenBSD/m88k.
4061 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4062 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4063 * Makefile.in (m88k_tdep_h): New variable.
4064 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4065 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4066 * configure.host: Add m88*-*-openbsd*.
4067 * configure.tgt: Add m88*-*-openbsd*.
4068
80fadb11
JB
40692004-05-24 Jim Blandy <jimb@redhat.com>
4070
4071 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4072 to approve changes.
4073
19e2d14b
KB
40742004-05-24 Kevin Buettner <kevinb@redhat.com>
4075
4076 * symtab.c (fixup_section): Search section table when lookup by
4077 name fails.
4078
1b07b470
RC
40792004-05-24 Randolph Chung <tausq@debian.org>
4080
4081 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4082 be "small_struct".
4083
368702b1
MK
40842004-05-24 Mark Kettenis <kettenis@gnu.org>
4085
5df97fde
MK
4086 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4087 register number in regcache_raw_collect call.
4088 (m68kbsd_collect_fpregset): Likewise.
4089 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4090
368702b1
MK
4091 * regset.h (struct regset): Add back `regset' member.
4092
a770d4ec
MK
40932004-05-23 Mark Kettenis <kettenis@gnu.org>
4094
70f9f479
MK
4095 * configure.in: Check for td_pcb in `struct thread'.
4096 * configure, config.in: Regenerated.
4097
2e16d79e
MK
4098 * dpx2-nat.c: Remove file.
4099 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4100 (dpx2-nat.o): Remove dependencies.
4101
492cf391
MK
4102 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4103 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4104 (amd64obsd_supply_pcb): New function.
4105 (_initialize_amd64obsd_nat): Enable libkvm interface.
4106 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4107 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4108 (LOADLIBES): New variable.
4109
a770d4ec
MK
4110 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4111 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4112 (sparc32nbsd_supply_pcb): New function.
4113 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4114 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4115 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4116 (LOADLIBES): New variable.
4117
9ea75c57
MK
41182004-05-22 Mark Kettenis <kettenis@gnu.org>
4119
2e0c3539
MK
4120 * bsd-kvm.c, bsd-kvm.h: New files.
4121 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4122 "bsd-kvm.h".
4123 (i386fbsd_supply_pcb): New function.
4124 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4125 (i386fbsd-nat.o): Update dependencies.
4126 (bsd_kvm_h): New variable.
4127 (bsd-kvm.o): New dependency.
4128 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4129 (LOADLIBES): New variable.
4130
9ea75c57
MK
4131 * regset.c: Tweak comment.
4132 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4133 macro.
4134 * regset.h: Update copyright year.
4135 (struct regset): Remove `descr' member, add `gdbarch' member.
4136 (regset_alloc): Adjust prototype and comment.
4137 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4138 (i386_supply_fpregset): Likewise.
4139 (i386_regset_from_core_section): Update call to regset_alloc.
4140 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4141 REGSET->arch.
4142 (i386obsd_aout_regset_from_core_section): Update call to
4143 regset_alloc.
4144 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4145 REGSET->arch.
4146 (i386nbsd_aout_regset_from_core_section): Update call to
4147 regset_alloc.
4148 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4149 REGSET->arch.
4150 (amd64_regset_from_core_section): Update call to regset_alloc.
4151 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4152 REGSET->arch.
4153 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4154 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4155 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4156 (sparc32nbsd_init_abi): Update call to regset_alloc.
4157 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4158 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4159 (sparc64obsd_init_abi): Update call to regset_alloc.
4160 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4161 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4162 (sparc64nbsd_init_abi): Update call to regset_alloc.
4163 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4164 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4165 (sparc64fbsd_init_abi): Update call to regset_alloc.
4166
867e2dc5
JB
41672004-05-22 Jim Blandy <jimb@redhat.com>
4168
4169 * ppc-tdep.h (spe_register_p): New declaration.
4170 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4171 ppc_spefscr_regnum.
4172 * rs6000-tdep.c (spe_register_p): New function.
4173 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4174 spefscr.
4175 (rs6000_gdbarch_init): Initialize the new members of the tdep
4176 structure.
4177
617a4cba
JB
41782004-05-21 Jim Blandy <jimb@redhat.com>
4179
0397dee1
JB
4180 * ppc-linux-nat.c (fetch_register): Move code back to be next
4181 to the comment that describes it. (Moved code, instead of
4182 comment, for symmetry with store_register.)
4183
617a4cba
JB
4184 Allocate regset structures in the gdbarch's obstack, not using
4185 xmalloc.
4186 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4187 Add 'arch' argument. Allocate the regset on arch's obstack, not
4188 using xmalloc.
4189 * regset.h (regset_alloc): Update declaration.
4190 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4191 gdbarch argument.
4192 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4193 * i386-tdep.c (i386_regset_from_core_section): Same.
4194 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4195 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4196 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4197 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4198 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4199 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4200
9aa3914d
JB
42012004-05-21 Joel Brobecker <brobecker@gnat.com>
4202
4203 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4204
99c87dab
JB
42052004-05-21 Jim Blandy <jimb@redhat.com>
4206
4207 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4208 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4209
c2b6b4aa
JB
42102004-05-20 Jim Blandy <jimb@redhat.com>
4211
4212 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4213
144529d0
MK
42142004-05-20 Mark Kettenis <kettenis@gnu.org>
4215
4216 * regset.h: Make prototype const-correct.
4217 * regset.c (regset_xmalloc): Make const-correct.
4218
4725b721
PH
42192004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4220
4221 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4222 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4223 (symbol_search_name): Declare.
4224
4225 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4226 (iter_name_next_hashed): Ditto.
4227 (iter_name_next_linear): Ditto.
4228 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4229
4230 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4231 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4232 (symbol_search_name): New function.
4233
4234 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4235
4236 * minsyms.c (build_minimal_symbol_hash_tables): Change
4237 test for adding to demangled hash table to check for difference
4238 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4239
be07a590
JB
42402004-05-19 Jim Blandy <jimb@redhat.com>
4241
4242 Use a constructor function to create regset structures.
4243 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4244 (struct regset): Use supply_regset_ftype. Add new
4245 'collect_regset' member.
4246 (regset_xmalloc): New declaration.
4247 * regset.c: New file.
4248 * am64-tdep.c (amd64_regset_from_core_section): Use
4249 regset_xmalloc to construct regset structures.
4250 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4251 * i386-tdep.c (i386_regset_from_core_section): Same.
4252 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4253 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4254 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4255 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4256 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4257 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4258 * Makefile.in (COMMON_OBS): Add regset.o.
4259 (regset.o): New rule.
4260
604368f5
JB
42612004-05-19 Joel Brobecker <brobecker@gnat.com>
4262
4263 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4264 and pthread_cond_wait.c.
4265
82d69f8b
JB
42662004-05-18 Jim Blandy <jimb@redhat.com>
4267
4268 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4269 before the mach-specific switch, and then let the individual cases
4270 override the defaults, rather than leaving them uninitialized
4271 until the switch and then setting them in each case.
4272
5859efe5
RC
42732004-05-18 Randolph Chung <tausq@debian.org>
4274
4275 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4276 millicode functions.
4277
9ca80cf8
RC
42782004-05-18 Randolph Chung <tausq@debian.org>
4279
4280 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4281 references to dld_flags_buffer consistent.
4282
ed70ba00
RC
42832004-05-18 Randolph Chung <tausq@debian.org>
4284
4285 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4286 it for unwinding the stack.
4287
63100632
RC
42882004-05-18 Randolph Chung <tausq@debian.org>
4289
4290 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4291 Undefine these so we can overide them using gdbarch.
4292
090ccbb7
RC
42932004-05-18 Randolph Chung <tausq@debian.org>
4294
4295 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4296 handling for 64-bit HPUX (elf).
4297
594706e6
DJ
42982004-05-18 Daniel Jacobowitz <dan@debian.org>
4299
4300 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4301 constants.
4302 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4303 * ia64-tdep.c (examine_prologue): Likewise.
4304 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4305 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4306
e5483145
MK
43072004-05-18 Mark Kettenis <kettenis@gnu.org>
4308
4309 * vax-tdep.c (vax_return_value): Implement
4310 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4311
caed1a45
MK
43122004-05-17 Mark Kettenis <kettenis@gnu.org>
4313
4314 * vax-tdep.c (vax_return_value): Fix typo.
4315
3c0b7db2
AC
43162004-05-17 Andrew Cagney <cagney@redhat.com>
4317
5aae53e5
AC
4318 * MAINTAINERS: Mark Salter was also responsible for
4319 testsuite/config/
4320
3c0b7db2
AC
4321 * NEWS: Mention signal fixes.
4322
22b0923d
RC
43232004-05-17 Randolph Chung <tausq@debian.org>
4324
4325 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4326 check to see if we are unwinding an export stub. Export stubs clobber
4327 the %rp in the call path and stores the original rp in a stack slot.
4328
22f2b2f3
JB
43292004-05-17 Jim Blandy <jimb@redhat.com>
4330
4331 * MAINTAINERS: Update address for J.T. Conklin.
4332
cea96d64
RC
43332004-05-17 Randolph Chung <tausq@debian.org>
4334
4335 * hppa-tdep.c: Remove superfluous #include's.
4336 * Makefile.in (hppa-tdep.o): Update dependencies.
4337
f08f6a4a
RC
43382004-05-17 Randolph Chung <tausq@debian.org>
4339
4340 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4341 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4342 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4343 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4344 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4345 Remove static function declarations.
4346
51da707a
MK
43472004-05-17 Mark Kettenis <kettenis@gnu.org>
4348
caed1a45
MK
4349 * alphabsd-nat.c: Update copyright year.
4350 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4351
c0c2b0db
MK
4352 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4353 and M68K_A2_REGNUM.
4354
51da707a
MK
4355 * m68k-tdep.c (m68k_svr4_return_value): Implement
4356 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4357
8d027a04
MK
43582004-05-16 Mark Kettenis <kettenis@gnu.org>
4359
4360 * sol-thread.c Update copyright year. Fix various coding
4361 standards violations. Tweak a few comments.
4362 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4363 Delete prototypes.
4364
0d99fdb9
RC
43652004-05-15 Randolph Chung <tausq@debian.org>
4366
4367 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4368 as pointer instead of array reference since HPUX compiler does
4369 not accept unsized array arguments.
4370 * somsolib.c (dld_flags_buffer): Use constant array size.
4371
f7e3843a
MK
43722004-05-15 Mark Kettenis <kettenis@gnu.org>
4373
0fe85704
MK
4374 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4375 offset with decimal offset.
4376 (amd64obsd_sigcontext_addr): Return correct address for entire
4377 signal trampoline.
4378
a54f9a00
MK
4379 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4380 instead of get_frame_base.
4381
feae6502
MK
4382 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4383 (fill_gregset): Use regcache_raw_collect.
4384
0382d099
MK
4385 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4386 ppcobsd-tdep.c.
4387
f7e3843a
MK
4388 * config/sparc/tm-nbsd64.h: Remove file.
4389 * config/tm-sunos.h: Remove file.
4390
773df3e5
JB
43912004-05-15 Joel Brobecker <brobecker@gnat.com>
4392
4393 * rs6000-tdep.c (store_param_on_stack_p): New function,
4394 an improved version of some code extracted from skip_prologue().
4395 (skip_prologue): Use store_param_on_stack_p() to detect
4396 instructions saving a parameter on the stack. Detect when r0
4397 is used to save a parameter.
4398 Do not mark "li rx, SIMM" instructions as part of the prologue,
4399 unless the following instruction is also part of the prologue.
4400
95918acb
AC
44012004-05-14 Andrew Cagney <cagney@redhat.com>
4402
06f32659
AC
4403 * infrun.c (handle_inferior_event): Simplify
4404 STEP_OVER_UNDEBUGGABLE.
4405
95918acb
AC
4406 * infrun.c (handle_step_into_function): Delete function.
4407 (handle_inferior_event): Inline calls to
4408 handle_step_into_function.
4409
40711ff1 44102004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
4411
4412 * rs6000-nat.c: Fix a comment.
4413
02f60eae
JB
44142004-05-12 David Anderson <davea@sgi.com>
4415
4416 Committed by Jim Blandy <jimb@redhat.com>:
4417 * regcache.c (struct regcache_descr): fix comment spelling.
4418
552e377b
JB
44192004-05-13 J. Brobecker <brobecker@gnat.com>
4420
4421 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4422 Fixes a link link failure.
4423
349766b2
JB
44242004-05-13 J. Brobecker <brobecker@gnat.com>
4425
4426 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4427 error that was causing the build to fail.
4428
0d4d5484
JB
44292004-05-13 J. Brobecker <brobecker@gnat.com>
4430
4431 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4432 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4433
0b30808c
AC
44342004-05-13 Andrew Cagney <cagney@redhat.com>
4435
4436 * infrun.c (handle_inferior_event): Check for
4437 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4438 calls. Update comments.
4439
cdf2c5f5
JB
44402004-05-13 Jim Blandy <jimb@redhat.com>
4441
063715bf
JB
4442 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4443 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4444 (store_regs_user_thread, store_regs_kernel_thread): Use
4445 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4446 * ppc-linux-nat.c (fill_gregset): Same.
4447 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4448 (ppc_linux_sigtramp_cache): Same.
4449 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4450 (ppcnbsd_sigtramp_cache_init): Same.
4451 * rs6000-nat.c (fetch_core_registers): Same.
4452 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4453 (rs6000_frame_cache): Same.
4454
cdf2c5f5
JB
4455 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4456 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4457 of assuming that the gprs are numbered starting with zero.
4458 * ppc-linux-nat.c (fill_gregset): Same.
4459 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4460 * ppcnbsd-nat.c (getregs_supplies): Same.
4461 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4462 * rs6000-nat.c (fetch_core_registers): Same.
4463 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4464
450bd37b
MS
44652004-05-07 Michael Snyder <msnyder@redhat.com>
4466
4467 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4468 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4469
4a72a2a6
AC
44702004-05-13 Andrew Cagney <cagney@redhat.com>
4471
4472 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4473
8edfa926
BM
44742004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4475
4476 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4477 base_address for shared libraries.
4478
723e0e3d
BM
44792004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4480
4481 * MAINTAINERS (write after approval): Add myself.
4482
00d4360e
UW
44832004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4484
4485 * breakpoint.c (bpstat_stop_status): Add new argument
4486 STOPPED_BY_WATCHPOINT. Use it instead of testing
4487 target_stopped_data_address agaist 0 to check whether
4488 or not we stopped due to a hardware watchpoint.
4489 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4490 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4491 with new argument.
4492
ec76baa5
JB
44932004-05-12 Jim Blandy <jimb@redhat.com>
4494
4495 * configure.in: When checking whether we should use the -bbigtoc
4496 option, don't forget to restore the original value of LDFLAGS.
4497 * configure: Regenerated.
4498
f2c9ca08
AC
44992004-05-12 Andrew Cagney <cagney@redhat.com>
4500
4501 * thread.c (load_infrun_state): Delete step_sp.
4502 * infrun.c (context_switch): Ditto.
4503 * inferior.h (step_sp): Ditto.
4504 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4505 * gdbthread.h (struct thread_info, save_infrun_state)
4506 (restore_infrun_state): Ditto.
4507
090ddb2a
UW
45082004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4509
4510 * MAINTAINERS (write after approval): Add myself.
4511
8aad930b
AC
45122004-05-12 Andrew Cagney <cagney@redhat.com>
4513
4514 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4515 eliminate reference to step_sp.
4516 (struct execution_control_state, init_execution_control_state)
4517 (handle_inferior_event, keep_going): Delete update_step_sp and
4518 step_sp.
4519 * infcmd.c (step_sp): Note that variable is unused.
4520
922d5ae0
AC
45212004-05-11 Andrew Cagney <cagney@redhat.com>
4522
4523 * infrun.c (step_over_function): Delete function.
4524 (handle_step_into_function): Use insert_step_resume_breakpoint.
4525 (insert_step_resume_breakpoint): Fix assertion.
4526
017c5ca5
NR
45272004-05-11 Nick Roberts <nickrob@gnu.org>
4528
4529 * utils.c (defaulted_query): Just use the normal query input type
4530 when printing the annotations.
4531
42edda50
AC
45322004-05-11 Andrew Cagney <cagney@redhat.com>
4533
4534 * infrun.c (handle_inferior_event): Simplify code handling
4535 step-into or return-from a signal trampoline.
4536
d28b44a7
AC
45372004-05-11 Andrew Cagney <cagney@redhat.com>
4538
4539 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4540 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4541
383f0f5b
JB
45422004-05-10 Jim Blandy <jimb@redhat.com>
4543
d0b57c3a
JB
4544 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4545 with a call to internal_error.
4546
383f0f5b
JB
4547 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4548 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4549 processor variant lacks those registers.
4550 (ppc_floating_point_unit_p): Change description to make it clear
4551 that this returns info about the ISA, not the ABI.
4552 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4553 return true or false by checking tdep->ppc_fp0_regnum and
4554 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4555 arch/mach switching done in rs6000_gdbarch_init; it's better to
4556 keep that logic there, and just check the results here.
4557 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4558 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4559 floating-point registers.
4560 (ppc_supply_fpregset, ppc_collect_fpregset)
4561 (rs6000_push_dummy_call, rs6000_extract_return_value)
4562 (rs6000_store_return_value): Assert that we have floating-point
4563 registers.
4564 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4565 (rs6000_frame_cache): Don't note the locations at which
4566 floating-point registers were saved if we have no fprs.
4567 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4568 registers.
4569 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4570 (store_regs_user_thread, store_regs_kernel_thread): Only call
4571 supply_fprs / fill_fprs if we actually have floating-point
4572 registers.
4573 (special_register_p): Check ppc_fpscr_regnum before matching
4574 against it.
4575 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4576 supply / collect fpscr if we don't have it.
4577 * ppc-bdm.c: #include "gdb_assert.h".
4578 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4579 have floating-point registers, since I can't test this code on
4580 FP-free systems to adapt it.
4581 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4582 fpscr and floating point register numbers if they don't exist.
4583 (fetch_register): Assert that we have floating-point registers
4584 before we reach the code that handles them.
4585 (store_register): Same. And use tdep instead of calling
4586 gdbarch_tdep again.
4587 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4588 don't have them.
4589 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4590 fprs and fpscr if we don't have them.
4591 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4592 don't have them.
4593 * ppcnbsd-nat.c: #include "gdb_assert.h".
4594 (getfpregs_supplies): Assert that we have floating-point registers.
4595 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4596 * ppcobsd-tdep.c: #include "gdb_assert.h".
4597 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4598 have floating-point registers.
4599 * rs6000-nat.c (regmap): Don't match against the fpscr and
4600 floating point register numbers if they don't exist.
4601 (fetch_inferior_registers, store_inferior_registers,
4602 fetch_core_registers): Only fetch / store / supply the
4603 floating-point registers and the fpscr if we have them.
4604 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4605 (ppcobsd-tdep.o): Update dependencies.
4606
15960608
AC
46072004-05-10 Andrew Cagney <cagney@redhat.com>
4608
4609 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4610 (context_switch): Do not switch through_sigtramp_breakpoint.
4611 * gdbthread.h (save_infrun_state, load_infrun_state)
4612 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4613 and structure member.
4614 * thread.c (load_infrun_state, save_infrun_state): Update.
4615
5ab5aa0f
MK
46162004-05-10 Mark Kettenis <kettenis@gnu.org>
4617
4618 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4619
da78b0e7
DJ
46202004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4621
4622 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4623 throughout.
4624 * aclocal.m4: Regenerate.
4625
cca0d3b0
NW
46262004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4627
4628 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4629
d303a6c7
AC
46302004-05-10 Andrew Cagney <cagney@redhat.com>
4631
4632 * infrun.c (check_sigtramp2): Delete function.
4633 (handle_inferior_event): When single stepping, and taking a
4634 signal, set a breakpoint at the signal return address. Delete
4635 redundant calls to check_sigtramp2.
4636 (insert_step_resume_breakpoint): New function.
4637 (through_sigtramp_breakpoint, handle_inferior_event)
4638 (follow_exec, wait_for_inferior, fetch_inferior_event)
4639 (currently_stepping, keep_going): Delete most uses of
4640 through_sigtramp_breakpoint, not that it should be deleted.
4641 (delete_breakpoint_current_contents): Delete function.
4642
03f4cc20
RC
46432004-05-10 Randolph Chung <tausq@debian.org>
4644
4645 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4646 target.
4647 * config/pa/tm-linux.h: New file.
4648
37fc812e
DJ
46492004-05-10 Daniel Jacobowitz <drow@mvista.com>
4650
4651 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4652 of prefixes. Don't print the prefix twice in the CLI.
4653
26c0b942
JB
46542004-05-10 Jim Blandy <jimb@redhat.com>
4655
2e56e9c1
JB
4656 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4657 collect all the gprs.
4658
26c0b942
JB
4659 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4660 loop collecting gprs.
4661
dc497459
AC
46622004-05-09 Andrew Cagney <cagney@redhat.com>
4663
4664 * remote-vx.c (net_step): Delete step-range code.
4665 * remote.c (remote_resume, init_all_packet_configs)
4666 (set_remote_protocol_E_packet_cmd)
4667 (show_remote_protocol_E_packet_cmd)
4668 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4669 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4670 (show_remote_protocol_e_packet_cmd): Ditto.
4671
0543f387
MK
46722004-05-09 Mark Kettenis <kettenis@gnu.org>
4673
c481d1ca
MK
4674 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4675
f626a069
MK
4676 * hppa-tdep.h: Update copyright year.
4677 (struct trad_frame_saved_reg): Add opaque declaration.
4678
6fa57a7d
MK
4679 * amd64-tdep.c (amd64_return_value): Implement
4680 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4681
e47577ab
MK
4682 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4683 (m68k_value_to_register): New functions.
4684 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4685 value_to_register.
4686
31db7b6c
MK
4687 * defs.h (enum return_value_convention): Add
4688 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4689 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4690 * infcmd.c (legacy_return_value): New function.
4691 (print_return_value): Rwerite to implement
4692 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4693 * values.c (using_struct_return): Check for inequality to
4694 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4695 RETURN_VALUE_STRUCT_CONVENTION.
4696 * i386-tdep.c (i386_return_value): Implement
4697 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4698
0543f387
MK
4699 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4700 include "symtab.h", "opcode/vax.h" and "inferior.h".
4701 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4702 to read_memory_unsigned_integer.
4703 (vax_gdbarch_init): Reorder.
4704 (_initialize_vax_tdep): Spell out prototype.
4705 * Makefile.in (vax-tdep.o): Update dependencies.
4706
0c93b7b6
AC
47072004-05-08 Andrew Cagney <cagney@redhat.com>
4708
e6b55ae2
AC
4709 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4710 * target.c (target_detach, target_disconnect): Ditto.
4711
1ac839b8
AC
4712 * infcall.c (call_function_by_hand): When no
4713 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4714 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4715 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4716 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4717 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4718
28954179
AC
4719 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4720 * gdbarch.h, gdbarch.c: Re-generate.
4721 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4722 deprecated_fix_call_dummy.
4723 * v850-tdep.c (v850_gdbarch_init): Ditto.
4724 * infcall.c (call_function_by_hand): Do not call
4725 DEPRECATED_FIX_CALL_DUMMY.
4726
434b87dd
AC
4727 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4728 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4729 * gdbarch.h, gdbarch.c: Re-generate.
4730 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4731 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4732 deprecated_sizeof_call_dummy_words.
4733 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4735 * v850-tdep.c (v850_gdbarch_init): Ditto.
4736 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4737 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4739 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4740 * arch-utils.h (legacy_call_dummy_words)
4741 (legacy_sizeof_call_dummy_words): Delete declarations.
4742 * arch-utils.c (legacy_call_dummy_words)
4743 (legacy_sizeof_call_dummy_words): Delete variables.
4744
58d28df8
AC
4745 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4746 * gdbarch.h, gdbarch.c: Re-generate.
4747 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4748 * infcall.c (call_function_by_hand): Eliminate call to
4749 DEPRECATED_PUSH_DUMMY_FRAME.
4750 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4751 push_dummy_frame.
4752 (ns32k_push_dummy_frame): Delete function.
4753
e4a2df64
AC
4754 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4755 deprecated_call_dummy_breakpoint_offset or
4756 deprecated_call_dummy_start_offset.
4757 * dummy-frame.c, arm-tdep.c: Update comments.
4758 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4759 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4760 * gdbarch.h, gdbarch.c: Re-generate.
4761
d3712828
AC
4762 * infcall.c (legacy_push_dummy_code): Delete function.
4763 (push_dummy_code): Delete call.
4764
7a882905
AC
4765 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4766 * gdbarch.h, gdbarch.c: Re-generate.
4767 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4768 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4769 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4770 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4771
0ec5872b
AC
4772 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4773 (struct frame_info): Delete opaque declaration.
4774 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4775 * frame.c (get_frame_type): Delete call.
4776
0c93b7b6
AC
4777 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4778 pc_in_call_dummy.
4779 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4780 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4781
75536971
MK
47822004-05-08 Mark Kettenis <kettenis@gnu.org>
4783
527ca6bb
MK
4784 * alphanbsd-tdep.c: Include "gdb_string.h".
4785 * armnbsd-tdep.c: Update copyright year.
4786 Include "gdb_string.h".
4787 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4788 dependencies.
4789
d39fdc61
MK
4790 * delta68-nat.c: Remove file.
4791 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4792 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4793 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4794 (delta68-nat.o): Remove dependency.
4795
75536971
MK
4796 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4797 function.
4798 (m68k_gdbarch_init): Don't set
4799 deprecated_frameless_function_invocation.
4800
f4ca1d1f
RC
48012004-05-07 Randolph Chung <tausq@debian.org>
4802
4803 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4804 read_memory_nobpt for code reading when doing frame unwinding.
4805 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4806
2f0e8c7a
RC
48072004-05-07 Randolph Chung <tausq@debian.org>
4808
4809 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4810 instead of sp, handle sigaltstack case.
4811 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4812 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4813 signal handler and not that of the caller.
4814 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4815 hppa_linux_sigtramp_find_sigcontext.
4816
959464ff
RC
48172004-05-07 Randolph Chung <tausq@debian.org>
4818
4819 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4820 hppa-linux-nat.c.
4821 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4822 * hppa-linux-nat.c (fetch_register, store_register): Define.
4823 (fetch_inferior_registers, store_inferior_registers): Define.
4824 (supply_gregset): Add comment and clean up some unneeded code.
4825 (fill_gregset): Add comment and fix so that it saves registers in
4826 the right place in the gregset.
4827 (fill_fpregset): Fix buffer overrun problem.
4828 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4829
0da28f8a
RC
48302004-05-07 Randolph Chung <tausq@debian.org>
4831
4832 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4833 do common handling of the pcoqt register.
4834 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4835 to use helper function.
4836 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4837 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4838 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4839 generic fallback unwinder when all else fails.
4840 (hppa_gdbarch_init): Add fallback sniffer.
4841 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4842 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4843 to use helper function.
4844
b9ec757a
JB
48452004-05-08 Joel Brobecker <brobecker@gnat.com>
4846
4847 * config/djgpp/fnchange.lst: Add translation rules for
4848 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4849
756e95f1
MK
48502004-05-08 Mark Kettenis <kettenis@gnu.org>
4851
4852 * frame.c (get_prev_frame_1): Work around GCC bug.
4853 * frame.h: Add comment about GCC bug.
4854
2b4855ab
AC
48552004-05-07 Andrew Cagney <cagney@redhat.com>
4856
4857 * observer.c: Include "commands.h" and "gdbcmd.h".
4858 (observer_debug, _initialize_observer): Add the
4859 command "set/show debug observer".
4860 * observer.sh: When observer debugging, log notify calls.
4861 * Makefile.in (observer.o): Update dependencies.
4862
ba3e8e46
JM
48632004-05-07 Jason Molenda (jmolenda@apple.com)
4864
4865 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4866
16796152
JB
48672004-05-07 Jim Blandy <jimb@redhat.com>
4868
daf6dc85
JB
4869 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4870 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4871 to recognize gpr regnums, instead of assuming that
4872 tdep->ppc_fp0_regnum marks the end of the general-purpose
4873 registers.
4874
16796152
JB
4875 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4876 the given architecture has floating-point registers.
4877
c69b8bfc
AC
48782004-05-07 Andrew Cagney <cagney@redhat.com>
4879
4880 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4881 macro defined to 1.
4882 * gdbarch.h, gdbarch.c: Re-generate.
4883 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4884 deprecated_use_generic_dummy_frames.
4885
7243600a
BF
48862004-05-07 Brian Ford <ford@vss.fsi.com>
4887
4888 * NEWS: Mention Cygwin DWARF 2 support.
4889
73c1e0a1
AC
48902004-05-07 Andrew Cagney <cagney@redhat.com>
4891
4892 * objfiles.h (struct entry_info): Delete unused fields
4893 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4894 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4895 * mipsread.c (mipscoff_symfile_read): Update.
4896 * mdebugread.c (parse_partial_symbols): Update.
4897 * dwarfread.c (read_file_scope): Update.
4898 * dwarf2read.c (read_file_scope): Update.
4899 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4900 * coffread.c (complete_symtab): Update.
4901
1d3056ac
MK
49022004-05-07 Mark Kettenis <kettenis@gnu.org>
4903
4904 * infcall.c (_initialize_infcall): Fix typo.
4905
15170568
AC
49062004-05-07 Andrew Cagney <cagney@redhat.com>
4907
4908 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4909 * command.h (add_setshow_zinteger_cmd): Declare.
4910
34f75cc1
RC
49112004-05-06 Randolph Chung <tausq@debian.org>
4912
4913 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4914 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4915 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4916 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4917 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4918 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4919 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4920 definitions ...
4921 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4922 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4923 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4924 (hppa64_hpux_frame_find_saved_regs_in_sig)
4925 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4926 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4927 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4928 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4929 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4930 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4931 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4932 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4933 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4934 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4935 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4936 (hppa32_register_type, hppa_cannot_store_register)
4937 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4938 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4939 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4940 * pa64solib.c (pa64_solib_have_load_event)
4941 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4942 (pa64_solib_unloaded_library_pathname): Likewise.
4943 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4944 (som_solib_library_pathname): Likewise.
4945
0a5e7efe
JI
49462004-05-05 Jim Ingham <jingham@apple.com>
4947
4948 * breakpoint.c (create_breakpoints): Copy the ignore count and
4949 thread id over from the pended breakpoint to the actual
4950 breakpoint.
4951
10a4b113
AC
49522004-05-05 Andrew Cagney <cagney@redhat.com>
4953
4954 * gdbarch.sh (PARM_BOUNDARY): Delete.
4955 gdbarch.h, gdbarch.c: Re-generate.
4956 * valops.c (PARM_BOUNDARY): Delete macro.
4957 (value_push): Delete PARM_BOUNDARY code.
4958 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4959
366f009f
JB
49602004-05-04 Jim Blandy <jimb@redhat.com>
4961
32b99774
JB
4962 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4963 Don't assume that the gprs, fprs, and UISA sprs are
4964 contiguous, start at register number zero, and end with fpscr.
4965 Instead, use the numbers from the tdep structure.
4966
366f009f
JB
4967 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4968 should no longer be used in code specific to the RS6000 and its
4969 derivatives.
4970 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4971 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4972 tdep->ppc_fp0_regnum.
4973 (ppc_supply_fpregset, ppc_collect_fpregset)
4974 (rs6000_push_dummy_call, rs6000_extract_return_value)
4975 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4976 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4977 FP0_REGNUM.
4978 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4979 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4980 Same.
4981 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4982 bdm_ppc_store_registers): Same.
4983 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4984 (store_register, fill_fpregset): Same.
4985 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4986 (ppc_linux_supply_fpregset): Same.
4987 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4988 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4989 Same.
4990 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4991 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4992 ppc64_sysv_abi_return_value): Same.
4993 * rs6000-nat.c (regmap, fetch_inferior_registers)
4994 (store_inferior_registers, fetch_core_registers): Same.
4995
827f338d
MK
49962004-05-01 Mark Kettenis <kettenis@gnu.org>
4997
4998 * m68knbsd-nat.c: Remove file.
4999 * m68knbsd-tdep.c: Remove file.
5000 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5001 dependencies.
5002 * configure.host: Add m68k-*-netbsdelf*.
5003 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5004 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5005 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5006 (XM_FILE): Remove.
5007 * config/m68k/nbsdelf.mh: New file.
5008 * config/m68k/nbsd.mt: New file.
5009 * config/m68k/nbsdaout.mt: Remove file.
5010 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5011 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5012 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5013 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5014 (use_struct_convention): Remove prototype.
5015 (USE_STRUCT_CONVENTION): Remove define.
5016 * config/m68k/xm-nbsd.h: Remove file.
5017
66894781
MS
50182004-05-04 Michael Snyder <msnyder@redhat.com>
5019
5020 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5021 reg_struct_return method (as gcc usually does for cross targets).
5022
f0f63663
AC
50232004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5024
5025 Committed by Andrew Cagney.
5026 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5027 alignment padding when accessing ucontext struct members.
5028
edf61169
JB
50292004-05-04 Jim Blandy <jimb@redhat.com>
5030
8bf659e8
JB
5031 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5032 'ppc_gplast_regnum' member.
5033 (ppc_num_gprs): New enum constant.
5034 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5035 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5036 * rs6000-nat.c (regmap, fetch_inferior_registers,
5037 store_inferior_registers): Same.
5038 * rs6000-tdep.c (e500_pseudo_register_read)
5039 (e500_pseudo_register_write): Same.
5040 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5041
b967e06f
JB
5042 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5043 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5044 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5045 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5046 FPLAST_REGNUM.
5047 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5048 Same.
5049 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5050 * rs6000-nat.c (regmap, fetch_inferior_registers)
5051 (store_inferior_registers): Same.
5052
edf61169
JB
5053 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5054 with FPLAST_REGNUM.
5055
58a9656e
JB
50562004-05-03 Joel Brobecker <brobecker@gnat.com>
5057
5058 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5059 failure detected by recent versions of GCC.
5060 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5061 to be consistent with the usage in dwarf2_create_include_psymtab.
5062
dc305454
MS
50632004-05-03 Michael Snyder <msnyder@redhat.com>
5064
5065 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5066 (heuristic_proc_start): Whitespace cleanup.
5067
29972665
MK
50682004-05-04 Mark Kettenis <kettenis@gnu.org>
5069
6b57680d
MK
5070 * sun3-nat.c: Remove file.
5071 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5072 dependencies.
5073 (ALLDEPFILES): Remove sun3-nat.c.
5074 (sun3-nat.o): Remove dependencies.
5075
29972665
MK
5076 * i386-interix-nat.c, i386-interix-tdep.c,
5077 config/i386/nm-interix.h, config/i386/interix.mh,
5078 config/i386/interix.mt: Remove files.
5079 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5080 dependencies.
5081
f595cb19
MK
50822004-05-03 Mark Kettenis <kettenis@gnu.org>
5083
5084 * m68k-tdep.h (struct gdbarch_tdep): Add member
5085 struct_value_regnum.
5086 (m68k_svr4_init_abi): New prototype.
5087 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5088 different calling conventions.
5089 (m68k_extract_return_value): Remove code dealing with single-field
5090 structs.
5091 (m68k_store_return_value): Remove code dealing with single-field
5092 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5093 (m68k_extract_struct_value_address): Remove function.
5094 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5095 (m68k_reg_struct_return_p, m68k_return_value)
5096 (m68k_svr4_return_value): New functions.
5097 (m68k_use_struct_convention): Remove function.
5098 (m68k_push_dummy_call): Use new struct_value_regnum member of
5099 `struct gdbarch_tdep' instead of hardcoded register number to
5100 store STRUCT_ADDR.
5101 (m68k_svr4_init_abi): New function.
5102 (m68k_gdbarch_init): Don't set extract_return_value,
5103 store_return_values, deprecated_extract_struct_value_address and
5104 use_struct_convention. Set return_value instead. Initialize new
5105 struct_value_regnum member of `struct gdbarch_tdep'.
5106 * m68klinux-tdep.c: Update copyright year.
5107 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5108 (m68k_linux_extract_struct_value_address): Remove function.
5109 (m68k_linux_init_abi): Don't set extract_return_value,
5110 store_return_values, deprecated_extract_struct_value_address and
5111 use_struct_convention. Call m68k_svr4_init_abi but override the
5112 new struct_value_regnum member of `struct gdbarch_tdep'.
5113 * Makefile.in (m68k-tdep.o): Update dependencies.
5114
aaa75496
JB
51152004-05-03 J. Brobecker <brobecker@gnat.com>
5116
5117 * dwarf2read.c (line_header): Add new included_p field in
5118 field file_names.
5119 (partial_die_info): New field has_stmt_list. New field line_offset.
5120 (dwarf2_create_include_psymtab): New function.
5121 (dwarf2_build_include_psymtabs): New function.
5122 (add_file_name): Add forward declaration. Initialize new field.
5123 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5124 to be able to determine the list of files included by the
5125 given unit, and build their associated psymtabs.
5126 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5127 files as well.
5128 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5129 (read_file_scope): Update call to dwarf_decode_lines.
5130 (read_partial_die): Handle DW_AT_stmt_list attributes.
5131
c848556f
MC
51322004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5133
5134 Unfix PR gdb/1626.
5135 * configure.in: Revert special case for osf5.*.
5136 * configure: Regenerate.
5137
eb4556d7
JB
51382004-05-02 Jim Blandy <jimb@redhat.com>
5139
5140 Move the symbol-file-from-memory functions into their own file.
5141 * symfile-mem.c, symfile-mem.h: New files.
5142 * symfile.c (symbol_file_add_from_bfd): New function.
5143 (symbol_file_add): Call symbol_file_add_from_bfd.
5144 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5145 Moved to symfile-mem.c.
5146 (_initialize_symfile): Move definition of
5147 add-symbol-file-from-memory command to symfile-mem.c.
5148 * symfile.h (symbol_file_add_from_bfd): New declaration.
5149 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5150 * config/powerpc/linux.mt (TDEPFILES): Same.
5151 * Makefile.in (SFILES): Add symfile-mem.c.
5152 (symfile_mem_h): New variable.
5153 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5154 (symfile-mem.o): New rule.
5155
80bb239e
AC
51562004-05-01 Andrew Cagney <cagney@redhat.com>
5157
7789d0fa
AC
5158 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5159 frame_find_by_id instead of frame_relative_level.
5160 (do_enable_breakpoint): Ditto.
5161 * thread.c: Update copyright.
5162 (info_threads_command): Ditto, simplify.
5163
80bb239e
AC
5164 * frame.c (deprecated_generic_get_saved_register): Delete
5165 function, moved to "xstormy16-tdep.c".
5166 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5167 deprecated_generic_get_saved_register from "frame.c".
5168 (xstormy16_frame_saved_register): Call
5169 xstormy16_get_saved_register.
5170 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5171 static.
5172 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5173 * frame.h (deprecated_generic_get_saved_register): Delete.
5174
b2a871dd
MC
51752004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5176
5177 * dwarfread.c: Update documentation on the state of dwarf-1.
5178
0e100dab
AC
51792004-05-01 Andrew Cagney <cagney@redhat.com>
5180
acd8056e
AC
5181 * stack.c (select_frame_command): Delete call to
5182 frame_relative_level.
5183 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5184 Delete #if0 code.
5185 (frame_info): Do not print FRAMELESS.
5186 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5187 (catch_info): Delete #if0 code.
5188
0e100dab
AC
5189 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5190 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5191 of frame_relative_level.
5192 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5193 to SENTINEL_FRAME.
5194 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5195 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5196 frame_relative_level.
5197
55699d59
AC
5198 * frame.h (deprecated_set_frame_type): Delete declaration.
5199 * frame.c (deprecated_set_frame_type): Delete function, update
5200 comments.
5201
fcf70625
AC
5202 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5203 * gdbarch.h, gdbarch.c: Re-generate.
5204 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5205 (shnbsd_pc_in_sigtramp): Delete.
5206 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5207 pc_in_sigtramp.
5208 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5209 pc_in_sigtramp.
5210 * frame.h: Update comments.
5211 * ppc-linux-tdep.c: Update comments.
5212 * breakpoint.c (bpstat_what): Update comments.
5213
ac5eccb7
AC
5214 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5215 m68klinux-tdep.o's dependencies, were previously added to
5216 m68klinux-nat.o.
5217
f2524b93
AC
5218 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5219 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5220 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5221 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5222 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5223
17e20bce
AC
5224 * Makefile.in (m68klinux-nat.o): Update dependencies.
5225 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5226 (m68k_linux_sigtramp_frame_cache)
5227 (m68k_linux_sigtramp_frame_this_id)
5228 (m68k_linux_sigtramp_frame_prev_register)
5229 (m68k_linux_sigtramp_frame_unwind)
5230 (m68k_linux_sigtramp_frame_sniffer)
5231 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5232 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5233 names, use trad-frame.h.
5234 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5235 (struct m68k_sigtramp_info): Delete.
5236 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5237 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5238 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5239 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5240 "m68klinux-tdep.c".
5241
c8864fa2
AC
5242 * infrun.c (check_sigtramp2): Delete check for
5243 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5244
511dd2cd
MK
52452004-05-01 Mark Kettenis <kettenis@gnu.org>
5246
5247 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5248
8c6b0e06
AC
52492004-05-01 Andrew Cagney <cagney@redhat.com>
5250
9df0bb3f
AC
5251 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5252 (frv_linux_sigtramp_frame_cache)
5253 (frv_linux_sigtramp_frame_this_id)
5254 (frv_linux_sigtramp_frame_prev_register)
5255 (frv_linux_sigtramp_frame_unwind)
5256 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5257 include "linux" in function and variable names, directly call
5258 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5259 the latest trad-frame code.
5260 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5261 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5262 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5263 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5264 * frv-tdep.c (frv_sigtramp_frame_cache)
5265 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5266 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5267 frv-linux-tdep.c.
5268 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5269 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5270 (frv_set_sigcontext_reg_addr): Delete function.
5271
8c6b0e06
AC
5272 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5273 (DEPRECATED_SIGTRAMP_END): Delete.
5274 * gdbarch.h, gdbarch.c: Re-generate.
5275 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5276 * config/vax/tm-vaxbsd.h: Update copyright.
5277 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5278 (DEPRECATED_IN_SIGTRAMP): Define.
5279 * config/m68k/tm-nbsd.h: Update copyright.
5280 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5281 (DEPRECATED_IN_SIGTRAMP): Define.
5282
50ea7769
MK
52832004-05-01 Mark Kettenis <kettenis@gnu.org>
5284
03ac2a74
MK
5285 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5286 encondings. Fixes PR gdb/1628.
5287
50ea7769
MK
5288 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5289 DW_CFA_restore state without a matching DW_CFA_remember_state
5290 instead of aborting. Fixes PR backtrace/1589.
5291
9a5d7be1
JB
52922004-04-30 Joel Brobecker <brobecker@gnat.com>
5293
5294 * MAINTAINERS: Add self as AIX maintainer.
5295 Update my e-mail address in write-after-approval section.
5296
2593d1cd
AC
52972004-04-30 Andrew Cagney <cagney@redhat.com>
5298
ce12bbf9
AC
5299 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5300 (legacy_get_prev_frame): Ditto.
5301
36710c63
AC
5302 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5303 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5304 * mipsread.c (sigtramp_address): Delete extern variable.
5305 (mipscoff_new_init): Delete reference.
5306 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5307 (fixup_sigtramp): Delete function.
5308 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5309 (fixup_sigtramp): Delete declarations.
5310
2593d1cd
AC
5311 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5312 deprecated_pc_in_sigtramp.
5313 (ppcnbsd_pc_in_sigtramp): Delete function.
5314
2a25f91c
MK
53152004-05-01 Mark Kettenis <kettenis@gnu.org>
5316
5317 * config/m68k/nm-nbsd.h: Tweak comments.
5318 * config/m68k/nm-nbsdaout.h: Likewise.
5319
0b281939
AC
53202004-04-30 Andrew Cagney <cagney@redhat.com>
5321
5322 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5323 legacy_pc_in_sigtramp.
5324 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5325
8f2d3ea0
MK
53262004-05-01 Mark Kettenis <kettenis@gnu.org>
5327
5328 Add OpenBSD/m68k support.
5329 * NEWS (New native configurations): Mention OpenBSD/m68k.
5330 * m68kbsd-tdep.c: New file.
5331 * m68kbsd-nat.c: New file.
5332 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5333 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5334 * configure.host: Add m68k-*-openbsd.
5335 * configure.tgt: Add m68k-*-openbsd.
5336 * config/m68k/tm-obsd.h: New file.
5337 * config/m68k/obsd.mt: New file.
5338 * config/m68k/obsd.mh: New file.
5339 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5340 m68kbsd-tdep.c.
5341
c40f49a4
AC
53422004-04-30 Andrew Cagney <cagney@redhat.com>
5343
5344 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5345 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5346
e81554cd
MK
53472004-04-30 Mark Kettenis <kettenis@gnu.org>
5348
5349 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5350 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5351
d4dc1a91
BF
53522004-04-30 Brian Ford <ford@vss.fsi.com>
5353
5354 Revert 2004-04-16 change.
5355 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5356 (i386_coff_init_abi): Remove.
5357 * i386-tdep.h (i386_coff_init_abi): Remove.
5358 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5359
2f72f850
AC
53602004-04-30 Andrew Cagney <cagney@redhat.com>
5361
e492f9d6
AC
5362 * blockframe.c (find_pc_partial_function): Delete use of
5363 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5364 DEPRECATED_SIGTRAMP_END.
5365
7b7adad0
AC
5366 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5367 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5368 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5369 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5370 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5371
2f72f850
AC
5372 * defs.h (deprecated_inside_entry_file): Delete declaration.
5373 * blockframe.c (deprecated_inside_entry_file): Delete function.
5374 (legacy_frame_chain_valid): Delete call.
5375 * sh64-tdep.c (sh64_frame_chain): Delete call.
5376 * objfiles.h: Update comments.
5377 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5378 call.
5379 * frame.c (get_prev_frame): Delete call, update comments.
5380
283f90a7
BF
53812004-04-30 Brian Ford <ford@vss.fsi.com>
5382
5383 * MAINTAINERS (Write After Approval): Add myself.
5384
8ee56bcf
AC
53852004-04-30 Andrew Cagney <cagney@redhat.com>
5386
5387 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5388 * gdbarch.h, gdbarch.c: Re-generate.
5389 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5390 code.
5391
ee27e1b6
AC
53922004-04-30 Andrew Cagney <cagney@redhat.com>
5393
5394 * gdb-events.sh (selected_thread_changed)
5395 (selected_frame_level_changed, target_changed): Delete.
5396 * gdb-events.h, gdb-events.c: Re-generate.
5397 * valops.c (value_assign): Update.
5398 * stack.c (select_frame_command, up_silently_base)
5399 (down_silently_base): Update.
5400
d5ac5a39
AC
54012004-04-29 Andrew Cagney <cagney@redhat.com>
5402
5403 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5404 registers correctly.
5405 (print_gp_register_row, mips32_heuristic_proc_desc)
5406 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5407 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5408 references to mips_isa_regsize.
5409
ceae6e75
AC
54102004-04-29 Andrew Cagney <cagney@redhat.com>
5411
5412 * mips-tdep.c (struct gdbarch_tdep): Delete
5413 mips_fp_register_double.
5414 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5415 mips_abi_regsize.
5416 (mips_gdbarch_init): Do not set mips_fp_register_double.
5417 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5418
a587af0b
AC
54192004-04-29 Joel Brobecker <brobecker@gnat.com>
5420
5421 Committed by Andrew Cagney.
5422 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5423 function calls.
5424
13326b4e
AC
54252004-04-29 Andrew Cagney <cagney@redhat.com>
5426
5427 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5428 gdbarch, use mips_abi, update callers.
5429 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5430 mips_abi_regsize, update callers.
5431 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5432 mips_default_abi_regsize.
5433 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5434 mips_default_abi_regsize.
5435
711cc5cd
AC
54362004-04-29 Andrew Cagney <cagney@redhat.com>
5437
1b13c4f6
AC
5438 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5439 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5440 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5441 mips_default_abi_regsize.
5442 (mips_isa_regsize): Rename mips_regisze.
5443 * mipsnbsd-tdep.c: Update.
5444 * mips-linux-tdep.c: Update.
5445 * irix5-nat.c: Update.
5446 * mips-tdep.h (mips_isa_regsize): Update.
5447
711cc5cd
AC
5448 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5449 Delete all disabled code.
5450 * gdb-events.h, gdb-events.c: Re-generate.
5451
e63bbc88
MK
54522004-04-19 Jerome Guitton <guitton@gnat.com>
5453 Mark Kettenis <kettenis@gnu.org>
5454
5455 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5456 the function begins with a branch instruction.
5457
fd35795f
MK
54582004-04-29 Mark Kettenis <kettenis@gnu.org>
5459
5460 * i386-tdep.c: Fix spelling mistakes.
5461
c960c18f
AC
54622004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5463 Andrew Cagney <cagney@redhat.com>
5464
5465 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5466 <sys/proc.h>.
5467 * acconfig.h: Provide default _KMEMUSER value.
5468 * config.in, configure: Re-generate.
5469 * NEWS: Mention fix.
5470
50306a9d
RC
54712004-04-24 Randolph Chung <tausq@debian.org>
5472
5473 * configure.host (hppa*-*-linux*): New target.
5474 * configure.tgt (hppa*-*-linux*): Likewise.
5475 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5476 gdbarch_init_osabi() call earlier so that osabi-specific frame
5477 unwinders can be registered first.
5478 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5479 hppa-linux-nat.c.
5480 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5481 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5482 * config/pa/linux.mh: New file.
5483 * config/pa/linux.mt: New file.
5484 * config/pa/nm-linux.h: New file.
5485 * config/pa/xm-linux.h: New file.
5486 * hppa-linux-nat.c: New file.
5487 * hppa-linux-tdep.c: New file.
5488
2a6228ef
RC
54892004-04-28 Randolph Chung <tausq@debian.org>
5490
5491 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5492 return values.
5493 (hppa32_push_dummy_call): Fix small struct and floating point argument
5494 passing, and make sure the stack frame is properly aligned.
5495
82c10df6
AC
54962004-04-28 Andrew Cagney <cagney@redhat.com>
5497
d762c46a
AC
5498 * stack.c (print_stack_frame): Fix description.
5499
82c10df6
AC
5500 * NEWS: Mention gdb/gdbserver/configure execute permission
5501 changed. PR server/519.
5502
0faf0076
AC
55032004-04-28 Andrew Cagney <cagney@redhat.com>
5504
5505 * stack.c (print_stack_frame_stub): Delete declaration.
5506 (struct print_stack_frame_args, print_stack_frame)
5507 (print_frame_info, print_frame): Replace "source" with print what.
5508 Replace "print" with "print_level". Replace "args" with
5509 "print_args".
5510 * frame.h (show_and_print_stack_frame, print_stack_frame)
5511 (print_frame_info): Update declarations.
5512 * stack.c (select_and_print_frame, frame_command)
5513 (current_frame_command, up_command, down_command): Update calls -
5514 use get_selected_frame, pass "enum print_what" for source, do not
5515 call frame_relative_level.
5516 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5517 * remote-rdp.c (remote_rdp_open): Ditto.
5518 * remote-mips.c (common_open): Ditto.
5519 * remote-e7000.c (e7000_start_remote): Ditto.
5520 * ocd.c (ocd_start_remote): Ditto.
5521 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5522 * infrun.c (normal_stop): Ditto.
5523 * inflow.c (kill_command): Ditto.
5524 * infcmd.c (finish_command): Ditto.
5525 * corelow.c (core_open): Ditto.
5526 * tracepoint.c (finish_tfind_command): Ditto.
5527 * thread.c (info_threads_command, info_threads_command)
5528 (restore_current_thread, do_captured_thread_select): Ditto.
5529 * ada-tasks.c (task_command): Ditto.
5530
f4c5303c
OF
55312004-04-26 Orjan Friberg <orjanf@axis.com>
5532
5533 * frame.c: Include "observer.h".
5534 (frame_observer_target_changed): New function.
5535 (_initialize_frame): Attach target_changed observer.
5536 * regcache.c: Include "observer.h".
5537 (regcache_observer_target_changed): New function.
5538 (_initialize_regcache): Attach target_changed observer.
5539 * valops.c: Include "observer.h".
5540 (value_assign): Notify target_changed event when modifying register.
5541 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5542
7270d8f2
OF
55432004-04-26 Orjan Friberg <orjanf@axis.com>
5544
5545 From Paul Koning <pkoning@equallogic.com>:
5546 * breakpoint.c (free_valchain): New function.
5547 (insert_bp_location, delete_breakpoint): Use free_valchain.
5548 (remove_breakpoint): Do not remove the valchain.
5549 (bpstat_stop_status): If not stopped by watchpoint, skip
5550 watchpoints when generating stop status list.
5551 * infrun.c (handle_inferior_event): Make
5552 stepped_after_stopped_by_watchpoint a global variable.
5553 * remote.c (remote_stopped_data_address): Return watch data
5554 address rather than zero if stepped_after_stopped_by_watchpoint is
5555 set.
5556
02d62932
MC
55572004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5558
5559 Fix PR gdb/1626.
5560 * configure.in: Check for curses after termcap.
5561 On osf5.*, do not check for ncurses.
5562 * configure: Regenerate.
5563
3e9a183c
MK
55642004-04-25 Mark Kettenis <kettenis@gnu.org>
5565
c79ac407
MK
5566 * ppcobsd-nat.c: Include "ppc-tdep.h".
5567 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5568
3e9a183c
MK
5569 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5570 Fixes PR tdep/1623 and PR tdep/1624.
5571
38cc9c28
MC
55722004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5573
5574 * xmodem.h, xmodem.c: Remove files.
5575 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5576
7f07c5b6
RC
55772004-04-23 Randolph Chung <tausq@debian.org>
5578
5579 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5580 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5581 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5582 for handling stackless frames.
5583 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5584
9f7194c3
RC
55852004-04-23 Randolph Chung <tausq@debian.org>
5586
5587 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5588 starts at a pc before the frame is created.
5589
dcff6009
JB
55902004-04-23 Joel Brobecker <brobecker@gnat.com>
5591
5592 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5593
40711ff1 55942004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5595
5596 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5597 use convert_typed_floating to get the appropriate format.
5598
abc485a1
RC
55992004-04-22 Randolph Chung <tausq@debian.org>
5600
5601 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5602 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5603 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5604 (hppa_sign_extend): Add prototype.
5605 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5606 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5607 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5608 hppa targets will also use these functions.
5609 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5610 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5611 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5612 (hppa_gdbarch_init): Remove gdbarch setting of
5613 skip_trampoline_code, in_solib_call_trampoline and
5614 in_solib_return_trampoline.
5615 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5616 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5617 hppa_in_solib_call_trampoline.
5618 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5619 Moved from hppa-tdep.c.
5620 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5621 in_solib_call_trampoline and in_solib_return_trampoline.
5622
369aa520
RC
56232004-04-22 Randolph Chung <tausq@debian.org>
5624
5625 * hppa-tdep.c (hppa_debug): New variable.
5626 (find_unwind_entry, hppa_frame_cache): Add debug output.
5627 (_initialize_hppa_tdep): Add command to set debug flag.
5628
476be15e
AC
56292004-04-22 Andrew Cagney <cagney@redhat.com>
5630
5631 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5632 "trad-frame.h".
5633 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5634 signal trampoline unwinder.
5635 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5636
d195bc9f
MK
56372004-04-22 Mark Kettenis <kettenis@gnu.org>
5638
5639 Add OpenBSD/powerpc support.
5640 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5641 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5642 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5643 (ppc_collect_fpregset): New prototypes.
5644 * ppcobsd-nat.c: New file.
5645 * ppcobsd-tdep.c: New file.
5646 * ppcobsd-tdep.h: New file.
5647 * rs6000-tdep.c: Include "regset.h".
5648 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5649 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5650 New functions.
5651 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5652 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5653 (rs6000-tdep.o): Update dependencies.
5654 * configure.host: Add powerpc-*-openbsd.
5655 * configure.tgt: Add powerpc-*-openbsd.
5656 * config/powerpc/obsd.mh: New file.
5657 * config/powerpc/nm-obsd.h: New file.
5658 * config/powerpc/obsd.mt: New file.
5659
6f14cc33
AC
56602004-04-22 Andrew Cagney <cagney@redhat.com>
5661
fcf29e5f
AC
5662 * frame.h (show_frame_info): Delete declaration.
5663
6f14cc33
AC
5664 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5665 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5666 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5667 * frv-tdep.c (frv_frame_this_id): Ditto.
5668 * avr-tdep.c (avr_frame_this_id): Ditto.
5669
e5786a5c
EZ
56702004-04-22 Elena Zannoni <ezannoni@redhat.com>
5671
5672 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5673
26e75e5c
JB
56742004-04-22 Jim Blandy <jimb@redhat.com>
5675
5676 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5677 register number zero.
5678
d8d65dd3
MS
56792004-04-21 Michael Snyder <msnyder@redhat.com>
5680
5681 * mips-tdep.c (heuristic_proc_start):
5682 Warning() already prefixes "Warning: ".
5683
9a4105ab
AC
56842004-04-21 Andrew Cagney <cagney@redhat.com>
5685
5686 * annotate.h (deprecated_annotate_starting_hook)
5687 (deprecated_annotate_stopped_hook)
5688 (deprecated_annotate_exited_hook)
5689 (deprecated_annotate_signal_hook)
5690 (deprecated_annotate_signalled_hook): Deprecate.
5691 * tracepoint.h (deprecated_create_tracepoint_hook)
5692 (deprecated_delete_tracepoint_hook)
5693 (deprecated_modify_tracepoint_hook)
5694 (deprecated_trace_find_hook)
5695 (deprecated_trace_start_stop_hook): Deprecate.
5696 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5697 * remote.h (deprecated_target_resume_hook)
5698 (deprecated_target_wait_loop_hook): Deprecate.
5699 * gdbcore.h (deprecated_exec_file_display_hook)
5700 (deprecated_file_changed_hook): Deprecate.
5701 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5702 * defs.h (deprecated_modify_breakpoint_hook)
5703 (deprecated_command_loop_hook, deprecated_show_load_progress)
5704 (deprecated_print_frame_info_listing_hook)
5705 (deprecated_query_hook, deprecated_warning_hook)
5706 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5707 (deprecated_delete_breakpoint_hook)
5708 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5709 (deprecated_readline_begin_hook, deprecated_readline_hook)
5710 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5711 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5712 (deprecated_context_hook, deprecated_target_wait_hook)
5713 (deprecated_attach_hook, deprecated_detach_hook)
5714 (deprecated_call_command_hook, deprecated_set_hook)
5715 (deprecated_error_hook, deprecated_error_begin_hook)
5716 (deprecated_ui_load_progress_hook): Deprecate.
5717 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5718 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5719 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5720 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5721 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5722 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5723 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5724 * annotate.c, aix-thread.c: Update.
5725
62cf13cc
AC
57262004-04-21 Andrew Cagney <cagney@redhat.com>
5727
b2e31a62
AC
5728 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5729 * vaxnbsd-tdep.c: Include "gdb_string.h".
5730
62cf13cc
AC
5731 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5732 (add_symbol_file_from_memory_command): #if 0 function body, call
5733 error instead.
5734
00e32a35
AC
57352004-04-21 Andrew Cagney <cagney@redhat.com>
5736
5737 * gdbcore.h: Update copyright.
5738 (deprecated_add_core_fns): Rename add_core_fns.
5739 * win32-nat.c (_initialize_core_win32): Update.
5740 * sun3-nat.c (_initialize_core_sun3): Update.
5741 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5742 * rs6000-nat.c (_initialize_core_rs6000): Update.
5743 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5744 * nto-tdep.c (_initialize_nto_tdep): Update.
5745 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5746 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5747 * mips-nat.c (_initialize_core_mips): Update.
5748 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5749 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5750 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5751 * lynx-nat.c (_initialize_core_lynx): Update.
5752 * irix5-nat.c (_initialize_core_irix5): Update.
5753 * i386-interix-nat.c (_initialize_core_interix): Update.
5754 * cris-tdep.c (_initialize_cris_tdep): Update.
5755 * corelow.c (deprecated_add_core_fns): Update.
5756 * core-regset.c (_initialize_core_regset): Update.
5757 * core-aout.c (_initialize_core_aout): Update.
5758 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5759 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5760 * alpha-nat.c (_initialize_core_alpha): Update.
5761
13c7b1ca
JB
57622004-04-21 Jim Blandy <jimb@redhat.com>
5763
5764 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5765
7b5a2f43
DJ
57662004-04-19 Daniel Jacobowitz <drow@mvista.com>
5767
5768 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5769 Delete.
5770 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5771 (read_attribute_value): Update calls to dwarf_alloc_block.
5772 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5773 dwarf2_tmp_obstack.
5774 (psymtab_to_symtab_1): Likewise. Clean up using
5775 free_stack_comp_unit.
5776 (add_to_cu_func_list): Use the comp_unit_obstack.
5777
05cf31d1
JB
57782004-04-19 Joel Brobecker <brobecker@gnat.com>
5779
5780 * dwarf2read.c (dwarf2_flag_true_p): New function.
5781 (die_is_declaration): Use the function above. Add some comments.
5782
adf93a2f
MK
57832004-04-19 Mark Kettenis <kettenis@gnu.org>
5784
5785 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5786 architecture when registering sparcnbsd_core_osabi_sniffer.
5787 Adjust comment.
5788
748894bf
MK
57892004-04-18 Mark Kettenis <kettenis@gnu.org>
5790
f622ad42
MK
5791 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5792 return value.
5793
c4fc7f1b
MK
5794 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5795 * i386-tdep.c: Correct register numbering scheme comments
5796 throughout.
5797 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5798 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5799 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5800 (i386_gdb_arch_init): Likewise.
5801
b4ead1bd
MK
5802 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5803 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5804 ppcnbsd-tdep.o.
5805
748894bf
MK
5806 * m68k-tdep.h: Tweak comments.
5807 * m68k-tdep.c: Tweak comment.
5808
fdd72f95
RC
58092004-04-17 Randolph Chung <tausq@debian.org>
5810
5811 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5812 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5813 (hppa_hpux_som_init_abi): Set is_elf to 0.
5814 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5815 * hppa-tdep.c (low_text_segment_address): Remove global.
5816 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5817 section offset to calculate segment address.
5818 (internalize_unwinds): Define low_text_segment_address as local and
5819 pass to record_text_segment_lowaddr for ELF targets.
5820 (hppa_gdbarch_init): Zero fill tdep structure.
5821 (hppa_dump_tdep): Print tdep structure.
5822 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5823
0f8d9d59
RC
58242004-04-17 Randolph Chung <tausq@debian.org>
5825
5826 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5827 (hppa_gdbarch_init): Set pseudo_register_read.
5828 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5829 * regcache.c (supply_register): Remove check for
5830 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5831
7c46b9fb
RC
58322004-04-17 Randolph Chung <tausq@debian.org>
5833
5834 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5835 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5836 (hpread_adjust_stack_address): Move to hpread.c.
5837 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5838 obj_private_struct): Move from tm-hppa.h.
5839 * hpread.c (hppa-tdep.h): Include.
5840 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5841 (hpread_read_function_type, hpread_read_doc_function_type)
5842 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5843 directly.
5844 * pa64solib.c (hppa-tdep.h): Include.
5845 * somsolib.c (hppa-tdep.h): Include.
5846 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5847 inferior_status): Remove unused forward declarations.
5848 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5849 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5850 obj_private_struct): Move to hppa-tdep.h.
5851 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5852
8d153463
RC
58532004-04-17 Randolph Chung <tausq@debian.org>
5854
5855 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5856 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5857 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5858 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5859 Remove forward declaration and make static.
5860 (hppa_reg_struct_has_addr): Remove.
5861
350c2e5b
JB
58622004-04-16 Joel Brobecker <brobecker@gnat.com>
5863
5864 * observer.sh: Move comments in sed command to first column.
5865
bbde78fa
JM
58662004-04-16 Jason Molenda (jmolenda@apple.com)
5867
5868 * frame.c: Minor typeo corrections in comments.
5869
e0270fd9
JB
58702004-04-16 Joel Brobecker <brobecker@gnat.com>
5871
5872 * observer.c (observer_test_first_notification_function): Update
5873 function profile.
5874 (observer_test_second_notification_function): Likewise.
5875 (observer_test_third_notification_function): Likewise.
5876
3d049254
MK
58772004-04-16 Mark Kettenis <kettenis@gnu.org>
5878
5879 From Brian Ford <ford@vss.fsi.com>:
5880 * i386-tdep.c (i386_coff_init_abi): New function.
5881 * i386-tdep.h (i386_coff_init_abi): New prototype.
5882 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5883 register number translation functions for DWARF and DWARF 2.
5884
7867684d
JB
58852004-04-16 Joel Brobecker <brobecker@gnat.com>
5886
5887 * dwarf2read.c: Back out my previous change, it was incorrect.
5888
72bf9492
DJ
58892004-04-16 Daniel Jacobowitz <drow@mvista.com>
5890
5891 * dwarf2read.c: Include "hashtab.h".
5892 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5893 has_namespace_info.
5894 (struct partial_die_info): Add comments. Use bitfields to reduce
5895 memory footprint. Add scope, scope_set, has_specification,
5896 spec_offset, die_parent, die_child, and die_sibling.
5897 (peek_die_abbrev): Add prototype.
5898 (partial_read_comp_unit_head): New function, broken out from
5899 dwarf2_build_psymtabs_hard.
5900 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5901 Use partial_read_comp_unit_head. Initialize the CU and
5902 comp_unit_obstack. Update calls to read_partial_die and
5903 scan_partial_symbols. Use free_stack_comp_unit and
5904 load_partial_dies.
5905 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5906 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5907 Update calls to helper functions. Remove NAMESPACE argument.
5908 Update comments.
5909 (partial_die_parent_scope, partial_die_full_name): New functions.
5910 (add_partial_symbol): Remove namespace argument. Update call to
5911 pdi_needs_namespace. Use partial_die_full_name. Handle
5912 DW_TAG_namespace. Check has_namespace_info flag.
5913 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5914 tag. Handle namespaces.
5915 (add_partial_namespace, add_partial_enumeration): Simplify.
5916 (guess_structure_name): New function, derived from
5917 add_partial_structure.
5918 (add_partial_structure): Remove.
5919 (determine_class_name): Update comment.
5920 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5921 (is_type_tag_for_partial, load_partial_dies): New functions.
5922 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5923 Record specifications instead of following them immediately.
5924 (find_partial_die_in_comp_unit, find_partial_die)
5925 (fixup_partial_die, free_stack_comp_unit)
5926 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5927 (partial_die_hash, partial_die_eq): New functions.
5928 * Makefile.in (hashtab_h): Define.
5929 (dwarf2read.o): Update dependencies.
5930 (observer_inc, observer_h): Move to the correct section.
5931
fdc860a3
JB
59322004-04-15 Joel Brobecker <brobecker@gnat.com>
5933
5934 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5935 (die_is_declaration): Use the function above. Add comment.
5936
dc718098
JB
59372004-04-15 Joel Brobecker <brobecker@gnat.com>
5938
5939 * dwarf2read.c (read_structure_scope): Identify stub types
5940 using die_is_declaration() only.
5941
8718a420
RM
59422004-04-15 Roland McGrath <roland@redhat.com>
5943
5944 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5945 argument instead of NAME.
5946 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5947 in call to symbol_file_add_with_addrs_or_offsets.
5948 (build_addr_info): New function, helper for ...
5949 (symbol_file_add_from_memory): New function.
5950 (add_symbol_file_from_memory_command): New function using that.
5951 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5952 (pre_add_symbol_hook): Add const to argument type.
5953 * symfile.h (symbol_file_add_from_memory): Declare it.
5954
8b910bab
MK
59552004-04-15 Mark Kettenis <kettenis@gnu.org>
5956
9f076e7a
MK
5957 * NEWS (New native configurations): Mention OpenBSD/vax.
5958 * configure.host: Add vax-*-openbsd*.
5959 * config/vax/obsd.mh: New file.
5960 * config/vax/nm-obsd.h: New file.
5961
8b910bab
MK
5962 * vax-tdep.c: Include "regset.h".
5963 (vax_supply_gregset): New function.
5964 (vax_gregset): New variable.
5965 (vax_regset_from_core_section): New function.
5966 (vax_gdbarch_init): Set regset_from_core_section.
5967 * Makefile.in (vax-tdep.o): Update dependencies.
5968
7a464420
AC
59692004-04-15 Andrew Cagney <cagney@redhat.com>
5970
5971 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5972 (observer_normal_stop_notification_stub)
5973 (observer_attach_normal_stop, observer_detach_normal_stop):
5974 Delete, replaced by #include "observer.inc".
5975 * infrun.c (normal_stop): Pass "stop_bpstat" to
5976 observer_notify_normal_stop.
5977 * Makefile.in (observer_inc): Define.
5978 (observer.o): Update dependencies.
5979 (observer.h, observer.inc): New rules.
5980 * observer.h: Delete file.
5981 * observer.sh: New file.
5982
e36ad527
MK
59832004-04-15 Mark Kettenis <kettenis@gnu.org>
5984
5985 * vax-tdep.c (vax_frame_cache): Fix typo.
5986
67b441e1
MK
59872004-04-14 Mark Kettenis <kettenis@gnu.org>
5988
6f606e1c
MK
5989 * NEWS (New native configurations): Mention NetBSD/vax.
5990 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5991 * config/vax/nbsdelf.mh: New file.
5992 * config/vax/nbsdaout.mh: New file.
5993 * config/vax/nm-nbsd.h: New file.
5994 * config/vax/nm-nbsdaout.h: New file.
5995
9c5519a5
MK
5996 * vaxnbsd-tdep.c: New file.
5997 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5998 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5999 * config/vax/nbsd.mt: New file.
6000 * config/vax/tm-nbsd.h: New file.
6001
4844a614
MK
6002 * Makefile.in (vaxbsd-nat.o): New dependency.
6003
67b441e1
MK
6004 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6005 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6006 struct_addr arguments. Don't push return value address.
6007 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6008 arguments to vax_store_arguments. Store return value address in
6009 R1.
6010 (vax_store_struct_return, vax_extract_return_value)
6011 (vax_store_return_value): Remove functions.
6012 (vax_return_value): New function.
6013 (vax_gdbarch_init): Set return value. Don't set
6014 deprecated_store_struct_return, deprecated_extract_struct_return
6015 and deprecated_store_return_value.
6016
6672f2ae
AS
60172004-04-14 Andreas Schwab <schwab@suse.de>
6018
6019 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6020 value buffer.
6021 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6022
7346c184
MK
60232004-04-14 Mark Kettenis <kettenis@gnu.org>
6024
6025 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6026 (vax_unwind_dummy_id): New functions.
6027 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6028 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6029 variables.
6030 (vax_fix_call_dummy): Remove function.
6031 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6032 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6033 call_dummy_location, deprecated_call_dummy_words,
6034 deprecated_sizeof_call_dummy_words,
6035 deprecated_call_dummy_breakpoint_offset,
6036 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6037 and deprecated_dummy_write_sp.
6038
58e23df4
DC
60392004-04-13 David Carlton <carlton@kealia.com>
6040
6041 * MAINTAINERS: Move myself to "paper trail" section.
6042
5e6b39ff
MK
60432004-04-12 Mark Kettenis <kettenis@gnu.org>
6044
7def7fef
MK
6045 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6046 "trad-frame.h".
6047 (vax_frame_init_saved_regs): Remove function.
6048 (vax_sigtramp_saved_pc): Remove function.
6049 (vax_frame_saved_pc): Remove function.
6050 (vax_frame_args_address): Remove function.
6051 (vax_frame_num_args): Rewrite.
6052 (vax_frame_chain): Remove function.
6053 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6054 VAX_FP_REGNUM.
6055 (vax_pop_frame): Likewise.
6056 (vax_saved_pc_after_call): Remove function.
6057 (struct vax_frame_cache): New structure.
6058 (vax_frame_cache): New function.
6059 (vax_frame_this_id): New function.
6060 (vax_frame_prev_register): New function.
6061 (vax_frame_unwind): New variable.
6062 (vax_frame_sniffer): New function.
6063 (vax_frame_base_address): New function.
6064 (vax_frame_args_address): New function.
6065 (vax_frame_base): New variable.
6066 (vax_unwind_pc): New function.
6067 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6068 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6069 deprecated_frame_chain, deprecated_frame_saved_pc,
6070 deprecated_frame_args_address and
6071 deprecated_frame_init_saved_regs.
6072 * Makefile.in (vax-tdep.o): Update dependencies.
6073
53284fc1
MK
6074 * vaxbsd-nat.c: New file.
6075
5e6b39ff
MK
6076 * vax-tdep.h: Update copyright year. Adjust comments.
6077 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6078 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6079 (vax_regnum): New enum. Replacing...
6080 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6081 (VAX_PS_REGNUM): ... these removed macros.
6082 * vax-tdep.c (vax_register_name): Remove prototype.
6083 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6084 (vax_register_byte, vax_register_raw_size,
6085 vax_register_virtual_size, vax_register_virtual_type): Remove
6086 functions.
6087 (vax_register_type): New function.
6088 (vax_breakpoint_from_pc): Reorganize.
6089 (vax_gdbarch_init): Set register_type. Don't set
6090 deprecated_register_size, deprecated_register_bytes,
6091 deprecated_register_byte, deprecated_register_raw_size,
6092 deprecated_max_register_raw_size,
6093 deprecated_register_virtual_size,
6094 deprecated_max_register_virtual_size and
6095 deprecated_register_virtual_type. Add comment on stack direction.
6096
e9c71e9f
MK
60972004-04-11 Mark Kettenis <kettenis@gnu.org>
6098
6099 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6100 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 6101 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 6102
d46f1176 61032004-04-10 Randolph Chung <tausq@debian.org>
8718a420 6104
d46f1176
RC
6105 * MAINTAINERS (write after approval): Add myself.
6106
a2a84a72
RC
61072004-04-07 Randolph Chung <tausq@debian.org>
6108
6109 * hppa-tdep.c (hppa_inner_than): Remove.
6110 (is_pa_2): Remove unused static variable.
8718a420 6111 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 6112
e85c3284
PH
61132004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6114
6115 * language.h (language_defn): Add new la_post_parser field.
6116 * parser-defs.h (null_post_parser): New declaration (default for
6117 la_post_parser).
8718a420 6118
e85c3284
PH
6119 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6120 insert call to that function.
6121 (parse_exp_in_context): New function, including code formerly in
8718a420 6122 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
6123 prefixification.
6124 (parse_expression_in_context): New exported function.
6125 (null_post_parser): New definition.
6126 * expression.h (parse_expression_in_context): Add declaration.
8718a420 6127
e85c3284
PH
6128 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6129 * c-lang.c (c_language_defn): Ditto.
6130 (cplus_language_defn): Ditto.
6131 (asm_language_defn): Ditto.
6132 (minimal_language_defn): Ditto.
6133 * f-lang.c (f_language_defn): Ditto.
6134 * jv-lang.c (java_language_defn): Ditto.
6135 * language.c (unknown_language_defn): Ditto.
6136 (auto_language_defn): Ditto.
6137 (local_language_defn): Ditto.
6138 * m2-lang.c (m2_language_defn): Ditto.
6139 * scm-lang.c (scm_language_defn): Ditto.
6140 * obj-lang.c (objc_language_defn): Ditto.
8718a420 6141
d9f8c85b
MK
61422004-04-10 Mark Kettenis <kettenis@gnu.org>
6143
fa34704a
MK
6144 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6145 (amd64nbsd_mcontext_addr): New function.
6146 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6147 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6148 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6149
403e1656
MK
6150 * corelow.c (core_xfer_partial): Fix coding standards violation.
6151 Add support for TARGET_OBJECT_WCOOKIE.
6152
a57e5a95
MK
6153 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6154 deprecated_pc_in_sigtramp.
6155 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6156 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6157 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6158 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6159 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6160 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6161 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6162
377d9ebd
MK
6163 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6164 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6165 Fix typo.
6166
f0ef85a5
MK
6167 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6168 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6169 (amd64_collect_fxsave): Likewise.
6170
d9f8c85b
MK
6171 * i386-sol2-tdep.c: Include "gdb_string.h".
6172 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6173 name.
6174 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6175
75f501b5
MK
61762004-04-10 Mark Kettenis <kettenis@gnu.org>
6177
6178 * i386-sol2-tdep.c: Include "solib-svr4.h".
6179 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6180 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6181 * config/i386/tm-i386sol2.h: Include :solib.h".
6182 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6183 solib-svr4.o and solib-legacy.o.
6184 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6185 solib-svr4.o.
6186
b31bc724
MK
61872004-04-09 Mark Kettenis <kettenis@gnu.org>
6188
18bbbd9e
MK
6189 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6190 whether a register is supplied by PTRACE_GETFPREGS.
6191 (store_inferior_registers): Likewise.
6192 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6193 whether a register is supplied by PT_GETFPREGS.
6194 (store_inferior_registers): Likewise.
6195
3c30bf1b
MK
6196 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6197 * config/i386/linux64.mt (TDEPFILES): Likewise.
6198
a4194092
MK
6199 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6200
911bc6ee
MK
6201 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6202 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6203 the program counter is in the range specified by `struct
6204 gdbarch_tdep'.
6205 * amd64-linux-tdep.c: Include "symtab.h".
6206 (amd64_linux_pc_in_sigtramp): Remove function.
6207 (amd64_linux_sigtramp_p): New function.
6208 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6209 deprecated_pc_in_sigtramp.
6210 * amd64nbsd-tdep.c: Include "symtab.h".
6211 (amd64nbsd_sigtramp_p): New function.
6212 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6213 deprecated_pc_in_sigtramp.
6214 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6215 few comments.
6216 (amd64obsd_pc_in_sigtramp): Remove function.
6217 (amd64obsd_sigtramp_p): New function.
6218 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6219 deprecated_pc_in_sigtramp.
6220 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6221 (i386bsd_pc_ins_sigtramp): Remove prototype.
6222 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6223 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6224 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6225 the program counter is in the range specified by `struct
6226 gdbarch_tdep'.
6227 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6228 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6229 (i386_go32_pc_in_sigtramp): Remove function.
6230 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6231 Initialize TDEP->sigtramp_p.
6232 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6233 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6234 deprecated_pc_in_sigtramp.
6235 * i386-linux-tdep.c: Adjust comments.
6236 (i386_linux_pc_in_sigtramp): Remove function.
6237 (i386_linux_sigtramp_p): New function.
6238 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6239 deprecated_pc_in_sigtramp.
6240 * i386-nto-tdep.c: Update copyright year.
6241 (i386nto_pc_in_sigtramp): Remove function.
6242 (i386nto_sigtramp_p): New function.
6243 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6244 SP_REGNUM.
6245 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6246 deprecated_pc_in_sigtramp.
6247 * i386-sol2-tdep.c: Update copyright year.
6248 (i386_sol2_pc_in_sigtramp): Remove function.
6249 (i386_sol2_sigtramp_p): New function.
6250 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6251 deprecated_pc_in_sigtramp.
6252 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6253 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6254 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6255 deprecated_sigtramp_start and deprecated_sigtramp_end.
6256 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6257 (i386nbsd_pc_in_sigtramp): Remove function.
6258 (i386nbsd_sigtramp_p): New function.
6259 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6260 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6261 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6262 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6263 (i386obsd_pc_in_sigtramp): Remove function.
6264 (i386obsd_sigtramp_p): New function.
6265 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6266 functions.
6267 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6268 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6269 TDEP->sigtramp_p.
6270 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6271 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6272 dependencies.
6273
e083e6ec
MK
6274 * config/i386/i386aout.mt: Remove file.
6275
bd153b94
MK
6276 * configure.tgt: Remove i[34567]86-*-go32*,
6277 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6278 and i[34567]86-*-isc*. Set gdb_target to i386 for
6279 i[34567]86-*-netware* and i[34567]86-*-*.
6280 * config/i386/i386.mt: New file.
6281 * config/i386/embed.mt: Remove file.
6282 * config/i386/go32.mt: Remove file.
6283 * config/i386/i386nw.mt: Remove file.
6284 * config/i386/i386v.mt: Remove file.
6285 * config/i386/tm-go32.h: Remove file.
6286
4a1bcc8c
MK
6287 * tui/tui-hooks.c: Include "readline/readline.h" after
6288 "gdb_curses.h" instead of before.
6289 * tui/tui-io.c: Likewise.
6290
f9a79064
MK
6291 * tui/tui.c: Fix typo in comment.
6292
b31bc724
MK
6293 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6294
f83f82bc
AC
62952004-04-08 Andrew Cagney <cagney@redhat.com>
6296
6297 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6298 (deprecated_exception_support_initialized): Declare.
8718a420 6299 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
6300 (initialize_hp_cxx_exception_support)
6301 (child_enable_exception_callback): Update.
6302 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6303 (deprecated_exception_support_initialized): Rename
6304 deprecated_exception_catchpoints_are_fragile and
6305 deprecated_exception_support_initialized.
6306 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6307
6308 * symtab.c (deprecated_hp_som_som_object_present): Rename
6309 hp_som_som_object_present.
6310 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6311 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6312 Update. Delete extern declaration.
6313 * valops.c (hp_som_som_object_present): Ditto.
8718a420 6314 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
6315 (parse_nested_classes_for_hpacc): Ditto.
6316 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 6317 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
6318 (initialize_hp_cxx_exception_support): Ditto.
6319 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 6320 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 6321 (cp_print_class_method): Ditto.
8718a420 6322 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
6323 (c_type_print_base): Ditto.
6324 * c-exp.y (hp_som_som_object_present): Ditto.
6325
fb2be677
AC
63262004-04-08 Andrew Cagney <cagney@redhat.com>
6327
6328 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6329 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6330 (frame_unwind_find_by_frame): Re-implement the unwind code so
6331 that it can both prepend and append sniffers. Replace
6332 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6333 * tramp-frame.c (tramp_frame_append): Use
6334 frame_unwind_prepend_unwinder.
6335 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6336 frame_unwind_register_unwinder.
6337 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6338 tramp_frame_append.
6339 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 6340 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
6341 (mips_linux_init_abi): Update.
6342
67faf007
KB
63432004-04-08 Kevin Buettner <kevinb@redhat.com>
6344
6345 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6346 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6347 file support.
6348
8973ff21
KB
63492004-04-07 Kevin Buettner <kevinb@redhat.com>
6350
6351 * ia64-tdep.c (elf.h): Don't include.
6352 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6353
4a0e2f88
JM
63542004-04-07 Jason Molenda (jmolenda@apple.com)
6355
6356 * frame.h: Typeo corrections in comments.
6357
9872ad24
JB
63582004-04-07 Jim Blandy <jimb@redhat.com>
6359
6360 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6361 %esp and %ebp
6362
70b216c8
MK
63632004-04-07 Mark Kettenis <kettenis@gnu.org>
6364
11d5789c
MK
6365 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6366 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6367 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6368 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6369 and solib-legacy.o.
6370 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6371 solib-svr4.o.
6372 * config/sparc/tm-sol2.h: Update copyright year. Include
6373 "solib.h".
6374
70b216c8
MK
6375 * sparc-sol2-tdep.c: Update copyright year. Include
6376 "solib-svr4.h".
6377 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6378 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6379 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 6380 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
6381 dependencies.
6382
6339dc9e
AC
63832004-04-06 Andrew Cagney <cagney@redhat.com>
6384
6385 * infttrace.c: Include "infttrace.h".
6386 * infttrace.h: Include "target.h".
6387 * Makefile.in (infttrace_h): Update.
6388 (infttrace.o): Update.
8718a420 6389
93449403
AC
63902004-04-06 Andrew Cagney <cagney@redhat.com>
6391
6d518969
AC
6392 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6393 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6394 move extern declarations from here ...
6395 * infttrace.h: ... to here.
6396 * Makefile.in (hppah-nat.o): Update dependencies.
6397
85f4f2d8
AC
6398 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6399 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 6400 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
6401 (hppa_breakpoint_from_pc): Delete.
6402
93449403
AC
6403 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6404
71456ec6
AC
64052004-04-05 Andrew Cagney <cagney@redhat.com>
6406
6407 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6408 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6409 <sys/file.h>.
8718a420 6410
4c02c60c
AC
64112004-04-06 Randolph Chung <tausq@debian.org>
6412
6413 Committed by Andrew Cagney (mechanical change).
6414 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6415 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6416 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6417 child_enable_exception_callback, current_ex_event,
6418 null_symtab_and_line, child_get_current_exception_event,
6419 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6420 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6421 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6422 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6423 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6424 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6425 Move hpux-specific definitions ...
6426 * hppa-hpux-tdep.c: ... to here.
6427
3a515653
AC
64282004-04-05 Andrew Cagney <cagney@redhat.com>
6429
6430 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6431 skip_prologue_using_sal.
6432
c1730d02
AC
64332004-04-05 Andrew Cagney <cagney@redhat.com>
6434
6435 * config/i386/tm-i386.h: Delete file.
6436 * config/i386/tm-vxworks.h: Update copyright, do not include
6437 "tm-i386.h".
6438 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6439 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6440 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6441 * config/i386/ncr3000.mt (TM_FILE): Delete.
6442 * config/i386/interix.mt (TM_FILE): Delete.
6443 * config/i386/i386v.mt (TM_FILE): Delete.
6444 * config/i386/i386nw.mt (TM_FILE): Delete.
6445 * config/i386/i386gnu.mt (TM_FILE): Delete.
6446 * config/i386/i386aout.mt (TM_FILE): Delete.
6447 * config/i386/embed.mt (TM_FILE): Delete.
6448
8b67aa36
KB
64492004-04-05 Kevin Buettner <kevinb@redhat.com>
6450
6451 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6452 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6453 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6454 (accg7_regnum): New constants.
6455 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
6456 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6457 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
6458 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6459 for accg registers.
6460 (frv_register_sim_regno): Update spr_map[].
6461
3c7012f5
AC
64622004-04-04 Andrew Cagney <cagney@redhat.com>
6463
6464 * config/mips/xm-riscos.h: Delete.
6465 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6466 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6467 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6468 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6469 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6470 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6471 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6472 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6473 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6474 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6475 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6476 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6477 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6478 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6479 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6480 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6481 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6482 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6483 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6484 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6485 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6486 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6487 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6488 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6489 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6490 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6491
3c7012f5
AC
6492 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6493 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6494 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6495 * configure.host: Remove m680[01]0-sun-sunos3*,
6496 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6497 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6498 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6499 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6500 mips-*-riscos*.
6501 * NEWS: Mention removed systems.
6502
99d16a21
AC
65032004-04-04 Andrew Cagney <cagney@redhat.com>
6504
6505 GDB 6.1 release created from 6.1 branch.
6506
6cdf9d98
AC
65072004-04-04 Andrew Cagney <cagney@redhat.com>
6508
98d346c3
AC
6509 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6510 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6511 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6512
6cdf9d98
AC
6513 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6514 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6515 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6516
859a326d
JB
65172004-04-03 Jim Blandy <jimb@redhat.com>
6518
6519 * MAINTAINERS: Chris Faylor has changed employers; add him to
6520 "paper trail" section, and update his E-mail address.
6521
b87178c3
AC
65222004-04-03 Andrew Cagney <cagney@redhat.com>
6523
4ea2acf0
AC
6524 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6525 generic dummy frames.
6526 * dummy-frame.c: Update copyright.
6527 (dummy_frame_sniffer): Delete check for generic dummy frames.
6528
d0bd2d18 6529 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6530 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6531 (REG_PARM_STACK_SPACE): Delete.
6532 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6533 Inline reference to REG_PARM_STACK_SPACE.
6534
b87178c3
AC
6535 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6536 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6537 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6538 (FRAME_BASE_BEFORE_SIGTRAMP)
6539 (hppa32_hpux_frame_base_before_sigtramp)
6540 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6541 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6542 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6543 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6544 (FRAME_BASE_BEFORE_SIGTRAMP)
6545 (hppa64_hpux_frame_base_before_sigtramp)
6546 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6547
43e2e1a0
AC
65482004-04-03 Andrew Cagney <cagney@redhat.com>
6549
6550 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6551
ddc135a4
AC
65522004-04-02 Andrew Cagney <cagney@redhat.com>
6553
6554 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6555 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6556 * dummy-frame.h: Delete out-of-date comments.
6557 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6558 * gdbarch.h, gdbarch.c: Re-generate.
6559
d15bfd3a 65602004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6561
d15bfd3a
AC
6562 Committed by Andrew Cagney <cagney@redhat.com>.
6563 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6564 into account an instruction saving a register if we have already
6565 seen an earlier instruction saving that same register.
6566
f04ceafa
AC
65672004-04-02 Andrew Cagney <cagney@redhat.com>
6568
08be3abd
AC
6569 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6570 * gdbarch.h, gdbarch.c: Re-generate.
6571 * frame.c (legacy_get_prev_frame): Delete references to
6572 DEPRECATED_INIT_FRAME_PC_FIRST.
6573
f04ceafa
AC
6574 * infrun.c (pc_in_sigtramp): Delete function.
6575 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6576 get_frame_type.
6577
08e69816
AC
65782004-04-02 Andrew Cagney <cagney@redhat.com>
6579
6580 * infrun.c (handle_step_into_function): Delete code conditional on
6581 legacy_frame_p.
6582 (handle_inferior_event, step_over_function): Ditto.
6583
adb54772
AC
65842004-04-02 Andrew Cagney <cagney@redhat.com>
6585
6586 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6587 "previous frame inner to this frame" test.
6588
304396fb
AC
65892004-04-02 Andrew Cagney <cagney@redhat.com>
6590
6591 * frame.c (safe_frame_unwind_memory): New function.
6592 * frame.h (safe_frame_unwind_memory): Declare. Update description
6593 of /safe_/ methods.
6594 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6595 "next_frame". Use safe_frame_unwind_memory.
6596 (tramp_frame_sniffer): Update call to tramp_frame_start.
6597
6502dd73
DJ
65982004-04-01 Daniel Jacobowitz <drow@mvista.com>
6599
6600 * dwarf2read.c (dwarf2_objfile_data_key): New.
6601 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6602 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6603 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6604 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6605 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6606 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6607 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6608 Remove variables.
6609 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6610 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6611 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6612 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6613 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6614 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6615 Remove macros.
6616 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6617 data.
6618 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6619 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6620 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6621 (read_partial_die, read_full_die, read_indirect_string)
6622 (dwarf_decode_line_header, dwarf_decode_macros)
6623 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6624 Update uses of removed variables.
6625 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6626 of removed macros.
6627 (_initialize_dwarf2_read): New function.
6628 * symfile.h (dwarf2_has_info): Update prototype.
6629 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6630 * elfread.c (elf_symfile_read): Likewise.
6631
408752b0
JB
66322004-04-01 Jim Blandy <jimb@redhat.com>
6633
9f744501
JB
6634 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6635 function for register numbers on all the rs6000-derived targets.
6636 (rs6000_gdbarch_init): Don't register a separate
6637 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6638 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6639 variants.
6640
408752b0
JB
6641 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6642 numbering.
6643
2de41bce
PH
66442004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6645
6646 * valarith.c: Update copyright notice.
6647 (value_add): Handle range types.
6648 (value_sub): Ditto.
6649 (value_equal): Ditto.
6650 (value_less): Ditto.
6651 (value_neg): Ditto.
6652 (value_complement): Ditto.
8718a420 6653 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6654 eliminiating unnecessary COERCE_ENUMs.
8718a420 6655
5613d8d3
AC
66562004-03-31 Andrew Cagney <cagney@redhat.com>
6657
6658 * frame.h (frame_unwind_id): Declare.
6659 * frame.c (frame_unwind_id): New function.
6660 (get_prev_frame_1): New function.
6661 (frame_debug_got_null_frame): New function.
6662 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6663 code proper to prev_frame, update description.
6664 * infrun.c (step_over_function): Use frame_unwind_id.
6665
c4557624
JB
66662004-04-31 J. Brobecker <brobecker@gnat.com>
6667
6668 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6669 (hppa64_push_dummy_call): Likewise.
6670
3e6bb910
JB
66712004-03-30 Jim Blandy <jimb@redhat.com>
6672
6673 From Ulrich Weigand:
6674 * utils.c (query): Do not use a va_list variable multiple times.
6675
a2f23071
DJ
66762004-03-29 Daniel Jacobowitz <drow@mvista.com>
6677
6678 * Makefile.in (linux_nat_h): Update dependencies.
6679 * configure.in: Check for <gnu/libc-version.h>.
6680 * configure: Regenerate.
6681 * config.in: Regenerate.
6682 * linux-nat.h: Include "target.h". Add waitstatus field to
6683 struct lwp_info.
6684 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6685 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6686 to.
6687 (lin_lwp_handle_extended): New function. Handle clone events.
6688 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6689 thread exit events.
6690 (child_wait): Handle clone events.
6691 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6692 * linux-nat.c (linux_enable_event_reporting): Turn on
6693 PTRACE_O_TRACECLONE.
6694 (linux_handle_extended_wait): Handle clone events.
6695 * thread-db.c: Include <gnu/libc-version.h>.
6696 (struct private_thread_info): Add dying flag.
6697 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6698 higher.
6699 (attach_thread): Update comments. Handle dying threads.
6700 (detach_thread): Set the dying flag.
6701 (check_event): Always call attach_thread.
6702
8d5f9dcb
DJ
67032004-03-29 Daniel Jacobowitz <drow@mvista.com>
6704
6705 * mips-tdep.c (mips_pdr_data): New.
6706 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6707 (_initialize_mips_tdep): Initialize mips_pdr_data.
6708
66337bb1
CV
67092004-03-29 Corinna Vinschen <vinschen@redhat.com>
6710
6711 * minsyms.c (install_minimal_symbols): Move dropping leading
6712 char from linkage name from here...
6713 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6714 test for "__gnu_compiled*" symbols.
6715
e802b915
JB
67162004-03-28 Jim Blandy <jimb@redhat.com>
6717
6718 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6719 registers to temp register r0 and byte stores as prologue
6720 instructions.
6721
72b56458
AC
67222004-03-28 Andrew Cagney <cagney@redhat.com>
6723
6724 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6725 arm*-*-*.
6726
0bfbda3b
SC
67272004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6728
6729 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6730 and switch the layout to force a display of register window.
6731
5a7225ed
JB
67322004-02-26 J. Brobecker <brobecker@gnat.com>
6733
6734 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6735 of the INTEGER class.
6736
81a07a45
JB
67372004-03-26 Jim Blandy <jimb@redhat.com>
6738
6739 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6740 bytes long on PPC GNU/Linux.
6741
8c691c7a
DC
67422004-03-26 David Carlton <carlton@kealia.com>
6743
6744 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6745
103a0089
AC
67462004-03-25 Andrew Cagney <cagney@redhat.com>
6747
6748 * PROBLEMS: Add general section titles, remove references to
6749 specific releases.
6750
7a5ea0d4
DJ
67512004-03-25 Daniel Jacobowitz <drow@mvista.com>
6752
6753 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6754 INT_REGISTER_SIZE.
6755 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6756 FP_REGISTER_VIRTUAL_SIZE.
6757 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6758 of DEPRECATED_REGISTER_RAW_SIZE.
6759 (arm_register_type): Add gdbarch argument.
6760 (arm_register_raw_size, arm_register_virtual_size): Delete.
6761 (arm_register_byte, arm_extract_return_value)
6762 (arm_store_return_value, arm_get_longjmp_target): Update references
6763 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6764 (arm_gdbarch_init): Likewise. Don't set
6765 deprecated_register_raw_size, deprecated_register_virtual_size,
6766 deprecated_max_register_raw_size,
6767 deprecated_max_register_virtual_size, or
6768 deprecated_max_register_virtual_type. Do set register_type.
6769 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6770 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6771 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6772 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6773 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6774 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6775 INT_REGISTER_SIZE.
6776 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6777 (remote_rdp_store_register): Likewise.
6778
5792a79b
DJ
67792004-03-24 Daniel Jacobowitz <drow@mvista.com>
6780
6781 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6782 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6783 to after osabi initialization.
6784 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6785 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6786 functions.
6787 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6788 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6789 variables.
6790 (mips_linux_init_abi): Append signal trampoline unwinders.
6791
1196bfda
AC
67922004-03-24 Andrew Cagney <cagney@redhat.com>
6793
6794 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6795 * tramp-frame.c: Include "gdb_assert.h".
6796 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6797 correct sizeof.
6798 (tramp_frame_append): Validate the tramp frame's instructions.
6799 * Makefile.in (tramp-frame.o): Update dependencies.
6800
4be282b4
AC
68012004-03-23 Andrew Cagney <cagney@redhat.com>
6802
6803 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6804
69aec09b
AC
68052004-03-23 Andrew Cagney <cagney@redhat.com>
6806
6807 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6808 Nasser as past testsuite/lib/ (and other) maintainers.
6809
63ed89b4
DJ
68102004-03-23 Daniel Jacobowitz <drow@mvista.com>
6811
6812 * infcmd.c (attach_command): Reread symbols if we already have
6813 an exec file.
6814
f3b36427
AC
68152004-03-23 Andrew Cagney <cagney@redhat.com>
6816
6817 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6818
aa2a3f87
AC
68192004-03-23 Andrew Cagney <cagney@redhat.com>
6820
6821 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6822 * gdbarch.h, gdbarch.c: Re-generate.
6823 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6824 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6825 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6826 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6827 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6828 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6829 (DEPRECATED_SIGTRAMP_START): Update.
6830 * blockframe.c (find_pc_sect_partial_function): Update.
6831 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6832
00cac895
DJ
68332004-03-23 Daniel Jacobowitz <drow@mvista.com>
6834
6835 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6836 if necessary.
6837
f561f026
AC
68382004-03-23 Andrew Cagney <cagney@redhat.com>
6839
6840 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6841 predicate, deprecate.
6842 * gdbarch.h, gdbarch.c: Re-generate.
6843 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6844 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6845 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6846 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6847 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6848 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6849 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6850 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6851 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6852 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6853 * blockframe.c (find_pc_partial_function): Update.
6854 * breakpoint.c (bpstat_what): Update.
6855 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6856 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6857 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6858 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6859 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6860 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6861 * i386-nto-tdep.c (i386nto_init_abi): Update.
6862 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6863 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6864 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6865 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6866 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6867 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6868 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6869 * infrun.c (pc_in_sigtramp): Update.
6870 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6871 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6872 * mips-tdep.c (mips_gdbarch_init): Update.
6873 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6874 * ppc-linux-tdep.c: Update comment.
6875 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6876 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6877 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6878 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6879 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6880 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6881 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6882 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6883 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6884 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6885
8050c72f
AC
68862004-03-23 Andrew Cagney <cagney@redhat.com>
6887
d2259dd3
AC
6888 * tramp-frame.h, tramp-frame.h: New files.
6889 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6890 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6891
8050c72f
AC
6892 * Makefile.in: Update all dependencies.
6893
0db9b4b7
AC
68942004-03-23 Andrew Cagney <cagney@redhat.com>
6895
6896 * Makefile.in (trad_frame_h): Add $(frame_h).
6897 * trad-frame.h: Update copyright. Include "frame.h".
6898 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6899 (trad_frame_set_id, trad_frame_get_id): Declare.
6900 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6901 * trad-frame.c: Update copyright.
6902 (struct trad_frame_cache): Define.
6903 (trad_frame_cache_zalloc): New function.
6904 (trad_frame_set_id, trad_frame_get_id): New functions.
6905 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6906
8e645ae7
AC
69072004-03-22 Andrew Cagney <cagney@redhat.com>
6908
6909 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6910 s390_pltstub_unwind_cache.
6911 (s390_stub_frame_unwind_cache): Rename
6912 s390_pltstub_frame_unwind_cache.
6913 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6914 (s390_stub_frame_prev_register): Rename
6915 s390_pltstub_frame_prev_register.
6916 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6917 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6918
6919 From Ulrich Weigand:
6920 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6921 pointer calls like PLT calls.
6922
34fcf120
DJ
69232004-03-22 Daniel Jacobowitz <drow@mvista.com>
6924
6925 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6926 PC rather than the partial function start address. Use the start
6927 address to sanity check the found PDR.
6928
5b917078
DJ
69292004-03-22 Daniel Jacobowitz <drow@mvista.com>
6930
6931 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6932 linux_handle_extended_wait.
6933
8adf9e78
AC
69342004-03-22 Andrew Cagney <cagney@redhat.com>
6935
c3122434
AC
6936 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6937 function.
6938
8adf9e78
AC
6939 * frame.h (generic_pop_current_frame): Delete declaration.
6940 (deprecate_pop_dummy_frame): Deprecate
6941 generic_pop_dummy_frame.
6942 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6943 (generic_pop_current_frame): Delete function.
6944 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6945 generic_pop_current_frame.
6946 * v850-tdep.c (v850_pop_frame): Update.
6947 * mcore-tdep.c (mcore_pop_frame): Update.
6948 * sh64-tdep.c (sh64_pop_frame): Update.
6949 * h8300-tdep.c (h8300_pop_frame): Update.
6950
90ba813f
AC
69512004-03-22 Andrew Cagney <cagney@redhat.com>
6952
6953 * frame.h (deprecated_pc_in_call_dummy): Rename
6954 generic_pc_in_call_dummy.
6955 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6956 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6957 generic_pc_in_call_dummy.
6958 (pc_in_dummy_frame): Make static.
6959 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6960 * gdbarch.h, gdbarch.c: Re-generate.
6961 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6962 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6963 (legacy_get_prev_frame): Ditto.
6964 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6965 comment.
8718a420 6966
ca4bb888
AC
69672004-03-21 Andrew Cagney <cagney@redhat.com>
6968
244675f9
AC
6969 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6970 declaration and out-of-date comment.
6971 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6972 Delete function.
6973 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6974 deprecated_pc_in_call_dummy.
6975
ca4bb888
AC
6976 * infrun.c (handle_inferior_event): For non legacy frames, use the
6977 frame ID and frame type to identify a signal trampoline. Update
6978 comments.
6979
1777c7b4
NW
69802004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6981
6982 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6983 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6984
82417da5
AC
69852004-03-21 Andrew Cagney <cagney@redhat.com>
6986
6987 * frame-unwind.h: Update copyright.
6988 (struct frame_data): Add opaque declaration.
6989 (frame_sniffer_ftype): Declare.
6990 (struct frame_unwind): Add "unwind_data" and "sniffer".
6991 (frame_unwind_register_unwinder): Declare.
6992 (frame_unwind_find_by_frame): Add parameter "this_cache".
6993 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6994 (legacy_get_prev_frame, legacy_get_prev_frame)
6995 (get_frame_type): Pass the prologue_cache to
6996 frame_unwind_find_by_frame.
6997 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6998 "unwinder".
6999 (frame_unwind_register_unwinder): New function.
7000 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7001
b2ba182e
PH
70022004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7003
7004 * bcache.c (print_percentage): Use floating point to avoid
7005 incorrect results when portion*100 overflows.
7006
81332287
KB
70072004-03-19 Kevin Buettner <kevinb@redhat.com>
7008
7009 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7010 (ppc_linux_init_extra_frame_info)
7011 (ppc_linux_frameless_function_invocation)
7012 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7013 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7014 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7015 (rs6000_frame_chain): Delete declarations.
7016 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7017 (ppc_linux_init_extra_frame_info)
7018 (ppc_linux_frameless_function_invocation)
7019 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7020 (ppc_linux_init_abi): Remove registration of above deleted functions.
7021 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7022 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7023 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7024 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7025 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7026 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7027 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7028 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7029 frame management for all OSABIs.
7030
61a65099
KB
70312004-03-19 Andrew Cagney <cagney@redhat.com>
7032
7033 Committed by Kevin Buettner <kevinb@redhat.com>.
7034
7035 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7036 Update copyright.
7037 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7038 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7039 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7040 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7041 unwinders. #ifdef legacy frame code.
7042 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7043 "frame-base.h".
7044 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7045 (struct rs6000_frame_cache, rs6000_frame_cache)
7046 (rs6000_frame_this_id, rs6000_frame_prev_register)
7047 (rs6000_frame_sniffer, rs6000_frame_unwind)
7048 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7049 (rs6000_frame_base): Implement a traditional frame unwinder.
7050 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7051 frame unwinder.
7052
88f7da05
KB
70532004-03-19 Kevin Buettner <kevinb@redhat.com>
7054
7055 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7056 breakpoint address for watchpoints or the catch eventpoints.
7057 Add new paramter ``bptype''. Adjust all callers.
7058
f826dce1
AC
70592004-03-19 Andrew Cagney <cagney@redhat.com>
7060
33cb8b0f
AC
7061 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7062
f826dce1
AC
7063 * PROBLEMS: Delete note that ARM does not use frame code, problem
7064 fixed.
7065
43b1ab88
AC
70662004-03-18 Andrew Cagney <cagney@redhat.com>
7067
292ab034
AC
7068 * stack.c (return_command): Delete code wrapped in #ifdef
7069 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7070
43b1ab88
AC
7071 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7072
dbfe4626
AC
70732004-03-18 Andrew Cagney <cagney@redhat.com>
7074
7075 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7076 DEPRECATED_IN_SIGTRAMP.
7077 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7078 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7079 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7080 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7081 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7082 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7083 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7084 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7085 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7086 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7087
0cad6aec
AC
70882004-03-18 Andrew Cagney <cagney@redhat.com>
7089
7090 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7091 (struct frame_base_table_entry): Define.
7092 (struct frame_base_table): Re-implement as a linked list.
7093 (frame_base_init): Re-implement.
7094 (frame_base_table): Delete function.
7095 (append_predicate): Delete function.
7096 (frame_base_append_sniffer): Update.
7097 (frame_base_set_default): Update.
7098 (frame_base_find_by_frame): Update.
7099 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7100 * Makefile.in (frame-base.o): Update dependencies.
7101
9982c2e7
AC
71022004-03-17 Andrew Cagney <cagney@redhat.com>
7103
7104 * frame.c (legacy_get_prev_frame): Pass correct frame to
7105 frame_unwind_find_by_frame.
7106
8dfe8985
DC
71072004-03-17 David Carlton <carlton@kealia.com>
7108
7109 * NEWS: Mention C++ nested types and namespaces
7110
ed47347a
MC
71112004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7112
7113 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7114 and "Regressions since gdb 5.3.". Add known regressions since
7115 gdb 6.0.
7116
90aeadfc
DC
71172004-03-16 David Carlton <carlton@kealia.com>
7118
7119 * dwarf2read.c (process_structure_scope): Process children even
7120 when we're a declaration.
7121
73912b9b
AC
71222004-03-16 Andrew Cagney <cagney@redhat.com>
7123
7124 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7125 * blockframe.c (find_pc_partial_function)
7126 (find_pc_sect_partial_function): Merge into a single
7127 find_pc_partial_function.
7128
283accbc
MK
71292004-03-16 Mark Kettenis <kettenis@gnu.org>
7130
7131 * i386bsd-nat.c: s/regno/regnum/g.
7132 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7133 FP0_REGNUM.
7134 (store_inferior_registers): Likewise.
7135
f5b1afdf
MK
71362004-03-16 Mark Kettenis <kettenis@gnu.org>
7137
7138 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7139 of i387_fill_fsave.
7140 (store_inferior_registers): Call i387_collect_fsave and
7141 i387_collect_fxsave instead of i387_fill_fsave and
7142 i387_fill_fxsave.
7143
41fe5eb3
AC
71442004-03-15 Andrew Cagney <cagney@redhat.com>
7145
7146 * Makefile.in (frame-unwind.o): Update dependencies.
7147 * frame-unwind.c: Include "gdb_obstack.h".
7148 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7149 parameter.
7150 (append_predicate): Delete function.
7151 (struct frame_unwind_table_entry): New structure.
7152 (struct frame_unwind_table): Replace "sniffer" with "head" and
7153 "tail".
7154 (frame_unwind_append_sniffer): Update.
7155 (frame_unwind_find_by_frame): Update.
7156 (_initialize_frame_unwind): Registe frame_unwind_init using
7157 gdbarch_data_register_pre_init.
7158
3f63813d
MK
71592004-03-15 Mark Kettenis <kettenis@gnu.org>
7160
7161 * i386bsd-nat.c: Update copyright year.
7162 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7163 define unconditionally.
7164
3248c325 71652004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
7166
7167 * i387-tdep.h (i387_collect_fsave): New prototype.
7168 * i387-tdep.c (i387_collect_fsave): New function containing most
7169 of the code from i387_fill_fsave.
3248c325 7170 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 7171
871fbe6a
MK
71722004-03-15 Mark Kettenis <kettenis@gnu.org>
7173
7174 * i386-linux-tdep.c: Update copyright year.
7175 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7176 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7177 svr4_ilp32_link_map_offsets instead of
7178 i386_linux_svr4_fetch_link_map_offsets.
7179
8176b9b8
DC
71802004-03-15 David Carlton <carlton@kealia.com>
7181
7182 Fix for PR c++/1553:
7183 * dwarf2read.c (read_structure_type): Determine type name by
7184 calling determine_class_name.
7185 (determine_class_name): New.
7186 (determine_prefix): Look at TYPE_TAG_NAME and call
7187 determine_class_name when appropriate.
7188 (determine_prefix_aux, class_name): Delete.
9d58e29d 7189 (read_namespace): Set die->type.
8176b9b8 7190
fe8bf7d7
KB
71912004-03-15 Kevin Buettner <kevinb@redhat.com>
7192
7193 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7194 unused macro definition. The definition in target.h (or perhaps
7195 elsewhere) takes precedence.
7196
ed6edd9b
AC
71972004-03-15 Andrew Cagney <cagney@redhat.com>
7198
f9be684a
AC
7199 * ppc-tdep.h: Update copyright.
7200 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7201 function signatures to match "regsets.h".
7202 * ppc-linux-tdep.c: Include "regset.h".
7203 (ELF_GREGSET_SIZE): Delete.
7204 (right_supply_register): New function.
7205 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7206 using right_supply_register.
7207 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7208 functions.
7209 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7210 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7211 (_initialize_ppc_linux_tdep): Do not register
7212 ppc_linux_regset_core_fns.
7213 (ppc_linux_regset_from_core_section): Replace
7214 fetch_core_registers.
7215 (ppc_linux_regset_core_fns): Delete.
7216 * ppc-linux-nat.c: (right_fill_reg): New function.
7217 (supply_gregset): Update call to ppc_linux_supply_gregset.
7218 (fill_gregset): Clear the register set, use right_fill_reg.
7219 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7220 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7221
ed6edd9b
AC
7222 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7223 unsigned.
7224
030f20e1
AC
72252004-03-15 Andrew Cagney <cagney@redhat.com>
7226
7227 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7228 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7229 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7230 and register_gdbarch_data.
7231 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7232 (struct gdbarch_data): Replace "init" by "pre_init" and
7233 "post_init".
7234 * gdbarch.h, gdbarch.c: Re-generate.
7235 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7236 with"obstack", use OBSTACK_ZALLOC.
7237 (dwarf2_frame_ops): Delete.
7238 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7239 (dwarf2_frame_init_reg): Use gdbarch_data.
7240 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 7241 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
7242 (_initialize_svr4_solib): Update.
7243 * user-regs.c (_initialize_user_regs): Update.
7244 * reggroups.c (_initialize_reggroup): Update.
7245 * regcache.c (_initialize_regcache): Update.
7246 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7247 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7248 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7249 * frame-unwind.c (_initialize_frame_unwind): Update.
7250 * frame-base.c (_initialize_frame_base): Update.
7251 * user-regs.c (user_reg_add): Update.
7252 * reggroups.c (reggroup_add): Update.
7253 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7254 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7255 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7256 * frame-base.c (frame_base_table): Update.
7257 * remote.c (_initialize_remote): Update.
7258 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 7259
3111a3fc
AC
72602004-03-15 Andrew Cagney <cagney@redhat.com>
7261
7262 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7263
5ecb7103
KB
72642004-03-15 Kevin Buettner <kevinb@redhat.com>
7265
7266 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7267 * frv-linux-tdep.c: New file.
7268 * frv-tdep.c (struct gdbarch_tdep): Add new field
7269 ``sigcontext_reg_addr''.
7270 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7271 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7272 (frv_sigramp_frame_sniffer): New functions.
7273 (frv_sigtramp_frame_unwind): New static global.
7274 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7275 sniffers.
7276 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7277 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7278
1ccda5e9
KB
72792004-03-15 Kevin Buettner <kevinb@redhat.com>
7280
7281 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7282 but not via a call to error(), when unable to read memory.
7283
b375a0a5
KB
72842004-03-15 Kevin Buettner <kevinb@redhat.com>
7285
7286 * frv-tdep.c (frv_call_dummy_words): Delete.
7287 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7288
4fdf6121
AC
72892004-03-15 Andrew Cagney <cagney@redhat.com>
7290
7291 * infrun.c (handle_step_into_function, step_over_function): Only
7292 update and use STEP_FRAME_ID when the system is using legacy
7293 frames. Update comments.
7294
34021503
MK
72952004-03-14 Mark Kettenis <kettenis@gnu.org>
7296
187e21d1
MK
7297 * amd64-linux-tdep.h: Remove file.
7298 * amd64-linux-tdep.c: Don't include "inferior.h" and
7299 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7300 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7301 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7302 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7303 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7304 macros.
7305 (user_to_gdb_regmap): Remove variable.
7306 (amd64_linux_gregset_reg_offset): New variable.
7307 (amd64_core_fns): Remove variable.
7308 (fetch_core_registers): Remove function.
7309 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7310 functions.
7311 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7312 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7313 * Makefile.in (amd64_linux_tdep_h): Remove.
7314 (amd64-linux-nat.o): Update dependencies.
7315 (amd64-linux-tdep.o): Update dependencies.
7316
99679982
MK
7317 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7318 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7319 functions.
7320 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7321
34021503
MK
7322 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7323 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7324
134d01f1
DJ
73252004-03-14 Daniel Jacobowitz <drow@mvista.com>
7326
7327 * dwarf2read.c (read_structure_type): Rename from
8718a420 7328 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
7329 Return immediately if die->type is set. Call read_type_die before
7330 dwarf2_add_member_fn.
7331 (process_structure_scope): New function.
7332 (read_enumeration_type, process_enumeration_scope): New functions,
7333 broken out from read_enumeration. Don't create the enumeration
7334 type if it has already been created.
7335 (read_enumeration): Removed.
7336 (process_die): Call read_structure_type, process_structure_scope,
7337 read_enumeration_type, and process_enumeration_scope. Just call
7338 new_symbol for base and subrange types. Add a comment about other
7339 type dies.
7340 (read_type_die): Call read_enumeration_type.
7341 (add_partial_structure, new_symbol): Update comments.
7342
65760afb
SC
73432004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7344
7345 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7346
10f59415
SC
73472004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7348
7349 * tui/tui-win.h (tui_get_cmd_list): Declare.
7350 * tui/tui-win.c (tui_command): New function.
7351 (tui_get_cmd_list): New function.
7352 (_initialize_tui_win): Moved initialization of tui command in
7353 tui_get_cmd_list.
7354
7355 * tui/tui-data.c (init_content_element): Setup new data members.
7356 (init_win_info): Likewise.
7357 (free_content_elements): Free it.
7358 * tui/tui-data.h (struct tui_data_element): Store the register
7359 content to print.
7360 (struct tui_data_info): Keep the current register group.
7361
7362 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7363
7364 * tui/tui-regs.h (tui_show_registers): Update prototype.
7365 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7366 (tui_resize_all): No need to calculate anything for register window.
7367 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7368 (tui_set_register_element, tui_set_general_regs_content): Remove.
7369 (tui_set_special_regs_content): Remove.
7370 (tui_set_general_and_special_regs_content): Remove.
7371 (tui_set_float_regs_content): Remove.
7372 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7373 (tui_set_regs_content): Remove.
7374 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7375 (tui_v_show_registers_command_support): Remove.
7376 (tui_show_registers): Use a reggroup to specify the registers to show.
7377 (tui_show_register_group): New function.
7378 (tui_display_registers_from): Compute the layout of register window
7379 and refresh with new API; be sure to delete old register windows.
7380 (tui_check_register_values): Update to use tui_get_register and
7381 tui_display_data.
7382 (tui_display_register): Just refresh the register window part.
7383 (tui_register_format): Format registers and save in tui_data_element.
7384 (tui_get_register): New to combine tui_reg_value_has_changed and
7385 tui_get_register_raw_value; fix to use the new gdb API.
7386 (tui_show_float_command): Renamed tui_reg_float_command.
7387 (tui_show_general_command): Renamed tui_reg_general_command.
7388 (tui_show_special_command): Renamed tui_reg_system_command.
7389 (_initialize_tui_regs): Remove unused commands.
7390
c3364ea4
MK
73912004-03-13 Mark Kettenis <kettenis@gnu.org>
7392
27d1e716
MK
7393 * NEWS (New native configurations): Mention OpenBSD/amd64.
7394
c3364ea4
MK
7395 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7396 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7397 Remove defines.
7398 * config/i386/nm-fbsd64.h: Likewise.
7399 * config/i386/nm-obsd.h: Likewise.
7400 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7401 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7402
b2d6d697
KB
74032004-03-12 Kevin Buettner <kevinb@redhat.com>
7404
7405 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
7406 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7407 New constants.
7408
76e43199
KB
7409 From Richard Sandiford <rsandifo@redhat.com>:
7410 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7411
34ce532e
KB
74122004-03-12 Kevin Buettner <kevinb@redhat.com>
7413
7414 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7415 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7416 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7417 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7418 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7419 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7420 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7421 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7422 definitions from frv-tdep.c to frv-tdep.h.
7423
c4d10515
KB
74242004-03-12 Kevin Buettner <kevinb@redhat.com>
7425
7426 Add shared library support for FR-V FDPIC ABI:
7427 * Makefile.in (solib-frv.o): Add dependencies.
7428 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7429 New functions.
7430 (frv_push_dummy_call): Add support for FDPIC ABI.
7431 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7432 for FDPIC ABI.
7433 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7434 (frv_fdpic_find_canonical_descriptor): Declare.
7435 * solib-frv.c: New file.
7436 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7437 * config/frv/tm-frv.h (solib.h): Include.
7438
ed1bd989
KB
74392004-03-12 Kevin Buettner <kevinb@redhat.com>
7440
7441 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7442 (frv-tdep.o): Update dependencies.
7443 * frv-tdep.h: New file.
7444 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7445 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7446 constants.
7447 (struct gdbarch_tdep): Add new member ``frv_abi''.
7448 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7449 functions.
7450 (new_variant): Set ``frv_abi'' field.
7451 (gdb_arch_init): Detect FDPIC executables.
7452
82b38f72
MK
74532004-03-12 Mark Kettenis <kettenis@gnu.org>
7454
7455 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7456 wrapper.
7457
db1ea9ba
AC
74582004-03-11 Andrew Cagney <cagney@redhat.com>
7459
7460 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7461
f8766ec1
KB
74622004-03-11 Kevin Buettner <kevinb@redhat.com>
7463
7464 * solist.h (master_so_list): New function.
7465 * solib.c (master_so_list): Likewise.
7466 * solib-svr4.c (enable_break): Iterate over so_list entries
7467 obtained from master list instead of entries obtained directly
7468 via svr4_current_sos().
7469
523f6a27
BE
74702004-03-10 Ben Elliston <bje@gnu.org>
7471
7472 * MAINTAINERS: Update my mail address.
7473
37814c18
KI
74742004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7475
7476 * remote-m32r-sdi.c: Support hardware watchpoint.
7477
8b9740d8
DJ
74782004-03-09 Daniel Jacobowitz <drow@mvista.com>
7479
7480 * user-regs.c: Update copyright years.
7481 (struct user_regs): Rename to gdb_user_regs.
7482 (append_user_reg, builtin_user_regs, user_regs_init)
7483 (user_reg_add, user_reg_map_name_to_regnum)
7484 (usernum_to_user_reg): Update.
7485
4bb7a0a7
DJ
74862004-03-09 Daniel Jacobowitz <drow@mvista.com>
7487
7488 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7489 (skip_children): New functions.
7490 (locate_pdi_sibling): Call skip_children.
7491
44e1a9eb
DJ
74922004-03-09 Daniel Jacobowitz <drow@mvista.com>
7493
7494 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7495 * gdbtypes.c (check_typedef): Update comments.
7496
f3dd6933
DJ
74972004-03-09 Daniel Jacobowitz <drow@mvista.com>
7498
7499 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7500 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7501 pointer. Update comment about comp_unit_head.
7502 (struct abbrev_info): Shorten two int flags.
7503 (dwarf_alloc_abbrev): Take a CU argument.
7504 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7505 each time through the loop. Update cleanup argument.
7506 (psymtab_to_symtab_1): Update cleanup call.
7507 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7508 abbrev_obstack.
7509 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7510 Just call obstack_free and clear the pointer.
7511
b40c7d58
DJ
75122004-03-09 Daniel Jacobowitz <drow@mvista.com>
7513
7514 * infrun.c (handle_inferior_event): Remove short-circuit code for
7515 events in a different thread.
7516
333dabeb
DJ
75172004-03-09 Daniel Jacobowitz <drow@mvista.com>
7518
7519 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7520 print the whole transfer.
7521 (initialize_targets): Update description of "set debug target".
7522
aa17d93e
DJ
75232004-03-09 Daniel Jacobowitz <drow@mvista.com>
7524
7525 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7526
0b71f08f
NW
75272004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7528
7529 * MAINTAINERS (write after approval): Add myself.
7530
3930f270
CV
75312004-03-08 Corinna Vinschen <vinschen@redhat.com>
7532
7533 * sh-tdep.c (sh_print_registers_info): Use for loop.
7534 Don't skip multiple registers when a float register is encountered.
7535
a2b4a96c
CV
75362004-03-08 Corinna Vinschen <vinschen@redhat.com>
7537
7538 Fix PR tdep/1291.
7539 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7540 to official SH documentation.
7541
f15a4bc0
AC
75422004-03-07 Andrew Cagney <cagney@redhat.com>
7543
7544 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7545 unused function.
7546
9498281f
DJ
75472004-03-07 Daniel Jacobowitz <drow@mvista.com>
7548
7549 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7550 (arm_get_next_pc): Handle BX and BLX.
7551
449e1137
AC
75522004-03-07 Andrew Cagney <cagney@redhat.com>
7553
eded0a31
AC
7554 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7555 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7556 HPPA_SP_REGNUM.
7557 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7558 (hppa_target_read_fp): Delete.
7559 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7560 register_virtual_size, max_register_raw_size,
7561 max_register_virtual_size, register_byte, register_size,
7562 target_read_fp, fp_regnum, and register_bytes. Set register_type
7563 instead of register_virtual_type.
7564 (hppa32_register_type, hppa64_register_type): Replace
7565 hppa32_register_virtual_type and hppa64_register_virtual_type.
7566 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7567 (HPPA_FP_REGNUM): Define.
7568
f5f907e2
AC
7569 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7570
69b4bbe4
AC
7571 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7572 (pa_do_registers_info): Delete.
7573 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7574 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7575 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7576
78161e48
AC
7577 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7578 GDB_TARGET_IS_HPPA code.
7579 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7580 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7581 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7582 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7583 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7584 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7585 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7586 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7587 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7588 (hppa_frameless_function_invocation, hppa64_store_return_value)
7589 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7590 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7591 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7592 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7593 (find_proc_framesize, deposit_21, restore_pc_queue)
7594 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7595 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7596
782eae8b
AC
7597 Unconditionally enable 64-bit frame and ABI code.
7598 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7599 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7600 push_dummy_frame, fix_call_dummy, push_arguments,
7601 call_dummy_location, extract_return_value, use_struct_convention,
7602 store_return_value, store_struct_return, saved_pc_after_call,
7603 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7604 frame_chain, frame_chain_valid, frameless_function_invocation,
7605 frame_saved_pc, and pop_frame.
78161e48 7606
449e1137
AC
7607 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7608 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7609 (hppa_gdbarch_init): Do not set PC_REGNUM.
7610
12507572
MK
76112004-03-06 Mark Kettenis <kettenis@gnu.org>
7612
7613 * config/alpha/tm-fbsd.h: Remove file.
7614 * config/alpha/fbsd.mt: Tweak comment.
7615 (TM_FILE): Set to tm-alpha.h.
7616
c107cc1b
AC
76172004-03-05 Andrew Cagney <cagney@redhat.com>
7618
7619 * infrun.c (step_over_function): When non-legacy code, and no
7620 step_frame_id, use the unwinder to get the caller's frame ID.
7621
f2e7c15d
MK
76222004-03-05 Mark Kettenis <kettenis@gnu.org>
7623
8b0c3633
MK
7624 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7625 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7626 bfd_arch_unknown. Adjust comment.
7627
f2e7c15d
MK
7628 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7629 * i386obsd-tdep.c: Correct spelling in comment.
7630 * i386nbsd-tdep.c: Correct spelling in comment.
7631 * sparc-tdep.c: Correct spelling in comments.
7632
1198ecbe
DC
76332004-03-05 David Carlton <carlton@kealia.com>
7634
7635 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7636 bug.
7637
9eb42ed1
MK
76382004-03-05 Mark Kettenis <kettenis@gnu.org>
7639
7640 * sparc-tdep.c: Fix typo in comment.
7641
52b5e991
JB
76422004-03-04 J. Brobecker <brobecker@gnat.com>
7643
7644 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7645
d8151005
DJ
76462004-03-04 Daniel Jacobowitz <drow@mvista.com>
7647
7648 * dwarf2read.c: Add comment describing memory lifetimes.
7649 (struct dwarf2_pinfo): Update comment.
7650 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7651 (read_enumeration, new_symbol): Don't use obsavestring.
7652
cbeae229
MK
76532004-03-04 Mark Kettenis <kettenis@gnu.org>
7654
722d18c2
MK
7655 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7656 instead of amd64_fill_fxsave.
7657 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7658 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7659
cbeae229
MK
7660 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7661 Reorganize code a bit.
7662
b4206d25
OF
76632004-03-04 Orjan Friberg <orjanf@axis.com>
7664
7665 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7666 when the frame pointer is pushed. Don't set the frame pointer's
7667 address on the stack unless it's actually located there.
b4206d25
OF
7668 Set the SRP's address on the stack correctly when the PC is still in
7669 the prologue.
7670 (cris_return_value): New function.
7671 (cris_gdbarch_init): Clear deprecated store_return_value,
7672 extract_return_value.
7673
49b0b195
JB
76742004-03-02 Jim Blandy <jimb@redhat.com>
7675
7676 * stabsread.c (reg_value_complaint): The maximum register number
7677 is one less than the number of registers.
7678
e9ff708b
AC
76792004-03-02 Andrew Cagney <cagney@redhat.com>
7680
7681 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7682 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7683 trailing comma and redundant assignment of I386_ST0_REGNUM.
7684 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7685 32-bit segment registers.
7686
d4715e41
AC
76872004-03-01 Andrew Cagney <cagney@redhat.com>
7688
7689 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7690 use frame_relative_level and get_next_frame.
7691
3ce2bf18
AC
76922004-02-29 Andrew Cagney <cagney@redhat.com>
7693
7694 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7695 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7696 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7697 Delete macro.
7698
2da6aac3
DJ
76992004-02-29 Daniel Jacobowitz <drow@mvista.com>
7700
7701 * inflow.c (terminal_inferior): Don't give up the terminal if we
7702 previously couldn't get the inferior's terminal state.
7703
6ba34a8d
DJ
77042004-02-29 Daniel Jacobowitz <drow@mvista.com>
7705
7706 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7707 PC_REGNUM.
7708
faae5abe
AC
77092004-02-28 Andrew Cagney <cagney@redhat.com>
7710
7711 * NEWS: Refer to GDB 6.1.
7712 * README: Refer to GDB 6.1.
7713 * PROBLEMS: Refer to GDB 6.1.
7714
2227a3c5
DJ
77152004-02-28 Daniel Jacobowitz <drow@mvista.com>
7716
7717 * thread-db.c (disable_thread_signals): Remove unused function.
7718
80571bff
MK
77192004-02-28 Mark Kettenis <kettenis@gnu.org>
7720
041bd74b
MK
7721 * amd64-nat.c: Include "gdb_string.h".
7722 (amd64_collect_native_gregset): Zero-extend the 32-bit
7723 general-purpose registers and %eip.
7724
3c017e40
MK
7725 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7726 * amd64-tdep.c (amd64_collect_fxsave): New function.
7727 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7728
80571bff
MK
7729 * i387-tdep.h: Update copyright year.
7730 (i387_collect_fxsave): New prototype.
7731 * i387-tdep.c: Update copyright year.
7732 (i387_collect_fxsave): New function containing most of the code
7733 from i387_fill_fxsave.
7734 (i387_fill_fxsave): Call i387_collect_fxsave.
7735
50d71875
AC
77362004-02-28 Andrew Cagney <cagney@redhat.com>
7737
7738 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7739 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7740
4a28816e
MK
77412004-02-28 Mark Kettenis <kettenis@gnu.org>
7742
7743 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7744
dbda9972
AC
77452004-02-28 Andrew Cagney <cagney@redhat.com>
7746
7747 * utils.c: Use "", instead of <>, to include readline.
7748 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7749 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7750 * source.c, solib.c, exec.c, event-top.c: Ditto.
7751 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7752 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7753 * Makefile.in: Update all dependencies.
7754 (readline_tilde_h, readline_history_h): Define.
7755 (readline_headers): Delete.
7756
83277a99
MK
77572004-02-28 Mark Kettenis <kettenis@gnu.org>
7758
91ae4303
MK
7759 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7760 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7761 "config/i386/tm-lx64.h".
7762
83277a99
MK
7763 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7764 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7765 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7766
6e1d7d6c
AC
77672004-02-28 Andrew Cagney <cagney@redhat.com>
7768
ecc9ac84
AC
7769 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7770
6e1d7d6c
AC
7771 * breakpoint.c (_initialize_breakpoint): Use
7772 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7773 Add help to show command.
7774
9671aeef
MK
77752004-02-28 Mark Kettenis <kettenis@gnu.org>
7776
7fa2737c
MK
7777 * i386-nat.c: Reformat to be closer to coding standards.
7778 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7779 `retval'. Make variables `align' and `size' local to while-loop.
7780 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7781 (_initialize_i386_nat): New prototype.
7782
9671aeef
MK
7783 * tui/tui.c: Include <readline/readline.h> instead of
7784 "readline/readline.h". Include it after <term.h> and
7785 "gdb_curses.h".
7786
fca7aa43
AC
77872004-02-27 Andrew Cagney <cagney@redhat.com>
7788
412275d5
AC
7789 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7790 the new frame unwind code.
7791 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7792 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7793 PCOQ_HEAD_REGNUM.
7794
fca7aa43
AC
7795 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7796 "return_value" and "push_dummy_call".
7797 (hppa32_use_struct_convention): Delete unused function.
7798 (hppa32_store_return_value): Delete unused function.
7799 (hppa32_extract_return_value): Delete unused function.
7800 (hppa32_stack_align): Delete function.
7801
e6a8a7d2
EZ
78022004-02-27 Eli Zaretskii <eliz@elta.co.il>
7803
7804 * coffread.c (enter_linenos): Don't let rawptr reference memory
7805 outside linetab[]'s limits.
7806
1797a8f6
AC
78072004-02-27 Andrew Cagney <cagney@redhat.com>
7808
7809 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7810 inferior stack space - the stack needs to grow upwards.
7811 (hppa32_frame_align): New function.
7812 (hppa64_frame_align): Replace hppa_frame_align.
7813 (hppa_gdbarch_init): Update.
7814
2e4b5889
OF
78152004-02-26 Orjan Friberg <orjanf@axis.com>
7816
7817 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7818 (dwarf2-frame.h): Include.
7819 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7820 Remove static variables related to ABI setting.
7821 (struct gdbarch_tdep): Remove cris_abi member.
7822 (struct frame_extra_info): Remove.
7823 (cris_unwind_cache, stack_item): New structs.
7824 (cris_frame_unwind, cris_frame_base): New variables.
7825 (push_stack_item, pop_stack_item)
7826 (cris_frame_unwind_cache, cris_frame_this_id)
7827 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7828 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7829 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7830 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7831 (cris_reg_struct_has_addr): New functions.
7832 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7833 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7834 (cris_store_struct_return, cris_frameless_function_invocation)
7835 (cris_pop_frame, cris_skip_prologue_main)
7836 (cris_abi_original_store_return_value)
7837 (cris_abi_v2_store_return_value)
7838 (cris_abi_original_extract_return_value)
7839 (cris_abi_v2_extract_return_value)
7840 (cris_abi_original_reg_struct_has_addr)
7841 (cris_abi_v2_reg_struct_has_addr)
7842 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7843 (cris_push_return_address, cris_abi_update): Remove.
7844 (_initialize_cris_tdep): Remove ABI command.
7845 (cris_dump_tdep): Ditto.
8718a420 7846 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7847 Set store_return_value, extract_return_value, push_dummy_code,
7848 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7849 frame_unwind_append_sniffer, frame_base_set_default.
7850 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7851 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7852 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7853 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7854 init_extra_frame_info, frameless_function_invocation, frame_chain,
7855 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7856 dummy_write_sp.
8718a420 7857
6b9acc27
JJ
78582004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7859
7860 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7861 * valprint.c (print_hex_chars): Change from static to external.
7862 (print_char_chars): New function.
7863 * printcmd.c (print_scalar_formatted): For integer and enum types
7864 that are longer than LONGEST, perform processing via appropriate
7865 print_*_chars routines.
7866
a431654a
AC
78672004-02-26 Andrew Cagney <cagney@redhat.com>
7868
7869 * Makefile.in: Update dependencies.
7870 Changes from Ulrich Weigand,
7871 * s390-tdep.c: Include "dwarf2-frame.h".
7872 (s390_dwarf2_frame_init_reg): New function.
7873 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7874 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7875
fa8d40ab
JJ
78762004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7877
7878 * breakpoint.c (pending_break_support): New setting variable.
7879 (break_command_1): Account for pending_break_support setting
7880 when creating pending breakpoints.
7881 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7882 (_initialize_breakpoint): Add "set breakpoint pending" and
7883 "show breakpoint pending" commands.
7884
0dcd613f
AC
78852004-02-26 Andrew Cagney <cagney@redhat.com>
7886
7887 Fix PR i18n/1570.
7888 * charset.c (backslashable, backslashed, represented): Remove 'e'
7889 from list of escaped characters, not part of ISO-C.
7890
479272a3
JB
78912004-02-25 J. Brobecker <brobecker@gnat.com>
7892
7893 From Peter Schauer <schauer@pdf.de>:
7894 * tui/tui.c: Move system header includes after local includes.
7895 Fixes a build failure on solaris systems.
7896
7613d933
JB
78972004-02-25 J. Brobecker <brobecker@gnat.com>
7898
7899 * configure.in: Refine the previous change.
7900 * configure: Regenerate.
7901
9c1488cb
MK
79022004-02-25 Mark Kettenis <kettenis@gnu.org>
7903
7904 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7905 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7906 "amd64-tdep.h" instead of "x86-64-tdep.h".
7907 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7908 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7909 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7910 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7911 and "x86-64-tdep.c".
7912 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7913 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7914 and "x86-64-tdep.c".
7915 * amd64bsd-nat.c: Update copyright year.
7916 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7917 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7918 "x86-64-tdep.h".
7919 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7920 "x86-64-tdep.h".
7921 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7922 "x86-64-tdep.h".
7923 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7924 "x86-64-tdep.h".
7925 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7926 "x86-64-tdep.h".
7927 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7928 "x86-64-tdep.h".
8718a420 7929 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7930 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7931 * Makefile.in (amd64_linux_tdep_h): Renamed from
7932 x86_64_linux_tdep_h.
7933 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7934 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7935 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7936 (amd64obsd-tdep.o): Update dependencies.
7937 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7938 dependencies.
7939 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7940 dependencies.
7941 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7942 amd64-linux-nat.c amd64-linux-tdep.c.
7943 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7944 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7945 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7946 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7947 amd64-tdep.o and amd64-linux-tdep.o.
7948 (TM_FILE): Set to tm-linux64.h.
7949 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7950 (NAT_FILE): Set to nm-linux64.h.
7951 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7952 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7953 amd64-tdep.o.
7954 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7955 amd64-tdep.o.
7956 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7957 amd64-tdep.o.
7958
4b8dad4a
RM
79592004-02-25 Roland McGrath <roland@redhat.com>
7960
7961 * remote.c (remote_protocol_qPart_auxv): New variable.
7962 (init_all_packet_configs): Initialize it.
7963 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7964 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7965 (show_remote_cmd): Call it.
7966 (_initialize_remote): Initialize commands.
7967 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7968 service TARGET_OBJECT_AUXV requests.
7969
66745969
JB
79702004-02-25 J. Brobecker <brobecker@gnat.com>
7971
7972 * configure.in: Make sure that the wborder function is available.
7973 Otherwise, search for it in the cur_colr library.
7974 * configure: Regenerate.
7975
79508e1e
AC
79762004-02-25 Andrew Cagney <cagney@redhat.com>
7977
7978 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7979
571ee600
MK
79802004-02-25 Mark Kettenis <kettenis@gnu.org>
7981
7982 * config/i386/tm-x86-64linux.h: Tweak comments.
7983
2b1b322f 79842004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
7985
7986 * MAINTAINERS: Add self to write-after-approval list.
7987
4d2acc65
AC
79882004-02-25 Andrew Cagney <cagney@redhat.com>
7989
4b8dad4a 7990 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
7991 * cli/cli-script.c (execute_control_command): Unconditionally
7992 install a cleanup. Default "ret" to "invalid_control". Use
7993 "break" instead of "return" to escape from the switch.
7994
4cfcaf21
JB
79952004-02-24 J. Brobecker <brobecker@gnat.com>
7996
7997 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7998 with the lines macro defined in term.h on AiX.
7999 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8000 a collision with the label_width macro defined in term.h on AiX.
8001
54a5c8d8
KB
80022004-02-23 David Mosberger <davidm@hpl.hp.com>
8003
8004 Committed by Kevin Buettner <kevinb@redhat.com>.
8005
8006 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8007 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8008 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8009 instead of ia64_write_pc().
8010 * ia64-linux-tdep.c (regcache.h): Include.
8011 (ia64_linux_write_pc): New function.
4b8dad4a 8012
8a1dac83
RM
80132004-02-23 Roland McGrath <roland@redhat.com>
8014
8015 * auxv.c (info_auxv_command): Fix typos in error messages.
8016
90f90721
MK
80172004-02-23 Mark Kettenis <kettenis@gnu.org>
8018
8a1dac83 8019 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8020 (enum amd64_regnum): New.
8021 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8022 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8023 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8024 (X86_64_XMM1_REGNUM): Removed.
8025 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8026 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8027 prototypes for renamed functions.
8028 * x86-64-tdep.c: Fix typo.
8029 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8030 register numbers.
8031 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8032 Use constants from `enum amd64_regnum' for register numbers.
8033 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8034 (amd64_analyze_prologue, amd64_frame_cache,
8035 amd64_sigtramp_frame_cache): Use constants from `enum
8036 amd64_regnum' for register numbers.
8037 (amd64_supply_fpregset): Adjust for renamed functions.
8038 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8039 `enum amd64_regnum' for register numbers.
8040 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8041 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8042 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8043 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8044 (amd64_linux_fill_gregset): Adjust for renamed macros.
8045 (fetch_core_registers): Adjust for renamed functions.
8046 (amd64_linux_init_abi): Adjust for renamed functions.
8047 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8048 renamed functions.
8049 * amd64-nat.c: Adjust for renamed macros.
8050 * amd64bsd-nat.c (fetch_inferior_registers)
8051 (store_inferior_registers): Use constants from `enum amd64_regnum'
8052 for register numbers. Adjust for renamed variables.
8053 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8054 renamed variables.
8055 (_initialize_amd64fbsd_nat): Use constants from `enum
8056 amd64_regnum' for register numbers.
8057 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8058 `enum amd64_regnum' for register numbers.
8059 (amd64fbsd_init_abi): Adjust for renamed functions.
8060 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8061 `enum amd64_regnum' for register numbers.
8062 (amd64nbsd_init_abi): Adjust for renamed functions.
8063 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8064 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8065 `enum amd64_regnum' for register numbers.
8066 (amd64obsd_init_abi): Adjust for renamed functions.
8067 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8068
d5479188
JJ
80692004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8070
8071 * breakpoint.c (print_one_breakpoint): Do not output spaces
8072 after printing <PENDING> for a pending breakpoint.
8073
81cb7cc9
JJ
80742004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8075
8076 * printcmd.c (print_scalar_formatted): Initialize val_long
8077 to remove compiler warning message.
8078
cbdeadca
JJ
80792004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8080
8081 * defs.h (nquery, yquery): New prototypes.
8082 * breakpoint.c (break_command_1): Use new nquery interface.
8083 * utils.c (defaulted_query, nquery, yquery): New functions.
8084
da6bab63
AC
80852004-02-23 Andrew Cagney <cagney@redhat.com>
8086
2f690297
AC
8087 * hppa-tdep.c (hppa_frame_align): New function.
8088 (hppa32_push_dummy_call): New function.
8089 (hppa64_push_dummy_call): New function.
8090 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8091 disabled.
8a1dac83 8092
da6bab63
AC
8093 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8094 FIX_CALL_DUMMY when push_dummy_call is available.
8095 (call_function_by_hand, push_dummy_code): Ditto.
8096
abf9b42d
AC
80972004-02-22 Andrew Cagney <cagney@redhat.com>
8098
8099 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8100 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8101 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8102 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8103 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8104 call_dummy_location to ON_STACK.
8105
10fc94a4
MK
81062004-02-22 Mark Kettenis <kettenis@gnu.org>
8107
51433e4b
MK
8108 * x86-64-linux-tdep.c: Tweak comment.
8109 (amd64_linux_supply_gregset): Renamed from
8110 x86_64_linux_supply_gresget.
8111 (amd64_linux_fill_gregset): Renamed from
8112 x86_64_linux_fill_gregset.
8113 (fetch_core_registers): Adjust for renamed functions.
8114 (amd64_core_fns): Renamed from x86_64_core_fns.
8115 (amd64_linux_sigtramp_start): Renamed from
8116 x86_64_linux_sigtramp_start.
8117 (amd64_linux_pc_in_sigtramp): Renamed from
8118 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8119 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8120 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8121 (amd64_linux_sigcontext_addr): Renamed from
8122 x86_64_linux_sigcontext_addr.
8123 (amd64_linux_sc_reg_offset): Renamed from
8124 x86_64_linux_sc_reg_offset.
8125 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8126 Adjust for renamed functions and variables.
8127 (_initialize_amd64_linux_tdep): Renamed from
8128 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8129 variables.
8130 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8131 Adjust for renamed functions.
8132
430eaf2e
MK
8133 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8134 from x86_64_linux_gregset64_reg_offset.
8135 (amd64_linux_gregset32_reg_offset): Rename from
8136 x86_64_linux_gregset64_reg_offset.
8137 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8138 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8139 (amd64_linux_dr_set_control): Renamed from
8140 x86_64_linux_dr_set_control. Adjust for renamed functions.
8141 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8142 Adjust for renamed functions.
8143 (amd64_linux_dr_reset_addr): Renamed from
8144 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8145 (amd64_linux_dr_get_status): Renamed from
8146 x86_64_linux_dr_get_status. Adjust for renamed functions.
8147 (_initialize_amd64_linux_nat): Renamed from
8148 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8149 functions.
8150 * config/i386/nm-x86-64linux.h: Update copyright year.
8151 Adjust for renamed functions.
8152
10fc94a4
MK
8153 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8154 amd64fbsd_sigtramp_start.
8155 (amd64fbsd_sigtramp_end_addr): Renamed from
8156 amd64fbsd_sigtramp_end.
8157 (amd64fbsd_init_abi): Adjust for renamed variables.
8158 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8159 variables.
8160 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8161 amd64fbsd_sigtramp_start.
8162 (amd64fbsd_sigtramp_end_addr): Renamed from
8163 amd64fbsd_sigtramp_end.
8164
343af405
AC
81652004-02-22 Andrew Cagney <cagney@redhat.com>
8166
537987fc
AC
8167 * hppa-tdep.c (hppa32_return_value): New function.
8168 (hppa64_return_value): New function.
8169 (hppa_gdbarch_init): Set return_value; keep disabled.
8170
fad850b2
AC
8171 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8172 struct-return and inferior function call methods.
8173
26d08f08
AC
8174 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8175 "frame-base.h".
8176 (struct hppa_frame_cache): Define.
8177 (hppa_frame_cache, hppa_frame_this_id): New functions.
8178 (hppa_frame_prev_register): New function.
8179 (hppa_frame_unwind, hppa_frame_base): New variables.
8180 (hppa_frame_unwind_sniffer): New function.
8181 (hppa_frame_base_address, hppa_unwind_pc): New function.
8182 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8183 sniffer, and frame base sniffer; keep disabled.
8184 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8185 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8186
e7d7bd65
AC
8187 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8188 to predicates for "seriously old code".
8189
e963316f
AC
8190 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8191 runtime if(0).
8192
56132691
AC
8193 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8194 unsigned.
8195 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 8196
343af405
AC
8197 * config/pa/tm-hppa.h: Update copyright.
8198 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8199 (deprecated_init_frame_pc_default): Delete declaration.
8200 (hppa_frame_init_saved_regs): Delete declaration.
8201 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8202 * hppa-tdep.c: Include "arch-utils.h".
8203 (hppa_gdbarch_init): Set deprecated init_frame_pc
8204 and deprecated frame_init_saved_regs.
8205 (hppa_frame_init_saved_regs): Make static.
8206
f5859b4d
MK
82072004-02-22 Mark Kettenis <kettenis@gnu.org>
8208
86f6f8e7 8209 Remove old 386BSD support.
cf7c5c23 8210 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
8211 * configure.host: Remove i[34567]86-*-bsd*.
8212 * configure.tgt: Remove i[34567]86-*-bsd*.
8213 * i386b-nat.c: Removed.
8214 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
8215 (i386b-nat.o): Remove dependencies.
8216
86f6f8e7
MK
8217 * config/i386/i386bsd.mh: Removed.
8218 * config/i386/i386bsd.mt: Removed.
8219 * config/i386/nm-i386bsd.h: Removed.
8220 * config/i386/tm-i386bsd.h: Removed.
8221 * config/i386/xm-i386bsd.h: Removed.
8222
971218cd
MK
8223 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8224
7e654c37
MK
8225 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8226 (amd64fbsd_init_abi): Set link map offsets.
8227 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8228 (amd64nbsd_init_abi): Set link map offsets.
8229 * amd64obsd-tdep.c: Include "solib-svr4.h".
8230 (amd64obsd_init_abi): Set link map offsets.
8231 * i386fbsd-tdep.c: Include "solib-svr4.h".
8232 (i386fbsd_init_abi): Set link map offsets.
8233 * i386nbsd-tdep.c: Include "solib-svr4.h".
8234 (i386nbsdelf_init_abi): Set link map offsets.
8235 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8236 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8237 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8238 solib-legacy.o and core-aout.o. Reformat.
8239 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8240 solib-svr4.o, solib-legacy.o. Reformat.
8241 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8242 * config/i386/nbsdelf.mh: Reformat.
8243 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8244 solib-svr4.o, solib-legacy.o and corelow.o.
8245 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8246 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8247 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8248 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8249 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8250 (TM_FILE): Set to tm-fbsd.h.
8251 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8252 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8253 solib-svr4.o.
8254 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8255 solib-svr4.o.
8256 (TM_FILE): Set to nm-nbsd.h.
8257 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8258 Simplify shared library support. Don't include "elf/common.h".
8259 (SVR4_SHARED_LIBS): Don't define.
8260 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8261 "solib.h".
8262 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8263 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8264 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8265 Don't include "i386/tm-i386.h". Include "solib.h".
8266 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8267 Don't include "i386/tm-i386.h".
8268 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8269 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8270 Include "i386/xm-i386.h".
8271 (HOST_LONG_DOUBLE_FORMAT): Remove.
8272
5d93ae8c
MK
8273 Fix OpenBSD/i386 sigtramp recognition.
8274 * i386-tdep.h: Update copyright year.
8275 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8276 (i386bsd_sigtramp_end): New prototypes.
8277 (i386fbsd_sigtramp_start_addr): Renamed from
8278 i386fbsd_sigtramp_start.
8279 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8280 (i386obsd_sigtramp_start_addr): Renamed from
8281 i386obsd_sigtramp_start.
8282 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8283 * i386bsd-tdep.c: Update copyright year.
8284 (i386bsd_pc_in_sigtramp): Make public.
8285 * i386fbsd-nat.c: Update copyright year.
8286 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8287 * i386fbsd-tdep.c: Update copyright year.
8288 (i386fbsd_sigtramp_start_addr): Renamed from
8289 i386fbsd_sigtramp_start.
8290 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8291 (i386fbsdaout_init_abi): Adjust for renamed variables.
8292 * i386obsd-nat.c: Update copyright year.
8293 (_initialize_i386obsd_nat): Adjust for renamed variables.
8294 * i386obsd-tdep.c: Include "target.h".
8295 (i386obsd_page_size): New variable.
8296 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8297 (i386obsd_sigtramp_end): New functions.
8298 (i386obsd_sigtramp_start_addr): Renamed from
8299 i386obsd_sigtramp_start.
8300 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8301 (i386obsd_init_abi): Adjust for renamed variables. Set
8302 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8303 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8304
84d04465
MK
8305 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8306 trampoline change in OpenBSD kernel.
8307
b053aceb
MK
8308 * amd64-nat.c: Update copyright year.
8309 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8310 architecture from REGCACHE.
8311
f5859b4d
MK
8312 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8313 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8314
e4bbbda8
MK
83152004-02-21 Mark Kettenis <kettenis@gnu.org>
8316
ba361932
MK
8317 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8318 i[34567]86-*-openbsd3.[0-3].
8319 * config/i386/obsdaout.mh: New file.
8320
d3e48264
MK
8321 * config/i386/obsd.mh (MH_FLAGS): Remove.
8322
60a6eeb6
MK
8323 Fix PR build/1549.
8324 * i386obsd-tdep.c: Update copyright years. Include
8325 "solib-svr4.h".
8326 (i386obsd_init_abi): Don't set regset_from_core_section here.
8327 (i386obsd_aout_init_abi): New function. Set
8328 regset_from_core_section here.
8329 (i386obsd_elf_init_abi): New function.
8330 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8331 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8332 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8333 (TM_FILE): Set to tm-nbsd.h.
8334
8335 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8336 solib-sunos.o.
8337
e4bbbda8
MK
8338 * solib-svr4.h: Update copyright year.
8339 (svr4_ilp32_fetch_link_map_offsets)
8340 (svr4_lp64_fetch_link_map_offsets): New prototype.
8341 * solib-svr4.c: Update copyright year.
8342 (svr4_ilp32_fetch_link_map_offsets)
8343 (svr4_lp64_fetch_link_map_offsets): New function.
8344
f6fe98ef
DJ
83452004-02-20 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8348 to the partial symbol table.
8349
589ca796
JB
83502004-02-20 J. brobecker <brobecker@gnat.com>
8351
8352 * PROBLEMS: Add description of problem documented under gdb/1560.
8353
2031c21a
MK
83542004-02-20 Mark Kettenis <kettenis@gnu.org>
8355
30b344b1
MK
8356 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8357 comments.
8358 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8359 functions.
8360 (amd64obsd_init_abi): Reorder initializations. Use
8361 amd64obsd_r_reg_offset to initialize the general-purpose register
8362 set details. Set regset_from_core_section.
8363 (_initialize_amd64obsd_tdep): Rename from
8364 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8365 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8366 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8367
2031c21a
MK
8368 * NEWS (New native configurations): Mention OpenBSD/alpha.
8369 * configure.tgt: Add alpha*-*-openbsd*.
8370 * configure.host: Add alpha*-*-openbsd*.
8371 * alphanbsd-tdep.c: Update copyright year.
8372 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8373
42471775
AC
83742004-02-20 Andrew Cagney <cagney@redhat.com>
8375
8376 Fix PR tdep/1372.
8377 * configure.tgt: Delete target "none-*-*".
8378 * configure.host: Delete host "none-*-*".
8379 * config/none/none.mh: Delete file.
8380 * config/none/none.mt: Delete file.
8381 * config/none/xm-none.h: Delete file.
8382 * config/none/tm-none.h: Delete file.
8383 * config/none/nm-none.h: Delete file.
8384
960ccd7d
FF
83852004-02-19 Fred Fish <fnf@redhat.com>
8386
8387 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8388 cache->uses_fp prior to setting it.
8389
5f883edd
FF
83902004-02-19 Fred Fish <fnf@redhat.com>
8391
8392 Fix for PR breakpoint/1558.
8393 * sh-tdep.c (IS_JSR): New macro.
8394 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8395
f98c22d5
JB
83962004-02-19 Jim Blandy <jimb@redhat.com>
8397
8398 * findvar.c (value_from_register): Doc fix.
8399
95051d27
JJ
84002004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8401
8402 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8403 type being greater than sizeof of host's LONGEST. Always use
8404 unpack_long() unless format 'f' chosen.
8405
ccefbec3
EZ
84062004-02-19 Joel Brobecker <brobecker@gnat.com>
8407
8408 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 8409
ccefbec3
EZ
8410 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8411 contains a symbol wich is the best, non-exact match for the given
8412 pc. Update comments.
8413
84142004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8415
2ede629f
EZ
8416 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8417 macro, which was part of the now removed Mach 3 port.
8418 * utils.c (request_quit): Ditto.
8419
567ee972
MK
84202004-02-18 Mark Kettenis <kettenis@gnu.org>
8421
8422 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8423 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8424
50cca7bb
MK
84252004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8426
8427 Committed by Mark Kettenis <kettenis@gnu.org>.
8428
8429 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8430 Define.
8431
226361c4
AC
84322004-02-18 Andrew Cagney <cagney@redhat.com>
8433
8434 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8435 CONFIG_INSTALL and CONFIG_UNINSTALL.
8436 * configure: Re-generate.
8437 * interps.h (INTERP_TUI): Define.
8438 * Makefile.in: Update dependencies.
8439 (TUI): New macro.
8440 (tui-main.o): Specify dependencies.
8441 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8442 * tui/tui-main.c: New file.
8443
49cfa46f
MK
84442004-02-18 Mark Kettenis <kettenis@gnu.org>
8445
e2879ccb
MK
8446 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8447 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8448 dependencies.
8449 * configure.host: Add x86_64-*-openbsd*.
8450 * configure.tgt: Add x86_64-*-openbsd*.
8451 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8452
c43f4bec
MK
8453 * tui/tui.c: Don't include <malloc.h>.
8454
09ae75b6
MK
8455 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8456 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8457 amd64nbsd-tdep.c.
8458
49cfa46f 8459 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 8460 static. Remove extraneous whitespace.
49cfa46f
MK
8461 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8462 static.
8463
05957fdb
JB
84642004-02-17 Jim Blandy <jimb@redhat.com>
8465
8466 * findvar.c (value_from_register): Doc fix.
8467
d0f54f9d
JB
84682004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8469
8470 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8471
8a1dac83 8472 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8473 CORE_ADDR as type for selectors. Correct types for GNU run time
8474 message lookup function to use double indirection.
8475 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8476 * objc-lang.h (lookup_child_selector): Adapt prototype.
8477
9cbd5950
JB
8478 * s390-nat.c (SUBOFF): New macro.
8479 (supply_gregset, fill_gregset): Use it to handle debugging
8480 of 32-bit exectuables running under a 64-bit kernel.
8481 * s390-tdep.c: Include "solib-svr4.h".
8482 (s390_svr4_fetch_link_map_offset): New function.
8483 (s390x_svr_fetch_link_map_offset): Likewise.
8484 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8485 * Makefile.in (s390-tdep.o): Update dependencies.
8486
a8c99f38
JB
8487 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8488 "frame-unwind.h".
8489 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8490 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8491 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8492 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8493 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8494 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8495 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8496 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8497 (struct frame_extra_info): Remove.
8498 (s390_memset_extra_info): Remove.
f73b1eff
JB
8499 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8500 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8501 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8502 (is_rse): Renamed to ...
8503 (is_rsy): ... this. Support long displacements.
8504 (is_rxe): Renamed to ...
8505 (is_rxy): ... this. Support long displacements.
8506 (compute_x_addr): Support long displacements.
8507 (struct s390_prologue_data): New data type.
8508 (s390_on_stack): Change API to use struct s390_prologue_data.
8509 (s390_store): Reimplement.
8510 (s390_load): New function.
8511 (s390_get_signal_frame_info): Remove.
8512 (s390_get_frame_info): Remove, replace by ...
8513 (s390_analyze_prolog): ... this new function.
8514 (s390_check_function_end): Remove.
8515 (s390_function_start): Remove.
8516 (s390_frameless_function_invokation): Remove.
8517 (s390_is_sigreturn): Remove.
8518 (s390_init_frame_pc_first): Remove.
8519 (s390_init_frame_extra_info): Remove.
8520 (s390_frame_init_saved_regs): Remove.
8521 (s390_frame_saved_pc_nofix): Remove.
8522 (s390_frame_saved_pc): Remove.
8523 (s390_frame_chain): Remove.
8524 (s390_fp_regnum, s390_read_fp): Remove.
8525 (s390_pop_frame_regular, s390_pop_frame): Remove.
8526 (s390_saved_pc_after_call): Remove.
8527 (s390_skip_prologue): Reimplement.
8528 (s390_in_function_epilogue_p): Support long displacements.
8529 (struct s390_unwind_cache): New data structure.
8530 (s390_frame_unwind_cache): New function.
8531 (s390_prologue_frame_unwind_cache): Likewise.
8532 (s390_backchain_frame_unwind_cache): Likewise.
8533 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8534 (s390_frame_unwind): Define.
8535 (s390_frame_sniffer): New function.
8536 (struct s390_pltstub_unwind_cache): New data structure.
8537 (s390_pltstub_frame_unwind_cache): New function.
8538 (s390_pltstub_frame_this_id): Likewise.
8539 (s390_pltstub_frame_prev_register): Likewise.
8540 (s390_pltstub_frame_unwind): Define.
8541 (s390_pltstub_frame_sniffer): New function.
8542 (struct s390_sigtramp_unwind_cache): New data structure.
8543 (s390_sigtramp_frame_unwind_cache): New function.
8544 (s390_sigtramp_frame_this_id): Likewise.
8545 (s390_sigtramp_frame_prev_register): Likewise.
8546 (s390_sigtramp_frame_unwind): Define.
8547 (s390_sigtramp_frame_sniffer): New function.
8548 (s390_frame_base_address, s390_local_base_address): New functions.
8549 (s390_frame_base): Define.
8550 (s390_unwind_pc, s390_unwind_sp): New function.
8551 (s390_push_dummy_call): Use new frame base location.
8552 (s390_unwind_dummy_id): Likewise.
8553 (s390_gdbarch_init): Remove calls to:
8554 set_gdbarch_frameless_function_invocation,
8555 set_gdbarch_deprecated_init_frame_pc,
8556 set_gdbarch_deprecated_frame_chain,
8557 set_gdbarch_deprecated_frame_init_saved_regs,
8558 set_gdbarch_deprecated_pop_frame,
8559 set_gdbarch_deprecated_init_extra_frame_info,
8560 set_gdbarch_deprecated_init_frame_pc_first,
8561 set_gdbarch_deprecated_target_read_fp,
8562 set_gdbarch_deprecated_frame_saved_pc,
8563 set_gdbarch_deprecated_saved_pc_after_call,
8564 set_gdbarch_deprecated_fp_regnum.
8565 Add calls to:
8566 set_gdbarch_in_solib_call_trampoline,
8567 frame_unwind_append_sniffer,
8568 frame_base_set_default,
8569 set_gdbarch_unwind_pc,
8570 set_gdbarch_unwind_sp.
8571 * Makefile.in (s390-tdep.o): Update dependencies.
8572
b0cf273e
JB
8573 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8574 (S390_STACK_FRAME_OVERHEAD): Remove.
8575 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8576 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8577 (s390_promote_integer_argument): Remove.
8578 (s390_cannot_extract_struct_value_address): Remove.
8579 (s390_use_struct_convention, s390_store_struct_return): Remove.
8580 (s390_extract_return_value, s390_store_return_value): Remove.
8581 (s390_return_value_convention, s390_return_value): New functions.
8582 (is_float_singleton): Handle typedefs.
8a1dac83 8583 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8584 Remove, replace by ...
8585 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8586 s390_function_arg_integer): ... these new functions.
8587 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8588 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8589 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8590 Fill in tdep->abi.
8591 Remove calls to:
8592 set_gdbarch_deprecated_store_struct_return,
8593 set_gdbarch_deprecated_extract_return_value,
8594 set_gdbarch_deprecated_store_return_value,
8595 set_gdbarch_use_struct_convention,
8596 set_gdbarch_extract_struct_value_address,
8597 set_gdbarch_deprecated_pc_in_call_dummy,
8598 set_gdbarch_deprecated_push_arguments,
8599 set_gdbarch_deprecated_save_dummy_frame_tos,
8600 set_gdbarch_deprecated_push_return_address,
8601 set_gdbarch_deprecated_sizeof_call_dummy_words,
8602 set_gdbarch_deprecated_call_dummy_words,
8603 set_gdbarch_deprecated_dummy_write_sp.
8604 Add calls to:
8605 set_gdbarch_push_dummy_call,
8606 set_gdbarch_unwind_dummy_id,
8607 set_gdbarch_return_value.
8a1dac83 8608
e1457d83
JB
8609 * config/s390/nm-linux.h: Update comments.
8610 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8611 (STOPPED_BY_WATCHPOINT): Redefine.
8612 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8613 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8614 (s390_stopped_by_watchpoint): Likewise.
8615 (watch_area_cnt): Remove.
8616 * s390-nat.c: Update comments.
8617 (watch_area): Remove typedef.
8618 Global replace watch_area by struct watch_area.
8619 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8620 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8621 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8622 (s390_fix_watch_points): Remove pid argument,
8623 use s390_inferior_tid. Recompute area spanned by watchpoints.
8624 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8625 argument. Reimplement.
8626
d0f54f9d
JB
8627 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8628 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8629 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8630 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8631 core-regset.o.
8632 * config/s390/s390x.mt: Remove.
8633 * config/s390/tm-s390.h: Remove.
8634 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8635 (TARGET_ELF64): Remove.
8636 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8637 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8638 s390*-*-* case; always set gdb_target to s390.
8639 * regformats/reg-s390.dat: Remove control registers.
8640 * regformats/reg-s390x.dat: Likewise.
8641 * s390-tdep.h: New file.
8a1dac83 8642 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8643 Include "inferior.h" and "s390-tdep.h".
8644 Remove private definition of offsetof.
8645 (s390_register_u_addr): Remove.
8646 (regmap_gregset, regmap_fpregset): Define.
8647 (supply_gregset, fill_gregset): Reimplement.
8648 (supply_fpregset, fill_fpregset): Likewise.
8649 (s390_inferior_tid): New function.
8650 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8651 (fetch_inferior_registers, store_inferior_registers): Likewise.
8652 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8653 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8654 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8655 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8656 (struct gdbarch_tdep): Define.
8657 (struct s390_register_info): Define.
8658 (s390_register_info): New variable.
8659 (s390_register_name): Reimplement.
8660 (s390_register_type): New function.
8661 (s390_register_raw_size, s390x_register_raw_size): Remove.
8662 (s390_cannot_fetch_register): Remove.
8663 (s390_register_byte): Remove.
8664 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8665 (s390_dwarf_regmap): New variable.
8666 (s390_dwarf_reg_to_regnum): New function.
8667 (s390_stab_reg_to_regnum): Remove.
8668 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8669 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8670 (s390_convert_register_p): Likewise.
8671 (s390_register_to_value, s390_value_to_register): Likewise.
8672 (s390_register_reggroup_p): Likewise.
8673 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8674 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8675 (s390_supply_regset, s390_regset_from_core_section): New functions.
8676 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8677 (S390_FPR_SIZE): Likewise.
8678 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8679 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8680 (S390_NUM_GPRS): Move here from tm-s390.h.
8681 (S390_NUM_FPRS): Likewise.
8682 (s390_in_function_epilogue_p): New function.
8683 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8684 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8685 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8686 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8687 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8688 Remove calls to:
8689 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8690 set_gdbarch_deprecated_max_register_virtual_size,
8691 set_gdbarch_deprecated_register_byte,
d0f54f9d 8692 set_gdbarch_cannot_fetch_register,
8a1dac83 8693 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8694 set_gdbarch_deprecated_register_size,
8695 set_gdbarch_deprecated_register_raw_size,
8696 set_gdbarch_deprecated_register_virtual_size,
8697 set_gdbarch_deprecated_register_virtual_type,
8698 set_gdbarch_deprecated_register_bytes.
8699 Add calls to:
8700 set_gdbarch_num_pseudo_regs,
8701 set_gdbarch_register_type,
8702 set_gdbarch_convert_register_p,
8703 set_gdbarch_register_to_value,
8704 set_gdbarch_value_to_register,
8705 set_gdbarch_register_reggroup_p,
8706 set_gdbarch_regset_from_core_section,
8707 set_gdbarch_pseudo_register_read,
8708 set_gdbarch_pseudo_register_write,
8709 set_gdbarch_in_function_epilogue_p.
8710 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8711 (s390_tdep_h): New variable.
8712
8cfe231d
JB
87132004-02-17 Jim Blandy <jimb@redhat.com>
8714
4589a601
JB
8715 * findvar.c (value_from_register): If the type has no length, just
8716 return an acceptable value --- don't report an internal error.
8717
8cfe231d
JB
8718 * stabsread.c (read_type): If we find any type numbers that are
8719 forward references, complain if the references aren't resolved by
8720 the time we're finished reading.
8721 (cleanup_undefined_types): Make error message more appropriate for
8722 a complaint.
8723
5bf0017e
EZ
87242004-02-17 Elena Zannoni <ezannoni@redhat.com>
8725
9d62932d
EZ
8726 * Makefile.in (defs_h): Remove dependency on progress_h.
8727 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8728 progress.h.
8729 * main.c (captured_main): Delete use of START_PROGRESS and
8730 END_PROGRESS.
8731
87322004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8733
5bf0017e
EZ
8734 * objfiles.c (terminate_minimal_symbol_table): Add back
8735 initialization of MSYMBOL_TYPE.
8736
9fc9f5e2
AC
87372004-02-17 David Mosberger <davidm@hpl.hp.com>
8738
8739 Committed by Andrew Cagney.
8740 * Makefile.in (ia64_tdep_h): New macro.
8741 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8742 (ia64-tdep.o): Likewise.
8743 * ia64-tdep.h: New file.
8744 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8745 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8746 (ia64_aix_sigcontext_register_address): Likewise.
8747 (ia64_linux_getunwind_table): Delete declaration.
8748 * ia64-linux-tdep.c: Likewise.
8749
76cd2bd9
CV
87502004-02-17 Corinna Vinschen <vinschen@redhat.com>
8751
8752 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8753 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8754 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8755
634aa483
AC
87562004-02-17 Andrew Cagney <cagney@redhat.com>
8757
8758 * symtab.c (skip_prologue_using_sal): New function.
8759 * symtab.h (skip_prologue_using_sal): Declare.
8760 * frv-tdep.c: Include "symtab.h".
8761 (skip_prologue_using_sal): Delete function.
8762 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8763 * rs6000-tdep.c (refine_prologue_limit): Mention
8764 skip_prologue_using_sal.
8765 * ia64-tdep.c (refine_prologue_limit): Ditto.
8766 * Makefile.in: Update dependencies.
8767
87682004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8769
39ce7b3f
AC
8770 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8771 START_INFERIOR_TRAPS_EXPECTED.
8772 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8773 START_INFERIOR_TRAPS_EXPECTED.
8774 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8775 Delete macro.
8776 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8777 macro, moved to "nm-osf.h". Update copyright.
8778 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8779 update copyright.
8780
19772a2c
AC
8781 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8782 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8783 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8784 frameless_look_for_prologue.
8785 * frame.h (legacy_frameless_look_for_prologue): Rename
8786 frameless_look_for_prologue.
8787 * gdbarch.h, gdbarch.c: Re-generate.
8788 * sh64-tdep.c (sh64_gdbarch_init): Update.
8789 * sh-tdep.c (sh_gdbarch_init): Update.
8790 * s390-tdep.c (s390_gdbarch_init): Update.
8791 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8792 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8793 * m68k-tdep.c (m68k_gdbarch_init): Update.
8794 (delta68_frame_args_address): Update.
8795 * m32r-tdep.c (m32r_gdbarch_init): Update.
8796 * hppa-tdep.c (hppa_gdbarch_init): Update.
8797 * h8300-tdep.c (h8300_gdbarch_init): Update.
8798 * frv-tdep.c (frv_gdbarch_init): Update.
8799 (frv_frameless_function_invocation): Update.
8800 * cris-tdep.c (cris_gdbarch_init): Update.
8801 (cris_frameless_function_invocation): Update.
8802 * avr-tdep.c (avr_gdbarch_init): Update.
8803 * arm-tdep.c (arm_gdbarch_init): Update.
8804 * stack.c (frame_info): Update, call predicate.
8805 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8806 * frame.c (legacy_get_prev_frame): Update, call predicate..
8807 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8808 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8809 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8810 invocation.
8811 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8812 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8813 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8814
8815 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8816 function.
8817
7dcaac91
DJ
88182004-02-16 Daniel Jacobowitz <drow@mvista.com>
8819
8820 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8821 initializations.
8822
88289b6e
AC
88232004-02-16 Andrew Cagney <cagney@redhat.com>
8824
8825 * tui/tui-windata.c: Include "gdb_string.h".
8826 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8827 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8828 * Makefile.in: Update dependencies.
8829
9f976b41
DJ
88302004-02-16 Daniel Jacobowitz <drow@mvista.com>
8831
8832 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8833 * infrun.c: Include "gdb_assert.h".
8834 (singlestep_ptid, saved_singlestep_ptid)
8835 (stepping_past_singlestep_breakpoint): New variables.
8836 (resume): Set singlestep_ptid. Check for singlestep thread
8837 hop.
8838 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8839 (handle_inferior_event): Handle singlestep thread hop.
8840
c324d747
AC
88412004-02-16 Andrew Cagney <cagney@redhat.com>
8842
f090b9b1
AC
8843 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8844 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8845 (dwarf2_frame_init_reg): Ditto.
8846
fd33e6cb
AC
8847 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8848 suggested by Joshua Neuheisel
8849
c324d747
AC
8850 * configure.in: Always check for curses, including pdcurses.
8851 Warn, instead of error, when no curses are found. Enable TUI when
8852 curses is available.
8853 * configure: Re-generate.
8854
b66ba949
CV
88552004-02-16 Corinna Vinschen <vinschen@redhat.com>
8856
8857 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8858 sh_sh4_register_convert_to_virtual.
8859 (sh_register_convert_to_raw): Rename from
8860 sh_sh4_register_convert_to_raw.
8861 (sh_pseudo_register_read): Accomodate above name change.
8862 (sh_pseudo_register_write): Ditto.
8863
b58cbbf2
CV
88642004-02-16 Corinna Vinschen <vinschen@redhat.com>
8865
8866 * sh-tdep.c (sh_generic_register_name): Remove.
8867 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8868
5929a910
AC
88692004-02-15 Andrew Cagney <cagney@redhat.com>
8870
4566dfcf
AC
8871 * configure.in (build_warnings): Add -Wunused-function.
8872 * configure: Re-generate.
8873
db11ed55
AC
8874 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8875 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8876
46ac7a5d
AC
8877 * procfs.c (procfs_init_inferior): Assume that
8878 START_INFERIOR_TRAPS_EXPECTED is defined.
8879 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8880 * config/ns32k/tm-nbsd.h: Delete file,
8881 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8882
ba801595
AC
8883 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8884 * config/vax/tm-vax.h: Delete file.
8885
5929a910
AC
8886 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8887 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8888 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8889 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8890 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8891 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8892 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8893
8f22cb90
MK
88942004-02-15 Mark Kettenis <kettenis@gnu.org>
8895
8896 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8897 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8898 (struct dwarf2_frame_ops): New.
8899 (dwarf2_frame_default_init_reg): New function, based on
8900 dwarf2_frame_init_reg.
8901 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8902 (dwarf2_frame_init_reg): Call architecture-specific function.
8903 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8904 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8905 instead of dwarf2_frame_data.
8906 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8907 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8908
8132723e
AC
89092004-02-15 Andrew Cagney <cagney@redhat.com>
8910
046a4708
AC
8911 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8912 register_gdbarch_swap.
8913 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8914 * f-lang.c (_initialize_f_language): Update, use
8915 DEPRECATED_REGISTER_GDBARCH_SWAP.
8916 * remote.c (_initialize_remote): Ditto.
8917 * regcache.c (_initialize_regcache): Ditto.
8918 * parse.c (_initialize_parse): Ditto.
8919 * infrun.c (_initialize_infrun): Ditto.
8920 * mi/mi-main.c (_initialize_mi_main): Ditto.
8921 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8922
549c1eea
AC
8923 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8924 poking .cacheable directly.
8925 * symfile.c (symfile_bfd_open): Ditto.
8926
0c0b39de
AC
8927 * Makefile.in: Update all dependencies.
8928
8132723e
AC
8929 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8930 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8931 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8932 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8933 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8934
b9d26eb9
AC
89352004-02-14 Andrew Cagney <cagney@redhat.com>
8936
8e1f669a
AC
8937 * arch-utils.c (legacy_convert_register_p): Check
8938 DEPRECATED_REGISTER_CONVERTIBLE_P.
8939 * findvar.c (value_of_register): Ditto.
8940
cd0bfa36
AC
8941 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8942 * gdbarch.h, gdbarch.c: Re-generate.
8943 * arch-utils.c (deprecated_register_convertible_not): Delete.
8944 * arch-utils.h (deprecated_register_convertible_not): Delete.
8945 * mi/mi-main.c (get_register): Update. Update copyright.
8946 * infcmd.c (default_print_registers_info): Update.
8947
b9d26eb9
AC
8948 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8949 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8950 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 8951 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
8952 * frame.c (deprecated_get_next_frame_hack): Delete function.
8953 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8954 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8955 Update.
8956 * infcall.c (call_function_by_hand): Update.
8957
9ab9195f
EZ
89582004-02-14 Elena Zannoni <ezannoni@redhat.com>
8959
8960 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 8961 from here...
9ab9195f
EZ
8962 * objfiles.c (init_entry_point_info, entry_point_address):..to
8963 here.
8964 * symfile.h (init_entry_point_info, entry_point_address): Remove
8965 prototypes.
8966 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 8967 prototypes.
9ab9195f
EZ
8968 * cris-tdep.c: Remove include of symfile.h. Add include of
8969 objfiles.h.
8970 * infcall.c: Ditto.
8971 * mcore-tdep.c: Ditto.
8972 * mn10300-tdep.c: Ditto.
8973 * sh64-tdep.c: Ditto.
8974 * v850-tdep.c: Ditto.
8975 * arm-tdep.c: Remove include of symfile.h.
8976 * blockframe.c: Ditto.
8977 * coffread.c: Ditto.
8978 * dbxread.c: Ditto.
8979 * dwarf2read.c: Ditto.
8980 * dwarfread.c: Ditto.
8a1dac83 8981 * frv-tdep.c: Ditto.
9ab9195f
EZ
8982 * ia64-tdep.c: Ditto.
8983 * mdebugread.c: Ditto.
8984 * mipsread.c: Ditto.
8a1dac83 8985 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
8986 * s390-tdep.c: Ditto.
8987 * sh-tdep.c: Ditto.
8a1dac83 8988 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
8989 * gdbarch.sh: Remove include of symfile.h.
8990 * gdbarch.c: Regenerate.
8991 * solib-irix.c (enable_break): Use entry_point_address().
8992 Add comment about include file.
8993 * xcoffread.c: Add comment about include file.
8a1dac83
RM
8994 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8995 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8996 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8997 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
8998 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8999
c4c5b7ba
AC
90002004-02-13 Andrew Cagney <cagney@redhat.com>
9001
9002 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9003 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9004 copyright.
9005 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9006
3e7879de
FF
90072004-02-12 Fred Fish <fnf@redhat.com>
9008
9009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9010 set_gdbarch_store_return_value.
9011
6a7760b6
AC
90122004-02-12 Andrew Cagney <cagney@redhat.com>
9013
9014 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9015 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9016 (interrupt_query): Ditto.
9017 (ofunc): Delete unused variable.
9018 * cris-tdep.c (cris_abi): Delete unused function.
9019 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9020 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9021 (cris_get_asr_quick_shift_steps): Ditto.
9022 (cris_skip_prologue_frameless_p): Ditto.
9023 * arm-tdep.c (arm_push_return_address): Delete unused function.
9024 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9025 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9026 * s390-tdep.c (s390_function_start): Delete unused function.
9027
31687c3c
AC
90282004-02-12 Andrew Cagney <cagney@redhat.com>
9029
9030 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9031 gdbarch.h, gdbarch.c: Re-generate.
9032 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9033 to generic_prologue_frameless_p.
9034 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9035 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9036
6de918a6
DJ
90372004-02-11 Daniel Jacobowitz <drow@mvista.com>
9038
9039 * mips-linux-tdep.c: Include "frame.h".
9040 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9041 (mips_linux_skip_resolver): New functions.
9042 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9043 and set_gdbarch_in_solib_call_trampoline.
9044 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9045 to after set_gdbarch_in_solib_return_trampoline. Only set the
9046 solib hooks to mips16 functions if the OS ABI is unknown.
9047 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9048 including "config/tm-linux.h".
9049 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9050 * Makefile.in (mips-linux-tdep.o): Update.
9051
87b3ede8
DC
90522004-02-11 David Carlton <carlton@kealia.com>
9053
9054 * linespec.c (decode_compound): Only look for a class symbol when
9055 considering all but the rightmost component.
9056
5979bc46
AC
90572004-02-11 Andrew Cagney <cagney@redhat.com>
9058
9059 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9060 abi code are are separatly grouped.
9061
5867a2fb
AC
90622004-02-11 Andrew Cagney <cagney@redhat.com>
9063
9064 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9065 * gdbarch.h, gdbarch.c: Re-generate.
9066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9067 * v850-tdep.c (v850_gdbarch_init): Update.
9068 * sh64-tdep.c (sh64_gdbarch_init): Update.
9069 * sh-tdep.c (sh_gdbarch_init): Update.
9070 * s390-tdep.c (s390_gdbarch_init): Update.
9071 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9072 * mips-tdep.c (mips_gdbarch_init): Update.
9073 * mcore-tdep.c (mcore_gdbarch_init): Update.
9074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9075 * m32r-tdep.c (m32r_gdbarch_init): Update.
9076 * ia64-tdep.c (ia64_gdbarch_init): Update.
9077 * hppa-tdep.c (hppa_gdbarch_init): Update.
9078 * h8300-tdep.c (h8300_gdbarch_init): Update.
9079 * frv-tdep.c (frv_gdbarch_init): Update.
9080 * d10v-tdep.c (d10v_gdbarch_init): Update.
9081 * cris-tdep.c (cris_gdbarch_init): Update.
9082 * avr-tdep.c (avr_gdbarch_init): Update.
9083 * arm-tdep.c (arm_gdbarch_init): Update.
9084 * alpha-tdep.c (alpha_gdbarch_init): Update.
9085
026a72f8
CV
90862004-02-11 Corinna Vinschen <vinschen@redhat.com>
9087
9088 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9089 comma.
9090 (sh_sh4al_dsp_register_name): Ditto.
9091
3903d437
AC
90922004-02-10 Andrew Cagney <cagney@redhat.com>
9093
9094 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9095 (mips_init_frame_pc_first): Delete function.
9096 (mips_frame_saved_pc): Delete function.
9097 (mips_frame_chain): Delete function.
9098 (mips_init_extra_frame_info): Delete function.
9099 (mips_xfer_register): Delete unused variable "reg".
9100 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9101 (mips_n32n64_return_value): Delete unused variable "reg".
9102 (mips_n32n64_return_value): Delete unused variable "pos".
9103 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9104 (mips_o32_return_value): Delete unused variable "pos".
9105 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9106 (mips_print_fp_register): Delete unused variable "namelen"
9107 (mips_print_fp_register): Delete unused variable "flt2"
9108 (get_frame_pointer): Delete function.
9109 (cached_proc_desc): Delete static variable.
9110 (mips_pop_frame): Delete function.
9111 (mips_find_saved_regs): Delete function.
9112 (mips_get_saved_register): Delete function.
9113 (mips_saved_pc_after_call): Delete function.
9114 (SIGFRAME_BASE): Delete macro.
9115 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9116 (SIGFRAME_PC_OFF): Delete macro.
9117 (SIGFRAME_REGSAVE_OFF): Delete macro.
9118 (mips_dump_tdep): Do not print deleted macro definitions.
9119
b9fb98bd
AC
91202004-02-10 Andrew Cagney <cagney@redhat.com>
9121
9122 * Makefile.in (SFILES): Remove explictly listed tui files.
9123 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9124
78ced177 91252004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 9126
78ced177
JJ
9127 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9128 to use paddr functions to format ia64 addresses and long values.
9129 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9130 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9131 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9132 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9133 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9134
6a83354a
AC
91352004-02-10 Andrew Cagney <cagney@redhat.com>
9136
9137 * defs.h: Do not include "tui.h".
9138 * gdb_curses.h: New file.
9139 * tui/tui-hooks.h: New file.
9140 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9141 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9142 (tui_initialize_io): Delete declaration.
9143 (tui_initialize_readline: Delete redundant declaration.
9144 (struct tui_point): Delete definition.
9145 * tui/tui-data.h (struct tui_point): Define.
9146 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9147 * utils.c: Include "tui/tui.h".
9148 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9149 * printcmd.c [TUI]: Include "tui/tui.h".
9150 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9151 * tui/tui-command.c: Include "gdb_curses.h".
9152 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9153 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9154 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9155 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9156 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9157 * Makefile.in: Update all dependencies.
9158 (tui_hooks_h, gdb_curses_h): Define.
9159 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9160
997470ef
EZ
91612004-02-10 Elena Zannoni <ezannoni@redhat.com>
9162
9163 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9164 auxf2. Add comments about some other rarely used fields.
9165
4ff2cc4d
AC
91662004-02-10 Andrew Cagney <cagney@redhat.com>
9167
9168 * Makefile.in (init.c): Fix script removing duplicates. Problem
9169 reported by Peter Schauer.
9170
1ab21617
EZ
91712004-02-09 Elena Zannoni <ezannoni@redhat.com>
9172
9173 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9174 obstack_specify_allocation.
9175 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 9176 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
9177 (allocate_rt_common_objfile): Ditto.
9178 * symfile.c (reread_symbols): Ditto.
9179 * gdb_obstack.h: Add comment.
9180
17763fd9
EZ
91812004-02-09 Elena Zannoni <ezannoni@redhat.com>
9182
9183 * linespec.c (decode_line_1, locate_first_half)
9184 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9185 commented out code.
9186
ec5cdd75
DJ
91872004-02-09 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9190 obstack_free.
9191
43b54b88
AC
91922004-02-09 Andrew Cagney <cagney@redhat.com>
9193
9194 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9195 fails, try find_pc_section. Fix PR c++/1267.
9196 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9197 instead of find_pc_mapped_section.
9198 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9199 not default to the section containing PC. Fix PR symtab/1519.
9200
edfae063
AC
92012004-02-09 Andrew Cagney <cagney@redhat.com>
9202
9203 * Makefile.in (mips-tdep.o): Update dependencies.
9204 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9205 "trad-frame.h".
9206 (mips_unwind_pc): Return the pseudo PC register.
9207 (mips_unwind_dummy_id): New function.
9208 (mips16_fetch_instruction): New function.
9209 (mips32_fetch_instruction): New function.
9210 (struct mips_frame_cache): Define.
9211 (mips_mdebug_frame_cache): New function.
9212 (mips_mdebug_frame_this_id): New function.
9213 (mips_mdebug_frame_prev_register): New function.
9214 (mips_mdebug_frame_unwind): Define.
9215 (mips_mdebug_frame_sniffer): New function.
9216 (mips_mdebug_frame_base_address): New function.
9217 (mips_mdebug_frame_base): Define.
9218 (mips_mdebug_frame_base_sniffer): New function.
9219 (mips_gdbarch_init): Append unwind and base sniffers. Set
9220 unwind_dummy_id.
9221
defc864c
AC
92222004-02-08 Andrew Cagney <cagney@redhat.com>
9223
6764ddad
AC
9224 * frame.c: Print both the register number and name.
9225
defc864c
AC
9226 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9227 and a sed into a single sed. Make .c and .o patterns more robust.
9228 (OBS): Delete.
9229 (INIT_FILES): Replace OBS with COMMON_OBS.
9230 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9231
645d6d10
MK
92322004-02-08 Mark Kettenis <kettenis@gnu.org>
9233
9234 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9235 the PT_WCOOKIE request.
9236
23e3c3fc
AC
92372004-02-08 Andrew Cagney <cagney@redhat.com>
9238
58dfe9ff
AC
9239 * mips-tdep.c (mips_unwind_pc): New function.
9240 (mips_gdbarch_init): Set mips_unwind_pc.
9241
1152e35e
AC
9242 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9243 (get_frame_id): Allow the UNKNOWN_FRAME.
9244 (frame_register_unwind, get_frame_type): Ditto.
9245
31b75dbf
AC
9246 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9247 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9248 unwind_dummy_id indicates a legacy frame.
9249
3483b318
AC
9250 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9251 * configure: Re-generate.
9252
23e3c3fc
AC
9253 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9254 methods.
9255
33f8ca73
AC
92562004-02-08 Andrew Cagney <cagney@redhat.com>
9257
9258 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9259 makefile macro.
9260 * configure: Re-generate.
9261 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9262 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9263 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9264 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9265 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9266 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9267 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9268 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9269 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9270 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9271
6ba8e26f 92722004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 9273
20d286a5
AC
9274 * Makefile.in: Update all dependencies.
9275
d836ee13
AC
9276 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9277 * configure: Re-generate.
9278 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9279 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9280 (COMMON_OBS): Add "main.o" and "annotate.o".
9281 (ANNOTATE_OBS): Delete.
9282 (OBS): Remove ANNOTATE_OBS.
9283 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9284 CONFIG_INITS.
9285 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9286 against CONFIG_OBS and "main.o".
9287 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9288 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9289
d02c80cd
AC
9290 * tui/tui-command.c: Include "gdb_string.h", delete register
9291 attribute, use ISO-C function signatures.
9292 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9293 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9294 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9295 * tui/tui.c: Ditto.
6ba8e26f
AC
9296
9297 * tui/tui-command.c: Change variable and function names to lower
9298 case.
9299 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9300 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9301 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9302 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9303 * tui/tui-winsource.c, tui/tui.c: Ditto.
9304
4a146b47
EZ
93052004-02-07 Elena Zannoni <ezannoni@redhat.com>
9306
9307 * buildsym.c (free_pending_blocks, finish_block)
9308 (record_pending_block, make_blockvector, end_symtab): Replace
9309 symbol_obstack with objfile_obstack.
8a1dac83 9310 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 9311 (coff_read_enum_type): Ditto.
8a1dac83 9312 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 9313 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 9314 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
9315 (dwarf2_symbol_mark_computed): Ditto.
9316 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9317 * elfread.c (elf_symtab_read): Ditto.
9318 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9319 (hpread_read_enum_type, hpread_read_function_type)
9320 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9321 Ditto.
8a1dac83 9322 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 9323 (java_link_class_type): Ditto.
8a1dac83 9324 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
9325 (new_symbol): Ditto.
9326 * minsyms.c (install_minimal_symbols): Ditto.
9327 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9328 (terminate_minimal_symbol_table): Replace symbol_obstack with
9329 objfile_obstack.
9330 (free_objfile): Remove freeing of symbol_obstack.
9331 * objfiles.h: Remove symbol_obstack field.
9332 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9333 objfile_obstack.
9334 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9335 symbol_obstack.
9336 (solib_add_common_symbols): Replace symbol_obstack with
9337 objfile_obstack.
9338 * somsolib.c (som_solib_add): Ditto.
9339 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9340 (common_block_start, common_block_end): Ditto.
9341 * symfile.c (reread_symbols): Remove freeing and init of
9342 symbol_obstack.
9343 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9344 * symfile.h: Update comment.
9345 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9346 stats printing.
9347 * symtab.c (symbol_set_names): Replace symbol_obstack with
9348 objfile_obstack.
9349 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9350 Update comments.
9351 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9352 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9353 objfile_obstack.
9354
6d012f14
AC
93552004-02-07 Andrew Cagney <cagney@redhat.com>
9356
9357 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9358 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9359 fields and variables.
9360 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9361 (m_beInvisible): Delete macro.
9362 * tui/tui-data.h: Fix case case fields and variables.
9363 (m_genWinPtrIsNull): Delete macro.
9364 (tui_win_list): Rename winList.
9365 (TUI_SRC_WIN): Rename srcWin.
9366 (TUI_DISASM_WIN): Rename disassemWin.
9367 (TUI_DATA_WIN): Rename dataWin.
9368 (TUI_CMD_WIN): Rename cmdWin.
9369 (m_genWinPtrNotNull): Delete macro.
9370 (m_winPtrIsNull): Delete macro.
9371 (m_winPtrNotNull): Delete macro.
9372 (tui_win_is_source_type): Replace m_winIsSourceType
9373 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9374 (tui_win_has_locator): Replace m_hasLocator.
9375 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9376 m_setWinHighlightOff.
9377 * tui/tui-data.c: Update references.
9378 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9379 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9380 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9381 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9382 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9383 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9384 * tui/tui-winsource.c, tui/tui.c: Ditto.
9385
7d34766b
MK
93862004-02-07 Mark Kettenis <kettenis@gnu.org>
9387
1c800673
MK
9388 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9389 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9390 StackGhost.
9391
7d34766b
MK
9392 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9393 variable `i6' to `i7'.
9394 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9395
22940a24
AC
93962004-02-07 Andrew Cagney <cagney@redhat.com>
9397
9398 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9399 (TuiPoint, TuiPointPtr): Ditto.
9400 (TuiStatus, TuiStatusPtr): Ditto.
9401 (TuiWinType, TuiWinTypePtr): Ditto.
9402 (struct tui_point): Rename _TuiPoint.
9403 (tui_get_low_disassembly_address): Rename
9404 tuiGetLowDisassemblyAddress.
9405 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9406 (tuiFree): Delete declaration.
9407 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9408 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9409 * tui/tui.c (tuiFree): Delete function.
9410 * cli/cli-cmds.c (disassemble_command): Update references.
9411 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9412 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9413 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9414 * tui/tui-winsource.c: Ditto.
9415
8b92e4d5
EZ
94162004-02-07 Elena Zannoni <ezannoni@redhat.com>
9417
9418 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9419 coffstab_build_psymtabs, elfstab_build_psymtabs)
9420 (stabsect_build_psymtabs): Replace psymbol_obstack with
9421 objfile_obstack.
9422 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9423 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9424 Ditto.
9425 * dwarfread.c (scan_compilation_units): Ditto.
9426 * elfread.c (elfstab_offset_sections): Ditto.
9427 * hppa-tdep.c (read_unwind_info): Ditto.
9428 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9429 (hpread_end_psymtab): Ditto.
9430 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9431 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9432 Ditto.
9433 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 9434 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
9435 (build_objfile_section_table): Ditto.
9436 (allocate_objfile): Remove init of psymbol_obstack.
9437 (free_objfile): Remove freeing of psymbol_obstack.
9438 * objfiles.h (struct objfile): Remove field
9439 psymbol_obstack. Update comments.
9440 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9441 psymbol_obstack with objfile_obstack.
9442 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9443 psymbol_obstack.
9444 * somread.c (som_symfile_offsets, init_import_symbols)
9445 (init_export_symbols): Replace psymbol_obstack with
9446 objfile_obstack.
9447 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9448 * symfile.c (default_symfile_offsets, syms_from_objfile)
9449 (reread_symbols): Remove freeing and init of psymbol_obstack.
9450 (cashier_psymtab): Update comment.
9451 * symmisc.c (print_objfile_statistics): Don't report stats for
9452 psymbol obstack.
9453 * symtab.h (struct general_symbol_info, struct partial_symtab):
9454 Update comments.
9455 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9456 (xcoff_symfile_offsets): Replace psymbol_obstack with
9457 objfile_obstack.
9458
b99607ea
EZ
94592004-02-07 Elena Zannoni <ezannoni@redhat.com>
9460
9461 * objfiles.h (struct objfile): Add objfile_obstack field.
9462 Remove type_obstack field.
9463
9464 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9465 read_structure_scope read_enumeration, new_symbol): Replace
9466 type_obstack with objfile_obstack.
9467 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9468 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9469 (lookup_fundamental_type): Ditto.
9470 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9471 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9472 (hpread_read_doc_function_type, hpread_read_struct_type)
9473 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9474 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9475 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9476 (java_link_class_type): Ditto.
9477 * mdebugread.c (parse_type): Ditto.
9478 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9479 * solib-sunos.c (solib_add_common_symbols): Ditto.
9480 * stabsread.c (define_symbol, read_type, read_member_functions,
9481 read_cpp_abbrev, read_one_struct_field): Ditto.
9482 * symfile.c (reread_symbols): Ditto.
9483 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9484
2a8854a7
AC
94852004-02-07 Andrew Cagney <cagney@redhat.com>
9486
9487 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9488 (tui_exec_info_content): Rename TuiExecInfoContent.
9489 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9490 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9491 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9492 (TuiList, TuiListPtr): Ditto.
9493 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9494 (TuiDataType, TuiDataTypePtr): Ditto.
9495 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9496 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9497 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9498 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9499 (TuiDataElement, TuiDataElementPtr): Ditto.
9500 (TuiWinElement, TuiWinElementPtr): Ditto.
9501 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9502 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9503 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9504 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9505 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9506 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9507 * tui/tui-command.c, tui/tui-data.c: Update references.
9508 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9509 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9510 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9511 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9512
05cbe71a
MK
95132004-02-07 Mark Kettenis <kettenis@gnu.org>
9514
9515 * dwarf2-frame.h: Update copyright.
9516 (enum dwarf2_frame_reg_rule): New.
9517 (struct dwarf2_frame_state_reg): New.
9518 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9519 * dwarf2-frame.c: Update copyright.
9520 (enum dwarf2_reg_rule): Remove.
9521 (struct dwarf2_frame_state): Remove defenition of `struct
9522 dwarf2_frame_state_reg'.
9523 (read_reg): Call get_frame_arch to get the architecture instead of
9524 using CURRENT_GDBARCH.
9525 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9526 DWARF2_FRAME_.
9527 (dwarf2_frame_init_reg): New function.
9528 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9529 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9530 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9531 tags with DWARF2_FRAME_.
9532 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9533 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9534 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9535
ec7d9e56
AC
95362004-02-06 Andrew Cagney <cagney@redhat.com>
9537
dd1abb8c
AC
9538 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9539 (enum tui_data_type): Rename _TuiDataType.
9540 (struct tui_layout_def): Rename _TuiLayoutDef.
9541 (struct tui_source_element): Rename _TuiSourceElement.
9542 (struct tui_data_element): Rename _TuiDataElement.
9543 (struct tui_command_element): Rename _TuiCommandElement.
9544 (struct tui_locator_element): Rename _TuiLocatorElement.
9545 (union tui_which_element): Define.
9546 (struct tui_win_element): Rename _TuiWinElement.
9547 (struct tui_data_info): Rename _TuiDataInfo.
9548 (struct tui_source_info): Rename _TuiSourceInfo.
9549 (struct tui_command_info): Rename _TuiCommandInfo.
9550 (tui_initialize_static_data): Rename initializeStaticData.
9551 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9552 (tui_alloc_win_info): Rename allocWinInfo.
9553 (tui_init_generic_part): Rename initGenericPart.
9554 (tui_init_win_info): Rename initWinInfo.
9555 (tui_alloc_content): Rename allocContent.
9556 (tui_add_content_elements): Rename addContentElements.
9557 (tui_init_content_element): Rename initContentElement.
9558 (tui_free_window): Rename freeWindow.
9559 (tui_free_win_content): Rename freeWinContent.
9560 (tui_free_data_content): Rename freeDataContent.
9561 (tui_free_all_source_wins_content): Rename
9562 freeAllSourceWinsContent.
9563 (tui_del_window): Rename tuiDelWindow.
9564 (tui_del_data_windows): Rename tuiDelDataWindows.
9565 (tui_partial_win_by_name): Rename partialWinByName.
9566 (tui_win_name): Rename winName.
9567 (tui_current_layout): Rename currentLayout.
9568 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9569 (tui_term_height): Rename termHeight.
9570 (tui_set_term_height_to): Rename setTermHeightTo.
9571 (tui_term_width): Rename termWidth.
9572 (tui_set_term_width_to): Rename setTermWidthTo.
9573 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9574 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9575 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9576 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9577 (tui_source_windows): Rename sourceWindows.
9578 (tui_clear_source_windows): Rename clearSourceWindows.
9579 (tui_clear_source_windows_detail): Rename
9580 clearSourceWindowsDetail.
9581 (tui_clear_win_detail): Rename clearWinDetail.
9582 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9583 (tui_default_tab_len): Rename tuiDefaultTabLen.
9584 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9585 (tui_win_with_focus): Rename tuiWinWithFocus.
9586 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9587 (tui_layout_def): Rename tuiLayoutDef.
9588 (tui_win_resized): Rename tuiWinResized.
9589 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9590 (tui_next_win): Rename tuiNextWin.
9591 (tui_prev_win): Rename tuiPrevWin.
9592 (tui_add_to_source_windows): Rename addToSourceWindows.
9593 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9594 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9595 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9596 * tui/tui.c, tui/tui-data.c: Ditto.
9597 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9598 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9599
a358af15
AC
9600 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9601 (struct symtab): Declare.
9602 (tui_set_source_content): Rename tuiSetSourceContent.
9603 (tui_show_symtab_source): Rename tuiShowSource.
9604 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9605 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9606 * tui/tui-source.c: Update copyright. Update references.
9607 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9608 * tui/tui-stack.c: Update references.
9609
a21fcd8f
AC
9610 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9611 (struct tui_win_info): Declare.
9612 (tui_scroll_forward): Rename tuiScrollForward.
9613 (tui_scroll_backward): Rename tuiScrollBackward.
9614 (tui_scroll_left): Rename tuiScrollLeft.
9615 (tui_scroll_right): Rename tuiScrollRight.
9616 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9617 (tui_resize_all): Rename tuiResizeAll.
9618 (tui_refresh_all_win): Rename tuiRefreshAll.
9619 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9620 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9621 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9622 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9623
edae1ccf
AC
9624 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9625 (tui_erase_data_content): Rename tuiEraseDataContent.
9626 (tui_display_all_data): Rename tuiDisplayAllData.
9627 (tui_check_data_values): Rename tuiCheckDataValues.
9628 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9629 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9630 (tui_first_data_element_no_in_line): Rename
9631 tuiFirstDataElementNoInLine.
9632 (tui_delete_data_content_windows): Rename
9633 tuiDeleteDataContentWindows.
9634 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9635 (tui_display_data_from): Rename tuiDisplayDataFrom.
9636 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9637 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9638 * tui/tui-win.c, tui/tui-regs.c: Update references.
9639 * tui/tui-layout.c, tui/tui.c: Update references.
9640
ec7d9e56
AC
9641 * tui/tui-wingeneral.h: Update copyright.
9642 (m_allBeVisible): Delete macro.
8a1dac83 9643 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9644 (struct tui_gen_win_info): Declare.
9645 (struct tui_win_info): Declare.
9646 (tui_unhighlight_win): Rename unhighlightWin.
9647 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9648 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9649 (tui_make_window): Rename makeWindow.
9650 (tui_copy_win): Rename copyWin.
9651 (tui_box_win): Rename boxWin.
9652 (tui_highlight_win): Rename highlightWin.
9653 (tui_check_and_display_highlight_if_needed): Rename
9654 checkAndDisplayHighlightIfNeeded.
9655 (tui_refresh_all): Rename refreshAll.
9656 (tui_delete_win): Rename tuiDelwin.
9657 (tui_refresh_win): Rename tuiRefreshWin.
9658 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9659 (tui_make_visible, tui_make_invisible): New functions.
9660 (tui_make_all_visible, tui_make_all_invisible): New functions.
9661 (make_all_visible): Rename makeAllVisible.
9662 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9663 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9664 * tui/tui-windata.c, tui/tui-win.c: Update references.
9665 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9666 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9667
1e52e2eb
MK
96682004-02-06 Mark Kettenis <kettenis@gnu.org>
9669
9670 * proc-api.c (write_with_trace): Initialize local variable to
9671 silence compiler warning.
9672
f80bda8e
AC
96732004-02-06 Andrew Cagney <cagney@redhat.com>
9674
9675 * tui/tui-source.h: Do not include "defs.h".
9676 (struct tui_win_info): Declare.
9677 (tui_set_source_content_nil): Declare.
9678 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9679 (union tui_line_or_address): Rename _TuiLineOrAddress.
9680 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9681 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9682 (tui_update_source_window_as_is): Rename
9683 tuiUpdateSourceWindowAsIs.
9684 (tui_update_source_windows_with_addr): Rename
9685 tuiUpdateSourceWindowsWithAddr.
9686 (tui_update_source_windows_with_line): Rename
9687 tuiUpdateSourceWindowsWithLine.
9688 (tui_clear_source_content): Rename tuiClearSourceContent.
9689 (tui_erase_source_content): Rename tuiEraseSourceContent.
9690 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9691 (tui_show_source_content): Rename tuiShowSourceContent.
9692 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9693 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9694 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9695 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9696 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9697 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9698 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9699 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9700 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9701 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9702 (struct tui_win_info): Declare.
9703 * tui/tui-stack.c: Update references.
9704 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9705 * tui/tui-win.c, tui/tui-source.c: Ditto.
9706 * tui/tui.c, tui/tui-disasm.c: Ditto.
9707
9fbfb822
MK
97082004-02-06 Mark Kettenis <kettenis@gnu.org>
9709
9710 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9711 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9712
03cebad2
MK
97132004-02-05 Mark Kettenis <kettenis@gnu.org>
9714
9715 * infrun.c (handle_inferior_event): Allow for breakpoint
9716 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9717 and SIGEMT. Update comments.
9718 * NEWS (Revised SPARC target): Mention support for non-executable
9719 stack.
9720
290281b1
MK
97212004-02-04 Mark Kettenis <kettenis@gnu.org>
9722
9723 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9724 * inftarg.c: Update copyright year.
9725 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9726 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9727 (sparc_xfer_wcookie): New function.
9728 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9729 * Makefile.in (sparc-nat.o): Update dependencies.
9730 * config/sparc/nm-nbsd.h: Include "target.h".
9731 (NATIVE_XFER_WCOOKIE): New define.
9732 (sparc_xfer_wcookie): New prototype.
9733
212161df
AC
97342004-02-04 Andrew Cagney <cagney@redhat.com>
9735
9736 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9737 SYSCALL_TRAP function.
9738 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9739
6e4c6c91
DJ
97402004-02-04 Andrew Cagney <cagney@redhat.com>
9741 Daniel Jacobowitz <drow@mvista.com>
9742
9743 * objfiles.h: Delete comments refering to inside_entry_func and
9744 DEPRECATED_FRAME_CHAIN_VALID.
9745 * defs.h (inside_entry_func): Update prototype..
9746 * blockframe.c (inside_entry_func): Rename to
9747 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9748 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9749
cae688ec
JJ
97502004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9751
9752 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9753 outside of #ifdef SOLIB_ADD region.
9754 (do_restore_lang_radix_cleanup): Ditto.
9755 (resolve_pending_breakpoint): Ditto.
9756
19217676
AC
97572004-02-03 Andrew Cagney <cagney@redhat.com>
9758
9759 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9760 (process_note_abi_tag_sections): Delete unused function.
9761 (ia64_read_fp): Delete unused function.
9762 (gdbarch_extract_struct_value_address): Delete declaration.
9763
876753be
AC
97642004-02-02 Andrew Cagney <cagney@redhat.com>
9765
9766 * vax-tdep.c (vax_frame_chain): Delete call to
9767 deprecated_inside_entry_file.
9768 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9769
d4f10bf2
MK
97702004-02-02 Mark Kettenis <kettenis@gnu.org>
9771
9772 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9773 column that's "empty" or "same value" when eliminating REG_RA
9774 rules.
9775
cae688ec
JJ
97762004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9777
9778 * NEWS: Add information about new pending breakpoint support.
9779
0101ce28
JJ
97802004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9781
9782 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9783 and pending fields for pending breakpoint support.
9784 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9785 (condition_command): Only parse condition if not a pending
9786 breakpoint.
9787 (print_one_breakpoint): Add support for pending breakpoints.
9788 (describe_other_breakpoints): Add checks to verify we are not
9789 dealing with pending breakpoints.
9790 (check_duplicates): Don't check pending breakpoints.
9791 (set_raw_breakpoint): Initialize pending flag.
9792 (do_restore_lang_radix_cleanup): New cleanup routine.
9793 (resolve_pending_breakpoint): New function.
9794 (re_enable_breakpoints_in_shlibs): Try and resolve any
9795 pending breakpoints via resolve_pending_breakpoint.
9796 (mention): Add pending breakpoint support.
9797 (parse_breakpoint_sals): Add new parameter to pass to
9798 decode_line_1 to indicate silent errors when files or functions
9799 are not found. Change all callers.
9800 (do_captured_parse_breakpoint): New function.
9801 (break_command_1): Change prototype to return an rc value and to
9802 take an optional pending breakpoint pointer. Support creating
9803 a pending breakpoint if a "not found" form of error occurs when
9804 parsing the breakpoint. Also support resolving an existing pending
9805 breakpoint and be silent if the resolution fails.
9806 (create_breakpoints): Change prototype to take pending breakpoint
9807 pointer. When resolving a pending breakpoint, use the new pointer
9808 to provide a conditional or commands added by the end-user.
9809 (delete_breakpoint): Add appropriate check for pending.
9810 (breakpoint_re_set_one): Ditto.
9811 (do_enable_breakpoint): Ditto.
9812
8d577d32
DC
98132004-02-02 David Carlton <carlton@kealia.com>
9814
9815 * valops.c (enum oload_classification): New.
9816 (find_overload_match): Break implementation into separate
9817 functions; delete #if 0'd code; look for symbols within
9818 namespaces.
9819 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9820 (find_oload_champ,oload_method_static,classify_oload_match): New.
9821 * cp-support.h: Add declaration for cp_func_name; update
9822 declaration for make_symbol_overload_list.
9823 * cp-support.c (cp_func_name): New.
9824 (overload_list_add_symbol): Fix comment, use
9825 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9826 (make_symbol_overload_list): Take a function name and a namespace
9827 instead of a symbol; change implementation.
9828 (make_symbol_overload_list_using): New.
9829 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9830
22e8e3c7
FF
98312004-02-02 Fred Fish <fnf@redhat.com>
9832
9833 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9834 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9835 * remote-sim.c (gdb_os_write_stderr): Write output to
9836 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9837 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9838 gdb_stderr stream and update copyright years.
22e8e3c7 9839
6b753f60
DJ
98402004-02-01 Daniel Jacobowitz <drow@mvista.com>
9841
9842 * Makefile.in (mips-linux-nat.o): Update dependencies.
9843 * mips-linux-nat.c: Include mips-tdep.h.
9844
98452004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9846
9847 * sol-thread.c (sol_thread_xfer_partial): New function.
9848 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9849 (init_sol_core_ops): Likewise.
9850
9851 * procfs.c (procfs_xfer_partial): New function.
9852 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9853 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9854
9855 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9856 procfs_xfer_auxv function.
9857
9858 * procfs.c (procfs_make_note_section): If we can read
9859 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9860 * linux-proc.c (linux_make_note_section): Likewise.
9861
9862 * auxv.h: New file.
9863 * auxv.c: New file.
9864 * Makefile.in (auxv_h): New variable.
9865 (COMMON_OBS): Add auxv.o here.
9866 (auxv.o): New target.
9867
9868 * corelow.c (core_xfer_partial): New function.
9869 (init_core_ops): Use it for core_ops.to_xfer_partial.
9870
9871 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9872 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9873 macro if that is defined.
9874
fa5281d0
DJ
98752004-02-01 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9878 and check the specified thread for each breakpoint.
9879 * breakpoint.h (bpstat_stop_status): Update prototype.
9880 * infrun.c (handle_inferior_event): Update calls to
9881 bpstat_stop_status.
9882
26ee262d
DJ
98832004-02-01 Daniel Jacobowitz <drow@mvista.com>
9884
9885 * Makefile.in (cli-cmds.o): Add $(readline_h).
9886
d9b52655
DJ
98872004-02-01 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * cli/cli-cmds.c: Include readline.h.
9890 (complete_command): Pass the start of the last word to
9891 complete_line.
9892
9709f61c
DJ
98932004-01-31 Daniel Jacobowitz <drow@mvista.com>
9894
9895 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9896 argument, and change first argument to a CORE_ADDR.
9897 * breakpoint.h (bpstat_stop_status): Update prototype.
9898 * infrun.c (adjust_pc_after_break): Add a new comment.
9899 (handle_inferior_event): Update calls to bpstat_stop_status.
9900
4f1280bb
DJ
99012004-01-31 Daniel Jacobowitz <drow@mvista.com>
9902
9903 * breakpoint.h: Update copyright years.
9904
4fa8626c
DJ
99052004-01-31 Daniel Jacobowitz <drow@mvista.com>
9906
9907 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9908 (bpstat_stop_status): Don't decrement PC.
9909 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9910 prototype.
9911 * infrun.c (adjust_pc_after_break): New function.
9912 (handle_inferior_event): Call it, early. Remove later references
9913 to DECR_PC_AFTER_BREAK.
9914 (normal_stop): Add commentary.
9915
fad0733a
DJ
99162004-01-31 Daniel Jacobowitz <drow@mvista.com>
9917
9918 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9919 2004-01-27 double-free fix.
9920
42cdca6c
MK
99212004-01-31 Mark Kettenis <kettenis@gnu.org>
9922
9923 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9924 (sparc32_frame_prev_register): Handle StackGhost.
9925 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9926
932d5416
RM
99272004-01-29 Roland McGrath <roland@redhat.com>
9928
9929 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9930 * configure: Regenerated.
9931
9932 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9933 * Makefile.in (procfs.o): Add dep.
9934
47d3492a
AC
99352004-01-28 Andrew Cagney <cagney@redhat.com>
9936
9937 * tui/tui-stack.h: Update copyright.
9938 (struct frame_info): Add opaque declaration.
9939 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9940 (tui_show_locator_content): Rename tuiShowLocatorContent.
9941 (tui_show_frame_info): Rename tuiShowFrameInfo.
9942 * tui/tui-stack.c: Update copyright. Update references.
9943 * tui/tui-winsource.c: Update references.
9944 * tui/tui-win.c: Update references.
9945 * tui/tui-layout.c: Update references.
9946 * tui/tui-hooks.c: Update copyright, update references.
9947 * tui/tui.c: Update copyright, update references.
9948 * tui/tui-disasm.c: Update references.
9949
5d51ca54
DC
99502004-01-28 David Carlton <carlton@kealia.com>
9951
9952 * dwarf2read.c (add_partial_structure): Use demangled name if
9953 namespace equals "".
9954
086ed43d
JB
99552004-01-27 Jim Blandy <jimb@redhat.com>
9956
9957 Clean up misapplied patch:
9958 * dwarf2read.c (determine_prefix): Change one of the two forward
9959 declarations for 'determine_prefix_aux' to a declaration for this.
9960 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9961 argument to 'die_specification'.
9962
2a35147e
JB
9963 * dwarf2read.c (read_func_scope): Re-indent comment.
9964
a355c7de 99652004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 9966
a355c7de
AC
9967 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9968 b->exp to NULL after freeing so that error during re-parsing or
9969 evaluation of expressions associated with breakpoint don't
9970 eventually lead to re-freeing of storage.
9971 Committed by Andrew Cagney.
9972
63ff5125
AC
99732004-01-27 Andrew Cagney <cagney@redhat.com>
9974
9975 * source.c (ambiguous_line_spec): Delete undefined declaration.
9976 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9977 (m32r_set_server_address, m32r_set_download_path): Ditto.
9978 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9979
e142c38c
DJ
99802004-01-27 Daniel Jacobowitz <drow@mvista.com>
9981
9982 * dwarf2read.c: Update calls to changed and renamed functions, and
9983 references to moved variables.
9984
9985 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9986 language, language_defn, list_in_scope, and ftypes members.
9987 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9988 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9989 (baseaddr): Remove globals.
9990
9991 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9992 (set_cu_language, die_is_declaration, die_specification)
9993 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9994 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9995 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9996 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9997
9998 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9999 cu.list_in_scope. Don't initialize cu_header_offset.
10000 (add_partial_symbol): Add local baseaddr.
10001 (psymtab_to_symtab_1): Add local baseaddr. Use
10002 objfile->section_offsets for consistency. Don't initialize
10003 cu_header_offset; do initialize cu.header.offset and
10004 cu.list_in_scope.
10005 (read_file_scope, read_func_scope, read_lexical_block_scope)
10006 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10007
c6e06ede
MC
100082004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10009
fb328ecc 10010 * PROBLEMS: Add gdb/1516.
c6e06ede 10011
48184fd4
AC
100122003-12-29 Robert Millan <robertmh@gnu.org>
10013
10014 Patch committed by Andrw Cagney.
10015 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10016 * configure.tgt: Match knetbsd*-gnu.
10017
c1321b30
AC
100182004-01-26 Andrew Cagney <cagney@redhat.com>
10019
f3699be3
AC
10020 * breakpoint.c (catch_command_1): Delete #ifdef code.
10021 (catch_fork_command_1): Delete #ifdef wrapper.
10022 (catch_exec_command_1): Ditto.
10023 (catch_load_command_1): Ditto.
10024 (catch_unload_command_1): Ditto.
10025
c1321b30
AC
10026 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10027 (catch_breakpoint): Delete #if0ed function.
10028 (disable_catch_breakpoint): Ditto.
10029 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10030 (disable_catch, enable_catch, delete_catch): Ditto.
10031
b4501125
AC
100322004-01-26 Andrew Cagney <cagney@redhat.com>
10033
10034 * remote.c (echo_check, quit_flag): Delete variables.
10035 (cisco_kernel_mode): Delete variable.
10036 (minitelnet_return, tty_input, escape_count): Delete variables.
10037 (remote_cisco_mode): Delete variable.
10038 (remote_cisco_open, remote_cisco_close): Delete function.
10039 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10040 (init_remote_cisco_ops): Delete function.
10041 (_initialize_remote): Do not install "remote cisco" code.
10042 (read_frame): Delete cisco specific code.
10043 (remote_info_process): Delete function.
10044 (remote_wait): Delete cisco specific code.
10045 (remote_cisco_section_offsets): Delete function.
10046 (remote_cisco_objfile_relocate): Delete function.
10047 (remote_async_wait): Delete cisco specific code.
10048 (minitelnet, readtty, readsocket): Delete function.
10049
74055713
AC
100502004-01-26 Andrew Cagney <cagney@redhat.com>
10051
10052 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10053 comments mentioning extract_returned_value_address.
10054 * infcmd.c (print_return_value): Update. Add comments on
10055 extract_returned_value_address.
10056 * stack.c (return_command): Add comments on
10057 extract_returned_value_address.
10058 * values.c: Update comment.
10059 * m32r-tdep.c: Update comment.
10060 * sparc-tdep.c: Update comment.
10061 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10063 * sh64-tdep.c (sh64_gdbarch_init): Update.
10064 * sh-tdep.c (sh_gdbarch_init): Update.
10065 * s390-tdep.c (s390_gdbarch_init): Update.
10066 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10067 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10068 * m68k-tdep.c (m68k_gdbarch_init): Update.
10069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10070 * m32r-tdep.c (m32r_gdbarch_init): Update.
10071 * ia64-tdep.c (ia64_gdbarch_init): Update.
10072 * h8300-tdep.c (h8300_gdbarch_init): Update.
10073 * frv-tdep.c (frv_gdbarch_init): Update.
10074 * arm-tdep.c (arm_gdbarch_init): Update.
10075 * alpha-tdep.c (alpha_gdbarch_init): Update.
10076
a67af2b9
AC
100772004-01-26 Andrew Cagney <cagney@redhat.com>
10078
10079 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10080 SYMBOL_LOCATION_FUNCS
10081 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10082 "struct symbol_ops".
10083 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10084 type to "struct symbol_ops".
10085 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10086 (struct symbol): Replace ".aux_value.loc.funcs" and
10087 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10088 (SYMBOL_OBJFILE): Delete macro.
10089 (SYMBOL_LOCATION_FUNCS): Delete macro.
10090 (SYMBOL_LOCATION_BATON): Update.
10091 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10092 intead of SYMBOL_LOCATION_FUNCS.
10093 * ax-gdb.c (gen_var_ref): Ditto.
10094 * printcmd.c (address_info): Ditto.
10095 * findvar.c (read_var_value): Ditto.
10096 (symbol_read_needs_frame): Ditto.
10097
c034e007
AC
100982004-01-26 Andrew Cagney <cagney@redhat.com>
10099
10100 * dwarf2read.c (read_func_scope): Document frame-base hack.
10101
bb472c1e
MK
101022004-01-25 Mark Kettenis <kettenis@gnu.org>
10103
10104 * infcmd.c (print_return_value): Plug memory leak; delete
10105 ui_stream object. Rename argument `structure_return' to
10106 `struct_return'.
10107
c8e737d5
MK
101082004-01-25 Mark Kettenis <kettenis@gnu.org>
10109
f941662f
MK
10110 * infcmd.c (print_return_value): Wrap long lines.
10111 (finish_command_continuation, finish_command): Remove unused
10112 variable `funcaddr'. Fix some coding-standards problems.
10113
c558d81a 10114 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 10115 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
10116 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10117 TDEP->fpregset to zero.
10118
bf1e5861 10119 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
10120 floating-point registers for traditional NetBSD core files.
10121 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10122 TDEP->sizeof_fpregset here.
10123
4c72d57a
MK
101242004-01-25 Mark Kettenis <kettenis@gnu.org>
10125
566626fa
MK
10126 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10127 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10128 function with code split out from
10129 sparc32nbsd_sigcontext_frame_cache.
10130 (sparc32nbsd_sigcontext_frame_cache): Use
10131 sparc32nbsd_sigcontext_saved_regs.
10132 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10133 OpenBSD.
10134 * sparcobsd-tdep.c: New file.
10135 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10136 (sparcobsd-tdep.o): New dependency.
10137 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10138 * config/sparc/obsd.mt: New file.
10139
4c72d57a
MK
10140 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10141 TDEP->fpregset to be initialized to enable core file register
10142 sets.
10143
7e5e9f88
MK
101442004-01-24 Mark Kettenis <kettenis@gnu.org>
10145
f0f207fd 10146 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
10147 Add opaque declarations.
10148 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10149 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10150 function with code split out from
10151 sparc64nbsd_sigcontext_frame_cache.
10152 (sparc64nbsd_sigcontext_frame_cache): Use
10153 sparc64nbsd_sigcontext_saved_regs.
10154 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10155 OpenBSD.
10156 * sparc64obsd-tdep.c: New file.
10157 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10158 (sparc64obsd-tdep.o): New dependency.
10159 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10160 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10161 * config/sparc/obsd64.mt: New file.
10162
690668cc
MK
10163 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10164 read the instruction at PC.
10165
7e5e9f88
MK
10166 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10167 value of GDB_OSABI_DEFAULT.
10168 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10169 instead of GDB_OSABI_NETBSD_AOUT.
10170
68b6dce9
NR
101712004-01-24 Nick Roberts <nick@nick.uklinux.net>
10172
10173 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10174 copyright.
10175
080ce8c0
AC
101762004-01-23 Andrew Cagney <cagney@redhat.com>
10177
10178 * printcmd.c (display_command): Replace tui_set_display call with
10179 tui_set_layout_for_display_command.
10180 * tui/tui.h (enum tui_win_type): Define.
10181 (tui_set_layout): Delete declaration.
10182 (tui_set_layout_for_display_command): Rename set_tui_layout.
10183 * tui/tui-data.h (enum tui_layout_type): Define.
10184 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10185 "tui.h".
10186 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10187 (tui_default_win_height): Rename tuiDefaultWinHeight.
10188 (tui_default_win_viewport_height): Rename
10189 tuiDefaultWinViewportHeight.
10190 (tui_set_layout): RenametuiSetLayout.
10191 * tui/tui-layout.c: Update references.
10192 * tui/tui.c: Update references.
10193 * tui/tui-disasm.c: Update references.
10194
b368761e
DC
101952004-01-23 David Carlton <carlton@kealia.com>
10196
10197 Partial workaround for PR c++/1511:
10198 * cp-namespace.c: Include frame.h.
10199 (cp_lookup_transparent_type): New
10200 (cp_lookup_transparent_type_loop): New.
10201 * cp-support.h: Declare cp_lookup_transparent_type.
10202 * symtab.c (basic_lookup_transparent_type): Renamed from
10203 lookup_transparent_type.
10204 (lookup_transparent_type): Replace old body by a call to
10205 current_language->la_lookup_transparent_type.
10206 * symtab.h: Update copyright. Declare
10207 basic_lookup_transparent_type.
10208 * language.h: Update copyright.
10209 (struct language_defn): Add la_lookup_transparent_type.
10210 * language.c: Update copyright.
10211 (unknown_language_defn): Add basic_lookup_transparent_type.
10212 (auto_language_defn): Add basic_lookup_transparent_type.
10213 (local_language_defn): Add basic_lookup_transparent_type.
10214 * ada-lang.c: Update copyright.
10215 (ada_language_defn): Add basic_lookup_transparent_type.
10216 * c-lang.c: Update copyright.
10217 (c_language_defn): Add basic_lookup_transparent_type.
10218 (cplus_language_defn): Add basic_lookup_transparent_type.
10219 (asm_language_defn): Add basic_lookup_transparent_type.
10220 (minimal_language_defn): Add basic_lookup_transparent_type.
10221 * f-lang.c: Update copyright.
10222 (f_language_defn): Add basic_lookup_transparent_type.
10223 * jv-lang.c: Update copyright.
10224 (java_language_defn): Add basic_lookup_transparent_type.
10225 * m2-lang.c: Update copyright.
10226 (m2_language_defn): Add basic_lookup_transparent_type.
10227 * objc-lang.c: Update copyright.
10228 (objc_language_defn): Add basic_lookup_transparent_type.
10229 * p-lang.c: Update copyright.
10230 (p_language_defn): Add basic_lookup_transparent_type.
10231 * scm-lang.c: Update copyright.
10232 (scm_language_defn): Add basic_lookup_transparent_type.
10233 * Makefile.in (cp-namespace.o): Depend on frame.h.
10234
fdde2d81
DC
102352004-01-23 David Carlton <carlton@kealia.com>
10236
10237 Patch for PR c++/1520:
10238 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10239 properly if we have a specification die.
10240 (determine_prefix_aux): Rename from determine_prefix.
10241 (determine_prefix): Like the old determine_prefix, but never
10242 returns NULL.
10243
5b828b6b
TR
102442004-01-23 Theodore A. Roth <troth@openavr.org>
10245
10246 * avr-tdep.c: Update copyright.
10247 (avr_iaddr_p): Delete unused function.
10248 (avr_saddr_p): Delete unused function.
10249
a1b8c067
DC
102502004-01-23 David Carlton <carlton@kealia.com>
10251
10252 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10253 Fix for PR symtab/1534.
10254
f2cab569
MK
102552004-01-23 Mark Kettenis <kettenis@gnu.org>
10256
10257 * NEWS (New native configurations): Mention OpenBSD/sparc and
10258 OpenBSD/sparc64.
10259 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10260 * configure.host: Likewise.
10261 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10262 handler for OpenBSD.
10263 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10264
642d8300
MK
102652004-01-22 Mark Kettenis <kettenis@gnu.org>
10266
89aac506
MK
10267 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10268 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10269
36662fde
MK
10270 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10271 * cli/cli-cmds.c (shell_escape): Likewise.
10272
642d8300
MK
10273 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10274 OpenBSD .note.openbsd.ident sections.
10275
fae299cd
DC
102762004-01-22 David Carlton <carlton@kealia.com>
10277
10278 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10279 get_scope_pc_bounds.
10280 (read_file_scope): Ditto.
10281 (get_scope_pc_bounds): New function, produced by extracting code
10282 from the above two functions, consolidating it, and adding support
10283 for DW_TAG_namespace.
10284
a49d618c
MK
102852004-01-22 Mark Kettenis <kettenis@gnu.org>
10286
10287 * osabi.c (MAX_NOTESZ): New define.
10288 (check_note): New function.
10289 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10290 check_note.
10291
fe61caab
RM
102922004-01-21 Roland McGrath <roland@redhat.com>
10293
10294 * MAINTAINERS (write after approval): Add myself.
10295
ec145965
EZ
102962004-01-21 Eli Zaretskii <eliz@gnu.org>
10297
10298 * utils.c (init_page_info): Move declarations of `rows' and
10299 `cols' before the __GO32__-specific code. Move the closing brace
10300 outside the #ifdef __GO32__..#endif block.
10301 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10302
877522db
PB
103032004-01-21 Paul Brook <paul@codesourcery.com>
10304
10305 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10306 BPSTAT_WHAT_CHECK_SHLIBS.
10307
dbf5be1c
PB
103082004-01-21 Paul Brook <paul@codesourcery.com>
10309
10310 * MAINTAINERS: Add myself to write-after-approval.
10311
81f08b92
AC
103122004-01-20 Andrew Cagney <cagney@redhat.com>
10313
5a1efed7
AC
10314 * ax-gdb.c (print_axs_value): Delete unused function.
10315 * jv-lang.c (java_lookup_type): Delete unused function.
10316 * cli/cli-dump.c (dump_filetype): Delete unused function.
10317 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10318 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10319 (mips_getstring): Delete unused function.
10320 (pmon_insert_breakpoint): Delete #if0ed function.
10321 (PMON_MAX_BP): Delete #if0ed MACRO.
10322 (mips_pmon_bp_info): Delete #if0ed variable.
10323 (pmon_remove_breakpoint): Delete #if0ed function.
10324 * monitor.c (monitor_write_even_block): Delete unused function.
10325 (monitor_write_memory_block): Delete #if0ed code.
10326 * dink32-rom.c (dink32_load): Delete unused function.
10327 (_initialize_dink32_rom): Delete #if0ed code.
10328 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10329
b0a30fce
AC
10330 * tui/tui-command.c: Update references.
10331 * tui/tui-io.c: Update references.
10332 * tui/tui-command.h: Update copyright.
10333 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10334
81f08b92
AC
10335 * source.c (ambiguous_line_spec): Delete never-defined function.
10336 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10337 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10338 * cli/cli-cmds.c (validate_comname): Ditto.
10339
65f05602
AC
10340 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10341 "tui-data.h".
10342 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10343 (tui_show_disassem): Rename tuiShowDisassem.
10344 (tui_show_disassem_and_update_source): Rename
10345 tuiVerticalDisassemScroll.
10346 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10347 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10348 * tui/tui.h: Update copyright.
10349 (enum tui_status): Define.
10350 * tui/tui-data.h (enum tui_scroll_direction): Define.
10351 * tui/tui-disasm.c: Update copyright. Update references.
10352 * tui/tui-winsource.c: Update copyright. Update references.
10353 * tui/tui-win.c: Update references.
10354 * tui/tui-layout.c: Update references.
10355
6bb0384f
AC
103562004-01-20 Andrew Cagney <cagney@redhat.com>
10357
10358 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10359 sym2 to start of block.
10360
9175c9a3
MC
103612004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10362
10363 * MAINTAINERS: Delete mmalloc.
10364 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10365 * NEWS: Mention removal of --with-malloc.
10366 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10367 * config.in: Regenerate.
10368 * configure: Regenerate.
6bb0384f
AC
10369 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10370 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
10371 * gdbinit.in: Remove mmalloc.
10372 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10373 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10374 * config/i386/go32.mh: Likewise.
10375 * config/i386/interix.mh: Likewise.
10376 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10377
4fcef00a
JJ
103782004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10379
10380 * linespec.c (decode_variable, symtab_from_filename): Call
10381 error_silent with error message instead of throwing an exception
10382 directly.
10383 * defs.h (error_silent, error_output_message): Add prototypes.
10384 (catch_exceptions_with_msg): Ditto.
10385 * utils.c (error_silent, error_output_message): New functions.
10386 * top.c (catch_exceptions_with_msg): New function.
10387
8e94b928
NR
103882004-01-20 Nick Roberts <nick@nick.uklinux.net>
10389
10390 * mi/mi-cmds.h (enum print_values): Add definition.
10391
10392 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10393 type and value for simple data types and just the name and type
10394 for complex ones, if required.
10395
10396 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10397 children, if required.
10398
a02d6af8
KB
103992004-01-19 Kevin Buettner <kevinb@redhat.com>
10400
10401 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10402 unused declarations.
10403
78a4a9b9
AC
104042004-01-19 Andrew Cagney <cagney@redhat.com>
10405
10406 * top.h (mapped_symbol_files): Delete declaration.
10407 * main.c (captured_main): Delete option "m" and "mapped".
10408 * objfiles.c (mapped_symbol_files): Delete variable.
10409 * symfile.c (symbol_file_command): Delete mmap code.
10410 (symbol_file_add_with_addrs_or_offsets): Ditto.
10411 (add_symbol_file_command, reread_separate_symbols): Ditto.
10412 * objfiles.h (OBJF_MAPPED): Delete.
10413 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10414 (free_objfile) [USE_MMALLOC]: Ditto.
10415 (open_existing_mapped_file): Delete function.
10416 (open_mapped_file): Delete function.
10417 (map_to_file): Delete function.
10418
2dbd5e30
KB
104192004-01-19 Kevin Buettner <kevinb@redhat.com>
10420
10421 * infrun.c (step_into_function): Account for possible breakpoint
10422 adjustment when computing ``stop_func_start''.
10423
437b434f
KB
104242004-01-19 Kevin Buettner <kevinb@redhat.com>
10425
10426 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10427 the region size against the size of a pointer, not the size of
10428 a register as given by DEPRECATED_REGISTER_SIZE.
10429
55fb0713
AC
104302004-01-19 Andrew Cagney <cagney@redhat.com>
10431
10432 * tui/tui-regs.h: Include "tui-data.h".
10433 (tuiFirstRegElementNoInLine): Delete declaration.
10434 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10435 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10436 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10437 (tui_calculate_regs_column_count): Rename
10438 tuiCalculateRegsColumnCount.
10439 (tui_check_register_values): Rename tuiCheckRegisterValues.
10440 (tui_show_registers): Rename tuiShowRegisters.
10441 (tui_display_registers_from_line): Rename
10442 tuiDisplayRegistersFromLine.
10443 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10444 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10445 (tui_first_reg_element_no_inline): Rename
10446 tuiFirstRegElementNoInLine.
10447 * tui/tui-data.h: Update copyright.
10448 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10449 * tui/tui-windata.c: Update copyright, update references.
10450 * tui/tui-regs.c: Update copyright, update references.
10451 * tui/tui-win.c: Update copyright, update references.
10452 * tui/tui-layout.c: Update copyright, update references.
fe61caab 10453
cebe9500
AC
104542004-01-18 Andrew Cagney <cagney@redhat.com>
10455
bcdf1568
AC
10456 * tui/tui-io.c: Update copyright.
10457 (key_is_end_sequence, key_is_backspace): New functions.
10458 (key_is_command_char, key_is_start_sequence): New function.
10459 (tui_getc): Update references.
10460 * tui/tui-io.h: Update copyright.
10461 (m_tuiStartNewLine): Delete macro.
10462 (m_isBackspace, m_isDeleteChar): Delete macros.
10463 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10464 (m_isNextPage, m_isPrevPage): Delete macros.
10465 (m_isLeftArrow, m_isRightArrow): Delete macros.
10466 (m_isXdbStyleCommandChar): Delete macro.
10467 (key_is_start_sequence): Declare, replace m_isStartSequence.
10468 (key_is_end_sequence): Declare, replace m_isEndSequence.
10469 (key_is_backspace): Declare ,replace m_isBackspace.
10470 (key_is_command_char): Declare, replace m_isCommandChar.
10471 * tui/tui-command.c: Update copyright.
10472 (tuiDispatchCtrlChar): Update references.
10473
130d87e6
AC
10474 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10475 tuiSourceWin.h.
10476
d7b2e967
AC
10477 * tui/tui-command.c: Rename tui/tuiCommand.c.
10478 * tui/tui-command.h: Rename tui/tuiCommand.h.
10479 * tui/tui-data.c: Rename tui/tuiData.c.
10480 * tui/tui-data.h: Rename tui/tuiData.h.
10481 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10482 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10483 * tui/tui-io.c: Rename tui/tuiIO.c.
10484 * tui/tui-io.h: Rename tui/tuiIO.h.
10485 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10486 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10487 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10488 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10489 * tui/tui-source.c: Rename tui/tuiSource.c.
10490 * tui/tui-source.h: Rename tui/tuiSource.h.
10491 * tui/tui-stack.c: Rename tui/tuiStack.c.
10492 * tui/tui-stack.h: Rename tui/tuiStack.h.
10493 * tui/tui-win.c: Rename tui/tuiWin.c.
10494 * tui/tui-win.h: Rename tui/tuiWin.h.
10495 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10496 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10497 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10498 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10499 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10500 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10501 * tui/tui-file.c: Update includes.
10502 * tui/tui-hooks.c: Update includes.
10503 * tui/tui-interp.c: Update includes.
10504 * tui/tui.c: Update includes.
10505 * Makefile.in: Update all tui/ dependencies.
10506 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10507
b2100910
AC
10508 * Makefile.in: Update copyright. Update dependencies.
10509
cebe9500
AC
10510 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10511 problem.
10512
c6f0559b
AC
105132004-01-18 Andrew Cagney <cagney@redhat.com>
10514
43e9390b
AC
10515 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10516 instead of register_gdbarch_init.
10517
c6f0559b
AC
10518 * remote-sds.c (tohex): Delete unused function. Update copyright.
10519 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10520 * v850-tdep.c (v850_register_virtual_size): Ditto.
10521 * target.c (normal_target_post_startup_inferior): Ditto.
10522 * source.c (ambiguous_line_spec): Ditto.
10523 * remote.c (adapt_remote_get_threadinfo): Ditto.
10524 * mi/mi-out.c (out_field_fmt): Ditto.
10525 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10526 (output_control_change_notification): Ditto.
10527 * m68k-tdep.c (m68k_register_byte): Ditto.
10528 (m68k_remote_breakpoint_from_pc): Ditto.
10529 * ui-out.c (init_ui_out_state): Delete unused declaration.
10530 * stabsread.c (search_value): Ditto.
10531 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10532 * maint.c (print_section_table): Ditto.
10533 * infrun.c (set_follow_fork_mode_command): Ditto.
10534
a8504492
MK
105352004-01-18 Mark Kettenis <kettenis@gnu.org>
10536
10537 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10538 DW_CFA_def_cfa_exporession. Add support for
10539 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10540 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10541
0bd8997e
AC
105422004-01-18 Andrew Cagney <cagney@redhat.com>
10543
10544 * ocd.c: Update copyright.
10545 (bdm_read_register_command): Delete unused function.
10546 (_initialize_remote_ocd): Delete commented out reference.
10547 (get_quoted_char, reset_packet): Delete #if0ed function.
10548 (output_packet, put_quoted_char): Delete #if0ed function.
10549 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10550 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10551 (BDM_BREAKPOINT): Delete #if0ed macro.
10552 (remote_timeout): Delete #if0ed variable.
10553
31bb40e4
MK
105542004-01-18 Mark Kettenis <kettenis@gnu.org>
10555
10556 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10557 (core-sol2.o): Remove dependency.
10558 * core-sol2.c: Remove file.
10559
887432a5
AC
105602004-01-17 Andrew Cagney <cagney@redhat.com>
10561
10562 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10563 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10564 enums.
10565
29182b13
DJ
105662004-01-17 Daniel Jacobowitz <drow@mvista.com>
10567
10568 * remote.c: Update copyright years.
10569
2963ee1d
DJ
105702004-01-17 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10573
79d45cd4
AC
105742004-01-17 Andrew Cagney <cagney@redhat.com>
10575
ee300cd4
AC
10576 * mdebugread.c: Update copyright.
10577 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10578 (parse_type, parse_procedure): Ditto.
10579 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10580
fcacc9c2
AC
10581 * cris-tdep.c (cris_store_struct_return): Put back accidently
10582 deleted function.
10583
79d45cd4
AC
10584 * gdbarch.sh: Update copyright year.
10585 * gdbarch.h, gdbarch.c: Re-generate.
10586
b263358a
DJ
105872004-01-17 Daniel Jacobowitz <drow@mvista.com>
10588
10589 Suggested by George Anzinger.
10590 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10591 correct stack offset. Include unknown opcode numbers in the error
10592 message.
10593
931aecf5
AC
105942004-01-17 Andrew Cagney <cagney@redhat.com>
10595
10596 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10597 extract_struct_value_address, i386 does not set it.
10598 * sparc64-tdep.c (sparc64_init_abi): Do not set
10599 extract_struct_value_address, never called.
10600 (sparc64_extract_struct_value_address): Delete function.
10601 * m68hc11-tdep.c: Update copyright.
10602 (m68hc11_gdbarch_init): Delete redundant assignment of
10603 extract_struct_value_address.
10604 * i386-tdep.c: Update copyright.
10605 (i386_gdbarch_init): Do not set extract_struct_value_address,
10606 never called.
10607 (i386_extract_struct_value_address): Delete function.
10608 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10609 extract_struct_value_address, never called.
10610 (sparc32_extract_struct_value_address): #if 0 function. Add
10611 comments explaining its future.
10612
756fe439
DJ
106132004-01-17 Daniel Jacobowitz <drow@mvista.com>
10614
10615 * arm-tdep.c (arm_write_pc): New function.
10616 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10617
e74f0f02
DJ
106182004-01-17 Daniel Jacobowitz <drow@mvista.com>
10619
10620 * breakpoint.c (must_shift_inst_regs): Delete.
10621 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10622 and SHIFT_INST_REGS.
10623 * infcmd.c (step_1, step_1_continuation): Delete references to
10624 SHIFT_INST_REGS.
10625 * infrun.c (keep_going): Likewise.
10626 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10627 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10628
b6cb9035
AC
106292004-01-17 Andrew Cagney <cagney@redhat.com>
10630
444a1e2e
AC
10631 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10632 * gdbarch.h, gdbarch.c: Re-generate.
10633 * infcmd.c (print_return_value): Delete reference to
10634 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10635
def7e6ed
AC
10636 * cris-tdep.c (cris_gdbarch_init): Do not set
10637 deprecated_extract_struct_value_address.
10638
07be497a
AC
10639 * xstormy16-tdep.c: Update copyright.
10640 (xstormy16_extract_struct_value_address): Update to current
10641 extract struct value address interface.
10642 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10643 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10644 current extract struct value address interface.
10645 (sh64_gdbarch_init): Set extract_struct_value_address.
10646
6b4d5c91
AC
10647 * cris-tdep.c: Update copyright.
10648 (cris_extract_struct_value_address): Delete function.
10649 (struct_return_address): Delete variable.
10650 (cris_store_struct_return): Do not set struct_return_address.
10651
464e0365
AC
10652 * mcore-tdep.c: Update copyright.
10653 (mcore_extract_struct_value_address): Delete function. Update
10654 comments.
10655 (mcore_gdbarch_init): Update.
10656 * mn10300-tdep.c: Update copyright.
10657 (mn10300_extract_struct_value_address): Delete function.
10658 (mn10300_gdbarch_init): Update.
10659 * v850-tdep.c: Update copyright.
10660 (v850_extract_struct_value_address): Delete.
10661 (v850_gdbarch_init): Update.
10662 * ns32k-tdep.c: Update copyright.
10663 (ns32k_extract_struct_value_address): Delete.
10664 (ns32k_gdbarch_init): Update.
10665 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10666 (hppa_gdbarch_init): Update.
10667 * vax-tdep.c: Update copyright.
10668 (vax_extract_struct_value_address): Delete.
10669 (vax_gdbarch_init): Update.
10670
afb18d0f
AC
10671 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10672 * gdbarch.h, gdbarch.c: Re-generate.
10673 * procfs.c (procfs_fetch_registers): Delete reference to
10674 DEPRECATED_NPC_REGNUM.
10675 (procfs_store_registers): Ditto.
10676 * regcache.c (generic_target_write_pc): Simplify.
10677 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10678
a698f53e
AC
10679 * core-sol2.c (fetch_core_registers): Replace
10680 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10681
adc11376
AC
10682 * hppa-tdep.c: Update copyright year.
10683 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10684 NPC_REGNUM.
10685 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10686
b6cb9035
AC
10687 * mips-tdep.c (mips_write_pc): New function.
10688 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10689 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10690 (mips_find_saved_regs, mips_software_single_step: Ditto.
10691 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10692 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10693
6d82d43b
AC
106942004-01-17 Andrew Cagney <cagney@redhat.com>
10695
10696 * mips-tdep.c: Re-indent. Group functions by ABI.
10697
71bd6bd4
AC
106982004-01-17 Andrew Cagney <cagney@redhat.com>
10699
10700 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10701 * gdbarch.c: Re-generate.
10702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10703 DECR_PC_AFTER_BREAK to zero.
10704 * vax-tdep.c (vax_gdbarch_init): Ditto.
10705 * v850-tdep.c (v850_gdbarch_init): Ditto.
10706 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10707 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10708 * sh-tdep.c (sh_gdbarch_init): Ditto.
10709 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10710 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10711 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10712 * mips-tdep.c (mips_gdbarch_init): Ditto.
10713 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10715 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10716 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10717 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10718 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10719 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10720 * frv-tdep.c (frv_gdbarch_init): Ditto.
10721 * cris-tdep.c (cris_gdbarch_init): Ditto.
10722 * avr-tdep.c (avr_gdbarch_init): Ditto.
10723 * arm-tdep.c (arm_gdbarch_init): Ditto.
10724 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10725
a02abb62
JB
107262004-01-17 J. Brobecker <brobecker@gnat.com>
10727
10728 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10729 Delete, no longer used.
10730 (read_subrange_type): New function, mostly extracted from
10731 read_array_type().
10732 (read_array_type): Replace extracted code by call to
10733 read_subrange_type().
10734 (dwarf2_get_attr_constant_value): New function.
10735 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10736 (add_partial_symbol): Likewise.
10737 (process_die): Likewise.
10738 (new_symbol): Likewise.
10739 (read_type_die): Likewise.
10740
cf5b2f1b
AC
107412004-01-16 Andrew Cagney <cagney@redhat.com>
10742
10743 * symfile.c: Update copyright year.
10744 (compare_symbols): Delete unused function.
10745 * stabsread.c: Update copyright year.
10746 (lrs_general_complaint): Delete unused function.
10747 (ref_search_value): Ditto.
10748 (get_substring): Delete declaration.
10749 * sh64-tdep.c: Update copyright year.
10750 (sh64_get_gdb_regnum): Delete unused function.
10751 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10752 Delete unused function.
10753
d33b9831
MK
107542004-01-17 Mark Kettenis <kettenis@gnu.org>
10755
10756 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10757 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10758
7aea86e6
AC
107592004-01-16 Andrew Cagney <cagney@redhat.com>
10760
10761 Changes from Peter Schauer.
10762 * rs6000-tdep.c: Update copyright year.
10763 (rs6000_push_dummy_call): Update the stack pointer before
10764 accessing the corresponding stack region.
10765 * rs6000-nat.c: Update copyright year.
10766 (set_host_arch): Set "info.abfd" to "exec_bfd".
10767
26b0da32
MK
107682004-01-15 Mark Kettenis <kettenis@gnu.org>
10769
10770 * blockframe.c: Update copyright year.
10771 (inside_entry_func): Don't treat a zero PC specially.
10772
86fbe6cc
EZ
107732004-01-14 Elena Zannoni <ezannoni@redhat.com>
10774
10775 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10776 variable.
10777 (gcore_create_callback): Ditto. Skip any memory segment that has
10778 no permissions set.
10779
63d06c5c
DC
107802004-01-14 David Carlton <carlton@kealia.com>
10781
10782 Change symbols for C++ nested types to contain the fully qualified
10783 name, if possible. (At least in the DWARF-2 case.) Partial fix
10784 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10785 c++/895.
10786 * c-exp.y (qualified_type): Handle types nested within classes.
10787 * cp-namespace.c: Update comments.
10788 (cp_set_block_scope): Delete #if 0.
10789 (cp_lookup_nested_type): Handle types nested within classes.
10790 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10791 when appropriate.
10792 (add_partial_symbol): Add the name of the enclosing namespace to
10793 types.
10794 (pdi_needs_namespace): New.
10795 (add_partial_namespace): Tweak comment.
10796 (add_partial_structure): New.
10797 (psymtab_to_symtab_1): Initialize processing_current_prefix
10798 here...
10799 (process_die): instead of here.
10800 (read_structure_scope): Try to figure out the name of the class or
10801 namespace that the structure might be defined within.
10802 (read_enumeration): Generate fully-qualified names, if possible.
10803 (read_namespace): Don't set name to NULL.
10804 (die_specification): New.
10805 (new_symbol): Generate fully-qualified names for types.
10806 (read_type_die): Determine appropriate prefix.
10807 (determine_prefix): New.
10808 (typename_concat): New.
10809 (class_name): New.
10810 * valops.c (value_aggregate_elt): Pass NOSIDE to
10811 value_struct_elt_for_reference.
10812 (value_struct_elt_for_reference): Make static, add NOSIDE
10813 parameter, call value_maybe_namespace_elt as a last resort.
10814 (value_namespace_elt): Break out code into
10815 value_maybe_namespace_elt.
10816 (value_maybe_namespace_elt): New.
10817
87783b8b
AC
108182004-01-12 Andrew Cagney <cagney@redhat.com>
10819
10820 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10821 cooked floating-point registers.
10822 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10823 and value_to_register.
10824
6503b91e
AC
108252004-01-13 Andrew Cagney <cagney@redhat.com>
10826
10827 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10828 * gdbarch.c: Re-generate.
10829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10830 FUNCTION_START_OFFSET.
10831 * v850-tdep.c (v850_gdbarch_init): Ditto.
10832 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10833 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10834 * sh-tdep.c (sh_gdbarch_init): Ditto.
10835 * s390-tdep.c (s390_gdbarch_init): Ditto.
10836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10837 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10838 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10839 * mips-tdep.c (mips_gdbarch_init): Ditto.
10840 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10841 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10843 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10844 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10845 * i386-tdep.c (i386_gdbarch_init): Ditto.
10846 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10847 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10848 * frv-tdep.c (frv_gdbarch_init): Ditto.
10849 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10850 * cris-tdep.c (cris_gdbarch_init): Ditto.
10851 * avr-tdep.c (avr_gdbarch_init): Ditto.
10852 * arm-tdep.c (arm_gdbarch_init): Ditto.
10853 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10854
ea1dd7bc
DJ
108552004-01-13 Daniel Jacobowitz <drow@mvista.com>
10856
10857 * infrun.c (follow_fork_mode_ask): Remove.
10858 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10859 (follow_fork): Simplify and remove internal error for
10860 follow_fork_mode_ask.
10861 (_initialize_infrun): Update "set follow-fork-mode" help text.
10862
0f0cffd2
AC
108632004-01-13 Andrew Cagney <cagney@redhat.com>
10864
10865 * configure.in: Update copyright year.
10866 (build_warnings): Add -Wunused-label.
10867 * configure: Re-generate.
10868
de38af99
AC
108692004-01-12 Andrew Cagney <cagney@redhat.com>
10870
954a7fba
AC
10871 * exec.h (exec_ops): Make "extern".
10872
de38af99
AC
10873 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10874 the function is void.
10875 (mips_pseudo_register_write): Ditto.
10876
1a111ce3
AC
108772004-01-12 Andrew Cagney <cagney@redhat.com>
10878
10879 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10880 call. Never defined.
10881 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10882 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10883 (struct sparc_gregset, struct regcache): Ditto.
10884 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10885
48efe704
AC
108862004-01-12 Andrew Cagney <cagney@redhat.com>
10887
10888 * mi/ChangeLog: Delete file. Renamed to ...
10889 * mi/ChangeLog-1999-2003: New file.
10890 * tui/ChangeLog: Delete file. Renamed to ...
10891 * tui/ChangeLog-1998-2003: New file.
fe61caab 10892
a54124c5
MK
108932004-01-11 Mark Kettenis <kettenis@gnu.org>
10894
2ca62865
MK
10895 * sparc64nbsd-tdep.c: Include "regset.h".
10896 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10897 Remove variables.
10898 (fetch_core_registers): Remove function.
10899 (sparc64nbsd_core_fns): Remove variable.
10900 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10901 functions.
10902 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10903 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10904 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10905
ca9d58e9
MK
10906 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10907 sparc_extract_struct_value_address.
10908 (sparc32_gdbarch_init): Set extract_struct_value_address.
10909 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10910 function.
10911 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10912 return_value_on_stack.
10913
3cc87ec0
MK
10914 * NEWS: Mention that %cs and %ss have been added to the AMD64
10915 configurations
10916
5bf00f29
MK
10917 * frame.c: Update copyright year.
10918 (get_prev_frame): Improve comment.
10919
4f7ec84e
MK
10920 * sparc64fbsd-tdep.c: Include "regset.h".
10921 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10922 Remove variables.
10923 (fetch_core_registers): Remove function.
10924 (sparc64fbsd_core_fns): Remove variable.
10925 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10926 functions.
10927 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10928 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10929 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10930
4e7b0cd3
MK
10931 * sparcnbsd-tdep.c: Include "regset.h".
10932 (fetch_core_registers): Remove function.
10933 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10934 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10935 functions.
10936 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10937 TDEP->fpregset.
46b58ce9 10938 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10939
a54124c5
MK
10940 * sparc-tdep.h (struct regset): Provide opaque declaration.
10941 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10942 fpregset and sizeof_fpregset members.
10943 * sparc-tdep.c (struct regset): Provide opaque declaration.
10944 (sparc_regset_from_core_section): New function.
10945 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10946 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10947 Set regset_from_core_section when appropriate.
10948
29ff87c5
MK
109492004-01-10 Mark Kettenis <kettenis@gnu.org>
10950
79b1ab3d
MK
10951 * x86-64-tdep.c (amd64_non_pod_p): New function.
10952 (amd64_classify_aggregate): Return class memory for non-POD
10953 C++ structure types.
10954
6470d250
MK
10955 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10956 argument. Use it to reserve a register if necessary.
10957 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10958 amd64_push_arguments.
10959
562c50c2
MK
10960 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10961
af233647
MK
10962 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10963 register numbers in comments.
10964 * x86-64-tdep.h: Update copyright year.
10965 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10966 Adjust for addition of %cs and %ss.
10967 * amd64fbsd-nat.c: Update copyright year.
10968 (reg_offset): Add register offsets for %cs and %ss.
10969 * amd64fbsd-tdep.c: Update copyright year.
10970 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10971 (amd64fbsd_sc_reg_offset): Likewise.
10972 * x86-64-linux-nat.c: Update copyright year.
10973 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10974 and %ss.
10975 * amd64nbsd-nat.c: Update copyright year.
10976 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10977 * amd64nbsd-tdep.c: Update copyright year.
10978 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10979 * x86-64-linux-tdep.c: Update copyright year.
10980 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10981 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10982 * regformats/reg-x86-64.dat: Add %cs and %ss.
10983
29ff87c5
MK
10984 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10985 variables to prevent long lines. Update comments to reflect
10986 reality.
10987
38d518c9
EZ
109882004-01-09 David Carlton <carlton@kealia.com>
10989
10990 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10991 * dwarf2read.c (read_namespace): Pull out name-generating code
10992 into namespace_name. Rename previous_namespace to previous_prefix
10993 and processing_current_namespace to processing_current_prefix..
10994 (namespace_name): New function.
10995 (add_partial_symbol): Substitute uses of pdi->name with
10996 actual_name.
10997 * cp-support.h: Rename processing_current_namespace to
10998 processing_current_prefix.
10999 Update copyright year.
11000 * cp-namespace.c: Rename processing_current_namespace to
11001 processing_current_prefix.
11002 Update copyright year.
fe61caab 11003
1e4728e7
AC
110042004-01-09 Andrew Cagney <cagney@redhat.com>
11005
11006 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11007
c77c642a
MK
110082004-01-09 Mark Kettenis <kettenis@gnu.org>
11009
11010 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11011 complaining.
11012 (process_one_symbol): Deal with N_PATCH stabs.
11013
b44e9041
EZ
110142004-01-09 Elena Zannoni <ezannoni@redhat.com>
11015
11016 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11017 ifdeffed code.
11018 Update copyright year.
38d518c9 11019
eccfb640
MC
110202004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11021
11022 * config/pa/tm-hppa.h: Update extern declarations for
11023 hppa32_hpux_frame_saved_pc_in_sigtramp,
11024 hppa32_hpux_frame_base_before_sigtramp, and
11025 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11026
848c5feb
MC
110272004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11028
11029 * config/pa/tm-hppah.h: Update copyright years.
11030
3cc5d663
AC
110312004-01-08 Andrew Cagney <cagney@redhat.com>
11032
11033 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11034 (mips_o32_reg_struct_has_addr): Delete function.
11035 (mips_gdbarch_init): Update.
11036 (mips_extract_struct_value_address): Delete function.
11037
bfec0b41
JJ
110382004-01-08 David Mosberger <davidm@hpl.hp.com>
11039
11040 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11041 reality.
11042
16e109ca
AC
110432004-01-07 Andrew Cagney <cagney@redhat.com>
11044
6214a8a1
AC
11045 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11046 architecture's elf flags (when available).
11047
8d5838b5
AC
11048 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11049 FPU to the start, check the MIPS FPU when looking for an old
11050 architecture.
11051 (set_mipsfpu_single_command): Update the architecture.
11052 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11053
480d3dd2
AC
11054 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11055 (mips_mask_address_p): Add "tdep" parameter.
11056 (show_mask_address, mips_addr_bits_remove): Update.
11057 (mips_dump_tdep): Update.
11058 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11059 (MIPS_STACK_ARGSIZE): Delete macro.
11060 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11061 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11062 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11063 (mips_dump_tdep): Update.
11064 (MIPS_SAVED_REGSIZE): Delete macro.
11065 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11066 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11067 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11068 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11069 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11070 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11071 (mips_pop_frame, return_value_location): Update.
11072 (mips_n32n64_return_value, mips_dump_tdep): Update.
11073
ec03c1ac
AC
11074 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11075 MIPS ABI.
11076
16e109ca
AC
11077 * mips-tdep.c: Update copyright.
11078 (mips_gdbarch_init): Merge two code blocks handling the register
11079 name and number layout.
11080
15255275
MS
110812004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11082
11083 * tracepoint.c (validate_actionline): Fix segv at EOF
11084
9f9057da
MC
110852004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11086
11087 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11088 properly for static fields.
11089
0127c0d3 110902004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 11091 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
11092
11093 * disasm.c: Update copyright to include 2004.
11094 (do_mixed_source_and_assembly): For uiout asm list
11095 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 11096 NULL and do so prior to loop. Only reset when we close off
0127c0d3 11097 the tuple/list. Move check for whether to close off the
fe61caab 11098 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
11099 on each loop iteration.
11100
5269965e
AC
111012004-01-05 Andrew Cagney <cagney@redhat.com>
11102
54f1137d
AC
11103 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11104 should be a switch case and not a label.
11105 * mips-tdep.c (mips32_next_pc): Delete unused labels
11106 "greater_equal_branch" and "less_zero_branch".
11107 * jv-valprint.c (java_print_value_fields): Delete unused label
11108 "flush_it".
11109
5269965e
AC
11110 * target.c (unpush_target): Only close a target that is in the
11111 target stack.
11112
dbc22fa1
MK
111132004-01-05 Mark Kettenis <kettenis@gnu.org>
11114
9515395e
MK
11115 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11116 address from [sp + 64] instead of %o2.
11117
dbc22fa1
MK
11118 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11119 fixes PR backtrace/1476.
11120
5439edaa
AC
111212004-01-05 Andrew Cagney <cagney@redhat.com>
11122
11123 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11124 move to start of file.
11125 * i386-tdep.h (struct regcache): Add opaque declaration.
11126 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11127 declaration.
11128 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11129 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11130 * win32-nat.c (fake_create_process): Use ISO C style definition.
11131 * stabsread.c (define_symbol): Delete #ifndef
11132 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11133 stabs_argument_has_addr call, macro never defined.
11134
19061abe
MC
111352004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11136
11137 * op50-rom.c: Delete.
11138 * w89k-rom.c: Delete.
11139 * Makefile.in: Remove references.
11140
e53bef9f
MK
111412004-01-04 Mark Kettenis <kettenis@gnu.org>
11142
11143 * x86-64-tdep.c: Update copyright year.
11144 (struct amd64_register_info): Rename from x86_64_register_info.
11145 (amd64_register_info): Rename from x86_64_register_info.
11146 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11147 (amd64_register_name): Rename from x86_64_register_name.
11148 (amd64_register_type): Rename from x86_64_register_type.
11149 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11150 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11151 (amd64_dwarf_reg_to_regnum): Rename from
11152 x86_64_dwarf_reg_to_regnum.
11153 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11154 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11155 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11156 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11157 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11158 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11159 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11160 (amd64_frame_cache): Rename from x86_64_frame_cache.
11161 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11162 (amd64_frame_prev_register): Rename from
11163 x86_64_frame_prev_register.
11164 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11165 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11166 (amd64_sigtramp_frame_cache): Rename from
11167 x86_64_sigtramp_frame_cache.
11168 (amd64_sigtramp_frame_prev_register): Rename from
11169 x86_64_sigtramp_frame_prev_register.
11170 (amd64_sigtramp_frame_unwind): Rename from
11171 x86_64_sigtramp_frame_unwind.
11172 (amd64_sigtramp_frame_sniffer): Rename from
11173 x86_64_sigtramp_frame_sniffer.
11174 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11175 (amd64_frame_base): Rename from x86_64_frame_base.
11176 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11177 (amd64_frame_align): Rename from x86_64_frame_align.
11178 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11179 (amd64_regset_from_core_section): Rename from
11180 x86_64_regset_from_core_section.
11181 (x86_64_init_abi): Update comments.
11182
fca6aa58
NR
111832004-01-04 Nick Roberts <nick@nick.uklinux.net>
11184
11185 * MAINTAINERS (write after approval): Add myself.
11186
8ada74e3
MK
111872004-01-04 Mark Kettenis <kettenis@gnu.org>
11188
11189 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11190 `float' arguments.
11191
5154b0cd
MK
111922004-01-04 Mark Kettenis <kettenis@gnu.org>
11193
11194 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11195 such that it mentions a specific version of GCC that exhibits this
11196 bug.
11197
fb316966
MK
111982004-01-03 Mark Kettenis <kettenis@gnu.org>
11199
200cc553
MK
11200 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11201 structure that has a single `float' member, store it in %f1 in
11202 addition to %f0.
11203
e226a4a0
MK
11204 * sparc-sol2-nat.c: Add missing '\'.
11205
b9d4c5ed
MK
11206 * sparc-tdep.c (sparc32_return_value): New function.
11207 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11208 Remove functions.
11209 (sparc32_gdbarch_init): Set return_value, don't set
11210 extract_return_value, store_return_value, use_struct_convention
11211 and return_value_on_stack.
11212
fb316966
MK
11213 * sparc-sol2-nat.c: Add missing ')'.
11214
1af510a8
JB
112152004-01-03 J. Brobecker <brobecker@gnat.com>
11216
11217 * infrun.c (handle_step_into_function): New function.
11218 (handle_inferior_event): Extract out some code into the new
11219 function above.
11220
5cf4d23a
JB
112212004-01-03 J. Brobecker <brobecker@gnat.com>
11222
11223 * infrun.c (handle_inferior_event): Move the declaration of
11224 real_stop_pc inside the if blocks where it is used.
11225
60af1db2
MK
112262004-01-03 Mark Kettenis <kettenis@gnu.org>
11227
11228 * sparc64-tdep.c (sparc64_16_byte_align_p)
11229 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11230 Use check_typedef to get subtypes of structures and unions.
11231 (sparc64_store_return_value): Fix calculation of the appropriate
11232 offset into VALBUF when storing a structure or union.
11233 (sparc64_return_value): New function.
11234 (sparc64_use_struct_convention): Remove function.
11235 (sparc64_init_abi): Set return_value, don't set
11236 extract_return_value, store_return_value and
11237 use_struct_convention.
11238
1a901d3f
EZ
112392004-01-03 Eli Zaretskii <eliz@elta.co.il>
11240
11241 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11242 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11243 gdb/config/alpha/xm-alphaosf.h,
11244 gdb/config/powerpc/tm-ppcle-eabi.h,
11245 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11246 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11247 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11248 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11249 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11250 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11251 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11252 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11253 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11254 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11255 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11256 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11257 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11258 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11259 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11260 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11261 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11262 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11263 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11264 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11265 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11266 Remove lines for .cvsignore files.
11267
ef52e463
JB
112682004-01-03 J. Brobecker <brobecker@gnat.com>
11269
11270 * infrun.c: Back out the previous change.
11271
cb1bf9dc
MK
112722004-01-03 Mark Kettenis <kettenis@gnu.org>
11273
f0424ef6
MK
11274 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11275 sparc-*-sunos4* to the list of REMOVED configurations.
11276
cb1bf9dc
MK
11277 * configure.tgt: Add back sparc-*-vxworks*.
11278 * remote-vxsparc.c: Remove all includes except for "defs.h",
11279 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11280 Include "sparc-tdep.h".
11281 (SPARC_R_G1): New define.
11282 (vxsparc_gregset): New variable.
11283 (ext_format_sparc): Remove extern declaration.
11284 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11285 sparc32_supply_fpregset.
11286 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11287 sparc_collect_rwindow and sparc32_collect_fpregset.
11288 * config/sparc/tm-vxworks.h: New file, based on recently removed
11289 tm-vxsparc.h.
11290 * config/sparc/vxworks.mt: New file, based on recently removed
11291 vxworks.mt.
fe61caab 11292
5e938f9f
JB
112932004-01-03 J. Brobecker <brobecker@gnat.com>
11294
11295 * infrun.c (handle_step_into_function): New function.
11296 (handle_inferior_event): Extract out some code into the new
11297 function above.
11298
386c036b
MK
112992004-01-02 Mark Kettenis <kettenis@gnu.org>
11300
11301 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11302 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11303 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11304 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11305 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11306 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11307 (sparc_nat_h): New variable.
11308 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11309 (tm-sun4os4.h): Remove dependency.
11310 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11311 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11312 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11313 sparc-tdep.o): Update dependencies.
11314 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11315 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11316 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11317 dependencies.
11318 * configure.host: Remove existing sparc-*-lynxos*,
11319 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11320 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11321 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11322 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11323 triplets.
11324 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11325 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11326 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11327 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11328 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11329 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11330 sparc64-*-solaris2* and sparc64-*-* triplets.
11331 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11332 "symtab.h" and "objfiles.h".
11333 (BIAS): Remove define.
11334 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11335 (X_DISP19): Remove macros.
11336 (sparc_fetch_instruction): Remove function.
11337 (struct gdbarch_tdep): Remove definition.
11338 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11339 (sparc_breakpoint_from_pc): Remove function.
11340 (struct sparc64_frame_cache): Remove definition.
11341 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11342 sparc64_unwind_pc): Remove functions.
11343 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11344 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11345 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11346 (sparc64_frame_cache): Change return type to `struct
11347 sparc_frame_cache *'. Simply call sparc_frame_cache.
11348 (sparc64_frame_this_id, sparc64_frame_prev_register,
11349 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11350 instead of `struct sparc64_frame_cache.
11351 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11352 sparc_analyze_control_transfer, sparc_software_single_step,
11353 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11354 _initialize_sparc64_tdep): Remove functions.
11355 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11356 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11357 macros.
11358 (sparc64_supply_gregset, sparc64_collect_gregset,
11359 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11360 (sparc64_init_abi): New function.
11361 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11362 inclusion guard. Include "sparc-tdep.h".
11363 (BIAS): Define.
11364 (r_tstate_offset, r_fprs_offset): New defines.
11365 (enum sparc_regnum): Remove defenition.
11366 (enum sparc64_regnum): Reformat.
11367 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11368 (sparc64_init_abi, sparc64_supply_gregset,
11369 sparc64_collect_gregset, sparc64_supply_fpregset,
11370 sparc64_collect_fpregset): New prototypes.
11371 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11372 Add extern declarations.
11373 (sparc64_sol2_init_abi): New prototype.
11374 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11375 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11376 prototypes.
11377 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11378 "sparnbsd-nat.h".
11379 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11380 functions.
11381 (_initialize_sparc64fbsd_nat): Remove initialization of
11382 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11383 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 11384 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
11385 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11386 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11387 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11388 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11389 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11390 (sparc64fbsd_r_y_offset): Remove variables.
11391 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11392 Make static and const.
11393 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11394 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11395 functions.
11396 (sparc64fbsd_gregset): New variable.
11397 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11398 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11399 and sparc64_supply_fpregset.
11400 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11401 (sparc64fbsd_sigtramp_frame_this_id)
11402 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11403 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11404 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11405 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11406 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11407 * sparcnbsd-tdep.c: Update copyright year. Include
11408 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11409 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11410 "value.h" and "sparcnbsd-tdep.h".
11411 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11412 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11413 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11414 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11415 defines.
11416 (sparcnbsd_gregset): New variable.
11417 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11418 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11419 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11420 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11421 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11422 variables.
11423 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11424 (sparc32nbsd_sigcontext_frame_this_id)
11425 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11426 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11427 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11428 (sparcnbsd_get_longjmp_target_32,
11429 sparcnbsd_get_longjmp_target_64): Remove functions.
11430 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11431 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11432 sparcnbsd_init_elf): Remove.
11433 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11434 (sparcnbsd_elf_init_abi): New functions.
11435 (_initialize_sparcnbsd_tdep): New prototype.
11436 (_initialize_sparnbsd_tdep): Update.
11437 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11438 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11439 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11440 * config/sparc/linux.mh: Update comment.
11441 (XM_FILE, HOST_IPC): Remove variables.
11442 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11443 sparc-linux-nat.o.
11444 * config/sparc/linux.mt: Update comment.
11445 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11446 * config/sparc/nbsd.mt: Reformat.
11447 * config/sparc/nbsd64.mh: Update comment.
11448 (NATDEPFILES): Add sparc-nat.o.
11449 * config/sparc/nbsd64.mt: Update comment.
11450 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11451 (TM_FILE): Set to tm-nbsd.h.
11452 * config/sparc/nbsdelf.mh: Update comment.
11453 (NATDEPFILES): Add sparc-nat.o.
11454 (XM_FILE): Delete.
11455 * config/sparc/nbsdaout.mh: Update comment.
11456 (NATDEPFILES): Add sparc-nat.o
11457 (XM_FILE): Delete.
11458 * config/sparc/nm-linux.h: Update copyright year. Don't include
11459 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11460 inclusion.
11461 (KERNEL_U_SIZE): Remove define.
11462 (kernel_u_size): Remove prototype.
11463 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11464 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11465 "regcache.h".
11466 (CHILD_PREPARE_TO_STORE): Remove define.
11467 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11468 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11469 sparcnbsd-nat.c: Rewrite files.
11470 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11471 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11472 sparcnbsd-tdep.h: Remove files.
11473 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11474 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11475 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11476 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11477 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11478 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11479 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11480 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11481 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11482 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11483 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11484 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11485 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11486 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11487 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11488 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11489 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11490 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11491 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11492
ee84457a
AC
114932004-01-02 Andrew Cagney <cagney@redhat.com>
11494
11495 From 2003-12-18 Kazuhiro Inaoka:
11496 * configure.host: Add m32r-linux target.
11497
0bc2134e
MC
114982004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11499
11500 * top.c (print_gdb_version): Update year to 2004.
11501
89a72f9c
MM
115022004-01-02 Mark Mitchell <mark@codesourcery.com>
11503
11504 * MAINTAINERS: Add myself to the write-after-approval category.
11505
86b013ed
DJ
115062004-01-02 Daniel Jacobowitz <drow@mvista.com>
11507
11508 From Bernardo Innocenti <bernie@develer.com>:
11509 * configure.tgt: Add uClinux target.
11510
e42c9534
AC
115112004-01-02 Andrew Cagney <cagney@redhat.com>
11512
11513 * utils.c (do_my_cleanups): Make static, add forward declaration.
11514 * defs.h (do_my_cleanups): Delete declaration.
11515
162467d3
EZ
115162004-01-02 Eli Zaretskii <eliz@elta.co.il>
11517
11518 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11519 bfd/ChangeLog-0203.
11520
78434e59
MK
115212004-01-02 Mark Kettenis <kettenis@gnu.org>
11522
11523 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11524 in <machine/reg.h>.
11525 * configure, config.in: Regenerate.
11526
48efe704
AC
11527For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11528tui/ChangeLog-1998-2003.
c906108c
SS
11529\f
11530Local Variables:
11531mode: change-log
11532left-margin: 8
11533fill-column: 74
11534version-control: never
11535End:
This page took 1.154938 seconds and 4 git commands to generate.