* defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c40d0d10
MK
12004-08-14 Mark Kettenis <kettenis@gnu.org>
2
3 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4 from declaration.
5 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
6 from definition.
7
64218d3e
MK
82004-08-13 Mark Kettenis <kettenis@gnu.org>
9
10 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
11 parenthesis in definition.
12 * configure: Regenerated.
13
926c94e7
MC
142004-08-12 Michael Chastain <mec.gnu@mindspring.com>
15
16 * PROBLEMS: Mention build/1411.
17
69489883
NN
182004-08-09 Robert Millan <robertmh@gnu.org>
19
20 Committed by Nathanael Nerode.
21 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
22 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
23
ebb7c577
AC
242004-08-12 Andrew Cagney <cagney@gnu.org>
25
26 * NEWS: Mention fixes in GDB 6.2.1.
27 * PROBLEMS: Remove mention of mips-irix.
28
232d697c
JB
292004-08-11 Joel Brobecker <brobecker@gnat.com>
30
31 * config/powerpc/xm-aix.h: Delete.
32 * config/powerpc/aix.mh (MH_FILE): Remove.
33 * config/powerpc/aix432.mh (MH_FILE): Remove.
34
72f4e82b
JB
352004-08-11 Joel Brobecker <brobecker@gnat.com>
36
37 * config/powerpc/aix.mh: Remove obsolete comment.
38 * config/powerpc/aix432.mh: Likewise.
39
0687ccb2
JB
402004-08-11 Joel Brobecker <brobecker@gnat.com>
41
42 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
43
dbf3ada7
JB
442004-08-11 Joel Brobecker <brobecker@gnat.com>
45
e08e1886
JB
46 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
47 this file is now empty.
48 * config/xm-aix4.h: Remove, this file is no longer included
49 anywhere.
50
512004-08-11 Joel Brobecker <brobecker@gnat.com>
52
53 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
54 that file is now empty.
dbf3ada7
JB
55 (termdef): Remove prototype, function no longer used.
56
4c525ef6
JB
572004-08-11 Joel Brobecker <brobecker@gnat.com>
58
59 * doc/gdbint.texinfo (Host Definition): Remove documentation
60 for USE_O_NOCTTY, no longer used.
61 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
62 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
63
82e0b968
JB
642004-08-11 Joel Brobecker <brobecker@gnat.com>
65
66 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
67 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
68 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
69
f2acbe1c
MK
702004-08-11 Mark Kettenis <kettenis@gnu.org>
71
daa98270
MK
72 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
73 instead of FIVE_ARG_PTRACE.
74
f2acbe1c
MK
75 * inflow.c (O_NOCTTY): Define to zero if not already defined.
76 (new_tty): Use O_NOCTTY unconditionally.
77
cc377e6b
MK
782004-08-10 Mark Kettenis <kettenis@gnu.org>
79
80 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
81 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
82 fflush on stdout.
83
3bcc18fa
JB
842004-08-10 Joel Brobecker <brobecker@gnat.com>
85
86 * xcoff_symfile_finish: Replace last call to xmfree by call
87 to xfree.
88
7936743b
AC
892004-08-10 Andrew Cagney <cagney@gnu.org>
90
cc503c8a
AC
91 * main.c (captured_main): Delete call to init_malloc.
92 * defs.h (init_malloc): Delete declaration.
93 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
94 (init_malloc): Delete functions.
95
2dc74dc1
AC
96 * defs.h (xmfree): Delete.
97 * utils.c (xmfree): Delete function.
98 (xfree): Inline calls to xmfree and mfree.
99 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
100 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
101 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
102 * somread.c (som_symfile_finish): Ditto.
103 * objfiles.c (allocate_objfile, free_objfile):
104 * nlmread.c (nlm_symfile_finish): Ditto.
105 * hpread.c (hpread_symfile_finish): Ditto.
106 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
107 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
108 * coffread.c (coff_symfile_finish): Ditto.
109
aa2ee5f6
AC
110 * defs.h (xmcalloc): Delete declaration.
111 * utils.c (xmcalloc): Delete.
112 (xcalloc): Inline calls to xmcalloc and mcalloc.
113 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
114 xcalloc and xfree.
115 * symtab.c (create_demangled_names_hash): Ditto.
116
0efffb96
AC
117 * defs.h (xmrealloc): Delete.
118 * utils.c (xmrealloc): Delete.
119 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
120 * symmisc.c (extend_psymbol_list): Use xrealloc.
121 * source.c (find_source_lines): Ditto.
122 * hpread.c (hpread_lookup_type): Ditto.
123 * dbxread.c (add_bincl_to_list): Ditto.
124
7936743b
AC
125 * utils.c (xmmalloc): Delete.
126 (xmalloc): Inline xmmalloc and mmalloc calls.
127 (msavestring): Use xmalloc.
128 * defs.h (xmmalloc): Delete declaration.
129 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
130 xmmalloc.
131 * symmisc.c (extend_psymbol_list): Ditto.
132 * symfile.c (init_psymbol_list): Ditto.
133 * source.c (find_source_lines): Ditto.
134 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
135 * elfread.c (elf_symtab_read): Ditto.
136 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
137 * coffread.c (coff_symfile_init): Ditto.
138
252ab814
DC
1392004-08-10 David Carlton <carlton@bactrian.org>
140
141 * MAINTAINERS: Remove David Carlton from c++ testsuite
142 maintainers.
143
8f5ba92b
JG
1442004-08-10 Jerome Guitton <guitton@gnat.com>
145
146 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
147 print a line feed before the prompt.
148
21749010
MK
1492004-08-10 Mark Kettenis <kettenis@gnu.org>
150
151 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
152
1f011ce2
JB
1532004-08-09 Joel Brobecker <brobecker@gnat.com>
154
155 General cleanup of the AIX xm include file:
156 * config/xm-aix4.h (fd_set): Remove undefine.
157 Remove include of <sys/select.h>.
158 (HAVE_TERMIO): Remove define.
159 (USG): Likewise.
160 (NULL): Remove redefine.
161 (alloca): Remove #pragma.
162 (vfork): Remove define.
163 (termdef): Remove.
164 (SIGWINCH_HANDLER): Remove.
165 (SIGWINCH_HANDLER_BODY): Remove.
166
cf4e7692
MK
1672004-08-09 Mark Kettenis <kettenis@gnu.org>
168
169 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
170 GDB_OSABI_OPENBSD_ELF.
171
ac5754fa
MK
1722004-08-07 Robert Millan <robertmh@gnu.org>
173
174 * bsd-kvm.c: Check for nlist.h before including it.
175
086ec9eb
MK
1762004-08-09 Mark Kettenis <kettenis@gnu.org>
177
bbe06c74
MK
178 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
179 sigcontext' offset consistency checks for ancient BSD.
180
3aa7b3b3
MK
181 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
182
086ec9eb
MK
183 * configure.in: Check for <sys/types.h>. Check return and
184 argument types of ptrace.
185 * configure, config.in: Regenerate.
186
09991fa0
JB
1872004-08-09 Jim Blandy <jimb@redhat.com>
188
189 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
190 rs6000_register_sim_regno): Doc fixes.
191
fed7ba43
JB
1922004-08-08 Joel Brobecker <brobecker@gnat.com>
193
194 * mips-tdep.c: Include "floatformat.h".
195 (n32n64_floatformat_always_valid): New function.
196 (floatformat_n32n64_long_double_big): New constant.
197 (mips_gdbarch_init): Set size and format of long double
198 for N32 and N64 ABIs.
199 * Makefile.in (mips-tdep.o): Update dependencies.
200
456fcf94
AC
2012004-08-08 Andrew Cagney <cagney@gnu.org>
202
2f9b146e
AC
203 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
204 print. Improve script's error messages.
205 * gdbarch.h: Re-generate.
206
456fcf94
AC
207 * gdbarch.sh (pformat): New function.
208 (float_format, double_format, long_double_format): List with bit
209 members. Use pformat when printing.
210 * gdbarch.c, gdbarch.h: Re-generate.
211
69e9e646
NW
2122004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
213
214 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
215 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
216 (ppcnbsd_supply_pcb): New function.
217 (_initialize_ppcnbsd_nat): New prototype and function.
218 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
219 (LOADLIBES): New variable.
220 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
221
5ef2d0aa
AC
2222004-08-08 Andrew Cagney <cagney@gnu.org>
223
224 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
225 (builtin_type_ieee_double, builtin_type_ia64_quad)
226 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
227 BE/LE floating-point types.
228 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
229 (builtin_type_ieee_double, builtin_type_ia64_quad)
230 (builtin_type_ia64_spill): Declare.
231 * doublest.c (_initialize_doublest, floatformat_ieee_single)
232 (floatformat_ieee_double, floatformat_arm_ext)
233 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
234 of LE/BE floatformats.
235 * doublest.h: (struct floatformat, floatformat_ieee_single)
236 (floatformat_ieee_double, floatformat_arm_ext)
237 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
238
5c7f2947
MK
2392004-08-08 Mark Kettenis <kettenis@gnu.org>
240
ecac404d
MK
241 * i386gnu-nat.c (gnu_store_registers): Fix typo.
242
9b8607ce
MK
243 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
244 instead of regcache_raw_supply when storing the registers.
245
f6052080
MK
246 * i386gnu-nat.c: Update copyright year.
247 (gnu_store_registers): Don't use deprecated_registers and
248 deprecated_registers_valid. Use regcache_valid_p and
249 regcache_raw_supply instead.
250
17777823
MK
251 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
252 frame_pc_unwind.
253
5240ceac
MK
254 * procfs.c (procfs_pid_to_str): Remove redundant and unused
255 variables. Incapitalized "process".
256
5c7f2947
MK
257 * configure.in: Add cursesX to the list of possible curses libs.
258 Add cursesX.h to the list of possible curses headers.
259 * configure, config.in: Regenerate.
260
da7d81e3
NW
2612004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
262
263 * configure.in: Test for struct lwp in <sys/lwp.h>.
264 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
265 the offset of l_addr in struct lwp.
266
7f245d65
NW
2672004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
268
269 * bsd-kvm.c: Include "gdbcore.h"
270 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
271
47b3f456
AC
2722004-08-07 Andrew Cagney <cagney@gnu.org>
273
70bd8e24
AC
274 * gdbtypes.c (build_flt, build_complex): New functions.
275 (gdbtypes_post_init): Use.
276
9b0dea39
AC
277 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
278
5cf7abac
AC
279 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
280 through to builtin_type_uint128.
281
64d2b26d
AC
282 * c-exp.y: Use builtin_type function to obtain builtin types.
283
7ad6570d
AC
284 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
285 builtin_uint128.
286 * gdbtypes.c (gdbtypes_post_init): Update.
287 (build_gdbtypes): Move initialization of builtin_type_int0
288 through to builtin_type_uint128 from here ...
289 (_initialize_gdbtypes): ... to here.
290 * d10v-tdep.c (d10v_register_type): Update.
291
47b3f456
AC
292 * doublest.c: Update copyright.
293 (floatformat_from_length): Call error when floatformat is NULL.
294 (extract_floating_by_length): Remove NULL fmt check.
295 (store_floating_by_length): Ditto.
296
0a8146bf
AC
2972004-08-07 Andrew Cagney <cagney@gnu.org>
298
299 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
300 that the register is valid.
301
c0ccb908
MK
3022004-08-05 Mark Kettenis <kettenis@chello.nl>
303
8e6bed05
MK
304 * i386-linux-tdep.c (i386_linux_sigtramp_start)
305 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
306 struct frame_info *. Use safe_frame_unwind_memory instead of
307 deprecated_read_memory_nobpt.
308 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
309 changed signature of i386_linux_sigtramp_start and
310 i386_linux_rt_sigtramp_start.
311
24f9f5e3
MK
312 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
313 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
314 instead of deprecated_read_memory_nobpt.
315 (i386nbsd_sigtramp_p): Adjust for changed signature of
316 i386nbsd_sigtramp_offset.
317
c822af0c
MK
318 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
319 safe_frame_unwind_memory instead of target_read_memory.
320
c0ccb908
MK
321 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
322 !NO_SYS_FILE.
323 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
324 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
325 (_initialize_kernel_u_addr): Remove prototype and function.
326 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
327 !NO_SYS_FILE.
328 * xcoffread.c: Likewise.
329
b9e1c0d6
MK
3302004-08-06 Mark Kettenis <kettenis@gnu.org>
331
332 * vax-nat.c: New file.
333 * vaxbsd-nat.c: Tweak comment.
334 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
335 vaxnbsd-tdep.c.
336 (vax-nat.o): New dependency.
337 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
338 (vax-*-ultrix2*): Remove.
339 * config/vax/vax.mh: New file.
340 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
341 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
342 (vax_register_u_addr): New prototype.
343 (REGISTER_U_ADDR): Define using vax_register_u_addr.
344 * config/vax/vaxult2.mh: Remove file.
345 * config/vax/vaxult.mh: Remove file.
346 * config/vax/vaxbsd.mh: Remove file.
347 * config/vax/vax.mt (TM_FILE): Remove.
348 * config/vax/tm-vaxbsd.h: Remove file.
349
9ad7bec7
JB
3502004-08-06 Joel Brobecker <brobecker@gnat.com>
351
352 * aix-thread.c (get_signaled_thread): New function.
353 (iter_trap): Delete, no longer used.
354 (iter_tid): New function.
355 (pd_update): Find the thread that received the SIGTRAP signal
356 by first locating the kernel thread, and then finding its
357 associated thread.
358
bf0d233d
UW
3592004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
360
361 * lin-lwp.c (child_wait): Continue inferior after processing
362 PTRACE_EVENT_CLONE event.
363
d0f853e1
NN
3642004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
365
366 * MAINTAINERS: Add self to Write-After-Approval.
367
ab14aeb0
JJ
3682004-08-05 Jeff Johnston <jjohnstn@redhat.com>
369
370 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
371 libunwind-xxxx.so" where xxxx is UNW_TARGET.
372
9c8dbfa9
AC
3732004-08-05 Andrew Cagney <cagney@gnu.org>
374
c8f3ca46
AC
375 * config/xm-sysv4.h: Delete file.
376 * config/mips/xm-irix5.h: Delete file.
377 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
378 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
379 * config/ia64/xm-aix.h: Delete file.
380 * config/ia64/aix.mh (XM_FILE): Delete.
381 * config/pa/xm-hppah.h: Delete file.
382 * config/pa/hpux11w.mh (XM_FILE): Delete.
383 * config/pa/hpux11.mh (XM_FILE): Delete.
384 * config/pa/hpux1020.mh (XM_FILE): Delete.
385 * config/pa/hppahpux.mh (XM_FILE): Delete.
386
5f7daaff
AC
387 * config/alpha/xm-alphalinux.h: Delete file.
388 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
389 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
390 * config/alpha/xm-alphaosf.h: Delete file.
391 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
392 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
393 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
394 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
395
69babf95
AC
396 * config/i386/xm-i386v.h: Delete file.
397 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
398 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
399 * config/i386/xm-i386sco.h: Delete file.
400 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
401 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
402 * config/i386/xm-i386v4.h: Delete file.
403 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
404 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
405 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
406 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
407
6f009c8a
AC
408 * config/vax/xm-vax.h: Delete file.
409 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
410 * config/vax/xm-vaxult2.h: Delete file.
411 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
412 * config/vax/vaxult2.mh (XM_FILE): Delete.
413 * config/vax/xm-vaxult.h: Delete file.
414 * config/vax/vaxult.mh (XM_FILE): Delete.
415 * config/vax/xm-vaxbsd.h: Delete file.
416 * config/vax/vaxbsd.mh (XM_FILE): Delete.
417
9c8dbfa9
AC
418 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
419 * gdbarch.h, gdbarch.c: Re-generate.
420 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
421 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
422 * frame.h: Delete deprecated_read_fp from comments.
423 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
424 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
425
84367a3e
MK
4262004-08-04 Mark Kettenis <kettenis@gnu.org>
427
9c8e3411
MK
428 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
429 trampoline in OpenBSD 3.5-current.
430
b87bc0d8
MK
431 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
432 SSE registers.
433
84367a3e
MK
434 * Makefile.in: Remove embedded page breaks.
435
a44bddec
JB
4362004-08-04 Jim Blandy <jimb@redhat.com>
437
7ab3286f
JB
438 * regcache.c (regcache_raw_read): Assert that, after calling
439 target_fetch_registers, the register we're reading is cached.
440
a44bddec
JB
441 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
442 a call to 'internal_error', with a more helpful error message.
443 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 444 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 445
35124113
AC
4462004-08-04 Andrew Cagney <cagney@gnu.org>
447
448 * Makefile.in: Update dependencies.
449
9f643768
JB
4502004-08-04 Jim Blandy <jimb@redhat.com>
451
6ced10dd
JB
452 Change the layout of the PowerPC E500 raw register cache to allow
453 the lower 32-bit halves of the GPRS to be their own raw registers,
454 not pseudoregisters.
455 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
456 add ppc_ev0_upper_regnum flag.
457 * rs6000-tdep.c: #include "reggroups.h".
458 (spe_register_p): Recognize the ev upper half registers as SPE
459 registers.
460 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
461 registers.
462 (e500_move_ev_register): New function.
463 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
464 vector registers are the pseudo-registers now, formed by splicing
465 together the gprs and the upper-half registers.
466 (e500_register_reggroup_p): New function.
467 (P): Macro deleted.
468 (P8, A4): New macro.
469 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
470 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
471 macros.
472 (registers_e500): Rearrange register set so that the raw register
473 set contains 32-bit GPRs and upper-half registers, and the SPE
474 vector registers become pseudo-registers.
475 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
476 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
477 register numbers are now the same for the E500 as they are for
478 other PowerPC variants. Register e500_register_reggroup_p as the
479 register group function for the E500.
480 * Makefile.in (rs6000-tdep.o): Update dependencies.
481
482 Adapt PPC E500 native support to the new raw regcache layout.
483 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
484 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
485 (fetch_spe_register, store_spe_register): Handle fetching/storing
486 all the SPE registers at once, if regno == -1. These now take
487 over the job of fetch_spe_registers and store_spe_registers.
488 (fetch_spe_registers, store_spe_registers): Deleted.
489 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
490 unconditionally; they're always raw. Fetch/store SPE upper half
491 registers, if present, instead of ev registers.
492 (fetch_register, store_register): Remove sanity checks: gprs are
493 never pseudo-registers now, so we never need to even mention any
494 registers that are ever pseudoregisters.
495
9f643768
JB
496 Use a fixed register numbering when communicating with the PowerPC
497 simulator.
498 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
499 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
500 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
501 New functions.
502 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
503 init_sim_regno_table.
504 * Makefile.in (gdb_sim_ppc_h): New variable.
505 (rs6000-tdep.o): Update dependencies.
506
1e2279c8
AC
5072004-08-02 Andrew Cagney <cagney@gnu.org>
508
1d94326f
AC
509 * cris-tdep.c (cris_register_size): Restore function, still used
510 locally.
511
331ae7ed
AC
512 * gdbarch.sh (deprecated_target_read_fp)
513 (deprecated_frame_locals_address, deprecated_frame_args_address)
514 (deprecated_frame_chain_valid, deprecated_frame_chain)
515 (deprecated_init_extra_frame_info, deprecated_pop_frame)
516 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
517 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
518 * gdbarch.h, gdbarch.c: Re-generate.
519 * regcache.c (deprecated_read_fp): Do not call
520 DEPRECATED_TARGET_READ_FP_P.
521 * infcmd.c (default_print_registers_info): Do not call
522 DEPRECATED_DO_REGISTERS_INFO.
523 * frame-base.c (default_frame_locals_address): Do not call
524 DEPRECATED_FRAME_LOCALS_ADDRESS.
525 (default_frame_args_address): Do not call
526 DEPRECATED_FRAME_ARGS_ADDRESS.
527
1e2279c8
AC
528 * gdbarch.sh (deprecated_register_raw_size)
529 (deprecated_register_virtual_size:int): Delete.
530 * gdbarch.h, gdbarch.c: Re-generate.
531 * cris-tdep.c (cris_register_size): Delete.
532 (cris_gdbarch_init): Update.
533 * alpha-tdep.c (alpha_register_raw_size)
534 (alpha_register_virtual_size): Delete.
535 (alpha_gdbarch_init): Update.
536
a90c06b4
AC
537 * gdbarch.sh (deprecated_register_virtual_type)
538 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
539 (deprecated_dummy_write_sp): Delete.
540 * gdbarch.h, gdbarch.c: Re-generate.
541
f42accbe
AC
542 * gdbarch.sh (deprecated_register_bytes): Delete.
543 * gdbarch.h, gdbarch.c: Re-generate.
544 * regcache.c (deprecated_register_bytes): New function.
545 * regcache.h (deprecated_register_bytes): Declare.
546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
547 * v850-tdep.c (v850_gdbarch_init): Update.
548 * sh64-tdep.c (sh64_gdbarch_init): Update.
549 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
550 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
551 * mcore-tdep.c (mcore_gdbarch_init): Update.
552 * cris-tdep.c (cris_gdbarch_init): Update.
553 * arm-tdep.c (arm_gdbarch_init): Update.
554 * remote.c (init_remote_state): Update.
555 * remote-vx.c (vx_prepare_to_store): Update.
556 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
557 * irix5-nat.c (fetch_core_registers): Update.
558 * cris-tdep.c (cris_register_bytes_ok): Update.
559 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
560
45c9dd44
AC
561 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
562 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
563 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
564 (mips_insn16_frame_base_address, mips_insn16_frame_base)
565 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
566 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
567 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
568 (mips_insn32_frame_base_address, mips_insn32_frame_base)
569 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
570 with mips_insn16 and mips_insn32.
571
3acba339
AC
572 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
573 * rs6000-tdep.c (rs6000_push_dummy_call)
574 (rs6000_extract_return_value): Use register_size.
575 * xstormy16-tdep.c (xstormy16_get_saved_register)
576 (xstormy16_extract_return_value): Ditto.
577 * valops.c (value_assign): Ditto.
578 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
579 * v850-tdep.c (v850_extract_return_value): Ditto.
580 * tracepoint.c (collect_symbol): Ditto.
581 * target.c (debug_print_register): Ditto.
582 * stack.c (frame_info): Ditto.
583 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
584 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
585 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
586 (store_register_using_P): Ditto.
587 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
588 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
589 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
590 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
591 * regcache.c (deprecated_read_register_bytes)
592 (deprecated_write_register_bytes, read_register)
593 (write_register): Ditto.
594 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
595 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
596 * monitor.c (monitor_supply_register, monitor_fetch_register)
597 (monitor_store_register): Ditto.
598 * mn10300-tdep.c (mn10300_pop_frame_regular)
599 (mn10300_print_register): Ditto.
600 * mipsv4-nat.c (fill_fpregset): Ditto.
601 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
602 (mips64_fill_fpregset): Ditto.
603 * mi/mi-main.c (register_changed_p, get_register)
604 (mi_cmd_data_write_register_values): Ditto.
605 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
606 * irix5-nat.c (fill_gregset, fetch_core_registers):
607 * infrun.c (write_inferior_status_register): Ditto.
608 * infptrace.c (fetch_register, store_register): Ditto.
609 * infcmd.c (default_print_registers_info): Ditto.
610 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
611 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
612 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
613 * hpux-thread.c (hpux_thread_fetch_registers)
614 (hpux_thread_store_registers): Ditto.
615 * hppah-nat.c (store_inferior_registers, fetch_register):
616 * findvar.c (value_from_register): Ditto.
617 * dve3900-rom.c (fetch_bitmapped_register):
618 * cris-tdep.c (cris_gdbarch_init): Ditto.
619 * alpha-tdep.h: Ditto.
620 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
621
01e1877c
AC
622 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
623 DEPRECATED_REGISTER_RAW_SIZE from comments.
624 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
625 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
626 DEPRECATED_REGISTER_RAW_SIZE.
627 * findvar.c (value_of_register): Simplify by assuming that the
628 registers raw and virtual sizes are identical.
629 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
630 comment.
631 * arch-utils.c (generic_register_size): Simplify by assuming
632 register_type.
633
73f458fb
AC
634 * regcache.c (legacy_read_register_gen, real_register)
635 (legacy_write_register_gen): Delete, not used.
636
336a3131
AC
637 * regcache.c (struct regcache_descr): Delete legacy_p.
638 (init_legacy_regcache_descr): Delete function.
639 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
640 Do not use deprecated register functions.
641 (regcache_raw_read, deprecated_write_register_gen):
642 (deprecated_read_register_gen, regcache_raw_write): Delete code
643 predicated on legacy_p.
644 (register_size): Delete check against register raw size.
645
c1d546cd
AC
646 * cris-tdep.c (cris_register_type): Replace
647 cris_register_virtual_type.
648 (cris_gdbarch_init): Update, set register_type.
649
48c2c0a6
AC
650 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
651 * gdbarch.h, gdbarch.c: Re-generate.
652 * arm-tdep.c (arm_frameless_function_invocation): Delete.
653 (arm_gdbarch_init) Do not set frameless function invocation.
654 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
655 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
656 * frv-tdep.c (frv_frameless_function_invocation): Delete.
657 (frv_gdbarch_init): Do not set frameless function invocation.
658 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
659 * sh-tdep.c (sh_gdbarch_init): Ditto.
660 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
661 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
662 * avr-tdep.c (avr_gdbarch_init): Ditto.
663
474093a6
AC
664 * blockframe.c (legacy_frame_chain_valid): Delete function.
665
3c109c8b
AC
666 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
667 and pc. Update comments.
668 (pc_in_dummy_frame): Delete function.
669 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
670 use the "id".
671 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
672 call_hi, top and pc, use the id.
673 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
674
96860204
AC
675 * dummy-frame.c: Include "gdb_string.h".
676 (generic_save_call_dummy_addr, generic_push_dummy_frame)
677 (generic_save_dummy_frame_tos): Delete.
678 (dummy_frame_push): New function, replaces above.
679 * dummy-frame.h: Update copyright.
680 (dummy_frame_push): Declare.
681 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
682 (generic_save_call_dummy_addr): Delete declarations.
683 * infcall.c: Include "dummy-frame.h".
684 (call_function_by_hand): Add locals caller_regcache,
685 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
686 with call to frame_save_as_regcache plus cleanup. Delete calls to
687 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
688 Move clear_proceed_status to just before the resume, add call to
689 dummy_frame_push (discard cleanup).
690 * Makefile.in (infcall.o): Add $(dummy_frame_h).
691 (dummy-frame.o): Add $(gdb_string_h).
692
d67ec5db
AC
6932004-08-01 Andrew Cagney <cagney@gnu.org>
694
695 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
696 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
697 * dummy-frame.c (find_dummy_frame): Delete.
698 (struct dummy_frame_cache, dummy_frame_sniffer)
699 (dummy_frame_prev_register, dummy_frame_this_id)
700 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
701 frame unwinder using a dummy_frame_cache.
702
a81dcb05
AC
7032004-08-01 Andrew Cagney <cagney@gnu.org>
704
705 * frame.h (frame_save_as_regcache): Declare.
706 * frame.c (frame_save_as_regcache): New function.
707 (do_frame_read_register): Replace do_frame_unwind_register.
708 (frame_pop): Use frame_save_as_regcache.
709 * dummy-frame.c (generic_push_dummy_frame): Use
710 frame_save_as_regcache.
711
aa495d11
JB
7122004-08-01 Joel Brobecker <brobecker@gnat.com>
713
714 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
715 file as included until we record the first line in the linetable.
716
ff65ac78
AC
7172004-08-01 Andrew Cagney <cagney@gnu.org>
718
719 * frame.h (deprecated_pop_dummy_frame)
720 (deprecated_read_register_dummy)
721 (deprecated_generic_find_dummy_frame): Delete.
722 * dummy-frame.c (deprecated_generic_find_dummy_frame)
723 (deprecated_read_register_dummy)
724 (deprecated_find_dummy_frame_regcache)
725 (discard_innermost_dummy)
726 (deprecated_pop_dummy_frame): Delete.
727 (dummy_frame_this_id): Simplify.
728 (struct dummy_frame): Delete "fp" and "sp".
729 (find_dummy_frame): Simplify.
730 (generic_push_dummy_frame): Do not set "fp" or "sp".
731 (fprint_dummy_frames): Do not print "fp" and "sp"
732
37bdc87e
MK
7332004-08-01 Mark Kettenis <kettenis@gnu.org>
734
735 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
736 (struct i386_insn): New structure.
737 (i386_match_insn): New function.
738 (i386_frame_setup_skip_insns): New variable.
739 (i386_analyze_frame_setup): Change to use i386_match_insn and the
740 array i386_frame_setup_insns of instructions that should be
741 skipped inside the frame setup sequence.
742
8241eaa6
AC
7432004-08-01 Andrew Cagney <cagney@gnu.org>
744
5bc602c7
AC
745 * frame.h (deprecated_frame_xmalloc_with_cleanup)
746 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
747 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
748 * stack.c (frame_info): Delete references to
749 DEPRECATED_FRAME_INIT_SAVED_REGS and
750 deprecated_get_frame_saved_regs.
751 * frame.c (struct frame_info): Delete saved_regs and extra_info.
752 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
753 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
754 (frame_unwind_register_signed)
755 (frame_unwind_register_unsigned)
756 (frame_unwind_unsigned_register): Use register_size.
757 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
758 (deprecated_frame_xmalloc_with_cleanup)
759 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
760 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
761
03d363a1
AC
762 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
763 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
764 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
765 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
766
8241eaa6
AC
767 * infcall.c (call_function_by_hand): Do not use
768 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
769 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
770 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
771 DEPRECATED_STACK_ALIGN.
772
f00df8b7
AC
7732004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
774
775 Committed by Andrew Cagney.
776 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
777
eec63939
AC
7782004-08-01 Andrew Cagney <cagney@gnu.org>
779
780 * mips-tdep.c (mips16_frame_cache)
781 (mips16_frame_this_id, mips16_frame_prev_register)
782 (mips16_frame_unwind, mips16_frame_sniffer)
783 (mips16_frame_base_address, mips16_frame_base)
784 (mips16_frame_base_sniffer, mips32_frame_cache)
785 (mips32_frame_this_id, mips32_frame_prev_register)
786 (mips32_frame_unwind, mips32_frame_sniffer)
787 (mips32_frame_base_address, mips32_frame_base)
788 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
789 separate heuristic mips16 and mips32 unwinders.
790 (mips_stub_frame_cache, mips_stub_frame_this_id)
791 (mips_stub_frame_prev_register)
792 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
793 (mips_stub_frame_base_address, mips_stub_frame_base)
794 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
795 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
796 match true mdebug frames.
797 (non_heuristic_proc_desc): Add forward declaration.
798
e66299b3
AC
7992004-08-01 Andrew Cagney <cagney@gnu.org>
800
83cbbf3e
AC
801 * config/mips/tm-irix6.h: Delete file.
802 * config/mips/tm-irix5.h: Delete file.
803 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
804 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
805
22d41b37
AC
806 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
807 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
808 * config/nm-gnu.h (NO_CORE_OPS): Delete.
809 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
810 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
811 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
812 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
813 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
814 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
815 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
816 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
817 (TARGET_SIGNAL_RAW_VALUES): Delete.
818 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
819 Delete.
820 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
821 (TARGET_HW_WATCH_LIMIT): Delete.
822 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
823 * minimon.h: Delete file.
824
e66299b3
AC
825 * trad-frame.c (trad_frame_get_this_base)
826 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
827 functions.
828 * trad-frame.h (trad_frame_set_this_base)
829 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
830
1f67027d
AC
8312004-07-31 Andrew Cagney <cagney@gnu.org>
832
833 * trad-frame.c (trad_frame_get_prev_register): Rename
834 trad_frame_get_prev_register.
835 * vax-tdep.c (vax_frame_prev_register): Update.
836 * trad-frame.h: Update.
837 * trad-frame.c (trad_frame_get_register): Update.
838 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
839 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
840 Update.
841 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
842 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
843 Update.
844 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
845 Update.
846 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
847 Update.
848 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
849 Update.
850 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
851 Update.
852 * s390-tdep.c (s390_frame_prev_register)
853 (s390_stub_frame_prev_register)
854 (s390_sigtramp_frame_prev_register): Update.
855 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
856 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
857 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
858 * m88k-tdep.c (m88k_frame_prev_register)
859 * m68hc11-tdep.c (m68hc11_frame_prev_register)
860 * m32r-tdep.c (m32r_frame_prev_register): Update.
861 * hppa-tdep.c (hppa_frame_prev_register_helper)
862 * frv-tdep.c (frv_frame_prev_register): Update.
863 * d10v-tdep.c (d10v_frame_prev_register): Update.
864 * cris-tdep.c (cris_frame_prev_register): Update.
865 * avr-tdep.c (avr_frame_prev_register): Update.
866 * arm-tdep.c (arm_prologue_prev_register)
867 (arm_sigtramp_prev_register): Update.
868
c1bf6f65
AC
8692004-07-31 Andrew Cagney <cagney@gnu.org>
870
871 * frame.h (legacy_saved_regs_unwind)
872 (legacy_frame_chain_valid, legacy_frame_p)
873 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
874 * dummy-frame.c (dummy_frame_this_id): Simplify.
875 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
876 * frame.c (struct frame_info): Delete the field "type".
877 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
878 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
879 (legacy_saved_regs_unwind, legacy_frame_p)
880 (frame_type_from_pc): Delete.
881 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
882 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
883
dc856692
MK
8842004-07-31 Mark Kettenis <kettenis@gnu.org>
885
5a5effe1
MK
886 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
887 indentation.
888
d4fd50a6
MK
889 * mips-nat.c: Remove file.
890 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
891 (mips-nat.o): Remove dependency.
892
2689df5a
MK
893 * infptrace.c: Update copyright year.
894 (fetch_register): Pass NULL in regcache_raw_supply call instead of
895 explicitly setting the buffer to all zeroes.
896
dc856692
MK
897 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
898 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
899
763910e0
AC
9002004-07-30 Andrew Cagney <cagney@gnu.org>
901
902 * GDB 6.2 released from gdb_6_2-branch.
903
0b66e38c
EZ
9042004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
905
906 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
907
908 * exec.c (exec_file_attach):
909 * nto-tdep.c (nto_find_and_open_solib):
910 * pa64solib.c (pa64_solib_sizeof_symbol_table):
911 * solib.c (solib_open):
912 * somsolib.c (som_solib_sizeof_symbol_table):
913 * source.c (is_regular_file, openp, open_source_file):
914 * symfile.c (symfile_bfd_open):
915 * wince.c (upload_to_device): Differentiate between the search for
916 binary and source files.
917
be7d7357
AC
9182004-07-30 Andrew Cagney <cagney@gnu.org>
919
920 * complaints.c (_initialize_complaints): Pass NULL to
921 add_setshow_zinteger_cmd for help_doc.
922 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
923
ddc9cd0f
AC
9242004-07-30 Andrew Cagney <cagney@gnu.org>
925
926 Fix PR i18n/761.
927 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
928 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
929 $(PACKAGE).pot and update-po.
930 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
931 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
932 (update-po): New rules.
933 (localedir): Define using autoconf.
934 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
935 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
936 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
937 * configure.in: Generate CATALOGS and LINGUAS from contents of
938 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
939 * configure: Re-generate.
940 * po/gdbtext: New file
941
e92f3704
JG
9422004-07-30 Jerome Guitton <guitton@gnat.com>
943
944 * MAINTAINERS: Reorder Write After Approval list in alphabetical
945 order.
946
b0f35d58
DL
9472004-07-30 David Lecomber <dsl@sources.redhat.com>
948
949 * dwarf2read.c (read_file_scope): Set producer if attribute
950 present.
951 (struct dwarf2_cu): Added new member producer.
952
ce7d4522
JG
9532004-07-30 Jerome Guitton <guitton@gnat.com>
954
955 * inflow.c (kill_command): release file handles in BFD.
956 * exec.c (exec_file_attach): Ditto.
957 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
958
05ee07c7
AC
9592004-07-29 Andrew Cagney <cagney@gnu.org>
960
961 * PROBLEMS (mips-irix): Note that it is broken.
962
62eceb47
AC
9632004-07-29 Andrew Cagney <cagney@gnu.org>
964
e57b8d41
AC
965 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
966 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
967
d334389b
AC
968 * config/xm-nbsd.h: Delete file.
969 * config/arm/xm-nbsd.h: Delete file.
970 * config/i386/xm-nbsd.h: Delete file.
971 * config/ns32k/xm-nbsd.h: Delete file.
972 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
973 * config/i386/nbsdelf.mh (XM_FILE): Delete.
974 * config/i386/nbsdaout.mh (XM_FILE): Delete.
975 * config/arm/nbsdelf.mh (XM_FILE): Delete.
976 * config/arm/nbsdaout.mh (XM_FILE): Delete.
977
e910f676
AC
978 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
979 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
980 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
981 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
982 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
983 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
984
6fa856b9
AC
985 * config/powerpc/xm-linux.h: Delete empty file.
986 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
987 * config/powerpc/linux.mh (XM_FILE): Delete.
988 * config/m68k/xm-linux.h: Delete empty file.
989 * config/m68k/linux.mh (XM_FILE): Delete.
990 * config/ia64/xm-linux.h: Delete empty file.
991 * config/ia64/linux.mh (XM_FILE): Delete.
992 * config/arm/xm-linux.h: Delete empty file.
993 * config/arm/linux.mh (XM_FILE): Delete.
994
471ae5ae
AC
995 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
996 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
997 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
998 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
999 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1000 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1001 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1002 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1003
62eceb47
AC
1004 * config/m68k/xm-m68k.h: Delete file.
1005 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1006 copyright.
1007 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1008 * config/pa/xm-linux.h: Delete empty file.
1009 * config/pa/linux.mh (XM_FILE): Delete.
1010 * config/i386/xm-i386.h: Delete empty file.
1011 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1012 "i386/xm-i386.h".
1013 * config/i386/obsdaout.mh (XM_FILE): Delete.
1014 * config/i386/obsd64.mh (XM_FILE): Delete.
1015 * config/i386/fbsd64.mh (XM_FILE): Delete.
1016 * config/i386/nto.mh (XM_FILE): Delete.
1017 * config/i386/obsd.mh (XM_FILE): Delete.
1018 * config/i386/linux64.mh (XM_FILE): Delete.
1019 * config/i386/linux.mh (XM_FILE): Delete.
1020 * config/i386/i386sol2.mh (XM_FILE): Delete.
1021 * config/i386/i386gnu.mh (XM_FILE): Delete.
1022 * config/i386/fbsd.mh (XM_FILE): Delete.
1023 * config/i386/nbsd64.mh (XM_FILE): Delete.
1024
c35f4ffc
AC
10252004-07-29 Andrew Cagney <cagney@gnu.org>
1026
1027 * config/pa/xm-linux.h: Do not include "floatformat.h".
1028 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1029 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1030 * config/i386/xm-i386.h: Do not include "floatformat.h".
1031 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1032 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1033 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1034 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1035 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1036 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1037 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1038 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1039 * configure, config.in: Regenerate.
1040 * configure.host (gdb_host_float_format, gdb_host_double_format)
1041 (gdb_host_long_double_format): Set according to the host.
1042
624a44a3
AC
10432004-07-29 Andrew Cagney <cagney@gnu.org>
1044
1045 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1046
0dea2468
AC
10472004-07-28 Andrew Cagney <cagney@gnu.org>
1048
1049 * PROBLEMS: Mention threads/1650.
1050 * NEWS: Mention the NPTL fix.
1051
b3f42336
AC
10522004-07-28 Andrew Cagney <cagney@gnu.org>
1053
1054 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1055 (add_setshow_cmd_full): Make static.
1056 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1057 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1058 * cli/cli-decode.c (add_setshow_filename_cmd)
1059 (add_setshow_string_cmd): New functions.
1060 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1061 * mips-tdep.c (_initialize_mips_tdep): Update.
1062 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1063 * cli/cli-logging.c (_initialize_cli_logging): Update.
1064 * complaints.c (_initialize_complaints): Update.
1065 * remote.c (_initialize_remote): Update.
1066
3b64bf98
AC
10672004-07-28 Andrew Cagney <cagney@gnu.org>
1068
1069 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1070 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1071 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1072 print parameters. Make string parameters constant.
1073 * command.h: Update. Update copyright.
1074 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1075 * observer.c (_initialize_observer): Ditto.
1076 * frame.c (_initialize_frame): Ditto.
1077 * complaints.c (_initialize_complaints): Ditto.
1078 * maint.c (_initialize_maint_cmds): Ditto.
1079 * target.c (initialize_targets): Ditto.
1080 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1081 * infcall.c (_initialize_infcall): Ditto.
1082 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1083 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1084 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1085 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1086 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1087
e9667a65
AC
10882004-07-28 Andrew Cagney <cagney@gnu.org>
1089
54a5b07d
AC
1090 * gdbtypes.c (lookup_primitive_typename): Delete function.
1091 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1092 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1093 * gdbtypes.c (lookup_typename): Ditto.
1094 * f-exp.y (yylex): Ditto.
1095 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1096
e9667a65
AC
1097 * scm-lang.c (c_builtin_types): Delete extern declaration.
1098 (scm_language_defn): Replace
1099 string_char_type and primitive_type_vector with
1100 la_language_arch_info.
1101 * jv-lang.c (java_language_defn): Replace
1102 string_char_type and primitive_type_vector with
1103 la_language_arch_info.
1104 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1105 c_builtin_types in comment.
1106 * c-lang.h (struct language_arch_info): Declare opaque.
1107 (c_language_arch_info): Declare.
1108 (c_builtin_types): Delete declaration.
1109 * c-lang.c (c_language_arch_info): Set string_char_type to
1110 builtin_char, not builtin_true_char. Make global.
1111 (c_builtin_types): Delete array.
1112 (asm_language_defn, minimal_language_defn): Replace
1113 string_char_type and primitive_type_vector with
1114 la_language_arch_info.
1115
685419e2
AC
11162004-07-28 Andrew Cagney <cagney@gnu.org>
1117
1118 * gdbtypes.h (struct builtin_type): Rename true_char to
1119 builtin_true_char.
1120 * gdbtypes.c (gdbtypes_post_init): Update.
1121 * c-lang.c (arch_info): New function.
1122 (enum c_primitive_types): New enum.
1123 (c_language_defn): Instead of string_char_type and
1124 primitive_type_vector set la_language_arch_info.
1125
5a44ea29
AC
11262004-07-28 Andrew Cagney <cagney@gnu.org>
1127
1128 * language.h (struct language_arch_info): Fix typo
1129 s/primative/primitive/.
1130 * gdbtypes.c (lookup_primitive_typename): Ditto.
1131 * language.c (language_lookup_primitive_type_by_name)
1132 (unknown_language_arch_info): Ditto.
1133
f290d38e
AC
11342004-07-27 Andrew Cagney <cagney@gnu.org>
1135
1136 * defs.h (enum language): Add nr_languages.
1137 * language.h (struct language_arch_info): Define.
1138 (struct language_defn): Add la_language_arch_info.
1139 (language_lookup_primative_type_by_name): Declare.
1140 (language_string_char_type): Declare.
1141 * language.c (_initialize_language, language_gdbarch_post_init)
1142 (struct language_gdbarch, language_gdbarch_data): Implement
1143 per-architecture language information.
1144 (unknown_language_arch_info, language_string_char_type)
1145 (language_lookup_primative_type_by_name): New functions.
1146 (unknown_language_defn, auto_language_defn)
1147 (local_language_defn): Set la_language_arch_info to
1148 unknown_language_arch_info.
1149 (unknown_builtin_types): Delete.
1150 * gdbtypes.c (lookup_primitive_typename): Use
1151 language_lookup_primative_type_by_name.
1152 (create_string_type): Use language_string_char_type.
1153 * values.c (value_from_string): Use language_string_char_type.
1154 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1155 * p-lang.c (pascal_language_defn): Ditto.
1156 * m2-lang.c (m2_language_defn): Ditto.
1157 * jv-lang.c (java_language_defn): Ditto.
1158 * objc-lang.c (objc_language_defn): Ditto.
1159 * f-lang.c (f_language_defn): Ditto.
1160 * c-lang.c (c_language_defn, cplus_language_defn)
1161 (asm_language_defn, minimal_language_defn): Ditto.
1162
000177f0
AC
11632004-07-27 Andrew Cagney <cagney@gnu.org>
1164
1165 * gdbtypes.h (struct builtin_type): Declare.
1166 (builtin_type): Declare.
1167 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1168 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1169 (gdbtypes_post_init): New function.
1170 (builtin_type): New function.
1171
e22f895c
KI
11722004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1173
1174 * remote-m32r-sdi.c: Fix breakpoint bug.
1175 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1176 recv_char_data, recv_long_data): New functions to replace communication
1177 sequences.
1178
536517dd
MC
11792004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1180
1181 Document PR threads/1650.
1182 * PROBLEMS (Threads): Document problem with many threads
1183
a0a44d18
AC
11842004-07-26 Andrew Cagney <cagney@gnu.org>
1185
1186 * gdb-mi.el: Move from here ...
1187 * mi/gdb-mi.el: ... to here.
1188
7ac4ac06
AC
11892004-07-26 Andrew Cagney <cagney@gnu.org>
1190
1191 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1192 * main.c (captured_main): When in batch mode always detach.
1193
a1b461bf
AC
11942004-07-26 Andrew Cagney <cagney@gnu.org>
1195
1196 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1197 and h8300 as broken.
1198 * NEWS: END-OF-LIFE frame compatibility module.
1199 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1200 specific comments.
1201
cb1a6d5f
AC
12022004-07-26 Andrew Cagney <cagney@gnu.org>
1203
1204 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1205 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1206 * wince.c (_initialize_wince): Update.
1207 * win32-nat.c (_initialize_win32_nat): Update.
1208 * varobj.c (_initialize_varobj): Update.
1209 * valops.c (_initialize_valops): Update.
1210 * utils.c (initialize_utils, initialize_utils): Update.
1211 * tui/tui-win.c (_initialize_tui_win): Update.
1212 * top.c (init_main): Update.
1213 * symfile.c (_initialize_symfile): Update.
1214 * source.c (_initialize_source): Update.
1215 * somsolib.c (_initialize_som_solib): Update.
1216 * solib.c (_initialize_solib): Update.
1217 * solib-frv.c (_initialize_frv_solib): Update.
1218 * serial.c (_initialize_serial): Update.
1219 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1220 * remote.c (_initialize_remote, _initialize_remote): Update.
1221 * remote-vx.c (_initialize_vx): Update.
1222 * remote-utils.c (_initialize_sr_support): Update.
1223 * remote-sds.c (_initialize_remote_sds): Update.
1224 * remote-mips.c (_initialize_remote_mips): Update.
1225 * remote-e7000.c (_initialize_remote_e7000): Update.
1226 * proc-api.c (_initialize_proc_api): Update.
1227 * printcmd.c: Update.
1228 * parse.c (_initialize_parse): Update.
1229 * pa64solib.c (_initialize_pa64_solib): Update.
1230 * p-valprint.c (_initialize_pascal_valprint): Update.
1231 * monitor.c (_initialize_remote_monitors): Update.
1232 * mips-tdep.c (_initialize_mips_tdep): Update.
1233 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1234 * maint.c (_initialize_maint_cmds): Update.
1235 * lin-lwp.c (_initialize_lin_lwp): Update.
1236 * language.c (_initialize_language): Update.
1237 * kod.c (_initialize_kod): Update.
1238 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1239 * i386-tdep.c (_initialize_i386_tdep): Update.
1240 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1241 * gdbarch.sh: Update.
1242 * gdbarch.c: Re-generate.
1243 * gdb-events.sh: Update.
1244 * gdb-events.c: Re-generate.
1245 * frame.c (_initialize_frame): Update.
1246 * exec.c: Update.
1247 * demangle.c (_initialize_demangler): Update.
1248 * dcache.c (_initialize_dcache): Update.
1249 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1250 * cp-valprint.c (_initialize_cp_valprint): Update.
1251 * corefile.c (_initialize_core): Update.
1252 * command.h: Update.
1253 * cli/cli-decode.h: Update.
1254 * cli/cli-cmds.c (init_cli_cmds): Update.
1255 * charset.c (_initialize_charset): Update.
1256 * breakpoint.c (_initialize_breakpoint): Update.
1257 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1258 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1259 * aix-thread.c (_initialize_aix_thread): Update.
1260
b4632131
MK
12612004-07-24 Mark Kettenis <kettenis@gnu.org>
1262
1263 Partial fix for PR backtrace/1718.
1264 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1265 that GCC migrates into the prolugue. Don't handle any
1266 instructions that clobber %ebx.
1267
822c9732
AC
12682004-07-23 Andrew Cagney <cagney@gnu.org>
1269
1270 Use regcache_raw_collect instead of regcache_collect.
1271 * regcache.h (regcache_collect): Delete declaration.
1272 * regcache.c (regcache_colect): Delete function.
1273 * win32-nat.c (do_child_store_inferior_registers): Update.
1274 * sol-thread.c (sol_thread_store_registers): Update.
1275 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1276 * rs6000-nat.c (store_register): Update.
1277 * remote.c (store_register_using_P, remote_store_registers): Update.
1278 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1279 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1280 (fill_vrregset, store_spe_registers, fill_gregset)
1281 (fill_gregset): Update.
1282 * nto-procfs.c (procfs_store_registers): Update.
1283 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1284 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1285 * m68klinux-nat.c (store_register, fill_gregset): Update.
1286 * m68k-tdep.c (fill_gregset): Update.
1287 * infptrace.c (store_register): Update.
1288 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1289 * i386-linux-nat.c (store_register, fill_gregset): Update.
1290 * hppa-linux-nat.c (fill_gregset): Update.
1291 * go32-nat.c (store_register): Update.
1292 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1293 (store_fp_regs): Update.
1294 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1295 (store_nwfpe_extended, store_fpregister, store_fpregs)
1296 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1297 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1298 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1299 (store_regs_user_thread, store_regs_kernel_thread): Update.
1300
32b05c07
MK
13012004-07-24 Mark Kettenis <kettenis@gnu.org>
1302
1303 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1304 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1305 encoding.
1306 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1307 member of `struct comp_unit'.
1308
8567c30f
AC
13092004-07-23 Andrew Cagney <cagney@gnu.org>
1310
1311 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1312 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1313
f6da8dd8
MH
13142004-07-23 Martin Hunt <hunt@redhat.com>
1315 Kevin Buettner <kevinb@redhat.com>
1316
1317 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1318 alignment was being added to the offset instead of multiplied.
1319
bd921882
MK
13202004-07-23 Mark Kettenis <kettenis@gnu.org>
1321
24f033e8
MK
1322 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1323 changed signal trampoline in OpenBSD 3.5-current.
1324
90f3cecd
MK
1325 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1326 <machine/pcb.h> and "bsd-kvm.h".
1327 (sparc64nbsd_supply_pcb): New function.
1328 (_initialize_sparc64nbsd_nat): Renamed from
1329 _initialize_sparcnbsd_nat. Enable libkvm interface.
1330 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1331 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1332 (LOADLIBES): New variable.
1333
a4954a62
MK
1334 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1335
bd921882
MK
1336 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1337
23a6d369
AC
13382004-07-21 Andrew Cagney <cagney@gnu.org>
1339
1340 Use regcache_raw_supply instead of supply_register.
1341 * regcache.h (supply_register): Delete declaration.
1342 * regcache.c (supply_register): Delete function.
1343 * wince.c (do_child_fetch_inferior_registers): Update.
1344 * win32-nat.c (do_child_fetch_inferior_registers)
1345 (fetch_elf_core_registers): Update.
1346 * v850ice.c (v850ice_fetch_registers): Update.
1347 * thread-db.c (thread_db_store_registers): Update.
1348 * sol-thread.c (sol_thread_store_registers): Update.
1349 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1350 * rs6000-nat.c (fetch_register): Update.
1351 * rom68k-rom.c (rom68k_supply_one_register): Update.
1352 * remote.c (remote_wait, remote_async_wait): Update.
1353 * remote-st.c (get_hex_regs): Update.
1354 * remote-sim.c (gdbsim_fetch_register): Update.
1355 * remote-sds.c (sds_fetch_registers): Update.
1356 * remote-rdp.c (remote_rdp_fetch_register): Update.
1357 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1358 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1359 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1360 * remote-hms.c (init_hms_cmds): Update.
1361 * remote-est.c (init_est_cmds): Update.
1362 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1363 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1364 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1365 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1366 (fetch_register, supply_vrregset, supply_vrregset)
1367 (fetch_spe_registers): Update.
1368 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1369 * monitor.c (monitor_supply_register): Update.
1370 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1371 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1372 (mipsnbsd_supply_fpreg): Update.
1373 * mips-nat.c (fetch_inferior_registers)
1374 (fetch_core_registers): Update.
1375 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1376 (supply_fpregset, mips64_supply_gregset)
1377 (mips64_supply_fpregset): Update.
1378 * m68klinux-nat.c (fetch_register, supply_gregset)
1379 (supply_fpregset): Update.
1380 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1381 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1382 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1383 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1384 * infptrace.c (fetch_register): Update.
1385 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1386 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1387 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1388 (gnu_fetch_registers, gnu_store_registers): Update.
1389 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1390 * i386-linux-nat.c (fetch_register, supply_gregset)
1391 (dummy_sse_values): Update.
1392 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1393 * hppah-nat.c (fetch_register): Update.
1394 * hppa-linux-nat.c (fetch_register, supply_gregset)
1395 (supply_fpregset): Update.
1396 * go32-nat.c (fetch_register): Update.
1397 * dve3900-rom.c (fetch_bitmapped_register)
1398 (_initialize_r3900_rom): Update.
1399 * cris-tdep.c (supply_gregset): Update.
1400 * abug-rom.c (init_abug_cmds): Update.
1401 * core-aout.c (fetch_core_registers): Update.
1402 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1403 (fetch_register, fetch_fp_register): Update.
1404 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1405 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1406 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1407 * alphanbsd-tdep.c (fetch_core_registers): Update.
1408 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1409 * alpha-nat.c (fetch_osf_core_registers)
1410 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1411 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1412 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1413
73cc75f3
AC
14142004-07-21 Andrew Cagney <cagney@gnu.org>
1415
1416 * PROBLEMS: Mention breakpoints/1702.
1417 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1418 that is known to work.
1419
a53c66de
AC
14202004-07-21 Andrew Cagney <cagney@gnu.org>
1421
1422 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1423 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1424 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1425 (handle_inferior_event): Wrap call to deprecated
1426 IGNORE_HELPER_CALL in #ifdef.
1427 * config/mips/tm-nbsd.h: Update.
1428
708ff411
JB
14292004-07-20 Jim Blandy <jimb@redhat.com>
1430
412b3060
JB
1431 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1432 bfd_mach_ppc has no segment registers.
1433
13ac140c
JB
1434 Include PowerPC SPR numbers for special-purpose registers.
1435 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1436 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1437 new member in initializer.
1438 (S, S4, SN4, S64): New macros for defining special-purpose
1439 registers.
1440 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1441 registers_403, registers_403GC, registers_505, registers_860,
1442 registers_601, registers_602, registers_603, registers_604,
1443 registers_750, registers_e500): Use them.
1444
708ff411
JB
1445 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1446 replace references with expression used to initialize variable.
1447
1f602b35
AC
14482004-07-20 Andrew Cagney <cagney@gnu.org>
1449
1450 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1451 read_memory_nobpt.
1452 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1453 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1454 (s390_sigtramp_frame_sniffer): Update.
1455 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1456 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1457 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1458 (mips32_fetch_instruction): Update.
1459 * mcore-tdep.c (get_insn): Update.
1460 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1461 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1462 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1463 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1464 (i386_linux_rt_sigtramp_start): Update.
1465 * i386-linux-nat.c (child_resume): Update.
1466 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1467 * hppa-linux-tdep.c (insns_match_pattern): Update.
1468 * gdbcore.h: Update.
1469 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1470 * frame.c (safe_frame_unwind_memory): Update.
1471 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1472 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1473 * alpha-tdep.c (alpha_read_insn): Update.
1474
2cd8546d
AC
14752004-07-20 Andrew Cagney <cagney@gnu.org>
1476
1477 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1478 containing both bytes and mask. Add "frame_type".
1479 * tramp-frame.c (tramp_frame_start): Update.
1480 (tramp_frame_prepend_unwinder): Update.
1481 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1482 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1483 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1484 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1485
f928dd62
EZ
14862004-07-19 Eli Zaretskii <eliz@gnu.org>
1487
1488 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1489 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1490 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1491 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1492
d5c560f7
AC
14932004-07-17 Andrew Cagney <cagney@gnu.org>
1494
860660cb
AC
1495 * NEWS, PROBLEMS: Update for 6.2.
1496
8c266f54
AC
1497 * README: Update to 6.2.
1498
a552edd9
AC
1499 * utils.c (xvasprintf): Call xstrvprintf.
1500
c4a172b5
AC
1501 * parse.c: Update copyright.
1502 (null_post_parser): Eliminate ARGSUSED.
1503
da745b36
AC
1504 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1505 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1506 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1507
9cbc6ef0
AC
1508 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1509 * ppc-linux-nat.c: Use "Linux kernel".
1510 * hppa-linux-tdep.c: Use GNU/Linux.
1511 * hppa-linux-nat.c: Use GNU/Linux.
1512 * dwarfread.c: Add [sic] to use of Linux.
1513
1b89295f
AC
1514 * hppa-linux-nat.c: Do not include <string.h>.
1515 (supply_fpregset): Remove "register" attribute.
1516
d5c560f7
AC
1517 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1518
7ddd7709
MK
15192004-07-17 Mark Kettenis <kettenis@gnu.org>
1520
b1d19a62
MK
1521 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1522 * configure, config.in: Regenerated.
1523
7ddd7709
MK
1524 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1525 "bsd-kvm.h".
1526 (vaxbsd_supply_pcb): New function.
1527 (_initialize_vaxbsd_nat): New prototype and function.
1528 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1529 solib-sunos.o.
1530 (LOADLIBES): New variable.
1531 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1532 (LOADLIBES): New variable.
1533 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1534 (LOADLIBES): New variable.
1535 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1536
2c07db7a
AC
15372004-07-16 Andrew Cagney <cagney@gnu.org>
1538
1539 * defs.h (event_loop_p): Replace variable declaration with macro,
1540 always 1.
1541 * main.c (captured_main): Delete options "-async" and "-noasync".
1542 (event_loop_p): Delete variable.
1543 * NEWS: Mention that "-async" and "-noasync" were removed.
1544
717eb1cf
AC
15452004-07-16 Andrew Cagney <cagney@gnu.org>
1546
1547 * remote-m32r-sdi.c: Re-indent.
1548
c101bc14
JB
15492004-07-16 Jim Blandy <jimb@redhat.com>
1550
5109a438
JB
1551 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1552 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1553 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1554 missing MPC823 SPRs.
1555 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1556 incorrect. (This was corrected in GDB's register name tables on
1557 2004-07-14.)
1558
c101bc14
JB
1559 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1560 should be "esasrr" ("ESA Save and Restore Register").
1561
7ce450bd
AC
15622004-07-16 Andrew Cagney <cagney@gnu.org>
1563
1564 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1565 calls, no longer applicable. Update comments and rename parameter
1566 "step_frame" to "return_frame".
1567
ca73dd9d
AC
15682004-07-16 Andrew Cagney <cagney@gnu.org>
1569
1570 * frame.c (fprint_field): New function.
1571 (fprint_frame_id): Use fprint_field.
1572
31941f6d
JB
15732004-07-15 Joel Brobecker <brobecker@gnat.com>
1574
1575 * ada-lang.c (ada_language_defn): Remove commented out code.
1576
f86a7158
JB
15772004-07-15 Jim Blandy <jimb@redhat.com>
1578
1579 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1580 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1581
c24791ec
JB
15822004-07-14 Jim Blandy <jimb@redhat.com>
1583
29bb1356
JB
1584 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1585
cc98b5cc
JB
1586 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1587
8f088af7
JB
1588 * ppc-tdep.h (ppc_num_srs): New enum constant.
1589
0ea0ec5f
JB
1590 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1591 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1592 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1593 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1594 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1595 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1596 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1597 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1598 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1599 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1600 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1601 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1602 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1603 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1604 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1605 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1606 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1607 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1608 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1609 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1610 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1611 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1612 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1613 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1614 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1615 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1616 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1617 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1618 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1619 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1620 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1621 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1622 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1623 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1624 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1625 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1626 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1627 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1628 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1629 special-purpose register numbers.
1630
c24791ec
JB
1631 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1632 manual mentions 'md_twb', but many mention 'm_twb', and at that
1633 point in the register list.)
1634
d833db3b
AC
16352004-07-14 Andrew Cagney <cagney@gnu.org>
1636
1637 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1638 instead of "internal-error".
1639
080228b2
JB
16402004-07-10 Joel Brobecker <brobecker@gnat.com>
1641
1642 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1643 that was inserted inside a comment.
1644
c268433a
RC
16452004-07-10 Randolph Chung <tausq@debian.org>
1646
1647 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1648 function.
1649 (hppa_hpux_push_dummy_code): New function.
1650 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1651 Set find_global_pointer method.
1652
71009278
MK
16532004-07-10 Mark Kettenis <kettenis@gnu.org>
1654
1655 * NEWS: Mention BSD libkvm interface.
1656
b2fa5097
MS
16572004-07-10 Michael Snyder <msnyder@redhat.com>
1658
1659 * symfile.c (generic_load): Comment typo.
1660 * stack.c (get_selected_block): Ditto.
1661 * regcache.c (regcache_cooked_read): Ditto.
1662 * monitor.c (monitor_debug): Ditto.
1663 * mips-tdep.c (mips_read_pc): Ditto.
1664 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1665 * gdb_mbuild.sh: Ditto.
1666 * gdbarch.sh: Ditto.
1667 * gdbarch.h: Ditto.
1668
c3e5cd34
PH
16692004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1670
8a2225b2
PH
1671 * ada-tasks.c: Remove file.
1672
c3e5cd34
PH
1673 Remove ARI problems:
1674
1675 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1676 beginning of line.
1677
1678 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1679 Add comment.
1680 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1681 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1682 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1683 (UMIN_OF_SIZE): Remove.
1684 (max_of_type): New function to replace orphan macro in gdbtypes.h
1685 (min_of_type): Ditto.
1686 (discrete_type_high_bound): Use max_of_type.
1687 (discrete_type_low_bound): Use min_of_type.
1688 (possible_user_operator_p): Move operator to beginning of line.
1689 (ada_is_variant_part): Ditto.
1690 (ensure_lval): Rewrite to avoid deprecated operations.
1691 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1692 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1693 (ada_enum_name): Remove assignments in 'if' statements.
1694 (build_ada_types): Add gdbarch parameter.
1695 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1696 with gdbarch_data_register_post_init.
1697 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1698 add_show_from_set.
1699
1700 * ada-valprint.c (inspect_it): Remove declaration.
1701 (repeat_count_threshold): Remove declaration.
1702 (ada_print_floating): Remove assignments in 'if' statements.
1703 (print_str): Move operator to beginning of line.
1704
61ce229a
JB
17052004-07-08 Jim Blandy <jimb@redhat.com>
1706
1707 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1708
09bcec80
BR
17092004-07-08 Bob Rossi <bob@brasko.net>
1710
1711 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1712
31c27f77
JJ
17132004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1714
1715 * language.h (struct_language_defn): Add new function pointer:
1716 la_class_name_from_physname. Also add new prototype for
1717 language_class_name_from_physname.
1718 * language.c (language_class_name_from_physname): New function.
1719 (unk_lang_class_name): Ditto.
1720 (unknown_language_defn, auto_language_defn): Change
1721 to add unk_lang_class_name function pointer for
1722 la_class_name_from_physname.
1723 (local_language_defn): Ditto.
1724 * dwarf2read.c (guess_structure_name): Change to call
1725 language_class_name_from_physname.
1726 (determine_class_name): Ditto.
1727 * cp-support.c (class_name_from_physname): Renamed.
1728 (cp_class_name_from_physname): New name of function.
1729 * cp-support.h: Ditto.
1730 * c-lang.c (c_language_defn): Change to add NULL
1731 for class_name_from_physname function pointer.
1732 (cplus_language_defn): Change to add cp_class_name_from_physname.
1733 * jv-lang.c (java_class_name_physname): New function.
1734 (java_find_last_component): New static routine.
1735 (java_language_defn): Add java_class_name_from_physname pointer.
1736 * ada-lang.c (ada_language_defn): Change to add NULL
1737 for class_name_from_physname function pointer.
1738 * f-lang.c (f_language_defn): Ditto.
1739 * m2-lang.c (m2_language_defn): Ditto.
1740 * objc-lang.c (objc_language_defn): Ditto.
1741 * p-lang.c (pascal_language_defn): Ditto.
1742 * scm-lang.c (scm_language_defn): Ditto.
1743
ee28ca0f
AC
17442004-07-06 Andrew Cagney <cagney@gnu.org>
1745
1746 Patch from Bart Robinson.
1747 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1748 (O_LARGEFILE): Define to 0, if not defined.
1749
fdb1bf9d
MK
17502004-07-03 Mark Kettenis <kettenis@gnu.org>
1751
cb162ff6
MK
1752 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1753 <machine/pcb.h> and "bsd-kvm.h".
1754 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1755 (m68kbsd_supply_pcb): New function.
1756 (_initialize_m68kbsd_nat): New prototype and function.
1757 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1758 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1759 (LOADLIBES): New variable.
1760 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1761 (LOADLIBES): New variable.
1762
fdb1bf9d
MK
1763 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1764
963c4174
MK
17652004-07-03 Mark Kettenis <kettenis@gnu.org>
1766
1767 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1768 <sys/proc.h>.
1769 (bsd_kvm_cmdlist): New variable.
1770 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1771 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1772 command and "kvm proc" command.
1773 * Makefile.in (bsd-kvm.o): Update dependencies.
1774
533f1d8f
MK
17752004-07-02 Mark Kettenis <kettenis@gnu.org>
1776
1777 * osabi.c: Update copyright year.
1778 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1779 notes if EI_OSABI is set to ELFOSABI_HPUX.
1780
6780dcde
MS
17812004-07-01 Michael Snyder <msnyder@redhat.com>
1782
1783 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1784 that seems to have gotten whacked out of line.
1785
67bebe79
MK
17862004-07-01 Mark Kettenis <kettenis@gnu.org>
1787
1788 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1789 code.
1790
0b5d8877
PH
17912004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1792
1793 * ada-lang.c (decode_packed_array): Minor change to comment.
1794 (ada_value_slice_ptr): New function.
1795 (ada_value_slice): New function.
1796 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1797 test. Don't know why it is there.
1798 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1799 to avoid dereferencing huge arrays from which one is slicing.
1800 (empty_array): Correct to return an array rather than
1801 a subrange value.
1802 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1803 on empty arrays (let'em use 'FIRST instead).
1804
19c1ef65
PH
18052004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1806
1807 Address complaints from gdb_ari.sh:
1808
1809 * ada-exp.y: Include gdb_string.h rather than string.h.
1810 (convert_char_literal): Reformat declaration.
1811 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1812 * ada-lex.l: Change use of free to xfree (the macro would do so
1813 anyway, but this is harmless).
1814 Include gdb_string.h rather than string.h.
1815 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1816
1817 * ada-lang.c (parse): Remove K&Rism in parameter list.
1818 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1819
d81cbc94
MK
18202004-06-30 Mark Kettenis <kettenis@gnu.org>
1821
1822 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1823 dead code.
1824
07681759
MK
18252004-06-30 Mark Kettenis <kettenis@gnu.org>
1826
1827 * alphabsd-nat.c: Update copyright year.
1828 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1829
f7948b5f
JB
18302004-06-29 Joel Brobecker <brobecker@gnat.com>
1831
6e0cdd28 1832 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
1833 (i386_cygwin_in_solib_call_trampoline): New function.
1834 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1835 and skip_trampoline_code gdbarch methods.
1836
8f113c9a
JB
18372004-06-29 Jim Blandy <jimb@redhat.com>
1838
1839 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1840 name actually used in the dependency lists.
1841
97dc871c
RC
18422004-06-29 Randolph Chung <tausq@debian.org>
1843
1844 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1845
47216e51
CV
18462004-06-29 Corinna Vinschen <vinschen@redhat.com>
1847
1848 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 1849 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
1850 functionality.
1851
e623b504
AC
18522004-06-28 Andrew Cagney <cagney@gnu.org>
1853
1854 * defs.h (xstrvprintf): Declare.
1855 * utils.c (xstrvprintf): New function.
1856 (internal_vproblem, xstrprintf, xasprintf)
1857 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1858 * serial.c (serial_printf): Ditto.
1859 * complaints.c (vcomplaint): Ditto.
1860
79acc9b3
CV
18612004-06-29 Corinna Vinschen <vinschen@redhat.com>
1862
1863 * infcmd.c (attach_command): Move call to target_terminal_inferior
1864 behind loading symbol table.
1865
1daf35d9
AC
18662004-06-28 Andrew Cagney <cagney@gnu.org>
1867
1868 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1869 change - add back extern deprecated_ui_loop_hook declaration.
1870
b435e160
AC
18712004-06-28 Andrew Cagney <cagney@gnu.org>
1872
1873 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1874 xstrprintf.
1875 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1876 (c_value_of_variable): Ditto.
1877 * utils.c (internal_vproblem): Ditto.
1878 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1879 * remote.c (add_packet_config_cmd): Ditto.
1880 * remote-rdp.c (rdp_set_command_line): Ditto.
1881 * regcache.c (regcache_dump): Ditto.
1882 * frv-tdep.c (new_variant, new_variant): Ditto.
1883 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1884 (fbsd_find_memory_regions): Ditto.
1885 * breakpoint.c (create_thread_event_breakpoint)
1886 (create_breakpoints): Ditto.
1887 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1888 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1889
06d5cf63
JB
18902004-06-28 Joel Brobecker <brobecker@gnat.com>
1891
1892 * ada-lang.c: Re-indent file, with some massaging to help indent
1893 a bit when the result is otherwise really too ugly.
1894
35809fad
UW
18952004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1896
1897 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1898 code_addr_p and special_addr_p to 'unsigned int'.
1899
40e20472
MK
19002004-06-27 Mark Kettenis <kettenis@gnu.org>
1901
1902 * i386v4-nat.c: Update copyright year and tweak comment.
1903 (regmap): Remove trailing comma.
1904 (supply_gregset): Rename local variable i to regnum. Call
1905 regcache_raw_supply instead of supply_register.
1906 (fill_gregset): Rename argument regno to regnum. Call
1907 regcache_raw_collect instead of regcache_collect.
1908
12b0b6de
UW
19092004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1910
1911 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1912 and special_addr_p.
1913 (frame_id_build, frame_id_build_special): Update comments.
1914 (frame_id_build_wild): New prototype.
1915 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1916 struct frame_id fields.
1917 (frame_id_build_wild): New function.
1918 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1919
47b42a3e
MK
19202004-06-27 Mark Kettenis <kettenis@gnu.org>
1921
1922 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1923 hppabsd-tdep.c.
1924
1265e4aa
JB
19252004-06-27 Joel Brobecker <brobecker@gnat.com>
1926
1927 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1928
76a01679
JB
19292004-06-27 Joel Brobecker <brobecker@gnat.com>
1930
1931 * ada-lang.c: Re-indent file.
1932
7aca490a
JB
19332004-06-27 Joel Brobecker <brobecker@gnat.com>
1934
1935 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1936 (no_symtab_msg): Likewise.
1937
5e987968
AS
19382004-06-27 Andreas Schwab <schwab@suse.de>
1939
1940 * source.c: Fix whitespace.
1941
315c4276
MK
19422004-06-27 Mark Kettenis <kettenis@gnu.org>
1943
d15be926
MK
1944 * configure.in: Include <sys/param.h> for td_pcb test.
1945 * configure: Regenerated.
1946
9062529b
MK
1947 * i386nbsd-nat.c: New file.
1948 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1949 i386obsd-nat.c and i386obsd-tdep.c.
1950 (i386nbsd-nat.o): New dependency.
1951 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1952 bsd-kvm.o.
1953 (LOADLIBES): New variable.
1954 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1955 bsd-kvm.o.
1956 (LOADLIBES): New variable.
1957
8010310e
MK
1958 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1959 (LOADLIBES): New variable.
1960
efe1d7b9
MK
1961 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1962 fetching from BSD_KVM_PADDR. Correctly lookup address for
1963 "_thread0".
1964
315c4276
MK
1965 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1966 "bsd-kvm.h".
1967 (amd64fbsd_supply_pcb): New funcion.
1968 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1969
399cfac6
DL
19702004-06-27 <david@streamline-computing.com>
1971
1972 Partial fix for PR cli/1056.
1973 * valarith.c: Check for zero in division and remainder
1974 evaluation.
1975
6235f9c8
MK
19762004-06-27 Mark Kettenis <kettenis@gnu.org>
1977
1978 * i387-tdep.c: Remove excessive whitespace.
1979
2726dafc
AC
19802004-06-26 Andrew Cagney <cagney@gnu.org>
1981
1982 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1983 * gdb-events.h, gdb-events.c: Re-generate.
1984 * tui/tui-hooks.c (tui_install_hooks): Update.
1985 (tui_remove_hooks): Update.
1986 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
1987
0e56aeaf
MK
19882004-06-26 Mark Kettenis <kettenis@gnu.org>
1989
cb461069
MK
1990 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
1991 (gregset_t, fpregset_t): Remove typedefs.
1992 (REG_OFFSET): Rename argument.
1993 (amd64bsd_r_reg_offset): Rename from reg_offset.
1994 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1995 Remove functions.
1996 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
1997 of reg_offset.
1998 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
1999
ecba89de
MK
2000 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2001
4cd80476
MK
2002 * vax-tdep.c: Tweak comment.
2003
0e56aeaf
MK
2004 Add OpenBSD/hppa support.
2005 * NEWS (New native configurations): Mention OpenBSD/hppa.
2006 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2007 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2008 files.
2009 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2010 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2011 * configure.host: Add hppa*-*-openbsd*.
2012 * configure.tgt: Add hppa*-*-openbsd*.
2013
98bbd631
AC
20142004-06-25 Andrew Cagney <cagney@gnu.org>
2015
2016 * defs.h (deprecated_ui_loop_hook): Deprecated.
2017 * wince.c (child_wait): Update.
2018 * win32-nat.c (child_wait): Update.
2019 * v850ice.c (v850ice_wait): Update.
2020 * top.c (deprecated_ui_loop_hook): Update.
2021 * serial.h: Update.
2022 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2023 (do_unix_readchar): Update.
2024 * ser-tcp.c (net_open): Update.
2025 * remote-sim.c (gdb_os_poll_quit): Update.
2026 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2027
769d7dc4
AC
20282004-06-24 Andrew Cagney <cagney@gnu.org>
2029
2030 * defs.h (deprecated_pre_add_symbol_hook)
2031 (deprecated_post_add_symbol_hook): Deprecated.
2032 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2033 (symbol_file_add_with_addrs_or_offsets): Update references.
2034
11c949aa
AC
20352004-06-24 Andrew Cagney <cagney@gnu.org>
2036
2037 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2038 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2039 * wince.c (ui_loop_hook): Delete extern declaration.
2040 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2041 * v850ice.c (ui_loop_hook): Delete extern declaration..
2042 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2043 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2044 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2045 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2046 ui_loop_hook declaration.
2047
eedc19af
AC
20482004-06-24 Andrew Cagney <cagney@gnu.org>
2049
2050 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2051 entry_func_highpc fields.
2052 * objfiles.c (init_entry_point_info): Do not clear
2053 entry_func_lowpc and entry_func_highpc.
2054 (objfile_relocate): Do not relocate entry_func_lowpc and
2055 entry_func_highpc.
2056 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2057 entry_func_highpc.
2058 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2059 entry_func_highpc.
2060 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2061 entry_func_lowpc and entry_func_highpc with call to
2062 inside_entry_func.
2063
d47079be
MK
20642004-06-24 Mark Kettenis <kettenis@gnu.org>
2065
2066 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2067 quad-precision floating point arguments in registers.
2068
2107e348
MK
20692004-06-24 Mark Kettenis <kettenis@gnu.org>
2070
2071 From Michael Mueller <m.mueller99@kay-mueller.de>:
2072 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2073 account.
2074
46587c42
JJ
20752004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2076
2077 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2078 to -1.
2079 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2080 untriggered watchpoints to a separate if clause. Update function
2081 comment regarding STOPPED_BY_WATCHPOINT argument.
2082
226f5cf4
JB
20832004-06-22 Jim Blandy <jimb@redhat.com>
2084
2085 * gdbarch.sh: Doc fix.
2086
f10683bb
MH
20872004-06-21 Martin Hunt <hunt@redhat.com>
2088 Kevin Buettner <kevinb@redhat.com>
2089
2090 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2091 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2092 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2093 to set_gdbarch_sp_regnum(). Use cooked register number.
2094 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2095
412d5987
AC
20962004-06-21 Andrew Cagney <cagney@gnu.org>
2097
2098 * gdbarch.sh: When the macro field is empty, do not generate a
2099 macro definition. When the macro field is "=", generate the macro
2100 name from the upper-case function name.
2101 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2102 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2103 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2104 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2105 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2106 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2107 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2108 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2109 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2110 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2111 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2112 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2113 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2114 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2115 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2116 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2117 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2118 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2119 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2120 (DEPRECATED_USE_STRUCT_CONVENTION)
2121 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2122 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2123 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2124 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2125 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2126 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2127 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2128 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2129 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2130 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2131 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2132 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2133 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2134 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2135 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2136 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2137 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2138 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2139
68908a3e
AC
21402004-06-21 Andrew Cagney <cagney@gnu.org>
2141
48f7351b
AC
2142 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2143 macro name, and the function rather than macro value. Only wrap
2144 macro print statements in #ifdef. Move format logic to where it
2145 is needed.
2146 * gdbarch.c: Re-generate.
2147
283354d8
AC
2148 * gdbarch.sh (read): Delete "print_p" and "description", add
2149 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2150 Delete references to print_p.
2151 (TARGET_ARCHITECTURE): Delete print predicate.
2152 * gdbarch.c: Re-generate.
2153
68908a3e
AC
2154 * gdbarch.sh: Check that multi-arch methods do not provide a
2155 macro.
2156 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2157 (print_registers_info, print_float_info, print_vector_info)
2158 (adjust_breakpoint_address, remote_translate_xfer_address)
2159 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2160 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2161 name from the multi-arch definition.
2162
a2428dbe
AC
21632004-06-20 Andrew Cagney <cagney@gnu.org>
2164
2165 * gdbarch.sh: Sort by the function, instead of macro name.
2166 * gdbarch.c: Re-generate.
2167
750eb019
AC
21682004-06-20 Andrew Cagney <cagney@gnu.org>
2169
66d659b1
AC
2170 * gdbarch.sh: Use the function, instead of macro name in
2171 errors and the log file.
2172 (return_value): Remove stray ":" in spec.
2173
750eb019
AC
2174 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2175 * gdbarch.h, gdbarch.c: Re-generate.
2176 * Makefile.in (arch-utils.o): Update dependencies.
2177 * values.c (using_struct_return): Move code calling
2178 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2179 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2180 to legacy_return_value, simplify.
2181 * infcmd.c (print_return_value): Move code calling
2182 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2183 to legacy_return_value, simplify.
2184 * infcall.c (call_function_by_hand): Move code calling
2185 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2186 * arch-utils.c: Update copyright. Include "gdbcore.h".
2187 (legacy_return_value): New function.
2188 * arch-utils.h: Update copyright.
2189 (legacy_return_value): Declare.
2190
b5622e8d
AC
21912004-06-20 Andrew Cagney <cagney@gnu.org>
2192
2193 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2194 * gdbarch.h, gdbarch.c: Re-generate.
2195 * values.c (using_struct_return): Update call.
2196 * mcore-tdep.c: Update comment.
2197 * infcall.c (call_function_by_hand): Update comment.
2198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2199 * arch-utils.h (always_use_struct_convention): Update.
2200 * v850-tdep.c (v850_gdbarch_init): Update.
2201 * sh64-tdep.c (sh64_gdbarch_init): Update.
2202 * sh-tdep.c (sh_gdbarch_init): Update.
2203 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2204 * mips-tdep.c (mips_gdbarch_init): Update.
2205 * mcore-tdep.c (mcore_gdbarch_init): Update.
2206 * m32r-tdep.c (m32r_gdbarch_init): Update.
2207 * ia64-tdep.c (ia64_gdbarch_init): Update.
2208 * h8300-tdep.c (h8300_gdbarch_init): Update.
2209 * frv-tdep.c (frv_gdbarch_init): Update.
2210 * cris-tdep.c (cris_gdbarch_init): Update.
2211 * arm-tdep.c (arm_gdbarch_init): Update.
2212 * alpha-tdep.c (alpha_gdbarch_init): Update.
2213
5191de37
MC
22142004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2215
2216 * PROBLEMS: Add more specific information, and a work-around,
2217 for PR gdb/1458.
2218
782263ab
AC
22192004-06-18 Andrew Cagney <cagney@gnu.org>
2220
2221 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2222 * gdbarch.h, gdbarch.c: Re-generate.
2223 * ada-lang.c (ada_finish_decode_line_1): Update.
2224 * infrun.c (handle_inferior_event): Update.
2225 * infcall.c (find_function_addr): Update.
2226 * linespec.c (minsym_found): Update.
2227 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2228 Update.
2229 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2230 * cli/cli-cmds.c (disassemble_command): Update.
2231 * vax-tdep.c (vax_gdbarch_init): Update.
2232
2f305df1
MK
22332004-06-18 Mark Kettenis <kettenis@gnu.org>
2234
2235 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2236
e5fe55f7
AC
22372004-06-17 Andrew Cagney <cagney@gnu.org>
2238
2239 GDB 6.1.1 released from the GDB 6.1 branch.
2240 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2241 * PROBLEMS: Ditto.
2242
473b7be6
DJ
22432004-06-16 Daniel Jacobowitz <dan@debian.org>
2244
2245 PR gdb/1658
2246 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2247 operation as a uleb128. Found by Michael Coulter.
2248
96d887e8
PH
22492004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2250
2251 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2252 make it non-static.
2253 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2254 to ada-lang.h; this is needed to be able to implement the kill command
2255 in multi-task mode.
2256 (task_ptid): Ditto.
2257 (task_entry): Ditto.
2258 (task_list): Ditto.
2259 (ada_build_task_list): Ditto.
2260
2261 * ada-lang.c: Conditionalize routines and data structures related
2262 to breakpoints, exceptions, completion, and symbol caching on
2263 GNAT_GDB, since these are not yet used in the submitted public sources.
2264 (ada_main_name): Editorial: Move definition out of exception-related
2265 code.
2266
31eef181
AC
22672004-06-15 Andrew Cagney <cagney@gnu.org>
2268
2269 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2270 deprecated_pc_in_call_dummy.
2271
2c500098
AM
22722004-06-15 Alan Modra <amodra@bigpond.net.au>
2273
2274 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2275 bfd_get_section_size_before_reloc or _raw_size.
2276 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2277 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2278 (dwarf2_read_section): Likewise.
2279 * elfread.c (elf_locate_sections): Likewise.
2280 * gcore.c (derive_heap_segment): Likewise.
2281 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2282 * remote-e7000.c (e7000_load): Likewise.
2283 * remote-m32r-sdi.c (m32r_load): Likewise.
2284 * remote-mips.c (mips_load_srec): Likewise.
2285 (pmon_load_fast): Likewise.
2286 * remote.c (compare_sections_command): Likewise.
2287 * symfile.c (add_section_size_callback): Likewise.
2288 (load_section_callback): Likewise.
2289 (pc_in_unmapped_range): Likewise.
2290 (pc_in_mapped_range): Likewise.
2291 (sections_overlap): Likewise.
2292 (list_overlays_command): Likewise.
2293 (simple_overlay_update_1): Likewise.
2294 (simple_overlay_update): Likewise.
2295 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2296 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2297
90f943f1
RC
22982004-06-14 Randolph Chung <tausq@debian.org>
2299
2300 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2301 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2302 static.
2303 (hppa_hpux_inferior_created): New function.
2304 (hppa_hpux_init_abi): Register observer.
2305 * symfile.c (hp_cxx_exception_support_initialized)
2306 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2307 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2308
700c15aa
RC
23092004-06-14 Randolph Chung <tausq@debian.org>
2310
3973a7d3
AC
2311 * MAINTAINERS (Write After Approval): Alphabetize my entry
2312 correctly.
700c15aa 2313
cea4838c
AC
23142004-06-14 Andrew Cagney <cagney@gnu.org>
2315
2316 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2317 testsuite maintainer.
2318
97092415
AC
23192004-06-13 Andrew Cagney <cagney@gnu.org>
2320
e8c3165b
AC
2321 * infcmd.c (print_return_value): Fix logic, allow
2322 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2323
bceabdd8
AC
2324 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2325 defining any macros.
2326 * gdbarch.h: Re-generate.
2327
57010b1c
AC
2328 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2329 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2330 * gdbarch.h: Re-generate.
2331
bc87dfa0
AC
2332 * values.c (generic_use_struct_convention): Don't check gcc_p.
2333
15ac804d
AC
2334 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2335 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2336 * gdbarch.h, gdbarch.c: Regenerate.
2337 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2338 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2340 deprecated_max_register_raw_size and
2341 deprecated_max_register_virtual_size.
2342 * v850-tdep.c (v850_gdbarch_init): Ditto.
2343 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2345 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2346 * cris-tdep.c (cris_gdbarch_init): Ditto.
2347
97092415
AC
2348 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2349 * gdbarch.h, gdbarch.c: Re-generate.
2350 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2351 (m68hc11_use_struct_convention): Delete function.
2352 (m68hc11_extract_struct_value_address): Delete function.
2353 (m68hc11_return_value): New function.
2354 (m68hc11_gdbarch_init): Instead of store_return_value,
2355 extract_return_value, return_value_on_stack,
2356 deprecated_extract_struct_value_address and use_struct_convention,
2357 set return_value.
2358 * values.c (using_struct_return): Do not call
2359 RETURN_VALUE_ON_STACK.
2360 * arch-utils.h (generic_return_value_on_stack_not): Delete
2361 declaration.
2362 * arch-utils.c (generic_return_value_on_stack_not): Delete
2363 function.
2364
44e5158b
AC
23652004-06-12 Andrew Cagney <cagney@gnu.org>
2366
2367 * values.c (register_value_being_returned): Delete function.
2368 * infcmd.c (legacy_return_value): Delete function.
2369 * infcall.c (call_function_by_hand): Inline
2370 "register_value_being_returned", simplify.
2371 * values.c (using_struct_return): Update comment, refer to
2372 print_return_value instead of register_value_being_returned.
2373 * infcmd.c (print_return_value): Inline calls to
2374 register_value_being_returned and legacy_return_value. Simplify.
2375
b887c273
RC
23762004-06-11 Randolph Chung <tausq@debian.org>
2377
2378 * somread.c (som_symtab_read): Exclude gcc local symbols.
2379
1b2bfbb9
RC
23802004-06-11 Randolph Chung <tausq@debian.org>
2381
3973a7d3
AC
2382 * infrun.c (handle_inferior_event): Handle the case when a
2383 trampoline ends up in the runtime resolver, and if the trampoline
2384 has no name. Rearrange the code so that all the trampoline
2385 processing happens before other step-out-of-range handling.
1b2bfbb9 2386
a9d61c86
MH
23872004-06-11 Martin Hunt <hunt@redhat.com>
2388
2389 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2390 has no fpu.
2391
2c87cf5a
AC
23922004-06-10 Andrew Cagney <cagney@gnu.org>
2393
2394 * blockframe.c (legacy_inside_entry_func): Delete.
2395 (legacy_frame_chain_valid): Inline call to
2396 legacy_inside_entry_func, simplify.
2397
0b67b468 23982004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
2399
2400 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
2401 * dwarf2read.c (partial_die_info): Add dirname field.
2402 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2403 (read_partial_die): Save away DW_AT_comp_dir.
2404 * defs.h (symtab_to_filename): Removed.
2405 * source.c (find_and_open_source): Added.
57c22c6c 2406 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
2407 (symtab_to_filename): Removed.
2408 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
2409 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2410 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2411 symtab_to_filename.
2412 * symtab.h (partial_symtab): Add dirname field.
2413 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
2414 (mi_cmd_file_list_exec_source_file): Call new function
2415 symtab_to_fullname to find fullname.
57c22c6c 2416 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 2417 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
2418 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2419
9a1dd1ad
AC
24202004-06-10 Andrew Cagney <cagney@gnu.org>
2421
239ae8c7
AC
2422 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2423 to generic_use_struct_convention, the default value.
2424
fc720350
AC
2425 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2426 of abort.
2427
9a1dd1ad
AC
2428 * ns32k-tdep.c (ns32k_push_arguments): New function.
2429 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2430 * infcall.c (call_function_by_hand): Call error instead of
2431 legacy_push_arguments.
2432 * value.h (legacy_push_arguments): Delete declaration.
2433 * valops.c (legacy_push_arguments): Delete function.
2434 (value_push): Delete function.
2435
fea25152
BF
24362004-06-10 Brian Ford <ford@vss.fsi.com>
2437
2438 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2439 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2440 info.
2441 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2442
30a4a8e0
AC
24432004-06-10 Andrew Cagney <cagney@gnu.org>
2444
2445 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2446 * gdbarch.h, gdbarch.c: Re-generate.
2447 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2448 parameters.
2449 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2450 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2451 deprecated_pc_in_call_dummy instead of
2452 DEPRECATED_PC_IN_CALL_DUMMY.
2453 (arm_skip_prologue): Ditto.
2454 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2455 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2456 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2457 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2458 Ditto.
2459 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2460 (sh64_init_extra_frame_info, sh64_get_saved_register)
2461 (sh64_pop_frame): Ditto.
2462 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2463 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2464 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2465 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2466 (h8300_pop_frame): Ditto.
2467 * blockframe.c (legacy_inside_entry_func)
2468 (legacy_frame_chain_valid): Ditto.
2469 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2470 to deprecated_pc_in_call_dummy.
2471
81cfbe54
AC
24722004-06-09 Andrew Cagney <cagney@gnu.org>
2473
a1f4a1b6
AC
2474 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2475 provide a default value.
2476 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2477 * gdbarch.h, gdbarch.c: Re-generate.
2478 * arch-utils.c (generic_convert_register_p): Rename
2479 legacy_convert_register_p
2480 (legacy_register_to_value, legacy_value_to_register): Delete
2481 functions.
2482 * arch-utils.h (generic_convert_register_p): Rename
2483 legacy_convert_register_p.
2484 (legacy_register_to_value, legacy_value_to_register): Delete
2485 declarations.
2486
9730f241
AC
2487 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2488 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2489 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2490 * gdbarch.h, gdbarch.c: Re-generate.
2491 * infcmd.c (default_print_registers_info): Simplify.
2492 * findvar.c (value_of_register): Simplify.
2493 * mi/mi-main.c (get_register): Simplify.
2494 * arch-utils.c (legacy_convert_register_p): Always return 0.
2495 (legacy_register_to_value, legacy_value_to_register): Always call
2496 internal_error.
2497
8a1bf479
AC
2498 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2499 #ifdef CLEAR_INSN_CACHE code.
2500 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2501 Delete #ifdef CLEAR_DEFERRED_STORES code.
2502
4b38d6f1
AC
2503 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2504
2d62ecc7
AC
2505 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2506 copyright.
2507 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2508
be4f7469
AC
2509 * config/mips/mipsv4.mh: Delete file.
2510
81cfbe54
AC
2511 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2512 unreferenced macro.
2513 (hpread_adjust_stack_address): Delete declaration.
2514
d966f0cb
AC
25152004-06-08 Andrew Cagney <cagney@gnu.org>
2516
2517 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2518 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2519 PTRACE_ATTACH / PTRACE_DETACH available call error.
2520 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2521 * infttrace.c (update_thread_state_after_attach, attach, detach):
2522 Remove #ifdef wrappers.
2523 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2524 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2525 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2526 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2527 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2528 * config/nm-linux.h (ATTACH_DETACH): Delete.
2529 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2530 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2531 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2532 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2533 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2534
d91670b9
CV
25352004-06-08 Corinna Vinschen <vinschen@redhat.com>
2536
2537 * configure.in: Set $configdir to the right OS specific value.
2538 Use value when setting $tcldir and $tkdir.
2539 * configure: Regenerate.
2540
28ba0b33
PB
25412004-06-06 Paul Brook <paul@codesourcery.com>
2542
2543 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2544 records.
2545
f26caa11
PH
25462004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2547
2548 * ada-lang.c (lookup_symbol_in_language): New function to allow
2549 re-use of another language's symbol lookup code. (Placed here
2550 temporarily while Ada support is being integrated into the public
2551 tree).
2552 (restore_language): New auxiliary function for
2553 lookup_symbol_in_language.
2554 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2555 temporarily while Ada support is being integrated into the public
2556 tree).
2557
d560a54b
AO
25582004-06-08 Alexandre Oliva <aoliva@redhat.com>
2559
e75d110c
AO
2560 * Makefile.in (check//%): New.
2561
d560a54b
AO
2562 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2563 (mn10300_store_return_value): Rewrite.
2564 (mn10300_type_align): New.
2565 (mn10300_use_struct_convention): Rewrite.
2566 (mn10300_return_value): New, using all of the above.
2567 (mn10300_pop_frame_regular): Add saved_regs_size.
2568 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2569
a72fbdb7
AO
2570 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2571 regs if PC is on movm.
2572
01904826
JB
25732004-06-07 Jim Blandy <jimb@redhat.com>
2574
2575 Add native Linux support for the PowerPC E500.
2576 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2577 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2578 all architectures except the E500.
2579 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2580 #definitions.
2581 (struct gdb_evrregset_t): New type.
2582 (have_ptrace_getsetevrregs): New variable.
2583 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2584 fetch_spe_registers): New functions.
2585 (fetch_register): Call fetch_spe_register as appropriate.
2586 Assert that we're only passed raw register numbers.
2587 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2588 Don't fetch gprs if they're pseudoregisters.
2589 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2590 store_spe_registers): New functions.
2591 (store_register): Call store_spe_register as appropriate.
2592 Assert that we're only passed raw register numbers.
2593 (store_ppc_registers): Call store_spe_registers as appropriate.
2594 Don't store gprs if they're pseudoregisters.
2595
f90ef764
JJ
25962004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2597
2598 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2599 struct if one exists, even if we are dealing with a zombie thread.
2600
45b75230
AC
26012004-06-07 Andrew Cagney <cagney@gnu.org>
2602
2603 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2604 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2605 Rename PC_REQUIRES_RUN_BEFORE_USE.
2606 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2607 #ifdef.
2608
1658da49
RC
26092004-06-07 Randolph Chung <tausq@debian.org>
2610
2611 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2612 unwinding after sp has been saved to the stack but before the end
2613 of the prologue, and after the fp has been modified but before it has
2614 been saved to the stack.
2615 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2616 Remove superfluous definitions.
2617 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2618
9a727a3c
RC
26192004-06-07 Guy Martin <gmsoft@gentoo.org>
2620
2621 Committed by Randolph Chung.
2622 * hppa-linux-nat.c: Include the correct version of the header file
2623 depending on the kernel version.
2624
9e500012
RC
26252004-06-06 Randolph Chung <tausq@debian.org>
2626
2627 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2628 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2629
3388d7ff
RC
26302004-06-06 Randolph Chung <tausq@debian.org>
2631
2632 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2633 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2634 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2635 * hppa-tdep.c (hppa_symbol_address): New function definition.
2636 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2637
d49771ef
RC
26382004-06-06 Randolph Chung <tausq@debian.org>
2639
2640 * hppa-tdep.h (struct value): Forward declaration.
2641 (gdbarch_tdep): Define tdep find_global_pointer method.
2642 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2643 associated with the function we are trying to call, and write it
2644 to the gp register.
2645 (hppa32_convert_from_funct_ptr_addr): New function.
2646 (hppa_find_global_pointer): New function.
2647 (hppa_gdbarch_init): Set default find_global_pointer method; set
2648 convert_from_func_ptr_addr method.
2649 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2650 (hppa_linux_init_abi): Set find_global_pointer method.
2651 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2652
7d9b040b
RC
26532004-06-06 Randolph Chung <tausq@debian.org>
2654
2655 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2656 to struct value *function.
2657 * gdbarch.c: Regenerate.
2658 * gdbarch.h: Likewise.
2659 * infcall.c (call_function_by_hand): Pass entire function value
2660 to push_dummy_call.
2661
2662 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2663 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2664 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2665 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2666 * arm-tdep.c (arm_push_dummy_call): Likewise.
2667 * avr-tdep.c (avr_push_dummy_call): Likewise.
2668 * cris-tdep.c (cris_push_dummy_call): Likewise.
2669 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2670 * frv-tdep.c (frv_push_dummy_call): Likewise.
2671 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2672 * hppa-tdep.c (hppa32_push_dummy_call)
2673 (hppa64_push_dummy_call): Likewise.
2674 * i386-tdep.c (i386_push_dummy_call): Likewise.
2675 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2676 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2677 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2678 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2679 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2680 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2681 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2682 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2683 (ppc64_sysv_abi_push_dummy_call): Likewise.
2684 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2685 (ppc64_sysv_abi_push_dummy_call): Likewise.
2686 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2687 * s390-tdep.c (s390_push_dummy_call): Likewise.
2688 * sh-tdep.c (sh_push_dummy_call_fpu)
2689 (sh_push_dummy_call_nofpu): Likewise.
2690 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2691 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2692 * vax-tdep.c (vax_push_dummy_call): Likewise.
2693
4a19ea35
JB
26942004-06-04 Jim Blandy <jimb@redhat.com>
2695
8327ccee
JB
2696 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2697 gdbarch argument to register_size.
2698
a3c001ce
JB
2699 * rs6000-tdep.c (rs6000_store_return_value): Use
2700 regcache_cooked_write_part instead of
2701 deprecated_write_register_bytes.
2702 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2703 not gdbarch_deprecated_store_return_value.
2704
4a19ea35
JB
2705 * ppc-linux-nat.c (store_register, fetch_register): Remove
2706 incorrect assertions. Simplify and generalize handling of
2707 transfers whose sizes are not multiples of, or less than, sizeof
2708 (PTRACE_XFER_TYPE).
2709
b9b5d7ea
JJ
27102004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2711
2712 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2713 as a new thread event.
720c7d64 2714 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 2715 zombie, return TD_THR_ZOMBIE.
720c7d64 2716 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
2717 TD_THR_ZOMBIE, check if the thread is still on the thread list
2718 and return a -1 ptid if not found.
2719 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2720 change the status to TARGET_WAITKIND_SPURIOUS.
2721
c8a3b559
CV
27222004-06-03 Corinna Vinschen <vinschen@redhat.com>
2723
2724 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2725 double values in little endian mode.
2726
20605361
AC
27272004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2728
2729 Committed by Andrew Cagney.
2730 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2731 after last enum constant to avoid error from IBM C
2732 compiler.
2733
bc97b3ba
JB
27342004-06-02 Jim Blandy <jimb@redhat.com>
2735
2736 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2737 to 'message', and make it local to the lone block that uses it.
2738
1da28ab0
JB
2739 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2740
4c4b4cd2
PH
27412004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2742
8a2225b2
PH
2743 * ada-exp.y: Update copyright notice.
2744 Include block.h.
2745
2746 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2747 SPECIAL_VARIABLE and unify the treatment of these cases.
2748
2749 (write_attribute_call0): Remove.
2750 (write_attribute_call1): Remove.
2751 (write_attribute_calln): Remove.
2752 (save_qualifier): Add missing semicolon.
2753
2754 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2755 temporarily disabled to allow compilation with FSF head version.
2756
2757 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2758 use individual operators (OP_*) for all attributes.
2759 (exp syntax): Use write_int.
2760 Handle STRING literals with OP_STRING.
2761 (variable syntax): Add limit parameter to calls to
2762 write_object_renaming.
2763
2764 (temp_parse_space): New definition to hold entities that need
2765 only live until the next call to ada_parse.
2766 (string_to_operator): Rename fields of ada_opname_table entries.
2767
2768 (write_var_from_sym): Record block.
2769 (write_var_from_name): Minor reformatting.
2770 Make sure saved name is properly encoded in the case of multiple
2771 matches, and set its language to Ada.
2772 Update comment.
2773 Modify to indicate unresolved name as symbol in the UNRESOLVED
2774 namespace, allocated in temp_parse_space.
2775 (write_int): New function.
2776
2777 (write_object_renaming): Add max_depth parameter to limit
2778 chains of object renamings.
2779 Handle case where root of renaming expression is itself a renaming.
2780 Use temp_parse_space for temporary name buffer.
2781 Handle renamings to dereferenced pointers (___XEXA suffices).
2782
2783 (ada_parse, yyerror, string_to_operator,
2784 write_var_from_sym, write_var_from_name, write_attribute_call0,
2785 write_attribute_call1, write_attribute_calln,
2786 write_object_renaming): Protoize.
2787
2788 (_initialize_ada_exp): New function.
2789
2790 * ada-lang.c: Update copyright notice.
2791 General terminology change to conform to GNAT compiler usage:
2792 mangle => encode, demangle => decode
2793 Include gdb_obstack.h.
2794 Include gdb_regex.h
2795 Include frame.h
2796 Include hashtab.h
2797 Include completer.h
2798 Include gdb_stat.h
2799 Include block.h
2800 Include infcall.h
2801
2802 (ADA_RETAIN_DOTS): Make sure this is defined.
2803 (TRUNCATION_TOWARDS_ZERO): Define.
2804 (struct string_vector): Define.
2805 (unresolved_names): Remove definition.
2806 (xnew_string_vector): New function.
2807 (string_vector_append): New function.
2808 (extract_string): Make static.
2809 (ada_unqualified_name): New function.
2810 (add_angle_brackets): New function.
2811 (function_name_from_pc): New function.
2812 (place_on_stack): Rename to ensure_lval.
2813
2814 (ensure_lval): Renamed from place_on_stack.
2815 Make identity on lvals.
2816 Update comment.
2817 (is_nonfunction): New interface.
2818 Only symbols in LOC_CONST class can be enumerals.
2819 (fill_in_ada_prototype): Remove; now independent of language.
2820 (add_defn_to_vec): Add obstack and symtab arguments.
2821 Use obstack to hold collected definitions.
2822 (num_defns_collected): New function.
2823 (defns_collected): New function.
2824 (ada_resolve_subexp): Rename to resolve_subexp.
2825 (resolve_subexp): Renamed from ada_resolve_subexp.
2826 (ada_op_name): Return non-const result.
2827 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2828 other purposes.
2829
2830 (to_fixed_array_type): Add declaration.
2831 (coerce_unspec_val_to_type): Remove offset parameter.
2832 (find_sal_from_funcs_and_line): New interface.
2833 (find_line_in_linetable): Ditto.
2834
2835 (all_sals_for_line): Rename to ada_sals_for_line and make
2836 global.
2837 Add new parameter. When set, do not ask the user to choose the
2838 instance, but use the first one found instead.
2839 Use given line number in returned sals.
2840 Fix comment.
2841 Skip the prologue if funfirstline is set.
2842 Correct for memory leak when 0 lines found.
2843
2844 (value_pos_atr): Use pos_atr.
2845 (pos_atr): New function.
2846 (standard_lookup): Add block parameter.
2847
2848 (makeTimeStart): Remove declaration and uses.
2849 (makeTimeStop): Remove declaration and uses.
2850
2851 (ada_completer_word_break_characters): Allow for VMS.
2852 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2853 (raise_sym_name): New constant.
2854 (raise_unhandled_sym_name): New constant.
2855 (raise_assert_sym_name): New constant.
2856 (process_raise_exception_name): New constant.
2857 (longest_exception_template): New constant.
2858 (warning_limit): New variable to limit warnings during expression
2859 evaluation.
2860 (warnings_issued): New variable to keep track of warnings issued.
2861 (known_runtime_file_name_patterns): New constant.
2862 (known_auxiliary_function_name_patterns): New constant.
2863 (symbol_list_obstack): New variable.
2864
2865 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2866 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2867 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2868 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2869 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2870 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2871 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2872 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2873 and strcmp.
2874
2875 (ada_get_field_index): New function.
2876 (lim_warning): New function.
2877 (ada_translate_error_message): New function.
2878 (MAX_OF_SIZE): New function.
2879 (MIN_OF_SIZE): New function.
2880 (UMAX_OF_SIZE): New function.
2881 (UMIN_OF_SIZE): New function.
2882 (discrete_type_high_bound): New function.
2883 (discrete_type_low_bound): New function.
2884 (base_type): New function.
2885 (do_command): Remove.
2886
2887 (ada_update_initial_language): Use language_ada, not language_unknown.
2888 (ada_encode): Renamed from ada_mangle.
2889 Obey ADA_RETAIN_DOTS.
2890 (ada_decode): Renamed from ada_demangle.
2891 Update coding conventions.
2892 (decoded_names_store): New hash table.
2893 (ada_decode_symbol): New function.
2894 (ada_la_decode): New function.
2895
2896 (modify_general_field): Correct computations of offset and bit
2897 position.
2898 (desc_base_type): Handle ref types, too.
2899 (ada_is_direct_array_type): New function.
2900
2901 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2902 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2903 (ada_is_bogus_array_descriptor,ada_type_of_array,
2904 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2905 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2906 ada_is_array_descriptor_type.
2907
2908 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2909 (ada_is_packed_array_type): Handle pointers or
2910 references to packed arrays as well.
2911 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2912 (decode_packed_array_type): Search for the packed array type
2913 symbol in the currently selected block and associated
2914 superblocks too.
2915 Use lookup_symbol again.
2916
2917 (decode_packed_array): Handle pointers and references.
2918 Update call to coerce_unspec_val_to_type.
2919 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2920 (ada_value_primitive_packed_val): Improve comment.
2921
2922 (ada_index_type): Substitute int type for "undefined".
2923 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2924 ada_array_langth, ada_is_string_type): Use renamed
2925 ada_is_simple_array_type.
2926 (empty_array): New function.
2927
2928 (ada_resolve): Rename to resolve.
2929 (resolve): Make static.
2930 Call renamed resolve_subexp.
2931 Update comment.
2932 (ada_resolve_subexp): Rename to resolve_subexp.
2933 (resolve_subexp): Update comment.
2934 Decomment disabled code.
2935 Add LOC_COMPUTED* cases.
2936 Modify to use temporary struct symbols (marked as being in
2937 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2938 OP_UNRESOLVED_VALUE.
2939 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2940 Add OP_STRING case.
2941 Remove OP_ARRAY.
2942 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2943 Use new ada_lookup_symbol_list interface.
2944 Use new ada_resolve_function interface.
2945 Remove OP_TYPE case.
2946
2947 (ada_args_match): Idiot proof against null actuals.
2948 Use intermediate variables to clarify.
2949 (ada_resolve_function): Update comment and interface.
2950 (mangled_ordered_before): Rename to encoded_ordered_before and
2951 update comment.
2952 (sort_choices): Update comment and interface.
2953 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2954 (user_select_syms): New interface.
2955 Use new sort_choices interface.
2956 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2957 (possible_user_operator_p): Idiot-proof against null values.
2958 (ada_simple_renamed_entity): Don't make cleanup; rely on
2959 caller to free result string.
2960 Remove const from return type.
2961 (make_array_descriptor): Rename uses of place_on_stack to
2962 ensure_lval.
2963 Make sure that arrays are on stack.
2964
2965 (HASH_SIZE): Define.
2966 (struct cache_entry): Define.
2967 (cache_space): Define.
2968 (cache): Define.
2969 (clear_ada_sym_cache): New function.
2970 (find_entry): New function.
2971 (lookup_cached_symbol): New function.
2972 (defn_vector_size): Define.
2973 (cache_symbol): New function.
2974 (defn_symbols): Remove.
2975
2976 (standard_lookup): Use lookup_symbol_in_language to get effect of
2977 C lookup.
2978 Cache results.
2979
2980 (symbol_completion_match): New function.
2981 (symbol_completion_add): New function.
2982 (ada_make_symbol_completion_list): New function.
2983
2984 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2985 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
2986 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2987 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
2988
2989 (ada_lookup_simple_minsym): New function.
2990 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
2991
2992 (add_symbols_from_enclosing_procs): New interface.
2993 Conditionalize more helpfully.
2994 Don't bother if program isn't running.
2995 Use new interface to get_frame_block.
2996 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
2997
2998 (remove_extra_symbols): New interface.
2999 (xget_renaming_scope): New function.
3000 (is_package_name): New function.
3001 (renaming_is_visible): New function.
3002 (remove_out_of_scope_renamings): New function.
3003
3004 (ada_lookup_symbol_list): New interface.
3005 Properly reinitialize the symbol list obstack.
3006 Don't call add_symbols_from_enclosing_procs if we start from a
3007 static or global block.
3008 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3009 add_symbols_from_enclosing_procs.
3010 Add symtab data to cached entries.
3011 Handle symbols prefixed with
3012 "standard__" specially; strip prefix and don't look in local symbols.
3013 Do not include out of scope renaming symbols in list of
3014 symbols returned.
3015 Add const to block parameter.
3016 Move check for non-local, non-global symbols earlier.
3017 Remove timing stuff.
3018 (ada_lookup_symbol): New interface.
3019 Find symtab as well.
3020 (ada_lookup_symbol_nonlocal): New function.
3021
3022 (is_name_suffix): Enhance suffix detection to recognize
3023 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3024 (is_dot_digits_suffix): New function.
3025 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3026
3027 (ada_add_block_symbols): New interface. Use obstack to return results
3028 in a vector of struct ada_symbol_infos. Add symtab argument.
3029 Use new interface to add_defn_to_vec.
3030 Remove calls to fill_in_ada_prototype.
3031 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3032
3033 (ada_finish_decode_line_1): Add const qualification to local to fix
3034 warning.
3035 Start looking in static block for functions to avoid attempts
3036 to search frame chain for up-level variables.
3037 Adapt to new ada_sals_for_line interface.
3038 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3039 Handle quoting of the function name inside the spec string.
3040 Skip prologue when funfirstline is set and update the
3041 function documentation to that effect.
3042
3043 (debug_print_lines, debug_print_block, debug_print_blocks,
3044 debug_print_symtab): Remove.
3045
3046 (ada_main_name): New function.
3047 (ada_exception_breakpoint_type): New function.
3048 (is_known_support_routine): New function.
3049 (ada_find_printable_frame): Renamed from find_printable_frame and made
3050 global.
3051 Remove level parameter.
3052 Use new interface to select_frame.
3053
3054 (begin_command): Remove.
3055 (ada_adjust_exception_stop): New function.
3056 (ada_print_exception_stop): New function.
3057 (exception_name_from_cond): New function.
3058 (ada_report_exception_break): Replace disabled code with
3059 conditionalization on GNAT_GDB.
3060 Get the exception name from the condition string.
3061 Remove and move functionality into new functions
3062 ada_print_exception_breakpoint_task and
3063 ada_print_exception_breakpoint_nontask.
3064 (error_breakpoint_runtime_sym_not_found): New function.
3065 (is_runtime_sym_defined): New function.
3066 (ada_breakpoint_rewrite): Uncomment suppressed code.
3067 Use symbolic error-message and runtime-symbol names.
3068 Surround runtime symbol names in quotes.
3069 Allow non-specific breakpoints on exceptions and assertions before
3070 program starts.
3071
3072 (ada_is_tagged_type): Add parameter.
3073 (ada_is_tag_type): New function.
3074 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3075 (ada_variant_discrim_type): Ditto.
3076 (value_tag_from_contents_and_address): New function.
3077 (type_from_tag): New function.
3078 (struct tag_args): New structure used to communicate with
3079 ada_tag_name_1.
3080 (ada_tag_name_1): New function.
3081 (ada_tag_name): New function.
3082
3083 (ada_scan_number): Update comment.
3084 (find_struct_field): New function.
3085 (ada_search_struct_field): Make static.
3086 (ada_value_struct_elt): New version that returns references when
3087 given pointers or references to structs.
3088 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3089 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3090 interface.
3091 (ada_value_ind): Use new ada_to_fixed_value interface.
3092 (ada_coerce_ref): Ditto.
3093 (field_offset): Remove.
3094
3095 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3096 (ada_find_renaming_symbol): New function.
3097 (ada_prefer_type): Prefer named types over unnamed ones.
3098 (variant_field_index): New function.
3099 (contains_variant_part): Removed: subsumed by variant_field_index.
3100 (ada_template_to_fixed_record_type): New function, mostly from
3101 template_to_fixed_record_type.
3102 (template_to_fixed_record_type):
3103 Do not scan the type fields beyond the last one; prevents a
3104 potential SEGV.
3105 Handle case where variant field is listed BEFORE discriminant it
3106 depends on.
3107 Fix calculation of record length when bit length is
3108 not evenly divisible by char length.
3109 Move code to ada_template_to_fixed_record_type and call it.
3110
3111 (template_to_static_fixed_type): Revise comment.
3112 Modify to work on ordinary record types as well as templates,
3113 so as to handle fields that use ___XVE or ___XVU encodings.
3114 (to_record_with_fixed_variant_part): Fill out comment.
3115 Initialize C++ stuff in right type.
3116 Allow case where DVAL is null.
3117 Handle case where variant field is not last.
3118 Fix typo concerning record length.
3119 (to_fixed_record_type): Decomment disabled code.
3120 (to_fixed_record_type): Use variant_field_index instead of
3121 contains_variant_part.
3122 (to_fixed_variant_branch_type): Ditto.
3123 (to_fixed_array_type): Decomment disabled code.
3124 (ada_to_fixed_type): Convert tagged types to the specific type.
3125 Deactivate the size-check for array types in order to avoid
3126 some false size alarms.
3127 (to_static_fixed_type): Decomment disabled code.
3128 Modify to call template_to_static_fixed_type
3129 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3130 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3131 Remove valaddr argument, as it is never really used.
3132 (ada_to_fixed_value): Change interface to act on single struct value*
3133 operand.
3134 (adjust_pc_past_prologue): New function.
3135 (ada_attribute_name): Modify to take enum exp_opcode argument.
3136
3137 (ada_enum_name): Recognize new homonym-distinguishing convention.
3138 Adjust local variable's type to remove compiler warning.
3139 Fix a small problem in the part that unqualifies the enumeration name.
3140 (ada_value_binop): New function.
3141 (ada_value_equal): New function.
3142
3143 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3144 Don't give error message when not doing normal evaluation
3145 and a tagged type doesn't seem to contain a structure member.
3146 Give error message for packed arrays.
3147 For indexing arrays, handle pointers to packed arrays correctly.
3148 Handle case of 'first and 'last attributes of bare integral type
3149 without encoded subtype info.
3150 Remove some unnecessary casts.
3151 Fix uninitialized value of type in computing 'first, 'last, or 'length
3152 of array object.
3153 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3154 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3155 calls.
3156 Attributes are now exp_opcode values.
3157 Correct treatment of 'modulus.
3158 Better error message for taking 'length of wrong kind of type;
3159 improve comment.
3160 Change EVAL_NORMAL to noside for consistency.
3161 Use ada_value_binop for DIV, MOD, REM.
3162 Make special case out of array of length 0, since an argument
3163 of 0 upsets some platforms' malloc.
3164 Use OP_STRING instead of OP_ARRAY.
3165 For slice, add check that we have an array type before extracting
3166 a slice out of it. Avoids a SEGV.
3167 When evaluating an array slice, if the array type is a reference to
3168 an aligner type, then replace the aligner type by the actual type.
3169 Decomment disabled code.
3170 Remove some dead code.
3171 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3172 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3173 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3174 and UNOP_MBR to UNOP_IN_RANGE.
3175 If an array type has a parallel ___XVE type, then use it.
3176 Turn arrays into pointers for lvalue arrays.
3177 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3178 bounds error and handle 0-length slices.
3179 Use lim_warning.
3180 When selecting fields, apply ada_to_fixed_value (because the fields
3181 might have ___XVU or ___XVE encodings even if not dynamic.)
3182 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3183 (ada_is_system_address_type): New function.
3184
3185 (get_var_value): Use new interface to ada_lookup_symbol_list.
3186 (get_int_var_value): New interface.
3187 (to_fixed_range_type): Allow unknown bound, with warning.
3188 (ada_is_modular_type): Decomment disabled code.
3189 (ADA_OPERATORS): New definition.
3190 (ada_operator_length): New function.
3191 (ada_expr_op_name): New function.
3192 (ada_forward_operator_length): New function.
3193 (ada_dump_subexp_body): New function.
3194 (ada_print_subexp): New function.
3195 (ada_exp_descriptor): New constant.
3196 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3197 (ada_language_defn): Add ada_exp_descriptor entry.
3198 Change ada_parse => parse.
3199 Add post-parser entry.
3200 Use ada-specific non-local symbol lookup.
3201 Don't use C-style arrays.
3202 String lower-bound is 1.
3203 Decomment disabled code.
3204 (parse): New function.
3205 New fields ada_translate_error_message, ada_lookup_symbol,
3206 ada_lookup_minimal_symbol.
3207
3208 * ada-lang.h: Update copyright dates.
3209 Replace the mangle/demangle terminology throughout by the
3210 more appropriate encode/decode one.
3211 Include breakpoint.h.
3212 Forward declare struct partial_symbol, struct block.
3213 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3214 (EXTRACT_ADDRESS): Remove.
3215 (EXTRACT_INT): Remove.
3216 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3217 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3218 (MAX_RENAMING_CHAIN_LENGTH): Define.
3219 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3220
3221 (enum task_states): Remove.
3222 ada_task_states: Remove.
3223 (fat_string): Remove.
3224 (struct entry_call): Remove.
3225 (struct task_fields): Remove.
3226 (struct task_entry): Remove.
3227
3228 (struct ada_symbol_info): Define.
3229 (enum ada_attribute): Remove.
3230 (enum ada_operator): Define.
3231
3232 (ada_get_field_index): Declare.
3233 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3234 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3235 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3236 (ada_lookup_symbol_list): New interface.
3237 (ada_decode_symbol): Declare.
3238 (ada_decode): Declare.
3239 (ada_lookup_symbol): New interface.
3240 (ada_update_initial_language): Declare.
3241 (ada_lookup_simple_minsym): Declare.
3242 (user_select_syms): New interface.
3243 (ada_sals_for_line): Declare.
3244 (ada_is_tagged_type): New interface.
3245 (ada_tag_name): Declare.
3246 (ada_lookup_struct_elt_type): Remove declaration.
3247 (ada_search_struct_field): Remove declaration.
3248 (ada_attribute_name): New interface.
3249 (ada_is_system_address_type): Declare.
3250 (ada_to_fixed_value): Remove declaration.
3251 (ada_template_to_fixed_record_type_1): Declare.
3252 (get_int_var_value): New interface.
3253 (ada_find_any_symbol): Declare.
3254 (ada_find_renaming_symbol): Declare.
3255 (ada_mangle): Rename to ada_encode.
3256 (ada_simple_renamed_entity): Remove const.
3257 (ada_main_name): Declare.
3258 (get_current_task): Rename to ada_get_current_task.
3259 (get_entry_number): Remove declaration.
3260 (ada_report_exception_break): Remove declaration.
3261 (ada_print_exception_breakpoint_nontask): Declare.
3262 (ada_print_exception_breakpoint_task): Declare.
3263 (ada_find_printable_frame): Declare.
3264
3265 * ada-lex.l: Update copyright notices.
3266 Use xmalloc and xfree instead of malloc and free.
3267 Use new interface to name_lookup.
3268 Use new interface to
3269 ada_mangle=>ada_encode.
3270 Redo handling of '$...' variable to parallel current treatment
3271 in c-exp.y.
3272 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3273 digit_to_int, strtoulst, processInt, processReal, processId,
3274 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3275 yywrap): Protoize.
3276
3277 (processInt): Use cast to remove harmless warning.
3278 (processReal): Modify to get rid of compiler warning on scan formats.
3279
3280 (processId): Replace xmalloc with obstack_alloc for name and remove
3281 call to ada_name_string_cleanup.
3282 Remove obsolete disabled code.
3283 (name_lookup): Ditto.
3284 New interface.
3285 Use obsavestring on temp_parse_space instead of savestring
3286 on name, and remove call to ada_name_string_cleanup.
3287 Free string returned from ada_simple_renamed_entity.
3288 Use new interface to ada_lookup_symbol_list.
3289 Decomment disabled code.
3290 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3291 not types.
3292 When a type name lookup succeeds as a result of
3293 lookup_primitive_typename, check for regular type entry that has not
3294 yet been read in.
3295 Limit length of chain of renamed symbols we are willing to follow.
3296 Do not break names beginning with "standard__" into segments.
3297 (block_lookup): Use new interface to ada_lookup_symbol_list.
3298
3299 * ada-typeprint.c: Update copyright notice.
3300 (demangled_type_name): Rename to decoded_type_name.
3301 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3302 (print_range_bound): Correct handling of negative
3303 bounds that make the index type looked unsigned under STABS.
3304 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3305 (print_range_type_named): Use the builtin int type if no type
3306 corresponding to the given type name could be found.
3307 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3308 Add some bullet-proofing.
3309 (print_variant_clauses): Allow for variant branches with ___XVU
3310 encodings that are not dynamic fields.
3311 Use new interface to ada_is_tagged_type.
3312 (print_record_type): Allow for fields with ___XVE encodings that
3313 are not dynamic fields.
3314 Use new interface to ada_is_tagged_type.
3315 (ada_print_type): ada_is_array_descriptor =>
3316 ada_is_array_descriptor_type.
3317
3318 * ada-valprint.c: Update copyright notice.
3319 Include gdb_string.h
3320 Include infcall.h
3321 (ui_memcpy): New function.
3322 (ada_print_floating): New function.
3323 (ada_print_str): Order arguments correctly.
3324 Correct handling of empty arrays and arrays of 0-length items.
3325 ada_is_array_descriptor => ada_is_array_descriptor_type
3326 Print values of type System.Address in hexadecimal format.
3327 Use ada_print_floating to print floating-point numbers in Ada format.
3328 Print class tag values with type names.
3329 No longer print the address of reference values. Avoids
3330 a potential confusion.
3331 (ada_value_print): Stop printing the object type for reference
3332 values, but preserve that behavior for access types. Avoids
3333 a potential confusion.
3334 Simplify one conditional expression, as the first part is now
3335 necessarily true.
3336 ada_is_array_descriptor => ada_is_array_descriptor_type
3337 Add check for arrays for null records, and print them by hand.
4c4b4cd2 3338
f65f91b5
JB
33392004-06-01 Jim Blandy <jimb@redhat.com>
3340
3341 * ppc-tdep.h: Delete unused 'regoff' member.
3342 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3343
d4687fa0
MC
33442004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3345
3346 Fix PR symtab/1661.
3347 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3348 (hpread_read_struct_type): Likewise.
3349
de169ec9
AC
33502004-06-01 Andrew Cagney <cagney@gnu.org>
3351
c6902d46
AC
3352 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3353 instead of xasprintf.
3354 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3355 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3356 (mi_cmd_data_list_register_names)
3357 (mi_cmd_data_list_changed_registers)
3358 (mi_cmd_data_list_register_values)
3359 (get_register, mi_cmd_data_write_register_values)
3360 (mi_cmd_data_write_register_values)
3361 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3362 (mi_cmd_target_download, mi_cmd_target_select)
3363 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3364 (mi_execute_cli_command, mi_execute_async_cli_command)
3365 (mi_execute_async_cli_command): Ditto.
3366 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3367 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3368
6085fc2d
AC
3369 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3370 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3371 error_last_message instead of mi_error_last_message.
3372 * mi/mi-main.c (mi_error_last_message): Delete function.
3373
de169ec9
AC
3374 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3375 "invalid number of columns" error. Delete redundant "out of
3376 memory" check.
3377
1fc7d519
MK
33782004-05-31 Mark Kettenis <kettenis@gnu.org>
3379
6cfb2041
MK
3380 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3381 (gregset_t, fpregset_t): Remove typedefs.
3382 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3383 (REG_OFFSET): Rename argument.
3384 (i386bsd_r_reg_offset): Rename from reg_offset.
3385 (REG_ADDR): Remove macro.
3386 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3387 functions.
3388 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3389 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3390 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3391 instead of supply_gregset.
3392 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3393 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3394 instead of fill_gregset.
3395 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3396
1fc7d519
MK
3397 * i386bsd-nat.c: Don't include "gregset.h".
3398 (supply_gregset, fill_gregset): Make static.
3399 (supply_fpregset, fill_fpregset): Remove.
3400 * Makefile.in (i386bsd-nat.o): Update dependencies.
3401
2c34abbe
MK
34022004-05-30 Mark Kettenis <kettenis@gnu.org>
3403
448724fb
MK
3404 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3405 "gdb_assert.h". Con't include "gregset.h".
3406 (fbsd_make_corefile_notes): Use regset-based core file support
3407 instead off fill_gregset and fill_fpregset.
3408 * Makefile.in (fbsd-proc.o): Update dependencies.
3409
5ca8ca7c
MK
3410 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3411 instructions.
3412 (m88k_frame_prev_register): Simplify code a bit.
3413
593adc23
MK
3414 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3415 (amd64_collect_fpregset): New function.
3416 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3417
8d1b517b
MK
3418 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3419
7fdafb5a
MK
3420 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3421 (i386_collect_gregset): New function.
3422 (i386_supply_fpregset): Adjust comment.
3423 (i386_collect_fpregset): New function.
3424 (i386_regset_from_core_section): Use i386_collect_gregset and
3425 i386_collect_fpregset.
3426
8693c419
MK
3427 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3428 handle VALUEP being null.
3429
2c34abbe
MK
3430 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3431
45d134d8
MK
34322004-05-29 Mark Kettenis <kettenis@gnu.org>
3433
1698f4e7
MK
3434 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3435
45d134d8
MK
3436 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3437 assembler in OpenBSD 3.5-current.
3438 (amd64obsd_sigcontext_addr): Likewise.
3439
691d145a
JB
34402004-05-28 Jim Blandy <jimb@redhat.com>
3441
3442 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3443 register set, so our regcache isn't declared "legacy" and our E500
3444 pseudoregister read and write functions aren't ignored.
3445 (rs6000_register_byte, rs6000_register_raw_size,
3446 rs6000_register_virtual_type, rs6000_register_convertible,
3447 rs6000_register_convert_to_virtual,
3448 rs6000_register_convert_to_raw): Deleted.
3449 (rs6000_register_type, rs6000_convert_register_p,
3450 rs6000_register_to_value, rs6000_value_to_register): New
3451 functions.
3452 (rs6000_gdbarch_init): Don't register
3453 gdbarch_deprecated_register_size,
3454 gdbarch_deprecated_register_bytes,
3455 gdbarch_deprecated_register_byte,
3456 gdbarch_deprecated_register_raw_size,
3457 gdbarch_deprecated_register_virtual_type,
3458 gdbarch_deprecated_register_convertible,
3459 gdbarch_deprecated_register_convert_to_virtual, or
3460 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3461 register gdbarch_register_type, gdbarch_convert_register_p,
3462 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3463
18ed0c4e
JB
34642004-05-26 Jim Blandy <jimb@redhat.com>
3465
3466 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3467 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3468 functions, updated to match the register numberings used in GCC.
3469 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3470 rs6000_dwarf2_reg_to_regnum as register number conversions
3471 functions for STABS and Dwarf2.
3472
779af9e3
RC
34732004-05-26 Randolph Chung <tausq@debian.org>
3474
3475 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3476 in header file.
3477
c23968a2
JB
34782004-05-25 Joel Brobecker <brobecker@gnat.com>
3479
3480 * NEWS: Document new "start" command.
3481
3a7d1c27
RC
34822004-05-25 Randolph Chung <tausq@debian.org>
3483
3484 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3485 hppa-linux.
3486
43613416
RC
34872004-05-25 Randolph Chung <tausq@debian.org>
3488
3489 * hppa-hpux-tdep.c (offsetof): Define.
3490 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3491 (hppa32_hpux_frame_base_before_sigtramp)
3492 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3493 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3494 (hppa64_hpux_frame_base_before_sigtramp)
3495 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3496 functions.
3497 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3498 (hppa_hpux_sigtramp_frame_unwind_cache)
3499 (hppa_hpux_sigtramp_frame_this_id)
3500 (hppa_hpux_sigtramp_frame_prev_register)
3501 (hppa_hpux_sigtramp_frame_unwind)
3502 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3503 (hppa_hpux_init_abi): Register sigtramp unwinder.
3504 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3505
6d1be3f1
RC
35062004-05-25 Randolph Chung <tausq@debian.org>
3507
3508 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3509 and multiple stack unwinds.
3510 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3511
97c34f65
AC
35122004-05-25 Andrew Cagney <cagney@gnu.org>
3513
3514 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3515 * symfile-mem.h: Delete file.
3516 * symfile-mem.c: Do not include "symfile-mem.h".
3517 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3518 "struct bfd_section". When an error do not bother returning NULL.
3519 (add_symbol_file_from_memory_command): Use "struct bfd" and
3520 "struct bfd_section".
3521 * Makefile.in (symfile_mem_h): Delete.
3522 (symfile-mem.o): Update dependencies.
3523
e23cbd82
NR
35242004-05-25 Nick Roberts <nickrob@gnu.org>
3525
3526 * gdb-mi.el: New file.
3527
20d2ca3e
AC
35282004-05-25 Andrew Cagney <cagney@gnu.org>
3529
3530 * inftarg.c: Include "observer.h".
3531 (child_attach, child_create_inferior): Notify inferior_created.
3532 * corelow.c: Include "observer.h".
3533 (core_open): Notify inferior_created.
3534 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3535
c27cda74
AC
35362004-05-25 Andrew Cagney <cagney@gnu.org>
3537
3538 * target.h (struct target_ops): Add from_tty to
3539 to_create_inferior.
3540 (target_create_inferior, find_default_create_inferior): Update.
3541 * infcmd.c (run_command): Update.
3542 * wince.c (child_create_inferior): Update.
3543 * win32-nat.c (child_create_inferior): Update.
3544 * uw-thread.c (uw_thread_create_inferior): Update.
3545 * thread-db.c (thread_db_create_inferior): Update.
3546 * target.c (debug_to_create_inferior)
3547 (find_default_create_inferior): Update.
3548 (maybe_kill_then_create_inferior): Update.
3549 * sol-thread.c (sol_thread_create_inferior): Update.
3550 * remote.c (extended_remote_async_create_inferior)
3551 (extended_remote_create_inferior): Update.
3552 * remote-vx.c (vx_create_inferior): Update.
3553 * remote-st.c (st2000_create_inferior): Update.
3554 * remote-sim.c (gdbsim_create_inferior): Update.
3555 * remote-sds.c (sds_create_inferior): Update.
3556 * remote-rdp.c (remote_rdp_create_inferior): Update.
3557 * remote-rdi.c (arm_rdi_create_inferior): Update.
3558 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3559 * remote-e7000.c (e7000_create_inferior): Update.
3560 * procfs.c (procfs_create_inferior): Update.
3561 * ocd.c (ocd_create_inferior): Update.
3562 * ocd.h (ocd_create_inferior): Update.
3563 * nto-procfs.c (procfs_create_inferior): Update.
3564 * monitor.c (monitor_create_inferior): Update.
3565 * lin-lwp.c (lin_lwp_create_inferior): Update.
3566 * inftarg.c (child_create_inferior): Update.
3567 * hpux-thread.c (hpux_thread_create_inferior): Update.
3568 * gnu-nat.c (gnu_create_inferior): Update.
3569
1db2a798
AC
35702004-05-25 Andrew Cagney <cagney@gnu.com>
3571
3572 * MAINTAINERS: Update e-mail address.
3573
007d08bb
RC
35742004-05-24 Randolph Chung <tausq@debian.org>
3575
3576 * thread.c (info_threads_command, thread_apply_all_command)
3577 (thread_apply_command, thread_command, do_captured_thread_select):
3578 Remove HPUXHPPA-specific code.
3579
69e7b95e
RC
35802004-05-24 Randolph Chung <tausq@debian.org>
3581
3582 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3583 unused symbols.
3584 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3585 references.
3586
a4d5f2e0
JB
35872004-05-24 Joel Brobecker <brobecker@gnat.com>
3588
3589 * infcmd.c (kill_if_already_running): New function, extracted
3590 from run_command().
3591 (run_command): Replace extracted code by call to
3592 kill_if_already_running().
3593 (start_command): New function.
3594 (_initialize_infcmd): Add "start" command.
3595
bf2ca189
MK
35962004-05-24 Mark Kettenis <kettenis@gnu.org>
3597
3598 Add OpenBSD/m88k support.
3599 * NEWS (New native configurations): Mention OpenBSD/m88k.
3600 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3601 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3602 * Makefile.in (m88k_tdep_h): New variable.
3603 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3604 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3605 * configure.host: Add m88*-*-openbsd*.
3606 * configure.tgt: Add m88*-*-openbsd*.
3607
80fadb11
JB
36082004-05-24 Jim Blandy <jimb@redhat.com>
3609
3610 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3611 to approve changes.
3612
19e2d14b
KB
36132004-05-24 Kevin Buettner <kevinb@redhat.com>
3614
3615 * symtab.c (fixup_section): Search section table when lookup by
3616 name fails.
3617
1b07b470
RC
36182004-05-24 Randolph Chung <tausq@debian.org>
3619
3620 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3621 be "small_struct".
3622
368702b1
MK
36232004-05-24 Mark Kettenis <kettenis@gnu.org>
3624
5df97fde
MK
3625 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3626 register number in regcache_raw_collect call.
3627 (m68kbsd_collect_fpregset): Likewise.
3628 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3629
368702b1
MK
3630 * regset.h (struct regset): Add back `regset' member.
3631
a770d4ec
MK
36322004-05-23 Mark Kettenis <kettenis@gnu.org>
3633
70f9f479
MK
3634 * configure.in: Check for td_pcb in `struct thread'.
3635 * configure, config.in: Regenerated.
3636
2e16d79e
MK
3637 * dpx2-nat.c: Remove file.
3638 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3639 (dpx2-nat.o): Remove dependencies.
3640
492cf391
MK
3641 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3642 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3643 (amd64obsd_supply_pcb): New function.
3644 (_initialize_amd64obsd_nat): Enable libkvm interface.
3645 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3646 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3647 (LOADLIBES): New variable.
3648
a770d4ec
MK
3649 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3650 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3651 (sparc32nbsd_supply_pcb): New function.
3652 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3653 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3654 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3655 (LOADLIBES): New variable.
3656
9ea75c57
MK
36572004-05-22 Mark Kettenis <kettenis@gnu.org>
3658
2e0c3539
MK
3659 * bsd-kvm.c, bsd-kvm.h: New files.
3660 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3661 "bsd-kvm.h".
3662 (i386fbsd_supply_pcb): New function.
3663 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3664 (i386fbsd-nat.o): Update dependencies.
3665 (bsd_kvm_h): New variable.
3666 (bsd-kvm.o): New dependency.
3667 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3668 (LOADLIBES): New variable.
3669
9ea75c57
MK
3670 * regset.c: Tweak comment.
3671 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3672 macro.
3673 * regset.h: Update copyright year.
3674 (struct regset): Remove `descr' member, add `gdbarch' member.
3675 (regset_alloc): Adjust prototype and comment.
3676 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3677 (i386_supply_fpregset): Likewise.
3678 (i386_regset_from_core_section): Update call to regset_alloc.
3679 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3680 REGSET->arch.
3681 (i386obsd_aout_regset_from_core_section): Update call to
3682 regset_alloc.
3683 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3684 REGSET->arch.
3685 (i386nbsd_aout_regset_from_core_section): Update call to
3686 regset_alloc.
3687 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3688 REGSET->arch.
3689 (amd64_regset_from_core_section): Update call to regset_alloc.
3690 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3691 REGSET->arch.
3692 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3693 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3694 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3695 (sparc32nbsd_init_abi): Update call to regset_alloc.
3696 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3697 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3698 (sparc64obsd_init_abi): Update call to regset_alloc.
3699 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3700 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3701 (sparc64nbsd_init_abi): Update call to regset_alloc.
3702 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3703 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3704 (sparc64fbsd_init_abi): Update call to regset_alloc.
3705
867e2dc5
JB
37062004-05-22 Jim Blandy <jimb@redhat.com>
3707
3708 * ppc-tdep.h (spe_register_p): New declaration.
3709 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3710 ppc_spefscr_regnum.
3711 * rs6000-tdep.c (spe_register_p): New function.
3712 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3713 spefscr.
3714 (rs6000_gdbarch_init): Initialize the new members of the tdep
3715 structure.
3716
617a4cba
JB
37172004-05-21 Jim Blandy <jimb@redhat.com>
3718
0397dee1
JB
3719 * ppc-linux-nat.c (fetch_register): Move code back to be next
3720 to the comment that describes it. (Moved code, instead of
3721 comment, for symmetry with store_register.)
3722
617a4cba
JB
3723 Allocate regset structures in the gdbarch's obstack, not using
3724 xmalloc.
3725 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3726 Add 'arch' argument. Allocate the regset on arch's obstack, not
3727 using xmalloc.
3728 * regset.h (regset_alloc): Update declaration.
3729 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3730 gdbarch argument.
3731 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3732 * i386-tdep.c (i386_regset_from_core_section): Same.
3733 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3734 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3735 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3736 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3737 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3738 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3739
9aa3914d
JB
37402004-05-21 Joel Brobecker <brobecker@gnat.com>
3741
3742 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3743
99c87dab
JB
37442004-05-21 Jim Blandy <jimb@redhat.com>
3745
3746 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3747 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3748
c2b6b4aa
JB
37492004-05-20 Jim Blandy <jimb@redhat.com>
3750
3751 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3752
144529d0
MK
37532004-05-20 Mark Kettenis <kettenis@gnu.org>
3754
3755 * regset.h: Make prototype const-correct.
3756 * regset.c (regset_xmalloc): Make const-correct.
3757
4725b721
PH
37582004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3759
3760 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3761 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3762 (symbol_search_name): Declare.
3763
3764 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3765 (iter_name_next_hashed): Ditto.
3766 (iter_name_next_linear): Ditto.
3767 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3768
3769 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3770 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3771 (symbol_search_name): New function.
3772
3773 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3774
3775 * minsyms.c (build_minimal_symbol_hash_tables): Change
3776 test for adding to demangled hash table to check for difference
3777 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3778
be07a590
JB
37792004-05-19 Jim Blandy <jimb@redhat.com>
3780
3781 Use a constructor function to create regset structures.
3782 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3783 (struct regset): Use supply_regset_ftype. Add new
3784 'collect_regset' member.
3785 (regset_xmalloc): New declaration.
3786 * regset.c: New file.
3787 * am64-tdep.c (amd64_regset_from_core_section): Use
3788 regset_xmalloc to construct regset structures.
3789 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3790 * i386-tdep.c (i386_regset_from_core_section): Same.
3791 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3792 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3793 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3794 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3795 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3796 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3797 * Makefile.in (COMMON_OBS): Add regset.o.
3798 (regset.o): New rule.
3799
604368f5
JB
38002004-05-19 Joel Brobecker <brobecker@gnat.com>
3801
3802 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3803 and pthread_cond_wait.c.
3804
82d69f8b
JB
38052004-05-18 Jim Blandy <jimb@redhat.com>
3806
3807 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3808 before the mach-specific switch, and then let the individual cases
3809 override the defaults, rather than leaving them uninitialized
3810 until the switch and then setting them in each case.
3811
5859efe5
RC
38122004-05-18 Randolph Chung <tausq@debian.org>
3813
3814 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3815 millicode functions.
3816
9ca80cf8
RC
38172004-05-18 Randolph Chung <tausq@debian.org>
3818
3819 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3820 references to dld_flags_buffer consistent.
3821
ed70ba00
RC
38222004-05-18 Randolph Chung <tausq@debian.org>
3823
3824 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3825 it for unwinding the stack.
3826
63100632
RC
38272004-05-18 Randolph Chung <tausq@debian.org>
3828
3829 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3830 Undefine these so we can overide them using gdbarch.
3831
090ccbb7
RC
38322004-05-18 Randolph Chung <tausq@debian.org>
3833
3834 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3835 handling for 64-bit HPUX (elf).
3836
594706e6
DJ
38372004-05-18 Daniel Jacobowitz <dan@debian.org>
3838
3839 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3840 constants.
3841 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3842 * ia64-tdep.c (examine_prologue): Likewise.
3843 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3844 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3845
e5483145
MK
38462004-05-18 Mark Kettenis <kettenis@gnu.org>
3847
3848 * vax-tdep.c (vax_return_value): Implement
3849 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3850
caed1a45
MK
38512004-05-17 Mark Kettenis <kettenis@gnu.org>
3852
3853 * vax-tdep.c (vax_return_value): Fix typo.
3854
3c0b7db2
AC
38552004-05-17 Andrew Cagney <cagney@redhat.com>
3856
5aae53e5
AC
3857 * MAINTAINERS: Mark Salter was also responsible for
3858 testsuite/config/
3859
3c0b7db2
AC
3860 * NEWS: Mention signal fixes.
3861
22b0923d
RC
38622004-05-17 Randolph Chung <tausq@debian.org>
3863
3864 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3865 check to see if we are unwinding an export stub. Export stubs clobber
3866 the %rp in the call path and stores the original rp in a stack slot.
3867
22f2b2f3
JB
38682004-05-17 Jim Blandy <jimb@redhat.com>
3869
3870 * MAINTAINERS: Update address for J.T. Conklin.
3871
cea96d64
RC
38722004-05-17 Randolph Chung <tausq@debian.org>
3873
3874 * hppa-tdep.c: Remove superfluous #include's.
3875 * Makefile.in (hppa-tdep.o): Update dependencies.
3876
f08f6a4a
RC
38772004-05-17 Randolph Chung <tausq@debian.org>
3878
3879 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3880 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3881 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3882 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3883 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3884 Remove static function declarations.
3885
51da707a
MK
38862004-05-17 Mark Kettenis <kettenis@gnu.org>
3887
caed1a45
MK
3888 * alphabsd-nat.c: Update copyright year.
3889 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3890
c0c2b0db
MK
3891 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3892 and M68K_A2_REGNUM.
3893
51da707a
MK
3894 * m68k-tdep.c (m68k_svr4_return_value): Implement
3895 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3896
8d027a04
MK
38972004-05-16 Mark Kettenis <kettenis@gnu.org>
3898
3899 * sol-thread.c Update copyright year. Fix various coding
3900 standards violations. Tweak a few comments.
3901 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3902 Delete prototypes.
3903
0d99fdb9
RC
39042004-05-15 Randolph Chung <tausq@debian.org>
3905
3906 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3907 as pointer instead of array reference since HPUX compiler does
3908 not accept unsized array arguments.
3909 * somsolib.c (dld_flags_buffer): Use constant array size.
3910
f7e3843a
MK
39112004-05-15 Mark Kettenis <kettenis@gnu.org>
3912
0fe85704
MK
3913 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3914 offset with decimal offset.
3915 (amd64obsd_sigcontext_addr): Return correct address for entire
3916 signal trampoline.
3917
a54f9a00
MK
3918 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3919 instead of get_frame_base.
3920
feae6502
MK
3921 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3922 (fill_gregset): Use regcache_raw_collect.
3923
0382d099
MK
3924 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3925 ppcobsd-tdep.c.
3926
f7e3843a
MK
3927 * config/sparc/tm-nbsd64.h: Remove file.
3928 * config/tm-sunos.h: Remove file.
3929
773df3e5
JB
39302004-05-15 Joel Brobecker <brobecker@gnat.com>
3931
3932 * rs6000-tdep.c (store_param_on_stack_p): New function,
3933 an improved version of some code extracted from skip_prologue().
3934 (skip_prologue): Use store_param_on_stack_p() to detect
3935 instructions saving a parameter on the stack. Detect when r0
3936 is used to save a parameter.
3937 Do not mark "li rx, SIMM" instructions as part of the prologue,
3938 unless the following instruction is also part of the prologue.
3939
95918acb
AC
39402004-05-14 Andrew Cagney <cagney@redhat.com>
3941
06f32659
AC
3942 * infrun.c (handle_inferior_event): Simplify
3943 STEP_OVER_UNDEBUGGABLE.
3944
95918acb
AC
3945 * infrun.c (handle_step_into_function): Delete function.
3946 (handle_inferior_event): Inline calls to
3947 handle_step_into_function.
3948
40711ff1 39492004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
3950
3951 * rs6000-nat.c: Fix a comment.
3952
02f60eae
JB
39532004-05-12 David Anderson <davea@sgi.com>
3954
3955 Committed by Jim Blandy <jimb@redhat.com>:
3956 * regcache.c (struct regcache_descr): fix comment spelling.
3957
552e377b
JB
39582004-05-13 J. Brobecker <brobecker@gnat.com>
3959
3960 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3961 Fixes a link link failure.
3962
349766b2
JB
39632004-05-13 J. Brobecker <brobecker@gnat.com>
3964
3965 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3966 error that was causing the build to fail.
3967
0d4d5484
JB
39682004-05-13 J. Brobecker <brobecker@gnat.com>
3969
3970 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3971 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3972
0b30808c
AC
39732004-05-13 Andrew Cagney <cagney@redhat.com>
3974
3975 * infrun.c (handle_inferior_event): Check for
3976 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3977 calls. Update comments.
3978
cdf2c5f5
JB
39792004-05-13 Jim Blandy <jimb@redhat.com>
3980
063715bf
JB
3981 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3982 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3983 (store_regs_user_thread, store_regs_kernel_thread): Use
3984 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3985 * ppc-linux-nat.c (fill_gregset): Same.
3986 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3987 (ppc_linux_sigtramp_cache): Same.
3988 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
3989 (ppcnbsd_sigtramp_cache_init): Same.
3990 * rs6000-nat.c (fetch_core_registers): Same.
3991 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3992 (rs6000_frame_cache): Same.
3993
cdf2c5f5
JB
3994 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
3995 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
3996 of assuming that the gprs are numbered starting with zero.
3997 * ppc-linux-nat.c (fill_gregset): Same.
3998 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
3999 * ppcnbsd-nat.c (getregs_supplies): Same.
4000 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4001 * rs6000-nat.c (fetch_core_registers): Same.
4002 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4003
450bd37b
MS
40042004-05-07 Michael Snyder <msnyder@redhat.com>
4005
4006 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4007 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4008
4a72a2a6
AC
40092004-05-13 Andrew Cagney <cagney@redhat.com>
4010
4011 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4012
8edfa926
BM
40132004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4014
4015 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4016 base_address for shared libraries.
4017
723e0e3d
BM
40182004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4019
4020 * MAINTAINERS (write after approval): Add myself.
4021
00d4360e
UW
40222004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4023
4024 * breakpoint.c (bpstat_stop_status): Add new argument
4025 STOPPED_BY_WATCHPOINT. Use it instead of testing
4026 target_stopped_data_address agaist 0 to check whether
4027 or not we stopped due to a hardware watchpoint.
4028 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4029 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4030 with new argument.
4031
ec76baa5
JB
40322004-05-12 Jim Blandy <jimb@redhat.com>
4033
4034 * configure.in: When checking whether we should use the -bbigtoc
4035 option, don't forget to restore the original value of LDFLAGS.
4036 * configure: Regenerated.
4037
f2c9ca08
AC
40382004-05-12 Andrew Cagney <cagney@redhat.com>
4039
4040 * thread.c (load_infrun_state): Delete step_sp.
4041 * infrun.c (context_switch): Ditto.
4042 * inferior.h (step_sp): Ditto.
4043 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4044 * gdbthread.h (struct thread_info, save_infrun_state)
4045 (restore_infrun_state): Ditto.
4046
090ddb2a
UW
40472004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4048
4049 * MAINTAINERS (write after approval): Add myself.
4050
8aad930b
AC
40512004-05-12 Andrew Cagney <cagney@redhat.com>
4052
4053 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4054 eliminate reference to step_sp.
4055 (struct execution_control_state, init_execution_control_state)
4056 (handle_inferior_event, keep_going): Delete update_step_sp and
4057 step_sp.
4058 * infcmd.c (step_sp): Note that variable is unused.
4059
922d5ae0
AC
40602004-05-11 Andrew Cagney <cagney@redhat.com>
4061
4062 * infrun.c (step_over_function): Delete function.
4063 (handle_step_into_function): Use insert_step_resume_breakpoint.
4064 (insert_step_resume_breakpoint): Fix assertion.
4065
017c5ca5
NR
40662004-05-11 Nick Roberts <nickrob@gnu.org>
4067
4068 * utils.c (defaulted_query): Just use the normal query input type
4069 when printing the annotations.
4070
42edda50
AC
40712004-05-11 Andrew Cagney <cagney@redhat.com>
4072
4073 * infrun.c (handle_inferior_event): Simplify code handling
4074 step-into or return-from a signal trampoline.
4075
d28b44a7
AC
40762004-05-11 Andrew Cagney <cagney@redhat.com>
4077
4078 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4079 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4080
383f0f5b
JB
40812004-05-10 Jim Blandy <jimb@redhat.com>
4082
d0b57c3a
JB
4083 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4084 with a call to internal_error.
4085
383f0f5b
JB
4086 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4087 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4088 processor variant lacks those registers.
4089 (ppc_floating_point_unit_p): Change description to make it clear
4090 that this returns info about the ISA, not the ABI.
4091 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4092 return true or false by checking tdep->ppc_fp0_regnum and
4093 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4094 arch/mach switching done in rs6000_gdbarch_init; it's better to
4095 keep that logic there, and just check the results here.
4096 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4097 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4098 floating-point registers.
4099 (ppc_supply_fpregset, ppc_collect_fpregset)
4100 (rs6000_push_dummy_call, rs6000_extract_return_value)
4101 (rs6000_store_return_value): Assert that we have floating-point
4102 registers.
4103 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4104 (rs6000_frame_cache): Don't note the locations at which
4105 floating-point registers were saved if we have no fprs.
4106 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4107 registers.
4108 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4109 (store_regs_user_thread, store_regs_kernel_thread): Only call
4110 supply_fprs / fill_fprs if we actually have floating-point
4111 registers.
4112 (special_register_p): Check ppc_fpscr_regnum before matching
4113 against it.
4114 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4115 supply / collect fpscr if we don't have it.
4116 * ppc-bdm.c: #include "gdb_assert.h".
4117 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4118 have floating-point registers, since I can't test this code on
4119 FP-free systems to adapt it.
4120 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4121 fpscr and floating point register numbers if they don't exist.
4122 (fetch_register): Assert that we have floating-point registers
4123 before we reach the code that handles them.
4124 (store_register): Same. And use tdep instead of calling
4125 gdbarch_tdep again.
4126 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4127 don't have them.
4128 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4129 fprs and fpscr if we don't have them.
4130 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4131 don't have them.
4132 * ppcnbsd-nat.c: #include "gdb_assert.h".
4133 (getfpregs_supplies): Assert that we have floating-point registers.
4134 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4135 * ppcobsd-tdep.c: #include "gdb_assert.h".
4136 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4137 have floating-point registers.
4138 * rs6000-nat.c (regmap): Don't match against the fpscr and
4139 floating point register numbers if they don't exist.
4140 (fetch_inferior_registers, store_inferior_registers,
4141 fetch_core_registers): Only fetch / store / supply the
4142 floating-point registers and the fpscr if we have them.
4143 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4144 (ppcobsd-tdep.o): Update dependencies.
4145
15960608
AC
41462004-05-10 Andrew Cagney <cagney@redhat.com>
4147
4148 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4149 (context_switch): Do not switch through_sigtramp_breakpoint.
4150 * gdbthread.h (save_infrun_state, load_infrun_state)
4151 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4152 and structure member.
4153 * thread.c (load_infrun_state, save_infrun_state): Update.
4154
5ab5aa0f
MK
41552004-05-10 Mark Kettenis <kettenis@gnu.org>
4156
4157 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4158
da78b0e7
DJ
41592004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4160
4161 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4162 throughout.
4163 * aclocal.m4: Regenerate.
4164
cca0d3b0
NW
41652004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4166
4167 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4168
d303a6c7
AC
41692004-05-10 Andrew Cagney <cagney@redhat.com>
4170
4171 * infrun.c (check_sigtramp2): Delete function.
4172 (handle_inferior_event): When single stepping, and taking a
4173 signal, set a breakpoint at the signal return address. Delete
4174 redundant calls to check_sigtramp2.
4175 (insert_step_resume_breakpoint): New function.
4176 (through_sigtramp_breakpoint, handle_inferior_event)
4177 (follow_exec, wait_for_inferior, fetch_inferior_event)
4178 (currently_stepping, keep_going): Delete most uses of
4179 through_sigtramp_breakpoint, not that it should be deleted.
4180 (delete_breakpoint_current_contents): Delete function.
4181
03f4cc20
RC
41822004-05-10 Randolph Chung <tausq@debian.org>
4183
4184 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4185 target.
4186 * config/pa/tm-linux.h: New file.
4187
37fc812e
DJ
41882004-05-10 Daniel Jacobowitz <drow@mvista.com>
4189
4190 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4191 of prefixes. Don't print the prefix twice in the CLI.
4192
26c0b942
JB
41932004-05-10 Jim Blandy <jimb@redhat.com>
4194
2e56e9c1
JB
4195 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4196 collect all the gprs.
4197
26c0b942
JB
4198 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4199 loop collecting gprs.
4200
dc497459
AC
42012004-05-09 Andrew Cagney <cagney@redhat.com>
4202
4203 * remote-vx.c (net_step): Delete step-range code.
4204 * remote.c (remote_resume, init_all_packet_configs)
4205 (set_remote_protocol_E_packet_cmd)
4206 (show_remote_protocol_E_packet_cmd)
4207 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4208 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4209 (show_remote_protocol_e_packet_cmd): Ditto.
4210
0543f387
MK
42112004-05-09 Mark Kettenis <kettenis@gnu.org>
4212
c481d1ca
MK
4213 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4214
f626a069
MK
4215 * hppa-tdep.h: Update copyright year.
4216 (struct trad_frame_saved_reg): Add opaque declaration.
4217
6fa57a7d
MK
4218 * amd64-tdep.c (amd64_return_value): Implement
4219 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4220
e47577ab
MK
4221 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4222 (m68k_value_to_register): New functions.
4223 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4224 value_to_register.
4225
31db7b6c
MK
4226 * defs.h (enum return_value_convention): Add
4227 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4228 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4229 * infcmd.c (legacy_return_value): New function.
4230 (print_return_value): Rwerite to implement
4231 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4232 * values.c (using_struct_return): Check for inequality to
4233 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4234 RETURN_VALUE_STRUCT_CONVENTION.
4235 * i386-tdep.c (i386_return_value): Implement
4236 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4237
0543f387
MK
4238 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4239 include "symtab.h", "opcode/vax.h" and "inferior.h".
4240 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4241 to read_memory_unsigned_integer.
4242 (vax_gdbarch_init): Reorder.
4243 (_initialize_vax_tdep): Spell out prototype.
4244 * Makefile.in (vax-tdep.o): Update dependencies.
4245
0c93b7b6
AC
42462004-05-08 Andrew Cagney <cagney@redhat.com>
4247
e6b55ae2
AC
4248 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4249 * target.c (target_detach, target_disconnect): Ditto.
4250
1ac839b8
AC
4251 * infcall.c (call_function_by_hand): When no
4252 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4253 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4254 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4255 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4256 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4257
28954179
AC
4258 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4259 * gdbarch.h, gdbarch.c: Re-generate.
4260 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4261 deprecated_fix_call_dummy.
4262 * v850-tdep.c (v850_gdbarch_init): Ditto.
4263 * infcall.c (call_function_by_hand): Do not call
4264 DEPRECATED_FIX_CALL_DUMMY.
4265
434b87dd
AC
4266 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4267 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4268 * gdbarch.h, gdbarch.c: Re-generate.
4269 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4270 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4271 deprecated_sizeof_call_dummy_words.
4272 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4274 * v850-tdep.c (v850_gdbarch_init): Ditto.
4275 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4276 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4277 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4278 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4279 * arch-utils.h (legacy_call_dummy_words)
4280 (legacy_sizeof_call_dummy_words): Delete declarations.
4281 * arch-utils.c (legacy_call_dummy_words)
4282 (legacy_sizeof_call_dummy_words): Delete variables.
4283
58d28df8
AC
4284 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4285 * gdbarch.h, gdbarch.c: Re-generate.
4286 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4287 * infcall.c (call_function_by_hand): Eliminate call to
4288 DEPRECATED_PUSH_DUMMY_FRAME.
4289 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4290 push_dummy_frame.
4291 (ns32k_push_dummy_frame): Delete function.
4292
e4a2df64
AC
4293 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4294 deprecated_call_dummy_breakpoint_offset or
4295 deprecated_call_dummy_start_offset.
4296 * dummy-frame.c, arm-tdep.c: Update comments.
4297 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4298 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4299 * gdbarch.h, gdbarch.c: Re-generate.
4300
d3712828
AC
4301 * infcall.c (legacy_push_dummy_code): Delete function.
4302 (push_dummy_code): Delete call.
4303
7a882905
AC
4304 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4305 * gdbarch.h, gdbarch.c: Re-generate.
4306 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4307 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4308 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4309 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4310
0ec5872b
AC
4311 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4312 (struct frame_info): Delete opaque declaration.
4313 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4314 * frame.c (get_frame_type): Delete call.
4315
0c93b7b6
AC
4316 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4317 pc_in_call_dummy.
4318 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4319 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4320
75536971
MK
43212004-05-08 Mark Kettenis <kettenis@gnu.org>
4322
527ca6bb
MK
4323 * alphanbsd-tdep.c: Include "gdb_string.h".
4324 * armnbsd-tdep.c: Update copyright year.
4325 Include "gdb_string.h".
4326 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4327 dependencies.
4328
d39fdc61
MK
4329 * delta68-nat.c: Remove file.
4330 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4331 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4332 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4333 (delta68-nat.o): Remove dependency.
4334
75536971
MK
4335 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4336 function.
4337 (m68k_gdbarch_init): Don't set
4338 deprecated_frameless_function_invocation.
4339
f4ca1d1f
RC
43402004-05-07 Randolph Chung <tausq@debian.org>
4341
4342 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4343 read_memory_nobpt for code reading when doing frame unwinding.
4344 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4345
2f0e8c7a
RC
43462004-05-07 Randolph Chung <tausq@debian.org>
4347
4348 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4349 instead of sp, handle sigaltstack case.
4350 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4351 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4352 signal handler and not that of the caller.
4353 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4354 hppa_linux_sigtramp_find_sigcontext.
4355
959464ff
RC
43562004-05-07 Randolph Chung <tausq@debian.org>
4357
4358 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4359 hppa-linux-nat.c.
4360 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4361 * hppa-linux-nat.c (fetch_register, store_register): Define.
4362 (fetch_inferior_registers, store_inferior_registers): Define.
4363 (supply_gregset): Add comment and clean up some unneeded code.
4364 (fill_gregset): Add comment and fix so that it saves registers in
4365 the right place in the gregset.
4366 (fill_fpregset): Fix buffer overrun problem.
4367 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4368
0da28f8a
RC
43692004-05-07 Randolph Chung <tausq@debian.org>
4370
4371 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4372 do common handling of the pcoqt register.
4373 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4374 to use helper function.
4375 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4376 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4377 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4378 generic fallback unwinder when all else fails.
4379 (hppa_gdbarch_init): Add fallback sniffer.
4380 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4381 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4382 to use helper function.
4383
b9ec757a
JB
43842004-05-08 Joel Brobecker <brobecker@gnat.com>
4385
4386 * config/djgpp/fnchange.lst: Add translation rules for
4387 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4388
756e95f1
MK
43892004-05-08 Mark Kettenis <kettenis@gnu.org>
4390
4391 * frame.c (get_prev_frame_1): Work around GCC bug.
4392 * frame.h: Add comment about GCC bug.
4393
2b4855ab
AC
43942004-05-07 Andrew Cagney <cagney@redhat.com>
4395
4396 * observer.c: Include "commands.h" and "gdbcmd.h".
4397 (observer_debug, _initialize_observer): Add the
4398 command "set/show debug observer".
4399 * observer.sh: When observer debugging, log notify calls.
4400 * Makefile.in (observer.o): Update dependencies.
4401
ba3e8e46
JM
44022004-05-07 Jason Molenda (jmolenda@apple.com)
4403
4404 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4405
16796152
JB
44062004-05-07 Jim Blandy <jimb@redhat.com>
4407
daf6dc85
JB
4408 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4409 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4410 to recognize gpr regnums, instead of assuming that
4411 tdep->ppc_fp0_regnum marks the end of the general-purpose
4412 registers.
4413
16796152
JB
4414 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4415 the given architecture has floating-point registers.
4416
c69b8bfc
AC
44172004-05-07 Andrew Cagney <cagney@redhat.com>
4418
4419 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4420 macro defined to 1.
4421 * gdbarch.h, gdbarch.c: Re-generate.
4422 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4423 deprecated_use_generic_dummy_frames.
4424
7243600a
BF
44252004-05-07 Brian Ford <ford@vss.fsi.com>
4426
4427 * NEWS: Mention Cygwin DWARF 2 support.
4428
73c1e0a1
AC
44292004-05-07 Andrew Cagney <cagney@redhat.com>
4430
4431 * objfiles.h (struct entry_info): Delete unused fields
4432 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4433 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4434 * mipsread.c (mipscoff_symfile_read): Update.
4435 * mdebugread.c (parse_partial_symbols): Update.
4436 * dwarfread.c (read_file_scope): Update.
4437 * dwarf2read.c (read_file_scope): Update.
4438 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4439 * coffread.c (complete_symtab): Update.
4440
1d3056ac
MK
44412004-05-07 Mark Kettenis <kettenis@gnu.org>
4442
4443 * infcall.c (_initialize_infcall): Fix typo.
4444
15170568
AC
44452004-05-07 Andrew Cagney <cagney@redhat.com>
4446
4447 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4448 * command.h (add_setshow_zinteger_cmd): Declare.
4449
34f75cc1
RC
44502004-05-06 Randolph Chung <tausq@debian.org>
4451
4452 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4453 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4454 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4455 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4456 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4457 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4458 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4459 definitions ...
4460 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4461 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4462 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4463 (hppa64_hpux_frame_find_saved_regs_in_sig)
4464 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4465 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4466 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4467 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4468 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4469 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4470 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4471 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4472 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4473 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4474 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4475 (hppa32_register_type, hppa_cannot_store_register)
4476 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4477 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4478 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4479 * pa64solib.c (pa64_solib_have_load_event)
4480 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4481 (pa64_solib_unloaded_library_pathname): Likewise.
4482 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4483 (som_solib_library_pathname): Likewise.
4484
0a5e7efe
JI
44852004-05-05 Jim Ingham <jingham@apple.com>
4486
4487 * breakpoint.c (create_breakpoints): Copy the ignore count and
4488 thread id over from the pended breakpoint to the actual
4489 breakpoint.
4490
10a4b113
AC
44912004-05-05 Andrew Cagney <cagney@redhat.com>
4492
4493 * gdbarch.sh (PARM_BOUNDARY): Delete.
4494 gdbarch.h, gdbarch.c: Re-generate.
4495 * valops.c (PARM_BOUNDARY): Delete macro.
4496 (value_push): Delete PARM_BOUNDARY code.
4497 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4498
366f009f
JB
44992004-05-04 Jim Blandy <jimb@redhat.com>
4500
32b99774
JB
4501 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4502 Don't assume that the gprs, fprs, and UISA sprs are
4503 contiguous, start at register number zero, and end with fpscr.
4504 Instead, use the numbers from the tdep structure.
4505
366f009f
JB
4506 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4507 should no longer be used in code specific to the RS6000 and its
4508 derivatives.
4509 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4510 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4511 tdep->ppc_fp0_regnum.
4512 (ppc_supply_fpregset, ppc_collect_fpregset)
4513 (rs6000_push_dummy_call, rs6000_extract_return_value)
4514 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4515 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4516 FP0_REGNUM.
4517 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4518 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4519 Same.
4520 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4521 bdm_ppc_store_registers): Same.
4522 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4523 (store_register, fill_fpregset): Same.
4524 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4525 (ppc_linux_supply_fpregset): Same.
4526 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4527 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4528 Same.
4529 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4530 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4531 ppc64_sysv_abi_return_value): Same.
4532 * rs6000-nat.c (regmap, fetch_inferior_registers)
4533 (store_inferior_registers, fetch_core_registers): Same.
4534
827f338d
MK
45352004-05-01 Mark Kettenis <kettenis@gnu.org>
4536
4537 * m68knbsd-nat.c: Remove file.
4538 * m68knbsd-tdep.c: Remove file.
4539 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4540 dependencies.
4541 * configure.host: Add m68k-*-netbsdelf*.
4542 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4543 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4544 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4545 (XM_FILE): Remove.
4546 * config/m68k/nbsdelf.mh: New file.
4547 * config/m68k/nbsd.mt: New file.
4548 * config/m68k/nbsdaout.mt: Remove file.
4549 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4550 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4551 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4552 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4553 (use_struct_convention): Remove prototype.
4554 (USE_STRUCT_CONVENTION): Remove define.
4555 * config/m68k/xm-nbsd.h: Remove file.
4556
66894781
MS
45572004-05-04 Michael Snyder <msnyder@redhat.com>
4558
4559 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4560 reg_struct_return method (as gcc usually does for cross targets).
4561
f0f63663
AC
45622004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4563
4564 Committed by Andrew Cagney.
4565 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4566 alignment padding when accessing ucontext struct members.
4567
edf61169
JB
45682004-05-04 Jim Blandy <jimb@redhat.com>
4569
8bf659e8
JB
4570 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4571 'ppc_gplast_regnum' member.
4572 (ppc_num_gprs): New enum constant.
4573 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4574 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4575 * rs6000-nat.c (regmap, fetch_inferior_registers,
4576 store_inferior_registers): Same.
4577 * rs6000-tdep.c (e500_pseudo_register_read)
4578 (e500_pseudo_register_write): Same.
4579 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4580
b967e06f
JB
4581 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4582 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4583 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4584 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4585 FPLAST_REGNUM.
4586 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4587 Same.
4588 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4589 * rs6000-nat.c (regmap, fetch_inferior_registers)
4590 (store_inferior_registers): Same.
4591
edf61169
JB
4592 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4593 with FPLAST_REGNUM.
4594
58a9656e
JB
45952004-05-03 Joel Brobecker <brobecker@gnat.com>
4596
4597 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4598 failure detected by recent versions of GCC.
4599 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4600 to be consistent with the usage in dwarf2_create_include_psymtab.
4601
dc305454
MS
46022004-05-03 Michael Snyder <msnyder@redhat.com>
4603
4604 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4605 (heuristic_proc_start): Whitespace cleanup.
4606
29972665
MK
46072004-05-04 Mark Kettenis <kettenis@gnu.org>
4608
6b57680d
MK
4609 * sun3-nat.c: Remove file.
4610 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4611 dependencies.
4612 (ALLDEPFILES): Remove sun3-nat.c.
4613 (sun3-nat.o): Remove dependencies.
4614
29972665
MK
4615 * i386-interix-nat.c, i386-interix-tdep.c,
4616 config/i386/nm-interix.h, config/i386/interix.mh,
4617 config/i386/interix.mt: Remove files.
4618 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4619 dependencies.
4620
f595cb19
MK
46212004-05-03 Mark Kettenis <kettenis@gnu.org>
4622
4623 * m68k-tdep.h (struct gdbarch_tdep): Add member
4624 struct_value_regnum.
4625 (m68k_svr4_init_abi): New prototype.
4626 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4627 different calling conventions.
4628 (m68k_extract_return_value): Remove code dealing with single-field
4629 structs.
4630 (m68k_store_return_value): Remove code dealing with single-field
4631 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4632 (m68k_extract_struct_value_address): Remove function.
4633 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4634 (m68k_reg_struct_return_p, m68k_return_value)
4635 (m68k_svr4_return_value): New functions.
4636 (m68k_use_struct_convention): Remove function.
4637 (m68k_push_dummy_call): Use new struct_value_regnum member of
4638 `struct gdbarch_tdep' instead of hardcoded register number to
4639 store STRUCT_ADDR.
4640 (m68k_svr4_init_abi): New function.
4641 (m68k_gdbarch_init): Don't set extract_return_value,
4642 store_return_values, deprecated_extract_struct_value_address and
4643 use_struct_convention. Set return_value instead. Initialize new
4644 struct_value_regnum member of `struct gdbarch_tdep'.
4645 * m68klinux-tdep.c: Update copyright year.
4646 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4647 (m68k_linux_extract_struct_value_address): Remove function.
4648 (m68k_linux_init_abi): Don't set extract_return_value,
4649 store_return_values, deprecated_extract_struct_value_address and
4650 use_struct_convention. Call m68k_svr4_init_abi but override the
4651 new struct_value_regnum member of `struct gdbarch_tdep'.
4652 * Makefile.in (m68k-tdep.o): Update dependencies.
4653
aaa75496
JB
46542004-05-03 J. Brobecker <brobecker@gnat.com>
4655
4656 * dwarf2read.c (line_header): Add new included_p field in
4657 field file_names.
4658 (partial_die_info): New field has_stmt_list. New field line_offset.
4659 (dwarf2_create_include_psymtab): New function.
4660 (dwarf2_build_include_psymtabs): New function.
4661 (add_file_name): Add forward declaration. Initialize new field.
4662 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4663 to be able to determine the list of files included by the
4664 given unit, and build their associated psymtabs.
4665 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4666 files as well.
4667 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4668 (read_file_scope): Update call to dwarf_decode_lines.
4669 (read_partial_die): Handle DW_AT_stmt_list attributes.
4670
c848556f
MC
46712004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4672
4673 Unfix PR gdb/1626.
4674 * configure.in: Revert special case for osf5.*.
4675 * configure: Regenerate.
4676
eb4556d7
JB
46772004-05-02 Jim Blandy <jimb@redhat.com>
4678
4679 Move the symbol-file-from-memory functions into their own file.
4680 * symfile-mem.c, symfile-mem.h: New files.
4681 * symfile.c (symbol_file_add_from_bfd): New function.
4682 (symbol_file_add): Call symbol_file_add_from_bfd.
4683 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4684 Moved to symfile-mem.c.
4685 (_initialize_symfile): Move definition of
4686 add-symbol-file-from-memory command to symfile-mem.c.
4687 * symfile.h (symbol_file_add_from_bfd): New declaration.
4688 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4689 * config/powerpc/linux.mt (TDEPFILES): Same.
4690 * Makefile.in (SFILES): Add symfile-mem.c.
4691 (symfile_mem_h): New variable.
4692 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4693 (symfile-mem.o): New rule.
4694
80bb239e
AC
46952004-05-01 Andrew Cagney <cagney@redhat.com>
4696
7789d0fa
AC
4697 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4698 frame_find_by_id instead of frame_relative_level.
4699 (do_enable_breakpoint): Ditto.
4700 * thread.c: Update copyright.
4701 (info_threads_command): Ditto, simplify.
4702
80bb239e
AC
4703 * frame.c (deprecated_generic_get_saved_register): Delete
4704 function, moved to "xstormy16-tdep.c".
4705 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4706 deprecated_generic_get_saved_register from "frame.c".
4707 (xstormy16_frame_saved_register): Call
4708 xstormy16_get_saved_register.
4709 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4710 static.
4711 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4712 * frame.h (deprecated_generic_get_saved_register): Delete.
4713
b2a871dd
MC
47142004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4715
4716 * dwarfread.c: Update documentation on the state of dwarf-1.
4717
0e100dab
AC
47182004-05-01 Andrew Cagney <cagney@redhat.com>
4719
acd8056e
AC
4720 * stack.c (select_frame_command): Delete call to
4721 frame_relative_level.
4722 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4723 Delete #if0 code.
4724 (frame_info): Do not print FRAMELESS.
4725 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4726 (catch_info): Delete #if0 code.
4727
0e100dab
AC
4728 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4729 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4730 of frame_relative_level.
4731 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4732 to SENTINEL_FRAME.
4733 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4734 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4735 frame_relative_level.
4736
55699d59
AC
4737 * frame.h (deprecated_set_frame_type): Delete declaration.
4738 * frame.c (deprecated_set_frame_type): Delete function, update
4739 comments.
4740
fcf70625
AC
4741 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4742 * gdbarch.h, gdbarch.c: Re-generate.
4743 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4744 (shnbsd_pc_in_sigtramp): Delete.
4745 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4746 pc_in_sigtramp.
4747 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4748 pc_in_sigtramp.
4749 * frame.h: Update comments.
4750 * ppc-linux-tdep.c: Update comments.
4751 * breakpoint.c (bpstat_what): Update comments.
4752
ac5eccb7
AC
4753 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4754 m68klinux-tdep.o's dependencies, were previously added to
4755 m68klinux-nat.o.
4756
f2524b93
AC
4757 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4758 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4759 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4760 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4761 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4762
17e20bce
AC
4763 * Makefile.in (m68klinux-nat.o): Update dependencies.
4764 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4765 (m68k_linux_sigtramp_frame_cache)
4766 (m68k_linux_sigtramp_frame_this_id)
4767 (m68k_linux_sigtramp_frame_prev_register)
4768 (m68k_linux_sigtramp_frame_unwind)
4769 (m68k_linux_sigtramp_frame_sniffer)
4770 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4771 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4772 names, use trad-frame.h.
4773 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4774 (struct m68k_sigtramp_info): Delete.
4775 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4776 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4777 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4778 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4779 "m68klinux-tdep.c".
4780
c8864fa2
AC
4781 * infrun.c (check_sigtramp2): Delete check for
4782 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4783
511dd2cd
MK
47842004-05-01 Mark Kettenis <kettenis@gnu.org>
4785
4786 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4787
8c6b0e06
AC
47882004-05-01 Andrew Cagney <cagney@redhat.com>
4789
9df0bb3f
AC
4790 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4791 (frv_linux_sigtramp_frame_cache)
4792 (frv_linux_sigtramp_frame_this_id)
4793 (frv_linux_sigtramp_frame_prev_register)
4794 (frv_linux_sigtramp_frame_unwind)
4795 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4796 include "linux" in function and variable names, directly call
4797 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4798 the latest trad-frame code.
4799 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4800 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4801 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4802 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4803 * frv-tdep.c (frv_sigtramp_frame_cache)
4804 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4805 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4806 frv-linux-tdep.c.
4807 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4808 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4809 (frv_set_sigcontext_reg_addr): Delete function.
4810
8c6b0e06
AC
4811 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4812 (DEPRECATED_SIGTRAMP_END): Delete.
4813 * gdbarch.h, gdbarch.c: Re-generate.
4814 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4815 * config/vax/tm-vaxbsd.h: Update copyright.
4816 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4817 (DEPRECATED_IN_SIGTRAMP): Define.
4818 * config/m68k/tm-nbsd.h: Update copyright.
4819 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4820 (DEPRECATED_IN_SIGTRAMP): Define.
4821
50ea7769
MK
48222004-05-01 Mark Kettenis <kettenis@gnu.org>
4823
03ac2a74
MK
4824 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4825 encondings. Fixes PR gdb/1628.
4826
50ea7769
MK
4827 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4828 DW_CFA_restore state without a matching DW_CFA_remember_state
4829 instead of aborting. Fixes PR backtrace/1589.
4830
9a5d7be1
JB
48312004-04-30 Joel Brobecker <brobecker@gnat.com>
4832
4833 * MAINTAINERS: Add self as AIX maintainer.
4834 Update my e-mail address in write-after-approval section.
4835
2593d1cd
AC
48362004-04-30 Andrew Cagney <cagney@redhat.com>
4837
ce12bbf9
AC
4838 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4839 (legacy_get_prev_frame): Ditto.
4840
36710c63
AC
4841 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4842 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4843 * mipsread.c (sigtramp_address): Delete extern variable.
4844 (mipscoff_new_init): Delete reference.
4845 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4846 (fixup_sigtramp): Delete function.
4847 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4848 (fixup_sigtramp): Delete declarations.
4849
2593d1cd
AC
4850 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4851 deprecated_pc_in_sigtramp.
4852 (ppcnbsd_pc_in_sigtramp): Delete function.
4853
2a25f91c
MK
48542004-05-01 Mark Kettenis <kettenis@gnu.org>
4855
4856 * config/m68k/nm-nbsd.h: Tweak comments.
4857 * config/m68k/nm-nbsdaout.h: Likewise.
4858
0b281939
AC
48592004-04-30 Andrew Cagney <cagney@redhat.com>
4860
4861 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4862 legacy_pc_in_sigtramp.
4863 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4864
8f2d3ea0
MK
48652004-05-01 Mark Kettenis <kettenis@gnu.org>
4866
4867 Add OpenBSD/m68k support.
4868 * NEWS (New native configurations): Mention OpenBSD/m68k.
4869 * m68kbsd-tdep.c: New file.
4870 * m68kbsd-nat.c: New file.
4871 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4872 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4873 * configure.host: Add m68k-*-openbsd.
4874 * configure.tgt: Add m68k-*-openbsd.
4875 * config/m68k/tm-obsd.h: New file.
4876 * config/m68k/obsd.mt: New file.
4877 * config/m68k/obsd.mh: New file.
4878 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4879 m68kbsd-tdep.c.
4880
c40f49a4
AC
48812004-04-30 Andrew Cagney <cagney@redhat.com>
4882
4883 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4884 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4885
e81554cd
MK
48862004-04-30 Mark Kettenis <kettenis@gnu.org>
4887
4888 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4889 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4890
d4dc1a91
BF
48912004-04-30 Brian Ford <ford@vss.fsi.com>
4892
4893 Revert 2004-04-16 change.
4894 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4895 (i386_coff_init_abi): Remove.
4896 * i386-tdep.h (i386_coff_init_abi): Remove.
4897 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4898
2f72f850
AC
48992004-04-30 Andrew Cagney <cagney@redhat.com>
4900
e492f9d6
AC
4901 * blockframe.c (find_pc_partial_function): Delete use of
4902 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4903 DEPRECATED_SIGTRAMP_END.
4904
7b7adad0
AC
4905 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4906 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4907 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4908 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4909 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4910
2f72f850
AC
4911 * defs.h (deprecated_inside_entry_file): Delete declaration.
4912 * blockframe.c (deprecated_inside_entry_file): Delete function.
4913 (legacy_frame_chain_valid): Delete call.
4914 * sh64-tdep.c (sh64_frame_chain): Delete call.
4915 * objfiles.h: Update comments.
4916 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4917 call.
4918 * frame.c (get_prev_frame): Delete call, update comments.
4919
283f90a7
BF
49202004-04-30 Brian Ford <ford@vss.fsi.com>
4921
4922 * MAINTAINERS (Write After Approval): Add myself.
4923
8ee56bcf
AC
49242004-04-30 Andrew Cagney <cagney@redhat.com>
4925
4926 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4927 * gdbarch.h, gdbarch.c: Re-generate.
4928 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4929 code.
4930
ee27e1b6
AC
49312004-04-30 Andrew Cagney <cagney@redhat.com>
4932
4933 * gdb-events.sh (selected_thread_changed)
4934 (selected_frame_level_changed, target_changed): Delete.
4935 * gdb-events.h, gdb-events.c: Re-generate.
4936 * valops.c (value_assign): Update.
4937 * stack.c (select_frame_command, up_silently_base)
4938 (down_silently_base): Update.
4939
d5ac5a39
AC
49402004-04-29 Andrew Cagney <cagney@redhat.com>
4941
4942 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4943 registers correctly.
4944 (print_gp_register_row, mips32_heuristic_proc_desc)
4945 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4946 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4947 references to mips_isa_regsize.
4948
ceae6e75
AC
49492004-04-29 Andrew Cagney <cagney@redhat.com>
4950
4951 * mips-tdep.c (struct gdbarch_tdep): Delete
4952 mips_fp_register_double.
4953 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4954 mips_abi_regsize.
4955 (mips_gdbarch_init): Do not set mips_fp_register_double.
4956 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4957
a587af0b
AC
49582004-04-29 Joel Brobecker <brobecker@gnat.com>
4959
4960 Committed by Andrew Cagney.
4961 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4962 function calls.
4963
13326b4e
AC
49642004-04-29 Andrew Cagney <cagney@redhat.com>
4965
4966 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4967 gdbarch, use mips_abi, update callers.
4968 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4969 mips_abi_regsize, update callers.
4970 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4971 mips_default_abi_regsize.
4972 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4973 mips_default_abi_regsize.
4974
711cc5cd
AC
49752004-04-29 Andrew Cagney <cagney@redhat.com>
4976
1b13c4f6
AC
4977 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4978 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4979 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4980 mips_default_abi_regsize.
4981 (mips_isa_regsize): Rename mips_regisze.
4982 * mipsnbsd-tdep.c: Update.
4983 * mips-linux-tdep.c: Update.
4984 * irix5-nat.c: Update.
4985 * mips-tdep.h (mips_isa_regsize): Update.
4986
711cc5cd
AC
4987 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
4988 Delete all disabled code.
4989 * gdb-events.h, gdb-events.c: Re-generate.
4990
e63bbc88
MK
49912004-04-19 Jerome Guitton <guitton@gnat.com>
4992 Mark Kettenis <kettenis@gnu.org>
4993
4994 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
4995 the function begins with a branch instruction.
4996
fd35795f
MK
49972004-04-29 Mark Kettenis <kettenis@gnu.org>
4998
4999 * i386-tdep.c: Fix spelling mistakes.
5000
c960c18f
AC
50012004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5002 Andrew Cagney <cagney@redhat.com>
5003
5004 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5005 <sys/proc.h>.
5006 * acconfig.h: Provide default _KMEMUSER value.
5007 * config.in, configure: Re-generate.
5008 * NEWS: Mention fix.
5009
50306a9d
RC
50102004-04-24 Randolph Chung <tausq@debian.org>
5011
5012 * configure.host (hppa*-*-linux*): New target.
5013 * configure.tgt (hppa*-*-linux*): Likewise.
5014 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5015 gdbarch_init_osabi() call earlier so that osabi-specific frame
5016 unwinders can be registered first.
5017 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5018 hppa-linux-nat.c.
5019 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5020 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5021 * config/pa/linux.mh: New file.
5022 * config/pa/linux.mt: New file.
5023 * config/pa/nm-linux.h: New file.
5024 * config/pa/xm-linux.h: New file.
5025 * hppa-linux-nat.c: New file.
5026 * hppa-linux-tdep.c: New file.
5027
2a6228ef
RC
50282004-04-28 Randolph Chung <tausq@debian.org>
5029
5030 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5031 return values.
5032 (hppa32_push_dummy_call): Fix small struct and floating point argument
5033 passing, and make sure the stack frame is properly aligned.
5034
82c10df6
AC
50352004-04-28 Andrew Cagney <cagney@redhat.com>
5036
d762c46a
AC
5037 * stack.c (print_stack_frame): Fix description.
5038
82c10df6
AC
5039 * NEWS: Mention gdb/gdbserver/configure execute permission
5040 changed. PR server/519.
5041
0faf0076
AC
50422004-04-28 Andrew Cagney <cagney@redhat.com>
5043
5044 * stack.c (print_stack_frame_stub): Delete declaration.
5045 (struct print_stack_frame_args, print_stack_frame)
5046 (print_frame_info, print_frame): Replace "source" with print what.
5047 Replace "print" with "print_level". Replace "args" with
5048 "print_args".
5049 * frame.h (show_and_print_stack_frame, print_stack_frame)
5050 (print_frame_info): Update declarations.
5051 * stack.c (select_and_print_frame, frame_command)
5052 (current_frame_command, up_command, down_command): Update calls -
5053 use get_selected_frame, pass "enum print_what" for source, do not
5054 call frame_relative_level.
5055 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5056 * remote-rdp.c (remote_rdp_open): Ditto.
5057 * remote-mips.c (common_open): Ditto.
5058 * remote-e7000.c (e7000_start_remote): Ditto.
5059 * ocd.c (ocd_start_remote): Ditto.
5060 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5061 * infrun.c (normal_stop): Ditto.
5062 * inflow.c (kill_command): Ditto.
5063 * infcmd.c (finish_command): Ditto.
5064 * corelow.c (core_open): Ditto.
5065 * tracepoint.c (finish_tfind_command): Ditto.
5066 * thread.c (info_threads_command, info_threads_command)
5067 (restore_current_thread, do_captured_thread_select): Ditto.
5068 * ada-tasks.c (task_command): Ditto.
5069
f4c5303c
OF
50702004-04-26 Orjan Friberg <orjanf@axis.com>
5071
5072 * frame.c: Include "observer.h".
5073 (frame_observer_target_changed): New function.
5074 (_initialize_frame): Attach target_changed observer.
5075 * regcache.c: Include "observer.h".
5076 (regcache_observer_target_changed): New function.
5077 (_initialize_regcache): Attach target_changed observer.
5078 * valops.c: Include "observer.h".
5079 (value_assign): Notify target_changed event when modifying register.
5080 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5081
7270d8f2
OF
50822004-04-26 Orjan Friberg <orjanf@axis.com>
5083
5084 From Paul Koning <pkoning@equallogic.com>:
5085 * breakpoint.c (free_valchain): New function.
5086 (insert_bp_location, delete_breakpoint): Use free_valchain.
5087 (remove_breakpoint): Do not remove the valchain.
5088 (bpstat_stop_status): If not stopped by watchpoint, skip
5089 watchpoints when generating stop status list.
5090 * infrun.c (handle_inferior_event): Make
5091 stepped_after_stopped_by_watchpoint a global variable.
5092 * remote.c (remote_stopped_data_address): Return watch data
5093 address rather than zero if stepped_after_stopped_by_watchpoint is
5094 set.
5095
02d62932
MC
50962004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5097
5098 Fix PR gdb/1626.
5099 * configure.in: Check for curses after termcap.
5100 On osf5.*, do not check for ncurses.
5101 * configure: Regenerate.
5102
3e9a183c
MK
51032004-04-25 Mark Kettenis <kettenis@gnu.org>
5104
c79ac407
MK
5105 * ppcobsd-nat.c: Include "ppc-tdep.h".
5106 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5107
3e9a183c
MK
5108 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5109 Fixes PR tdep/1623 and PR tdep/1624.
5110
38cc9c28
MC
51112004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5112
5113 * xmodem.h, xmodem.c: Remove files.
5114 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5115
7f07c5b6
RC
51162004-04-23 Randolph Chung <tausq@debian.org>
5117
5118 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5119 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5120 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5121 for handling stackless frames.
5122 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5123
9f7194c3
RC
51242004-04-23 Randolph Chung <tausq@debian.org>
5125
5126 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5127 starts at a pc before the frame is created.
5128
dcff6009
JB
51292004-04-23 Joel Brobecker <brobecker@gnat.com>
5130
5131 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5132
40711ff1 51332004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
5134
5135 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5136 use convert_typed_floating to get the appropriate format.
5137
abc485a1
RC
51382004-04-22 Randolph Chung <tausq@debian.org>
5139
5140 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5141 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5142 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5143 (hppa_sign_extend): Add prototype.
5144 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5145 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5146 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5147 hppa targets will also use these functions.
5148 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5149 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5150 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5151 (hppa_gdbarch_init): Remove gdbarch setting of
5152 skip_trampoline_code, in_solib_call_trampoline and
5153 in_solib_return_trampoline.
5154 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5155 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5156 hppa_in_solib_call_trampoline.
5157 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5158 Moved from hppa-tdep.c.
5159 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5160 in_solib_call_trampoline and in_solib_return_trampoline.
5161
369aa520
RC
51622004-04-22 Randolph Chung <tausq@debian.org>
5163
5164 * hppa-tdep.c (hppa_debug): New variable.
5165 (find_unwind_entry, hppa_frame_cache): Add debug output.
5166 (_initialize_hppa_tdep): Add command to set debug flag.
5167
476be15e
AC
51682004-04-22 Andrew Cagney <cagney@redhat.com>
5169
5170 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5171 "trad-frame.h".
5172 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5173 signal trampoline unwinder.
5174 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5175
d195bc9f
MK
51762004-04-22 Mark Kettenis <kettenis@gnu.org>
5177
5178 Add OpenBSD/powerpc support.
5179 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5180 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5181 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5182 (ppc_collect_fpregset): New prototypes.
5183 * ppcobsd-nat.c: New file.
5184 * ppcobsd-tdep.c: New file.
5185 * ppcobsd-tdep.h: New file.
5186 * rs6000-tdep.c: Include "regset.h".
5187 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5188 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5189 New functions.
5190 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5191 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5192 (rs6000-tdep.o): Update dependencies.
5193 * configure.host: Add powerpc-*-openbsd.
5194 * configure.tgt: Add powerpc-*-openbsd.
5195 * config/powerpc/obsd.mh: New file.
5196 * config/powerpc/nm-obsd.h: New file.
5197 * config/powerpc/obsd.mt: New file.
5198
6f14cc33
AC
51992004-04-22 Andrew Cagney <cagney@redhat.com>
5200
fcf29e5f
AC
5201 * frame.h (show_frame_info): Delete declaration.
5202
6f14cc33
AC
5203 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5204 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5205 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5206 * frv-tdep.c (frv_frame_this_id): Ditto.
5207 * avr-tdep.c (avr_frame_this_id): Ditto.
5208
e5786a5c
EZ
52092004-04-22 Elena Zannoni <ezannoni@redhat.com>
5210
5211 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5212
26e75e5c
JB
52132004-04-22 Jim Blandy <jimb@redhat.com>
5214
5215 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5216 register number zero.
5217
d8d65dd3
MS
52182004-04-21 Michael Snyder <msnyder@redhat.com>
5219
5220 * mips-tdep.c (heuristic_proc_start):
5221 Warning() already prefixes "Warning: ".
5222
9a4105ab
AC
52232004-04-21 Andrew Cagney <cagney@redhat.com>
5224
5225 * annotate.h (deprecated_annotate_starting_hook)
5226 (deprecated_annotate_stopped_hook)
5227 (deprecated_annotate_exited_hook)
5228 (deprecated_annotate_signal_hook)
5229 (deprecated_annotate_signalled_hook): Deprecate.
5230 * tracepoint.h (deprecated_create_tracepoint_hook)
5231 (deprecated_delete_tracepoint_hook)
5232 (deprecated_modify_tracepoint_hook)
5233 (deprecated_trace_find_hook)
5234 (deprecated_trace_start_stop_hook): Deprecate.
5235 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5236 * remote.h (deprecated_target_resume_hook)
5237 (deprecated_target_wait_loop_hook): Deprecate.
5238 * gdbcore.h (deprecated_exec_file_display_hook)
5239 (deprecated_file_changed_hook): Deprecate.
5240 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5241 * defs.h (deprecated_modify_breakpoint_hook)
5242 (deprecated_command_loop_hook, deprecated_show_load_progress)
5243 (deprecated_print_frame_info_listing_hook)
5244 (deprecated_query_hook, deprecated_warning_hook)
5245 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5246 (deprecated_delete_breakpoint_hook)
5247 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5248 (deprecated_readline_begin_hook, deprecated_readline_hook)
5249 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5250 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5251 (deprecated_context_hook, deprecated_target_wait_hook)
5252 (deprecated_attach_hook, deprecated_detach_hook)
5253 (deprecated_call_command_hook, deprecated_set_hook)
5254 (deprecated_error_hook, deprecated_error_begin_hook)
5255 (deprecated_ui_load_progress_hook): Deprecate.
5256 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5257 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5258 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5259 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5260 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5261 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5262 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5263 * annotate.c, aix-thread.c: Update.
5264
62cf13cc
AC
52652004-04-21 Andrew Cagney <cagney@redhat.com>
5266
b2e31a62
AC
5267 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5268 * vaxnbsd-tdep.c: Include "gdb_string.h".
5269
62cf13cc
AC
5270 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5271 (add_symbol_file_from_memory_command): #if 0 function body, call
5272 error instead.
5273
00e32a35
AC
52742004-04-21 Andrew Cagney <cagney@redhat.com>
5275
5276 * gdbcore.h: Update copyright.
5277 (deprecated_add_core_fns): Rename add_core_fns.
5278 * win32-nat.c (_initialize_core_win32): Update.
5279 * sun3-nat.c (_initialize_core_sun3): Update.
5280 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5281 * rs6000-nat.c (_initialize_core_rs6000): Update.
5282 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5283 * nto-tdep.c (_initialize_nto_tdep): Update.
5284 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5285 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5286 * mips-nat.c (_initialize_core_mips): Update.
5287 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5288 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5289 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5290 * lynx-nat.c (_initialize_core_lynx): Update.
5291 * irix5-nat.c (_initialize_core_irix5): Update.
5292 * i386-interix-nat.c (_initialize_core_interix): Update.
5293 * cris-tdep.c (_initialize_cris_tdep): Update.
5294 * corelow.c (deprecated_add_core_fns): Update.
5295 * core-regset.c (_initialize_core_regset): Update.
5296 * core-aout.c (_initialize_core_aout): Update.
5297 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5298 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5299 * alpha-nat.c (_initialize_core_alpha): Update.
5300
13c7b1ca
JB
53012004-04-21 Jim Blandy <jimb@redhat.com>
5302
5303 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5304
7b5a2f43
DJ
53052004-04-19 Daniel Jacobowitz <drow@mvista.com>
5306
5307 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5308 Delete.
5309 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5310 (read_attribute_value): Update calls to dwarf_alloc_block.
5311 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5312 dwarf2_tmp_obstack.
5313 (psymtab_to_symtab_1): Likewise. Clean up using
5314 free_stack_comp_unit.
5315 (add_to_cu_func_list): Use the comp_unit_obstack.
5316
05cf31d1
JB
53172004-04-19 Joel Brobecker <brobecker@gnat.com>
5318
5319 * dwarf2read.c (dwarf2_flag_true_p): New function.
5320 (die_is_declaration): Use the function above. Add some comments.
5321
adf93a2f
MK
53222004-04-19 Mark Kettenis <kettenis@gnu.org>
5323
5324 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5325 architecture when registering sparcnbsd_core_osabi_sniffer.
5326 Adjust comment.
5327
748894bf
MK
53282004-04-18 Mark Kettenis <kettenis@gnu.org>
5329
f622ad42
MK
5330 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5331 return value.
5332
c4fc7f1b
MK
5333 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5334 * i386-tdep.c: Correct register numbering scheme comments
5335 throughout.
5336 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5337 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5338 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5339 (i386_gdb_arch_init): Likewise.
5340
b4ead1bd
MK
5341 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5342 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5343 ppcnbsd-tdep.o.
5344
748894bf
MK
5345 * m68k-tdep.h: Tweak comments.
5346 * m68k-tdep.c: Tweak comment.
5347
fdd72f95
RC
53482004-04-17 Randolph Chung <tausq@debian.org>
5349
5350 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5351 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5352 (hppa_hpux_som_init_abi): Set is_elf to 0.
5353 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5354 * hppa-tdep.c (low_text_segment_address): Remove global.
5355 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5356 section offset to calculate segment address.
5357 (internalize_unwinds): Define low_text_segment_address as local and
5358 pass to record_text_segment_lowaddr for ELF targets.
5359 (hppa_gdbarch_init): Zero fill tdep structure.
5360 (hppa_dump_tdep): Print tdep structure.
5361 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5362
0f8d9d59
RC
53632004-04-17 Randolph Chung <tausq@debian.org>
5364
5365 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5366 (hppa_gdbarch_init): Set pseudo_register_read.
5367 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5368 * regcache.c (supply_register): Remove check for
5369 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5370
7c46b9fb
RC
53712004-04-17 Randolph Chung <tausq@debian.org>
5372
5373 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5374 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5375 (hpread_adjust_stack_address): Move to hpread.c.
5376 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5377 obj_private_struct): Move from tm-hppa.h.
5378 * hpread.c (hppa-tdep.h): Include.
5379 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5380 (hpread_read_function_type, hpread_read_doc_function_type)
5381 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5382 directly.
5383 * pa64solib.c (hppa-tdep.h): Include.
5384 * somsolib.c (hppa-tdep.h): Include.
5385 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5386 inferior_status): Remove unused forward declarations.
5387 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5388 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5389 obj_private_struct): Move to hppa-tdep.h.
5390 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5391
8d153463
RC
53922004-04-17 Randolph Chung <tausq@debian.org>
5393
5394 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5395 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5396 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5397 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5398 Remove forward declaration and make static.
5399 (hppa_reg_struct_has_addr): Remove.
5400
350c2e5b
JB
54012004-04-16 Joel Brobecker <brobecker@gnat.com>
5402
5403 * observer.sh: Move comments in sed command to first column.
5404
bbde78fa
JM
54052004-04-16 Jason Molenda (jmolenda@apple.com)
5406
5407 * frame.c: Minor typeo corrections in comments.
5408
e0270fd9
JB
54092004-04-16 Joel Brobecker <brobecker@gnat.com>
5410
5411 * observer.c (observer_test_first_notification_function): Update
5412 function profile.
5413 (observer_test_second_notification_function): Likewise.
5414 (observer_test_third_notification_function): Likewise.
5415
3d049254
MK
54162004-04-16 Mark Kettenis <kettenis@gnu.org>
5417
5418 From Brian Ford <ford@vss.fsi.com>:
5419 * i386-tdep.c (i386_coff_init_abi): New function.
5420 * i386-tdep.h (i386_coff_init_abi): New prototype.
5421 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5422 register number translation functions for DWARF and DWARF 2.
5423
7867684d
JB
54242004-04-16 Joel Brobecker <brobecker@gnat.com>
5425
5426 * dwarf2read.c: Back out my previous change, it was incorrect.
5427
72bf9492
DJ
54282004-04-16 Daniel Jacobowitz <drow@mvista.com>
5429
5430 * dwarf2read.c: Include "hashtab.h".
5431 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5432 has_namespace_info.
5433 (struct partial_die_info): Add comments. Use bitfields to reduce
5434 memory footprint. Add scope, scope_set, has_specification,
5435 spec_offset, die_parent, die_child, and die_sibling.
5436 (peek_die_abbrev): Add prototype.
5437 (partial_read_comp_unit_head): New function, broken out from
5438 dwarf2_build_psymtabs_hard.
5439 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5440 Use partial_read_comp_unit_head. Initialize the CU and
5441 comp_unit_obstack. Update calls to read_partial_die and
5442 scan_partial_symbols. Use free_stack_comp_unit and
5443 load_partial_dies.
5444 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5445 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5446 Update calls to helper functions. Remove NAMESPACE argument.
5447 Update comments.
5448 (partial_die_parent_scope, partial_die_full_name): New functions.
5449 (add_partial_symbol): Remove namespace argument. Update call to
5450 pdi_needs_namespace. Use partial_die_full_name. Handle
5451 DW_TAG_namespace. Check has_namespace_info flag.
5452 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5453 tag. Handle namespaces.
5454 (add_partial_namespace, add_partial_enumeration): Simplify.
5455 (guess_structure_name): New function, derived from
5456 add_partial_structure.
5457 (add_partial_structure): Remove.
5458 (determine_class_name): Update comment.
5459 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5460 (is_type_tag_for_partial, load_partial_dies): New functions.
5461 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5462 Record specifications instead of following them immediately.
5463 (find_partial_die_in_comp_unit, find_partial_die)
5464 (fixup_partial_die, free_stack_comp_unit)
5465 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5466 (partial_die_hash, partial_die_eq): New functions.
5467 * Makefile.in (hashtab_h): Define.
5468 (dwarf2read.o): Update dependencies.
5469 (observer_inc, observer_h): Move to the correct section.
5470
fdc860a3
JB
54712004-04-15 Joel Brobecker <brobecker@gnat.com>
5472
5473 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5474 (die_is_declaration): Use the function above. Add comment.
5475
dc718098
JB
54762004-04-15 Joel Brobecker <brobecker@gnat.com>
5477
5478 * dwarf2read.c (read_structure_scope): Identify stub types
5479 using die_is_declaration() only.
5480
8718a420
RM
54812004-04-15 Roland McGrath <roland@redhat.com>
5482
5483 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5484 argument instead of NAME.
5485 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5486 in call to symbol_file_add_with_addrs_or_offsets.
5487 (build_addr_info): New function, helper for ...
5488 (symbol_file_add_from_memory): New function.
5489 (add_symbol_file_from_memory_command): New function using that.
5490 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5491 (pre_add_symbol_hook): Add const to argument type.
5492 * symfile.h (symbol_file_add_from_memory): Declare it.
5493
8b910bab
MK
54942004-04-15 Mark Kettenis <kettenis@gnu.org>
5495
9f076e7a
MK
5496 * NEWS (New native configurations): Mention OpenBSD/vax.
5497 * configure.host: Add vax-*-openbsd*.
5498 * config/vax/obsd.mh: New file.
5499 * config/vax/nm-obsd.h: New file.
5500
8b910bab
MK
5501 * vax-tdep.c: Include "regset.h".
5502 (vax_supply_gregset): New function.
5503 (vax_gregset): New variable.
5504 (vax_regset_from_core_section): New function.
5505 (vax_gdbarch_init): Set regset_from_core_section.
5506 * Makefile.in (vax-tdep.o): Update dependencies.
5507
7a464420
AC
55082004-04-15 Andrew Cagney <cagney@redhat.com>
5509
5510 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5511 (observer_normal_stop_notification_stub)
5512 (observer_attach_normal_stop, observer_detach_normal_stop):
5513 Delete, replaced by #include "observer.inc".
5514 * infrun.c (normal_stop): Pass "stop_bpstat" to
5515 observer_notify_normal_stop.
5516 * Makefile.in (observer_inc): Define.
5517 (observer.o): Update dependencies.
5518 (observer.h, observer.inc): New rules.
5519 * observer.h: Delete file.
5520 * observer.sh: New file.
5521
e36ad527
MK
55222004-04-15 Mark Kettenis <kettenis@gnu.org>
5523
5524 * vax-tdep.c (vax_frame_cache): Fix typo.
5525
67b441e1
MK
55262004-04-14 Mark Kettenis <kettenis@gnu.org>
5527
6f606e1c
MK
5528 * NEWS (New native configurations): Mention NetBSD/vax.
5529 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5530 * config/vax/nbsdelf.mh: New file.
5531 * config/vax/nbsdaout.mh: New file.
5532 * config/vax/nm-nbsd.h: New file.
5533 * config/vax/nm-nbsdaout.h: New file.
5534
9c5519a5
MK
5535 * vaxnbsd-tdep.c: New file.
5536 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5537 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5538 * config/vax/nbsd.mt: New file.
5539 * config/vax/tm-nbsd.h: New file.
5540
4844a614
MK
5541 * Makefile.in (vaxbsd-nat.o): New dependency.
5542
67b441e1
MK
5543 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5544 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5545 struct_addr arguments. Don't push return value address.
5546 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5547 arguments to vax_store_arguments. Store return value address in
5548 R1.
5549 (vax_store_struct_return, vax_extract_return_value)
5550 (vax_store_return_value): Remove functions.
5551 (vax_return_value): New function.
5552 (vax_gdbarch_init): Set return value. Don't set
5553 deprecated_store_struct_return, deprecated_extract_struct_return
5554 and deprecated_store_return_value.
5555
6672f2ae
AS
55562004-04-14 Andreas Schwab <schwab@suse.de>
5557
5558 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5559 value buffer.
5560 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5561
7346c184
MK
55622004-04-14 Mark Kettenis <kettenis@gnu.org>
5563
5564 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5565 (vax_unwind_dummy_id): New functions.
5566 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5567 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5568 variables.
5569 (vax_fix_call_dummy): Remove function.
5570 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5571 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5572 call_dummy_location, deprecated_call_dummy_words,
5573 deprecated_sizeof_call_dummy_words,
5574 deprecated_call_dummy_breakpoint_offset,
5575 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5576 and deprecated_dummy_write_sp.
5577
58e23df4
DC
55782004-04-13 David Carlton <carlton@kealia.com>
5579
5580 * MAINTAINERS: Move myself to "paper trail" section.
5581
5e6b39ff
MK
55822004-04-12 Mark Kettenis <kettenis@gnu.org>
5583
7def7fef
MK
5584 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5585 "trad-frame.h".
5586 (vax_frame_init_saved_regs): Remove function.
5587 (vax_sigtramp_saved_pc): Remove function.
5588 (vax_frame_saved_pc): Remove function.
5589 (vax_frame_args_address): Remove function.
5590 (vax_frame_num_args): Rewrite.
5591 (vax_frame_chain): Remove function.
5592 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5593 VAX_FP_REGNUM.
5594 (vax_pop_frame): Likewise.
5595 (vax_saved_pc_after_call): Remove function.
5596 (struct vax_frame_cache): New structure.
5597 (vax_frame_cache): New function.
5598 (vax_frame_this_id): New function.
5599 (vax_frame_prev_register): New function.
5600 (vax_frame_unwind): New variable.
5601 (vax_frame_sniffer): New function.
5602 (vax_frame_base_address): New function.
5603 (vax_frame_args_address): New function.
5604 (vax_frame_base): New variable.
5605 (vax_unwind_pc): New function.
5606 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5607 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5608 deprecated_frame_chain, deprecated_frame_saved_pc,
5609 deprecated_frame_args_address and
5610 deprecated_frame_init_saved_regs.
5611 * Makefile.in (vax-tdep.o): Update dependencies.
5612
53284fc1
MK
5613 * vaxbsd-nat.c: New file.
5614
5e6b39ff
MK
5615 * vax-tdep.h: Update copyright year. Adjust comments.
5616 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5617 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5618 (vax_regnum): New enum. Replacing...
5619 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5620 (VAX_PS_REGNUM): ... these removed macros.
5621 * vax-tdep.c (vax_register_name): Remove prototype.
5622 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5623 (vax_register_byte, vax_register_raw_size,
5624 vax_register_virtual_size, vax_register_virtual_type): Remove
5625 functions.
5626 (vax_register_type): New function.
5627 (vax_breakpoint_from_pc): Reorganize.
5628 (vax_gdbarch_init): Set register_type. Don't set
5629 deprecated_register_size, deprecated_register_bytes,
5630 deprecated_register_byte, deprecated_register_raw_size,
5631 deprecated_max_register_raw_size,
5632 deprecated_register_virtual_size,
5633 deprecated_max_register_virtual_size and
5634 deprecated_register_virtual_type. Add comment on stack direction.
5635
e9c71e9f
MK
56362004-04-11 Mark Kettenis <kettenis@gnu.org>
5637
5638 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5639 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 5640 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 5641
d46f1176 56422004-04-10 Randolph Chung <tausq@debian.org>
8718a420 5643
d46f1176
RC
5644 * MAINTAINERS (write after approval): Add myself.
5645
a2a84a72
RC
56462004-04-07 Randolph Chung <tausq@debian.org>
5647
5648 * hppa-tdep.c (hppa_inner_than): Remove.
5649 (is_pa_2): Remove unused static variable.
8718a420 5650 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 5651
e85c3284
PH
56522004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5653
5654 * language.h (language_defn): Add new la_post_parser field.
5655 * parser-defs.h (null_post_parser): New declaration (default for
5656 la_post_parser).
8718a420 5657
e85c3284
PH
5658 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5659 insert call to that function.
5660 (parse_exp_in_context): New function, including code formerly in
8718a420 5661 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
5662 prefixification.
5663 (parse_expression_in_context): New exported function.
5664 (null_post_parser): New definition.
5665 * expression.h (parse_expression_in_context): Add declaration.
8718a420 5666
e85c3284
PH
5667 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5668 * c-lang.c (c_language_defn): Ditto.
5669 (cplus_language_defn): Ditto.
5670 (asm_language_defn): Ditto.
5671 (minimal_language_defn): Ditto.
5672 * f-lang.c (f_language_defn): Ditto.
5673 * jv-lang.c (java_language_defn): Ditto.
5674 * language.c (unknown_language_defn): Ditto.
5675 (auto_language_defn): Ditto.
5676 (local_language_defn): Ditto.
5677 * m2-lang.c (m2_language_defn): Ditto.
5678 * scm-lang.c (scm_language_defn): Ditto.
5679 * obj-lang.c (objc_language_defn): Ditto.
8718a420 5680
d9f8c85b
MK
56812004-04-10 Mark Kettenis <kettenis@gnu.org>
5682
fa34704a
MK
5683 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5684 (amd64nbsd_mcontext_addr): New function.
5685 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5686 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5687 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5688
403e1656
MK
5689 * corelow.c (core_xfer_partial): Fix coding standards violation.
5690 Add support for TARGET_OBJECT_WCOOKIE.
5691
a57e5a95
MK
5692 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5693 deprecated_pc_in_sigtramp.
5694 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5695 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5696 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5697 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5698 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5699 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5700 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5701
377d9ebd
MK
5702 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5703 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5704 Fix typo.
5705
f0ef85a5
MK
5706 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5707 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5708 (amd64_collect_fxsave): Likewise.
5709
d9f8c85b
MK
5710 * i386-sol2-tdep.c: Include "gdb_string.h".
5711 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5712 name.
5713 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5714
75f501b5
MK
57152004-04-10 Mark Kettenis <kettenis@gnu.org>
5716
5717 * i386-sol2-tdep.c: Include "solib-svr4.h".
5718 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5719 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5720 * config/i386/tm-i386sol2.h: Include :solib.h".
5721 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5722 solib-svr4.o and solib-legacy.o.
5723 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5724 solib-svr4.o.
5725
b31bc724
MK
57262004-04-09 Mark Kettenis <kettenis@gnu.org>
5727
18bbbd9e
MK
5728 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5729 whether a register is supplied by PTRACE_GETFPREGS.
5730 (store_inferior_registers): Likewise.
5731 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5732 whether a register is supplied by PT_GETFPREGS.
5733 (store_inferior_registers): Likewise.
5734
3c30bf1b
MK
5735 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5736 * config/i386/linux64.mt (TDEPFILES): Likewise.
5737
a4194092
MK
5738 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5739
911bc6ee
MK
5740 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5741 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5742 the program counter is in the range specified by `struct
5743 gdbarch_tdep'.
5744 * amd64-linux-tdep.c: Include "symtab.h".
5745 (amd64_linux_pc_in_sigtramp): Remove function.
5746 (amd64_linux_sigtramp_p): New function.
5747 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5748 deprecated_pc_in_sigtramp.
5749 * amd64nbsd-tdep.c: Include "symtab.h".
5750 (amd64nbsd_sigtramp_p): New function.
5751 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5752 deprecated_pc_in_sigtramp.
5753 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5754 few comments.
5755 (amd64obsd_pc_in_sigtramp): Remove function.
5756 (amd64obsd_sigtramp_p): New function.
5757 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5758 deprecated_pc_in_sigtramp.
5759 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5760 (i386bsd_pc_ins_sigtramp): Remove prototype.
5761 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5762 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5763 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5764 the program counter is in the range specified by `struct
5765 gdbarch_tdep'.
5766 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5767 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5768 (i386_go32_pc_in_sigtramp): Remove function.
5769 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5770 Initialize TDEP->sigtramp_p.
5771 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5772 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5773 deprecated_pc_in_sigtramp.
5774 * i386-linux-tdep.c: Adjust comments.
5775 (i386_linux_pc_in_sigtramp): Remove function.
5776 (i386_linux_sigtramp_p): New function.
5777 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5778 deprecated_pc_in_sigtramp.
5779 * i386-nto-tdep.c: Update copyright year.
5780 (i386nto_pc_in_sigtramp): Remove function.
5781 (i386nto_sigtramp_p): New function.
5782 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5783 SP_REGNUM.
5784 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5785 deprecated_pc_in_sigtramp.
5786 * i386-sol2-tdep.c: Update copyright year.
5787 (i386_sol2_pc_in_sigtramp): Remove function.
5788 (i386_sol2_sigtramp_p): New function.
5789 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5790 deprecated_pc_in_sigtramp.
5791 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5792 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5793 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5794 deprecated_sigtramp_start and deprecated_sigtramp_end.
5795 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5796 (i386nbsd_pc_in_sigtramp): Remove function.
5797 (i386nbsd_sigtramp_p): New function.
5798 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5799 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5800 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5801 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5802 (i386obsd_pc_in_sigtramp): Remove function.
5803 (i386obsd_sigtramp_p): New function.
5804 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5805 functions.
5806 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5807 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5808 TDEP->sigtramp_p.
5809 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5810 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5811 dependencies.
5812
e083e6ec
MK
5813 * config/i386/i386aout.mt: Remove file.
5814
bd153b94
MK
5815 * configure.tgt: Remove i[34567]86-*-go32*,
5816 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5817 and i[34567]86-*-isc*. Set gdb_target to i386 for
5818 i[34567]86-*-netware* and i[34567]86-*-*.
5819 * config/i386/i386.mt: New file.
5820 * config/i386/embed.mt: Remove file.
5821 * config/i386/go32.mt: Remove file.
5822 * config/i386/i386nw.mt: Remove file.
5823 * config/i386/i386v.mt: Remove file.
5824 * config/i386/tm-go32.h: Remove file.
5825
4a1bcc8c
MK
5826 * tui/tui-hooks.c: Include "readline/readline.h" after
5827 "gdb_curses.h" instead of before.
5828 * tui/tui-io.c: Likewise.
5829
f9a79064
MK
5830 * tui/tui.c: Fix typo in comment.
5831
b31bc724
MK
5832 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5833
f83f82bc
AC
58342004-04-08 Andrew Cagney <cagney@redhat.com>
5835
5836 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5837 (deprecated_exception_support_initialized): Declare.
8718a420 5838 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
5839 (initialize_hp_cxx_exception_support)
5840 (child_enable_exception_callback): Update.
5841 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5842 (deprecated_exception_support_initialized): Rename
5843 deprecated_exception_catchpoints_are_fragile and
5844 deprecated_exception_support_initialized.
5845 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5846
5847 * symtab.c (deprecated_hp_som_som_object_present): Rename
5848 hp_som_som_object_present.
5849 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5850 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5851 Update. Delete extern declaration.
5852 * valops.c (hp_som_som_object_present): Ditto.
8718a420 5853 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
5854 (parse_nested_classes_for_hpacc): Ditto.
5855 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 5856 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
5857 (initialize_hp_cxx_exception_support): Ditto.
5858 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 5859 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 5860 (cp_print_class_method): Ditto.
8718a420 5861 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
5862 (c_type_print_base): Ditto.
5863 * c-exp.y (hp_som_som_object_present): Ditto.
5864
fb2be677
AC
58652004-04-08 Andrew Cagney <cagney@redhat.com>
5866
5867 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5868 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5869 (frame_unwind_find_by_frame): Re-implement the unwind code so
5870 that it can both prepend and append sniffers. Replace
5871 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5872 * tramp-frame.c (tramp_frame_append): Use
5873 frame_unwind_prepend_unwinder.
5874 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5875 frame_unwind_register_unwinder.
5876 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5877 tramp_frame_append.
5878 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 5879 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
5880 (mips_linux_init_abi): Update.
5881
67faf007
KB
58822004-04-08 Kevin Buettner <kevinb@redhat.com>
5883
5884 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5885 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5886 file support.
5887
8973ff21
KB
58882004-04-07 Kevin Buettner <kevinb@redhat.com>
5889
5890 * ia64-tdep.c (elf.h): Don't include.
5891 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5892
4a0e2f88
JM
58932004-04-07 Jason Molenda (jmolenda@apple.com)
5894
5895 * frame.h: Typeo corrections in comments.
5896
9872ad24
JB
58972004-04-07 Jim Blandy <jimb@redhat.com>
5898
5899 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5900 %esp and %ebp
5901
70b216c8
MK
59022004-04-07 Mark Kettenis <kettenis@gnu.org>
5903
11d5789c
MK
5904 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5905 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5906 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5907 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5908 and solib-legacy.o.
5909 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5910 solib-svr4.o.
5911 * config/sparc/tm-sol2.h: Update copyright year. Include
5912 "solib.h".
5913
70b216c8
MK
5914 * sparc-sol2-tdep.c: Update copyright year. Include
5915 "solib-svr4.h".
5916 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5917 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5918 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 5919 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
5920 dependencies.
5921
6339dc9e
AC
59222004-04-06 Andrew Cagney <cagney@redhat.com>
5923
5924 * infttrace.c: Include "infttrace.h".
5925 * infttrace.h: Include "target.h".
5926 * Makefile.in (infttrace_h): Update.
5927 (infttrace.o): Update.
8718a420 5928
93449403
AC
59292004-04-06 Andrew Cagney <cagney@redhat.com>
5930
6d518969
AC
5931 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5932 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5933 move extern declarations from here ...
5934 * infttrace.h: ... to here.
5935 * Makefile.in (hppah-nat.o): Update dependencies.
5936
85f4f2d8
AC
5937 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5938 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 5939 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
5940 (hppa_breakpoint_from_pc): Delete.
5941
93449403
AC
5942 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5943
71456ec6
AC
59442004-04-05 Andrew Cagney <cagney@redhat.com>
5945
5946 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5947 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5948 <sys/file.h>.
8718a420 5949
4c02c60c
AC
59502004-04-06 Randolph Chung <tausq@debian.org>
5951
5952 Committed by Andrew Cagney (mechanical change).
5953 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5954 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5955 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5956 child_enable_exception_callback, current_ex_event,
5957 null_symtab_and_line, child_get_current_exception_event,
5958 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5959 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5960 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5961 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5962 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5963 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5964 Move hpux-specific definitions ...
5965 * hppa-hpux-tdep.c: ... to here.
5966
3a515653
AC
59672004-04-05 Andrew Cagney <cagney@redhat.com>
5968
5969 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5970 skip_prologue_using_sal.
5971
c1730d02
AC
59722004-04-05 Andrew Cagney <cagney@redhat.com>
5973
5974 * config/i386/tm-i386.h: Delete file.
5975 * config/i386/tm-vxworks.h: Update copyright, do not include
5976 "tm-i386.h".
5977 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5978 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5979 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5980 * config/i386/ncr3000.mt (TM_FILE): Delete.
5981 * config/i386/interix.mt (TM_FILE): Delete.
5982 * config/i386/i386v.mt (TM_FILE): Delete.
5983 * config/i386/i386nw.mt (TM_FILE): Delete.
5984 * config/i386/i386gnu.mt (TM_FILE): Delete.
5985 * config/i386/i386aout.mt (TM_FILE): Delete.
5986 * config/i386/embed.mt (TM_FILE): Delete.
5987
8b67aa36
KB
59882004-04-05 Kevin Buettner <kevinb@redhat.com>
5989
5990 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
5991 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
5992 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
5993 (accg7_regnum): New constants.
5994 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
5995 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
5996 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
5997 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
5998 for accg registers.
5999 (frv_register_sim_regno): Update spr_map[].
6000
3c7012f5
AC
60012004-04-04 Andrew Cagney <cagney@redhat.com>
6002
6003 * config/mips/xm-riscos.h: Delete.
6004 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6005 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6006 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6007 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6008 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6009 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6010 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6011 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6012 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6013 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6014 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6015 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6016 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6017 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6018 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6019 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6020 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6021 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6022 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6023 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6024 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6025 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6026 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6027 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6028 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6029 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 6030
3c7012f5
AC
6031 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6032 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6033 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6034 * configure.host: Remove m680[01]0-sun-sunos3*,
6035 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6036 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6037 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6038 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6039 mips-*-riscos*.
6040 * NEWS: Mention removed systems.
6041
99d16a21
AC
60422004-04-04 Andrew Cagney <cagney@redhat.com>
6043
6044 GDB 6.1 release created from 6.1 branch.
6045
6cdf9d98
AC
60462004-04-04 Andrew Cagney <cagney@redhat.com>
6047
98d346c3
AC
6048 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6049 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6050 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6051
6cdf9d98
AC
6052 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6053 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6054 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6055
859a326d
JB
60562004-04-03 Jim Blandy <jimb@redhat.com>
6057
6058 * MAINTAINERS: Chris Faylor has changed employers; add him to
6059 "paper trail" section, and update his E-mail address.
6060
b87178c3
AC
60612004-04-03 Andrew Cagney <cagney@redhat.com>
6062
4ea2acf0
AC
6063 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6064 generic dummy frames.
6065 * dummy-frame.c: Update copyright.
6066 (dummy_frame_sniffer): Delete check for generic dummy frames.
6067
d0bd2d18 6068 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 6069 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
6070 (REG_PARM_STACK_SPACE): Delete.
6071 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6072 Inline reference to REG_PARM_STACK_SPACE.
6073
b87178c3
AC
6074 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6075 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6076 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6077 (FRAME_BASE_BEFORE_SIGTRAMP)
6078 (hppa32_hpux_frame_base_before_sigtramp)
6079 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6080 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6081 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6082 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6083 (FRAME_BASE_BEFORE_SIGTRAMP)
6084 (hppa64_hpux_frame_base_before_sigtramp)
6085 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6086
43e2e1a0
AC
60872004-04-03 Andrew Cagney <cagney@redhat.com>
6088
6089 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6090
ddc135a4
AC
60912004-04-02 Andrew Cagney <cagney@redhat.com>
6092
6093 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6094 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6095 * dummy-frame.h: Delete out-of-date comments.
6096 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6097 * gdbarch.h, gdbarch.c: Re-generate.
6098
d15bfd3a 60992004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 6100
d15bfd3a
AC
6101 Committed by Andrew Cagney <cagney@redhat.com>.
6102 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6103 into account an instruction saving a register if we have already
6104 seen an earlier instruction saving that same register.
6105
f04ceafa
AC
61062004-04-02 Andrew Cagney <cagney@redhat.com>
6107
08be3abd
AC
6108 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6109 * gdbarch.h, gdbarch.c: Re-generate.
6110 * frame.c (legacy_get_prev_frame): Delete references to
6111 DEPRECATED_INIT_FRAME_PC_FIRST.
6112
f04ceafa
AC
6113 * infrun.c (pc_in_sigtramp): Delete function.
6114 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6115 get_frame_type.
6116
08e69816
AC
61172004-04-02 Andrew Cagney <cagney@redhat.com>
6118
6119 * infrun.c (handle_step_into_function): Delete code conditional on
6120 legacy_frame_p.
6121 (handle_inferior_event, step_over_function): Ditto.
6122
adb54772
AC
61232004-04-02 Andrew Cagney <cagney@redhat.com>
6124
6125 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6126 "previous frame inner to this frame" test.
6127
304396fb
AC
61282004-04-02 Andrew Cagney <cagney@redhat.com>
6129
6130 * frame.c (safe_frame_unwind_memory): New function.
6131 * frame.h (safe_frame_unwind_memory): Declare. Update description
6132 of /safe_/ methods.
6133 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6134 "next_frame". Use safe_frame_unwind_memory.
6135 (tramp_frame_sniffer): Update call to tramp_frame_start.
6136
6502dd73
DJ
61372004-04-01 Daniel Jacobowitz <drow@mvista.com>
6138
6139 * dwarf2read.c (dwarf2_objfile_data_key): New.
6140 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6141 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6142 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6143 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6144 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6145 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6146 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6147 Remove variables.
6148 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6149 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6150 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6151 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6152 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6153 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6154 Remove macros.
6155 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6156 data.
6157 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6158 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6159 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6160 (read_partial_die, read_full_die, read_indirect_string)
6161 (dwarf_decode_line_header, dwarf_decode_macros)
6162 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6163 Update uses of removed variables.
6164 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6165 of removed macros.
6166 (_initialize_dwarf2_read): New function.
6167 * symfile.h (dwarf2_has_info): Update prototype.
6168 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6169 * elfread.c (elf_symfile_read): Likewise.
6170
408752b0
JB
61712004-04-01 Jim Blandy <jimb@redhat.com>
6172
9f744501
JB
6173 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6174 function for register numbers on all the rs6000-derived targets.
6175 (rs6000_gdbarch_init): Don't register a separate
6176 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6177 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6178 variants.
6179
408752b0
JB
6180 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6181 numbering.
6182
2de41bce
PH
61832004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6184
6185 * valarith.c: Update copyright notice.
6186 (value_add): Handle range types.
6187 (value_sub): Ditto.
6188 (value_equal): Ditto.
6189 (value_less): Ditto.
6190 (value_neg): Ditto.
6191 (value_complement): Ditto.
8718a420 6192 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 6193 eliminiating unnecessary COERCE_ENUMs.
8718a420 6194
5613d8d3
AC
61952004-03-31 Andrew Cagney <cagney@redhat.com>
6196
6197 * frame.h (frame_unwind_id): Declare.
6198 * frame.c (frame_unwind_id): New function.
6199 (get_prev_frame_1): New function.
6200 (frame_debug_got_null_frame): New function.
6201 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6202 code proper to prev_frame, update description.
6203 * infrun.c (step_over_function): Use frame_unwind_id.
6204
c4557624
JB
62052004-04-31 J. Brobecker <brobecker@gnat.com>
6206
6207 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6208 (hppa64_push_dummy_call): Likewise.
6209
3e6bb910
JB
62102004-03-30 Jim Blandy <jimb@redhat.com>
6211
6212 From Ulrich Weigand:
6213 * utils.c (query): Do not use a va_list variable multiple times.
6214
a2f23071
DJ
62152004-03-29 Daniel Jacobowitz <drow@mvista.com>
6216
6217 * Makefile.in (linux_nat_h): Update dependencies.
6218 * configure.in: Check for <gnu/libc-version.h>.
6219 * configure: Regenerate.
6220 * config.in: Regenerate.
6221 * linux-nat.h: Include "target.h". Add waitstatus field to
6222 struct lwp_info.
6223 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6224 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6225 to.
6226 (lin_lwp_handle_extended): New function. Handle clone events.
6227 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6228 thread exit events.
6229 (child_wait): Handle clone events.
6230 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6231 * linux-nat.c (linux_enable_event_reporting): Turn on
6232 PTRACE_O_TRACECLONE.
6233 (linux_handle_extended_wait): Handle clone events.
6234 * thread-db.c: Include <gnu/libc-version.h>.
6235 (struct private_thread_info): Add dying flag.
6236 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6237 higher.
6238 (attach_thread): Update comments. Handle dying threads.
6239 (detach_thread): Set the dying flag.
6240 (check_event): Always call attach_thread.
6241
8d5f9dcb
DJ
62422004-03-29 Daniel Jacobowitz <drow@mvista.com>
6243
6244 * mips-tdep.c (mips_pdr_data): New.
6245 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6246 (_initialize_mips_tdep): Initialize mips_pdr_data.
6247
66337bb1
CV
62482004-03-29 Corinna Vinschen <vinschen@redhat.com>
6249
6250 * minsyms.c (install_minimal_symbols): Move dropping leading
6251 char from linkage name from here...
6252 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6253 test for "__gnu_compiled*" symbols.
6254
e802b915
JB
62552004-03-28 Jim Blandy <jimb@redhat.com>
6256
6257 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6258 registers to temp register r0 and byte stores as prologue
6259 instructions.
6260
72b56458
AC
62612004-03-28 Andrew Cagney <cagney@redhat.com>
6262
6263 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6264 arm*-*-*.
6265
0bfbda3b
SC
62662004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6267
6268 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6269 and switch the layout to force a display of register window.
6270
5a7225ed
JB
62712004-02-26 J. Brobecker <brobecker@gnat.com>
6272
6273 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6274 of the INTEGER class.
6275
81a07a45
JB
62762004-03-26 Jim Blandy <jimb@redhat.com>
6277
6278 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6279 bytes long on PPC GNU/Linux.
6280
8c691c7a
DC
62812004-03-26 David Carlton <carlton@kealia.com>
6282
6283 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6284
103a0089
AC
62852004-03-25 Andrew Cagney <cagney@redhat.com>
6286
6287 * PROBLEMS: Add general section titles, remove references to
6288 specific releases.
6289
7a5ea0d4
DJ
62902004-03-25 Daniel Jacobowitz <drow@mvista.com>
6291
6292 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6293 INT_REGISTER_SIZE.
6294 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6295 FP_REGISTER_VIRTUAL_SIZE.
6296 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6297 of DEPRECATED_REGISTER_RAW_SIZE.
6298 (arm_register_type): Add gdbarch argument.
6299 (arm_register_raw_size, arm_register_virtual_size): Delete.
6300 (arm_register_byte, arm_extract_return_value)
6301 (arm_store_return_value, arm_get_longjmp_target): Update references
6302 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6303 (arm_gdbarch_init): Likewise. Don't set
6304 deprecated_register_raw_size, deprecated_register_virtual_size,
6305 deprecated_max_register_raw_size,
6306 deprecated_max_register_virtual_size, or
6307 deprecated_max_register_virtual_type. Do set register_type.
6308 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6309 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6310 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6311 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6312 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6313 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6314 INT_REGISTER_SIZE.
6315 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6316 (remote_rdp_store_register): Likewise.
6317
5792a79b
DJ
63182004-03-24 Daniel Jacobowitz <drow@mvista.com>
6319
6320 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6321 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6322 to after osabi initialization.
6323 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6324 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6325 functions.
6326 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6327 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6328 variables.
6329 (mips_linux_init_abi): Append signal trampoline unwinders.
6330
1196bfda
AC
63312004-03-24 Andrew Cagney <cagney@redhat.com>
6332
6333 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6334 * tramp-frame.c: Include "gdb_assert.h".
6335 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6336 correct sizeof.
6337 (tramp_frame_append): Validate the tramp frame's instructions.
6338 * Makefile.in (tramp-frame.o): Update dependencies.
6339
4be282b4
AC
63402004-03-23 Andrew Cagney <cagney@redhat.com>
6341
6342 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6343
69aec09b
AC
63442004-03-23 Andrew Cagney <cagney@redhat.com>
6345
6346 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6347 Nasser as past testsuite/lib/ (and other) maintainers.
6348
63ed89b4
DJ
63492004-03-23 Daniel Jacobowitz <drow@mvista.com>
6350
6351 * infcmd.c (attach_command): Reread symbols if we already have
6352 an exec file.
6353
f3b36427
AC
63542004-03-23 Andrew Cagney <cagney@redhat.com>
6355
6356 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6357
aa2a3f87
AC
63582004-03-23 Andrew Cagney <cagney@redhat.com>
6359
6360 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6361 * gdbarch.h, gdbarch.c: Re-generate.
6362 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6363 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6364 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 6365 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 6366 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 6367 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
6368 (DEPRECATED_SIGTRAMP_START): Update.
6369 * blockframe.c (find_pc_sect_partial_function): Update.
6370 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6371
00cac895
DJ
63722004-03-23 Daniel Jacobowitz <drow@mvista.com>
6373
6374 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6375 if necessary.
6376
f561f026
AC
63772004-03-23 Andrew Cagney <cagney@redhat.com>
6378
6379 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6380 predicate, deprecate.
6381 * gdbarch.h, gdbarch.c: Re-generate.
6382 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6383 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6384 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6385 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6386 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6387 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6388 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6389 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6390 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6391 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6392 * blockframe.c (find_pc_partial_function): Update.
6393 * breakpoint.c (bpstat_what): Update.
6394 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6395 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6396 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6397 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6398 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6399 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6400 * i386-nto-tdep.c (i386nto_init_abi): Update.
6401 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6402 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6403 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6404 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6405 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6406 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6407 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6408 * infrun.c (pc_in_sigtramp): Update.
6409 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6410 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6411 * mips-tdep.c (mips_gdbarch_init): Update.
6412 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6413 * ppc-linux-tdep.c: Update comment.
6414 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6415 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6416 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6417 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6418 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6419 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6420 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6421 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6422 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6423 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 6424
8050c72f
AC
64252004-03-23 Andrew Cagney <cagney@redhat.com>
6426
d2259dd3
AC
6427 * tramp-frame.h, tramp-frame.h: New files.
6428 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6429 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6430
8050c72f
AC
6431 * Makefile.in: Update all dependencies.
6432
0db9b4b7
AC
64332004-03-23 Andrew Cagney <cagney@redhat.com>
6434
6435 * Makefile.in (trad_frame_h): Add $(frame_h).
6436 * trad-frame.h: Update copyright. Include "frame.h".
6437 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6438 (trad_frame_set_id, trad_frame_get_id): Declare.
6439 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6440 * trad-frame.c: Update copyright.
6441 (struct trad_frame_cache): Define.
6442 (trad_frame_cache_zalloc): New function.
6443 (trad_frame_set_id, trad_frame_get_id): New functions.
6444 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 6445
8e645ae7
AC
64462004-03-22 Andrew Cagney <cagney@redhat.com>
6447
6448 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6449 s390_pltstub_unwind_cache.
6450 (s390_stub_frame_unwind_cache): Rename
6451 s390_pltstub_frame_unwind_cache.
6452 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6453 (s390_stub_frame_prev_register): Rename
6454 s390_pltstub_frame_prev_register.
6455 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6456 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6457
6458 From Ulrich Weigand:
6459 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6460 pointer calls like PLT calls.
6461
34fcf120
DJ
64622004-03-22 Daniel Jacobowitz <drow@mvista.com>
6463
6464 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6465 PC rather than the partial function start address. Use the start
6466 address to sanity check the found PDR.
6467
5b917078
DJ
64682004-03-22 Daniel Jacobowitz <drow@mvista.com>
6469
6470 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6471 linux_handle_extended_wait.
6472
8adf9e78
AC
64732004-03-22 Andrew Cagney <cagney@redhat.com>
6474
c3122434
AC
6475 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6476 function.
6477
8adf9e78
AC
6478 * frame.h (generic_pop_current_frame): Delete declaration.
6479 (deprecate_pop_dummy_frame): Deprecate
6480 generic_pop_dummy_frame.
6481 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6482 (generic_pop_current_frame): Delete function.
6483 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6484 generic_pop_current_frame.
6485 * v850-tdep.c (v850_pop_frame): Update.
6486 * mcore-tdep.c (mcore_pop_frame): Update.
6487 * sh64-tdep.c (sh64_pop_frame): Update.
6488 * h8300-tdep.c (h8300_pop_frame): Update.
6489
90ba813f
AC
64902004-03-22 Andrew Cagney <cagney@redhat.com>
6491
6492 * frame.h (deprecated_pc_in_call_dummy): Rename
6493 generic_pc_in_call_dummy.
6494 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6495 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6496 generic_pc_in_call_dummy.
6497 (pc_in_dummy_frame): Make static.
6498 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6499 * gdbarch.h, gdbarch.c: Re-generate.
6500 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6501 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6502 (legacy_get_prev_frame): Ditto.
6503 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6504 comment.
8718a420 6505
ca4bb888
AC
65062004-03-21 Andrew Cagney <cagney@redhat.com>
6507
244675f9
AC
6508 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6509 declaration and out-of-date comment.
6510 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6511 Delete function.
6512 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6513 deprecated_pc_in_call_dummy.
6514
ca4bb888
AC
6515 * infrun.c (handle_inferior_event): For non legacy frames, use the
6516 frame ID and frame type to identify a signal trampoline. Update
6517 comments.
6518
1777c7b4
NW
65192004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6520
6521 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6522 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6523
82417da5
AC
65242004-03-21 Andrew Cagney <cagney@redhat.com>
6525
6526 * frame-unwind.h: Update copyright.
6527 (struct frame_data): Add opaque declaration.
6528 (frame_sniffer_ftype): Declare.
6529 (struct frame_unwind): Add "unwind_data" and "sniffer".
6530 (frame_unwind_register_unwinder): Declare.
6531 (frame_unwind_find_by_frame): Add parameter "this_cache".
6532 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6533 (legacy_get_prev_frame, legacy_get_prev_frame)
6534 (get_frame_type): Pass the prologue_cache to
6535 frame_unwind_find_by_frame.
6536 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6537 "unwinder".
6538 (frame_unwind_register_unwinder): New function.
6539 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6540
b2ba182e
PH
65412004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6542
6543 * bcache.c (print_percentage): Use floating point to avoid
6544 incorrect results when portion*100 overflows.
6545
81332287
KB
65462004-03-19 Kevin Buettner <kevinb@redhat.com>
6547
6548 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6549 (ppc_linux_init_extra_frame_info)
6550 (ppc_linux_frameless_function_invocation)
6551 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6552 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6553 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6554 (rs6000_frame_chain): Delete declarations.
6555 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6556 (ppc_linux_init_extra_frame_info)
6557 (ppc_linux_frameless_function_invocation)
6558 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6559 (ppc_linux_init_abi): Remove registration of above deleted functions.
6560 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6561 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6562 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6563 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6564 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6565 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6566 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6567 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6568 frame management for all OSABIs.
6569
61a65099
KB
65702004-03-19 Andrew Cagney <cagney@redhat.com>
6571
6572 Committed by Kevin Buettner <kevinb@redhat.com>.
6573
6574 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6575 Update copyright.
6576 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6577 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6578 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6579 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6580 unwinders. #ifdef legacy frame code.
6581 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6582 "frame-base.h".
6583 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6584 (struct rs6000_frame_cache, rs6000_frame_cache)
6585 (rs6000_frame_this_id, rs6000_frame_prev_register)
6586 (rs6000_frame_sniffer, rs6000_frame_unwind)
6587 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6588 (rs6000_frame_base): Implement a traditional frame unwinder.
6589 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6590 frame unwinder.
6591
88f7da05
KB
65922004-03-19 Kevin Buettner <kevinb@redhat.com>
6593
6594 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6595 breakpoint address for watchpoints or the catch eventpoints.
6596 Add new paramter ``bptype''. Adjust all callers.
6597
f826dce1
AC
65982004-03-19 Andrew Cagney <cagney@redhat.com>
6599
33cb8b0f
AC
6600 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6601
f826dce1
AC
6602 * PROBLEMS: Delete note that ARM does not use frame code, problem
6603 fixed.
6604
43b1ab88
AC
66052004-03-18 Andrew Cagney <cagney@redhat.com>
6606
292ab034
AC
6607 * stack.c (return_command): Delete code wrapped in #ifdef
6608 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6609
43b1ab88
AC
6610 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6611
dbfe4626
AC
66122004-03-18 Andrew Cagney <cagney@redhat.com>
6613
6614 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6615 DEPRECATED_IN_SIGTRAMP.
6616 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6617 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6618 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6619 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6620 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6621 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6622 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6623 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6624 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6625 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6626
0cad6aec
AC
66272004-03-18 Andrew Cagney <cagney@redhat.com>
6628
6629 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6630 (struct frame_base_table_entry): Define.
6631 (struct frame_base_table): Re-implement as a linked list.
6632 (frame_base_init): Re-implement.
6633 (frame_base_table): Delete function.
6634 (append_predicate): Delete function.
6635 (frame_base_append_sniffer): Update.
6636 (frame_base_set_default): Update.
6637 (frame_base_find_by_frame): Update.
6638 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6639 * Makefile.in (frame-base.o): Update dependencies.
6640
9982c2e7
AC
66412004-03-17 Andrew Cagney <cagney@redhat.com>
6642
6643 * frame.c (legacy_get_prev_frame): Pass correct frame to
6644 frame_unwind_find_by_frame.
6645
8dfe8985
DC
66462004-03-17 David Carlton <carlton@kealia.com>
6647
6648 * NEWS: Mention C++ nested types and namespaces
6649
ed47347a
MC
66502004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6651
6652 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6653 and "Regressions since gdb 5.3.". Add known regressions since
6654 gdb 6.0.
6655
90aeadfc
DC
66562004-03-16 David Carlton <carlton@kealia.com>
6657
6658 * dwarf2read.c (process_structure_scope): Process children even
6659 when we're a declaration.
6660
73912b9b
AC
66612004-03-16 Andrew Cagney <cagney@redhat.com>
6662
6663 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6664 * blockframe.c (find_pc_partial_function)
6665 (find_pc_sect_partial_function): Merge into a single
6666 find_pc_partial_function.
6667
283accbc
MK
66682004-03-16 Mark Kettenis <kettenis@gnu.org>
6669
6670 * i386bsd-nat.c: s/regno/regnum/g.
6671 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6672 FP0_REGNUM.
6673 (store_inferior_registers): Likewise.
6674
f5b1afdf
MK
66752004-03-16 Mark Kettenis <kettenis@gnu.org>
6676
6677 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6678 of i387_fill_fsave.
6679 (store_inferior_registers): Call i387_collect_fsave and
6680 i387_collect_fxsave instead of i387_fill_fsave and
6681 i387_fill_fxsave.
6682
41fe5eb3
AC
66832004-03-15 Andrew Cagney <cagney@redhat.com>
6684
6685 * Makefile.in (frame-unwind.o): Update dependencies.
6686 * frame-unwind.c: Include "gdb_obstack.h".
6687 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6688 parameter.
6689 (append_predicate): Delete function.
6690 (struct frame_unwind_table_entry): New structure.
6691 (struct frame_unwind_table): Replace "sniffer" with "head" and
6692 "tail".
6693 (frame_unwind_append_sniffer): Update.
6694 (frame_unwind_find_by_frame): Update.
6695 (_initialize_frame_unwind): Registe frame_unwind_init using
6696 gdbarch_data_register_pre_init.
6697
3f63813d
MK
66982004-03-15 Mark Kettenis <kettenis@gnu.org>
6699
6700 * i386bsd-nat.c: Update copyright year.
6701 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6702 define unconditionally.
6703
3248c325 67042004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
6705
6706 * i387-tdep.h (i387_collect_fsave): New prototype.
6707 * i387-tdep.c (i387_collect_fsave): New function containing most
6708 of the code from i387_fill_fsave.
3248c325 6709 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 6710
871fbe6a
MK
67112004-03-15 Mark Kettenis <kettenis@gnu.org>
6712
6713 * i386-linux-tdep.c: Update copyright year.
6714 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6715 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6716 svr4_ilp32_link_map_offsets instead of
6717 i386_linux_svr4_fetch_link_map_offsets.
6718
8176b9b8
DC
67192004-03-15 David Carlton <carlton@kealia.com>
6720
6721 Fix for PR c++/1553:
6722 * dwarf2read.c (read_structure_type): Determine type name by
6723 calling determine_class_name.
6724 (determine_class_name): New.
6725 (determine_prefix): Look at TYPE_TAG_NAME and call
6726 determine_class_name when appropriate.
6727 (determine_prefix_aux, class_name): Delete.
9d58e29d 6728 (read_namespace): Set die->type.
8176b9b8 6729
fe8bf7d7
KB
67302004-03-15 Kevin Buettner <kevinb@redhat.com>
6731
6732 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6733 unused macro definition. The definition in target.h (or perhaps
6734 elsewhere) takes precedence.
6735
ed6edd9b
AC
67362004-03-15 Andrew Cagney <cagney@redhat.com>
6737
f9be684a
AC
6738 * ppc-tdep.h: Update copyright.
6739 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6740 function signatures to match "regsets.h".
6741 * ppc-linux-tdep.c: Include "regset.h".
6742 (ELF_GREGSET_SIZE): Delete.
6743 (right_supply_register): New function.
6744 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6745 using right_supply_register.
6746 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6747 functions.
6748 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6749 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6750 (_initialize_ppc_linux_tdep): Do not register
6751 ppc_linux_regset_core_fns.
6752 (ppc_linux_regset_from_core_section): Replace
6753 fetch_core_registers.
6754 (ppc_linux_regset_core_fns): Delete.
6755 * ppc-linux-nat.c: (right_fill_reg): New function.
6756 (supply_gregset): Update call to ppc_linux_supply_gregset.
6757 (fill_gregset): Clear the register set, use right_fill_reg.
6758 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6759 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6760
ed6edd9b
AC
6761 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6762 unsigned.
6763
030f20e1
AC
67642004-03-15 Andrew Cagney <cagney@redhat.com>
6765
6766 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6767 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6768 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6769 and register_gdbarch_data.
6770 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6771 (struct gdbarch_data): Replace "init" by "pre_init" and
6772 "post_init".
6773 * gdbarch.h, gdbarch.c: Re-generate.
6774 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6775 with"obstack", use OBSTACK_ZALLOC.
6776 (dwarf2_frame_ops): Delete.
6777 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6778 (dwarf2_frame_init_reg): Use gdbarch_data.
6779 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 6780 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
6781 (_initialize_svr4_solib): Update.
6782 * user-regs.c (_initialize_user_regs): Update.
6783 * reggroups.c (_initialize_reggroup): Update.
6784 * regcache.c (_initialize_regcache): Update.
6785 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6786 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6787 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6788 * frame-unwind.c (_initialize_frame_unwind): Update.
6789 * frame-base.c (_initialize_frame_base): Update.
6790 * user-regs.c (user_reg_add): Update.
6791 * reggroups.c (reggroup_add): Update.
6792 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6793 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6794 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6795 * frame-base.c (frame_base_table): Update.
6796 * remote.c (_initialize_remote): Update.
6797 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 6798
3111a3fc
AC
67992004-03-15 Andrew Cagney <cagney@redhat.com>
6800
6801 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6802
5ecb7103
KB
68032004-03-15 Kevin Buettner <kevinb@redhat.com>
6804
6805 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6806 * frv-linux-tdep.c: New file.
6807 * frv-tdep.c (struct gdbarch_tdep): Add new field
6808 ``sigcontext_reg_addr''.
6809 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6810 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6811 (frv_sigramp_frame_sniffer): New functions.
6812 (frv_sigtramp_frame_unwind): New static global.
6813 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6814 sniffers.
6815 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6816 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6817
1ccda5e9
KB
68182004-03-15 Kevin Buettner <kevinb@redhat.com>
6819
6820 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6821 but not via a call to error(), when unable to read memory.
6822
b375a0a5
KB
68232004-03-15 Kevin Buettner <kevinb@redhat.com>
6824
6825 * frv-tdep.c (frv_call_dummy_words): Delete.
6826 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6827
4fdf6121
AC
68282004-03-15 Andrew Cagney <cagney@redhat.com>
6829
6830 * infrun.c (handle_step_into_function, step_over_function): Only
6831 update and use STEP_FRAME_ID when the system is using legacy
6832 frames. Update comments.
6833
34021503
MK
68342004-03-14 Mark Kettenis <kettenis@gnu.org>
6835
187e21d1
MK
6836 * amd64-linux-tdep.h: Remove file.
6837 * amd64-linux-tdep.c: Don't include "inferior.h" and
6838 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6839 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6840 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6841 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6842 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6843 macros.
6844 (user_to_gdb_regmap): Remove variable.
6845 (amd64_linux_gregset_reg_offset): New variable.
6846 (amd64_core_fns): Remove variable.
6847 (fetch_core_registers): Remove function.
6848 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6849 functions.
6850 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6851 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6852 * Makefile.in (amd64_linux_tdep_h): Remove.
6853 (amd64-linux-nat.o): Update dependencies.
6854 (amd64-linux-tdep.o): Update dependencies.
6855
99679982
MK
6856 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6857 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6858 functions.
6859 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6860
34021503
MK
6861 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6862 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6863
134d01f1
DJ
68642004-03-14 Daniel Jacobowitz <drow@mvista.com>
6865
6866 * dwarf2read.c (read_structure_type): Rename from
8718a420 6867 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
6868 Return immediately if die->type is set. Call read_type_die before
6869 dwarf2_add_member_fn.
6870 (process_structure_scope): New function.
6871 (read_enumeration_type, process_enumeration_scope): New functions,
6872 broken out from read_enumeration. Don't create the enumeration
6873 type if it has already been created.
6874 (read_enumeration): Removed.
6875 (process_die): Call read_structure_type, process_structure_scope,
6876 read_enumeration_type, and process_enumeration_scope. Just call
6877 new_symbol for base and subrange types. Add a comment about other
6878 type dies.
6879 (read_type_die): Call read_enumeration_type.
6880 (add_partial_structure, new_symbol): Update comments.
6881
65760afb
SC
68822004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6883
6884 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6885
10f59415
SC
68862004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6887
6888 * tui/tui-win.h (tui_get_cmd_list): Declare.
6889 * tui/tui-win.c (tui_command): New function.
6890 (tui_get_cmd_list): New function.
6891 (_initialize_tui_win): Moved initialization of tui command in
6892 tui_get_cmd_list.
6893
6894 * tui/tui-data.c (init_content_element): Setup new data members.
6895 (init_win_info): Likewise.
6896 (free_content_elements): Free it.
6897 * tui/tui-data.h (struct tui_data_element): Store the register
6898 content to print.
6899 (struct tui_data_info): Keep the current register group.
6900
6901 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6902
6903 * tui/tui-regs.h (tui_show_registers): Update prototype.
6904 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6905 (tui_resize_all): No need to calculate anything for register window.
6906 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6907 (tui_set_register_element, tui_set_general_regs_content): Remove.
6908 (tui_set_special_regs_content): Remove.
6909 (tui_set_general_and_special_regs_content): Remove.
6910 (tui_set_float_regs_content): Remove.
6911 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6912 (tui_set_regs_content): Remove.
6913 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6914 (tui_v_show_registers_command_support): Remove.
6915 (tui_show_registers): Use a reggroup to specify the registers to show.
6916 (tui_show_register_group): New function.
6917 (tui_display_registers_from): Compute the layout of register window
6918 and refresh with new API; be sure to delete old register windows.
6919 (tui_check_register_values): Update to use tui_get_register and
6920 tui_display_data.
6921 (tui_display_register): Just refresh the register window part.
6922 (tui_register_format): Format registers and save in tui_data_element.
6923 (tui_get_register): New to combine tui_reg_value_has_changed and
6924 tui_get_register_raw_value; fix to use the new gdb API.
6925 (tui_show_float_command): Renamed tui_reg_float_command.
6926 (tui_show_general_command): Renamed tui_reg_general_command.
6927 (tui_show_special_command): Renamed tui_reg_system_command.
6928 (_initialize_tui_regs): Remove unused commands.
6929
c3364ea4
MK
69302004-03-13 Mark Kettenis <kettenis@gnu.org>
6931
27d1e716
MK
6932 * NEWS (New native configurations): Mention OpenBSD/amd64.
6933
c3364ea4
MK
6934 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6935 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6936 Remove defines.
6937 * config/i386/nm-fbsd64.h: Likewise.
6938 * config/i386/nm-obsd.h: Likewise.
6939 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6940 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6941
b2d6d697
KB
69422004-03-12 Kevin Buettner <kevinb@redhat.com>
6943
6944 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
6945 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6946 New constants.
6947
76e43199
KB
6948 From Richard Sandiford <rsandifo@redhat.com>:
6949 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6950
34ce532e
KB
69512004-03-12 Kevin Buettner <kevinb@redhat.com>
6952
6953 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6954 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6955 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6956 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6957 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6958 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6959 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6960 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6961 definitions from frv-tdep.c to frv-tdep.h.
6962
c4d10515
KB
69632004-03-12 Kevin Buettner <kevinb@redhat.com>
6964
6965 Add shared library support for FR-V FDPIC ABI:
6966 * Makefile.in (solib-frv.o): Add dependencies.
6967 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6968 New functions.
6969 (frv_push_dummy_call): Add support for FDPIC ABI.
6970 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6971 for FDPIC ABI.
6972 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6973 (frv_fdpic_find_canonical_descriptor): Declare.
6974 * solib-frv.c: New file.
6975 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6976 * config/frv/tm-frv.h (solib.h): Include.
6977
ed1bd989
KB
69782004-03-12 Kevin Buettner <kevinb@redhat.com>
6979
6980 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6981 (frv-tdep.o): Update dependencies.
6982 * frv-tdep.h: New file.
6983 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6984 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
6985 constants.
6986 (struct gdbarch_tdep): Add new member ``frv_abi''.
6987 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
6988 functions.
6989 (new_variant): Set ``frv_abi'' field.
6990 (gdb_arch_init): Detect FDPIC executables.
6991
82b38f72
MK
69922004-03-12 Mark Kettenis <kettenis@gnu.org>
6993
6994 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
6995 wrapper.
6996
db1ea9ba
AC
69972004-03-11 Andrew Cagney <cagney@redhat.com>
6998
6999 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7000
f8766ec1
KB
70012004-03-11 Kevin Buettner <kevinb@redhat.com>
7002
7003 * solist.h (master_so_list): New function.
7004 * solib.c (master_so_list): Likewise.
7005 * solib-svr4.c (enable_break): Iterate over so_list entries
7006 obtained from master list instead of entries obtained directly
7007 via svr4_current_sos().
7008
523f6a27
BE
70092004-03-10 Ben Elliston <bje@gnu.org>
7010
7011 * MAINTAINERS: Update my mail address.
7012
37814c18
KI
70132004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7014
7015 * remote-m32r-sdi.c: Support hardware watchpoint.
7016
8b9740d8
DJ
70172004-03-09 Daniel Jacobowitz <drow@mvista.com>
7018
7019 * user-regs.c: Update copyright years.
7020 (struct user_regs): Rename to gdb_user_regs.
7021 (append_user_reg, builtin_user_regs, user_regs_init)
7022 (user_reg_add, user_reg_map_name_to_regnum)
7023 (usernum_to_user_reg): Update.
7024
4bb7a0a7
DJ
70252004-03-09 Daniel Jacobowitz <drow@mvista.com>
7026
7027 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7028 (skip_children): New functions.
7029 (locate_pdi_sibling): Call skip_children.
7030
44e1a9eb
DJ
70312004-03-09 Daniel Jacobowitz <drow@mvista.com>
7032
7033 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7034 * gdbtypes.c (check_typedef): Update comments.
7035
f3dd6933
DJ
70362004-03-09 Daniel Jacobowitz <drow@mvista.com>
7037
7038 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7039 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7040 pointer. Update comment about comp_unit_head.
7041 (struct abbrev_info): Shorten two int flags.
7042 (dwarf_alloc_abbrev): Take a CU argument.
7043 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7044 each time through the loop. Update cleanup argument.
7045 (psymtab_to_symtab_1): Update cleanup call.
7046 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7047 abbrev_obstack.
7048 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7049 Just call obstack_free and clear the pointer.
7050
b40c7d58
DJ
70512004-03-09 Daniel Jacobowitz <drow@mvista.com>
7052
7053 * infrun.c (handle_inferior_event): Remove short-circuit code for
7054 events in a different thread.
7055
333dabeb
DJ
70562004-03-09 Daniel Jacobowitz <drow@mvista.com>
7057
7058 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7059 print the whole transfer.
7060 (initialize_targets): Update description of "set debug target".
7061
aa17d93e
DJ
70622004-03-09 Daniel Jacobowitz <drow@mvista.com>
7063
7064 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7065
0b71f08f
NW
70662004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7067
7068 * MAINTAINERS (write after approval): Add myself.
7069
3930f270
CV
70702004-03-08 Corinna Vinschen <vinschen@redhat.com>
7071
7072 * sh-tdep.c (sh_print_registers_info): Use for loop.
7073 Don't skip multiple registers when a float register is encountered.
7074
a2b4a96c
CV
70752004-03-08 Corinna Vinschen <vinschen@redhat.com>
7076
7077 Fix PR tdep/1291.
7078 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7079 to official SH documentation.
7080
f15a4bc0
AC
70812004-03-07 Andrew Cagney <cagney@redhat.com>
7082
7083 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7084 unused function.
7085
9498281f
DJ
70862004-03-07 Daniel Jacobowitz <drow@mvista.com>
7087
7088 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7089 (arm_get_next_pc): Handle BX and BLX.
7090
449e1137
AC
70912004-03-07 Andrew Cagney <cagney@redhat.com>
7092
eded0a31
AC
7093 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7094 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7095 HPPA_SP_REGNUM.
7096 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7097 (hppa_target_read_fp): Delete.
7098 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7099 register_virtual_size, max_register_raw_size,
7100 max_register_virtual_size, register_byte, register_size,
7101 target_read_fp, fp_regnum, and register_bytes. Set register_type
7102 instead of register_virtual_type.
7103 (hppa32_register_type, hppa64_register_type): Replace
7104 hppa32_register_virtual_type and hppa64_register_virtual_type.
7105 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7106 (HPPA_FP_REGNUM): Define.
7107
f5f907e2
AC
7108 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7109
69b4bbe4
AC
7110 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7111 (pa_do_registers_info): Delete.
7112 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 7113 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 7114 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 7115
78161e48
AC
7116 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7117 GDB_TARGET_IS_HPPA code.
7118 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 7119 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
7120 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7121 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
7122 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7123 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7124 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 7125 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
7126 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7127 (hppa_frameless_function_invocation, hppa64_store_return_value)
7128 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 7129 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 7130 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 7131 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
7132 (find_proc_framesize, deposit_21, restore_pc_queue)
7133 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 7134 (rp_saved, pc_in_linker_stub): Delete.
78161e48 7135
782eae8b
AC
7136 Unconditionally enable 64-bit frame and ABI code.
7137 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7138 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7139 push_dummy_frame, fix_call_dummy, push_arguments,
7140 call_dummy_location, extract_return_value, use_struct_convention,
7141 store_return_value, store_struct_return, saved_pc_after_call,
7142 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7143 frame_chain, frame_chain_valid, frameless_function_invocation,
7144 frame_saved_pc, and pop_frame.
78161e48 7145
449e1137
AC
7146 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7147 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7148 (hppa_gdbarch_init): Do not set PC_REGNUM.
7149
12507572
MK
71502004-03-06 Mark Kettenis <kettenis@gnu.org>
7151
7152 * config/alpha/tm-fbsd.h: Remove file.
7153 * config/alpha/fbsd.mt: Tweak comment.
7154 (TM_FILE): Set to tm-alpha.h.
7155
c107cc1b
AC
71562004-03-05 Andrew Cagney <cagney@redhat.com>
7157
7158 * infrun.c (step_over_function): When non-legacy code, and no
7159 step_frame_id, use the unwinder to get the caller's frame ID.
7160
f2e7c15d
MK
71612004-03-05 Mark Kettenis <kettenis@gnu.org>
7162
8b0c3633
MK
7163 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7164 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7165 bfd_arch_unknown. Adjust comment.
7166
f2e7c15d
MK
7167 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7168 * i386obsd-tdep.c: Correct spelling in comment.
7169 * i386nbsd-tdep.c: Correct spelling in comment.
7170 * sparc-tdep.c: Correct spelling in comments.
7171
1198ecbe
DC
71722004-03-05 David Carlton <carlton@kealia.com>
7173
7174 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7175 bug.
7176
9eb42ed1
MK
71772004-03-05 Mark Kettenis <kettenis@gnu.org>
7178
7179 * sparc-tdep.c: Fix typo in comment.
7180
52b5e991
JB
71812004-03-04 J. Brobecker <brobecker@gnat.com>
7182
7183 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7184
d8151005
DJ
71852004-03-04 Daniel Jacobowitz <drow@mvista.com>
7186
7187 * dwarf2read.c: Add comment describing memory lifetimes.
7188 (struct dwarf2_pinfo): Update comment.
7189 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7190 (read_enumeration, new_symbol): Don't use obsavestring.
7191
cbeae229
MK
71922004-03-04 Mark Kettenis <kettenis@gnu.org>
7193
722d18c2
MK
7194 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7195 instead of amd64_fill_fxsave.
7196 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7197 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7198
cbeae229
MK
7199 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7200 Reorganize code a bit.
7201
b4206d25
OF
72022004-03-04 Orjan Friberg <orjanf@axis.com>
7203
7204 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
7205 when the frame pointer is pushed. Don't set the frame pointer's
7206 address on the stack unless it's actually located there.
b4206d25
OF
7207 Set the SRP's address on the stack correctly when the PC is still in
7208 the prologue.
7209 (cris_return_value): New function.
7210 (cris_gdbarch_init): Clear deprecated store_return_value,
7211 extract_return_value.
7212
49b0b195
JB
72132004-03-02 Jim Blandy <jimb@redhat.com>
7214
7215 * stabsread.c (reg_value_complaint): The maximum register number
7216 is one less than the number of registers.
7217
e9ff708b
AC
72182004-03-02 Andrew Cagney <cagney@redhat.com>
7219
7220 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7221 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7222 trailing comma and redundant assignment of I386_ST0_REGNUM.
7223 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7224 32-bit segment registers.
7225
d4715e41
AC
72262004-03-01 Andrew Cagney <cagney@redhat.com>
7227
7228 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7229 use frame_relative_level and get_next_frame.
7230
3ce2bf18
AC
72312004-02-29 Andrew Cagney <cagney@redhat.com>
7232
7233 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7234 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7235 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7236 Delete macro.
7237
2da6aac3
DJ
72382004-02-29 Daniel Jacobowitz <drow@mvista.com>
7239
7240 * inflow.c (terminal_inferior): Don't give up the terminal if we
7241 previously couldn't get the inferior's terminal state.
7242
6ba34a8d
DJ
72432004-02-29 Daniel Jacobowitz <drow@mvista.com>
7244
7245 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7246 PC_REGNUM.
7247
faae5abe
AC
72482004-02-28 Andrew Cagney <cagney@redhat.com>
7249
7250 * NEWS: Refer to GDB 6.1.
7251 * README: Refer to GDB 6.1.
7252 * PROBLEMS: Refer to GDB 6.1.
7253
2227a3c5
DJ
72542004-02-28 Daniel Jacobowitz <drow@mvista.com>
7255
7256 * thread-db.c (disable_thread_signals): Remove unused function.
7257
80571bff
MK
72582004-02-28 Mark Kettenis <kettenis@gnu.org>
7259
041bd74b
MK
7260 * amd64-nat.c: Include "gdb_string.h".
7261 (amd64_collect_native_gregset): Zero-extend the 32-bit
7262 general-purpose registers and %eip.
7263
3c017e40
MK
7264 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7265 * amd64-tdep.c (amd64_collect_fxsave): New function.
7266 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7267
80571bff
MK
7268 * i387-tdep.h: Update copyright year.
7269 (i387_collect_fxsave): New prototype.
7270 * i387-tdep.c: Update copyright year.
7271 (i387_collect_fxsave): New function containing most of the code
7272 from i387_fill_fxsave.
7273 (i387_fill_fxsave): Call i387_collect_fxsave.
7274
50d71875
AC
72752004-02-28 Andrew Cagney <cagney@redhat.com>
7276
7277 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7278 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7279
4a28816e
MK
72802004-02-28 Mark Kettenis <kettenis@gnu.org>
7281
7282 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7283
dbda9972
AC
72842004-02-28 Andrew Cagney <cagney@redhat.com>
7285
7286 * utils.c: Use "", instead of <>, to include readline.
7287 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7288 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7289 * source.c, solib.c, exec.c, event-top.c: Ditto.
7290 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7291 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7292 * Makefile.in: Update all dependencies.
7293 (readline_tilde_h, readline_history_h): Define.
7294 (readline_headers): Delete.
7295
83277a99
MK
72962004-02-28 Mark Kettenis <kettenis@gnu.org>
7297
91ae4303
MK
7298 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7299 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7300 "config/i386/tm-lx64.h".
7301
83277a99
MK
7302 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7303 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7304 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7305
6e1d7d6c
AC
73062004-02-28 Andrew Cagney <cagney@redhat.com>
7307
ecc9ac84
AC
7308 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7309
6e1d7d6c
AC
7310 * breakpoint.c (_initialize_breakpoint): Use
7311 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7312 Add help to show command.
7313
9671aeef
MK
73142004-02-28 Mark Kettenis <kettenis@gnu.org>
7315
7fa2737c
MK
7316 * i386-nat.c: Reformat to be closer to coding standards.
7317 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7318 `retval'. Make variables `align' and `size' local to while-loop.
7319 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7320 (_initialize_i386_nat): New prototype.
7321
9671aeef
MK
7322 * tui/tui.c: Include <readline/readline.h> instead of
7323 "readline/readline.h". Include it after <term.h> and
7324 "gdb_curses.h".
7325
fca7aa43
AC
73262004-02-27 Andrew Cagney <cagney@redhat.com>
7327
412275d5
AC
7328 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7329 the new frame unwind code.
7330 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7331 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7332 PCOQ_HEAD_REGNUM.
7333
fca7aa43
AC
7334 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7335 "return_value" and "push_dummy_call".
7336 (hppa32_use_struct_convention): Delete unused function.
7337 (hppa32_store_return_value): Delete unused function.
7338 (hppa32_extract_return_value): Delete unused function.
7339 (hppa32_stack_align): Delete function.
7340
e6a8a7d2
EZ
73412004-02-27 Eli Zaretskii <eliz@elta.co.il>
7342
7343 * coffread.c (enter_linenos): Don't let rawptr reference memory
7344 outside linetab[]'s limits.
7345
1797a8f6
AC
73462004-02-27 Andrew Cagney <cagney@redhat.com>
7347
7348 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7349 inferior stack space - the stack needs to grow upwards.
7350 (hppa32_frame_align): New function.
7351 (hppa64_frame_align): Replace hppa_frame_align.
7352 (hppa_gdbarch_init): Update.
7353
2e4b5889
OF
73542004-02-26 Orjan Friberg <orjanf@axis.com>
7355
7356 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7357 (dwarf2-frame.h): Include.
7358 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7359 Remove static variables related to ABI setting.
7360 (struct gdbarch_tdep): Remove cris_abi member.
7361 (struct frame_extra_info): Remove.
7362 (cris_unwind_cache, stack_item): New structs.
7363 (cris_frame_unwind, cris_frame_base): New variables.
7364 (push_stack_item, pop_stack_item)
7365 (cris_frame_unwind_cache, cris_frame_this_id)
7366 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7367 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7368 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7369 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7370 (cris_reg_struct_has_addr): New functions.
7371 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 7372 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
7373 (cris_store_struct_return, cris_frameless_function_invocation)
7374 (cris_pop_frame, cris_skip_prologue_main)
7375 (cris_abi_original_store_return_value)
7376 (cris_abi_v2_store_return_value)
7377 (cris_abi_original_extract_return_value)
7378 (cris_abi_v2_extract_return_value)
7379 (cris_abi_original_reg_struct_has_addr)
7380 (cris_abi_v2_reg_struct_has_addr)
7381 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7382 (cris_push_return_address, cris_abi_update): Remove.
7383 (_initialize_cris_tdep): Remove ABI command.
7384 (cris_dump_tdep): Ditto.
8718a420 7385 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
7386 Set store_return_value, extract_return_value, push_dummy_code,
7387 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7388 frame_unwind_append_sniffer, frame_base_set_default.
7389 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7390 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7391 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 7392 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
7393 init_extra_frame_info, frameless_function_invocation, frame_chain,
7394 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7395 dummy_write_sp.
8718a420 7396
6b9acc27
JJ
73972004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7398
7399 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7400 * valprint.c (print_hex_chars): Change from static to external.
7401 (print_char_chars): New function.
7402 * printcmd.c (print_scalar_formatted): For integer and enum types
7403 that are longer than LONGEST, perform processing via appropriate
7404 print_*_chars routines.
7405
a431654a
AC
74062004-02-26 Andrew Cagney <cagney@redhat.com>
7407
7408 * Makefile.in: Update dependencies.
7409 Changes from Ulrich Weigand,
7410 * s390-tdep.c: Include "dwarf2-frame.h".
7411 (s390_dwarf2_frame_init_reg): New function.
7412 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7413 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7414
fa8d40ab
JJ
74152004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7416
7417 * breakpoint.c (pending_break_support): New setting variable.
7418 (break_command_1): Account for pending_break_support setting
7419 when creating pending breakpoints.
7420 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7421 (_initialize_breakpoint): Add "set breakpoint pending" and
7422 "show breakpoint pending" commands.
7423
0dcd613f
AC
74242004-02-26 Andrew Cagney <cagney@redhat.com>
7425
7426 Fix PR i18n/1570.
7427 * charset.c (backslashable, backslashed, represented): Remove 'e'
7428 from list of escaped characters, not part of ISO-C.
7429
479272a3
JB
74302004-02-25 J. Brobecker <brobecker@gnat.com>
7431
7432 From Peter Schauer <schauer@pdf.de>:
7433 * tui/tui.c: Move system header includes after local includes.
7434 Fixes a build failure on solaris systems.
7435
7613d933
JB
74362004-02-25 J. Brobecker <brobecker@gnat.com>
7437
7438 * configure.in: Refine the previous change.
7439 * configure: Regenerate.
7440
9c1488cb
MK
74412004-02-25 Mark Kettenis <kettenis@gnu.org>
7442
7443 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7444 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7445 "amd64-tdep.h" instead of "x86-64-tdep.h".
7446 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7447 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7448 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7449 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7450 and "x86-64-tdep.c".
7451 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7452 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7453 and "x86-64-tdep.c".
7454 * amd64bsd-nat.c: Update copyright year.
7455 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7456 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7457 "x86-64-tdep.h".
7458 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7459 "x86-64-tdep.h".
7460 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7461 "x86-64-tdep.h".
7462 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7463 "x86-64-tdep.h".
7464 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7465 "x86-64-tdep.h".
7466 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7467 "x86-64-tdep.h".
8718a420 7468 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
7469 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7470 * Makefile.in (amd64_linux_tdep_h): Renamed from
7471 x86_64_linux_tdep_h.
7472 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7473 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7474 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7475 (amd64obsd-tdep.o): Update dependencies.
7476 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7477 dependencies.
7478 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7479 dependencies.
7480 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7481 amd64-linux-nat.c amd64-linux-tdep.c.
7482 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7483 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7484 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7485 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7486 amd64-tdep.o and amd64-linux-tdep.o.
7487 (TM_FILE): Set to tm-linux64.h.
7488 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7489 (NAT_FILE): Set to nm-linux64.h.
7490 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7491 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7492 amd64-tdep.o.
7493 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7494 amd64-tdep.o.
7495 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7496 amd64-tdep.o.
7497
4b8dad4a
RM
74982004-02-25 Roland McGrath <roland@redhat.com>
7499
7500 * remote.c (remote_protocol_qPart_auxv): New variable.
7501 (init_all_packet_configs): Initialize it.
7502 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7503 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7504 (show_remote_cmd): Call it.
7505 (_initialize_remote): Initialize commands.
7506 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7507 service TARGET_OBJECT_AUXV requests.
7508
66745969
JB
75092004-02-25 J. Brobecker <brobecker@gnat.com>
7510
7511 * configure.in: Make sure that the wborder function is available.
7512 Otherwise, search for it in the cur_colr library.
7513 * configure: Regenerate.
7514
79508e1e
AC
75152004-02-25 Andrew Cagney <cagney@redhat.com>
7516
7517 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7518
571ee600
MK
75192004-02-25 Mark Kettenis <kettenis@gnu.org>
7520
7521 * config/i386/tm-x86-64linux.h: Tweak comments.
7522
2b1b322f 75232004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
7524
7525 * MAINTAINERS: Add self to write-after-approval list.
7526
4d2acc65
AC
75272004-02-25 Andrew Cagney <cagney@redhat.com>
7528
4b8dad4a 7529 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
7530 * cli/cli-script.c (execute_control_command): Unconditionally
7531 install a cleanup. Default "ret" to "invalid_control". Use
7532 "break" instead of "return" to escape from the switch.
7533
4cfcaf21
JB
75342004-02-24 J. Brobecker <brobecker@gnat.com>
7535
7536 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7537 with the lines macro defined in term.h on AiX.
7538 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7539 a collision with the label_width macro defined in term.h on AiX.
7540
54a5c8d8
KB
75412004-02-23 David Mosberger <davidm@hpl.hp.com>
7542
7543 Committed by Kevin Buettner <kevinb@redhat.com>.
7544
7545 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7546 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7547 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7548 instead of ia64_write_pc().
7549 * ia64-linux-tdep.c (regcache.h): Include.
7550 (ia64_linux_write_pc): New function.
4b8dad4a 7551
8a1dac83
RM
75522004-02-23 Roland McGrath <roland@redhat.com>
7553
7554 * auxv.c (info_auxv_command): Fix typos in error messages.
7555
90f90721
MK
75562004-02-23 Mark Kettenis <kettenis@gnu.org>
7557
8a1dac83 7558 * x86-64-tdep.h: Tweak comment.
90f90721
MK
7559 (enum amd64_regnum): New.
7560 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7561 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7562 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7563 (X86_64_XMM1_REGNUM): Removed.
7564 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7565 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7566 prototypes for renamed functions.
7567 * x86-64-tdep.c: Fix typo.
7568 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7569 register numbers.
7570 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7571 Use constants from `enum amd64_regnum' for register numbers.
7572 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7573 (amd64_analyze_prologue, amd64_frame_cache,
7574 amd64_sigtramp_frame_cache): Use constants from `enum
7575 amd64_regnum' for register numbers.
7576 (amd64_supply_fpregset): Adjust for renamed functions.
7577 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7578 `enum amd64_regnum' for register numbers.
7579 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7580 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7581 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7582 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7583 (amd64_linux_fill_gregset): Adjust for renamed macros.
7584 (fetch_core_registers): Adjust for renamed functions.
7585 (amd64_linux_init_abi): Adjust for renamed functions.
7586 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7587 renamed functions.
7588 * amd64-nat.c: Adjust for renamed macros.
7589 * amd64bsd-nat.c (fetch_inferior_registers)
7590 (store_inferior_registers): Use constants from `enum amd64_regnum'
7591 for register numbers. Adjust for renamed variables.
7592 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7593 renamed variables.
7594 (_initialize_amd64fbsd_nat): Use constants from `enum
7595 amd64_regnum' for register numbers.
7596 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7597 `enum amd64_regnum' for register numbers.
7598 (amd64fbsd_init_abi): Adjust for renamed functions.
7599 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7600 `enum amd64_regnum' for register numbers.
7601 (amd64nbsd_init_abi): Adjust for renamed functions.
7602 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7603 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7604 `enum amd64_regnum' for register numbers.
7605 (amd64obsd_init_abi): Adjust for renamed functions.
7606 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7607
d5479188
JJ
76082004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7609
7610 * breakpoint.c (print_one_breakpoint): Do not output spaces
7611 after printing <PENDING> for a pending breakpoint.
7612
81cb7cc9
JJ
76132004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7614
7615 * printcmd.c (print_scalar_formatted): Initialize val_long
7616 to remove compiler warning message.
7617
cbdeadca
JJ
76182004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7619
7620 * defs.h (nquery, yquery): New prototypes.
7621 * breakpoint.c (break_command_1): Use new nquery interface.
7622 * utils.c (defaulted_query, nquery, yquery): New functions.
7623
da6bab63
AC
76242004-02-23 Andrew Cagney <cagney@redhat.com>
7625
2f690297
AC
7626 * hppa-tdep.c (hppa_frame_align): New function.
7627 (hppa32_push_dummy_call): New function.
7628 (hppa64_push_dummy_call): New function.
7629 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7630 disabled.
8a1dac83 7631
da6bab63
AC
7632 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7633 FIX_CALL_DUMMY when push_dummy_call is available.
7634 (call_function_by_hand, push_dummy_code): Ditto.
7635
abf9b42d
AC
76362004-02-22 Andrew Cagney <cagney@redhat.com>
7637
7638 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7639 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7640 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7641 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7642 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7643 call_dummy_location to ON_STACK.
7644
10fc94a4
MK
76452004-02-22 Mark Kettenis <kettenis@gnu.org>
7646
51433e4b
MK
7647 * x86-64-linux-tdep.c: Tweak comment.
7648 (amd64_linux_supply_gregset): Renamed from
7649 x86_64_linux_supply_gresget.
7650 (amd64_linux_fill_gregset): Renamed from
7651 x86_64_linux_fill_gregset.
7652 (fetch_core_registers): Adjust for renamed functions.
7653 (amd64_core_fns): Renamed from x86_64_core_fns.
7654 (amd64_linux_sigtramp_start): Renamed from
7655 x86_64_linux_sigtramp_start.
7656 (amd64_linux_pc_in_sigtramp): Renamed from
7657 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7658 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7659 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7660 (amd64_linux_sigcontext_addr): Renamed from
7661 x86_64_linux_sigcontext_addr.
7662 (amd64_linux_sc_reg_offset): Renamed from
7663 x86_64_linux_sc_reg_offset.
7664 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7665 Adjust for renamed functions and variables.
7666 (_initialize_amd64_linux_tdep): Renamed from
7667 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7668 variables.
7669 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7670 Adjust for renamed functions.
7671
430eaf2e
MK
7672 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7673 from x86_64_linux_gregset64_reg_offset.
7674 (amd64_linux_gregset32_reg_offset): Rename from
7675 x86_64_linux_gregset64_reg_offset.
7676 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7677 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7678 (amd64_linux_dr_set_control): Renamed from
7679 x86_64_linux_dr_set_control. Adjust for renamed functions.
7680 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7681 Adjust for renamed functions.
7682 (amd64_linux_dr_reset_addr): Renamed from
7683 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7684 (amd64_linux_dr_get_status): Renamed from
7685 x86_64_linux_dr_get_status. Adjust for renamed functions.
7686 (_initialize_amd64_linux_nat): Renamed from
7687 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7688 functions.
7689 * config/i386/nm-x86-64linux.h: Update copyright year.
7690 Adjust for renamed functions.
7691
10fc94a4
MK
7692 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7693 amd64fbsd_sigtramp_start.
7694 (amd64fbsd_sigtramp_end_addr): Renamed from
7695 amd64fbsd_sigtramp_end.
7696 (amd64fbsd_init_abi): Adjust for renamed variables.
7697 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7698 variables.
7699 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7700 amd64fbsd_sigtramp_start.
7701 (amd64fbsd_sigtramp_end_addr): Renamed from
7702 amd64fbsd_sigtramp_end.
7703
343af405
AC
77042004-02-22 Andrew Cagney <cagney@redhat.com>
7705
537987fc
AC
7706 * hppa-tdep.c (hppa32_return_value): New function.
7707 (hppa64_return_value): New function.
7708 (hppa_gdbarch_init): Set return_value; keep disabled.
7709
fad850b2
AC
7710 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7711 struct-return and inferior function call methods.
7712
26d08f08
AC
7713 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7714 "frame-base.h".
7715 (struct hppa_frame_cache): Define.
7716 (hppa_frame_cache, hppa_frame_this_id): New functions.
7717 (hppa_frame_prev_register): New function.
7718 (hppa_frame_unwind, hppa_frame_base): New variables.
7719 (hppa_frame_unwind_sniffer): New function.
7720 (hppa_frame_base_address, hppa_unwind_pc): New function.
7721 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7722 sniffer, and frame base sniffer; keep disabled.
7723 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7724 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7725
e7d7bd65
AC
7726 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7727 to predicates for "seriously old code".
7728
e963316f
AC
7729 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7730 runtime if(0).
7731
56132691
AC
7732 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7733 unsigned.
7734 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 7735
343af405
AC
7736 * config/pa/tm-hppa.h: Update copyright.
7737 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7738 (deprecated_init_frame_pc_default): Delete declaration.
7739 (hppa_frame_init_saved_regs): Delete declaration.
7740 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7741 * hppa-tdep.c: Include "arch-utils.h".
7742 (hppa_gdbarch_init): Set deprecated init_frame_pc
7743 and deprecated frame_init_saved_regs.
7744 (hppa_frame_init_saved_regs): Make static.
7745
f5859b4d
MK
77462004-02-22 Mark Kettenis <kettenis@gnu.org>
7747
86f6f8e7 7748 Remove old 386BSD support.
cf7c5c23 7749 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
7750 * configure.host: Remove i[34567]86-*-bsd*.
7751 * configure.tgt: Remove i[34567]86-*-bsd*.
7752 * i386b-nat.c: Removed.
7753 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
7754 (i386b-nat.o): Remove dependencies.
7755
86f6f8e7
MK
7756 * config/i386/i386bsd.mh: Removed.
7757 * config/i386/i386bsd.mt: Removed.
7758 * config/i386/nm-i386bsd.h: Removed.
7759 * config/i386/tm-i386bsd.h: Removed.
7760 * config/i386/xm-i386bsd.h: Removed.
7761
971218cd
MK
7762 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7763
7e654c37
MK
7764 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7765 (amd64fbsd_init_abi): Set link map offsets.
7766 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7767 (amd64nbsd_init_abi): Set link map offsets.
7768 * amd64obsd-tdep.c: Include "solib-svr4.h".
7769 (amd64obsd_init_abi): Set link map offsets.
7770 * i386fbsd-tdep.c: Include "solib-svr4.h".
7771 (i386fbsd_init_abi): Set link map offsets.
7772 * i386nbsd-tdep.c: Include "solib-svr4.h".
7773 (i386nbsdelf_init_abi): Set link map offsets.
7774 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7775 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7776 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7777 solib-legacy.o and core-aout.o. Reformat.
7778 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7779 solib-svr4.o, solib-legacy.o. Reformat.
7780 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7781 * config/i386/nbsdelf.mh: Reformat.
7782 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7783 solib-svr4.o, solib-legacy.o and corelow.o.
7784 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7785 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7786 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7787 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7788 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7789 (TM_FILE): Set to tm-fbsd.h.
7790 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7791 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7792 solib-svr4.o.
7793 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7794 solib-svr4.o.
7795 (TM_FILE): Set to nm-nbsd.h.
7796 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7797 Simplify shared library support. Don't include "elf/common.h".
7798 (SVR4_SHARED_LIBS): Don't define.
7799 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7800 "solib.h".
7801 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7802 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7803 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7804 Don't include "i386/tm-i386.h". Include "solib.h".
7805 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7806 Don't include "i386/tm-i386.h".
7807 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7808 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7809 Include "i386/xm-i386.h".
7810 (HOST_LONG_DOUBLE_FORMAT): Remove.
7811
5d93ae8c
MK
7812 Fix OpenBSD/i386 sigtramp recognition.
7813 * i386-tdep.h: Update copyright year.
7814 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7815 (i386bsd_sigtramp_end): New prototypes.
7816 (i386fbsd_sigtramp_start_addr): Renamed from
7817 i386fbsd_sigtramp_start.
7818 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7819 (i386obsd_sigtramp_start_addr): Renamed from
7820 i386obsd_sigtramp_start.
7821 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7822 * i386bsd-tdep.c: Update copyright year.
7823 (i386bsd_pc_in_sigtramp): Make public.
7824 * i386fbsd-nat.c: Update copyright year.
7825 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7826 * i386fbsd-tdep.c: Update copyright year.
7827 (i386fbsd_sigtramp_start_addr): Renamed from
7828 i386fbsd_sigtramp_start.
7829 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7830 (i386fbsdaout_init_abi): Adjust for renamed variables.
7831 * i386obsd-nat.c: Update copyright year.
7832 (_initialize_i386obsd_nat): Adjust for renamed variables.
7833 * i386obsd-tdep.c: Include "target.h".
7834 (i386obsd_page_size): New variable.
7835 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7836 (i386obsd_sigtramp_end): New functions.
7837 (i386obsd_sigtramp_start_addr): Renamed from
7838 i386obsd_sigtramp_start.
7839 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7840 (i386obsd_init_abi): Adjust for renamed variables. Set
7841 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7842 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7843
84d04465
MK
7844 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7845 trampoline change in OpenBSD kernel.
7846
b053aceb
MK
7847 * amd64-nat.c: Update copyright year.
7848 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7849 architecture from REGCACHE.
7850
f5859b4d
MK
7851 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7852 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7853
e4bbbda8
MK
78542004-02-21 Mark Kettenis <kettenis@gnu.org>
7855
ba361932
MK
7856 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7857 i[34567]86-*-openbsd3.[0-3].
7858 * config/i386/obsdaout.mh: New file.
7859
d3e48264
MK
7860 * config/i386/obsd.mh (MH_FLAGS): Remove.
7861
60a6eeb6
MK
7862 Fix PR build/1549.
7863 * i386obsd-tdep.c: Update copyright years. Include
7864 "solib-svr4.h".
7865 (i386obsd_init_abi): Don't set regset_from_core_section here.
7866 (i386obsd_aout_init_abi): New function. Set
7867 regset_from_core_section here.
7868 (i386obsd_elf_init_abi): New function.
7869 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7870 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7871 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7872 (TM_FILE): Set to tm-nbsd.h.
7873
7874 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7875 solib-sunos.o.
7876
e4bbbda8
MK
7877 * solib-svr4.h: Update copyright year.
7878 (svr4_ilp32_fetch_link_map_offsets)
7879 (svr4_lp64_fetch_link_map_offsets): New prototype.
7880 * solib-svr4.c: Update copyright year.
7881 (svr4_ilp32_fetch_link_map_offsets)
7882 (svr4_lp64_fetch_link_map_offsets): New function.
7883
f6fe98ef
DJ
78842004-02-20 Daniel Jacobowitz <drow@mvista.com>
7885
7886 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7887 to the partial symbol table.
7888
589ca796
JB
78892004-02-20 J. brobecker <brobecker@gnat.com>
7890
7891 * PROBLEMS: Add description of problem documented under gdb/1560.
7892
2031c21a
MK
78932004-02-20 Mark Kettenis <kettenis@gnu.org>
7894
30b344b1
MK
7895 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7896 comments.
7897 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7898 functions.
7899 (amd64obsd_init_abi): Reorder initializations. Use
7900 amd64obsd_r_reg_offset to initialize the general-purpose register
7901 set details. Set regset_from_core_section.
7902 (_initialize_amd64obsd_tdep): Rename from
7903 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7904 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7905 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7906
2031c21a
MK
7907 * NEWS (New native configurations): Mention OpenBSD/alpha.
7908 * configure.tgt: Add alpha*-*-openbsd*.
7909 * configure.host: Add alpha*-*-openbsd*.
7910 * alphanbsd-tdep.c: Update copyright year.
7911 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7912
42471775
AC
79132004-02-20 Andrew Cagney <cagney@redhat.com>
7914
7915 Fix PR tdep/1372.
7916 * configure.tgt: Delete target "none-*-*".
7917 * configure.host: Delete host "none-*-*".
7918 * config/none/none.mh: Delete file.
7919 * config/none/none.mt: Delete file.
7920 * config/none/xm-none.h: Delete file.
7921 * config/none/tm-none.h: Delete file.
7922 * config/none/nm-none.h: Delete file.
7923
960ccd7d
FF
79242004-02-19 Fred Fish <fnf@redhat.com>
7925
7926 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7927 cache->uses_fp prior to setting it.
7928
5f883edd
FF
79292004-02-19 Fred Fish <fnf@redhat.com>
7930
7931 Fix for PR breakpoint/1558.
7932 * sh-tdep.c (IS_JSR): New macro.
7933 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7934
f98c22d5
JB
79352004-02-19 Jim Blandy <jimb@redhat.com>
7936
7937 * findvar.c (value_from_register): Doc fix.
7938
95051d27
JJ
79392004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7940
7941 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7942 type being greater than sizeof of host's LONGEST. Always use
7943 unpack_long() unless format 'f' chosen.
7944
ccefbec3
EZ
79452004-02-19 Joel Brobecker <brobecker@gnat.com>
7946
7947 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 7948
ccefbec3
EZ
7949 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7950 contains a symbol wich is the best, non-exact match for the given
7951 pc. Update comments.
7952
79532004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 7954
2ede629f
EZ
7955 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7956 macro, which was part of the now removed Mach 3 port.
7957 * utils.c (request_quit): Ditto.
7958
567ee972
MK
79592004-02-18 Mark Kettenis <kettenis@gnu.org>
7960
7961 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7962 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7963
50cca7bb
MK
79642004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7965
7966 Committed by Mark Kettenis <kettenis@gnu.org>.
7967
7968 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7969 Define.
7970
226361c4
AC
79712004-02-18 Andrew Cagney <cagney@redhat.com>
7972
7973 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7974 CONFIG_INSTALL and CONFIG_UNINSTALL.
7975 * configure: Re-generate.
7976 * interps.h (INTERP_TUI): Define.
7977 * Makefile.in: Update dependencies.
7978 (TUI): New macro.
7979 (tui-main.o): Specify dependencies.
7980 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7981 * tui/tui-main.c: New file.
7982
49cfa46f
MK
79832004-02-18 Mark Kettenis <kettenis@gnu.org>
7984
e2879ccb
MK
7985 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
7986 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
7987 dependencies.
7988 * configure.host: Add x86_64-*-openbsd*.
7989 * configure.tgt: Add x86_64-*-openbsd*.
7990 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
7991
c43f4bec
MK
7992 * tui/tui.c: Don't include <malloc.h>.
7993
09ae75b6
MK
7994 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
7995 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
7996 amd64nbsd-tdep.c.
7997
49cfa46f 7998 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 7999 static. Remove extraneous whitespace.
49cfa46f
MK
8000 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8001 static.
8002
05957fdb
JB
80032004-02-17 Jim Blandy <jimb@redhat.com>
8004
8005 * findvar.c (value_from_register): Doc fix.
8006
d0f54f9d
JB
80072004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8008
8009 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 8010
8a1dac83 8011 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
8012 CORE_ADDR as type for selectors. Correct types for GNU run time
8013 message lookup function to use double indirection.
8014 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8015 * objc-lang.h (lookup_child_selector): Adapt prototype.
8016
9cbd5950
JB
8017 * s390-nat.c (SUBOFF): New macro.
8018 (supply_gregset, fill_gregset): Use it to handle debugging
8019 of 32-bit exectuables running under a 64-bit kernel.
8020 * s390-tdep.c: Include "solib-svr4.h".
8021 (s390_svr4_fetch_link_map_offset): New function.
8022 (s390x_svr_fetch_link_map_offset): Likewise.
8023 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8024 * Makefile.in (s390-tdep.o): Update dependencies.
8025
a8c99f38
JB
8026 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8027 "frame-unwind.h".
8028 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8029 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8030 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8031 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8032 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8033 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 8034 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
8035 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8036 (struct frame_extra_info): Remove.
8037 (s390_memset_extra_info): Remove.
f73b1eff
JB
8038 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8039 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8040 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
8041 (is_rse): Renamed to ...
8042 (is_rsy): ... this. Support long displacements.
8043 (is_rxe): Renamed to ...
8044 (is_rxy): ... this. Support long displacements.
8045 (compute_x_addr): Support long displacements.
8046 (struct s390_prologue_data): New data type.
8047 (s390_on_stack): Change API to use struct s390_prologue_data.
8048 (s390_store): Reimplement.
8049 (s390_load): New function.
8050 (s390_get_signal_frame_info): Remove.
8051 (s390_get_frame_info): Remove, replace by ...
8052 (s390_analyze_prolog): ... this new function.
8053 (s390_check_function_end): Remove.
8054 (s390_function_start): Remove.
8055 (s390_frameless_function_invokation): Remove.
8056 (s390_is_sigreturn): Remove.
8057 (s390_init_frame_pc_first): Remove.
8058 (s390_init_frame_extra_info): Remove.
8059 (s390_frame_init_saved_regs): Remove.
8060 (s390_frame_saved_pc_nofix): Remove.
8061 (s390_frame_saved_pc): Remove.
8062 (s390_frame_chain): Remove.
8063 (s390_fp_regnum, s390_read_fp): Remove.
8064 (s390_pop_frame_regular, s390_pop_frame): Remove.
8065 (s390_saved_pc_after_call): Remove.
8066 (s390_skip_prologue): Reimplement.
8067 (s390_in_function_epilogue_p): Support long displacements.
8068 (struct s390_unwind_cache): New data structure.
8069 (s390_frame_unwind_cache): New function.
8070 (s390_prologue_frame_unwind_cache): Likewise.
8071 (s390_backchain_frame_unwind_cache): Likewise.
8072 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8073 (s390_frame_unwind): Define.
8074 (s390_frame_sniffer): New function.
8075 (struct s390_pltstub_unwind_cache): New data structure.
8076 (s390_pltstub_frame_unwind_cache): New function.
8077 (s390_pltstub_frame_this_id): Likewise.
8078 (s390_pltstub_frame_prev_register): Likewise.
8079 (s390_pltstub_frame_unwind): Define.
8080 (s390_pltstub_frame_sniffer): New function.
8081 (struct s390_sigtramp_unwind_cache): New data structure.
8082 (s390_sigtramp_frame_unwind_cache): New function.
8083 (s390_sigtramp_frame_this_id): Likewise.
8084 (s390_sigtramp_frame_prev_register): Likewise.
8085 (s390_sigtramp_frame_unwind): Define.
8086 (s390_sigtramp_frame_sniffer): New function.
8087 (s390_frame_base_address, s390_local_base_address): New functions.
8088 (s390_frame_base): Define.
8089 (s390_unwind_pc, s390_unwind_sp): New function.
8090 (s390_push_dummy_call): Use new frame base location.
8091 (s390_unwind_dummy_id): Likewise.
8092 (s390_gdbarch_init): Remove calls to:
8093 set_gdbarch_frameless_function_invocation,
8094 set_gdbarch_deprecated_init_frame_pc,
8095 set_gdbarch_deprecated_frame_chain,
8096 set_gdbarch_deprecated_frame_init_saved_regs,
8097 set_gdbarch_deprecated_pop_frame,
8098 set_gdbarch_deprecated_init_extra_frame_info,
8099 set_gdbarch_deprecated_init_frame_pc_first,
8100 set_gdbarch_deprecated_target_read_fp,
8101 set_gdbarch_deprecated_frame_saved_pc,
8102 set_gdbarch_deprecated_saved_pc_after_call,
8103 set_gdbarch_deprecated_fp_regnum.
8104 Add calls to:
8105 set_gdbarch_in_solib_call_trampoline,
8106 frame_unwind_append_sniffer,
8107 frame_base_set_default,
8108 set_gdbarch_unwind_pc,
8109 set_gdbarch_unwind_sp.
8110 * Makefile.in (s390-tdep.o): Update dependencies.
8111
b0cf273e
JB
8112 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8113 (S390_STACK_FRAME_OVERHEAD): Remove.
8114 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8115 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8116 (s390_promote_integer_argument): Remove.
8117 (s390_cannot_extract_struct_value_address): Remove.
8118 (s390_use_struct_convention, s390_store_struct_return): Remove.
8119 (s390_extract_return_value, s390_store_return_value): Remove.
8120 (s390_return_value_convention, s390_return_value): New functions.
8121 (is_float_singleton): Handle typedefs.
8a1dac83 8122 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
8123 Remove, replace by ...
8124 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8125 s390_function_arg_integer): ... these new functions.
8126 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8127 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8128 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8129 Fill in tdep->abi.
8130 Remove calls to:
8131 set_gdbarch_deprecated_store_struct_return,
8132 set_gdbarch_deprecated_extract_return_value,
8133 set_gdbarch_deprecated_store_return_value,
8134 set_gdbarch_use_struct_convention,
8135 set_gdbarch_extract_struct_value_address,
8136 set_gdbarch_deprecated_pc_in_call_dummy,
8137 set_gdbarch_deprecated_push_arguments,
8138 set_gdbarch_deprecated_save_dummy_frame_tos,
8139 set_gdbarch_deprecated_push_return_address,
8140 set_gdbarch_deprecated_sizeof_call_dummy_words,
8141 set_gdbarch_deprecated_call_dummy_words,
8142 set_gdbarch_deprecated_dummy_write_sp.
8143 Add calls to:
8144 set_gdbarch_push_dummy_call,
8145 set_gdbarch_unwind_dummy_id,
8146 set_gdbarch_return_value.
8a1dac83 8147
e1457d83
JB
8148 * config/s390/nm-linux.h: Update comments.
8149 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8150 (STOPPED_BY_WATCHPOINT): Redefine.
8151 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8152 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8153 (s390_stopped_by_watchpoint): Likewise.
8154 (watch_area_cnt): Remove.
8155 * s390-nat.c: Update comments.
8156 (watch_area): Remove typedef.
8157 Global replace watch_area by struct watch_area.
8158 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 8159 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
8160 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8161 (s390_fix_watch_points): Remove pid argument,
8162 use s390_inferior_tid. Recompute area spanned by watchpoints.
8163 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8164 argument. Reimplement.
8165
d0f54f9d
JB
8166 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8167 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8168 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 8169 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
8170 core-regset.o.
8171 * config/s390/s390x.mt: Remove.
8172 * config/s390/tm-s390.h: Remove.
8173 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8174 (TARGET_ELF64): Remove.
8175 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8176 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8177 s390*-*-* case; always set gdb_target to s390.
8178 * regformats/reg-s390.dat: Remove control registers.
8179 * regformats/reg-s390x.dat: Likewise.
8180 * s390-tdep.h: New file.
8a1dac83 8181 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
8182 Include "inferior.h" and "s390-tdep.h".
8183 Remove private definition of offsetof.
8184 (s390_register_u_addr): Remove.
8185 (regmap_gregset, regmap_fpregset): Define.
8186 (supply_gregset, fill_gregset): Reimplement.
8187 (supply_fpregset, fill_fpregset): Likewise.
8188 (s390_inferior_tid): New function.
8189 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8190 (fetch_inferior_registers, store_inferior_registers): Likewise.
8191 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8192 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8193 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8194 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8195 (struct gdbarch_tdep): Define.
8196 (struct s390_register_info): Define.
8197 (s390_register_info): New variable.
8198 (s390_register_name): Reimplement.
8199 (s390_register_type): New function.
8200 (s390_register_raw_size, s390x_register_raw_size): Remove.
8201 (s390_cannot_fetch_register): Remove.
8202 (s390_register_byte): Remove.
8203 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8204 (s390_dwarf_regmap): New variable.
8205 (s390_dwarf_reg_to_regnum): New function.
8206 (s390_stab_reg_to_regnum): Remove.
8207 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8208 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8209 (s390_convert_register_p): Likewise.
8210 (s390_register_to_value, s390_value_to_register): Likewise.
8211 (s390_register_reggroup_p): Likewise.
8212 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8213 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8214 (s390_supply_regset, s390_regset_from_core_section): New functions.
8215 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8216 (S390_FPR_SIZE): Likewise.
8217 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8218 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8219 (S390_NUM_GPRS): Move here from tm-s390.h.
8220 (S390_NUM_FPRS): Likewise.
8221 (s390_in_function_epilogue_p): New function.
8222 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8223 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8224 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8225 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8226 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8227 Remove calls to:
8228 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
8229 set_gdbarch_deprecated_max_register_virtual_size,
8230 set_gdbarch_deprecated_register_byte,
d0f54f9d 8231 set_gdbarch_cannot_fetch_register,
8a1dac83 8232 set_gdbarch_cannot_store_register,
d0f54f9d
JB
8233 set_gdbarch_deprecated_register_size,
8234 set_gdbarch_deprecated_register_raw_size,
8235 set_gdbarch_deprecated_register_virtual_size,
8236 set_gdbarch_deprecated_register_virtual_type,
8237 set_gdbarch_deprecated_register_bytes.
8238 Add calls to:
8239 set_gdbarch_num_pseudo_regs,
8240 set_gdbarch_register_type,
8241 set_gdbarch_convert_register_p,
8242 set_gdbarch_register_to_value,
8243 set_gdbarch_value_to_register,
8244 set_gdbarch_register_reggroup_p,
8245 set_gdbarch_regset_from_core_section,
8246 set_gdbarch_pseudo_register_read,
8247 set_gdbarch_pseudo_register_write,
8248 set_gdbarch_in_function_epilogue_p.
8249 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8250 (s390_tdep_h): New variable.
8251
8cfe231d
JB
82522004-02-17 Jim Blandy <jimb@redhat.com>
8253
4589a601
JB
8254 * findvar.c (value_from_register): If the type has no length, just
8255 return an acceptable value --- don't report an internal error.
8256
8cfe231d
JB
8257 * stabsread.c (read_type): If we find any type numbers that are
8258 forward references, complain if the references aren't resolved by
8259 the time we're finished reading.
8260 (cleanup_undefined_types): Make error message more appropriate for
8261 a complaint.
8262
5bf0017e
EZ
82632004-02-17 Elena Zannoni <ezannoni@redhat.com>
8264
9d62932d
EZ
8265 * Makefile.in (defs_h): Remove dependency on progress_h.
8266 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8267 progress.h.
8268 * main.c (captured_main): Delete use of START_PROGRESS and
8269 END_PROGRESS.
8270
82712004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 8272
5bf0017e
EZ
8273 * objfiles.c (terminate_minimal_symbol_table): Add back
8274 initialization of MSYMBOL_TYPE.
8275
9fc9f5e2
AC
82762004-02-17 David Mosberger <davidm@hpl.hp.com>
8277
8278 Committed by Andrew Cagney.
8279 * Makefile.in (ia64_tdep_h): New macro.
8280 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8281 (ia64-tdep.o): Likewise.
8282 * ia64-tdep.h: New file.
8283 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8284 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8285 (ia64_aix_sigcontext_register_address): Likewise.
8286 (ia64_linux_getunwind_table): Delete declaration.
8287 * ia64-linux-tdep.c: Likewise.
8288
76cd2bd9
CV
82892004-02-17 Corinna Vinschen <vinschen@redhat.com>
8290
8291 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8292 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8293 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8294
634aa483
AC
82952004-02-17 Andrew Cagney <cagney@redhat.com>
8296
8297 * symtab.c (skip_prologue_using_sal): New function.
8298 * symtab.h (skip_prologue_using_sal): Declare.
8299 * frv-tdep.c: Include "symtab.h".
8300 (skip_prologue_using_sal): Delete function.
8301 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8302 * rs6000-tdep.c (refine_prologue_limit): Mention
8303 skip_prologue_using_sal.
8304 * ia64-tdep.c (refine_prologue_limit): Ditto.
8305 * Makefile.in: Update dependencies.
8306
83072004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 8308
39ce7b3f
AC
8309 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8310 START_INFERIOR_TRAPS_EXPECTED.
8311 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8312 START_INFERIOR_TRAPS_EXPECTED.
8313 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8314 Delete macro.
8315 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8316 macro, moved to "nm-osf.h". Update copyright.
8317 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8318 update copyright.
8319
19772a2c
AC
8320 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8321 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8322 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8323 frameless_look_for_prologue.
8324 * frame.h (legacy_frameless_look_for_prologue): Rename
8325 frameless_look_for_prologue.
8326 * gdbarch.h, gdbarch.c: Re-generate.
8327 * sh64-tdep.c (sh64_gdbarch_init): Update.
8328 * sh-tdep.c (sh_gdbarch_init): Update.
8329 * s390-tdep.c (s390_gdbarch_init): Update.
8330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8331 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8332 * m68k-tdep.c (m68k_gdbarch_init): Update.
8333 (delta68_frame_args_address): Update.
8334 * m32r-tdep.c (m32r_gdbarch_init): Update.
8335 * hppa-tdep.c (hppa_gdbarch_init): Update.
8336 * h8300-tdep.c (h8300_gdbarch_init): Update.
8337 * frv-tdep.c (frv_gdbarch_init): Update.
8338 (frv_frameless_function_invocation): Update.
8339 * cris-tdep.c (cris_gdbarch_init): Update.
8340 (cris_frameless_function_invocation): Update.
8341 * avr-tdep.c (avr_gdbarch_init): Update.
8342 * arm-tdep.c (arm_gdbarch_init): Update.
8343 * stack.c (frame_info): Update, call predicate.
8344 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8345 * frame.c (legacy_get_prev_frame): Update, call predicate..
8346 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8347 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8348 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8349 invocation.
8350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8351 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8352 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
8353
8354 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8355 function.
8356
7dcaac91
DJ
83572004-02-16 Daniel Jacobowitz <drow@mvista.com>
8358
8359 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8360 initializations.
8361
88289b6e
AC
83622004-02-16 Andrew Cagney <cagney@redhat.com>
8363
8364 * tui/tui-windata.c: Include "gdb_string.h".
8365 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8366 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8367 * Makefile.in: Update dependencies.
8368
9f976b41
DJ
83692004-02-16 Daniel Jacobowitz <drow@mvista.com>
8370
8371 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8372 * infrun.c: Include "gdb_assert.h".
8373 (singlestep_ptid, saved_singlestep_ptid)
8374 (stepping_past_singlestep_breakpoint): New variables.
8375 (resume): Set singlestep_ptid. Check for singlestep thread
8376 hop.
8377 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8378 (handle_inferior_event): Handle singlestep thread hop.
8379
c324d747
AC
83802004-02-16 Andrew Cagney <cagney@redhat.com>
8381
f090b9b1
AC
8382 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8383 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8384 (dwarf2_frame_init_reg): Ditto.
8385
fd33e6cb
AC
8386 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8387 suggested by Joshua Neuheisel
8388
c324d747
AC
8389 * configure.in: Always check for curses, including pdcurses.
8390 Warn, instead of error, when no curses are found. Enable TUI when
8391 curses is available.
8392 * configure: Re-generate.
8393
b66ba949
CV
83942004-02-16 Corinna Vinschen <vinschen@redhat.com>
8395
8396 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8397 sh_sh4_register_convert_to_virtual.
8398 (sh_register_convert_to_raw): Rename from
8399 sh_sh4_register_convert_to_raw.
8400 (sh_pseudo_register_read): Accomodate above name change.
8401 (sh_pseudo_register_write): Ditto.
8402
b58cbbf2
CV
84032004-02-16 Corinna Vinschen <vinschen@redhat.com>
8404
8405 * sh-tdep.c (sh_generic_register_name): Remove.
8406 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8407
5929a910
AC
84082004-02-15 Andrew Cagney <cagney@redhat.com>
8409
4566dfcf
AC
8410 * configure.in (build_warnings): Add -Wunused-function.
8411 * configure: Re-generate.
8412
db11ed55
AC
8413 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8414 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8415
46ac7a5d
AC
8416 * procfs.c (procfs_init_inferior): Assume that
8417 START_INFERIOR_TRAPS_EXPECTED is defined.
8418 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8419 * config/ns32k/tm-nbsd.h: Delete file,
8420 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8421
ba801595
AC
8422 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8423 * config/vax/tm-vax.h: Delete file.
8424
5929a910
AC
8425 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8426 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8427 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8428 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8429 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8430 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8431 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8432
8f22cb90
MK
84332004-02-15 Mark Kettenis <kettenis@gnu.org>
8434
8435 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8436 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8437 (struct dwarf2_frame_ops): New.
8438 (dwarf2_frame_default_init_reg): New function, based on
8439 dwarf2_frame_init_reg.
8440 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8441 (dwarf2_frame_init_reg): Call architecture-specific function.
8442 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8443 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8444 instead of dwarf2_frame_data.
8445 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8446 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8447
8132723e
AC
84482004-02-15 Andrew Cagney <cagney@redhat.com>
8449
046a4708
AC
8450 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8451 register_gdbarch_swap.
8452 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8453 * f-lang.c (_initialize_f_language): Update, use
8454 DEPRECATED_REGISTER_GDBARCH_SWAP.
8455 * remote.c (_initialize_remote): Ditto.
8456 * regcache.c (_initialize_regcache): Ditto.
8457 * parse.c (_initialize_parse): Ditto.
8458 * infrun.c (_initialize_infrun): Ditto.
8459 * mi/mi-main.c (_initialize_mi_main): Ditto.
8460 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 8461
549c1eea
AC
8462 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8463 poking .cacheable directly.
8464 * symfile.c (symfile_bfd_open): Ditto.
8465
0c0b39de
AC
8466 * Makefile.in: Update all dependencies.
8467
8132723e
AC
8468 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8469 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8470 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8471 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8472 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 8473
b9d26eb9
AC
84742004-02-14 Andrew Cagney <cagney@redhat.com>
8475
8e1f669a
AC
8476 * arch-utils.c (legacy_convert_register_p): Check
8477 DEPRECATED_REGISTER_CONVERTIBLE_P.
8478 * findvar.c (value_of_register): Ditto.
8479
cd0bfa36
AC
8480 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8481 * gdbarch.h, gdbarch.c: Re-generate.
8482 * arch-utils.c (deprecated_register_convertible_not): Delete.
8483 * arch-utils.h (deprecated_register_convertible_not): Delete.
8484 * mi/mi-main.c (get_register): Update. Update copyright.
8485 * infcmd.c (default_print_registers_info): Update.
8486
b9d26eb9
AC
8487 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8488 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8489 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 8490 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
8491 * frame.c (deprecated_get_next_frame_hack): Delete function.
8492 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8493 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8494 Update.
8495 * infcall.c (call_function_by_hand): Update.
8496
9ab9195f
EZ
84972004-02-14 Elena Zannoni <ezannoni@redhat.com>
8498
8499 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 8500 from here...
9ab9195f
EZ
8501 * objfiles.c (init_entry_point_info, entry_point_address):..to
8502 here.
8503 * symfile.h (init_entry_point_info, entry_point_address): Remove
8504 prototypes.
8505 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 8506 prototypes.
9ab9195f
EZ
8507 * cris-tdep.c: Remove include of symfile.h. Add include of
8508 objfiles.h.
8509 * infcall.c: Ditto.
8510 * mcore-tdep.c: Ditto.
8511 * mn10300-tdep.c: Ditto.
8512 * sh64-tdep.c: Ditto.
8513 * v850-tdep.c: Ditto.
8514 * arm-tdep.c: Remove include of symfile.h.
8515 * blockframe.c: Ditto.
8516 * coffread.c: Ditto.
8517 * dbxread.c: Ditto.
8518 * dwarf2read.c: Ditto.
8519 * dwarfread.c: Ditto.
8a1dac83 8520 * frv-tdep.c: Ditto.
9ab9195f
EZ
8521 * ia64-tdep.c: Ditto.
8522 * mdebugread.c: Ditto.
8523 * mipsread.c: Ditto.
8a1dac83 8524 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
8525 * s390-tdep.c: Ditto.
8526 * sh-tdep.c: Ditto.
8a1dac83 8527 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
8528 * gdbarch.sh: Remove include of symfile.h.
8529 * gdbarch.c: Regenerate.
8530 * solib-irix.c (enable_break): Use entry_point_address().
8531 Add comment about include file.
8532 * xcoffread.c: Add comment about include file.
8a1dac83
RM
8533 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8534 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8535 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8536 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
8537 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8538
c4c5b7ba
AC
85392004-02-13 Andrew Cagney <cagney@redhat.com>
8540
8541 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8542 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8543 copyright.
8544 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8545
3e7879de
FF
85462004-02-12 Fred Fish <fnf@redhat.com>
8547
8548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8549 set_gdbarch_store_return_value.
8550
6a7760b6
AC
85512004-02-12 Andrew Cagney <cagney@redhat.com>
8552
8553 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8554 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8555 (interrupt_query): Ditto.
8556 (ofunc): Delete unused variable.
8557 * cris-tdep.c (cris_abi): Delete unused function.
8558 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8559 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8560 (cris_get_asr_quick_shift_steps): Ditto.
8561 (cris_skip_prologue_frameless_p): Ditto.
8562 * arm-tdep.c (arm_push_return_address): Delete unused function.
8563 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8564 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8565 * s390-tdep.c (s390_function_start): Delete unused function.
8566
31687c3c
AC
85672004-02-12 Andrew Cagney <cagney@redhat.com>
8568
8569 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8570 gdbarch.h, gdbarch.c: Re-generate.
8571 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8572 to generic_prologue_frameless_p.
8573 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8574 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8575
6de918a6
DJ
85762004-02-11 Daniel Jacobowitz <drow@mvista.com>
8577
8578 * mips-linux-tdep.c: Include "frame.h".
8579 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8580 (mips_linux_skip_resolver): New functions.
8581 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8582 and set_gdbarch_in_solib_call_trampoline.
8583 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8584 to after set_gdbarch_in_solib_return_trampoline. Only set the
8585 solib hooks to mips16 functions if the OS ABI is unknown.
8586 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8587 including "config/tm-linux.h".
8588 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8589 * Makefile.in (mips-linux-tdep.o): Update.
8590
87b3ede8
DC
85912004-02-11 David Carlton <carlton@kealia.com>
8592
8593 * linespec.c (decode_compound): Only look for a class symbol when
8594 considering all but the rightmost component.
8595
5979bc46
AC
85962004-02-11 Andrew Cagney <cagney@redhat.com>
8597
8598 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8599 abi code are are separatly grouped.
8600
5867a2fb
AC
86012004-02-11 Andrew Cagney <cagney@redhat.com>
8602
8603 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8604 * gdbarch.h, gdbarch.c: Re-generate.
8605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8606 * v850-tdep.c (v850_gdbarch_init): Update.
8607 * sh64-tdep.c (sh64_gdbarch_init): Update.
8608 * sh-tdep.c (sh_gdbarch_init): Update.
8609 * s390-tdep.c (s390_gdbarch_init): Update.
8610 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8611 * mips-tdep.c (mips_gdbarch_init): Update.
8612 * mcore-tdep.c (mcore_gdbarch_init): Update.
8613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8614 * m32r-tdep.c (m32r_gdbarch_init): Update.
8615 * ia64-tdep.c (ia64_gdbarch_init): Update.
8616 * hppa-tdep.c (hppa_gdbarch_init): Update.
8617 * h8300-tdep.c (h8300_gdbarch_init): Update.
8618 * frv-tdep.c (frv_gdbarch_init): Update.
8619 * d10v-tdep.c (d10v_gdbarch_init): Update.
8620 * cris-tdep.c (cris_gdbarch_init): Update.
8621 * avr-tdep.c (avr_gdbarch_init): Update.
8622 * arm-tdep.c (arm_gdbarch_init): Update.
8623 * alpha-tdep.c (alpha_gdbarch_init): Update.
8624
026a72f8
CV
86252004-02-11 Corinna Vinschen <vinschen@redhat.com>
8626
8627 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8628 comma.
8629 (sh_sh4al_dsp_register_name): Ditto.
8630
3903d437
AC
86312004-02-10 Andrew Cagney <cagney@redhat.com>
8632
8633 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8634 (mips_init_frame_pc_first): Delete function.
8635 (mips_frame_saved_pc): Delete function.
8636 (mips_frame_chain): Delete function.
8637 (mips_init_extra_frame_info): Delete function.
8638 (mips_xfer_register): Delete unused variable "reg".
8639 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8640 (mips_n32n64_return_value): Delete unused variable "reg".
8641 (mips_n32n64_return_value): Delete unused variable "pos".
8642 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8643 (mips_o32_return_value): Delete unused variable "pos".
8644 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8645 (mips_print_fp_register): Delete unused variable "namelen"
8646 (mips_print_fp_register): Delete unused variable "flt2"
8647 (get_frame_pointer): Delete function.
8648 (cached_proc_desc): Delete static variable.
8649 (mips_pop_frame): Delete function.
8650 (mips_find_saved_regs): Delete function.
8651 (mips_get_saved_register): Delete function.
8652 (mips_saved_pc_after_call): Delete function.
8653 (SIGFRAME_BASE): Delete macro.
8654 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8655 (SIGFRAME_PC_OFF): Delete macro.
8656 (SIGFRAME_REGSAVE_OFF): Delete macro.
8657 (mips_dump_tdep): Do not print deleted macro definitions.
8658
b9fb98bd
AC
86592004-02-10 Andrew Cagney <cagney@redhat.com>
8660
8661 * Makefile.in (SFILES): Remove explictly listed tui files.
8662 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8663
78ced177 86642004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 8665
78ced177
JJ
8666 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8667 to use paddr functions to format ia64 addresses and long values.
8668 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8669 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8670 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8671 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8672 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8673
6a83354a
AC
86742004-02-10 Andrew Cagney <cagney@redhat.com>
8675
8676 * defs.h: Do not include "tui.h".
8677 * gdb_curses.h: New file.
8678 * tui/tui-hooks.h: New file.
8679 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8680 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8681 (tui_initialize_io): Delete declaration.
8682 (tui_initialize_readline: Delete redundant declaration.
8683 (struct tui_point): Delete definition.
8684 * tui/tui-data.h (struct tui_point): Define.
8685 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8686 * utils.c: Include "tui/tui.h".
8687 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8688 * printcmd.c [TUI]: Include "tui/tui.h".
8689 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8690 * tui/tui-command.c: Include "gdb_curses.h".
8691 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8692 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8693 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8694 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8695 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8696 * Makefile.in: Update all dependencies.
8697 (tui_hooks_h, gdb_curses_h): Define.
8698 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8699
997470ef
EZ
87002004-02-10 Elena Zannoni <ezannoni@redhat.com>
8701
8702 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8703 auxf2. Add comments about some other rarely used fields.
8704
4ff2cc4d
AC
87052004-02-10 Andrew Cagney <cagney@redhat.com>
8706
8707 * Makefile.in (init.c): Fix script removing duplicates. Problem
8708 reported by Peter Schauer.
8709
1ab21617
EZ
87102004-02-09 Elena Zannoni <ezannoni@redhat.com>
8711
8712 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8713 obstack_specify_allocation.
8714 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 8715 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
8716 (allocate_rt_common_objfile): Ditto.
8717 * symfile.c (reread_symbols): Ditto.
8718 * gdb_obstack.h: Add comment.
8719
17763fd9
EZ
87202004-02-09 Elena Zannoni <ezannoni@redhat.com>
8721
8722 * linespec.c (decode_line_1, locate_first_half)
8723 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8724 commented out code.
8725
ec5cdd75
DJ
87262004-02-09 Daniel Jacobowitz <drow@mvista.com>
8727
8728 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8729 obstack_free.
8730
43b54b88
AC
87312004-02-09 Andrew Cagney <cagney@redhat.com>
8732
8733 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8734 fails, try find_pc_section. Fix PR c++/1267.
8735 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8736 instead of find_pc_mapped_section.
8737 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8738 not default to the section containing PC. Fix PR symtab/1519.
8739
edfae063
AC
87402004-02-09 Andrew Cagney <cagney@redhat.com>
8741
8742 * Makefile.in (mips-tdep.o): Update dependencies.
8743 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8744 "trad-frame.h".
8745 (mips_unwind_pc): Return the pseudo PC register.
8746 (mips_unwind_dummy_id): New function.
8747 (mips16_fetch_instruction): New function.
8748 (mips32_fetch_instruction): New function.
8749 (struct mips_frame_cache): Define.
8750 (mips_mdebug_frame_cache): New function.
8751 (mips_mdebug_frame_this_id): New function.
8752 (mips_mdebug_frame_prev_register): New function.
8753 (mips_mdebug_frame_unwind): Define.
8754 (mips_mdebug_frame_sniffer): New function.
8755 (mips_mdebug_frame_base_address): New function.
8756 (mips_mdebug_frame_base): Define.
8757 (mips_mdebug_frame_base_sniffer): New function.
8758 (mips_gdbarch_init): Append unwind and base sniffers. Set
8759 unwind_dummy_id.
8760
defc864c
AC
87612004-02-08 Andrew Cagney <cagney@redhat.com>
8762
6764ddad
AC
8763 * frame.c: Print both the register number and name.
8764
defc864c
AC
8765 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8766 and a sed into a single sed. Make .c and .o patterns more robust.
8767 (OBS): Delete.
8768 (INIT_FILES): Replace OBS with COMMON_OBS.
8769 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8770
645d6d10
MK
87712004-02-08 Mark Kettenis <kettenis@gnu.org>
8772
8773 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8774 the PT_WCOOKIE request.
8775
23e3c3fc
AC
87762004-02-08 Andrew Cagney <cagney@redhat.com>
8777
58dfe9ff
AC
8778 * mips-tdep.c (mips_unwind_pc): New function.
8779 (mips_gdbarch_init): Set mips_unwind_pc.
8780
1152e35e
AC
8781 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8782 (get_frame_id): Allow the UNKNOWN_FRAME.
8783 (frame_register_unwind, get_frame_type): Ditto.
8784
31b75dbf
AC
8785 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8786 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8787 unwind_dummy_id indicates a legacy frame.
8788
3483b318
AC
8789 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8790 * configure: Re-generate.
8791
23e3c3fc
AC
8792 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8793 methods.
8794
33f8ca73
AC
87952004-02-08 Andrew Cagney <cagney@redhat.com>
8796
8797 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8798 makefile macro.
8799 * configure: Re-generate.
8800 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8801 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8802 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8803 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8804 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8805 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8806 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8807 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8808 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8809 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8810
6ba8e26f 88112004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 8812
20d286a5
AC
8813 * Makefile.in: Update all dependencies.
8814
d836ee13
AC
8815 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8816 * configure: Re-generate.
8817 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8818 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8819 (COMMON_OBS): Add "main.o" and "annotate.o".
8820 (ANNOTATE_OBS): Delete.
8821 (OBS): Remove ANNOTATE_OBS.
8822 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8823 CONFIG_INITS.
8824 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8825 against CONFIG_OBS and "main.o".
8826 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8827 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8828
d02c80cd
AC
8829 * tui/tui-command.c: Include "gdb_string.h", delete register
8830 attribute, use ISO-C function signatures.
8831 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8832 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8833 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8834 * tui/tui.c: Ditto.
6ba8e26f
AC
8835
8836 * tui/tui-command.c: Change variable and function names to lower
8837 case.
8838 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8839 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8840 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8841 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8842 * tui/tui-winsource.c, tui/tui.c: Ditto.
8843
4a146b47
EZ
88442004-02-07 Elena Zannoni <ezannoni@redhat.com>
8845
8846 * buildsym.c (free_pending_blocks, finish_block)
8847 (record_pending_block, make_blockvector, end_symtab): Replace
8848 symbol_obstack with objfile_obstack.
8a1dac83 8849 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 8850 (coff_read_enum_type): Ditto.
8a1dac83 8851 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 8852 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 8853 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
8854 (dwarf2_symbol_mark_computed): Ditto.
8855 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8856 * elfread.c (elf_symtab_read): Ditto.
8857 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8858 (hpread_read_enum_type, hpread_read_function_type)
8859 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8860 Ditto.
8a1dac83 8861 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 8862 (java_link_class_type): Ditto.
8a1dac83 8863 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
8864 (new_symbol): Ditto.
8865 * minsyms.c (install_minimal_symbols): Ditto.
8866 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8867 (terminate_minimal_symbol_table): Replace symbol_obstack with
8868 objfile_obstack.
8869 (free_objfile): Remove freeing of symbol_obstack.
8870 * objfiles.h: Remove symbol_obstack field.
8871 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8872 objfile_obstack.
8873 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8874 symbol_obstack.
8875 (solib_add_common_symbols): Replace symbol_obstack with
8876 objfile_obstack.
8877 * somsolib.c (som_solib_add): Ditto.
8878 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8879 (common_block_start, common_block_end): Ditto.
8880 * symfile.c (reread_symbols): Remove freeing and init of
8881 symbol_obstack.
8882 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8883 * symfile.h: Update comment.
8884 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8885 stats printing.
8886 * symtab.c (symbol_set_names): Replace symbol_obstack with
8887 objfile_obstack.
8888 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8889 Update comments.
8890 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8891 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8892 objfile_obstack.
8893
6d012f14
AC
88942004-02-07 Andrew Cagney <cagney@redhat.com>
8895
8896 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8897 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8898 fields and variables.
8899 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8900 (m_beInvisible): Delete macro.
8901 * tui/tui-data.h: Fix case case fields and variables.
8902 (m_genWinPtrIsNull): Delete macro.
8903 (tui_win_list): Rename winList.
8904 (TUI_SRC_WIN): Rename srcWin.
8905 (TUI_DISASM_WIN): Rename disassemWin.
8906 (TUI_DATA_WIN): Rename dataWin.
8907 (TUI_CMD_WIN): Rename cmdWin.
8908 (m_genWinPtrNotNull): Delete macro.
8909 (m_winPtrIsNull): Delete macro.
8910 (m_winPtrNotNull): Delete macro.
8911 (tui_win_is_source_type): Replace m_winIsSourceType
8912 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8913 (tui_win_has_locator): Replace m_hasLocator.
8914 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8915 m_setWinHighlightOff.
8916 * tui/tui-data.c: Update references.
8917 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8918 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8919 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8920 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8921 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8922 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8923 * tui/tui-winsource.c, tui/tui.c: Ditto.
8924
7d34766b
MK
89252004-02-07 Mark Kettenis <kettenis@gnu.org>
8926
1c800673
MK
8927 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8928 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8929 StackGhost.
8930
7d34766b
MK
8931 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8932 variable `i6' to `i7'.
8933 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8934
22940a24
AC
89352004-02-07 Andrew Cagney <cagney@redhat.com>
8936
8937 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8938 (TuiPoint, TuiPointPtr): Ditto.
8939 (TuiStatus, TuiStatusPtr): Ditto.
8940 (TuiWinType, TuiWinTypePtr): Ditto.
8941 (struct tui_point): Rename _TuiPoint.
8942 (tui_get_low_disassembly_address): Rename
8943 tuiGetLowDisassemblyAddress.
8944 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8945 (tuiFree): Delete declaration.
8946 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8947 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8948 * tui/tui.c (tuiFree): Delete function.
8949 * cli/cli-cmds.c (disassemble_command): Update references.
8950 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8951 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8952 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8953 * tui/tui-winsource.c: Ditto.
8954
8b92e4d5
EZ
89552004-02-07 Elena Zannoni <ezannoni@redhat.com>
8956
8957 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8958 coffstab_build_psymtabs, elfstab_build_psymtabs)
8959 (stabsect_build_psymtabs): Replace psymbol_obstack with
8960 objfile_obstack.
8961 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8962 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8963 Ditto.
8964 * dwarfread.c (scan_compilation_units): Ditto.
8965 * elfread.c (elfstab_offset_sections): Ditto.
8966 * hppa-tdep.c (read_unwind_info): Ditto.
8967 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8968 (hpread_end_psymtab): Ditto.
8969 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8970 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8971 Ditto.
8972 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 8973 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
8974 (build_objfile_section_table): Ditto.
8975 (allocate_objfile): Remove init of psymbol_obstack.
8976 (free_objfile): Remove freeing of psymbol_obstack.
8977 * objfiles.h (struct objfile): Remove field
8978 psymbol_obstack. Update comments.
8979 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8980 psymbol_obstack with objfile_obstack.
8981 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8982 psymbol_obstack.
8983 * somread.c (som_symfile_offsets, init_import_symbols)
8984 (init_export_symbols): Replace psymbol_obstack with
8985 objfile_obstack.
8986 * somsolib.c (som_solib_add_solib_objfile): Ditto.
8987 * symfile.c (default_symfile_offsets, syms_from_objfile)
8988 (reread_symbols): Remove freeing and init of psymbol_obstack.
8989 (cashier_psymtab): Update comment.
8990 * symmisc.c (print_objfile_statistics): Don't report stats for
8991 psymbol obstack.
8992 * symtab.h (struct general_symbol_info, struct partial_symtab):
8993 Update comments.
8994 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
8995 (xcoff_symfile_offsets): Replace psymbol_obstack with
8996 objfile_obstack.
8997
b99607ea
EZ
89982004-02-07 Elena Zannoni <ezannoni@redhat.com>
8999
9000 * objfiles.h (struct objfile): Add objfile_obstack field.
9001 Remove type_obstack field.
9002
9003 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9004 read_structure_scope read_enumeration, new_symbol): Replace
9005 type_obstack with objfile_obstack.
9006 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 9007 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
9008 (lookup_fundamental_type): Ditto.
9009 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
9010 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9011 (hpread_read_doc_function_type, hpread_read_struct_type)
9012 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 9013 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 9014 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
9015 (java_link_class_type): Ditto.
9016 * mdebugread.c (parse_type): Ditto.
9017 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9018 * solib-sunos.c (solib_add_common_symbols): Ditto.
9019 * stabsread.c (define_symbol, read_type, read_member_functions,
9020 read_cpp_abbrev, read_one_struct_field): Ditto.
9021 * symfile.c (reread_symbols): Ditto.
9022 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 9023
2a8854a7
AC
90242004-02-07 Andrew Cagney <cagney@redhat.com>
9025
9026 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9027 (tui_exec_info_content): Rename TuiExecInfoContent.
9028 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9029 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9030 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9031 (TuiList, TuiListPtr): Ditto.
9032 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9033 (TuiDataType, TuiDataTypePtr): Ditto.
9034 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9035 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9036 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9037 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9038 (TuiDataElement, TuiDataElementPtr): Ditto.
9039 (TuiWinElement, TuiWinElementPtr): Ditto.
9040 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9041 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9042 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9043 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9044 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9045 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9046 * tui/tui-command.c, tui/tui-data.c: Update references.
9047 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9048 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9049 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9050 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 9051
05cbe71a
MK
90522004-02-07 Mark Kettenis <kettenis@gnu.org>
9053
9054 * dwarf2-frame.h: Update copyright.
9055 (enum dwarf2_frame_reg_rule): New.
9056 (struct dwarf2_frame_state_reg): New.
9057 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9058 * dwarf2-frame.c: Update copyright.
9059 (enum dwarf2_reg_rule): Remove.
9060 (struct dwarf2_frame_state): Remove defenition of `struct
9061 dwarf2_frame_state_reg'.
9062 (read_reg): Call get_frame_arch to get the architecture instead of
9063 using CURRENT_GDBARCH.
9064 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9065 DWARF2_FRAME_.
9066 (dwarf2_frame_init_reg): New function.
9067 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9068 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9069 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9070 tags with DWARF2_FRAME_.
9071 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9072 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9073 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9074
ec7d9e56
AC
90752004-02-06 Andrew Cagney <cagney@redhat.com>
9076
dd1abb8c
AC
9077 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9078 (enum tui_data_type): Rename _TuiDataType.
9079 (struct tui_layout_def): Rename _TuiLayoutDef.
9080 (struct tui_source_element): Rename _TuiSourceElement.
9081 (struct tui_data_element): Rename _TuiDataElement.
9082 (struct tui_command_element): Rename _TuiCommandElement.
9083 (struct tui_locator_element): Rename _TuiLocatorElement.
9084 (union tui_which_element): Define.
9085 (struct tui_win_element): Rename _TuiWinElement.
9086 (struct tui_data_info): Rename _TuiDataInfo.
9087 (struct tui_source_info): Rename _TuiSourceInfo.
9088 (struct tui_command_info): Rename _TuiCommandInfo.
9089 (tui_initialize_static_data): Rename initializeStaticData.
9090 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9091 (tui_alloc_win_info): Rename allocWinInfo.
9092 (tui_init_generic_part): Rename initGenericPart.
9093 (tui_init_win_info): Rename initWinInfo.
9094 (tui_alloc_content): Rename allocContent.
9095 (tui_add_content_elements): Rename addContentElements.
9096 (tui_init_content_element): Rename initContentElement.
9097 (tui_free_window): Rename freeWindow.
9098 (tui_free_win_content): Rename freeWinContent.
9099 (tui_free_data_content): Rename freeDataContent.
9100 (tui_free_all_source_wins_content): Rename
9101 freeAllSourceWinsContent.
9102 (tui_del_window): Rename tuiDelWindow.
9103 (tui_del_data_windows): Rename tuiDelDataWindows.
9104 (tui_partial_win_by_name): Rename partialWinByName.
9105 (tui_win_name): Rename winName.
9106 (tui_current_layout): Rename currentLayout.
9107 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9108 (tui_term_height): Rename termHeight.
9109 (tui_set_term_height_to): Rename setTermHeightTo.
9110 (tui_term_width): Rename termWidth.
9111 (tui_set_term_width_to): Rename setTermWidthTo.
9112 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9113 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9114 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9115 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9116 (tui_source_windows): Rename sourceWindows.
9117 (tui_clear_source_windows): Rename clearSourceWindows.
9118 (tui_clear_source_windows_detail): Rename
9119 clearSourceWindowsDetail.
9120 (tui_clear_win_detail): Rename clearWinDetail.
9121 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9122 (tui_default_tab_len): Rename tuiDefaultTabLen.
9123 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9124 (tui_win_with_focus): Rename tuiWinWithFocus.
9125 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9126 (tui_layout_def): Rename tuiLayoutDef.
9127 (tui_win_resized): Rename tuiWinResized.
9128 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9129 (tui_next_win): Rename tuiNextWin.
9130 (tui_prev_win): Rename tuiPrevWin.
9131 (tui_add_to_source_windows): Rename addToSourceWindows.
9132 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9133 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9134 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9135 * tui/tui.c, tui/tui-data.c: Ditto.
9136 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9137 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9138
a358af15
AC
9139 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9140 (struct symtab): Declare.
9141 (tui_set_source_content): Rename tuiSetSourceContent.
9142 (tui_show_symtab_source): Rename tuiShowSource.
9143 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9144 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9145 * tui/tui-source.c: Update copyright. Update references.
9146 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9147 * tui/tui-stack.c: Update references.
9148
a21fcd8f
AC
9149 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9150 (struct tui_win_info): Declare.
9151 (tui_scroll_forward): Rename tuiScrollForward.
9152 (tui_scroll_backward): Rename tuiScrollBackward.
9153 (tui_scroll_left): Rename tuiScrollLeft.
9154 (tui_scroll_right): Rename tuiScrollRight.
9155 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9156 (tui_resize_all): Rename tuiResizeAll.
9157 (tui_refresh_all_win): Rename tuiRefreshAll.
9158 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9159 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9160 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9161 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9162
edae1ccf
AC
9163 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9164 (tui_erase_data_content): Rename tuiEraseDataContent.
9165 (tui_display_all_data): Rename tuiDisplayAllData.
9166 (tui_check_data_values): Rename tuiCheckDataValues.
9167 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9168 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9169 (tui_first_data_element_no_in_line): Rename
9170 tuiFirstDataElementNoInLine.
9171 (tui_delete_data_content_windows): Rename
9172 tuiDeleteDataContentWindows.
9173 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9174 (tui_display_data_from): Rename tuiDisplayDataFrom.
9175 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9176 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9177 * tui/tui-win.c, tui/tui-regs.c: Update references.
9178 * tui/tui-layout.c, tui/tui.c: Update references.
9179
ec7d9e56
AC
9180 * tui/tui-wingeneral.h: Update copyright.
9181 (m_allBeVisible): Delete macro.
8a1dac83 9182 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
9183 (struct tui_gen_win_info): Declare.
9184 (struct tui_win_info): Declare.
9185 (tui_unhighlight_win): Rename unhighlightWin.
9186 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9187 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9188 (tui_make_window): Rename makeWindow.
9189 (tui_copy_win): Rename copyWin.
9190 (tui_box_win): Rename boxWin.
9191 (tui_highlight_win): Rename highlightWin.
9192 (tui_check_and_display_highlight_if_needed): Rename
9193 checkAndDisplayHighlightIfNeeded.
9194 (tui_refresh_all): Rename refreshAll.
9195 (tui_delete_win): Rename tuiDelwin.
9196 (tui_refresh_win): Rename tuiRefreshWin.
9197 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9198 (tui_make_visible, tui_make_invisible): New functions.
9199 (tui_make_all_visible, tui_make_all_invisible): New functions.
9200 (make_all_visible): Rename makeAllVisible.
9201 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9202 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9203 * tui/tui-windata.c, tui/tui-win.c: Update references.
9204 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9205 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9206
1e52e2eb
MK
92072004-02-06 Mark Kettenis <kettenis@gnu.org>
9208
9209 * proc-api.c (write_with_trace): Initialize local variable to
9210 silence compiler warning.
9211
f80bda8e
AC
92122004-02-06 Andrew Cagney <cagney@redhat.com>
9213
9214 * tui/tui-source.h: Do not include "defs.h".
9215 (struct tui_win_info): Declare.
9216 (tui_set_source_content_nil): Declare.
9217 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9218 (union tui_line_or_address): Rename _TuiLineOrAddress.
9219 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9220 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9221 (tui_update_source_window_as_is): Rename
9222 tuiUpdateSourceWindowAsIs.
9223 (tui_update_source_windows_with_addr): Rename
9224 tuiUpdateSourceWindowsWithAddr.
9225 (tui_update_source_windows_with_line): Rename
9226 tuiUpdateSourceWindowsWithLine.
9227 (tui_clear_source_content): Rename tuiClearSourceContent.
9228 (tui_erase_source_content): Rename tuiEraseSourceContent.
9229 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9230 (tui_show_source_content): Rename tuiShowSourceContent.
9231 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9232 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9233 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9234 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9235 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9236 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9237 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9238 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9239 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9240 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9241 (struct tui_win_info): Declare.
9242 * tui/tui-stack.c: Update references.
9243 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9244 * tui/tui-win.c, tui/tui-source.c: Ditto.
9245 * tui/tui.c, tui/tui-disasm.c: Ditto.
9246
9fbfb822
MK
92472004-02-06 Mark Kettenis <kettenis@gnu.org>
9248
9249 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9250 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9251
03cebad2
MK
92522004-02-05 Mark Kettenis <kettenis@gnu.org>
9253
9254 * infrun.c (handle_inferior_event): Allow for breakpoint
9255 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9256 and SIGEMT. Update comments.
9257 * NEWS (Revised SPARC target): Mention support for non-executable
9258 stack.
9259
290281b1
MK
92602004-02-04 Mark Kettenis <kettenis@gnu.org>
9261
9262 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9263 * inftarg.c: Update copyright year.
9264 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9265 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9266 (sparc_xfer_wcookie): New function.
9267 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9268 * Makefile.in (sparc-nat.o): Update dependencies.
9269 * config/sparc/nm-nbsd.h: Include "target.h".
9270 (NATIVE_XFER_WCOOKIE): New define.
9271 (sparc_xfer_wcookie): New prototype.
9272
212161df
AC
92732004-02-04 Andrew Cagney <cagney@redhat.com>
9274
9275 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9276 SYSCALL_TRAP function.
9277 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9278
6e4c6c91
DJ
92792004-02-04 Andrew Cagney <cagney@redhat.com>
9280 Daniel Jacobowitz <drow@mvista.com>
9281
9282 * objfiles.h: Delete comments refering to inside_entry_func and
9283 DEPRECATED_FRAME_CHAIN_VALID.
9284 * defs.h (inside_entry_func): Update prototype..
9285 * blockframe.c (inside_entry_func): Rename to
9286 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9287 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9288
cae688ec
JJ
92892004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9290
9291 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9292 outside of #ifdef SOLIB_ADD region.
9293 (do_restore_lang_radix_cleanup): Ditto.
9294 (resolve_pending_breakpoint): Ditto.
9295
19217676
AC
92962004-02-03 Andrew Cagney <cagney@redhat.com>
9297
9298 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9299 (process_note_abi_tag_sections): Delete unused function.
9300 (ia64_read_fp): Delete unused function.
9301 (gdbarch_extract_struct_value_address): Delete declaration.
9302
876753be
AC
93032004-02-02 Andrew Cagney <cagney@redhat.com>
9304
9305 * vax-tdep.c (vax_frame_chain): Delete call to
9306 deprecated_inside_entry_file.
9307 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9308
d4f10bf2
MK
93092004-02-02 Mark Kettenis <kettenis@gnu.org>
9310
9311 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9312 column that's "empty" or "same value" when eliminating REG_RA
9313 rules.
9314
cae688ec
JJ
93152004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9316
9317 * NEWS: Add information about new pending breakpoint support.
9318
0101ce28
JJ
93192004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9320
9321 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9322 and pending fields for pending breakpoint support.
9323 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9324 (condition_command): Only parse condition if not a pending
9325 breakpoint.
9326 (print_one_breakpoint): Add support for pending breakpoints.
9327 (describe_other_breakpoints): Add checks to verify we are not
9328 dealing with pending breakpoints.
9329 (check_duplicates): Don't check pending breakpoints.
9330 (set_raw_breakpoint): Initialize pending flag.
9331 (do_restore_lang_radix_cleanup): New cleanup routine.
9332 (resolve_pending_breakpoint): New function.
9333 (re_enable_breakpoints_in_shlibs): Try and resolve any
9334 pending breakpoints via resolve_pending_breakpoint.
9335 (mention): Add pending breakpoint support.
9336 (parse_breakpoint_sals): Add new parameter to pass to
9337 decode_line_1 to indicate silent errors when files or functions
9338 are not found. Change all callers.
9339 (do_captured_parse_breakpoint): New function.
9340 (break_command_1): Change prototype to return an rc value and to
9341 take an optional pending breakpoint pointer. Support creating
9342 a pending breakpoint if a "not found" form of error occurs when
9343 parsing the breakpoint. Also support resolving an existing pending
9344 breakpoint and be silent if the resolution fails.
9345 (create_breakpoints): Change prototype to take pending breakpoint
9346 pointer. When resolving a pending breakpoint, use the new pointer
9347 to provide a conditional or commands added by the end-user.
9348 (delete_breakpoint): Add appropriate check for pending.
9349 (breakpoint_re_set_one): Ditto.
9350 (do_enable_breakpoint): Ditto.
9351
8d577d32
DC
93522004-02-02 David Carlton <carlton@kealia.com>
9353
9354 * valops.c (enum oload_classification): New.
9355 (find_overload_match): Break implementation into separate
9356 functions; delete #if 0'd code; look for symbols within
9357 namespaces.
9358 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9359 (find_oload_champ,oload_method_static,classify_oload_match): New.
9360 * cp-support.h: Add declaration for cp_func_name; update
9361 declaration for make_symbol_overload_list.
9362 * cp-support.c (cp_func_name): New.
9363 (overload_list_add_symbol): Fix comment, use
9364 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9365 (make_symbol_overload_list): Take a function name and a namespace
9366 instead of a symbol; change implementation.
9367 (make_symbol_overload_list_using): New.
9368 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9369
22e8e3c7
FF
93702004-02-02 Fred Fish <fnf@redhat.com>
9371
9372 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 9373 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
9374 * remote-sim.c (gdb_os_write_stderr): Write output to
9375 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9376 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 9377 gdb_stderr stream and update copyright years.
22e8e3c7 9378
6b753f60
DJ
93792004-02-01 Daniel Jacobowitz <drow@mvista.com>
9380
9381 * Makefile.in (mips-linux-nat.o): Update dependencies.
9382 * mips-linux-nat.c: Include mips-tdep.h.
9383
93842004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
9385
9386 * sol-thread.c (sol_thread_xfer_partial): New function.
9387 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9388 (init_sol_core_ops): Likewise.
9389
9390 * procfs.c (procfs_xfer_partial): New function.
9391 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9392 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9393
9394 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9395 procfs_xfer_auxv function.
9396
9397 * procfs.c (procfs_make_note_section): If we can read
9398 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9399 * linux-proc.c (linux_make_note_section): Likewise.
9400
9401 * auxv.h: New file.
9402 * auxv.c: New file.
9403 * Makefile.in (auxv_h): New variable.
9404 (COMMON_OBS): Add auxv.o here.
9405 (auxv.o): New target.
9406
9407 * corelow.c (core_xfer_partial): New function.
9408 (init_core_ops): Use it for core_ops.to_xfer_partial.
9409
9410 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9411 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9412 macro if that is defined.
9413
fa5281d0
DJ
94142004-02-01 Daniel Jacobowitz <drow@mvista.com>
9415
9416 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9417 and check the specified thread for each breakpoint.
9418 * breakpoint.h (bpstat_stop_status): Update prototype.
9419 * infrun.c (handle_inferior_event): Update calls to
9420 bpstat_stop_status.
9421
26ee262d
DJ
94222004-02-01 Daniel Jacobowitz <drow@mvista.com>
9423
9424 * Makefile.in (cli-cmds.o): Add $(readline_h).
9425
d9b52655
DJ
94262004-02-01 Daniel Jacobowitz <drow@mvista.com>
9427
9428 * cli/cli-cmds.c: Include readline.h.
9429 (complete_command): Pass the start of the last word to
9430 complete_line.
9431
9709f61c
DJ
94322004-01-31 Daniel Jacobowitz <drow@mvista.com>
9433
9434 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9435 argument, and change first argument to a CORE_ADDR.
9436 * breakpoint.h (bpstat_stop_status): Update prototype.
9437 * infrun.c (adjust_pc_after_break): Add a new comment.
9438 (handle_inferior_event): Update calls to bpstat_stop_status.
9439
4f1280bb
DJ
94402004-01-31 Daniel Jacobowitz <drow@mvista.com>
9441
9442 * breakpoint.h: Update copyright years.
9443
4fa8626c
DJ
94442004-01-31 Daniel Jacobowitz <drow@mvista.com>
9445
9446 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9447 (bpstat_stop_status): Don't decrement PC.
9448 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9449 prototype.
9450 * infrun.c (adjust_pc_after_break): New function.
9451 (handle_inferior_event): Call it, early. Remove later references
9452 to DECR_PC_AFTER_BREAK.
9453 (normal_stop): Add commentary.
9454
fad0733a
DJ
94552004-01-31 Daniel Jacobowitz <drow@mvista.com>
9456
9457 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9458 2004-01-27 double-free fix.
9459
42cdca6c
MK
94602004-01-31 Mark Kettenis <kettenis@gnu.org>
9461
9462 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9463 (sparc32_frame_prev_register): Handle StackGhost.
9464 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9465
932d5416
RM
94662004-01-29 Roland McGrath <roland@redhat.com>
9467
9468 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9469 * configure: Regenerated.
9470
9471 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9472 * Makefile.in (procfs.o): Add dep.
9473
47d3492a
AC
94742004-01-28 Andrew Cagney <cagney@redhat.com>
9475
9476 * tui/tui-stack.h: Update copyright.
9477 (struct frame_info): Add opaque declaration.
9478 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9479 (tui_show_locator_content): Rename tuiShowLocatorContent.
9480 (tui_show_frame_info): Rename tuiShowFrameInfo.
9481 * tui/tui-stack.c: Update copyright. Update references.
9482 * tui/tui-winsource.c: Update references.
9483 * tui/tui-win.c: Update references.
9484 * tui/tui-layout.c: Update references.
9485 * tui/tui-hooks.c: Update copyright, update references.
9486 * tui/tui.c: Update copyright, update references.
9487 * tui/tui-disasm.c: Update references.
9488
5d51ca54
DC
94892004-01-28 David Carlton <carlton@kealia.com>
9490
9491 * dwarf2read.c (add_partial_structure): Use demangled name if
9492 namespace equals "".
9493
086ed43d
JB
94942004-01-27 Jim Blandy <jimb@redhat.com>
9495
9496 Clean up misapplied patch:
9497 * dwarf2read.c (determine_prefix): Change one of the two forward
9498 declarations for 'determine_prefix_aux' to a declaration for this.
9499 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9500 argument to 'die_specification'.
9501
2a35147e
JB
9502 * dwarf2read.c (read_func_scope): Re-indent comment.
9503
a355c7de 95042004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 9505
a355c7de
AC
9506 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9507 b->exp to NULL after freeing so that error during re-parsing or
9508 evaluation of expressions associated with breakpoint don't
9509 eventually lead to re-freeing of storage.
9510 Committed by Andrew Cagney.
9511
63ff5125
AC
95122004-01-27 Andrew Cagney <cagney@redhat.com>
9513
9514 * source.c (ambiguous_line_spec): Delete undefined declaration.
9515 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9516 (m32r_set_server_address, m32r_set_download_path): Ditto.
9517 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9518
e142c38c
DJ
95192004-01-27 Daniel Jacobowitz <drow@mvista.com>
9520
9521 * dwarf2read.c: Update calls to changed and renamed functions, and
9522 references to moved variables.
9523
9524 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9525 language, language_defn, list_in_scope, and ftypes members.
9526 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9527 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9528 (baseaddr): Remove globals.
9529
9530 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9531 (set_cu_language, die_is_declaration, die_specification)
9532 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9533 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9534 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9535 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9536
9537 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9538 cu.list_in_scope. Don't initialize cu_header_offset.
9539 (add_partial_symbol): Add local baseaddr.
9540 (psymtab_to_symtab_1): Add local baseaddr. Use
9541 objfile->section_offsets for consistency. Don't initialize
9542 cu_header_offset; do initialize cu.header.offset and
9543 cu.list_in_scope.
9544 (read_file_scope, read_func_scope, read_lexical_block_scope)
9545 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9546
c6e06ede
MC
95472004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9548
fb328ecc 9549 * PROBLEMS: Add gdb/1516.
c6e06ede 9550
48184fd4
AC
95512003-12-29 Robert Millan <robertmh@gnu.org>
9552
9553 Patch committed by Andrw Cagney.
9554 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9555 * configure.tgt: Match knetbsd*-gnu.
9556
c1321b30
AC
95572004-01-26 Andrew Cagney <cagney@redhat.com>
9558
f3699be3
AC
9559 * breakpoint.c (catch_command_1): Delete #ifdef code.
9560 (catch_fork_command_1): Delete #ifdef wrapper.
9561 (catch_exec_command_1): Ditto.
9562 (catch_load_command_1): Ditto.
9563 (catch_unload_command_1): Ditto.
9564
c1321b30
AC
9565 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9566 (catch_breakpoint): Delete #if0ed function.
9567 (disable_catch_breakpoint): Ditto.
9568 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9569 (disable_catch, enable_catch, delete_catch): Ditto.
9570
b4501125
AC
95712004-01-26 Andrew Cagney <cagney@redhat.com>
9572
9573 * remote.c (echo_check, quit_flag): Delete variables.
9574 (cisco_kernel_mode): Delete variable.
9575 (minitelnet_return, tty_input, escape_count): Delete variables.
9576 (remote_cisco_mode): Delete variable.
9577 (remote_cisco_open, remote_cisco_close): Delete function.
9578 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9579 (init_remote_cisco_ops): Delete function.
9580 (_initialize_remote): Do not install "remote cisco" code.
9581 (read_frame): Delete cisco specific code.
9582 (remote_info_process): Delete function.
9583 (remote_wait): Delete cisco specific code.
9584 (remote_cisco_section_offsets): Delete function.
9585 (remote_cisco_objfile_relocate): Delete function.
9586 (remote_async_wait): Delete cisco specific code.
9587 (minitelnet, readtty, readsocket): Delete function.
9588
74055713
AC
95892004-01-26 Andrew Cagney <cagney@redhat.com>
9590
9591 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9592 comments mentioning extract_returned_value_address.
9593 * infcmd.c (print_return_value): Update. Add comments on
9594 extract_returned_value_address.
9595 * stack.c (return_command): Add comments on
9596 extract_returned_value_address.
9597 * values.c: Update comment.
9598 * m32r-tdep.c: Update comment.
9599 * sparc-tdep.c: Update comment.
9600 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9602 * sh64-tdep.c (sh64_gdbarch_init): Update.
9603 * sh-tdep.c (sh_gdbarch_init): Update.
9604 * s390-tdep.c (s390_gdbarch_init): Update.
9605 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9606 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9607 * m68k-tdep.c (m68k_gdbarch_init): Update.
9608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9609 * m32r-tdep.c (m32r_gdbarch_init): Update.
9610 * ia64-tdep.c (ia64_gdbarch_init): Update.
9611 * h8300-tdep.c (h8300_gdbarch_init): Update.
9612 * frv-tdep.c (frv_gdbarch_init): Update.
9613 * arm-tdep.c (arm_gdbarch_init): Update.
9614 * alpha-tdep.c (alpha_gdbarch_init): Update.
9615
a67af2b9
AC
96162004-01-26 Andrew Cagney <cagney@redhat.com>
9617
9618 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9619 SYMBOL_LOCATION_FUNCS
9620 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9621 "struct symbol_ops".
9622 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9623 type to "struct symbol_ops".
9624 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9625 (struct symbol): Replace ".aux_value.loc.funcs" and
9626 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9627 (SYMBOL_OBJFILE): Delete macro.
9628 (SYMBOL_LOCATION_FUNCS): Delete macro.
9629 (SYMBOL_LOCATION_BATON): Update.
9630 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9631 intead of SYMBOL_LOCATION_FUNCS.
9632 * ax-gdb.c (gen_var_ref): Ditto.
9633 * printcmd.c (address_info): Ditto.
9634 * findvar.c (read_var_value): Ditto.
9635 (symbol_read_needs_frame): Ditto.
9636
c034e007
AC
96372004-01-26 Andrew Cagney <cagney@redhat.com>
9638
9639 * dwarf2read.c (read_func_scope): Document frame-base hack.
9640
bb472c1e
MK
96412004-01-25 Mark Kettenis <kettenis@gnu.org>
9642
9643 * infcmd.c (print_return_value): Plug memory leak; delete
9644 ui_stream object. Rename argument `structure_return' to
9645 `struct_return'.
9646
c8e737d5
MK
96472004-01-25 Mark Kettenis <kettenis@gnu.org>
9648
f941662f
MK
9649 * infcmd.c (print_return_value): Wrap long lines.
9650 (finish_command_continuation, finish_command): Remove unused
9651 variable `funcaddr'. Fix some coding-standards problems.
9652
c558d81a 9653 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 9654 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
9655 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9656 TDEP->fpregset to zero.
9657
bf1e5861 9658 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
9659 floating-point registers for traditional NetBSD core files.
9660 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9661 TDEP->sizeof_fpregset here.
9662
4c72d57a
MK
96632004-01-25 Mark Kettenis <kettenis@gnu.org>
9664
566626fa
MK
9665 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9666 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9667 function with code split out from
9668 sparc32nbsd_sigcontext_frame_cache.
9669 (sparc32nbsd_sigcontext_frame_cache): Use
9670 sparc32nbsd_sigcontext_saved_regs.
9671 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9672 OpenBSD.
9673 * sparcobsd-tdep.c: New file.
9674 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9675 (sparcobsd-tdep.o): New dependency.
9676 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9677 * config/sparc/obsd.mt: New file.
9678
4c72d57a
MK
9679 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9680 TDEP->fpregset to be initialized to enable core file register
9681 sets.
9682
7e5e9f88
MK
96832004-01-24 Mark Kettenis <kettenis@gnu.org>
9684
f0f207fd 9685 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
9686 Add opaque declarations.
9687 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9688 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9689 function with code split out from
9690 sparc64nbsd_sigcontext_frame_cache.
9691 (sparc64nbsd_sigcontext_frame_cache): Use
9692 sparc64nbsd_sigcontext_saved_regs.
9693 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9694 OpenBSD.
9695 * sparc64obsd-tdep.c: New file.
9696 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9697 (sparc64obsd-tdep.o): New dependency.
9698 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9699 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9700 * config/sparc/obsd64.mt: New file.
9701
690668cc
MK
9702 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9703 read the instruction at PC.
9704
7e5e9f88
MK
9705 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9706 value of GDB_OSABI_DEFAULT.
9707 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9708 instead of GDB_OSABI_NETBSD_AOUT.
9709
68b6dce9
NR
97102004-01-24 Nick Roberts <nick@nick.uklinux.net>
9711
9712 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9713 copyright.
9714
080ce8c0
AC
97152004-01-23 Andrew Cagney <cagney@redhat.com>
9716
9717 * printcmd.c (display_command): Replace tui_set_display call with
9718 tui_set_layout_for_display_command.
9719 * tui/tui.h (enum tui_win_type): Define.
9720 (tui_set_layout): Delete declaration.
9721 (tui_set_layout_for_display_command): Rename set_tui_layout.
9722 * tui/tui-data.h (enum tui_layout_type): Define.
9723 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9724 "tui.h".
9725 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9726 (tui_default_win_height): Rename tuiDefaultWinHeight.
9727 (tui_default_win_viewport_height): Rename
9728 tuiDefaultWinViewportHeight.
9729 (tui_set_layout): RenametuiSetLayout.
9730 * tui/tui-layout.c: Update references.
9731 * tui/tui.c: Update references.
9732 * tui/tui-disasm.c: Update references.
9733
b368761e
DC
97342004-01-23 David Carlton <carlton@kealia.com>
9735
9736 Partial workaround for PR c++/1511:
9737 * cp-namespace.c: Include frame.h.
9738 (cp_lookup_transparent_type): New
9739 (cp_lookup_transparent_type_loop): New.
9740 * cp-support.h: Declare cp_lookup_transparent_type.
9741 * symtab.c (basic_lookup_transparent_type): Renamed from
9742 lookup_transparent_type.
9743 (lookup_transparent_type): Replace old body by a call to
9744 current_language->la_lookup_transparent_type.
9745 * symtab.h: Update copyright. Declare
9746 basic_lookup_transparent_type.
9747 * language.h: Update copyright.
9748 (struct language_defn): Add la_lookup_transparent_type.
9749 * language.c: Update copyright.
9750 (unknown_language_defn): Add basic_lookup_transparent_type.
9751 (auto_language_defn): Add basic_lookup_transparent_type.
9752 (local_language_defn): Add basic_lookup_transparent_type.
9753 * ada-lang.c: Update copyright.
9754 (ada_language_defn): Add basic_lookup_transparent_type.
9755 * c-lang.c: Update copyright.
9756 (c_language_defn): Add basic_lookup_transparent_type.
9757 (cplus_language_defn): Add basic_lookup_transparent_type.
9758 (asm_language_defn): Add basic_lookup_transparent_type.
9759 (minimal_language_defn): Add basic_lookup_transparent_type.
9760 * f-lang.c: Update copyright.
9761 (f_language_defn): Add basic_lookup_transparent_type.
9762 * jv-lang.c: Update copyright.
9763 (java_language_defn): Add basic_lookup_transparent_type.
9764 * m2-lang.c: Update copyright.
9765 (m2_language_defn): Add basic_lookup_transparent_type.
9766 * objc-lang.c: Update copyright.
9767 (objc_language_defn): Add basic_lookup_transparent_type.
9768 * p-lang.c: Update copyright.
9769 (p_language_defn): Add basic_lookup_transparent_type.
9770 * scm-lang.c: Update copyright.
9771 (scm_language_defn): Add basic_lookup_transparent_type.
9772 * Makefile.in (cp-namespace.o): Depend on frame.h.
9773
fdde2d81
DC
97742004-01-23 David Carlton <carlton@kealia.com>
9775
9776 Patch for PR c++/1520:
9777 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9778 properly if we have a specification die.
9779 (determine_prefix_aux): Rename from determine_prefix.
9780 (determine_prefix): Like the old determine_prefix, but never
9781 returns NULL.
9782
5b828b6b
TR
97832004-01-23 Theodore A. Roth <troth@openavr.org>
9784
9785 * avr-tdep.c: Update copyright.
9786 (avr_iaddr_p): Delete unused function.
9787 (avr_saddr_p): Delete unused function.
9788
a1b8c067
DC
97892004-01-23 David Carlton <carlton@kealia.com>
9790
9791 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9792 Fix for PR symtab/1534.
9793
f2cab569
MK
97942004-01-23 Mark Kettenis <kettenis@gnu.org>
9795
9796 * NEWS (New native configurations): Mention OpenBSD/sparc and
9797 OpenBSD/sparc64.
9798 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9799 * configure.host: Likewise.
9800 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9801 handler for OpenBSD.
9802 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9803
642d8300
MK
98042004-01-22 Mark Kettenis <kettenis@gnu.org>
9805
89aac506
MK
9806 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9807 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9808
36662fde
MK
9809 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9810 * cli/cli-cmds.c (shell_escape): Likewise.
9811
642d8300
MK
9812 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9813 OpenBSD .note.openbsd.ident sections.
9814
fae299cd
DC
98152004-01-22 David Carlton <carlton@kealia.com>
9816
9817 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9818 get_scope_pc_bounds.
9819 (read_file_scope): Ditto.
9820 (get_scope_pc_bounds): New function, produced by extracting code
9821 from the above two functions, consolidating it, and adding support
9822 for DW_TAG_namespace.
9823
a49d618c
MK
98242004-01-22 Mark Kettenis <kettenis@gnu.org>
9825
9826 * osabi.c (MAX_NOTESZ): New define.
9827 (check_note): New function.
9828 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9829 check_note.
9830
fe61caab
RM
98312004-01-21 Roland McGrath <roland@redhat.com>
9832
9833 * MAINTAINERS (write after approval): Add myself.
9834
ec145965
EZ
98352004-01-21 Eli Zaretskii <eliz@gnu.org>
9836
9837 * utils.c (init_page_info): Move declarations of `rows' and
9838 `cols' before the __GO32__-specific code. Move the closing brace
9839 outside the #ifdef __GO32__..#endif block.
9840 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9841
877522db
PB
98422004-01-21 Paul Brook <paul@codesourcery.com>
9843
9844 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9845 BPSTAT_WHAT_CHECK_SHLIBS.
9846
dbf5be1c
PB
98472004-01-21 Paul Brook <paul@codesourcery.com>
9848
9849 * MAINTAINERS: Add myself to write-after-approval.
9850
81f08b92
AC
98512004-01-20 Andrew Cagney <cagney@redhat.com>
9852
5a1efed7
AC
9853 * ax-gdb.c (print_axs_value): Delete unused function.
9854 * jv-lang.c (java_lookup_type): Delete unused function.
9855 * cli/cli-dump.c (dump_filetype): Delete unused function.
9856 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9857 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9858 (mips_getstring): Delete unused function.
9859 (pmon_insert_breakpoint): Delete #if0ed function.
9860 (PMON_MAX_BP): Delete #if0ed MACRO.
9861 (mips_pmon_bp_info): Delete #if0ed variable.
9862 (pmon_remove_breakpoint): Delete #if0ed function.
9863 * monitor.c (monitor_write_even_block): Delete unused function.
9864 (monitor_write_memory_block): Delete #if0ed code.
9865 * dink32-rom.c (dink32_load): Delete unused function.
9866 (_initialize_dink32_rom): Delete #if0ed code.
9867 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9868
b0a30fce
AC
9869 * tui/tui-command.c: Update references.
9870 * tui/tui-io.c: Update references.
9871 * tui/tui-command.h: Update copyright.
9872 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9873
81f08b92
AC
9874 * source.c (ambiguous_line_spec): Delete never-defined function.
9875 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9876 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9877 * cli/cli-cmds.c (validate_comname): Ditto.
9878
65f05602
AC
9879 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9880 "tui-data.h".
9881 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9882 (tui_show_disassem): Rename tuiShowDisassem.
9883 (tui_show_disassem_and_update_source): Rename
9884 tuiVerticalDisassemScroll.
9885 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9886 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9887 * tui/tui.h: Update copyright.
9888 (enum tui_status): Define.
9889 * tui/tui-data.h (enum tui_scroll_direction): Define.
9890 * tui/tui-disasm.c: Update copyright. Update references.
9891 * tui/tui-winsource.c: Update copyright. Update references.
9892 * tui/tui-win.c: Update references.
9893 * tui/tui-layout.c: Update references.
9894
6bb0384f
AC
98952004-01-20 Andrew Cagney <cagney@redhat.com>
9896
9897 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9898 sym2 to start of block.
9899
9175c9a3
MC
99002004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9901
9902 * MAINTAINERS: Delete mmalloc.
9903 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9904 * NEWS: Mention removal of --with-malloc.
9905 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9906 * config.in: Regenerate.
9907 * configure: Regenerate.
6bb0384f
AC
9908 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9909 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
9910 * gdbinit.in: Remove mmalloc.
9911 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9912 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9913 * config/i386/go32.mh: Likewise.
9914 * config/i386/interix.mh: Likewise.
9915 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9916
4fcef00a
JJ
99172004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9918
9919 * linespec.c (decode_variable, symtab_from_filename): Call
9920 error_silent with error message instead of throwing an exception
9921 directly.
9922 * defs.h (error_silent, error_output_message): Add prototypes.
9923 (catch_exceptions_with_msg): Ditto.
9924 * utils.c (error_silent, error_output_message): New functions.
9925 * top.c (catch_exceptions_with_msg): New function.
9926
8e94b928
NR
99272004-01-20 Nick Roberts <nick@nick.uklinux.net>
9928
9929 * mi/mi-cmds.h (enum print_values): Add definition.
9930
9931 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9932 type and value for simple data types and just the name and type
9933 for complex ones, if required.
9934
9935 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9936 children, if required.
9937
a02d6af8
KB
99382004-01-19 Kevin Buettner <kevinb@redhat.com>
9939
9940 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9941 unused declarations.
9942
78a4a9b9
AC
99432004-01-19 Andrew Cagney <cagney@redhat.com>
9944
9945 * top.h (mapped_symbol_files): Delete declaration.
9946 * main.c (captured_main): Delete option "m" and "mapped".
9947 * objfiles.c (mapped_symbol_files): Delete variable.
9948 * symfile.c (symbol_file_command): Delete mmap code.
9949 (symbol_file_add_with_addrs_or_offsets): Ditto.
9950 (add_symbol_file_command, reread_separate_symbols): Ditto.
9951 * objfiles.h (OBJF_MAPPED): Delete.
9952 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9953 (free_objfile) [USE_MMALLOC]: Ditto.
9954 (open_existing_mapped_file): Delete function.
9955 (open_mapped_file): Delete function.
9956 (map_to_file): Delete function.
9957
2dbd5e30
KB
99582004-01-19 Kevin Buettner <kevinb@redhat.com>
9959
9960 * infrun.c (step_into_function): Account for possible breakpoint
9961 adjustment when computing ``stop_func_start''.
9962
437b434f
KB
99632004-01-19 Kevin Buettner <kevinb@redhat.com>
9964
9965 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9966 the region size against the size of a pointer, not the size of
9967 a register as given by DEPRECATED_REGISTER_SIZE.
9968
55fb0713
AC
99692004-01-19 Andrew Cagney <cagney@redhat.com>
9970
9971 * tui/tui-regs.h: Include "tui-data.h".
9972 (tuiFirstRegElementNoInLine): Delete declaration.
9973 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9974 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9975 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9976 (tui_calculate_regs_column_count): Rename
9977 tuiCalculateRegsColumnCount.
9978 (tui_check_register_values): Rename tuiCheckRegisterValues.
9979 (tui_show_registers): Rename tuiShowRegisters.
9980 (tui_display_registers_from_line): Rename
9981 tuiDisplayRegistersFromLine.
9982 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9983 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9984 (tui_first_reg_element_no_inline): Rename
9985 tuiFirstRegElementNoInLine.
9986 * tui/tui-data.h: Update copyright.
9987 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
9988 * tui/tui-windata.c: Update copyright, update references.
9989 * tui/tui-regs.c: Update copyright, update references.
9990 * tui/tui-win.c: Update copyright, update references.
9991 * tui/tui-layout.c: Update copyright, update references.
fe61caab 9992
cebe9500
AC
99932004-01-18 Andrew Cagney <cagney@redhat.com>
9994
bcdf1568
AC
9995 * tui/tui-io.c: Update copyright.
9996 (key_is_end_sequence, key_is_backspace): New functions.
9997 (key_is_command_char, key_is_start_sequence): New function.
9998 (tui_getc): Update references.
9999 * tui/tui-io.h: Update copyright.
10000 (m_tuiStartNewLine): Delete macro.
10001 (m_isBackspace, m_isDeleteChar): Delete macros.
10002 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10003 (m_isNextPage, m_isPrevPage): Delete macros.
10004 (m_isLeftArrow, m_isRightArrow): Delete macros.
10005 (m_isXdbStyleCommandChar): Delete macro.
10006 (key_is_start_sequence): Declare, replace m_isStartSequence.
10007 (key_is_end_sequence): Declare, replace m_isEndSequence.
10008 (key_is_backspace): Declare ,replace m_isBackspace.
10009 (key_is_command_char): Declare, replace m_isCommandChar.
10010 * tui/tui-command.c: Update copyright.
10011 (tuiDispatchCtrlChar): Update references.
10012
130d87e6
AC
10013 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10014 tuiSourceWin.h.
10015
d7b2e967
AC
10016 * tui/tui-command.c: Rename tui/tuiCommand.c.
10017 * tui/tui-command.h: Rename tui/tuiCommand.h.
10018 * tui/tui-data.c: Rename tui/tuiData.c.
10019 * tui/tui-data.h: Rename tui/tuiData.h.
10020 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10021 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10022 * tui/tui-io.c: Rename tui/tuiIO.c.
10023 * tui/tui-io.h: Rename tui/tuiIO.h.
10024 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10025 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10026 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10027 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10028 * tui/tui-source.c: Rename tui/tuiSource.c.
10029 * tui/tui-source.h: Rename tui/tuiSource.h.
10030 * tui/tui-stack.c: Rename tui/tuiStack.c.
10031 * tui/tui-stack.h: Rename tui/tuiStack.h.
10032 * tui/tui-win.c: Rename tui/tuiWin.c.
10033 * tui/tui-win.h: Rename tui/tuiWin.h.
10034 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10035 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10036 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10037 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10038 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10039 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10040 * tui/tui-file.c: Update includes.
10041 * tui/tui-hooks.c: Update includes.
10042 * tui/tui-interp.c: Update includes.
10043 * tui/tui.c: Update includes.
10044 * Makefile.in: Update all tui/ dependencies.
10045 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10046
b2100910
AC
10047 * Makefile.in: Update copyright. Update dependencies.
10048
cebe9500
AC
10049 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10050 problem.
10051
c6f0559b
AC
100522004-01-18 Andrew Cagney <cagney@redhat.com>
10053
43e9390b
AC
10054 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10055 instead of register_gdbarch_init.
10056
c6f0559b
AC
10057 * remote-sds.c (tohex): Delete unused function. Update copyright.
10058 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10059 * v850-tdep.c (v850_register_virtual_size): Ditto.
10060 * target.c (normal_target_post_startup_inferior): Ditto.
10061 * source.c (ambiguous_line_spec): Ditto.
10062 * remote.c (adapt_remote_get_threadinfo): Ditto.
10063 * mi/mi-out.c (out_field_fmt): Ditto.
10064 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10065 (output_control_change_notification): Ditto.
10066 * m68k-tdep.c (m68k_register_byte): Ditto.
10067 (m68k_remote_breakpoint_from_pc): Ditto.
10068 * ui-out.c (init_ui_out_state): Delete unused declaration.
10069 * stabsread.c (search_value): Ditto.
10070 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10071 * maint.c (print_section_table): Ditto.
10072 * infrun.c (set_follow_fork_mode_command): Ditto.
10073
a8504492
MK
100742004-01-18 Mark Kettenis <kettenis@gnu.org>
10075
10076 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10077 DW_CFA_def_cfa_exporession. Add support for
10078 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10079 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10080
0bd8997e
AC
100812004-01-18 Andrew Cagney <cagney@redhat.com>
10082
10083 * ocd.c: Update copyright.
10084 (bdm_read_register_command): Delete unused function.
10085 (_initialize_remote_ocd): Delete commented out reference.
10086 (get_quoted_char, reset_packet): Delete #if0ed function.
10087 (output_packet, put_quoted_char): Delete #if0ed function.
10088 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10089 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10090 (BDM_BREAKPOINT): Delete #if0ed macro.
10091 (remote_timeout): Delete #if0ed variable.
10092
31bb40e4
MK
100932004-01-18 Mark Kettenis <kettenis@gnu.org>
10094
10095 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10096 (core-sol2.o): Remove dependency.
10097 * core-sol2.c: Remove file.
10098
887432a5
AC
100992004-01-17 Andrew Cagney <cagney@redhat.com>
10100
10101 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10102 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10103 enums.
10104
29182b13
DJ
101052004-01-17 Daniel Jacobowitz <drow@mvista.com>
10106
10107 * remote.c: Update copyright years.
10108
2963ee1d
DJ
101092004-01-17 Daniel Jacobowitz <drow@mvista.com>
10110
10111 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10112
79d45cd4
AC
101132004-01-17 Andrew Cagney <cagney@redhat.com>
10114
ee300cd4
AC
10115 * mdebugread.c: Update copyright.
10116 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10117 (parse_type, parse_procedure): Ditto.
10118 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10119
fcacc9c2
AC
10120 * cris-tdep.c (cris_store_struct_return): Put back accidently
10121 deleted function.
10122
79d45cd4
AC
10123 * gdbarch.sh: Update copyright year.
10124 * gdbarch.h, gdbarch.c: Re-generate.
10125
b263358a
DJ
101262004-01-17 Daniel Jacobowitz <drow@mvista.com>
10127
10128 Suggested by George Anzinger.
10129 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10130 correct stack offset. Include unknown opcode numbers in the error
10131 message.
10132
931aecf5
AC
101332004-01-17 Andrew Cagney <cagney@redhat.com>
10134
10135 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10136 extract_struct_value_address, i386 does not set it.
10137 * sparc64-tdep.c (sparc64_init_abi): Do not set
10138 extract_struct_value_address, never called.
10139 (sparc64_extract_struct_value_address): Delete function.
10140 * m68hc11-tdep.c: Update copyright.
10141 (m68hc11_gdbarch_init): Delete redundant assignment of
10142 extract_struct_value_address.
10143 * i386-tdep.c: Update copyright.
10144 (i386_gdbarch_init): Do not set extract_struct_value_address,
10145 never called.
10146 (i386_extract_struct_value_address): Delete function.
10147 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10148 extract_struct_value_address, never called.
10149 (sparc32_extract_struct_value_address): #if 0 function. Add
10150 comments explaining its future.
10151
756fe439
DJ
101522004-01-17 Daniel Jacobowitz <drow@mvista.com>
10153
10154 * arm-tdep.c (arm_write_pc): New function.
10155 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10156
e74f0f02
DJ
101572004-01-17 Daniel Jacobowitz <drow@mvista.com>
10158
10159 * breakpoint.c (must_shift_inst_regs): Delete.
10160 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10161 and SHIFT_INST_REGS.
10162 * infcmd.c (step_1, step_1_continuation): Delete references to
10163 SHIFT_INST_REGS.
10164 * infrun.c (keep_going): Likewise.
10165 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10166 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10167
b6cb9035
AC
101682004-01-17 Andrew Cagney <cagney@redhat.com>
10169
444a1e2e
AC
10170 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10171 * gdbarch.h, gdbarch.c: Re-generate.
10172 * infcmd.c (print_return_value): Delete reference to
10173 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10174
def7e6ed
AC
10175 * cris-tdep.c (cris_gdbarch_init): Do not set
10176 deprecated_extract_struct_value_address.
10177
07be497a
AC
10178 * xstormy16-tdep.c: Update copyright.
10179 (xstormy16_extract_struct_value_address): Update to current
10180 extract struct value address interface.
10181 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10182 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10183 current extract struct value address interface.
10184 (sh64_gdbarch_init): Set extract_struct_value_address.
10185
6b4d5c91
AC
10186 * cris-tdep.c: Update copyright.
10187 (cris_extract_struct_value_address): Delete function.
10188 (struct_return_address): Delete variable.
10189 (cris_store_struct_return): Do not set struct_return_address.
10190
464e0365
AC
10191 * mcore-tdep.c: Update copyright.
10192 (mcore_extract_struct_value_address): Delete function. Update
10193 comments.
10194 (mcore_gdbarch_init): Update.
10195 * mn10300-tdep.c: Update copyright.
10196 (mn10300_extract_struct_value_address): Delete function.
10197 (mn10300_gdbarch_init): Update.
10198 * v850-tdep.c: Update copyright.
10199 (v850_extract_struct_value_address): Delete.
10200 (v850_gdbarch_init): Update.
10201 * ns32k-tdep.c: Update copyright.
10202 (ns32k_extract_struct_value_address): Delete.
10203 (ns32k_gdbarch_init): Update.
10204 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10205 (hppa_gdbarch_init): Update.
10206 * vax-tdep.c: Update copyright.
10207 (vax_extract_struct_value_address): Delete.
10208 (vax_gdbarch_init): Update.
10209
afb18d0f
AC
10210 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10211 * gdbarch.h, gdbarch.c: Re-generate.
10212 * procfs.c (procfs_fetch_registers): Delete reference to
10213 DEPRECATED_NPC_REGNUM.
10214 (procfs_store_registers): Ditto.
10215 * regcache.c (generic_target_write_pc): Simplify.
10216 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10217
a698f53e
AC
10218 * core-sol2.c (fetch_core_registers): Replace
10219 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10220
adc11376
AC
10221 * hppa-tdep.c: Update copyright year.
10222 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10223 NPC_REGNUM.
10224 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10225
b6cb9035
AC
10226 * mips-tdep.c (mips_write_pc): New function.
10227 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10228 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10229 (mips_find_saved_regs, mips_software_single_step: Ditto.
10230 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10231 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10232
6d82d43b
AC
102332004-01-17 Andrew Cagney <cagney@redhat.com>
10234
10235 * mips-tdep.c: Re-indent. Group functions by ABI.
10236
71bd6bd4
AC
102372004-01-17 Andrew Cagney <cagney@redhat.com>
10238
10239 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10240 * gdbarch.c: Re-generate.
10241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10242 DECR_PC_AFTER_BREAK to zero.
10243 * vax-tdep.c (vax_gdbarch_init): Ditto.
10244 * v850-tdep.c (v850_gdbarch_init): Ditto.
10245 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10246 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10247 * sh-tdep.c (sh_gdbarch_init): Ditto.
10248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10249 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10250 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10251 * mips-tdep.c (mips_gdbarch_init): Ditto.
10252 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10254 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10255 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10256 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10257 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10259 * frv-tdep.c (frv_gdbarch_init): Ditto.
10260 * cris-tdep.c (cris_gdbarch_init): Ditto.
10261 * avr-tdep.c (avr_gdbarch_init): Ditto.
10262 * arm-tdep.c (arm_gdbarch_init): Ditto.
10263 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10264
a02abb62
JB
102652004-01-17 J. Brobecker <brobecker@gnat.com>
10266
10267 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10268 Delete, no longer used.
10269 (read_subrange_type): New function, mostly extracted from
10270 read_array_type().
10271 (read_array_type): Replace extracted code by call to
10272 read_subrange_type().
10273 (dwarf2_get_attr_constant_value): New function.
10274 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10275 (add_partial_symbol): Likewise.
10276 (process_die): Likewise.
10277 (new_symbol): Likewise.
10278 (read_type_die): Likewise.
10279
cf5b2f1b
AC
102802004-01-16 Andrew Cagney <cagney@redhat.com>
10281
10282 * symfile.c: Update copyright year.
10283 (compare_symbols): Delete unused function.
10284 * stabsread.c: Update copyright year.
10285 (lrs_general_complaint): Delete unused function.
10286 (ref_search_value): Ditto.
10287 (get_substring): Delete declaration.
10288 * sh64-tdep.c: Update copyright year.
10289 (sh64_get_gdb_regnum): Delete unused function.
10290 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10291 Delete unused function.
10292
d33b9831
MK
102932004-01-17 Mark Kettenis <kettenis@gnu.org>
10294
10295 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10296 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10297
7aea86e6
AC
102982004-01-16 Andrew Cagney <cagney@redhat.com>
10299
10300 Changes from Peter Schauer.
10301 * rs6000-tdep.c: Update copyright year.
10302 (rs6000_push_dummy_call): Update the stack pointer before
10303 accessing the corresponding stack region.
10304 * rs6000-nat.c: Update copyright year.
10305 (set_host_arch): Set "info.abfd" to "exec_bfd".
10306
26b0da32
MK
103072004-01-15 Mark Kettenis <kettenis@gnu.org>
10308
10309 * blockframe.c: Update copyright year.
10310 (inside_entry_func): Don't treat a zero PC specially.
10311
86fbe6cc
EZ
103122004-01-14 Elena Zannoni <ezannoni@redhat.com>
10313
10314 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10315 variable.
10316 (gcore_create_callback): Ditto. Skip any memory segment that has
10317 no permissions set.
10318
63d06c5c
DC
103192004-01-14 David Carlton <carlton@kealia.com>
10320
10321 Change symbols for C++ nested types to contain the fully qualified
10322 name, if possible. (At least in the DWARF-2 case.) Partial fix
10323 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10324 c++/895.
10325 * c-exp.y (qualified_type): Handle types nested within classes.
10326 * cp-namespace.c: Update comments.
10327 (cp_set_block_scope): Delete #if 0.
10328 (cp_lookup_nested_type): Handle types nested within classes.
10329 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10330 when appropriate.
10331 (add_partial_symbol): Add the name of the enclosing namespace to
10332 types.
10333 (pdi_needs_namespace): New.
10334 (add_partial_namespace): Tweak comment.
10335 (add_partial_structure): New.
10336 (psymtab_to_symtab_1): Initialize processing_current_prefix
10337 here...
10338 (process_die): instead of here.
10339 (read_structure_scope): Try to figure out the name of the class or
10340 namespace that the structure might be defined within.
10341 (read_enumeration): Generate fully-qualified names, if possible.
10342 (read_namespace): Don't set name to NULL.
10343 (die_specification): New.
10344 (new_symbol): Generate fully-qualified names for types.
10345 (read_type_die): Determine appropriate prefix.
10346 (determine_prefix): New.
10347 (typename_concat): New.
10348 (class_name): New.
10349 * valops.c (value_aggregate_elt): Pass NOSIDE to
10350 value_struct_elt_for_reference.
10351 (value_struct_elt_for_reference): Make static, add NOSIDE
10352 parameter, call value_maybe_namespace_elt as a last resort.
10353 (value_namespace_elt): Break out code into
10354 value_maybe_namespace_elt.
10355 (value_maybe_namespace_elt): New.
10356
87783b8b
AC
103572004-01-12 Andrew Cagney <cagney@redhat.com>
10358
10359 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10360 cooked floating-point registers.
10361 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10362 and value_to_register.
10363
6503b91e
AC
103642004-01-13 Andrew Cagney <cagney@redhat.com>
10365
10366 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10367 * gdbarch.c: Re-generate.
10368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10369 FUNCTION_START_OFFSET.
10370 * v850-tdep.c (v850_gdbarch_init): Ditto.
10371 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10372 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10373 * sh-tdep.c (sh_gdbarch_init): Ditto.
10374 * s390-tdep.c (s390_gdbarch_init): Ditto.
10375 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10376 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10378 * mips-tdep.c (mips_gdbarch_init): Ditto.
10379 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10380 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10382 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10383 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10384 * i386-tdep.c (i386_gdbarch_init): Ditto.
10385 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10386 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10387 * frv-tdep.c (frv_gdbarch_init): Ditto.
10388 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10389 * cris-tdep.c (cris_gdbarch_init): Ditto.
10390 * avr-tdep.c (avr_gdbarch_init): Ditto.
10391 * arm-tdep.c (arm_gdbarch_init): Ditto.
10392 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10393
ea1dd7bc
DJ
103942004-01-13 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * infrun.c (follow_fork_mode_ask): Remove.
10397 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10398 (follow_fork): Simplify and remove internal error for
10399 follow_fork_mode_ask.
10400 (_initialize_infrun): Update "set follow-fork-mode" help text.
10401
0f0cffd2
AC
104022004-01-13 Andrew Cagney <cagney@redhat.com>
10403
10404 * configure.in: Update copyright year.
10405 (build_warnings): Add -Wunused-label.
10406 * configure: Re-generate.
10407
de38af99
AC
104082004-01-12 Andrew Cagney <cagney@redhat.com>
10409
954a7fba
AC
10410 * exec.h (exec_ops): Make "extern".
10411
de38af99
AC
10412 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10413 the function is void.
10414 (mips_pseudo_register_write): Ditto.
10415
1a111ce3
AC
104162004-01-12 Andrew Cagney <cagney@redhat.com>
10417
10418 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10419 call. Never defined.
10420 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10421 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10422 (struct sparc_gregset, struct regcache): Ditto.
10423 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10424
48efe704
AC
104252004-01-12 Andrew Cagney <cagney@redhat.com>
10426
10427 * mi/ChangeLog: Delete file. Renamed to ...
10428 * mi/ChangeLog-1999-2003: New file.
10429 * tui/ChangeLog: Delete file. Renamed to ...
10430 * tui/ChangeLog-1998-2003: New file.
fe61caab 10431
a54124c5
MK
104322004-01-11 Mark Kettenis <kettenis@gnu.org>
10433
2ca62865
MK
10434 * sparc64nbsd-tdep.c: Include "regset.h".
10435 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10436 Remove variables.
10437 (fetch_core_registers): Remove function.
10438 (sparc64nbsd_core_fns): Remove variable.
10439 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10440 functions.
10441 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10442 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10443 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10444
ca9d58e9
MK
10445 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10446 sparc_extract_struct_value_address.
10447 (sparc32_gdbarch_init): Set extract_struct_value_address.
10448 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10449 function.
10450 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10451 return_value_on_stack.
10452
3cc87ec0
MK
10453 * NEWS: Mention that %cs and %ss have been added to the AMD64
10454 configurations
10455
5bf00f29
MK
10456 * frame.c: Update copyright year.
10457 (get_prev_frame): Improve comment.
10458
4f7ec84e
MK
10459 * sparc64fbsd-tdep.c: Include "regset.h".
10460 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10461 Remove variables.
10462 (fetch_core_registers): Remove function.
10463 (sparc64fbsd_core_fns): Remove variable.
10464 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10465 functions.
10466 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10467 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 10468 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 10469
4e7b0cd3
MK
10470 * sparcnbsd-tdep.c: Include "regset.h".
10471 (fetch_core_registers): Remove function.
10472 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10473 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10474 functions.
10475 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10476 TDEP->fpregset.
46b58ce9 10477 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 10478
a54124c5
MK
10479 * sparc-tdep.h (struct regset): Provide opaque declaration.
10480 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10481 fpregset and sizeof_fpregset members.
10482 * sparc-tdep.c (struct regset): Provide opaque declaration.
10483 (sparc_regset_from_core_section): New function.
10484 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10485 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10486 Set regset_from_core_section when appropriate.
10487
29ff87c5
MK
104882004-01-10 Mark Kettenis <kettenis@gnu.org>
10489
79b1ab3d
MK
10490 * x86-64-tdep.c (amd64_non_pod_p): New function.
10491 (amd64_classify_aggregate): Return class memory for non-POD
10492 C++ structure types.
10493
6470d250
MK
10494 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10495 argument. Use it to reserve a register if necessary.
10496 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10497 amd64_push_arguments.
10498
562c50c2
MK
10499 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10500
af233647
MK
10501 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10502 register numbers in comments.
10503 * x86-64-tdep.h: Update copyright year.
10504 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10505 Adjust for addition of %cs and %ss.
10506 * amd64fbsd-nat.c: Update copyright year.
10507 (reg_offset): Add register offsets for %cs and %ss.
10508 * amd64fbsd-tdep.c: Update copyright year.
10509 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10510 (amd64fbsd_sc_reg_offset): Likewise.
10511 * x86-64-linux-nat.c: Update copyright year.
10512 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10513 and %ss.
10514 * amd64nbsd-nat.c: Update copyright year.
10515 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10516 * amd64nbsd-tdep.c: Update copyright year.
10517 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10518 * x86-64-linux-tdep.c: Update copyright year.
10519 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10520 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10521 * regformats/reg-x86-64.dat: Add %cs and %ss.
10522
29ff87c5
MK
10523 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10524 variables to prevent long lines. Update comments to reflect
10525 reality.
10526
38d518c9
EZ
105272004-01-09 David Carlton <carlton@kealia.com>
10528
10529 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10530 * dwarf2read.c (read_namespace): Pull out name-generating code
10531 into namespace_name. Rename previous_namespace to previous_prefix
10532 and processing_current_namespace to processing_current_prefix..
10533 (namespace_name): New function.
10534 (add_partial_symbol): Substitute uses of pdi->name with
10535 actual_name.
10536 * cp-support.h: Rename processing_current_namespace to
10537 processing_current_prefix.
10538 Update copyright year.
10539 * cp-namespace.c: Rename processing_current_namespace to
10540 processing_current_prefix.
10541 Update copyright year.
fe61caab 10542
1e4728e7
AC
105432004-01-09 Andrew Cagney <cagney@redhat.com>
10544
10545 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10546
c77c642a
MK
105472004-01-09 Mark Kettenis <kettenis@gnu.org>
10548
10549 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10550 complaining.
10551 (process_one_symbol): Deal with N_PATCH stabs.
10552
b44e9041
EZ
105532004-01-09 Elena Zannoni <ezannoni@redhat.com>
10554
10555 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10556 ifdeffed code.
10557 Update copyright year.
38d518c9 10558
eccfb640
MC
105592004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10560
10561 * config/pa/tm-hppa.h: Update extern declarations for
10562 hppa32_hpux_frame_saved_pc_in_sigtramp,
10563 hppa32_hpux_frame_base_before_sigtramp, and
10564 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10565
848c5feb
MC
105662004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10567
10568 * config/pa/tm-hppah.h: Update copyright years.
10569
3cc5d663
AC
105702004-01-08 Andrew Cagney <cagney@redhat.com>
10571
10572 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10573 (mips_o32_reg_struct_has_addr): Delete function.
10574 (mips_gdbarch_init): Update.
10575 (mips_extract_struct_value_address): Delete function.
10576
bfec0b41
JJ
105772004-01-08 David Mosberger <davidm@hpl.hp.com>
10578
10579 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10580 reality.
10581
16e109ca
AC
105822004-01-07 Andrew Cagney <cagney@redhat.com>
10583
6214a8a1
AC
10584 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10585 architecture's elf flags (when available).
10586
8d5838b5
AC
10587 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10588 FPU to the start, check the MIPS FPU when looking for an old
10589 architecture.
10590 (set_mipsfpu_single_command): Update the architecture.
10591 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10592
480d3dd2
AC
10593 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10594 (mips_mask_address_p): Add "tdep" parameter.
10595 (show_mask_address, mips_addr_bits_remove): Update.
10596 (mips_dump_tdep): Update.
10597 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10598 (MIPS_STACK_ARGSIZE): Delete macro.
10599 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10600 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10601 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10602 (mips_dump_tdep): Update.
10603 (MIPS_SAVED_REGSIZE): Delete macro.
10604 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10605 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10606 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10607 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10608 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10609 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10610 (mips_pop_frame, return_value_location): Update.
10611 (mips_n32n64_return_value, mips_dump_tdep): Update.
10612
ec03c1ac
AC
10613 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10614 MIPS ABI.
10615
16e109ca
AC
10616 * mips-tdep.c: Update copyright.
10617 (mips_gdbarch_init): Merge two code blocks handling the register
10618 name and number layout.
10619
15255275
MS
106202004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10621
10622 * tracepoint.c (validate_actionline): Fix segv at EOF
10623
9f9057da
MC
106242004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10625
10626 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10627 properly for static fields.
10628
0127c0d3 106292004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 10630 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
10631
10632 * disasm.c: Update copyright to include 2004.
10633 (do_mixed_source_and_assembly): For uiout asm list
10634 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 10635 NULL and do so prior to loop. Only reset when we close off
0127c0d3 10636 the tuple/list. Move check for whether to close off the
fe61caab 10637 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
10638 on each loop iteration.
10639
5269965e
AC
106402004-01-05 Andrew Cagney <cagney@redhat.com>
10641
54f1137d
AC
10642 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10643 should be a switch case and not a label.
10644 * mips-tdep.c (mips32_next_pc): Delete unused labels
10645 "greater_equal_branch" and "less_zero_branch".
10646 * jv-valprint.c (java_print_value_fields): Delete unused label
10647 "flush_it".
10648
5269965e
AC
10649 * target.c (unpush_target): Only close a target that is in the
10650 target stack.
10651
dbc22fa1
MK
106522004-01-05 Mark Kettenis <kettenis@gnu.org>
10653
9515395e
MK
10654 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10655 address from [sp + 64] instead of %o2.
10656
dbc22fa1
MK
10657 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10658 fixes PR backtrace/1476.
10659
5439edaa
AC
106602004-01-05 Andrew Cagney <cagney@redhat.com>
10661
10662 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10663 move to start of file.
10664 * i386-tdep.h (struct regcache): Add opaque declaration.
10665 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10666 declaration.
10667 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10668 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10669 * win32-nat.c (fake_create_process): Use ISO C style definition.
10670 * stabsread.c (define_symbol): Delete #ifndef
10671 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10672 stabs_argument_has_addr call, macro never defined.
10673
19061abe
MC
106742004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10675
10676 * op50-rom.c: Delete.
10677 * w89k-rom.c: Delete.
10678 * Makefile.in: Remove references.
10679
e53bef9f
MK
106802004-01-04 Mark Kettenis <kettenis@gnu.org>
10681
10682 * x86-64-tdep.c: Update copyright year.
10683 (struct amd64_register_info): Rename from x86_64_register_info.
10684 (amd64_register_info): Rename from x86_64_register_info.
10685 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10686 (amd64_register_name): Rename from x86_64_register_name.
10687 (amd64_register_type): Rename from x86_64_register_type.
10688 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10689 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10690 (amd64_dwarf_reg_to_regnum): Rename from
10691 x86_64_dwarf_reg_to_regnum.
10692 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10693 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10694 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10695 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10696 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10697 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10698 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10699 (amd64_frame_cache): Rename from x86_64_frame_cache.
10700 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10701 (amd64_frame_prev_register): Rename from
10702 x86_64_frame_prev_register.
10703 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10704 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10705 (amd64_sigtramp_frame_cache): Rename from
10706 x86_64_sigtramp_frame_cache.
10707 (amd64_sigtramp_frame_prev_register): Rename from
10708 x86_64_sigtramp_frame_prev_register.
10709 (amd64_sigtramp_frame_unwind): Rename from
10710 x86_64_sigtramp_frame_unwind.
10711 (amd64_sigtramp_frame_sniffer): Rename from
10712 x86_64_sigtramp_frame_sniffer.
10713 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10714 (amd64_frame_base): Rename from x86_64_frame_base.
10715 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10716 (amd64_frame_align): Rename from x86_64_frame_align.
10717 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10718 (amd64_regset_from_core_section): Rename from
10719 x86_64_regset_from_core_section.
10720 (x86_64_init_abi): Update comments.
10721
fca6aa58
NR
107222004-01-04 Nick Roberts <nick@nick.uklinux.net>
10723
10724 * MAINTAINERS (write after approval): Add myself.
10725
8ada74e3
MK
107262004-01-04 Mark Kettenis <kettenis@gnu.org>
10727
10728 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10729 `float' arguments.
10730
5154b0cd
MK
107312004-01-04 Mark Kettenis <kettenis@gnu.org>
10732
10733 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10734 such that it mentions a specific version of GCC that exhibits this
10735 bug.
10736
fb316966
MK
107372004-01-03 Mark Kettenis <kettenis@gnu.org>
10738
200cc553
MK
10739 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10740 structure that has a single `float' member, store it in %f1 in
10741 addition to %f0.
10742
e226a4a0
MK
10743 * sparc-sol2-nat.c: Add missing '\'.
10744
b9d4c5ed
MK
10745 * sparc-tdep.c (sparc32_return_value): New function.
10746 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10747 Remove functions.
10748 (sparc32_gdbarch_init): Set return_value, don't set
10749 extract_return_value, store_return_value, use_struct_convention
10750 and return_value_on_stack.
10751
fb316966
MK
10752 * sparc-sol2-nat.c: Add missing ')'.
10753
1af510a8
JB
107542004-01-03 J. Brobecker <brobecker@gnat.com>
10755
10756 * infrun.c (handle_step_into_function): New function.
10757 (handle_inferior_event): Extract out some code into the new
10758 function above.
10759
5cf4d23a
JB
107602004-01-03 J. Brobecker <brobecker@gnat.com>
10761
10762 * infrun.c (handle_inferior_event): Move the declaration of
10763 real_stop_pc inside the if blocks where it is used.
10764
60af1db2
MK
107652004-01-03 Mark Kettenis <kettenis@gnu.org>
10766
10767 * sparc64-tdep.c (sparc64_16_byte_align_p)
10768 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10769 Use check_typedef to get subtypes of structures and unions.
10770 (sparc64_store_return_value): Fix calculation of the appropriate
10771 offset into VALBUF when storing a structure or union.
10772 (sparc64_return_value): New function.
10773 (sparc64_use_struct_convention): Remove function.
10774 (sparc64_init_abi): Set return_value, don't set
10775 extract_return_value, store_return_value and
10776 use_struct_convention.
10777
1a901d3f
EZ
107782004-01-03 Eli Zaretskii <eliz@elta.co.il>
10779
10780 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10781 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10782 gdb/config/alpha/xm-alphaosf.h,
10783 gdb/config/powerpc/tm-ppcle-eabi.h,
10784 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10785 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10786 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10787 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10788 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10789 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10790 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10791 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10792 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10793 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10794 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10795 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10796 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10797 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10798 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10799 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10800 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10801 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10802 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10803 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10804 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10805 Remove lines for .cvsignore files.
10806
ef52e463
JB
108072004-01-03 J. Brobecker <brobecker@gnat.com>
10808
10809 * infrun.c: Back out the previous change.
10810
cb1bf9dc
MK
108112004-01-03 Mark Kettenis <kettenis@gnu.org>
10812
f0424ef6
MK
10813 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10814 sparc-*-sunos4* to the list of REMOVED configurations.
10815
cb1bf9dc
MK
10816 * configure.tgt: Add back sparc-*-vxworks*.
10817 * remote-vxsparc.c: Remove all includes except for "defs.h",
10818 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10819 Include "sparc-tdep.h".
10820 (SPARC_R_G1): New define.
10821 (vxsparc_gregset): New variable.
10822 (ext_format_sparc): Remove extern declaration.
10823 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10824 sparc32_supply_fpregset.
10825 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10826 sparc_collect_rwindow and sparc32_collect_fpregset.
10827 * config/sparc/tm-vxworks.h: New file, based on recently removed
10828 tm-vxsparc.h.
10829 * config/sparc/vxworks.mt: New file, based on recently removed
10830 vxworks.mt.
fe61caab 10831
5e938f9f
JB
108322004-01-03 J. Brobecker <brobecker@gnat.com>
10833
10834 * infrun.c (handle_step_into_function): New function.
10835 (handle_inferior_event): Extract out some code into the new
10836 function above.
10837
386c036b
MK
108382004-01-02 Mark Kettenis <kettenis@gnu.org>
10839
10840 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10841 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10842 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10843 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10844 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10845 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10846 (sparc_nat_h): New variable.
10847 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10848 (tm-sun4os4.h): Remove dependency.
10849 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10850 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10851 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10852 sparc-tdep.o): Update dependencies.
10853 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10854 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10855 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10856 dependencies.
10857 * configure.host: Remove existing sparc-*-lynxos*,
10858 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10859 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10860 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10861 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10862 triplets.
10863 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10864 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10865 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10866 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10867 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10868 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10869 sparc64-*-solaris2* and sparc64-*-* triplets.
10870 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10871 "symtab.h" and "objfiles.h".
10872 (BIAS): Remove define.
10873 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10874 (X_DISP19): Remove macros.
10875 (sparc_fetch_instruction): Remove function.
10876 (struct gdbarch_tdep): Remove definition.
10877 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10878 (sparc_breakpoint_from_pc): Remove function.
10879 (struct sparc64_frame_cache): Remove definition.
10880 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10881 sparc64_unwind_pc): Remove functions.
10882 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10883 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10884 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10885 (sparc64_frame_cache): Change return type to `struct
10886 sparc_frame_cache *'. Simply call sparc_frame_cache.
10887 (sparc64_frame_this_id, sparc64_frame_prev_register,
10888 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10889 instead of `struct sparc64_frame_cache.
10890 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10891 sparc_analyze_control_transfer, sparc_software_single_step,
10892 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10893 _initialize_sparc64_tdep): Remove functions.
10894 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10895 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10896 macros.
10897 (sparc64_supply_gregset, sparc64_collect_gregset,
10898 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10899 (sparc64_init_abi): New function.
10900 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10901 inclusion guard. Include "sparc-tdep.h".
10902 (BIAS): Define.
10903 (r_tstate_offset, r_fprs_offset): New defines.
10904 (enum sparc_regnum): Remove defenition.
10905 (enum sparc64_regnum): Reformat.
10906 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10907 (sparc64_init_abi, sparc64_supply_gregset,
10908 sparc64_collect_gregset, sparc64_supply_fpregset,
10909 sparc64_collect_fpregset): New prototypes.
10910 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10911 Add extern declarations.
10912 (sparc64_sol2_init_abi): New prototype.
10913 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10914 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10915 prototypes.
10916 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10917 "sparnbsd-nat.h".
10918 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10919 functions.
10920 (_initialize_sparc64fbsd_nat): Remove initialization of
10921 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10922 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 10923 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
10924 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10925 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10926 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10927 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10928 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10929 (sparc64fbsd_r_y_offset): Remove variables.
10930 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10931 Make static and const.
10932 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10933 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10934 functions.
10935 (sparc64fbsd_gregset): New variable.
10936 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10937 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10938 and sparc64_supply_fpregset.
10939 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10940 (sparc64fbsd_sigtramp_frame_this_id)
10941 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10942 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10943 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10944 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10945 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10946 * sparcnbsd-tdep.c: Update copyright year. Include
10947 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10948 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10949 "value.h" and "sparcnbsd-tdep.h".
10950 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10951 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10952 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10953 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10954 defines.
10955 (sparcnbsd_gregset): New variable.
10956 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10957 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10958 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10959 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10960 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10961 variables.
10962 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10963 (sparc32nbsd_sigcontext_frame_this_id)
10964 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10965 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10966 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10967 (sparcnbsd_get_longjmp_target_32,
10968 sparcnbsd_get_longjmp_target_64): Remove functions.
10969 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10970 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10971 sparcnbsd_init_elf): Remove.
10972 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10973 (sparcnbsd_elf_init_abi): New functions.
10974 (_initialize_sparcnbsd_tdep): New prototype.
10975 (_initialize_sparnbsd_tdep): Update.
10976 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10977 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10978 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10979 * config/sparc/linux.mh: Update comment.
10980 (XM_FILE, HOST_IPC): Remove variables.
10981 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10982 sparc-linux-nat.o.
10983 * config/sparc/linux.mt: Update comment.
10984 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10985 * config/sparc/nbsd.mt: Reformat.
10986 * config/sparc/nbsd64.mh: Update comment.
10987 (NATDEPFILES): Add sparc-nat.o.
10988 * config/sparc/nbsd64.mt: Update comment.
10989 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
10990 (TM_FILE): Set to tm-nbsd.h.
10991 * config/sparc/nbsdelf.mh: Update comment.
10992 (NATDEPFILES): Add sparc-nat.o.
10993 (XM_FILE): Delete.
10994 * config/sparc/nbsdaout.mh: Update comment.
10995 (NATDEPFILES): Add sparc-nat.o
10996 (XM_FILE): Delete.
10997 * config/sparc/nm-linux.h: Update copyright year. Don't include
10998 "config/nm-svr4.h" and "solib.h". Add protection against multiple
10999 inclusion.
11000 (KERNEL_U_SIZE): Remove define.
11001 (kernel_u_size): Remove prototype.
11002 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11003 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11004 "regcache.h".
11005 (CHILD_PREPARE_TO_STORE): Remove define.
11006 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11007 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11008 sparcnbsd-nat.c: Rewrite files.
11009 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11010 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11011 sparcnbsd-tdep.h: Remove files.
11012 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11013 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11014 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11015 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11016 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11017 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11018 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11019 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11020 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11021 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11022 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11023 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11024 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11025 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11026 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11027 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11028 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11029 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11030 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11031
ee84457a
AC
110322004-01-02 Andrew Cagney <cagney@redhat.com>
11033
11034 From 2003-12-18 Kazuhiro Inaoka:
11035 * configure.host: Add m32r-linux target.
11036
0bc2134e
MC
110372004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11038
11039 * top.c (print_gdb_version): Update year to 2004.
11040
89a72f9c
MM
110412004-01-02 Mark Mitchell <mark@codesourcery.com>
11042
11043 * MAINTAINERS: Add myself to the write-after-approval category.
11044
86b013ed
DJ
110452004-01-02 Daniel Jacobowitz <drow@mvista.com>
11046
11047 From Bernardo Innocenti <bernie@develer.com>:
11048 * configure.tgt: Add uClinux target.
11049
e42c9534
AC
110502004-01-02 Andrew Cagney <cagney@redhat.com>
11051
11052 * utils.c (do_my_cleanups): Make static, add forward declaration.
11053 * defs.h (do_my_cleanups): Delete declaration.
11054
162467d3
EZ
110552004-01-02 Eli Zaretskii <eliz@elta.co.il>
11056
11057 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11058 bfd/ChangeLog-0203.
11059
78434e59
MK
110602004-01-02 Mark Kettenis <kettenis@gnu.org>
11061
11062 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11063 in <machine/reg.h>.
11064 * configure, config.in: Regenerate.
11065
48efe704
AC
11066For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11067tui/ChangeLog-1998-2003.
c906108c
SS
11068\f
11069Local Variables:
11070mode: change-log
11071left-margin: 8
11072fill-column: 74
11073version-control: never
11074End:
This page took 1.089747 seconds and 4 git commands to generate.