* doc/gdbint.texinfo (Host Definition): Remove documentation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2
3 * doc/gdbint.texinfo (Host Definition): Remove documentation
4 for USE_O_NOCTTY, no longer used.
5 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
6 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
7
8 2004-08-11 Joel Brobecker <brobecker@gnat.com>
9
10 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
11 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
12 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
13
14 2004-08-11 Mark Kettenis <kettenis@gnu.org>
15
16 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
17 instead of FIVE_ARG_PTRACE.
18
19 * inflow.c (O_NOCTTY): Define to zero if not already defined.
20 (new_tty): Use O_NOCTTY unconditionally.
21
22 2004-08-10 Mark Kettenis <kettenis@gnu.org>
23
24 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
25 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
26 fflush on stdout.
27
28 2004-08-10 Joel Brobecker <brobecker@gnat.com>
29
30 * xcoff_symfile_finish: Replace last call to xmfree by call
31 to xfree.
32
33 2004-08-10 Andrew Cagney <cagney@gnu.org>
34
35 * main.c (captured_main): Delete call to init_malloc.
36 * defs.h (init_malloc): Delete declaration.
37 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
38 (init_malloc): Delete functions.
39
40 * defs.h (xmfree): Delete.
41 * utils.c (xmfree): Delete function.
42 (xfree): Inline calls to xmfree and mfree.
43 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
44 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
45 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
46 * somread.c (som_symfile_finish): Ditto.
47 * objfiles.c (allocate_objfile, free_objfile):
48 * nlmread.c (nlm_symfile_finish): Ditto.
49 * hpread.c (hpread_symfile_finish): Ditto.
50 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
51 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
52 * coffread.c (coff_symfile_finish): Ditto.
53
54 * defs.h (xmcalloc): Delete declaration.
55 * utils.c (xmcalloc): Delete.
56 (xcalloc): Inline calls to xmcalloc and mcalloc.
57 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
58 xcalloc and xfree.
59 * symtab.c (create_demangled_names_hash): Ditto.
60
61 * defs.h (xmrealloc): Delete.
62 * utils.c (xmrealloc): Delete.
63 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
64 * symmisc.c (extend_psymbol_list): Use xrealloc.
65 * source.c (find_source_lines): Ditto.
66 * hpread.c (hpread_lookup_type): Ditto.
67 * dbxread.c (add_bincl_to_list): Ditto.
68
69 * utils.c (xmmalloc): Delete.
70 (xmalloc): Inline xmmalloc and mmalloc calls.
71 (msavestring): Use xmalloc.
72 * defs.h (xmmalloc): Delete declaration.
73 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
74 xmmalloc.
75 * symmisc.c (extend_psymbol_list): Ditto.
76 * symfile.c (init_psymbol_list): Ditto.
77 * source.c (find_source_lines): Ditto.
78 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
79 * elfread.c (elf_symtab_read): Ditto.
80 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
81 * coffread.c (coff_symfile_init): Ditto.
82
83 2004-08-10 David Carlton <carlton@bactrian.org>
84
85 * MAINTAINERS: Remove David Carlton from c++ testsuite
86 maintainers.
87
88 2004-08-10 Jerome Guitton <guitton@gnat.com>
89
90 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
91 print a line feed before the prompt.
92
93 2004-08-10 Mark Kettenis <kettenis@gnu.org>
94
95 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
96
97 2004-08-09 Joel Brobecker <brobecker@gnat.com>
98
99 General cleanup of the AIX xm include file:
100 * config/xm-aix4.h (fd_set): Remove undefine.
101 Remove include of <sys/select.h>.
102 (HAVE_TERMIO): Remove define.
103 (USG): Likewise.
104 (NULL): Remove redefine.
105 (alloca): Remove #pragma.
106 (vfork): Remove define.
107 (termdef): Remove.
108 (SIGWINCH_HANDLER): Remove.
109 (SIGWINCH_HANDLER_BODY): Remove.
110
111 2004-08-09 Mark Kettenis <kettenis@gnu.org>
112
113 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
114 GDB_OSABI_OPENBSD_ELF.
115
116 2004-08-07 Robert Millan <robertmh@gnu.org>
117
118 * bsd-kvm.c: Check for nlist.h before including it.
119
120 2004-08-09 Mark Kettenis <kettenis@gnu.org>
121
122 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
123 sigcontext' offset consistency checks for ancient BSD.
124
125 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
126
127 * configure.in: Check for <sys/types.h>. Check return and
128 argument types of ptrace.
129 * configure, config.in: Regenerate.
130
131 2004-08-09 Jim Blandy <jimb@redhat.com>
132
133 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
134 rs6000_register_sim_regno): Doc fixes.
135
136 2004-08-08 Joel Brobecker <brobecker@gnat.com>
137
138 * mips-tdep.c: Include "floatformat.h".
139 (n32n64_floatformat_always_valid): New function.
140 (floatformat_n32n64_long_double_big): New constant.
141 (mips_gdbarch_init): Set size and format of long double
142 for N32 and N64 ABIs.
143 * Makefile.in (mips-tdep.o): Update dependencies.
144
145 2004-08-08 Andrew Cagney <cagney@gnu.org>
146
147 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
148 print. Improve script's error messages.
149 * gdbarch.h: Re-generate.
150
151 * gdbarch.sh (pformat): New function.
152 (float_format, double_format, long_double_format): List with bit
153 members. Use pformat when printing.
154 * gdbarch.c, gdbarch.h: Re-generate.
155
156 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
157
158 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
159 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
160 (ppcnbsd_supply_pcb): New function.
161 (_initialize_ppcnbsd_nat): New prototype and function.
162 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
163 (LOADLIBES): New variable.
164 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
165
166 2004-08-08 Andrew Cagney <cagney@gnu.org>
167
168 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
169 (builtin_type_ieee_double, builtin_type_ia64_quad)
170 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
171 BE/LE floating-point types.
172 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
173 (builtin_type_ieee_double, builtin_type_ia64_quad)
174 (builtin_type_ia64_spill): Declare.
175 * doublest.c (_initialize_doublest, floatformat_ieee_single)
176 (floatformat_ieee_double, floatformat_arm_ext)
177 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
178 of LE/BE floatformats.
179 * doublest.h: (struct floatformat, floatformat_ieee_single)
180 (floatformat_ieee_double, floatformat_arm_ext)
181 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
182
183 2004-08-08 Mark Kettenis <kettenis@gnu.org>
184
185 * i386gnu-nat.c (gnu_store_registers): Fix typo.
186
187 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
188 instead of regcache_raw_supply when storing the registers.
189
190 * i386gnu-nat.c: Update copyright year.
191 (gnu_store_registers): Don't use deprecated_registers and
192 deprecated_registers_valid. Use regcache_valid_p and
193 regcache_raw_supply instead.
194
195 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
196 frame_pc_unwind.
197
198 * procfs.c (procfs_pid_to_str): Remove redundant and unused
199 variables. Incapitalized "process".
200
201 * configure.in: Add cursesX to the list of possible curses libs.
202 Add cursesX.h to the list of possible curses headers.
203 * configure, config.in: Regenerate.
204
205 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
206
207 * configure.in: Test for struct lwp in <sys/lwp.h>.
208 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
209 the offset of l_addr in struct lwp.
210
211 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
212
213 * bsd-kvm.c: Include "gdbcore.h"
214 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
215
216 2004-08-07 Andrew Cagney <cagney@gnu.org>
217
218 * gdbtypes.c (build_flt, build_complex): New functions.
219 (gdbtypes_post_init): Use.
220
221 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
222
223 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
224 through to builtin_type_uint128.
225
226 * c-exp.y: Use builtin_type function to obtain builtin types.
227
228 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
229 builtin_uint128.
230 * gdbtypes.c (gdbtypes_post_init): Update.
231 (build_gdbtypes): Move initialization of builtin_type_int0
232 through to builtin_type_uint128 from here ...
233 (_initialize_gdbtypes): ... to here.
234 * d10v-tdep.c (d10v_register_type): Update.
235
236 * doublest.c: Update copyright.
237 (floatformat_from_length): Call error when floatformat is NULL.
238 (extract_floating_by_length): Remove NULL fmt check.
239 (store_floating_by_length): Ditto.
240
241 2004-08-07 Andrew Cagney <cagney@gnu.org>
242
243 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
244 that the register is valid.
245
246 2004-08-05 Mark Kettenis <kettenis@chello.nl>
247
248 * i386-linux-tdep.c (i386_linux_sigtramp_start)
249 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
250 struct frame_info *. Use safe_frame_unwind_memory instead of
251 deprecated_read_memory_nobpt.
252 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
253 changed signature of i386_linux_sigtramp_start and
254 i386_linux_rt_sigtramp_start.
255
256 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
257 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
258 instead of deprecated_read_memory_nobpt.
259 (i386nbsd_sigtramp_p): Adjust for changed signature of
260 i386nbsd_sigtramp_offset.
261
262 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
263 safe_frame_unwind_memory instead of target_read_memory.
264
265 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
266 !NO_SYS_FILE.
267 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
268 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
269 (_initialize_kernel_u_addr): Remove prototype and function.
270 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
271 !NO_SYS_FILE.
272 * xcoffread.c: Likewise.
273
274 2004-08-06 Mark Kettenis <kettenis@gnu.org>
275
276 * vax-nat.c: New file.
277 * vaxbsd-nat.c: Tweak comment.
278 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
279 vaxnbsd-tdep.c.
280 (vax-nat.o): New dependency.
281 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
282 (vax-*-ultrix2*): Remove.
283 * config/vax/vax.mh: New file.
284 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
285 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
286 (vax_register_u_addr): New prototype.
287 (REGISTER_U_ADDR): Define using vax_register_u_addr.
288 * config/vax/vaxult2.mh: Remove file.
289 * config/vax/vaxult.mh: Remove file.
290 * config/vax/vaxbsd.mh: Remove file.
291 * config/vax/vax.mt (TM_FILE): Remove.
292 * config/vax/tm-vaxbsd.h: Remove file.
293
294 2004-08-06 Joel Brobecker <brobecker@gnat.com>
295
296 * aix-thread.c (get_signaled_thread): New function.
297 (iter_trap): Delete, no longer used.
298 (iter_tid): New function.
299 (pd_update): Find the thread that received the SIGTRAP signal
300 by first locating the kernel thread, and then finding its
301 associated thread.
302
303 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
304
305 * lin-lwp.c (child_wait): Continue inferior after processing
306 PTRACE_EVENT_CLONE event.
307
308 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
309
310 * MAINTAINERS: Add self to Write-After-Approval.
311
312 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
313
314 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
315 libunwind-xxxx.so" where xxxx is UNW_TARGET.
316
317 2004-08-05 Andrew Cagney <cagney@gnu.org>
318
319 * config/xm-sysv4.h: Delete file.
320 * config/mips/xm-irix5.h: Delete file.
321 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
322 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
323 * config/ia64/xm-aix.h: Delete file.
324 * config/ia64/aix.mh (XM_FILE): Delete.
325 * config/pa/xm-hppah.h: Delete file.
326 * config/pa/hpux11w.mh (XM_FILE): Delete.
327 * config/pa/hpux11.mh (XM_FILE): Delete.
328 * config/pa/hpux1020.mh (XM_FILE): Delete.
329 * config/pa/hppahpux.mh (XM_FILE): Delete.
330
331 * config/alpha/xm-alphalinux.h: Delete file.
332 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
333 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
334 * config/alpha/xm-alphaosf.h: Delete file.
335 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
336 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
337 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
338 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
339
340 * config/i386/xm-i386v.h: Delete file.
341 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
342 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
343 * config/i386/xm-i386sco.h: Delete file.
344 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
345 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
346 * config/i386/xm-i386v4.h: Delete file.
347 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
348 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
349 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
350 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
351
352 * config/vax/xm-vax.h: Delete file.
353 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
354 * config/vax/xm-vaxult2.h: Delete file.
355 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
356 * config/vax/vaxult2.mh (XM_FILE): Delete.
357 * config/vax/xm-vaxult.h: Delete file.
358 * config/vax/vaxult.mh (XM_FILE): Delete.
359 * config/vax/xm-vaxbsd.h: Delete file.
360 * config/vax/vaxbsd.mh (XM_FILE): Delete.
361
362 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
363 * gdbarch.h, gdbarch.c: Re-generate.
364 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
365 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
366 * frame.h: Delete deprecated_read_fp from comments.
367 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
368 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
369
370 2004-08-04 Mark Kettenis <kettenis@gnu.org>
371
372 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
373 trampoline in OpenBSD 3.5-current.
374
375 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
376 SSE registers.
377
378 * Makefile.in: Remove embedded page breaks.
379
380 2004-08-04 Jim Blandy <jimb@redhat.com>
381
382 * regcache.c (regcache_raw_read): Assert that, after calling
383 target_fetch_registers, the register we're reading is cached.
384
385 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
386 a call to 'internal_error', with a more helpful error message.
387 * rs6000-tdep.c (e500_pseudo_register_read,
388 e500_pseudo_register_write, rs6000_store_return_value): Same.
389
390 2004-08-04 Andrew Cagney <cagney@gnu.org>
391
392 * Makefile.in: Update dependencies.
393
394 2004-08-04 Jim Blandy <jimb@redhat.com>
395
396 Change the layout of the PowerPC E500 raw register cache to allow
397 the lower 32-bit halves of the GPRS to be their own raw registers,
398 not pseudoregisters.
399 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
400 add ppc_ev0_upper_regnum flag.
401 * rs6000-tdep.c: #include "reggroups.h".
402 (spe_register_p): Recognize the ev upper half registers as SPE
403 registers.
404 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
405 registers.
406 (e500_move_ev_register): New function.
407 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
408 vector registers are the pseudo-registers now, formed by splicing
409 together the gprs and the upper-half registers.
410 (e500_register_reggroup_p): New function.
411 (P): Macro deleted.
412 (P8, A4): New macro.
413 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
414 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
415 macros.
416 (registers_e500): Rearrange register set so that the raw register
417 set contains 32-bit GPRs and upper-half registers, and the SPE
418 vector registers become pseudo-registers.
419 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
420 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
421 register numbers are now the same for the E500 as they are for
422 other PowerPC variants. Register e500_register_reggroup_p as the
423 register group function for the E500.
424 * Makefile.in (rs6000-tdep.o): Update dependencies.
425
426 Adapt PPC E500 native support to the new raw regcache layout.
427 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
428 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
429 (fetch_spe_register, store_spe_register): Handle fetching/storing
430 all the SPE registers at once, if regno == -1. These now take
431 over the job of fetch_spe_registers and store_spe_registers.
432 (fetch_spe_registers, store_spe_registers): Deleted.
433 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
434 unconditionally; they're always raw. Fetch/store SPE upper half
435 registers, if present, instead of ev registers.
436 (fetch_register, store_register): Remove sanity checks: gprs are
437 never pseudo-registers now, so we never need to even mention any
438 registers that are ever pseudoregisters.
439
440 Use a fixed register numbering when communicating with the PowerPC
441 simulator.
442 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
443 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
444 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
445 New functions.
446 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
447 init_sim_regno_table.
448 * Makefile.in (gdb_sim_ppc_h): New variable.
449 (rs6000-tdep.o): Update dependencies.
450
451 2004-08-02 Andrew Cagney <cagney@gnu.org>
452
453 * cris-tdep.c (cris_register_size): Restore function, still used
454 locally.
455
456 * gdbarch.sh (deprecated_target_read_fp)
457 (deprecated_frame_locals_address, deprecated_frame_args_address)
458 (deprecated_frame_chain_valid, deprecated_frame_chain)
459 (deprecated_init_extra_frame_info, deprecated_pop_frame)
460 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
461 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
462 * gdbarch.h, gdbarch.c: Re-generate.
463 * regcache.c (deprecated_read_fp): Do not call
464 DEPRECATED_TARGET_READ_FP_P.
465 * infcmd.c (default_print_registers_info): Do not call
466 DEPRECATED_DO_REGISTERS_INFO.
467 * frame-base.c (default_frame_locals_address): Do not call
468 DEPRECATED_FRAME_LOCALS_ADDRESS.
469 (default_frame_args_address): Do not call
470 DEPRECATED_FRAME_ARGS_ADDRESS.
471
472 * gdbarch.sh (deprecated_register_raw_size)
473 (deprecated_register_virtual_size:int): Delete.
474 * gdbarch.h, gdbarch.c: Re-generate.
475 * cris-tdep.c (cris_register_size): Delete.
476 (cris_gdbarch_init): Update.
477 * alpha-tdep.c (alpha_register_raw_size)
478 (alpha_register_virtual_size): Delete.
479 (alpha_gdbarch_init): Update.
480
481 * gdbarch.sh (deprecated_register_virtual_type)
482 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
483 (deprecated_dummy_write_sp): Delete.
484 * gdbarch.h, gdbarch.c: Re-generate.
485
486 * gdbarch.sh (deprecated_register_bytes): Delete.
487 * gdbarch.h, gdbarch.c: Re-generate.
488 * regcache.c (deprecated_register_bytes): New function.
489 * regcache.h (deprecated_register_bytes): Declare.
490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
491 * v850-tdep.c (v850_gdbarch_init): Update.
492 * sh64-tdep.c (sh64_gdbarch_init): Update.
493 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
494 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
495 * mcore-tdep.c (mcore_gdbarch_init): Update.
496 * cris-tdep.c (cris_gdbarch_init): Update.
497 * arm-tdep.c (arm_gdbarch_init): Update.
498 * remote.c (init_remote_state): Update.
499 * remote-vx.c (vx_prepare_to_store): Update.
500 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
501 * irix5-nat.c (fetch_core_registers): Update.
502 * cris-tdep.c (cris_register_bytes_ok): Update.
503 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
504
505 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
506 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
507 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
508 (mips_insn16_frame_base_address, mips_insn16_frame_base)
509 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
510 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
511 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
512 (mips_insn32_frame_base_address, mips_insn32_frame_base)
513 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
514 with mips_insn16 and mips_insn32.
515
516 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
517 * rs6000-tdep.c (rs6000_push_dummy_call)
518 (rs6000_extract_return_value): Use register_size.
519 * xstormy16-tdep.c (xstormy16_get_saved_register)
520 (xstormy16_extract_return_value): Ditto.
521 * valops.c (value_assign): Ditto.
522 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
523 * v850-tdep.c (v850_extract_return_value): Ditto.
524 * tracepoint.c (collect_symbol): Ditto.
525 * target.c (debug_print_register): Ditto.
526 * stack.c (frame_info): Ditto.
527 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
528 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
529 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
530 (store_register_using_P): Ditto.
531 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
532 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
533 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
534 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
535 * regcache.c (deprecated_read_register_bytes)
536 (deprecated_write_register_bytes, read_register)
537 (write_register): Ditto.
538 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
539 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
540 * monitor.c (monitor_supply_register, monitor_fetch_register)
541 (monitor_store_register): Ditto.
542 * mn10300-tdep.c (mn10300_pop_frame_regular)
543 (mn10300_print_register): Ditto.
544 * mipsv4-nat.c (fill_fpregset): Ditto.
545 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
546 (mips64_fill_fpregset): Ditto.
547 * mi/mi-main.c (register_changed_p, get_register)
548 (mi_cmd_data_write_register_values): Ditto.
549 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
550 * irix5-nat.c (fill_gregset, fetch_core_registers):
551 * infrun.c (write_inferior_status_register): Ditto.
552 * infptrace.c (fetch_register, store_register): Ditto.
553 * infcmd.c (default_print_registers_info): Ditto.
554 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
555 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
556 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
557 * hpux-thread.c (hpux_thread_fetch_registers)
558 (hpux_thread_store_registers): Ditto.
559 * hppah-nat.c (store_inferior_registers, fetch_register):
560 * findvar.c (value_from_register): Ditto.
561 * dve3900-rom.c (fetch_bitmapped_register):
562 * cris-tdep.c (cris_gdbarch_init): Ditto.
563 * alpha-tdep.h: Ditto.
564 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
565
566 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
567 DEPRECATED_REGISTER_RAW_SIZE from comments.
568 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
569 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
570 DEPRECATED_REGISTER_RAW_SIZE.
571 * findvar.c (value_of_register): Simplify by assuming that the
572 registers raw and virtual sizes are identical.
573 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
574 comment.
575 * arch-utils.c (generic_register_size): Simplify by assuming
576 register_type.
577
578 * regcache.c (legacy_read_register_gen, real_register)
579 (legacy_write_register_gen): Delete, not used.
580
581 * regcache.c (struct regcache_descr): Delete legacy_p.
582 (init_legacy_regcache_descr): Delete function.
583 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
584 Do not use deprecated register functions.
585 (regcache_raw_read, deprecated_write_register_gen):
586 (deprecated_read_register_gen, regcache_raw_write): Delete code
587 predicated on legacy_p.
588 (register_size): Delete check against register raw size.
589
590 * cris-tdep.c (cris_register_type): Replace
591 cris_register_virtual_type.
592 (cris_gdbarch_init): Update, set register_type.
593
594 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
595 * gdbarch.h, gdbarch.c: Re-generate.
596 * arm-tdep.c (arm_frameless_function_invocation): Delete.
597 (arm_gdbarch_init) Do not set frameless function invocation.
598 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
599 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
600 * frv-tdep.c (frv_frameless_function_invocation): Delete.
601 (frv_gdbarch_init): Do not set frameless function invocation.
602 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
603 * sh-tdep.c (sh_gdbarch_init): Ditto.
604 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
605 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
606 * avr-tdep.c (avr_gdbarch_init): Ditto.
607
608 * blockframe.c (legacy_frame_chain_valid): Delete function.
609
610 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
611 and pc. Update comments.
612 (pc_in_dummy_frame): Delete function.
613 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
614 use the "id".
615 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
616 call_hi, top and pc, use the id.
617 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
618
619 * dummy-frame.c: Include "gdb_string.h".
620 (generic_save_call_dummy_addr, generic_push_dummy_frame)
621 (generic_save_dummy_frame_tos): Delete.
622 (dummy_frame_push): New function, replaces above.
623 * dummy-frame.h: Update copyright.
624 (dummy_frame_push): Declare.
625 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
626 (generic_save_call_dummy_addr): Delete declarations.
627 * infcall.c: Include "dummy-frame.h".
628 (call_function_by_hand): Add locals caller_regcache,
629 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
630 with call to frame_save_as_regcache plus cleanup. Delete calls to
631 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
632 Move clear_proceed_status to just before the resume, add call to
633 dummy_frame_push (discard cleanup).
634 * Makefile.in (infcall.o): Add $(dummy_frame_h).
635 (dummy-frame.o): Add $(gdb_string_h).
636
637 2004-08-01 Andrew Cagney <cagney@gnu.org>
638
639 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
640 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
641 * dummy-frame.c (find_dummy_frame): Delete.
642 (struct dummy_frame_cache, dummy_frame_sniffer)
643 (dummy_frame_prev_register, dummy_frame_this_id)
644 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
645 frame unwinder using a dummy_frame_cache.
646
647 2004-08-01 Andrew Cagney <cagney@gnu.org>
648
649 * frame.h (frame_save_as_regcache): Declare.
650 * frame.c (frame_save_as_regcache): New function.
651 (do_frame_read_register): Replace do_frame_unwind_register.
652 (frame_pop): Use frame_save_as_regcache.
653 * dummy-frame.c (generic_push_dummy_frame): Use
654 frame_save_as_regcache.
655
656 2004-08-01 Joel Brobecker <brobecker@gnat.com>
657
658 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
659 file as included until we record the first line in the linetable.
660
661 2004-08-01 Andrew Cagney <cagney@gnu.org>
662
663 * frame.h (deprecated_pop_dummy_frame)
664 (deprecated_read_register_dummy)
665 (deprecated_generic_find_dummy_frame): Delete.
666 * dummy-frame.c (deprecated_generic_find_dummy_frame)
667 (deprecated_read_register_dummy)
668 (deprecated_find_dummy_frame_regcache)
669 (discard_innermost_dummy)
670 (deprecated_pop_dummy_frame): Delete.
671 (dummy_frame_this_id): Simplify.
672 (struct dummy_frame): Delete "fp" and "sp".
673 (find_dummy_frame): Simplify.
674 (generic_push_dummy_frame): Do not set "fp" or "sp".
675 (fprint_dummy_frames): Do not print "fp" and "sp"
676
677 2004-08-01 Mark Kettenis <kettenis@gnu.org>
678
679 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
680 (struct i386_insn): New structure.
681 (i386_match_insn): New function.
682 (i386_frame_setup_skip_insns): New variable.
683 (i386_analyze_frame_setup): Change to use i386_match_insn and the
684 array i386_frame_setup_insns of instructions that should be
685 skipped inside the frame setup sequence.
686
687 2004-08-01 Andrew Cagney <cagney@gnu.org>
688
689 * frame.h (deprecated_frame_xmalloc_with_cleanup)
690 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
691 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
692 * stack.c (frame_info): Delete references to
693 DEPRECATED_FRAME_INIT_SAVED_REGS and
694 deprecated_get_frame_saved_regs.
695 * frame.c (struct frame_info): Delete saved_regs and extra_info.
696 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
697 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
698 (frame_unwind_register_signed)
699 (frame_unwind_register_unsigned)
700 (frame_unwind_unsigned_register): Use register_size.
701 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
702 (deprecated_frame_xmalloc_with_cleanup)
703 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
704 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
705
706 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
707 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
708 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
709 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
710
711 * infcall.c (call_function_by_hand): Do not use
712 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
713 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
714 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
715 DEPRECATED_STACK_ALIGN.
716
717 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
718
719 Committed by Andrew Cagney.
720 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
721
722 2004-08-01 Andrew Cagney <cagney@gnu.org>
723
724 * mips-tdep.c (mips16_frame_cache)
725 (mips16_frame_this_id, mips16_frame_prev_register)
726 (mips16_frame_unwind, mips16_frame_sniffer)
727 (mips16_frame_base_address, mips16_frame_base)
728 (mips16_frame_base_sniffer, mips32_frame_cache)
729 (mips32_frame_this_id, mips32_frame_prev_register)
730 (mips32_frame_unwind, mips32_frame_sniffer)
731 (mips32_frame_base_address, mips32_frame_base)
732 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
733 separate heuristic mips16 and mips32 unwinders.
734 (mips_stub_frame_cache, mips_stub_frame_this_id)
735 (mips_stub_frame_prev_register)
736 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
737 (mips_stub_frame_base_address, mips_stub_frame_base)
738 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
739 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
740 match true mdebug frames.
741 (non_heuristic_proc_desc): Add forward declaration.
742
743 2004-08-01 Andrew Cagney <cagney@gnu.org>
744
745 * config/mips/tm-irix6.h: Delete file.
746 * config/mips/tm-irix5.h: Delete file.
747 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
748 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
749
750 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
751 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
752 * config/nm-gnu.h (NO_CORE_OPS): Delete.
753 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
754 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
755 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
756 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
757 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
758 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
759 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
760 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
761 (TARGET_SIGNAL_RAW_VALUES): Delete.
762 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
763 Delete.
764 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
765 (TARGET_HW_WATCH_LIMIT): Delete.
766 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
767 * minimon.h: Delete file.
768
769 * trad-frame.c (trad_frame_get_this_base)
770 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
771 functions.
772 * trad-frame.h (trad_frame_set_this_base)
773 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
774
775 2004-07-31 Andrew Cagney <cagney@gnu.org>
776
777 * trad-frame.c (trad_frame_get_prev_register): Rename
778 trad_frame_get_prev_register.
779 * vax-tdep.c (vax_frame_prev_register): Update.
780 * trad-frame.h: Update.
781 * trad-frame.c (trad_frame_get_register): Update.
782 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
783 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
784 Update.
785 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
786 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
787 Update.
788 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
789 Update.
790 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
791 Update.
792 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
793 Update.
794 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
795 Update.
796 * s390-tdep.c (s390_frame_prev_register)
797 (s390_stub_frame_prev_register)
798 (s390_sigtramp_frame_prev_register): Update.
799 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
800 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
801 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
802 * m88k-tdep.c (m88k_frame_prev_register)
803 * m68hc11-tdep.c (m68hc11_frame_prev_register)
804 * m32r-tdep.c (m32r_frame_prev_register): Update.
805 * hppa-tdep.c (hppa_frame_prev_register_helper)
806 * frv-tdep.c (frv_frame_prev_register): Update.
807 * d10v-tdep.c (d10v_frame_prev_register): Update.
808 * cris-tdep.c (cris_frame_prev_register): Update.
809 * avr-tdep.c (avr_frame_prev_register): Update.
810 * arm-tdep.c (arm_prologue_prev_register)
811 (arm_sigtramp_prev_register): Update.
812
813 2004-07-31 Andrew Cagney <cagney@gnu.org>
814
815 * frame.h (legacy_saved_regs_unwind)
816 (legacy_frame_chain_valid, legacy_frame_p)
817 (enum frame_type): Delete UNKNOWN_FRAME.
818 * dummy-frame.c (dummy_frame_this_id): Simplify.
819 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
820 * frame.c (struct frame_info): Delete the field "type".
821 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
822 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
823 (legacy_saved_regs_unwind, legacy_frame_p)
824 (frame_type_from_pc): Delete.
825 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
826 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
827
828 2004-07-31 Mark Kettenis <kettenis@gnu.org>
829
830 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
831 indentation.
832
833 * mips-nat.c: Remove file.
834 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
835 (mips-nat.o): Remove dependency.
836
837 * infptrace.c: Update copyright year.
838 (fetch_register): Pass NULL in regcache_raw_supply call instead of
839 explicitly setting the buffer to all zeroes.
840
841 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
842 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
843
844 2004-07-30 Andrew Cagney <cagney@gnu.org>
845
846 * GDB 6.2 released from gdb_6_2-branch.
847
848 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
849
850 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
851
852 * exec.c (exec_file_attach):
853 * nto-tdep.c (nto_find_and_open_solib):
854 * pa64solib.c (pa64_solib_sizeof_symbol_table):
855 * solib.c (solib_open):
856 * somsolib.c (som_solib_sizeof_symbol_table):
857 * source.c (is_regular_file, openp, open_source_file):
858 * symfile.c (symfile_bfd_open):
859 * wince.c (upload_to_device): Differentiate between the search for
860 binary and source files.
861
862 2004-07-30 Andrew Cagney <cagney@gnu.org>
863
864 * complaints.c (_initialize_complaints): Pass NULL to
865 add_setshow_zinteger_cmd for help_doc.
866 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
867
868 2004-07-30 Andrew Cagney <cagney@gnu.org>
869
870 Fix PR i18n/761.
871 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
872 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
873 $(PACKAGE).pot and update-po.
874 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
875 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
876 (update-po): New rules.
877 (localedir): Define using autoconf.
878 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
879 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
880 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
881 * configure.in: Generate CATALOGS and LINGUAS from contents of
882 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
883 * configure: Re-generate.
884 * po/gdbtext: New file
885
886 2004-07-30 Jerome Guitton <guitton@gnat.com>
887
888 * MAINTAINERS: Reorder Write After Approval list in alphabetical
889 order.
890
891 2004-07-30 David Lecomber <dsl@sources.redhat.com>
892
893 * dwarf2read.c (read_file_scope): Set producer if attribute
894 present.
895 (struct dwarf2_cu): Added new member producer.
896
897 2004-07-30 Jerome Guitton <guitton@gnat.com>
898
899 * inflow.c (kill_command): release file handles in BFD.
900 * exec.c (exec_file_attach): Ditto.
901 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
902
903 2004-07-29 Andrew Cagney <cagney@gnu.org>
904
905 * PROBLEMS (mips-irix): Note that it is broken.
906
907 2004-07-29 Andrew Cagney <cagney@gnu.org>
908
909 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
910 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
911
912 * config/xm-nbsd.h: Delete file.
913 * config/arm/xm-nbsd.h: Delete file.
914 * config/i386/xm-nbsd.h: Delete file.
915 * config/ns32k/xm-nbsd.h: Delete file.
916 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
917 * config/i386/nbsdelf.mh (XM_FILE): Delete.
918 * config/i386/nbsdaout.mh (XM_FILE): Delete.
919 * config/arm/nbsdelf.mh (XM_FILE): Delete.
920 * config/arm/nbsdaout.mh (XM_FILE): Delete.
921
922 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
923 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
924 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
925 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
926 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
927 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
928
929 * config/powerpc/xm-linux.h: Delete empty file.
930 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
931 * config/powerpc/linux.mh (XM_FILE): Delete.
932 * config/m68k/xm-linux.h: Delete empty file.
933 * config/m68k/linux.mh (XM_FILE): Delete.
934 * config/ia64/xm-linux.h: Delete empty file.
935 * config/ia64/linux.mh (XM_FILE): Delete.
936 * config/arm/xm-linux.h: Delete empty file.
937 * config/arm/linux.mh (XM_FILE): Delete.
938
939 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
940 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
941 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
942 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
943 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
944 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
945 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
946 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
947
948 * config/m68k/xm-m68k.h: Delete file.
949 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
950 copyright.
951 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
952 * config/pa/xm-linux.h: Delete empty file.
953 * config/pa/linux.mh (XM_FILE): Delete.
954 * config/i386/xm-i386.h: Delete empty file.
955 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
956 "i386/xm-i386.h".
957 * config/i386/obsdaout.mh (XM_FILE): Delete.
958 * config/i386/obsd64.mh (XM_FILE): Delete.
959 * config/i386/fbsd64.mh (XM_FILE): Delete.
960 * config/i386/nto.mh (XM_FILE): Delete.
961 * config/i386/obsd.mh (XM_FILE): Delete.
962 * config/i386/linux64.mh (XM_FILE): Delete.
963 * config/i386/linux.mh (XM_FILE): Delete.
964 * config/i386/i386sol2.mh (XM_FILE): Delete.
965 * config/i386/i386gnu.mh (XM_FILE): Delete.
966 * config/i386/fbsd.mh (XM_FILE): Delete.
967 * config/i386/nbsd64.mh (XM_FILE): Delete.
968
969 2004-07-29 Andrew Cagney <cagney@gnu.org>
970
971 * config/pa/xm-linux.h: Do not include "floatformat.h".
972 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
973 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
974 * config/i386/xm-i386.h: Do not include "floatformat.h".
975 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
976 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
977 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
978 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
979 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
980 GDB_HOST_LONG_DOUBLE_FORMAT instead.
981 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
982 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
983 * configure, config.in: Regenerate.
984 * configure.host (gdb_host_float_format, gdb_host_double_format)
985 (gdb_host_long_double_format): Set according to the host.
986
987 2004-07-29 Andrew Cagney <cagney@gnu.org>
988
989 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
990
991 2004-07-28 Andrew Cagney <cagney@gnu.org>
992
993 * PROBLEMS: Mention threads/1650.
994 * NEWS: Mention the NPTL fix.
995
996 2004-07-28 Andrew Cagney <cagney@gnu.org>
997
998 * cli/cli-decode.c (add_setshow_cmd): Delete function.
999 (add_setshow_cmd_full): Make static.
1000 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1001 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1002 * cli/cli-decode.c (add_setshow_filename_cmd)
1003 (add_setshow_string_cmd): New functions.
1004 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1005 * mips-tdep.c (_initialize_mips_tdep): Update.
1006 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1007 * cli/cli-logging.c (_initialize_cli_logging): Update.
1008 * complaints.c (_initialize_complaints): Update.
1009 * remote.c (_initialize_remote): Update.
1010
1011 2004-07-28 Andrew Cagney <cagney@gnu.org>
1012
1013 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1014 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1015 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1016 print parameters. Make string parameters constant.
1017 * command.h: Update. Update copyright.
1018 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1019 * observer.c (_initialize_observer): Ditto.
1020 * frame.c (_initialize_frame): Ditto.
1021 * complaints.c (_initialize_complaints): Ditto.
1022 * maint.c (_initialize_maint_cmds): Ditto.
1023 * target.c (initialize_targets): Ditto.
1024 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1025 * infcall.c (_initialize_infcall): Ditto.
1026 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1027 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1028 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1029 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1030 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1031
1032 2004-07-28 Andrew Cagney <cagney@gnu.org>
1033
1034 * gdbtypes.c (lookup_primitive_typename): Delete function.
1035 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1036 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1037 * gdbtypes.c (lookup_typename): Ditto.
1038 * f-exp.y (yylex): Ditto.
1039 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1040
1041 * scm-lang.c (c_builtin_types): Delete extern declaration.
1042 (scm_language_defn): Replace
1043 string_char_type and primitive_type_vector with
1044 la_language_arch_info.
1045 * jv-lang.c (java_language_defn): Replace
1046 string_char_type and primitive_type_vector with
1047 la_language_arch_info.
1048 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1049 c_builtin_types in comment.
1050 * c-lang.h (struct language_arch_info): Declare opaque.
1051 (c_language_arch_info): Declare.
1052 (c_builtin_types): Delete declaration.
1053 * c-lang.c (c_language_arch_info): Set string_char_type to
1054 builtin_char, not builtin_true_char. Make global.
1055 (c_builtin_types): Delete array.
1056 (asm_language_defn, minimal_language_defn): Replace
1057 string_char_type and primitive_type_vector with
1058 la_language_arch_info.
1059
1060 2004-07-28 Andrew Cagney <cagney@gnu.org>
1061
1062 * gdbtypes.h (struct builtin_type): Rename true_char to
1063 builtin_true_char.
1064 * gdbtypes.c (gdbtypes_post_init): Update.
1065 * c-lang.c (arch_info): New function.
1066 (enum c_primitive_types): New enum.
1067 (c_language_defn): Instead of string_char_type and
1068 primitive_type_vector set la_language_arch_info.
1069
1070 2004-07-28 Andrew Cagney <cagney@gnu.org>
1071
1072 * language.h (struct language_arch_info): Fix typo
1073 s/primative/primitive/.
1074 * gdbtypes.c (lookup_primitive_typename): Ditto.
1075 * language.c (language_lookup_primitive_type_by_name)
1076 (unknown_language_arch_info): Ditto.
1077
1078 2004-07-27 Andrew Cagney <cagney@gnu.org>
1079
1080 * defs.h (enum language): Add nr_languages.
1081 * language.h (struct language_arch_info): Define.
1082 (struct language_defn): Add la_language_arch_info.
1083 (language_lookup_primative_type_by_name): Declare.
1084 (language_string_char_type): Declare.
1085 * language.c (_initialize_language, language_gdbarch_post_init)
1086 (struct language_gdbarch, language_gdbarch_data): Implement
1087 per-architecture language information.
1088 (unknown_language_arch_info, language_string_char_type)
1089 (language_lookup_primative_type_by_name): New functions.
1090 (unknown_language_defn, auto_language_defn)
1091 (local_language_defn): Set la_language_arch_info to
1092 unknown_language_arch_info.
1093 (unknown_builtin_types): Delete.
1094 * gdbtypes.c (lookup_primitive_typename): Use
1095 language_lookup_primative_type_by_name.
1096 (create_string_type): Use language_string_char_type.
1097 * values.c (value_from_string): Use language_string_char_type.
1098 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1099 * p-lang.c (pascal_language_defn): Ditto.
1100 * m2-lang.c (m2_language_defn): Ditto.
1101 * jv-lang.c (java_language_defn): Ditto.
1102 * objc-lang.c (objc_language_defn): Ditto.
1103 * f-lang.c (f_language_defn): Ditto.
1104 * c-lang.c (c_language_defn, cplus_language_defn)
1105 (asm_language_defn, minimal_language_defn): Ditto.
1106
1107 2004-07-27 Andrew Cagney <cagney@gnu.org>
1108
1109 * gdbtypes.h (struct builtin_type): Declare.
1110 (builtin_type): Declare.
1111 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1112 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1113 (gdbtypes_post_init): New function.
1114 (builtin_type): New function.
1115
1116 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1117
1118 * remote-m32r-sdi.c: Fix breakpoint bug.
1119 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1120 recv_char_data, recv_long_data): New functions to replace communication
1121 sequences.
1122
1123 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1124
1125 Document PR threads/1650.
1126 * PROBLEMS (Threads): Document problem with many threads
1127
1128 2004-07-26 Andrew Cagney <cagney@gnu.org>
1129
1130 * gdb-mi.el: Move from here ...
1131 * mi/gdb-mi.el: ... to here.
1132
1133 2004-07-26 Andrew Cagney <cagney@gnu.org>
1134
1135 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1136 * main.c (captured_main): When in batch mode always detach.
1137
1138 2004-07-26 Andrew Cagney <cagney@gnu.org>
1139
1140 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1141 and h8300 as broken.
1142 * NEWS: END-OF-LIFE frame compatibility module.
1143 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1144 specific comments.
1145
1146 2004-07-26 Andrew Cagney <cagney@gnu.org>
1147
1148 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1149 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1150 * wince.c (_initialize_wince): Update.
1151 * win32-nat.c (_initialize_win32_nat): Update.
1152 * varobj.c (_initialize_varobj): Update.
1153 * valops.c (_initialize_valops): Update.
1154 * utils.c (initialize_utils, initialize_utils): Update.
1155 * tui/tui-win.c (_initialize_tui_win): Update.
1156 * top.c (init_main): Update.
1157 * symfile.c (_initialize_symfile): Update.
1158 * source.c (_initialize_source): Update.
1159 * somsolib.c (_initialize_som_solib): Update.
1160 * solib.c (_initialize_solib): Update.
1161 * solib-frv.c (_initialize_frv_solib): Update.
1162 * serial.c (_initialize_serial): Update.
1163 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1164 * remote.c (_initialize_remote, _initialize_remote): Update.
1165 * remote-vx.c (_initialize_vx): Update.
1166 * remote-utils.c (_initialize_sr_support): Update.
1167 * remote-sds.c (_initialize_remote_sds): Update.
1168 * remote-mips.c (_initialize_remote_mips): Update.
1169 * remote-e7000.c (_initialize_remote_e7000): Update.
1170 * proc-api.c (_initialize_proc_api): Update.
1171 * printcmd.c: Update.
1172 * parse.c (_initialize_parse): Update.
1173 * pa64solib.c (_initialize_pa64_solib): Update.
1174 * p-valprint.c (_initialize_pascal_valprint): Update.
1175 * monitor.c (_initialize_remote_monitors): Update.
1176 * mips-tdep.c (_initialize_mips_tdep): Update.
1177 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1178 * maint.c (_initialize_maint_cmds): Update.
1179 * lin-lwp.c (_initialize_lin_lwp): Update.
1180 * language.c (_initialize_language): Update.
1181 * kod.c (_initialize_kod): Update.
1182 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1183 * i386-tdep.c (_initialize_i386_tdep): Update.
1184 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1185 * gdbarch.sh: Update.
1186 * gdbarch.c: Re-generate.
1187 * gdb-events.sh: Update.
1188 * gdb-events.c: Re-generate.
1189 * frame.c (_initialize_frame): Update.
1190 * exec.c: Update.
1191 * demangle.c (_initialize_demangler): Update.
1192 * dcache.c (_initialize_dcache): Update.
1193 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1194 * cp-valprint.c (_initialize_cp_valprint): Update.
1195 * corefile.c (_initialize_core): Update.
1196 * command.h: Update.
1197 * cli/cli-decode.h: Update.
1198 * cli/cli-cmds.c (init_cli_cmds): Update.
1199 * charset.c (_initialize_charset): Update.
1200 * breakpoint.c (_initialize_breakpoint): Update.
1201 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1202 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1203 * aix-thread.c (_initialize_aix_thread): Update.
1204
1205 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1206
1207 Partial fix for PR backtrace/1718.
1208 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1209 that GCC migrates into the prolugue. Don't handle any
1210 instructions that clobber %ebx.
1211
1212 2004-07-23 Andrew Cagney <cagney@gnu.org>
1213
1214 Use regcache_raw_collect instead of regcache_collect.
1215 * regcache.h (regcache_collect): Delete declaration.
1216 * regcache.c (regcache_colect): Delete function.
1217 * win32-nat.c (do_child_store_inferior_registers): Update.
1218 * sol-thread.c (sol_thread_store_registers): Update.
1219 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1220 * rs6000-nat.c (store_register): Update.
1221 * remote.c (store_register_using_P, remote_store_registers): Update.
1222 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1223 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1224 (fill_vrregset, store_spe_registers, fill_gregset)
1225 (fill_gregset): Update.
1226 * nto-procfs.c (procfs_store_registers): Update.
1227 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1228 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1229 * m68klinux-nat.c (store_register, fill_gregset): Update.
1230 * m68k-tdep.c (fill_gregset): Update.
1231 * infptrace.c (store_register): Update.
1232 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1233 * i386-linux-nat.c (store_register, fill_gregset): Update.
1234 * hppa-linux-nat.c (fill_gregset): Update.
1235 * go32-nat.c (store_register): Update.
1236 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1237 (store_fp_regs): Update.
1238 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1239 (store_nwfpe_extended, store_fpregister, store_fpregs)
1240 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1241 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1242 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1243 (store_regs_user_thread, store_regs_kernel_thread): Update.
1244
1245 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1246
1247 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1248 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1249 encoding.
1250 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1251 member of `struct comp_unit'.
1252
1253 2004-07-23 Andrew Cagney <cagney@gnu.org>
1254
1255 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1256 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1257
1258 2004-07-23 Martin Hunt <hunt@redhat.com>
1259 Kevin Buettner <kevinb@redhat.com>
1260
1261 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1262 alignment was being added to the offset instead of multiplied.
1263
1264 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1265
1266 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1267 changed signal trampoline in OpenBSD 3.5-current.
1268
1269 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1270 <machine/pcb.h> and "bsd-kvm.h".
1271 (sparc64nbsd_supply_pcb): New function.
1272 (_initialize_sparc64nbsd_nat): Renamed from
1273 _initialize_sparcnbsd_nat. Enable libkvm interface.
1274 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1275 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1276 (LOADLIBES): New variable.
1277
1278 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1279
1280 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1281
1282 2004-07-21 Andrew Cagney <cagney@gnu.org>
1283
1284 Use regcache_raw_supply instead of supply_register.
1285 * regcache.h (supply_register): Delete declaration.
1286 * regcache.c (supply_register): Delete function.
1287 * wince.c (do_child_fetch_inferior_registers): Update.
1288 * win32-nat.c (do_child_fetch_inferior_registers)
1289 (fetch_elf_core_registers): Update.
1290 * v850ice.c (v850ice_fetch_registers): Update.
1291 * thread-db.c (thread_db_store_registers): Update.
1292 * sol-thread.c (sol_thread_store_registers): Update.
1293 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1294 * rs6000-nat.c (fetch_register): Update.
1295 * rom68k-rom.c (rom68k_supply_one_register): Update.
1296 * remote.c (remote_wait, remote_async_wait): Update.
1297 * remote-st.c (get_hex_regs): Update.
1298 * remote-sim.c (gdbsim_fetch_register): Update.
1299 * remote-sds.c (sds_fetch_registers): Update.
1300 * remote-rdp.c (remote_rdp_fetch_register): Update.
1301 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1302 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1303 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1304 * remote-hms.c (init_hms_cmds): Update.
1305 * remote-est.c (init_est_cmds): Update.
1306 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1307 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1308 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1309 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1310 (fetch_register, supply_vrregset, supply_vrregset)
1311 (fetch_spe_registers): Update.
1312 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1313 * monitor.c (monitor_supply_register): Update.
1314 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1315 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1316 (mipsnbsd_supply_fpreg): Update.
1317 * mips-nat.c (fetch_inferior_registers)
1318 (fetch_core_registers): Update.
1319 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1320 (supply_fpregset, mips64_supply_gregset)
1321 (mips64_supply_fpregset): Update.
1322 * m68klinux-nat.c (fetch_register, supply_gregset)
1323 (supply_fpregset): Update.
1324 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1325 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1326 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1327 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1328 * infptrace.c (fetch_register): Update.
1329 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1330 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1331 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1332 (gnu_fetch_registers, gnu_store_registers): Update.
1333 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1334 * i386-linux-nat.c (fetch_register, supply_gregset)
1335 (dummy_sse_values): Update.
1336 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1337 * hppah-nat.c (fetch_register): Update.
1338 * hppa-linux-nat.c (fetch_register, supply_gregset)
1339 (supply_fpregset): Update.
1340 * go32-nat.c (fetch_register): Update.
1341 * dve3900-rom.c (fetch_bitmapped_register)
1342 (_initialize_r3900_rom): Update.
1343 * cris-tdep.c (supply_gregset): Update.
1344 * abug-rom.c (init_abug_cmds): Update.
1345 * core-aout.c (fetch_core_registers): Update.
1346 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1347 (fetch_register, fetch_fp_register): Update.
1348 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1349 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1350 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1351 * alphanbsd-tdep.c (fetch_core_registers): Update.
1352 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1353 * alpha-nat.c (fetch_osf_core_registers)
1354 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1355 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1356 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1357
1358 2004-07-21 Andrew Cagney <cagney@gnu.org>
1359
1360 * PROBLEMS: Mention breakpoints/1702.
1361 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1362 that is known to work.
1363
1364 2004-07-21 Andrew Cagney <cagney@gnu.org>
1365
1366 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1367 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1368 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1369 (handle_inferior_event): Wrap call to deprecated
1370 IGNORE_HELPER_CALL in #ifdef.
1371 * config/mips/tm-nbsd.h: Update.
1372
1373 2004-07-20 Jim Blandy <jimb@redhat.com>
1374
1375 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1376 bfd_mach_ppc has no segment registers.
1377
1378 Include PowerPC SPR numbers for special-purpose registers.
1379 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1380 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1381 new member in initializer.
1382 (S, S4, SN4, S64): New macros for defining special-purpose
1383 registers.
1384 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1385 registers_403, registers_403GC, registers_505, registers_860,
1386 registers_601, registers_602, registers_603, registers_604,
1387 registers_750, registers_e500): Use them.
1388
1389 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1390 replace references with expression used to initialize variable.
1391
1392 2004-07-20 Andrew Cagney <cagney@gnu.org>
1393
1394 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1395 read_memory_nobpt.
1396 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1397 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1398 (s390_sigtramp_frame_sniffer): Update.
1399 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1400 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1401 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1402 (mips32_fetch_instruction): Update.
1403 * mcore-tdep.c (get_insn): Update.
1404 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1405 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1406 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1407 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1408 (i386_linux_rt_sigtramp_start): Update.
1409 * i386-linux-nat.c (child_resume): Update.
1410 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1411 * hppa-linux-tdep.c (insns_match_pattern): Update.
1412 * gdbcore.h: Update.
1413 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1414 * frame.c (safe_frame_unwind_memory): Update.
1415 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1416 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1417 * alpha-tdep.c (alpha_read_insn): Update.
1418
1419 2004-07-20 Andrew Cagney <cagney@gnu.org>
1420
1421 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1422 containing both bytes and mask. Add "frame_type".
1423 * tramp-frame.c (tramp_frame_start): Update.
1424 (tramp_frame_prepend_unwinder): Update.
1425 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1426 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1427 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1428 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1429
1430 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1431
1432 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1433 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1434 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1435 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1436
1437 2004-07-17 Andrew Cagney <cagney@gnu.org>
1438
1439 * NEWS, PROBLEMS: Update for 6.2.
1440
1441 * README: Update to 6.2.
1442
1443 * utils.c (xvasprintf): Call xstrvprintf.
1444
1445 * parse.c: Update copyright.
1446 (null_post_parser): Eliminate ARGSUSED.
1447
1448 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1449 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1450 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1451
1452 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1453 * ppc-linux-nat.c: Use "Linux kernel".
1454 * hppa-linux-tdep.c: Use GNU/Linux.
1455 * hppa-linux-nat.c: Use GNU/Linux.
1456 * dwarfread.c: Add [sic] to use of Linux.
1457
1458 * hppa-linux-nat.c: Do not include <string.h>.
1459 (supply_fpregset): Remove "register" attribute.
1460
1461 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1462
1463 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1464
1465 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1466 * configure, config.in: Regenerated.
1467
1468 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1469 "bsd-kvm.h".
1470 (vaxbsd_supply_pcb): New function.
1471 (_initialize_vaxbsd_nat): New prototype and function.
1472 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1473 solib-sunos.o.
1474 (LOADLIBES): New variable.
1475 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1476 (LOADLIBES): New variable.
1477 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1478 (LOADLIBES): New variable.
1479 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1480
1481 2004-07-16 Andrew Cagney <cagney@gnu.org>
1482
1483 * defs.h (event_loop_p): Replace variable declaration with macro,
1484 always 1.
1485 * main.c (captured_main): Delete options "-async" and "-noasync".
1486 (event_loop_p): Delete variable.
1487 * NEWS: Mention that "-async" and "-noasync" were removed.
1488
1489 2004-07-16 Andrew Cagney <cagney@gnu.org>
1490
1491 * remote-m32r-sdi.c: Re-indent.
1492
1493 2004-07-16 Jim Blandy <jimb@redhat.com>
1494
1495 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1496 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1497 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1498 missing MPC823 SPRs.
1499 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1500 incorrect. (This was corrected in GDB's register name tables on
1501 2004-07-14.)
1502
1503 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1504 should be "esasrr" ("ESA Save and Restore Register").
1505
1506 2004-07-16 Andrew Cagney <cagney@gnu.org>
1507
1508 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1509 calls, no longer applicable. Update comments and rename parameter
1510 "step_frame" to "return_frame".
1511
1512 2004-07-16 Andrew Cagney <cagney@gnu.org>
1513
1514 * frame.c (fprint_field): New function.
1515 (fprint_frame_id): Use fprint_field.
1516
1517 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1518
1519 * ada-lang.c (ada_language_defn): Remove commented out code.
1520
1521 2004-07-15 Jim Blandy <jimb@redhat.com>
1522
1523 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1524 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1525
1526 2004-07-14 Jim Blandy <jimb@redhat.com>
1527
1528 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1529
1530 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1531
1532 * ppc-tdep.h (ppc_num_srs): New enum constant.
1533
1534 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1535 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1536 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1537 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1538 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1539 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1540 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1541 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1542 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1543 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1544 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1545 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1546 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1547 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1548 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1549 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1550 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1551 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1552 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1553 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1554 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1555 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1556 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1557 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1558 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1559 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1560 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1561 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1562 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1563 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1564 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1565 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1566 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1567 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1568 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1569 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1570 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1571 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1572 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1573 special-purpose register numbers.
1574
1575 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1576 manual mentions 'md_twb', but many mention 'm_twb', and at that
1577 point in the register list.)
1578
1579 2004-07-14 Andrew Cagney <cagney@gnu.org>
1580
1581 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1582 instead of "internal-error".
1583
1584 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1585
1586 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1587 that was inserted inside a comment.
1588
1589 2004-07-10 Randolph Chung <tausq@debian.org>
1590
1591 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1592 function.
1593 (hppa_hpux_push_dummy_code): New function.
1594 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1595 Set find_global_pointer method.
1596
1597 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1598
1599 * NEWS: Mention BSD libkvm interface.
1600
1601 2004-07-10 Michael Snyder <msnyder@redhat.com>
1602
1603 * symfile.c (generic_load): Comment typo.
1604 * stack.c (get_selected_block): Ditto.
1605 * regcache.c (regcache_cooked_read): Ditto.
1606 * monitor.c (monitor_debug): Ditto.
1607 * mips-tdep.c (mips_read_pc): Ditto.
1608 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1609 * gdb_mbuild.sh: Ditto.
1610 * gdbarch.sh: Ditto.
1611 * gdbarch.h: Ditto.
1612
1613 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1614
1615 * ada-tasks.c: Remove file.
1616
1617 Remove ARI problems:
1618
1619 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1620 beginning of line.
1621
1622 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1623 Add comment.
1624 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1625 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1626 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1627 (UMIN_OF_SIZE): Remove.
1628 (max_of_type): New function to replace orphan macro in gdbtypes.h
1629 (min_of_type): Ditto.
1630 (discrete_type_high_bound): Use max_of_type.
1631 (discrete_type_low_bound): Use min_of_type.
1632 (possible_user_operator_p): Move operator to beginning of line.
1633 (ada_is_variant_part): Ditto.
1634 (ensure_lval): Rewrite to avoid deprecated operations.
1635 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
1636 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
1637 (ada_enum_name): Remove assignments in 'if' statements.
1638 (build_ada_types): Add gdbarch parameter.
1639 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
1640 with gdbarch_data_register_post_init.
1641 Use add_setshow_uinteger_cmd rather than add_set_cmd and
1642 add_show_from_set.
1643
1644 * ada-valprint.c (inspect_it): Remove declaration.
1645 (repeat_count_threshold): Remove declaration.
1646 (ada_print_floating): Remove assignments in 'if' statements.
1647 (print_str): Move operator to beginning of line.
1648
1649 2004-07-08 Jim Blandy <jimb@redhat.com>
1650
1651 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
1652
1653 2004-07-08 Bob Rossi <bob@brasko.net>
1654
1655 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
1656
1657 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
1658
1659 * language.h (struct_language_defn): Add new function pointer:
1660 la_class_name_from_physname. Also add new prototype for
1661 language_class_name_from_physname.
1662 * language.c (language_class_name_from_physname): New function.
1663 (unk_lang_class_name): Ditto.
1664 (unknown_language_defn, auto_language_defn): Change
1665 to add unk_lang_class_name function pointer for
1666 la_class_name_from_physname.
1667 (local_language_defn): Ditto.
1668 * dwarf2read.c (guess_structure_name): Change to call
1669 language_class_name_from_physname.
1670 (determine_class_name): Ditto.
1671 * cp-support.c (class_name_from_physname): Renamed.
1672 (cp_class_name_from_physname): New name of function.
1673 * cp-support.h: Ditto.
1674 * c-lang.c (c_language_defn): Change to add NULL
1675 for class_name_from_physname function pointer.
1676 (cplus_language_defn): Change to add cp_class_name_from_physname.
1677 * jv-lang.c (java_class_name_physname): New function.
1678 (java_find_last_component): New static routine.
1679 (java_language_defn): Add java_class_name_from_physname pointer.
1680 * ada-lang.c (ada_language_defn): Change to add NULL
1681 for class_name_from_physname function pointer.
1682 * f-lang.c (f_language_defn): Ditto.
1683 * m2-lang.c (m2_language_defn): Ditto.
1684 * objc-lang.c (objc_language_defn): Ditto.
1685 * p-lang.c (pascal_language_defn): Ditto.
1686 * scm-lang.c (scm_language_defn): Ditto.
1687
1688 2004-07-06 Andrew Cagney <cagney@gnu.org>
1689
1690 Patch from Bart Robinson.
1691 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
1692 (O_LARGEFILE): Define to 0, if not defined.
1693
1694 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1695
1696 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
1697 <machine/pcb.h> and "bsd-kvm.h".
1698 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
1699 (m68kbsd_supply_pcb): New function.
1700 (_initialize_m68kbsd_nat): New prototype and function.
1701 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1702 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1703 (LOADLIBES): New variable.
1704 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1705 (LOADLIBES): New variable.
1706
1707 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
1708
1709 2004-07-03 Mark Kettenis <kettenis@gnu.org>
1710
1711 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
1712 <sys/proc.h>.
1713 (bsd_kvm_cmdlist): New variable.
1714 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
1715 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
1716 command and "kvm proc" command.
1717 * Makefile.in (bsd-kvm.o): Update dependencies.
1718
1719 2004-07-02 Mark Kettenis <kettenis@gnu.org>
1720
1721 * osabi.c: Update copyright year.
1722 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
1723 notes if EI_OSABI is set to ELFOSABI_HPUX.
1724
1725 2004-07-01 Michael Snyder <msnyder@redhat.com>
1726
1727 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
1728 that seems to have gotten whacked out of line.
1729
1730 2004-07-01 Mark Kettenis <kettenis@gnu.org>
1731
1732 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
1733 code.
1734
1735 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1736
1737 * ada-lang.c (decode_packed_array): Minor change to comment.
1738 (ada_value_slice_ptr): New function.
1739 (ada_value_slice): New function.
1740 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
1741 test. Don't know why it is there.
1742 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
1743 to avoid dereferencing huge arrays from which one is slicing.
1744 (empty_array): Correct to return an array rather than
1745 a subrange value.
1746 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
1747 on empty arrays (let'em use 'FIRST instead).
1748
1749 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1750
1751 Address complaints from gdb_ari.sh:
1752
1753 * ada-exp.y: Include gdb_string.h rather than string.h.
1754 (convert_char_literal): Reformat declaration.
1755 * ada-lang.h: Include opaque struct declaration for struct frame_info.
1756 * ada-lex.l: Change use of free to xfree (the macro would do so
1757 anyway, but this is harmless).
1758 Include gdb_string.h rather than string.h.
1759 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
1760
1761 * ada-lang.c (parse): Remove K&Rism in parameter list.
1762 (is_name_suffix): Correct Linux => GNU/Linux in comment.
1763
1764 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1765
1766 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
1767 dead code.
1768
1769 2004-06-30 Mark Kettenis <kettenis@gnu.org>
1770
1771 * alphabsd-nat.c: Update copyright year.
1772 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
1773
1774 2004-06-29 Joel Brobecker <brobecker@gnat.com>
1775
1776 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
1777 (i386_cygwin_in_solib_call_trampoline): New function.
1778 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
1779 and skip_trampoline_code gdbarch methods.
1780
1781 2004-06-29 Jim Blandy <jimb@redhat.com>
1782
1783 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
1784 name actually used in the dependency lists.
1785
1786 2004-06-29 Randolph Chung <tausq@debian.org>
1787
1788 * NEWS (New native configurations): Mention GNU/Linux/hppa.
1789
1790 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1791
1792 * win32-nat.c (child_pid_to_exec_file): New function.
1793 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
1794 functionality.
1795
1796 2004-06-28 Andrew Cagney <cagney@gnu.org>
1797
1798 * defs.h (xstrvprintf): Declare.
1799 * utils.c (xstrvprintf): New function.
1800 (internal_vproblem, xstrprintf, xasprintf)
1801 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
1802 * serial.c (serial_printf): Ditto.
1803 * complaints.c (vcomplaint): Ditto.
1804
1805 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
1806
1807 * infcmd.c (attach_command): Move call to target_terminal_inferior
1808 behind loading symbol table.
1809
1810 2004-06-28 Andrew Cagney <cagney@gnu.org>
1811
1812 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
1813 change - add back extern deprecated_ui_loop_hook declaration.
1814
1815 2004-06-28 Andrew Cagney <cagney@gnu.org>
1816
1817 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
1818 xstrprintf.
1819 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
1820 (c_value_of_variable): Ditto.
1821 * utils.c (internal_vproblem): Ditto.
1822 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
1823 * remote.c (add_packet_config_cmd): Ditto.
1824 * remote-rdp.c (rdp_set_command_line): Ditto.
1825 * regcache.c (regcache_dump): Ditto.
1826 * frv-tdep.c (new_variant, new_variant): Ditto.
1827 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
1828 (fbsd_find_memory_regions): Ditto.
1829 * breakpoint.c (create_thread_event_breakpoint)
1830 (create_breakpoints): Ditto.
1831 * aix-thread.c (aix_thread_pid_to_str): Ditto.
1832 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
1833
1834 2004-06-28 Joel Brobecker <brobecker@gnat.com>
1835
1836 * ada-lang.c: Re-indent file, with some massaging to help indent
1837 a bit when the result is otherwise really too ugly.
1838
1839 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1840
1841 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
1842 code_addr_p and special_addr_p to 'unsigned int'.
1843
1844 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1845
1846 * i386v4-nat.c: Update copyright year and tweak comment.
1847 (regmap): Remove trailing comma.
1848 (supply_gregset): Rename local variable i to regnum. Call
1849 regcache_raw_supply instead of supply_register.
1850 (fill_gregset): Rename argument regno to regnum. Call
1851 regcache_raw_collect instead of regcache_collect.
1852
1853 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1854
1855 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
1856 and special_addr_p.
1857 (frame_id_build, frame_id_build_special): Update comments.
1858 (frame_id_build_wild): New prototype.
1859 * frame.c (frame_id_build, frame_id_build_special): Fill in new
1860 struct frame_id fields.
1861 (frame_id_build_wild): New function.
1862 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
1863
1864 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1865
1866 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
1867 hppabsd-tdep.c.
1868
1869 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1870
1871 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
1872
1873 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1874
1875 * ada-lang.c: Re-indent file.
1876
1877 2004-06-27 Joel Brobecker <brobecker@gnat.com>
1878
1879 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
1880 (no_symtab_msg): Likewise.
1881
1882 2004-06-27 Andreas Schwab <schwab@suse.de>
1883
1884 * source.c: Fix whitespace.
1885
1886 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1887
1888 * configure.in: Include <sys/param.h> for td_pcb test.
1889 * configure: Regenerated.
1890
1891 * i386nbsd-nat.c: New file.
1892 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
1893 i386obsd-nat.c and i386obsd-tdep.c.
1894 (i386nbsd-nat.o): New dependency.
1895 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
1896 bsd-kvm.o.
1897 (LOADLIBES): New variable.
1898 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
1899 bsd-kvm.o.
1900 (LOADLIBES): New variable.
1901
1902 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
1903 (LOADLIBES): New variable.
1904
1905 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
1906 fetching from BSD_KVM_PADDR. Correctly lookup address for
1907 "_thread0".
1908
1909 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
1910 "bsd-kvm.h".
1911 (amd64fbsd_supply_pcb): New funcion.
1912 (_initialize_amd64fbsd_nat): Enable libkvm interface.
1913
1914 2004-06-27 <david@streamline-computing.com>
1915
1916 Partial fix for PR cli/1056.
1917 * valarith.c: Check for zero in division and remainder
1918 evaluation.
1919
1920 2004-06-27 Mark Kettenis <kettenis@gnu.org>
1921
1922 * i387-tdep.c: Remove excessive whitespace.
1923
1924 2004-06-26 Andrew Cagney <cagney@gnu.org>
1925
1926 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
1927 * gdb-events.h, gdb-events.c: Re-generate.
1928 * tui/tui-hooks.c (tui_install_hooks): Update.
1929 (tui_remove_hooks): Update.
1930 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
1931
1932 2004-06-26 Mark Kettenis <kettenis@gnu.org>
1933
1934 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
1935 (gregset_t, fpregset_t): Remove typedefs.
1936 (REG_OFFSET): Rename argument.
1937 (amd64bsd_r_reg_offset): Rename from reg_offset.
1938 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1939 Remove functions.
1940 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
1941 of reg_offset.
1942 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
1943
1944 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
1945
1946 * vax-tdep.c: Tweak comment.
1947
1948 Add OpenBSD/hppa support.
1949 * NEWS (New native configurations): Mention OpenBSD/hppa.
1950 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
1951 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
1952 files.
1953 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
1954 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
1955 * configure.host: Add hppa*-*-openbsd*.
1956 * configure.tgt: Add hppa*-*-openbsd*.
1957
1958 2004-06-25 Andrew Cagney <cagney@gnu.org>
1959
1960 * defs.h (deprecated_ui_loop_hook): Deprecated.
1961 * wince.c (child_wait): Update.
1962 * win32-nat.c (child_wait): Update.
1963 * v850ice.c (v850ice_wait): Update.
1964 * top.c (deprecated_ui_loop_hook): Update.
1965 * serial.h: Update.
1966 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
1967 (do_unix_readchar): Update.
1968 * ser-tcp.c (net_open): Update.
1969 * remote-sim.c (gdb_os_poll_quit): Update.
1970 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
1971
1972 2004-06-24 Andrew Cagney <cagney@gnu.org>
1973
1974 * defs.h (deprecated_pre_add_symbol_hook)
1975 (deprecated_post_add_symbol_hook): Deprecated.
1976 * symfile.c (symbol_file_add_with_addrs_or_offsets)
1977 (symbol_file_add_with_addrs_or_offsets): Update references.
1978
1979 2004-06-24 Andrew Cagney <cagney@gnu.org>
1980
1981 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
1982 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
1983 * wince.c (ui_loop_hook): Delete extern declaration.
1984 * win32-nat.c (ui_loop_hook): Delete extern declaration..
1985 * v850ice.c (ui_loop_hook): Delete extern declaration..
1986 * ser-unix.c (ui_loop_hook): Delete extern declaration..
1987 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
1988 * remote-sim.c (ui_loop_hook): Delete extern declaration..
1989 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
1990 ui_loop_hook declaration.
1991
1992 2004-06-24 Andrew Cagney <cagney@gnu.org>
1993
1994 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
1995 entry_func_highpc fields.
1996 * objfiles.c (init_entry_point_info): Do not clear
1997 entry_func_lowpc and entry_func_highpc.
1998 (objfile_relocate): Do not relocate entry_func_lowpc and
1999 entry_func_highpc.
2000 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2001 entry_func_highpc.
2002 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2003 entry_func_highpc.
2004 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2005 entry_func_lowpc and entry_func_highpc with call to
2006 inside_entry_func.
2007
2008 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2009
2010 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2011 quad-precision floating point arguments in registers.
2012
2013 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2014
2015 From Michael Mueller <m.mueller99@kay-mueller.de>:
2016 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2017 account.
2018
2019 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2020
2021 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2022 to -1.
2023 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2024 untriggered watchpoints to a separate if clause. Update function
2025 comment regarding STOPPED_BY_WATCHPOINT argument.
2026
2027 2004-06-22 Jim Blandy <jimb@redhat.com>
2028
2029 * gdbarch.sh: Doc fix.
2030
2031 2004-06-21 Martin Hunt <hunt@redhat.com>
2032 Kevin Buettner <kevinb@redhat.com>
2033
2034 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2035 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2036 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2037 to set_gdbarch_sp_regnum(). Use cooked register number.
2038 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2039
2040 2004-06-21 Andrew Cagney <cagney@gnu.org>
2041
2042 * gdbarch.sh: When the macro field is empty, do not generate a
2043 macro definition. When the macro field is "=", generate the macro
2044 name from the upper-case function name.
2045 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2046 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2047 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2048 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2049 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2050 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2051 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2052 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2053 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2054 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2055 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2056 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2057 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2058 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2059 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2060 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2061 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2062 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2063 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2064 (DEPRECATED_USE_STRUCT_CONVENTION)
2065 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2066 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2067 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2068 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2069 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2070 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2071 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2072 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2073 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2074 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2075 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2076 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2077 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2078 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2079 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2080 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2081 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2082 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2083
2084 2004-06-21 Andrew Cagney <cagney@gnu.org>
2085
2086 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2087 macro name, and the function rather than macro value. Only wrap
2088 macro print statements in #ifdef. Move format logic to where it
2089 is needed.
2090 * gdbarch.c: Re-generate.
2091
2092 * gdbarch.sh (read): Delete "print_p" and "description", add
2093 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2094 Delete references to print_p.
2095 (TARGET_ARCHITECTURE): Delete print predicate.
2096 * gdbarch.c: Re-generate.
2097
2098 * gdbarch.sh: Check that multi-arch methods do not provide a
2099 macro.
2100 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2101 (print_registers_info, print_float_info, print_vector_info)
2102 (adjust_breakpoint_address, remote_translate_xfer_address)
2103 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2104 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2105 name from the multi-arch definition.
2106
2107 2004-06-20 Andrew Cagney <cagney@gnu.org>
2108
2109 * gdbarch.sh: Sort by the function, instead of macro name.
2110 * gdbarch.c: Re-generate.
2111
2112 2004-06-20 Andrew Cagney <cagney@gnu.org>
2113
2114 * gdbarch.sh: Use the function, instead of macro name in
2115 errors and the log file.
2116 (return_value): Remove stray ":" in spec.
2117
2118 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2119 * gdbarch.h, gdbarch.c: Re-generate.
2120 * Makefile.in (arch-utils.o): Update dependencies.
2121 * values.c (using_struct_return): Move code calling
2122 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2123 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2124 to legacy_return_value, simplify.
2125 * infcmd.c (print_return_value): Move code calling
2126 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2127 to legacy_return_value, simplify.
2128 * infcall.c (call_function_by_hand): Move code calling
2129 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2130 * arch-utils.c: Update copyright. Include "gdbcore.h".
2131 (legacy_return_value): New function.
2132 * arch-utils.h: Update copyright.
2133 (legacy_return_value): Declare.
2134
2135 2004-06-20 Andrew Cagney <cagney@gnu.org>
2136
2137 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2138 * gdbarch.h, gdbarch.c: Re-generate.
2139 * values.c (using_struct_return): Update call.
2140 * mcore-tdep.c: Update comment.
2141 * infcall.c (call_function_by_hand): Update comment.
2142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2143 * arch-utils.h (always_use_struct_convention): Update.
2144 * v850-tdep.c (v850_gdbarch_init): Update.
2145 * sh64-tdep.c (sh64_gdbarch_init): Update.
2146 * sh-tdep.c (sh_gdbarch_init): Update.
2147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2148 * mips-tdep.c (mips_gdbarch_init): Update.
2149 * mcore-tdep.c (mcore_gdbarch_init): Update.
2150 * m32r-tdep.c (m32r_gdbarch_init): Update.
2151 * ia64-tdep.c (ia64_gdbarch_init): Update.
2152 * h8300-tdep.c (h8300_gdbarch_init): Update.
2153 * frv-tdep.c (frv_gdbarch_init): Update.
2154 * cris-tdep.c (cris_gdbarch_init): Update.
2155 * arm-tdep.c (arm_gdbarch_init): Update.
2156 * alpha-tdep.c (alpha_gdbarch_init): Update.
2157
2158 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2159
2160 * PROBLEMS: Add more specific information, and a work-around,
2161 for PR gdb/1458.
2162
2163 2004-06-18 Andrew Cagney <cagney@gnu.org>
2164
2165 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2166 * gdbarch.h, gdbarch.c: Re-generate.
2167 * ada-lang.c (ada_finish_decode_line_1): Update.
2168 * infrun.c (handle_inferior_event): Update.
2169 * infcall.c (find_function_addr): Update.
2170 * linespec.c (minsym_found): Update.
2171 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2172 Update.
2173 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2174 * cli/cli-cmds.c (disassemble_command): Update.
2175 * vax-tdep.c (vax_gdbarch_init): Update.
2176
2177 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2178
2179 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2180
2181 2004-06-17 Andrew Cagney <cagney@gnu.org>
2182
2183 GDB 6.1.1 released from the GDB 6.1 branch.
2184 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2185 * PROBLEMS: Ditto.
2186
2187 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2188
2189 PR gdb/1658
2190 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2191 operation as a uleb128. Found by Michael Coulter.
2192
2193 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2194
2195 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2196 make it non-static.
2197 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2198 to ada-lang.h; this is needed to be able to implement the kill command
2199 in multi-task mode.
2200 (task_ptid): Ditto.
2201 (task_entry): Ditto.
2202 (task_list): Ditto.
2203 (ada_build_task_list): Ditto.
2204
2205 * ada-lang.c: Conditionalize routines and data structures related
2206 to breakpoints, exceptions, completion, and symbol caching on
2207 GNAT_GDB, since these are not yet used in the submitted public sources.
2208 (ada_main_name): Editorial: Move definition out of exception-related
2209 code.
2210
2211 2004-06-15 Andrew Cagney <cagney@gnu.org>
2212
2213 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2214 deprecated_pc_in_call_dummy.
2215
2216 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2217
2218 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2219 bfd_get_section_size_before_reloc or _raw_size.
2220 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2221 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2222 (dwarf2_read_section): Likewise.
2223 * elfread.c (elf_locate_sections): Likewise.
2224 * gcore.c (derive_heap_segment): Likewise.
2225 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2226 * remote-e7000.c (e7000_load): Likewise.
2227 * remote-m32r-sdi.c (m32r_load): Likewise.
2228 * remote-mips.c (mips_load_srec): Likewise.
2229 (pmon_load_fast): Likewise.
2230 * remote.c (compare_sections_command): Likewise.
2231 * symfile.c (add_section_size_callback): Likewise.
2232 (load_section_callback): Likewise.
2233 (pc_in_unmapped_range): Likewise.
2234 (pc_in_mapped_range): Likewise.
2235 (sections_overlap): Likewise.
2236 (list_overlays_command): Likewise.
2237 (simple_overlay_update_1): Likewise.
2238 (simple_overlay_update): Likewise.
2239 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2240 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2241
2242 2004-06-14 Randolph Chung <tausq@debian.org>
2243
2244 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2245 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2246 static.
2247 (hppa_hpux_inferior_created): New function.
2248 (hppa_hpux_init_abi): Register observer.
2249 * symfile.c (hp_cxx_exception_support_initialized)
2250 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2251 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2252
2253 2004-06-14 Randolph Chung <tausq@debian.org>
2254
2255 * MAINTAINERS (Write After Approval): Alphabetize my entry
2256 correctly.
2257
2258 2004-06-14 Andrew Cagney <cagney@gnu.org>
2259
2260 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2261 testsuite maintainer.
2262
2263 2004-06-13 Andrew Cagney <cagney@gnu.org>
2264
2265 * infcmd.c (print_return_value): Fix logic, allow
2266 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2267
2268 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2269 defining any macros.
2270 * gdbarch.h: Re-generate.
2271
2272 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2273 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2274 * gdbarch.h: Re-generate.
2275
2276 * values.c (generic_use_struct_convention): Don't check gcc_p.
2277
2278 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2279 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2280 * gdbarch.h, gdbarch.c: Regenerate.
2281 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2282 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2284 deprecated_max_register_raw_size and
2285 deprecated_max_register_virtual_size.
2286 * v850-tdep.c (v850_gdbarch_init): Ditto.
2287 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2288 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2289 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2290 * cris-tdep.c (cris_gdbarch_init): Ditto.
2291
2292 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2293 * gdbarch.h, gdbarch.c: Re-generate.
2294 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2295 (m68hc11_use_struct_convention): Delete function.
2296 (m68hc11_extract_struct_value_address): Delete function.
2297 (m68hc11_return_value): New function.
2298 (m68hc11_gdbarch_init): Instead of store_return_value,
2299 extract_return_value, return_value_on_stack,
2300 deprecated_extract_struct_value_address and use_struct_convention,
2301 set return_value.
2302 * values.c (using_struct_return): Do not call
2303 RETURN_VALUE_ON_STACK.
2304 * arch-utils.h (generic_return_value_on_stack_not): Delete
2305 declaration.
2306 * arch-utils.c (generic_return_value_on_stack_not): Delete
2307 function.
2308
2309 2004-06-12 Andrew Cagney <cagney@gnu.org>
2310
2311 * values.c (register_value_being_returned): Delete function.
2312 * infcmd.c (legacy_return_value): Delete function.
2313 * infcall.c (call_function_by_hand): Inline
2314 "register_value_being_returned", simplify.
2315 * values.c (using_struct_return): Update comment, refer to
2316 print_return_value instead of register_value_being_returned.
2317 * infcmd.c (print_return_value): Inline calls to
2318 register_value_being_returned and legacy_return_value. Simplify.
2319
2320 2004-06-11 Randolph Chung <tausq@debian.org>
2321
2322 * somread.c (som_symtab_read): Exclude gcc local symbols.
2323
2324 2004-06-11 Randolph Chung <tausq@debian.org>
2325
2326 * infrun.c (handle_inferior_event): Handle the case when a
2327 trampoline ends up in the runtime resolver, and if the trampoline
2328 has no name. Rearrange the code so that all the trampoline
2329 processing happens before other step-out-of-range handling.
2330
2331 2004-06-11 Martin Hunt <hunt@redhat.com>
2332
2333 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2334 has no fpu.
2335
2336 2004-06-10 Andrew Cagney <cagney@gnu.org>
2337
2338 * blockframe.c (legacy_inside_entry_func): Delete.
2339 (legacy_frame_chain_valid): Inline call to
2340 legacy_inside_entry_func, simplify.
2341
2342 2004-06-10 Bob Rossi <bob@brasko.net>
2343
2344 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2345 * dwarf2read.c (partial_die_info): Add dirname field.
2346 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2347 (read_partial_die): Save away DW_AT_comp_dir.
2348 * defs.h (symtab_to_filename): Removed.
2349 * source.c (find_and_open_source): Added.
2350 (open_source_file): Just calls find_and_open_source.
2351 (symtab_to_filename): Removed.
2352 (symtab_to_fullname, psymtab_to_fullname): Added.
2353 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2354 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2355 symtab_to_filename.
2356 * symtab.h (partial_symtab): Add dirname field.
2357 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2358 (mi_cmd_file_list_exec_source_file): Call new function
2359 symtab_to_fullname to find fullname.
2360 (mi_cmd_file_list_exec_source_files): Added.
2361 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2362 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2363
2364 2004-06-10 Andrew Cagney <cagney@gnu.org>
2365
2366 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2367 to generic_use_struct_convention, the default value.
2368
2369 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2370 of abort.
2371
2372 * ns32k-tdep.c (ns32k_push_arguments): New function.
2373 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2374 * infcall.c (call_function_by_hand): Call error instead of
2375 legacy_push_arguments.
2376 * value.h (legacy_push_arguments): Delete declaration.
2377 * valops.c (legacy_push_arguments): Delete function.
2378 (value_push): Delete function.
2379
2380 2004-06-10 Brian Ford <ford@vss.fsi.com>
2381
2382 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2383 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2384 info.
2385 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2386
2387 2004-06-10 Andrew Cagney <cagney@gnu.org>
2388
2389 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2390 * gdbarch.h, gdbarch.c: Re-generate.
2391 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2392 parameters.
2393 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2394 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2395 deprecated_pc_in_call_dummy instead of
2396 DEPRECATED_PC_IN_CALL_DUMMY.
2397 (arm_skip_prologue): Ditto.
2398 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2399 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2400 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2401 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2402 Ditto.
2403 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2404 (sh64_init_extra_frame_info, sh64_get_saved_register)
2405 (sh64_pop_frame): Ditto.
2406 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2407 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2408 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2409 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2410 (h8300_pop_frame): Ditto.
2411 * blockframe.c (legacy_inside_entry_func)
2412 (legacy_frame_chain_valid): Ditto.
2413 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2414 to deprecated_pc_in_call_dummy.
2415
2416 2004-06-09 Andrew Cagney <cagney@gnu.org>
2417
2418 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2419 provide a default value.
2420 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2421 * gdbarch.h, gdbarch.c: Re-generate.
2422 * arch-utils.c (generic_convert_register_p): Rename
2423 legacy_convert_register_p
2424 (legacy_register_to_value, legacy_value_to_register): Delete
2425 functions.
2426 * arch-utils.h (generic_convert_register_p): Rename
2427 legacy_convert_register_p.
2428 (legacy_register_to_value, legacy_value_to_register): Delete
2429 declarations.
2430
2431 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2432 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2433 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2434 * gdbarch.h, gdbarch.c: Re-generate.
2435 * infcmd.c (default_print_registers_info): Simplify.
2436 * findvar.c (value_of_register): Simplify.
2437 * mi/mi-main.c (get_register): Simplify.
2438 * arch-utils.c (legacy_convert_register_p): Always return 0.
2439 (legacy_register_to_value, legacy_value_to_register): Always call
2440 internal_error.
2441
2442 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2443 #ifdef CLEAR_INSN_CACHE code.
2444 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2445 Delete #ifdef CLEAR_DEFERRED_STORES code.
2446
2447 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2448
2449 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2450 copyright.
2451 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2452
2453 * config/mips/mipsv4.mh: Delete file.
2454
2455 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2456 unreferenced macro.
2457 (hpread_adjust_stack_address): Delete declaration.
2458
2459 2004-06-08 Andrew Cagney <cagney@gnu.org>
2460
2461 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2462 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2463 PTRACE_ATTACH / PTRACE_DETACH available call error.
2464 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2465 * infttrace.c (update_thread_state_after_attach, attach, detach):
2466 Remove #ifdef wrappers.
2467 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2468 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2469 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2470 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2471 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2472 * config/nm-linux.h (ATTACH_DETACH): Delete.
2473 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2474 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2475 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2476 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2477 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2478
2479 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2480
2481 * configure.in: Set $configdir to the right OS specific value.
2482 Use value when setting $tcldir and $tkdir.
2483 * configure: Regenerate.
2484
2485 2004-06-06 Paul Brook <paul@codesourcery.com>
2486
2487 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2488 records.
2489
2490 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2491
2492 * ada-lang.c (lookup_symbol_in_language): New function to allow
2493 re-use of another language's symbol lookup code. (Placed here
2494 temporarily while Ada support is being integrated into the public
2495 tree).
2496 (restore_language): New auxiliary function for
2497 lookup_symbol_in_language.
2498 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2499 temporarily while Ada support is being integrated into the public
2500 tree).
2501
2502 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2503
2504 * Makefile.in (check//%): New.
2505
2506 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2507 (mn10300_store_return_value): Rewrite.
2508 (mn10300_type_align): New.
2509 (mn10300_use_struct_convention): Rewrite.
2510 (mn10300_return_value): New, using all of the above.
2511 (mn10300_pop_frame_regular): Add saved_regs_size.
2512 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2513
2514 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2515 regs if PC is on movm.
2516
2517 2004-06-07 Jim Blandy <jimb@redhat.com>
2518
2519 Add native Linux support for the PowerPC E500.
2520 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2521 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2522 all architectures except the E500.
2523 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2524 #definitions.
2525 (struct gdb_evrregset_t): New type.
2526 (have_ptrace_getsetevrregs): New variable.
2527 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2528 fetch_spe_registers): New functions.
2529 (fetch_register): Call fetch_spe_register as appropriate.
2530 Assert that we're only passed raw register numbers.
2531 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2532 Don't fetch gprs if they're pseudoregisters.
2533 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2534 store_spe_registers): New functions.
2535 (store_register): Call store_spe_register as appropriate.
2536 Assert that we're only passed raw register numbers.
2537 (store_ppc_registers): Call store_spe_registers as appropriate.
2538 Don't store gprs if they're pseudoregisters.
2539
2540 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2541
2542 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2543 struct if one exists, even if we are dealing with a zombie thread.
2544
2545 2004-06-07 Andrew Cagney <cagney@gnu.org>
2546
2547 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2548 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2549 Rename PC_REQUIRES_RUN_BEFORE_USE.
2550 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2551 #ifdef.
2552
2553 2004-06-07 Randolph Chung <tausq@debian.org>
2554
2555 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2556 unwinding after sp has been saved to the stack but before the end
2557 of the prologue, and after the fp has been modified but before it has
2558 been saved to the stack.
2559 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2560 Remove superfluous definitions.
2561 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2562
2563 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2564
2565 Committed by Randolph Chung.
2566 * hppa-linux-nat.c: Include the correct version of the header file
2567 depending on the kernel version.
2568
2569 2004-06-06 Randolph Chung <tausq@debian.org>
2570
2571 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2572 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2573
2574 2004-06-06 Randolph Chung <tausq@debian.org>
2575
2576 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2577 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2578 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2579 * hppa-tdep.c (hppa_symbol_address): New function definition.
2580 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2581
2582 2004-06-06 Randolph Chung <tausq@debian.org>
2583
2584 * hppa-tdep.h (struct value): Forward declaration.
2585 (gdbarch_tdep): Define tdep find_global_pointer method.
2586 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2587 associated with the function we are trying to call, and write it
2588 to the gp register.
2589 (hppa32_convert_from_funct_ptr_addr): New function.
2590 (hppa_find_global_pointer): New function.
2591 (hppa_gdbarch_init): Set default find_global_pointer method; set
2592 convert_from_func_ptr_addr method.
2593 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2594 (hppa_linux_init_abi): Set find_global_pointer method.
2595 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2596
2597 2004-06-06 Randolph Chung <tausq@debian.org>
2598
2599 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2600 to struct value *function.
2601 * gdbarch.c: Regenerate.
2602 * gdbarch.h: Likewise.
2603 * infcall.c (call_function_by_hand): Pass entire function value
2604 to push_dummy_call.
2605
2606 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2607 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2608 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2609 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2610 * arm-tdep.c (arm_push_dummy_call): Likewise.
2611 * avr-tdep.c (avr_push_dummy_call): Likewise.
2612 * cris-tdep.c (cris_push_dummy_call): Likewise.
2613 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2614 * frv-tdep.c (frv_push_dummy_call): Likewise.
2615 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2616 * hppa-tdep.c (hppa32_push_dummy_call)
2617 (hppa64_push_dummy_call): Likewise.
2618 * i386-tdep.c (i386_push_dummy_call): Likewise.
2619 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2620 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2621 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2622 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2623 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2624 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2625 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2626 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2627 (ppc64_sysv_abi_push_dummy_call): Likewise.
2628 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2629 (ppc64_sysv_abi_push_dummy_call): Likewise.
2630 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2631 * s390-tdep.c (s390_push_dummy_call): Likewise.
2632 * sh-tdep.c (sh_push_dummy_call_fpu)
2633 (sh_push_dummy_call_nofpu): Likewise.
2634 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
2635 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
2636 * vax-tdep.c (vax_push_dummy_call): Likewise.
2637
2638 2004-06-04 Jim Blandy <jimb@redhat.com>
2639
2640 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
2641 gdbarch argument to register_size.
2642
2643 * rs6000-tdep.c (rs6000_store_return_value): Use
2644 regcache_cooked_write_part instead of
2645 deprecated_write_register_bytes.
2646 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
2647 not gdbarch_deprecated_store_return_value.
2648
2649 * ppc-linux-nat.c (store_register, fetch_register): Remove
2650 incorrect assertions. Simplify and generalize handling of
2651 transfers whose sizes are not multiples of, or less than, sizeof
2652 (PTRACE_XFER_TYPE).
2653
2654 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
2655
2656 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
2657 as a new thread event.
2658 * thread-db.c (thread_get_info_callback): If the thread is a
2659 zombie, return TD_THR_ZOMBIE.
2660 (thread_from_lwp): If thread_get_info_callback returns
2661 TD_THR_ZOMBIE, check if the thread is still on the thread list
2662 and return a -1 ptid if not found.
2663 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
2664 change the status to TARGET_WAITKIND_SPURIOUS.
2665
2666 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
2667
2668 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
2669 double values in little endian mode.
2670
2671 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
2672
2673 Committed by Andrew Cagney.
2674 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
2675 after last enum constant to avoid error from IBM C
2676 compiler.
2677
2678 2004-06-02 Jim Blandy <jimb@redhat.com>
2679
2680 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
2681 to 'message', and make it local to the lone block that uses it.
2682
2683 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
2684
2685 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
2686
2687 * ada-exp.y: Update copyright notice.
2688 Include block.h.
2689
2690 Replace REGNAME, LAST, INTERNAL_VARIABLE with
2691 SPECIAL_VARIABLE and unify the treatment of these cases.
2692
2693 (write_attribute_call0): Remove.
2694 (write_attribute_call1): Remove.
2695 (write_attribute_calln): Remove.
2696 (save_qualifier): Add missing semicolon.
2697
2698 (simple_exp,exp): Decomment (i.e., reactivate) code that was
2699 temporarily disabled to allow compilation with FSF head version.
2700
2701 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
2702 use individual operators (OP_*) for all attributes.
2703 (exp syntax): Use write_int.
2704 Handle STRING literals with OP_STRING.
2705 (variable syntax): Add limit parameter to calls to
2706 write_object_renaming.
2707
2708 (temp_parse_space): New definition to hold entities that need
2709 only live until the next call to ada_parse.
2710 (string_to_operator): Rename fields of ada_opname_table entries.
2711
2712 (write_var_from_sym): Record block.
2713 (write_var_from_name): Minor reformatting.
2714 Make sure saved name is properly encoded in the case of multiple
2715 matches, and set its language to Ada.
2716 Update comment.
2717 Modify to indicate unresolved name as symbol in the UNRESOLVED
2718 namespace, allocated in temp_parse_space.
2719 (write_int): New function.
2720
2721 (write_object_renaming): Add max_depth parameter to limit
2722 chains of object renamings.
2723 Handle case where root of renaming expression is itself a renaming.
2724 Use temp_parse_space for temporary name buffer.
2725 Handle renamings to dereferenced pointers (___XEXA suffices).
2726
2727 (ada_parse, yyerror, string_to_operator,
2728 write_var_from_sym, write_var_from_name, write_attribute_call0,
2729 write_attribute_call1, write_attribute_calln,
2730 write_object_renaming): Protoize.
2731
2732 (_initialize_ada_exp): New function.
2733
2734 * ada-lang.c: Update copyright notice.
2735 General terminology change to conform to GNAT compiler usage:
2736 mangle => encode, demangle => decode
2737 Include gdb_obstack.h.
2738 Include gdb_regex.h
2739 Include frame.h
2740 Include hashtab.h
2741 Include completer.h
2742 Include gdb_stat.h
2743 Include block.h
2744 Include infcall.h
2745
2746 (ADA_RETAIN_DOTS): Make sure this is defined.
2747 (TRUNCATION_TOWARDS_ZERO): Define.
2748 (struct string_vector): Define.
2749 (unresolved_names): Remove definition.
2750 (xnew_string_vector): New function.
2751 (string_vector_append): New function.
2752 (extract_string): Make static.
2753 (ada_unqualified_name): New function.
2754 (add_angle_brackets): New function.
2755 (function_name_from_pc): New function.
2756 (place_on_stack): Rename to ensure_lval.
2757
2758 (ensure_lval): Renamed from place_on_stack.
2759 Make identity on lvals.
2760 Update comment.
2761 (is_nonfunction): New interface.
2762 Only symbols in LOC_CONST class can be enumerals.
2763 (fill_in_ada_prototype): Remove; now independent of language.
2764 (add_defn_to_vec): Add obstack and symtab arguments.
2765 Use obstack to hold collected definitions.
2766 (num_defns_collected): New function.
2767 (defns_collected): New function.
2768 (ada_resolve_subexp): Rename to resolve_subexp.
2769 (resolve_subexp): Renamed from ada_resolve_subexp.
2770 (ada_op_name): Return non-const result.
2771 (ada_decoded_op_name): Renamed from ada_op_name, now used for
2772 other purposes.
2773
2774 (to_fixed_array_type): Add declaration.
2775 (coerce_unspec_val_to_type): Remove offset parameter.
2776 (find_sal_from_funcs_and_line): New interface.
2777 (find_line_in_linetable): Ditto.
2778
2779 (all_sals_for_line): Rename to ada_sals_for_line and make
2780 global.
2781 Add new parameter. When set, do not ask the user to choose the
2782 instance, but use the first one found instead.
2783 Use given line number in returned sals.
2784 Fix comment.
2785 Skip the prologue if funfirstline is set.
2786 Correct for memory leak when 0 lines found.
2787
2788 (value_pos_atr): Use pos_atr.
2789 (pos_atr): New function.
2790 (standard_lookup): Add block parameter.
2791
2792 (makeTimeStart): Remove declaration and uses.
2793 (makeTimeStop): Remove declaration and uses.
2794
2795 (ada_completer_word_break_characters): Allow for VMS.
2796 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
2797 (raise_sym_name): New constant.
2798 (raise_unhandled_sym_name): New constant.
2799 (raise_assert_sym_name): New constant.
2800 (process_raise_exception_name): New constant.
2801 (longest_exception_template): New constant.
2802 (warning_limit): New variable to limit warnings during expression
2803 evaluation.
2804 (warnings_issued): New variable to keep track of warnings issued.
2805 (known_runtime_file_name_patterns): New constant.
2806 (known_auxiliary_function_name_patterns): New constant.
2807 (symbol_list_obstack): New variable.
2808
2809 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
2810 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
2811 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
2812 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
2813 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
2814 ada_variant_discrim_name, field_alignment, dynamic_template_type,
2815 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
2816 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
2817 and strcmp.
2818
2819 (ada_get_field_index): New function.
2820 (lim_warning): New function.
2821 (ada_translate_error_message): New function.
2822 (MAX_OF_SIZE): New function.
2823 (MIN_OF_SIZE): New function.
2824 (UMAX_OF_SIZE): New function.
2825 (UMIN_OF_SIZE): New function.
2826 (discrete_type_high_bound): New function.
2827 (discrete_type_low_bound): New function.
2828 (base_type): New function.
2829 (do_command): Remove.
2830
2831 (ada_update_initial_language): Use language_ada, not language_unknown.
2832 (ada_encode): Renamed from ada_mangle.
2833 Obey ADA_RETAIN_DOTS.
2834 (ada_decode): Renamed from ada_demangle.
2835 Update coding conventions.
2836 (decoded_names_store): New hash table.
2837 (ada_decode_symbol): New function.
2838 (ada_la_decode): New function.
2839
2840 (modify_general_field): Correct computations of offset and bit
2841 position.
2842 (desc_base_type): Handle ref types, too.
2843 (ada_is_direct_array_type): New function.
2844
2845 (ada_is_simple_array): Rename to ada_is_simple_array_type.
2846 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
2847 (ada_is_bogus_array_descriptor,ada_type_of_array,
2848 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
2849 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
2850 ada_is_array_descriptor_type.
2851
2852 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
2853 (ada_is_packed_array_type): Handle pointers or
2854 references to packed arrays as well.
2855 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
2856 (decode_packed_array_type): Search for the packed array type
2857 symbol in the currently selected block and associated
2858 superblocks too.
2859 Use lookup_symbol again.
2860
2861 (decode_packed_array): Handle pointers and references.
2862 Update call to coerce_unspec_val_to_type.
2863 (decode_packed_array_type,value_subscript_packed): Limit warnings.
2864 (ada_value_primitive_packed_val): Improve comment.
2865
2866 (ada_index_type): Substitute int type for "undefined".
2867 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
2868 ada_array_langth, ada_is_string_type): Use renamed
2869 ada_is_simple_array_type.
2870 (empty_array): New function.
2871
2872 (ada_resolve): Rename to resolve.
2873 (resolve): Make static.
2874 Call renamed resolve_subexp.
2875 Update comment.
2876 (ada_resolve_subexp): Rename to resolve_subexp.
2877 (resolve_subexp): Update comment.
2878 Decomment disabled code.
2879 Add LOC_COMPUTED* cases.
2880 Modify to use temporary struct symbols (marked as being in
2881 UNDEF_NAMESPACE) to indicate unresolved names, instead of
2882 OP_UNRESOLVED_VALUE.
2883 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
2884 Add OP_STRING case.
2885 Remove OP_ARRAY.
2886 Use SYMBOL_PRINT_NAME instead of ada_demangle.
2887 Use new ada_lookup_symbol_list interface.
2888 Use new ada_resolve_function interface.
2889 Remove OP_TYPE case.
2890
2891 (ada_args_match): Idiot proof against null actuals.
2892 Use intermediate variables to clarify.
2893 (ada_resolve_function): Update comment and interface.
2894 (mangled_ordered_before): Rename to encoded_ordered_before and
2895 update comment.
2896 (sort_choices): Update comment and interface.
2897 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
2898 (user_select_syms): New interface.
2899 Use new sort_choices interface.
2900 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
2901 (possible_user_operator_p): Idiot-proof against null values.
2902 (ada_simple_renamed_entity): Don't make cleanup; rely on
2903 caller to free result string.
2904 Remove const from return type.
2905 (make_array_descriptor): Rename uses of place_on_stack to
2906 ensure_lval.
2907 Make sure that arrays are on stack.
2908
2909 (HASH_SIZE): Define.
2910 (struct cache_entry): Define.
2911 (cache_space): Define.
2912 (cache): Define.
2913 (clear_ada_sym_cache): New function.
2914 (find_entry): New function.
2915 (lookup_cached_symbol): New function.
2916 (defn_vector_size): Define.
2917 (cache_symbol): New function.
2918 (defn_symbols): Remove.
2919
2920 (standard_lookup): Use lookup_symbol_in_language to get effect of
2921 C lookup.
2922 Cache results.
2923
2924 (symbol_completion_match): New function.
2925 (symbol_completion_add): New function.
2926 (ada_make_symbol_completion_list): New function.
2927
2928 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
2929 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
2930 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
2931 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
2932
2933 (ada_lookup_simple_minsym): New function.
2934 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
2935
2936 (add_symbols_from_enclosing_procs): New interface.
2937 Conditionalize more helpfully.
2938 Don't bother if program isn't running.
2939 Use new interface to get_frame_block.
2940 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
2941
2942 (remove_extra_symbols): New interface.
2943 (xget_renaming_scope): New function.
2944 (is_package_name): New function.
2945 (renaming_is_visible): New function.
2946 (remove_out_of_scope_renamings): New function.
2947
2948 (ada_lookup_symbol_list): New interface.
2949 Properly reinitialize the symbol list obstack.
2950 Don't call add_symbols_from_enclosing_procs if we start from a
2951 static or global block.
2952 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
2953 add_symbols_from_enclosing_procs.
2954 Add symtab data to cached entries.
2955 Handle symbols prefixed with
2956 "standard__" specially; strip prefix and don't look in local symbols.
2957 Do not include out of scope renaming symbols in list of
2958 symbols returned.
2959 Add const to block parameter.
2960 Move check for non-local, non-global symbols earlier.
2961 Remove timing stuff.
2962 (ada_lookup_symbol): New interface.
2963 Find symtab as well.
2964 (ada_lookup_symbol_nonlocal): New function.
2965
2966 (is_name_suffix): Enhance suffix detection to recognize
2967 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
2968 (is_dot_digits_suffix): New function.
2969 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
2970
2971 (ada_add_block_symbols): New interface. Use obstack to return results
2972 in a vector of struct ada_symbol_infos. Add symtab argument.
2973 Use new interface to add_defn_to_vec.
2974 Remove calls to fill_in_ada_prototype.
2975 Use BLOCK_BUCKETS, BLOCK_BUCKET.
2976
2977 (ada_finish_decode_line_1): Add const qualification to local to fix
2978 warning.
2979 Start looking in static block for functions to avoid attempts
2980 to search frame chain for up-level variables.
2981 Adapt to new ada_sals_for_line interface.
2982 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
2983 Handle quoting of the function name inside the spec string.
2984 Skip prologue when funfirstline is set and update the
2985 function documentation to that effect.
2986
2987 (debug_print_lines, debug_print_block, debug_print_blocks,
2988 debug_print_symtab): Remove.
2989
2990 (ada_main_name): New function.
2991 (ada_exception_breakpoint_type): New function.
2992 (is_known_support_routine): New function.
2993 (ada_find_printable_frame): Renamed from find_printable_frame and made
2994 global.
2995 Remove level parameter.
2996 Use new interface to select_frame.
2997
2998 (begin_command): Remove.
2999 (ada_adjust_exception_stop): New function.
3000 (ada_print_exception_stop): New function.
3001 (exception_name_from_cond): New function.
3002 (ada_report_exception_break): Replace disabled code with
3003 conditionalization on GNAT_GDB.
3004 Get the exception name from the condition string.
3005 Remove and move functionality into new functions
3006 ada_print_exception_breakpoint_task and
3007 ada_print_exception_breakpoint_nontask.
3008 (error_breakpoint_runtime_sym_not_found): New function.
3009 (is_runtime_sym_defined): New function.
3010 (ada_breakpoint_rewrite): Uncomment suppressed code.
3011 Use symbolic error-message and runtime-symbol names.
3012 Surround runtime symbol names in quotes.
3013 Allow non-specific breakpoints on exceptions and assertions before
3014 program starts.
3015
3016 (ada_is_tagged_type): Add parameter.
3017 (ada_is_tag_type): New function.
3018 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3019 (ada_variant_discrim_type): Ditto.
3020 (value_tag_from_contents_and_address): New function.
3021 (type_from_tag): New function.
3022 (struct tag_args): New structure used to communicate with
3023 ada_tag_name_1.
3024 (ada_tag_name_1): New function.
3025 (ada_tag_name): New function.
3026
3027 (ada_scan_number): Update comment.
3028 (find_struct_field): New function.
3029 (ada_search_struct_field): Make static.
3030 (ada_value_struct_elt): New version that returns references when
3031 given pointers or references to structs.
3032 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3033 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3034 interface.
3035 (ada_value_ind): Use new ada_to_fixed_value interface.
3036 (ada_coerce_ref): Ditto.
3037 (field_offset): Remove.
3038
3039 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3040 (ada_find_renaming_symbol): New function.
3041 (ada_prefer_type): Prefer named types over unnamed ones.
3042 (variant_field_index): New function.
3043 (contains_variant_part): Removed: subsumed by variant_field_index.
3044 (ada_template_to_fixed_record_type): New function, mostly from
3045 template_to_fixed_record_type.
3046 (template_to_fixed_record_type):
3047 Do not scan the type fields beyond the last one; prevents a
3048 potential SEGV.
3049 Handle case where variant field is listed BEFORE discriminant it
3050 depends on.
3051 Fix calculation of record length when bit length is
3052 not evenly divisible by char length.
3053 Move code to ada_template_to_fixed_record_type and call it.
3054
3055 (template_to_static_fixed_type): Revise comment.
3056 Modify to work on ordinary record types as well as templates,
3057 so as to handle fields that use ___XVE or ___XVU encodings.
3058 (to_record_with_fixed_variant_part): Fill out comment.
3059 Initialize C++ stuff in right type.
3060 Allow case where DVAL is null.
3061 Handle case where variant field is not last.
3062 Fix typo concerning record length.
3063 (to_fixed_record_type): Decomment disabled code.
3064 (to_fixed_record_type): Use variant_field_index instead of
3065 contains_variant_part.
3066 (to_fixed_variant_branch_type): Ditto.
3067 (to_fixed_array_type): Decomment disabled code.
3068 (ada_to_fixed_type): Convert tagged types to the specific type.
3069 Deactivate the size-check for array types in order to avoid
3070 some false size alarms.
3071 (to_static_fixed_type): Decomment disabled code.
3072 Modify to call template_to_static_fixed_type
3073 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3074 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3075 Remove valaddr argument, as it is never really used.
3076 (ada_to_fixed_value): Change interface to act on single struct value*
3077 operand.
3078 (adjust_pc_past_prologue): New function.
3079 (ada_attribute_name): Modify to take enum exp_opcode argument.
3080
3081 (ada_enum_name): Recognize new homonym-distinguishing convention.
3082 Adjust local variable's type to remove compiler warning.
3083 Fix a small problem in the part that unqualifies the enumeration name.
3084 (ada_value_binop): New function.
3085 (ada_value_equal): New function.
3086
3087 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3088 Don't give error message when not doing normal evaluation
3089 and a tagged type doesn't seem to contain a structure member.
3090 Give error message for packed arrays.
3091 For indexing arrays, handle pointers to packed arrays correctly.
3092 Handle case of 'first and 'last attributes of bare integral type
3093 without encoded subtype info.
3094 Remove some unnecessary casts.
3095 Fix uninitialized value of type in computing 'first, 'last, or 'length
3096 of array object.
3097 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3098 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3099 calls.
3100 Attributes are now exp_opcode values.
3101 Correct treatment of 'modulus.
3102 Better error message for taking 'length of wrong kind of type;
3103 improve comment.
3104 Change EVAL_NORMAL to noside for consistency.
3105 Use ada_value_binop for DIV, MOD, REM.
3106 Make special case out of array of length 0, since an argument
3107 of 0 upsets some platforms' malloc.
3108 Use OP_STRING instead of OP_ARRAY.
3109 For slice, add check that we have an array type before extracting
3110 a slice out of it. Avoids a SEGV.
3111 When evaluating an array slice, if the array type is a reference to
3112 an aligner type, then replace the aligner type by the actual type.
3113 Decomment disabled code.
3114 Remove some dead code.
3115 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3116 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3117 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3118 and UNOP_MBR to UNOP_IN_RANGE.
3119 If an array type has a parallel ___XVE type, then use it.
3120 Turn arrays into pointers for lvalue arrays.
3121 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3122 bounds error and handle 0-length slices.
3123 Use lim_warning.
3124 When selecting fields, apply ada_to_fixed_value (because the fields
3125 might have ___XVU or ___XVE encodings even if not dynamic.)
3126 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3127 (ada_is_system_address_type): New function.
3128
3129 (get_var_value): Use new interface to ada_lookup_symbol_list.
3130 (get_int_var_value): New interface.
3131 (to_fixed_range_type): Allow unknown bound, with warning.
3132 (ada_is_modular_type): Decomment disabled code.
3133 (ADA_OPERATORS): New definition.
3134 (ada_operator_length): New function.
3135 (ada_expr_op_name): New function.
3136 (ada_forward_operator_length): New function.
3137 (ada_dump_subexp_body): New function.
3138 (ada_print_subexp): New function.
3139 (ada_exp_descriptor): New constant.
3140 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3141 (ada_language_defn): Add ada_exp_descriptor entry.
3142 Change ada_parse => parse.
3143 Add post-parser entry.
3144 Use ada-specific non-local symbol lookup.
3145 Don't use C-style arrays.
3146 String lower-bound is 1.
3147 Decomment disabled code.
3148 (parse): New function.
3149 New fields ada_translate_error_message, ada_lookup_symbol,
3150 ada_lookup_minimal_symbol.
3151
3152 * ada-lang.h: Update copyright dates.
3153 Replace the mangle/demangle terminology throughout by the
3154 more appropriate encode/decode one.
3155 Include breakpoint.h.
3156 Forward declare struct partial_symbol, struct block.
3157 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3158 (EXTRACT_ADDRESS): Remove.
3159 (EXTRACT_INT): Remove.
3160 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3161 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3162 (MAX_RENAMING_CHAIN_LENGTH): Define.
3163 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3164
3165 (enum task_states): Remove.
3166 ada_task_states: Remove.
3167 (fat_string): Remove.
3168 (struct entry_call): Remove.
3169 (struct task_fields): Remove.
3170 (struct task_entry): Remove.
3171
3172 (struct ada_symbol_info): Define.
3173 (enum ada_attribute): Remove.
3174 (enum ada_operator): Define.
3175
3176 (ada_get_field_index): Declare.
3177 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3178 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3179 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3180 (ada_lookup_symbol_list): New interface.
3181 (ada_decode_symbol): Declare.
3182 (ada_decode): Declare.
3183 (ada_lookup_symbol): New interface.
3184 (ada_update_initial_language): Declare.
3185 (ada_lookup_simple_minsym): Declare.
3186 (user_select_syms): New interface.
3187 (ada_sals_for_line): Declare.
3188 (ada_is_tagged_type): New interface.
3189 (ada_tag_name): Declare.
3190 (ada_lookup_struct_elt_type): Remove declaration.
3191 (ada_search_struct_field): Remove declaration.
3192 (ada_attribute_name): New interface.
3193 (ada_is_system_address_type): Declare.
3194 (ada_to_fixed_value): Remove declaration.
3195 (ada_template_to_fixed_record_type_1): Declare.
3196 (get_int_var_value): New interface.
3197 (ada_find_any_symbol): Declare.
3198 (ada_find_renaming_symbol): Declare.
3199 (ada_mangle): Rename to ada_encode.
3200 (ada_simple_renamed_entity): Remove const.
3201 (ada_main_name): Declare.
3202 (get_current_task): Rename to ada_get_current_task.
3203 (get_entry_number): Remove declaration.
3204 (ada_report_exception_break): Remove declaration.
3205 (ada_print_exception_breakpoint_nontask): Declare.
3206 (ada_print_exception_breakpoint_task): Declare.
3207 (ada_find_printable_frame): Declare.
3208
3209 * ada-lex.l: Update copyright notices.
3210 Use xmalloc and xfree instead of malloc and free.
3211 Use new interface to name_lookup.
3212 Use new interface to
3213 ada_mangle=>ada_encode.
3214 Redo handling of '$...' variable to parallel current treatment
3215 in c-exp.y.
3216 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3217 digit_to_int, strtoulst, processInt, processReal, processId,
3218 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3219 yywrap): Protoize.
3220
3221 (processInt): Use cast to remove harmless warning.
3222 (processReal): Modify to get rid of compiler warning on scan formats.
3223
3224 (processId): Replace xmalloc with obstack_alloc for name and remove
3225 call to ada_name_string_cleanup.
3226 Remove obsolete disabled code.
3227 (name_lookup): Ditto.
3228 New interface.
3229 Use obsavestring on temp_parse_space instead of savestring
3230 on name, and remove call to ada_name_string_cleanup.
3231 Free string returned from ada_simple_renamed_entity.
3232 Use new interface to ada_lookup_symbol_list.
3233 Decomment disabled code.
3234 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3235 not types.
3236 When a type name lookup succeeds as a result of
3237 lookup_primitive_typename, check for regular type entry that has not
3238 yet been read in.
3239 Limit length of chain of renamed symbols we are willing to follow.
3240 Do not break names beginning with "standard__" into segments.
3241 (block_lookup): Use new interface to ada_lookup_symbol_list.
3242
3243 * ada-typeprint.c: Update copyright notice.
3244 (demangled_type_name): Rename to decoded_type_name.
3245 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3246 (print_range_bound): Correct handling of negative
3247 bounds that make the index type looked unsigned under STABS.
3248 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3249 (print_range_type_named): Use the builtin int type if no type
3250 corresponding to the given type name could be found.
3251 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3252 Add some bullet-proofing.
3253 (print_variant_clauses): Allow for variant branches with ___XVU
3254 encodings that are not dynamic fields.
3255 Use new interface to ada_is_tagged_type.
3256 (print_record_type): Allow for fields with ___XVE encodings that
3257 are not dynamic fields.
3258 Use new interface to ada_is_tagged_type.
3259 (ada_print_type): ada_is_array_descriptor =>
3260 ada_is_array_descriptor_type.
3261
3262 * ada-valprint.c: Update copyright notice.
3263 Include gdb_string.h
3264 Include infcall.h
3265 (ui_memcpy): New function.
3266 (ada_print_floating): New function.
3267 (ada_print_str): Order arguments correctly.
3268 Correct handling of empty arrays and arrays of 0-length items.
3269 ada_is_array_descriptor => ada_is_array_descriptor_type
3270 Print values of type System.Address in hexadecimal format.
3271 Use ada_print_floating to print floating-point numbers in Ada format.
3272 Print class tag values with type names.
3273 No longer print the address of reference values. Avoids
3274 a potential confusion.
3275 (ada_value_print): Stop printing the object type for reference
3276 values, but preserve that behavior for access types. Avoids
3277 a potential confusion.
3278 Simplify one conditional expression, as the first part is now
3279 necessarily true.
3280 ada_is_array_descriptor => ada_is_array_descriptor_type
3281 Add check for arrays for null records, and print them by hand.
3282
3283 2004-06-01 Jim Blandy <jimb@redhat.com>
3284
3285 * ppc-tdep.h: Delete unused 'regoff' member.
3286 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3287
3288 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3289
3290 Fix PR symtab/1661.
3291 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3292 (hpread_read_struct_type): Likewise.
3293
3294 2004-06-01 Andrew Cagney <cagney@gnu.org>
3295
3296 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3297 instead of xasprintf.
3298 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3299 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3300 (mi_cmd_data_list_register_names)
3301 (mi_cmd_data_list_changed_registers)
3302 (mi_cmd_data_list_register_values)
3303 (get_register, mi_cmd_data_write_register_values)
3304 (mi_cmd_data_write_register_values)
3305 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3306 (mi_cmd_target_download, mi_cmd_target_select)
3307 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3308 (mi_execute_cli_command, mi_execute_async_cli_command)
3309 (mi_execute_async_cli_command): Ditto.
3310 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3311 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3312
3313 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3314 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3315 error_last_message instead of mi_error_last_message.
3316 * mi/mi-main.c (mi_error_last_message): Delete function.
3317
3318 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3319 "invalid number of columns" error. Delete redundant "out of
3320 memory" check.
3321
3322 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3323
3324 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3325 (gregset_t, fpregset_t): Remove typedefs.
3326 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3327 (REG_OFFSET): Rename argument.
3328 (i386bsd_r_reg_offset): Rename from reg_offset.
3329 (REG_ADDR): Remove macro.
3330 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3331 functions.
3332 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3333 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3334 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3335 instead of supply_gregset.
3336 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3337 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3338 instead of fill_gregset.
3339 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3340
3341 * i386bsd-nat.c: Don't include "gregset.h".
3342 (supply_gregset, fill_gregset): Make static.
3343 (supply_fpregset, fill_fpregset): Remove.
3344 * Makefile.in (i386bsd-nat.o): Update dependencies.
3345
3346 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3347
3348 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3349 "gdb_assert.h". Con't include "gregset.h".
3350 (fbsd_make_corefile_notes): Use regset-based core file support
3351 instead off fill_gregset and fill_fpregset.
3352 * Makefile.in (fbsd-proc.o): Update dependencies.
3353
3354 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3355 instructions.
3356 (m88k_frame_prev_register): Simplify code a bit.
3357
3358 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3359 (amd64_collect_fpregset): New function.
3360 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3361
3362 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3363
3364 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3365 (i386_collect_gregset): New function.
3366 (i386_supply_fpregset): Adjust comment.
3367 (i386_collect_fpregset): New function.
3368 (i386_regset_from_core_section): Use i386_collect_gregset and
3369 i386_collect_fpregset.
3370
3371 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3372 handle VALUEP being null.
3373
3374 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3375
3376 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3377
3378 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3379
3380 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3381 assembler in OpenBSD 3.5-current.
3382 (amd64obsd_sigcontext_addr): Likewise.
3383
3384 2004-05-28 Jim Blandy <jimb@redhat.com>
3385
3386 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3387 register set, so our regcache isn't declared "legacy" and our E500
3388 pseudoregister read and write functions aren't ignored.
3389 (rs6000_register_byte, rs6000_register_raw_size,
3390 rs6000_register_virtual_type, rs6000_register_convertible,
3391 rs6000_register_convert_to_virtual,
3392 rs6000_register_convert_to_raw): Deleted.
3393 (rs6000_register_type, rs6000_convert_register_p,
3394 rs6000_register_to_value, rs6000_value_to_register): New
3395 functions.
3396 (rs6000_gdbarch_init): Don't register
3397 gdbarch_deprecated_register_size,
3398 gdbarch_deprecated_register_bytes,
3399 gdbarch_deprecated_register_byte,
3400 gdbarch_deprecated_register_raw_size,
3401 gdbarch_deprecated_register_virtual_type,
3402 gdbarch_deprecated_register_convertible,
3403 gdbarch_deprecated_register_convert_to_virtual, or
3404 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3405 register gdbarch_register_type, gdbarch_convert_register_p,
3406 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3407
3408 2004-05-26 Jim Blandy <jimb@redhat.com>
3409
3410 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3411 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3412 functions, updated to match the register numberings used in GCC.
3413 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3414 rs6000_dwarf2_reg_to_regnum as register number conversions
3415 functions for STABS and Dwarf2.
3416
3417 2004-05-26 Randolph Chung <tausq@debian.org>
3418
3419 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3420 in header file.
3421
3422 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3423
3424 * NEWS: Document new "start" command.
3425
3426 2004-05-25 Randolph Chung <tausq@debian.org>
3427
3428 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3429 hppa-linux.
3430
3431 2004-05-25 Randolph Chung <tausq@debian.org>
3432
3433 * hppa-hpux-tdep.c (offsetof): Define.
3434 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3435 (hppa32_hpux_frame_base_before_sigtramp)
3436 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3437 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3438 (hppa64_hpux_frame_base_before_sigtramp)
3439 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3440 functions.
3441 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3442 (hppa_hpux_sigtramp_frame_unwind_cache)
3443 (hppa_hpux_sigtramp_frame_this_id)
3444 (hppa_hpux_sigtramp_frame_prev_register)
3445 (hppa_hpux_sigtramp_frame_unwind)
3446 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3447 (hppa_hpux_init_abi): Register sigtramp unwinder.
3448 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3449
3450 2004-05-25 Randolph Chung <tausq@debian.org>
3451
3452 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3453 and multiple stack unwinds.
3454 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3455
3456 2004-05-25 Andrew Cagney <cagney@gnu.org>
3457
3458 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3459 * symfile-mem.h: Delete file.
3460 * symfile-mem.c: Do not include "symfile-mem.h".
3461 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3462 "struct bfd_section". When an error do not bother returning NULL.
3463 (add_symbol_file_from_memory_command): Use "struct bfd" and
3464 "struct bfd_section".
3465 * Makefile.in (symfile_mem_h): Delete.
3466 (symfile-mem.o): Update dependencies.
3467
3468 2004-05-25 Nick Roberts <nickrob@gnu.org>
3469
3470 * gdb-mi.el: New file.
3471
3472 2004-05-25 Andrew Cagney <cagney@gnu.org>
3473
3474 * inftarg.c: Include "observer.h".
3475 (child_attach, child_create_inferior): Notify inferior_created.
3476 * corelow.c: Include "observer.h".
3477 (core_open): Notify inferior_created.
3478 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3479
3480 2004-05-25 Andrew Cagney <cagney@gnu.org>
3481
3482 * target.h (struct target_ops): Add from_tty to
3483 to_create_inferior.
3484 (target_create_inferior, find_default_create_inferior): Update.
3485 * infcmd.c (run_command): Update.
3486 * wince.c (child_create_inferior): Update.
3487 * win32-nat.c (child_create_inferior): Update.
3488 * uw-thread.c (uw_thread_create_inferior): Update.
3489 * thread-db.c (thread_db_create_inferior): Update.
3490 * target.c (debug_to_create_inferior)
3491 (find_default_create_inferior): Update.
3492 (maybe_kill_then_create_inferior): Update.
3493 * sol-thread.c (sol_thread_create_inferior): Update.
3494 * remote.c (extended_remote_async_create_inferior)
3495 (extended_remote_create_inferior): Update.
3496 * remote-vx.c (vx_create_inferior): Update.
3497 * remote-st.c (st2000_create_inferior): Update.
3498 * remote-sim.c (gdbsim_create_inferior): Update.
3499 * remote-sds.c (sds_create_inferior): Update.
3500 * remote-rdp.c (remote_rdp_create_inferior): Update.
3501 * remote-rdi.c (arm_rdi_create_inferior): Update.
3502 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3503 * remote-e7000.c (e7000_create_inferior): Update.
3504 * procfs.c (procfs_create_inferior): Update.
3505 * ocd.c (ocd_create_inferior): Update.
3506 * ocd.h (ocd_create_inferior): Update.
3507 * nto-procfs.c (procfs_create_inferior): Update.
3508 * monitor.c (monitor_create_inferior): Update.
3509 * lin-lwp.c (lin_lwp_create_inferior): Update.
3510 * inftarg.c (child_create_inferior): Update.
3511 * hpux-thread.c (hpux_thread_create_inferior): Update.
3512 * gnu-nat.c (gnu_create_inferior): Update.
3513
3514 2004-05-25 Andrew Cagney <cagney@gnu.com>
3515
3516 * MAINTAINERS: Update e-mail address.
3517
3518 2004-05-24 Randolph Chung <tausq@debian.org>
3519
3520 * thread.c (info_threads_command, thread_apply_all_command)
3521 (thread_apply_command, thread_command, do_captured_thread_select):
3522 Remove HPUXHPPA-specific code.
3523
3524 2004-05-24 Randolph Chung <tausq@debian.org>
3525
3526 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3527 unused symbols.
3528 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3529 references.
3530
3531 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3532
3533 * infcmd.c (kill_if_already_running): New function, extracted
3534 from run_command().
3535 (run_command): Replace extracted code by call to
3536 kill_if_already_running().
3537 (start_command): New function.
3538 (_initialize_infcmd): Add "start" command.
3539
3540 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3541
3542 Add OpenBSD/m88k support.
3543 * NEWS (New native configurations): Mention OpenBSD/m88k.
3544 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3545 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3546 * Makefile.in (m88k_tdep_h): New variable.
3547 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3548 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3549 * configure.host: Add m88*-*-openbsd*.
3550 * configure.tgt: Add m88*-*-openbsd*.
3551
3552 2004-05-24 Jim Blandy <jimb@redhat.com>
3553
3554 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3555 to approve changes.
3556
3557 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3558
3559 * symtab.c (fixup_section): Search section table when lookup by
3560 name fails.
3561
3562 2004-05-24 Randolph Chung <tausq@debian.org>
3563
3564 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3565 be "small_struct".
3566
3567 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3568
3569 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3570 register number in regcache_raw_collect call.
3571 (m68kbsd_collect_fpregset): Likewise.
3572 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3573
3574 * regset.h (struct regset): Add back `regset' member.
3575
3576 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3577
3578 * configure.in: Check for td_pcb in `struct thread'.
3579 * configure, config.in: Regenerated.
3580
3581 * dpx2-nat.c: Remove file.
3582 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3583 (dpx2-nat.o): Remove dependencies.
3584
3585 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3586 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3587 (amd64obsd_supply_pcb): New function.
3588 (_initialize_amd64obsd_nat): Enable libkvm interface.
3589 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3590 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3591 (LOADLIBES): New variable.
3592
3593 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3594 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3595 (sparc32nbsd_supply_pcb): New function.
3596 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3597 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3598 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3599 (LOADLIBES): New variable.
3600
3601 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3602
3603 * bsd-kvm.c, bsd-kvm.h: New files.
3604 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3605 "bsd-kvm.h".
3606 (i386fbsd_supply_pcb): New function.
3607 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3608 (i386fbsd-nat.o): Update dependencies.
3609 (bsd_kvm_h): New variable.
3610 (bsd-kvm.o): New dependency.
3611 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3612 (LOADLIBES): New variable.
3613
3614 * regset.c: Tweak comment.
3615 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3616 macro.
3617 * regset.h: Update copyright year.
3618 (struct regset): Remove `descr' member, add `gdbarch' member.
3619 (regset_alloc): Adjust prototype and comment.
3620 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3621 (i386_supply_fpregset): Likewise.
3622 (i386_regset_from_core_section): Update call to regset_alloc.
3623 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3624 REGSET->arch.
3625 (i386obsd_aout_regset_from_core_section): Update call to
3626 regset_alloc.
3627 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3628 REGSET->arch.
3629 (i386nbsd_aout_regset_from_core_section): Update call to
3630 regset_alloc.
3631 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
3632 REGSET->arch.
3633 (amd64_regset_from_core_section): Update call to regset_alloc.
3634 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
3635 REGSET->arch.
3636 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
3637 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
3638 &sparc32nbsd_gregset in sparc32_supply_gregset call.
3639 (sparc32nbsd_init_abi): Update call to regset_alloc.
3640 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
3641 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
3642 (sparc64obsd_init_abi): Update call to regset_alloc.
3643 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
3644 &sparc64nbsd_gregset in sparc64_supply_gregset call.
3645 (sparc64nbsd_init_abi): Update call to regset_alloc.
3646 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
3647 &sparc64fbsd_gregset in sparc64_supply_gregset call.
3648 (sparc64fbsd_init_abi): Update call to regset_alloc.
3649
3650 2004-05-22 Jim Blandy <jimb@redhat.com>
3651
3652 * ppc-tdep.h (spe_register_p): New declaration.
3653 (struct gdbarch_tdep): New members: ppc_acc_regnum and
3654 ppc_spefscr_regnum.
3655 * rs6000-tdep.c (spe_register_p): New function.
3656 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
3657 spefscr.
3658 (rs6000_gdbarch_init): Initialize the new members of the tdep
3659 structure.
3660
3661 2004-05-21 Jim Blandy <jimb@redhat.com>
3662
3663 * ppc-linux-nat.c (fetch_register): Move code back to be next
3664 to the comment that describes it. (Moved code, instead of
3665 comment, for symmetry with store_register.)
3666
3667 Allocate regset structures in the gdbarch's obstack, not using
3668 xmalloc.
3669 * regset.c (regset_alloc): Renamed from regset_xmalloc.
3670 Add 'arch' argument. Allocate the regset on arch's obstack, not
3671 using xmalloc.
3672 * regset.h (regset_alloc): Update declaration.
3673 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
3674 gdbarch argument.
3675 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3676 * i386-tdep.c (i386_regset_from_core_section): Same.
3677 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3678 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3679 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3680 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3681 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3682 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3683
3684 2004-05-21 Joel Brobecker <brobecker@gnat.com>
3685
3686 * config/djgpp/fnchange.lst: Undo previous change, was useless.
3687
3688 2004-05-21 Jim Blandy <jimb@redhat.com>
3689
3690 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
3691 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
3692
3693 2004-05-20 Jim Blandy <jimb@redhat.com>
3694
3695 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
3696
3697 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3698
3699 * regset.h: Make prototype const-correct.
3700 * regset.c (regset_xmalloc): Make const-correct.
3701
3702 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
3703
3704 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
3705 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
3706 (symbol_search_name): Declare.
3707
3708 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
3709 (iter_name_next_hashed): Ditto.
3710 (iter_name_next_linear): Ditto.
3711 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
3712
3713 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
3714 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
3715 (symbol_search_name): New function.
3716
3717 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
3718
3719 * minsyms.c (build_minimal_symbol_hash_tables): Change
3720 test for adding to demangled hash table to check for difference
3721 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
3722
3723 2004-05-19 Jim Blandy <jimb@redhat.com>
3724
3725 Use a constructor function to create regset structures.
3726 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
3727 (struct regset): Use supply_regset_ftype. Add new
3728 'collect_regset' member.
3729 (regset_xmalloc): New declaration.
3730 * regset.c: New file.
3731 * am64-tdep.c (amd64_regset_from_core_section): Use
3732 regset_xmalloc to construct regset structures.
3733 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
3734 * i386-tdep.c (i386_regset_from_core_section): Same.
3735 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
3736 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
3737 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
3738 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
3739 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
3740 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
3741 * Makefile.in (COMMON_OBS): Add regset.o.
3742 (regset.o): New rule.
3743
3744 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3745
3746 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
3747 and pthread_cond_wait.c.
3748
3749 2004-05-18 Jim Blandy <jimb@redhat.com>
3750
3751 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
3752 before the mach-specific switch, and then let the individual cases
3753 override the defaults, rather than leaving them uninitialized
3754 until the switch and then setting them in each case.
3755
3756 2004-05-18 Randolph Chung <tausq@debian.org>
3757
3758 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
3759 millicode functions.
3760
3761 2004-05-18 Randolph Chung <tausq@debian.org>
3762
3763 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
3764 references to dld_flags_buffer consistent.
3765
3766 2004-05-18 Randolph Chung <tausq@debian.org>
3767
3768 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
3769 it for unwinding the stack.
3770
3771 2004-05-18 Randolph Chung <tausq@debian.org>
3772
3773 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
3774 Undefine these so we can overide them using gdbarch.
3775
3776 2004-05-18 Randolph Chung <tausq@debian.org>
3777
3778 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
3779 handling for 64-bit HPUX (elf).
3780
3781 2004-05-18 Daniel Jacobowitz <dan@debian.org>
3782
3783 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
3784 constants.
3785 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3786 * ia64-tdep.c (examine_prologue): Likewise.
3787 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
3788 * v850-tdep.c (v850_fix_call_dummy): Likewise.
3789
3790 2004-05-18 Mark Kettenis <kettenis@gnu.org>
3791
3792 * vax-tdep.c (vax_return_value): Implement
3793 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3794
3795 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3796
3797 * vax-tdep.c (vax_return_value): Fix typo.
3798
3799 2004-05-17 Andrew Cagney <cagney@redhat.com>
3800
3801 * MAINTAINERS: Mark Salter was also responsible for
3802 testsuite/config/
3803
3804 * NEWS: Mention signal fixes.
3805
3806 2004-05-17 Randolph Chung <tausq@debian.org>
3807
3808 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
3809 check to see if we are unwinding an export stub. Export stubs clobber
3810 the %rp in the call path and stores the original rp in a stack slot.
3811
3812 2004-05-17 Jim Blandy <jimb@redhat.com>
3813
3814 * MAINTAINERS: Update address for J.T. Conklin.
3815
3816 2004-05-17 Randolph Chung <tausq@debian.org>
3817
3818 * hppa-tdep.c: Remove superfluous #include's.
3819 * Makefile.in (hppa-tdep.o): Update dependencies.
3820
3821 2004-05-17 Randolph Chung <tausq@debian.org>
3822
3823 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
3824 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
3825 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
3826 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
3827 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
3828 Remove static function declarations.
3829
3830 2004-05-17 Mark Kettenis <kettenis@gnu.org>
3831
3832 * alphabsd-nat.c: Update copyright year.
3833 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
3834
3835 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
3836 and M68K_A2_REGNUM.
3837
3838 * m68k-tdep.c (m68k_svr4_return_value): Implement
3839 RETURN_VALUE_ABI_RETURNS_ADDRESS.
3840
3841 2004-05-16 Mark Kettenis <kettenis@gnu.org>
3842
3843 * sol-thread.c Update copyright year. Fix various coding
3844 standards violations. Tweak a few comments.
3845 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
3846 Delete prototypes.
3847
3848 2004-05-15 Randolph Chung <tausq@debian.org>
3849
3850 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
3851 as pointer instead of array reference since HPUX compiler does
3852 not accept unsized array arguments.
3853 * somsolib.c (dld_flags_buffer): Use constant array size.
3854
3855 2004-05-15 Mark Kettenis <kettenis@gnu.org>
3856
3857 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
3858 offset with decimal offset.
3859 (amd64obsd_sigcontext_addr): Return correct address for entire
3860 signal trampoline.
3861
3862 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
3863 instead of get_frame_base.
3864
3865 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
3866 (fill_gregset): Use regcache_raw_collect.
3867
3868 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
3869 ppcobsd-tdep.c.
3870
3871 * config/sparc/tm-nbsd64.h: Remove file.
3872 * config/tm-sunos.h: Remove file.
3873
3874 2004-05-15 Joel Brobecker <brobecker@gnat.com>
3875
3876 * rs6000-tdep.c (store_param_on_stack_p): New function,
3877 an improved version of some code extracted from skip_prologue().
3878 (skip_prologue): Use store_param_on_stack_p() to detect
3879 instructions saving a parameter on the stack. Detect when r0
3880 is used to save a parameter.
3881 Do not mark "li rx, SIMM" instructions as part of the prologue,
3882 unless the following instruction is also part of the prologue.
3883
3884 2004-05-14 Andrew Cagney <cagney@redhat.com>
3885
3886 * infrun.c (handle_inferior_event): Simplify
3887 STEP_OVER_UNDEBUGGABLE.
3888
3889 * infrun.c (handle_step_into_function): Delete function.
3890 (handle_inferior_event): Inline calls to
3891 handle_step_into_function.
3892
3893 2004-05-14 Jerome Guitton <guitton@gnat.com>
3894
3895 * rs6000-nat.c: Fix a comment.
3896
3897 2004-05-12 David Anderson <davea@sgi.com>
3898
3899 Committed by Jim Blandy <jimb@redhat.com>:
3900 * regcache.c (struct regcache_descr): fix comment spelling.
3901
3902 2004-05-13 J. Brobecker <brobecker@gnat.com>
3903
3904 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
3905 Fixes a link link failure.
3906
3907 2004-05-13 J. Brobecker <brobecker@gnat.com>
3908
3909 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
3910 error that was causing the build to fail.
3911
3912 2004-05-13 J. Brobecker <brobecker@gnat.com>
3913
3914 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
3915 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
3916
3917 2004-05-13 Andrew Cagney <cagney@redhat.com>
3918
3919 * infrun.c (handle_inferior_event): Check for
3920 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
3921 calls. Update comments.
3922
3923 2004-05-13 Jim Blandy <jimb@redhat.com>
3924
3925 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
3926 (fetch_regs_user_thread, fetch_regs_kernel_thread)
3927 (store_regs_user_thread, store_regs_kernel_thread): Use
3928 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
3929 * ppc-linux-nat.c (fill_gregset): Same.
3930 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3931 (ppc_linux_sigtramp_cache): Same.
3932 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
3933 (ppcnbsd_sigtramp_cache_init): Same.
3934 * rs6000-nat.c (fetch_core_registers): Same.
3935 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
3936 (rs6000_frame_cache): Same.
3937
3938 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
3939 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
3940 of assuming that the gprs are numbered starting with zero.
3941 * ppc-linux-nat.c (fill_gregset): Same.
3942 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
3943 * ppcnbsd-nat.c (getregs_supplies): Same.
3944 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
3945 * rs6000-nat.c (fetch_core_registers): Same.
3946 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
3947
3948 2004-05-07 Michael Snyder <msnyder@redhat.com>
3949
3950 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
3951 LOC_COMPUTED_ARG, and LOC_INDIRECT.
3952
3953 2004-05-13 Andrew Cagney <cagney@redhat.com>
3954
3955 * infrun.c (handle_inferior_event): Use frame_unwind_id.
3956
3957 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3958
3959 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
3960 base_address for shared libraries.
3961
3962 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
3963
3964 * MAINTAINERS (write after approval): Add myself.
3965
3966 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
3967
3968 * breakpoint.c (bpstat_stop_status): Add new argument
3969 STOPPED_BY_WATCHPOINT. Use it instead of testing
3970 target_stopped_data_address agaist 0 to check whether
3971 or not we stopped due to a hardware watchpoint.
3972 * breakpoint.h (bpstat_stop_status): Adapt prototype.
3973 * infrun.c (handle_inferior_event): Call bpstat_stop_status
3974 with new argument.
3975
3976 2004-05-12 Jim Blandy <jimb@redhat.com>
3977
3978 * configure.in: When checking whether we should use the -bbigtoc
3979 option, don't forget to restore the original value of LDFLAGS.
3980 * configure: Regenerated.
3981
3982 2004-05-12 Andrew Cagney <cagney@redhat.com>
3983
3984 * thread.c (load_infrun_state): Delete step_sp.
3985 * infrun.c (context_switch): Ditto.
3986 * inferior.h (step_sp): Ditto.
3987 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
3988 * gdbthread.h (struct thread_info, save_infrun_state)
3989 (restore_infrun_state): Ditto.
3990
3991 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
3992
3993 * MAINTAINERS (write after approval): Add myself.
3994
3995 2004-05-12 Andrew Cagney <cagney@redhat.com>
3996
3997 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
3998 eliminate reference to step_sp.
3999 (struct execution_control_state, init_execution_control_state)
4000 (handle_inferior_event, keep_going): Delete update_step_sp and
4001 step_sp.
4002 * infcmd.c (step_sp): Note that variable is unused.
4003
4004 2004-05-11 Andrew Cagney <cagney@redhat.com>
4005
4006 * infrun.c (step_over_function): Delete function.
4007 (handle_step_into_function): Use insert_step_resume_breakpoint.
4008 (insert_step_resume_breakpoint): Fix assertion.
4009
4010 2004-05-11 Nick Roberts <nickrob@gnu.org>
4011
4012 * utils.c (defaulted_query): Just use the normal query input type
4013 when printing the annotations.
4014
4015 2004-05-11 Andrew Cagney <cagney@redhat.com>
4016
4017 * infrun.c (handle_inferior_event): Simplify code handling
4018 step-into or return-from a signal trampoline.
4019
4020 2004-05-11 Andrew Cagney <cagney@redhat.com>
4021
4022 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4023 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4024
4025 2004-05-10 Jim Blandy <jimb@redhat.com>
4026
4027 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4028 with a call to internal_error.
4029
4030 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4031 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4032 processor variant lacks those registers.
4033 (ppc_floating_point_unit_p): Change description to make it clear
4034 that this returns info about the ISA, not the ABI.
4035 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4036 return true or false by checking tdep->ppc_fp0_regnum and
4037 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4038 arch/mach switching done in rs6000_gdbarch_init; it's better to
4039 keep that logic there, and just check the results here.
4040 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4041 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4042 floating-point registers.
4043 (ppc_supply_fpregset, ppc_collect_fpregset)
4044 (rs6000_push_dummy_call, rs6000_extract_return_value)
4045 (rs6000_store_return_value): Assert that we have floating-point
4046 registers.
4047 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4048 (rs6000_frame_cache): Don't note the locations at which
4049 floating-point registers were saved if we have no fprs.
4050 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4051 registers.
4052 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4053 (store_regs_user_thread, store_regs_kernel_thread): Only call
4054 supply_fprs / fill_fprs if we actually have floating-point
4055 registers.
4056 (special_register_p): Check ppc_fpscr_regnum before matching
4057 against it.
4058 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4059 supply / collect fpscr if we don't have it.
4060 * ppc-bdm.c: #include "gdb_assert.h".
4061 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4062 have floating-point registers, since I can't test this code on
4063 FP-free systems to adapt it.
4064 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4065 fpscr and floating point register numbers if they don't exist.
4066 (fetch_register): Assert that we have floating-point registers
4067 before we reach the code that handles them.
4068 (store_register): Same. And use tdep instead of calling
4069 gdbarch_tdep again.
4070 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4071 don't have them.
4072 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4073 fprs and fpscr if we don't have them.
4074 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4075 don't have them.
4076 * ppcnbsd-nat.c: #include "gdb_assert.h".
4077 (getfpregs_supplies): Assert that we have floating-point registers.
4078 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4079 * ppcobsd-tdep.c: #include "gdb_assert.h".
4080 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4081 have floating-point registers.
4082 * rs6000-nat.c (regmap): Don't match against the fpscr and
4083 floating point register numbers if they don't exist.
4084 (fetch_inferior_registers, store_inferior_registers,
4085 fetch_core_registers): Only fetch / store / supply the
4086 floating-point registers and the fpscr if we have them.
4087 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4088 (ppcobsd-tdep.o): Update dependencies.
4089
4090 2004-05-10 Andrew Cagney <cagney@redhat.com>
4091
4092 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4093 (context_switch): Do not switch through_sigtramp_breakpoint.
4094 * gdbthread.h (save_infrun_state, load_infrun_state)
4095 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4096 and structure member.
4097 * thread.c (load_infrun_state, save_infrun_state): Update.
4098
4099 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4100
4101 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4102
4103 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4104
4105 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4106 throughout.
4107 * aclocal.m4: Regenerate.
4108
4109 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4110
4111 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4112
4113 2004-05-10 Andrew Cagney <cagney@redhat.com>
4114
4115 * infrun.c (check_sigtramp2): Delete function.
4116 (handle_inferior_event): When single stepping, and taking a
4117 signal, set a breakpoint at the signal return address. Delete
4118 redundant calls to check_sigtramp2.
4119 (insert_step_resume_breakpoint): New function.
4120 (through_sigtramp_breakpoint, handle_inferior_event)
4121 (follow_exec, wait_for_inferior, fetch_inferior_event)
4122 (currently_stepping, keep_going): Delete most uses of
4123 through_sigtramp_breakpoint, not that it should be deleted.
4124 (delete_breakpoint_current_contents): Delete function.
4125
4126 2004-05-10 Randolph Chung <tausq@debian.org>
4127
4128 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4129 target.
4130 * config/pa/tm-linux.h: New file.
4131
4132 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4133
4134 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4135 of prefixes. Don't print the prefix twice in the CLI.
4136
4137 2004-05-10 Jim Blandy <jimb@redhat.com>
4138
4139 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4140 collect all the gprs.
4141
4142 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4143 loop collecting gprs.
4144
4145 2004-05-09 Andrew Cagney <cagney@redhat.com>
4146
4147 * remote-vx.c (net_step): Delete step-range code.
4148 * remote.c (remote_resume, init_all_packet_configs)
4149 (set_remote_protocol_E_packet_cmd)
4150 (show_remote_protocol_E_packet_cmd)
4151 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4152 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4153 (show_remote_protocol_e_packet_cmd): Ditto.
4154
4155 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4156
4157 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4158
4159 * hppa-tdep.h: Update copyright year.
4160 (struct trad_frame_saved_reg): Add opaque declaration.
4161
4162 * amd64-tdep.c (amd64_return_value): Implement
4163 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4164
4165 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4166 (m68k_value_to_register): New functions.
4167 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4168 value_to_register.
4169
4170 * defs.h (enum return_value_convention): Add
4171 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4172 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4173 * infcmd.c (legacy_return_value): New function.
4174 (print_return_value): Rwerite to implement
4175 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4176 * values.c (using_struct_return): Check for inequality to
4177 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4178 RETURN_VALUE_STRUCT_CONVENTION.
4179 * i386-tdep.c (i386_return_value): Implement
4180 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4181
4182 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4183 include "symtab.h", "opcode/vax.h" and "inferior.h".
4184 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4185 to read_memory_unsigned_integer.
4186 (vax_gdbarch_init): Reorder.
4187 (_initialize_vax_tdep): Spell out prototype.
4188 * Makefile.in (vax-tdep.o): Update dependencies.
4189
4190 2004-05-08 Andrew Cagney <cagney@redhat.com>
4191
4192 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4193 * target.c (target_detach, target_disconnect): Ditto.
4194
4195 * infcall.c (call_function_by_hand): When no
4196 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4197 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4198 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4200 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4201
4202 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4203 * gdbarch.h, gdbarch.c: Re-generate.
4204 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4205 deprecated_fix_call_dummy.
4206 * v850-tdep.c (v850_gdbarch_init): Ditto.
4207 * infcall.c (call_function_by_hand): Do not call
4208 DEPRECATED_FIX_CALL_DUMMY.
4209
4210 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4211 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4212 * gdbarch.h, gdbarch.c: Re-generate.
4213 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4214 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4215 deprecated_sizeof_call_dummy_words.
4216 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4218 * v850-tdep.c (v850_gdbarch_init): Ditto.
4219 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4220 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4221 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4222 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4223 * arch-utils.h (legacy_call_dummy_words)
4224 (legacy_sizeof_call_dummy_words): Delete declarations.
4225 * arch-utils.c (legacy_call_dummy_words)
4226 (legacy_sizeof_call_dummy_words): Delete variables.
4227
4228 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4229 * gdbarch.h, gdbarch.c: Re-generate.
4230 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4231 * infcall.c (call_function_by_hand): Eliminate call to
4232 DEPRECATED_PUSH_DUMMY_FRAME.
4233 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4234 push_dummy_frame.
4235 (ns32k_push_dummy_frame): Delete function.
4236
4237 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4238 deprecated_call_dummy_breakpoint_offset or
4239 deprecated_call_dummy_start_offset.
4240 * dummy-frame.c, arm-tdep.c: Update comments.
4241 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4242 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4243 * gdbarch.h, gdbarch.c: Re-generate.
4244
4245 * infcall.c (legacy_push_dummy_code): Delete function.
4246 (push_dummy_code): Delete call.
4247
4248 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4249 * gdbarch.h, gdbarch.c: Re-generate.
4250 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4251 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4252 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4253 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4254
4255 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4256 (struct frame_info): Delete opaque declaration.
4257 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4258 * frame.c (get_frame_type): Delete call.
4259
4260 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4261 pc_in_call_dummy.
4262 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4263 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4264
4265 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4266
4267 * alphanbsd-tdep.c: Include "gdb_string.h".
4268 * armnbsd-tdep.c: Update copyright year.
4269 Include "gdb_string.h".
4270 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4271 dependencies.
4272
4273 * delta68-nat.c: Remove file.
4274 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4275 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4276 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4277 (delta68-nat.o): Remove dependency.
4278
4279 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4280 function.
4281 (m68k_gdbarch_init): Don't set
4282 deprecated_frameless_function_invocation.
4283
4284 2004-05-07 Randolph Chung <tausq@debian.org>
4285
4286 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4287 read_memory_nobpt for code reading when doing frame unwinding.
4288 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4289
4290 2004-05-07 Randolph Chung <tausq@debian.org>
4291
4292 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4293 instead of sp, handle sigaltstack case.
4294 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4295 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4296 signal handler and not that of the caller.
4297 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4298 hppa_linux_sigtramp_find_sigcontext.
4299
4300 2004-05-07 Randolph Chung <tausq@debian.org>
4301
4302 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4303 hppa-linux-nat.c.
4304 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4305 * hppa-linux-nat.c (fetch_register, store_register): Define.
4306 (fetch_inferior_registers, store_inferior_registers): Define.
4307 (supply_gregset): Add comment and clean up some unneeded code.
4308 (fill_gregset): Add comment and fix so that it saves registers in
4309 the right place in the gregset.
4310 (fill_fpregset): Fix buffer overrun problem.
4311 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4312
4313 2004-05-07 Randolph Chung <tausq@debian.org>
4314
4315 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4316 do common handling of the pcoqt register.
4317 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4318 to use helper function.
4319 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4320 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4321 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4322 generic fallback unwinder when all else fails.
4323 (hppa_gdbarch_init): Add fallback sniffer.
4324 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4325 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4326 to use helper function.
4327
4328 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4329
4330 * config/djgpp/fnchange.lst: Add translation rules for
4331 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4332
4333 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4334
4335 * frame.c (get_prev_frame_1): Work around GCC bug.
4336 * frame.h: Add comment about GCC bug.
4337
4338 2004-05-07 Andrew Cagney <cagney@redhat.com>
4339
4340 * observer.c: Include "commands.h" and "gdbcmd.h".
4341 (observer_debug, _initialize_observer): Add the
4342 command "set/show debug observer".
4343 * observer.sh: When observer debugging, log notify calls.
4344 * Makefile.in (observer.o): Update dependencies.
4345
4346 2004-05-07 Jason Molenda (jmolenda@apple.com)
4347
4348 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4349
4350 2004-05-07 Jim Blandy <jimb@redhat.com>
4351
4352 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4353 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4354 to recognize gpr regnums, instead of assuming that
4355 tdep->ppc_fp0_regnum marks the end of the general-purpose
4356 registers.
4357
4358 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4359 the given architecture has floating-point registers.
4360
4361 2004-05-07 Andrew Cagney <cagney@redhat.com>
4362
4363 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4364 macro defined to 1.
4365 * gdbarch.h, gdbarch.c: Re-generate.
4366 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4367 deprecated_use_generic_dummy_frames.
4368
4369 2004-05-07 Brian Ford <ford@vss.fsi.com>
4370
4371 * NEWS: Mention Cygwin DWARF 2 support.
4372
4373 2004-05-07 Andrew Cagney <cagney@redhat.com>
4374
4375 * objfiles.h (struct entry_info): Delete unused fields
4376 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4377 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4378 * mipsread.c (mipscoff_symfile_read): Update.
4379 * mdebugread.c (parse_partial_symbols): Update.
4380 * dwarfread.c (read_file_scope): Update.
4381 * dwarf2read.c (read_file_scope): Update.
4382 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4383 * coffread.c (complete_symtab): Update.
4384
4385 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4386
4387 * infcall.c (_initialize_infcall): Fix typo.
4388
4389 2004-05-07 Andrew Cagney <cagney@redhat.com>
4390
4391 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4392 * command.h (add_setshow_zinteger_cmd): Declare.
4393
4394 2004-05-06 Randolph Chung <tausq@debian.org>
4395
4396 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4397 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4398 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4399 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4400 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4401 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4402 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4403 definitions ...
4404 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4405 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4406 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4407 (hppa64_hpux_frame_find_saved_regs_in_sig)
4408 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4409 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4410 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4411 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4412 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4413 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4414 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4415 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4416 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4417 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4418 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4419 (hppa32_register_type, hppa_cannot_store_register)
4420 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4421 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4422 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4423 * pa64solib.c (pa64_solib_have_load_event)
4424 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4425 (pa64_solib_unloaded_library_pathname): Likewise.
4426 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4427 (som_solib_library_pathname): Likewise.
4428
4429 2004-05-05 Jim Ingham <jingham@apple.com>
4430
4431 * breakpoint.c (create_breakpoints): Copy the ignore count and
4432 thread id over from the pended breakpoint to the actual
4433 breakpoint.
4434
4435 2004-05-05 Andrew Cagney <cagney@redhat.com>
4436
4437 * gdbarch.sh (PARM_BOUNDARY): Delete.
4438 gdbarch.h, gdbarch.c: Re-generate.
4439 * valops.c (PARM_BOUNDARY): Delete macro.
4440 (value_push): Delete PARM_BOUNDARY code.
4441 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4442
4443 2004-05-04 Jim Blandy <jimb@redhat.com>
4444
4445 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4446 Don't assume that the gprs, fprs, and UISA sprs are
4447 contiguous, start at register number zero, and end with fpscr.
4448 Instead, use the numbers from the tdep structure.
4449
4450 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4451 should no longer be used in code specific to the RS6000 and its
4452 derivatives.
4453 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4454 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4455 tdep->ppc_fp0_regnum.
4456 (ppc_supply_fpregset, ppc_collect_fpregset)
4457 (rs6000_push_dummy_call, rs6000_extract_return_value)
4458 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4459 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4460 FP0_REGNUM.
4461 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4462 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4463 Same.
4464 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4465 bdm_ppc_store_registers): Same.
4466 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4467 (store_register, fill_fpregset): Same.
4468 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4469 (ppc_linux_supply_fpregset): Same.
4470 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4471 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4472 Same.
4473 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4474 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4475 ppc64_sysv_abi_return_value): Same.
4476 * rs6000-nat.c (regmap, fetch_inferior_registers)
4477 (store_inferior_registers, fetch_core_registers): Same.
4478
4479 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4480
4481 * m68knbsd-nat.c: Remove file.
4482 * m68knbsd-tdep.c: Remove file.
4483 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4484 dependencies.
4485 * configure.host: Add m68k-*-netbsdelf*.
4486 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4487 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4488 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4489 (XM_FILE): Remove.
4490 * config/m68k/nbsdelf.mh: New file.
4491 * config/m68k/nbsd.mt: New file.
4492 * config/m68k/nbsdaout.mt: Remove file.
4493 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4494 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4495 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4496 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4497 (use_struct_convention): Remove prototype.
4498 (USE_STRUCT_CONVENTION): Remove define.
4499 * config/m68k/xm-nbsd.h: Remove file.
4500
4501 2004-05-04 Michael Snyder <msnyder@redhat.com>
4502
4503 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4504 reg_struct_return method (as gcc usually does for cross targets).
4505
4506 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4507
4508 Committed by Andrew Cagney.
4509 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4510 alignment padding when accessing ucontext struct members.
4511
4512 2004-05-04 Jim Blandy <jimb@redhat.com>
4513
4514 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4515 'ppc_gplast_regnum' member.
4516 (ppc_num_gprs): New enum constant.
4517 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4518 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4519 * rs6000-nat.c (regmap, fetch_inferior_registers,
4520 store_inferior_registers): Same.
4521 * rs6000-tdep.c (e500_pseudo_register_read)
4522 (e500_pseudo_register_write): Same.
4523 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4524
4525 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4526 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4527 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4528 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4529 FPLAST_REGNUM.
4530 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4531 Same.
4532 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4533 * rs6000-nat.c (regmap, fetch_inferior_registers)
4534 (store_inferior_registers): Same.
4535
4536 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4537 with FPLAST_REGNUM.
4538
4539 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4540
4541 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4542 failure detected by recent versions of GCC.
4543 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4544 to be consistent with the usage in dwarf2_create_include_psymtab.
4545
4546 2004-05-03 Michael Snyder <msnyder@redhat.com>
4547
4548 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4549 (heuristic_proc_start): Whitespace cleanup.
4550
4551 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4552
4553 * sun3-nat.c: Remove file.
4554 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4555 dependencies.
4556 (ALLDEPFILES): Remove sun3-nat.c.
4557 (sun3-nat.o): Remove dependencies.
4558
4559 * i386-interix-nat.c, i386-interix-tdep.c,
4560 config/i386/nm-interix.h, config/i386/interix.mh,
4561 config/i386/interix.mt: Remove files.
4562 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4563 dependencies.
4564
4565 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4566
4567 * m68k-tdep.h (struct gdbarch_tdep): Add member
4568 struct_value_regnum.
4569 (m68k_svr4_init_abi): New prototype.
4570 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4571 different calling conventions.
4572 (m68k_extract_return_value): Remove code dealing with single-field
4573 structs.
4574 (m68k_store_return_value): Remove code dealing with single-field
4575 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4576 (m68k_extract_struct_value_address): Remove function.
4577 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4578 (m68k_reg_struct_return_p, m68k_return_value)
4579 (m68k_svr4_return_value): New functions.
4580 (m68k_use_struct_convention): Remove function.
4581 (m68k_push_dummy_call): Use new struct_value_regnum member of
4582 `struct gdbarch_tdep' instead of hardcoded register number to
4583 store STRUCT_ADDR.
4584 (m68k_svr4_init_abi): New function.
4585 (m68k_gdbarch_init): Don't set extract_return_value,
4586 store_return_values, deprecated_extract_struct_value_address and
4587 use_struct_convention. Set return_value instead. Initialize new
4588 struct_value_regnum member of `struct gdbarch_tdep'.
4589 * m68klinux-tdep.c: Update copyright year.
4590 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4591 (m68k_linux_extract_struct_value_address): Remove function.
4592 (m68k_linux_init_abi): Don't set extract_return_value,
4593 store_return_values, deprecated_extract_struct_value_address and
4594 use_struct_convention. Call m68k_svr4_init_abi but override the
4595 new struct_value_regnum member of `struct gdbarch_tdep'.
4596 * Makefile.in (m68k-tdep.o): Update dependencies.
4597
4598 2004-05-03 J. Brobecker <brobecker@gnat.com>
4599
4600 * dwarf2read.c (line_header): Add new included_p field in
4601 field file_names.
4602 (partial_die_info): New field has_stmt_list. New field line_offset.
4603 (dwarf2_create_include_psymtab): New function.
4604 (dwarf2_build_include_psymtabs): New function.
4605 (add_file_name): Add forward declaration. Initialize new field.
4606 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4607 to be able to determine the list of files included by the
4608 given unit, and build their associated psymtabs.
4609 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4610 files as well.
4611 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4612 (read_file_scope): Update call to dwarf_decode_lines.
4613 (read_partial_die): Handle DW_AT_stmt_list attributes.
4614
4615 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4616
4617 Unfix PR gdb/1626.
4618 * configure.in: Revert special case for osf5.*.
4619 * configure: Regenerate.
4620
4621 2004-05-02 Jim Blandy <jimb@redhat.com>
4622
4623 Move the symbol-file-from-memory functions into their own file.
4624 * symfile-mem.c, symfile-mem.h: New files.
4625 * symfile.c (symbol_file_add_from_bfd): New function.
4626 (symbol_file_add): Call symbol_file_add_from_bfd.
4627 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4628 Moved to symfile-mem.c.
4629 (_initialize_symfile): Move definition of
4630 add-symbol-file-from-memory command to symfile-mem.c.
4631 * symfile.h (symbol_file_add_from_bfd): New declaration.
4632 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
4633 * config/powerpc/linux.mt (TDEPFILES): Same.
4634 * Makefile.in (SFILES): Add symfile-mem.c.
4635 (symfile_mem_h): New variable.
4636 (HFILES_NO_SRCDIR): Add symfile-mem.h.
4637 (symfile-mem.o): New rule.
4638
4639 2004-05-01 Andrew Cagney <cagney@redhat.com>
4640
4641 * breakpoint.c (insert_bp_location): Use get_frame_id, and
4642 frame_find_by_id instead of frame_relative_level.
4643 (do_enable_breakpoint): Ditto.
4644 * thread.c: Update copyright.
4645 (info_threads_command): Ditto, simplify.
4646
4647 * frame.c (deprecated_generic_get_saved_register): Delete
4648 function, moved to "xstormy16-tdep.c".
4649 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
4650 deprecated_generic_get_saved_register from "frame.c".
4651 (xstormy16_frame_saved_register): Call
4652 xstormy16_get_saved_register.
4653 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
4654 static.
4655 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
4656 * frame.h (deprecated_generic_get_saved_register): Delete.
4657
4658 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
4659
4660 * dwarfread.c: Update documentation on the state of dwarf-1.
4661
4662 2004-05-01 Andrew Cagney <cagney@redhat.com>
4663
4664 * stack.c (select_frame_command): Delete call to
4665 frame_relative_level.
4666 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
4667 Delete #if0 code.
4668 (frame_info): Do not print FRAMELESS.
4669 (print_block_frame_labels): Replace DEPRECATED_STREQ.
4670 (catch_info): Delete #if0 code.
4671
4672 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
4673 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
4674 of frame_relative_level.
4675 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
4676 to SENTINEL_FRAME.
4677 * frame.h (enum frame_type): Add SENTINEL_FRAME.
4678 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
4679 frame_relative_level.
4680
4681 * frame.h (deprecated_set_frame_type): Delete declaration.
4682 * frame.c (deprecated_set_frame_type): Delete function, update
4683 comments.
4684
4685 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
4686 * gdbarch.h, gdbarch.c: Re-generate.
4687 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
4688 (shnbsd_pc_in_sigtramp): Delete.
4689 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
4690 pc_in_sigtramp.
4691 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
4692 pc_in_sigtramp.
4693 * frame.h: Update comments.
4694 * ppc-linux-tdep.c: Update comments.
4695 * breakpoint.c (bpstat_what): Update comments.
4696
4697 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
4698 m68klinux-tdep.o's dependencies, were previously added to
4699 m68klinux-nat.o.
4700
4701 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
4702 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
4703 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4704 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4705 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4706
4707 * Makefile.in (m68klinux-nat.o): Update dependencies.
4708 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4709 (m68k_linux_sigtramp_frame_cache)
4710 (m68k_linux_sigtramp_frame_this_id)
4711 (m68k_linux_sigtramp_frame_prev_register)
4712 (m68k_linux_sigtramp_frame_unwind)
4713 (m68k_linux_sigtramp_frame_sniffer)
4714 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
4715 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
4716 names, use trad-frame.h.
4717 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
4718 (struct m68k_sigtramp_info): Delete.
4719 * m68k-tdep.c (m68k_sigtramp_frame_cache)
4720 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
4721 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
4722 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
4723 "m68klinux-tdep.c".
4724
4725 * infrun.c (check_sigtramp2): Delete check for
4726 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
4727
4728 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4729
4730 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
4731
4732 2004-05-01 Andrew Cagney <cagney@redhat.com>
4733
4734 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
4735 (frv_linux_sigtramp_frame_cache)
4736 (frv_linux_sigtramp_frame_this_id)
4737 (frv_linux_sigtramp_frame_prev_register)
4738 (frv_linux_sigtramp_frame_unwind)
4739 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
4740 include "linux" in function and variable names, directly call
4741 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
4742 the latest trad-frame code.
4743 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
4744 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
4745 * Makefile.in (frv-linux-tdep.o): Update dependencies.
4746 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
4747 * frv-tdep.c (frv_sigtramp_frame_cache)
4748 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4749 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
4750 frv-linux-tdep.c.
4751 (frv_gdbarch_init): Do not append a sigtramp sniffer.
4752 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
4753 (frv_set_sigcontext_reg_addr): Delete function.
4754
4755 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
4756 (DEPRECATED_SIGTRAMP_END): Delete.
4757 * gdbarch.h, gdbarch.c: Re-generate.
4758 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
4759 * config/vax/tm-vaxbsd.h: Update copyright.
4760 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4761 (DEPRECATED_IN_SIGTRAMP): Define.
4762 * config/m68k/tm-nbsd.h: Update copyright.
4763 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
4764 (DEPRECATED_IN_SIGTRAMP): Define.
4765
4766 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4767
4768 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
4769 encondings. Fixes PR gdb/1628.
4770
4771 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
4772 DW_CFA_restore state without a matching DW_CFA_remember_state
4773 instead of aborting. Fixes PR backtrace/1589.
4774
4775 2004-04-30 Joel Brobecker <brobecker@gnat.com>
4776
4777 * MAINTAINERS: Add self as AIX maintainer.
4778 Update my e-mail address in write-after-approval section.
4779
4780 2004-04-30 Andrew Cagney <cagney@redhat.com>
4781
4782 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
4783 (legacy_get_prev_frame): Ditto.
4784
4785 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
4786 (mips_gdbarch_init): Do not set pc_in_sigtramp.
4787 * mipsread.c (sigtramp_address): Delete extern variable.
4788 (mipscoff_new_init): Delete reference.
4789 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
4790 (fixup_sigtramp): Delete function.
4791 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
4792 (fixup_sigtramp): Delete declarations.
4793
4794 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
4795 deprecated_pc_in_sigtramp.
4796 (ppcnbsd_pc_in_sigtramp): Delete function.
4797
4798 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4799
4800 * config/m68k/nm-nbsd.h: Tweak comments.
4801 * config/m68k/nm-nbsdaout.h: Likewise.
4802
4803 2004-04-30 Andrew Cagney <cagney@redhat.com>
4804
4805 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
4806 legacy_pc_in_sigtramp.
4807 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
4808
4809 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4810
4811 Add OpenBSD/m68k support.
4812 * NEWS (New native configurations): Mention OpenBSD/m68k.
4813 * m68kbsd-tdep.c: New file.
4814 * m68kbsd-nat.c: New file.
4815 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
4816 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
4817 * configure.host: Add m68k-*-openbsd.
4818 * configure.tgt: Add m68k-*-openbsd.
4819 * config/m68k/tm-obsd.h: New file.
4820 * config/m68k/obsd.mt: New file.
4821 * config/m68k/obsd.mh: New file.
4822 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
4823 m68kbsd-tdep.c.
4824
4825 2004-04-30 Andrew Cagney <cagney@redhat.com>
4826
4827 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
4828 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
4829
4830 2004-04-30 Mark Kettenis <kettenis@gnu.org>
4831
4832 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
4833 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
4834
4835 2004-04-30 Brian Ford <ford@vss.fsi.com>
4836
4837 Revert 2004-04-16 change.
4838 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
4839 (i386_coff_init_abi): Remove.
4840 * i386-tdep.h (i386_coff_init_abi): Remove.
4841 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
4842
4843 2004-04-30 Andrew Cagney <cagney@redhat.com>
4844
4845 * blockframe.c (find_pc_partial_function): Delete use of
4846 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
4847 DEPRECATED_SIGTRAMP_END.
4848
4849 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
4850 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
4851 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
4852 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
4853 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
4854
4855 * defs.h (deprecated_inside_entry_file): Delete declaration.
4856 * blockframe.c (deprecated_inside_entry_file): Delete function.
4857 (legacy_frame_chain_valid): Delete call.
4858 * sh64-tdep.c (sh64_frame_chain): Delete call.
4859 * objfiles.h: Update comments.
4860 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
4861 call.
4862 * frame.c (get_prev_frame): Delete call, update comments.
4863
4864 2004-04-30 Brian Ford <ford@vss.fsi.com>
4865
4866 * MAINTAINERS (Write After Approval): Add myself.
4867
4868 2004-04-30 Andrew Cagney <cagney@redhat.com>
4869
4870 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
4871 * gdbarch.h, gdbarch.c: Re-generate.
4872 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
4873 code.
4874
4875 2004-04-30 Andrew Cagney <cagney@redhat.com>
4876
4877 * gdb-events.sh (selected_thread_changed)
4878 (selected_frame_level_changed, target_changed): Delete.
4879 * gdb-events.h, gdb-events.c: Re-generate.
4880 * valops.c (value_assign): Update.
4881 * stack.c (select_frame_command, up_silently_base)
4882 (down_silently_base): Update.
4883
4884 2004-04-29 Andrew Cagney <cagney@redhat.com>
4885
4886 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
4887 registers correctly.
4888 (print_gp_register_row, mips32_heuristic_proc_desc)
4889 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
4890 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
4891 references to mips_isa_regsize.
4892
4893 2004-04-29 Andrew Cagney <cagney@redhat.com>
4894
4895 * mips-tdep.c (struct gdbarch_tdep): Delete
4896 mips_fp_register_double.
4897 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
4898 mips_abi_regsize.
4899 (mips_gdbarch_init): Do not set mips_fp_register_double.
4900 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
4901
4902 2004-04-29 Joel Brobecker <brobecker@gnat.com>
4903
4904 Committed by Andrew Cagney.
4905 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
4906 function calls.
4907
4908 2004-04-29 Andrew Cagney <cagney@redhat.com>
4909
4910 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
4911 gdbarch, use mips_abi, update callers.
4912 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
4913 mips_abi_regsize, update callers.
4914 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
4915 mips_default_abi_regsize.
4916 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
4917 mips_default_abi_regsize.
4918
4919 2004-04-29 Andrew Cagney <cagney@redhat.com>
4920
4921 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
4922 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
4923 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
4924 mips_default_abi_regsize.
4925 (mips_isa_regsize): Rename mips_regisze.
4926 * mipsnbsd-tdep.c: Update.
4927 * mips-linux-tdep.c: Update.
4928 * irix5-nat.c: Update.
4929 * mips-tdep.h (mips_isa_regsize): Update.
4930
4931 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
4932 Delete all disabled code.
4933 * gdb-events.h, gdb-events.c: Re-generate.
4934
4935 2004-04-19 Jerome Guitton <guitton@gnat.com>
4936 Mark Kettenis <kettenis@gnu.org>
4937
4938 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
4939 the function begins with a branch instruction.
4940
4941 2004-04-29 Mark Kettenis <kettenis@gnu.org>
4942
4943 * i386-tdep.c: Fix spelling mistakes.
4944
4945 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4946 Andrew Cagney <cagney@redhat.com>
4947
4948 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
4949 <sys/proc.h>.
4950 * acconfig.h: Provide default _KMEMUSER value.
4951 * config.in, configure: Re-generate.
4952 * NEWS: Mention fix.
4953
4954 2004-04-24 Randolph Chung <tausq@debian.org>
4955
4956 * configure.host (hppa*-*-linux*): New target.
4957 * configure.tgt (hppa*-*-linux*): Likewise.
4958 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
4959 gdbarch_init_osabi() call earlier so that osabi-specific frame
4960 unwinders can be registered first.
4961 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
4962 hppa-linux-nat.c.
4963 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
4964 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
4965 * config/pa/linux.mh: New file.
4966 * config/pa/linux.mt: New file.
4967 * config/pa/nm-linux.h: New file.
4968 * config/pa/xm-linux.h: New file.
4969 * hppa-linux-nat.c: New file.
4970 * hppa-linux-tdep.c: New file.
4971
4972 2004-04-28 Randolph Chung <tausq@debian.org>
4973
4974 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
4975 return values.
4976 (hppa32_push_dummy_call): Fix small struct and floating point argument
4977 passing, and make sure the stack frame is properly aligned.
4978
4979 2004-04-28 Andrew Cagney <cagney@redhat.com>
4980
4981 * stack.c (print_stack_frame): Fix description.
4982
4983 * NEWS: Mention gdb/gdbserver/configure execute permission
4984 changed. PR server/519.
4985
4986 2004-04-28 Andrew Cagney <cagney@redhat.com>
4987
4988 * stack.c (print_stack_frame_stub): Delete declaration.
4989 (struct print_stack_frame_args, print_stack_frame)
4990 (print_frame_info, print_frame): Replace "source" with print what.
4991 Replace "print" with "print_level". Replace "args" with
4992 "print_args".
4993 * frame.h (show_and_print_stack_frame, print_stack_frame)
4994 (print_frame_info): Update declarations.
4995 * stack.c (select_and_print_frame, frame_command)
4996 (current_frame_command, up_command, down_command): Update calls -
4997 use get_selected_frame, pass "enum print_what" for source, do not
4998 call frame_relative_level.
4999 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5000 * remote-rdp.c (remote_rdp_open): Ditto.
5001 * remote-mips.c (common_open): Ditto.
5002 * remote-e7000.c (e7000_start_remote): Ditto.
5003 * ocd.c (ocd_start_remote): Ditto.
5004 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5005 * infrun.c (normal_stop): Ditto.
5006 * inflow.c (kill_command): Ditto.
5007 * infcmd.c (finish_command): Ditto.
5008 * corelow.c (core_open): Ditto.
5009 * tracepoint.c (finish_tfind_command): Ditto.
5010 * thread.c (info_threads_command, info_threads_command)
5011 (restore_current_thread, do_captured_thread_select): Ditto.
5012 * ada-tasks.c (task_command): Ditto.
5013
5014 2004-04-26 Orjan Friberg <orjanf@axis.com>
5015
5016 * frame.c: Include "observer.h".
5017 (frame_observer_target_changed): New function.
5018 (_initialize_frame): Attach target_changed observer.
5019 * regcache.c: Include "observer.h".
5020 (regcache_observer_target_changed): New function.
5021 (_initialize_regcache): Attach target_changed observer.
5022 * valops.c: Include "observer.h".
5023 (value_assign): Notify target_changed event when modifying register.
5024 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5025
5026 2004-04-26 Orjan Friberg <orjanf@axis.com>
5027
5028 From Paul Koning <pkoning@equallogic.com>:
5029 * breakpoint.c (free_valchain): New function.
5030 (insert_bp_location, delete_breakpoint): Use free_valchain.
5031 (remove_breakpoint): Do not remove the valchain.
5032 (bpstat_stop_status): If not stopped by watchpoint, skip
5033 watchpoints when generating stop status list.
5034 * infrun.c (handle_inferior_event): Make
5035 stepped_after_stopped_by_watchpoint a global variable.
5036 * remote.c (remote_stopped_data_address): Return watch data
5037 address rather than zero if stepped_after_stopped_by_watchpoint is
5038 set.
5039
5040 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5041
5042 Fix PR gdb/1626.
5043 * configure.in: Check for curses after termcap.
5044 On osf5.*, do not check for ncurses.
5045 * configure: Regenerate.
5046
5047 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5048
5049 * ppcobsd-nat.c: Include "ppc-tdep.h".
5050 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5051
5052 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5053 Fixes PR tdep/1623 and PR tdep/1624.
5054
5055 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5056
5057 * xmodem.h, xmodem.c: Remove files.
5058 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5059
5060 2004-04-23 Randolph Chung <tausq@debian.org>
5061
5062 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5063 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5064 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5065 for handling stackless frames.
5066 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5067
5068 2004-04-23 Randolph Chung <tausq@debian.org>
5069
5070 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5071 starts at a pc before the frame is created.
5072
5073 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5074
5075 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5076
5077 2004-04-23 Jerome Guitton <guitton@gnat.com>
5078
5079 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5080 use convert_typed_floating to get the appropriate format.
5081
5082 2004-04-22 Randolph Chung <tausq@debian.org>
5083
5084 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5085 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5086 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5087 (hppa_sign_extend): Add prototype.
5088 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5089 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5090 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5091 hppa targets will also use these functions.
5092 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5093 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5094 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5095 (hppa_gdbarch_init): Remove gdbarch setting of
5096 skip_trampoline_code, in_solib_call_trampoline and
5097 in_solib_return_trampoline.
5098 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5099 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5100 hppa_in_solib_call_trampoline.
5101 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5102 Moved from hppa-tdep.c.
5103 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5104 in_solib_call_trampoline and in_solib_return_trampoline.
5105
5106 2004-04-22 Randolph Chung <tausq@debian.org>
5107
5108 * hppa-tdep.c (hppa_debug): New variable.
5109 (find_unwind_entry, hppa_frame_cache): Add debug output.
5110 (_initialize_hppa_tdep): Add command to set debug flag.
5111
5112 2004-04-22 Andrew Cagney <cagney@redhat.com>
5113
5114 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5115 "trad-frame.h".
5116 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5117 signal trampoline unwinder.
5118 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5119
5120 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5121
5122 Add OpenBSD/powerpc support.
5123 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5124 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5125 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5126 (ppc_collect_fpregset): New prototypes.
5127 * ppcobsd-nat.c: New file.
5128 * ppcobsd-tdep.c: New file.
5129 * ppcobsd-tdep.h: New file.
5130 * rs6000-tdep.c: Include "regset.h".
5131 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5132 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5133 New functions.
5134 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5135 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5136 (rs6000-tdep.o): Update dependencies.
5137 * configure.host: Add powerpc-*-openbsd.
5138 * configure.tgt: Add powerpc-*-openbsd.
5139 * config/powerpc/obsd.mh: New file.
5140 * config/powerpc/nm-obsd.h: New file.
5141 * config/powerpc/obsd.mt: New file.
5142
5143 2004-04-22 Andrew Cagney <cagney@redhat.com>
5144
5145 * frame.h (show_frame_info): Delete declaration.
5146
5147 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5148 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5149 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5150 * frv-tdep.c (frv_frame_this_id): Ditto.
5151 * avr-tdep.c (avr_frame_this_id): Ditto.
5152
5153 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5154
5155 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5156
5157 2004-04-22 Jim Blandy <jimb@redhat.com>
5158
5159 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5160 register number zero.
5161
5162 2004-04-21 Michael Snyder <msnyder@redhat.com>
5163
5164 * mips-tdep.c (heuristic_proc_start):
5165 Warning() already prefixes "Warning: ".
5166
5167 2004-04-21 Andrew Cagney <cagney@redhat.com>
5168
5169 * annotate.h (deprecated_annotate_starting_hook)
5170 (deprecated_annotate_stopped_hook)
5171 (deprecated_annotate_exited_hook)
5172 (deprecated_annotate_signal_hook)
5173 (deprecated_annotate_signalled_hook): Deprecate.
5174 * tracepoint.h (deprecated_create_tracepoint_hook)
5175 (deprecated_delete_tracepoint_hook)
5176 (deprecated_modify_tracepoint_hook)
5177 (deprecated_trace_find_hook)
5178 (deprecated_trace_start_stop_hook): Deprecate.
5179 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5180 * remote.h (deprecated_target_resume_hook)
5181 (deprecated_target_wait_loop_hook): Deprecate.
5182 * gdbcore.h (deprecated_exec_file_display_hook)
5183 (deprecated_file_changed_hook): Deprecate.
5184 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5185 * defs.h (deprecated_modify_breakpoint_hook)
5186 (deprecated_command_loop_hook, deprecated_show_load_progress)
5187 (deprecated_print_frame_info_listing_hook)
5188 (deprecated_query_hook, deprecated_warning_hook)
5189 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5190 (deprecated_delete_breakpoint_hook)
5191 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5192 (deprecated_readline_begin_hook, deprecated_readline_hook)
5193 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5194 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5195 (deprecated_context_hook, deprecated_target_wait_hook)
5196 (deprecated_attach_hook, deprecated_detach_hook)
5197 (deprecated_call_command_hook, deprecated_set_hook)
5198 (deprecated_error_hook, deprecated_error_begin_hook)
5199 (deprecated_ui_load_progress_hook): Deprecate.
5200 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5201 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5202 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5203 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5204 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5205 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5206 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5207 * annotate.c, aix-thread.c: Update.
5208
5209 2004-04-21 Andrew Cagney <cagney@redhat.com>
5210
5211 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5212 * vaxnbsd-tdep.c: Include "gdb_string.h".
5213
5214 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5215 (add_symbol_file_from_memory_command): #if 0 function body, call
5216 error instead.
5217
5218 2004-04-21 Andrew Cagney <cagney@redhat.com>
5219
5220 * gdbcore.h: Update copyright.
5221 (deprecated_add_core_fns): Rename add_core_fns.
5222 * win32-nat.c (_initialize_core_win32): Update.
5223 * sun3-nat.c (_initialize_core_sun3): Update.
5224 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5225 * rs6000-nat.c (_initialize_core_rs6000): Update.
5226 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5227 * nto-tdep.c (_initialize_nto_tdep): Update.
5228 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5229 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5230 * mips-nat.c (_initialize_core_mips): Update.
5231 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5232 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5233 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5234 * lynx-nat.c (_initialize_core_lynx): Update.
5235 * irix5-nat.c (_initialize_core_irix5): Update.
5236 * i386-interix-nat.c (_initialize_core_interix): Update.
5237 * cris-tdep.c (_initialize_cris_tdep): Update.
5238 * corelow.c (deprecated_add_core_fns): Update.
5239 * core-regset.c (_initialize_core_regset): Update.
5240 * core-aout.c (_initialize_core_aout): Update.
5241 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5242 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5243 * alpha-nat.c (_initialize_core_alpha): Update.
5244
5245 2004-04-21 Jim Blandy <jimb@redhat.com>
5246
5247 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5248
5249 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5250
5251 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5252 Delete.
5253 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5254 (read_attribute_value): Update calls to dwarf_alloc_block.
5255 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5256 dwarf2_tmp_obstack.
5257 (psymtab_to_symtab_1): Likewise. Clean up using
5258 free_stack_comp_unit.
5259 (add_to_cu_func_list): Use the comp_unit_obstack.
5260
5261 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5262
5263 * dwarf2read.c (dwarf2_flag_true_p): New function.
5264 (die_is_declaration): Use the function above. Add some comments.
5265
5266 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5267
5268 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5269 architecture when registering sparcnbsd_core_osabi_sniffer.
5270 Adjust comment.
5271
5272 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5273
5274 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5275 return value.
5276
5277 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5278 * i386-tdep.c: Correct register numbering scheme comments
5279 throughout.
5280 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5281 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5282 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5283 (i386_gdb_arch_init): Likewise.
5284
5285 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5286 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5287 ppcnbsd-tdep.o.
5288
5289 * m68k-tdep.h: Tweak comments.
5290 * m68k-tdep.c: Tweak comment.
5291
5292 2004-04-17 Randolph Chung <tausq@debian.org>
5293
5294 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5295 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5296 (hppa_hpux_som_init_abi): Set is_elf to 0.
5297 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5298 * hppa-tdep.c (low_text_segment_address): Remove global.
5299 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5300 section offset to calculate segment address.
5301 (internalize_unwinds): Define low_text_segment_address as local and
5302 pass to record_text_segment_lowaddr for ELF targets.
5303 (hppa_gdbarch_init): Zero fill tdep structure.
5304 (hppa_dump_tdep): Print tdep structure.
5305 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5306
5307 2004-04-17 Randolph Chung <tausq@debian.org>
5308
5309 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5310 (hppa_gdbarch_init): Set pseudo_register_read.
5311 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5312 * regcache.c (supply_register): Remove check for
5313 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5314
5315 2004-04-17 Randolph Chung <tausq@debian.org>
5316
5317 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5318 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5319 (hpread_adjust_stack_address): Move to hpread.c.
5320 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5321 obj_private_struct): Move from tm-hppa.h.
5322 * hpread.c (hppa-tdep.h): Include.
5323 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5324 (hpread_read_function_type, hpread_read_doc_function_type)
5325 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5326 directly.
5327 * pa64solib.c (hppa-tdep.h): Include.
5328 * somsolib.c (hppa-tdep.h): Include.
5329 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5330 inferior_status): Remove unused forward declarations.
5331 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5332 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5333 obj_private_struct): Move to hppa-tdep.h.
5334 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5335
5336 2004-04-17 Randolph Chung <tausq@debian.org>
5337
5338 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5339 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5340 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5341 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5342 Remove forward declaration and make static.
5343 (hppa_reg_struct_has_addr): Remove.
5344
5345 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5346
5347 * observer.sh: Move comments in sed command to first column.
5348
5349 2004-04-16 Jason Molenda (jmolenda@apple.com)
5350
5351 * frame.c: Minor typeo corrections in comments.
5352
5353 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5354
5355 * observer.c (observer_test_first_notification_function): Update
5356 function profile.
5357 (observer_test_second_notification_function): Likewise.
5358 (observer_test_third_notification_function): Likewise.
5359
5360 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5361
5362 From Brian Ford <ford@vss.fsi.com>:
5363 * i386-tdep.c (i386_coff_init_abi): New function.
5364 * i386-tdep.h (i386_coff_init_abi): New prototype.
5365 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5366 register number translation functions for DWARF and DWARF 2.
5367
5368 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5369
5370 * dwarf2read.c: Back out my previous change, it was incorrect.
5371
5372 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5373
5374 * dwarf2read.c: Include "hashtab.h".
5375 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5376 has_namespace_info.
5377 (struct partial_die_info): Add comments. Use bitfields to reduce
5378 memory footprint. Add scope, scope_set, has_specification,
5379 spec_offset, die_parent, die_child, and die_sibling.
5380 (peek_die_abbrev): Add prototype.
5381 (partial_read_comp_unit_head): New function, broken out from
5382 dwarf2_build_psymtabs_hard.
5383 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5384 Use partial_read_comp_unit_head. Initialize the CU and
5385 comp_unit_obstack. Update calls to read_partial_die and
5386 scan_partial_symbols. Use free_stack_comp_unit and
5387 load_partial_dies.
5388 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5389 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5390 Update calls to helper functions. Remove NAMESPACE argument.
5391 Update comments.
5392 (partial_die_parent_scope, partial_die_full_name): New functions.
5393 (add_partial_symbol): Remove namespace argument. Update call to
5394 pdi_needs_namespace. Use partial_die_full_name. Handle
5395 DW_TAG_namespace. Check has_namespace_info flag.
5396 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5397 tag. Handle namespaces.
5398 (add_partial_namespace, add_partial_enumeration): Simplify.
5399 (guess_structure_name): New function, derived from
5400 add_partial_structure.
5401 (add_partial_structure): Remove.
5402 (determine_class_name): Update comment.
5403 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5404 (is_type_tag_for_partial, load_partial_dies): New functions.
5405 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5406 Record specifications instead of following them immediately.
5407 (find_partial_die_in_comp_unit, find_partial_die)
5408 (fixup_partial_die, free_stack_comp_unit)
5409 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5410 (partial_die_hash, partial_die_eq): New functions.
5411 * Makefile.in (hashtab_h): Define.
5412 (dwarf2read.o): Update dependencies.
5413 (observer_inc, observer_h): Move to the correct section.
5414
5415 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5416
5417 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5418 (die_is_declaration): Use the function above. Add comment.
5419
5420 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5421
5422 * dwarf2read.c (read_structure_scope): Identify stub types
5423 using die_is_declaration() only.
5424
5425 2004-04-15 Roland McGrath <roland@redhat.com>
5426
5427 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5428 argument instead of NAME.
5429 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5430 in call to symbol_file_add_with_addrs_or_offsets.
5431 (build_addr_info): New function, helper for ...
5432 (symbol_file_add_from_memory): New function.
5433 (add_symbol_file_from_memory_command): New function using that.
5434 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5435 (pre_add_symbol_hook): Add const to argument type.
5436 * symfile.h (symbol_file_add_from_memory): Declare it.
5437
5438 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5439
5440 * NEWS (New native configurations): Mention OpenBSD/vax.
5441 * configure.host: Add vax-*-openbsd*.
5442 * config/vax/obsd.mh: New file.
5443 * config/vax/nm-obsd.h: New file.
5444
5445 * vax-tdep.c: Include "regset.h".
5446 (vax_supply_gregset): New function.
5447 (vax_gregset): New variable.
5448 (vax_regset_from_core_section): New function.
5449 (vax_gdbarch_init): Set regset_from_core_section.
5450 * Makefile.in (vax-tdep.o): Update dependencies.
5451
5452 2004-04-15 Andrew Cagney <cagney@redhat.com>
5453
5454 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5455 (observer_normal_stop_notification_stub)
5456 (observer_attach_normal_stop, observer_detach_normal_stop):
5457 Delete, replaced by #include "observer.inc".
5458 * infrun.c (normal_stop): Pass "stop_bpstat" to
5459 observer_notify_normal_stop.
5460 * Makefile.in (observer_inc): Define.
5461 (observer.o): Update dependencies.
5462 (observer.h, observer.inc): New rules.
5463 * observer.h: Delete file.
5464 * observer.sh: New file.
5465
5466 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5467
5468 * vax-tdep.c (vax_frame_cache): Fix typo.
5469
5470 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5471
5472 * NEWS (New native configurations): Mention NetBSD/vax.
5473 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5474 * config/vax/nbsdelf.mh: New file.
5475 * config/vax/nbsdaout.mh: New file.
5476 * config/vax/nm-nbsd.h: New file.
5477 * config/vax/nm-nbsdaout.h: New file.
5478
5479 * vaxnbsd-tdep.c: New file.
5480 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5481 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5482 * config/vax/nbsd.mt: New file.
5483 * config/vax/tm-nbsd.h: New file.
5484
5485 * Makefile.in (vaxbsd-nat.o): New dependency.
5486
5487 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5488 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5489 struct_addr arguments. Don't push return value address.
5490 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5491 arguments to vax_store_arguments. Store return value address in
5492 R1.
5493 (vax_store_struct_return, vax_extract_return_value)
5494 (vax_store_return_value): Remove functions.
5495 (vax_return_value): New function.
5496 (vax_gdbarch_init): Set return value. Don't set
5497 deprecated_store_struct_return, deprecated_extract_struct_return
5498 and deprecated_store_return_value.
5499
5500 2004-04-14 Andreas Schwab <schwab@suse.de>
5501
5502 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5503 value buffer.
5504 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5505
5506 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5507
5508 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5509 (vax_unwind_dummy_id): New functions.
5510 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5511 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5512 variables.
5513 (vax_fix_call_dummy): Remove function.
5514 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5515 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5516 call_dummy_location, deprecated_call_dummy_words,
5517 deprecated_sizeof_call_dummy_words,
5518 deprecated_call_dummy_breakpoint_offset,
5519 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5520 and deprecated_dummy_write_sp.
5521
5522 2004-04-13 David Carlton <carlton@kealia.com>
5523
5524 * MAINTAINERS: Move myself to "paper trail" section.
5525
5526 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5527
5528 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5529 "trad-frame.h".
5530 (vax_frame_init_saved_regs): Remove function.
5531 (vax_sigtramp_saved_pc): Remove function.
5532 (vax_frame_saved_pc): Remove function.
5533 (vax_frame_args_address): Remove function.
5534 (vax_frame_num_args): Rewrite.
5535 (vax_frame_chain): Remove function.
5536 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5537 VAX_FP_REGNUM.
5538 (vax_pop_frame): Likewise.
5539 (vax_saved_pc_after_call): Remove function.
5540 (struct vax_frame_cache): New structure.
5541 (vax_frame_cache): New function.
5542 (vax_frame_this_id): New function.
5543 (vax_frame_prev_register): New function.
5544 (vax_frame_unwind): New variable.
5545 (vax_frame_sniffer): New function.
5546 (vax_frame_base_address): New function.
5547 (vax_frame_args_address): New function.
5548 (vax_frame_base): New variable.
5549 (vax_unwind_pc): New function.
5550 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5551 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5552 deprecated_frame_chain, deprecated_frame_saved_pc,
5553 deprecated_frame_args_address and
5554 deprecated_frame_init_saved_regs.
5555 * Makefile.in (vax-tdep.o): Update dependencies.
5556
5557 * vaxbsd-nat.c: New file.
5558
5559 * vax-tdep.h: Update copyright year. Adjust comments.
5560 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5561 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5562 (vax_regnum): New enum. Replacing...
5563 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5564 (VAX_PS_REGNUM): ... these removed macros.
5565 * vax-tdep.c (vax_register_name): Remove prototype.
5566 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5567 (vax_register_byte, vax_register_raw_size,
5568 vax_register_virtual_size, vax_register_virtual_type): Remove
5569 functions.
5570 (vax_register_type): New function.
5571 (vax_breakpoint_from_pc): Reorganize.
5572 (vax_gdbarch_init): Set register_type. Don't set
5573 deprecated_register_size, deprecated_register_bytes,
5574 deprecated_register_byte, deprecated_register_raw_size,
5575 deprecated_max_register_raw_size,
5576 deprecated_register_virtual_size,
5577 deprecated_max_register_virtual_size and
5578 deprecated_register_virtual_type. Add comment on stack direction.
5579
5580 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5581
5582 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5583 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5584 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5585
5586 2004-04-10 Randolph Chung <tausq@debian.org>
5587
5588 * MAINTAINERS (write after approval): Add myself.
5589
5590 2004-04-07 Randolph Chung <tausq@debian.org>
5591
5592 * hppa-tdep.c (hppa_inner_than): Remove.
5593 (is_pa_2): Remove unused static variable.
5594 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5595
5596 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5597
5598 * language.h (language_defn): Add new la_post_parser field.
5599 * parser-defs.h (null_post_parser): New declaration (default for
5600 la_post_parser).
5601
5602 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5603 insert call to that function.
5604 (parse_exp_in_context): New function, including code formerly in
5605 parse_exp_1. Calls language-dependent post-parser after
5606 prefixification.
5607 (parse_expression_in_context): New exported function.
5608 (null_post_parser): New definition.
5609 * expression.h (parse_expression_in_context): Add declaration.
5610
5611 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5612 * c-lang.c (c_language_defn): Ditto.
5613 (cplus_language_defn): Ditto.
5614 (asm_language_defn): Ditto.
5615 (minimal_language_defn): Ditto.
5616 * f-lang.c (f_language_defn): Ditto.
5617 * jv-lang.c (java_language_defn): Ditto.
5618 * language.c (unknown_language_defn): Ditto.
5619 (auto_language_defn): Ditto.
5620 (local_language_defn): Ditto.
5621 * m2-lang.c (m2_language_defn): Ditto.
5622 * scm-lang.c (scm_language_defn): Ditto.
5623 * obj-lang.c (objc_language_defn): Ditto.
5624
5625 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5626
5627 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5628 (amd64nbsd_mcontext_addr): New function.
5629 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5630 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
5631 with amd64nbsd_r_reg_offset, instead of building it on the fly.
5632
5633 * corelow.c (core_xfer_partial): Fix coding standards violation.
5634 Add support for TARGET_OBJECT_WCOOKIE.
5635
5636 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
5637 deprecated_pc_in_sigtramp.
5638 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
5639 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
5640 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
5641 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5642 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
5643 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5644 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5645
5646 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
5647 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
5648 Fix typo.
5649
5650 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
5651 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
5652 (amd64_collect_fxsave): Likewise.
5653
5654 * i386-sol2-tdep.c: Include "gdb_string.h".
5655 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
5656 name.
5657 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5658
5659 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5660
5661 * i386-sol2-tdep.c: Include "solib-svr4.h".
5662 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5663 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
5664 * config/i386/tm-i386sol2.h: Include :solib.h".
5665 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
5666 solib-svr4.o and solib-legacy.o.
5667 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
5668 solib-svr4.o.
5669
5670 2004-04-09 Mark Kettenis <kettenis@gnu.org>
5671
5672 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
5673 whether a register is supplied by PTRACE_GETFPREGS.
5674 (store_inferior_registers): Likewise.
5675 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
5676 whether a register is supplied by PT_GETFPREGS.
5677 (store_inferior_registers): Likewise.
5678
5679 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
5680 * config/i386/linux64.mt (TDEPFILES): Likewise.
5681
5682 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
5683
5684 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
5685 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5686 the program counter is in the range specified by `struct
5687 gdbarch_tdep'.
5688 * amd64-linux-tdep.c: Include "symtab.h".
5689 (amd64_linux_pc_in_sigtramp): Remove function.
5690 (amd64_linux_sigtramp_p): New function.
5691 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5692 deprecated_pc_in_sigtramp.
5693 * amd64nbsd-tdep.c: Include "symtab.h".
5694 (amd64nbsd_sigtramp_p): New function.
5695 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5696 deprecated_pc_in_sigtramp.
5697 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
5698 few comments.
5699 (amd64obsd_pc_in_sigtramp): Remove function.
5700 (amd64obsd_sigtramp_p): New function.
5701 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
5702 deprecated_pc_in_sigtramp.
5703 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
5704 (i386bsd_pc_ins_sigtramp): Remove prototype.
5705 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
5706 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
5707 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
5708 the program counter is in the range specified by `struct
5709 gdbarch_tdep'.
5710 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
5711 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
5712 (i386_go32_pc_in_sigtramp): Remove function.
5713 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
5714 Initialize TDEP->sigtramp_p.
5715 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
5716 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
5717 deprecated_pc_in_sigtramp.
5718 * i386-linux-tdep.c: Adjust comments.
5719 (i386_linux_pc_in_sigtramp): Remove function.
5720 (i386_linux_sigtramp_p): New function.
5721 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
5722 deprecated_pc_in_sigtramp.
5723 * i386-nto-tdep.c: Update copyright year.
5724 (i386nto_pc_in_sigtramp): Remove function.
5725 (i386nto_sigtramp_p): New function.
5726 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
5727 SP_REGNUM.
5728 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
5729 deprecated_pc_in_sigtramp.
5730 * i386-sol2-tdep.c: Update copyright year.
5731 (i386_sol2_pc_in_sigtramp): Remove function.
5732 (i386_sol2_sigtramp_p): New function.
5733 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
5734 deprecated_pc_in_sigtramp.
5735 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
5736 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
5737 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5738 deprecated_sigtramp_start and deprecated_sigtramp_end.
5739 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
5740 (i386nbsd_pc_in_sigtramp): Remove function.
5741 (i386nbsd_sigtramp_p): New function.
5742 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5743 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5744 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
5745 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
5746 (i386obsd_pc_in_sigtramp): Remove function.
5747 (i386obsd_sigtramp_p): New function.
5748 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
5749 functions.
5750 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
5751 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
5752 TDEP->sigtramp_p.
5753 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
5754 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
5755 dependencies.
5756
5757 * config/i386/i386aout.mt: Remove file.
5758
5759 * configure.tgt: Remove i[34567]86-*-go32*,
5760 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
5761 and i[34567]86-*-isc*. Set gdb_target to i386 for
5762 i[34567]86-*-netware* and i[34567]86-*-*.
5763 * config/i386/i386.mt: New file.
5764 * config/i386/embed.mt: Remove file.
5765 * config/i386/go32.mt: Remove file.
5766 * config/i386/i386nw.mt: Remove file.
5767 * config/i386/i386v.mt: Remove file.
5768 * config/i386/tm-go32.h: Remove file.
5769
5770 * tui/tui-hooks.c: Include "readline/readline.h" after
5771 "gdb_curses.h" instead of before.
5772 * tui/tui-io.c: Likewise.
5773
5774 * tui/tui.c: Fix typo in comment.
5775
5776 * sparc64-tdep.c (sparc_address_from_register): Remove function.
5777
5778 2004-04-08 Andrew Cagney <cagney@redhat.com>
5779
5780 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
5781 (deprecated_exception_support_initialized): Declare.
5782 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
5783 (initialize_hp_cxx_exception_support)
5784 (child_enable_exception_callback): Update.
5785 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
5786 (deprecated_exception_support_initialized): Rename
5787 deprecated_exception_catchpoints_are_fragile and
5788 deprecated_exception_support_initialized.
5789 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
5790
5791 * symtab.c (deprecated_hp_som_som_object_present): Rename
5792 hp_som_som_object_present.
5793 * symtab.h (deprecated_hp_som_som_object_present): Declare.
5794 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
5795 Update. Delete extern declaration.
5796 * valops.c (hp_som_som_object_present): Ditto.
5797 * parse.c (deprecated_hp_som_som_object_present)
5798 (parse_nested_classes_for_hpacc): Ditto.
5799 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
5800 * hppa-hpux-tdep.c (hp_som_som_object_present)
5801 (initialize_hp_cxx_exception_support): Ditto.
5802 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
5803 * cp-valprint.c (hp_som_som_object_present)
5804 (cp_print_class_method): Ditto.
5805 * c-typeprint.c (hp_som_som_object_present):
5806 (c_type_print_base): Ditto.
5807 * c-exp.y (hp_som_som_object_present): Ditto.
5808
5809 2004-04-08 Andrew Cagney <cagney@redhat.com>
5810
5811 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
5812 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
5813 (frame_unwind_find_by_frame): Re-implement the unwind code so
5814 that it can both prepend and append sniffers. Replace
5815 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
5816 * tramp-frame.c (tramp_frame_append): Use
5817 frame_unwind_prepend_unwinder.
5818 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
5819 frame_unwind_register_unwinder.
5820 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
5821 tramp_frame_append.
5822 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
5823 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
5824 (mips_linux_init_abi): Update.
5825
5826 2004-04-08 Kevin Buettner <kevinb@redhat.com>
5827
5828 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
5829 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
5830 file support.
5831
5832 2004-04-07 Kevin Buettner <kevinb@redhat.com>
5833
5834 * ia64-tdep.c (elf.h): Don't include.
5835 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
5836
5837 2004-04-07 Jason Molenda (jmolenda@apple.com)
5838
5839 * frame.h: Typeo corrections in comments.
5840
5841 2004-04-07 Jim Blandy <jimb@redhat.com>
5842
5843 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
5844 %esp and %ebp
5845
5846 2004-04-07 Mark Kettenis <kettenis@gnu.org>
5847
5848 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
5849 * config/sparc/linux64.mt (TDEPFILES): Likewise.
5850 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5851 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
5852 and solib-legacy.o.
5853 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
5854 solib-svr4.o.
5855 * config/sparc/tm-sol2.h: Update copyright year. Include
5856 "solib.h".
5857
5858 * sparc-sol2-tdep.c: Update copyright year. Include
5859 "solib-svr4.h".
5860 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5861 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
5862 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
5863 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
5864 dependencies.
5865
5866 2004-04-06 Andrew Cagney <cagney@redhat.com>
5867
5868 * infttrace.c: Include "infttrace.h".
5869 * infttrace.h: Include "target.h".
5870 * Makefile.in (infttrace_h): Update.
5871 (infttrace.o): Update.
5872
5873 2004-04-06 Andrew Cagney <cagney@redhat.com>
5874
5875 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
5876 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
5877 move extern declarations from here ...
5878 * infttrace.h: ... to here.
5879 * Makefile.in (hppah-nat.o): Update dependencies.
5880
5881 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
5882 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
5883 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
5884 (hppa_breakpoint_from_pc): Delete.
5885
5886 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
5887
5888 2004-04-05 Andrew Cagney <cagney@redhat.com>
5889
5890 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
5891 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
5892 <sys/file.h>.
5893
5894 2004-04-06 Randolph Chung <tausq@debian.org>
5895
5896 Committed by Andrew Cagney (mechanical change).
5897 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
5898 exception_catchpoints_are_fragile, find_stub_with_shl_get,
5899 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
5900 child_enable_exception_callback, current_ex_event,
5901 null_symtab_and_line, child_get_current_exception_event,
5902 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
5903 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
5904 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
5905 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
5906 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
5907 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
5908 Move hpux-specific definitions ...
5909 * hppa-hpux-tdep.c: ... to here.
5910
5911 2004-04-05 Andrew Cagney <cagney@redhat.com>
5912
5913 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
5914 skip_prologue_using_sal.
5915
5916 2004-04-05 Andrew Cagney <cagney@redhat.com>
5917
5918 * config/i386/tm-i386.h: Delete file.
5919 * config/i386/tm-vxworks.h: Update copyright, do not include
5920 "tm-i386.h".
5921 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
5922 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
5923 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
5924 * config/i386/ncr3000.mt (TM_FILE): Delete.
5925 * config/i386/interix.mt (TM_FILE): Delete.
5926 * config/i386/i386v.mt (TM_FILE): Delete.
5927 * config/i386/i386nw.mt (TM_FILE): Delete.
5928 * config/i386/i386gnu.mt (TM_FILE): Delete.
5929 * config/i386/i386aout.mt (TM_FILE): Delete.
5930 * config/i386/embed.mt (TM_FILE): Delete.
5931
5932 2004-04-05 Kevin Buettner <kevinb@redhat.com>
5933
5934 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
5935 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
5936 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
5937 (accg7_regnum): New constants.
5938 (last_spr_regnum, last_pseudo_regnum): Update.
5939 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
5940 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
5941 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
5942 for accg registers.
5943 (frv_register_sim_regno): Update spr_map[].
5944
5945 2004-04-04 Andrew Cagney <cagney@redhat.com>
5946
5947 * config/mips/xm-riscos.h: Delete.
5948 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
5949 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
5950 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
5951 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
5952 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
5953 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
5954 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
5955 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
5956 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
5957 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
5958 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
5959 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
5960 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
5961 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
5962 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
5963 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
5964 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
5965 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
5966 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
5967 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
5968 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
5969 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
5970 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
5971 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
5972 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
5973 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
5974
5975 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
5976 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
5977 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
5978 * configure.host: Remove m680[01]0-sun-sunos3*,
5979 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
5980 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
5981 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
5982 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
5983 mips-*-riscos*.
5984 * NEWS: Mention removed systems.
5985
5986 2004-04-04 Andrew Cagney <cagney@redhat.com>
5987
5988 GDB 6.1 release created from 6.1 branch.
5989
5990 2004-04-04 Andrew Cagney <cagney@redhat.com>
5991
5992 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
5993 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
5994 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
5995
5996 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
5997 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
5998 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
5999
6000 2004-04-03 Jim Blandy <jimb@redhat.com>
6001
6002 * MAINTAINERS: Chris Faylor has changed employers; add him to
6003 "paper trail" section, and update his E-mail address.
6004
6005 2004-04-03 Andrew Cagney <cagney@redhat.com>
6006
6007 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6008 generic dummy frames.
6009 * dummy-frame.c: Update copyright.
6010 (dummy_frame_sniffer): Delete check for generic dummy frames.
6011
6012 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6013 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6014 (REG_PARM_STACK_SPACE): Delete.
6015 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6016 Inline reference to REG_PARM_STACK_SPACE.
6017
6018 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6019 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6020 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6021 (FRAME_BASE_BEFORE_SIGTRAMP)
6022 (hppa32_hpux_frame_base_before_sigtramp)
6023 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6024 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6025 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6026 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6027 (FRAME_BASE_BEFORE_SIGTRAMP)
6028 (hppa64_hpux_frame_base_before_sigtramp)
6029 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6030
6031 2004-04-03 Andrew Cagney <cagney@redhat.com>
6032
6033 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6034
6035 2004-04-02 Andrew Cagney <cagney@redhat.com>
6036
6037 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6038 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6039 * dummy-frame.h: Delete out-of-date comments.
6040 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6041 * gdbarch.h, gdbarch.c: Re-generate.
6042
6043 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6044
6045 Committed by Andrew Cagney <cagney@redhat.com>.
6046 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6047 into account an instruction saving a register if we have already
6048 seen an earlier instruction saving that same register.
6049
6050 2004-04-02 Andrew Cagney <cagney@redhat.com>
6051
6052 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6053 * gdbarch.h, gdbarch.c: Re-generate.
6054 * frame.c (legacy_get_prev_frame): Delete references to
6055 DEPRECATED_INIT_FRAME_PC_FIRST.
6056
6057 * infrun.c (pc_in_sigtramp): Delete function.
6058 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6059 get_frame_type.
6060
6061 2004-04-02 Andrew Cagney <cagney@redhat.com>
6062
6063 * infrun.c (handle_step_into_function): Delete code conditional on
6064 legacy_frame_p.
6065 (handle_inferior_event, step_over_function): Ditto.
6066
6067 2004-04-02 Andrew Cagney <cagney@redhat.com>
6068
6069 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6070 "previous frame inner to this frame" test.
6071
6072 2004-04-02 Andrew Cagney <cagney@redhat.com>
6073
6074 * frame.c (safe_frame_unwind_memory): New function.
6075 * frame.h (safe_frame_unwind_memory): Declare. Update description
6076 of /safe_/ methods.
6077 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6078 "next_frame". Use safe_frame_unwind_memory.
6079 (tramp_frame_sniffer): Update call to tramp_frame_start.
6080
6081 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6082
6083 * dwarf2read.c (dwarf2_objfile_data_key): New.
6084 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6085 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6086 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6087 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6088 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6089 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6090 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6091 Remove variables.
6092 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6093 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6094 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6095 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6096 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6097 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6098 Remove macros.
6099 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6100 data.
6101 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6102 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6103 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6104 (read_partial_die, read_full_die, read_indirect_string)
6105 (dwarf_decode_line_header, dwarf_decode_macros)
6106 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6107 Update uses of removed variables.
6108 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6109 of removed macros.
6110 (_initialize_dwarf2_read): New function.
6111 * symfile.h (dwarf2_has_info): Update prototype.
6112 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6113 * elfread.c (elf_symfile_read): Likewise.
6114
6115 2004-04-01 Jim Blandy <jimb@redhat.com>
6116
6117 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6118 function for register numbers on all the rs6000-derived targets.
6119 (rs6000_gdbarch_init): Don't register a separate
6120 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6121 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6122 variants.
6123
6124 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6125 numbering.
6126
6127 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6128
6129 * valarith.c: Update copyright notice.
6130 (value_add): Handle range types.
6131 (value_sub): Ditto.
6132 (value_equal): Ditto.
6133 (value_less): Ditto.
6134 (value_neg): Ditto.
6135 (value_complement): Ditto.
6136 (value_binop): Simplify slightly by using is_integral_type and
6137 eliminiating unnecessary COERCE_ENUMs.
6138
6139 2004-03-31 Andrew Cagney <cagney@redhat.com>
6140
6141 * frame.h (frame_unwind_id): Declare.
6142 * frame.c (frame_unwind_id): New function.
6143 (get_prev_frame_1): New function.
6144 (frame_debug_got_null_frame): New function.
6145 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6146 code proper to prev_frame, update description.
6147 * infrun.c (step_over_function): Use frame_unwind_id.
6148
6149 2004-04-31 J. Brobecker <brobecker@gnat.com>
6150
6151 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6152 (hppa64_push_dummy_call): Likewise.
6153
6154 2004-03-30 Jim Blandy <jimb@redhat.com>
6155
6156 From Ulrich Weigand:
6157 * utils.c (query): Do not use a va_list variable multiple times.
6158
6159 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6160
6161 * Makefile.in (linux_nat_h): Update dependencies.
6162 * configure.in: Check for <gnu/libc-version.h>.
6163 * configure: Regenerate.
6164 * config.in: Regenerate.
6165 * linux-nat.h: Include "target.h". Add waitstatus field to
6166 struct lwp_info.
6167 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6168 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6169 to.
6170 (lin_lwp_handle_extended): New function. Handle clone events.
6171 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6172 thread exit events.
6173 (child_wait): Handle clone events.
6174 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6175 * linux-nat.c (linux_enable_event_reporting): Turn on
6176 PTRACE_O_TRACECLONE.
6177 (linux_handle_extended_wait): Handle clone events.
6178 * thread-db.c: Include <gnu/libc-version.h>.
6179 (struct private_thread_info): Add dying flag.
6180 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6181 higher.
6182 (attach_thread): Update comments. Handle dying threads.
6183 (detach_thread): Set the dying flag.
6184 (check_event): Always call attach_thread.
6185
6186 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6187
6188 * mips-tdep.c (mips_pdr_data): New.
6189 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6190 (_initialize_mips_tdep): Initialize mips_pdr_data.
6191
6192 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6193
6194 * minsyms.c (install_minimal_symbols): Move dropping leading
6195 char from linkage name from here...
6196 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6197 test for "__gnu_compiled*" symbols.
6198
6199 2004-03-28 Jim Blandy <jimb@redhat.com>
6200
6201 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6202 registers to temp register r0 and byte stores as prologue
6203 instructions.
6204
6205 2004-03-28 Andrew Cagney <cagney@redhat.com>
6206
6207 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6208 arm*-*-*.
6209
6210 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6211
6212 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6213 and switch the layout to force a display of register window.
6214
6215 2004-02-26 J. Brobecker <brobecker@gnat.com>
6216
6217 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6218 of the INTEGER class.
6219
6220 2004-03-26 Jim Blandy <jimb@redhat.com>
6221
6222 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6223 bytes long on PPC GNU/Linux.
6224
6225 2004-03-26 David Carlton <carlton@kealia.com>
6226
6227 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6228
6229 2004-03-25 Andrew Cagney <cagney@redhat.com>
6230
6231 * PROBLEMS: Add general section titles, remove references to
6232 specific releases.
6233
6234 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6235
6236 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6237 INT_REGISTER_SIZE.
6238 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6239 FP_REGISTER_VIRTUAL_SIZE.
6240 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6241 of DEPRECATED_REGISTER_RAW_SIZE.
6242 (arm_register_type): Add gdbarch argument.
6243 (arm_register_raw_size, arm_register_virtual_size): Delete.
6244 (arm_register_byte, arm_extract_return_value)
6245 (arm_store_return_value, arm_get_longjmp_target): Update references
6246 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6247 (arm_gdbarch_init): Likewise. Don't set
6248 deprecated_register_raw_size, deprecated_register_virtual_size,
6249 deprecated_max_register_raw_size,
6250 deprecated_max_register_virtual_size, or
6251 deprecated_max_register_virtual_type. Do set register_type.
6252 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6253 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6254 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6255 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6256 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6257 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6258 INT_REGISTER_SIZE.
6259 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6260 (remote_rdp_store_register): Likewise.
6261
6262 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6263
6264 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6265 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6266 to after osabi initialization.
6267 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6268 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6269 functions.
6270 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6271 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6272 variables.
6273 (mips_linux_init_abi): Append signal trampoline unwinders.
6274
6275 2004-03-24 Andrew Cagney <cagney@redhat.com>
6276
6277 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6278 * tramp-frame.c: Include "gdb_assert.h".
6279 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6280 correct sizeof.
6281 (tramp_frame_append): Validate the tramp frame's instructions.
6282 * Makefile.in (tramp-frame.o): Update dependencies.
6283
6284 2004-03-23 Andrew Cagney <cagney@redhat.com>
6285
6286 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6287
6288 2004-03-23 Andrew Cagney <cagney@redhat.com>
6289
6290 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6291 Nasser as past testsuite/lib/ (and other) maintainers.
6292
6293 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6294
6295 * infcmd.c (attach_command): Reread symbols if we already have
6296 an exec file.
6297
6298 2004-03-23 Andrew Cagney <cagney@redhat.com>
6299
6300 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6301
6302 2004-03-23 Andrew Cagney <cagney@redhat.com>
6303
6304 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6305 * gdbarch.h, gdbarch.c: Re-generate.
6306 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6307 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6308 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6309 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6310 (DEPRECATED_SIGTRAMP_START): Update.
6311 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6312 (DEPRECATED_SIGTRAMP_START): Update.
6313 * blockframe.c (find_pc_sect_partial_function): Update.
6314 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6315
6316 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6317
6318 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6319 if necessary.
6320
6321 2004-03-23 Andrew Cagney <cagney@redhat.com>
6322
6323 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6324 predicate, deprecate.
6325 * gdbarch.h, gdbarch.c: Re-generate.
6326 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6327 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6328 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6329 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6330 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6331 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6332 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6333 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6334 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6335 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6336 * blockframe.c (find_pc_partial_function): Update.
6337 * breakpoint.c (bpstat_what): Update.
6338 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6339 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6340 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6341 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6342 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6343 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6344 * i386-nto-tdep.c (i386nto_init_abi): Update.
6345 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6346 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6347 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6348 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6349 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6350 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6351 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6352 * infrun.c (pc_in_sigtramp): Update.
6353 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6354 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6355 * mips-tdep.c (mips_gdbarch_init): Update.
6356 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6357 * ppc-linux-tdep.c: Update comment.
6358 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6359 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6360 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6361 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6362 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6363 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6364 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6365 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6366 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6367 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6368
6369 2004-03-23 Andrew Cagney <cagney@redhat.com>
6370
6371 * tramp-frame.h, tramp-frame.h: New files.
6372 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6373 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6374
6375 * Makefile.in: Update all dependencies.
6376
6377 2004-03-23 Andrew Cagney <cagney@redhat.com>
6378
6379 * Makefile.in (trad_frame_h): Add $(frame_h).
6380 * trad-frame.h: Update copyright. Include "frame.h".
6381 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6382 (trad_frame_set_id, trad_frame_get_id): Declare.
6383 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6384 * trad-frame.c: Update copyright.
6385 (struct trad_frame_cache): Define.
6386 (trad_frame_cache_zalloc): New function.
6387 (trad_frame_set_id, trad_frame_get_id): New functions.
6388 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6389
6390 2004-03-22 Andrew Cagney <cagney@redhat.com>
6391
6392 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6393 s390_pltstub_unwind_cache.
6394 (s390_stub_frame_unwind_cache): Rename
6395 s390_pltstub_frame_unwind_cache.
6396 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6397 (s390_stub_frame_prev_register): Rename
6398 s390_pltstub_frame_prev_register.
6399 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6400 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6401
6402 From Ulrich Weigand:
6403 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6404 pointer calls like PLT calls.
6405
6406 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6407
6408 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6409 PC rather than the partial function start address. Use the start
6410 address to sanity check the found PDR.
6411
6412 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6413
6414 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6415 linux_handle_extended_wait.
6416
6417 2004-03-22 Andrew Cagney <cagney@redhat.com>
6418
6419 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6420 function.
6421
6422 * frame.h (generic_pop_current_frame): Delete declaration.
6423 (deprecate_pop_dummy_frame): Deprecate
6424 generic_pop_dummy_frame.
6425 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6426 (generic_pop_current_frame): Delete function.
6427 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6428 generic_pop_current_frame.
6429 * v850-tdep.c (v850_pop_frame): Update.
6430 * mcore-tdep.c (mcore_pop_frame): Update.
6431 * sh64-tdep.c (sh64_pop_frame): Update.
6432 * h8300-tdep.c (h8300_pop_frame): Update.
6433
6434 2004-03-22 Andrew Cagney <cagney@redhat.com>
6435
6436 * frame.h (deprecated_pc_in_call_dummy): Rename
6437 generic_pc_in_call_dummy.
6438 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6439 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6440 generic_pc_in_call_dummy.
6441 (pc_in_dummy_frame): Make static.
6442 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6443 * gdbarch.h, gdbarch.c: Re-generate.
6444 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6445 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6446 (legacy_get_prev_frame): Ditto.
6447 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6448 comment.
6449
6450 2004-03-21 Andrew Cagney <cagney@redhat.com>
6451
6452 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6453 declaration and out-of-date comment.
6454 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6455 Delete function.
6456 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6457 deprecated_pc_in_call_dummy.
6458
6459 * infrun.c (handle_inferior_event): For non legacy frames, use the
6460 frame ID and frame type to identify a signal trampoline. Update
6461 comments.
6462
6463 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6464
6465 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6466 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6467
6468 2004-03-21 Andrew Cagney <cagney@redhat.com>
6469
6470 * frame-unwind.h: Update copyright.
6471 (struct frame_data): Add opaque declaration.
6472 (frame_sniffer_ftype): Declare.
6473 (struct frame_unwind): Add "unwind_data" and "sniffer".
6474 (frame_unwind_register_unwinder): Declare.
6475 (frame_unwind_find_by_frame): Add parameter "this_cache".
6476 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6477 (legacy_get_prev_frame, legacy_get_prev_frame)
6478 (get_frame_type): Pass the prologue_cache to
6479 frame_unwind_find_by_frame.
6480 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6481 "unwinder".
6482 (frame_unwind_register_unwinder): New function.
6483 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6484
6485 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6486
6487 * bcache.c (print_percentage): Use floating point to avoid
6488 incorrect results when portion*100 overflows.
6489
6490 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6491
6492 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6493 (ppc_linux_init_extra_frame_info)
6494 (ppc_linux_frameless_function_invocation)
6495 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6496 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6497 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6498 (rs6000_frame_chain): Delete declarations.
6499 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6500 (ppc_linux_init_extra_frame_info)
6501 (ppc_linux_frameless_function_invocation)
6502 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6503 (ppc_linux_init_abi): Remove registration of above deleted functions.
6504 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6505 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6506 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6507 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6508 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6509 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6510 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6511 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6512 frame management for all OSABIs.
6513
6514 2004-03-19 Andrew Cagney <cagney@redhat.com>
6515
6516 Committed by Kevin Buettner <kevinb@redhat.com>.
6517
6518 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6519 Update copyright.
6520 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6521 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6522 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6523 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6524 unwinders. #ifdef legacy frame code.
6525 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6526 "frame-base.h".
6527 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6528 (struct rs6000_frame_cache, rs6000_frame_cache)
6529 (rs6000_frame_this_id, rs6000_frame_prev_register)
6530 (rs6000_frame_sniffer, rs6000_frame_unwind)
6531 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6532 (rs6000_frame_base): Implement a traditional frame unwinder.
6533 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6534 frame unwinder.
6535
6536 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6537
6538 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6539 breakpoint address for watchpoints or the catch eventpoints.
6540 Add new paramter ``bptype''. Adjust all callers.
6541
6542 2004-03-19 Andrew Cagney <cagney@redhat.com>
6543
6544 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6545
6546 * PROBLEMS: Delete note that ARM does not use frame code, problem
6547 fixed.
6548
6549 2004-03-18 Andrew Cagney <cagney@redhat.com>
6550
6551 * stack.c (return_command): Delete code wrapped in #ifdef
6552 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6553
6554 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6555
6556 2004-03-18 Andrew Cagney <cagney@redhat.com>
6557
6558 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6559 DEPRECATED_IN_SIGTRAMP.
6560 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6561 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6562 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6563 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6564 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6565 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6566 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6567 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6568 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6569 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6570
6571 2004-03-18 Andrew Cagney <cagney@redhat.com>
6572
6573 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6574 (struct frame_base_table_entry): Define.
6575 (struct frame_base_table): Re-implement as a linked list.
6576 (frame_base_init): Re-implement.
6577 (frame_base_table): Delete function.
6578 (append_predicate): Delete function.
6579 (frame_base_append_sniffer): Update.
6580 (frame_base_set_default): Update.
6581 (frame_base_find_by_frame): Update.
6582 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6583 * Makefile.in (frame-base.o): Update dependencies.
6584
6585 2004-03-17 Andrew Cagney <cagney@redhat.com>
6586
6587 * frame.c (legacy_get_prev_frame): Pass correct frame to
6588 frame_unwind_find_by_frame.
6589
6590 2004-03-17 David Carlton <carlton@kealia.com>
6591
6592 * NEWS: Mention C++ nested types and namespaces
6593
6594 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6595
6596 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6597 and "Regressions since gdb 5.3.". Add known regressions since
6598 gdb 6.0.
6599
6600 2004-03-16 David Carlton <carlton@kealia.com>
6601
6602 * dwarf2read.c (process_structure_scope): Process children even
6603 when we're a declaration.
6604
6605 2004-03-16 Andrew Cagney <cagney@redhat.com>
6606
6607 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6608 * blockframe.c (find_pc_partial_function)
6609 (find_pc_sect_partial_function): Merge into a single
6610 find_pc_partial_function.
6611
6612 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6613
6614 * i386bsd-nat.c: s/regno/regnum/g.
6615 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6616 FP0_REGNUM.
6617 (store_inferior_registers): Likewise.
6618
6619 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6620
6621 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6622 of i387_fill_fsave.
6623 (store_inferior_registers): Call i387_collect_fsave and
6624 i387_collect_fxsave instead of i387_fill_fsave and
6625 i387_fill_fxsave.
6626
6627 2004-03-15 Andrew Cagney <cagney@redhat.com>
6628
6629 * Makefile.in (frame-unwind.o): Update dependencies.
6630 * frame-unwind.c: Include "gdb_obstack.h".
6631 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
6632 parameter.
6633 (append_predicate): Delete function.
6634 (struct frame_unwind_table_entry): New structure.
6635 (struct frame_unwind_table): Replace "sniffer" with "head" and
6636 "tail".
6637 (frame_unwind_append_sniffer): Update.
6638 (frame_unwind_find_by_frame): Update.
6639 (_initialize_frame_unwind): Registe frame_unwind_init using
6640 gdbarch_data_register_pre_init.
6641
6642 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6643
6644 * i386bsd-nat.c: Update copyright year.
6645 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
6646 define unconditionally.
6647
6648 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6649
6650 * i387-tdep.h (i387_collect_fsave): New prototype.
6651 * i387-tdep.c (i387_collect_fsave): New function containing most
6652 of the code from i387_fill_fsave.
6653 (i387_fill_fsave): Call i387_collect_fsave.
6654
6655 2004-03-15 Mark Kettenis <kettenis@gnu.org>
6656
6657 * i386-linux-tdep.c: Update copyright year.
6658 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
6659 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
6660 svr4_ilp32_link_map_offsets instead of
6661 i386_linux_svr4_fetch_link_map_offsets.
6662
6663 2004-03-15 David Carlton <carlton@kealia.com>
6664
6665 Fix for PR c++/1553:
6666 * dwarf2read.c (read_structure_type): Determine type name by
6667 calling determine_class_name.
6668 (determine_class_name): New.
6669 (determine_prefix): Look at TYPE_TAG_NAME and call
6670 determine_class_name when appropriate.
6671 (determine_prefix_aux, class_name): Delete.
6672 (read_namespace): Set die->type.
6673
6674 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6675
6676 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
6677 unused macro definition. The definition in target.h (or perhaps
6678 elsewhere) takes precedence.
6679
6680 2004-03-15 Andrew Cagney <cagney@redhat.com>
6681
6682 * ppc-tdep.h: Update copyright.
6683 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
6684 function signatures to match "regsets.h".
6685 * ppc-linux-tdep.c: Include "regset.h".
6686 (ELF_GREGSET_SIZE): Delete.
6687 (right_supply_register): New function.
6688 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
6689 using right_supply_register.
6690 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
6691 functions.
6692 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
6693 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
6694 (_initialize_ppc_linux_tdep): Do not register
6695 ppc_linux_regset_core_fns.
6696 (ppc_linux_regset_from_core_section): Replace
6697 fetch_core_registers.
6698 (ppc_linux_regset_core_fns): Delete.
6699 * ppc-linux-nat.c: (right_fill_reg): New function.
6700 (supply_gregset): Update call to ppc_linux_supply_gregset.
6701 (fill_gregset): Clear the register set, use right_fill_reg.
6702 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
6703 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
6704
6705 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
6706 unsigned.
6707
6708 2004-03-15 Andrew Cagney <cagney@redhat.com>
6709
6710 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
6711 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
6712 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
6713 and register_gdbarch_data.
6714 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
6715 (struct gdbarch_data): Replace "init" by "pre_init" and
6716 "post_init".
6717 * gdbarch.h, gdbarch.c: Re-generate.
6718 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
6719 with"obstack", use OBSTACK_ZALLOC.
6720 (dwarf2_frame_ops): Delete.
6721 (dwarf2_frame_set_init_reg): Use gdbarch_data.
6722 (dwarf2_frame_init_reg): Use gdbarch_data.
6723 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
6724 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
6725 (_initialize_svr4_solib): Update.
6726 * user-regs.c (_initialize_user_regs): Update.
6727 * reggroups.c (_initialize_reggroup): Update.
6728 * regcache.c (_initialize_regcache): Update.
6729 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6730 * libunwind-frame.c (_initialize_libunwind_frame): Update.
6731 * gnu-v3-abi.c (init_gnuv3_ops): Update.
6732 * frame-unwind.c (_initialize_frame_unwind): Update.
6733 * frame-base.c (_initialize_frame_base): Update.
6734 * user-regs.c (user_reg_add): Update.
6735 * reggroups.c (reggroup_add): Update.
6736 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
6737 * libunwind-frame.c (libunwind_frame_set_descr): Update.
6738 * frame-unwind.c (frame_unwind_append_sniffer): Update.
6739 * frame-base.c (frame_base_table): Update.
6740 * remote.c (_initialize_remote): Update.
6741 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
6742
6743 2004-03-15 Andrew Cagney <cagney@redhat.com>
6744
6745 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
6746
6747 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6748
6749 * Makefile.in (frv-linux-tdep.o): Add dependencies.
6750 * frv-linux-tdep.c: New file.
6751 * frv-tdep.c (struct gdbarch_tdep): Add new field
6752 ``sigcontext_reg_addr''.
6753 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
6754 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6755 (frv_sigramp_frame_sniffer): New functions.
6756 (frv_sigtramp_frame_unwind): New static global.
6757 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
6758 sniffers.
6759 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
6760 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
6761
6762 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6763
6764 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
6765 but not via a call to error(), when unable to read memory.
6766
6767 2004-03-15 Kevin Buettner <kevinb@redhat.com>
6768
6769 * frv-tdep.c (frv_call_dummy_words): Delete.
6770 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
6771
6772 2004-03-15 Andrew Cagney <cagney@redhat.com>
6773
6774 * infrun.c (handle_step_into_function, step_over_function): Only
6775 update and use STEP_FRAME_ID when the system is using legacy
6776 frames. Update comments.
6777
6778 2004-03-14 Mark Kettenis <kettenis@gnu.org>
6779
6780 * amd64-linux-tdep.h: Remove file.
6781 * amd64-linux-tdep.c: Don't include "inferior.h" and
6782 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
6783 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
6784 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
6785 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
6786 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
6787 macros.
6788 (user_to_gdb_regmap): Remove variable.
6789 (amd64_linux_gregset_reg_offset): New variable.
6790 (amd64_core_fns): Remove variable.
6791 (fetch_core_registers): Remove function.
6792 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
6793 functions.
6794 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
6795 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
6796 * Makefile.in (amd64_linux_tdep_h): Remove.
6797 (amd64-linux-nat.o): Update dependencies.
6798 (amd64-linux-tdep.o): Update dependencies.
6799
6800 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
6801 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
6802 functions.
6803 (fetch_inferior_registers, store_inferior_registers): Rewrite.
6804
6805 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
6806 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
6807
6808 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
6809
6810 * dwarf2read.c (read_structure_type): Rename from
6811 read_structure_scope. Don't create a symbol or call process_die.
6812 Return immediately if die->type is set. Call read_type_die before
6813 dwarf2_add_member_fn.
6814 (process_structure_scope): New function.
6815 (read_enumeration_type, process_enumeration_scope): New functions,
6816 broken out from read_enumeration. Don't create the enumeration
6817 type if it has already been created.
6818 (read_enumeration): Removed.
6819 (process_die): Call read_structure_type, process_structure_scope,
6820 read_enumeration_type, and process_enumeration_scope. Just call
6821 new_symbol for base and subrange types. Add a comment about other
6822 type dies.
6823 (read_type_die): Call read_enumeration_type.
6824 (add_partial_structure, new_symbol): Update comments.
6825
6826 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6827
6828 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
6829
6830 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
6831
6832 * tui/tui-win.h (tui_get_cmd_list): Declare.
6833 * tui/tui-win.c (tui_command): New function.
6834 (tui_get_cmd_list): New function.
6835 (_initialize_tui_win): Moved initialization of tui command in
6836 tui_get_cmd_list.
6837
6838 * tui/tui-data.c (init_content_element): Setup new data members.
6839 (init_win_info): Likewise.
6840 (free_content_elements): Free it.
6841 * tui/tui-data.h (struct tui_data_element): Store the register
6842 content to print.
6843 (struct tui_data_info): Keep the current register group.
6844
6845 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
6846
6847 * tui/tui-regs.h (tui_show_registers): Update prototype.
6848 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
6849 (tui_resize_all): No need to calculate anything for register window.
6850 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
6851 (tui_set_register_element, tui_set_general_regs_content): Remove.
6852 (tui_set_special_regs_content): Remove.
6853 (tui_set_general_and_special_regs_content): Remove.
6854 (tui_set_float_regs_content): Remove.
6855 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
6856 (tui_set_regs_content): Remove.
6857 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
6858 (tui_v_show_registers_command_support): Remove.
6859 (tui_show_registers): Use a reggroup to specify the registers to show.
6860 (tui_show_register_group): New function.
6861 (tui_display_registers_from): Compute the layout of register window
6862 and refresh with new API; be sure to delete old register windows.
6863 (tui_check_register_values): Update to use tui_get_register and
6864 tui_display_data.
6865 (tui_display_register): Just refresh the register window part.
6866 (tui_register_format): Format registers and save in tui_data_element.
6867 (tui_get_register): New to combine tui_reg_value_has_changed and
6868 tui_get_register_raw_value; fix to use the new gdb API.
6869 (tui_show_float_command): Renamed tui_reg_float_command.
6870 (tui_show_general_command): Renamed tui_reg_general_command.
6871 (tui_show_special_command): Renamed tui_reg_system_command.
6872 (_initialize_tui_regs): Remove unused commands.
6873
6874 2004-03-13 Mark Kettenis <kettenis@gnu.org>
6875
6876 * NEWS (New native configurations): Mention OpenBSD/amd64.
6877
6878 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
6879 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
6880 Remove defines.
6881 * config/i386/nm-fbsd64.h: Likewise.
6882 * config/i386/nm-obsd.h: Likewise.
6883 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
6884 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
6885
6886 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6887
6888 * frv-tdep.c (set_variant_scratch_registers): New function.
6889 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
6890 New constants.
6891
6892 From Richard Sandiford <rsandifo@redhat.com>:
6893 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
6894
6895 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6896
6897 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
6898 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
6899 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
6900 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
6901 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
6902 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
6903 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
6904 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
6905 definitions from frv-tdep.c to frv-tdep.h.
6906
6907 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6908
6909 Add shared library support for FR-V FDPIC ABI:
6910 * Makefile.in (solib-frv.o): Add dependencies.
6911 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
6912 New functions.
6913 (frv_push_dummy_call): Add support for FDPIC ABI.
6914 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
6915 for FDPIC ABI.
6916 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
6917 (frv_fdpic_find_canonical_descriptor): Declare.
6918 * solib-frv.c: New file.
6919 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
6920 * config/frv/tm-frv.h (solib.h): Include.
6921
6922 2004-03-12 Kevin Buettner <kevinb@redhat.com>
6923
6924 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
6925 (frv-tdep.o): Update dependencies.
6926 * frv-tdep.h: New file.
6927 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
6928 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
6929 constants.
6930 (struct gdbarch_tdep): Add new member ``frv_abi''.
6931 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
6932 functions.
6933 (new_variant): Set ``frv_abi'' field.
6934 (gdb_arch_init): Detect FDPIC executables.
6935
6936 2004-03-12 Mark Kettenis <kettenis@gnu.org>
6937
6938 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
6939 wrapper.
6940
6941 2004-03-11 Andrew Cagney <cagney@redhat.com>
6942
6943 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
6944
6945 2004-03-11 Kevin Buettner <kevinb@redhat.com>
6946
6947 * solist.h (master_so_list): New function.
6948 * solib.c (master_so_list): Likewise.
6949 * solib-svr4.c (enable_break): Iterate over so_list entries
6950 obtained from master list instead of entries obtained directly
6951 via svr4_current_sos().
6952
6953 2004-03-10 Ben Elliston <bje@gnu.org>
6954
6955 * MAINTAINERS: Update my mail address.
6956
6957 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
6958
6959 * remote-m32r-sdi.c: Support hardware watchpoint.
6960
6961 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6962
6963 * user-regs.c: Update copyright years.
6964 (struct user_regs): Rename to gdb_user_regs.
6965 (append_user_reg, builtin_user_regs, user_regs_init)
6966 (user_reg_add, user_reg_map_name_to_regnum)
6967 (usernum_to_user_reg): Update.
6968
6969 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6970
6971 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
6972 (skip_children): New functions.
6973 (locate_pdi_sibling): Call skip_children.
6974
6975 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6976
6977 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
6978 * gdbtypes.c (check_typedef): Update comments.
6979
6980 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6981
6982 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
6983 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
6984 pointer. Update comment about comp_unit_head.
6985 (struct abbrev_info): Shorten two int flags.
6986 (dwarf_alloc_abbrev): Take a CU argument.
6987 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
6988 each time through the loop. Update cleanup argument.
6989 (psymtab_to_symtab_1): Update cleanup call.
6990 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
6991 abbrev_obstack.
6992 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
6993 Just call obstack_free and clear the pointer.
6994
6995 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
6996
6997 * infrun.c (handle_inferior_event): Remove short-circuit code for
6998 events in a different thread.
6999
7000 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7001
7002 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7003 print the whole transfer.
7004 (initialize_targets): Update description of "set debug target".
7005
7006 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7007
7008 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7009
7010 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7011
7012 * MAINTAINERS (write after approval): Add myself.
7013
7014 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7015
7016 * sh-tdep.c (sh_print_registers_info): Use for loop.
7017 Don't skip multiple registers when a float register is encountered.
7018
7019 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7020
7021 Fix PR tdep/1291.
7022 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7023 to official SH documentation.
7024
7025 2004-03-07 Andrew Cagney <cagney@redhat.com>
7026
7027 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7028 unused function.
7029
7030 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7031
7032 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7033 (arm_get_next_pc): Handle BX and BLX.
7034
7035 2004-03-07 Andrew Cagney <cagney@redhat.com>
7036
7037 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7038 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7039 HPPA_SP_REGNUM.
7040 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7041 (hppa_target_read_fp): Delete.
7042 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7043 register_virtual_size, max_register_raw_size,
7044 max_register_virtual_size, register_byte, register_size,
7045 target_read_fp, fp_regnum, and register_bytes. Set register_type
7046 instead of register_virtual_type.
7047 (hppa32_register_type, hppa64_register_type): Replace
7048 hppa32_register_virtual_type and hppa64_register_virtual_type.
7049 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7050 (HPPA_FP_REGNUM): Define.
7051
7052 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7053
7054 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7055 (pa_do_registers_info): Delete.
7056 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7057 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7058 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7059
7060 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7061 GDB_TARGET_IS_HPPA code.
7062 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7063 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7064 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7065 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7066 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7067 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7068 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7069 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7070 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7071 (hppa_frameless_function_invocation, hppa64_store_return_value)
7072 (hppa_store_struct_return, hppa64_extract_return_value)
7073 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7074 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7075 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7076 (find_proc_framesize, deposit_21, restore_pc_queue)
7077 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7078 (rp_saved, pc_in_linker_stub): Delete.
7079
7080 Unconditionally enable 64-bit frame and ABI code.
7081 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7082 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7083 push_dummy_frame, fix_call_dummy, push_arguments,
7084 call_dummy_location, extract_return_value, use_struct_convention,
7085 store_return_value, store_struct_return, saved_pc_after_call,
7086 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7087 frame_chain, frame_chain_valid, frameless_function_invocation,
7088 frame_saved_pc, and pop_frame.
7089
7090 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7091 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7092 (hppa_gdbarch_init): Do not set PC_REGNUM.
7093
7094 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7095
7096 * config/alpha/tm-fbsd.h: Remove file.
7097 * config/alpha/fbsd.mt: Tweak comment.
7098 (TM_FILE): Set to tm-alpha.h.
7099
7100 2004-03-05 Andrew Cagney <cagney@redhat.com>
7101
7102 * infrun.c (step_over_function): When non-legacy code, and no
7103 step_frame_id, use the unwinder to get the caller's frame ID.
7104
7105 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7106
7107 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7108 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7109 bfd_arch_unknown. Adjust comment.
7110
7111 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7112 * i386obsd-tdep.c: Correct spelling in comment.
7113 * i386nbsd-tdep.c: Correct spelling in comment.
7114 * sparc-tdep.c: Correct spelling in comments.
7115
7116 2004-03-05 David Carlton <carlton@kealia.com>
7117
7118 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7119 bug.
7120
7121 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7122
7123 * sparc-tdep.c: Fix typo in comment.
7124
7125 2004-03-04 J. Brobecker <brobecker@gnat.com>
7126
7127 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7128
7129 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7130
7131 * dwarf2read.c: Add comment describing memory lifetimes.
7132 (struct dwarf2_pinfo): Update comment.
7133 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7134 (read_enumeration, new_symbol): Don't use obsavestring.
7135
7136 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7137
7138 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7139 instead of amd64_fill_fxsave.
7140 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7141 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7142
7143 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7144 Reorganize code a bit.
7145
7146 2004-03-04 Orjan Friberg <orjanf@axis.com>
7147
7148 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7149 when the frame pointer is pushed. Don't set the frame pointer's
7150 address on the stack unless it's actually located there.
7151 Set the SRP's address on the stack correctly when the PC is still in
7152 the prologue.
7153 (cris_return_value): New function.
7154 (cris_gdbarch_init): Clear deprecated store_return_value,
7155 extract_return_value.
7156
7157 2004-03-02 Jim Blandy <jimb@redhat.com>
7158
7159 * stabsread.c (reg_value_complaint): The maximum register number
7160 is one less than the number of registers.
7161
7162 2004-03-02 Andrew Cagney <cagney@redhat.com>
7163
7164 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7165 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7166 trailing comma and redundant assignment of I386_ST0_REGNUM.
7167 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7168 32-bit segment registers.
7169
7170 2004-03-01 Andrew Cagney <cagney@redhat.com>
7171
7172 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7173 use frame_relative_level and get_next_frame.
7174
7175 2004-02-29 Andrew Cagney <cagney@redhat.com>
7176
7177 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7178 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7179 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7180 Delete macro.
7181
7182 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7183
7184 * inflow.c (terminal_inferior): Don't give up the terminal if we
7185 previously couldn't get the inferior's terminal state.
7186
7187 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7188
7189 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7190 PC_REGNUM.
7191
7192 2004-02-28 Andrew Cagney <cagney@redhat.com>
7193
7194 * NEWS: Refer to GDB 6.1.
7195 * README: Refer to GDB 6.1.
7196 * PROBLEMS: Refer to GDB 6.1.
7197
7198 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7199
7200 * thread-db.c (disable_thread_signals): Remove unused function.
7201
7202 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7203
7204 * amd64-nat.c: Include "gdb_string.h".
7205 (amd64_collect_native_gregset): Zero-extend the 32-bit
7206 general-purpose registers and %eip.
7207
7208 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7209 * amd64-tdep.c (amd64_collect_fxsave): New function.
7210 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7211
7212 * i387-tdep.h: Update copyright year.
7213 (i387_collect_fxsave): New prototype.
7214 * i387-tdep.c: Update copyright year.
7215 (i387_collect_fxsave): New function containing most of the code
7216 from i387_fill_fxsave.
7217 (i387_fill_fxsave): Call i387_collect_fxsave.
7218
7219 2004-02-28 Andrew Cagney <cagney@redhat.com>
7220
7221 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7222 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7223
7224 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7225
7226 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7227
7228 2004-02-28 Andrew Cagney <cagney@redhat.com>
7229
7230 * utils.c: Use "", instead of <>, to include readline.
7231 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7232 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7233 * source.c, solib.c, exec.c, event-top.c: Ditto.
7234 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7235 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7236 * Makefile.in: Update all dependencies.
7237 (readline_tilde_h, readline_history_h): Define.
7238 (readline_headers): Delete.
7239
7240 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7241
7242 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7243 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7244 "config/i386/tm-lx64.h".
7245
7246 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7247 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7248 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7249
7250 2004-02-28 Andrew Cagney <cagney@redhat.com>
7251
7252 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7253
7254 * breakpoint.c (_initialize_breakpoint): Use
7255 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7256 Add help to show command.
7257
7258 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7259
7260 * i386-nat.c: Reformat to be closer to coding standards.
7261 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7262 `retval'. Make variables `align' and `size' local to while-loop.
7263 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7264 (_initialize_i386_nat): New prototype.
7265
7266 * tui/tui.c: Include <readline/readline.h> instead of
7267 "readline/readline.h". Include it after <term.h> and
7268 "gdb_curses.h".
7269
7270 2004-02-27 Andrew Cagney <cagney@redhat.com>
7271
7272 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7273 the new frame unwind code.
7274 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7275 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7276 PCOQ_HEAD_REGNUM.
7277
7278 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7279 "return_value" and "push_dummy_call".
7280 (hppa32_use_struct_convention): Delete unused function.
7281 (hppa32_store_return_value): Delete unused function.
7282 (hppa32_extract_return_value): Delete unused function.
7283 (hppa32_stack_align): Delete function.
7284
7285 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7286
7287 * coffread.c (enter_linenos): Don't let rawptr reference memory
7288 outside linetab[]'s limits.
7289
7290 2004-02-27 Andrew Cagney <cagney@redhat.com>
7291
7292 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7293 inferior stack space - the stack needs to grow upwards.
7294 (hppa32_frame_align): New function.
7295 (hppa64_frame_align): Replace hppa_frame_align.
7296 (hppa_gdbarch_init): Update.
7297
7298 2004-02-26 Orjan Friberg <orjanf@axis.com>
7299
7300 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7301 (dwarf2-frame.h): Include.
7302 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7303 Remove static variables related to ABI setting.
7304 (struct gdbarch_tdep): Remove cris_abi member.
7305 (struct frame_extra_info): Remove.
7306 (cris_unwind_cache, stack_item): New structs.
7307 (cris_frame_unwind, cris_frame_base): New variables.
7308 (push_stack_item, pop_stack_item)
7309 (cris_frame_unwind_cache, cris_frame_this_id)
7310 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7311 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7312 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7313 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7314 (cris_reg_struct_has_addr): New functions.
7315 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7316 (cris_frame_saved_pc, cris_saved_pc_after_call,
7317 (cris_store_struct_return, cris_frameless_function_invocation)
7318 (cris_pop_frame, cris_skip_prologue_main)
7319 (cris_abi_original_store_return_value)
7320 (cris_abi_v2_store_return_value)
7321 (cris_abi_original_extract_return_value)
7322 (cris_abi_v2_extract_return_value)
7323 (cris_abi_original_reg_struct_has_addr)
7324 (cris_abi_v2_reg_struct_has_addr)
7325 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7326 (cris_push_return_address, cris_abi_update): Remove.
7327 (_initialize_cris_tdep): Remove ABI command.
7328 (cris_dump_tdep): Ditto.
7329 (cris_gdbarch_init): Remove ABI command.
7330 Set store_return_value, extract_return_value, push_dummy_code,
7331 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7332 frame_unwind_append_sniffer, frame_base_set_default.
7333 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7334 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7335 sizeof_call_dummy_words, get_saved_register, push_return_address,
7336 pop_frame, store_struct_return, frame_init_saved_regs,
7337 init_extra_frame_info, frameless_function_invocation, frame_chain,
7338 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7339 dummy_write_sp.
7340
7341 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7342
7343 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7344 * valprint.c (print_hex_chars): Change from static to external.
7345 (print_char_chars): New function.
7346 * printcmd.c (print_scalar_formatted): For integer and enum types
7347 that are longer than LONGEST, perform processing via appropriate
7348 print_*_chars routines.
7349
7350 2004-02-26 Andrew Cagney <cagney@redhat.com>
7351
7352 * Makefile.in: Update dependencies.
7353 Changes from Ulrich Weigand,
7354 * s390-tdep.c: Include "dwarf2-frame.h".
7355 (s390_dwarf2_frame_init_reg): New function.
7356 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7357 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7358
7359 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7360
7361 * breakpoint.c (pending_break_support): New setting variable.
7362 (break_command_1): Account for pending_break_support setting
7363 when creating pending breakpoints.
7364 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7365 (_initialize_breakpoint): Add "set breakpoint pending" and
7366 "show breakpoint pending" commands.
7367
7368 2004-02-26 Andrew Cagney <cagney@redhat.com>
7369
7370 Fix PR i18n/1570.
7371 * charset.c (backslashable, backslashed, represented): Remove 'e'
7372 from list of escaped characters, not part of ISO-C.
7373
7374 2004-02-25 J. Brobecker <brobecker@gnat.com>
7375
7376 From Peter Schauer <schauer@pdf.de>:
7377 * tui/tui.c: Move system header includes after local includes.
7378 Fixes a build failure on solaris systems.
7379
7380 2004-02-25 J. Brobecker <brobecker@gnat.com>
7381
7382 * configure.in: Refine the previous change.
7383 * configure: Regenerate.
7384
7385 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7386
7387 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7388 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7389 "amd64-tdep.h" instead of "x86-64-tdep.h".
7390 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7391 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7392 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7393 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7394 and "x86-64-tdep.c".
7395 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7396 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7397 and "x86-64-tdep.c".
7398 * amd64bsd-nat.c: Update copyright year.
7399 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7400 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7401 "x86-64-tdep.h".
7402 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7403 "x86-64-tdep.h".
7404 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7405 "x86-64-tdep.h".
7406 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7407 "x86-64-tdep.h".
7408 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7409 "x86-64-tdep.h".
7410 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7411 "x86-64-tdep.h".
7412 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7413 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7414 * Makefile.in (amd64_linux_tdep_h): Renamed from
7415 x86_64_linux_tdep_h.
7416 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7417 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7418 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7419 (amd64obsd-tdep.o): Update dependencies.
7420 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7421 dependencies.
7422 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7423 dependencies.
7424 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7425 amd64-linux-nat.c amd64-linux-tdep.c.
7426 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7427 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7428 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7429 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7430 amd64-tdep.o and amd64-linux-tdep.o.
7431 (TM_FILE): Set to tm-linux64.h.
7432 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7433 (NAT_FILE): Set to nm-linux64.h.
7434 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7435 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7436 amd64-tdep.o.
7437 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7438 amd64-tdep.o.
7439 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7440 amd64-tdep.o.
7441
7442 2004-02-25 Roland McGrath <roland@redhat.com>
7443
7444 * remote.c (remote_protocol_qPart_auxv): New variable.
7445 (init_all_packet_configs): Initialize it.
7446 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7447 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7448 (show_remote_cmd): Call it.
7449 (_initialize_remote): Initialize commands.
7450 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7451 service TARGET_OBJECT_AUXV requests.
7452
7453 2004-02-25 J. Brobecker <brobecker@gnat.com>
7454
7455 * configure.in: Make sure that the wborder function is available.
7456 Otherwise, search for it in the cur_colr library.
7457 * configure: Regenerate.
7458
7459 2004-02-25 Andrew Cagney <cagney@redhat.com>
7460
7461 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7462
7463 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7464
7465 * config/i386/tm-x86-64linux.h: Tweak comments.
7466
7467 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7468
7469 * MAINTAINERS: Add self to write-after-approval list.
7470
7471 2004-02-25 Andrew Cagney <cagney@redhat.com>
7472
7473 PR cli/1566. Problem found, and fix suggested by David Allan.
7474 * cli/cli-script.c (execute_control_command): Unconditionally
7475 install a cleanup. Default "ret" to "invalid_control". Use
7476 "break" instead of "return" to escape from the switch.
7477
7478 2004-02-24 J. Brobecker <brobecker@gnat.com>
7479
7480 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7481 with the lines macro defined in term.h on AiX.
7482 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7483 a collision with the label_width macro defined in term.h on AiX.
7484
7485 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7486
7487 Committed by Kevin Buettner <kevinb@redhat.com>.
7488
7489 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7490 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7491 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7492 instead of ia64_write_pc().
7493 * ia64-linux-tdep.c (regcache.h): Include.
7494 (ia64_linux_write_pc): New function.
7495
7496 2004-02-23 Roland McGrath <roland@redhat.com>
7497
7498 * auxv.c (info_auxv_command): Fix typos in error messages.
7499
7500 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7501
7502 * x86-64-tdep.h: Tweak comment.
7503 (enum amd64_regnum): New.
7504 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7505 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7506 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7507 (X86_64_XMM1_REGNUM): Removed.
7508 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7509 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7510 prototypes for renamed functions.
7511 * x86-64-tdep.c: Fix typo.
7512 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7513 register numbers.
7514 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7515 Use constants from `enum amd64_regnum' for register numbers.
7516 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7517 (amd64_analyze_prologue, amd64_frame_cache,
7518 amd64_sigtramp_frame_cache): Use constants from `enum
7519 amd64_regnum' for register numbers.
7520 (amd64_supply_fpregset): Adjust for renamed functions.
7521 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7522 `enum amd64_regnum' for register numbers.
7523 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7524 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7525 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7526 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7527 (amd64_linux_fill_gregset): Adjust for renamed macros.
7528 (fetch_core_registers): Adjust for renamed functions.
7529 (amd64_linux_init_abi): Adjust for renamed functions.
7530 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7531 renamed functions.
7532 * amd64-nat.c: Adjust for renamed macros.
7533 * amd64bsd-nat.c (fetch_inferior_registers)
7534 (store_inferior_registers): Use constants from `enum amd64_regnum'
7535 for register numbers. Adjust for renamed variables.
7536 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7537 renamed variables.
7538 (_initialize_amd64fbsd_nat): Use constants from `enum
7539 amd64_regnum' for register numbers.
7540 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7541 `enum amd64_regnum' for register numbers.
7542 (amd64fbsd_init_abi): Adjust for renamed functions.
7543 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7544 `enum amd64_regnum' for register numbers.
7545 (amd64nbsd_init_abi): Adjust for renamed functions.
7546 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7547 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7548 `enum amd64_regnum' for register numbers.
7549 (amd64obsd_init_abi): Adjust for renamed functions.
7550 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7551
7552 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7553
7554 * breakpoint.c (print_one_breakpoint): Do not output spaces
7555 after printing <PENDING> for a pending breakpoint.
7556
7557 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7558
7559 * printcmd.c (print_scalar_formatted): Initialize val_long
7560 to remove compiler warning message.
7561
7562 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7563
7564 * defs.h (nquery, yquery): New prototypes.
7565 * breakpoint.c (break_command_1): Use new nquery interface.
7566 * utils.c (defaulted_query, nquery, yquery): New functions.
7567
7568 2004-02-23 Andrew Cagney <cagney@redhat.com>
7569
7570 * hppa-tdep.c (hppa_frame_align): New function.
7571 (hppa32_push_dummy_call): New function.
7572 (hppa64_push_dummy_call): New function.
7573 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7574 disabled.
7575
7576 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7577 FIX_CALL_DUMMY when push_dummy_call is available.
7578 (call_function_by_hand, push_dummy_code): Ditto.
7579
7580 2004-02-22 Andrew Cagney <cagney@redhat.com>
7581
7582 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7583 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7584 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7585 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7586 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7587 call_dummy_location to ON_STACK.
7588
7589 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7590
7591 * x86-64-linux-tdep.c: Tweak comment.
7592 (amd64_linux_supply_gregset): Renamed from
7593 x86_64_linux_supply_gresget.
7594 (amd64_linux_fill_gregset): Renamed from
7595 x86_64_linux_fill_gregset.
7596 (fetch_core_registers): Adjust for renamed functions.
7597 (amd64_core_fns): Renamed from x86_64_core_fns.
7598 (amd64_linux_sigtramp_start): Renamed from
7599 x86_64_linux_sigtramp_start.
7600 (amd64_linux_pc_in_sigtramp): Renamed from
7601 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7602 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7603 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7604 (amd64_linux_sigcontext_addr): Renamed from
7605 x86_64_linux_sigcontext_addr.
7606 (amd64_linux_sc_reg_offset): Renamed from
7607 x86_64_linux_sc_reg_offset.
7608 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7609 Adjust for renamed functions and variables.
7610 (_initialize_amd64_linux_tdep): Renamed from
7611 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7612 variables.
7613 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7614 Adjust for renamed functions.
7615
7616 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7617 from x86_64_linux_gregset64_reg_offset.
7618 (amd64_linux_gregset32_reg_offset): Rename from
7619 x86_64_linux_gregset64_reg_offset.
7620 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7621 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7622 (amd64_linux_dr_set_control): Renamed from
7623 x86_64_linux_dr_set_control. Adjust for renamed functions.
7624 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7625 Adjust for renamed functions.
7626 (amd64_linux_dr_reset_addr): Renamed from
7627 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7628 (amd64_linux_dr_get_status): Renamed from
7629 x86_64_linux_dr_get_status. Adjust for renamed functions.
7630 (_initialize_amd64_linux_nat): Renamed from
7631 _initialize_x86_64_linux_nat. Adjust for renamed variables and
7632 functions.
7633 * config/i386/nm-x86-64linux.h: Update copyright year.
7634 Adjust for renamed functions.
7635
7636 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
7637 amd64fbsd_sigtramp_start.
7638 (amd64fbsd_sigtramp_end_addr): Renamed from
7639 amd64fbsd_sigtramp_end.
7640 (amd64fbsd_init_abi): Adjust for renamed variables.
7641 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
7642 variables.
7643 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
7644 amd64fbsd_sigtramp_start.
7645 (amd64fbsd_sigtramp_end_addr): Renamed from
7646 amd64fbsd_sigtramp_end.
7647
7648 2004-02-22 Andrew Cagney <cagney@redhat.com>
7649
7650 * hppa-tdep.c (hppa32_return_value): New function.
7651 (hppa64_return_value): New function.
7652 (hppa_gdbarch_init): Set return_value; keep disabled.
7653
7654 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
7655 struct-return and inferior function call methods.
7656
7657 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7658 "frame-base.h".
7659 (struct hppa_frame_cache): Define.
7660 (hppa_frame_cache, hppa_frame_this_id): New functions.
7661 (hppa_frame_prev_register): New function.
7662 (hppa_frame_unwind, hppa_frame_base): New variables.
7663 (hppa_frame_unwind_sniffer): New function.
7664 (hppa_frame_base_address, hppa_unwind_pc): New function.
7665 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
7666 sniffer, and frame base sniffer; keep disabled.
7667 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
7668 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
7669
7670 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
7671 to predicates for "seriously old code".
7672
7673 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
7674 runtime if(0).
7675
7676 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
7677 unsigned.
7678 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
7679
7680 * config/pa/tm-hppa.h: Update copyright.
7681 (DEPRECATED_INIT_FRAME_PC): Delete macro.
7682 (deprecated_init_frame_pc_default): Delete declaration.
7683 (hppa_frame_init_saved_regs): Delete declaration.
7684 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7685 * hppa-tdep.c: Include "arch-utils.h".
7686 (hppa_gdbarch_init): Set deprecated init_frame_pc
7687 and deprecated frame_init_saved_regs.
7688 (hppa_frame_init_saved_regs): Make static.
7689
7690 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7691
7692 Remove old 386BSD support.
7693 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
7694 * configure.host: Remove i[34567]86-*-bsd*.
7695 * configure.tgt: Remove i[34567]86-*-bsd*.
7696 * i386b-nat.c: Removed.
7697 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
7698 (i386b-nat.o): Remove dependencies.
7699
7700 * config/i386/i386bsd.mh: Removed.
7701 * config/i386/i386bsd.mt: Removed.
7702 * config/i386/nm-i386bsd.h: Removed.
7703 * config/i386/tm-i386bsd.h: Removed.
7704 * config/i386/xm-i386bsd.h: Removed.
7705
7706 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
7707
7708 * amd64fbsd-tdep.c: Include "solib-svr4.h".
7709 (amd64fbsd_init_abi): Set link map offsets.
7710 * amd64nbsd-tdep.c: Include "slib-svr4.h".
7711 (amd64nbsd_init_abi): Set link map offsets.
7712 * amd64obsd-tdep.c: Include "solib-svr4.h".
7713 (amd64obsd_init_abi): Set link map offsets.
7714 * i386fbsd-tdep.c: Include "solib-svr4.h".
7715 (i386fbsd_init_abi): Set link map offsets.
7716 * i386nbsd-tdep.c: Include "solib-svr4.h".
7717 (i386nbsdelf_init_abi): Set link map offsets.
7718 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
7719 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
7720 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
7721 solib-legacy.o and core-aout.o. Reformat.
7722 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
7723 solib-svr4.o, solib-legacy.o. Reformat.
7724 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
7725 * config/i386/nbsdelf.mh: Reformat.
7726 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
7727 solib-svr4.o, solib-legacy.o and corelow.o.
7728 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
7729 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
7730 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
7731 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7732 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
7733 (TM_FILE): Set to tm-fbsd.h.
7734 * config/i386/nbsd.mt (TDEPFILES): Reformat.
7735 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
7736 solib-svr4.o.
7737 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
7738 solib-svr4.o.
7739 (TM_FILE): Set to nm-nbsd.h.
7740 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
7741 Simplify shared library support. Don't include "elf/common.h".
7742 (SVR4_SHARED_LIBS): Don't define.
7743 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
7744 "solib.h".
7745 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
7746 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
7747 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
7748 Don't include "i386/tm-i386.h". Include "solib.h".
7749 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
7750 Don't include "i386/tm-i386.h".
7751 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
7752 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
7753 Include "i386/xm-i386.h".
7754 (HOST_LONG_DOUBLE_FORMAT): Remove.
7755
7756 Fix OpenBSD/i386 sigtramp recognition.
7757 * i386-tdep.h: Update copyright year.
7758 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
7759 (i386bsd_sigtramp_end): New prototypes.
7760 (i386fbsd_sigtramp_start_addr): Renamed from
7761 i386fbsd_sigtramp_start.
7762 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7763 (i386obsd_sigtramp_start_addr): Renamed from
7764 i386obsd_sigtramp_start.
7765 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7766 * i386bsd-tdep.c: Update copyright year.
7767 (i386bsd_pc_in_sigtramp): Make public.
7768 * i386fbsd-nat.c: Update copyright year.
7769 (_initialize_i386fbsd_nat): Adjust for renamed variables.
7770 * i386fbsd-tdep.c: Update copyright year.
7771 (i386fbsd_sigtramp_start_addr): Renamed from
7772 i386fbsd_sigtramp_start.
7773 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
7774 (i386fbsdaout_init_abi): Adjust for renamed variables.
7775 * i386obsd-nat.c: Update copyright year.
7776 (_initialize_i386obsd_nat): Adjust for renamed variables.
7777 * i386obsd-tdep.c: Include "target.h".
7778 (i386obsd_page_size): New variable.
7779 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
7780 (i386obsd_sigtramp_end): New functions.
7781 (i386obsd_sigtramp_start_addr): Renamed from
7782 i386obsd_sigtramp_start.
7783 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
7784 (i386obsd_init_abi): Adjust for renamed variables. Set
7785 pc_in_sigtramp, sigtramp_start and sigtramp_end.
7786 * Makefile.in (i386obsd-tdep.o): Update dependencies.
7787
7788 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
7789 trampoline change in OpenBSD kernel.
7790
7791 * amd64-nat.c: Update copyright year.
7792 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
7793 architecture from REGCACHE.
7794
7795 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
7796 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
7797
7798 2004-02-21 Mark Kettenis <kettenis@gnu.org>
7799
7800 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
7801 i[34567]86-*-openbsd3.[0-3].
7802 * config/i386/obsdaout.mh: New file.
7803
7804 * config/i386/obsd.mh (MH_FLAGS): Remove.
7805
7806 Fix PR build/1549.
7807 * i386obsd-tdep.c: Update copyright years. Include
7808 "solib-svr4.h".
7809 (i386obsd_init_abi): Don't set regset_from_core_section here.
7810 (i386obsd_aout_init_abi): New function. Set
7811 regset_from_core_section here.
7812 (i386obsd_elf_init_abi): New function.
7813 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
7814 * Makefile.in (i386obsd-tdep.o): Update dependecies.
7815 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7816 (TM_FILE): Set to tm-nbsd.h.
7817
7818 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
7819 solib-sunos.o.
7820
7821 * solib-svr4.h: Update copyright year.
7822 (svr4_ilp32_fetch_link_map_offsets)
7823 (svr4_lp64_fetch_link_map_offsets): New prototype.
7824 * solib-svr4.c: Update copyright year.
7825 (svr4_ilp32_fetch_link_map_offsets)
7826 (svr4_lp64_fetch_link_map_offsets): New function.
7827
7828 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
7829
7830 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
7831 to the partial symbol table.
7832
7833 2004-02-20 J. brobecker <brobecker@gnat.com>
7834
7835 * PROBLEMS: Add description of problem documented under gdb/1560.
7836
7837 2004-02-20 Mark Kettenis <kettenis@gnu.org>
7838
7839 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
7840 comments.
7841 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
7842 functions.
7843 (amd64obsd_init_abi): Reorder initializations. Use
7844 amd64obsd_r_reg_offset to initialize the general-purpose register
7845 set details. Set regset_from_core_section.
7846 (_initialize_amd64obsd_tdep): Rename from
7847 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
7848 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
7849 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
7850
7851 * NEWS (New native configurations): Mention OpenBSD/alpha.
7852 * configure.tgt: Add alpha*-*-openbsd*.
7853 * configure.host: Add alpha*-*-openbsd*.
7854 * alphanbsd-tdep.c: Update copyright year.
7855 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
7856
7857 2004-02-20 Andrew Cagney <cagney@redhat.com>
7858
7859 Fix PR tdep/1372.
7860 * configure.tgt: Delete target "none-*-*".
7861 * configure.host: Delete host "none-*-*".
7862 * config/none/none.mh: Delete file.
7863 * config/none/none.mt: Delete file.
7864 * config/none/xm-none.h: Delete file.
7865 * config/none/tm-none.h: Delete file.
7866 * config/none/nm-none.h: Delete file.
7867
7868 2004-02-19 Fred Fish <fnf@redhat.com>
7869
7870 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
7871 cache->uses_fp prior to setting it.
7872
7873 2004-02-19 Fred Fish <fnf@redhat.com>
7874
7875 Fix for PR breakpoint/1558.
7876 * sh-tdep.c (IS_JSR): New macro.
7877 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
7878
7879 2004-02-19 Jim Blandy <jimb@redhat.com>
7880
7881 * findvar.c (value_from_register): Doc fix.
7882
7883 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
7884
7885 * printcmd.c (print_scalar_formatted): Do not check for sizeof
7886 type being greater than sizeof of host's LONGEST. Always use
7887 unpack_long() unless format 'f' chosen.
7888
7889 2004-02-19 Joel Brobecker <brobecker@gnat.com>
7890
7891 Committed by Elena Zannoni <ezannoni@redhat.com>
7892
7893 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
7894 contains a symbol wich is the best, non-exact match for the given
7895 pc. Update comments.
7896
7897 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
7898
7899 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
7900 macro, which was part of the now removed Mach 3 port.
7901 * utils.c (request_quit): Ditto.
7902
7903 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7904
7905 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
7906 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
7907
7908 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7909
7910 Committed by Mark Kettenis <kettenis@gnu.org>.
7911
7912 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
7913 Define.
7914
7915 2004-02-18 Andrew Cagney <cagney@redhat.com>
7916
7917 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
7918 CONFIG_INSTALL and CONFIG_UNINSTALL.
7919 * configure: Re-generate.
7920 * interps.h (INTERP_TUI): Define.
7921 * Makefile.in: Update dependencies.
7922 (TUI): New macro.
7923 (tui-main.o): Specify dependencies.
7924 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
7925 * tui/tui-main.c: New file.
7926
7927 2004-02-18 Mark Kettenis <kettenis@gnu.org>
7928
7929 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
7930 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
7931 dependencies.
7932 * configure.host: Add x86_64-*-openbsd*.
7933 * configure.tgt: Add x86_64-*-openbsd*.
7934 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
7935
7936 * tui/tui.c: Don't include <malloc.h>.
7937
7938 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
7939 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
7940 amd64nbsd-tdep.c.
7941
7942 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
7943 static. Remove extraneous whitespace.
7944 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
7945 static.
7946
7947 2004-02-17 Jim Blandy <jimb@redhat.com>
7948
7949 * findvar.c (value_from_register): Doc fix.
7950
7951 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7952
7953 Committed by Jim Blandy <jimb@redhat.com>.
7954
7955 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
7956 CORE_ADDR as type for selectors. Correct types for GNU run time
7957 message lookup function to use double indirection.
7958 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
7959 * objc-lang.h (lookup_child_selector): Adapt prototype.
7960
7961 * s390-nat.c (SUBOFF): New macro.
7962 (supply_gregset, fill_gregset): Use it to handle debugging
7963 of 32-bit exectuables running under a 64-bit kernel.
7964 * s390-tdep.c: Include "solib-svr4.h".
7965 (s390_svr4_fetch_link_map_offset): New function.
7966 (s390x_svr_fetch_link_map_offset): Likewise.
7967 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
7968 * Makefile.in (s390-tdep.o): Update dependencies.
7969
7970 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
7971 "frame-unwind.h".
7972 (s390_readinstruction): Reformat. Use read_memory_nobpt.
7973 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
7974 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
7975 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
7976 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
7977 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
7978 S390_SIGNAL_FRAMESIZE,
7979 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
7980 (struct frame_extra_info): Remove.
7981 (s390_memset_extra_info): Remove.
7982 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
7983 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
7984 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
7985 (is_rse): Renamed to ...
7986 (is_rsy): ... this. Support long displacements.
7987 (is_rxe): Renamed to ...
7988 (is_rxy): ... this. Support long displacements.
7989 (compute_x_addr): Support long displacements.
7990 (struct s390_prologue_data): New data type.
7991 (s390_on_stack): Change API to use struct s390_prologue_data.
7992 (s390_store): Reimplement.
7993 (s390_load): New function.
7994 (s390_get_signal_frame_info): Remove.
7995 (s390_get_frame_info): Remove, replace by ...
7996 (s390_analyze_prolog): ... this new function.
7997 (s390_check_function_end): Remove.
7998 (s390_function_start): Remove.
7999 (s390_frameless_function_invokation): Remove.
8000 (s390_is_sigreturn): Remove.
8001 (s390_init_frame_pc_first): Remove.
8002 (s390_init_frame_extra_info): Remove.
8003 (s390_frame_init_saved_regs): Remove.
8004 (s390_frame_saved_pc_nofix): Remove.
8005 (s390_frame_saved_pc): Remove.
8006 (s390_frame_chain): Remove.
8007 (s390_fp_regnum, s390_read_fp): Remove.
8008 (s390_pop_frame_regular, s390_pop_frame): Remove.
8009 (s390_saved_pc_after_call): Remove.
8010 (s390_skip_prologue): Reimplement.
8011 (s390_in_function_epilogue_p): Support long displacements.
8012 (struct s390_unwind_cache): New data structure.
8013 (s390_frame_unwind_cache): New function.
8014 (s390_prologue_frame_unwind_cache): Likewise.
8015 (s390_backchain_frame_unwind_cache): Likewise.
8016 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8017 (s390_frame_unwind): Define.
8018 (s390_frame_sniffer): New function.
8019 (struct s390_pltstub_unwind_cache): New data structure.
8020 (s390_pltstub_frame_unwind_cache): New function.
8021 (s390_pltstub_frame_this_id): Likewise.
8022 (s390_pltstub_frame_prev_register): Likewise.
8023 (s390_pltstub_frame_unwind): Define.
8024 (s390_pltstub_frame_sniffer): New function.
8025 (struct s390_sigtramp_unwind_cache): New data structure.
8026 (s390_sigtramp_frame_unwind_cache): New function.
8027 (s390_sigtramp_frame_this_id): Likewise.
8028 (s390_sigtramp_frame_prev_register): Likewise.
8029 (s390_sigtramp_frame_unwind): Define.
8030 (s390_sigtramp_frame_sniffer): New function.
8031 (s390_frame_base_address, s390_local_base_address): New functions.
8032 (s390_frame_base): Define.
8033 (s390_unwind_pc, s390_unwind_sp): New function.
8034 (s390_push_dummy_call): Use new frame base location.
8035 (s390_unwind_dummy_id): Likewise.
8036 (s390_gdbarch_init): Remove calls to:
8037 set_gdbarch_frameless_function_invocation,
8038 set_gdbarch_deprecated_init_frame_pc,
8039 set_gdbarch_deprecated_frame_chain,
8040 set_gdbarch_deprecated_frame_init_saved_regs,
8041 set_gdbarch_deprecated_pop_frame,
8042 set_gdbarch_deprecated_init_extra_frame_info,
8043 set_gdbarch_deprecated_init_frame_pc_first,
8044 set_gdbarch_deprecated_target_read_fp,
8045 set_gdbarch_deprecated_frame_saved_pc,
8046 set_gdbarch_deprecated_saved_pc_after_call,
8047 set_gdbarch_deprecated_fp_regnum.
8048 Add calls to:
8049 set_gdbarch_in_solib_call_trampoline,
8050 frame_unwind_append_sniffer,
8051 frame_base_set_default,
8052 set_gdbarch_unwind_pc,
8053 set_gdbarch_unwind_sp.
8054 * Makefile.in (s390-tdep.o): Update dependencies.
8055
8056 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8057 (S390_STACK_FRAME_OVERHEAD): Remove.
8058 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8059 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8060 (s390_promote_integer_argument): Remove.
8061 (s390_cannot_extract_struct_value_address): Remove.
8062 (s390_use_struct_convention, s390_store_struct_return): Remove.
8063 (s390_extract_return_value, s390_store_return_value): Remove.
8064 (s390_return_value_convention, s390_return_value): New functions.
8065 (is_float_singleton): Handle typedefs.
8066 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8067 Remove, replace by ...
8068 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8069 s390_function_arg_integer): ... these new functions.
8070 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8071 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8072 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8073 Fill in tdep->abi.
8074 Remove calls to:
8075 set_gdbarch_deprecated_store_struct_return,
8076 set_gdbarch_deprecated_extract_return_value,
8077 set_gdbarch_deprecated_store_return_value,
8078 set_gdbarch_use_struct_convention,
8079 set_gdbarch_extract_struct_value_address,
8080 set_gdbarch_deprecated_pc_in_call_dummy,
8081 set_gdbarch_deprecated_push_arguments,
8082 set_gdbarch_deprecated_save_dummy_frame_tos,
8083 set_gdbarch_deprecated_push_return_address,
8084 set_gdbarch_deprecated_sizeof_call_dummy_words,
8085 set_gdbarch_deprecated_call_dummy_words,
8086 set_gdbarch_deprecated_dummy_write_sp.
8087 Add calls to:
8088 set_gdbarch_push_dummy_call,
8089 set_gdbarch_unwind_dummy_id,
8090 set_gdbarch_return_value.
8091
8092 * config/s390/nm-linux.h: Update comments.
8093 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8094 (STOPPED_BY_WATCHPOINT): Redefine.
8095 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8096 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8097 (s390_stopped_by_watchpoint): Likewise.
8098 (watch_area_cnt): Remove.
8099 * s390-nat.c: Update comments.
8100 (watch_area): Remove typedef.
8101 Global replace watch_area by struct watch_area.
8102 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8103 (s390_stopped_by_watchpoint): Remove pid argument,
8104 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8105 (s390_fix_watch_points): Remove pid argument,
8106 use s390_inferior_tid. Recompute area spanned by watchpoints.
8107 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8108 argument. Reimplement.
8109
8110 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8111 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8112 (FETCH_INFERIOR_REGISTERS): Define.
8113 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8114 core-regset.o.
8115 * config/s390/s390x.mt: Remove.
8116 * config/s390/tm-s390.h: Remove.
8117 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8118 (TARGET_ELF64): Remove.
8119 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8120 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8121 s390*-*-* case; always set gdb_target to s390.
8122 * regformats/reg-s390.dat: Remove control registers.
8123 * regformats/reg-s390x.dat: Likewise.
8124 * s390-tdep.h: New file.
8125 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8126 Include "inferior.h" and "s390-tdep.h".
8127 Remove private definition of offsetof.
8128 (s390_register_u_addr): Remove.
8129 (regmap_gregset, regmap_fpregset): Define.
8130 (supply_gregset, fill_gregset): Reimplement.
8131 (supply_fpregset, fill_fpregset): Likewise.
8132 (s390_inferior_tid): New function.
8133 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8134 (fetch_inferior_registers, store_inferior_registers): Likewise.
8135 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8136 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8137 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8138 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8139 (struct gdbarch_tdep): Define.
8140 (struct s390_register_info): Define.
8141 (s390_register_info): New variable.
8142 (s390_register_name): Reimplement.
8143 (s390_register_type): New function.
8144 (s390_register_raw_size, s390x_register_raw_size): Remove.
8145 (s390_cannot_fetch_register): Remove.
8146 (s390_register_byte): Remove.
8147 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8148 (s390_dwarf_regmap): New variable.
8149 (s390_dwarf_reg_to_regnum): New function.
8150 (s390_stab_reg_to_regnum): Remove.
8151 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8152 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8153 (s390_convert_register_p): Likewise.
8154 (s390_register_to_value, s390_value_to_register): Likewise.
8155 (s390_register_reggroup_p): Likewise.
8156 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8157 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8158 (s390_supply_regset, s390_regset_from_core_section): New functions.
8159 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8160 (S390_FPR_SIZE): Likewise.
8161 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8162 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8163 (S390_NUM_GPRS): Move here from tm-s390.h.
8164 (S390_NUM_FPRS): Likewise.
8165 (s390_in_function_epilogue_p): New function.
8166 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8167 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8168 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8169 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8170 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8171 Remove calls to:
8172 set_gdbarch_deprecated_max_register_raw_size,
8173 set_gdbarch_deprecated_max_register_virtual_size,
8174 set_gdbarch_deprecated_register_byte,
8175 set_gdbarch_cannot_fetch_register,
8176 set_gdbarch_cannot_store_register,
8177 set_gdbarch_deprecated_register_size,
8178 set_gdbarch_deprecated_register_raw_size,
8179 set_gdbarch_deprecated_register_virtual_size,
8180 set_gdbarch_deprecated_register_virtual_type,
8181 set_gdbarch_deprecated_register_bytes.
8182 Add calls to:
8183 set_gdbarch_num_pseudo_regs,
8184 set_gdbarch_register_type,
8185 set_gdbarch_convert_register_p,
8186 set_gdbarch_register_to_value,
8187 set_gdbarch_value_to_register,
8188 set_gdbarch_register_reggroup_p,
8189 set_gdbarch_regset_from_core_section,
8190 set_gdbarch_pseudo_register_read,
8191 set_gdbarch_pseudo_register_write,
8192 set_gdbarch_in_function_epilogue_p.
8193 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8194 (s390_tdep_h): New variable.
8195
8196 2004-02-17 Jim Blandy <jimb@redhat.com>
8197
8198 * findvar.c (value_from_register): If the type has no length, just
8199 return an acceptable value --- don't report an internal error.
8200
8201 * stabsread.c (read_type): If we find any type numbers that are
8202 forward references, complain if the references aren't resolved by
8203 the time we're finished reading.
8204 (cleanup_undefined_types): Make error message more appropriate for
8205 a complaint.
8206
8207 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8208
8209 * Makefile.in (defs_h): Remove dependency on progress_h.
8210 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8211 progress.h.
8212 * main.c (captured_main): Delete use of START_PROGRESS and
8213 END_PROGRESS.
8214
8215 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8216
8217 * objfiles.c (terminate_minimal_symbol_table): Add back
8218 initialization of MSYMBOL_TYPE.
8219
8220 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8221
8222 Committed by Andrew Cagney.
8223 * Makefile.in (ia64_tdep_h): New macro.
8224 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8225 (ia64-tdep.o): Likewise.
8226 * ia64-tdep.h: New file.
8227 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8228 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8229 (ia64_aix_sigcontext_register_address): Likewise.
8230 (ia64_linux_getunwind_table): Delete declaration.
8231 * ia64-linux-tdep.c: Likewise.
8232
8233 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8234
8235 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8236 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8237 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8238
8239 2004-02-17 Andrew Cagney <cagney@redhat.com>
8240
8241 * symtab.c (skip_prologue_using_sal): New function.
8242 * symtab.h (skip_prologue_using_sal): Declare.
8243 * frv-tdep.c: Include "symtab.h".
8244 (skip_prologue_using_sal): Delete function.
8245 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8246 * rs6000-tdep.c (refine_prologue_limit): Mention
8247 skip_prologue_using_sal.
8248 * ia64-tdep.c (refine_prologue_limit): Ditto.
8249 * Makefile.in: Update dependencies.
8250
8251 2004-02-16 Andrew Cagney <cagney@redhat.com>
8252
8253 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8254 START_INFERIOR_TRAPS_EXPECTED.
8255 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8256 START_INFERIOR_TRAPS_EXPECTED.
8257 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8258 Delete macro.
8259 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8260 macro, moved to "nm-osf.h". Update copyright.
8261 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8262 update copyright.
8263
8264 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8265 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8266 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8267 frameless_look_for_prologue.
8268 * frame.h (legacy_frameless_look_for_prologue): Rename
8269 frameless_look_for_prologue.
8270 * gdbarch.h, gdbarch.c: Re-generate.
8271 * sh64-tdep.c (sh64_gdbarch_init): Update.
8272 * sh-tdep.c (sh_gdbarch_init): Update.
8273 * s390-tdep.c (s390_gdbarch_init): Update.
8274 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8275 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8276 * m68k-tdep.c (m68k_gdbarch_init): Update.
8277 (delta68_frame_args_address): Update.
8278 * m32r-tdep.c (m32r_gdbarch_init): Update.
8279 * hppa-tdep.c (hppa_gdbarch_init): Update.
8280 * h8300-tdep.c (h8300_gdbarch_init): Update.
8281 * frv-tdep.c (frv_gdbarch_init): Update.
8282 (frv_frameless_function_invocation): Update.
8283 * cris-tdep.c (cris_gdbarch_init): Update.
8284 (cris_frameless_function_invocation): Update.
8285 * avr-tdep.c (avr_gdbarch_init): Update.
8286 * arm-tdep.c (arm_gdbarch_init): Update.
8287 * stack.c (frame_info): Update, call predicate.
8288 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8289 * frame.c (legacy_get_prev_frame): Update, call predicate..
8290 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8291 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8292 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8293 invocation.
8294 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8295 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8296 * vax-tdep.c (vax_gdbarch_init): Ditto.
8297
8298 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8299 function.
8300
8301 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8302
8303 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8304 initializations.
8305
8306 2004-02-16 Andrew Cagney <cagney@redhat.com>
8307
8308 * tui/tui-windata.c: Include "gdb_string.h".
8309 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8310 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8311 * Makefile.in: Update dependencies.
8312
8313 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8314
8315 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8316 * infrun.c: Include "gdb_assert.h".
8317 (singlestep_ptid, saved_singlestep_ptid)
8318 (stepping_past_singlestep_breakpoint): New variables.
8319 (resume): Set singlestep_ptid. Check for singlestep thread
8320 hop.
8321 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8322 (handle_inferior_event): Handle singlestep thread hop.
8323
8324 2004-02-16 Andrew Cagney <cagney@redhat.com>
8325
8326 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8327 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8328 (dwarf2_frame_init_reg): Ditto.
8329
8330 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8331 suggested by Joshua Neuheisel
8332
8333 * configure.in: Always check for curses, including pdcurses.
8334 Warn, instead of error, when no curses are found. Enable TUI when
8335 curses is available.
8336 * configure: Re-generate.
8337
8338 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8339
8340 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8341 sh_sh4_register_convert_to_virtual.
8342 (sh_register_convert_to_raw): Rename from
8343 sh_sh4_register_convert_to_raw.
8344 (sh_pseudo_register_read): Accomodate above name change.
8345 (sh_pseudo_register_write): Ditto.
8346
8347 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8348
8349 * sh-tdep.c (sh_generic_register_name): Remove.
8350 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8351
8352 2004-02-15 Andrew Cagney <cagney@redhat.com>
8353
8354 * configure.in (build_warnings): Add -Wunused-function.
8355 * configure: Re-generate.
8356
8357 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8358 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8359
8360 * procfs.c (procfs_init_inferior): Assume that
8361 START_INFERIOR_TRAPS_EXPECTED is defined.
8362 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8363 * config/ns32k/tm-nbsd.h: Delete file,
8364 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8365
8366 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8367 * config/vax/tm-vax.h: Delete file.
8368
8369 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8370 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8371 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8372 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8373 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8374 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8375 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8376
8377 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8378
8379 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8380 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8381 (struct dwarf2_frame_ops): New.
8382 (dwarf2_frame_default_init_reg): New function, based on
8383 dwarf2_frame_init_reg.
8384 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8385 (dwarf2_frame_init_reg): Call architecture-specific function.
8386 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8387 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8388 instead of dwarf2_frame_data.
8389 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8390 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8391
8392 2004-02-15 Andrew Cagney <cagney@redhat.com>
8393
8394 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8395 register_gdbarch_swap.
8396 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8397 * f-lang.c (_initialize_f_language): Update, use
8398 DEPRECATED_REGISTER_GDBARCH_SWAP.
8399 * remote.c (_initialize_remote): Ditto.
8400 * regcache.c (_initialize_regcache): Ditto.
8401 * parse.c (_initialize_parse): Ditto.
8402 * infrun.c (_initialize_infrun): Ditto.
8403 * mi/mi-main.c (_initialize_mi_main): Ditto.
8404 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8405
8406 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8407 poking .cacheable directly.
8408 * symfile.c (symfile_bfd_open): Ditto.
8409
8410 * Makefile.in: Update all dependencies.
8411
8412 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8413 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8414 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8415 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8416 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8417
8418 2004-02-14 Andrew Cagney <cagney@redhat.com>
8419
8420 * arch-utils.c (legacy_convert_register_p): Check
8421 DEPRECATED_REGISTER_CONVERTIBLE_P.
8422 * findvar.c (value_of_register): Ditto.
8423
8424 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8425 * gdbarch.h, gdbarch.c: Re-generate.
8426 * arch-utils.c (deprecated_register_convertible_not): Delete.
8427 * arch-utils.h (deprecated_register_convertible_not): Delete.
8428 * mi/mi-main.c (get_register): Update. Update copyright.
8429 * infcmd.c (default_print_registers_info): Update.
8430
8431 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8432 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8433 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8434 * gdbarch.h, gdbarch.c: Re-generate.
8435 * frame.c (deprecated_get_next_frame_hack): Delete function.
8436 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8437 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8438 Update.
8439 * infcall.c (call_function_by_hand): Update.
8440
8441 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8442
8443 * symfile.c (init_entry_point_info, entry_point_address): Move
8444 from here...
8445 * objfiles.c (init_entry_point_info, entry_point_address):..to
8446 here.
8447 * symfile.h (init_entry_point_info, entry_point_address): Remove
8448 prototypes.
8449 * objfiles.h (init_entry_point_info, entry_point_address):Add
8450 prototypes.
8451 * cris-tdep.c: Remove include of symfile.h. Add include of
8452 objfiles.h.
8453 * infcall.c: Ditto.
8454 * mcore-tdep.c: Ditto.
8455 * mn10300-tdep.c: Ditto.
8456 * sh64-tdep.c: Ditto.
8457 * v850-tdep.c: Ditto.
8458 * arm-tdep.c: Remove include of symfile.h.
8459 * blockframe.c: Ditto.
8460 * coffread.c: Ditto.
8461 * dbxread.c: Ditto.
8462 * dwarf2read.c: Ditto.
8463 * dwarfread.c: Ditto.
8464 * frv-tdep.c: Ditto.
8465 * ia64-tdep.c: Ditto.
8466 * mdebugread.c: Ditto.
8467 * mipsread.c: Ditto.
8468 * rs6000-tdep.c: Ditto.
8469 * s390-tdep.c: Ditto.
8470 * sh-tdep.c: Ditto.
8471 * xstormy16-tdep.c: Ditto.
8472 * gdbarch.sh: Remove include of symfile.h.
8473 * gdbarch.c: Regenerate.
8474 * solib-irix.c (enable_break): Use entry_point_address().
8475 Add comment about include file.
8476 * xcoffread.c: Add comment about include file.
8477 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8478 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8479 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8480 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8481 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8482
8483 2004-02-13 Andrew Cagney <cagney@redhat.com>
8484
8485 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8486 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8487 copyright.
8488 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8489
8490 2004-02-12 Fred Fish <fnf@redhat.com>
8491
8492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8493 set_gdbarch_store_return_value.
8494
8495 2004-02-12 Andrew Cagney <cagney@redhat.com>
8496
8497 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8498 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8499 (interrupt_query): Ditto.
8500 (ofunc): Delete unused variable.
8501 * cris-tdep.c (cris_abi): Delete unused function.
8502 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8503 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8504 (cris_get_asr_quick_shift_steps): Ditto.
8505 (cris_skip_prologue_frameless_p): Ditto.
8506 * arm-tdep.c (arm_push_return_address): Delete unused function.
8507 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8508 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8509 * s390-tdep.c (s390_function_start): Delete unused function.
8510
8511 2004-02-12 Andrew Cagney <cagney@redhat.com>
8512
8513 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8514 gdbarch.h, gdbarch.c: Re-generate.
8515 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8516 to generic_prologue_frameless_p.
8517 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8518 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8519
8520 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8521
8522 * mips-linux-tdep.c: Include "frame.h".
8523 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8524 (mips_linux_skip_resolver): New functions.
8525 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8526 and set_gdbarch_in_solib_call_trampoline.
8527 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8528 to after set_gdbarch_in_solib_return_trampoline. Only set the
8529 solib hooks to mips16 functions if the OS ABI is unknown.
8530 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8531 including "config/tm-linux.h".
8532 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8533 * Makefile.in (mips-linux-tdep.o): Update.
8534
8535 2004-02-11 David Carlton <carlton@kealia.com>
8536
8537 * linespec.c (decode_compound): Only look for a class symbol when
8538 considering all but the rightmost component.
8539
8540 2004-02-11 Andrew Cagney <cagney@redhat.com>
8541
8542 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8543 abi code are are separatly grouped.
8544
8545 2004-02-11 Andrew Cagney <cagney@redhat.com>
8546
8547 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8548 * gdbarch.h, gdbarch.c: Re-generate.
8549 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8550 * v850-tdep.c (v850_gdbarch_init): Update.
8551 * sh64-tdep.c (sh64_gdbarch_init): Update.
8552 * sh-tdep.c (sh_gdbarch_init): Update.
8553 * s390-tdep.c (s390_gdbarch_init): Update.
8554 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8555 * mips-tdep.c (mips_gdbarch_init): Update.
8556 * mcore-tdep.c (mcore_gdbarch_init): Update.
8557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8558 * m32r-tdep.c (m32r_gdbarch_init): Update.
8559 * ia64-tdep.c (ia64_gdbarch_init): Update.
8560 * hppa-tdep.c (hppa_gdbarch_init): Update.
8561 * h8300-tdep.c (h8300_gdbarch_init): Update.
8562 * frv-tdep.c (frv_gdbarch_init): Update.
8563 * d10v-tdep.c (d10v_gdbarch_init): Update.
8564 * cris-tdep.c (cris_gdbarch_init): Update.
8565 * avr-tdep.c (avr_gdbarch_init): Update.
8566 * arm-tdep.c (arm_gdbarch_init): Update.
8567 * alpha-tdep.c (alpha_gdbarch_init): Update.
8568
8569 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8570
8571 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8572 comma.
8573 (sh_sh4al_dsp_register_name): Ditto.
8574
8575 2004-02-10 Andrew Cagney <cagney@redhat.com>
8576
8577 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8578 (mips_init_frame_pc_first): Delete function.
8579 (mips_frame_saved_pc): Delete function.
8580 (mips_frame_chain): Delete function.
8581 (mips_init_extra_frame_info): Delete function.
8582 (mips_xfer_register): Delete unused variable "reg".
8583 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8584 (mips_n32n64_return_value): Delete unused variable "reg".
8585 (mips_n32n64_return_value): Delete unused variable "pos".
8586 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8587 (mips_o32_return_value): Delete unused variable "pos".
8588 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8589 (mips_print_fp_register): Delete unused variable "namelen"
8590 (mips_print_fp_register): Delete unused variable "flt2"
8591 (get_frame_pointer): Delete function.
8592 (cached_proc_desc): Delete static variable.
8593 (mips_pop_frame): Delete function.
8594 (mips_find_saved_regs): Delete function.
8595 (mips_get_saved_register): Delete function.
8596 (mips_saved_pc_after_call): Delete function.
8597 (SIGFRAME_BASE): Delete macro.
8598 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8599 (SIGFRAME_PC_OFF): Delete macro.
8600 (SIGFRAME_REGSAVE_OFF): Delete macro.
8601 (mips_dump_tdep): Do not print deleted macro definitions.
8602
8603 2004-02-10 Andrew Cagney <cagney@redhat.com>
8604
8605 * Makefile.in (SFILES): Remove explictly listed tui files.
8606 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8607
8608 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8609
8610 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8611 to use paddr functions to format ia64 addresses and long values.
8612 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8613 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8614 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8615 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8616 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8617
8618 2004-02-10 Andrew Cagney <cagney@redhat.com>
8619
8620 * defs.h: Do not include "tui.h".
8621 * gdb_curses.h: New file.
8622 * tui/tui-hooks.h: New file.
8623 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8624 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8625 (tui_initialize_io): Delete declaration.
8626 (tui_initialize_readline: Delete redundant declaration.
8627 (struct tui_point): Delete definition.
8628 * tui/tui-data.h (struct tui_point): Define.
8629 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8630 * utils.c: Include "tui/tui.h".
8631 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
8632 * printcmd.c [TUI]: Include "tui/tui.h".
8633 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
8634 * tui/tui-command.c: Include "gdb_curses.h".
8635 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
8636 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
8637 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
8638 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
8639 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
8640 * Makefile.in: Update all dependencies.
8641 (tui_hooks_h, gdb_curses_h): Define.
8642 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
8643
8644 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
8645
8646 * objfiles.h (struct objfile): Remove unused fields auxf1 and
8647 auxf2. Add comments about some other rarely used fields.
8648
8649 2004-02-10 Andrew Cagney <cagney@redhat.com>
8650
8651 * Makefile.in (init.c): Fix script removing duplicates. Problem
8652 reported by Peter Schauer.
8653
8654 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8655
8656 * bcache.c (bcache_xmalloc): Use obstack_init instead of
8657 obstack_specify_allocation.
8658 * objfiles.c (allocate_objfile): Ditto.
8659 * solib-sunos.c (solib_add_common_symbols)
8660 (allocate_rt_common_objfile): Ditto.
8661 * symfile.c (reread_symbols): Ditto.
8662 * gdb_obstack.h: Add comment.
8663
8664 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
8665
8666 * linespec.c (decode_line_1, locate_first_half)
8667 (decode_compound, lookup_prefix_sym): Update comments. Delete old
8668 commented out code.
8669
8670 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
8671
8672 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
8673 obstack_free.
8674
8675 2004-02-09 Andrew Cagney <cagney@redhat.com>
8676
8677 * blockframe.c (find_pc_partial_function): If find_pc_overlay
8678 fails, try find_pc_section. Fix PR c++/1267.
8679 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
8680 instead of find_pc_mapped_section.
8681 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
8682 not default to the section containing PC. Fix PR symtab/1519.
8683
8684 2004-02-09 Andrew Cagney <cagney@redhat.com>
8685
8686 * Makefile.in (mips-tdep.o): Update dependencies.
8687 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
8688 "trad-frame.h".
8689 (mips_unwind_pc): Return the pseudo PC register.
8690 (mips_unwind_dummy_id): New function.
8691 (mips16_fetch_instruction): New function.
8692 (mips32_fetch_instruction): New function.
8693 (struct mips_frame_cache): Define.
8694 (mips_mdebug_frame_cache): New function.
8695 (mips_mdebug_frame_this_id): New function.
8696 (mips_mdebug_frame_prev_register): New function.
8697 (mips_mdebug_frame_unwind): Define.
8698 (mips_mdebug_frame_sniffer): New function.
8699 (mips_mdebug_frame_base_address): New function.
8700 (mips_mdebug_frame_base): Define.
8701 (mips_mdebug_frame_base_sniffer): New function.
8702 (mips_gdbarch_init): Append unwind and base sniffers. Set
8703 unwind_dummy_id.
8704
8705 2004-02-08 Andrew Cagney <cagney@redhat.com>
8706
8707 * frame.c: Print both the register number and name.
8708
8709 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
8710 and a sed into a single sed. Make .c and .o patterns more robust.
8711 (OBS): Delete.
8712 (INIT_FILES): Replace OBS with COMMON_OBS.
8713 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
8714
8715 2004-02-08 Mark Kettenis <kettenis@gnu.org>
8716
8717 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
8718 the PT_WCOOKIE request.
8719
8720 2004-02-08 Andrew Cagney <cagney@redhat.com>
8721
8722 * mips-tdep.c (mips_unwind_pc): New function.
8723 (mips_gdbarch_init): Set mips_unwind_pc.
8724
8725 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
8726 (get_frame_id): Allow the UNKNOWN_FRAME.
8727 (frame_register_unwind, get_frame_type): Ditto.
8728
8729 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
8730 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
8731 unwind_dummy_id indicates a legacy frame.
8732
8733 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
8734 * configure: Re-generate.
8735
8736 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
8737 methods.
8738
8739 2004-02-08 Andrew Cagney <cagney@redhat.com>
8740
8741 * configure.in (CONFIG_ALL): Set to Makefile target, and not
8742 makefile macro.
8743 * configure: Re-generate.
8744 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
8745 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
8746 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
8747 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
8748 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
8749 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
8750 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
8751 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
8752 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
8753 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
8754
8755 2004-02-07 Andrew Cagney <cagney@redhat.com>
8756
8757 * Makefile.in: Update all dependencies.
8758
8759 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
8760 * configure: Re-generate.
8761 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
8762 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
8763 (COMMON_OBS): Add "main.o" and "annotate.o".
8764 (ANNOTATE_OBS): Delete.
8765 (OBS): Remove ANNOTATE_OBS.
8766 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
8767 CONFIG_INITS.
8768 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
8769 against CONFIG_OBS and "main.o".
8770 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
8771 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
8772
8773 * tui/tui-command.c: Include "gdb_string.h", delete register
8774 attribute, use ISO-C function signatures.
8775 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
8776 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8777 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
8778 * tui/tui.c: Ditto.
8779
8780 * tui/tui-command.c: Change variable and function names to lower
8781 case.
8782 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
8783 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
8784 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8785 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8786 * tui/tui-winsource.c, tui/tui.c: Ditto.
8787
8788 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8789
8790 * buildsym.c (free_pending_blocks, finish_block)
8791 (record_pending_block, make_blockvector, end_symtab): Replace
8792 symbol_obstack with objfile_obstack.
8793 * coffread.c (process_coff_symbol, coff_read_struct_type)
8794 (coff_read_enum_type): Ditto.
8795 * cp-namespace.c (initialize_namespace_symtab)
8796 (check_one_possible_namespace_symbol): Ditto.
8797 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
8798 (dwarf2_symbol_mark_computed): Ditto.
8799 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
8800 * elfread.c (elf_symtab_read): Ditto.
8801 * hpread.c (hpread_symfile_init, hpread_symfile_init)
8802 (hpread_read_enum_type, hpread_read_function_type)
8803 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
8804 Ditto.
8805 * jv-lang.c (get_java_class_symtab, add_class_symbol)
8806 (java_link_class_type): Ditto.
8807 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
8808 (new_symbol): Ditto.
8809 * minsyms.c (install_minimal_symbols): Ditto.
8810 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
8811 (terminate_minimal_symbol_table): Replace symbol_obstack with
8812 objfile_obstack.
8813 (free_objfile): Remove freeing of symbol_obstack.
8814 * objfiles.h: Remove symbol_obstack field.
8815 * pa64solib.c (add_to_solist): Replace symbol_obstack with
8816 objfile_obstack.
8817 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8818 symbol_obstack.
8819 (solib_add_common_symbols): Replace symbol_obstack with
8820 objfile_obstack.
8821 * somsolib.c (som_solib_add): Ditto.
8822 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8823 (common_block_start, common_block_end): Ditto.
8824 * symfile.c (reread_symbols): Remove freeing and init of
8825 symbol_obstack.
8826 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
8827 * symfile.h: Update comment.
8828 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
8829 stats printing.
8830 * symtab.c (symbol_set_names): Replace symbol_obstack with
8831 objfile_obstack.
8832 * symtab.h (struct general_symbol_info, struct minimal_symbol):
8833 Update comments.
8834 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
8835 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
8836 objfile_obstack.
8837
8838 2004-02-07 Andrew Cagney <cagney@redhat.com>
8839
8840 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
8841 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
8842 fields and variables.
8843 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
8844 (m_beInvisible): Delete macro.
8845 * tui/tui-data.h: Fix case case fields and variables.
8846 (m_genWinPtrIsNull): Delete macro.
8847 (tui_win_list): Rename winList.
8848 (TUI_SRC_WIN): Rename srcWin.
8849 (TUI_DISASM_WIN): Rename disassemWin.
8850 (TUI_DATA_WIN): Rename dataWin.
8851 (TUI_CMD_WIN): Rename cmdWin.
8852 (m_genWinPtrNotNull): Delete macro.
8853 (m_winPtrIsNull): Delete macro.
8854 (m_winPtrNotNull): Delete macro.
8855 (tui_win_is_source_type): Replace m_winIsSourceType
8856 (tui_win_is_auxillary): Replace m_winIsAuzillary.
8857 (tui_win_has_locator): Replace m_hasLocator.
8858 (tui_set_win_highlight): Replace m_setWinHighlightOn and
8859 m_setWinHighlightOff.
8860 * tui/tui-data.c: Update references.
8861 (tui_win_is_source_type, tui_set_win_highlight): New functions.
8862 (tui_win_has_locator, tui_win_is_auxillary): New functions.
8863 * tui/tui-command.c, tui/tui-disasm.c: Update references.
8864 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
8865 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
8866 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8867 * tui/tui-winsource.c, tui/tui.c: Ditto.
8868
8869 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8870
8871 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
8872 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
8873 StackGhost.
8874
8875 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
8876 variable `i6' to `i7'.
8877 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
8878
8879 2004-02-07 Andrew Cagney <cagney@redhat.com>
8880
8881 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
8882 (TuiPoint, TuiPointPtr): Ditto.
8883 (TuiStatus, TuiStatusPtr): Ditto.
8884 (TuiWinType, TuiWinTypePtr): Ditto.
8885 (struct tui_point): Rename _TuiPoint.
8886 (tui_get_low_disassembly_address): Rename
8887 tuiGetLowDisassemblyAddress.
8888 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
8889 (tuiFree): Delete declaration.
8890 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
8891 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
8892 * tui/tui.c (tuiFree): Delete function.
8893 * cli/cli-cmds.c (disassemble_command): Update references.
8894 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
8895 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
8896 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
8897 * tui/tui-winsource.c: Ditto.
8898
8899 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8900
8901 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
8902 coffstab_build_psymtabs, elfstab_build_psymtabs)
8903 (stabsect_build_psymtabs): Replace psymbol_obstack with
8904 objfile_obstack.
8905 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
8906 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
8907 Ditto.
8908 * dwarfread.c (scan_compilation_units): Ditto.
8909 * elfread.c (elfstab_offset_sections): Ditto.
8910 * hppa-tdep.c (read_unwind_info): Ditto.
8911 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
8912 (hpread_end_psymtab): Ditto.
8913 * mdebugread.c (mdebug_build_psymtabs, add_pending)
8914 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
8915 Ditto.
8916 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8917 * objfiles.c (add_to_objfile_sections)
8918 (build_objfile_section_table): Ditto.
8919 (allocate_objfile): Remove init of psymbol_obstack.
8920 (free_objfile): Remove freeing of psymbol_obstack.
8921 * objfiles.h (struct objfile): Remove field
8922 psymbol_obstack. Update comments.
8923 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
8924 psymbol_obstack with objfile_obstack.
8925 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
8926 psymbol_obstack.
8927 * somread.c (som_symfile_offsets, init_import_symbols)
8928 (init_export_symbols): Replace psymbol_obstack with
8929 objfile_obstack.
8930 * somsolib.c (som_solib_add_solib_objfile): Ditto.
8931 * symfile.c (default_symfile_offsets, syms_from_objfile)
8932 (reread_symbols): Remove freeing and init of psymbol_obstack.
8933 (cashier_psymtab): Update comment.
8934 * symmisc.c (print_objfile_statistics): Don't report stats for
8935 psymbol obstack.
8936 * symtab.h (struct general_symbol_info, struct partial_symtab):
8937 Update comments.
8938 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
8939 (xcoff_symfile_offsets): Replace psymbol_obstack with
8940 objfile_obstack.
8941
8942 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
8943
8944 * objfiles.h (struct objfile): Add objfile_obstack field.
8945 Remove type_obstack field.
8946
8947 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
8948 read_structure_scope read_enumeration, new_symbol): Replace
8949 type_obstack with objfile_obstack.
8950 * dwarfread.c (struct_type, enum_type): Ditto.
8951 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
8952 (lookup_fundamental_type): Ditto.
8953 * gdbtypes.h (TYPE_ALLOC): Ditto.
8954 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
8955 (hpread_read_doc_function_type, hpread_read_struct_type)
8956 (fix_static_member_physnames, hpread_read_array_type)
8957 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8958 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
8959 (java_link_class_type): Ditto.
8960 * mdebugread.c (parse_type): Ditto.
8961 * objfiles.c (allocate_objfile, free_objfile): Ditto.
8962 * solib-sunos.c (solib_add_common_symbols): Ditto.
8963 * stabsread.c (define_symbol, read_type, read_member_functions,
8964 read_cpp_abbrev, read_one_struct_field): Ditto.
8965 * symfile.c (reread_symbols): Ditto.
8966 * symmisc.c (print_objfile_statistics): Ditto.
8967
8968 2004-02-07 Andrew Cagney <cagney@redhat.com>
8969
8970 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
8971 (tui_exec_info_content): Rename TuiExecInfoContent.
8972 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
8973 (TuiWinInfo, TuiWinInfoPtr): Ditto.
8974 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
8975 (TuiList, TuiListPtr): Ditto.
8976 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
8977 (TuiDataType, TuiDataTypePtr): Ditto.
8978 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
8979 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
8980 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
8981 (TuiSourceElement, TuiSourceElementPtr): Ditto.
8982 (TuiDataElement, TuiDataElementPtr): Ditto.
8983 (TuiWinElement, TuiWinElementPtr): Ditto.
8984 (TuiDataInfo, TuiDataInfoPtr): Ditto.
8985 (TuiCommandElement, TuiCommandElementPtr): Ditto.
8986 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
8987 (TuiWhichElement, TuiWhichElementPtr): Ditto.
8988 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
8989 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
8990 * tui/tui-command.c, tui/tui-data.c: Update references.
8991 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
8992 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
8993 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
8994 * tui/tui-winsource.c, tui/tui.c: Ditto.
8995
8996 2004-02-07 Mark Kettenis <kettenis@gnu.org>
8997
8998 * dwarf2-frame.h: Update copyright.
8999 (enum dwarf2_frame_reg_rule): New.
9000 (struct dwarf2_frame_state_reg): New.
9001 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9002 * dwarf2-frame.c: Update copyright.
9003 (enum dwarf2_reg_rule): Remove.
9004 (struct dwarf2_frame_state): Remove defenition of `struct
9005 dwarf2_frame_state_reg'.
9006 (read_reg): Call get_frame_arch to get the architecture instead of
9007 using CURRENT_GDBARCH.
9008 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9009 DWARF2_FRAME_.
9010 (dwarf2_frame_init_reg): New function.
9011 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9012 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9013 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9014 tags with DWARF2_FRAME_.
9015 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9016 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9017 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9018
9019 2004-02-06 Andrew Cagney <cagney@redhat.com>
9020
9021 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9022 (enum tui_data_type): Rename _TuiDataType.
9023 (struct tui_layout_def): Rename _TuiLayoutDef.
9024 (struct tui_source_element): Rename _TuiSourceElement.
9025 (struct tui_data_element): Rename _TuiDataElement.
9026 (struct tui_command_element): Rename _TuiCommandElement.
9027 (struct tui_locator_element): Rename _TuiLocatorElement.
9028 (union tui_which_element): Define.
9029 (struct tui_win_element): Rename _TuiWinElement.
9030 (struct tui_data_info): Rename _TuiDataInfo.
9031 (struct tui_source_info): Rename _TuiSourceInfo.
9032 (struct tui_command_info): Rename _TuiCommandInfo.
9033 (tui_initialize_static_data): Rename initializeStaticData.
9034 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9035 (tui_alloc_win_info): Rename allocWinInfo.
9036 (tui_init_generic_part): Rename initGenericPart.
9037 (tui_init_win_info): Rename initWinInfo.
9038 (tui_alloc_content): Rename allocContent.
9039 (tui_add_content_elements): Rename addContentElements.
9040 (tui_init_content_element): Rename initContentElement.
9041 (tui_free_window): Rename freeWindow.
9042 (tui_free_win_content): Rename freeWinContent.
9043 (tui_free_data_content): Rename freeDataContent.
9044 (tui_free_all_source_wins_content): Rename
9045 freeAllSourceWinsContent.
9046 (tui_del_window): Rename tuiDelWindow.
9047 (tui_del_data_windows): Rename tuiDelDataWindows.
9048 (tui_partial_win_by_name): Rename partialWinByName.
9049 (tui_win_name): Rename winName.
9050 (tui_current_layout): Rename currentLayout.
9051 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9052 (tui_term_height): Rename termHeight.
9053 (tui_set_term_height_to): Rename setTermHeightTo.
9054 (tui_term_width): Rename termWidth.
9055 (tui_set_term_width_to): Rename setTermWidthTo.
9056 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9057 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9058 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9059 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9060 (tui_source_windows): Rename sourceWindows.
9061 (tui_clear_source_windows): Rename clearSourceWindows.
9062 (tui_clear_source_windows_detail): Rename
9063 clearSourceWindowsDetail.
9064 (tui_clear_win_detail): Rename clearWinDetail.
9065 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9066 (tui_default_tab_len): Rename tuiDefaultTabLen.
9067 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9068 (tui_win_with_focus): Rename tuiWinWithFocus.
9069 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9070 (tui_layout_def): Rename tuiLayoutDef.
9071 (tui_win_resized): Rename tuiWinResized.
9072 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9073 (tui_next_win): Rename tuiNextWin.
9074 (tui_prev_win): Rename tuiPrevWin.
9075 (tui_add_to_source_windows): Rename addToSourceWindows.
9076 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9077 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9078 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9079 * tui/tui.c, tui/tui-data.c: Ditto.
9080 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9081 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9082
9083 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9084 (struct symtab): Declare.
9085 (tui_set_source_content): Rename tuiSetSourceContent.
9086 (tui_show_symtab_source): Rename tuiShowSource.
9087 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9088 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9089 * tui/tui-source.c: Update copyright. Update references.
9090 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9091 * tui/tui-stack.c: Update references.
9092
9093 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9094 (struct tui_win_info): Declare.
9095 (tui_scroll_forward): Rename tuiScrollForward.
9096 (tui_scroll_backward): Rename tuiScrollBackward.
9097 (tui_scroll_left): Rename tuiScrollLeft.
9098 (tui_scroll_right): Rename tuiScrollRight.
9099 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9100 (tui_resize_all): Rename tuiResizeAll.
9101 (tui_refresh_all_win): Rename tuiRefreshAll.
9102 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9103 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9104 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9105 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9106
9107 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9108 (tui_erase_data_content): Rename tuiEraseDataContent.
9109 (tui_display_all_data): Rename tuiDisplayAllData.
9110 (tui_check_data_values): Rename tuiCheckDataValues.
9111 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9112 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9113 (tui_first_data_element_no_in_line): Rename
9114 tuiFirstDataElementNoInLine.
9115 (tui_delete_data_content_windows): Rename
9116 tuiDeleteDataContentWindows.
9117 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9118 (tui_display_data_from): Rename tuiDisplayDataFrom.
9119 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9120 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9121 * tui/tui-win.c, tui/tui-regs.c: Update references.
9122 * tui/tui-layout.c, tui/tui.c: Update references.
9123
9124 * tui/tui-wingeneral.h: Update copyright.
9125 (m_allBeVisible): Delete macro.
9126 (m_allBeInvisible): Delete macro.
9127 (struct tui_gen_win_info): Declare.
9128 (struct tui_win_info): Declare.
9129 (tui_unhighlight_win): Rename unhighlightWin.
9130 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9131 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9132 (tui_make_window): Rename makeWindow.
9133 (tui_copy_win): Rename copyWin.
9134 (tui_box_win): Rename boxWin.
9135 (tui_highlight_win): Rename highlightWin.
9136 (tui_check_and_display_highlight_if_needed): Rename
9137 checkAndDisplayHighlightIfNeeded.
9138 (tui_refresh_all): Rename refreshAll.
9139 (tui_delete_win): Rename tuiDelwin.
9140 (tui_refresh_win): Rename tuiRefreshWin.
9141 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9142 (tui_make_visible, tui_make_invisible): New functions.
9143 (tui_make_all_visible, tui_make_all_invisible): New functions.
9144 (make_all_visible): Rename makeAllVisible.
9145 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9146 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9147 * tui/tui-windata.c, tui/tui-win.c: Update references.
9148 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9149 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9150
9151 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9152
9153 * proc-api.c (write_with_trace): Initialize local variable to
9154 silence compiler warning.
9155
9156 2004-02-06 Andrew Cagney <cagney@redhat.com>
9157
9158 * tui/tui-source.h: Do not include "defs.h".
9159 (struct tui_win_info): Declare.
9160 (tui_set_source_content_nil): Declare.
9161 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9162 (union tui_line_or_address): Rename _TuiLineOrAddress.
9163 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9164 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9165 (tui_update_source_window_as_is): Rename
9166 tuiUpdateSourceWindowAsIs.
9167 (tui_update_source_windows_with_addr): Rename
9168 tuiUpdateSourceWindowsWithAddr.
9169 (tui_update_source_windows_with_line): Rename
9170 tuiUpdateSourceWindowsWithLine.
9171 (tui_clear_source_content): Rename tuiClearSourceContent.
9172 (tui_erase_source_content): Rename tuiEraseSourceContent.
9173 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9174 (tui_show_source_content): Rename tuiShowSourceContent.
9175 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9176 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9177 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9178 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9179 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9180 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9181 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9182 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9183 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9184 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9185 (struct tui_win_info): Declare.
9186 * tui/tui-stack.c: Update references.
9187 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9188 * tui/tui-win.c, tui/tui-source.c: Ditto.
9189 * tui/tui.c, tui/tui-disasm.c: Ditto.
9190
9191 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9192
9193 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9194 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9195
9196 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9197
9198 * infrun.c (handle_inferior_event): Allow for breakpoint
9199 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9200 and SIGEMT. Update comments.
9201 * NEWS (Revised SPARC target): Mention support for non-executable
9202 stack.
9203
9204 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9205
9206 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9207 * inftarg.c: Update copyright year.
9208 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9209 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9210 (sparc_xfer_wcookie): New function.
9211 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9212 * Makefile.in (sparc-nat.o): Update dependencies.
9213 * config/sparc/nm-nbsd.h: Include "target.h".
9214 (NATIVE_XFER_WCOOKIE): New define.
9215 (sparc_xfer_wcookie): New prototype.
9216
9217 2004-02-04 Andrew Cagney <cagney@redhat.com>
9218
9219 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9220 SYSCALL_TRAP function.
9221 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9222
9223 2004-02-04 Andrew Cagney <cagney@redhat.com>
9224 Daniel Jacobowitz <drow@mvista.com>
9225
9226 * objfiles.h: Delete comments refering to inside_entry_func and
9227 DEPRECATED_FRAME_CHAIN_VALID.
9228 * defs.h (inside_entry_func): Update prototype..
9229 * blockframe.c (inside_entry_func): Rename to
9230 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9231 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9232
9233 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9234
9235 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9236 outside of #ifdef SOLIB_ADD region.
9237 (do_restore_lang_radix_cleanup): Ditto.
9238 (resolve_pending_breakpoint): Ditto.
9239
9240 2004-02-03 Andrew Cagney <cagney@redhat.com>
9241
9242 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9243 (process_note_abi_tag_sections): Delete unused function.
9244 (ia64_read_fp): Delete unused function.
9245 (gdbarch_extract_struct_value_address): Delete declaration.
9246
9247 2004-02-02 Andrew Cagney <cagney@redhat.com>
9248
9249 * vax-tdep.c (vax_frame_chain): Delete call to
9250 deprecated_inside_entry_file.
9251 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9252
9253 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9254
9255 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9256 column that's "empty" or "same value" when eliminating REG_RA
9257 rules.
9258
9259 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9260
9261 * NEWS: Add information about new pending breakpoint support.
9262
9263 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9264
9265 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9266 and pending fields for pending breakpoint support.
9267 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9268 (condition_command): Only parse condition if not a pending
9269 breakpoint.
9270 (print_one_breakpoint): Add support for pending breakpoints.
9271 (describe_other_breakpoints): Add checks to verify we are not
9272 dealing with pending breakpoints.
9273 (check_duplicates): Don't check pending breakpoints.
9274 (set_raw_breakpoint): Initialize pending flag.
9275 (do_restore_lang_radix_cleanup): New cleanup routine.
9276 (resolve_pending_breakpoint): New function.
9277 (re_enable_breakpoints_in_shlibs): Try and resolve any
9278 pending breakpoints via resolve_pending_breakpoint.
9279 (mention): Add pending breakpoint support.
9280 (parse_breakpoint_sals): Add new parameter to pass to
9281 decode_line_1 to indicate silent errors when files or functions
9282 are not found. Change all callers.
9283 (do_captured_parse_breakpoint): New function.
9284 (break_command_1): Change prototype to return an rc value and to
9285 take an optional pending breakpoint pointer. Support creating
9286 a pending breakpoint if a "not found" form of error occurs when
9287 parsing the breakpoint. Also support resolving an existing pending
9288 breakpoint and be silent if the resolution fails.
9289 (create_breakpoints): Change prototype to take pending breakpoint
9290 pointer. When resolving a pending breakpoint, use the new pointer
9291 to provide a conditional or commands added by the end-user.
9292 (delete_breakpoint): Add appropriate check for pending.
9293 (breakpoint_re_set_one): Ditto.
9294 (do_enable_breakpoint): Ditto.
9295
9296 2004-02-02 David Carlton <carlton@kealia.com>
9297
9298 * valops.c (enum oload_classification): New.
9299 (find_overload_match): Break implementation into separate
9300 functions; delete #if 0'd code; look for symbols within
9301 namespaces.
9302 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9303 (find_oload_champ,oload_method_static,classify_oload_match): New.
9304 * cp-support.h: Add declaration for cp_func_name; update
9305 declaration for make_symbol_overload_list.
9306 * cp-support.c (cp_func_name): New.
9307 (overload_list_add_symbol): Fix comment, use
9308 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9309 (make_symbol_overload_list): Take a function name and a namespace
9310 instead of a symbol; change implementation.
9311 (make_symbol_overload_list_using): New.
9312 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9313
9314 2004-02-02 Fred Fish <fnf@redhat.com>
9315
9316 * main.c (gdb_stdtarg): Move definition to group with other
9317 gdb_stdtarg definitions and update copyright years.
9318 * remote-sim.c (gdb_os_write_stderr): Write output to
9319 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9320 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9321 gdb_stderr stream and update copyright years.
9322
9323 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9324
9325 * Makefile.in (mips-linux-nat.o): Update dependencies.
9326 * mips-linux-nat.c: Include mips-tdep.h.
9327
9328 2004-02-01 Roland McGrath <roland@redhat.com>
9329
9330 * sol-thread.c (sol_thread_xfer_partial): New function.
9331 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9332 (init_sol_core_ops): Likewise.
9333
9334 * procfs.c (procfs_xfer_partial): New function.
9335 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9336 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9337
9338 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9339 procfs_xfer_auxv function.
9340
9341 * procfs.c (procfs_make_note_section): If we can read
9342 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9343 * linux-proc.c (linux_make_note_section): Likewise.
9344
9345 * auxv.h: New file.
9346 * auxv.c: New file.
9347 * Makefile.in (auxv_h): New variable.
9348 (COMMON_OBS): Add auxv.o here.
9349 (auxv.o): New target.
9350
9351 * corelow.c (core_xfer_partial): New function.
9352 (init_core_ops): Use it for core_ops.to_xfer_partial.
9353
9354 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9355 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9356 macro if that is defined.
9357
9358 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9361 and check the specified thread for each breakpoint.
9362 * breakpoint.h (bpstat_stop_status): Update prototype.
9363 * infrun.c (handle_inferior_event): Update calls to
9364 bpstat_stop_status.
9365
9366 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9367
9368 * Makefile.in (cli-cmds.o): Add $(readline_h).
9369
9370 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9371
9372 * cli/cli-cmds.c: Include readline.h.
9373 (complete_command): Pass the start of the last word to
9374 complete_line.
9375
9376 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9377
9378 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9379 argument, and change first argument to a CORE_ADDR.
9380 * breakpoint.h (bpstat_stop_status): Update prototype.
9381 * infrun.c (adjust_pc_after_break): Add a new comment.
9382 (handle_inferior_event): Update calls to bpstat_stop_status.
9383
9384 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9385
9386 * breakpoint.h: Update copyright years.
9387
9388 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9389
9390 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9391 (bpstat_stop_status): Don't decrement PC.
9392 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9393 prototype.
9394 * infrun.c (adjust_pc_after_break): New function.
9395 (handle_inferior_event): Call it, early. Remove later references
9396 to DECR_PC_AFTER_BREAK.
9397 (normal_stop): Add commentary.
9398
9399 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9400
9401 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9402 2004-01-27 double-free fix.
9403
9404 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9405
9406 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9407 (sparc32_frame_prev_register): Handle StackGhost.
9408 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9409
9410 2004-01-29 Roland McGrath <roland@redhat.com>
9411
9412 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9413 * configure: Regenerated.
9414
9415 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9416 * Makefile.in (procfs.o): Add dep.
9417
9418 2004-01-28 Andrew Cagney <cagney@redhat.com>
9419
9420 * tui/tui-stack.h: Update copyright.
9421 (struct frame_info): Add opaque declaration.
9422 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9423 (tui_show_locator_content): Rename tuiShowLocatorContent.
9424 (tui_show_frame_info): Rename tuiShowFrameInfo.
9425 * tui/tui-stack.c: Update copyright. Update references.
9426 * tui/tui-winsource.c: Update references.
9427 * tui/tui-win.c: Update references.
9428 * tui/tui-layout.c: Update references.
9429 * tui/tui-hooks.c: Update copyright, update references.
9430 * tui/tui.c: Update copyright, update references.
9431 * tui/tui-disasm.c: Update references.
9432
9433 2004-01-28 David Carlton <carlton@kealia.com>
9434
9435 * dwarf2read.c (add_partial_structure): Use demangled name if
9436 namespace equals "".
9437
9438 2004-01-27 Jim Blandy <jimb@redhat.com>
9439
9440 Clean up misapplied patch:
9441 * dwarf2read.c (determine_prefix): Change one of the two forward
9442 declarations for 'determine_prefix_aux' to a declaration for this.
9443 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9444 argument to 'die_specification'.
9445
9446 * dwarf2read.c (read_func_scope): Re-indent comment.
9447
9448 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9449
9450 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9451 b->exp to NULL after freeing so that error during re-parsing or
9452 evaluation of expressions associated with breakpoint don't
9453 eventually lead to re-freeing of storage.
9454 Committed by Andrew Cagney.
9455
9456 2004-01-27 Andrew Cagney <cagney@redhat.com>
9457
9458 * source.c (ambiguous_line_spec): Delete undefined declaration.
9459 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9460 (m32r_set_server_address, m32r_set_download_path): Ditto.
9461 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9462
9463 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9464
9465 * dwarf2read.c: Update calls to changed and renamed functions, and
9466 references to moved variables.
9467
9468 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9469 language, language_defn, list_in_scope, and ftypes members.
9470 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9471 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9472 (baseaddr): Remove globals.
9473
9474 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9475 (set_cu_language, die_is_declaration, die_specification)
9476 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9477 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9478 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9479 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9480
9481 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9482 cu.list_in_scope. Don't initialize cu_header_offset.
9483 (add_partial_symbol): Add local baseaddr.
9484 (psymtab_to_symtab_1): Add local baseaddr. Use
9485 objfile->section_offsets for consistency. Don't initialize
9486 cu_header_offset; do initialize cu.header.offset and
9487 cu.list_in_scope.
9488 (read_file_scope, read_func_scope, read_lexical_block_scope)
9489 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9490
9491 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9492
9493 * PROBLEMS: Add gdb/1516.
9494
9495 2003-12-29 Robert Millan <robertmh@gnu.org>
9496
9497 Patch committed by Andrw Cagney.
9498 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9499 * configure.tgt: Match knetbsd*-gnu.
9500
9501 2004-01-26 Andrew Cagney <cagney@redhat.com>
9502
9503 * breakpoint.c (catch_command_1): Delete #ifdef code.
9504 (catch_fork_command_1): Delete #ifdef wrapper.
9505 (catch_exec_command_1): Ditto.
9506 (catch_load_command_1): Ditto.
9507 (catch_unload_command_1): Ditto.
9508
9509 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9510 (catch_breakpoint): Delete #if0ed function.
9511 (disable_catch_breakpoint): Ditto.
9512 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9513 (disable_catch, enable_catch, delete_catch): Ditto.
9514
9515 2004-01-26 Andrew Cagney <cagney@redhat.com>
9516
9517 * remote.c (echo_check, quit_flag): Delete variables.
9518 (cisco_kernel_mode): Delete variable.
9519 (minitelnet_return, tty_input, escape_count): Delete variables.
9520 (remote_cisco_mode): Delete variable.
9521 (remote_cisco_open, remote_cisco_close): Delete function.
9522 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9523 (init_remote_cisco_ops): Delete function.
9524 (_initialize_remote): Do not install "remote cisco" code.
9525 (read_frame): Delete cisco specific code.
9526 (remote_info_process): Delete function.
9527 (remote_wait): Delete cisco specific code.
9528 (remote_cisco_section_offsets): Delete function.
9529 (remote_cisco_objfile_relocate): Delete function.
9530 (remote_async_wait): Delete cisco specific code.
9531 (minitelnet, readtty, readsocket): Delete function.
9532
9533 2004-01-26 Andrew Cagney <cagney@redhat.com>
9534
9535 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9536 comments mentioning extract_returned_value_address.
9537 * infcmd.c (print_return_value): Update. Add comments on
9538 extract_returned_value_address.
9539 * stack.c (return_command): Add comments on
9540 extract_returned_value_address.
9541 * values.c: Update comment.
9542 * m32r-tdep.c: Update comment.
9543 * sparc-tdep.c: Update comment.
9544 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9546 * sh64-tdep.c (sh64_gdbarch_init): Update.
9547 * sh-tdep.c (sh_gdbarch_init): Update.
9548 * s390-tdep.c (s390_gdbarch_init): Update.
9549 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9550 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9551 * m68k-tdep.c (m68k_gdbarch_init): Update.
9552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9553 * m32r-tdep.c (m32r_gdbarch_init): Update.
9554 * ia64-tdep.c (ia64_gdbarch_init): Update.
9555 * h8300-tdep.c (h8300_gdbarch_init): Update.
9556 * frv-tdep.c (frv_gdbarch_init): Update.
9557 * arm-tdep.c (arm_gdbarch_init): Update.
9558 * alpha-tdep.c (alpha_gdbarch_init): Update.
9559
9560 2004-01-26 Andrew Cagney <cagney@redhat.com>
9561
9562 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9563 SYMBOL_LOCATION_FUNCS
9564 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9565 "struct symbol_ops".
9566 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9567 type to "struct symbol_ops".
9568 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9569 (struct symbol): Replace ".aux_value.loc.funcs" and
9570 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9571 (SYMBOL_OBJFILE): Delete macro.
9572 (SYMBOL_LOCATION_FUNCS): Delete macro.
9573 (SYMBOL_LOCATION_BATON): Update.
9574 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9575 intead of SYMBOL_LOCATION_FUNCS.
9576 * ax-gdb.c (gen_var_ref): Ditto.
9577 * printcmd.c (address_info): Ditto.
9578 * findvar.c (read_var_value): Ditto.
9579 (symbol_read_needs_frame): Ditto.
9580
9581 2004-01-26 Andrew Cagney <cagney@redhat.com>
9582
9583 * dwarf2read.c (read_func_scope): Document frame-base hack.
9584
9585 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9586
9587 * infcmd.c (print_return_value): Plug memory leak; delete
9588 ui_stream object. Rename argument `structure_return' to
9589 `struct_return'.
9590
9591 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9592
9593 * infcmd.c (print_return_value): Wrap long lines.
9594 (finish_command_continuation, finish_command): Remove unused
9595 variable `funcaddr'. Fix some coding-standards problems.
9596
9597 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9598 SECT_SIZE is large enough, not whether it's exactly the right size.
9599 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9600 TDEP->fpregset to zero.
9601
9602 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9603 floating-point registers for traditional NetBSD core files.
9604 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9605 TDEP->sizeof_fpregset here.
9606
9607 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9608
9609 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9610 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9611 function with code split out from
9612 sparc32nbsd_sigcontext_frame_cache.
9613 (sparc32nbsd_sigcontext_frame_cache): Use
9614 sparc32nbsd_sigcontext_saved_regs.
9615 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9616 OpenBSD.
9617 * sparcobsd-tdep.c: New file.
9618 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9619 (sparcobsd-tdep.o): New dependency.
9620 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9621 * config/sparc/obsd.mt: New file.
9622
9623 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9624 TDEP->fpregset to be initialized to enable core file register
9625 sets.
9626
9627 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9628
9629 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9630 Add opaque declarations.
9631 (sparc64nbsd_sigcontext_saved_regs): New prototype.
9632 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
9633 function with code split out from
9634 sparc64nbsd_sigcontext_frame_cache.
9635 (sparc64nbsd_sigcontext_frame_cache): Use
9636 sparc64nbsd_sigcontext_saved_regs.
9637 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
9638 OpenBSD.
9639 * sparc64obsd-tdep.c: New file.
9640 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
9641 (sparc64obsd-tdep.o): New dependency.
9642 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
9643 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
9644 * config/sparc/obsd64.mt: New file.
9645
9646 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
9647 read the instruction at PC.
9648
9649 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
9650 value of GDB_OSABI_DEFAULT.
9651 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
9652 instead of GDB_OSABI_NETBSD_AOUT.
9653
9654 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
9655
9656 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
9657 copyright.
9658
9659 2004-01-23 Andrew Cagney <cagney@redhat.com>
9660
9661 * printcmd.c (display_command): Replace tui_set_display call with
9662 tui_set_layout_for_display_command.
9663 * tui/tui.h (enum tui_win_type): Define.
9664 (tui_set_layout): Delete declaration.
9665 (tui_set_layout_for_display_command): Rename set_tui_layout.
9666 * tui/tui-data.h (enum tui_layout_type): Define.
9667 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
9668 "tui.h".
9669 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
9670 (tui_default_win_height): Rename tuiDefaultWinHeight.
9671 (tui_default_win_viewport_height): Rename
9672 tuiDefaultWinViewportHeight.
9673 (tui_set_layout): RenametuiSetLayout.
9674 * tui/tui-layout.c: Update references.
9675 * tui/tui.c: Update references.
9676 * tui/tui-disasm.c: Update references.
9677
9678 2004-01-23 David Carlton <carlton@kealia.com>
9679
9680 Partial workaround for PR c++/1511:
9681 * cp-namespace.c: Include frame.h.
9682 (cp_lookup_transparent_type): New
9683 (cp_lookup_transparent_type_loop): New.
9684 * cp-support.h: Declare cp_lookup_transparent_type.
9685 * symtab.c (basic_lookup_transparent_type): Renamed from
9686 lookup_transparent_type.
9687 (lookup_transparent_type): Replace old body by a call to
9688 current_language->la_lookup_transparent_type.
9689 * symtab.h: Update copyright. Declare
9690 basic_lookup_transparent_type.
9691 * language.h: Update copyright.
9692 (struct language_defn): Add la_lookup_transparent_type.
9693 * language.c: Update copyright.
9694 (unknown_language_defn): Add basic_lookup_transparent_type.
9695 (auto_language_defn): Add basic_lookup_transparent_type.
9696 (local_language_defn): Add basic_lookup_transparent_type.
9697 * ada-lang.c: Update copyright.
9698 (ada_language_defn): Add basic_lookup_transparent_type.
9699 * c-lang.c: Update copyright.
9700 (c_language_defn): Add basic_lookup_transparent_type.
9701 (cplus_language_defn): Add basic_lookup_transparent_type.
9702 (asm_language_defn): Add basic_lookup_transparent_type.
9703 (minimal_language_defn): Add basic_lookup_transparent_type.
9704 * f-lang.c: Update copyright.
9705 (f_language_defn): Add basic_lookup_transparent_type.
9706 * jv-lang.c: Update copyright.
9707 (java_language_defn): Add basic_lookup_transparent_type.
9708 * m2-lang.c: Update copyright.
9709 (m2_language_defn): Add basic_lookup_transparent_type.
9710 * objc-lang.c: Update copyright.
9711 (objc_language_defn): Add basic_lookup_transparent_type.
9712 * p-lang.c: Update copyright.
9713 (p_language_defn): Add basic_lookup_transparent_type.
9714 * scm-lang.c: Update copyright.
9715 (scm_language_defn): Add basic_lookup_transparent_type.
9716 * Makefile.in (cp-namespace.o): Depend on frame.h.
9717
9718 2004-01-23 David Carlton <carlton@kealia.com>
9719
9720 Patch for PR c++/1520:
9721 * dwarf2read.c (read_func_scope): Set processing_current_prefix
9722 properly if we have a specification die.
9723 (determine_prefix_aux): Rename from determine_prefix.
9724 (determine_prefix): Like the old determine_prefix, but never
9725 returns NULL.
9726
9727 2004-01-23 Theodore A. Roth <troth@openavr.org>
9728
9729 * avr-tdep.c: Update copyright.
9730 (avr_iaddr_p): Delete unused function.
9731 (avr_saddr_p): Delete unused function.
9732
9733 2004-01-23 David Carlton <carlton@kealia.com>
9734
9735 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
9736 Fix for PR symtab/1534.
9737
9738 2004-01-23 Mark Kettenis <kettenis@gnu.org>
9739
9740 * NEWS (New native configurations): Mention OpenBSD/sparc and
9741 OpenBSD/sparc64.
9742 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
9743 * configure.host: Likewise.
9744 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
9745 handler for OpenBSD.
9746 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
9747
9748 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9749
9750 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
9751 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
9752
9753 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
9754 * cli/cli-cmds.c (shell_escape): Likewise.
9755
9756 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
9757 OpenBSD .note.openbsd.ident sections.
9758
9759 2004-01-22 David Carlton <carlton@kealia.com>
9760
9761 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
9762 get_scope_pc_bounds.
9763 (read_file_scope): Ditto.
9764 (get_scope_pc_bounds): New function, produced by extracting code
9765 from the above two functions, consolidating it, and adding support
9766 for DW_TAG_namespace.
9767
9768 2004-01-22 Mark Kettenis <kettenis@gnu.org>
9769
9770 * osabi.c (MAX_NOTESZ): New define.
9771 (check_note): New function.
9772 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
9773 check_note.
9774
9775 2004-01-21 Roland McGrath <roland@redhat.com>
9776
9777 * MAINTAINERS (write after approval): Add myself.
9778
9779 2004-01-21 Eli Zaretskii <eliz@gnu.org>
9780
9781 * utils.c (init_page_info): Move declarations of `rows' and
9782 `cols' before the __GO32__-specific code. Move the closing brace
9783 outside the #ifdef __GO32__..#endif block.
9784 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
9785
9786 2004-01-21 Paul Brook <paul@codesourcery.com>
9787
9788 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
9789 BPSTAT_WHAT_CHECK_SHLIBS.
9790
9791 2004-01-21 Paul Brook <paul@codesourcery.com>
9792
9793 * MAINTAINERS: Add myself to write-after-approval.
9794
9795 2004-01-20 Andrew Cagney <cagney@redhat.com>
9796
9797 * ax-gdb.c (print_axs_value): Delete unused function.
9798 * jv-lang.c (java_lookup_type): Delete unused function.
9799 * cli/cli-dump.c (dump_filetype): Delete unused function.
9800 * remote-mips.c (remote_mips_insert_hw_breakpoint)
9801 (remote_mips_remove_hw_breakpoint): Delete unused functions.
9802 (mips_getstring): Delete unused function.
9803 (pmon_insert_breakpoint): Delete #if0ed function.
9804 (PMON_MAX_BP): Delete #if0ed MACRO.
9805 (mips_pmon_bp_info): Delete #if0ed variable.
9806 (pmon_remove_breakpoint): Delete #if0ed function.
9807 * monitor.c (monitor_write_even_block): Delete unused function.
9808 (monitor_write_memory_block): Delete #if0ed code.
9809 * dink32-rom.c (dink32_load): Delete unused function.
9810 (_initialize_dink32_rom): Delete #if0ed code.
9811 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
9812
9813 * tui/tui-command.c: Update references.
9814 * tui/tui-io.c: Update references.
9815 * tui/tui-command.h: Update copyright.
9816 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
9817
9818 * source.c (ambiguous_line_spec): Delete never-defined function.
9819 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
9820 * gdbtypes.c (add_name, add_mangled_type): Ditto.
9821 * cli/cli-cmds.c (validate_comname): Ditto.
9822
9823 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
9824 "tui-data.h".
9825 (tui_set_disassem_content): Rename tuiSetDisassemContent.
9826 (tui_show_disassem): Rename tuiShowDisassem.
9827 (tui_show_disassem_and_update_source): Rename
9828 tuiVerticalDisassemScroll.
9829 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
9830 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
9831 * tui/tui.h: Update copyright.
9832 (enum tui_status): Define.
9833 * tui/tui-data.h (enum tui_scroll_direction): Define.
9834 * tui/tui-disasm.c: Update copyright. Update references.
9835 * tui/tui-winsource.c: Update copyright. Update references.
9836 * tui/tui-win.c: Update references.
9837 * tui/tui-layout.c: Update references.
9838
9839 2004-01-20 Andrew Cagney <cagney@redhat.com>
9840
9841 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
9842 sym2 to start of block.
9843
9844 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
9845
9846 * MAINTAINERS: Delete mmalloc.
9847 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
9848 * NEWS: Mention removal of --with-malloc.
9849 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
9850 * config.in: Regenerate.
9851 * configure: Regenerate.
9852 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
9853 USE_MMALLOC, MMCHECK_FORCE.
9854 * gdbinit.in: Remove mmalloc.
9855 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
9856 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
9857 * config/i386/go32.mh: Likewise.
9858 * config/i386/interix.mh: Likewise.
9859 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
9860
9861 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
9862
9863 * linespec.c (decode_variable, symtab_from_filename): Call
9864 error_silent with error message instead of throwing an exception
9865 directly.
9866 * defs.h (error_silent, error_output_message): Add prototypes.
9867 (catch_exceptions_with_msg): Ditto.
9868 * utils.c (error_silent, error_output_message): New functions.
9869 * top.c (catch_exceptions_with_msg): New function.
9870
9871 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
9872
9873 * mi/mi-cmds.h (enum print_values): Add definition.
9874
9875 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
9876 type and value for simple data types and just the name and type
9877 for complex ones, if required.
9878
9879 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
9880 children, if required.
9881
9882 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9883
9884 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
9885 unused declarations.
9886
9887 2004-01-19 Andrew Cagney <cagney@redhat.com>
9888
9889 * top.h (mapped_symbol_files): Delete declaration.
9890 * main.c (captured_main): Delete option "m" and "mapped".
9891 * objfiles.c (mapped_symbol_files): Delete variable.
9892 * symfile.c (symbol_file_command): Delete mmap code.
9893 (symbol_file_add_with_addrs_or_offsets): Ditto.
9894 (add_symbol_file_command, reread_separate_symbols): Ditto.
9895 * objfiles.h (OBJF_MAPPED): Delete.
9896 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
9897 (free_objfile) [USE_MMALLOC]: Ditto.
9898 (open_existing_mapped_file): Delete function.
9899 (open_mapped_file): Delete function.
9900 (map_to_file): Delete function.
9901
9902 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9903
9904 * infrun.c (step_into_function): Account for possible breakpoint
9905 adjustment when computing ``stop_func_start''.
9906
9907 2004-01-19 Kevin Buettner <kevinb@redhat.com>
9908
9909 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
9910 the region size against the size of a pointer, not the size of
9911 a register as given by DEPRECATED_REGISTER_SIZE.
9912
9913 2004-01-19 Andrew Cagney <cagney@redhat.com>
9914
9915 * tui/tui-regs.h: Include "tui-data.h".
9916 (tuiFirstRegElementNoInLine): Delete declaration.
9917 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
9918 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
9919 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
9920 (tui_calculate_regs_column_count): Rename
9921 tuiCalculateRegsColumnCount.
9922 (tui_check_register_values): Rename tuiCheckRegisterValues.
9923 (tui_show_registers): Rename tuiShowRegisters.
9924 (tui_display_registers_from_line): Rename
9925 tuiDisplayRegistersFromLine.
9926 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
9927 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
9928 (tui_first_reg_element_no_inline): Rename
9929 tuiFirstRegElementNoInLine.
9930 * tui/tui-data.h: Update copyright.
9931 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
9932 * tui/tui-windata.c: Update copyright, update references.
9933 * tui/tui-regs.c: Update copyright, update references.
9934 * tui/tui-win.c: Update copyright, update references.
9935 * tui/tui-layout.c: Update copyright, update references.
9936
9937 2004-01-18 Andrew Cagney <cagney@redhat.com>
9938
9939 * tui/tui-io.c: Update copyright.
9940 (key_is_end_sequence, key_is_backspace): New functions.
9941 (key_is_command_char, key_is_start_sequence): New function.
9942 (tui_getc): Update references.
9943 * tui/tui-io.h: Update copyright.
9944 (m_tuiStartNewLine): Delete macro.
9945 (m_isBackspace, m_isDeleteChar): Delete macros.
9946 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
9947 (m_isNextPage, m_isPrevPage): Delete macros.
9948 (m_isLeftArrow, m_isRightArrow): Delete macros.
9949 (m_isXdbStyleCommandChar): Delete macro.
9950 (key_is_start_sequence): Declare, replace m_isStartSequence.
9951 (key_is_end_sequence): Declare, replace m_isEndSequence.
9952 (key_is_backspace): Declare ,replace m_isBackspace.
9953 (key_is_command_char): Declare, replace m_isCommandChar.
9954 * tui/tui-command.c: Update copyright.
9955 (tuiDispatchCtrlChar): Update references.
9956
9957 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
9958 tuiSourceWin.h.
9959
9960 * tui/tui-command.c: Rename tui/tuiCommand.c.
9961 * tui/tui-command.h: Rename tui/tuiCommand.h.
9962 * tui/tui-data.c: Rename tui/tuiData.c.
9963 * tui/tui-data.h: Rename tui/tuiData.h.
9964 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
9965 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
9966 * tui/tui-io.c: Rename tui/tuiIO.c.
9967 * tui/tui-io.h: Rename tui/tuiIO.h.
9968 * tui/tui-layout.c: Rename tui/tuiLayout.c.
9969 * tui/tui-layout.h: Rename tui/tuiLayout.h.
9970 * tui/tui-regs.c: Rename tui/tuiRegs.c.
9971 * tui/tui-regs.h: Rename tui/tuiRegs.h.
9972 * tui/tui-source.c: Rename tui/tuiSource.c.
9973 * tui/tui-source.h: Rename tui/tuiSource.h.
9974 * tui/tui-stack.c: Rename tui/tuiStack.c.
9975 * tui/tui-stack.h: Rename tui/tuiStack.h.
9976 * tui/tui-win.c: Rename tui/tuiWin.c.
9977 * tui/tui-win.h: Rename tui/tuiWin.h.
9978 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
9979 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
9980 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
9981 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
9982 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
9983 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
9984 * tui/tui-file.c: Update includes.
9985 * tui/tui-hooks.c: Update includes.
9986 * tui/tui-interp.c: Update includes.
9987 * tui/tui.c: Update includes.
9988 * Makefile.in: Update all tui/ dependencies.
9989 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
9990
9991 * Makefile.in: Update copyright. Update dependencies.
9992
9993 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
9994 problem.
9995
9996 2004-01-18 Andrew Cagney <cagney@redhat.com>
9997
9998 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
9999 instead of register_gdbarch_init.
10000
10001 * remote-sds.c (tohex): Delete unused function. Update copyright.
10002 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10003 * v850-tdep.c (v850_register_virtual_size): Ditto.
10004 * target.c (normal_target_post_startup_inferior): Ditto.
10005 * source.c (ambiguous_line_spec): Ditto.
10006 * remote.c (adapt_remote_get_threadinfo): Ditto.
10007 * mi/mi-out.c (out_field_fmt): Ditto.
10008 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10009 (output_control_change_notification): Ditto.
10010 * m68k-tdep.c (m68k_register_byte): Ditto.
10011 (m68k_remote_breakpoint_from_pc): Ditto.
10012 * ui-out.c (init_ui_out_state): Delete unused declaration.
10013 * stabsread.c (search_value): Ditto.
10014 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10015 * maint.c (print_section_table): Ditto.
10016 * infrun.c (set_follow_fork_mode_command): Ditto.
10017
10018 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10019
10020 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10021 DW_CFA_def_cfa_exporession. Add support for
10022 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10023 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10024
10025 2004-01-18 Andrew Cagney <cagney@redhat.com>
10026
10027 * ocd.c: Update copyright.
10028 (bdm_read_register_command): Delete unused function.
10029 (_initialize_remote_ocd): Delete commented out reference.
10030 (get_quoted_char, reset_packet): Delete #if0ed function.
10031 (output_packet, put_quoted_char): Delete #if0ed function.
10032 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10033 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10034 (BDM_BREAKPOINT): Delete #if0ed macro.
10035 (remote_timeout): Delete #if0ed variable.
10036
10037 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10038
10039 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10040 (core-sol2.o): Remove dependency.
10041 * core-sol2.c: Remove file.
10042
10043 2004-01-17 Andrew Cagney <cagney@redhat.com>
10044
10045 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10046 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10047 enums.
10048
10049 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10050
10051 * remote.c: Update copyright years.
10052
10053 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10056
10057 2004-01-17 Andrew Cagney <cagney@redhat.com>
10058
10059 * mdebugread.c: Update copyright.
10060 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10061 (parse_type, parse_procedure): Ditto.
10062 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10063
10064 * cris-tdep.c (cris_store_struct_return): Put back accidently
10065 deleted function.
10066
10067 * gdbarch.sh: Update copyright year.
10068 * gdbarch.h, gdbarch.c: Re-generate.
10069
10070 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10071
10072 Suggested by George Anzinger.
10073 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10074 correct stack offset. Include unknown opcode numbers in the error
10075 message.
10076
10077 2004-01-17 Andrew Cagney <cagney@redhat.com>
10078
10079 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10080 extract_struct_value_address, i386 does not set it.
10081 * sparc64-tdep.c (sparc64_init_abi): Do not set
10082 extract_struct_value_address, never called.
10083 (sparc64_extract_struct_value_address): Delete function.
10084 * m68hc11-tdep.c: Update copyright.
10085 (m68hc11_gdbarch_init): Delete redundant assignment of
10086 extract_struct_value_address.
10087 * i386-tdep.c: Update copyright.
10088 (i386_gdbarch_init): Do not set extract_struct_value_address,
10089 never called.
10090 (i386_extract_struct_value_address): Delete function.
10091 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10092 extract_struct_value_address, never called.
10093 (sparc32_extract_struct_value_address): #if 0 function. Add
10094 comments explaining its future.
10095
10096 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10097
10098 * arm-tdep.c (arm_write_pc): New function.
10099 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10100
10101 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * breakpoint.c (must_shift_inst_regs): Delete.
10104 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10105 and SHIFT_INST_REGS.
10106 * infcmd.c (step_1, step_1_continuation): Delete references to
10107 SHIFT_INST_REGS.
10108 * infrun.c (keep_going): Likewise.
10109 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10110 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10111
10112 2004-01-17 Andrew Cagney <cagney@redhat.com>
10113
10114 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10115 * gdbarch.h, gdbarch.c: Re-generate.
10116 * infcmd.c (print_return_value): Delete reference to
10117 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10118
10119 * cris-tdep.c (cris_gdbarch_init): Do not set
10120 deprecated_extract_struct_value_address.
10121
10122 * xstormy16-tdep.c: Update copyright.
10123 (xstormy16_extract_struct_value_address): Update to current
10124 extract struct value address interface.
10125 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10126 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10127 current extract struct value address interface.
10128 (sh64_gdbarch_init): Set extract_struct_value_address.
10129
10130 * cris-tdep.c: Update copyright.
10131 (cris_extract_struct_value_address): Delete function.
10132 (struct_return_address): Delete variable.
10133 (cris_store_struct_return): Do not set struct_return_address.
10134
10135 * mcore-tdep.c: Update copyright.
10136 (mcore_extract_struct_value_address): Delete function. Update
10137 comments.
10138 (mcore_gdbarch_init): Update.
10139 * mn10300-tdep.c: Update copyright.
10140 (mn10300_extract_struct_value_address): Delete function.
10141 (mn10300_gdbarch_init): Update.
10142 * v850-tdep.c: Update copyright.
10143 (v850_extract_struct_value_address): Delete.
10144 (v850_gdbarch_init): Update.
10145 * ns32k-tdep.c: Update copyright.
10146 (ns32k_extract_struct_value_address): Delete.
10147 (ns32k_gdbarch_init): Update.
10148 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10149 (hppa_gdbarch_init): Update.
10150 * vax-tdep.c: Update copyright.
10151 (vax_extract_struct_value_address): Delete.
10152 (vax_gdbarch_init): Update.
10153
10154 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10155 * gdbarch.h, gdbarch.c: Re-generate.
10156 * procfs.c (procfs_fetch_registers): Delete reference to
10157 DEPRECATED_NPC_REGNUM.
10158 (procfs_store_registers): Ditto.
10159 * regcache.c (generic_target_write_pc): Simplify.
10160 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10161
10162 * core-sol2.c (fetch_core_registers): Replace
10163 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10164
10165 * hppa-tdep.c: Update copyright year.
10166 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10167 NPC_REGNUM.
10168 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10169
10170 * mips-tdep.c (mips_write_pc): New function.
10171 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10172 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10173 (mips_find_saved_regs, mips_software_single_step: Ditto.
10174 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10175 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10176
10177 2004-01-17 Andrew Cagney <cagney@redhat.com>
10178
10179 * mips-tdep.c: Re-indent. Group functions by ABI.
10180
10181 2004-01-17 Andrew Cagney <cagney@redhat.com>
10182
10183 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10184 * gdbarch.c: Re-generate.
10185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10186 DECR_PC_AFTER_BREAK to zero.
10187 * vax-tdep.c (vax_gdbarch_init): Ditto.
10188 * v850-tdep.c (v850_gdbarch_init): Ditto.
10189 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10190 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10191 * sh-tdep.c (sh_gdbarch_init): Ditto.
10192 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10193 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10195 * mips-tdep.c (mips_gdbarch_init): Ditto.
10196 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10198 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10199 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10200 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10201 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10202 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10203 * frv-tdep.c (frv_gdbarch_init): Ditto.
10204 * cris-tdep.c (cris_gdbarch_init): Ditto.
10205 * avr-tdep.c (avr_gdbarch_init): Ditto.
10206 * arm-tdep.c (arm_gdbarch_init): Ditto.
10207 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10208
10209 2004-01-17 J. Brobecker <brobecker@gnat.com>
10210
10211 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10212 Delete, no longer used.
10213 (read_subrange_type): New function, mostly extracted from
10214 read_array_type().
10215 (read_array_type): Replace extracted code by call to
10216 read_subrange_type().
10217 (dwarf2_get_attr_constant_value): New function.
10218 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10219 (add_partial_symbol): Likewise.
10220 (process_die): Likewise.
10221 (new_symbol): Likewise.
10222 (read_type_die): Likewise.
10223
10224 2004-01-16 Andrew Cagney <cagney@redhat.com>
10225
10226 * symfile.c: Update copyright year.
10227 (compare_symbols): Delete unused function.
10228 * stabsread.c: Update copyright year.
10229 (lrs_general_complaint): Delete unused function.
10230 (ref_search_value): Ditto.
10231 (get_substring): Delete declaration.
10232 * sh64-tdep.c: Update copyright year.
10233 (sh64_get_gdb_regnum): Delete unused function.
10234 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10235 Delete unused function.
10236
10237 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10238
10239 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10240 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10241
10242 2004-01-16 Andrew Cagney <cagney@redhat.com>
10243
10244 Changes from Peter Schauer.
10245 * rs6000-tdep.c: Update copyright year.
10246 (rs6000_push_dummy_call): Update the stack pointer before
10247 accessing the corresponding stack region.
10248 * rs6000-nat.c: Update copyright year.
10249 (set_host_arch): Set "info.abfd" to "exec_bfd".
10250
10251 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10252
10253 * blockframe.c: Update copyright year.
10254 (inside_entry_func): Don't treat a zero PC specially.
10255
10256 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10257
10258 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10259 variable.
10260 (gcore_create_callback): Ditto. Skip any memory segment that has
10261 no permissions set.
10262
10263 2004-01-14 David Carlton <carlton@kealia.com>
10264
10265 Change symbols for C++ nested types to contain the fully qualified
10266 name, if possible. (At least in the DWARF-2 case.) Partial fix
10267 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10268 c++/895.
10269 * c-exp.y (qualified_type): Handle types nested within classes.
10270 * cp-namespace.c: Update comments.
10271 (cp_set_block_scope): Delete #if 0.
10272 (cp_lookup_nested_type): Handle types nested within classes.
10273 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10274 when appropriate.
10275 (add_partial_symbol): Add the name of the enclosing namespace to
10276 types.
10277 (pdi_needs_namespace): New.
10278 (add_partial_namespace): Tweak comment.
10279 (add_partial_structure): New.
10280 (psymtab_to_symtab_1): Initialize processing_current_prefix
10281 here...
10282 (process_die): instead of here.
10283 (read_structure_scope): Try to figure out the name of the class or
10284 namespace that the structure might be defined within.
10285 (read_enumeration): Generate fully-qualified names, if possible.
10286 (read_namespace): Don't set name to NULL.
10287 (die_specification): New.
10288 (new_symbol): Generate fully-qualified names for types.
10289 (read_type_die): Determine appropriate prefix.
10290 (determine_prefix): New.
10291 (typename_concat): New.
10292 (class_name): New.
10293 * valops.c (value_aggregate_elt): Pass NOSIDE to
10294 value_struct_elt_for_reference.
10295 (value_struct_elt_for_reference): Make static, add NOSIDE
10296 parameter, call value_maybe_namespace_elt as a last resort.
10297 (value_namespace_elt): Break out code into
10298 value_maybe_namespace_elt.
10299 (value_maybe_namespace_elt): New.
10300
10301 2004-01-12 Andrew Cagney <cagney@redhat.com>
10302
10303 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10304 cooked floating-point registers.
10305 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10306 and value_to_register.
10307
10308 2004-01-13 Andrew Cagney <cagney@redhat.com>
10309
10310 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10311 * gdbarch.c: Re-generate.
10312 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10313 FUNCTION_START_OFFSET.
10314 * v850-tdep.c (v850_gdbarch_init): Ditto.
10315 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10316 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10317 * sh-tdep.c (sh_gdbarch_init): Ditto.
10318 * s390-tdep.c (s390_gdbarch_init): Ditto.
10319 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10320 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10322 * mips-tdep.c (mips_gdbarch_init): Ditto.
10323 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10324 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10326 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10327 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10328 * i386-tdep.c (i386_gdbarch_init): Ditto.
10329 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10330 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10331 * frv-tdep.c (frv_gdbarch_init): Ditto.
10332 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10333 * cris-tdep.c (cris_gdbarch_init): Ditto.
10334 * avr-tdep.c (avr_gdbarch_init): Ditto.
10335 * arm-tdep.c (arm_gdbarch_init): Ditto.
10336 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10337
10338 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10339
10340 * infrun.c (follow_fork_mode_ask): Remove.
10341 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10342 (follow_fork): Simplify and remove internal error for
10343 follow_fork_mode_ask.
10344 (_initialize_infrun): Update "set follow-fork-mode" help text.
10345
10346 2004-01-13 Andrew Cagney <cagney@redhat.com>
10347
10348 * configure.in: Update copyright year.
10349 (build_warnings): Add -Wunused-label.
10350 * configure: Re-generate.
10351
10352 2004-01-12 Andrew Cagney <cagney@redhat.com>
10353
10354 * exec.h (exec_ops): Make "extern".
10355
10356 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10357 the function is void.
10358 (mips_pseudo_register_write): Ditto.
10359
10360 2004-01-12 Andrew Cagney <cagney@redhat.com>
10361
10362 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10363 call. Never defined.
10364 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10365 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10366 (struct sparc_gregset, struct regcache): Ditto.
10367 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10368
10369 2004-01-12 Andrew Cagney <cagney@redhat.com>
10370
10371 * mi/ChangeLog: Delete file. Renamed to ...
10372 * mi/ChangeLog-1999-2003: New file.
10373 * tui/ChangeLog: Delete file. Renamed to ...
10374 * tui/ChangeLog-1998-2003: New file.
10375
10376 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10377
10378 * sparc64nbsd-tdep.c: Include "regset.h".
10379 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10380 Remove variables.
10381 (fetch_core_registers): Remove function.
10382 (sparc64nbsd_core_fns): Remove variable.
10383 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10384 functions.
10385 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10386 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10387 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10388
10389 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10390 sparc_extract_struct_value_address.
10391 (sparc32_gdbarch_init): Set extract_struct_value_address.
10392 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10393 function.
10394 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10395 return_value_on_stack.
10396
10397 * NEWS: Mention that %cs and %ss have been added to the AMD64
10398 configurations
10399
10400 * frame.c: Update copyright year.
10401 (get_prev_frame): Improve comment.
10402
10403 * sparc64fbsd-tdep.c: Include "regset.h".
10404 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10405 Remove variables.
10406 (fetch_core_registers): Remove function.
10407 (sparc64fbsd_core_fns): Remove variable.
10408 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10409 functions.
10410 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10411 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10412 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10413
10414 * sparcnbsd-tdep.c: Include "regset.h".
10415 (fetch_core_registers): Remove function.
10416 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10417 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10418 functions.
10419 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10420 TDEP->fpregset.
10421 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10422
10423 * sparc-tdep.h (struct regset): Provide opaque declaration.
10424 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10425 fpregset and sizeof_fpregset members.
10426 * sparc-tdep.c (struct regset): Provide opaque declaration.
10427 (sparc_regset_from_core_section): New function.
10428 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10429 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10430 Set regset_from_core_section when appropriate.
10431
10432 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10433
10434 * x86-64-tdep.c (amd64_non_pod_p): New function.
10435 (amd64_classify_aggregate): Return class memory for non-POD
10436 C++ structure types.
10437
10438 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10439 argument. Use it to reserve a register if necessary.
10440 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10441 amd64_push_arguments.
10442
10443 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10444
10445 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10446 register numbers in comments.
10447 * x86-64-tdep.h: Update copyright year.
10448 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10449 Adjust for addition of %cs and %ss.
10450 * amd64fbsd-nat.c: Update copyright year.
10451 (reg_offset): Add register offsets for %cs and %ss.
10452 * amd64fbsd-tdep.c: Update copyright year.
10453 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10454 (amd64fbsd_sc_reg_offset): Likewise.
10455 * x86-64-linux-nat.c: Update copyright year.
10456 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10457 and %ss.
10458 * amd64nbsd-nat.c: Update copyright year.
10459 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10460 * amd64nbsd-tdep.c: Update copyright year.
10461 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10462 * x86-64-linux-tdep.c: Update copyright year.
10463 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10464 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10465 * regformats/reg-x86-64.dat: Add %cs and %ss.
10466
10467 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10468 variables to prevent long lines. Update comments to reflect
10469 reality.
10470
10471 2004-01-09 David Carlton <carlton@kealia.com>
10472
10473 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10474 * dwarf2read.c (read_namespace): Pull out name-generating code
10475 into namespace_name. Rename previous_namespace to previous_prefix
10476 and processing_current_namespace to processing_current_prefix..
10477 (namespace_name): New function.
10478 (add_partial_symbol): Substitute uses of pdi->name with
10479 actual_name.
10480 * cp-support.h: Rename processing_current_namespace to
10481 processing_current_prefix.
10482 Update copyright year.
10483 * cp-namespace.c: Rename processing_current_namespace to
10484 processing_current_prefix.
10485 Update copyright year.
10486
10487 2004-01-09 Andrew Cagney <cagney@redhat.com>
10488
10489 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10490
10491 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10492
10493 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10494 complaining.
10495 (process_one_symbol): Deal with N_PATCH stabs.
10496
10497 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10498
10499 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10500 ifdeffed code.
10501 Update copyright year.
10502
10503 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10504
10505 * config/pa/tm-hppa.h: Update extern declarations for
10506 hppa32_hpux_frame_saved_pc_in_sigtramp,
10507 hppa32_hpux_frame_base_before_sigtramp, and
10508 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10509
10510 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10511
10512 * config/pa/tm-hppah.h: Update copyright years.
10513
10514 2004-01-08 Andrew Cagney <cagney@redhat.com>
10515
10516 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10517 (mips_o32_reg_struct_has_addr): Delete function.
10518 (mips_gdbarch_init): Update.
10519 (mips_extract_struct_value_address): Delete function.
10520
10521 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10522
10523 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10524 reality.
10525
10526 2004-01-07 Andrew Cagney <cagney@redhat.com>
10527
10528 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10529 architecture's elf flags (when available).
10530
10531 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10532 FPU to the start, check the MIPS FPU when looking for an old
10533 architecture.
10534 (set_mipsfpu_single_command): Update the architecture.
10535 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10536
10537 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10538 (mips_mask_address_p): Add "tdep" parameter.
10539 (show_mask_address, mips_addr_bits_remove): Update.
10540 (mips_dump_tdep): Update.
10541 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10542 (MIPS_STACK_ARGSIZE): Delete macro.
10543 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10544 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10545 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10546 (mips_dump_tdep): Update.
10547 (MIPS_SAVED_REGSIZE): Delete macro.
10548 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10549 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10550 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10551 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10552 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10553 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10554 (mips_pop_frame, return_value_location): Update.
10555 (mips_n32n64_return_value, mips_dump_tdep): Update.
10556
10557 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10558 MIPS ABI.
10559
10560 * mips-tdep.c: Update copyright.
10561 (mips_gdbarch_init): Merge two code blocks handling the register
10562 name and number layout.
10563
10564 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10565
10566 * tracepoint.c (validate_actionline): Fix segv at EOF
10567
10568 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10569
10570 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10571 properly for static fields.
10572
10573 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10574 Jason Molenda <jmolenda@apple.com>
10575
10576 * disasm.c: Update copyright to include 2004.
10577 (do_mixed_source_and_assembly): For uiout asm list
10578 and tuple cleanups, initialize to null_cleanup instead of
10579 NULL and do so prior to loop. Only reset when we close off
10580 the tuple/list. Move check for whether to close off the
10581 asm tuple/list to after dump_insns call where it will be run
10582 on each loop iteration.
10583
10584 2004-01-05 Andrew Cagney <cagney@redhat.com>
10585
10586 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10587 should be a switch case and not a label.
10588 * mips-tdep.c (mips32_next_pc): Delete unused labels
10589 "greater_equal_branch" and "less_zero_branch".
10590 * jv-valprint.c (java_print_value_fields): Delete unused label
10591 "flush_it".
10592
10593 * target.c (unpush_target): Only close a target that is in the
10594 target stack.
10595
10596 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10597
10598 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10599 address from [sp + 64] instead of %o2.
10600
10601 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10602 fixes PR backtrace/1476.
10603
10604 2004-01-05 Andrew Cagney <cagney@redhat.com>
10605
10606 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10607 move to start of file.
10608 * i386-tdep.h (struct regcache): Add opaque declaration.
10609 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10610 declaration.
10611 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10612 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10613 * win32-nat.c (fake_create_process): Use ISO C style definition.
10614 * stabsread.c (define_symbol): Delete #ifndef
10615 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10616 stabs_argument_has_addr call, macro never defined.
10617
10618 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10619
10620 * op50-rom.c: Delete.
10621 * w89k-rom.c: Delete.
10622 * Makefile.in: Remove references.
10623
10624 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10625
10626 * x86-64-tdep.c: Update copyright year.
10627 (struct amd64_register_info): Rename from x86_64_register_info.
10628 (amd64_register_info): Rename from x86_64_register_info.
10629 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10630 (amd64_register_name): Rename from x86_64_register_name.
10631 (amd64_register_type): Rename from x86_64_register_type.
10632 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
10633 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
10634 (amd64_dwarf_reg_to_regnum): Rename from
10635 x86_64_dwarf_reg_to_regnum.
10636 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
10637 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
10638 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
10639 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
10640 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
10641 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
10642 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
10643 (amd64_frame_cache): Rename from x86_64_frame_cache.
10644 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
10645 (amd64_frame_prev_register): Rename from
10646 x86_64_frame_prev_register.
10647 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
10648 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
10649 (amd64_sigtramp_frame_cache): Rename from
10650 x86_64_sigtramp_frame_cache.
10651 (amd64_sigtramp_frame_prev_register): Rename from
10652 x86_64_sigtramp_frame_prev_register.
10653 (amd64_sigtramp_frame_unwind): Rename from
10654 x86_64_sigtramp_frame_unwind.
10655 (amd64_sigtramp_frame_sniffer): Rename from
10656 x86_64_sigtramp_frame_sniffer.
10657 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
10658 (amd64_frame_base): Rename from x86_64_frame_base.
10659 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
10660 (amd64_frame_align): Rename from x86_64_frame_align.
10661 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
10662 (amd64_regset_from_core_section): Rename from
10663 x86_64_regset_from_core_section.
10664 (x86_64_init_abi): Update comments.
10665
10666 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
10667
10668 * MAINTAINERS (write after approval): Add myself.
10669
10670 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10671
10672 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
10673 `float' arguments.
10674
10675 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10676
10677 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
10678 such that it mentions a specific version of GCC that exhibits this
10679 bug.
10680
10681 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10682
10683 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
10684 structure that has a single `float' member, store it in %f1 in
10685 addition to %f0.
10686
10687 * sparc-sol2-nat.c: Add missing '\'.
10688
10689 * sparc-tdep.c (sparc32_return_value): New function.
10690 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
10691 Remove functions.
10692 (sparc32_gdbarch_init): Set return_value, don't set
10693 extract_return_value, store_return_value, use_struct_convention
10694 and return_value_on_stack.
10695
10696 * sparc-sol2-nat.c: Add missing ')'.
10697
10698 2004-01-03 J. Brobecker <brobecker@gnat.com>
10699
10700 * infrun.c (handle_step_into_function): New function.
10701 (handle_inferior_event): Extract out some code into the new
10702 function above.
10703
10704 2004-01-03 J. Brobecker <brobecker@gnat.com>
10705
10706 * infrun.c (handle_inferior_event): Move the declaration of
10707 real_stop_pc inside the if blocks where it is used.
10708
10709 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10710
10711 * sparc64-tdep.c (sparc64_16_byte_align_p)
10712 (sparc64_store_floating_fields, sparc64_store_floating_fields):
10713 Use check_typedef to get subtypes of structures and unions.
10714 (sparc64_store_return_value): Fix calculation of the appropriate
10715 offset into VALBUF when storing a structure or union.
10716 (sparc64_return_value): New function.
10717 (sparc64_use_struct_convention): Remove function.
10718 (sparc64_init_abi): Set return_value, don't set
10719 extract_return_value, store_return_value and
10720 use_struct_convention.
10721
10722 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
10723
10724 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
10725 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
10726 gdb/config/alpha/xm-alphaosf.h,
10727 gdb/config/powerpc/tm-ppcle-eabi.h,
10728 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
10729 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
10730 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
10731 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
10732 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
10733 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
10734 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
10735 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
10736 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
10737 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
10738 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
10739 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
10740 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
10741 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
10742 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
10743 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
10744 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
10745 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
10746 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
10747 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
10748 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
10749 Remove lines for .cvsignore files.
10750
10751 2004-01-03 J. Brobecker <brobecker@gnat.com>
10752
10753 * infrun.c: Back out the previous change.
10754
10755 2004-01-03 Mark Kettenis <kettenis@gnu.org>
10756
10757 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
10758 sparc-*-sunos4* to the list of REMOVED configurations.
10759
10760 * configure.tgt: Add back sparc-*-vxworks*.
10761 * remote-vxsparc.c: Remove all includes except for "defs.h",
10762 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
10763 Include "sparc-tdep.h".
10764 (SPARC_R_G1): New define.
10765 (vxsparc_gregset): New variable.
10766 (ext_format_sparc): Remove extern declaration.
10767 (vx_read_register): Rewrite to use sparc32_supply_gregset and
10768 sparc32_supply_fpregset.
10769 (vx_write_register): Rewrite to use sparc32_collect_gregset,
10770 sparc_collect_rwindow and sparc32_collect_fpregset.
10771 * config/sparc/tm-vxworks.h: New file, based on recently removed
10772 tm-vxsparc.h.
10773 * config/sparc/vxworks.mt: New file, based on recently removed
10774 vxworks.mt.
10775
10776 2004-01-03 J. Brobecker <brobecker@gnat.com>
10777
10778 * infrun.c (handle_step_into_function): New function.
10779 (handle_inferior_event): Extract out some code into the new
10780 function above.
10781
10782 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10783
10784 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
10785 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
10786 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
10787 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
10788 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
10789 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
10790 (sparc_nat_h): New variable.
10791 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
10792 (tm-sun4os4.h): Remove dependency.
10793 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
10794 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
10795 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
10796 sparc-tdep.o): Update dependencies.
10797 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
10798 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
10799 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
10800 dependencies.
10801 * configure.host: Remove existing sparc-*-lynxos*,
10802 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
10803 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
10804 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
10805 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
10806 triplets.
10807 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
10808 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
10809 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
10810 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
10811 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
10812 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
10813 sparc64-*-solaris2* and sparc64-*-* triplets.
10814 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
10815 "symtab.h" and "objfiles.h".
10816 (BIAS): Remove define.
10817 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
10818 (X_DISP19): Remove macros.
10819 (sparc_fetch_instruction): Remove function.
10820 (struct gdbarch_tdep): Remove definition.
10821 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
10822 (sparc_breakpoint_from_pc): Remove function.
10823 (struct sparc64_frame_cache): Remove definition.
10824 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
10825 sparc64_unwind_pc): Remove functions.
10826 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
10827 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
10828 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
10829 (sparc64_frame_cache): Change return type to `struct
10830 sparc_frame_cache *'. Simply call sparc_frame_cache.
10831 (sparc64_frame_this_id, sparc64_frame_prev_register,
10832 sparc64_frame_base_address): Use `struct sparc_frame_cache'
10833 instead of `struct sparc64_frame_cache.
10834 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
10835 sparc_analyze_control_transfer, sparc_software_single_step,
10836 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
10837 _initialize_sparc64_tdep): Remove functions.
10838 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
10839 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
10840 macros.
10841 (sparc64_supply_gregset, sparc64_collect_gregset,
10842 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
10843 (sparc64_init_abi): New function.
10844 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
10845 inclusion guard. Include "sparc-tdep.h".
10846 (BIAS): Define.
10847 (r_tstate_offset, r_fprs_offset): New defines.
10848 (enum sparc_regnum): Remove defenition.
10849 (enum sparc64_regnum): Reformat.
10850 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
10851 (sparc64_init_abi, sparc64_supply_gregset,
10852 sparc64_collect_gregset, sparc64_supply_fpregset,
10853 sparc64_collect_fpregset): New prototypes.
10854 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
10855 Add extern declarations.
10856 (sparc64_sol2_init_abi): New prototype.
10857 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10858 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10859 prototypes.
10860 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
10861 "sparnbsd-nat.h".
10862 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
10863 functions.
10864 (_initialize_sparc64fbsd_nat): Remove initialization of
10865 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
10866 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
10867 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
10868 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
10869 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
10870 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
10871 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
10872 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
10873 (sparc64fbsd_r_y_offset): Remove variables.
10874 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10875 Make static and const.
10876 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
10877 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
10878 functions.
10879 (sparc64fbsd_gregset): New variable.
10880 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
10881 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
10882 and sparc64_supply_fpregset.
10883 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
10884 (sparc64fbsd_sigtramp_frame_this_id)
10885 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
10886 (sparc64fbsd_sigtramp_frame_unwind): New variable.
10887 (sparc64fbsd_sigtramp_frame_sniffer): New function.
10888 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
10889 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
10890 * sparcnbsd-tdep.c: Update copyright year. Include
10891 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
10892 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
10893 "value.h" and "sparcnbsd-tdep.h".
10894 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
10895 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
10896 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
10897 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
10898 defines.
10899 (sparcnbsd_gregset): New variable.
10900 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
10901 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
10902 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
10903 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
10904 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
10905 variables.
10906 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
10907 (sparc32nbsd_sigcontext_frame_this_id)
10908 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
10909 (sparc32nbsd_sigcontext_frame_unwind): New variable.
10910 (sparc32nbsd_sigtramp_frame_sniffer): New function.
10911 (sparcnbsd_get_longjmp_target_32,
10912 sparcnbsd_get_longjmp_target_64): Remove functions.
10913 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
10914 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
10915 sparcnbsd_init_elf): Remove.
10916 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
10917 (sparcnbsd_elf_init_abi): New functions.
10918 (_initialize_sparcnbsd_tdep): New prototype.
10919 (_initialize_sparnbsd_tdep): Update.
10920 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
10921 corelow.o. Add sparc64-nat.o and sparc-nat.o.
10922 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
10923 * config/sparc/linux.mh: Update comment.
10924 (XM_FILE, HOST_IPC): Remove variables.
10925 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
10926 sparc-linux-nat.o.
10927 * config/sparc/linux.mt: Update comment.
10928 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
10929 * config/sparc/nbsd.mt: Reformat.
10930 * config/sparc/nbsd64.mh: Update comment.
10931 (NATDEPFILES): Add sparc-nat.o.
10932 * config/sparc/nbsd64.mt: Update comment.
10933 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
10934 (TM_FILE): Set to tm-nbsd.h.
10935 * config/sparc/nbsdelf.mh: Update comment.
10936 (NATDEPFILES): Add sparc-nat.o.
10937 (XM_FILE): Delete.
10938 * config/sparc/nbsdaout.mh: Update comment.
10939 (NATDEPFILES): Add sparc-nat.o
10940 (XM_FILE): Delete.
10941 * config/sparc/nm-linux.h: Update copyright year. Don't include
10942 "config/nm-svr4.h" and "solib.h". Add protection against multiple
10943 inclusion.
10944 (KERNEL_U_SIZE): Remove define.
10945 (kernel_u_size): Remove prototype.
10946 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
10947 * config/sparc/nm-nbsd.h: Update copyright. Don't include
10948 "regcache.h".
10949 (CHILD_PREPARE_TO_STORE): Remove define.
10950 * config/sparc/nm-nbsdaout.h: Tweak some comments.
10951 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
10952 sparcnbsd-nat.c: Rewrite files.
10953 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
10954 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
10955 sparcnbsd-tdep.h: Remove files.
10956 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
10957 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
10958 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
10959 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
10960 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
10961 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
10962 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
10963 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
10964 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
10965 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
10966 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
10967 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
10968 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
10969 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
10970 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
10971 * config/sparc/linux64.mh, config/sparc/linux64.mt,
10972 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
10973 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
10974 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
10975
10976 2004-01-02 Andrew Cagney <cagney@redhat.com>
10977
10978 From 2003-12-18 Kazuhiro Inaoka:
10979 * configure.host: Add m32r-linux target.
10980
10981 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
10982
10983 * top.c (print_gdb_version): Update year to 2004.
10984
10985 2004-01-02 Mark Mitchell <mark@codesourcery.com>
10986
10987 * MAINTAINERS: Add myself to the write-after-approval category.
10988
10989 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
10990
10991 From Bernardo Innocenti <bernie@develer.com>:
10992 * configure.tgt: Add uClinux target.
10993
10994 2004-01-02 Andrew Cagney <cagney@redhat.com>
10995
10996 * utils.c (do_my_cleanups): Make static, add forward declaration.
10997 * defs.h (do_my_cleanups): Delete declaration.
10998
10999 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11000
11001 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11002 bfd/ChangeLog-0203.
11003
11004 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11005
11006 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11007 in <machine/reg.h>.
11008 * configure, config.in: Regenerate.
11009
11010 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11011 tui/ChangeLog-1998-2003.
11012 \f
11013 Local Variables:
11014 mode: change-log
11015 left-margin: 8
11016 fill-column: 74
11017 version-control: never
11018 End:
This page took 0.261028 seconds and 4 git commands to generate.