*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b1acf338
MK
12004-12-05 Mark Kettenis <kettenis@gnu.org>
2
a61ce9b4
MK
3 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
4 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
5
b1acf338
MK
6 * hppa-hpux-tdep.c: Update copyright notice and year.
7
fcab3fb5
RE
82004-12-05 Richard Earnshaw <rearnsha@arm.com>
9
10 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
11 (get_field, put_field): Assert that the format is one we can handle.
12 Simplify logic accordingly.
13 (floatformat_normalize_byteorder): New function.
14 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
15 to normalize and select modified byte order. Pass modified byte order
16 to get_field.
17 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
18 Likewise.
19 (convert_doublest_to_floatformat): Select an appropriate intermediate
20 byte order if necessary. Always convert to the final format before
21 returning.
22
48bb3cce
DJ
232004-12-04 Daniel Jacobowitz <dan@debian.org>
24
25 PR tui/1703
26 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
27 Suggested by Joshua Neuheisel.
28
fe46cd3a
RC
292004-12-03 Randolph Chung <tausq@debian.org>
30
31 * gdbarch.sh (instruction_nullified): Delete.
32 * gdbarch.c: Regenerate.
33 * gdbarch.h: Regenerate.
34 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
35 nullified.
36 (hppa_unwind_pc): Likewise.
37 (hppa_instruction_nullified): Delete.
38 (hppa_gdbarch_init): Don't set instruction_nullified method.
39 * infrun.c (infwait_states): Remove infwait_nullified_state.
40 (handle_inferior_event): Remove handling of infwait_nullified_state.
41 Remove handling of nullified instructions.
42
dd515450
MK
432004-12-03 Mark Kettenis <kettenis@gnu.org>
44
932936f0
MK
45 * inf-ttrace.c: Include <sys/mman.h>.
46 (struct inf_ttrace_page): New.
47 (struct inf_ttrace_page_dict): New.
48 (inf_ttrace_num_threads_in_syscall)
49 (inf_ttrace_reenable_page_protections): New variables.
50 (inf_ttrace_enable_syscall_events)
51 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
52 (inf_ttrace_add_page, inf_ttrace_insert_page)
53 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
54 (inf_ttrace_enable_page_protections)
55 (inf_ttrace_disable_page_protections)
56 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
57 (inf_ttrace_can_use_hw_breakpoint)
58 (inf_ttrace_region_size_ok_for_hw_watchpoint)
59 (inf_ttrace_stopped_by_watchpoint): New functions.
60 (inf_ttrace_him): Remove unsused varaible `tts'.
61 (inf_ttrace_create_inferior): Add assertionts.
62 (inf_ttrace_mourn_inferior): Clear page dictionary.
63 (inf_ttrace_attach): Set initial event mask.
64 (inf_ttrace_detach): Reset number of threads in system call.
65 (inf_ttrace_wait): Deal with system call events.
66 (inf_ttrace_target): Initialize "hardware" watchpoint-related
67 parts of the target vector.
68 (_initialize_inf_ttrace): New prototype and function.
69
dd515450
MK
70 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
71 type of `gp' variable.
72
73fb7068
RS
732004-12-03 Richard Sandiford <rsandifo@redhat.com>
74
75 * README: Remove config.if from directory listing.
76
515921d7
JB
772004-12-01 Joel Brobecker <brobecker@gnat.com>
78
79 * alpha-tdep.c (alpha_register_name): Add comment.
80 (alpha_cannot_fetch_register): Exclude registers numbers which
81 are no longer used from the list of registers that can be fetched.
82 (alpha_cannot_store_register): Exclude registers numbers which
83 are no longer used from the list of registers that can be stored.
84 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
85 core_reg_mapping array.
86
1cc759c3
JB
872004-12-01 Joel Brobecker <brobecker@gnat.com>
88
89 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
90 the register value from the correct frame.
91
b546247c
RC
922004-11-30 Randolph Chung <tausq@debian.org>
93
94 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
95 (hppa_linux_in_dyncall): Check that we are inside the range of
96 $$dyncall, not necessarily at the first insn.
97 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
98 even if the pc does not point to the first insn of the trampoline.
99
46905982
RC
1002004-11-30 Randolph Chung <tausq@debian.org>
101
102 * breakpoint.c (break_at_finish_command): Delete.
103 (break_at_finish_command_1): Delete.
104 (break_at_finish_at_depth_command): Delete.
105 (break_at_finish_at_depth_command_1): Delete.
106 (tbreak_at_finish_command): Delete.
107 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
108 and bx commands.
109
80b93d6b
AC
1102004-11-30 Andrew Cagney <cagney@gnu.org>
111
a7711b1f
AC
112 * config/nm-gnu.h: Delete file.
113 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
114
80b93d6b
AC
115 * config/nm-sysv4.h: Delete file.
116 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
117 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
118 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
119 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
120 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
121
31ffb221
AC
1222004-11-29 Andrew Cagney <cagney@gnu.org>
123
124 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
125 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
126 as can-commit architecture developers.
127
3919e12c
MK
1282004-11-29 Mark Kettenis <kettenis@gnu.org>
129
075ccec8
MK
130 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
131 (sparc32_skip_prologue): Skip instructions that store arguments in
132 registers into their corresponding stack slots.
133
388e0111
MK
134 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
135 tm-solib.h.
136 * config/m68k/obsd.mh (NAT_FILE): Likewise.
137
19671c2b
MK
138 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
139 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
140 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
141 sparc32nbsd_elf_init_abi. Remove duplicate code.
142
77a7fe6d
MK
143 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
144 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
145 * config/sparc/nm-nbsd.h: Remove file.
146 * config/sparc/nm-nbsdaout.h: Remove file.
147
cbfc58d1
MK
148 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
149 (sparc_xfer_partial): New function.
150 (sparc_target): Save value of to_xfer_partial from ptrace vector.
151 Set to_xfer_partial.
152
3919e12c
MK
153 * fork-child.c (fork_inferior): Fork instead of vfork if
154 PRE_TRACE_FUN is non-null.
155
ebd98106
FF
1562004-11-24 Fred Fish <fnf@specifixinc.com>
157
158 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
159 compiler generated function calls made as part of a prologue.
160
eee22bf8
MK
1612004-11-23 Mark Kettenis <kettenis@gnu.org>
162
163 * inf-ttrace.c: New file.
164 * inf-ttrace.h: New file.
165 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
166 Include "inf-ttrace.h".
167 (ss_mpsfu_high): Define to ss_tlsp if necessary.
168 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
169 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
170 ptrace systems.
171 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
172 instead of inf_ptrace_target.
173 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
174 * Makefile.in (inf_ttrace_h): New variable.
175 (hppa-hpux-nat.o): Update dependency.
176 (inf-ttrace.o): New dependency.
177 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
178
3ca64954
RC
1792004-11-23 Randolph Chung <tausq@debian.org>
180
181 * arch-utils.c (generic_instruction_nullified): New.
182 * arch-utils.h (generic_instruction_nullified): New.
183 * gdbarch.sh (instruction_nullified): New method.
184 * gdbarch.c: Regenerate.
185 * gdbarch.h: Regenerate.
186 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
187 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
188 new gdbarch method.
189 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
190 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
191 static. Rewrite to work directly off the passed regcache.
192 (hppa_gdbarch_init): Set instruction_nullified method.
193
5465445a
JB
1942004-11-23 Joel Brobecker <brobecker@gnat.com>
195
196 * sparc-tdep.c (sparc_is_unimp_insn): New function.
197 (sparc32_frame_cache): For functions where there is no debugging
198 information to help us determine whether it's a struct-return
199 function or not, fallback on checking whether the instruction
200 at the return address is an "unimp" instruction or not.
201
3f6306ec
DA
2022004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
203
871cce51
DA
204 * MAINTAINERS: Add myself to write after approval section.
205
3f6306ec
DA
206 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
207 hpux-thread.c to suppress children from running.
208 (hppa_hpux_child_can_run): New function.
209 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
210 * hpux-thread.c: Include string.h and hppa-tdep.h.
211 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
212 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
213 (hpux_thread_store_registers): Replace deprecated_registers with
214 calls to regcache_raw_read.
215 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
216
f5ccf7a2
MK
2172004-11-21 Mark Kettenis <kettenis@gnu.org>
218
219 * sparc64fbsd-nat.c: Update copyright year.
220 (_initialize_sparc64fbsd_nat): Construct and add target vector.
221 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
222 inftarg.o.
223
8c3900e4
DJ
2242004-11-21 Daniel Jacobowitz <dan@debian.org>
225
226 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
227
b957e937
DJ
2282004-11-21 Daniel Jacobowitz <dan@debian.org>
229
230 * linux-nat.c (my_waitpid): New function.
231 (linux_test_for_tracefork): Make more robust and verbose. Take
232 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
233 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
234 argument. Update calls to linux_test_for_tracefork.
235 (linux_enable_event_reporting, child_follow_fork)
236 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
237 (child_insert_exec_catchpoint): Update calls to
238 linux_supports_tracefork and linux_supports_tracevforkdone.
239
65d3800a
DJ
2402004-11-21 Daniel Jacobowitz <dan@debian.org>
241
242 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
243 (value_subscripted_rvalue): Likewise.
244 * valops.c (search_struct_field, value_slice): Likewise.
245
2c4a536d
MK
2462004-11-21 Mark Kettenis <kettenis@gnu.org>
247
248 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
249 Reorder includes a bit. Fix comment.
250 * Makefile.in (inf-ptrace.o): Update dependencies.
251
fefa1888
AS
2522004-11-21 Andreas Schwab <schwab@suse.de>
253
254 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
255 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
256 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
257 to glibc_skip_solib_resolver.
258 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
259 solib-legacy.o.
260 * Makefile.in (m68klinux-tdep.o): Update dependencies.
261
d564a7d4
DA
2622004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
263
264 * infttrace.h (ttrace_write_reg_64): Add prototype.
265 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
266 expression.
267 (store_inferior_registers): Correct formatting. Replace uses of
268 deprecated_registers with calls to regcache_raw_read,
269 regcache_raw_write_part and regcache_raw_read_part.
270
3f70a5e9
MK
2712004-11-21 Mark Kettenis <kettenis@gnu.org>
272
273 * config/pa/hppahpux.mh: Remove file.
274 * config/pa/hpux1020.mh: Remove file.
275
ced0d73d
AS
2762004-11-20 Andreas Schwab <schwab@suse.de>
277
278 * configure.host: Set host floatformat for m68k.
279
fcf54f50
EZ
2802004-11-20 Eli Zaretskii <eliz@gnu.org>
281
282 * config/djgpp/fnchange.lst: Resolve file-name clash between
283 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
284
a7289609
MK
2852004-11-20 Mark Kettenis <kettenis@gnu.org>
286
eeb8076c
MK
287 * hppa-hpux-nat.c: New file.
288 * config/pa/hpux.mh (NATDEPFILES): New file.
289 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
290 (hppa-hpux-nat.o): New dependency.
291 * configure.host: Remove hppa*-*-hpux10.20.
292 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
293
f6ffd89b
MK
294 * inf-ptrace.c: Fix coding style.
295
f1bc22da
MK
296 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
297 * infptrace.c (call_ptrace): Simply call ptrace with four
298 arguments.
299
e31272c3
MK
300 * dbxread.c (process_one_symbol): Fix a few coding standard
301 issues. Improve code formatting.
302
91f54576
MK
303 * dbxread.c: Include "gdb_string.h".
304 (record_minimal_symbol, read_ofile_symtab): Replace
305 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
306 * Makefile.in (dbxread.o): Update dependencies.
307
a7289609
MK
308 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
309 of bytes read for aligned LEB128 encodings.
310
57ac95b8
MK
3112004-11-19 Mark Kettenis <kettenis@gnu.org>
312
313 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
314 parse_and_eval_address to u_long before converting it to a pointer
315 type.
316 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
317 ps_strings from int to u_long.
318 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
319 u_long instead of CORE_ADDR.
320
ceddaf06
MK
3212004-11-18 Mark Kettenis <kettenis@gnu.org>
322
323 * dbxread.c (process_one_symbol): Do not adjust address of first
324 N_SLINE stab for a function for code generated by non-GCC
325 compilers.
326
915a2d21
KB
3272004-11-18 Kevin Buettner <kevinb@redhat.com>
328
329 * solib-null.c: New file.
330
92790ee7
AC
3312004-11-17 Andrew Cagney <cagney@gnu.org>
332
333 * MAINTAINERS: Drop MIPS and remote.
334
0c16dd26
AC
3352004-11-15 Andrew Cagney <cagney@gnu.org>
336
337 * findvar.c (value_of_register): Set the frame ID.
338 * value.c (value_primitive_field): Copy the frame ID.
339 * valops.c (value_assign): Simplify lval_register case, there's
340 always a frame.
341
2fdf551c
DJ
3422004-11-14 Daniel Jacobowitz <dan@debian.org>
343
344 * Makefile.in (mips-linux-tdep.o): Update dependencies.
345 * mips-linux-tdep.c: Include "regcache.h".
346 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
347
98754800
DJ
3482004-11-14 Daniel Jacobowitz <dan@debian.org>
349
350 * Makefile.in (linux-thread-db.o): Fix typo in last change.
351
ed89d175
DJ
3522004-11-14 Daniel Jacobowitz <dan@debian.org>
353
354 * linux-thread-db.c: New file, renamed from thread-db.c.
355 * thread-db.c: Remove.
356 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
357 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
358 to linux-thread-db.o.
359 * config/arm/linux.mh (NATDEPFILES): Likewise.
360 * config/i386/linux.mh (NATDEPFILES): Likewise.
361 * config/i386/linux64.mh (NATDEPFILES): Likewise.
362 * config/ia64/linux.mh (NATDEPFILES): Likewise.
363 * config/m32r/linux.mh (NATDEPFILES): Likewise.
364 * config/m68k/linux.mh (NATDEPFILES): Likewise.
365 * config/mips/linux.mh (NATDEPFILES): Likewise.
366 * config/pa/linux.mh (NATDEPFILES): Likewise.
367 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
368 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
369 * config/s390/s390.mh (NATDEPFILES): Likewise.
370 * config/sparc/linux.mh (NATDEPFILES): Likewise.
371 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
372
8851ec7a
AC
3732004-11-13 Andrew Cagney <cagney@gnu.org>
374
f97fe8ff
AC
375 * config/i386/i386lynx.mh: Delete file.
376 * config/i386/i386lynx.mt: Delete file.
377 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
378 * i386ly-tdep.c: Delete.
379
5873946b
AC
380 * config/tm-lynx.h: Delete, inline contents ...
381 * config/rs6000/tm-rs6000ly.h: ... here.
382
a69637bd
AC
383 * config/tm-sysv4.h: Delete file, inlining contents.
384 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
385 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
386 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
387
8851ec7a
AC
388 * regcache.h (deprecated_register_valid): Delete.
389 (deprecated_registers): Delete.
390 * regcache.c (deprecated_register_valid): Delete.
391 (deprecated_registers): Delete.
392 (deprecated_read_register_byte, _initialize_regcache)
393 (deprecated_write_register_bytes, build_regcache): Update.
394 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
395 remote-sds.o.
396 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
397 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
398
9445aa30
AC
399 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
400 v850-*-* under removed.
401 * configure.host: Delete ns32k-*-netbsd*.
402 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
403 ns32k-*-netbsd*, and v850*-*-*.
404 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
405 "Deleted"
406 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
407 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
408 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
409 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
410 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
411 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
412 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
413 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
414 * v850-tdep.c: Delete.
415
f6e1bffc
JB
4162004-11-13 Joel Brobecker <brobecker@gnat.com>
417
418 * irix5-nat.c (fetch_core_registers): Replace use of
419 deprecated_registers by equivalent code.
420
44ed547b
JB
4212004-11-13 Joel Brobecker <brobecker@gnat.com>
422
423 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
424 with equivalent code.
425 (fill_fpregset): Likewise.
426
e84ecc99
AC
4272004-11-13 Andrew Cagney <cagney@gnu.org>
428
ca1a823a
AC
429 * MAINTAINERS: Do not list "Deleted" architectures.
430
e84ecc99
AC
431 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
432 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
433 sparc-*-vxworks*.
434 * NEWS: Mention that vxworks was deleted.
435 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
436 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
437 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
438 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
439 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
440 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
441 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
442 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
443 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
444 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
445 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
446 * remote-vxmips.c, remote-vx.c: Delete.
447 * remote-vx68.c: Delete.
448 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
449 * config/m68k/os68k.mt, ada-lang.h: Ditto.
450 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
451 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
452
01e937bc
EZ
4532004-11-13 Eli Zaretskii <eliz@gnu.org>
454
29247324
EZ
455 * config/i386/xm-go32.h: Don't include fopen-bin.h.
456 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
457
458 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
459 branch that doesn't define CRLF_SOURCE_FILES; always use
460 binary-mode open.
461 (print_source_lines_base, forward_search_command)
462 (reverse_search_command): Enable the code that accepts DOS-style
463 CRLF line endings on all platforms (this removes the need for
464 CRLF_SOURCE_FILES).
465
f8f0d88a 466 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 467 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 468
01e937bc
EZ
469 * config/djgpp/fnchange.lst: Group renames for opcode directory
470 together.
471
472 * config/djgpp/djconfig.sh: Replace file names that don't exist
473 anymore with existing files, for checking the unpacked
474 distribution.
475
476 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
477 Export pre-cooked values in configure-* targets that begin with
478 "@test -f stage_last".
479
25ae5d16
AC
4802004-11-12 Andrew Cagney <cagney@gnu.org>
481
482 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
483 * value.h (struct value): Update comment.
484 * valops.c (value_assign): Fold lval_reg_fame_relative into
485 lval_register.
486 * findvar.c (value_from_register, locate_var_value): Ditto.
487
d7318818
RC
4882004-11-12 Randolph Chung <tausq@debian.org>
489
490 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
491 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
492 (write_exp_msymbol): Remove conditional check for symbols starting
493 with $. Update comments.
494
89676665
RC
4952004-11-12 Randolph Chung <tausq@debian.org>
496
497 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
498 so_lib_thread_start_addr.
499 * pa64solib.h (so_list): Forward declare.
500 (pa64_solib_thread_start_addr): Prototype.
501 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
502 (no_shared_libraries): Remove.
503 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
504 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
505 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
506 the elf solib handler to find the start address.
507
508 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
509 files to the target makefile.
510 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
511 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
512 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
513
514 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 515 files for symbol reading and shared library handling here.
89676665 516 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
517 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
518 without bringing in 64-bit support.
89676665 519
df407dfe
AC
5202004-11-12 Andrew Cagney <cagney@gnu.org>
521
4991999e
AC
522 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
523 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
524 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
525 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
526 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
527 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
528 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
529
9ee8fc9d
AC
530 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
531 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
532 (VALUE_REGNUM): Define.
533 (struct value): Delete location.regnum, rename "regno" to
534 "regnum".
535 * value.c, valops.c, valarith.c, findvar.c: Update.
536
df407dfe
AC
537 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
538 (VALUE_BITPOS): Delete.
539 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
540 * value.c (value_type, value_offset, value_bitpos)
541 (value_bitsize): New functions. Update references.
542 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
543 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
544 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
545 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
546 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
547 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
548 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
549 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
550 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
551
61c82a3b
AC
5522004-11-12 Andrew Cagney <cagney@gnu.org>
553
554 * cris-tdep.c (cris_register_offset): Delete, never called.
555 (cris_spec_reg_applicable): Delete cris_ver_sim.
556 * MAINTAINERS: List d10v as OBSOLETE.
557 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
558 FOPEN_WB et.al., defined by "fopen-bin.h".
559
5aac166f
RC
5602004-11-12 Randolph Chung <tausq@debian.org>
561
562 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
563 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
564 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
565 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
566
4fab48b9
MK
5672004-11-12 Mark Kettenis <kettenis@jive.nl>
568
569 * tui/tui-io.c: Don't include "terminal.h".
570 * Makefile.in (tui-io.o): Update dependencies.
571
9b098f24
KI
5722004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
573
574 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
575 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
576 set_gdbarch_regset_from_core_section for core file support.
577 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
578 New functions.
579
a71f8c30
RC
5802004-11-11 Randolph Chung <tausq@debian.org>
581
582 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
583 stop_after_branch parameter and use it to determine if we should look
584 at the delay slot of the first branch insn to find prologue insns.
585 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
586 (hppa_frame_cache): Likewise.
587
50b2f48a
RC
5882004-11-11 Randolph Chung <tausq@debian.org>
589
590 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
591 register so that it can be unwound from anywhere in the prologue.
592
be723e22
MS
5932004-11-10 msnyder <msnyder@redhat.com>
594
595 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
596 must invalidate lr_reg (so we don't try to save it again).
597 Ditto for cr_offset and cr_reg.
598
d6f7abdf
AC
5992004-11-05 Jon Beniston <jon@beniston.com>
600
216c5547 601 Committed by Andrew Cagney.
d6f7abdf
AC
602 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
603 when an unexpected packet is received, as the target stubs
604 continually retransmit the same packet until ACKed.
605
1d225535
RC
6062004-11-10 Randolph Chung <tausq@debian.org>
607
608 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 609 frame's type.
1d225535 610
2315ffec
RC
6112004-11-10 Randolph Chung <tausq@debian.org>
612
613 * blockframe.c (inside_entry_func): Move to .....
614 * frame.c (inside_entry_func): ... here, and make static.
615 (backtrace_past_entry): New flag.
616 (get_prev_frame): Stop backtrace at the entry function if enabled
617 by flag. Update comments.
618 (_initialize_frame): Add command to set backtrace_past_entry flag.
619 * defs.h (inside_entry_func): Remove prototype.
620
917c78fc
MK
6212004-11-10 Mark Kettenis <kettenis@gnu.org>
622
623 * dwarf2read.c: Fix formatting.
624
994b9211
AC
6252004-11-10 Andrew Cagney <cagney@gnu.org>
626
627 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
628 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
629 macros with function declarations.
630 * value.c (coerce_ref, coerce_array, coerce_number)
631 (coerce_enum): New functions.
632 (value_as_long, value_as_address): Update.
633 * ada-lang.c (ada_coerce_ref, ada_value_binop)
634 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
635 * jv-lang.c (evaluate_subexp_java): Update.
636 * valarith.c (value_less, value_neg, value_complement)
637 (value_binop, value_add, value_subscript, value_x_binop)
638 (value_logical_not, value_sub): Update.
639 * valops.c (check_field, value_struct_elt, value_ind)
640 (value_find_oload_method_list, value_cast, value_assign): Update.
641 * eval.c (evaluate_subexp_standard): Update.
642
06987e64
MK
6432004-11-10 Mark Kettenis <kettenis@gnu.org>
644
645 * mips-tdep.c (mips32_relative_offset): Change return type to
646 LONGEST, change argument type to ULONGEST. Fix sign-extension.
647
4a302917
RC
6482004-11-10 Randolph Chung <tausq@debian.org>
649
650 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
651 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
652 (hppa_fetch_pointer_argument): Likewise.
653 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
654 deprecated_read_memory_nobpt.
655 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
656 add_set_cmd sequence with add_setshow_boolean_cmd.
657
390e974f
AC
6582004-11-09 Andrew Cagney <cagney@gnu.org>
659
660 GDB 6.3 released from GDB 6.3 branch.
661
92e023d6
AC
6622004-11-09 Andrew Cagney <cagney@gnu.org>
663
664 * values.c: Rename to ...
665 * value.c: ..., new file.
666 * Makefile.in: Update.
667
d10891d4
DJ
6682004-11-09 Daniel Jacobowitz <dan@debian.org>
669
670 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
671 size.
672
00a4c844
AC
6732004-11-09 Andrew Cagney <cagney@gnu.org>
674
c44523e7
AC
675 * TODO: Delete.
676
00a4c844
AC
677 * value.h (struct value): Delete field bfd_section.
678 (VALUE_BFD_SECTION): Delete macro.
679 (COERCE_REF): Update.
680 (value_at, value_at_lazy): Delete asection parameter.
681 * printcmd.c (print_formatted, x_command): Update.
682 (do_examine): Delete asection parameter.
683 (next_section): Delete variable.
684 * valops.c (value_cast, value_at, value_at_lazy)
685 (value_coerce_function, value_addr, value_ind, value_string)
686 (find_rt_vbase_offset, value_full_object): Update.
687 * hpacc-abi.c (hpacc_virtual_fn_field)
688 (hpacc_value_rtti_type): Update.
689 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
690 (gnuv3_baseclass_offset): Update.
691 * f-valprint.c (f_val_print): Update.
692 * c-valprint.c (c_val_print): Update.
693 * p-valprint.c (pascal_val_print): Update.
694 * jv-valprint.c (java_value_print): Update.
695 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
696 * ada-lang.c (ada_value_primitive_packed_val)
697 (ada_evaluate_subexp): Update.
698 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
699 * expprint.c (print_subexp_standard): Update.
700 * infcall.c (call_function_by_hand): Update.
701 * valarith.c (value_add): Update.
702 * eval.c (evaluate_subexp_standard): Update.
703 * values.c (allocate_value, value_copy, value_static_field): Update.
704 * findvar.c (read_var_value, locate_var_value): Update.
705
5cb2fe25
AC
7062004-11-09 Andrew Cagney <cagney@gnu.org>
707
708 * i386-linux-tdep.c: Include "dwarf2-frame.h".
709 * Makefile.in: Update all dependencies.
710
cbafadeb
AC
7112004-11-08 Andrew Cagney <cagney@gnu.org>
712
713 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
714 (sentinel_frame_unwinder): Add the prev_pc method.
715 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
716 available. Do not handle the sentinel-frame case.
717 * frame-unwind.h (frame_prev_register_ftype): Define.
718 (struct frame_unwind): Add prev_pc;
719
3b78cdbb
DA
7202004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
721
722 * configure.in: Check for ncurses/term.h.
723 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
724 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
725 * tui/tui.c: Don't include term.h.
726 * configure, config.in: Rebuilt.
727
bcfca652
MK
7282004-11-08 Mark Kettenis <kettenis@gnu.org>
729
730 * m68kbsd-nat.c: Include "inf-ptrace.h".
731 (_initialize_m68kbsd_nat): Fix pasto.
732 * Makefile.in (m68kbsd-nat.o): Update dependencies.
733
527159b7
RC
7342004-11-08 Randolph Chung <tausq@debian.org>
735
736 * infrun.c (debug_infrun): New variable.
737 (resume, proceed, wait_for_inferior): Annotate with debug messages.
738 (handle_inferior_event, keep_going): Likewise.
739 (_initialize_infrun): Register "set debug infrun" command.
740
c874c7fc
AS
7412004-11-08 Andreas Schwab <schwab@suse.de>
742
743 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
744 PTRACE_EVENT_VFORKDONE.
745 (child_follow_fork): Adjust.
746
3c8fa307
AC
7472004-11-08 Andrew Cagney <cagney@gnu.org>
748
5c26072a
AC
749 * README: Refer to 6.3, not 6.2, update directory listing droppng
750 references to intl/ and mmalloc/.
751 * PROBLEMS: Refer to 6.3 not 6.2.
752
3c8fa307
AC
753 * PROBLEMS: Delete no-longer applicable problems.
754
12b8a2cb
DJ
7552004-11-07 Andrew Cagney <cagney@redhat.com>
756 Daniel Jacobowitz <dan@debian.org>
757 Roland McGrath <roland@redhat.com>
758
759 * Makefile.in (symfile-mem.o): Update dependencies.
760 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
761 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
762 * inf-ptrace.c (inf_ptrace_attach): Call
763 observer_notify_inferior_created.
764 * inftarg.c (child_attach): Likewise.
765 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
766 (symbol_file_add_from_memory): Take NAME argument. Use it for
767 the new BFD's filename.
768 (add_symbol_file_from_memory_command): Update call to
769 symbol_file_add_from_memory.
770 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
771 (symbol_file_add_from_memory_wrapper): New.
772 (_initialize_symfile_mem): Register add_vsyscall_page as an
773 inferior_created observer.
774
abbc6945
MK
7752004-11-07 Mark Kettenis <kettenis@gnu.org>
776
777 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
778 fetch_inferior_registers. Make static.
779 (m68kbsd_store_inferior_registers): Rename from
780 store_inferior_registers. Make static.
781 (_initialize_m68kbsd_nat): Construct and add target vector.
782 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
783 inftarg.o. Add inf-ptrace.o.
784 (NAT_FILE): Set to tm-solib.h.
785 (LOADLIBES): New variable.
786 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
787 inftarg.o. Add inf-ptrace.o.
788 (NAT_FILE): Delete variable.
789 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
790 inftarg.o. Add inf-ptrace.o.
791 (NAT_FILE): Set to tm-solib.h.
792 * config/m68k/nm-nbsdaout.h: Remove file.
793
3ed09a32
DJ
7942004-11-07 Daniel Jacobowitz <dan@debian.org>
795
796 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
797 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
798 (dwarf2_signal_frame_unwind): New.
799 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
800 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
801
8e763687
MK
8022004-11-07 Mark Kettenis <kettenis@gnu.org>
803
4fb31ed0
MK
804 * Makefile.in (mips64obsd-tdep.o): Fix typo.
805
fabe86c8
MK
806 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
807 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
808 to only include the structure members we actually need.
809 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
810 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
811 only include the structure members we actually need.
812 (mipsnbsd_init_abi): Update.
813
366e93e8
MK
814 * mips64obsd-nat.c: Include "mips-tdep.h".
815 (MIPS64OBSD_NUM_REGS): Remove define.
816 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
817 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
818 floating-point registers correctly.
819 * Makefile.in (mips64obsd-nat.o): Update dependencies.
820
8e763687
MK
821 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
822 "gdb_assert.h".
823 (mips64obsd_sigframe_init): New function.
824 (mips64obsd_sigframe): New variable.
825 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
826 unwinder.
827 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
828
5f6a2351
JB
8292004-11-06 Joel Brobecker <brobecker@gnat.com>
830
831 * alpha-mdebug-tdep.c: #include mdebugread.h.
832 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
833 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
834
f059bf6f
AC
8352004-11-05 Andrew Cagney <cagney@gnu.org>
836
837 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
838 CFI and the init_reg method leave the register unspecified.
839 Include the register name in the "Incomplete CFI data" complaint.
840 Supress leading zeros in the address.
841
1234d960
MK
8422004-11-05 Mark Kettenis <kettenis@gnu.org>
843
844 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
845 skipping a personality routine in a CIE augmentation.
846
d75e3c94
JJ
8472004-11-05 Jeff Johnston <jjohnstn@redhat.com>
848
849 * defs.h (fatal, vfatal): New function prototypes.
850 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
851 via catch_errors.
852 (backtrace_command): Change to call backtrace_command_stub via
853 catch_errors instead of calling backtrace_command_1 directly.
854 (backtrace_full_command): Ditto.
855 * utils.c (error_stream_1): New static function.
856 (verror): Change to call error_stream_1 instead of error_stream.
857 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
858 (vfatal, fatal): New functions.
859
98f276a0
AC
8602004-11-05 Andrew Cagney <cagney@gnu.org>
861
862 * stack.c (parse_frame_specification_1): Clear selected_frame_p
863 when not using selected frame.
864
f724bf08
MK
8652004-11-05 Mark Kettenis <kettenis@jive.nl>
866
867 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
868 personality routine in a CIE augmentation.
869
c789492a
FL
8702004-11-05 Felix Lee <felix+log1@specifixinc.com>
871
872 * stack.c (set_current_sal_from_frame): New function.
873 (print_args_stub): Use it.
874 (print_frame_info): Don't set sal here.
875
a81b10ae
MK
8762004-11-04 Mark Kettenis <kettenis@gnu.org>
877
878 * dwarf2-frame.c (read_encoded_value): Change type of third
879 argument to `unsigned char *'. Add support for LEB128 encodings.
880
ad766c0a
JB
8812004-11-04 Jim Blandy <jimb@redhat.com>
882
883 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
884 prevent cross-objfile references.
885 (make_cv_type): Doc fix. Don't create cross-objfile references,
886 even for stub types.
887 (replace_type): Add assertion to prevent cross-objfile references.
888 (check_typedef): Never resolve a stub type by copying over a type
889 from another file.
890
c46b0409 8912004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 892
c46b0409
KI
893 * Makefile.in (m32r-tdep.o): Update dependencies.
894 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
895 ABI-specific overrides.
896
9f0b0322 8972004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 898
9f0b0322
KI
899 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
900 unnecessary parallel execution bit.
901 (m32r_memory_remove_breakpoint): Ditto.
902 (m32r_breakpoint_from_pc): Update.
903
d5c27f81
RC
9042004-11-03 Randolph Chung <tausq@debian.org>
905
906 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 907 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
908 (hppa_frame_this_id): Likewise.
909
4577593c
AC
9102004-11-03 Andrew Cagney <cagney@gnu.org>
911
912 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
913 packet, obsolete configurations, end-of-life deprecated_registers.
914
b04de778
MK
9152004-11-02 Mark Kettenis <kettenis@gnu.org>
916
917 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
918 encodings as well as unsigned encodings.
919
9f2feefc
AC
9202004-11-02 Andrew Cagney <cagney@gnu.org>
921
922 * value.h (COERCE_VARYING_ARRAY): Delete.
923 * valops.c (value_cast, value_slice): Delete use.
924 * valarith.c (value_subscript, value_concat): Delete use.
925
117ea3cf
PH
9262004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
927
928 * NEWS: GDB understands GNAT Ada.
929
0bbc026e
JM
9302004-11-01 Joseph S. Myers <joseph@codesourcery.com>
931
932 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
933 (amd64-sol2-tdep.o): Add dependencies.
934 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
935 config/i386/sol2-64.mt: New files.
936 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
937 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
938 (supply_gregset): Correct order of arguments to
939 amd64_supply_native_gregset.
940 (fill_gregset): Correct order of arguments to
941 amd64_collect_native_gregset.
942 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
943 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
944 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
945 for definition of NEW_PROC_API.
946 * configure: Regenerate.
947
3d38a0a5
JM
9482004-11-01 Joseph S. Myers <joseph@codesourcery.com>
949
950 * MAINTAINERS (Write After Approval): Add myself.
951
f81cd1cf
AC
9522004-11-01 Andrew Cagney <cagney@gnu.org>
953
954 * configure.tgt: Mark d10v-*-* as obsolete.
955 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
956
f4e88c8e
PH
9572004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
958
959 * values.c (modify_field): Correct handling of bit-fields that
960 don't fit in 32 bits. Use unsigned operations throughout and
961 simplify the code a bit. Document preconditions.
962
84674fe1
AC
9632004-10-31 Andrew Cagney <cagney@gnu.org>
964
96693b3a
AC
965 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
966 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
967 (in_plt_section): Delete.
968
6f296f8f
AC
969 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
970 (mips_gdbarch_init): Do not set same.
971
618501c0
AC
972 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
973 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
974
b22e8f02
AC
975 * gdbarch.sh (in_solib_call_trampoline): Delete.
976 * gdbarch.h, gdbarch.c: Re-generate.
977
84674fe1
AC
978 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
979 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
980 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
981 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
982 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
983
c6d1029f
MK
9842004-10-31 Mark Kettenis <kettenis@gnu.org>
985
986 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
987 (mipsnbsd_fetch_inferior_registers): Rename from
988 fetch_inferior_registers. Make static.
989 (mipsnbsd_store_inferior_registers): Rename from
990 store_inferior_registers. Make static.
991 (_initialize_mipsnbsd_nat): New function and prototype.
992 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
993 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
994 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
995 inf-ptrace.o.
996
bd9ca83f
AC
9972004-10-31 Andrew Cagney <cagney@gnu.org>
998
19d718a3
AC
999 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1000 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1001 delete corresponding unused function.
1002 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1003 in_solib_call_trampoline.
1004 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1005 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1006 * config/mips/tm-nbsd.h: Ditto.
1007 * config/arm/tm-linux.h: Ditto.
1008 * config/mips/tm-linux.h: Ditto.
1009
e8ce19c0
AC
1010 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1011 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1012 in_solib_call_trampoline, delete corresponding unused function.
1013 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1014 (vaxnbsd_aout_init_abi): Ditto.
1015 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1016 (sparc32nbsd_aout_init_abi): Ditto.
1017 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1018 (ppc_linux_init_abi): Ditto.
1019 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1020 (ns32knbsd_init_abi_aout): Ditto.
1021 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1022 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1023 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1024 (m68kbsd_aout_init_abi): Ditto.
1025 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1026 (i386_cygwin_init_abi): Ditto.
1027 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1028 (i386bsd_init_abi): Ditto.
1029
af380d61
AC
1030 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1031 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1032 isn't used by this architecture.
1033 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1034 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1035 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1036 * s390-tdep.c (s390_gdbarch_init): Ditto.
1037 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1038 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1039 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1040 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1041 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1042 * amd64-tdep.c (amd64_init_abi): Ditto.
1043
0528d9f7
AC
1044 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1045 in_solib_call_trampoline to its default value of
1046 generic_in_solib_call_trampoline.
1047 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1048 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1049 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1050 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1051 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1052 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1053
f9f9eacb
AC
1054 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1055
a4ffd1e7
AC
1056 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1057
82e34d2f
AC
1058 * config/mips/tm-mips.h: Delete file.
1059 * remote-mips.c: Delete tm-mips.h from comment.
1060 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1061 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1062 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1063 * config/mips/tm-linux.h: Don't include tm-mips.h.
1064 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1065 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1066 * config/mips/tm-wince.h: Don't include.
1067
75dec9cf
AC
1068 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1069 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1070 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1071 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1072
bd9ca83f
AC
1073 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1074 * mdebugread.c (ecoff_relocate_efi): Delete function.
1075 * objfiles.c (objfile_relocate): Delete #ifdef
1076 MDEBUG_EFI_SYMBOL_NAME code.
1077
3352ef37
AC
10782004-10-31 Orjan Friberg <organ.friberg@axis.com>
1079 Andrew Cagney <cagney@gnu.org>
1080
1081 * gdbarch.sh (single_step_through_delay): Add.
1082 * gdbarch.h, gdbarch.c: Re-generate.
1083 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1084 (mips_step_skips_delay): Delete.
1085 * mips-tdep.c (mips_single_step_through_delay): Replace
1086 mips_step_skips_delay.
1087 (mips_gdbarch_init): Set single_step_through_delay.
1088 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1089
2440b685
MK
10902004-10-31 Mark Kettenis <kettenis@gnu.org>
1091
1092 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1093 from TRAMP_FRAME frame type.
1094
56a2fed5
AC
10952004-10-31 Andrew Cagney <cagney@gnu.org>
1096
9b792b1d
AC
1097 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1098
0a5e8d98
AC
1099 * mips-tdep.c (mips_ignore_helper): Delete.
1100 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1101 * infrun.c (handle_inferior_event): Delete #ifdef
1102 DEPRECATED_IGNORE_HELPER_CALL code.
1103
56a2fed5
AC
1104 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1105
f69c55b2
MK
11062004-10-31 Mark Kettenis <kettenis@gnu.org>
1107
1108 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1109 (fill_fpregset): Do not compile for 64-bit systems.
1110 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1111 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1112 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1113
d37cca3d
AC
11142004-10-30 Andrew Cagney <cagney@gnu.org>
1115
36b8628e
AC
1116 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1117 (struct mdebug_extra_func_info): Define.
1118 * config/alpha/tm-alpha.h: Delete same.
1119 * config/mips/tm-mips.h: Delete same.
1120 * mdebugread.c: Delete same.
1121 * Makefile.in: Update dependencies.
1122 * mips-mdebug-tdep.c: Include "mdebugread.h".
1123
5b123146
AC
1124 * objfiles.c: Include "mdebugread.h".
1125 * mdebugread.c: Include "mdebugread.h".
1126 (ecoff_relocate_cfi): Delete.
1127 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1128 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1129 * mdebugread.h (ecoff_relocate_efi): New file.
1130 * Makefile.in: Update dependencies.
1131
b9c3a7de
AC
1132 * mips-tdep.c (struct frame_extra_info): Delete.
1133 (temp_proc_desc): Delete.
1134
f92761ec
AC
1135 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1136 MIPS_EFI_SYMBOL_NAME.
1137 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1138 (struct mdebug_extra_func_info): Replace struct
1139 alpha_extra_func_info and alpha_extra_func_info_t.
1140 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1141 MIPS_EFI_SYMBOL_NAME.
1142 (struct mdebug_extra_func_info): Replace struct
1143 alpha_extra_func_info and alpha_extra_func_info_t.
1144 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1145 * mdebugread.c, alpha-mdebug-tdep.c:
1146
0bb57b31
AC
1147 Suggested by Mark Kettenis.
1148 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1149 fields frame_adjust and high_addr.
1150 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1151 (non_heuristic_proc_desc): Delete references.
1152
a5c9623c
AC
1153 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1154 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1155 * mips-tdep.c: Update.
1156
607fc93c
AC
1157 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1158 (MIPS_LAST_EMBED_REGNUM): Add.
1159 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1160 (LAST_EMBED_REGNUM): Delete.
1161 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1162
24e05951
AC
1163 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1164 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1165 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1166 * mips-linux-nat.c: Update.
1167
613e114f
AC
1168 * mips-tdep.h: Add comments on registers.
1169 (MIPS_UNUSED_REGNUM): Define.
1170 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1171 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1172 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1173 * mips-linux-nat.c, remote-mips.c: Update.
1174
d37cca3d
AC
1175 * config/mips/tm-mips.h (t_insn): Delete.
1176 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1177 Replace t_insn with ULONGEST.
1178
ceb41096
MK
11792004-10-30 Mark Kettenis <kettenis@gnu.org>
1180
d1180b0f
MK
1181 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1182 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1183 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1184 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1185 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1186 (mipsnbsd_core_osabi_sniffer): New function.
1187 (mipsnbsd_init_abi): Set regset_from_core_section.
1188 (_initialize_mipsnbsd_tdep): Remove calls to
1189 deprecated_add_core_fns.
1190 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1191 (mipsnbsd_regset_from_core_section): New functions.
1192 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1193 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1194
ceb41096
MK
1195 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1196 Remove optimization for DEPRECATED_FP_REGNUM.
1197
ec4045ea
AC
11982004-10-30 Andrew Cagney <cagney@gnu.org>
1199
cd65c8f6
AC
1200 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1201 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1202 (alpha_setup_arbitrary_frame): Delete.
1203 * mips-tdep.c (setup_arbitrary_frame): Delete.
1204 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1205 (setup_arbitrary_frame): Delete.
1206 * stack.c (parse_frame_specification_1): When specified, call
1207 create_new_frame with two parameters. Delete #ifdef
1208 SETUP_ARBITRARY_FRAME.
1209
95ac2dcf
AC
1210 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1211 (MIPS_INSTLEN): Delete.
1212 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1213 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1214 * remote-mips.c, mips-tdep.c: Update.
1215
1a8da44d
AC
1216 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1217 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1218 * mips-tdep.c (mips_mdebug_frame_cache)
1219 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1220 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1221 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1222 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1223 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1224 (mips_gdbarch_init): Do not append mdebug sniffers.
1225 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1226 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1227 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1228 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1229 * Makefile.in: Update dependencies.
1230
e6bc2e8a
AC
1231 * mips-tdep.h (mips_abi_regsize): Declare.
1232 * mips-tdep.c (mips_abi_regsize): Make non-static.
1233
ec4045ea
AC
1234 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1235 (make_mips16_addr): Delete.
e6bc2e8a 1236
6b16acab
MK
12372004-10-30 Mark Kettenis <kettenis@gnu.org>
1238
1239 * i386-sol2-nat.c: New file.
1240 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1241 i386-sol2-tdep.c.
1242 (i386-sol2-nat.o): Update dependencies.
1243 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1244 i386-sol2-nat.o.
1245
8b622e6a
AC
12462004-10-30 Andrew Cagney <cagney@gnu.org>
1247
1248 Total breakage identified by Joel Brobecker.
1249 * mips-tdep.c (after_prologue): Delete.
1250 (mips_skip_prologue): Use skip_prologue_using_sal.
1251 (heuristic_proc_desc): Delete, unused.
1252
772cf8be
MK
12532004-10-30 Mark Kettenis <kettenis@gnu.org>
1254
1255 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1256 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1257 Cleanup coding style.
1258
9c8fdbfa
AC
12592004-10-30 Andrew Cagney <cagney@gnu.org>
1260
0fe7e7c8
AC
1261 * mips-tdep.h (mips_pc_is_mips16): Declare.
1262 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1263 non-static. Update calls.
1264
1b295c3d
AC
1265 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1266 * command.h (add_setshow_enum_cmd): Declare.
1267 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1268
6bcadd06
AC
1269 * mips-tdep.c (_initialize_mips_tdep): Use
1270 add_setshow_zinteger_cmd.
1271
9c8fdbfa
AC
1272 * mips-tdep.c (mips_eabi_extract_return_value)
1273 (mips_o64_extract_return_value, mips_o64_store_return_value)
1274 (return_value_location, mips_eabi_reg_struct_has_addr)
1275 (mips_eabi_use_struct_convention)
1276 (mips_eabi_store_return_value): Delete.
1277 (mips_eabi_store_return_value): New function.
1278 (mips_eabi_return_value): New function.
1279 (mips_gdbarch_init): For O64 and EABI, delete
1280 extract_return_value, store_return_value, use_struct_convention
1281 and reg_struct_has_addr, add return_value.
1282
1d93fe1a
AC
1283 * mips-tdep.c (read_signed_register): Use
1284 regcache_cooked_read_signed.
1285
303d2914
MK
12862004-10-30 Mark Kettenis <kettenis@gnu.org>
1287
1288 * mipsread.c: Cleanup coding style.
1289 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1290 (mipscoff_symfile_finish): Remove prototypes.
1291
12922004-10-29 Mark Kettenis <kettenis@gnu.org>
1293
1294 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1295 (mips_mdebug_frame_cache, mips16_scan_prologue)
1296 (mips32_scan_prologue, mips_stub_frame_cache)
1297 (heuristic_proc_start, heuristic_proc_desc)
1298 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1299 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1300 (mips_o32_return_value, mips_o64_push_dummy_call)
1301 (mips_step_skips_delay, mips_skip_trampoline_code)
1302 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1303 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1304 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1305 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1306 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1307 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1308 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1309 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1310 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1311 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1312 ZERO_REGNUM.
1313 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1314 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1315 ZERO_REGNUM.
1316 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1317 A0_REGNUM.
1318 * mipsnbsd-nat.c: Include "mips-tdep.h".
1319 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1320 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1321
1c8831c5
AC
13222004-10-29 Andrew Cagney <cagney@gnu.org>
1323
1324 * stack.c (parse_frame_specification_1): New function based on
1325 parse_frame_specification. Add message and selected_frame_p
1326 paramters. Truely always return non-NULL.
1327 (parse_frame_specification): Call parse_frame_specification_1.
1328 (frame_info): Update. Eliminate target_has_stack check.
1329 (select_frame_command): Update.
1330
b04f3ab4
AC
13312004-10-29 Andrew Cagney <cagney@gnu.org>
1332
1333 * frame.h (get_selected_frame): Add message parameter.
1334 * frame.c (get_selected_frame): Add and use message parameter.
1335 * stack.c (current_frame_command, return_command, locals_info)
1336 (catch_info, args_info, up_silently_base, down_silently_base): Use
1337 get_selected_frame with an explicit message.
1338 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1339 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1340 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1341 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1342 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1343 * breakpoint.c: Update.
1344
13452004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1346
1347 * trad-frame.c (trad_frame_get_prev_register): Use
1348 frame_unwind_register instead of frame_register_unwind, do not
1349 recurse the register's location.
1350 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1351 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1352 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1353 * sh-tdep.c (sh_frame_prev_register): Ditto.
1354 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1355 * i386-tdep.c (i386_frame_prev_register): Ditto.
1356 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1357 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1358
7a952542
MK
13592004-10-28 Mark Kettenis <kettenis@jive.nl>
1360
c18c06be
MK
1361 * proc-events.c: Fix several coding-style issues. Consistently
1362 use #ifdef instead of #if defined().
1363 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1364 ARRAY_SIZE.
1365 (_initialize_proc_events): New prototype.
1366
7a952542
MK
1367 * proc-why.c: Fix several coding-style issues.
1368 (proc_prettyfprint_why): Use ARRAY_SIZE.
1369
fcad0fa4
JB
13702004-10-27 Jim Blandy <jimb@redhat.com>
1371
1372 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1373 manner independent of the host byte order.
1374
c163184f
MK
13752004-10-27 Mark Kettenis <kettenis@gnu.org>
1376
1377 * mips-tdep.c (id_delayed): Remove prototype.
1378
9c46b6f0
MK
13792004-10-26 Mark Kettenis <kettenis@gnu.org>
1380
1381 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1382 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1383 to enum with register numbers.
1384 (enum mips_insn_size): New enum.
1385
0d0266c6
AC
13862004-10-26 Andrew Cagney <cagney@gnu.org>
1387
e7d6a6d2
AC
1388 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1389 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1390 (mips_gdbarch_init): Update.
1391 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1392
c5115f39
AC
1393 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1394 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1395 IN_SOLIB_RETURN_TRAMPOLINE.
1396 * mips-tdep.c (mips_dump_tdep): Do not print
1397 IN_SOLIB_RETURN_TRAMPOLINE.
1398 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1399 (mips_gdbarch_init): Update.
1400
0d0266c6
AC
1401 * mips-tdep.h (mips_software_single_step): Move to here ...
1402 * config/mips/tm-mips.h: ... from here.
1403 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1404 (SOFTWARE_SINGLE_STEP): Delete.
1405 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1406
156a53ca
AC
14072004-10-25 Andrew Cagney <cagney@gnu.org>
1408
1409 * NEWS: Add Changes since GDB 6.3 section.
1410
f27cf670
AS
14112004-10-23 Andreas Schwab <schwab@suse.de>
1412
156a53ca
AC
1413 * ada-lang.c (grow_vect): Return the new array instead of
1414 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1415 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1416
121d8485
UW
14172004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1418
1419 * s390-tdep.c (enum pv_boolean): Remove.
1420 (pv_is_array_ref): Remove.
1421 (s390_on_stack): Remove.
1422 (S390_NUM_SPILL_SLOTS): Remove.
1423 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1424 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1425 (s390_store): Track all stores of orginal incoming registers to the
1426 stack constant offsets relative to the CFA, instead of only tracking
1427 stores into specific spill slots.
1428 (s390_load): Likewise.
1429 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1430 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1431 defined as call-saved by the ABI.
1432 (s390_push_dummy_call): Use bottom of dummy call argument save area
1433 as return value, not the top. Do not store to the called function's
1434 register save area.
1435 (s390_unwind_dummy_id): Adapt accordingly.
1436
0a6ddd08
AC
14372004-10-23 Andrew Cagney <cagney@gnu.org>
1438
1439 * objfiles.h (struct objfile): Rename obj_private to
1440 deprecated_obj_private, sym_private to deprecated_sym_private, and
1441 sym_stab_info to deprecated_sym_stab_info.
1442 * gdb-stabs.h: Update.
1443 * elfread.c: Update.
1444 * dbxread.c: Update.
1445 * coffread.c: Update.
1446 * xcoffread.c: Update.
1447 * symfile.c: Update.
1448 * somread.c: Update.
1449 * nlmread.c: Update.
1450 * mdebugread.c: Update.
1451 * hpread.c: Update.
1452 * coffread.c: Update.
1453
abc08782
MK
14542004-10-23 Mark Kettenis <kettenis@gnu.org>
1455
1456 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1457 * configure.host: Add mips64*-*-openbsd*.
1458 * configure.tgt: Add mips64*-*-openbsd*.
1459 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1460 mips64obsd-tdep.c.
1461 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1462 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1463
fc062ac6
JB
14642004-10-21 Joel Brobecker <brobecker@gnat.com>
1465
1466 * symtab.c (symbol_search_name): Minor reformatting.
1467
5bccb4d1
JB
14682004-10-20 Joel Brobecker <brobecker@gnat.com>
1469
1470 * symtab.h: Fix typo in comment.
1471
a738430d
MK
14722004-10-19 Mark Kettenis <kettenis@gnu.org>
1473
1474 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1475 (dwarf_decode_line_header): Likewise.
1476
f2cb65ca
MC
14772004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1478
1479 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1480
09e55376
AC
14812004-10-19 Andrew Cagney <cagney@gnu.org>
1482
1483 GDB 6.3 branch created.
1484 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1485
bc5f45f8
JB
14862004-10-15 Joel Brobecker <brobecker@gnat.com>
1487
1488 * dwarf2read.c (set_cu_language): Set language to Ada for
1489 DW_LANG_Ada83 and DW_LANG_Ada95.
1490
2941da8c
MC
14912004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1492
1493 From Andreas Schwab <schwab@suse.de>:
1494 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1495 for xmalloc and xrealloc.
1496
34a17005
AC
14972004-10-15 Andrew Cagney <cagney@gnu.org>
1498
1499 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1500 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1501 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1502 Update dependencies.
1503
714e53ab
PH
15042004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1505
1506 * ada-lang.c (ada_lookup_symbol): Correct comment.
1507 (ada_evaluate_subexp): Change error message for
1508 OP_FUNCALL case so as not to indicate an internal error.
1509
15102004-10-15 Joel Brobecker <brobecker@gnat.com>
1511
1512 Committed by Paul Hilfinger.
1513 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1514 type sizes in XVE/XVU types, and emit a warning when that happens,
1515 instead of rounding up the size of the resulting type.
1516 Some minor reformatting.
1517 (ada_is_aligner_type): Do not consider a type as an aligner type
1518 if there is a corresponding XVS type as well.
1519 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1520 have several levels of pointer indirection to the array.
1521
15222004-10-15 Jerome Guitton <guitton@gnat.com>
1523
1524 Committed by Paul Hilfinger.
1525 * ada-lang.c (check_size): New function.
1526 (coerce_unspec_val_to_type): call check_size to make sure
1527 that the object size is reasonable.
1528 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1529 Implements the case when we get a reference when we evaluate
1530 the expression of one of the bounds of the slice.
1531 (ada_value_struct_elt): when a packed array field is
1532 a reference, use ada_coerce_ref to dereference it; use
1533 ada_value_ind only if it is a pointer.
1534
29639122
JB
15352004-10-15 Joel Brobecker <brobecker@gnat.com>
1536
1537 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1538 a bit to avoid the necessity of an advance declaration. Remove
1539 declaration.
1540 (set_reg_offset): Move implemenation up.
1541 (mips16_get_imm): Likewise.
1542 (mips16_scan_prologue): Likewise.
1543 (reset_saved_regs): Likewise.
1544 (mips32_scan_prologue): Likewise.
1545
a65bbe44
JB
15462004-10-14 Joel Brobecker <brobecker@gnat.com>
1547
1548 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1549 Remove sp as a parameter, compute it internally instead. Move
1550 prologue scanning limit from heuristic_proc_desc to here.
1551 (mips16_scan_prologue): Likewise.
1552 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1553 by call to mips16_scan_prologue.
1554 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1555 by call to mips32_scan_prologue.
1556 (heuristic_proc_desc): Remove code that's no longer necessary.
1557 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1558 (mips_skip_prologue): Update calls to mips16_scan_prologue
1559 and mips32_scan_prologue.
1560
1c645fec
JB
15612004-10-14 Joel Brobecker <brobecker@gnat.com>
1562
1563 * mips-tdep.c (mips16_scan_prologue): Merge code from
1564 mips16_skip_prologue. Now return the address of the first
1565 instruction past the function prologue.
1566 (mips16_skip_prologue): Remove, no longer necessary.
1567 (mips_skip_prologue): Replace call to mips16_skip_prologue
1568 by call to mips16_scan_prologue.
1569
98b4dd94
JB
15702004-10-14 Joel Brobecker <brobecker@gnat.com>
1571
1572 * mips-tdep.c (mips32_scan_prologue): Merge code from
1573 mips32_skip_prologue. Now return the address of the first
1574 instruction past the function prologue.
1575 (mips32_skip_prologue): Remove. No longer necessary.
1576 (mips16_skip_prologue): Add parameter end_pc instead of
1577 computing it.
1578 (mips_skip_prologue): Compute the upper limit for the
1579 prologue scanning. Update call to mips16_skip_prologue.
1580 Replace call to mips32_skip_prologue by call to
1581 mips32_scan_prologue.
1582
ad4c72d2
MK
15832004-10-14 Mark Kettenis <kettenis@gnu.org>
1584
dfaf8edb
MK
1585 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1586 NetBSD system call stubs that store %rp in the ERP slot of the
1587 stack frame.
1588
3e3a28f1
MK
1589 * source.c: Always define O_BINARY to 0 if not defined already.
1590 (openp): Unconditionally use O_BINARY.
1591
ad4c72d2
MK
1592 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1593 * event-top.c (gdb_readline2): Likewise.
1594
52bd1401
OF
15952004-10-14 Orjan Friberg <orjanf@axis.com>
1596
1597 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1598 deprecated_add_core_fns which was removed by mistake.
1599
e0e25c6c
KB
16002004-10-13 Kevin Buettner <kevinb@redhat.com>
1601
1602 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1603 references to deprecated_registers[] with equivalent code.
1604
9f335945
KB
16052004-10-13 Kevin Buettner <kevinb@redhat.com>
1606
1607 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1608 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1609 instead of explicit test and print statement.
1610
06c2338d
MK
16112004-10-12 Mark Kettenis <kettenis@gnu.org>
1612
1b9445c2
MK
1613 * sparc-nat.c: Include "inf-ptrace.h".
1614 (sparc_target): New function.
1615 * sparc-nat.h: Update copyright year.
1616 (sparc_target): New prototype.
1617 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1618 (_initialize_sparcnbsd_nat): Construct and add target vector.
1619 * sparc64nbsd-nat.c: Include "target.h".
1620 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1621 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1622 Update dependencies.
1623 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1624 inftarg.o, add inf-ptrace.o.
1625 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1626 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1627 (NAT_FILE): Set to nm-bsd.h.
1628 (LOADLIBES): New variable.
1629 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1630 infarg.o, add inf-ptrace.o.
1631 * config/sparc/nm-nbsdaout.h: Remove file.
1632 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1633 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1634 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1635
06c2338d
MK
1636 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1637 "fopen-same.h". Update comment.
1638
3303a276
MK
16392004-10-11 Mark Kettenis <kettenis@gnu.org>
1640
1641 * i386gnu-nat.c: Include "gdb_string.h".
1642 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1643 registers when the floating-point state isn't initialized.
1644 * Makefile.in (i386gnu-nat.o): Update dependencies.
1645
04c663e3
DA
16462004-10-11 David Anderson <davea@sgi.com>
1647
1648 * regcache.c (regcache_raw_read): Comment was missing "to".
1649 Extraneous ' removed.
1650 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1651 comment now describes use.
1652
a5f6c8f5
OF
16532004-10-11 Orjan Friberg <orjanf@axis.com>
1654
1655 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1656 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1657 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1658 (cris_sigtramp_frame_sniffer): New functions.
1659 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1660 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1661 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1662 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1663 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1664 command.
1665 (cris_version_update): Remove, replace with ...
1666 (set_cris_version): New function.
1667 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1668 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1669 (_initialize_cris_tdep): Remove CRIS mode command.
1670 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1671 cris-fpless-backtrace command.
1672 (cris_scan_prologue): Fix prologue scanning limit.
1673 (cris_register_type): Update to reflect actual registers.
1674 (cris_register_bytes_ok) Remove.
1675 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1676 Remove set_gdbarch_deprecated_register_size,
1677 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1678
77109804
AC
16792004-10-10 Andrew Cagney <cagney@gnu.org>
1680
1681 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1682 comment.
1683
25652d4f
JB
16842004-10-10 Joel Brobecker <brobecker@gnat.com>
1685
1686 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1687
1e05a7bf
JB
16882004-10-10 Joel Brobecker <brobecker@gnat.com>
1689
1690 * mips-tdep.c (mips16_scan_prologue): Renames
1691 mips16_heuristic_proc_desc. Update comment.
1692 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1693 (heuristic_proc_desc): Update calls to the 2 functions above.
1694
c68a4142
JB
16952004-10-10 Joel Brobecker <brobecker@gnat.com>
1696
1697 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1698 Update comments. Also immediately return empty cache when the start
1699 address of our function could not be found.
1700 (mips_insn32_frame_cache): Likewise.
1701
0fce0821
JB
17022004-10-10 Joel Brobecker <brobecker@gnat.com>
1703
1704 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1705 (mips_insn16_frame_cache): Pass frame cache in call to
1706 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1707 Remove code that became redundant as a consequence.
1708 (mips32_heuristic_proc_desc): No longer compute a fake
1709 procedure descriptor. Compute the full frame cache instead.
1710 Some minor comment reformatting.
1711
b672553e
JB
17122004-10-10 Jim Blandy <jimb@redhat.com>
1713
1714 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1715 reader, tracing bytecode stuff): Remove self.
1716
9cc52bde
MK
17172004-10-10 Mark Kettenis <kettenis@gnu.org>
1718
cc9784b6
MK
1719 * sparc64-linux-tdep.c: Update copyright year. Don't include
1720 "solib-svr4.h".
1721 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1722 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1723 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1724
ee8aef23
MK
1725 * sparc-linux-tdep.c: Update copyright year.
1726 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1727 to struct frame_info *. Use safe_frame_unwind_memory instead of
1728 deprecated_read_memory_nobpt.
1729 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1730 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1731 changed signature of sparc_linux_sigtramp_start.
1732 (sparc32_linux_pc_in_sigtramp): Remove function.
1733 (sparc32_linux_sigtramp_p): New function.
1734 (sparc32_linux_sigtramp_frame_sniffer): Use
1735 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1736
bc73f8cc
MK
1737 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1738 Remove function.
1739 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1740
a2249542
MK
1741 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1742 (decode_packed_array_type, value_subscript_packed)
1743 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1744 argument in call to lim_warning.
1745
9cc52bde
MK
1746 * configure.in: Really disable the TUI if an enhanced curses
1747 library isn't found.
1748 * configure: Regenerate.
1749
151fc45b
MK
17502004-10-09 Mark Kettenis <kettenis@gnu.org>
1751
1752 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1753 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1754 * config/i386/nm-nbsdaout.h: Remove file.
1755 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1756 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1757 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1758 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1759 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1760 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1761 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1762 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1763 (ldd, ld_un, ld_2): Remove defines.
1764 * config/i386/nm-obsd.h: Likewise.
1765
375c0479
PH
17662004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1767
1768 * ada-lex.l: Remove useless rule whose right-context clause
1769 causes unreferenced static function warning for yyrealloc.
1770 (ada_flex_use): Remove the artificial reference to yyrealloc.
1771
c8e73a31
AC
17722004-10-08 Andrew Cagney <cagney@gnu.org>
1773
1774 * target.h (struct target_ops): Rename to_xfer_memory to
1775 deprecated_xfer_memory.
1776 * target.c: Update.
1777 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1778 * wince.c: Update.
1779 * win32-nat.c: Update.
1780 * v850ice.c: Update.
1781 * uw-thread.c: Update.
1782 * thread-db.c: Update.
1783 * sol-thread.c: Update.
1784 * remote.c: Update.
1785 * remote-vx.c: Update.
1786 * remote-st.c: Update.
1787 * remote-sim.c: Update.
1788 * remote-sds.c: Update.
1789 * remote-rdp.c: Update.
1790 * remote-rdi.c: Update.
1791 * remote-mips.c: Update.
1792 * remote-m32r-sdi.c: Update.
1793 * remote-e7000.c: Update.
1794 * procfs.c: Update.
1795 * ppc-bdm.c: Update.
1796 * nto-procfs.c: Update.
1797 * monitor.c: Update.
1798 * linux-nat.c: Update.
1799 * inftarg.c: Update.
1800 * hpux-thread.c: Update.
1801 * go32-nat.c: Update.
1802 * gnu-nat.c: Update.
1803 * exec.c: Update.
1804 * corelow.c: Update.
1805 * bsd-kvm.c: Update.
1806 * aix-thread.c: Update.
1807
aa869812
AC
18082004-10-08 Andrew Cagney <cagney@gnu.org>
1809
1810 * target.c (debug_target): Move to near start of file.
1811 (target_stopped_data_address_p): Re-org logic, add casts.
1812
8dcef9cf
MK
18132004-10-02 Mark Kettenis <kettenis@gnu.org>
1814
1815 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1816 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1817 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1818 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1819 New defines.
1820
4aa7a7f5
JJ
18212004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1822
1823 * target.h (to_stopped_data_address): Change prototype to
1824 take a CORE_ADDR pointer and return an int.
1825 * target.c (update_current_target): Change to_stopped_data_address
1826 to match new prototype.
1827 (debug_to_stopped_data_address): Change appropriately.
1828 * breakpoint.c (bpstat_stop_status): Change call to
1829 target_stopped_data_address to use new prototype.
1830 * frv-tdep.c (frv_have_stopped_data_address): New function.
1831 (frv_stopped_data_address): Change to new prototype and
1832 functionality.
1833 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1834 prototype and functionality.
1835 (ia64_stopped_by_watchpoint): New function.
1836 * i386-nat.c (i386_stopped_data_address): Change to new
1837 prototype and functionality.
1838 (i386_stopped_by_watchpoint): New function.
1839 * remote.c (remote_stopped_data_address): Change to new prototype
1840 and functionality.
1841 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1842 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1843 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1844 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1845 new i386_stopped_by_watchpoint function.
1846 (i386_stopped_by_watchpoint): New prototype.
1847 (i386_stoppped_data_address): Change to new prototype.
1848 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1849 new ia64_stopped_by_watchpoint function.
1850 (ia64_stopped_by_watchpoint): New prototype.
1851 (ia64_stopped_data_address): Ditto.
1852
61ee279c
PH
18532004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1854
1855 * ada-typeprint.c (ada_print_type): Use int_string for printing
1856 modulus of modular type.
1857 * ada-lang.h (ada_modulus): Change return type to unsigned.
1858 * ada-lang.c (ada_language_arch_info): Correct type of
1859 string_char_type.
1860 (ada_modulus): Return unsigned result.
1861 (ada_lookup_symbol): Remove user disambiguation and modify comment
1862 accordingly.
1863
18642004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1865
1866 Committed by Paul Hilfinger.
1867 * ada-lang.c (decode_packed_array): On big-endian targets,
1868 left-justify the value if it comes with a modular type.
1869
18702004-10-08 Joel Brobecker <brobecker@gnat.com>
1871
1872 Committed by Paul Hilfinger.
1873 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1874 (is_name_suffix): Add support for "___JM" suffixes.
1875 (ada_check_typedef): Renames ada_completed_type.
1876 Update all users of CHECK_TYPEDEF, check_typedef, and
1877 ada_complete_type to call ada_check_typedef.
1878 * ada-typeprint.c: Likewise.
1879 * ada-valprint.c: Likewise.
1880
b6c25a56
CV
18812004-10-08 Corinna Vinschen <vinschen@redhat.com>
1882
1883 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1884
83ca6a46
NR
18852004-10-08 Nick Roberts <nickrob@snap.net.nz>
1886
1887 * MAINTAINERS: Update e-mail address.
1888
1fd8cd20
DJ
18892004-10-07 Daniel Jacobowitz <dan@debian.org>
1890
1891 From Maciej W. Rozycki <macro@mips.com>:
1892 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1893 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1894
cea15572
KI
18952004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1896
1897 * m32r-tdep.c (decode_prologue): Support functions written
1898 in assembler language. Recognize trap instructions as the
1899 end of prologue.
1900 (m32r_frame_unwind_cache): Ditto.
1901 (m32r_skip_prologue): Extend search limit. Quit analyzing
1902 prologue if pc's location is not readable.
1903
23485554
PH
19042004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1905
1906 * Makefile.in (.l.c): Do conversions of names of alloc and free
1907 functions that are done for .y.c files, plus special one
1908 for yy_flex_realloc. Also, correct missing-file tests here.
1909 * ada-lex.l (malloc, free): Remove macros.
1910 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1911 xrealloc.
1912 (ada_flex_use): Dummy definition to remove warnings about unused
1913 functions.
1914 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1915 to suppress warning.
1916
c0409442
CV
19172004-10-06 Corinna Vinschen <vinschen@redhat.com>
1918
1919 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1920 RETURN_VALUE.
1921 (sh_return_value_fpu): Ditto for CPUs with FPU.
1922 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1923 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1924 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1925 RETURN_VALUE functions.
1926
9bed62d7
CV
19272004-10-06 Corinna Vinschen <vinschen@redhat.com>
1928
1929 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1930 (sh_pseudo_register_write): Ditto.
1931
03131d99
CV
19322004-10-06 Corinna Vinschen <vinschen@redhat.com>
1933
1934 * sh-tdep.c (IS_MACL_STS): New define.
1935 (IS_MOVI20): Ditto.
1936 (IS_MACL_LDS): Ditto.
1937 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1938 instructions in prologue.
1939 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1940 instructions in epilogue.
1941
da962468
CV
19422004-10-06 Corinna Vinschen <vinschen@redhat.com>
1943
1944 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1945 (sh_sh_register_name): Add eight empty register names.
1946 (sh_sh3_register_name): Ditto.
1947 (sh_sh3e_register_name): Ditto.
1948 (sh_sh2e_register_name): Ditto.
1949 (sh_sh2a_register_name): New function, defining SH2A register set.
1950 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1951 in nofpu case.
1952 (sh_sh_dsp_register_name): Add eight empty register names.
1953 (sh_sh3_dsp_register_name): Ditto.
1954 (sh_sh4_register_name): Ditto.
1955 (sh_sh4_nofpu_register_name): Ditto.
1956 (sh_sh4al_dsp_register_name): Ditto.
1957 (sh2a_show_regs): New function.
1958 (sh2a_nofpu_show_regs): New function.
1959 (sh_sh2a_register_type): New function.
1960 (do_bank_register_info): New function.
1961 (sh_print_pseudo_register): Call do_bank_register_info.
1962 Call sh_print_pseudo_register for valid "bank" register.
1963 (sh_sh2a_register_sim_regno): New function.
1964 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1965 Increment pseudo register count by one for all sh variants with
1966 pseudo registers to accomodate pseudo bank register.
1967 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1968 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1969 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1970 Increment pseudo register numbers.
1971
1326e61b
CV
19722004-10-06 Corinna Vinschen <vinschen@redhat.com>
1973
1974 * dwarf2read.c (read_subroutine_type): Call make_function_type
1975 instead of lookup_function_type.
1976
146c42e3
JB
19772004-10-05 Jim Blandy <jimb@redhat.com>
1978
1979 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1980 (Previous change missed some uses.)
1981
1df84f13
AC
19822004-10-05 Andrew Cagney <cagney@gnu.org>
1983
1984 * target.h (deprecated_child_ops): Rename child_ops.
1985 * wince.c: Update copyright. Rename child_ops.
1986 * win32-nat.c: Rename child_ops.
1987 * target.c: Rename child_ops.
1988 * rs6000-nat.c: Rename child_ops.
1989 * linux-nat.c: Rename child_ops.
1990 * infttrace.c: Rename child_ops.
1991 * inftarg.c: Rename child_ops.
1992 * infptrace.c: Rename child_ops.
1993 * hppah-nat.c: Update copyright. Rename child_ops.
1994 * hpux-thread.c: Update copyright. Rename child_ops.
1995
21e3b9b9
DJ
19962004-10-05 Daniel Jacobowitz <dan@debian.org>
1997
1998 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1999
de83afe7
AC
20002004-10-05 Andrew Cagney <cagney@gnu.org>
2001
2002 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2003
10b3939b
DJ
20042004-10-05 Daniel Jacobowitz <dan@debian.org>
2005
2006 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2007 (die_ref_table): Remove.
2008 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2009 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2010 the usage of this type.
2011 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2012 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2013 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2014 (dwarf2_create_include_psymtab): Update comment.
2015 (find_partial_die): Remove third argument. Remove unreachable call
2016 to error ().
2017 (dwarf2_find_containing_comp_unit): Update comments. Change one
2018 assertion to an error. Remove an unreachable error.
2019 (dwarf2_find_comp_unit): Update comments.
2020 (type_at_offset): Remove dead code.
2021 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2022 (store_in_ref_table): Add CU argument.
2023 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2024 inter-compilation-unit references.
2025 (load_full_comp_unit, process_full_comp_unit): New functions, based
2026 on psymtab_to_symtab_1.
2027 (psymtab_to_symtab_1): Use them.
2028 (dwarf2_add_dependence): New function.
2029 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2030 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2031 (partial_die_parent_scope, guess_structure_name): Update for changes
2032 to find_partial_die.
2033 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2034 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2035 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2036 (read_die_and_children): Update call to store_in_ref_table.
2037 (do_free_die_list_cleanup): Remove.
2038 (fixup_partial_die): Update for changes to find_partial_die.
2039 (read_full_die): Handle queueing absolute references.
2040 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2041 (dwarf2_attr, die_specification, die_type)
2042 (die_containing_type, dwarf2_extension): Update calls to
2043 follow_die_ref.
2044 (dump_die): Update DW_FORM_ref* handling.
2045 (dwarf2_get_ref_die_offset): Likewise.
2046 (free_one_comp_unit): Release the dies list.
2047 (dwarf2_mark_helper): New function.
2048 (dwarf2_mark): Use it.
2049
998bdd68
MK
20502004-10-05 Mark Kettenis <kettenis@jive.nl>
2051
2052 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2053 when writing to memory.
2054
14588880
KI
20552004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2056
2057 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2058 (m32r_extract_struct_value_address): Delete function.
2059 (m32r_return_value): New function.
2060 (m32r_gdbarch_init): Instead of store_return_value,
2061 extract_return_value, deprecated_extract_struct_value_address
2062 and deprecated_use_struct_convention, set return_value.
2063
dd5e6932
DJ
20642004-10-03 Daniel Jacobowitz <dan@debian.org>
2065
2066 * dwarf2read.c (read_subrange_type): Add comment for variable
2067 sized arrays.
2068
7dc1ef8d
PH
20692004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2070
2071 * Makefile.in (.l.c): Modify rule for compatibility with recent
2072 versions of flex, and remove most command-line options.
2073 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2074 options.
2075
1f8173e6
PH
20762004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2077
2078 Turn on initial Ada support (mainly expression evaluation).
2079
2080 * Makefile.in (SFILES): Remove ada-tasks.c.
2081 (HFILES_NO_SRCDIR): Add ada-lang.h.
2082 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2083 (YYOBJ): Add ada-exp.o.
2084 (rule .l.c): Generalize to not mention ada.
2085 * symtab.c: Include ada-lang.h.
2086 (symbol_natural_name, symbol_demangled_name)
2087 (symbol_search_name): Add Ada case.
2088
cb85a953
AC
20892004-10-01 Andrew Cagney <cagney@gnu.org>
2090
3f3db248
AC
2091 * Makefile.in (COMMON_OBS): Add inf-child.o.
2092 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2093 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2094 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2095 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2096 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2097 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2098 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2099 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2100 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2101 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2102 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2103 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2104 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2105
cb85a953
AC
2106 * target.c (xfer_using_stratum): Change return type to LONGEST.
2107 On each iteration offset, readbuf and writebuf.
2108 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2109 partial_length, and read/modify/write predicate, update comments.
2110 Pass buffer.word to ptrace write.
2111
963a6417
PH
21122004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2113
2114 * symfile.c (init_filename_language_table): Add extensions for
2115 Ada.
2116 * defs.h (enum language): Add language_ada.
2117 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2118 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2119 (add_symbols_from_enclosing_procs): Make a no-op for now.
2120 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2121 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2122 (find_line_in_linetable, find_next_line_in_linetable)
2123 (read_all_symtabs, is_plausible_func_for_line)
2124 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2125 (is_runtime_sym_defined, check_size): Remove declaration.
2126 (function_name_from_pc, ada_translate_error_message)
2127 (ada_lookup_minimal_symbol): Remove definition.
2128 (ada_add_block_symbols): Remove useless label.
2129 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2130 useless declaration.
2131 (ada_is_exception_sym): Likewise.
2132
9b32d526
KI
21332004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2134
2135 Add m32r-linux support.
2136 * configure.tgt: Add m32r*-*-linux*.
2137 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2138 and m32r-linux-tdep.c.
2139 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2140 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2141 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2142 m32r-linux-tdep.c.
2143 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2144 config/m32r/linux.mh, config/m32r/linux.mt,
2145 config/m32r/nm-linux.h: New files.
2146
2de118d3
JB
21472004-09-30 Joel Brobecker <brobecker@gnat.com>
2148
2149 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2150 (mips32_fetch_instruction): Remove, unused.
2151
a9fe69d1
JB
21522004-09-30 Joel Brobecker <brobecker@gnat.com>
2153
2154 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2155 conditions that will always be true.
2156
bc8ffc12
MK
21572004-09-30 Mark Kettenis <kettenis@gnu.org>
2158
ba0cd111
MK
2159 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2160 (vaxbsd_fetch_inferior_registers): Rename from
2161 fetch_inferior_registers. Make static.
2162 (vaxbsd_store_inferior_registers): Rename from
2163 store_inferior_registers. Make static.
2164 (_initialize_vaxbsd_nat): Construct and add target vector.
2165 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2166 inftarg.o. Add inf-child.o and inf-ptrace.o.
2167 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2168 inftarg.o. Add inf-child.o and inf-ptrace.o.
2169 (NAT_FILE): Remove.
2170 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2171 inftarg.o. Add inf-child.o and inf-ptrace.o.
2172 (NAT_FILE): Remove.
2173 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2174
bc8ffc12
MK
2175 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2176 (m88kbsd_fetch_inferior_registers): Rename from
2177 fetch_inferior_registers. Make static.
2178 (m88kbsd_store_inferior_registers): Rename from
2179 store_inferior_registers. Make static.
2180 (_initialize_m88kbsd_nat): New prototype and function.
2181 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2182 inftarg.o. Add inf-child.o and inf-ptrace.o.
2183 (NAT_FILE): Remove.
2184 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2185
27394598
AC
21862004-09-30 Andrew Cagney <cagney@gnu.org>
2187
2188 * target.c (target_xfer_partial): New function.
2189 (target_read_memory_partial, target_write_memory_partial)
2190 (default_xfer_partial, target_read_partial, target_write_partial)
2191 (xfer_using_stratum): Use.
2192 (debug_to_xfer_partial): Delete function.
2193 (setup_target_debug): Do not override to_xfer_partial.
2194
74a4fe32
MK
21952004-09-30 Mark Kettenis <kettenis@chello.nl>
2196
2197 * fork-child.c: Update copyright year. Fix coding style.
2198
982526a1
MK
21992004-09-29 Mark Kettenis <kettenis@gnu.org>
2200
2201 * defs.h (msavestring, mstrsave): Remove prototypes.
2202 * utils.c (msavestring, mstrsave): Remove functions.
2203 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2204 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2205 of mstrsave.
2206 * source.c (find_and_open_source): Use xstrdup instead of
2207 mstrsave.
2208
b8eb5af0
AC
22092004-09-30 Andrew Cagney <cagney@gnu.org>
2210
0779438d
AC
2211 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2212 (inf_ptrace_xfer_memory): Delete.
2213 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2214 (target_read_memory, target_write_memory): Use xfer_using_stratum
2215 when target_xfer_partial_p.
2216 (debug_target): Move to start of file.
2217 (target_read_memory_partial, target_write_memory_partial): Use
2218 to_xfer_partial when target_xfer_partial_p.
2219
f929a579
AC
2220 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2221 inf_ptrace_xfer_memory with equivalent code.
2222 * inftarg.c (child_xfer_partial): When performing a write, pass
2223 writebuf to child_xfer_memory.
2224
b8eb5af0
AC
2225 * target.c (target_read_string): Use target_read_memory instead of
2226 target_xfer_memory.
2227
ee21b650
AC
22282004-09-29 Andrew Cagney <cagney@gnu.org>
2229
d3e05d0d
AC
2230 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2231 the address of status.
2232
ee21b650
AC
2233 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2234 (kill_inferior): Inline ptrace_wait call.
2235 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2236 * inftarg.c (child_wait): Inline ptrace_wait call.
2237
a182eed6
AC
2238 * target.h (struct target_ops): Delete field to_post_wait.
2239 (target_post_wait): Delete macro.
2240 (child_post_wait): Delete declaration.
2241 * target.c (update_current_target, update_current_target)
2242 (debug_to_post_wait, setup_target_debug): Delete functions and
2243 references.
2244 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2245 * inftarg.c (child_post_wait): Delete.
2246 (init_child_ops): Do not set to_post_wait.
2247 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2248 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2249 * inf-child.c (inf_child_post_wait): Delete.
2250 (inf_child_target): Do not set to_post_wait.
2251 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2252 (inf_ptrace_target): Do not set to_post_wait.
2253
ba0c540b
AC
2254 * wince.c (child_ops): Delete.
2255 * win32-nat.c (child_ops): Delete.
2256
81977402
AC
2257 * inftarg.c (inftarg_set_find_memory_regions)
2258 (inftarg_set_make_corefile_notes): Delete functions.
2259 (_initialize_linux_nat): Inline calls.
2260
5ac10fd1
AC
2261 * target.h (child_ops): Declare.
2262 * inftarg.c (child_ops): Move from here ...
2263 * target.c (child_ops): ... to here.
2264 * wince.c (child_ops): Delete extern declaration.
2265 * win32-nat.c (child_ops): Delete extern declaration.
2266 * linux-nat.c (child_ops): Delete extern declaration.
2267 * hpux-thread.c (child_ops): Delete extern declaration.
2268
663408c2 22692004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2270
2271 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2272
0dad8a66
MK
22732004-09-28 Mark Kettenis <kettenis@gnu.org>
2274
2275 * configure.in: Only set host_makefile_frag when building a native
2276 debugger.
2277 * configure: Regenerate.
e8d74ed3
MK
2278
2279 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2280 for OpenBSD ELF.
2281
dba24537
AC
22822004-09-28 Andrew Cagney <cagney@gnu.org>
2283
e979516b
AC
2284 Problem identified by Paul Hilfinger.
2285 * Makefile.in (ada_lex_c): Define.
2286 (ada-lex.o): Delete rule.
2287
dba24537
AC
2288 * linux-proc.c: Delete file.
2289 * Makefile.in: Update.
2290 * config/sparc/linux64.mh (NATDEPFILES):
2291 * config/sparc/linux.mh (NATDEPFILES): Update.
2292 * config/s390/s390.mh (NATDEPFILES): Update.
2293 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2294 * config/powerpc/linux.mh (NATDEPFILES): Update.
2295 * config/pa/linux.mh (NATDEPFILES): Update.
2296 * config/mips/linux.mh (NATDEPFILES): Update.
2297 * config/m68k/linux.mh (NATDEPFILES): Update.
2298 * config/ia64/linux.mh (NATDEPFILES): Update.
2299 * config/i386/linux64.mh (NATDEPFILES): Update.
2300 * config/i386/linux.mh (NATDEPFILES): Update.
2301 * config/arm/linux.mh (NATDEPFILES): Update.
2302 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2303 * linux-nat.c: Update copyright. Include <sys/param.h>,
2304 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2305 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2306 (O_LARGEFILE): Possibly define.
2307 (_initialize_linux_nat, linux_proc_pending_signals)
2308 (add_line_to_sigset, linux_proc_xfer_memory)
2309 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2310 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2311 (struct linux_corefile_thread_data)
2312 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2313 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2314
d6b0e80f
AC
23152004-09-16 Andrew Cagney <cagney@gnu.org>
2316
2317 * lin-lwp.c: Delete file.
2318 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2319 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2320 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2321 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2322 (linux_nat_attach, detach_callback, linux_nat_detach)
2323 (resume_callback, resume_clear_callback, linux_nat_resume)
2324 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2325 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2326 (status_callback, running_callback, count_events_callback)
2327 (select_singlestep_lwp_callback, select_event_lwp_callback)
2328 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2329 (child_wait, stop_and_resume_callback, linux_nat_wait)
2330 (kill_callback, kill_wait_callback, linux_nat_kill)
2331 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2332 (linux_nat_xfer_memory, linux_nat_thread_alive)
2333 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2334 (_initialize_linux_nat): New functions.
2335 * Makefile.in: Update all dependencies.
2336 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2337 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2338 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2339 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2340 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2341 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2342 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2343 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2344 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2345 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2346 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2347 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2348 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2349
5a174d79
MK
23502004-09-27 Mark Kettenis <kettenis@gnu.org>
2351
2f604c28
MK
2352 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2353 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2354
5a174d79
MK
2355 * configure.in: Don't comment out NATDEPFILES in the generated
2356 Makefile if NAT_FILE is unset.
2357 * configure: Regenerate.
2358
b2ed1746
AC
23592004-09-27 Andrew Cagney <cagney@gnu.org>
2360
44cbf7b5
AC
2361 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2362 (insert_step_resume_breakpoint): Delete.
2363 (insert_step_resume_breakpoint_at_frame): New function.
2364 (insert_step_resume_breakpoint_at_sal): New function.
2365 (handle_inferior_event, step_into_function)
2366 (insert_step_resume_breakpoint): Simplify by using same.
2367
b2ed1746
AC
2368 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2369
3691b3be
MK
23702004-09-26 Mark Kettenis <kettenis@gnu.org>
2371
36f391e8
MK
2372 * fbsd-proc.c: Remove file.
2373 * Makefile.in (fbsd-proc.o): Remove dependency.
2374
771e236c
MK
2375 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2376 code together.
2377
3691b3be
MK
2378 * config/i386/nm-fbsd64.h: Remove file.
2379 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2380
6a5c78a3
MK
23812004-09-26 Mark Kettenis <kettenis@gnu.org>
2382
2383 * amd64-nat.h: Update copyright year.
2384 (amd64bsd_target): New prototype.
2385 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2386 (amd64bsd_target): New function.
2387 (amd64bsd_fetch_inferior_registers): Rename from
2388 fetch_inferior_registers. Make static.
2389 (amd64bsd_store_inferior_registers): Rename from
2390 store_inferior_registers. Make static.
2391 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2392 (_initialize_amd64fbsd_nat): Construct and add target vector.
2393 * amd64nbsd-nat.o: Include "target.h".
2394 (_initialize_amd64nbsd_nat): Construct and add target vector.
2395 * amd64obsd-nat.c: Include "target.h".
2396 (_initialize_amd64obsd_nat): Construct and add target vector.
2397 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2398 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2399 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2400 fbsd-nat.o.
2401 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2402 Remove infptrace.o and inftarg.o. Add inf-child.o and
2403 inf-ptrace.o.
2404 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2405 (amd64obsd-nat.o): Update dependencies.
2406
27acbe61
MK
24072004-09-25 Mark Kettenis <kettenis@gnu.org>
2408
509a5e7d
MK
2409 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2410 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2411 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2412 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2413 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2414
6e1e94ea
MK
2415 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2416 Inline attach call.
2417 (inf_ptrace_detach): Inline detach call.
2418
8b9cf735
MK
2419 * configure.in: Check for waddstr instead of mvwaddstr when
2420 searching for curses library. Check for wborder.
2421 * configure, config.in: Regenerate.
2422 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2423 available.
2424
27acbe61
MK
2425 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2426
b96ec7ac
AC
24272004-09-24 Robert Picco <Robert.Picco@hp.com>
2428
2429 Committed by Andrew Cagney.
2430 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2431 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2432 configuration.
2433 (fetch_register_using_p): Implement 'p' packet. Based on code by
2434 Fernando Nasser.
2435 (remote_fetch_registers): Call fetch_register_using_p.
2436 (init_all_packet_configs, show_remote_cmd)
2437 (_initialize_remote): Add p-packet.
2438
62ece330
MK
24392004-09-24 Mark Kettenis <kettenis@gnu.org>
2440
2441 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2442 instead of call_ptrace. Call wait directly instead of
2443 ptrace_wait.
2444 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2445 (inf_ptrace_wait): Inline ptrace_wait call.
2446
00937274
PH
24472004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2448
2449 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2450 rolled back instead.
2451
3f2c7a45
PH
24522004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2453
2454 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2455 the new argument order.
2456
b6fcb393
CV
24572004-09-23 Corinna Vinschen <vinschen@redhat.com>
2458
2459 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2460 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2461 (struct gdbarch_tdep): Remove.
2462 (struct xstormy16_frame_cache): New frame cache structure.
2463 (xstormy16_register_byte, xstormy16_register_raw_size)
2464 (xstormy16_reg_virtual_type, xstormy16_register_type)
2465 (xstormy16_push_arguments, xstormy16_push_return_address)
2466 (xstormy16_pop_frame, xstormy16_store_struct_return)
2467 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2468 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2469 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2470 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2471 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2472 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2473 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2474 (xstormy16_extract_return_value, xstormy16_store_return_value):
2475 Regcachify. Drop useless struct convention handling.
2476 (xstormy16_register_type, xstormy16_return_value)
2477 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2478 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2479 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2480 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2481 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2482 (xstormy16_unwind_dummy_id) : New functions.
2483 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2484 of xstormy16_scan_prologue.
2485 (xstormy16_frame_unwind): New frame_unwind structure.
2486 (xstormy16_frame_base): New frame_base structure.
2487 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2488 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2489
1285b746
MK
24902004-09-22 Mark Kettenis <kettenis@gnu.org>
2491
2492 * language.c (language_gdbarch_post_init): Fix off-by one error.
2493
1c379e20
DJ
24942004-09-21 Daniel Jacobowitz <dan@debian.org>
2495
2496 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2497 (struct dwarf2_offset_and_type): New.
2498 (set_die_type, reset_die_and_siblings_types, get_die_type)
2499 (offset_and_type_hash, offset_and_type_eq): New functions.
2500 (read_structure_type, read_enumeration_type, read_array_type)
2501 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2502 (read_tag_reference_type, read_tag_const_type)
2503 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2504 (read_typedef, read_base_type, read_subrange_type): Use
2505 set_die_type.
2506
ae038cb0
DJ
25072004-09-20 Daniel Jacobowitz <dan@debian.org>
2508
2509 * Makefile.in (dwarf2read.o): Update dependencies.
2510 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2511 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2512 and read_in_chain.
2513 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2514 mark, and has_form_ref_addr.
2515 (struct dwarf2_per_cu_data): New.
2516 (dwarf2_max_cache_age): New.
2517 (dwarf2_build_psymtabs_hard): Free cached compilation units
2518 after loading. Create and manage the list of compilation units.
2519 Remove unnecessary NULL initialization. Fix indentation.
2520 (psymtab_to_symtab_1): Initialize all of CU.
2521 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2522 (find_partial_die): Use dwarf2_find_containing_comp_unit
2523 and load_comp_unit.
2524 (free_stack_comp_unit): Update comments. Clear the per-cu
2525 pointer. Handle aging.
2526 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2527 (age_cached_comp_units, free_one_cached_comp_unit)
2528 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2529 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2530 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2531 (show_dwarf2_cmd): New.
2532 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2533 and "maint show dwarf2 max-cache-age".
2534 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2535 externs.
2536 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2537 global.
2538
987504bb
JJ
25392004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2540
2541 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2542 and dwarf2_cu struct pointer as arguments. Change function to use
2543 obstack if provided and use dwarf2_cu to determine language-specific
2544 separator.
2545 (partial_die_parent_scope): Change comment to include java. Use
2546 new version of typename_concat instead of obconcat.
2547 (partial_die_full_name): Use typename_concat.
2548 (read_namespace): Ditto.
2549 (read_enumeration_type): Use typename_concat instead of obconcat.
2550 (new_symbol): Ditto.
2551 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2552 (guess_structure_name): Ditto.
2553 (read_subroutine_type): Ditto.
2554 (read_structure_type): Ditto.
2555 (is_vtable_name): Add Java support.
2556 (determine_class_name): Switch to new typename_concat call.
2557 (determine_prefix): Switch to new typename_concat call.
2558 * jv-exp.y (FuncStart): New pattern.
2559 (MethodInvocation): Add support for simple function calls. Change
2560 warning message for other forms of inferior call currently not
2561 supported.
2562 * valarith.c (value_subscript): Treat an array with upper-bound
2563 of -1 as unknown size.
2564
d9c8471e
DJ
25652004-09-20 Daniel Jacobowitz <dan@debian.org>
2566
2567 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2568 (lookup_partial_symtab): Use symtab_to_fullname.
2569
d73f140a
JB
25702004-09-19 Jim Blandy <jimb@redhat.com>
2571
2572 * minsyms.c (lookup_minimal_symbol): Doc fix.
2573
adbef1f0
AC
25742004-09-20 Andrew Cagney <cagney@gnu.org>
2575
2576 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2577 CHILD_RESUME.
2578 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2579 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2580 KILL_INFERIOR.
2581 * infptrace.c: Update.
2582
d092d1a2
DJ
25832004-09-19 Daniel Jacobowitz <dan@debian.org>
2584
2585 * symtab.c (output_source_filename): Mark first argument as const.
2586 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2587 for "info sources" output.
2588
86d9e1d7
MK
25892004-09-20 Mark Kettenis <kettenis@gnu.org>
2590
2591 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2592 <machine/vmparam.h>.
2593 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2594 (register_u_addr): Remove prototype.
2595
9a6c8ef4
MK
25962004-09-19 Mark Kettenis <kettenis@gnu.org>
2597
9692934b
MK
2598 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2599 (i386bsd_fetch_inferior_registers): Rename from
2600 fetch_inferior_registers. Make static.
2601 (i386bsd_store_inferior_registers): Rename from
2602 store_inferior_registers. Make static.
2603 (i386bsd_target): New function.
2604 * i386bsd-nat.h: New file.
2605 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2606 "i386bsd-nat.h".
2607 (i386fbsd_resume): Rename from child_resume. Make static.
2608 (_initialize_i386fbsd_nat): Construct and add target vector.
2609 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2610 (_initialize_i386nbsd_nat): Construct and add target vector.
2611 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2612 Remove defines.
2613 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2614 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2615 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2616 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2617 (LOADLIBES): New variable.
2618 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2619 inf-ptrace.o. Remove inftarg.o.
2620 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2621 inf-ptrace.o. Remove inftarg.o.
2622 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2623 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2624 (LOADLIBES): New variable.
2625 * Makefile.in (i386bsd_nat_h): New variable.
2626 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2627 dependencies.
2628
3510d1f2
MK
2629 * sparc64nbsd-tdep.c: Include "objfiles.h".
2630 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2631 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2632 svr4_lp64_fetch_link_map_offsets.
2633 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2634 "nbsd-tdep.h".
2635 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2636 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2637 svr4_lp64_fetch_link_map_offsets.
2638 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2639 dependencies.
2640
578c1c03
MK
2641 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2642 * fbsd-nat.h: New file.
2643 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2644 (fbsd_nat_h): New variable.
2645 (fbsd-nat.o): New dependency.
2646
7a7b73b7
MK
2647 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2648 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2649
9a6c8ef4
MK
2650 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2651 comment.
2652
72d5681a
PH
26532004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2654
2655 * ada-exp.y (type_int): New function to add layer of abstraction
2656 around references to expression types.
2657 (type_long): Ditto.
2658 (type_long_long): Ditto.
2659 (type_float): Ditto.
2660 (type_double): Ditto.
2661 (type_long_double): Ditto.
2662 (type_char): Ditto.
2663 (type_system_address): Ditto.
2664 (simple_exp): Use type_* functions in place of builtin_*
2665 variables.
2666 (exp): Ditto.
2667 (write_var_from_name): Ditto.
2668 (write_object_renaming): Ditto.
2669 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2670 declaration.
2671 (build_ada_types): Remove, replacing with...
2672 (ada_language_arch_info): New function to initialize primitive
2673 type vector in language_arch_info.
2674 (ada_array_length): Remove use of builtin_type_ada_int.
2675 (value_pos_atr): Ditto.
2676 (ada_evaluate_subexp): Ditto.
2677 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2678 builtin_type_ada_long_long, builtin_type_ada_char,
2679 builtin_type_ada_float, builtin_type_ada_double,
2680 builtin_type_ada_long_double, builtin_type_ada_natural,
2681 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2682 (ada_builtin_types): Remove.
2683 (ada_language_defn): Remove entries for la_builtin_type_vector and
2684 string_char_type and use ada_language_arch_info.
2685 (_initialize_ada_language): Do type-vector initialization along
2686 the lines of c-lang.c.
2687 (ada_create_fundamental_type): Break up line.
2688 (ada_dump_symtab): Remove unused function.
2689 (enum ada_primitive_types): Define.
2690 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2691 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2692 builtin_type_ada_float, builtin_type_ada_double,
2693 builtin_type_ada_long_double, builtin_type_ada_natural,
2694 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2695 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2696 (processInt): Ditto.
2697 (processReal): Ditto.
2698 (name_lookup): Ditto.
2699 * ada-typeprint.c (print_range): Use builtin_type_int, not
2700 builtin_type_ada_int.
2701
4f0be353
MK
27022004-09-18 Mark Kettenis <kettenis@gnu.org>
2703
30b0e2d8
MK
2704 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2705
4f0be353
MK
2706 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2707 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2708 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2709 * configure.in: Improve checks for curses library by checking for
2710 mvwaddstr instead of initscr. Drop HP curses in favour of
2711 standard curses on HP-UX.
2712 * configure: Regenerated.
2713
72d5681a 27142004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2715
2716 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2717 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2718 Minor formatting changes.
2719 (empty_array): Slight rewrite for formatting.
2720 (emit_char,parse,ada_language_defn,build_ada_types,
2721 ada_is_exception_sym, _initialize_ada_language): Move
2722 definitions around.
2723 (ada_dump_symtab): Remove unused definition.
2724 (ada_maybe_exception_partial_symbol): Remove unused definition.
2725
1c8c7407
AC
27262004-09-16 Andrew Cagney <cagney@gnu.org>
2727
7681f339
AC
2728 * inf-child.c: Include "gdb_string.h".
2729 (inf_child_core_file_to_sym_file): Delete.
2730 (inf_child_target): Set to_fetch_registers and to_store_registers.
2731 * inf-ptrace.c: Include "gdb_string.h".
2732 * Makefile.in: Update all dependencies.
2733
1c8c7407
AC
2734 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2735 problem.
2736
65596487
JB
27372004-09-14 Joel Brobecker <brobecker@gnat.com>
2738
2739 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2740 call to heuristic_proc_desc. Remove code that became redundant
2741 as a consequence.
2742 (read_next_frame_reg): Remove special case for SP_REGNUM.
2743 (set_reg_offset): Fix small typo.
2744 (reset_saved_regs): New procedure.
2745 (mips32_heuristic_proc_desc): No longer compute a fake
2746 procedure descriptor. Compute the full frame cache instead.
2747 Some minor comment reformatting.
2748
95575b2e
AC
27492004-09-14 Andrew Cagney <cagney@gnu.org>
2750
f200c492
AC
2751 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2752 maintainer.
2753
95575b2e
AC
2754 * thread-db.c (thread_db_new_objfile): Assume that there is a
2755 child process.
2756
69657671
JB
27572004-09-13 Jim Blandy <jimb@redhat.com>
2758
2759 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2760 so that its storage isn't referenced after its lifetime ends.
2761
6c4182dd
JB
2762 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2763 and never assigned to. Delete it, and the 'if (use_buffer)'
2764 clauses. Delete 'raw_buffer', since it is now unused.
2765
ee31a58d
AC
27662004-09-13 Andrew Cagney <cagney@gnu.org>
2767
2c0fc042
AC
2768 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2769 * configure: Re-generate.
2770 * nlm/Makefile.in (TAGS): Update.
2771 * Makefile.in (TAGS): Update.
2772 * config/vax/nbsd.mt (TM_FILE): Update.
2773 * config/sparc/vxworks.mt (TM_FILE): Update.
2774 * config/sparc/sol2.mt (TM_FILE): Update.
2775 * config/sparc/sol2-64.mt (TM_FILE): Update.
2776 * config/sparc/obsd64.mt (TM_FILE): Update.
2777 * config/sparc/obsd.mt (TM_FILE): Update.
2778 * config/sparc/nbsd64.mt (TM_FILE): Update.
2779 * config/sparc/nbsd.mt (TM_FILE): Update.
2780 * config/sparc/linux64.mt (TM_FILE): Update.
2781 * config/sparc/linux.mt (TM_FILE): Update.
2782 * config/sparc/fbsd.mt (TM_FILE): Update.
2783 * config/sh/wince.mt (TM_FILE): Update.
2784 * config/sh/nbsd.mt (TM_FILE): Update.
2785 * config/sh/linux.mt (TM_FILE): Update.
2786 * config/sh/embed.mt (TM_FILE): Update.
2787 * config/s390/s390.mt (TM_FILE): Update.
2788 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2789 * config/rs6000/rs6000.mt (TM_FILE): Update.
2790 * config/rs6000/aix4.mt (TM_FILE): Update.
2791 * config/powerpc/vxworks.mt (TM_FILE): Update.
2792 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2793 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2794 * config/powerpc/obsd.mt (TM_FILE): Update.
2795 * config/powerpc/nbsd.mt (TM_FILE): Update.
2796 * config/powerpc/linux.mt (TM_FILE): Update.
2797 * config/powerpc/aix.mt (TM_FILE): Update.
2798 * config/pa/obsd.mt (TM_FILE): Update.
2799 * config/pa/linux.mt (TM_FILE): Update.
2800 * config/pa/hppahpux.mt (TM_FILE): Update.
2801 * config/pa/hppa64.mt (TM_FILE): Update.
2802 * config/pa/hppa.mt (TM_FILE): Update.
2803 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2804 * config/mips/wince.mt (TM_FILE): Update.
2805 * config/mips/vxmips.mt (TM_FILE): Update.
2806 * config/mips/nbsd.mt (TM_FILE): Update.
2807 * config/mips/linux.mt (TM_FILE): Update.
2808 * config/mips/irix6.mt (TM_FILE): Update.
2809 * config/mips/irix5.mt (TM_FILE): Update.
2810 * config/mips/embed.mt (TM_FILE): Update.
2811 * config/m68k/vxworks68.mt (TM_FILE): Update.
2812 * config/m68k/st2000.mt (TM_FILE): Update.
2813 * config/m68k/os68k.mt (TM_FILE): Update.
2814 * config/m68k/obsd.mt (TM_FILE): Update.
2815 * config/m68k/nbsd.mt (TM_FILE): Update.
2816 * config/m68k/monitor.mt (TM_FILE): Update.
2817 * config/m68k/linux.mt (TM_FILE): Update.
2818 * config/m68k/cisco.mt (TM_FILE): Update.
2819 * config/ia64/linux.mt (TM_FILE): Update.
2820 * config/ia64/aix.mt (TM_FILE): Update.
2821 * config/ia64/ia64.mt (TM_FILE): Update.
2822 * config/i386/vxworks.mt (TM_FILE): Update.
2823 * config/i386/obsd64.mt (TM_FILE): Update.
2824 * config/i386/obsd.mt (TM_FILE): Update.
2825 * config/i386/nto.mt (TM_FILE): Update.
2826 * config/i386/nbsd64.mt (TM_FILE): Update.
2827 * config/i386/nbsd.mt (TM_FILE): Update.
2828 * config/i386/linux64.mt (TM_FILE): Update.
2829 * config/i386/linux.mt (TM_FILE): Update.
2830 * config/i386/i386sol2.mt (TM_FILE): Update.
2831 * config/i386/i386lynx.mt (TM_FILE): Update.
2832 * config/i386/fbsd64.mt (TM_FILE): Update.
2833 * config/i386/fbsd.mt (TM_FILE): Update.
2834 * config/i386/cygwin.mt (TM_FILE): Update.
2835 * config/h8300/h8300.mt (TM_FILE): Update.
2836 * config/frv/frv.mt (TM_FILE): Update.
2837 * config/cris/cris.mt (TM_FILE): Update.
2838 * config/arm/wince.mt (TM_FILE): Update.
2839 * config/arm/nbsd.mt (TM_FILE): Update.
2840 * config/arm/linux.mt (TM_FILE): Update.
2841 * config/arm/embed.mt (TM_FILE): Update.
2842 * config/alpha/nbsd.mt (TM_FILE): Update.
2843 * config/alpha/fbsd.mt (TM_FILE): Update.
2844 * config/alpha/alpha.mt (TM_FILE): Update.
2845 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2846 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2847
362646f5
AC
2848 Eliminate event_loop_p, always has the value 1.
2849 * defs.h (event_loop_p): Delete macro.
2850 * breakpoint.c (until_break_command): Simplify.
2851 * utils.c (prompt_for_continue): Simplify.
2852 * tracepoint.c (read_actions): Simplify.
2853 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2854 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2855 (set_prompt, init_main): Simplify.
2856 (init_signals, disconnect): Delete, unused.
2857 * remote.c (remote_async_resume)
2858 (extended_remote_async_create_inferior): Simplify.
2859 * mi/mi-interp.c (mi_input): Delete, unused.
2860 (mi_interpreter_resume, mi_command_loop): Simplify.
2861 * interps.c (current_interp_command_loop): Simplify.
2862 * infrun.c (proceed): Simplify.
2863 * infcmd.c (run_command, continue_command, step_1, jump_command)
2864 (until_command, advance_command, finish_command)
2865 (interrupt_target_command): Simplify.
2866 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2867
ee31a58d
AC
2868 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2869 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2870 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2871 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2872 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2873 * mips-tdep.c (mips_dump_tdep): Do not print same.
2874
b7ffc4a8
AC
28752004-09-12 Andrew Cagney <cagney@gnu.org>
2876
2bfb72ee
AC
2877 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2878 const.
2879 * Makefile.in (valprint.o): Delete explict rule.
2880
4f17c3c1
AC
2881 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2882 reported by Dave Anderson.
2883
f810308b
AC
2884 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2885
b7ffc4a8
AC
2886 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2887
28b41c52
AC
28882004-09-12 Salvador E. Tropea <set@users.sf.net>
2889 Andrew Cagney <cagney@gnu.org>
2890
2891 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2892 (mi_cmd_data_list_register_values)
2893 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2894 the register number computation.
2895
5bf970f9
AC
28962004-09-12 Andrew Cagney <cagney@gnu.org>
2897
2898 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2899 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2900 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2901 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2902 target.
2903 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2904 inf-ptrace.o and inf-child.o.
2905 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2906 * Makefile.in: Update dependencies.
2907
0759e0bf
AC
29082004-09-11 Andrew Cagney <cagney@gnu.org>
2909
2910 * language.c (hex_string, hex_string_custom): Move from here ...
2911 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2912 (CELLSIZE): Increase to 50.
2913 * language.h (hex_string, hex_string_custom): Move from here ...
2914 * defs.h: ... to here.
2915 * Makefile.in: Update all dependencies.
2916
bb599908
PH
29172004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2918
2919 * language.c (local_hex_format_custom): Remove.
2920 (local_hex_string): Rename to hex_string, use C format, and move to
2921 utils.c
2922 (local_hex_string_custom): Rename to hex_string_custom and change
2923 interface. Now uses C format. Move to utils.c
2924 (local_octal_format_custom): Remove.
2925 (local_decimal_format_custom): Remove.
2926 (unknown_language_defn): Remove language-specific number
2927 formatting entries.
2928 (auto_language_defn): Ditto.
2929 (local_language_defn): Ditto.
2930 * language.h (struct language_format_info): Delete declaration.
2931 (struct language_defn): Remove language_format_info fields
2932 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2933 (local_binary_format): Remove macro.
2934 (local_binary_format_prefix): Remove macro.
2935 (local_binary_format_specifier): Remove macro.
2936 (local_binary_format_suffix): Remove macro.
2937 (local_octal_format): Remove macro.
2938 (local_octal_format_prefix): Remove macro.
2939 (local_octal_format_specifier): Remove macro.
2940 (local_octal_format_suffix): Remove macro.
2941 (local_decimal_format): Remove macro.
2942 (local_decimal_format_prefix): Remove macro.
2943 (local_decimal_format_specifier): Remove macro.
2944 (local_decimal_format_suffix): Remove macro.
2945 (local_hex_format): Remove macro.
2946 (local_hex_format_prefix): Remove macro.
2947 (local_hex_format_specifier): Remove macro.
2948 (local_hex_format_suffix): Remove macro.
2949 (local_decimal_format_custom): Remove.
2950 (local_octal_format_custom): Remove.
2951 (local_hex_format_custom): Remove.
2952 (local_hex_string): Rename to hex_string and move to defs.h.
2953 (local_hex_string_custom): Rename to hex_string_custom, change
2954 interface, and move to defs.h.
2955 * utils.c: (int_string): New function.
2956 (hex_string): New function (from language.c).
2957 (hex_string_custom): New function (from language.c).
2958 (octal2str): New function.
2959 (decimal2str): Add width parameter.
2960 (paddr_u): Use new decimal2str interface.
2961 (paddr_d): Ditto.
2962 * defs.h (hex_string): Declare.
2963 (hex_string_custom): Declare.
2964 (int_string): Declare.
2965 * printcmd.c (print_scalar_formatted): Remove localized binary
2966 formatting.
2967 * valprint.c (print_longest): Use int_string.
2968 (print_floating): Use C hex format.
2969 (print_hex_chars): Ditto.
2970 (print_binary_chars): Remove language-specific formatting.
2971 (print_octal_chars): Use C octal format.
2972 (print_decimal_chars): Delocalize format.
2973 (print_decimal): Remove.
2974 * ada-lang.c (ada_language_defn): Remove language-specific number
2975 formatting entries.
2976 * p-lang.c (pascal_language_defn): Ditto.
2977 * c-lang.c (c_language_defn): Ditto.
2978 (cplus_language_defn): Ditto.
2979 (asm_language_defn): Ditto.
2980 (minimal_language_defn): Ditto.
2981 * f-lang.c (f_language_defn): Ditto.
2982 * jv-lang.c (java_language_defn): Ditto.
2983 * m2-lang.c (m2_language_defn): Ditto.
2984 * scm-lang.c (scm_language_defn): Ditto.
2985 * objc-lang.c (objc_language_defn): Ditto.
2986 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2987 new interface.
2988 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2989 * ui-out.c (ui_out_field_core_addr): Ditto.
2990 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2991 * exec.c (print_section_info): Ditto.
2992 * i387-tdep.c (print_i387_status_word): Ditto.
2993 (print_i387_control_word): Ditto.
2994 (i387_print_float_info): Ditto.
2995 * maint.c (maint_print_section_info): Ditto.
2996 * solib.c (info_sharedlibrary_command): Ditto.
2997 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2998 * symtab.c (print_msymbol_info): Ditto.
2999 * tracepoint.c (tracepoints_info): Ditto.
3000 * solib-frv.c (lm_base): Ditto.
3001 (frv_current_sos): Ditto.
3002 (enable_break2): Ditto.
3003 (enable_break): Ditto.
3004 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3005 (process_one_symbol): Ditto.
3006 * infcmd.c (program_info): Ditto.
3007 * mdebugread.c (parse_partial_symbols): Ditto.
3008 * symfile.c (add_symbol_file_command): Ditto.
3009 * cli/cli-cmds.c (edit_command): Ditto.
3010 (list_command): Ditto.
3011 * infcall.c (call_function_by_hand): Ditto.
3012 * remote-vx.c (vx_run_files_info): Ditto.
3013 (vx_wait): Ditto.
3014 (vx_attach): Ditto.
3015 (vx_detach): Ditto.
3016 (vx_kill): Ditto.
3017 * aix-thread.c (pdc_symbol_addrs): Ditto.
3018 (pdc_read_regs): Ditto.
3019 (pdc_write_regs): Ditto.
3020 (pdc_read_data): Ditto.
3021 (pdc_write_data): Ditto.
3022 * d10v-tdep.c (display_trace): Ditto.
3023 * rs6000-nat.c (find_toc_address): Ditto.
3024 * aix-thread.c: Don't include language.h.
3025 * buildsym.c: Ditto.
3026 * dbxread.c: Ditto.
3027 * mdebugread.c: Ditto.
3028 * rs6000-nat.c: Ditto.
3029 * buildsym.c (make_blockvector): Use renamed hex_string.
3030
33f2d567
JM
30312004-09-10 Jason Molenda (jmolenda@apple.com)
3032
3033 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3034 chars after 'if' or 'while' commands in user-defined commands.
3035
7b90c3f9
JB
30362004-09-08 Jim Blandy <jimb@redhat.com>
3037
3038 Fix bug reported and analyzed by Olivier Crete:
3039 * symfile.c (copy_section_addr_info): New function.
3040 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3041 original set of address arguments, instead of handwritten code
3042 that uses one length to allocate and a different length to
3043 initialize. Use make_cleanup_free_section_addr_info.
3044 * symfile.h (copy_section_addr_info): New declaration.
3045 * utils.c: #include "symfile.h".
3046 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3047 New functions.
3048 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3049 * Makefile.in (utils.o): Update dependencies.
3050
b26a6851
AC
30512004-09-08 Andrew Cagney <cagney@gnu.org>
3052
3053 * thread-db.c (keep_thread_db): Delete.
3054 (thread_db_new_objfile, thread_db_create_inferior)
3055 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3056
be24b061
MK
30572004-09-08 Mark Kettenis <kettenis@gnu.org>
3058
f6792ef4
MK
3059 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3060 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3061 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3062 (i386_frameless_signal_p): Remove prototype.
3063 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3064 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3065 I386_SSE_NUM_REGS.
3066 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3067 instead of FP0_REGNUM.
3068 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3069 of FP0_REGNUM and FPC_REGNUM.
3070
eeefdaa7
MK
3071 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3072 (sunos_solib_create_inferior_hook): Don't call
3073 sunos_relocate_main_executable.
3074
be24b061
MK
3075 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3076 solib_svr4_fetch_link_map_offsets to
3077 svr4_ilp32_fetch_link_map_offsets.
3078 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3079 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3080 svr4_ilp32_fetch_link_map_offsets.
3081 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3082
7c679d16
JB
30832004-09-07 Jim Blandy <jimb@redhat.com>
3084
3085 * frame.h (frame_register): Doc fix.
3086
1f04aa62
AC
30872004-09-07 Andrew Cagney <cagney@gnu.org>
3088
3089 * vx-share/wait.h: Delete #ifdef USG.
3090 * utils.c (request_quit): Ditto.
3091 * tui/tui.c (tui_reset): Ditto.
3092 * remote.c: Ditto.
3093 * remote-sds.c: Ditto.
3094 * remote-rdi.c: Ditto.
3095 * mdebugread.c: Ditto.
3096 * m68klinux-nat.c: Ditto.
3097 * infttrace.c: Ditto.
3098 * infptrace.c: Ditto.
3099 * i386v-nat.c: Ditto.
3100 * exec.c: Ditto.
3101 * dbxread.c: Ditto.
3102 * core-aout.c: Ditto.
3103
90edbfbc
JB
31042004-09-05 Joel Brobecker <brobecker@gnat.com>
3105
3106 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3107 heuristic_proc_desc.
3108 (mips_insn32_frame_cache): Likewise.
3109
01f4bf2b
JB
31102004-09-04 Joel Brobecker <brobecker@gnat.com>
3111
3112 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3113 left behind by error.
3114
8511a048
JB
31152004-09-04 Joel Brobecker <brobecker@gnat.com>
3116
3117 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3118 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3119
649dfe9f
JB
31202004-09-04 Joel Brobecker <brobecker@gnat.com>
3121
3122 * config/rs6000/xm-aix4.h: Remove this file.
3123 * config/rs6000/aix4.mh (XM_FILE): Delete.
3124
6e50f889
JB
31252004-09-04 Joel Brobecker <brobecker@gnat.com>
3126
3127 * config/rs6000/xm-rs6000.h: Remove this file.
3128 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3129
b8c4aece
AC
31302004-09-03 Andrew Cagney <cagney@gnu.org>
3131
fb603883
AC
3132 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3133 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3134 only use.
3135
c9343fd1
AC
3136 * mips-tdep.c (temp_saved_regs): Delete.
3137 (set_reg_offset): Replace saved_regs parameter with this_cache.
3138 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3139 (mips32_heuristic_proc_desc): Add this_cache parameter.
3140 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3141 (after_prologue): Pass a NULL this_cache.
3142
9733cfe1
AC
3143 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3144 non-kernel trap prologues.
3145
0d5febcc
AC
3146 * mips-tdep.c (find_proc_desc): Delete function.
3147 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3148 simplify.
3149 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3150 mips_insn32_frame_cache.
3151
9733cfe1 3152 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
3153 Simplify as NEXT_FRAME is NULL.
3154 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3155
177f84a3
AC
3156 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3157 local variable.
3158 (mips_skip_prologue): Update.
3159
465f7520
AC
3160 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3161 "cur_frame" parameter.
177f84a3
AC
3162 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3163 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 3164
e38b8658
AC
3165 * config/vax/nm-obsd.h: Delete file.
3166 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3167 * config/vax/nm-nbsd.h: Delete file.
3168 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3169 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3170 * config/sh/nm-nbsd.h: Delete file.
3171 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3172 * config/rs6000/nm-rs6000ly.h: Delete file.
3173 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3174 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3175 * config/powerpc/nm-obsd.h: Delete file.
3176 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3177 * config/powerpc/nm-nbsd.h: Delete file.
3178 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3179 * config/pa/nm-obsd.h: Delete file.
3180 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3181 * config/mips/nm-nbsd.h: Delete file.
3182 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3183 * config/m88k/nm-obsd.h: Delete file.
3184 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3185 * config/m68k/nm-nbsd.h: Delete file.
3186 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3187 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3188 * config/i386/nm-nbsd.h: Delete file.
3189 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3190 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3191 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3192 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3193 * config/i386/nm-i386lynx.h: Delete file.
3194 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3195 * config/arm/nm-nbsd.h: Delete file.
3196 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3197 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3198
be1ed680
AC
3199 * config/i386/tm-fbsd.h: Delete file.
3200 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3201 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3202
4b392b26
AC
3203 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3204 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3205 * config/rs6000/aix4.mt (TM_FILE): Set to
3206 config/rs6000/tm-rs6000.h.
3207 * config/powerpc/tm-ppc-aix.h: Delete file.
3208 * config/powerpc/aix.mt (TM_FILE): Set to
3209 config/rs6000/tm-rs6000.h.
3210 * config/m68k/tm-linux.h: Delete file.
3211 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3212 * config/i386/tm-linux64.h: Delete file.
3213 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3214 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3215
f3219c75
AC
3216 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3217 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3218 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3219 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3220 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3221 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3222 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3223 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3224 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3225
b8c4aece
AC
3226 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3227 gdb_host_cpu.
3228
8ac2e020
JB
32292004-09-02 Joel Brobecker <brobecker@gnat.com>
3230
3231 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3232 Minor reformatting. Some code factoring.
3233
c185a355
AC
32342004-09-02 Andrew Cagney <cagney@gnu.org>
3235
63f22f0d
AC
3236 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3237 * config/vax/tm-nbsd.h: Delete file.
3238 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3239 * config/sparc/tm-vxworks.h: Delete file.
3240 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3241 * config/sparc/tm-nbsd.h: Delete file.
3242 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3243 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3244 * config/sparc/tm-linux.h: Delete file.
3245 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3246 * config/s390/tm-linux.h: Delete file.
3247 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3248 * config/pa/tm-bsd.h: Delete file.
3249 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3250 * config/m68k/tm-obsd.h: Delete file.
3251 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3252 * config/m68k/tm-nbsd.h: Delete file.
3253 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3254 * config/i386/tm-vxworks.h: Delete file.
3255 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3256 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3257 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3258 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3259 * config/i386/tm-nbsd.h: Delete file.
3260 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3261 * config/i386/tm-i386lynx.h: Delete file.
3262 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3263 * config/cris/tm-cris.h: Delete file.
3264
0f475e27
AC
3265 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3266 * configure: Re-generate.
3267 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3268 * config/arm/tm-nbsd.h: Delete file.
3269
458ed000
AC
3270 * config/powerpc/tm-ppcle-sim.h: Delete.
3271 * config/powerpc/tm-ppcle-eabi.h: Delete.
3272 * config/powerpc/tm-nbsd.h: Delete.
3273 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3274 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3275 tm-ppcle-eabi.h.
3276
f14375f3
AC
3277 * config/i386/nto.mh (NAT_FILE): Delete.
3278 * config/i386/nm-nto.h: Delete.
3279
c34d127c
AC
3280 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3281 * config/m68k/tm-os68k.h: Ditto.
3282 * config/m68k/tm-monitor.h: Ditto.
3283 * config/m68k/tm-cisco.h: Ditto.
3284 * config/m68k/st2000.mt (TM_FILE): Delete.
3285 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3286 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3287 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3288 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3289
f7f0fe03
AC
3290 * config/m68k/tm-st2000.h: Delete.
3291 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3292 * config/sparc/fbsd.mt (TM_FILE): Delete.
3293 * config/sparc/tm-fbsd.h: Delete.
3294
a2558533
AC
3295 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3296 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3297 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3298
b78960be
AC
3299 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3300 GDB_TM_FILE and GDB_XM_FILE.
3301 * gdbarch.c: Re-generate.
3302 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3303 quotes in macro definition.
3304 * configure.in: Re-generate.
3305
4d60522e
AC
3306 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3307 validating architecture methods.
3308 * gdbarch.c: Re-generate.
3309
5010d38b
AC
3310 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3311 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3312 GDB_MULTI_ARCH_PARTIAL.
3313 * gdbarch.h: Re-generate.
3314
c185a355
AC
3315 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3316 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3317 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3318 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3319 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3320 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3321 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3322 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3323 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3324 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3325 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3326 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3327
14aaa6ab
AC
33282004-09-01 Andrew Cagney <cagney@gnu.org>
3329
3330 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3331 and main_func_highpc.
3332 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3333 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3334 * nlmread.c (nlm_symfile_read): Update.
3335
a343eb3c
JB
33362004-09-01 Joel Brobecker <brobecker@gnat.com>
3337
3338 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3339 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3340 (find_proc_desc): Remove dead code.
3341
4fbbbd07
JB
33422004-09-01 Joel Brobecker <brobecker@gnat.com>
3343
3344 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3345
84acb35a
JJ
33462004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3347
3348 * observer.sh: Add struct so_list declaration.
3349 * Makefile.in: Add dependencies on observer.h for solib.c and
3350 breakpoint.c.
3351 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3352 function.
3353 (_initialize_breakpoint): Register
3354 disable_breakpoints_in_unloaded_shlib as an observer of the
3355 "solib unloaded" observation event.
3356 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3357 call decode_line_1 so unfound breakpoint errors are silent.
3358 * solib.c (update_solib_list): When a solib is discovered to have
3359 been unloaded by the program, notify all observers of the
3360 "solib unloaded" observation event.
3361
c8cd9f6c
AC
33622004-09-01 Andrew Cagney <cagney@gnu.org>
3363
3364 * frame.c: Include "objfiles.h".
3365 (inside_main_func): New function.
3366 (get_prev_frame): Use new inside_main_func.
3367 * Makefile.in (frame.o): Update dependencies.
3368 * defs.h (inside_main_func): Delete declaration.
3369 * blockframe.c (inside_main_func): Delete function.
3370
1168df01
JB
33712004-08-31 Jim Blandy <jimb@redhat.com>
3372
3373 * dwarf2read.c (is_vtable_name): New function, based on logic from
3374 read_structure_type, but passing the correct length to strncmp,
3375 and using 'sizeof' instead of 'strlen'.
3376 (read_structure_type): Call it.
3377
f14f9744
JB
33782004-08-31 Joel Brobecker <brobecker@gnat.com>
3379
3380 * config/powerpc/aix.mh: Add comment.
3381
386d4518
PG
33822004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3383
3384 * MAINTAINERS: Add self to Write-After-Approval.
3385
7d97d5e2
MI
33862004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3387
3388 * MAINTAINERS: Add self to Write-After-Approval.
3389
68f53502
AC
33902004-08-30 Andrew Cagney <cagney@gnu.org>
3391
3392 Fix PR breakpoints/1757.
3393 * infrun.c (struct execution_control_state): Replace
3394 remove_breakpoints_on_following_step with
3395 step_after_step_resume_breakpoint.
3396 (init_execution_control_state): Update.
3397 (handle_inferior_event): For signals, when stepping off a
3398 breakpoint, set step_after_step_resume_breakpoint. When
3399 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3400 (keep_going): Delete code handling
3401 remove_breakpoints_on_following_step.
3402
7ca2d3a3
DL
34032004-08-29 David Lecomber <david@streamline-computing.com>
3404
3405 Fix PR gdb/648
3406 * language.h (enum array_ordering): New enum.
3407 * language.h (struct language_defn): New la_array_ordering
3408 attribute.
3409 * language.c (unknown_language_defn, auto_language_defn)
3410 (local_language_defn): Ditto.
3411 * ada-lang.c (ada_language_defn): Ditto.
3412 * c-lang.c (c_language_defn, cplus_language_defn)
3413 (asm_language_defn, minimal_language_defn): Ditto.
3414 * f-lang.c (f_language_defn): Ditto.
3415 * jv-lang.c (java_language_defn): Ditto.
3416 * m2-lang.c (f_language_defn): Ditto.
3417 * objc-lang.c (objc_language_defn): Ditto.
3418 * p-lang.c (pascal_language_defn): Ditto.
3419 * scm-lang.c (scm_language_defn): Ditto.
3420 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3421 oriented large to small in type structure.
3422 * dwarf2read.c (read_array_order): New function.
3423 (read_array_type): Use read_array_order to check row/column
3424 major ordering.
3425
e354df01
NW
34262004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3427
3428 * target.c (target_resize_to_sections): Check
3429 current_target.to_sections for an old value when updating.
3430
9185ddce
JB
34312004-08-27 Joel Brobecker <brobecker@gnat.com>
3432
3433 * procfs.c (dbx_link_bpt_addr): New static global variable.
3434 (dbx_link_shadow_contents): New static global variable.
3435 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3436 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3437 if we just hit it.
3438 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3439 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3440 from run to run.
3441 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3442 after the inferior has been forked.
3443 (remove_dbx_link_breakpoint): New function.
3444 (dbx_link_addr): New function.
3445 (insert_dbx_link_bpt_in_file): New function.
3446 (insert_dbx_link_bpt_in_region): New function.
3447 (insert_dbx_link_breakpoint): New function.
3448 (proc_trace_syscalls_1): New function, extracted from
3449 proc_trace_syscalls.
3450 (proc_trace_syscalls): Replace extract code by call to
3451 proc_trace_syscalls_1.
3452 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3453 is no longer valid.
3454
e6742ace
JB
34552004-08-25 Jim Blandy <jimb@redhat.com>
3456
3457 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3458
8fb3e588
AC
34592004-08-25 Andrew Cagney <cagney@gnu.org>
3460
629a41ee
AC
3461 * infrun.c (struct execution_control_state): Delete field
3462 "stepping_through_sigtramp".
3463 (init_execution_control_state): Do not set same.
3464 (context_switch): Do not pass same to save_infrun_state and
3465 load_infrun_state.
3466 * gdbthread.h (struct thread_info): Delete field
3467 stepping_through_sigtramp.
3468 (save_infrun_state, load_infrun_state): Delete parameter
3469 stepping_through_sigtramp.
3470 * thread.c (load_infrun_state, save_infrun_state): Update.
3471
8fb3e588
AC
3472 * infrun.c: Re-indent. Move expression operators to the beginning
3473 of the line. Remove long disabled #if 0 code.
3474
49c54768
AC
34752004-08-24 Andrew Cagney <cagney@gnu.org>
3476
3477 * doublest.h (floatformat_ieee_quad): Rename
3478 floatformat_ia64_quad.
3479 * doublest.c (floatformat_ieee_quad): Rename
3480 floatformat_ia64_quad.
3481 (_initialize_doublest): Update.
3482
5ca2e327
JB
34832004-08-24 Jim Blandy <jimb@redhat.com>
3484
87808bd6
JB
3485 * dwarf2expr.h (struct dwarf_expr_context): New members
3486 'num_pieces' and 'pieces', for returning the result of an
3487 expression that uses DW_OP_piece.
3488 (struct dwarf_expr_piece): New struct type.
3489 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3490 pieces.
3491 (free_dwarf_expr_context): Free pieces, if any.
3492 (add_piece): New function.
3493 (execute_stack_op): Implement DW_OP_piece.
3494 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3495 expression is a list of pieces, print an error message.
3496 (dwarf2_loc_desc_needs_frame): If the expression yields
3497 pieces, and any piece is in a register, then we need a frame.
3498
5ca2e327
JB
3499 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3500 the stack until we've decided what sort of result the evaluation
3501 has produced. Use separate variables, with more specific names.
3502
2afeb6b8
RE
35032004-08-23 Richard Earnshaw <rearnsha@arm.com>
3504
3505 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3506 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3507 (arm_netbsd_init_abi_common): Register them.
3508
5885ab49
MK
35092004-08-22 Mark Kettenis <kettenis@gnu.org>
3510
fda820a6
MK
3511 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3512
1c5bf419
MK
3513 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3514 safe_frame_unwind_memory instead of target_read_memory.
3515
8cbba7c8
MK
3516 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3517 Reorder includes.
3518 (fetch_register, store_register): Remove prototypes.
3519 (child_resume): Reorganize code and comments such that it is
3520 grouped a bit more logically.
3521 (attach): Explicitly compare errno against 0.
3522 (detach): Likewise. Use perror_with_name instead of
3523 print_sys_errmsg.
3524 * Makefile.in (infptrace.o): Update dependencies.
3525
c5fa4245
MK
3526 * ia64-linux-nat.c: Update copyright year.
3527 (fetch_debug_register, store_debug_register)
3528 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3529 PTRACE_TYPE_ARG3.
3530 * config/ia64/nm-linux.h: Update copyright year.
3531 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3532
387c058c
MK
3533 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3534 from CORE_ADDR to struct frame_info *. Use
3535 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3536 (amd64_linux_sigtramp_p): Adjust for changed signature of
3537 and64_linux_sigtramp_start
3538
277215a6
MK
3539 * gdb_ptrace.h: GNU/Linux.
3540
25f6178e
MK
3541 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3542 Remove defines.
3543
652fc137
MK
3544 * infptrace.c: Include "gdb_assert.h".
3545 (PTRACE_XFER_TYPE): Remove define.
3546 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3547 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3548 Tweak comment.
3549 (fetch_inferior_registers, store_inferior_registers): Remove
3550 redundant culry braces. Tweak comment. s/regno/regnum.
3551 * Makefile.in (infptrace.o): Update dependencies.
3552
5885ab49
MK
3553 * configure.in: Change test for return type of ptrace to default
3554 to `long' instead of `int'.
3555 * configure: Regenerate.
3556
11003ae3
MK
35572004-08-21 Mark Kettenis <kettenis@gnu.org>
3558
6b95110c
MK
3559 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3560
bcb3dc3d
MK
3561 * configure.in: Check for ttrace function.
3562 * configure, config.in: Regenerate.
3563
11003ae3
MK
3564 * gdb_ptrace.h: New file.
3565 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3566 <sys/ptrace.h>.
3567 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3568 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3569 (attach): Don't define PT_ATTACH.
3570 (detach): Don't define PT_DETACH.
3571 * Makefile.in (gdb_ptrace_h): New variable.
3572 (infptrace.o): Update dependencies.
3573
f8707cac
MK
35742004-08-16 Mark Kettenis <kettenis@gnu.org>
3575
3576 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3577 instead of `int' if not already defined.
3578 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3579 PTRACE_TYPE_ARG3.
3580 * infptrace.c (call_ptrace): Revert change that replaced
3581 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3582
655c5466
MK
35832004-08-15 Mark Kettenis <kettenis@gnu.org>
3584
156e5ba7
MK
3585 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3586 Remove defines.
3587
de9a9e51
MK
3588 * linux-nat.c (kill_inferior): Add missing third and fourth
3589 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3590
88800403
MK
3591 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3592 PTRACE_TYPE_RET.
3593
849a1d7c
MK
3594 * proc-why.c (proc_prettyfprint_why): Fix format string.
3595
61ad16d1
MK
3596 * solib-osf.c (osf_current_sos): Remove unsused label.
3597
a6ed5501
MK
3598 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3599 curses headers.
3600 * configure, config.in: Regenerate.
3601 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3602 <ncurses/ncurses.h>.
3603
016ddeca
MK
3604 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3605 * config/nm-nbsd.h: Update copyright year.
3606 (PTRACE_ARG3_TYPE): Remove define.
3607
49ec097f
MK
3608 * sparc-nat.c (fetch_inferior_registers)
3609 (store_inferior_registers, sparc_xfer_wcookie):
3610 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3611
9f8e0089
MK
3612 * alphabsd-nat.c (fetch_inferior_registers):
3613 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3614 PTRACE_TYPE_ARG3.
3615 * amd64bsd-nat.c (fetch_inferior_registers)
3616 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3617 PTRACE_TYPE_ARG3.
3618 * armnbsd-nat.c: Update copyright year.
3619 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3620 (store_register, store_regs, store_fp_register, store_fp_regs):
3621 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3622 * hppabsd-nat.c (fetch_inferior_registers)
3623 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3624 PTRACE_TYPE_ARG3.
3625 * i386bsd-nat.c (fetch_inferior_registers)
3626 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3627 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3628 * m68kbsd-nat.c (fetch_inferior_registers)
3629 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3630 PTRACE_TYPE_ARG3.
3631 * m88kbsd-nat.c (fetch_inferior_registers)
3632 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3633 PTRACE_TYPE_ARG3.
3634 * mipsnbsd-nat.c: Update copyright year.
3635 (fetch_inferior_registers, store_inferior_registers):
3636 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3637 * ns32knbsd-nat.c: Update copyright year.
3638 (fetch_inferior_registers, store_inferior_registers):
3639 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3640 * ppcnbsd-nat.c (fetch_inferior_registers):
3641 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3642 PTRACE_TYPE_ARG3.
3643 * ppcobsd-nat.c (fetch_inferior_registers):
3644 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3645 PTRACE_TYPE_ARG3.
3646 * shnbsd-nat.c: Update copyright year.
3647 (fetch_inferior_registers, store_inferior_registers):
3648 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3649 * vaxbsd-nat.c (fetch_inferior_registers)
3650 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3651 PTRACE_TYPE_ARG3.
3652
655c5466
MK
3653 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3654 PTRACE_TYPE_ARG3.
3655 * infptrace.c (call_ptrace, child_resume, attach, detach)
3656 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3657 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3658 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3659 PTRACE_TYPE_ARG3.
3660
c40d0d10
MK
36612004-08-14 Mark Kettenis <kettenis@gnu.org>
3662
5cb0ff31
MK
3663 * defs.h: Remove out-of-date comment.
3664 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3665 [!GETENV_PROVIDED] (getenv): Remove prototype.
3666
5f0f34cb
MK
3667 * standalone.c: Remove file.
3668 * Makefile.in (standalone.o): Remove dependency.
3669
7532965f
MK
3670 * i386-linux-nat.c (dummy_sse_values): Remove function and
3671 prototype.
3672 (i386_linux_dr_get): Fix typo in comment.
3673 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3674
1bdc6c53
MK
3675 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3676
c40d0d10
MK
3677 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3678 from declaration.
3679 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3680 from definition.
3681
64218d3e
MK
36822004-08-13 Mark Kettenis <kettenis@gnu.org>
3683
3684 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3685 parenthesis in definition.
3686 * configure: Regenerated.
3687
926c94e7
MC
36882004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3689
3690 * PROBLEMS: Mention build/1411.
3691
69489883
NN
36922004-08-09 Robert Millan <robertmh@gnu.org>
3693
3694 Committed by Nathanael Nerode.
3695 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3696 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3697
ebb7c577
AC
36982004-08-12 Andrew Cagney <cagney@gnu.org>
3699
3700 * NEWS: Mention fixes in GDB 6.2.1.
3701 * PROBLEMS: Remove mention of mips-irix.
3702
232d697c
JB
37032004-08-11 Joel Brobecker <brobecker@gnat.com>
3704
3705 * config/powerpc/xm-aix.h: Delete.
3706 * config/powerpc/aix.mh (MH_FILE): Remove.
3707 * config/powerpc/aix432.mh (MH_FILE): Remove.
3708
72f4e82b
JB
37092004-08-11 Joel Brobecker <brobecker@gnat.com>
3710
3711 * config/powerpc/aix.mh: Remove obsolete comment.
3712 * config/powerpc/aix432.mh: Likewise.
3713
0687ccb2
JB
37142004-08-11 Joel Brobecker <brobecker@gnat.com>
3715
3716 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3717
dbf3ada7
JB
37182004-08-11 Joel Brobecker <brobecker@gnat.com>
3719
e08e1886
JB
3720 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3721 this file is now empty.
3722 * config/xm-aix4.h: Remove, this file is no longer included
3723 anywhere.
3724
37252004-08-11 Joel Brobecker <brobecker@gnat.com>
3726
3727 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3728 that file is now empty.
dbf3ada7
JB
3729 (termdef): Remove prototype, function no longer used.
3730
4c525ef6
JB
37312004-08-11 Joel Brobecker <brobecker@gnat.com>
3732
3733 * doc/gdbint.texinfo (Host Definition): Remove documentation
3734 for USE_O_NOCTTY, no longer used.
3735 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3736 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3737
82e0b968
JB
37382004-08-11 Joel Brobecker <brobecker@gnat.com>
3739
3740 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3741 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3742 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3743
f2acbe1c
MK
37442004-08-11 Mark Kettenis <kettenis@gnu.org>
3745
daa98270
MK
3746 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3747 instead of FIVE_ARG_PTRACE.
3748
f2acbe1c
MK
3749 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3750 (new_tty): Use O_NOCTTY unconditionally.
3751
cc377e6b
MK
37522004-08-10 Mark Kettenis <kettenis@gnu.org>
3753
3754 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3755 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3756 fflush on stdout.
3757
3bcc18fa
JB
37582004-08-10 Joel Brobecker <brobecker@gnat.com>
3759
3760 * xcoff_symfile_finish: Replace last call to xmfree by call
3761 to xfree.
3762
7936743b
AC
37632004-08-10 Andrew Cagney <cagney@gnu.org>
3764
cc503c8a
AC
3765 * main.c (captured_main): Delete call to init_malloc.
3766 * defs.h (init_malloc): Delete declaration.
3767 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3768 (init_malloc): Delete functions.
3769
2dc74dc1
AC
3770 * defs.h (xmfree): Delete.
3771 * utils.c (xmfree): Delete function.
3772 (xfree): Inline calls to xmfree and mfree.
3773 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3774 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3775 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3776 * somread.c (som_symfile_finish): Ditto.
3777 * objfiles.c (allocate_objfile, free_objfile):
3778 * nlmread.c (nlm_symfile_finish): Ditto.
3779 * hpread.c (hpread_symfile_finish): Ditto.
3780 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3781 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3782 * coffread.c (coff_symfile_finish): Ditto.
3783
aa2ee5f6
AC
3784 * defs.h (xmcalloc): Delete declaration.
3785 * utils.c (xmcalloc): Delete.
3786 (xcalloc): Inline calls to xmcalloc and mcalloc.
3787 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3788 xcalloc and xfree.
3789 * symtab.c (create_demangled_names_hash): Ditto.
3790
0efffb96
AC
3791 * defs.h (xmrealloc): Delete.
3792 * utils.c (xmrealloc): Delete.
3793 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3794 * symmisc.c (extend_psymbol_list): Use xrealloc.
3795 * source.c (find_source_lines): Ditto.
3796 * hpread.c (hpread_lookup_type): Ditto.
3797 * dbxread.c (add_bincl_to_list): Ditto.
3798
7936743b
AC
3799 * utils.c (xmmalloc): Delete.
3800 (xmalloc): Inline xmmalloc and mmalloc calls.
3801 (msavestring): Use xmalloc.
3802 * defs.h (xmmalloc): Delete declaration.
3803 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3804 xmmalloc.
3805 * symmisc.c (extend_psymbol_list): Ditto.
3806 * symfile.c (init_psymbol_list): Ditto.
3807 * source.c (find_source_lines): Ditto.
3808 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3809 * elfread.c (elf_symtab_read): Ditto.
3810 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3811 * coffread.c (coff_symfile_init): Ditto.
3812
252ab814
DC
38132004-08-10 David Carlton <carlton@bactrian.org>
3814
3815 * MAINTAINERS: Remove David Carlton from c++ testsuite
3816 maintainers.
3817
8f5ba92b
JG
38182004-08-10 Jerome Guitton <guitton@gnat.com>
3819
3820 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3821 print a line feed before the prompt.
3822
21749010
MK
38232004-08-10 Mark Kettenis <kettenis@gnu.org>
3824
3825 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3826
1f011ce2
JB
38272004-08-09 Joel Brobecker <brobecker@gnat.com>
3828
3829 General cleanup of the AIX xm include file:
3830 * config/xm-aix4.h (fd_set): Remove undefine.
3831 Remove include of <sys/select.h>.
3832 (HAVE_TERMIO): Remove define.
3833 (USG): Likewise.
3834 (NULL): Remove redefine.
3835 (alloca): Remove #pragma.
3836 (vfork): Remove define.
3837 (termdef): Remove.
3838 (SIGWINCH_HANDLER): Remove.
3839 (SIGWINCH_HANDLER_BODY): Remove.
3840
cf4e7692
MK
38412004-08-09 Mark Kettenis <kettenis@gnu.org>
3842
3843 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3844 GDB_OSABI_OPENBSD_ELF.
3845
ac5754fa
MK
38462004-08-07 Robert Millan <robertmh@gnu.org>
3847
3848 * bsd-kvm.c: Check for nlist.h before including it.
3849
086ec9eb
MK
38502004-08-09 Mark Kettenis <kettenis@gnu.org>
3851
bbe06c74
MK
3852 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3853 sigcontext' offset consistency checks for ancient BSD.
3854
3aa7b3b3
MK
3855 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3856
086ec9eb
MK
3857 * configure.in: Check for <sys/types.h>. Check return and
3858 argument types of ptrace.
3859 * configure, config.in: Regenerate.
3860
09991fa0
JB
38612004-08-09 Jim Blandy <jimb@redhat.com>
3862
3863 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3864 rs6000_register_sim_regno): Doc fixes.
3865
fed7ba43
JB
38662004-08-08 Joel Brobecker <brobecker@gnat.com>
3867
3868 * mips-tdep.c: Include "floatformat.h".
3869 (n32n64_floatformat_always_valid): New function.
3870 (floatformat_n32n64_long_double_big): New constant.
3871 (mips_gdbarch_init): Set size and format of long double
3872 for N32 and N64 ABIs.
3873 * Makefile.in (mips-tdep.o): Update dependencies.
3874
456fcf94
AC
38752004-08-08 Andrew Cagney <cagney@gnu.org>
3876
2f9b146e
AC
3877 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3878 print. Improve script's error messages.
3879 * gdbarch.h: Re-generate.
3880
456fcf94
AC
3881 * gdbarch.sh (pformat): New function.
3882 (float_format, double_format, long_double_format): List with bit
3883 members. Use pformat when printing.
3884 * gdbarch.c, gdbarch.h: Re-generate.
3885
69e9e646
NW
38862004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3887
3888 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3889 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3890 (ppcnbsd_supply_pcb): New function.
3891 (_initialize_ppcnbsd_nat): New prototype and function.
3892 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3893 (LOADLIBES): New variable.
3894 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3895
5ef2d0aa
AC
38962004-08-08 Andrew Cagney <cagney@gnu.org>
3897
3898 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3899 (builtin_type_ieee_double, builtin_type_ia64_quad)
3900 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3901 BE/LE floating-point types.
3902 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3903 (builtin_type_ieee_double, builtin_type_ia64_quad)
3904 (builtin_type_ia64_spill): Declare.
3905 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3906 (floatformat_ieee_double, floatformat_arm_ext)
3907 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3908 of LE/BE floatformats.
3909 * doublest.h: (struct floatformat, floatformat_ieee_single)
3910 (floatformat_ieee_double, floatformat_arm_ext)
3911 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3912
5c7f2947
MK
39132004-08-08 Mark Kettenis <kettenis@gnu.org>
3914
ecac404d
MK
3915 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3916
9b8607ce
MK
3917 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3918 instead of regcache_raw_supply when storing the registers.
3919
f6052080
MK
3920 * i386gnu-nat.c: Update copyright year.
3921 (gnu_store_registers): Don't use deprecated_registers and
3922 deprecated_registers_valid. Use regcache_valid_p and
3923 regcache_raw_supply instead.
3924
17777823
MK
3925 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3926 frame_pc_unwind.
3927
5240ceac
MK
3928 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3929 variables. Incapitalized "process".
3930
5c7f2947
MK
3931 * configure.in: Add cursesX to the list of possible curses libs.
3932 Add cursesX.h to the list of possible curses headers.
3933 * configure, config.in: Regenerate.
3934
da7d81e3
NW
39352004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3936
3937 * configure.in: Test for struct lwp in <sys/lwp.h>.
3938 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3939 the offset of l_addr in struct lwp.
3940
7f245d65
NW
39412004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3942
3943 * bsd-kvm.c: Include "gdbcore.h"
3944 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3945
47b3f456
AC
39462004-08-07 Andrew Cagney <cagney@gnu.org>
3947
70bd8e24
AC
3948 * gdbtypes.c (build_flt, build_complex): New functions.
3949 (gdbtypes_post_init): Use.
3950
9b0dea39
AC
3951 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3952
5cf7abac
AC
3953 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3954 through to builtin_type_uint128.
3955
64d2b26d
AC
3956 * c-exp.y: Use builtin_type function to obtain builtin types.
3957
7ad6570d
AC
3958 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3959 builtin_uint128.
3960 * gdbtypes.c (gdbtypes_post_init): Update.
3961 (build_gdbtypes): Move initialization of builtin_type_int0
3962 through to builtin_type_uint128 from here ...
3963 (_initialize_gdbtypes): ... to here.
3964 * d10v-tdep.c (d10v_register_type): Update.
3965
47b3f456
AC
3966 * doublest.c: Update copyright.
3967 (floatformat_from_length): Call error when floatformat is NULL.
3968 (extract_floating_by_length): Remove NULL fmt check.
3969 (store_floating_by_length): Ditto.
3970
0a8146bf
AC
39712004-08-07 Andrew Cagney <cagney@gnu.org>
3972
3973 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3974 that the register is valid.
3975
c0ccb908
MK
39762004-08-05 Mark Kettenis <kettenis@chello.nl>
3977
8e6bed05
MK
3978 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3979 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3980 struct frame_info *. Use safe_frame_unwind_memory instead of
3981 deprecated_read_memory_nobpt.
3982 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3983 changed signature of i386_linux_sigtramp_start and
3984 i386_linux_rt_sigtramp_start.
3985
24f9f5e3
MK
3986 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3987 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3988 instead of deprecated_read_memory_nobpt.
3989 (i386nbsd_sigtramp_p): Adjust for changed signature of
3990 i386nbsd_sigtramp_offset.
3991
c822af0c
MK
3992 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3993 safe_frame_unwind_memory instead of target_read_memory.
3994
c0ccb908
MK
3995 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3996 !NO_SYS_FILE.
3997 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3998 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3999 (_initialize_kernel_u_addr): Remove prototype and function.
4000 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4001 !NO_SYS_FILE.
4002 * xcoffread.c: Likewise.
4003
b9e1c0d6
MK
40042004-08-06 Mark Kettenis <kettenis@gnu.org>
4005
4006 * vax-nat.c: New file.
4007 * vaxbsd-nat.c: Tweak comment.
4008 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4009 vaxnbsd-tdep.c.
4010 (vax-nat.o): New dependency.
4011 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4012 (vax-*-ultrix2*): Remove.
4013 * config/vax/vax.mh: New file.
4014 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4015 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4016 (vax_register_u_addr): New prototype.
4017 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4018 * config/vax/vaxult2.mh: Remove file.
4019 * config/vax/vaxult.mh: Remove file.
4020 * config/vax/vaxbsd.mh: Remove file.
4021 * config/vax/vax.mt (TM_FILE): Remove.
4022 * config/vax/tm-vaxbsd.h: Remove file.
4023
9ad7bec7
JB
40242004-08-06 Joel Brobecker <brobecker@gnat.com>
4025
4026 * aix-thread.c (get_signaled_thread): New function.
4027 (iter_trap): Delete, no longer used.
4028 (iter_tid): New function.
4029 (pd_update): Find the thread that received the SIGTRAP signal
4030 by first locating the kernel thread, and then finding its
4031 associated thread.
4032
bf0d233d
UW
40332004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4034
4035 * lin-lwp.c (child_wait): Continue inferior after processing
4036 PTRACE_EVENT_CLONE event.
4037
d0f853e1
NN
40382004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4039
4040 * MAINTAINERS: Add self to Write-After-Approval.
4041
ab14aeb0
JJ
40422004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4043
4044 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4045 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4046
9c8dbfa9
AC
40472004-08-05 Andrew Cagney <cagney@gnu.org>
4048
c8f3ca46
AC
4049 * config/xm-sysv4.h: Delete file.
4050 * config/mips/xm-irix5.h: Delete file.
4051 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4052 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4053 * config/ia64/xm-aix.h: Delete file.
4054 * config/ia64/aix.mh (XM_FILE): Delete.
4055 * config/pa/xm-hppah.h: Delete file.
4056 * config/pa/hpux11w.mh (XM_FILE): Delete.
4057 * config/pa/hpux11.mh (XM_FILE): Delete.
4058 * config/pa/hpux1020.mh (XM_FILE): Delete.
4059 * config/pa/hppahpux.mh (XM_FILE): Delete.
4060
5f7daaff
AC
4061 * config/alpha/xm-alphalinux.h: Delete file.
4062 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4063 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4064 * config/alpha/xm-alphaosf.h: Delete file.
4065 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4066 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4067 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4068 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4069
69babf95
AC
4070 * config/i386/xm-i386v.h: Delete file.
4071 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4072 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4073 * config/i386/xm-i386sco.h: Delete file.
4074 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4075 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4076 * config/i386/xm-i386v4.h: Delete file.
4077 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4078 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4079 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4080 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4081
6f009c8a
AC
4082 * config/vax/xm-vax.h: Delete file.
4083 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4084 * config/vax/xm-vaxult2.h: Delete file.
4085 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4086 * config/vax/vaxult2.mh (XM_FILE): Delete.
4087 * config/vax/xm-vaxult.h: Delete file.
4088 * config/vax/vaxult.mh (XM_FILE): Delete.
4089 * config/vax/xm-vaxbsd.h: Delete file.
4090 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4091
9c8dbfa9
AC
4092 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4093 * gdbarch.h, gdbarch.c: Re-generate.
4094 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4095 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4096 * frame.h: Delete deprecated_read_fp from comments.
4097 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4098 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4099
84367a3e
MK
41002004-08-04 Mark Kettenis <kettenis@gnu.org>
4101
9c8e3411
MK
4102 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4103 trampoline in OpenBSD 3.5-current.
4104
b87bc0d8
MK
4105 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4106 SSE registers.
4107
84367a3e
MK
4108 * Makefile.in: Remove embedded page breaks.
4109
a44bddec
JB
41102004-08-04 Jim Blandy <jimb@redhat.com>
4111
7ab3286f
JB
4112 * regcache.c (regcache_raw_read): Assert that, after calling
4113 target_fetch_registers, the register we're reading is cached.
4114
a44bddec
JB
4115 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4116 a call to 'internal_error', with a more helpful error message.
4117 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 4118 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 4119
35124113
AC
41202004-08-04 Andrew Cagney <cagney@gnu.org>
4121
4122 * Makefile.in: Update dependencies.
4123
9f643768
JB
41242004-08-04 Jim Blandy <jimb@redhat.com>
4125
6ced10dd
JB
4126 Change the layout of the PowerPC E500 raw register cache to allow
4127 the lower 32-bit halves of the GPRS to be their own raw registers,
4128 not pseudoregisters.
4129 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4130 add ppc_ev0_upper_regnum flag.
4131 * rs6000-tdep.c: #include "reggroups.h".
4132 (spe_register_p): Recognize the ev upper half registers as SPE
4133 registers.
4134 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4135 registers.
4136 (e500_move_ev_register): New function.
4137 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4138 vector registers are the pseudo-registers now, formed by splicing
4139 together the gprs and the upper-half registers.
4140 (e500_register_reggroup_p): New function.
4141 (P): Macro deleted.
4142 (P8, A4): New macro.
4143 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4144 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4145 macros.
4146 (registers_e500): Rearrange register set so that the raw register
4147 set contains 32-bit GPRs and upper-half registers, and the SPE
4148 vector registers become pseudo-registers.
4149 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4150 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4151 register numbers are now the same for the E500 as they are for
4152 other PowerPC variants. Register e500_register_reggroup_p as the
4153 register group function for the E500.
4154 * Makefile.in (rs6000-tdep.o): Update dependencies.
4155
4156 Adapt PPC E500 native support to the new raw regcache layout.
4157 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4158 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4159 (fetch_spe_register, store_spe_register): Handle fetching/storing
4160 all the SPE registers at once, if regno == -1. These now take
4161 over the job of fetch_spe_registers and store_spe_registers.
4162 (fetch_spe_registers, store_spe_registers): Deleted.
4163 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4164 unconditionally; they're always raw. Fetch/store SPE upper half
4165 registers, if present, instead of ev registers.
4166 (fetch_register, store_register): Remove sanity checks: gprs are
4167 never pseudo-registers now, so we never need to even mention any
4168 registers that are ever pseudoregisters.
4169
9f643768
JB
4170 Use a fixed register numbering when communicating with the PowerPC
4171 simulator.
4172 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4173 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4174 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4175 New functions.
4176 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4177 init_sim_regno_table.
4178 * Makefile.in (gdb_sim_ppc_h): New variable.
4179 (rs6000-tdep.o): Update dependencies.
4180
1e2279c8
AC
41812004-08-02 Andrew Cagney <cagney@gnu.org>
4182
1d94326f
AC
4183 * cris-tdep.c (cris_register_size): Restore function, still used
4184 locally.
4185
331ae7ed
AC
4186 * gdbarch.sh (deprecated_target_read_fp)
4187 (deprecated_frame_locals_address, deprecated_frame_args_address)
4188 (deprecated_frame_chain_valid, deprecated_frame_chain)
4189 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4190 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4191 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4192 * gdbarch.h, gdbarch.c: Re-generate.
4193 * regcache.c (deprecated_read_fp): Do not call
4194 DEPRECATED_TARGET_READ_FP_P.
4195 * infcmd.c (default_print_registers_info): Do not call
4196 DEPRECATED_DO_REGISTERS_INFO.
4197 * frame-base.c (default_frame_locals_address): Do not call
4198 DEPRECATED_FRAME_LOCALS_ADDRESS.
4199 (default_frame_args_address): Do not call
4200 DEPRECATED_FRAME_ARGS_ADDRESS.
4201
1e2279c8
AC
4202 * gdbarch.sh (deprecated_register_raw_size)
4203 (deprecated_register_virtual_size:int): Delete.
4204 * gdbarch.h, gdbarch.c: Re-generate.
4205 * cris-tdep.c (cris_register_size): Delete.
4206 (cris_gdbarch_init): Update.
4207 * alpha-tdep.c (alpha_register_raw_size)
4208 (alpha_register_virtual_size): Delete.
4209 (alpha_gdbarch_init): Update.
4210
a90c06b4
AC
4211 * gdbarch.sh (deprecated_register_virtual_type)
4212 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4213 (deprecated_dummy_write_sp): Delete.
4214 * gdbarch.h, gdbarch.c: Re-generate.
4215
f42accbe
AC
4216 * gdbarch.sh (deprecated_register_bytes): Delete.
4217 * gdbarch.h, gdbarch.c: Re-generate.
4218 * regcache.c (deprecated_register_bytes): New function.
4219 * regcache.h (deprecated_register_bytes): Declare.
4220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4221 * v850-tdep.c (v850_gdbarch_init): Update.
4222 * sh64-tdep.c (sh64_gdbarch_init): Update.
4223 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4225 * mcore-tdep.c (mcore_gdbarch_init): Update.
4226 * cris-tdep.c (cris_gdbarch_init): Update.
4227 * arm-tdep.c (arm_gdbarch_init): Update.
4228 * remote.c (init_remote_state): Update.
4229 * remote-vx.c (vx_prepare_to_store): Update.
4230 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4231 * irix5-nat.c (fetch_core_registers): Update.
4232 * cris-tdep.c (cris_register_bytes_ok): Update.
4233 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4234
45c9dd44
AC
4235 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4236 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4237 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4238 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4239 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4240 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4241 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4242 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4243 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4244 with mips_insn16 and mips_insn32.
4245
3acba339
AC
4246 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4247 * rs6000-tdep.c (rs6000_push_dummy_call)
4248 (rs6000_extract_return_value): Use register_size.
4249 * xstormy16-tdep.c (xstormy16_get_saved_register)
4250 (xstormy16_extract_return_value): Ditto.
4251 * valops.c (value_assign): Ditto.
4252 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4253 * v850-tdep.c (v850_extract_return_value): Ditto.
4254 * tracepoint.c (collect_symbol): Ditto.
4255 * target.c (debug_print_register): Ditto.
4256 * stack.c (frame_info): Ditto.
4257 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4258 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4259 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4260 (store_register_using_P): Ditto.
4261 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4262 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4263 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4264 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4265 * regcache.c (deprecated_read_register_bytes)
4266 (deprecated_write_register_bytes, read_register)
4267 (write_register): Ditto.
4268 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4269 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4270 * monitor.c (monitor_supply_register, monitor_fetch_register)
4271 (monitor_store_register): Ditto.
4272 * mn10300-tdep.c (mn10300_pop_frame_regular)
4273 (mn10300_print_register): Ditto.
4274 * mipsv4-nat.c (fill_fpregset): Ditto.
4275 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4276 (mips64_fill_fpregset): Ditto.
4277 * mi/mi-main.c (register_changed_p, get_register)
4278 (mi_cmd_data_write_register_values): Ditto.
4279 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4280 * irix5-nat.c (fill_gregset, fetch_core_registers):
4281 * infrun.c (write_inferior_status_register): Ditto.
4282 * infptrace.c (fetch_register, store_register): Ditto.
4283 * infcmd.c (default_print_registers_info): Ditto.
4284 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4285 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4286 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4287 * hpux-thread.c (hpux_thread_fetch_registers)
4288 (hpux_thread_store_registers): Ditto.
4289 * hppah-nat.c (store_inferior_registers, fetch_register):
4290 * findvar.c (value_from_register): Ditto.
4291 * dve3900-rom.c (fetch_bitmapped_register):
4292 * cris-tdep.c (cris_gdbarch_init): Ditto.
4293 * alpha-tdep.h: Ditto.
4294 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4295
01e1877c
AC
4296 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4297 DEPRECATED_REGISTER_RAW_SIZE from comments.
4298 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4299 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4300 DEPRECATED_REGISTER_RAW_SIZE.
4301 * findvar.c (value_of_register): Simplify by assuming that the
4302 registers raw and virtual sizes are identical.
4303 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4304 comment.
4305 * arch-utils.c (generic_register_size): Simplify by assuming
4306 register_type.
4307
73f458fb
AC
4308 * regcache.c (legacy_read_register_gen, real_register)
4309 (legacy_write_register_gen): Delete, not used.
4310
336a3131
AC
4311 * regcache.c (struct regcache_descr): Delete legacy_p.
4312 (init_legacy_regcache_descr): Delete function.
4313 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4314 Do not use deprecated register functions.
4315 (regcache_raw_read, deprecated_write_register_gen):
4316 (deprecated_read_register_gen, regcache_raw_write): Delete code
4317 predicated on legacy_p.
4318 (register_size): Delete check against register raw size.
4319
c1d546cd
AC
4320 * cris-tdep.c (cris_register_type): Replace
4321 cris_register_virtual_type.
4322 (cris_gdbarch_init): Update, set register_type.
4323
48c2c0a6
AC
4324 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4325 * gdbarch.h, gdbarch.c: Re-generate.
4326 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4327 (arm_gdbarch_init) Do not set frameless function invocation.
4328 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4329 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4330 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4331 (frv_gdbarch_init): Do not set frameless function invocation.
4332 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4333 * sh-tdep.c (sh_gdbarch_init): Ditto.
4334 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4336 * avr-tdep.c (avr_gdbarch_init): Ditto.
4337
474093a6
AC
4338 * blockframe.c (legacy_frame_chain_valid): Delete function.
4339
3c109c8b
AC
4340 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4341 and pc. Update comments.
4342 (pc_in_dummy_frame): Delete function.
4343 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4344 use the "id".
4345 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4346 call_hi, top and pc, use the id.
4347 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4348
96860204
AC
4349 * dummy-frame.c: Include "gdb_string.h".
4350 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4351 (generic_save_dummy_frame_tos): Delete.
4352 (dummy_frame_push): New function, replaces above.
4353 * dummy-frame.h: Update copyright.
4354 (dummy_frame_push): Declare.
4355 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4356 (generic_save_call_dummy_addr): Delete declarations.
4357 * infcall.c: Include "dummy-frame.h".
4358 (call_function_by_hand): Add locals caller_regcache,
4359 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4360 with call to frame_save_as_regcache plus cleanup. Delete calls to
4361 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4362 Move clear_proceed_status to just before the resume, add call to
4363 dummy_frame_push (discard cleanup).
4364 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4365 (dummy-frame.o): Add $(gdb_string_h).
4366
d67ec5db
AC
43672004-08-01 Andrew Cagney <cagney@gnu.org>
4368
4369 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4370 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4371 * dummy-frame.c (find_dummy_frame): Delete.
4372 (struct dummy_frame_cache, dummy_frame_sniffer)
4373 (dummy_frame_prev_register, dummy_frame_this_id)
4374 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4375 frame unwinder using a dummy_frame_cache.
4376
a81dcb05
AC
43772004-08-01 Andrew Cagney <cagney@gnu.org>
4378
4379 * frame.h (frame_save_as_regcache): Declare.
4380 * frame.c (frame_save_as_regcache): New function.
4381 (do_frame_read_register): Replace do_frame_unwind_register.
4382 (frame_pop): Use frame_save_as_regcache.
4383 * dummy-frame.c (generic_push_dummy_frame): Use
4384 frame_save_as_regcache.
4385
aa495d11
JB
43862004-08-01 Joel Brobecker <brobecker@gnat.com>
4387
4388 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4389 file as included until we record the first line in the linetable.
4390
ff65ac78
AC
43912004-08-01 Andrew Cagney <cagney@gnu.org>
4392
4393 * frame.h (deprecated_pop_dummy_frame)
4394 (deprecated_read_register_dummy)
4395 (deprecated_generic_find_dummy_frame): Delete.
4396 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4397 (deprecated_read_register_dummy)
4398 (deprecated_find_dummy_frame_regcache)
4399 (discard_innermost_dummy)
4400 (deprecated_pop_dummy_frame): Delete.
4401 (dummy_frame_this_id): Simplify.
4402 (struct dummy_frame): Delete "fp" and "sp".
4403 (find_dummy_frame): Simplify.
4404 (generic_push_dummy_frame): Do not set "fp" or "sp".
4405 (fprint_dummy_frames): Do not print "fp" and "sp"
4406
37bdc87e
MK
44072004-08-01 Mark Kettenis <kettenis@gnu.org>
4408
4409 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4410 (struct i386_insn): New structure.
4411 (i386_match_insn): New function.
4412 (i386_frame_setup_skip_insns): New variable.
4413 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4414 array i386_frame_setup_insns of instructions that should be
4415 skipped inside the frame setup sequence.
4416
8241eaa6
AC
44172004-08-01 Andrew Cagney <cagney@gnu.org>
4418
5bc602c7
AC
4419 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4420 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4421 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4422 * stack.c (frame_info): Delete references to
4423 DEPRECATED_FRAME_INIT_SAVED_REGS and
4424 deprecated_get_frame_saved_regs.
4425 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4426 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4427 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4428 (frame_unwind_register_signed)
4429 (frame_unwind_register_unsigned)
4430 (frame_unwind_unsigned_register): Use register_size.
4431 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4432 (deprecated_frame_xmalloc_with_cleanup)
4433 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4434 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4435
03d363a1
AC
4436 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4437 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4438 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4439 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4440
8241eaa6
AC
4441 * infcall.c (call_function_by_hand): Do not use
4442 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4443 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4444 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4445 DEPRECATED_STACK_ALIGN.
4446
f00df8b7
AC
44472004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4448
4449 Committed by Andrew Cagney.
4450 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4451
eec63939
AC
44522004-08-01 Andrew Cagney <cagney@gnu.org>
4453
4454 * mips-tdep.c (mips16_frame_cache)
4455 (mips16_frame_this_id, mips16_frame_prev_register)
4456 (mips16_frame_unwind, mips16_frame_sniffer)
4457 (mips16_frame_base_address, mips16_frame_base)
4458 (mips16_frame_base_sniffer, mips32_frame_cache)
4459 (mips32_frame_this_id, mips32_frame_prev_register)
4460 (mips32_frame_unwind, mips32_frame_sniffer)
4461 (mips32_frame_base_address, mips32_frame_base)
4462 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4463 separate heuristic mips16 and mips32 unwinders.
4464 (mips_stub_frame_cache, mips_stub_frame_this_id)
4465 (mips_stub_frame_prev_register)
4466 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4467 (mips_stub_frame_base_address, mips_stub_frame_base)
4468 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4469 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4470 match true mdebug frames.
4471 (non_heuristic_proc_desc): Add forward declaration.
4472
e66299b3
AC
44732004-08-01 Andrew Cagney <cagney@gnu.org>
4474
83cbbf3e
AC
4475 * config/mips/tm-irix6.h: Delete file.
4476 * config/mips/tm-irix5.h: Delete file.
4477 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4478 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4479
22d41b37
AC
4480 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4481 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4482 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4483 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4484 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4485 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4486 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4487 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4488 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4489 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4490 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4491 (TARGET_SIGNAL_RAW_VALUES): Delete.
4492 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4493 Delete.
4494 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4495 (TARGET_HW_WATCH_LIMIT): Delete.
4496 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4497 * minimon.h: Delete file.
4498
e66299b3
AC
4499 * trad-frame.c (trad_frame_get_this_base)
4500 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4501 functions.
4502 * trad-frame.h (trad_frame_set_this_base)
4503 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4504
1f67027d
AC
45052004-07-31 Andrew Cagney <cagney@gnu.org>
4506
4507 * trad-frame.c (trad_frame_get_prev_register): Rename
4508 trad_frame_get_prev_register.
4509 * vax-tdep.c (vax_frame_prev_register): Update.
4510 * trad-frame.h: Update.
4511 * trad-frame.c (trad_frame_get_register): Update.
4512 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4513 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4514 Update.
4515 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4516 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4517 Update.
4518 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4519 Update.
4520 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4521 Update.
4522 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4523 Update.
4524 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4525 Update.
4526 * s390-tdep.c (s390_frame_prev_register)
4527 (s390_stub_frame_prev_register)
4528 (s390_sigtramp_frame_prev_register): Update.
4529 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4530 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4531 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4532 * m88k-tdep.c (m88k_frame_prev_register)
4533 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4534 * m32r-tdep.c (m32r_frame_prev_register): Update.
4535 * hppa-tdep.c (hppa_frame_prev_register_helper)
4536 * frv-tdep.c (frv_frame_prev_register): Update.
4537 * d10v-tdep.c (d10v_frame_prev_register): Update.
4538 * cris-tdep.c (cris_frame_prev_register): Update.
4539 * avr-tdep.c (avr_frame_prev_register): Update.
4540 * arm-tdep.c (arm_prologue_prev_register)
4541 (arm_sigtramp_prev_register): Update.
4542
c1bf6f65
AC
45432004-07-31 Andrew Cagney <cagney@gnu.org>
4544
4545 * frame.h (legacy_saved_regs_unwind)
4546 (legacy_frame_chain_valid, legacy_frame_p)
4547 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4548 * dummy-frame.c (dummy_frame_this_id): Simplify.
4549 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4550 * frame.c (struct frame_info): Delete the field "type".
4551 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4552 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4553 (legacy_saved_regs_unwind, legacy_frame_p)
4554 (frame_type_from_pc): Delete.
4555 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4556 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4557
dc856692
MK
45582004-07-31 Mark Kettenis <kettenis@gnu.org>
4559
5a5effe1
MK
4560 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4561 indentation.
4562
d4fd50a6
MK
4563 * mips-nat.c: Remove file.
4564 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4565 (mips-nat.o): Remove dependency.
4566
2689df5a
MK
4567 * infptrace.c: Update copyright year.
4568 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4569 explicitly setting the buffer to all zeroes.
4570
dc856692
MK
4571 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4572 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4573
763910e0
AC
45742004-07-30 Andrew Cagney <cagney@gnu.org>
4575
4576 * GDB 6.2 released from gdb_6_2-branch.
4577
0b66e38c
EZ
45782004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4579
4580 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4581
4582 * exec.c (exec_file_attach):
4583 * nto-tdep.c (nto_find_and_open_solib):
4584 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4585 * solib.c (solib_open):
4586 * somsolib.c (som_solib_sizeof_symbol_table):
4587 * source.c (is_regular_file, openp, open_source_file):
4588 * symfile.c (symfile_bfd_open):
4589 * wince.c (upload_to_device): Differentiate between the search for
4590 binary and source files.
4591
be7d7357
AC
45922004-07-30 Andrew Cagney <cagney@gnu.org>
4593
4594 * complaints.c (_initialize_complaints): Pass NULL to
4595 add_setshow_zinteger_cmd for help_doc.
4596 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4597
ddc9cd0f
AC
45982004-07-30 Andrew Cagney <cagney@gnu.org>
4599
4600 Fix PR i18n/761.
4601 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4602 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4603 $(PACKAGE).pot and update-po.
4604 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4605 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4606 (update-po): New rules.
4607 (localedir): Define using autoconf.
4608 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4609 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4610 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4611 * configure.in: Generate CATALOGS and LINGUAS from contents of
4612 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4613 * configure: Re-generate.
4614 * po/gdbtext: New file
4615
e92f3704
JG
46162004-07-30 Jerome Guitton <guitton@gnat.com>
4617
4618 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4619 order.
4620
b0f35d58
DL
46212004-07-30 David Lecomber <dsl@sources.redhat.com>
4622
4623 * dwarf2read.c (read_file_scope): Set producer if attribute
4624 present.
4625 (struct dwarf2_cu): Added new member producer.
4626
ce7d4522
JG
46272004-07-30 Jerome Guitton <guitton@gnat.com>
4628
4629 * inflow.c (kill_command): release file handles in BFD.
4630 * exec.c (exec_file_attach): Ditto.
4631 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4632
05ee07c7
AC
46332004-07-29 Andrew Cagney <cagney@gnu.org>
4634
4635 * PROBLEMS (mips-irix): Note that it is broken.
4636
62eceb47
AC
46372004-07-29 Andrew Cagney <cagney@gnu.org>
4638
e57b8d41
AC
4639 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4640 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4641
d334389b
AC
4642 * config/xm-nbsd.h: Delete file.
4643 * config/arm/xm-nbsd.h: Delete file.
4644 * config/i386/xm-nbsd.h: Delete file.
4645 * config/ns32k/xm-nbsd.h: Delete file.
4646 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4647 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4648 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4649 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4650 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4651
e910f676
AC
4652 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4653 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4654 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4655 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4656 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4657 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4658
6fa856b9
AC
4659 * config/powerpc/xm-linux.h: Delete empty file.
4660 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4661 * config/powerpc/linux.mh (XM_FILE): Delete.
4662 * config/m68k/xm-linux.h: Delete empty file.
4663 * config/m68k/linux.mh (XM_FILE): Delete.
4664 * config/ia64/xm-linux.h: Delete empty file.
4665 * config/ia64/linux.mh (XM_FILE): Delete.
4666 * config/arm/xm-linux.h: Delete empty file.
4667 * config/arm/linux.mh (XM_FILE): Delete.
4668
471ae5ae
AC
4669 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4670 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4671 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4672 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4673 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4674 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4675 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4676 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4677
62eceb47
AC
4678 * config/m68k/xm-m68k.h: Delete file.
4679 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4680 copyright.
4681 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4682 * config/pa/xm-linux.h: Delete empty file.
4683 * config/pa/linux.mh (XM_FILE): Delete.
4684 * config/i386/xm-i386.h: Delete empty file.
4685 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4686 "i386/xm-i386.h".
4687 * config/i386/obsdaout.mh (XM_FILE): Delete.
4688 * config/i386/obsd64.mh (XM_FILE): Delete.
4689 * config/i386/fbsd64.mh (XM_FILE): Delete.
4690 * config/i386/nto.mh (XM_FILE): Delete.
4691 * config/i386/obsd.mh (XM_FILE): Delete.
4692 * config/i386/linux64.mh (XM_FILE): Delete.
4693 * config/i386/linux.mh (XM_FILE): Delete.
4694 * config/i386/i386sol2.mh (XM_FILE): Delete.
4695 * config/i386/i386gnu.mh (XM_FILE): Delete.
4696 * config/i386/fbsd.mh (XM_FILE): Delete.
4697 * config/i386/nbsd64.mh (XM_FILE): Delete.
4698
c35f4ffc
AC
46992004-07-29 Andrew Cagney <cagney@gnu.org>
4700
4701 * config/pa/xm-linux.h: Do not include "floatformat.h".
4702 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4703 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4704 * config/i386/xm-i386.h: Do not include "floatformat.h".
4705 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4706 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4707 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4708 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4709 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4710 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4711 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4712 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4713 * configure, config.in: Regenerate.
4714 * configure.host (gdb_host_float_format, gdb_host_double_format)
4715 (gdb_host_long_double_format): Set according to the host.
4716
624a44a3
AC
47172004-07-29 Andrew Cagney <cagney@gnu.org>
4718
4719 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4720
0dea2468
AC
47212004-07-28 Andrew Cagney <cagney@gnu.org>
4722
4723 * PROBLEMS: Mention threads/1650.
4724 * NEWS: Mention the NPTL fix.
4725
b3f42336
AC
47262004-07-28 Andrew Cagney <cagney@gnu.org>
4727
4728 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4729 (add_setshow_cmd_full): Make static.
4730 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4731 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4732 * cli/cli-decode.c (add_setshow_filename_cmd)
4733 (add_setshow_string_cmd): New functions.
4734 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4735 * mips-tdep.c (_initialize_mips_tdep): Update.
4736 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4737 * cli/cli-logging.c (_initialize_cli_logging): Update.
4738 * complaints.c (_initialize_complaints): Update.
4739 * remote.c (_initialize_remote): Update.
4740
3b64bf98
AC
47412004-07-28 Andrew Cagney <cagney@gnu.org>
4742
4743 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4744 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4745 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4746 print parameters. Make string parameters constant.
4747 * command.h: Update. Update copyright.
4748 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4749 * observer.c (_initialize_observer): Ditto.
4750 * frame.c (_initialize_frame): Ditto.
4751 * complaints.c (_initialize_complaints): Ditto.
4752 * maint.c (_initialize_maint_cmds): Ditto.
4753 * target.c (initialize_targets): Ditto.
4754 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4755 * infcall.c (_initialize_infcall): Ditto.
4756 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4757 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4758 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4759 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4760 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4761
e9667a65
AC
47622004-07-28 Andrew Cagney <cagney@gnu.org>
4763
54a5b07d
AC
4764 * gdbtypes.c (lookup_primitive_typename): Delete function.
4765 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4766 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4767 * gdbtypes.c (lookup_typename): Ditto.
4768 * f-exp.y (yylex): Ditto.
4769 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4770
e9667a65
AC
4771 * scm-lang.c (c_builtin_types): Delete extern declaration.
4772 (scm_language_defn): Replace
4773 string_char_type and primitive_type_vector with
4774 la_language_arch_info.
4775 * jv-lang.c (java_language_defn): Replace
4776 string_char_type and primitive_type_vector with
4777 la_language_arch_info.
4778 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4779 c_builtin_types in comment.
4780 * c-lang.h (struct language_arch_info): Declare opaque.
4781 (c_language_arch_info): Declare.
4782 (c_builtin_types): Delete declaration.
4783 * c-lang.c (c_language_arch_info): Set string_char_type to
4784 builtin_char, not builtin_true_char. Make global.
4785 (c_builtin_types): Delete array.
4786 (asm_language_defn, minimal_language_defn): Replace
4787 string_char_type and primitive_type_vector with
4788 la_language_arch_info.
4789
685419e2
AC
47902004-07-28 Andrew Cagney <cagney@gnu.org>
4791
4792 * gdbtypes.h (struct builtin_type): Rename true_char to
4793 builtin_true_char.
4794 * gdbtypes.c (gdbtypes_post_init): Update.
4795 * c-lang.c (arch_info): New function.
4796 (enum c_primitive_types): New enum.
4797 (c_language_defn): Instead of string_char_type and
4798 primitive_type_vector set la_language_arch_info.
4799
5a44ea29
AC
48002004-07-28 Andrew Cagney <cagney@gnu.org>
4801
4802 * language.h (struct language_arch_info): Fix typo
4803 s/primative/primitive/.
4804 * gdbtypes.c (lookup_primitive_typename): Ditto.
4805 * language.c (language_lookup_primitive_type_by_name)
4806 (unknown_language_arch_info): Ditto.
4807
f290d38e
AC
48082004-07-27 Andrew Cagney <cagney@gnu.org>
4809
4810 * defs.h (enum language): Add nr_languages.
4811 * language.h (struct language_arch_info): Define.
4812 (struct language_defn): Add la_language_arch_info.
4813 (language_lookup_primative_type_by_name): Declare.
4814 (language_string_char_type): Declare.
4815 * language.c (_initialize_language, language_gdbarch_post_init)
4816 (struct language_gdbarch, language_gdbarch_data): Implement
4817 per-architecture language information.
4818 (unknown_language_arch_info, language_string_char_type)
4819 (language_lookup_primative_type_by_name): New functions.
4820 (unknown_language_defn, auto_language_defn)
4821 (local_language_defn): Set la_language_arch_info to
4822 unknown_language_arch_info.
4823 (unknown_builtin_types): Delete.
4824 * gdbtypes.c (lookup_primitive_typename): Use
4825 language_lookup_primative_type_by_name.
4826 (create_string_type): Use language_string_char_type.
4827 * values.c (value_from_string): Use language_string_char_type.
4828 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4829 * p-lang.c (pascal_language_defn): Ditto.
4830 * m2-lang.c (m2_language_defn): Ditto.
4831 * jv-lang.c (java_language_defn): Ditto.
4832 * objc-lang.c (objc_language_defn): Ditto.
4833 * f-lang.c (f_language_defn): Ditto.
4834 * c-lang.c (c_language_defn, cplus_language_defn)
4835 (asm_language_defn, minimal_language_defn): Ditto.
4836
000177f0
AC
48372004-07-27 Andrew Cagney <cagney@gnu.org>
4838
4839 * gdbtypes.h (struct builtin_type): Declare.
4840 (builtin_type): Declare.
4841 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4842 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4843 (gdbtypes_post_init): New function.
4844 (builtin_type): New function.
4845
e22f895c
KI
48462004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4847
4848 * remote-m32r-sdi.c: Fix breakpoint bug.
4849 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4850 recv_char_data, recv_long_data): New functions to replace communication
4851 sequences.
4852
536517dd
MC
48532004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4854
4855 Document PR threads/1650.
4856 * PROBLEMS (Threads): Document problem with many threads
4857
a0a44d18
AC
48582004-07-26 Andrew Cagney <cagney@gnu.org>
4859
4860 * gdb-mi.el: Move from here ...
4861 * mi/gdb-mi.el: ... to here.
4862
7ac4ac06
AC
48632004-07-26 Andrew Cagney <cagney@gnu.org>
4864
4865 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4866 * main.c (captured_main): When in batch mode always detach.
4867
a1b461bf
AC
48682004-07-26 Andrew Cagney <cagney@gnu.org>
4869
4870 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4871 and h8300 as broken.
4872 * NEWS: END-OF-LIFE frame compatibility module.
4873 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4874 specific comments.
4875
cb1a6d5f
AC
48762004-07-26 Andrew Cagney <cagney@gnu.org>
4877
4878 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4879 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4880 * wince.c (_initialize_wince): Update.
4881 * win32-nat.c (_initialize_win32_nat): Update.
4882 * varobj.c (_initialize_varobj): Update.
4883 * valops.c (_initialize_valops): Update.
4884 * utils.c (initialize_utils, initialize_utils): Update.
4885 * tui/tui-win.c (_initialize_tui_win): Update.
4886 * top.c (init_main): Update.
4887 * symfile.c (_initialize_symfile): Update.
4888 * source.c (_initialize_source): Update.
4889 * somsolib.c (_initialize_som_solib): Update.
4890 * solib.c (_initialize_solib): Update.
4891 * solib-frv.c (_initialize_frv_solib): Update.
4892 * serial.c (_initialize_serial): Update.
4893 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4894 * remote.c (_initialize_remote, _initialize_remote): Update.
4895 * remote-vx.c (_initialize_vx): Update.
4896 * remote-utils.c (_initialize_sr_support): Update.
4897 * remote-sds.c (_initialize_remote_sds): Update.
4898 * remote-mips.c (_initialize_remote_mips): Update.
4899 * remote-e7000.c (_initialize_remote_e7000): Update.
4900 * proc-api.c (_initialize_proc_api): Update.
4901 * printcmd.c: Update.
4902 * parse.c (_initialize_parse): Update.
4903 * pa64solib.c (_initialize_pa64_solib): Update.
4904 * p-valprint.c (_initialize_pascal_valprint): Update.
4905 * monitor.c (_initialize_remote_monitors): Update.
4906 * mips-tdep.c (_initialize_mips_tdep): Update.
4907 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4908 * maint.c (_initialize_maint_cmds): Update.
4909 * lin-lwp.c (_initialize_lin_lwp): Update.
4910 * language.c (_initialize_language): Update.
4911 * kod.c (_initialize_kod): Update.
4912 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4913 * i386-tdep.c (_initialize_i386_tdep): Update.
4914 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4915 * gdbarch.sh: Update.
4916 * gdbarch.c: Re-generate.
4917 * gdb-events.sh: Update.
4918 * gdb-events.c: Re-generate.
4919 * frame.c (_initialize_frame): Update.
4920 * exec.c: Update.
4921 * demangle.c (_initialize_demangler): Update.
4922 * dcache.c (_initialize_dcache): Update.
4923 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4924 * cp-valprint.c (_initialize_cp_valprint): Update.
4925 * corefile.c (_initialize_core): Update.
4926 * command.h: Update.
4927 * cli/cli-decode.h: Update.
4928 * cli/cli-cmds.c (init_cli_cmds): Update.
4929 * charset.c (_initialize_charset): Update.
4930 * breakpoint.c (_initialize_breakpoint): Update.
4931 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4932 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4933 * aix-thread.c (_initialize_aix_thread): Update.
4934
b4632131
MK
49352004-07-24 Mark Kettenis <kettenis@gnu.org>
4936
4937 Partial fix for PR backtrace/1718.
4938 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4939 that GCC migrates into the prolugue. Don't handle any
4940 instructions that clobber %ebx.
4941
822c9732
AC
49422004-07-23 Andrew Cagney <cagney@gnu.org>
4943
4944 Use regcache_raw_collect instead of regcache_collect.
4945 * regcache.h (regcache_collect): Delete declaration.
4946 * regcache.c (regcache_colect): Delete function.
4947 * win32-nat.c (do_child_store_inferior_registers): Update.
4948 * sol-thread.c (sol_thread_store_registers): Update.
4949 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4950 * rs6000-nat.c (store_register): Update.
4951 * remote.c (store_register_using_P, remote_store_registers): Update.
4952 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4953 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4954 (fill_vrregset, store_spe_registers, fill_gregset)
4955 (fill_gregset): Update.
4956 * nto-procfs.c (procfs_store_registers): Update.
4957 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4958 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4959 * m68klinux-nat.c (store_register, fill_gregset): Update.
4960 * m68k-tdep.c (fill_gregset): Update.
4961 * infptrace.c (store_register): Update.
4962 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4963 * i386-linux-nat.c (store_register, fill_gregset): Update.
4964 * hppa-linux-nat.c (fill_gregset): Update.
4965 * go32-nat.c (store_register): Update.
4966 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4967 (store_fp_regs): Update.
4968 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4969 (store_nwfpe_extended, store_fpregister, store_fpregs)
4970 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4971 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4972 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4973 (store_regs_user_thread, store_regs_kernel_thread): Update.
4974
32b05c07
MK
49752004-07-24 Mark Kettenis <kettenis@gnu.org>
4976
4977 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4978 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4979 encoding.
4980 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4981 member of `struct comp_unit'.
4982
8567c30f
AC
49832004-07-23 Andrew Cagney <cagney@gnu.org>
4984
4985 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4986 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4987
f6da8dd8
MH
49882004-07-23 Martin Hunt <hunt@redhat.com>
4989 Kevin Buettner <kevinb@redhat.com>
4990
4991 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4992 alignment was being added to the offset instead of multiplied.
4993
bd921882
MK
49942004-07-23 Mark Kettenis <kettenis@gnu.org>
4995
24f033e8
MK
4996 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4997 changed signal trampoline in OpenBSD 3.5-current.
4998
90f3cecd
MK
4999 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5000 <machine/pcb.h> and "bsd-kvm.h".
5001 (sparc64nbsd_supply_pcb): New function.
5002 (_initialize_sparc64nbsd_nat): Renamed from
5003 _initialize_sparcnbsd_nat. Enable libkvm interface.
5004 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5005 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5006 (LOADLIBES): New variable.
5007
a4954a62
MK
5008 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5009
bd921882
MK
5010 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5011
23a6d369
AC
50122004-07-21 Andrew Cagney <cagney@gnu.org>
5013
5014 Use regcache_raw_supply instead of supply_register.
5015 * regcache.h (supply_register): Delete declaration.
5016 * regcache.c (supply_register): Delete function.
5017 * wince.c (do_child_fetch_inferior_registers): Update.
5018 * win32-nat.c (do_child_fetch_inferior_registers)
5019 (fetch_elf_core_registers): Update.
5020 * v850ice.c (v850ice_fetch_registers): Update.
5021 * thread-db.c (thread_db_store_registers): Update.
5022 * sol-thread.c (sol_thread_store_registers): Update.
5023 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5024 * rs6000-nat.c (fetch_register): Update.
5025 * rom68k-rom.c (rom68k_supply_one_register): Update.
5026 * remote.c (remote_wait, remote_async_wait): Update.
5027 * remote-st.c (get_hex_regs): Update.
5028 * remote-sim.c (gdbsim_fetch_register): Update.
5029 * remote-sds.c (sds_fetch_registers): Update.
5030 * remote-rdp.c (remote_rdp_fetch_register): Update.
5031 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5032 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5033 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5034 * remote-hms.c (init_hms_cmds): Update.
5035 * remote-est.c (init_est_cmds): Update.
5036 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5037 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5038 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5039 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5040 (fetch_register, supply_vrregset, supply_vrregset)
5041 (fetch_spe_registers): Update.
5042 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5043 * monitor.c (monitor_supply_register): Update.
5044 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5045 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5046 (mipsnbsd_supply_fpreg): Update.
5047 * mips-nat.c (fetch_inferior_registers)
5048 (fetch_core_registers): Update.
5049 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5050 (supply_fpregset, mips64_supply_gregset)
5051 (mips64_supply_fpregset): Update.
5052 * m68klinux-nat.c (fetch_register, supply_gregset)
5053 (supply_fpregset): Update.
5054 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5055 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5056 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5057 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5058 * infptrace.c (fetch_register): Update.
5059 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5060 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5061 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5062 (gnu_fetch_registers, gnu_store_registers): Update.
5063 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5064 * i386-linux-nat.c (fetch_register, supply_gregset)
5065 (dummy_sse_values): Update.
5066 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5067 * hppah-nat.c (fetch_register): Update.
5068 * hppa-linux-nat.c (fetch_register, supply_gregset)
5069 (supply_fpregset): Update.
5070 * go32-nat.c (fetch_register): Update.
5071 * dve3900-rom.c (fetch_bitmapped_register)
5072 (_initialize_r3900_rom): Update.
5073 * cris-tdep.c (supply_gregset): Update.
5074 * abug-rom.c (init_abug_cmds): Update.
5075 * core-aout.c (fetch_core_registers): Update.
5076 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5077 (fetch_register, fetch_fp_register): Update.
5078 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5079 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5080 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5081 * alphanbsd-tdep.c (fetch_core_registers): Update.
5082 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5083 * alpha-nat.c (fetch_osf_core_registers)
5084 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5085 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5086 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5087
73cc75f3
AC
50882004-07-21 Andrew Cagney <cagney@gnu.org>
5089
5090 * PROBLEMS: Mention breakpoints/1702.
5091 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5092 that is known to work.
5093
a53c66de
AC
50942004-07-21 Andrew Cagney <cagney@gnu.org>
5095
5096 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5097 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5098 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5099 (handle_inferior_event): Wrap call to deprecated
5100 IGNORE_HELPER_CALL in #ifdef.
5101 * config/mips/tm-nbsd.h: Update.
5102
708ff411
JB
51032004-07-20 Jim Blandy <jimb@redhat.com>
5104
412b3060
JB
5105 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5106 bfd_mach_ppc has no segment registers.
5107
13ac140c
JB
5108 Include PowerPC SPR numbers for special-purpose registers.
5109 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5110 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5111 new member in initializer.
5112 (S, S4, SN4, S64): New macros for defining special-purpose
5113 registers.
5114 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5115 registers_403, registers_403GC, registers_505, registers_860,
5116 registers_601, registers_602, registers_603, registers_604,
5117 registers_750, registers_e500): Use them.
5118
708ff411
JB
5119 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5120 replace references with expression used to initialize variable.
5121
1f602b35
AC
51222004-07-20 Andrew Cagney <cagney@gnu.org>
5123
5124 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5125 read_memory_nobpt.
5126 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5127 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5128 (s390_sigtramp_frame_sniffer): Update.
5129 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5130 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5131 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5132 (mips32_fetch_instruction): Update.
5133 * mcore-tdep.c (get_insn): Update.
5134 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5135 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5136 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5137 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5138 (i386_linux_rt_sigtramp_start): Update.
5139 * i386-linux-nat.c (child_resume): Update.
5140 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5141 * hppa-linux-tdep.c (insns_match_pattern): Update.
5142 * gdbcore.h: Update.
5143 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5144 * frame.c (safe_frame_unwind_memory): Update.
5145 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5146 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5147 * alpha-tdep.c (alpha_read_insn): Update.
5148
2cd8546d
AC
51492004-07-20 Andrew Cagney <cagney@gnu.org>
5150
5151 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5152 containing both bytes and mask. Add "frame_type".
5153 * tramp-frame.c (tramp_frame_start): Update.
5154 (tramp_frame_prepend_unwinder): Update.
5155 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5156 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5157 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5158 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5159
f928dd62
EZ
51602004-07-19 Eli Zaretskii <eliz@gnu.org>
5161
5162 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5163 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5164 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5165 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5166
d5c560f7
AC
51672004-07-17 Andrew Cagney <cagney@gnu.org>
5168
860660cb
AC
5169 * NEWS, PROBLEMS: Update for 6.2.
5170
8c266f54
AC
5171 * README: Update to 6.2.
5172
a552edd9
AC
5173 * utils.c (xvasprintf): Call xstrvprintf.
5174
c4a172b5
AC
5175 * parse.c: Update copyright.
5176 (null_post_parser): Eliminate ARGSUSED.
5177
da745b36
AC
5178 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5179 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5180 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5181
9cbc6ef0
AC
5182 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5183 * ppc-linux-nat.c: Use "Linux kernel".
5184 * hppa-linux-tdep.c: Use GNU/Linux.
5185 * hppa-linux-nat.c: Use GNU/Linux.
5186 * dwarfread.c: Add [sic] to use of Linux.
5187
1b89295f
AC
5188 * hppa-linux-nat.c: Do not include <string.h>.
5189 (supply_fpregset): Remove "register" attribute.
5190
d5c560f7
AC
5191 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5192
7ddd7709
MK
51932004-07-17 Mark Kettenis <kettenis@gnu.org>
5194
b1d19a62
MK
5195 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5196 * configure, config.in: Regenerated.
5197
7ddd7709
MK
5198 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5199 "bsd-kvm.h".
5200 (vaxbsd_supply_pcb): New function.
5201 (_initialize_vaxbsd_nat): New prototype and function.
5202 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5203 solib-sunos.o.
5204 (LOADLIBES): New variable.
5205 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5206 (LOADLIBES): New variable.
5207 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5208 (LOADLIBES): New variable.
5209 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5210
2c07db7a
AC
52112004-07-16 Andrew Cagney <cagney@gnu.org>
5212
5213 * defs.h (event_loop_p): Replace variable declaration with macro,
5214 always 1.
5215 * main.c (captured_main): Delete options "-async" and "-noasync".
5216 (event_loop_p): Delete variable.
5217 * NEWS: Mention that "-async" and "-noasync" were removed.
5218
717eb1cf
AC
52192004-07-16 Andrew Cagney <cagney@gnu.org>
5220
5221 * remote-m32r-sdi.c: Re-indent.
5222
c101bc14
JB
52232004-07-16 Jim Blandy <jimb@redhat.com>
5224
5109a438
JB
5225 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5226 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5227 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5228 missing MPC823 SPRs.
5229 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5230 incorrect. (This was corrected in GDB's register name tables on
5231 2004-07-14.)
5232
c101bc14
JB
5233 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5234 should be "esasrr" ("ESA Save and Restore Register").
5235
7ce450bd
AC
52362004-07-16 Andrew Cagney <cagney@gnu.org>
5237
5238 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5239 calls, no longer applicable. Update comments and rename parameter
5240 "step_frame" to "return_frame".
5241
ca73dd9d
AC
52422004-07-16 Andrew Cagney <cagney@gnu.org>
5243
5244 * frame.c (fprint_field): New function.
5245 (fprint_frame_id): Use fprint_field.
5246
31941f6d
JB
52472004-07-15 Joel Brobecker <brobecker@gnat.com>
5248
5249 * ada-lang.c (ada_language_defn): Remove commented out code.
5250
f86a7158
JB
52512004-07-15 Jim Blandy <jimb@redhat.com>
5252
5253 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5254 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5255
c24791ec
JB
52562004-07-14 Jim Blandy <jimb@redhat.com>
5257
29bb1356
JB
5258 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5259
cc98b5cc
JB
5260 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5261
8f088af7
JB
5262 * ppc-tdep.h (ppc_num_srs): New enum constant.
5263
0ea0ec5f
JB
5264 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5265 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5266 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5267 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5268 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5269 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5270 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5271 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5272 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5273 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5274 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5275 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5276 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5277 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5278 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5279 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5280 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5281 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5282 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5283 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5284 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5285 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5286 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5287 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5288 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5289 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5290 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5291 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5292 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5293 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5294 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5295 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5296 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5297 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5298 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5299 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5300 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5301 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5302 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5303 special-purpose register numbers.
5304
c24791ec
JB
5305 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5306 manual mentions 'md_twb', but many mention 'm_twb', and at that
5307 point in the register list.)
5308
d833db3b
AC
53092004-07-14 Andrew Cagney <cagney@gnu.org>
5310
5311 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5312 instead of "internal-error".
5313
080228b2
JB
53142004-07-10 Joel Brobecker <brobecker@gnat.com>
5315
5316 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5317 that was inserted inside a comment.
5318
c268433a
RC
53192004-07-10 Randolph Chung <tausq@debian.org>
5320
5321 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5322 function.
5323 (hppa_hpux_push_dummy_code): New function.
5324 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5325 Set find_global_pointer method.
5326
71009278
MK
53272004-07-10 Mark Kettenis <kettenis@gnu.org>
5328
5329 * NEWS: Mention BSD libkvm interface.
5330
b2fa5097
MS
53312004-07-10 Michael Snyder <msnyder@redhat.com>
5332
5333 * symfile.c (generic_load): Comment typo.
5334 * stack.c (get_selected_block): Ditto.
5335 * regcache.c (regcache_cooked_read): Ditto.
5336 * monitor.c (monitor_debug): Ditto.
5337 * mips-tdep.c (mips_read_pc): Ditto.
5338 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5339 * gdb_mbuild.sh: Ditto.
5340 * gdbarch.sh: Ditto.
5341 * gdbarch.h: Ditto.
5342
c3e5cd34
PH
53432004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5344
8a2225b2
PH
5345 * ada-tasks.c: Remove file.
5346
c3e5cd34
PH
5347 Remove ARI problems:
5348
5349 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5350 beginning of line.
5351
5352 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5353 Add comment.
5354 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5355 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5356 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5357 (UMIN_OF_SIZE): Remove.
5358 (max_of_type): New function to replace orphan macro in gdbtypes.h
5359 (min_of_type): Ditto.
5360 (discrete_type_high_bound): Use max_of_type.
5361 (discrete_type_low_bound): Use min_of_type.
5362 (possible_user_operator_p): Move operator to beginning of line.
5363 (ada_is_variant_part): Ditto.
5364 (ensure_lval): Rewrite to avoid deprecated operations.
5365 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5366 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5367 (ada_enum_name): Remove assignments in 'if' statements.
5368 (build_ada_types): Add gdbarch parameter.
5369 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5370 with gdbarch_data_register_post_init.
5371 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5372 add_show_from_set.
5373
5374 * ada-valprint.c (inspect_it): Remove declaration.
5375 (repeat_count_threshold): Remove declaration.
5376 (ada_print_floating): Remove assignments in 'if' statements.
5377 (print_str): Move operator to beginning of line.
5378
61ce229a
JB
53792004-07-08 Jim Blandy <jimb@redhat.com>
5380
5381 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5382
09bcec80
BR
53832004-07-08 Bob Rossi <bob@brasko.net>
5384
5385 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5386
31c27f77
JJ
53872004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5388
5389 * language.h (struct_language_defn): Add new function pointer:
5390 la_class_name_from_physname. Also add new prototype for
5391 language_class_name_from_physname.
5392 * language.c (language_class_name_from_physname): New function.
5393 (unk_lang_class_name): Ditto.
5394 (unknown_language_defn, auto_language_defn): Change
5395 to add unk_lang_class_name function pointer for
5396 la_class_name_from_physname.
5397 (local_language_defn): Ditto.
5398 * dwarf2read.c (guess_structure_name): Change to call
5399 language_class_name_from_physname.
5400 (determine_class_name): Ditto.
5401 * cp-support.c (class_name_from_physname): Renamed.
5402 (cp_class_name_from_physname): New name of function.
5403 * cp-support.h: Ditto.
5404 * c-lang.c (c_language_defn): Change to add NULL
5405 for class_name_from_physname function pointer.
5406 (cplus_language_defn): Change to add cp_class_name_from_physname.
5407 * jv-lang.c (java_class_name_physname): New function.
5408 (java_find_last_component): New static routine.
5409 (java_language_defn): Add java_class_name_from_physname pointer.
5410 * ada-lang.c (ada_language_defn): Change to add NULL
5411 for class_name_from_physname function pointer.
5412 * f-lang.c (f_language_defn): Ditto.
5413 * m2-lang.c (m2_language_defn): Ditto.
5414 * objc-lang.c (objc_language_defn): Ditto.
5415 * p-lang.c (pascal_language_defn): Ditto.
5416 * scm-lang.c (scm_language_defn): Ditto.
5417
ee28ca0f
AC
54182004-07-06 Andrew Cagney <cagney@gnu.org>
5419
5420 Patch from Bart Robinson.
5421 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5422 (O_LARGEFILE): Define to 0, if not defined.
5423
fdb1bf9d
MK
54242004-07-03 Mark Kettenis <kettenis@gnu.org>
5425
cb162ff6
MK
5426 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5427 <machine/pcb.h> and "bsd-kvm.h".
5428 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5429 (m68kbsd_supply_pcb): New function.
5430 (_initialize_m68kbsd_nat): New prototype and function.
5431 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5432 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5433 (LOADLIBES): New variable.
5434 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5435 (LOADLIBES): New variable.
5436
fdb1bf9d
MK
5437 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5438
963c4174
MK
54392004-07-03 Mark Kettenis <kettenis@gnu.org>
5440
5441 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5442 <sys/proc.h>.
5443 (bsd_kvm_cmdlist): New variable.
5444 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5445 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5446 command and "kvm proc" command.
5447 * Makefile.in (bsd-kvm.o): Update dependencies.
5448
533f1d8f
MK
54492004-07-02 Mark Kettenis <kettenis@gnu.org>
5450
5451 * osabi.c: Update copyright year.
5452 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5453 notes if EI_OSABI is set to ELFOSABI_HPUX.
5454
6780dcde
MS
54552004-07-01 Michael Snyder <msnyder@redhat.com>
5456
5457 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5458 that seems to have gotten whacked out of line.
5459
67bebe79
MK
54602004-07-01 Mark Kettenis <kettenis@gnu.org>
5461
5462 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5463 code.
5464
0b5d8877
PH
54652004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5466
5467 * ada-lang.c (decode_packed_array): Minor change to comment.
5468 (ada_value_slice_ptr): New function.
5469 (ada_value_slice): New function.
5470 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5471 test. Don't know why it is there.
5472 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5473 to avoid dereferencing huge arrays from which one is slicing.
5474 (empty_array): Correct to return an array rather than
5475 a subrange value.
5476 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5477 on empty arrays (let'em use 'FIRST instead).
5478
19c1ef65
PH
54792004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5480
5481 Address complaints from gdb_ari.sh:
5482
5483 * ada-exp.y: Include gdb_string.h rather than string.h.
5484 (convert_char_literal): Reformat declaration.
5485 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5486 * ada-lex.l: Change use of free to xfree (the macro would do so
5487 anyway, but this is harmless).
5488 Include gdb_string.h rather than string.h.
5489 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5490
5491 * ada-lang.c (parse): Remove K&Rism in parameter list.
5492 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5493
d81cbc94
MK
54942004-06-30 Mark Kettenis <kettenis@gnu.org>
5495
5496 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5497 dead code.
5498
07681759
MK
54992004-06-30 Mark Kettenis <kettenis@gnu.org>
5500
5501 * alphabsd-nat.c: Update copyright year.
5502 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5503
f7948b5f
JB
55042004-06-29 Joel Brobecker <brobecker@gnat.com>
5505
6e0cdd28 5506 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5507 (i386_cygwin_in_solib_call_trampoline): New function.
5508 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5509 and skip_trampoline_code gdbarch methods.
5510
8f113c9a
JB
55112004-06-29 Jim Blandy <jimb@redhat.com>
5512
5513 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5514 name actually used in the dependency lists.
5515
97dc871c
RC
55162004-06-29 Randolph Chung <tausq@debian.org>
5517
5518 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5519
47216e51
CV
55202004-06-29 Corinna Vinschen <vinschen@redhat.com>
5521
5522 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5523 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5524 functionality.
5525
e623b504
AC
55262004-06-28 Andrew Cagney <cagney@gnu.org>
5527
5528 * defs.h (xstrvprintf): Declare.
5529 * utils.c (xstrvprintf): New function.
5530 (internal_vproblem, xstrprintf, xasprintf)
5531 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5532 * serial.c (serial_printf): Ditto.
5533 * complaints.c (vcomplaint): Ditto.
5534
79acc9b3
CV
55352004-06-29 Corinna Vinschen <vinschen@redhat.com>
5536
5537 * infcmd.c (attach_command): Move call to target_terminal_inferior
5538 behind loading symbol table.
5539
1daf35d9
AC
55402004-06-28 Andrew Cagney <cagney@gnu.org>
5541
5542 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5543 change - add back extern deprecated_ui_loop_hook declaration.
5544
b435e160
AC
55452004-06-28 Andrew Cagney <cagney@gnu.org>
5546
5547 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5548 xstrprintf.
5549 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5550 (c_value_of_variable): Ditto.
5551 * utils.c (internal_vproblem): Ditto.
5552 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5553 * remote.c (add_packet_config_cmd): Ditto.
5554 * remote-rdp.c (rdp_set_command_line): Ditto.
5555 * regcache.c (regcache_dump): Ditto.
5556 * frv-tdep.c (new_variant, new_variant): Ditto.
5557 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5558 (fbsd_find_memory_regions): Ditto.
5559 * breakpoint.c (create_thread_event_breakpoint)
5560 (create_breakpoints): Ditto.
5561 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5562 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5563
06d5cf63
JB
55642004-06-28 Joel Brobecker <brobecker@gnat.com>
5565
5566 * ada-lang.c: Re-indent file, with some massaging to help indent
5567 a bit when the result is otherwise really too ugly.
5568
35809fad
UW
55692004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5570
5571 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5572 code_addr_p and special_addr_p to 'unsigned int'.
5573
40e20472
MK
55742004-06-27 Mark Kettenis <kettenis@gnu.org>
5575
5576 * i386v4-nat.c: Update copyright year and tweak comment.
5577 (regmap): Remove trailing comma.
5578 (supply_gregset): Rename local variable i to regnum. Call
5579 regcache_raw_supply instead of supply_register.
5580 (fill_gregset): Rename argument regno to regnum. Call
5581 regcache_raw_collect instead of regcache_collect.
5582
12b0b6de
UW
55832004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5584
5585 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5586 and special_addr_p.
5587 (frame_id_build, frame_id_build_special): Update comments.
5588 (frame_id_build_wild): New prototype.
5589 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5590 struct frame_id fields.
5591 (frame_id_build_wild): New function.
5592 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5593
47b42a3e
MK
55942004-06-27 Mark Kettenis <kettenis@gnu.org>
5595
5596 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5597 hppabsd-tdep.c.
5598
1265e4aa
JB
55992004-06-27 Joel Brobecker <brobecker@gnat.com>
5600
5601 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5602
76a01679
JB
56032004-06-27 Joel Brobecker <brobecker@gnat.com>
5604
5605 * ada-lang.c: Re-indent file.
5606
7aca490a
JB
56072004-06-27 Joel Brobecker <brobecker@gnat.com>
5608
5609 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5610 (no_symtab_msg): Likewise.
5611
5e987968
AS
56122004-06-27 Andreas Schwab <schwab@suse.de>
5613
5614 * source.c: Fix whitespace.
5615
315c4276
MK
56162004-06-27 Mark Kettenis <kettenis@gnu.org>
5617
d15be926
MK
5618 * configure.in: Include <sys/param.h> for td_pcb test.
5619 * configure: Regenerated.
5620
9062529b
MK
5621 * i386nbsd-nat.c: New file.
5622 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5623 i386obsd-nat.c and i386obsd-tdep.c.
5624 (i386nbsd-nat.o): New dependency.
5625 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5626 bsd-kvm.o.
5627 (LOADLIBES): New variable.
5628 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5629 bsd-kvm.o.
5630 (LOADLIBES): New variable.
5631
8010310e
MK
5632 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5633 (LOADLIBES): New variable.
5634
efe1d7b9
MK
5635 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5636 fetching from BSD_KVM_PADDR. Correctly lookup address for
5637 "_thread0".
5638
315c4276
MK
5639 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5640 "bsd-kvm.h".
5641 (amd64fbsd_supply_pcb): New funcion.
5642 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5643
399cfac6
DL
56442004-06-27 <david@streamline-computing.com>
5645
5646 Partial fix for PR cli/1056.
5647 * valarith.c: Check for zero in division and remainder
5648 evaluation.
5649
6235f9c8
MK
56502004-06-27 Mark Kettenis <kettenis@gnu.org>
5651
5652 * i387-tdep.c: Remove excessive whitespace.
5653
2726dafc
AC
56542004-06-26 Andrew Cagney <cagney@gnu.org>
5655
5656 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5657 * gdb-events.h, gdb-events.c: Re-generate.
5658 * tui/tui-hooks.c (tui_install_hooks): Update.
5659 (tui_remove_hooks): Update.
5660 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5661
0e56aeaf
MK
56622004-06-26 Mark Kettenis <kettenis@gnu.org>
5663
cb461069
MK
5664 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5665 (gregset_t, fpregset_t): Remove typedefs.
5666 (REG_OFFSET): Rename argument.
5667 (amd64bsd_r_reg_offset): Rename from reg_offset.
5668 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5669 Remove functions.
5670 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5671 of reg_offset.
5672 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5673
ecba89de
MK
5674 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5675
4cd80476
MK
5676 * vax-tdep.c: Tweak comment.
5677
0e56aeaf
MK
5678 Add OpenBSD/hppa support.
5679 * NEWS (New native configurations): Mention OpenBSD/hppa.
5680 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5681 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5682 files.
5683 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5684 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5685 * configure.host: Add hppa*-*-openbsd*.
5686 * configure.tgt: Add hppa*-*-openbsd*.
5687
98bbd631
AC
56882004-06-25 Andrew Cagney <cagney@gnu.org>
5689
5690 * defs.h (deprecated_ui_loop_hook): Deprecated.
5691 * wince.c (child_wait): Update.
5692 * win32-nat.c (child_wait): Update.
5693 * v850ice.c (v850ice_wait): Update.
5694 * top.c (deprecated_ui_loop_hook): Update.
5695 * serial.h: Update.
5696 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5697 (do_unix_readchar): Update.
5698 * ser-tcp.c (net_open): Update.
5699 * remote-sim.c (gdb_os_poll_quit): Update.
5700 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5701
769d7dc4
AC
57022004-06-24 Andrew Cagney <cagney@gnu.org>
5703
5704 * defs.h (deprecated_pre_add_symbol_hook)
5705 (deprecated_post_add_symbol_hook): Deprecated.
5706 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5707 (symbol_file_add_with_addrs_or_offsets): Update references.
5708
11c949aa
AC
57092004-06-24 Andrew Cagney <cagney@gnu.org>
5710
5711 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5712 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5713 * wince.c (ui_loop_hook): Delete extern declaration.
5714 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5715 * v850ice.c (ui_loop_hook): Delete extern declaration..
5716 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5717 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5718 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5719 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5720 ui_loop_hook declaration.
5721
eedc19af
AC
57222004-06-24 Andrew Cagney <cagney@gnu.org>
5723
5724 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5725 entry_func_highpc fields.
5726 * objfiles.c (init_entry_point_info): Do not clear
5727 entry_func_lowpc and entry_func_highpc.
5728 (objfile_relocate): Do not relocate entry_func_lowpc and
5729 entry_func_highpc.
5730 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5731 entry_func_highpc.
5732 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5733 entry_func_highpc.
5734 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5735 entry_func_lowpc and entry_func_highpc with call to
5736 inside_entry_func.
5737
d47079be
MK
57382004-06-24 Mark Kettenis <kettenis@gnu.org>
5739
5740 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5741 quad-precision floating point arguments in registers.
5742
2107e348
MK
57432004-06-24 Mark Kettenis <kettenis@gnu.org>
5744
5745 From Michael Mueller <m.mueller99@kay-mueller.de>:
5746 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5747 account.
5748
46587c42
JJ
57492004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5750
5751 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5752 to -1.
5753 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5754 untriggered watchpoints to a separate if clause. Update function
5755 comment regarding STOPPED_BY_WATCHPOINT argument.
5756
226f5cf4
JB
57572004-06-22 Jim Blandy <jimb@redhat.com>
5758
5759 * gdbarch.sh: Doc fix.
5760
f10683bb
MH
57612004-06-21 Martin Hunt <hunt@redhat.com>
5762 Kevin Buettner <kevinb@redhat.com>
5763
5764 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5765 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5766 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5767 to set_gdbarch_sp_regnum(). Use cooked register number.
5768 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5769
412d5987
AC
57702004-06-21 Andrew Cagney <cagney@gnu.org>
5771
5772 * gdbarch.sh: When the macro field is empty, do not generate a
5773 macro definition. When the macro field is "=", generate the macro
5774 name from the upper-case function name.
5775 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5776 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5777 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5778 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5779 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5780 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5781 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5782 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5783 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5784 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5785 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5786 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5787 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5788 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5789 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5790 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5791 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5792 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5793 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5794 (DEPRECATED_USE_STRUCT_CONVENTION)
5795 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5796 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5797 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5798 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5799 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5800 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5801 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5802 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5803 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5804 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5805 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5806 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5807 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5808 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5809 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5810 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5811 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5812 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5813
68908a3e
AC
58142004-06-21 Andrew Cagney <cagney@gnu.org>
5815
48f7351b
AC
5816 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5817 macro name, and the function rather than macro value. Only wrap
5818 macro print statements in #ifdef. Move format logic to where it
5819 is needed.
5820 * gdbarch.c: Re-generate.
5821
283354d8
AC
5822 * gdbarch.sh (read): Delete "print_p" and "description", add
5823 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5824 Delete references to print_p.
5825 (TARGET_ARCHITECTURE): Delete print predicate.
5826 * gdbarch.c: Re-generate.
5827
68908a3e
AC
5828 * gdbarch.sh: Check that multi-arch methods do not provide a
5829 macro.
5830 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5831 (print_registers_info, print_float_info, print_vector_info)
5832 (adjust_breakpoint_address, remote_translate_xfer_address)
5833 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5834 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5835 name from the multi-arch definition.
5836
a2428dbe
AC
58372004-06-20 Andrew Cagney <cagney@gnu.org>
5838
5839 * gdbarch.sh: Sort by the function, instead of macro name.
5840 * gdbarch.c: Re-generate.
5841
750eb019
AC
58422004-06-20 Andrew Cagney <cagney@gnu.org>
5843
66d659b1
AC
5844 * gdbarch.sh: Use the function, instead of macro name in
5845 errors and the log file.
5846 (return_value): Remove stray ":" in spec.
5847
750eb019
AC
5848 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5849 * gdbarch.h, gdbarch.c: Re-generate.
5850 * Makefile.in (arch-utils.o): Update dependencies.
5851 * values.c (using_struct_return): Move code calling
5852 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5853 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5854 to legacy_return_value, simplify.
5855 * infcmd.c (print_return_value): Move code calling
5856 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5857 to legacy_return_value, simplify.
5858 * infcall.c (call_function_by_hand): Move code calling
5859 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5860 * arch-utils.c: Update copyright. Include "gdbcore.h".
5861 (legacy_return_value): New function.
5862 * arch-utils.h: Update copyright.
5863 (legacy_return_value): Declare.
5864
b5622e8d
AC
58652004-06-20 Andrew Cagney <cagney@gnu.org>
5866
5867 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5868 * gdbarch.h, gdbarch.c: Re-generate.
5869 * values.c (using_struct_return): Update call.
5870 * mcore-tdep.c: Update comment.
5871 * infcall.c (call_function_by_hand): Update comment.
5872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5873 * arch-utils.h (always_use_struct_convention): Update.
5874 * v850-tdep.c (v850_gdbarch_init): Update.
5875 * sh64-tdep.c (sh64_gdbarch_init): Update.
5876 * sh-tdep.c (sh_gdbarch_init): Update.
5877 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5878 * mips-tdep.c (mips_gdbarch_init): Update.
5879 * mcore-tdep.c (mcore_gdbarch_init): Update.
5880 * m32r-tdep.c (m32r_gdbarch_init): Update.
5881 * ia64-tdep.c (ia64_gdbarch_init): Update.
5882 * h8300-tdep.c (h8300_gdbarch_init): Update.
5883 * frv-tdep.c (frv_gdbarch_init): Update.
5884 * cris-tdep.c (cris_gdbarch_init): Update.
5885 * arm-tdep.c (arm_gdbarch_init): Update.
5886 * alpha-tdep.c (alpha_gdbarch_init): Update.
5887
5191de37
MC
58882004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5889
5890 * PROBLEMS: Add more specific information, and a work-around,
5891 for PR gdb/1458.
5892
782263ab
AC
58932004-06-18 Andrew Cagney <cagney@gnu.org>
5894
5895 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5896 * gdbarch.h, gdbarch.c: Re-generate.
5897 * ada-lang.c (ada_finish_decode_line_1): Update.
5898 * infrun.c (handle_inferior_event): Update.
5899 * infcall.c (find_function_addr): Update.
5900 * linespec.c (minsym_found): Update.
5901 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5902 Update.
5903 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5904 * cli/cli-cmds.c (disassemble_command): Update.
5905 * vax-tdep.c (vax_gdbarch_init): Update.
5906
2f305df1
MK
59072004-06-18 Mark Kettenis <kettenis@gnu.org>
5908
5909 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5910
e5fe55f7
AC
59112004-06-17 Andrew Cagney <cagney@gnu.org>
5912
5913 GDB 6.1.1 released from the GDB 6.1 branch.
5914 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5915 * PROBLEMS: Ditto.
5916
473b7be6
DJ
59172004-06-16 Daniel Jacobowitz <dan@debian.org>
5918
5919 PR gdb/1658
5920 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5921 operation as a uleb128. Found by Michael Coulter.
5922
96d887e8
PH
59232004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5924
5925 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5926 make it non-static.
5927 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5928 to ada-lang.h; this is needed to be able to implement the kill command
5929 in multi-task mode.
5930 (task_ptid): Ditto.
5931 (task_entry): Ditto.
5932 (task_list): Ditto.
5933 (ada_build_task_list): Ditto.
5934
5935 * ada-lang.c: Conditionalize routines and data structures related
5936 to breakpoints, exceptions, completion, and symbol caching on
5937 GNAT_GDB, since these are not yet used in the submitted public sources.
5938 (ada_main_name): Editorial: Move definition out of exception-related
5939 code.
5940
31eef181
AC
59412004-06-15 Andrew Cagney <cagney@gnu.org>
5942
5943 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5944 deprecated_pc_in_call_dummy.
5945
2c500098
AM
59462004-06-15 Alan Modra <amodra@bigpond.net.au>
5947
5948 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5949 bfd_get_section_size_before_reloc or _raw_size.
5950 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5951 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5952 (dwarf2_read_section): Likewise.
5953 * elfread.c (elf_locate_sections): Likewise.
5954 * gcore.c (derive_heap_segment): Likewise.
5955 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5956 * remote-e7000.c (e7000_load): Likewise.
5957 * remote-m32r-sdi.c (m32r_load): Likewise.
5958 * remote-mips.c (mips_load_srec): Likewise.
5959 (pmon_load_fast): Likewise.
5960 * remote.c (compare_sections_command): Likewise.
5961 * symfile.c (add_section_size_callback): Likewise.
5962 (load_section_callback): Likewise.
5963 (pc_in_unmapped_range): Likewise.
5964 (pc_in_mapped_range): Likewise.
5965 (sections_overlap): Likewise.
5966 (list_overlays_command): Likewise.
5967 (simple_overlay_update_1): Likewise.
5968 (simple_overlay_update): Likewise.
5969 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5970 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5971
90f943f1
RC
59722004-06-14 Randolph Chung <tausq@debian.org>
5973
5974 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5975 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5976 static.
5977 (hppa_hpux_inferior_created): New function.
5978 (hppa_hpux_init_abi): Register observer.
5979 * symfile.c (hp_cxx_exception_support_initialized)
5980 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5981 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5982
700c15aa
RC
59832004-06-14 Randolph Chung <tausq@debian.org>
5984
3973a7d3
AC
5985 * MAINTAINERS (Write After Approval): Alphabetize my entry
5986 correctly.
700c15aa 5987
cea4838c
AC
59882004-06-14 Andrew Cagney <cagney@gnu.org>
5989
5990 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5991 testsuite maintainer.
5992
97092415
AC
59932004-06-13 Andrew Cagney <cagney@gnu.org>
5994
e8c3165b
AC
5995 * infcmd.c (print_return_value): Fix logic, allow
5996 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5997
bceabdd8
AC
5998 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5999 defining any macros.
6000 * gdbarch.h: Re-generate.
6001
57010b1c
AC
6002 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6003 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6004 * gdbarch.h: Re-generate.
6005
bc87dfa0
AC
6006 * values.c (generic_use_struct_convention): Don't check gcc_p.
6007
15ac804d
AC
6008 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6009 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6010 * gdbarch.h, gdbarch.c: Regenerate.
6011 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6012 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6014 deprecated_max_register_raw_size and
6015 deprecated_max_register_virtual_size.
6016 * v850-tdep.c (v850_gdbarch_init): Ditto.
6017 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6018 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6019 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6020 * cris-tdep.c (cris_gdbarch_init): Ditto.
6021
97092415
AC
6022 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6023 * gdbarch.h, gdbarch.c: Re-generate.
6024 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6025 (m68hc11_use_struct_convention): Delete function.
6026 (m68hc11_extract_struct_value_address): Delete function.
6027 (m68hc11_return_value): New function.
6028 (m68hc11_gdbarch_init): Instead of store_return_value,
6029 extract_return_value, return_value_on_stack,
6030 deprecated_extract_struct_value_address and use_struct_convention,
6031 set return_value.
6032 * values.c (using_struct_return): Do not call
6033 RETURN_VALUE_ON_STACK.
6034 * arch-utils.h (generic_return_value_on_stack_not): Delete
6035 declaration.
6036 * arch-utils.c (generic_return_value_on_stack_not): Delete
6037 function.
6038
44e5158b
AC
60392004-06-12 Andrew Cagney <cagney@gnu.org>
6040
6041 * values.c (register_value_being_returned): Delete function.
6042 * infcmd.c (legacy_return_value): Delete function.
6043 * infcall.c (call_function_by_hand): Inline
6044 "register_value_being_returned", simplify.
6045 * values.c (using_struct_return): Update comment, refer to
6046 print_return_value instead of register_value_being_returned.
6047 * infcmd.c (print_return_value): Inline calls to
6048 register_value_being_returned and legacy_return_value. Simplify.
6049
b887c273
RC
60502004-06-11 Randolph Chung <tausq@debian.org>
6051
6052 * somread.c (som_symtab_read): Exclude gcc local symbols.
6053
1b2bfbb9
RC
60542004-06-11 Randolph Chung <tausq@debian.org>
6055
3973a7d3
AC
6056 * infrun.c (handle_inferior_event): Handle the case when a
6057 trampoline ends up in the runtime resolver, and if the trampoline
6058 has no name. Rearrange the code so that all the trampoline
6059 processing happens before other step-out-of-range handling.
1b2bfbb9 6060
a9d61c86
MH
60612004-06-11 Martin Hunt <hunt@redhat.com>
6062
6063 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6064 has no fpu.
6065
2c87cf5a
AC
60662004-06-10 Andrew Cagney <cagney@gnu.org>
6067
6068 * blockframe.c (legacy_inside_entry_func): Delete.
6069 (legacy_frame_chain_valid): Inline call to
6070 legacy_inside_entry_func, simplify.
6071
0b67b468 60722004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
6073
6074 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
6075 * dwarf2read.c (partial_die_info): Add dirname field.
6076 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6077 (read_partial_die): Save away DW_AT_comp_dir.
6078 * defs.h (symtab_to_filename): Removed.
6079 * source.c (find_and_open_source): Added.
57c22c6c 6080 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
6081 (symtab_to_filename): Removed.
6082 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
6083 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6084 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6085 symtab_to_filename.
6086 * symtab.h (partial_symtab): Add dirname field.
6087 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
6088 (mi_cmd_file_list_exec_source_file): Call new function
6089 symtab_to_fullname to find fullname.
57c22c6c 6090 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 6091 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
6092 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6093
9a1dd1ad
AC
60942004-06-10 Andrew Cagney <cagney@gnu.org>
6095
239ae8c7
AC
6096 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6097 to generic_use_struct_convention, the default value.
6098
fc720350
AC
6099 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6100 of abort.
6101
9a1dd1ad
AC
6102 * ns32k-tdep.c (ns32k_push_arguments): New function.
6103 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6104 * infcall.c (call_function_by_hand): Call error instead of
6105 legacy_push_arguments.
6106 * value.h (legacy_push_arguments): Delete declaration.
6107 * valops.c (legacy_push_arguments): Delete function.
6108 (value_push): Delete function.
6109
fea25152
BF
61102004-06-10 Brian Ford <ford@vss.fsi.com>
6111
6112 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6113 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6114 info.
6115 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6116
30a4a8e0
AC
61172004-06-10 Andrew Cagney <cagney@gnu.org>
6118
6119 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6120 * gdbarch.h, gdbarch.c: Re-generate.
6121 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6122 parameters.
6123 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6124 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6125 deprecated_pc_in_call_dummy instead of
6126 DEPRECATED_PC_IN_CALL_DUMMY.
6127 (arm_skip_prologue): Ditto.
6128 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6129 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6130 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6131 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6132 Ditto.
6133 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6134 (sh64_init_extra_frame_info, sh64_get_saved_register)
6135 (sh64_pop_frame): Ditto.
6136 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6137 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6138 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6139 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6140 (h8300_pop_frame): Ditto.
6141 * blockframe.c (legacy_inside_entry_func)
6142 (legacy_frame_chain_valid): Ditto.
6143 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6144 to deprecated_pc_in_call_dummy.
6145
81cfbe54
AC
61462004-06-09 Andrew Cagney <cagney@gnu.org>
6147
a1f4a1b6
AC
6148 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6149 provide a default value.
6150 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6151 * gdbarch.h, gdbarch.c: Re-generate.
6152 * arch-utils.c (generic_convert_register_p): Rename
6153 legacy_convert_register_p
6154 (legacy_register_to_value, legacy_value_to_register): Delete
6155 functions.
6156 * arch-utils.h (generic_convert_register_p): Rename
6157 legacy_convert_register_p.
6158 (legacy_register_to_value, legacy_value_to_register): Delete
6159 declarations.
6160
9730f241
AC
6161 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6162 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6163 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6164 * gdbarch.h, gdbarch.c: Re-generate.
6165 * infcmd.c (default_print_registers_info): Simplify.
6166 * findvar.c (value_of_register): Simplify.
6167 * mi/mi-main.c (get_register): Simplify.
6168 * arch-utils.c (legacy_convert_register_p): Always return 0.
6169 (legacy_register_to_value, legacy_value_to_register): Always call
6170 internal_error.
6171
8a1bf479
AC
6172 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6173 #ifdef CLEAR_INSN_CACHE code.
6174 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6175 Delete #ifdef CLEAR_DEFERRED_STORES code.
6176
4b38d6f1
AC
6177 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6178
2d62ecc7
AC
6179 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6180 copyright.
6181 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6182
be4f7469
AC
6183 * config/mips/mipsv4.mh: Delete file.
6184
81cfbe54
AC
6185 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6186 unreferenced macro.
6187 (hpread_adjust_stack_address): Delete declaration.
6188
d966f0cb
AC
61892004-06-08 Andrew Cagney <cagney@gnu.org>
6190
6191 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6192 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6193 PTRACE_ATTACH / PTRACE_DETACH available call error.
6194 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6195 * infttrace.c (update_thread_state_after_attach, attach, detach):
6196 Remove #ifdef wrappers.
6197 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6198 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6199 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6200 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6201 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6202 * config/nm-linux.h (ATTACH_DETACH): Delete.
6203 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6204 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6205 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6206 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6207 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6208
d91670b9
CV
62092004-06-08 Corinna Vinschen <vinschen@redhat.com>
6210
6211 * configure.in: Set $configdir to the right OS specific value.
6212 Use value when setting $tcldir and $tkdir.
6213 * configure: Regenerate.
6214
28ba0b33
PB
62152004-06-06 Paul Brook <paul@codesourcery.com>
6216
6217 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6218 records.
6219
f26caa11
PH
62202004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6221
6222 * ada-lang.c (lookup_symbol_in_language): New function to allow
6223 re-use of another language's symbol lookup code. (Placed here
6224 temporarily while Ada support is being integrated into the public
6225 tree).
6226 (restore_language): New auxiliary function for
6227 lookup_symbol_in_language.
6228 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6229 temporarily while Ada support is being integrated into the public
6230 tree).
6231
d560a54b
AO
62322004-06-08 Alexandre Oliva <aoliva@redhat.com>
6233
e75d110c
AO
6234 * Makefile.in (check//%): New.
6235
d560a54b
AO
6236 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6237 (mn10300_store_return_value): Rewrite.
6238 (mn10300_type_align): New.
6239 (mn10300_use_struct_convention): Rewrite.
6240 (mn10300_return_value): New, using all of the above.
6241 (mn10300_pop_frame_regular): Add saved_regs_size.
6242 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6243
a72fbdb7
AO
6244 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6245 regs if PC is on movm.
6246
01904826
JB
62472004-06-07 Jim Blandy <jimb@redhat.com>
6248
6249 Add native Linux support for the PowerPC E500.
6250 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6251 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6252 all architectures except the E500.
6253 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6254 #definitions.
6255 (struct gdb_evrregset_t): New type.
6256 (have_ptrace_getsetevrregs): New variable.
6257 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6258 fetch_spe_registers): New functions.
6259 (fetch_register): Call fetch_spe_register as appropriate.
6260 Assert that we're only passed raw register numbers.
6261 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6262 Don't fetch gprs if they're pseudoregisters.
6263 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6264 store_spe_registers): New functions.
6265 (store_register): Call store_spe_register as appropriate.
6266 Assert that we're only passed raw register numbers.
6267 (store_ppc_registers): Call store_spe_registers as appropriate.
6268 Don't store gprs if they're pseudoregisters.
6269
f90ef764
JJ
62702004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6271
6272 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6273 struct if one exists, even if we are dealing with a zombie thread.
6274
45b75230
AC
62752004-06-07 Andrew Cagney <cagney@gnu.org>
6276
6277 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6278 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6279 Rename PC_REQUIRES_RUN_BEFORE_USE.
6280 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6281 #ifdef.
6282
1658da49
RC
62832004-06-07 Randolph Chung <tausq@debian.org>
6284
6285 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6286 unwinding after sp has been saved to the stack but before the end
6287 of the prologue, and after the fp has been modified but before it has
6288 been saved to the stack.
6289 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6290 Remove superfluous definitions.
6291 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6292
9a727a3c
RC
62932004-06-07 Guy Martin <gmsoft@gentoo.org>
6294
6295 Committed by Randolph Chung.
6296 * hppa-linux-nat.c: Include the correct version of the header file
6297 depending on the kernel version.
6298
9e500012
RC
62992004-06-06 Randolph Chung <tausq@debian.org>
6300
6301 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6302 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6303
3388d7ff
RC
63042004-06-06 Randolph Chung <tausq@debian.org>
6305
6306 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6307 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6308 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6309 * hppa-tdep.c (hppa_symbol_address): New function definition.
6310 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6311
d49771ef
RC
63122004-06-06 Randolph Chung <tausq@debian.org>
6313
6314 * hppa-tdep.h (struct value): Forward declaration.
6315 (gdbarch_tdep): Define tdep find_global_pointer method.
6316 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6317 associated with the function we are trying to call, and write it
6318 to the gp register.
6319 (hppa32_convert_from_funct_ptr_addr): New function.
6320 (hppa_find_global_pointer): New function.
6321 (hppa_gdbarch_init): Set default find_global_pointer method; set
6322 convert_from_func_ptr_addr method.
6323 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6324 (hppa_linux_init_abi): Set find_global_pointer method.
6325 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6326
7d9b040b
RC
63272004-06-06 Randolph Chung <tausq@debian.org>
6328
6329 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6330 to struct value *function.
6331 * gdbarch.c: Regenerate.
6332 * gdbarch.h: Likewise.
6333 * infcall.c (call_function_by_hand): Pass entire function value
6334 to push_dummy_call.
6335
6336 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6337 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6338 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6339 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6340 * arm-tdep.c (arm_push_dummy_call): Likewise.
6341 * avr-tdep.c (avr_push_dummy_call): Likewise.
6342 * cris-tdep.c (cris_push_dummy_call): Likewise.
6343 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6344 * frv-tdep.c (frv_push_dummy_call): Likewise.
6345 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6346 * hppa-tdep.c (hppa32_push_dummy_call)
6347 (hppa64_push_dummy_call): Likewise.
6348 * i386-tdep.c (i386_push_dummy_call): Likewise.
6349 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6350 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6351 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6352 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6353 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6354 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6355 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6356 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6357 (ppc64_sysv_abi_push_dummy_call): Likewise.
6358 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6359 (ppc64_sysv_abi_push_dummy_call): Likewise.
6360 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6361 * s390-tdep.c (s390_push_dummy_call): Likewise.
6362 * sh-tdep.c (sh_push_dummy_call_fpu)
6363 (sh_push_dummy_call_nofpu): Likewise.
6364 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6365 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6366 * vax-tdep.c (vax_push_dummy_call): Likewise.
6367
4a19ea35
JB
63682004-06-04 Jim Blandy <jimb@redhat.com>
6369
8327ccee
JB
6370 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6371 gdbarch argument to register_size.
6372
a3c001ce
JB
6373 * rs6000-tdep.c (rs6000_store_return_value): Use
6374 regcache_cooked_write_part instead of
6375 deprecated_write_register_bytes.
6376 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6377 not gdbarch_deprecated_store_return_value.
6378
4a19ea35
JB
6379 * ppc-linux-nat.c (store_register, fetch_register): Remove
6380 incorrect assertions. Simplify and generalize handling of
6381 transfers whose sizes are not multiples of, or less than, sizeof
6382 (PTRACE_XFER_TYPE).
6383
b9b5d7ea
JJ
63842004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6385
6386 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6387 as a new thread event.
720c7d64 6388 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6389 zombie, return TD_THR_ZOMBIE.
720c7d64 6390 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6391 TD_THR_ZOMBIE, check if the thread is still on the thread list
6392 and return a -1 ptid if not found.
6393 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6394 change the status to TARGET_WAITKIND_SPURIOUS.
6395
c8a3b559
CV
63962004-06-03 Corinna Vinschen <vinschen@redhat.com>
6397
6398 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6399 double values in little endian mode.
6400
20605361
AC
64012004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6402
6403 Committed by Andrew Cagney.
6404 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6405 after last enum constant to avoid error from IBM C
6406 compiler.
6407
bc97b3ba
JB
64082004-06-02 Jim Blandy <jimb@redhat.com>
6409
6410 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6411 to 'message', and make it local to the lone block that uses it.
6412
1da28ab0
JB
6413 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6414
4c4b4cd2
PH
64152004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6416
8a2225b2
PH
6417 * ada-exp.y: Update copyright notice.
6418 Include block.h.
6419
6420 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6421 SPECIAL_VARIABLE and unify the treatment of these cases.
6422
6423 (write_attribute_call0): Remove.
6424 (write_attribute_call1): Remove.
6425 (write_attribute_calln): Remove.
6426 (save_qualifier): Add missing semicolon.
6427
6428 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6429 temporarily disabled to allow compilation with FSF head version.
6430
6431 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6432 use individual operators (OP_*) for all attributes.
6433 (exp syntax): Use write_int.
6434 Handle STRING literals with OP_STRING.
6435 (variable syntax): Add limit parameter to calls to
6436 write_object_renaming.
6437
6438 (temp_parse_space): New definition to hold entities that need
6439 only live until the next call to ada_parse.
6440 (string_to_operator): Rename fields of ada_opname_table entries.
6441
6442 (write_var_from_sym): Record block.
6443 (write_var_from_name): Minor reformatting.
6444 Make sure saved name is properly encoded in the case of multiple
6445 matches, and set its language to Ada.
6446 Update comment.
6447 Modify to indicate unresolved name as symbol in the UNRESOLVED
6448 namespace, allocated in temp_parse_space.
6449 (write_int): New function.
6450
6451 (write_object_renaming): Add max_depth parameter to limit
6452 chains of object renamings.
6453 Handle case where root of renaming expression is itself a renaming.
6454 Use temp_parse_space for temporary name buffer.
6455 Handle renamings to dereferenced pointers (___XEXA suffices).
6456
6457 (ada_parse, yyerror, string_to_operator,
6458 write_var_from_sym, write_var_from_name, write_attribute_call0,
6459 write_attribute_call1, write_attribute_calln,
6460 write_object_renaming): Protoize.
6461
6462 (_initialize_ada_exp): New function.
6463
6464 * ada-lang.c: Update copyright notice.
6465 General terminology change to conform to GNAT compiler usage:
6466 mangle => encode, demangle => decode
6467 Include gdb_obstack.h.
6468 Include gdb_regex.h
6469 Include frame.h
6470 Include hashtab.h
6471 Include completer.h
6472 Include gdb_stat.h
6473 Include block.h
6474 Include infcall.h
6475
6476 (ADA_RETAIN_DOTS): Make sure this is defined.
6477 (TRUNCATION_TOWARDS_ZERO): Define.
6478 (struct string_vector): Define.
6479 (unresolved_names): Remove definition.
6480 (xnew_string_vector): New function.
6481 (string_vector_append): New function.
6482 (extract_string): Make static.
6483 (ada_unqualified_name): New function.
6484 (add_angle_brackets): New function.
6485 (function_name_from_pc): New function.
6486 (place_on_stack): Rename to ensure_lval.
6487
6488 (ensure_lval): Renamed from place_on_stack.
6489 Make identity on lvals.
6490 Update comment.
6491 (is_nonfunction): New interface.
6492 Only symbols in LOC_CONST class can be enumerals.
6493 (fill_in_ada_prototype): Remove; now independent of language.
6494 (add_defn_to_vec): Add obstack and symtab arguments.
6495 Use obstack to hold collected definitions.
6496 (num_defns_collected): New function.
6497 (defns_collected): New function.
6498 (ada_resolve_subexp): Rename to resolve_subexp.
6499 (resolve_subexp): Renamed from ada_resolve_subexp.
6500 (ada_op_name): Return non-const result.
6501 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6502 other purposes.
6503
6504 (to_fixed_array_type): Add declaration.
6505 (coerce_unspec_val_to_type): Remove offset parameter.
6506 (find_sal_from_funcs_and_line): New interface.
6507 (find_line_in_linetable): Ditto.
6508
6509 (all_sals_for_line): Rename to ada_sals_for_line and make
6510 global.
6511 Add new parameter. When set, do not ask the user to choose the
6512 instance, but use the first one found instead.
6513 Use given line number in returned sals.
6514 Fix comment.
6515 Skip the prologue if funfirstline is set.
6516 Correct for memory leak when 0 lines found.
6517
6518 (value_pos_atr): Use pos_atr.
6519 (pos_atr): New function.
6520 (standard_lookup): Add block parameter.
6521
6522 (makeTimeStart): Remove declaration and uses.
6523 (makeTimeStop): Remove declaration and uses.
6524
6525 (ada_completer_word_break_characters): Allow for VMS.
6526 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6527 (raise_sym_name): New constant.
6528 (raise_unhandled_sym_name): New constant.
6529 (raise_assert_sym_name): New constant.
6530 (process_raise_exception_name): New constant.
6531 (longest_exception_template): New constant.
6532 (warning_limit): New variable to limit warnings during expression
6533 evaluation.
6534 (warnings_issued): New variable to keep track of warnings issued.
6535 (known_runtime_file_name_patterns): New constant.
6536 (known_auxiliary_function_name_patterns): New constant.
6537 (symbol_list_obstack): New variable.
6538
6539 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6540 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6541 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6542 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6543 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6544 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6545 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6546 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6547 and strcmp.
6548
6549 (ada_get_field_index): New function.
6550 (lim_warning): New function.
6551 (ada_translate_error_message): New function.
6552 (MAX_OF_SIZE): New function.
6553 (MIN_OF_SIZE): New function.
6554 (UMAX_OF_SIZE): New function.
6555 (UMIN_OF_SIZE): New function.
6556 (discrete_type_high_bound): New function.
6557 (discrete_type_low_bound): New function.
6558 (base_type): New function.
6559 (do_command): Remove.
6560
6561 (ada_update_initial_language): Use language_ada, not language_unknown.
6562 (ada_encode): Renamed from ada_mangle.
6563 Obey ADA_RETAIN_DOTS.
6564 (ada_decode): Renamed from ada_demangle.
6565 Update coding conventions.
6566 (decoded_names_store): New hash table.
6567 (ada_decode_symbol): New function.
6568 (ada_la_decode): New function.
6569
6570 (modify_general_field): Correct computations of offset and bit
6571 position.
6572 (desc_base_type): Handle ref types, too.
6573 (ada_is_direct_array_type): New function.
6574
6575 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6576 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6577 (ada_is_bogus_array_descriptor,ada_type_of_array,
6578 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6579 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6580 ada_is_array_descriptor_type.
6581
6582 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6583 (ada_is_packed_array_type): Handle pointers or
6584 references to packed arrays as well.
6585 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6586 (decode_packed_array_type): Search for the packed array type
6587 symbol in the currently selected block and associated
6588 superblocks too.
6589 Use lookup_symbol again.
6590
6591 (decode_packed_array): Handle pointers and references.
6592 Update call to coerce_unspec_val_to_type.
6593 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6594 (ada_value_primitive_packed_val): Improve comment.
6595
6596 (ada_index_type): Substitute int type for "undefined".
6597 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6598 ada_array_langth, ada_is_string_type): Use renamed
6599 ada_is_simple_array_type.
6600 (empty_array): New function.
6601
6602 (ada_resolve): Rename to resolve.
6603 (resolve): Make static.
6604 Call renamed resolve_subexp.
6605 Update comment.
6606 (ada_resolve_subexp): Rename to resolve_subexp.
6607 (resolve_subexp): Update comment.
6608 Decomment disabled code.
6609 Add LOC_COMPUTED* cases.
6610 Modify to use temporary struct symbols (marked as being in
6611 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6612 OP_UNRESOLVED_VALUE.
6613 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6614 Add OP_STRING case.
6615 Remove OP_ARRAY.
6616 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6617 Use new ada_lookup_symbol_list interface.
6618 Use new ada_resolve_function interface.
6619 Remove OP_TYPE case.
6620
6621 (ada_args_match): Idiot proof against null actuals.
6622 Use intermediate variables to clarify.
6623 (ada_resolve_function): Update comment and interface.
6624 (mangled_ordered_before): Rename to encoded_ordered_before and
6625 update comment.
6626 (sort_choices): Update comment and interface.
6627 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6628 (user_select_syms): New interface.
6629 Use new sort_choices interface.
6630 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6631 (possible_user_operator_p): Idiot-proof against null values.
6632 (ada_simple_renamed_entity): Don't make cleanup; rely on
6633 caller to free result string.
6634 Remove const from return type.
6635 (make_array_descriptor): Rename uses of place_on_stack to
6636 ensure_lval.
6637 Make sure that arrays are on stack.
6638
6639 (HASH_SIZE): Define.
6640 (struct cache_entry): Define.
6641 (cache_space): Define.
6642 (cache): Define.
6643 (clear_ada_sym_cache): New function.
6644 (find_entry): New function.
6645 (lookup_cached_symbol): New function.
6646 (defn_vector_size): Define.
6647 (cache_symbol): New function.
6648 (defn_symbols): Remove.
6649
6650 (standard_lookup): Use lookup_symbol_in_language to get effect of
6651 C lookup.
6652 Cache results.
6653
6654 (symbol_completion_match): New function.
6655 (symbol_completion_add): New function.
6656 (ada_make_symbol_completion_list): New function.
6657
6658 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6659 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6660 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6661 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6662
6663 (ada_lookup_simple_minsym): New function.
6664 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6665
6666 (add_symbols_from_enclosing_procs): New interface.
6667 Conditionalize more helpfully.
6668 Don't bother if program isn't running.
6669 Use new interface to get_frame_block.
6670 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6671
6672 (remove_extra_symbols): New interface.
6673 (xget_renaming_scope): New function.
6674 (is_package_name): New function.
6675 (renaming_is_visible): New function.
6676 (remove_out_of_scope_renamings): New function.
6677
6678 (ada_lookup_symbol_list): New interface.
6679 Properly reinitialize the symbol list obstack.
6680 Don't call add_symbols_from_enclosing_procs if we start from a
6681 static or global block.
6682 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6683 add_symbols_from_enclosing_procs.
6684 Add symtab data to cached entries.
6685 Handle symbols prefixed with
6686 "standard__" specially; strip prefix and don't look in local symbols.
6687 Do not include out of scope renaming symbols in list of
6688 symbols returned.
6689 Add const to block parameter.
6690 Move check for non-local, non-global symbols earlier.
6691 Remove timing stuff.
6692 (ada_lookup_symbol): New interface.
6693 Find symtab as well.
6694 (ada_lookup_symbol_nonlocal): New function.
6695
6696 (is_name_suffix): Enhance suffix detection to recognize
6697 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6698 (is_dot_digits_suffix): New function.
6699 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6700
6701 (ada_add_block_symbols): New interface. Use obstack to return results
6702 in a vector of struct ada_symbol_infos. Add symtab argument.
6703 Use new interface to add_defn_to_vec.
6704 Remove calls to fill_in_ada_prototype.
6705 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6706
6707 (ada_finish_decode_line_1): Add const qualification to local to fix
6708 warning.
6709 Start looking in static block for functions to avoid attempts
6710 to search frame chain for up-level variables.
6711 Adapt to new ada_sals_for_line interface.
6712 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6713 Handle quoting of the function name inside the spec string.
6714 Skip prologue when funfirstline is set and update the
6715 function documentation to that effect.
6716
6717 (debug_print_lines, debug_print_block, debug_print_blocks,
6718 debug_print_symtab): Remove.
6719
6720 (ada_main_name): New function.
6721 (ada_exception_breakpoint_type): New function.
6722 (is_known_support_routine): New function.
6723 (ada_find_printable_frame): Renamed from find_printable_frame and made
6724 global.
6725 Remove level parameter.
6726 Use new interface to select_frame.
6727
6728 (begin_command): Remove.
6729 (ada_adjust_exception_stop): New function.
6730 (ada_print_exception_stop): New function.
6731 (exception_name_from_cond): New function.
6732 (ada_report_exception_break): Replace disabled code with
6733 conditionalization on GNAT_GDB.
6734 Get the exception name from the condition string.
6735 Remove and move functionality into new functions
6736 ada_print_exception_breakpoint_task and
6737 ada_print_exception_breakpoint_nontask.
6738 (error_breakpoint_runtime_sym_not_found): New function.
6739 (is_runtime_sym_defined): New function.
6740 (ada_breakpoint_rewrite): Uncomment suppressed code.
6741 Use symbolic error-message and runtime-symbol names.
6742 Surround runtime symbol names in quotes.
6743 Allow non-specific breakpoints on exceptions and assertions before
6744 program starts.
6745
6746 (ada_is_tagged_type): Add parameter.
6747 (ada_is_tag_type): New function.
6748 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6749 (ada_variant_discrim_type): Ditto.
6750 (value_tag_from_contents_and_address): New function.
6751 (type_from_tag): New function.
6752 (struct tag_args): New structure used to communicate with
6753 ada_tag_name_1.
6754 (ada_tag_name_1): New function.
6755 (ada_tag_name): New function.
6756
6757 (ada_scan_number): Update comment.
6758 (find_struct_field): New function.
6759 (ada_search_struct_field): Make static.
6760 (ada_value_struct_elt): New version that returns references when
6761 given pointers or references to structs.
6762 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6763 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6764 interface.
6765 (ada_value_ind): Use new ada_to_fixed_value interface.
6766 (ada_coerce_ref): Ditto.
6767 (field_offset): Remove.
6768
6769 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6770 (ada_find_renaming_symbol): New function.
6771 (ada_prefer_type): Prefer named types over unnamed ones.
6772 (variant_field_index): New function.
6773 (contains_variant_part): Removed: subsumed by variant_field_index.
6774 (ada_template_to_fixed_record_type): New function, mostly from
6775 template_to_fixed_record_type.
6776 (template_to_fixed_record_type):
6777 Do not scan the type fields beyond the last one; prevents a
6778 potential SEGV.
6779 Handle case where variant field is listed BEFORE discriminant it
6780 depends on.
6781 Fix calculation of record length when bit length is
6782 not evenly divisible by char length.
6783 Move code to ada_template_to_fixed_record_type and call it.
6784
6785 (template_to_static_fixed_type): Revise comment.
6786 Modify to work on ordinary record types as well as templates,
6787 so as to handle fields that use ___XVE or ___XVU encodings.
6788 (to_record_with_fixed_variant_part): Fill out comment.
6789 Initialize C++ stuff in right type.
6790 Allow case where DVAL is null.
6791 Handle case where variant field is not last.
6792 Fix typo concerning record length.
6793 (to_fixed_record_type): Decomment disabled code.
6794 (to_fixed_record_type): Use variant_field_index instead of
6795 contains_variant_part.
6796 (to_fixed_variant_branch_type): Ditto.
6797 (to_fixed_array_type): Decomment disabled code.
6798 (ada_to_fixed_type): Convert tagged types to the specific type.
6799 Deactivate the size-check for array types in order to avoid
6800 some false size alarms.
6801 (to_static_fixed_type): Decomment disabled code.
6802 Modify to call template_to_static_fixed_type
6803 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6804 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6805 Remove valaddr argument, as it is never really used.
6806 (ada_to_fixed_value): Change interface to act on single struct value*
6807 operand.
6808 (adjust_pc_past_prologue): New function.
6809 (ada_attribute_name): Modify to take enum exp_opcode argument.
6810
6811 (ada_enum_name): Recognize new homonym-distinguishing convention.
6812 Adjust local variable's type to remove compiler warning.
6813 Fix a small problem in the part that unqualifies the enumeration name.
6814 (ada_value_binop): New function.
6815 (ada_value_equal): New function.
6816
6817 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6818 Don't give error message when not doing normal evaluation
6819 and a tagged type doesn't seem to contain a structure member.
6820 Give error message for packed arrays.
6821 For indexing arrays, handle pointers to packed arrays correctly.
6822 Handle case of 'first and 'last attributes of bare integral type
6823 without encoded subtype info.
6824 Remove some unnecessary casts.
6825 Fix uninitialized value of type in computing 'first, 'last, or 'length
6826 of array object.
6827 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6828 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6829 calls.
6830 Attributes are now exp_opcode values.
6831 Correct treatment of 'modulus.
6832 Better error message for taking 'length of wrong kind of type;
6833 improve comment.
6834 Change EVAL_NORMAL to noside for consistency.
6835 Use ada_value_binop for DIV, MOD, REM.
6836 Make special case out of array of length 0, since an argument
6837 of 0 upsets some platforms' malloc.
6838 Use OP_STRING instead of OP_ARRAY.
6839 For slice, add check that we have an array type before extracting
6840 a slice out of it. Avoids a SEGV.
6841 When evaluating an array slice, if the array type is a reference to
6842 an aligner type, then replace the aligner type by the actual type.
6843 Decomment disabled code.
6844 Remove some dead code.
6845 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6846 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6847 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6848 and UNOP_MBR to UNOP_IN_RANGE.
6849 If an array type has a parallel ___XVE type, then use it.
6850 Turn arrays into pointers for lvalue arrays.
6851 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6852 bounds error and handle 0-length slices.
6853 Use lim_warning.
6854 When selecting fields, apply ada_to_fixed_value (because the fields
6855 might have ___XVU or ___XVE encodings even if not dynamic.)
6856 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6857 (ada_is_system_address_type): New function.
6858
6859 (get_var_value): Use new interface to ada_lookup_symbol_list.
6860 (get_int_var_value): New interface.
6861 (to_fixed_range_type): Allow unknown bound, with warning.
6862 (ada_is_modular_type): Decomment disabled code.
6863 (ADA_OPERATORS): New definition.
6864 (ada_operator_length): New function.
6865 (ada_expr_op_name): New function.
6866 (ada_forward_operator_length): New function.
6867 (ada_dump_subexp_body): New function.
6868 (ada_print_subexp): New function.
6869 (ada_exp_descriptor): New constant.
6870 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6871 (ada_language_defn): Add ada_exp_descriptor entry.
6872 Change ada_parse => parse.
6873 Add post-parser entry.
6874 Use ada-specific non-local symbol lookup.
6875 Don't use C-style arrays.
6876 String lower-bound is 1.
6877 Decomment disabled code.
6878 (parse): New function.
6879 New fields ada_translate_error_message, ada_lookup_symbol,
6880 ada_lookup_minimal_symbol.
6881
6882 * ada-lang.h: Update copyright dates.
6883 Replace the mangle/demangle terminology throughout by the
6884 more appropriate encode/decode one.
6885 Include breakpoint.h.
6886 Forward declare struct partial_symbol, struct block.
6887 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6888 (EXTRACT_ADDRESS): Remove.
6889 (EXTRACT_INT): Remove.
6890 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6891 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6892 (MAX_RENAMING_CHAIN_LENGTH): Define.
6893 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6894
6895 (enum task_states): Remove.
6896 ada_task_states: Remove.
6897 (fat_string): Remove.
6898 (struct entry_call): Remove.
6899 (struct task_fields): Remove.
6900 (struct task_entry): Remove.
6901
6902 (struct ada_symbol_info): Define.
6903 (enum ada_attribute): Remove.
6904 (enum ada_operator): Define.
6905
6906 (ada_get_field_index): Declare.
6907 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6908 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6909 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6910 (ada_lookup_symbol_list): New interface.
6911 (ada_decode_symbol): Declare.
6912 (ada_decode): Declare.
6913 (ada_lookup_symbol): New interface.
6914 (ada_update_initial_language): Declare.
6915 (ada_lookup_simple_minsym): Declare.
6916 (user_select_syms): New interface.
6917 (ada_sals_for_line): Declare.
6918 (ada_is_tagged_type): New interface.
6919 (ada_tag_name): Declare.
6920 (ada_lookup_struct_elt_type): Remove declaration.
6921 (ada_search_struct_field): Remove declaration.
6922 (ada_attribute_name): New interface.
6923 (ada_is_system_address_type): Declare.
6924 (ada_to_fixed_value): Remove declaration.
6925 (ada_template_to_fixed_record_type_1): Declare.
6926 (get_int_var_value): New interface.
6927 (ada_find_any_symbol): Declare.
6928 (ada_find_renaming_symbol): Declare.
6929 (ada_mangle): Rename to ada_encode.
6930 (ada_simple_renamed_entity): Remove const.
6931 (ada_main_name): Declare.
6932 (get_current_task): Rename to ada_get_current_task.
6933 (get_entry_number): Remove declaration.
6934 (ada_report_exception_break): Remove declaration.
6935 (ada_print_exception_breakpoint_nontask): Declare.
6936 (ada_print_exception_breakpoint_task): Declare.
6937 (ada_find_printable_frame): Declare.
6938
6939 * ada-lex.l: Update copyright notices.
6940 Use xmalloc and xfree instead of malloc and free.
6941 Use new interface to name_lookup.
6942 Use new interface to
6943 ada_mangle=>ada_encode.
6944 Redo handling of '$...' variable to parallel current treatment
6945 in c-exp.y.
6946 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6947 digit_to_int, strtoulst, processInt, processReal, processId,
6948 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6949 yywrap): Protoize.
6950
6951 (processInt): Use cast to remove harmless warning.
6952 (processReal): Modify to get rid of compiler warning on scan formats.
6953
6954 (processId): Replace xmalloc with obstack_alloc for name and remove
6955 call to ada_name_string_cleanup.
6956 Remove obsolete disabled code.
6957 (name_lookup): Ditto.
6958 New interface.
6959 Use obsavestring on temp_parse_space instead of savestring
6960 on name, and remove call to ada_name_string_cleanup.
6961 Free string returned from ada_simple_renamed_entity.
6962 Use new interface to ada_lookup_symbol_list.
6963 Decomment disabled code.
6964 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6965 not types.
6966 When a type name lookup succeeds as a result of
6967 lookup_primitive_typename, check for regular type entry that has not
6968 yet been read in.
6969 Limit length of chain of renamed symbols we are willing to follow.
6970 Do not break names beginning with "standard__" into segments.
6971 (block_lookup): Use new interface to ada_lookup_symbol_list.
6972
6973 * ada-typeprint.c: Update copyright notice.
6974 (demangled_type_name): Rename to decoded_type_name.
6975 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6976 (print_range_bound): Correct handling of negative
6977 bounds that make the index type looked unsigned under STABS.
6978 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6979 (print_range_type_named): Use the builtin int type if no type
6980 corresponding to the given type name could be found.
6981 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6982 Add some bullet-proofing.
6983 (print_variant_clauses): Allow for variant branches with ___XVU
6984 encodings that are not dynamic fields.
6985 Use new interface to ada_is_tagged_type.
6986 (print_record_type): Allow for fields with ___XVE encodings that
6987 are not dynamic fields.
6988 Use new interface to ada_is_tagged_type.
6989 (ada_print_type): ada_is_array_descriptor =>
6990 ada_is_array_descriptor_type.
6991
6992 * ada-valprint.c: Update copyright notice.
6993 Include gdb_string.h
6994 Include infcall.h
6995 (ui_memcpy): New function.
6996 (ada_print_floating): New function.
6997 (ada_print_str): Order arguments correctly.
6998 Correct handling of empty arrays and arrays of 0-length items.
6999 ada_is_array_descriptor => ada_is_array_descriptor_type
7000 Print values of type System.Address in hexadecimal format.
7001 Use ada_print_floating to print floating-point numbers in Ada format.
7002 Print class tag values with type names.
7003 No longer print the address of reference values. Avoids
7004 a potential confusion.
7005 (ada_value_print): Stop printing the object type for reference
7006 values, but preserve that behavior for access types. Avoids
7007 a potential confusion.
7008 Simplify one conditional expression, as the first part is now
7009 necessarily true.
7010 ada_is_array_descriptor => ada_is_array_descriptor_type
7011 Add check for arrays for null records, and print them by hand.
4c4b4cd2 7012
f65f91b5
JB
70132004-06-01 Jim Blandy <jimb@redhat.com>
7014
7015 * ppc-tdep.h: Delete unused 'regoff' member.
7016 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7017
d4687fa0
MC
70182004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7019
7020 Fix PR symtab/1661.
7021 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7022 (hpread_read_struct_type): Likewise.
7023
de169ec9
AC
70242004-06-01 Andrew Cagney <cagney@gnu.org>
7025
c6902d46
AC
7026 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7027 instead of xasprintf.
7028 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7029 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7030 (mi_cmd_data_list_register_names)
7031 (mi_cmd_data_list_changed_registers)
7032 (mi_cmd_data_list_register_values)
7033 (get_register, mi_cmd_data_write_register_values)
7034 (mi_cmd_data_write_register_values)
7035 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7036 (mi_cmd_target_download, mi_cmd_target_select)
7037 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7038 (mi_execute_cli_command, mi_execute_async_cli_command)
7039 (mi_execute_async_cli_command): Ditto.
7040 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7041 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7042
6085fc2d
AC
7043 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7044 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7045 error_last_message instead of mi_error_last_message.
7046 * mi/mi-main.c (mi_error_last_message): Delete function.
7047
de169ec9
AC
7048 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7049 "invalid number of columns" error. Delete redundant "out of
7050 memory" check.
7051
1fc7d519
MK
70522004-05-31 Mark Kettenis <kettenis@gnu.org>
7053
6cfb2041
MK
7054 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7055 (gregset_t, fpregset_t): Remove typedefs.
7056 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7057 (REG_OFFSET): Rename argument.
7058 (i386bsd_r_reg_offset): Rename from reg_offset.
7059 (REG_ADDR): Remove macro.
7060 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7061 functions.
7062 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7063 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7064 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7065 instead of supply_gregset.
7066 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7067 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7068 instead of fill_gregset.
7069 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7070
1fc7d519
MK
7071 * i386bsd-nat.c: Don't include "gregset.h".
7072 (supply_gregset, fill_gregset): Make static.
7073 (supply_fpregset, fill_fpregset): Remove.
7074 * Makefile.in (i386bsd-nat.o): Update dependencies.
7075
2c34abbe
MK
70762004-05-30 Mark Kettenis <kettenis@gnu.org>
7077
448724fb
MK
7078 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7079 "gdb_assert.h". Con't include "gregset.h".
7080 (fbsd_make_corefile_notes): Use regset-based core file support
7081 instead off fill_gregset and fill_fpregset.
7082 * Makefile.in (fbsd-proc.o): Update dependencies.
7083
5ca8ca7c
MK
7084 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7085 instructions.
7086 (m88k_frame_prev_register): Simplify code a bit.
7087
593adc23
MK
7088 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7089 (amd64_collect_fpregset): New function.
7090 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7091
8d1b517b
MK
7092 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7093
7fdafb5a
MK
7094 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7095 (i386_collect_gregset): New function.
7096 (i386_supply_fpregset): Adjust comment.
7097 (i386_collect_fpregset): New function.
7098 (i386_regset_from_core_section): Use i386_collect_gregset and
7099 i386_collect_fpregset.
7100
8693c419
MK
7101 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7102 handle VALUEP being null.
7103
2c34abbe
MK
7104 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7105
45d134d8
MK
71062004-05-29 Mark Kettenis <kettenis@gnu.org>
7107
1698f4e7
MK
7108 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7109
45d134d8
MK
7110 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7111 assembler in OpenBSD 3.5-current.
7112 (amd64obsd_sigcontext_addr): Likewise.
7113
691d145a
JB
71142004-05-28 Jim Blandy <jimb@redhat.com>
7115
7116 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7117 register set, so our regcache isn't declared "legacy" and our E500
7118 pseudoregister read and write functions aren't ignored.
7119 (rs6000_register_byte, rs6000_register_raw_size,
7120 rs6000_register_virtual_type, rs6000_register_convertible,
7121 rs6000_register_convert_to_virtual,
7122 rs6000_register_convert_to_raw): Deleted.
7123 (rs6000_register_type, rs6000_convert_register_p,
7124 rs6000_register_to_value, rs6000_value_to_register): New
7125 functions.
7126 (rs6000_gdbarch_init): Don't register
7127 gdbarch_deprecated_register_size,
7128 gdbarch_deprecated_register_bytes,
7129 gdbarch_deprecated_register_byte,
7130 gdbarch_deprecated_register_raw_size,
7131 gdbarch_deprecated_register_virtual_type,
7132 gdbarch_deprecated_register_convertible,
7133 gdbarch_deprecated_register_convert_to_virtual, or
7134 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7135 register gdbarch_register_type, gdbarch_convert_register_p,
7136 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7137
18ed0c4e
JB
71382004-05-26 Jim Blandy <jimb@redhat.com>
7139
7140 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7141 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7142 functions, updated to match the register numberings used in GCC.
7143 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7144 rs6000_dwarf2_reg_to_regnum as register number conversions
7145 functions for STABS and Dwarf2.
7146
779af9e3
RC
71472004-05-26 Randolph Chung <tausq@debian.org>
7148
7149 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7150 in header file.
7151
c23968a2
JB
71522004-05-25 Joel Brobecker <brobecker@gnat.com>
7153
7154 * NEWS: Document new "start" command.
7155
3a7d1c27
RC
71562004-05-25 Randolph Chung <tausq@debian.org>
7157
7158 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7159 hppa-linux.
7160
43613416
RC
71612004-05-25 Randolph Chung <tausq@debian.org>
7162
7163 * hppa-hpux-tdep.c (offsetof): Define.
7164 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7165 (hppa32_hpux_frame_base_before_sigtramp)
7166 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7167 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7168 (hppa64_hpux_frame_base_before_sigtramp)
7169 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7170 functions.
7171 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7172 (hppa_hpux_sigtramp_frame_unwind_cache)
7173 (hppa_hpux_sigtramp_frame_this_id)
7174 (hppa_hpux_sigtramp_frame_prev_register)
7175 (hppa_hpux_sigtramp_frame_unwind)
7176 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7177 (hppa_hpux_init_abi): Register sigtramp unwinder.
7178 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7179
6d1be3f1
RC
71802004-05-25 Randolph Chung <tausq@debian.org>
7181
7182 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7183 and multiple stack unwinds.
7184 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7185
97c34f65
AC
71862004-05-25 Andrew Cagney <cagney@gnu.org>
7187
7188 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7189 * symfile-mem.h: Delete file.
7190 * symfile-mem.c: Do not include "symfile-mem.h".
7191 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7192 "struct bfd_section". When an error do not bother returning NULL.
7193 (add_symbol_file_from_memory_command): Use "struct bfd" and
7194 "struct bfd_section".
7195 * Makefile.in (symfile_mem_h): Delete.
7196 (symfile-mem.o): Update dependencies.
7197
e23cbd82
NR
71982004-05-25 Nick Roberts <nickrob@gnu.org>
7199
7200 * gdb-mi.el: New file.
7201
20d2ca3e
AC
72022004-05-25 Andrew Cagney <cagney@gnu.org>
7203
7204 * inftarg.c: Include "observer.h".
7205 (child_attach, child_create_inferior): Notify inferior_created.
7206 * corelow.c: Include "observer.h".
7207 (core_open): Notify inferior_created.
7208 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7209
c27cda74
AC
72102004-05-25 Andrew Cagney <cagney@gnu.org>
7211
7212 * target.h (struct target_ops): Add from_tty to
7213 to_create_inferior.
7214 (target_create_inferior, find_default_create_inferior): Update.
7215 * infcmd.c (run_command): Update.
7216 * wince.c (child_create_inferior): Update.
7217 * win32-nat.c (child_create_inferior): Update.
7218 * uw-thread.c (uw_thread_create_inferior): Update.
7219 * thread-db.c (thread_db_create_inferior): Update.
7220 * target.c (debug_to_create_inferior)
7221 (find_default_create_inferior): Update.
7222 (maybe_kill_then_create_inferior): Update.
7223 * sol-thread.c (sol_thread_create_inferior): Update.
7224 * remote.c (extended_remote_async_create_inferior)
7225 (extended_remote_create_inferior): Update.
7226 * remote-vx.c (vx_create_inferior): Update.
7227 * remote-st.c (st2000_create_inferior): Update.
7228 * remote-sim.c (gdbsim_create_inferior): Update.
7229 * remote-sds.c (sds_create_inferior): Update.
7230 * remote-rdp.c (remote_rdp_create_inferior): Update.
7231 * remote-rdi.c (arm_rdi_create_inferior): Update.
7232 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7233 * remote-e7000.c (e7000_create_inferior): Update.
7234 * procfs.c (procfs_create_inferior): Update.
7235 * ocd.c (ocd_create_inferior): Update.
7236 * ocd.h (ocd_create_inferior): Update.
7237 * nto-procfs.c (procfs_create_inferior): Update.
7238 * monitor.c (monitor_create_inferior): Update.
7239 * lin-lwp.c (lin_lwp_create_inferior): Update.
7240 * inftarg.c (child_create_inferior): Update.
7241 * hpux-thread.c (hpux_thread_create_inferior): Update.
7242 * gnu-nat.c (gnu_create_inferior): Update.
7243
1db2a798
AC
72442004-05-25 Andrew Cagney <cagney@gnu.com>
7245
7246 * MAINTAINERS: Update e-mail address.
7247
007d08bb
RC
72482004-05-24 Randolph Chung <tausq@debian.org>
7249
7250 * thread.c (info_threads_command, thread_apply_all_command)
7251 (thread_apply_command, thread_command, do_captured_thread_select):
7252 Remove HPUXHPPA-specific code.
7253
69e7b95e
RC
72542004-05-24 Randolph Chung <tausq@debian.org>
7255
7256 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7257 unused symbols.
7258 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7259 references.
7260
a4d5f2e0
JB
72612004-05-24 Joel Brobecker <brobecker@gnat.com>
7262
7263 * infcmd.c (kill_if_already_running): New function, extracted
7264 from run_command().
7265 (run_command): Replace extracted code by call to
7266 kill_if_already_running().
7267 (start_command): New function.
7268 (_initialize_infcmd): Add "start" command.
7269
bf2ca189
MK
72702004-05-24 Mark Kettenis <kettenis@gnu.org>
7271
7272 Add OpenBSD/m88k support.
7273 * NEWS (New native configurations): Mention OpenBSD/m88k.
7274 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7275 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7276 * Makefile.in (m88k_tdep_h): New variable.
7277 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7278 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7279 * configure.host: Add m88*-*-openbsd*.
7280 * configure.tgt: Add m88*-*-openbsd*.
7281
80fadb11
JB
72822004-05-24 Jim Blandy <jimb@redhat.com>
7283
7284 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7285 to approve changes.
7286
19e2d14b
KB
72872004-05-24 Kevin Buettner <kevinb@redhat.com>
7288
7289 * symtab.c (fixup_section): Search section table when lookup by
7290 name fails.
7291
1b07b470
RC
72922004-05-24 Randolph Chung <tausq@debian.org>
7293
7294 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7295 be "small_struct".
7296
368702b1
MK
72972004-05-24 Mark Kettenis <kettenis@gnu.org>
7298
5df97fde
MK
7299 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7300 register number in regcache_raw_collect call.
7301 (m68kbsd_collect_fpregset): Likewise.
7302 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7303
368702b1
MK
7304 * regset.h (struct regset): Add back `regset' member.
7305
a770d4ec
MK
73062004-05-23 Mark Kettenis <kettenis@gnu.org>
7307
70f9f479
MK
7308 * configure.in: Check for td_pcb in `struct thread'.
7309 * configure, config.in: Regenerated.
7310
2e16d79e
MK
7311 * dpx2-nat.c: Remove file.
7312 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7313 (dpx2-nat.o): Remove dependencies.
7314
492cf391
MK
7315 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7316 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7317 (amd64obsd_supply_pcb): New function.
7318 (_initialize_amd64obsd_nat): Enable libkvm interface.
7319 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7320 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7321 (LOADLIBES): New variable.
7322
a770d4ec
MK
7323 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7324 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7325 (sparc32nbsd_supply_pcb): New function.
7326 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7327 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7328 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7329 (LOADLIBES): New variable.
7330
9ea75c57
MK
73312004-05-22 Mark Kettenis <kettenis@gnu.org>
7332
2e0c3539
MK
7333 * bsd-kvm.c, bsd-kvm.h: New files.
7334 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7335 "bsd-kvm.h".
7336 (i386fbsd_supply_pcb): New function.
7337 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7338 (i386fbsd-nat.o): Update dependencies.
7339 (bsd_kvm_h): New variable.
7340 (bsd-kvm.o): New dependency.
7341 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7342 (LOADLIBES): New variable.
7343
9ea75c57
MK
7344 * regset.c: Tweak comment.
7345 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7346 macro.
7347 * regset.h: Update copyright year.
7348 (struct regset): Remove `descr' member, add `gdbarch' member.
7349 (regset_alloc): Adjust prototype and comment.
7350 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7351 (i386_supply_fpregset): Likewise.
7352 (i386_regset_from_core_section): Update call to regset_alloc.
7353 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7354 REGSET->arch.
7355 (i386obsd_aout_regset_from_core_section): Update call to
7356 regset_alloc.
7357 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7358 REGSET->arch.
7359 (i386nbsd_aout_regset_from_core_section): Update call to
7360 regset_alloc.
7361 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7362 REGSET->arch.
7363 (amd64_regset_from_core_section): Update call to regset_alloc.
7364 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7365 REGSET->arch.
7366 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7367 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7368 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7369 (sparc32nbsd_init_abi): Update call to regset_alloc.
7370 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7371 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7372 (sparc64obsd_init_abi): Update call to regset_alloc.
7373 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7374 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7375 (sparc64nbsd_init_abi): Update call to regset_alloc.
7376 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7377 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7378 (sparc64fbsd_init_abi): Update call to regset_alloc.
7379
867e2dc5
JB
73802004-05-22 Jim Blandy <jimb@redhat.com>
7381
7382 * ppc-tdep.h (spe_register_p): New declaration.
7383 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7384 ppc_spefscr_regnum.
7385 * rs6000-tdep.c (spe_register_p): New function.
7386 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7387 spefscr.
7388 (rs6000_gdbarch_init): Initialize the new members of the tdep
7389 structure.
7390
617a4cba
JB
73912004-05-21 Jim Blandy <jimb@redhat.com>
7392
0397dee1
JB
7393 * ppc-linux-nat.c (fetch_register): Move code back to be next
7394 to the comment that describes it. (Moved code, instead of
7395 comment, for symmetry with store_register.)
7396
617a4cba
JB
7397 Allocate regset structures in the gdbarch's obstack, not using
7398 xmalloc.
7399 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7400 Add 'arch' argument. Allocate the regset on arch's obstack, not
7401 using xmalloc.
7402 * regset.h (regset_alloc): Update declaration.
7403 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7404 gdbarch argument.
7405 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7406 * i386-tdep.c (i386_regset_from_core_section): Same.
7407 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7408 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7409 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7410 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7411 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7412 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7413
9aa3914d
JB
74142004-05-21 Joel Brobecker <brobecker@gnat.com>
7415
7416 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7417
99c87dab
JB
74182004-05-21 Jim Blandy <jimb@redhat.com>
7419
7420 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7421 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7422
c2b6b4aa
JB
74232004-05-20 Jim Blandy <jimb@redhat.com>
7424
7425 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7426
144529d0
MK
74272004-05-20 Mark Kettenis <kettenis@gnu.org>
7428
7429 * regset.h: Make prototype const-correct.
7430 * regset.c (regset_xmalloc): Make const-correct.
7431
4725b721
PH
74322004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7433
7434 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7435 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7436 (symbol_search_name): Declare.
7437
7438 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7439 (iter_name_next_hashed): Ditto.
7440 (iter_name_next_linear): Ditto.
7441 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7442
7443 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7444 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7445 (symbol_search_name): New function.
7446
7447 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7448
7449 * minsyms.c (build_minimal_symbol_hash_tables): Change
7450 test for adding to demangled hash table to check for difference
7451 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7452
be07a590
JB
74532004-05-19 Jim Blandy <jimb@redhat.com>
7454
7455 Use a constructor function to create regset structures.
7456 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7457 (struct regset): Use supply_regset_ftype. Add new
7458 'collect_regset' member.
7459 (regset_xmalloc): New declaration.
7460 * regset.c: New file.
7461 * am64-tdep.c (amd64_regset_from_core_section): Use
7462 regset_xmalloc to construct regset structures.
7463 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7464 * i386-tdep.c (i386_regset_from_core_section): Same.
7465 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7466 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7467 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7468 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7469 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7470 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7471 * Makefile.in (COMMON_OBS): Add regset.o.
7472 (regset.o): New rule.
7473
604368f5
JB
74742004-05-19 Joel Brobecker <brobecker@gnat.com>
7475
7476 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7477 and pthread_cond_wait.c.
7478
82d69f8b
JB
74792004-05-18 Jim Blandy <jimb@redhat.com>
7480
7481 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7482 before the mach-specific switch, and then let the individual cases
7483 override the defaults, rather than leaving them uninitialized
7484 until the switch and then setting them in each case.
7485
5859efe5
RC
74862004-05-18 Randolph Chung <tausq@debian.org>
7487
7488 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7489 millicode functions.
7490
9ca80cf8
RC
74912004-05-18 Randolph Chung <tausq@debian.org>
7492
7493 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7494 references to dld_flags_buffer consistent.
7495
ed70ba00
RC
74962004-05-18 Randolph Chung <tausq@debian.org>
7497
7498 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7499 it for unwinding the stack.
7500
63100632
RC
75012004-05-18 Randolph Chung <tausq@debian.org>
7502
7503 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7504 Undefine these so we can overide them using gdbarch.
7505
090ccbb7
RC
75062004-05-18 Randolph Chung <tausq@debian.org>
7507
7508 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7509 handling for 64-bit HPUX (elf).
7510
594706e6
DJ
75112004-05-18 Daniel Jacobowitz <dan@debian.org>
7512
7513 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7514 constants.
7515 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7516 * ia64-tdep.c (examine_prologue): Likewise.
7517 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7518 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7519
e5483145
MK
75202004-05-18 Mark Kettenis <kettenis@gnu.org>
7521
7522 * vax-tdep.c (vax_return_value): Implement
7523 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7524
caed1a45
MK
75252004-05-17 Mark Kettenis <kettenis@gnu.org>
7526
7527 * vax-tdep.c (vax_return_value): Fix typo.
7528
3c0b7db2
AC
75292004-05-17 Andrew Cagney <cagney@redhat.com>
7530
5aae53e5
AC
7531 * MAINTAINERS: Mark Salter was also responsible for
7532 testsuite/config/
7533
3c0b7db2
AC
7534 * NEWS: Mention signal fixes.
7535
22b0923d
RC
75362004-05-17 Randolph Chung <tausq@debian.org>
7537
7538 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7539 check to see if we are unwinding an export stub. Export stubs clobber
7540 the %rp in the call path and stores the original rp in a stack slot.
7541
22f2b2f3
JB
75422004-05-17 Jim Blandy <jimb@redhat.com>
7543
7544 * MAINTAINERS: Update address for J.T. Conklin.
7545
cea96d64
RC
75462004-05-17 Randolph Chung <tausq@debian.org>
7547
7548 * hppa-tdep.c: Remove superfluous #include's.
7549 * Makefile.in (hppa-tdep.o): Update dependencies.
7550
f08f6a4a
RC
75512004-05-17 Randolph Chung <tausq@debian.org>
7552
7553 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7554 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7555 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7556 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7557 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7558 Remove static function declarations.
7559
51da707a
MK
75602004-05-17 Mark Kettenis <kettenis@gnu.org>
7561
caed1a45
MK
7562 * alphabsd-nat.c: Update copyright year.
7563 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7564
c0c2b0db
MK
7565 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7566 and M68K_A2_REGNUM.
7567
51da707a
MK
7568 * m68k-tdep.c (m68k_svr4_return_value): Implement
7569 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7570
8d027a04
MK
75712004-05-16 Mark Kettenis <kettenis@gnu.org>
7572
7573 * sol-thread.c Update copyright year. Fix various coding
7574 standards violations. Tweak a few comments.
7575 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7576 Delete prototypes.
7577
0d99fdb9
RC
75782004-05-15 Randolph Chung <tausq@debian.org>
7579
7580 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7581 as pointer instead of array reference since HPUX compiler does
7582 not accept unsized array arguments.
7583 * somsolib.c (dld_flags_buffer): Use constant array size.
7584
f7e3843a
MK
75852004-05-15 Mark Kettenis <kettenis@gnu.org>
7586
0fe85704
MK
7587 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7588 offset with decimal offset.
7589 (amd64obsd_sigcontext_addr): Return correct address for entire
7590 signal trampoline.
7591
a54f9a00
MK
7592 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7593 instead of get_frame_base.
7594
feae6502
MK
7595 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7596 (fill_gregset): Use regcache_raw_collect.
7597
0382d099
MK
7598 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7599 ppcobsd-tdep.c.
7600
f7e3843a
MK
7601 * config/sparc/tm-nbsd64.h: Remove file.
7602 * config/tm-sunos.h: Remove file.
7603
773df3e5
JB
76042004-05-15 Joel Brobecker <brobecker@gnat.com>
7605
7606 * rs6000-tdep.c (store_param_on_stack_p): New function,
7607 an improved version of some code extracted from skip_prologue().
7608 (skip_prologue): Use store_param_on_stack_p() to detect
7609 instructions saving a parameter on the stack. Detect when r0
7610 is used to save a parameter.
7611 Do not mark "li rx, SIMM" instructions as part of the prologue,
7612 unless the following instruction is also part of the prologue.
7613
95918acb
AC
76142004-05-14 Andrew Cagney <cagney@redhat.com>
7615
06f32659
AC
7616 * infrun.c (handle_inferior_event): Simplify
7617 STEP_OVER_UNDEBUGGABLE.
7618
95918acb
AC
7619 * infrun.c (handle_step_into_function): Delete function.
7620 (handle_inferior_event): Inline calls to
7621 handle_step_into_function.
7622
40711ff1 76232004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7624
7625 * rs6000-nat.c: Fix a comment.
7626
02f60eae
JB
76272004-05-12 David Anderson <davea@sgi.com>
7628
7629 Committed by Jim Blandy <jimb@redhat.com>:
7630 * regcache.c (struct regcache_descr): fix comment spelling.
7631
552e377b
JB
76322004-05-13 J. Brobecker <brobecker@gnat.com>
7633
7634 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7635 Fixes a link link failure.
7636
349766b2
JB
76372004-05-13 J. Brobecker <brobecker@gnat.com>
7638
7639 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7640 error that was causing the build to fail.
7641
0d4d5484
JB
76422004-05-13 J. Brobecker <brobecker@gnat.com>
7643
7644 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7645 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7646
0b30808c
AC
76472004-05-13 Andrew Cagney <cagney@redhat.com>
7648
7649 * infrun.c (handle_inferior_event): Check for
7650 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7651 calls. Update comments.
7652
cdf2c5f5
JB
76532004-05-13 Jim Blandy <jimb@redhat.com>
7654
063715bf
JB
7655 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7656 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7657 (store_regs_user_thread, store_regs_kernel_thread): Use
7658 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7659 * ppc-linux-nat.c (fill_gregset): Same.
7660 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7661 (ppc_linux_sigtramp_cache): Same.
7662 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7663 (ppcnbsd_sigtramp_cache_init): Same.
7664 * rs6000-nat.c (fetch_core_registers): Same.
7665 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7666 (rs6000_frame_cache): Same.
7667
cdf2c5f5
JB
7668 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7669 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7670 of assuming that the gprs are numbered starting with zero.
7671 * ppc-linux-nat.c (fill_gregset): Same.
7672 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7673 * ppcnbsd-nat.c (getregs_supplies): Same.
7674 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7675 * rs6000-nat.c (fetch_core_registers): Same.
7676 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7677
450bd37b
MS
76782004-05-07 Michael Snyder <msnyder@redhat.com>
7679
7680 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7681 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7682
4a72a2a6
AC
76832004-05-13 Andrew Cagney <cagney@redhat.com>
7684
7685 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7686
8edfa926
BM
76872004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7688
7689 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7690 base_address for shared libraries.
7691
723e0e3d
BM
76922004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7693
7694 * MAINTAINERS (write after approval): Add myself.
7695
00d4360e
UW
76962004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7697
7698 * breakpoint.c (bpstat_stop_status): Add new argument
7699 STOPPED_BY_WATCHPOINT. Use it instead of testing
7700 target_stopped_data_address agaist 0 to check whether
7701 or not we stopped due to a hardware watchpoint.
7702 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7703 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7704 with new argument.
7705
ec76baa5
JB
77062004-05-12 Jim Blandy <jimb@redhat.com>
7707
7708 * configure.in: When checking whether we should use the -bbigtoc
7709 option, don't forget to restore the original value of LDFLAGS.
7710 * configure: Regenerated.
7711
f2c9ca08
AC
77122004-05-12 Andrew Cagney <cagney@redhat.com>
7713
7714 * thread.c (load_infrun_state): Delete step_sp.
7715 * infrun.c (context_switch): Ditto.
7716 * inferior.h (step_sp): Ditto.
7717 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7718 * gdbthread.h (struct thread_info, save_infrun_state)
7719 (restore_infrun_state): Ditto.
7720
090ddb2a
UW
77212004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7722
7723 * MAINTAINERS (write after approval): Add myself.
7724
8aad930b
AC
77252004-05-12 Andrew Cagney <cagney@redhat.com>
7726
7727 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7728 eliminate reference to step_sp.
7729 (struct execution_control_state, init_execution_control_state)
7730 (handle_inferior_event, keep_going): Delete update_step_sp and
7731 step_sp.
7732 * infcmd.c (step_sp): Note that variable is unused.
7733
922d5ae0
AC
77342004-05-11 Andrew Cagney <cagney@redhat.com>
7735
7736 * infrun.c (step_over_function): Delete function.
7737 (handle_step_into_function): Use insert_step_resume_breakpoint.
7738 (insert_step_resume_breakpoint): Fix assertion.
7739
017c5ca5
NR
77402004-05-11 Nick Roberts <nickrob@gnu.org>
7741
7742 * utils.c (defaulted_query): Just use the normal query input type
7743 when printing the annotations.
7744
42edda50
AC
77452004-05-11 Andrew Cagney <cagney@redhat.com>
7746
7747 * infrun.c (handle_inferior_event): Simplify code handling
7748 step-into or return-from a signal trampoline.
7749
d28b44a7
AC
77502004-05-11 Andrew Cagney <cagney@redhat.com>
7751
7752 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7753 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7754
383f0f5b
JB
77552004-05-10 Jim Blandy <jimb@redhat.com>
7756
d0b57c3a
JB
7757 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7758 with a call to internal_error.
7759
383f0f5b
JB
7760 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7761 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7762 processor variant lacks those registers.
7763 (ppc_floating_point_unit_p): Change description to make it clear
7764 that this returns info about the ISA, not the ABI.
7765 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7766 return true or false by checking tdep->ppc_fp0_regnum and
7767 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7768 arch/mach switching done in rs6000_gdbarch_init; it's better to
7769 keep that logic there, and just check the results here.
7770 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7771 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7772 floating-point registers.
7773 (ppc_supply_fpregset, ppc_collect_fpregset)
7774 (rs6000_push_dummy_call, rs6000_extract_return_value)
7775 (rs6000_store_return_value): Assert that we have floating-point
7776 registers.
7777 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7778 (rs6000_frame_cache): Don't note the locations at which
7779 floating-point registers were saved if we have no fprs.
7780 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7781 registers.
7782 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7783 (store_regs_user_thread, store_regs_kernel_thread): Only call
7784 supply_fprs / fill_fprs if we actually have floating-point
7785 registers.
7786 (special_register_p): Check ppc_fpscr_regnum before matching
7787 against it.
7788 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7789 supply / collect fpscr if we don't have it.
7790 * ppc-bdm.c: #include "gdb_assert.h".
7791 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7792 have floating-point registers, since I can't test this code on
7793 FP-free systems to adapt it.
7794 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7795 fpscr and floating point register numbers if they don't exist.
7796 (fetch_register): Assert that we have floating-point registers
7797 before we reach the code that handles them.
7798 (store_register): Same. And use tdep instead of calling
7799 gdbarch_tdep again.
7800 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7801 don't have them.
7802 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7803 fprs and fpscr if we don't have them.
7804 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7805 don't have them.
7806 * ppcnbsd-nat.c: #include "gdb_assert.h".
7807 (getfpregs_supplies): Assert that we have floating-point registers.
7808 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7809 * ppcobsd-tdep.c: #include "gdb_assert.h".
7810 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7811 have floating-point registers.
7812 * rs6000-nat.c (regmap): Don't match against the fpscr and
7813 floating point register numbers if they don't exist.
7814 (fetch_inferior_registers, store_inferior_registers,
7815 fetch_core_registers): Only fetch / store / supply the
7816 floating-point registers and the fpscr if we have them.
7817 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7818 (ppcobsd-tdep.o): Update dependencies.
7819
15960608
AC
78202004-05-10 Andrew Cagney <cagney@redhat.com>
7821
7822 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7823 (context_switch): Do not switch through_sigtramp_breakpoint.
7824 * gdbthread.h (save_infrun_state, load_infrun_state)
7825 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7826 and structure member.
7827 * thread.c (load_infrun_state, save_infrun_state): Update.
7828
5ab5aa0f
MK
78292004-05-10 Mark Kettenis <kettenis@gnu.org>
7830
7831 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7832
da78b0e7
DJ
78332004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7834
7835 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7836 throughout.
7837 * aclocal.m4: Regenerate.
7838
cca0d3b0
NW
78392004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7840
7841 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7842
d303a6c7
AC
78432004-05-10 Andrew Cagney <cagney@redhat.com>
7844
7845 * infrun.c (check_sigtramp2): Delete function.
7846 (handle_inferior_event): When single stepping, and taking a
7847 signal, set a breakpoint at the signal return address. Delete
7848 redundant calls to check_sigtramp2.
7849 (insert_step_resume_breakpoint): New function.
7850 (through_sigtramp_breakpoint, handle_inferior_event)
7851 (follow_exec, wait_for_inferior, fetch_inferior_event)
7852 (currently_stepping, keep_going): Delete most uses of
7853 through_sigtramp_breakpoint, not that it should be deleted.
7854 (delete_breakpoint_current_contents): Delete function.
7855
03f4cc20
RC
78562004-05-10 Randolph Chung <tausq@debian.org>
7857
7858 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7859 target.
7860 * config/pa/tm-linux.h: New file.
7861
37fc812e
DJ
78622004-05-10 Daniel Jacobowitz <drow@mvista.com>
7863
7864 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7865 of prefixes. Don't print the prefix twice in the CLI.
7866
26c0b942
JB
78672004-05-10 Jim Blandy <jimb@redhat.com>
7868
2e56e9c1
JB
7869 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7870 collect all the gprs.
7871
26c0b942
JB
7872 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7873 loop collecting gprs.
7874
dc497459
AC
78752004-05-09 Andrew Cagney <cagney@redhat.com>
7876
7877 * remote-vx.c (net_step): Delete step-range code.
7878 * remote.c (remote_resume, init_all_packet_configs)
7879 (set_remote_protocol_E_packet_cmd)
7880 (show_remote_protocol_E_packet_cmd)
7881 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7882 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7883 (show_remote_protocol_e_packet_cmd): Ditto.
7884
0543f387
MK
78852004-05-09 Mark Kettenis <kettenis@gnu.org>
7886
c481d1ca
MK
7887 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7888
f626a069
MK
7889 * hppa-tdep.h: Update copyright year.
7890 (struct trad_frame_saved_reg): Add opaque declaration.
7891
6fa57a7d
MK
7892 * amd64-tdep.c (amd64_return_value): Implement
7893 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7894
e47577ab
MK
7895 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7896 (m68k_value_to_register): New functions.
7897 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7898 value_to_register.
7899
31db7b6c
MK
7900 * defs.h (enum return_value_convention): Add
7901 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7902 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7903 * infcmd.c (legacy_return_value): New function.
7904 (print_return_value): Rwerite to implement
7905 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7906 * values.c (using_struct_return): Check for inequality to
7907 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7908 RETURN_VALUE_STRUCT_CONVENTION.
7909 * i386-tdep.c (i386_return_value): Implement
7910 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7911
0543f387
MK
7912 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7913 include "symtab.h", "opcode/vax.h" and "inferior.h".
7914 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7915 to read_memory_unsigned_integer.
7916 (vax_gdbarch_init): Reorder.
7917 (_initialize_vax_tdep): Spell out prototype.
7918 * Makefile.in (vax-tdep.o): Update dependencies.
7919
0c93b7b6
AC
79202004-05-08 Andrew Cagney <cagney@redhat.com>
7921
e6b55ae2
AC
7922 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7923 * target.c (target_detach, target_disconnect): Ditto.
7924
1ac839b8
AC
7925 * infcall.c (call_function_by_hand): When no
7926 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7927 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7928 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7929 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7930 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7931
28954179
AC
7932 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7933 * gdbarch.h, gdbarch.c: Re-generate.
7934 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7935 deprecated_fix_call_dummy.
7936 * v850-tdep.c (v850_gdbarch_init): Ditto.
7937 * infcall.c (call_function_by_hand): Do not call
7938 DEPRECATED_FIX_CALL_DUMMY.
7939
434b87dd
AC
7940 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7941 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7942 * gdbarch.h, gdbarch.c: Re-generate.
7943 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7944 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7945 deprecated_sizeof_call_dummy_words.
7946 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7947 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7948 * v850-tdep.c (v850_gdbarch_init): Ditto.
7949 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7950 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7951 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7952 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7953 * arch-utils.h (legacy_call_dummy_words)
7954 (legacy_sizeof_call_dummy_words): Delete declarations.
7955 * arch-utils.c (legacy_call_dummy_words)
7956 (legacy_sizeof_call_dummy_words): Delete variables.
7957
58d28df8
AC
7958 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7959 * gdbarch.h, gdbarch.c: Re-generate.
7960 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7961 * infcall.c (call_function_by_hand): Eliminate call to
7962 DEPRECATED_PUSH_DUMMY_FRAME.
7963 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7964 push_dummy_frame.
7965 (ns32k_push_dummy_frame): Delete function.
7966
e4a2df64
AC
7967 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7968 deprecated_call_dummy_breakpoint_offset or
7969 deprecated_call_dummy_start_offset.
7970 * dummy-frame.c, arm-tdep.c: Update comments.
7971 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7972 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7973 * gdbarch.h, gdbarch.c: Re-generate.
7974
d3712828
AC
7975 * infcall.c (legacy_push_dummy_code): Delete function.
7976 (push_dummy_code): Delete call.
7977
7a882905
AC
7978 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7979 * gdbarch.h, gdbarch.c: Re-generate.
7980 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7981 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7982 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7983 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7984
0ec5872b
AC
7985 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7986 (struct frame_info): Delete opaque declaration.
7987 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7988 * frame.c (get_frame_type): Delete call.
7989
0c93b7b6
AC
7990 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7991 pc_in_call_dummy.
7992 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7993 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7994
75536971
MK
79952004-05-08 Mark Kettenis <kettenis@gnu.org>
7996
527ca6bb
MK
7997 * alphanbsd-tdep.c: Include "gdb_string.h".
7998 * armnbsd-tdep.c: Update copyright year.
7999 Include "gdb_string.h".
8000 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8001 dependencies.
8002
d39fdc61
MK
8003 * delta68-nat.c: Remove file.
8004 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8005 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8006 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8007 (delta68-nat.o): Remove dependency.
8008
75536971
MK
8009 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8010 function.
8011 (m68k_gdbarch_init): Don't set
8012 deprecated_frameless_function_invocation.
8013
f4ca1d1f
RC
80142004-05-07 Randolph Chung <tausq@debian.org>
8015
8016 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8017 read_memory_nobpt for code reading when doing frame unwinding.
8018 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8019
2f0e8c7a
RC
80202004-05-07 Randolph Chung <tausq@debian.org>
8021
8022 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8023 instead of sp, handle sigaltstack case.
8024 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8025 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8026 signal handler and not that of the caller.
8027 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8028 hppa_linux_sigtramp_find_sigcontext.
8029
959464ff
RC
80302004-05-07 Randolph Chung <tausq@debian.org>
8031
8032 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8033 hppa-linux-nat.c.
8034 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8035 * hppa-linux-nat.c (fetch_register, store_register): Define.
8036 (fetch_inferior_registers, store_inferior_registers): Define.
8037 (supply_gregset): Add comment and clean up some unneeded code.
8038 (fill_gregset): Add comment and fix so that it saves registers in
8039 the right place in the gregset.
8040 (fill_fpregset): Fix buffer overrun problem.
8041 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8042
0da28f8a
RC
80432004-05-07 Randolph Chung <tausq@debian.org>
8044
8045 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8046 do common handling of the pcoqt register.
8047 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8048 to use helper function.
8049 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8050 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8051 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8052 generic fallback unwinder when all else fails.
8053 (hppa_gdbarch_init): Add fallback sniffer.
8054 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8055 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8056 to use helper function.
8057
b9ec757a
JB
80582004-05-08 Joel Brobecker <brobecker@gnat.com>
8059
8060 * config/djgpp/fnchange.lst: Add translation rules for
8061 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8062
756e95f1
MK
80632004-05-08 Mark Kettenis <kettenis@gnu.org>
8064
8065 * frame.c (get_prev_frame_1): Work around GCC bug.
8066 * frame.h: Add comment about GCC bug.
8067
2b4855ab
AC
80682004-05-07 Andrew Cagney <cagney@redhat.com>
8069
8070 * observer.c: Include "commands.h" and "gdbcmd.h".
8071 (observer_debug, _initialize_observer): Add the
8072 command "set/show debug observer".
8073 * observer.sh: When observer debugging, log notify calls.
8074 * Makefile.in (observer.o): Update dependencies.
8075
ba3e8e46
JM
80762004-05-07 Jason Molenda (jmolenda@apple.com)
8077
8078 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8079
16796152
JB
80802004-05-07 Jim Blandy <jimb@redhat.com>
8081
daf6dc85
JB
8082 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8083 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8084 to recognize gpr regnums, instead of assuming that
8085 tdep->ppc_fp0_regnum marks the end of the general-purpose
8086 registers.
8087
16796152
JB
8088 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8089 the given architecture has floating-point registers.
8090
c69b8bfc
AC
80912004-05-07 Andrew Cagney <cagney@redhat.com>
8092
8093 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8094 macro defined to 1.
8095 * gdbarch.h, gdbarch.c: Re-generate.
8096 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8097 deprecated_use_generic_dummy_frames.
8098
7243600a
BF
80992004-05-07 Brian Ford <ford@vss.fsi.com>
8100
8101 * NEWS: Mention Cygwin DWARF 2 support.
8102
73c1e0a1
AC
81032004-05-07 Andrew Cagney <cagney@redhat.com>
8104
8105 * objfiles.h (struct entry_info): Delete unused fields
8106 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8107 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8108 * mipsread.c (mipscoff_symfile_read): Update.
8109 * mdebugread.c (parse_partial_symbols): Update.
8110 * dwarfread.c (read_file_scope): Update.
8111 * dwarf2read.c (read_file_scope): Update.
8112 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8113 * coffread.c (complete_symtab): Update.
8114
1d3056ac
MK
81152004-05-07 Mark Kettenis <kettenis@gnu.org>
8116
8117 * infcall.c (_initialize_infcall): Fix typo.
8118
15170568
AC
81192004-05-07 Andrew Cagney <cagney@redhat.com>
8120
8121 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8122 * command.h (add_setshow_zinteger_cmd): Declare.
8123
34f75cc1
RC
81242004-05-06 Randolph Chung <tausq@debian.org>
8125
8126 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8127 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8128 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8129 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8130 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8131 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8132 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8133 definitions ...
8134 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8135 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8136 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8137 (hppa64_hpux_frame_find_saved_regs_in_sig)
8138 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8139 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8140 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8141 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8142 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8143 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8144 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8145 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8146 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8147 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8148 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8149 (hppa32_register_type, hppa_cannot_store_register)
8150 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8151 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8152 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8153 * pa64solib.c (pa64_solib_have_load_event)
8154 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8155 (pa64_solib_unloaded_library_pathname): Likewise.
8156 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8157 (som_solib_library_pathname): Likewise.
8158
0a5e7efe
JI
81592004-05-05 Jim Ingham <jingham@apple.com>
8160
8161 * breakpoint.c (create_breakpoints): Copy the ignore count and
8162 thread id over from the pended breakpoint to the actual
8163 breakpoint.
8164
10a4b113
AC
81652004-05-05 Andrew Cagney <cagney@redhat.com>
8166
8167 * gdbarch.sh (PARM_BOUNDARY): Delete.
8168 gdbarch.h, gdbarch.c: Re-generate.
8169 * valops.c (PARM_BOUNDARY): Delete macro.
8170 (value_push): Delete PARM_BOUNDARY code.
8171 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8172
366f009f
JB
81732004-05-04 Jim Blandy <jimb@redhat.com>
8174
32b99774
JB
8175 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8176 Don't assume that the gprs, fprs, and UISA sprs are
8177 contiguous, start at register number zero, and end with fpscr.
8178 Instead, use the numbers from the tdep structure.
8179
366f009f
JB
8180 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8181 should no longer be used in code specific to the RS6000 and its
8182 derivatives.
8183 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8184 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8185 tdep->ppc_fp0_regnum.
8186 (ppc_supply_fpregset, ppc_collect_fpregset)
8187 (rs6000_push_dummy_call, rs6000_extract_return_value)
8188 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8189 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8190 FP0_REGNUM.
8191 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8192 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8193 Same.
8194 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8195 bdm_ppc_store_registers): Same.
8196 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8197 (store_register, fill_fpregset): Same.
8198 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8199 (ppc_linux_supply_fpregset): Same.
8200 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8201 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8202 Same.
8203 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8204 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8205 ppc64_sysv_abi_return_value): Same.
8206 * rs6000-nat.c (regmap, fetch_inferior_registers)
8207 (store_inferior_registers, fetch_core_registers): Same.
8208
827f338d
MK
82092004-05-01 Mark Kettenis <kettenis@gnu.org>
8210
8211 * m68knbsd-nat.c: Remove file.
8212 * m68knbsd-tdep.c: Remove file.
8213 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8214 dependencies.
8215 * configure.host: Add m68k-*-netbsdelf*.
8216 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8217 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8218 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8219 (XM_FILE): Remove.
8220 * config/m68k/nbsdelf.mh: New file.
8221 * config/m68k/nbsd.mt: New file.
8222 * config/m68k/nbsdaout.mt: Remove file.
8223 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8224 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8225 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8226 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8227 (use_struct_convention): Remove prototype.
8228 (USE_STRUCT_CONVENTION): Remove define.
8229 * config/m68k/xm-nbsd.h: Remove file.
8230
66894781
MS
82312004-05-04 Michael Snyder <msnyder@redhat.com>
8232
8233 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8234 reg_struct_return method (as gcc usually does for cross targets).
8235
f0f63663
AC
82362004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8237
8238 Committed by Andrew Cagney.
8239 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8240 alignment padding when accessing ucontext struct members.
8241
edf61169
JB
82422004-05-04 Jim Blandy <jimb@redhat.com>
8243
8bf659e8
JB
8244 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8245 'ppc_gplast_regnum' member.
8246 (ppc_num_gprs): New enum constant.
8247 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8248 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8249 * rs6000-nat.c (regmap, fetch_inferior_registers,
8250 store_inferior_registers): Same.
8251 * rs6000-tdep.c (e500_pseudo_register_read)
8252 (e500_pseudo_register_write): Same.
8253 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8254
b967e06f
JB
8255 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8256 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8257 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8258 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8259 FPLAST_REGNUM.
8260 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8261 Same.
8262 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8263 * rs6000-nat.c (regmap, fetch_inferior_registers)
8264 (store_inferior_registers): Same.
8265
edf61169
JB
8266 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8267 with FPLAST_REGNUM.
8268
58a9656e
JB
82692004-05-03 Joel Brobecker <brobecker@gnat.com>
8270
8271 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8272 failure detected by recent versions of GCC.
8273 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8274 to be consistent with the usage in dwarf2_create_include_psymtab.
8275
dc305454
MS
82762004-05-03 Michael Snyder <msnyder@redhat.com>
8277
8278 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8279 (heuristic_proc_start): Whitespace cleanup.
8280
29972665
MK
82812004-05-04 Mark Kettenis <kettenis@gnu.org>
8282
6b57680d
MK
8283 * sun3-nat.c: Remove file.
8284 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8285 dependencies.
8286 (ALLDEPFILES): Remove sun3-nat.c.
8287 (sun3-nat.o): Remove dependencies.
8288
29972665
MK
8289 * i386-interix-nat.c, i386-interix-tdep.c,
8290 config/i386/nm-interix.h, config/i386/interix.mh,
8291 config/i386/interix.mt: Remove files.
8292 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8293 dependencies.
8294
f595cb19
MK
82952004-05-03 Mark Kettenis <kettenis@gnu.org>
8296
8297 * m68k-tdep.h (struct gdbarch_tdep): Add member
8298 struct_value_regnum.
8299 (m68k_svr4_init_abi): New prototype.
8300 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8301 different calling conventions.
8302 (m68k_extract_return_value): Remove code dealing with single-field
8303 structs.
8304 (m68k_store_return_value): Remove code dealing with single-field
8305 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8306 (m68k_extract_struct_value_address): Remove function.
8307 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8308 (m68k_reg_struct_return_p, m68k_return_value)
8309 (m68k_svr4_return_value): New functions.
8310 (m68k_use_struct_convention): Remove function.
8311 (m68k_push_dummy_call): Use new struct_value_regnum member of
8312 `struct gdbarch_tdep' instead of hardcoded register number to
8313 store STRUCT_ADDR.
8314 (m68k_svr4_init_abi): New function.
8315 (m68k_gdbarch_init): Don't set extract_return_value,
8316 store_return_values, deprecated_extract_struct_value_address and
8317 use_struct_convention. Set return_value instead. Initialize new
8318 struct_value_regnum member of `struct gdbarch_tdep'.
8319 * m68klinux-tdep.c: Update copyright year.
8320 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8321 (m68k_linux_extract_struct_value_address): Remove function.
8322 (m68k_linux_init_abi): Don't set extract_return_value,
8323 store_return_values, deprecated_extract_struct_value_address and
8324 use_struct_convention. Call m68k_svr4_init_abi but override the
8325 new struct_value_regnum member of `struct gdbarch_tdep'.
8326 * Makefile.in (m68k-tdep.o): Update dependencies.
8327
aaa75496
JB
83282004-05-03 J. Brobecker <brobecker@gnat.com>
8329
8330 * dwarf2read.c (line_header): Add new included_p field in
8331 field file_names.
8332 (partial_die_info): New field has_stmt_list. New field line_offset.
8333 (dwarf2_create_include_psymtab): New function.
8334 (dwarf2_build_include_psymtabs): New function.
8335 (add_file_name): Add forward declaration. Initialize new field.
8336 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8337 to be able to determine the list of files included by the
8338 given unit, and build their associated psymtabs.
8339 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8340 files as well.
8341 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8342 (read_file_scope): Update call to dwarf_decode_lines.
8343 (read_partial_die): Handle DW_AT_stmt_list attributes.
8344
c848556f
MC
83452004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8346
8347 Unfix PR gdb/1626.
8348 * configure.in: Revert special case for osf5.*.
8349 * configure: Regenerate.
8350
eb4556d7
JB
83512004-05-02 Jim Blandy <jimb@redhat.com>
8352
8353 Move the symbol-file-from-memory functions into their own file.
8354 * symfile-mem.c, symfile-mem.h: New files.
8355 * symfile.c (symbol_file_add_from_bfd): New function.
8356 (symbol_file_add): Call symbol_file_add_from_bfd.
8357 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8358 Moved to symfile-mem.c.
8359 (_initialize_symfile): Move definition of
8360 add-symbol-file-from-memory command to symfile-mem.c.
8361 * symfile.h (symbol_file_add_from_bfd): New declaration.
8362 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8363 * config/powerpc/linux.mt (TDEPFILES): Same.
8364 * Makefile.in (SFILES): Add symfile-mem.c.
8365 (symfile_mem_h): New variable.
8366 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8367 (symfile-mem.o): New rule.
8368
80bb239e
AC
83692004-05-01 Andrew Cagney <cagney@redhat.com>
8370
7789d0fa
AC
8371 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8372 frame_find_by_id instead of frame_relative_level.
8373 (do_enable_breakpoint): Ditto.
8374 * thread.c: Update copyright.
8375 (info_threads_command): Ditto, simplify.
8376
80bb239e
AC
8377 * frame.c (deprecated_generic_get_saved_register): Delete
8378 function, moved to "xstormy16-tdep.c".
8379 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8380 deprecated_generic_get_saved_register from "frame.c".
8381 (xstormy16_frame_saved_register): Call
8382 xstormy16_get_saved_register.
8383 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8384 static.
8385 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8386 * frame.h (deprecated_generic_get_saved_register): Delete.
8387
b2a871dd
MC
83882004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8389
8390 * dwarfread.c: Update documentation on the state of dwarf-1.
8391
0e100dab
AC
83922004-05-01 Andrew Cagney <cagney@redhat.com>
8393
acd8056e
AC
8394 * stack.c (select_frame_command): Delete call to
8395 frame_relative_level.
8396 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8397 Delete #if0 code.
8398 (frame_info): Do not print FRAMELESS.
8399 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8400 (catch_info): Delete #if0 code.
8401
0e100dab
AC
8402 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8403 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8404 of frame_relative_level.
8405 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8406 to SENTINEL_FRAME.
8407 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8408 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8409 frame_relative_level.
8410
55699d59
AC
8411 * frame.h (deprecated_set_frame_type): Delete declaration.
8412 * frame.c (deprecated_set_frame_type): Delete function, update
8413 comments.
8414
fcf70625
AC
8415 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8416 * gdbarch.h, gdbarch.c: Re-generate.
8417 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8418 (shnbsd_pc_in_sigtramp): Delete.
8419 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8420 pc_in_sigtramp.
8421 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8422 pc_in_sigtramp.
8423 * frame.h: Update comments.
8424 * ppc-linux-tdep.c: Update comments.
8425 * breakpoint.c (bpstat_what): Update comments.
8426
ac5eccb7
AC
8427 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8428 m68klinux-tdep.o's dependencies, were previously added to
8429 m68klinux-nat.o.
8430
f2524b93
AC
8431 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8432 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8433 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8434 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8435 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8436
17e20bce
AC
8437 * Makefile.in (m68klinux-nat.o): Update dependencies.
8438 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8439 (m68k_linux_sigtramp_frame_cache)
8440 (m68k_linux_sigtramp_frame_this_id)
8441 (m68k_linux_sigtramp_frame_prev_register)
8442 (m68k_linux_sigtramp_frame_unwind)
8443 (m68k_linux_sigtramp_frame_sniffer)
8444 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8445 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8446 names, use trad-frame.h.
8447 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8448 (struct m68k_sigtramp_info): Delete.
8449 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8450 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8451 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8452 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8453 "m68klinux-tdep.c".
8454
c8864fa2
AC
8455 * infrun.c (check_sigtramp2): Delete check for
8456 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8457
511dd2cd
MK
84582004-05-01 Mark Kettenis <kettenis@gnu.org>
8459
8460 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8461
8c6b0e06
AC
84622004-05-01 Andrew Cagney <cagney@redhat.com>
8463
9df0bb3f
AC
8464 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8465 (frv_linux_sigtramp_frame_cache)
8466 (frv_linux_sigtramp_frame_this_id)
8467 (frv_linux_sigtramp_frame_prev_register)
8468 (frv_linux_sigtramp_frame_unwind)
8469 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8470 include "linux" in function and variable names, directly call
8471 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8472 the latest trad-frame code.
8473 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8474 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8475 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8476 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8477 * frv-tdep.c (frv_sigtramp_frame_cache)
8478 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8479 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8480 frv-linux-tdep.c.
8481 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8482 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8483 (frv_set_sigcontext_reg_addr): Delete function.
8484
8c6b0e06
AC
8485 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8486 (DEPRECATED_SIGTRAMP_END): Delete.
8487 * gdbarch.h, gdbarch.c: Re-generate.
8488 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8489 * config/vax/tm-vaxbsd.h: Update copyright.
8490 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8491 (DEPRECATED_IN_SIGTRAMP): Define.
8492 * config/m68k/tm-nbsd.h: Update copyright.
8493 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8494 (DEPRECATED_IN_SIGTRAMP): Define.
8495
50ea7769
MK
84962004-05-01 Mark Kettenis <kettenis@gnu.org>
8497
03ac2a74
MK
8498 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8499 encondings. Fixes PR gdb/1628.
8500
50ea7769
MK
8501 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8502 DW_CFA_restore state without a matching DW_CFA_remember_state
8503 instead of aborting. Fixes PR backtrace/1589.
8504
9a5d7be1
JB
85052004-04-30 Joel Brobecker <brobecker@gnat.com>
8506
8507 * MAINTAINERS: Add self as AIX maintainer.
8508 Update my e-mail address in write-after-approval section.
8509
2593d1cd
AC
85102004-04-30 Andrew Cagney <cagney@redhat.com>
8511
ce12bbf9
AC
8512 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8513 (legacy_get_prev_frame): Ditto.
8514
36710c63
AC
8515 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8516 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8517 * mipsread.c (sigtramp_address): Delete extern variable.
8518 (mipscoff_new_init): Delete reference.
8519 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8520 (fixup_sigtramp): Delete function.
8521 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8522 (fixup_sigtramp): Delete declarations.
8523
2593d1cd
AC
8524 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8525 deprecated_pc_in_sigtramp.
8526 (ppcnbsd_pc_in_sigtramp): Delete function.
8527
2a25f91c
MK
85282004-05-01 Mark Kettenis <kettenis@gnu.org>
8529
8530 * config/m68k/nm-nbsd.h: Tweak comments.
8531 * config/m68k/nm-nbsdaout.h: Likewise.
8532
0b281939
AC
85332004-04-30 Andrew Cagney <cagney@redhat.com>
8534
8535 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8536 legacy_pc_in_sigtramp.
8537 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8538
8f2d3ea0
MK
85392004-05-01 Mark Kettenis <kettenis@gnu.org>
8540
8541 Add OpenBSD/m68k support.
8542 * NEWS (New native configurations): Mention OpenBSD/m68k.
8543 * m68kbsd-tdep.c: New file.
8544 * m68kbsd-nat.c: New file.
8545 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8546 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8547 * configure.host: Add m68k-*-openbsd.
8548 * configure.tgt: Add m68k-*-openbsd.
8549 * config/m68k/tm-obsd.h: New file.
8550 * config/m68k/obsd.mt: New file.
8551 * config/m68k/obsd.mh: New file.
8552 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8553 m68kbsd-tdep.c.
8554
c40f49a4
AC
85552004-04-30 Andrew Cagney <cagney@redhat.com>
8556
8557 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8558 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8559
e81554cd
MK
85602004-04-30 Mark Kettenis <kettenis@gnu.org>
8561
8562 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8563 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8564
d4dc1a91
BF
85652004-04-30 Brian Ford <ford@vss.fsi.com>
8566
8567 Revert 2004-04-16 change.
8568 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8569 (i386_coff_init_abi): Remove.
8570 * i386-tdep.h (i386_coff_init_abi): Remove.
8571 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8572
2f72f850
AC
85732004-04-30 Andrew Cagney <cagney@redhat.com>
8574
e492f9d6
AC
8575 * blockframe.c (find_pc_partial_function): Delete use of
8576 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8577 DEPRECATED_SIGTRAMP_END.
8578
7b7adad0
AC
8579 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8580 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8581 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8582 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8583 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8584
2f72f850
AC
8585 * defs.h (deprecated_inside_entry_file): Delete declaration.
8586 * blockframe.c (deprecated_inside_entry_file): Delete function.
8587 (legacy_frame_chain_valid): Delete call.
8588 * sh64-tdep.c (sh64_frame_chain): Delete call.
8589 * objfiles.h: Update comments.
8590 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8591 call.
8592 * frame.c (get_prev_frame): Delete call, update comments.
8593
283f90a7
BF
85942004-04-30 Brian Ford <ford@vss.fsi.com>
8595
8596 * MAINTAINERS (Write After Approval): Add myself.
8597
8ee56bcf
AC
85982004-04-30 Andrew Cagney <cagney@redhat.com>
8599
8600 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8601 * gdbarch.h, gdbarch.c: Re-generate.
8602 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8603 code.
8604
ee27e1b6
AC
86052004-04-30 Andrew Cagney <cagney@redhat.com>
8606
8607 * gdb-events.sh (selected_thread_changed)
8608 (selected_frame_level_changed, target_changed): Delete.
8609 * gdb-events.h, gdb-events.c: Re-generate.
8610 * valops.c (value_assign): Update.
8611 * stack.c (select_frame_command, up_silently_base)
8612 (down_silently_base): Update.
8613
d5ac5a39
AC
86142004-04-29 Andrew Cagney <cagney@redhat.com>
8615
8616 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8617 registers correctly.
8618 (print_gp_register_row, mips32_heuristic_proc_desc)
8619 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8620 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8621 references to mips_isa_regsize.
8622
ceae6e75
AC
86232004-04-29 Andrew Cagney <cagney@redhat.com>
8624
8625 * mips-tdep.c (struct gdbarch_tdep): Delete
8626 mips_fp_register_double.
8627 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8628 mips_abi_regsize.
8629 (mips_gdbarch_init): Do not set mips_fp_register_double.
8630 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8631
a587af0b
AC
86322004-04-29 Joel Brobecker <brobecker@gnat.com>
8633
8634 Committed by Andrew Cagney.
8635 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8636 function calls.
8637
13326b4e
AC
86382004-04-29 Andrew Cagney <cagney@redhat.com>
8639
8640 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8641 gdbarch, use mips_abi, update callers.
8642 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8643 mips_abi_regsize, update callers.
8644 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8645 mips_default_abi_regsize.
8646 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8647 mips_default_abi_regsize.
8648
711cc5cd
AC
86492004-04-29 Andrew Cagney <cagney@redhat.com>
8650
1b13c4f6
AC
8651 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8652 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8653 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8654 mips_default_abi_regsize.
8655 (mips_isa_regsize): Rename mips_regisze.
8656 * mipsnbsd-tdep.c: Update.
8657 * mips-linux-tdep.c: Update.
8658 * irix5-nat.c: Update.
8659 * mips-tdep.h (mips_isa_regsize): Update.
8660
711cc5cd
AC
8661 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8662 Delete all disabled code.
8663 * gdb-events.h, gdb-events.c: Re-generate.
8664
e63bbc88
MK
86652004-04-19 Jerome Guitton <guitton@gnat.com>
8666 Mark Kettenis <kettenis@gnu.org>
8667
8668 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8669 the function begins with a branch instruction.
8670
fd35795f
MK
86712004-04-29 Mark Kettenis <kettenis@gnu.org>
8672
8673 * i386-tdep.c: Fix spelling mistakes.
8674
c960c18f
AC
86752004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8676 Andrew Cagney <cagney@redhat.com>
8677
8678 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8679 <sys/proc.h>.
8680 * acconfig.h: Provide default _KMEMUSER value.
8681 * config.in, configure: Re-generate.
8682 * NEWS: Mention fix.
8683
50306a9d
RC
86842004-04-24 Randolph Chung <tausq@debian.org>
8685
8686 * configure.host (hppa*-*-linux*): New target.
8687 * configure.tgt (hppa*-*-linux*): Likewise.
8688 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8689 gdbarch_init_osabi() call earlier so that osabi-specific frame
8690 unwinders can be registered first.
8691 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8692 hppa-linux-nat.c.
8693 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8694 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8695 * config/pa/linux.mh: New file.
8696 * config/pa/linux.mt: New file.
8697 * config/pa/nm-linux.h: New file.
8698 * config/pa/xm-linux.h: New file.
8699 * hppa-linux-nat.c: New file.
8700 * hppa-linux-tdep.c: New file.
8701
2a6228ef
RC
87022004-04-28 Randolph Chung <tausq@debian.org>
8703
8704 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8705 return values.
8706 (hppa32_push_dummy_call): Fix small struct and floating point argument
8707 passing, and make sure the stack frame is properly aligned.
8708
82c10df6
AC
87092004-04-28 Andrew Cagney <cagney@redhat.com>
8710
d762c46a
AC
8711 * stack.c (print_stack_frame): Fix description.
8712
82c10df6
AC
8713 * NEWS: Mention gdb/gdbserver/configure execute permission
8714 changed. PR server/519.
8715
0faf0076
AC
87162004-04-28 Andrew Cagney <cagney@redhat.com>
8717
8718 * stack.c (print_stack_frame_stub): Delete declaration.
8719 (struct print_stack_frame_args, print_stack_frame)
8720 (print_frame_info, print_frame): Replace "source" with print what.
8721 Replace "print" with "print_level". Replace "args" with
8722 "print_args".
8723 * frame.h (show_and_print_stack_frame, print_stack_frame)
8724 (print_frame_info): Update declarations.
8725 * stack.c (select_and_print_frame, frame_command)
8726 (current_frame_command, up_command, down_command): Update calls -
8727 use get_selected_frame, pass "enum print_what" for source, do not
8728 call frame_relative_level.
8729 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8730 * remote-rdp.c (remote_rdp_open): Ditto.
8731 * remote-mips.c (common_open): Ditto.
8732 * remote-e7000.c (e7000_start_remote): Ditto.
8733 * ocd.c (ocd_start_remote): Ditto.
8734 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8735 * infrun.c (normal_stop): Ditto.
8736 * inflow.c (kill_command): Ditto.
8737 * infcmd.c (finish_command): Ditto.
8738 * corelow.c (core_open): Ditto.
8739 * tracepoint.c (finish_tfind_command): Ditto.
8740 * thread.c (info_threads_command, info_threads_command)
8741 (restore_current_thread, do_captured_thread_select): Ditto.
8742 * ada-tasks.c (task_command): Ditto.
8743
f4c5303c
OF
87442004-04-26 Orjan Friberg <orjanf@axis.com>
8745
8746 * frame.c: Include "observer.h".
8747 (frame_observer_target_changed): New function.
8748 (_initialize_frame): Attach target_changed observer.
8749 * regcache.c: Include "observer.h".
8750 (regcache_observer_target_changed): New function.
8751 (_initialize_regcache): Attach target_changed observer.
8752 * valops.c: Include "observer.h".
8753 (value_assign): Notify target_changed event when modifying register.
8754 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8755
7270d8f2
OF
87562004-04-26 Orjan Friberg <orjanf@axis.com>
8757
8758 From Paul Koning <pkoning@equallogic.com>:
8759 * breakpoint.c (free_valchain): New function.
8760 (insert_bp_location, delete_breakpoint): Use free_valchain.
8761 (remove_breakpoint): Do not remove the valchain.
8762 (bpstat_stop_status): If not stopped by watchpoint, skip
8763 watchpoints when generating stop status list.
8764 * infrun.c (handle_inferior_event): Make
8765 stepped_after_stopped_by_watchpoint a global variable.
8766 * remote.c (remote_stopped_data_address): Return watch data
8767 address rather than zero if stepped_after_stopped_by_watchpoint is
8768 set.
8769
02d62932
MC
87702004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8771
8772 Fix PR gdb/1626.
8773 * configure.in: Check for curses after termcap.
8774 On osf5.*, do not check for ncurses.
8775 * configure: Regenerate.
8776
3e9a183c
MK
87772004-04-25 Mark Kettenis <kettenis@gnu.org>
8778
c79ac407
MK
8779 * ppcobsd-nat.c: Include "ppc-tdep.h".
8780 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8781
3e9a183c
MK
8782 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8783 Fixes PR tdep/1623 and PR tdep/1624.
8784
38cc9c28
MC
87852004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8786
8787 * xmodem.h, xmodem.c: Remove files.
8788 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8789
7f07c5b6
RC
87902004-04-23 Randolph Chung <tausq@debian.org>
8791
8792 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8793 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8794 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8795 for handling stackless frames.
8796 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8797
9f7194c3
RC
87982004-04-23 Randolph Chung <tausq@debian.org>
8799
8800 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8801 starts at a pc before the frame is created.
8802
dcff6009
JB
88032004-04-23 Joel Brobecker <brobecker@gnat.com>
8804
8805 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8806
40711ff1 88072004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8808
8809 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8810 use convert_typed_floating to get the appropriate format.
8811
abc485a1
RC
88122004-04-22 Randolph Chung <tausq@debian.org>
8813
8814 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8815 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8816 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8817 (hppa_sign_extend): Add prototype.
8818 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8819 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8820 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8821 hppa targets will also use these functions.
8822 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8823 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8824 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8825 (hppa_gdbarch_init): Remove gdbarch setting of
8826 skip_trampoline_code, in_solib_call_trampoline and
8827 in_solib_return_trampoline.
8828 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8829 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8830 hppa_in_solib_call_trampoline.
8831 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8832 Moved from hppa-tdep.c.
8833 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8834 in_solib_call_trampoline and in_solib_return_trampoline.
8835
369aa520
RC
88362004-04-22 Randolph Chung <tausq@debian.org>
8837
8838 * hppa-tdep.c (hppa_debug): New variable.
8839 (find_unwind_entry, hppa_frame_cache): Add debug output.
8840 (_initialize_hppa_tdep): Add command to set debug flag.
8841
476be15e
AC
88422004-04-22 Andrew Cagney <cagney@redhat.com>
8843
8844 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8845 "trad-frame.h".
8846 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8847 signal trampoline unwinder.
8848 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8849
d195bc9f
MK
88502004-04-22 Mark Kettenis <kettenis@gnu.org>
8851
8852 Add OpenBSD/powerpc support.
8853 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8854 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8855 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8856 (ppc_collect_fpregset): New prototypes.
8857 * ppcobsd-nat.c: New file.
8858 * ppcobsd-tdep.c: New file.
8859 * ppcobsd-tdep.h: New file.
8860 * rs6000-tdep.c: Include "regset.h".
8861 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8862 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8863 New functions.
8864 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8865 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8866 (rs6000-tdep.o): Update dependencies.
8867 * configure.host: Add powerpc-*-openbsd.
8868 * configure.tgt: Add powerpc-*-openbsd.
8869 * config/powerpc/obsd.mh: New file.
8870 * config/powerpc/nm-obsd.h: New file.
8871 * config/powerpc/obsd.mt: New file.
8872
6f14cc33
AC
88732004-04-22 Andrew Cagney <cagney@redhat.com>
8874
fcf29e5f
AC
8875 * frame.h (show_frame_info): Delete declaration.
8876
6f14cc33
AC
8877 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8878 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8879 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8880 * frv-tdep.c (frv_frame_this_id): Ditto.
8881 * avr-tdep.c (avr_frame_this_id): Ditto.
8882
e5786a5c
EZ
88832004-04-22 Elena Zannoni <ezannoni@redhat.com>
8884
8885 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8886
26e75e5c
JB
88872004-04-22 Jim Blandy <jimb@redhat.com>
8888
8889 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8890 register number zero.
8891
d8d65dd3
MS
88922004-04-21 Michael Snyder <msnyder@redhat.com>
8893
8894 * mips-tdep.c (heuristic_proc_start):
8895 Warning() already prefixes "Warning: ".
8896
9a4105ab
AC
88972004-04-21 Andrew Cagney <cagney@redhat.com>
8898
8899 * annotate.h (deprecated_annotate_starting_hook)
8900 (deprecated_annotate_stopped_hook)
8901 (deprecated_annotate_exited_hook)
8902 (deprecated_annotate_signal_hook)
8903 (deprecated_annotate_signalled_hook): Deprecate.
8904 * tracepoint.h (deprecated_create_tracepoint_hook)
8905 (deprecated_delete_tracepoint_hook)
8906 (deprecated_modify_tracepoint_hook)
8907 (deprecated_trace_find_hook)
8908 (deprecated_trace_start_stop_hook): Deprecate.
8909 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8910 * remote.h (deprecated_target_resume_hook)
8911 (deprecated_target_wait_loop_hook): Deprecate.
8912 * gdbcore.h (deprecated_exec_file_display_hook)
8913 (deprecated_file_changed_hook): Deprecate.
8914 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8915 * defs.h (deprecated_modify_breakpoint_hook)
8916 (deprecated_command_loop_hook, deprecated_show_load_progress)
8917 (deprecated_print_frame_info_listing_hook)
8918 (deprecated_query_hook, deprecated_warning_hook)
8919 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8920 (deprecated_delete_breakpoint_hook)
8921 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8922 (deprecated_readline_begin_hook, deprecated_readline_hook)
8923 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8924 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8925 (deprecated_context_hook, deprecated_target_wait_hook)
8926 (deprecated_attach_hook, deprecated_detach_hook)
8927 (deprecated_call_command_hook, deprecated_set_hook)
8928 (deprecated_error_hook, deprecated_error_begin_hook)
8929 (deprecated_ui_load_progress_hook): Deprecate.
8930 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8931 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8932 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8933 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8934 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8935 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8936 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8937 * annotate.c, aix-thread.c: Update.
8938
62cf13cc
AC
89392004-04-21 Andrew Cagney <cagney@redhat.com>
8940
b2e31a62
AC
8941 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8942 * vaxnbsd-tdep.c: Include "gdb_string.h".
8943
62cf13cc
AC
8944 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8945 (add_symbol_file_from_memory_command): #if 0 function body, call
8946 error instead.
8947
00e32a35
AC
89482004-04-21 Andrew Cagney <cagney@redhat.com>
8949
8950 * gdbcore.h: Update copyright.
8951 (deprecated_add_core_fns): Rename add_core_fns.
8952 * win32-nat.c (_initialize_core_win32): Update.
8953 * sun3-nat.c (_initialize_core_sun3): Update.
8954 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8955 * rs6000-nat.c (_initialize_core_rs6000): Update.
8956 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8957 * nto-tdep.c (_initialize_nto_tdep): Update.
8958 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8959 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8960 * mips-nat.c (_initialize_core_mips): Update.
8961 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8962 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8963 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8964 * lynx-nat.c (_initialize_core_lynx): Update.
8965 * irix5-nat.c (_initialize_core_irix5): Update.
8966 * i386-interix-nat.c (_initialize_core_interix): Update.
8967 * cris-tdep.c (_initialize_cris_tdep): Update.
8968 * corelow.c (deprecated_add_core_fns): Update.
8969 * core-regset.c (_initialize_core_regset): Update.
8970 * core-aout.c (_initialize_core_aout): Update.
8971 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8972 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8973 * alpha-nat.c (_initialize_core_alpha): Update.
8974
13c7b1ca
JB
89752004-04-21 Jim Blandy <jimb@redhat.com>
8976
8977 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8978
7b5a2f43
DJ
89792004-04-19 Daniel Jacobowitz <drow@mvista.com>
8980
8981 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8982 Delete.
8983 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8984 (read_attribute_value): Update calls to dwarf_alloc_block.
8985 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8986 dwarf2_tmp_obstack.
8987 (psymtab_to_symtab_1): Likewise. Clean up using
8988 free_stack_comp_unit.
8989 (add_to_cu_func_list): Use the comp_unit_obstack.
8990
05cf31d1
JB
89912004-04-19 Joel Brobecker <brobecker@gnat.com>
8992
8993 * dwarf2read.c (dwarf2_flag_true_p): New function.
8994 (die_is_declaration): Use the function above. Add some comments.
8995
adf93a2f
MK
89962004-04-19 Mark Kettenis <kettenis@gnu.org>
8997
8998 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8999 architecture when registering sparcnbsd_core_osabi_sniffer.
9000 Adjust comment.
9001
748894bf
MK
90022004-04-18 Mark Kettenis <kettenis@gnu.org>
9003
f622ad42
MK
9004 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9005 return value.
9006
c4fc7f1b
MK
9007 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9008 * i386-tdep.c: Correct register numbering scheme comments
9009 throughout.
9010 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9011 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9012 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9013 (i386_gdb_arch_init): Likewise.
9014
b4ead1bd
MK
9015 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9016 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9017 ppcnbsd-tdep.o.
9018
748894bf
MK
9019 * m68k-tdep.h: Tweak comments.
9020 * m68k-tdep.c: Tweak comment.
9021
fdd72f95
RC
90222004-04-17 Randolph Chung <tausq@debian.org>
9023
9024 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9025 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9026 (hppa_hpux_som_init_abi): Set is_elf to 0.
9027 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9028 * hppa-tdep.c (low_text_segment_address): Remove global.
9029 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9030 section offset to calculate segment address.
9031 (internalize_unwinds): Define low_text_segment_address as local and
9032 pass to record_text_segment_lowaddr for ELF targets.
9033 (hppa_gdbarch_init): Zero fill tdep structure.
9034 (hppa_dump_tdep): Print tdep structure.
9035 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9036
0f8d9d59
RC
90372004-04-17 Randolph Chung <tausq@debian.org>
9038
9039 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9040 (hppa_gdbarch_init): Set pseudo_register_read.
9041 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9042 * regcache.c (supply_register): Remove check for
9043 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9044
7c46b9fb
RC
90452004-04-17 Randolph Chung <tausq@debian.org>
9046
9047 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9048 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9049 (hpread_adjust_stack_address): Move to hpread.c.
9050 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9051 obj_private_struct): Move from tm-hppa.h.
9052 * hpread.c (hppa-tdep.h): Include.
9053 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9054 (hpread_read_function_type, hpread_read_doc_function_type)
9055 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9056 directly.
9057 * pa64solib.c (hppa-tdep.h): Include.
9058 * somsolib.c (hppa-tdep.h): Include.
9059 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9060 inferior_status): Remove unused forward declarations.
9061 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9062 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9063 obj_private_struct): Move to hppa-tdep.h.
9064 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9065
8d153463
RC
90662004-04-17 Randolph Chung <tausq@debian.org>
9067
9068 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9069 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9070 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9071 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9072 Remove forward declaration and make static.
9073 (hppa_reg_struct_has_addr): Remove.
9074
350c2e5b
JB
90752004-04-16 Joel Brobecker <brobecker@gnat.com>
9076
9077 * observer.sh: Move comments in sed command to first column.
9078
bbde78fa
JM
90792004-04-16 Jason Molenda (jmolenda@apple.com)
9080
9081 * frame.c: Minor typeo corrections in comments.
9082
e0270fd9
JB
90832004-04-16 Joel Brobecker <brobecker@gnat.com>
9084
9085 * observer.c (observer_test_first_notification_function): Update
9086 function profile.
9087 (observer_test_second_notification_function): Likewise.
9088 (observer_test_third_notification_function): Likewise.
9089
3d049254
MK
90902004-04-16 Mark Kettenis <kettenis@gnu.org>
9091
9092 From Brian Ford <ford@vss.fsi.com>:
9093 * i386-tdep.c (i386_coff_init_abi): New function.
9094 * i386-tdep.h (i386_coff_init_abi): New prototype.
9095 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9096 register number translation functions for DWARF and DWARF 2.
9097
7867684d
JB
90982004-04-16 Joel Brobecker <brobecker@gnat.com>
9099
9100 * dwarf2read.c: Back out my previous change, it was incorrect.
9101
72bf9492
DJ
91022004-04-16 Daniel Jacobowitz <drow@mvista.com>
9103
9104 * dwarf2read.c: Include "hashtab.h".
9105 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9106 has_namespace_info.
9107 (struct partial_die_info): Add comments. Use bitfields to reduce
9108 memory footprint. Add scope, scope_set, has_specification,
9109 spec_offset, die_parent, die_child, and die_sibling.
9110 (peek_die_abbrev): Add prototype.
9111 (partial_read_comp_unit_head): New function, broken out from
9112 dwarf2_build_psymtabs_hard.
9113 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9114 Use partial_read_comp_unit_head. Initialize the CU and
9115 comp_unit_obstack. Update calls to read_partial_die and
9116 scan_partial_symbols. Use free_stack_comp_unit and
9117 load_partial_dies.
9118 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9119 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9120 Update calls to helper functions. Remove NAMESPACE argument.
9121 Update comments.
9122 (partial_die_parent_scope, partial_die_full_name): New functions.
9123 (add_partial_symbol): Remove namespace argument. Update call to
9124 pdi_needs_namespace. Use partial_die_full_name. Handle
9125 DW_TAG_namespace. Check has_namespace_info flag.
9126 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9127 tag. Handle namespaces.
9128 (add_partial_namespace, add_partial_enumeration): Simplify.
9129 (guess_structure_name): New function, derived from
9130 add_partial_structure.
9131 (add_partial_structure): Remove.
9132 (determine_class_name): Update comment.
9133 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9134 (is_type_tag_for_partial, load_partial_dies): New functions.
9135 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9136 Record specifications instead of following them immediately.
9137 (find_partial_die_in_comp_unit, find_partial_die)
9138 (fixup_partial_die, free_stack_comp_unit)
9139 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9140 (partial_die_hash, partial_die_eq): New functions.
9141 * Makefile.in (hashtab_h): Define.
9142 (dwarf2read.o): Update dependencies.
9143 (observer_inc, observer_h): Move to the correct section.
9144
fdc860a3
JB
91452004-04-15 Joel Brobecker <brobecker@gnat.com>
9146
9147 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9148 (die_is_declaration): Use the function above. Add comment.
9149
dc718098
JB
91502004-04-15 Joel Brobecker <brobecker@gnat.com>
9151
9152 * dwarf2read.c (read_structure_scope): Identify stub types
9153 using die_is_declaration() only.
9154
8718a420
RM
91552004-04-15 Roland McGrath <roland@redhat.com>
9156
9157 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9158 argument instead of NAME.
9159 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9160 in call to symbol_file_add_with_addrs_or_offsets.
9161 (build_addr_info): New function, helper for ...
9162 (symbol_file_add_from_memory): New function.
9163 (add_symbol_file_from_memory_command): New function using that.
9164 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9165 (pre_add_symbol_hook): Add const to argument type.
9166 * symfile.h (symbol_file_add_from_memory): Declare it.
9167
8b910bab
MK
91682004-04-15 Mark Kettenis <kettenis@gnu.org>
9169
9f076e7a
MK
9170 * NEWS (New native configurations): Mention OpenBSD/vax.
9171 * configure.host: Add vax-*-openbsd*.
9172 * config/vax/obsd.mh: New file.
9173 * config/vax/nm-obsd.h: New file.
9174
8b910bab
MK
9175 * vax-tdep.c: Include "regset.h".
9176 (vax_supply_gregset): New function.
9177 (vax_gregset): New variable.
9178 (vax_regset_from_core_section): New function.
9179 (vax_gdbarch_init): Set regset_from_core_section.
9180 * Makefile.in (vax-tdep.o): Update dependencies.
9181
7a464420
AC
91822004-04-15 Andrew Cagney <cagney@redhat.com>
9183
9184 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9185 (observer_normal_stop_notification_stub)
9186 (observer_attach_normal_stop, observer_detach_normal_stop):
9187 Delete, replaced by #include "observer.inc".
9188 * infrun.c (normal_stop): Pass "stop_bpstat" to
9189 observer_notify_normal_stop.
9190 * Makefile.in (observer_inc): Define.
9191 (observer.o): Update dependencies.
9192 (observer.h, observer.inc): New rules.
9193 * observer.h: Delete file.
9194 * observer.sh: New file.
9195
e36ad527
MK
91962004-04-15 Mark Kettenis <kettenis@gnu.org>
9197
9198 * vax-tdep.c (vax_frame_cache): Fix typo.
9199
67b441e1
MK
92002004-04-14 Mark Kettenis <kettenis@gnu.org>
9201
6f606e1c
MK
9202 * NEWS (New native configurations): Mention NetBSD/vax.
9203 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9204 * config/vax/nbsdelf.mh: New file.
9205 * config/vax/nbsdaout.mh: New file.
9206 * config/vax/nm-nbsd.h: New file.
9207 * config/vax/nm-nbsdaout.h: New file.
9208
9c5519a5
MK
9209 * vaxnbsd-tdep.c: New file.
9210 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9211 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9212 * config/vax/nbsd.mt: New file.
9213 * config/vax/tm-nbsd.h: New file.
9214
4844a614
MK
9215 * Makefile.in (vaxbsd-nat.o): New dependency.
9216
67b441e1
MK
9217 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9218 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9219 struct_addr arguments. Don't push return value address.
9220 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9221 arguments to vax_store_arguments. Store return value address in
9222 R1.
9223 (vax_store_struct_return, vax_extract_return_value)
9224 (vax_store_return_value): Remove functions.
9225 (vax_return_value): New function.
9226 (vax_gdbarch_init): Set return value. Don't set
9227 deprecated_store_struct_return, deprecated_extract_struct_return
9228 and deprecated_store_return_value.
9229
6672f2ae
AS
92302004-04-14 Andreas Schwab <schwab@suse.de>
9231
9232 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9233 value buffer.
9234 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9235
7346c184
MK
92362004-04-14 Mark Kettenis <kettenis@gnu.org>
9237
9238 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9239 (vax_unwind_dummy_id): New functions.
9240 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9241 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9242 variables.
9243 (vax_fix_call_dummy): Remove function.
9244 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9245 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9246 call_dummy_location, deprecated_call_dummy_words,
9247 deprecated_sizeof_call_dummy_words,
9248 deprecated_call_dummy_breakpoint_offset,
9249 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9250 and deprecated_dummy_write_sp.
9251
58e23df4
DC
92522004-04-13 David Carlton <carlton@kealia.com>
9253
9254 * MAINTAINERS: Move myself to "paper trail" section.
9255
5e6b39ff
MK
92562004-04-12 Mark Kettenis <kettenis@gnu.org>
9257
7def7fef
MK
9258 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9259 "trad-frame.h".
9260 (vax_frame_init_saved_regs): Remove function.
9261 (vax_sigtramp_saved_pc): Remove function.
9262 (vax_frame_saved_pc): Remove function.
9263 (vax_frame_args_address): Remove function.
9264 (vax_frame_num_args): Rewrite.
9265 (vax_frame_chain): Remove function.
9266 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9267 VAX_FP_REGNUM.
9268 (vax_pop_frame): Likewise.
9269 (vax_saved_pc_after_call): Remove function.
9270 (struct vax_frame_cache): New structure.
9271 (vax_frame_cache): New function.
9272 (vax_frame_this_id): New function.
9273 (vax_frame_prev_register): New function.
9274 (vax_frame_unwind): New variable.
9275 (vax_frame_sniffer): New function.
9276 (vax_frame_base_address): New function.
9277 (vax_frame_args_address): New function.
9278 (vax_frame_base): New variable.
9279 (vax_unwind_pc): New function.
9280 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9281 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9282 deprecated_frame_chain, deprecated_frame_saved_pc,
9283 deprecated_frame_args_address and
9284 deprecated_frame_init_saved_regs.
9285 * Makefile.in (vax-tdep.o): Update dependencies.
9286
53284fc1
MK
9287 * vaxbsd-nat.c: New file.
9288
5e6b39ff
MK
9289 * vax-tdep.h: Update copyright year. Adjust comments.
9290 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9291 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9292 (vax_regnum): New enum. Replacing...
9293 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9294 (VAX_PS_REGNUM): ... these removed macros.
9295 * vax-tdep.c (vax_register_name): Remove prototype.
9296 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9297 (vax_register_byte, vax_register_raw_size,
9298 vax_register_virtual_size, vax_register_virtual_type): Remove
9299 functions.
9300 (vax_register_type): New function.
9301 (vax_breakpoint_from_pc): Reorganize.
9302 (vax_gdbarch_init): Set register_type. Don't set
9303 deprecated_register_size, deprecated_register_bytes,
9304 deprecated_register_byte, deprecated_register_raw_size,
9305 deprecated_max_register_raw_size,
9306 deprecated_register_virtual_size,
9307 deprecated_max_register_virtual_size and
9308 deprecated_register_virtual_type. Add comment on stack direction.
9309
e9c71e9f
MK
93102004-04-11 Mark Kettenis <kettenis@gnu.org>
9311
9312 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9313 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9314 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9315
d46f1176 93162004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9317
d46f1176
RC
9318 * MAINTAINERS (write after approval): Add myself.
9319
a2a84a72
RC
93202004-04-07 Randolph Chung <tausq@debian.org>
9321
9322 * hppa-tdep.c (hppa_inner_than): Remove.
9323 (is_pa_2): Remove unused static variable.
8718a420 9324 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9325
e85c3284
PH
93262004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9327
9328 * language.h (language_defn): Add new la_post_parser field.
9329 * parser-defs.h (null_post_parser): New declaration (default for
9330 la_post_parser).
8718a420 9331
e85c3284
PH
9332 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9333 insert call to that function.
9334 (parse_exp_in_context): New function, including code formerly in
8718a420 9335 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9336 prefixification.
9337 (parse_expression_in_context): New exported function.
9338 (null_post_parser): New definition.
9339 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9340
e85c3284
PH
9341 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9342 * c-lang.c (c_language_defn): Ditto.
9343 (cplus_language_defn): Ditto.
9344 (asm_language_defn): Ditto.
9345 (minimal_language_defn): Ditto.
9346 * f-lang.c (f_language_defn): Ditto.
9347 * jv-lang.c (java_language_defn): Ditto.
9348 * language.c (unknown_language_defn): Ditto.
9349 (auto_language_defn): Ditto.
9350 (local_language_defn): Ditto.
9351 * m2-lang.c (m2_language_defn): Ditto.
9352 * scm-lang.c (scm_language_defn): Ditto.
9353 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9354
d9f8c85b
MK
93552004-04-10 Mark Kettenis <kettenis@gnu.org>
9356
fa34704a
MK
9357 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9358 (amd64nbsd_mcontext_addr): New function.
9359 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9360 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9361 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9362
403e1656
MK
9363 * corelow.c (core_xfer_partial): Fix coding standards violation.
9364 Add support for TARGET_OBJECT_WCOOKIE.
9365
a57e5a95
MK
9366 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9367 deprecated_pc_in_sigtramp.
9368 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9369 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9370 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9371 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9372 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9373 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9374 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9375
377d9ebd
MK
9376 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9377 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9378 Fix typo.
9379
f0ef85a5
MK
9380 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9381 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9382 (amd64_collect_fxsave): Likewise.
9383
d9f8c85b
MK
9384 * i386-sol2-tdep.c: Include "gdb_string.h".
9385 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9386 name.
9387 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9388
75f501b5
MK
93892004-04-10 Mark Kettenis <kettenis@gnu.org>
9390
9391 * i386-sol2-tdep.c: Include "solib-svr4.h".
9392 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9393 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9394 * config/i386/tm-i386sol2.h: Include :solib.h".
9395 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9396 solib-svr4.o and solib-legacy.o.
9397 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9398 solib-svr4.o.
9399
b31bc724
MK
94002004-04-09 Mark Kettenis <kettenis@gnu.org>
9401
18bbbd9e
MK
9402 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9403 whether a register is supplied by PTRACE_GETFPREGS.
9404 (store_inferior_registers): Likewise.
9405 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9406 whether a register is supplied by PT_GETFPREGS.
9407 (store_inferior_registers): Likewise.
9408
3c30bf1b
MK
9409 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9410 * config/i386/linux64.mt (TDEPFILES): Likewise.
9411
a4194092
MK
9412 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9413
911bc6ee
MK
9414 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9415 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9416 the program counter is in the range specified by `struct
9417 gdbarch_tdep'.
9418 * amd64-linux-tdep.c: Include "symtab.h".
9419 (amd64_linux_pc_in_sigtramp): Remove function.
9420 (amd64_linux_sigtramp_p): New function.
9421 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9422 deprecated_pc_in_sigtramp.
9423 * amd64nbsd-tdep.c: Include "symtab.h".
9424 (amd64nbsd_sigtramp_p): New function.
9425 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9426 deprecated_pc_in_sigtramp.
9427 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9428 few comments.
9429 (amd64obsd_pc_in_sigtramp): Remove function.
9430 (amd64obsd_sigtramp_p): New function.
9431 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9432 deprecated_pc_in_sigtramp.
9433 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9434 (i386bsd_pc_ins_sigtramp): Remove prototype.
9435 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9436 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9437 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9438 the program counter is in the range specified by `struct
9439 gdbarch_tdep'.
9440 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9441 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9442 (i386_go32_pc_in_sigtramp): Remove function.
9443 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9444 Initialize TDEP->sigtramp_p.
9445 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9446 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9447 deprecated_pc_in_sigtramp.
9448 * i386-linux-tdep.c: Adjust comments.
9449 (i386_linux_pc_in_sigtramp): Remove function.
9450 (i386_linux_sigtramp_p): New function.
9451 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9452 deprecated_pc_in_sigtramp.
9453 * i386-nto-tdep.c: Update copyright year.
9454 (i386nto_pc_in_sigtramp): Remove function.
9455 (i386nto_sigtramp_p): New function.
9456 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9457 SP_REGNUM.
9458 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9459 deprecated_pc_in_sigtramp.
9460 * i386-sol2-tdep.c: Update copyright year.
9461 (i386_sol2_pc_in_sigtramp): Remove function.
9462 (i386_sol2_sigtramp_p): New function.
9463 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9464 deprecated_pc_in_sigtramp.
9465 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9466 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9467 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9468 deprecated_sigtramp_start and deprecated_sigtramp_end.
9469 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9470 (i386nbsd_pc_in_sigtramp): Remove function.
9471 (i386nbsd_sigtramp_p): New function.
9472 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9473 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9474 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9475 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9476 (i386obsd_pc_in_sigtramp): Remove function.
9477 (i386obsd_sigtramp_p): New function.
9478 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9479 functions.
9480 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9481 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9482 TDEP->sigtramp_p.
9483 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9484 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9485 dependencies.
9486
e083e6ec
MK
9487 * config/i386/i386aout.mt: Remove file.
9488
bd153b94
MK
9489 * configure.tgt: Remove i[34567]86-*-go32*,
9490 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9491 and i[34567]86-*-isc*. Set gdb_target to i386 for
9492 i[34567]86-*-netware* and i[34567]86-*-*.
9493 * config/i386/i386.mt: New file.
9494 * config/i386/embed.mt: Remove file.
9495 * config/i386/go32.mt: Remove file.
9496 * config/i386/i386nw.mt: Remove file.
9497 * config/i386/i386v.mt: Remove file.
9498 * config/i386/tm-go32.h: Remove file.
9499
4a1bcc8c
MK
9500 * tui/tui-hooks.c: Include "readline/readline.h" after
9501 "gdb_curses.h" instead of before.
9502 * tui/tui-io.c: Likewise.
9503
f9a79064
MK
9504 * tui/tui.c: Fix typo in comment.
9505
b31bc724
MK
9506 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9507
f83f82bc
AC
95082004-04-08 Andrew Cagney <cagney@redhat.com>
9509
9510 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9511 (deprecated_exception_support_initialized): Declare.
8718a420 9512 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9513 (initialize_hp_cxx_exception_support)
9514 (child_enable_exception_callback): Update.
9515 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9516 (deprecated_exception_support_initialized): Rename
9517 deprecated_exception_catchpoints_are_fragile and
9518 deprecated_exception_support_initialized.
9519 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9520
9521 * symtab.c (deprecated_hp_som_som_object_present): Rename
9522 hp_som_som_object_present.
9523 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9524 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9525 Update. Delete extern declaration.
9526 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9527 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9528 (parse_nested_classes_for_hpacc): Ditto.
9529 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9530 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9531 (initialize_hp_cxx_exception_support): Ditto.
9532 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9533 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9534 (cp_print_class_method): Ditto.
8718a420 9535 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9536 (c_type_print_base): Ditto.
9537 * c-exp.y (hp_som_som_object_present): Ditto.
9538
fb2be677
AC
95392004-04-08 Andrew Cagney <cagney@redhat.com>
9540
9541 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9542 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9543 (frame_unwind_find_by_frame): Re-implement the unwind code so
9544 that it can both prepend and append sniffers. Replace
9545 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9546 * tramp-frame.c (tramp_frame_append): Use
9547 frame_unwind_prepend_unwinder.
9548 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9549 frame_unwind_register_unwinder.
9550 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9551 tramp_frame_append.
9552 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9553 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9554 (mips_linux_init_abi): Update.
9555
67faf007
KB
95562004-04-08 Kevin Buettner <kevinb@redhat.com>
9557
9558 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9559 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9560 file support.
9561
8973ff21
KB
95622004-04-07 Kevin Buettner <kevinb@redhat.com>
9563
9564 * ia64-tdep.c (elf.h): Don't include.
9565 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9566
4a0e2f88
JM
95672004-04-07 Jason Molenda (jmolenda@apple.com)
9568
9569 * frame.h: Typeo corrections in comments.
9570
9872ad24
JB
95712004-04-07 Jim Blandy <jimb@redhat.com>
9572
9573 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9574 %esp and %ebp
9575
70b216c8
MK
95762004-04-07 Mark Kettenis <kettenis@gnu.org>
9577
11d5789c
MK
9578 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9579 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9580 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9581 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9582 and solib-legacy.o.
9583 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9584 solib-svr4.o.
9585 * config/sparc/tm-sol2.h: Update copyright year. Include
9586 "solib.h".
9587
70b216c8
MK
9588 * sparc-sol2-tdep.c: Update copyright year. Include
9589 "solib-svr4.h".
9590 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9591 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9592 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9593 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9594 dependencies.
9595
6339dc9e
AC
95962004-04-06 Andrew Cagney <cagney@redhat.com>
9597
9598 * infttrace.c: Include "infttrace.h".
9599 * infttrace.h: Include "target.h".
9600 * Makefile.in (infttrace_h): Update.
9601 (infttrace.o): Update.
8718a420 9602
93449403
AC
96032004-04-06 Andrew Cagney <cagney@redhat.com>
9604
6d518969
AC
9605 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9606 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9607 move extern declarations from here ...
9608 * infttrace.h: ... to here.
9609 * Makefile.in (hppah-nat.o): Update dependencies.
9610
85f4f2d8
AC
9611 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9612 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9613 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9614 (hppa_breakpoint_from_pc): Delete.
9615
93449403
AC
9616 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9617
71456ec6
AC
96182004-04-05 Andrew Cagney <cagney@redhat.com>
9619
9620 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9621 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9622 <sys/file.h>.
8718a420 9623
4c02c60c
AC
96242004-04-06 Randolph Chung <tausq@debian.org>
9625
9626 Committed by Andrew Cagney (mechanical change).
9627 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9628 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9629 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9630 child_enable_exception_callback, current_ex_event,
9631 null_symtab_and_line, child_get_current_exception_event,
9632 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9633 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9634 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9635 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9636 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9637 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9638 Move hpux-specific definitions ...
9639 * hppa-hpux-tdep.c: ... to here.
9640
3a515653
AC
96412004-04-05 Andrew Cagney <cagney@redhat.com>
9642
9643 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9644 skip_prologue_using_sal.
9645
c1730d02
AC
96462004-04-05 Andrew Cagney <cagney@redhat.com>
9647
9648 * config/i386/tm-i386.h: Delete file.
9649 * config/i386/tm-vxworks.h: Update copyright, do not include
9650 "tm-i386.h".
9651 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9652 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9653 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9654 * config/i386/ncr3000.mt (TM_FILE): Delete.
9655 * config/i386/interix.mt (TM_FILE): Delete.
9656 * config/i386/i386v.mt (TM_FILE): Delete.
9657 * config/i386/i386nw.mt (TM_FILE): Delete.
9658 * config/i386/i386gnu.mt (TM_FILE): Delete.
9659 * config/i386/i386aout.mt (TM_FILE): Delete.
9660 * config/i386/embed.mt (TM_FILE): Delete.
9661
8b67aa36
KB
96622004-04-05 Kevin Buettner <kevinb@redhat.com>
9663
9664 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9665 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9666 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9667 (accg7_regnum): New constants.
9668 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9669 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9670 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9671 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9672 for accg registers.
9673 (frv_register_sim_regno): Update spr_map[].
9674
3c7012f5
AC
96752004-04-04 Andrew Cagney <cagney@redhat.com>
9676
9677 * config/mips/xm-riscos.h: Delete.
9678 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9679 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9680 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9681 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9682 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9683 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9684 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9685 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9686 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9687 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9688 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9689 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9690 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9691 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9692 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9693 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9694 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9695 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9696 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9697 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9698 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9699 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9700 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9701 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9702 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9703 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9704
3c7012f5
AC
9705 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9706 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9707 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9708 * configure.host: Remove m680[01]0-sun-sunos3*,
9709 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9710 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9711 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9712 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9713 mips-*-riscos*.
9714 * NEWS: Mention removed systems.
9715
99d16a21
AC
97162004-04-04 Andrew Cagney <cagney@redhat.com>
9717
9718 GDB 6.1 release created from 6.1 branch.
9719
6cdf9d98
AC
97202004-04-04 Andrew Cagney <cagney@redhat.com>
9721
98d346c3
AC
9722 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9723 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9724 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9725
6cdf9d98
AC
9726 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9727 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9728 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9729
859a326d
JB
97302004-04-03 Jim Blandy <jimb@redhat.com>
9731
9732 * MAINTAINERS: Chris Faylor has changed employers; add him to
9733 "paper trail" section, and update his E-mail address.
9734
b87178c3
AC
97352004-04-03 Andrew Cagney <cagney@redhat.com>
9736
4ea2acf0
AC
9737 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9738 generic dummy frames.
9739 * dummy-frame.c: Update copyright.
9740 (dummy_frame_sniffer): Delete check for generic dummy frames.
9741
d0bd2d18 9742 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9743 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9744 (REG_PARM_STACK_SPACE): Delete.
9745 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9746 Inline reference to REG_PARM_STACK_SPACE.
9747
b87178c3
AC
9748 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9749 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9750 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9751 (FRAME_BASE_BEFORE_SIGTRAMP)
9752 (hppa32_hpux_frame_base_before_sigtramp)
9753 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9754 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9755 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9756 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9757 (FRAME_BASE_BEFORE_SIGTRAMP)
9758 (hppa64_hpux_frame_base_before_sigtramp)
9759 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9760
43e2e1a0
AC
97612004-04-03 Andrew Cagney <cagney@redhat.com>
9762
9763 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9764
ddc135a4
AC
97652004-04-02 Andrew Cagney <cagney@redhat.com>
9766
9767 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9768 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9769 * dummy-frame.h: Delete out-of-date comments.
9770 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9771 * gdbarch.h, gdbarch.c: Re-generate.
9772
d15bfd3a 97732004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9774
d15bfd3a
AC
9775 Committed by Andrew Cagney <cagney@redhat.com>.
9776 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9777 into account an instruction saving a register if we have already
9778 seen an earlier instruction saving that same register.
9779
f04ceafa
AC
97802004-04-02 Andrew Cagney <cagney@redhat.com>
9781
08be3abd
AC
9782 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9783 * gdbarch.h, gdbarch.c: Re-generate.
9784 * frame.c (legacy_get_prev_frame): Delete references to
9785 DEPRECATED_INIT_FRAME_PC_FIRST.
9786
f04ceafa
AC
9787 * infrun.c (pc_in_sigtramp): Delete function.
9788 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9789 get_frame_type.
9790
08e69816
AC
97912004-04-02 Andrew Cagney <cagney@redhat.com>
9792
9793 * infrun.c (handle_step_into_function): Delete code conditional on
9794 legacy_frame_p.
9795 (handle_inferior_event, step_over_function): Ditto.
9796
adb54772
AC
97972004-04-02 Andrew Cagney <cagney@redhat.com>
9798
9799 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9800 "previous frame inner to this frame" test.
9801
304396fb
AC
98022004-04-02 Andrew Cagney <cagney@redhat.com>
9803
9804 * frame.c (safe_frame_unwind_memory): New function.
9805 * frame.h (safe_frame_unwind_memory): Declare. Update description
9806 of /safe_/ methods.
9807 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9808 "next_frame". Use safe_frame_unwind_memory.
9809 (tramp_frame_sniffer): Update call to tramp_frame_start.
9810
6502dd73
DJ
98112004-04-01 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * dwarf2read.c (dwarf2_objfile_data_key): New.
9814 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9815 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9816 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9817 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9818 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9819 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9820 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9821 Remove variables.
9822 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9823 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9824 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9825 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9826 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9827 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9828 Remove macros.
9829 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9830 data.
9831 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9832 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9833 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9834 (read_partial_die, read_full_die, read_indirect_string)
9835 (dwarf_decode_line_header, dwarf_decode_macros)
9836 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9837 Update uses of removed variables.
9838 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9839 of removed macros.
9840 (_initialize_dwarf2_read): New function.
9841 * symfile.h (dwarf2_has_info): Update prototype.
9842 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9843 * elfread.c (elf_symfile_read): Likewise.
9844
408752b0
JB
98452004-04-01 Jim Blandy <jimb@redhat.com>
9846
9f744501
JB
9847 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9848 function for register numbers on all the rs6000-derived targets.
9849 (rs6000_gdbarch_init): Don't register a separate
9850 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9851 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9852 variants.
9853
408752b0
JB
9854 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9855 numbering.
9856
2de41bce
PH
98572004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9858
9859 * valarith.c: Update copyright notice.
9860 (value_add): Handle range types.
9861 (value_sub): Ditto.
9862 (value_equal): Ditto.
9863 (value_less): Ditto.
9864 (value_neg): Ditto.
9865 (value_complement): Ditto.
8718a420 9866 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9867 eliminiating unnecessary COERCE_ENUMs.
8718a420 9868
5613d8d3
AC
98692004-03-31 Andrew Cagney <cagney@redhat.com>
9870
9871 * frame.h (frame_unwind_id): Declare.
9872 * frame.c (frame_unwind_id): New function.
9873 (get_prev_frame_1): New function.
9874 (frame_debug_got_null_frame): New function.
9875 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9876 code proper to prev_frame, update description.
9877 * infrun.c (step_over_function): Use frame_unwind_id.
9878
c4557624
JB
98792004-04-31 J. Brobecker <brobecker@gnat.com>
9880
9881 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9882 (hppa64_push_dummy_call): Likewise.
9883
3e6bb910
JB
98842004-03-30 Jim Blandy <jimb@redhat.com>
9885
9886 From Ulrich Weigand:
9887 * utils.c (query): Do not use a va_list variable multiple times.
9888
a2f23071
DJ
98892004-03-29 Daniel Jacobowitz <drow@mvista.com>
9890
9891 * Makefile.in (linux_nat_h): Update dependencies.
9892 * configure.in: Check for <gnu/libc-version.h>.
9893 * configure: Regenerate.
9894 * config.in: Regenerate.
9895 * linux-nat.h: Include "target.h". Add waitstatus field to
9896 struct lwp_info.
9897 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9898 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9899 to.
9900 (lin_lwp_handle_extended): New function. Handle clone events.
9901 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9902 thread exit events.
9903 (child_wait): Handle clone events.
9904 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9905 * linux-nat.c (linux_enable_event_reporting): Turn on
9906 PTRACE_O_TRACECLONE.
9907 (linux_handle_extended_wait): Handle clone events.
9908 * thread-db.c: Include <gnu/libc-version.h>.
9909 (struct private_thread_info): Add dying flag.
9910 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9911 higher.
9912 (attach_thread): Update comments. Handle dying threads.
9913 (detach_thread): Set the dying flag.
9914 (check_event): Always call attach_thread.
9915
8d5f9dcb
DJ
99162004-03-29 Daniel Jacobowitz <drow@mvista.com>
9917
9918 * mips-tdep.c (mips_pdr_data): New.
9919 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9920 (_initialize_mips_tdep): Initialize mips_pdr_data.
9921
66337bb1
CV
99222004-03-29 Corinna Vinschen <vinschen@redhat.com>
9923
9924 * minsyms.c (install_minimal_symbols): Move dropping leading
9925 char from linkage name from here...
9926 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9927 test for "__gnu_compiled*" symbols.
9928
e802b915
JB
99292004-03-28 Jim Blandy <jimb@redhat.com>
9930
9931 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9932 registers to temp register r0 and byte stores as prologue
9933 instructions.
9934
72b56458
AC
99352004-03-28 Andrew Cagney <cagney@redhat.com>
9936
9937 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9938 arm*-*-*.
9939
0bfbda3b
SC
99402004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9941
9942 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9943 and switch the layout to force a display of register window.
9944
5a7225ed
JB
99452004-02-26 J. Brobecker <brobecker@gnat.com>
9946
9947 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9948 of the INTEGER class.
9949
81a07a45
JB
99502004-03-26 Jim Blandy <jimb@redhat.com>
9951
9952 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9953 bytes long on PPC GNU/Linux.
9954
8c691c7a
DC
99552004-03-26 David Carlton <carlton@kealia.com>
9956
9957 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9958
103a0089
AC
99592004-03-25 Andrew Cagney <cagney@redhat.com>
9960
9961 * PROBLEMS: Add general section titles, remove references to
9962 specific releases.
9963
7a5ea0d4
DJ
99642004-03-25 Daniel Jacobowitz <drow@mvista.com>
9965
9966 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9967 INT_REGISTER_SIZE.
9968 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9969 FP_REGISTER_VIRTUAL_SIZE.
9970 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9971 of DEPRECATED_REGISTER_RAW_SIZE.
9972 (arm_register_type): Add gdbarch argument.
9973 (arm_register_raw_size, arm_register_virtual_size): Delete.
9974 (arm_register_byte, arm_extract_return_value)
9975 (arm_store_return_value, arm_get_longjmp_target): Update references
9976 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9977 (arm_gdbarch_init): Likewise. Don't set
9978 deprecated_register_raw_size, deprecated_register_virtual_size,
9979 deprecated_max_register_raw_size,
9980 deprecated_max_register_virtual_size, or
9981 deprecated_max_register_virtual_type. Do set register_type.
9982 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9983 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9984 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9985 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9986 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9987 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9988 INT_REGISTER_SIZE.
9989 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9990 (remote_rdp_store_register): Likewise.
9991
5792a79b
DJ
99922004-03-24 Daniel Jacobowitz <drow@mvista.com>
9993
9994 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9995 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9996 to after osabi initialization.
9997 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9998 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9999 functions.
10000 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10001 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10002 variables.
10003 (mips_linux_init_abi): Append signal trampoline unwinders.
10004
1196bfda
AC
100052004-03-24 Andrew Cagney <cagney@redhat.com>
10006
10007 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10008 * tramp-frame.c: Include "gdb_assert.h".
10009 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10010 correct sizeof.
10011 (tramp_frame_append): Validate the tramp frame's instructions.
10012 * Makefile.in (tramp-frame.o): Update dependencies.
10013
4be282b4
AC
100142004-03-23 Andrew Cagney <cagney@redhat.com>
10015
10016 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10017
69aec09b
AC
100182004-03-23 Andrew Cagney <cagney@redhat.com>
10019
10020 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10021 Nasser as past testsuite/lib/ (and other) maintainers.
10022
63ed89b4
DJ
100232004-03-23 Daniel Jacobowitz <drow@mvista.com>
10024
10025 * infcmd.c (attach_command): Reread symbols if we already have
10026 an exec file.
10027
f3b36427
AC
100282004-03-23 Andrew Cagney <cagney@redhat.com>
10029
10030 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10031
aa2a3f87
AC
100322004-03-23 Andrew Cagney <cagney@redhat.com>
10033
10034 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10035 * gdbarch.h, gdbarch.c: Re-generate.
10036 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10037 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10038 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 10039 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 10040 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 10041 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
10042 (DEPRECATED_SIGTRAMP_START): Update.
10043 * blockframe.c (find_pc_sect_partial_function): Update.
10044 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10045
00cac895
DJ
100462004-03-23 Daniel Jacobowitz <drow@mvista.com>
10047
10048 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10049 if necessary.
10050
f561f026
AC
100512004-03-23 Andrew Cagney <cagney@redhat.com>
10052
10053 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10054 predicate, deprecate.
10055 * gdbarch.h, gdbarch.c: Re-generate.
10056 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10057 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10058 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10059 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10060 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10061 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10062 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10063 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10064 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10065 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10066 * blockframe.c (find_pc_partial_function): Update.
10067 * breakpoint.c (bpstat_what): Update.
10068 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10069 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10070 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10071 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10072 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10073 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10074 * i386-nto-tdep.c (i386nto_init_abi): Update.
10075 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10076 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10077 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10078 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10079 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10080 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10081 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10082 * infrun.c (pc_in_sigtramp): Update.
10083 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10084 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10085 * mips-tdep.c (mips_gdbarch_init): Update.
10086 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10087 * ppc-linux-tdep.c: Update comment.
10088 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10089 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10090 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10091 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10092 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10093 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10094 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10095 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10096 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10097 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 10098
8050c72f
AC
100992004-03-23 Andrew Cagney <cagney@redhat.com>
10100
d2259dd3
AC
10101 * tramp-frame.h, tramp-frame.h: New files.
10102 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10103 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10104
8050c72f
AC
10105 * Makefile.in: Update all dependencies.
10106
0db9b4b7
AC
101072004-03-23 Andrew Cagney <cagney@redhat.com>
10108
10109 * Makefile.in (trad_frame_h): Add $(frame_h).
10110 * trad-frame.h: Update copyright. Include "frame.h".
10111 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10112 (trad_frame_set_id, trad_frame_get_id): Declare.
10113 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10114 * trad-frame.c: Update copyright.
10115 (struct trad_frame_cache): Define.
10116 (trad_frame_cache_zalloc): New function.
10117 (trad_frame_set_id, trad_frame_get_id): New functions.
10118 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 10119
8e645ae7
AC
101202004-03-22 Andrew Cagney <cagney@redhat.com>
10121
10122 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10123 s390_pltstub_unwind_cache.
10124 (s390_stub_frame_unwind_cache): Rename
10125 s390_pltstub_frame_unwind_cache.
10126 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10127 (s390_stub_frame_prev_register): Rename
10128 s390_pltstub_frame_prev_register.
10129 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10130 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10131
10132 From Ulrich Weigand:
10133 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10134 pointer calls like PLT calls.
10135
34fcf120
DJ
101362004-03-22 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10139 PC rather than the partial function start address. Use the start
10140 address to sanity check the found PDR.
10141
5b917078
DJ
101422004-03-22 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10145 linux_handle_extended_wait.
10146
8adf9e78
AC
101472004-03-22 Andrew Cagney <cagney@redhat.com>
10148
c3122434
AC
10149 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10150 function.
10151
8adf9e78
AC
10152 * frame.h (generic_pop_current_frame): Delete declaration.
10153 (deprecate_pop_dummy_frame): Deprecate
10154 generic_pop_dummy_frame.
10155 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10156 (generic_pop_current_frame): Delete function.
10157 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10158 generic_pop_current_frame.
10159 * v850-tdep.c (v850_pop_frame): Update.
10160 * mcore-tdep.c (mcore_pop_frame): Update.
10161 * sh64-tdep.c (sh64_pop_frame): Update.
10162 * h8300-tdep.c (h8300_pop_frame): Update.
10163
90ba813f
AC
101642004-03-22 Andrew Cagney <cagney@redhat.com>
10165
10166 * frame.h (deprecated_pc_in_call_dummy): Rename
10167 generic_pc_in_call_dummy.
10168 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10169 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10170 generic_pc_in_call_dummy.
10171 (pc_in_dummy_frame): Make static.
10172 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10173 * gdbarch.h, gdbarch.c: Re-generate.
10174 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10175 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10176 (legacy_get_prev_frame): Ditto.
10177 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10178 comment.
8718a420 10179
ca4bb888
AC
101802004-03-21 Andrew Cagney <cagney@redhat.com>
10181
244675f9
AC
10182 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10183 declaration and out-of-date comment.
10184 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10185 Delete function.
10186 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10187 deprecated_pc_in_call_dummy.
10188
ca4bb888
AC
10189 * infrun.c (handle_inferior_event): For non legacy frames, use the
10190 frame ID and frame type to identify a signal trampoline. Update
10191 comments.
10192
1777c7b4
NW
101932004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10194
10195 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10196 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10197
82417da5
AC
101982004-03-21 Andrew Cagney <cagney@redhat.com>
10199
10200 * frame-unwind.h: Update copyright.
10201 (struct frame_data): Add opaque declaration.
10202 (frame_sniffer_ftype): Declare.
10203 (struct frame_unwind): Add "unwind_data" and "sniffer".
10204 (frame_unwind_register_unwinder): Declare.
10205 (frame_unwind_find_by_frame): Add parameter "this_cache".
10206 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10207 (legacy_get_prev_frame, legacy_get_prev_frame)
10208 (get_frame_type): Pass the prologue_cache to
10209 frame_unwind_find_by_frame.
10210 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10211 "unwinder".
10212 (frame_unwind_register_unwinder): New function.
10213 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10214
b2ba182e
PH
102152004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10216
10217 * bcache.c (print_percentage): Use floating point to avoid
10218 incorrect results when portion*100 overflows.
10219
81332287
KB
102202004-03-19 Kevin Buettner <kevinb@redhat.com>
10221
10222 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10223 (ppc_linux_init_extra_frame_info)
10224 (ppc_linux_frameless_function_invocation)
10225 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10226 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10227 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10228 (rs6000_frame_chain): Delete declarations.
10229 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10230 (ppc_linux_init_extra_frame_info)
10231 (ppc_linux_frameless_function_invocation)
10232 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10233 (ppc_linux_init_abi): Remove registration of above deleted functions.
10234 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10235 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10236 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10237 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10238 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10239 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10240 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10241 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10242 frame management for all OSABIs.
10243
61a65099
KB
102442004-03-19 Andrew Cagney <cagney@redhat.com>
10245
10246 Committed by Kevin Buettner <kevinb@redhat.com>.
10247
10248 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10249 Update copyright.
10250 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10251 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10252 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10253 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10254 unwinders. #ifdef legacy frame code.
10255 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10256 "frame-base.h".
10257 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10258 (struct rs6000_frame_cache, rs6000_frame_cache)
10259 (rs6000_frame_this_id, rs6000_frame_prev_register)
10260 (rs6000_frame_sniffer, rs6000_frame_unwind)
10261 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10262 (rs6000_frame_base): Implement a traditional frame unwinder.
10263 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10264 frame unwinder.
10265
88f7da05
KB
102662004-03-19 Kevin Buettner <kevinb@redhat.com>
10267
10268 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10269 breakpoint address for watchpoints or the catch eventpoints.
10270 Add new paramter ``bptype''. Adjust all callers.
10271
f826dce1
AC
102722004-03-19 Andrew Cagney <cagney@redhat.com>
10273
33cb8b0f
AC
10274 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10275
f826dce1
AC
10276 * PROBLEMS: Delete note that ARM does not use frame code, problem
10277 fixed.
10278
43b1ab88
AC
102792004-03-18 Andrew Cagney <cagney@redhat.com>
10280
292ab034
AC
10281 * stack.c (return_command): Delete code wrapped in #ifdef
10282 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10283
43b1ab88
AC
10284 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10285
dbfe4626
AC
102862004-03-18 Andrew Cagney <cagney@redhat.com>
10287
10288 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10289 DEPRECATED_IN_SIGTRAMP.
10290 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10291 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10292 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10293 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10294 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10295 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10296 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10297 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10298 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10299 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10300
0cad6aec
AC
103012004-03-18 Andrew Cagney <cagney@redhat.com>
10302
10303 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10304 (struct frame_base_table_entry): Define.
10305 (struct frame_base_table): Re-implement as a linked list.
10306 (frame_base_init): Re-implement.
10307 (frame_base_table): Delete function.
10308 (append_predicate): Delete function.
10309 (frame_base_append_sniffer): Update.
10310 (frame_base_set_default): Update.
10311 (frame_base_find_by_frame): Update.
10312 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10313 * Makefile.in (frame-base.o): Update dependencies.
10314
9982c2e7
AC
103152004-03-17 Andrew Cagney <cagney@redhat.com>
10316
10317 * frame.c (legacy_get_prev_frame): Pass correct frame to
10318 frame_unwind_find_by_frame.
10319
8dfe8985
DC
103202004-03-17 David Carlton <carlton@kealia.com>
10321
10322 * NEWS: Mention C++ nested types and namespaces
10323
ed47347a
MC
103242004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10325
10326 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10327 and "Regressions since gdb 5.3.". Add known regressions since
10328 gdb 6.0.
10329
90aeadfc
DC
103302004-03-16 David Carlton <carlton@kealia.com>
10331
10332 * dwarf2read.c (process_structure_scope): Process children even
10333 when we're a declaration.
10334
73912b9b
AC
103352004-03-16 Andrew Cagney <cagney@redhat.com>
10336
10337 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10338 * blockframe.c (find_pc_partial_function)
10339 (find_pc_sect_partial_function): Merge into a single
10340 find_pc_partial_function.
10341
283accbc
MK
103422004-03-16 Mark Kettenis <kettenis@gnu.org>
10343
10344 * i386bsd-nat.c: s/regno/regnum/g.
10345 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10346 FP0_REGNUM.
10347 (store_inferior_registers): Likewise.
10348
f5b1afdf
MK
103492004-03-16 Mark Kettenis <kettenis@gnu.org>
10350
10351 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10352 of i387_fill_fsave.
10353 (store_inferior_registers): Call i387_collect_fsave and
10354 i387_collect_fxsave instead of i387_fill_fsave and
10355 i387_fill_fxsave.
10356
41fe5eb3
AC
103572004-03-15 Andrew Cagney <cagney@redhat.com>
10358
10359 * Makefile.in (frame-unwind.o): Update dependencies.
10360 * frame-unwind.c: Include "gdb_obstack.h".
10361 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10362 parameter.
10363 (append_predicate): Delete function.
10364 (struct frame_unwind_table_entry): New structure.
10365 (struct frame_unwind_table): Replace "sniffer" with "head" and
10366 "tail".
10367 (frame_unwind_append_sniffer): Update.
10368 (frame_unwind_find_by_frame): Update.
10369 (_initialize_frame_unwind): Registe frame_unwind_init using
10370 gdbarch_data_register_pre_init.
10371
3f63813d
MK
103722004-03-15 Mark Kettenis <kettenis@gnu.org>
10373
10374 * i386bsd-nat.c: Update copyright year.
10375 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10376 define unconditionally.
10377
3248c325 103782004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10379
10380 * i387-tdep.h (i387_collect_fsave): New prototype.
10381 * i387-tdep.c (i387_collect_fsave): New function containing most
10382 of the code from i387_fill_fsave.
3248c325 10383 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10384
871fbe6a
MK
103852004-03-15 Mark Kettenis <kettenis@gnu.org>
10386
10387 * i386-linux-tdep.c: Update copyright year.
10388 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10389 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10390 svr4_ilp32_link_map_offsets instead of
10391 i386_linux_svr4_fetch_link_map_offsets.
10392
8176b9b8
DC
103932004-03-15 David Carlton <carlton@kealia.com>
10394
10395 Fix for PR c++/1553:
10396 * dwarf2read.c (read_structure_type): Determine type name by
10397 calling determine_class_name.
10398 (determine_class_name): New.
10399 (determine_prefix): Look at TYPE_TAG_NAME and call
10400 determine_class_name when appropriate.
10401 (determine_prefix_aux, class_name): Delete.
9d58e29d 10402 (read_namespace): Set die->type.
8176b9b8 10403
fe8bf7d7
KB
104042004-03-15 Kevin Buettner <kevinb@redhat.com>
10405
10406 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10407 unused macro definition. The definition in target.h (or perhaps
10408 elsewhere) takes precedence.
10409
ed6edd9b
AC
104102004-03-15 Andrew Cagney <cagney@redhat.com>
10411
f9be684a
AC
10412 * ppc-tdep.h: Update copyright.
10413 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10414 function signatures to match "regsets.h".
10415 * ppc-linux-tdep.c: Include "regset.h".
10416 (ELF_GREGSET_SIZE): Delete.
10417 (right_supply_register): New function.
10418 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10419 using right_supply_register.
10420 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10421 functions.
10422 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10423 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10424 (_initialize_ppc_linux_tdep): Do not register
10425 ppc_linux_regset_core_fns.
10426 (ppc_linux_regset_from_core_section): Replace
10427 fetch_core_registers.
10428 (ppc_linux_regset_core_fns): Delete.
10429 * ppc-linux-nat.c: (right_fill_reg): New function.
10430 (supply_gregset): Update call to ppc_linux_supply_gregset.
10431 (fill_gregset): Clear the register set, use right_fill_reg.
10432 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10433 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10434
ed6edd9b
AC
10435 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10436 unsigned.
10437
030f20e1
AC
104382004-03-15 Andrew Cagney <cagney@redhat.com>
10439
10440 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10441 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10442 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10443 and register_gdbarch_data.
10444 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10445 (struct gdbarch_data): Replace "init" by "pre_init" and
10446 "post_init".
10447 * gdbarch.h, gdbarch.c: Re-generate.
10448 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10449 with"obstack", use OBSTACK_ZALLOC.
10450 (dwarf2_frame_ops): Delete.
10451 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10452 (dwarf2_frame_init_reg): Use gdbarch_data.
10453 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10454 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10455 (_initialize_svr4_solib): Update.
10456 * user-regs.c (_initialize_user_regs): Update.
10457 * reggroups.c (_initialize_reggroup): Update.
10458 * regcache.c (_initialize_regcache): Update.
10459 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10460 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10461 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10462 * frame-unwind.c (_initialize_frame_unwind): Update.
10463 * frame-base.c (_initialize_frame_base): Update.
10464 * user-regs.c (user_reg_add): Update.
10465 * reggroups.c (reggroup_add): Update.
10466 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10467 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10468 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10469 * frame-base.c (frame_base_table): Update.
10470 * remote.c (_initialize_remote): Update.
10471 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10472
3111a3fc
AC
104732004-03-15 Andrew Cagney <cagney@redhat.com>
10474
10475 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10476
5ecb7103
KB
104772004-03-15 Kevin Buettner <kevinb@redhat.com>
10478
10479 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10480 * frv-linux-tdep.c: New file.
10481 * frv-tdep.c (struct gdbarch_tdep): Add new field
10482 ``sigcontext_reg_addr''.
10483 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10484 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10485 (frv_sigramp_frame_sniffer): New functions.
10486 (frv_sigtramp_frame_unwind): New static global.
10487 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10488 sniffers.
10489 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10490 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10491
1ccda5e9
KB
104922004-03-15 Kevin Buettner <kevinb@redhat.com>
10493
10494 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10495 but not via a call to error(), when unable to read memory.
10496
b375a0a5
KB
104972004-03-15 Kevin Buettner <kevinb@redhat.com>
10498
10499 * frv-tdep.c (frv_call_dummy_words): Delete.
10500 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10501
4fdf6121
AC
105022004-03-15 Andrew Cagney <cagney@redhat.com>
10503
10504 * infrun.c (handle_step_into_function, step_over_function): Only
10505 update and use STEP_FRAME_ID when the system is using legacy
10506 frames. Update comments.
10507
34021503
MK
105082004-03-14 Mark Kettenis <kettenis@gnu.org>
10509
187e21d1
MK
10510 * amd64-linux-tdep.h: Remove file.
10511 * amd64-linux-tdep.c: Don't include "inferior.h" and
10512 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10513 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10514 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10515 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10516 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10517 macros.
10518 (user_to_gdb_regmap): Remove variable.
10519 (amd64_linux_gregset_reg_offset): New variable.
10520 (amd64_core_fns): Remove variable.
10521 (fetch_core_registers): Remove function.
10522 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10523 functions.
10524 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10525 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10526 * Makefile.in (amd64_linux_tdep_h): Remove.
10527 (amd64-linux-nat.o): Update dependencies.
10528 (amd64-linux-tdep.o): Update dependencies.
10529
99679982
MK
10530 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10531 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10532 functions.
10533 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10534
34021503
MK
10535 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10536 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10537
134d01f1
DJ
105382004-03-14 Daniel Jacobowitz <drow@mvista.com>
10539
10540 * dwarf2read.c (read_structure_type): Rename from
8718a420 10541 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10542 Return immediately if die->type is set. Call read_type_die before
10543 dwarf2_add_member_fn.
10544 (process_structure_scope): New function.
10545 (read_enumeration_type, process_enumeration_scope): New functions,
10546 broken out from read_enumeration. Don't create the enumeration
10547 type if it has already been created.
10548 (read_enumeration): Removed.
10549 (process_die): Call read_structure_type, process_structure_scope,
10550 read_enumeration_type, and process_enumeration_scope. Just call
10551 new_symbol for base and subrange types. Add a comment about other
10552 type dies.
10553 (read_type_die): Call read_enumeration_type.
10554 (add_partial_structure, new_symbol): Update comments.
10555
65760afb
SC
105562004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10557
10558 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10559
10f59415
SC
105602004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10561
10562 * tui/tui-win.h (tui_get_cmd_list): Declare.
10563 * tui/tui-win.c (tui_command): New function.
10564 (tui_get_cmd_list): New function.
10565 (_initialize_tui_win): Moved initialization of tui command in
10566 tui_get_cmd_list.
10567
10568 * tui/tui-data.c (init_content_element): Setup new data members.
10569 (init_win_info): Likewise.
10570 (free_content_elements): Free it.
10571 * tui/tui-data.h (struct tui_data_element): Store the register
10572 content to print.
10573 (struct tui_data_info): Keep the current register group.
10574
10575 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10576
10577 * tui/tui-regs.h (tui_show_registers): Update prototype.
10578 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10579 (tui_resize_all): No need to calculate anything for register window.
10580 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10581 (tui_set_register_element, tui_set_general_regs_content): Remove.
10582 (tui_set_special_regs_content): Remove.
10583 (tui_set_general_and_special_regs_content): Remove.
10584 (tui_set_float_regs_content): Remove.
10585 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10586 (tui_set_regs_content): Remove.
10587 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10588 (tui_v_show_registers_command_support): Remove.
10589 (tui_show_registers): Use a reggroup to specify the registers to show.
10590 (tui_show_register_group): New function.
10591 (tui_display_registers_from): Compute the layout of register window
10592 and refresh with new API; be sure to delete old register windows.
10593 (tui_check_register_values): Update to use tui_get_register and
10594 tui_display_data.
10595 (tui_display_register): Just refresh the register window part.
10596 (tui_register_format): Format registers and save in tui_data_element.
10597 (tui_get_register): New to combine tui_reg_value_has_changed and
10598 tui_get_register_raw_value; fix to use the new gdb API.
10599 (tui_show_float_command): Renamed tui_reg_float_command.
10600 (tui_show_general_command): Renamed tui_reg_general_command.
10601 (tui_show_special_command): Renamed tui_reg_system_command.
10602 (_initialize_tui_regs): Remove unused commands.
10603
c3364ea4
MK
106042004-03-13 Mark Kettenis <kettenis@gnu.org>
10605
27d1e716
MK
10606 * NEWS (New native configurations): Mention OpenBSD/amd64.
10607
c3364ea4
MK
10608 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10609 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10610 Remove defines.
10611 * config/i386/nm-fbsd64.h: Likewise.
10612 * config/i386/nm-obsd.h: Likewise.
10613 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10614 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10615
b2d6d697
KB
106162004-03-12 Kevin Buettner <kevinb@redhat.com>
10617
10618 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10619 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10620 New constants.
10621
76e43199
KB
10622 From Richard Sandiford <rsandifo@redhat.com>:
10623 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10624
34ce532e
KB
106252004-03-12 Kevin Buettner <kevinb@redhat.com>
10626
10627 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10628 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10629 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10630 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10631 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10632 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10633 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10634 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10635 definitions from frv-tdep.c to frv-tdep.h.
10636
c4d10515
KB
106372004-03-12 Kevin Buettner <kevinb@redhat.com>
10638
10639 Add shared library support for FR-V FDPIC ABI:
10640 * Makefile.in (solib-frv.o): Add dependencies.
10641 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10642 New functions.
10643 (frv_push_dummy_call): Add support for FDPIC ABI.
10644 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10645 for FDPIC ABI.
10646 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10647 (frv_fdpic_find_canonical_descriptor): Declare.
10648 * solib-frv.c: New file.
10649 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10650 * config/frv/tm-frv.h (solib.h): Include.
10651
ed1bd989
KB
106522004-03-12 Kevin Buettner <kevinb@redhat.com>
10653
10654 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10655 (frv-tdep.o): Update dependencies.
10656 * frv-tdep.h: New file.
10657 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10658 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10659 constants.
10660 (struct gdbarch_tdep): Add new member ``frv_abi''.
10661 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10662 functions.
10663 (new_variant): Set ``frv_abi'' field.
10664 (gdb_arch_init): Detect FDPIC executables.
10665
82b38f72
MK
106662004-03-12 Mark Kettenis <kettenis@gnu.org>
10667
10668 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10669 wrapper.
10670
db1ea9ba
AC
106712004-03-11 Andrew Cagney <cagney@redhat.com>
10672
10673 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10674
f8766ec1
KB
106752004-03-11 Kevin Buettner <kevinb@redhat.com>
10676
10677 * solist.h (master_so_list): New function.
10678 * solib.c (master_so_list): Likewise.
10679 * solib-svr4.c (enable_break): Iterate over so_list entries
10680 obtained from master list instead of entries obtained directly
10681 via svr4_current_sos().
10682
523f6a27
BE
106832004-03-10 Ben Elliston <bje@gnu.org>
10684
10685 * MAINTAINERS: Update my mail address.
10686
37814c18
KI
106872004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10688
10689 * remote-m32r-sdi.c: Support hardware watchpoint.
10690
8b9740d8
DJ
106912004-03-09 Daniel Jacobowitz <drow@mvista.com>
10692
10693 * user-regs.c: Update copyright years.
10694 (struct user_regs): Rename to gdb_user_regs.
10695 (append_user_reg, builtin_user_regs, user_regs_init)
10696 (user_reg_add, user_reg_map_name_to_regnum)
10697 (usernum_to_user_reg): Update.
10698
4bb7a0a7
DJ
106992004-03-09 Daniel Jacobowitz <drow@mvista.com>
10700
10701 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10702 (skip_children): New functions.
10703 (locate_pdi_sibling): Call skip_children.
10704
44e1a9eb
DJ
107052004-03-09 Daniel Jacobowitz <drow@mvista.com>
10706
10707 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10708 * gdbtypes.c (check_typedef): Update comments.
10709
f3dd6933
DJ
107102004-03-09 Daniel Jacobowitz <drow@mvista.com>
10711
10712 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10713 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10714 pointer. Update comment about comp_unit_head.
10715 (struct abbrev_info): Shorten two int flags.
10716 (dwarf_alloc_abbrev): Take a CU argument.
10717 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10718 each time through the loop. Update cleanup argument.
10719 (psymtab_to_symtab_1): Update cleanup call.
10720 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10721 abbrev_obstack.
10722 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10723 Just call obstack_free and clear the pointer.
10724
b40c7d58
DJ
107252004-03-09 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * infrun.c (handle_inferior_event): Remove short-circuit code for
10728 events in a different thread.
10729
333dabeb
DJ
107302004-03-09 Daniel Jacobowitz <drow@mvista.com>
10731
10732 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10733 print the whole transfer.
10734 (initialize_targets): Update description of "set debug target".
10735
aa17d93e
DJ
107362004-03-09 Daniel Jacobowitz <drow@mvista.com>
10737
10738 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10739
0b71f08f
NW
107402004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10741
10742 * MAINTAINERS (write after approval): Add myself.
10743
3930f270
CV
107442004-03-08 Corinna Vinschen <vinschen@redhat.com>
10745
10746 * sh-tdep.c (sh_print_registers_info): Use for loop.
10747 Don't skip multiple registers when a float register is encountered.
10748
a2b4a96c
CV
107492004-03-08 Corinna Vinschen <vinschen@redhat.com>
10750
10751 Fix PR tdep/1291.
10752 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10753 to official SH documentation.
10754
f15a4bc0
AC
107552004-03-07 Andrew Cagney <cagney@redhat.com>
10756
10757 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10758 unused function.
10759
9498281f
DJ
107602004-03-07 Daniel Jacobowitz <drow@mvista.com>
10761
10762 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10763 (arm_get_next_pc): Handle BX and BLX.
10764
449e1137
AC
107652004-03-07 Andrew Cagney <cagney@redhat.com>
10766
eded0a31
AC
10767 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10768 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10769 HPPA_SP_REGNUM.
10770 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10771 (hppa_target_read_fp): Delete.
10772 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10773 register_virtual_size, max_register_raw_size,
10774 max_register_virtual_size, register_byte, register_size,
10775 target_read_fp, fp_regnum, and register_bytes. Set register_type
10776 instead of register_virtual_type.
10777 (hppa32_register_type, hppa64_register_type): Replace
10778 hppa32_register_virtual_type and hppa64_register_virtual_type.
10779 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10780 (HPPA_FP_REGNUM): Define.
10781
f5f907e2
AC
10782 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10783
69b4bbe4
AC
10784 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10785 (pa_do_registers_info): Delete.
10786 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10787 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10788 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10789
78161e48
AC
10790 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10791 GDB_TARGET_IS_HPPA code.
10792 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10793 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10794 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10795 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10796 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10797 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10798 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10799 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10800 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10801 (hppa_frameless_function_invocation, hppa64_store_return_value)
10802 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10803 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10804 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10805 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10806 (find_proc_framesize, deposit_21, restore_pc_queue)
10807 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10808 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10809
782eae8b
AC
10810 Unconditionally enable 64-bit frame and ABI code.
10811 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10812 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10813 push_dummy_frame, fix_call_dummy, push_arguments,
10814 call_dummy_location, extract_return_value, use_struct_convention,
10815 store_return_value, store_struct_return, saved_pc_after_call,
10816 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10817 frame_chain, frame_chain_valid, frameless_function_invocation,
10818 frame_saved_pc, and pop_frame.
78161e48 10819
449e1137
AC
10820 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10821 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10822 (hppa_gdbarch_init): Do not set PC_REGNUM.
10823
12507572
MK
108242004-03-06 Mark Kettenis <kettenis@gnu.org>
10825
10826 * config/alpha/tm-fbsd.h: Remove file.
10827 * config/alpha/fbsd.mt: Tweak comment.
10828 (TM_FILE): Set to tm-alpha.h.
10829
c107cc1b
AC
108302004-03-05 Andrew Cagney <cagney@redhat.com>
10831
10832 * infrun.c (step_over_function): When non-legacy code, and no
10833 step_frame_id, use the unwinder to get the caller's frame ID.
10834
f2e7c15d
MK
108352004-03-05 Mark Kettenis <kettenis@gnu.org>
10836
8b0c3633
MK
10837 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10838 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10839 bfd_arch_unknown. Adjust comment.
10840
f2e7c15d
MK
10841 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10842 * i386obsd-tdep.c: Correct spelling in comment.
10843 * i386nbsd-tdep.c: Correct spelling in comment.
10844 * sparc-tdep.c: Correct spelling in comments.
10845
1198ecbe
DC
108462004-03-05 David Carlton <carlton@kealia.com>
10847
10848 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10849 bug.
10850
9eb42ed1
MK
108512004-03-05 Mark Kettenis <kettenis@gnu.org>
10852
10853 * sparc-tdep.c: Fix typo in comment.
10854
52b5e991
JB
108552004-03-04 J. Brobecker <brobecker@gnat.com>
10856
10857 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10858
d8151005
DJ
108592004-03-04 Daniel Jacobowitz <drow@mvista.com>
10860
10861 * dwarf2read.c: Add comment describing memory lifetimes.
10862 (struct dwarf2_pinfo): Update comment.
10863 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10864 (read_enumeration, new_symbol): Don't use obsavestring.
10865
cbeae229
MK
108662004-03-04 Mark Kettenis <kettenis@gnu.org>
10867
722d18c2
MK
10868 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10869 instead of amd64_fill_fxsave.
10870 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10871 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10872
cbeae229
MK
10873 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10874 Reorganize code a bit.
10875
b4206d25
OF
108762004-03-04 Orjan Friberg <orjanf@axis.com>
10877
10878 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10879 when the frame pointer is pushed. Don't set the frame pointer's
10880 address on the stack unless it's actually located there.
b4206d25
OF
10881 Set the SRP's address on the stack correctly when the PC is still in
10882 the prologue.
10883 (cris_return_value): New function.
10884 (cris_gdbarch_init): Clear deprecated store_return_value,
10885 extract_return_value.
10886
49b0b195
JB
108872004-03-02 Jim Blandy <jimb@redhat.com>
10888
10889 * stabsread.c (reg_value_complaint): The maximum register number
10890 is one less than the number of registers.
10891
e9ff708b
AC
108922004-03-02 Andrew Cagney <cagney@redhat.com>
10893
10894 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10895 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10896 trailing comma and redundant assignment of I386_ST0_REGNUM.
10897 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10898 32-bit segment registers.
10899
d4715e41
AC
109002004-03-01 Andrew Cagney <cagney@redhat.com>
10901
10902 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10903 use frame_relative_level and get_next_frame.
10904
3ce2bf18
AC
109052004-02-29 Andrew Cagney <cagney@redhat.com>
10906
10907 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10908 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10909 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10910 Delete macro.
10911
2da6aac3
DJ
109122004-02-29 Daniel Jacobowitz <drow@mvista.com>
10913
10914 * inflow.c (terminal_inferior): Don't give up the terminal if we
10915 previously couldn't get the inferior's terminal state.
10916
6ba34a8d
DJ
109172004-02-29 Daniel Jacobowitz <drow@mvista.com>
10918
10919 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10920 PC_REGNUM.
10921
faae5abe
AC
109222004-02-28 Andrew Cagney <cagney@redhat.com>
10923
10924 * NEWS: Refer to GDB 6.1.
10925 * README: Refer to GDB 6.1.
10926 * PROBLEMS: Refer to GDB 6.1.
10927
2227a3c5
DJ
109282004-02-28 Daniel Jacobowitz <drow@mvista.com>
10929
10930 * thread-db.c (disable_thread_signals): Remove unused function.
10931
80571bff
MK
109322004-02-28 Mark Kettenis <kettenis@gnu.org>
10933
041bd74b
MK
10934 * amd64-nat.c: Include "gdb_string.h".
10935 (amd64_collect_native_gregset): Zero-extend the 32-bit
10936 general-purpose registers and %eip.
10937
3c017e40
MK
10938 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10939 * amd64-tdep.c (amd64_collect_fxsave): New function.
10940 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10941
80571bff
MK
10942 * i387-tdep.h: Update copyright year.
10943 (i387_collect_fxsave): New prototype.
10944 * i387-tdep.c: Update copyright year.
10945 (i387_collect_fxsave): New function containing most of the code
10946 from i387_fill_fxsave.
10947 (i387_fill_fxsave): Call i387_collect_fxsave.
10948
50d71875
AC
109492004-02-28 Andrew Cagney <cagney@redhat.com>
10950
10951 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10952 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10953
4a28816e
MK
109542004-02-28 Mark Kettenis <kettenis@gnu.org>
10955
10956 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10957
dbda9972
AC
109582004-02-28 Andrew Cagney <cagney@redhat.com>
10959
10960 * utils.c: Use "", instead of <>, to include readline.
10961 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10962 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10963 * source.c, solib.c, exec.c, event-top.c: Ditto.
10964 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10965 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10966 * Makefile.in: Update all dependencies.
10967 (readline_tilde_h, readline_history_h): Define.
10968 (readline_headers): Delete.
10969
83277a99
MK
109702004-02-28 Mark Kettenis <kettenis@gnu.org>
10971
91ae4303
MK
10972 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10973 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10974 "config/i386/tm-lx64.h".
10975
83277a99
MK
10976 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10977 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10978 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10979
6e1d7d6c
AC
109802004-02-28 Andrew Cagney <cagney@redhat.com>
10981
ecc9ac84
AC
10982 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10983
6e1d7d6c
AC
10984 * breakpoint.c (_initialize_breakpoint): Use
10985 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10986 Add help to show command.
10987
9671aeef
MK
109882004-02-28 Mark Kettenis <kettenis@gnu.org>
10989
7fa2737c
MK
10990 * i386-nat.c: Reformat to be closer to coding standards.
10991 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10992 `retval'. Make variables `align' and `size' local to while-loop.
10993 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10994 (_initialize_i386_nat): New prototype.
10995
9671aeef
MK
10996 * tui/tui.c: Include <readline/readline.h> instead of
10997 "readline/readline.h". Include it after <term.h> and
10998 "gdb_curses.h".
10999
fca7aa43
AC
110002004-02-27 Andrew Cagney <cagney@redhat.com>
11001
412275d5
AC
11002 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11003 the new frame unwind code.
11004 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11005 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11006 PCOQ_HEAD_REGNUM.
11007
fca7aa43
AC
11008 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11009 "return_value" and "push_dummy_call".
11010 (hppa32_use_struct_convention): Delete unused function.
11011 (hppa32_store_return_value): Delete unused function.
11012 (hppa32_extract_return_value): Delete unused function.
11013 (hppa32_stack_align): Delete function.
11014
e6a8a7d2
EZ
110152004-02-27 Eli Zaretskii <eliz@elta.co.il>
11016
11017 * coffread.c (enter_linenos): Don't let rawptr reference memory
11018 outside linetab[]'s limits.
11019
1797a8f6
AC
110202004-02-27 Andrew Cagney <cagney@redhat.com>
11021
11022 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11023 inferior stack space - the stack needs to grow upwards.
11024 (hppa32_frame_align): New function.
11025 (hppa64_frame_align): Replace hppa_frame_align.
11026 (hppa_gdbarch_init): Update.
11027
2e4b5889
OF
110282004-02-26 Orjan Friberg <orjanf@axis.com>
11029
11030 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11031 (dwarf2-frame.h): Include.
11032 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11033 Remove static variables related to ABI setting.
11034 (struct gdbarch_tdep): Remove cris_abi member.
11035 (struct frame_extra_info): Remove.
11036 (cris_unwind_cache, stack_item): New structs.
11037 (cris_frame_unwind, cris_frame_base): New variables.
11038 (push_stack_item, pop_stack_item)
11039 (cris_frame_unwind_cache, cris_frame_this_id)
11040 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11041 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11042 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11043 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11044 (cris_reg_struct_has_addr): New functions.
11045 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 11046 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
11047 (cris_store_struct_return, cris_frameless_function_invocation)
11048 (cris_pop_frame, cris_skip_prologue_main)
11049 (cris_abi_original_store_return_value)
11050 (cris_abi_v2_store_return_value)
11051 (cris_abi_original_extract_return_value)
11052 (cris_abi_v2_extract_return_value)
11053 (cris_abi_original_reg_struct_has_addr)
11054 (cris_abi_v2_reg_struct_has_addr)
11055 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11056 (cris_push_return_address, cris_abi_update): Remove.
11057 (_initialize_cris_tdep): Remove ABI command.
11058 (cris_dump_tdep): Ditto.
8718a420 11059 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
11060 Set store_return_value, extract_return_value, push_dummy_code,
11061 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11062 frame_unwind_append_sniffer, frame_base_set_default.
11063 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11064 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11065 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 11066 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
11067 init_extra_frame_info, frameless_function_invocation, frame_chain,
11068 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11069 dummy_write_sp.
8718a420 11070
6b9acc27
JJ
110712004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11072
11073 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11074 * valprint.c (print_hex_chars): Change from static to external.
11075 (print_char_chars): New function.
11076 * printcmd.c (print_scalar_formatted): For integer and enum types
11077 that are longer than LONGEST, perform processing via appropriate
11078 print_*_chars routines.
11079
a431654a
AC
110802004-02-26 Andrew Cagney <cagney@redhat.com>
11081
11082 * Makefile.in: Update dependencies.
11083 Changes from Ulrich Weigand,
11084 * s390-tdep.c: Include "dwarf2-frame.h".
11085 (s390_dwarf2_frame_init_reg): New function.
11086 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11087 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11088
fa8d40ab
JJ
110892004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11090
11091 * breakpoint.c (pending_break_support): New setting variable.
11092 (break_command_1): Account for pending_break_support setting
11093 when creating pending breakpoints.
11094 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11095 (_initialize_breakpoint): Add "set breakpoint pending" and
11096 "show breakpoint pending" commands.
11097
0dcd613f
AC
110982004-02-26 Andrew Cagney <cagney@redhat.com>
11099
11100 Fix PR i18n/1570.
11101 * charset.c (backslashable, backslashed, represented): Remove 'e'
11102 from list of escaped characters, not part of ISO-C.
11103
479272a3
JB
111042004-02-25 J. Brobecker <brobecker@gnat.com>
11105
11106 From Peter Schauer <schauer@pdf.de>:
11107 * tui/tui.c: Move system header includes after local includes.
11108 Fixes a build failure on solaris systems.
11109
7613d933
JB
111102004-02-25 J. Brobecker <brobecker@gnat.com>
11111
11112 * configure.in: Refine the previous change.
11113 * configure: Regenerate.
11114
9c1488cb
MK
111152004-02-25 Mark Kettenis <kettenis@gnu.org>
11116
11117 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11118 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11119 "amd64-tdep.h" instead of "x86-64-tdep.h".
11120 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11121 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11122 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11123 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11124 and "x86-64-tdep.c".
11125 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11126 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11127 and "x86-64-tdep.c".
11128 * amd64bsd-nat.c: Update copyright year.
11129 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11130 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11131 "x86-64-tdep.h".
11132 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11133 "x86-64-tdep.h".
11134 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11135 "x86-64-tdep.h".
11136 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11137 "x86-64-tdep.h".
11138 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11139 "x86-64-tdep.h".
11140 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11141 "x86-64-tdep.h".
8718a420 11142 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
11143 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11144 * Makefile.in (amd64_linux_tdep_h): Renamed from
11145 x86_64_linux_tdep_h.
11146 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11147 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11148 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11149 (amd64obsd-tdep.o): Update dependencies.
11150 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11151 dependencies.
11152 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11153 dependencies.
11154 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11155 amd64-linux-nat.c amd64-linux-tdep.c.
11156 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11157 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11158 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11159 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11160 amd64-tdep.o and amd64-linux-tdep.o.
11161 (TM_FILE): Set to tm-linux64.h.
11162 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11163 (NAT_FILE): Set to nm-linux64.h.
11164 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11165 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11166 amd64-tdep.o.
11167 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11168 amd64-tdep.o.
11169 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11170 amd64-tdep.o.
11171
4b8dad4a
RM
111722004-02-25 Roland McGrath <roland@redhat.com>
11173
11174 * remote.c (remote_protocol_qPart_auxv): New variable.
11175 (init_all_packet_configs): Initialize it.
11176 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11177 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11178 (show_remote_cmd): Call it.
11179 (_initialize_remote): Initialize commands.
11180 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11181 service TARGET_OBJECT_AUXV requests.
11182
66745969
JB
111832004-02-25 J. Brobecker <brobecker@gnat.com>
11184
11185 * configure.in: Make sure that the wborder function is available.
11186 Otherwise, search for it in the cur_colr library.
11187 * configure: Regenerate.
11188
79508e1e
AC
111892004-02-25 Andrew Cagney <cagney@redhat.com>
11190
11191 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11192
571ee600
MK
111932004-02-25 Mark Kettenis <kettenis@gnu.org>
11194
11195 * config/i386/tm-x86-64linux.h: Tweak comments.
11196
2b1b322f 111972004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11198
11199 * MAINTAINERS: Add self to write-after-approval list.
11200
4d2acc65
AC
112012004-02-25 Andrew Cagney <cagney@redhat.com>
11202
4b8dad4a 11203 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11204 * cli/cli-script.c (execute_control_command): Unconditionally
11205 install a cleanup. Default "ret" to "invalid_control". Use
11206 "break" instead of "return" to escape from the switch.
11207
4cfcaf21
JB
112082004-02-24 J. Brobecker <brobecker@gnat.com>
11209
11210 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11211 with the lines macro defined in term.h on AiX.
11212 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11213 a collision with the label_width macro defined in term.h on AiX.
11214
54a5c8d8
KB
112152004-02-23 David Mosberger <davidm@hpl.hp.com>
11216
11217 Committed by Kevin Buettner <kevinb@redhat.com>.
11218
11219 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11220 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11221 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11222 instead of ia64_write_pc().
11223 * ia64-linux-tdep.c (regcache.h): Include.
11224 (ia64_linux_write_pc): New function.
4b8dad4a 11225
8a1dac83
RM
112262004-02-23 Roland McGrath <roland@redhat.com>
11227
11228 * auxv.c (info_auxv_command): Fix typos in error messages.
11229
90f90721
MK
112302004-02-23 Mark Kettenis <kettenis@gnu.org>
11231
8a1dac83 11232 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11233 (enum amd64_regnum): New.
11234 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11235 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11236 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11237 (X86_64_XMM1_REGNUM): Removed.
11238 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11239 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11240 prototypes for renamed functions.
11241 * x86-64-tdep.c: Fix typo.
11242 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11243 register numbers.
11244 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11245 Use constants from `enum amd64_regnum' for register numbers.
11246 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11247 (amd64_analyze_prologue, amd64_frame_cache,
11248 amd64_sigtramp_frame_cache): Use constants from `enum
11249 amd64_regnum' for register numbers.
11250 (amd64_supply_fpregset): Adjust for renamed functions.
11251 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11252 `enum amd64_regnum' for register numbers.
11253 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11254 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11255 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11256 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11257 (amd64_linux_fill_gregset): Adjust for renamed macros.
11258 (fetch_core_registers): Adjust for renamed functions.
11259 (amd64_linux_init_abi): Adjust for renamed functions.
11260 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11261 renamed functions.
11262 * amd64-nat.c: Adjust for renamed macros.
11263 * amd64bsd-nat.c (fetch_inferior_registers)
11264 (store_inferior_registers): Use constants from `enum amd64_regnum'
11265 for register numbers. Adjust for renamed variables.
11266 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11267 renamed variables.
11268 (_initialize_amd64fbsd_nat): Use constants from `enum
11269 amd64_regnum' for register numbers.
11270 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11271 `enum amd64_regnum' for register numbers.
11272 (amd64fbsd_init_abi): Adjust for renamed functions.
11273 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11274 `enum amd64_regnum' for register numbers.
11275 (amd64nbsd_init_abi): Adjust for renamed functions.
11276 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11277 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11278 `enum amd64_regnum' for register numbers.
11279 (amd64obsd_init_abi): Adjust for renamed functions.
11280 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11281
d5479188
JJ
112822004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11283
11284 * breakpoint.c (print_one_breakpoint): Do not output spaces
11285 after printing <PENDING> for a pending breakpoint.
11286
81cb7cc9
JJ
112872004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11288
11289 * printcmd.c (print_scalar_formatted): Initialize val_long
11290 to remove compiler warning message.
11291
cbdeadca
JJ
112922004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11293
11294 * defs.h (nquery, yquery): New prototypes.
11295 * breakpoint.c (break_command_1): Use new nquery interface.
11296 * utils.c (defaulted_query, nquery, yquery): New functions.
11297
da6bab63
AC
112982004-02-23 Andrew Cagney <cagney@redhat.com>
11299
2f690297
AC
11300 * hppa-tdep.c (hppa_frame_align): New function.
11301 (hppa32_push_dummy_call): New function.
11302 (hppa64_push_dummy_call): New function.
11303 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11304 disabled.
8a1dac83 11305
da6bab63
AC
11306 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11307 FIX_CALL_DUMMY when push_dummy_call is available.
11308 (call_function_by_hand, push_dummy_code): Ditto.
11309
abf9b42d
AC
113102004-02-22 Andrew Cagney <cagney@redhat.com>
11311
11312 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11313 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11314 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11315 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11316 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11317 call_dummy_location to ON_STACK.
11318
10fc94a4
MK
113192004-02-22 Mark Kettenis <kettenis@gnu.org>
11320
51433e4b
MK
11321 * x86-64-linux-tdep.c: Tweak comment.
11322 (amd64_linux_supply_gregset): Renamed from
11323 x86_64_linux_supply_gresget.
11324 (amd64_linux_fill_gregset): Renamed from
11325 x86_64_linux_fill_gregset.
11326 (fetch_core_registers): Adjust for renamed functions.
11327 (amd64_core_fns): Renamed from x86_64_core_fns.
11328 (amd64_linux_sigtramp_start): Renamed from
11329 x86_64_linux_sigtramp_start.
11330 (amd64_linux_pc_in_sigtramp): Renamed from
11331 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11332 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11333 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11334 (amd64_linux_sigcontext_addr): Renamed from
11335 x86_64_linux_sigcontext_addr.
11336 (amd64_linux_sc_reg_offset): Renamed from
11337 x86_64_linux_sc_reg_offset.
11338 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11339 Adjust for renamed functions and variables.
11340 (_initialize_amd64_linux_tdep): Renamed from
11341 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11342 variables.
11343 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11344 Adjust for renamed functions.
11345
430eaf2e
MK
11346 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11347 from x86_64_linux_gregset64_reg_offset.
11348 (amd64_linux_gregset32_reg_offset): Rename from
11349 x86_64_linux_gregset64_reg_offset.
11350 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11351 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11352 (amd64_linux_dr_set_control): Renamed from
11353 x86_64_linux_dr_set_control. Adjust for renamed functions.
11354 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11355 Adjust for renamed functions.
11356 (amd64_linux_dr_reset_addr): Renamed from
11357 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11358 (amd64_linux_dr_get_status): Renamed from
11359 x86_64_linux_dr_get_status. Adjust for renamed functions.
11360 (_initialize_amd64_linux_nat): Renamed from
11361 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11362 functions.
11363 * config/i386/nm-x86-64linux.h: Update copyright year.
11364 Adjust for renamed functions.
11365
10fc94a4
MK
11366 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11367 amd64fbsd_sigtramp_start.
11368 (amd64fbsd_sigtramp_end_addr): Renamed from
11369 amd64fbsd_sigtramp_end.
11370 (amd64fbsd_init_abi): Adjust for renamed variables.
11371 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11372 variables.
11373 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11374 amd64fbsd_sigtramp_start.
11375 (amd64fbsd_sigtramp_end_addr): Renamed from
11376 amd64fbsd_sigtramp_end.
11377
343af405
AC
113782004-02-22 Andrew Cagney <cagney@redhat.com>
11379
537987fc
AC
11380 * hppa-tdep.c (hppa32_return_value): New function.
11381 (hppa64_return_value): New function.
11382 (hppa_gdbarch_init): Set return_value; keep disabled.
11383
fad850b2
AC
11384 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11385 struct-return and inferior function call methods.
11386
26d08f08
AC
11387 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11388 "frame-base.h".
11389 (struct hppa_frame_cache): Define.
11390 (hppa_frame_cache, hppa_frame_this_id): New functions.
11391 (hppa_frame_prev_register): New function.
11392 (hppa_frame_unwind, hppa_frame_base): New variables.
11393 (hppa_frame_unwind_sniffer): New function.
11394 (hppa_frame_base_address, hppa_unwind_pc): New function.
11395 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11396 sniffer, and frame base sniffer; keep disabled.
11397 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11398 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11399
e7d7bd65
AC
11400 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11401 to predicates for "seriously old code".
11402
e963316f
AC
11403 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11404 runtime if(0).
11405
56132691
AC
11406 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11407 unsigned.
11408 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11409
343af405
AC
11410 * config/pa/tm-hppa.h: Update copyright.
11411 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11412 (deprecated_init_frame_pc_default): Delete declaration.
11413 (hppa_frame_init_saved_regs): Delete declaration.
11414 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11415 * hppa-tdep.c: Include "arch-utils.h".
11416 (hppa_gdbarch_init): Set deprecated init_frame_pc
11417 and deprecated frame_init_saved_regs.
11418 (hppa_frame_init_saved_regs): Make static.
11419
f5859b4d
MK
114202004-02-22 Mark Kettenis <kettenis@gnu.org>
11421
86f6f8e7 11422 Remove old 386BSD support.
cf7c5c23 11423 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11424 * configure.host: Remove i[34567]86-*-bsd*.
11425 * configure.tgt: Remove i[34567]86-*-bsd*.
11426 * i386b-nat.c: Removed.
11427 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11428 (i386b-nat.o): Remove dependencies.
11429
86f6f8e7
MK
11430 * config/i386/i386bsd.mh: Removed.
11431 * config/i386/i386bsd.mt: Removed.
11432 * config/i386/nm-i386bsd.h: Removed.
11433 * config/i386/tm-i386bsd.h: Removed.
11434 * config/i386/xm-i386bsd.h: Removed.
11435
971218cd
MK
11436 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11437
7e654c37
MK
11438 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11439 (amd64fbsd_init_abi): Set link map offsets.
11440 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11441 (amd64nbsd_init_abi): Set link map offsets.
11442 * amd64obsd-tdep.c: Include "solib-svr4.h".
11443 (amd64obsd_init_abi): Set link map offsets.
11444 * i386fbsd-tdep.c: Include "solib-svr4.h".
11445 (i386fbsd_init_abi): Set link map offsets.
11446 * i386nbsd-tdep.c: Include "solib-svr4.h".
11447 (i386nbsdelf_init_abi): Set link map offsets.
11448 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11449 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11450 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11451 solib-legacy.o and core-aout.o. Reformat.
11452 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11453 solib-svr4.o, solib-legacy.o. Reformat.
11454 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11455 * config/i386/nbsdelf.mh: Reformat.
11456 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11457 solib-svr4.o, solib-legacy.o and corelow.o.
11458 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11459 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11460 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11461 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11462 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11463 (TM_FILE): Set to tm-fbsd.h.
11464 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11465 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11466 solib-svr4.o.
11467 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11468 solib-svr4.o.
11469 (TM_FILE): Set to nm-nbsd.h.
11470 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11471 Simplify shared library support. Don't include "elf/common.h".
11472 (SVR4_SHARED_LIBS): Don't define.
11473 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11474 "solib.h".
11475 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11476 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11477 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11478 Don't include "i386/tm-i386.h". Include "solib.h".
11479 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11480 Don't include "i386/tm-i386.h".
11481 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11482 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11483 Include "i386/xm-i386.h".
11484 (HOST_LONG_DOUBLE_FORMAT): Remove.
11485
5d93ae8c
MK
11486 Fix OpenBSD/i386 sigtramp recognition.
11487 * i386-tdep.h: Update copyright year.
11488 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11489 (i386bsd_sigtramp_end): New prototypes.
11490 (i386fbsd_sigtramp_start_addr): Renamed from
11491 i386fbsd_sigtramp_start.
11492 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11493 (i386obsd_sigtramp_start_addr): Renamed from
11494 i386obsd_sigtramp_start.
11495 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11496 * i386bsd-tdep.c: Update copyright year.
11497 (i386bsd_pc_in_sigtramp): Make public.
11498 * i386fbsd-nat.c: Update copyright year.
11499 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11500 * i386fbsd-tdep.c: Update copyright year.
11501 (i386fbsd_sigtramp_start_addr): Renamed from
11502 i386fbsd_sigtramp_start.
11503 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11504 (i386fbsdaout_init_abi): Adjust for renamed variables.
11505 * i386obsd-nat.c: Update copyright year.
11506 (_initialize_i386obsd_nat): Adjust for renamed variables.
11507 * i386obsd-tdep.c: Include "target.h".
11508 (i386obsd_page_size): New variable.
11509 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11510 (i386obsd_sigtramp_end): New functions.
11511 (i386obsd_sigtramp_start_addr): Renamed from
11512 i386obsd_sigtramp_start.
11513 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11514 (i386obsd_init_abi): Adjust for renamed variables. Set
11515 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11516 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11517
84d04465
MK
11518 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11519 trampoline change in OpenBSD kernel.
11520
b053aceb
MK
11521 * amd64-nat.c: Update copyright year.
11522 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11523 architecture from REGCACHE.
11524
f5859b4d
MK
11525 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11526 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11527
e4bbbda8
MK
115282004-02-21 Mark Kettenis <kettenis@gnu.org>
11529
ba361932
MK
11530 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11531 i[34567]86-*-openbsd3.[0-3].
11532 * config/i386/obsdaout.mh: New file.
11533
d3e48264
MK
11534 * config/i386/obsd.mh (MH_FLAGS): Remove.
11535
60a6eeb6
MK
11536 Fix PR build/1549.
11537 * i386obsd-tdep.c: Update copyright years. Include
11538 "solib-svr4.h".
11539 (i386obsd_init_abi): Don't set regset_from_core_section here.
11540 (i386obsd_aout_init_abi): New function. Set
11541 regset_from_core_section here.
11542 (i386obsd_elf_init_abi): New function.
11543 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11544 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11545 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11546 (TM_FILE): Set to tm-nbsd.h.
11547
11548 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11549 solib-sunos.o.
11550
e4bbbda8
MK
11551 * solib-svr4.h: Update copyright year.
11552 (svr4_ilp32_fetch_link_map_offsets)
11553 (svr4_lp64_fetch_link_map_offsets): New prototype.
11554 * solib-svr4.c: Update copyright year.
11555 (svr4_ilp32_fetch_link_map_offsets)
11556 (svr4_lp64_fetch_link_map_offsets): New function.
11557
f6fe98ef
DJ
115582004-02-20 Daniel Jacobowitz <drow@mvista.com>
11559
11560 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11561 to the partial symbol table.
11562
589ca796
JB
115632004-02-20 J. brobecker <brobecker@gnat.com>
11564
11565 * PROBLEMS: Add description of problem documented under gdb/1560.
11566
2031c21a
MK
115672004-02-20 Mark Kettenis <kettenis@gnu.org>
11568
30b344b1
MK
11569 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11570 comments.
11571 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11572 functions.
11573 (amd64obsd_init_abi): Reorder initializations. Use
11574 amd64obsd_r_reg_offset to initialize the general-purpose register
11575 set details. Set regset_from_core_section.
11576 (_initialize_amd64obsd_tdep): Rename from
11577 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11578 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11579 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11580
2031c21a
MK
11581 * NEWS (New native configurations): Mention OpenBSD/alpha.
11582 * configure.tgt: Add alpha*-*-openbsd*.
11583 * configure.host: Add alpha*-*-openbsd*.
11584 * alphanbsd-tdep.c: Update copyright year.
11585 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11586
42471775
AC
115872004-02-20 Andrew Cagney <cagney@redhat.com>
11588
11589 Fix PR tdep/1372.
11590 * configure.tgt: Delete target "none-*-*".
11591 * configure.host: Delete host "none-*-*".
11592 * config/none/none.mh: Delete file.
11593 * config/none/none.mt: Delete file.
11594 * config/none/xm-none.h: Delete file.
11595 * config/none/tm-none.h: Delete file.
11596 * config/none/nm-none.h: Delete file.
11597
960ccd7d
FF
115982004-02-19 Fred Fish <fnf@redhat.com>
11599
11600 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11601 cache->uses_fp prior to setting it.
11602
5f883edd
FF
116032004-02-19 Fred Fish <fnf@redhat.com>
11604
11605 Fix for PR breakpoint/1558.
11606 * sh-tdep.c (IS_JSR): New macro.
11607 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11608
f98c22d5
JB
116092004-02-19 Jim Blandy <jimb@redhat.com>
11610
11611 * findvar.c (value_from_register): Doc fix.
11612
95051d27
JJ
116132004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11614
11615 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11616 type being greater than sizeof of host's LONGEST. Always use
11617 unpack_long() unless format 'f' chosen.
11618
ccefbec3
EZ
116192004-02-19 Joel Brobecker <brobecker@gnat.com>
11620
11621 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11622
ccefbec3
EZ
11623 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11624 contains a symbol wich is the best, non-exact match for the given
11625 pc. Update comments.
11626
116272004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11628
2ede629f
EZ
11629 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11630 macro, which was part of the now removed Mach 3 port.
11631 * utils.c (request_quit): Ditto.
11632
567ee972
MK
116332004-02-18 Mark Kettenis <kettenis@gnu.org>
11634
11635 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11636 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11637
50cca7bb
MK
116382004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11639
11640 Committed by Mark Kettenis <kettenis@gnu.org>.
11641
11642 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11643 Define.
11644
226361c4
AC
116452004-02-18 Andrew Cagney <cagney@redhat.com>
11646
11647 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11648 CONFIG_INSTALL and CONFIG_UNINSTALL.
11649 * configure: Re-generate.
11650 * interps.h (INTERP_TUI): Define.
11651 * Makefile.in: Update dependencies.
11652 (TUI): New macro.
11653 (tui-main.o): Specify dependencies.
11654 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11655 * tui/tui-main.c: New file.
11656
49cfa46f
MK
116572004-02-18 Mark Kettenis <kettenis@gnu.org>
11658
e2879ccb
MK
11659 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11660 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11661 dependencies.
11662 * configure.host: Add x86_64-*-openbsd*.
11663 * configure.tgt: Add x86_64-*-openbsd*.
11664 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11665
c43f4bec
MK
11666 * tui/tui.c: Don't include <malloc.h>.
11667
09ae75b6
MK
11668 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11669 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11670 amd64nbsd-tdep.c.
11671
49cfa46f 11672 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11673 static. Remove extraneous whitespace.
49cfa46f
MK
11674 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11675 static.
11676
05957fdb
JB
116772004-02-17 Jim Blandy <jimb@redhat.com>
11678
11679 * findvar.c (value_from_register): Doc fix.
11680
d0f54f9d
JB
116812004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11682
11683 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11684
8a1dac83 11685 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11686 CORE_ADDR as type for selectors. Correct types for GNU run time
11687 message lookup function to use double indirection.
11688 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11689 * objc-lang.h (lookup_child_selector): Adapt prototype.
11690
9cbd5950
JB
11691 * s390-nat.c (SUBOFF): New macro.
11692 (supply_gregset, fill_gregset): Use it to handle debugging
11693 of 32-bit exectuables running under a 64-bit kernel.
11694 * s390-tdep.c: Include "solib-svr4.h".
11695 (s390_svr4_fetch_link_map_offset): New function.
11696 (s390x_svr_fetch_link_map_offset): Likewise.
11697 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11698 * Makefile.in (s390-tdep.o): Update dependencies.
11699
a8c99f38
JB
11700 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11701 "frame-unwind.h".
11702 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11703 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11704 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11705 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11706 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11707 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11708 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11709 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11710 (struct frame_extra_info): Remove.
11711 (s390_memset_extra_info): Remove.
f73b1eff
JB
11712 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11713 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11714 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11715 (is_rse): Renamed to ...
11716 (is_rsy): ... this. Support long displacements.
11717 (is_rxe): Renamed to ...
11718 (is_rxy): ... this. Support long displacements.
11719 (compute_x_addr): Support long displacements.
11720 (struct s390_prologue_data): New data type.
11721 (s390_on_stack): Change API to use struct s390_prologue_data.
11722 (s390_store): Reimplement.
11723 (s390_load): New function.
11724 (s390_get_signal_frame_info): Remove.
11725 (s390_get_frame_info): Remove, replace by ...
11726 (s390_analyze_prolog): ... this new function.
11727 (s390_check_function_end): Remove.
11728 (s390_function_start): Remove.
11729 (s390_frameless_function_invokation): Remove.
11730 (s390_is_sigreturn): Remove.
11731 (s390_init_frame_pc_first): Remove.
11732 (s390_init_frame_extra_info): Remove.
11733 (s390_frame_init_saved_regs): Remove.
11734 (s390_frame_saved_pc_nofix): Remove.
11735 (s390_frame_saved_pc): Remove.
11736 (s390_frame_chain): Remove.
11737 (s390_fp_regnum, s390_read_fp): Remove.
11738 (s390_pop_frame_regular, s390_pop_frame): Remove.
11739 (s390_saved_pc_after_call): Remove.
11740 (s390_skip_prologue): Reimplement.
11741 (s390_in_function_epilogue_p): Support long displacements.
11742 (struct s390_unwind_cache): New data structure.
11743 (s390_frame_unwind_cache): New function.
11744 (s390_prologue_frame_unwind_cache): Likewise.
11745 (s390_backchain_frame_unwind_cache): Likewise.
11746 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11747 (s390_frame_unwind): Define.
11748 (s390_frame_sniffer): New function.
11749 (struct s390_pltstub_unwind_cache): New data structure.
11750 (s390_pltstub_frame_unwind_cache): New function.
11751 (s390_pltstub_frame_this_id): Likewise.
11752 (s390_pltstub_frame_prev_register): Likewise.
11753 (s390_pltstub_frame_unwind): Define.
11754 (s390_pltstub_frame_sniffer): New function.
11755 (struct s390_sigtramp_unwind_cache): New data structure.
11756 (s390_sigtramp_frame_unwind_cache): New function.
11757 (s390_sigtramp_frame_this_id): Likewise.
11758 (s390_sigtramp_frame_prev_register): Likewise.
11759 (s390_sigtramp_frame_unwind): Define.
11760 (s390_sigtramp_frame_sniffer): New function.
11761 (s390_frame_base_address, s390_local_base_address): New functions.
11762 (s390_frame_base): Define.
11763 (s390_unwind_pc, s390_unwind_sp): New function.
11764 (s390_push_dummy_call): Use new frame base location.
11765 (s390_unwind_dummy_id): Likewise.
11766 (s390_gdbarch_init): Remove calls to:
11767 set_gdbarch_frameless_function_invocation,
11768 set_gdbarch_deprecated_init_frame_pc,
11769 set_gdbarch_deprecated_frame_chain,
11770 set_gdbarch_deprecated_frame_init_saved_regs,
11771 set_gdbarch_deprecated_pop_frame,
11772 set_gdbarch_deprecated_init_extra_frame_info,
11773 set_gdbarch_deprecated_init_frame_pc_first,
11774 set_gdbarch_deprecated_target_read_fp,
11775 set_gdbarch_deprecated_frame_saved_pc,
11776 set_gdbarch_deprecated_saved_pc_after_call,
11777 set_gdbarch_deprecated_fp_regnum.
11778 Add calls to:
11779 set_gdbarch_in_solib_call_trampoline,
11780 frame_unwind_append_sniffer,
11781 frame_base_set_default,
11782 set_gdbarch_unwind_pc,
11783 set_gdbarch_unwind_sp.
11784 * Makefile.in (s390-tdep.o): Update dependencies.
11785
b0cf273e
JB
11786 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11787 (S390_STACK_FRAME_OVERHEAD): Remove.
11788 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11789 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11790 (s390_promote_integer_argument): Remove.
11791 (s390_cannot_extract_struct_value_address): Remove.
11792 (s390_use_struct_convention, s390_store_struct_return): Remove.
11793 (s390_extract_return_value, s390_store_return_value): Remove.
11794 (s390_return_value_convention, s390_return_value): New functions.
11795 (is_float_singleton): Handle typedefs.
8a1dac83 11796 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11797 Remove, replace by ...
11798 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11799 s390_function_arg_integer): ... these new functions.
11800 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11801 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11802 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11803 Fill in tdep->abi.
11804 Remove calls to:
11805 set_gdbarch_deprecated_store_struct_return,
11806 set_gdbarch_deprecated_extract_return_value,
11807 set_gdbarch_deprecated_store_return_value,
11808 set_gdbarch_use_struct_convention,
11809 set_gdbarch_extract_struct_value_address,
11810 set_gdbarch_deprecated_pc_in_call_dummy,
11811 set_gdbarch_deprecated_push_arguments,
11812 set_gdbarch_deprecated_save_dummy_frame_tos,
11813 set_gdbarch_deprecated_push_return_address,
11814 set_gdbarch_deprecated_sizeof_call_dummy_words,
11815 set_gdbarch_deprecated_call_dummy_words,
11816 set_gdbarch_deprecated_dummy_write_sp.
11817 Add calls to:
11818 set_gdbarch_push_dummy_call,
11819 set_gdbarch_unwind_dummy_id,
11820 set_gdbarch_return_value.
8a1dac83 11821
e1457d83
JB
11822 * config/s390/nm-linux.h: Update comments.
11823 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11824 (STOPPED_BY_WATCHPOINT): Redefine.
11825 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11826 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11827 (s390_stopped_by_watchpoint): Likewise.
11828 (watch_area_cnt): Remove.
11829 * s390-nat.c: Update comments.
11830 (watch_area): Remove typedef.
11831 Global replace watch_area by struct watch_area.
11832 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11833 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11834 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11835 (s390_fix_watch_points): Remove pid argument,
11836 use s390_inferior_tid. Recompute area spanned by watchpoints.
11837 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11838 argument. Reimplement.
11839
d0f54f9d
JB
11840 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11841 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11842 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11843 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11844 core-regset.o.
11845 * config/s390/s390x.mt: Remove.
11846 * config/s390/tm-s390.h: Remove.
11847 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11848 (TARGET_ELF64): Remove.
11849 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11850 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11851 s390*-*-* case; always set gdb_target to s390.
11852 * regformats/reg-s390.dat: Remove control registers.
11853 * regformats/reg-s390x.dat: Likewise.
11854 * s390-tdep.h: New file.
8a1dac83 11855 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11856 Include "inferior.h" and "s390-tdep.h".
11857 Remove private definition of offsetof.
11858 (s390_register_u_addr): Remove.
11859 (regmap_gregset, regmap_fpregset): Define.
11860 (supply_gregset, fill_gregset): Reimplement.
11861 (supply_fpregset, fill_fpregset): Likewise.
11862 (s390_inferior_tid): New function.
11863 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11864 (fetch_inferior_registers, store_inferior_registers): Likewise.
11865 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11866 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11867 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11868 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11869 (struct gdbarch_tdep): Define.
11870 (struct s390_register_info): Define.
11871 (s390_register_info): New variable.
11872 (s390_register_name): Reimplement.
11873 (s390_register_type): New function.
11874 (s390_register_raw_size, s390x_register_raw_size): Remove.
11875 (s390_cannot_fetch_register): Remove.
11876 (s390_register_byte): Remove.
11877 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11878 (s390_dwarf_regmap): New variable.
11879 (s390_dwarf_reg_to_regnum): New function.
11880 (s390_stab_reg_to_regnum): Remove.
11881 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11882 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11883 (s390_convert_register_p): Likewise.
11884 (s390_register_to_value, s390_value_to_register): Likewise.
11885 (s390_register_reggroup_p): Likewise.
11886 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11887 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11888 (s390_supply_regset, s390_regset_from_core_section): New functions.
11889 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11890 (S390_FPR_SIZE): Likewise.
11891 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11892 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11893 (S390_NUM_GPRS): Move here from tm-s390.h.
11894 (S390_NUM_FPRS): Likewise.
11895 (s390_in_function_epilogue_p): New function.
11896 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11897 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11898 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11899 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11900 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11901 Remove calls to:
11902 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11903 set_gdbarch_deprecated_max_register_virtual_size,
11904 set_gdbarch_deprecated_register_byte,
d0f54f9d 11905 set_gdbarch_cannot_fetch_register,
8a1dac83 11906 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11907 set_gdbarch_deprecated_register_size,
11908 set_gdbarch_deprecated_register_raw_size,
11909 set_gdbarch_deprecated_register_virtual_size,
11910 set_gdbarch_deprecated_register_virtual_type,
11911 set_gdbarch_deprecated_register_bytes.
11912 Add calls to:
11913 set_gdbarch_num_pseudo_regs,
11914 set_gdbarch_register_type,
11915 set_gdbarch_convert_register_p,
11916 set_gdbarch_register_to_value,
11917 set_gdbarch_value_to_register,
11918 set_gdbarch_register_reggroup_p,
11919 set_gdbarch_regset_from_core_section,
11920 set_gdbarch_pseudo_register_read,
11921 set_gdbarch_pseudo_register_write,
11922 set_gdbarch_in_function_epilogue_p.
11923 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11924 (s390_tdep_h): New variable.
11925
8cfe231d
JB
119262004-02-17 Jim Blandy <jimb@redhat.com>
11927
4589a601
JB
11928 * findvar.c (value_from_register): If the type has no length, just
11929 return an acceptable value --- don't report an internal error.
11930
8cfe231d
JB
11931 * stabsread.c (read_type): If we find any type numbers that are
11932 forward references, complain if the references aren't resolved by
11933 the time we're finished reading.
11934 (cleanup_undefined_types): Make error message more appropriate for
11935 a complaint.
11936
5bf0017e
EZ
119372004-02-17 Elena Zannoni <ezannoni@redhat.com>
11938
9d62932d
EZ
11939 * Makefile.in (defs_h): Remove dependency on progress_h.
11940 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11941 progress.h.
11942 * main.c (captured_main): Delete use of START_PROGRESS and
11943 END_PROGRESS.
11944
119452004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11946
5bf0017e
EZ
11947 * objfiles.c (terminate_minimal_symbol_table): Add back
11948 initialization of MSYMBOL_TYPE.
11949
9fc9f5e2
AC
119502004-02-17 David Mosberger <davidm@hpl.hp.com>
11951
11952 Committed by Andrew Cagney.
11953 * Makefile.in (ia64_tdep_h): New macro.
11954 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11955 (ia64-tdep.o): Likewise.
11956 * ia64-tdep.h: New file.
11957 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11958 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11959 (ia64_aix_sigcontext_register_address): Likewise.
11960 (ia64_linux_getunwind_table): Delete declaration.
11961 * ia64-linux-tdep.c: Likewise.
11962
76cd2bd9
CV
119632004-02-17 Corinna Vinschen <vinschen@redhat.com>
11964
11965 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11966 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11967 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11968
634aa483
AC
119692004-02-17 Andrew Cagney <cagney@redhat.com>
11970
11971 * symtab.c (skip_prologue_using_sal): New function.
11972 * symtab.h (skip_prologue_using_sal): Declare.
11973 * frv-tdep.c: Include "symtab.h".
11974 (skip_prologue_using_sal): Delete function.
11975 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11976 * rs6000-tdep.c (refine_prologue_limit): Mention
11977 skip_prologue_using_sal.
11978 * ia64-tdep.c (refine_prologue_limit): Ditto.
11979 * Makefile.in: Update dependencies.
11980
119812004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11982
39ce7b3f
AC
11983 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11984 START_INFERIOR_TRAPS_EXPECTED.
11985 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11986 START_INFERIOR_TRAPS_EXPECTED.
11987 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11988 Delete macro.
11989 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11990 macro, moved to "nm-osf.h". Update copyright.
11991 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11992 update copyright.
11993
19772a2c
AC
11994 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11995 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11996 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11997 frameless_look_for_prologue.
11998 * frame.h (legacy_frameless_look_for_prologue): Rename
11999 frameless_look_for_prologue.
12000 * gdbarch.h, gdbarch.c: Re-generate.
12001 * sh64-tdep.c (sh64_gdbarch_init): Update.
12002 * sh-tdep.c (sh_gdbarch_init): Update.
12003 * s390-tdep.c (s390_gdbarch_init): Update.
12004 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12005 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12006 * m68k-tdep.c (m68k_gdbarch_init): Update.
12007 (delta68_frame_args_address): Update.
12008 * m32r-tdep.c (m32r_gdbarch_init): Update.
12009 * hppa-tdep.c (hppa_gdbarch_init): Update.
12010 * h8300-tdep.c (h8300_gdbarch_init): Update.
12011 * frv-tdep.c (frv_gdbarch_init): Update.
12012 (frv_frameless_function_invocation): Update.
12013 * cris-tdep.c (cris_gdbarch_init): Update.
12014 (cris_frameless_function_invocation): Update.
12015 * avr-tdep.c (avr_gdbarch_init): Update.
12016 * arm-tdep.c (arm_gdbarch_init): Update.
12017 * stack.c (frame_info): Update, call predicate.
12018 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12019 * frame.c (legacy_get_prev_frame): Update, call predicate..
12020 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12021 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12022 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12023 invocation.
12024 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12025 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12026 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
12027
12028 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12029 function.
12030
7dcaac91
DJ
120312004-02-16 Daniel Jacobowitz <drow@mvista.com>
12032
12033 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12034 initializations.
12035
88289b6e
AC
120362004-02-16 Andrew Cagney <cagney@redhat.com>
12037
12038 * tui/tui-windata.c: Include "gdb_string.h".
12039 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12040 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12041 * Makefile.in: Update dependencies.
12042
9f976b41
DJ
120432004-02-16 Daniel Jacobowitz <drow@mvista.com>
12044
12045 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12046 * infrun.c: Include "gdb_assert.h".
12047 (singlestep_ptid, saved_singlestep_ptid)
12048 (stepping_past_singlestep_breakpoint): New variables.
12049 (resume): Set singlestep_ptid. Check for singlestep thread
12050 hop.
12051 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12052 (handle_inferior_event): Handle singlestep thread hop.
12053
c324d747
AC
120542004-02-16 Andrew Cagney <cagney@redhat.com>
12055
f090b9b1
AC
12056 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12057 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12058 (dwarf2_frame_init_reg): Ditto.
12059
fd33e6cb
AC
12060 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12061 suggested by Joshua Neuheisel
12062
c324d747
AC
12063 * configure.in: Always check for curses, including pdcurses.
12064 Warn, instead of error, when no curses are found. Enable TUI when
12065 curses is available.
12066 * configure: Re-generate.
12067
b66ba949
CV
120682004-02-16 Corinna Vinschen <vinschen@redhat.com>
12069
12070 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12071 sh_sh4_register_convert_to_virtual.
12072 (sh_register_convert_to_raw): Rename from
12073 sh_sh4_register_convert_to_raw.
12074 (sh_pseudo_register_read): Accomodate above name change.
12075 (sh_pseudo_register_write): Ditto.
12076
b58cbbf2
CV
120772004-02-16 Corinna Vinschen <vinschen@redhat.com>
12078
12079 * sh-tdep.c (sh_generic_register_name): Remove.
12080 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12081
5929a910
AC
120822004-02-15 Andrew Cagney <cagney@redhat.com>
12083
4566dfcf
AC
12084 * configure.in (build_warnings): Add -Wunused-function.
12085 * configure: Re-generate.
12086
db11ed55
AC
12087 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12088 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12089
46ac7a5d
AC
12090 * procfs.c (procfs_init_inferior): Assume that
12091 START_INFERIOR_TRAPS_EXPECTED is defined.
12092 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12093 * config/ns32k/tm-nbsd.h: Delete file,
12094 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12095
ba801595
AC
12096 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12097 * config/vax/tm-vax.h: Delete file.
12098
5929a910
AC
12099 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12100 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12101 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12102 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12103 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12104 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12105 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12106
8f22cb90
MK
121072004-02-15 Mark Kettenis <kettenis@gnu.org>
12108
12109 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12110 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12111 (struct dwarf2_frame_ops): New.
12112 (dwarf2_frame_default_init_reg): New function, based on
12113 dwarf2_frame_init_reg.
12114 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12115 (dwarf2_frame_init_reg): Call architecture-specific function.
12116 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12117 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12118 instead of dwarf2_frame_data.
12119 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12120 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12121
8132723e
AC
121222004-02-15 Andrew Cagney <cagney@redhat.com>
12123
046a4708
AC
12124 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12125 register_gdbarch_swap.
12126 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12127 * f-lang.c (_initialize_f_language): Update, use
12128 DEPRECATED_REGISTER_GDBARCH_SWAP.
12129 * remote.c (_initialize_remote): Ditto.
12130 * regcache.c (_initialize_regcache): Ditto.
12131 * parse.c (_initialize_parse): Ditto.
12132 * infrun.c (_initialize_infrun): Ditto.
12133 * mi/mi-main.c (_initialize_mi_main): Ditto.
12134 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 12135
549c1eea
AC
12136 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12137 poking .cacheable directly.
12138 * symfile.c (symfile_bfd_open): Ditto.
12139
0c0b39de
AC
12140 * Makefile.in: Update all dependencies.
12141
8132723e
AC
12142 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12143 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12144 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12145 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12146 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 12147
b9d26eb9
AC
121482004-02-14 Andrew Cagney <cagney@redhat.com>
12149
8e1f669a
AC
12150 * arch-utils.c (legacy_convert_register_p): Check
12151 DEPRECATED_REGISTER_CONVERTIBLE_P.
12152 * findvar.c (value_of_register): Ditto.
12153
cd0bfa36
AC
12154 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12155 * gdbarch.h, gdbarch.c: Re-generate.
12156 * arch-utils.c (deprecated_register_convertible_not): Delete.
12157 * arch-utils.h (deprecated_register_convertible_not): Delete.
12158 * mi/mi-main.c (get_register): Update. Update copyright.
12159 * infcmd.c (default_print_registers_info): Update.
12160
b9d26eb9
AC
12161 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12162 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12163 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 12164 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
12165 * frame.c (deprecated_get_next_frame_hack): Delete function.
12166 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12167 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12168 Update.
12169 * infcall.c (call_function_by_hand): Update.
12170
9ab9195f
EZ
121712004-02-14 Elena Zannoni <ezannoni@redhat.com>
12172
12173 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 12174 from here...
9ab9195f
EZ
12175 * objfiles.c (init_entry_point_info, entry_point_address):..to
12176 here.
12177 * symfile.h (init_entry_point_info, entry_point_address): Remove
12178 prototypes.
12179 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12180 prototypes.
9ab9195f
EZ
12181 * cris-tdep.c: Remove include of symfile.h. Add include of
12182 objfiles.h.
12183 * infcall.c: Ditto.
12184 * mcore-tdep.c: Ditto.
12185 * mn10300-tdep.c: Ditto.
12186 * sh64-tdep.c: Ditto.
12187 * v850-tdep.c: Ditto.
12188 * arm-tdep.c: Remove include of symfile.h.
12189 * blockframe.c: Ditto.
12190 * coffread.c: Ditto.
12191 * dbxread.c: Ditto.
12192 * dwarf2read.c: Ditto.
12193 * dwarfread.c: Ditto.
8a1dac83 12194 * frv-tdep.c: Ditto.
9ab9195f
EZ
12195 * ia64-tdep.c: Ditto.
12196 * mdebugread.c: Ditto.
12197 * mipsread.c: Ditto.
8a1dac83 12198 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12199 * s390-tdep.c: Ditto.
12200 * sh-tdep.c: Ditto.
8a1dac83 12201 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12202 * gdbarch.sh: Remove include of symfile.h.
12203 * gdbarch.c: Regenerate.
12204 * solib-irix.c (enable_break): Use entry_point_address().
12205 Add comment about include file.
12206 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12207 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12208 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12209 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12210 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12211 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12212
c4c5b7ba
AC
122132004-02-13 Andrew Cagney <cagney@redhat.com>
12214
12215 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12216 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12217 copyright.
12218 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12219
3e7879de
FF
122202004-02-12 Fred Fish <fnf@redhat.com>
12221
12222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12223 set_gdbarch_store_return_value.
12224
6a7760b6
AC
122252004-02-12 Andrew Cagney <cagney@redhat.com>
12226
12227 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12228 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12229 (interrupt_query): Ditto.
12230 (ofunc): Delete unused variable.
12231 * cris-tdep.c (cris_abi): Delete unused function.
12232 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12233 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12234 (cris_get_asr_quick_shift_steps): Ditto.
12235 (cris_skip_prologue_frameless_p): Ditto.
12236 * arm-tdep.c (arm_push_return_address): Delete unused function.
12237 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12238 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12239 * s390-tdep.c (s390_function_start): Delete unused function.
12240
31687c3c
AC
122412004-02-12 Andrew Cagney <cagney@redhat.com>
12242
12243 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12244 gdbarch.h, gdbarch.c: Re-generate.
12245 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12246 to generic_prologue_frameless_p.
12247 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12248 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12249
6de918a6
DJ
122502004-02-11 Daniel Jacobowitz <drow@mvista.com>
12251
12252 * mips-linux-tdep.c: Include "frame.h".
12253 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12254 (mips_linux_skip_resolver): New functions.
12255 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12256 and set_gdbarch_in_solib_call_trampoline.
12257 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12258 to after set_gdbarch_in_solib_return_trampoline. Only set the
12259 solib hooks to mips16 functions if the OS ABI is unknown.
12260 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12261 including "config/tm-linux.h".
12262 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12263 * Makefile.in (mips-linux-tdep.o): Update.
12264
87b3ede8
DC
122652004-02-11 David Carlton <carlton@kealia.com>
12266
12267 * linespec.c (decode_compound): Only look for a class symbol when
12268 considering all but the rightmost component.
12269
5979bc46
AC
122702004-02-11 Andrew Cagney <cagney@redhat.com>
12271
12272 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12273 abi code are are separatly grouped.
12274
5867a2fb
AC
122752004-02-11 Andrew Cagney <cagney@redhat.com>
12276
12277 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12278 * gdbarch.h, gdbarch.c: Re-generate.
12279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12280 * v850-tdep.c (v850_gdbarch_init): Update.
12281 * sh64-tdep.c (sh64_gdbarch_init): Update.
12282 * sh-tdep.c (sh_gdbarch_init): Update.
12283 * s390-tdep.c (s390_gdbarch_init): Update.
12284 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12285 * mips-tdep.c (mips_gdbarch_init): Update.
12286 * mcore-tdep.c (mcore_gdbarch_init): Update.
12287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12288 * m32r-tdep.c (m32r_gdbarch_init): Update.
12289 * ia64-tdep.c (ia64_gdbarch_init): Update.
12290 * hppa-tdep.c (hppa_gdbarch_init): Update.
12291 * h8300-tdep.c (h8300_gdbarch_init): Update.
12292 * frv-tdep.c (frv_gdbarch_init): Update.
12293 * d10v-tdep.c (d10v_gdbarch_init): Update.
12294 * cris-tdep.c (cris_gdbarch_init): Update.
12295 * avr-tdep.c (avr_gdbarch_init): Update.
12296 * arm-tdep.c (arm_gdbarch_init): Update.
12297 * alpha-tdep.c (alpha_gdbarch_init): Update.
12298
026a72f8
CV
122992004-02-11 Corinna Vinschen <vinschen@redhat.com>
12300
12301 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12302 comma.
12303 (sh_sh4al_dsp_register_name): Ditto.
12304
3903d437
AC
123052004-02-10 Andrew Cagney <cagney@redhat.com>
12306
12307 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12308 (mips_init_frame_pc_first): Delete function.
12309 (mips_frame_saved_pc): Delete function.
12310 (mips_frame_chain): Delete function.
12311 (mips_init_extra_frame_info): Delete function.
12312 (mips_xfer_register): Delete unused variable "reg".
12313 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12314 (mips_n32n64_return_value): Delete unused variable "reg".
12315 (mips_n32n64_return_value): Delete unused variable "pos".
12316 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12317 (mips_o32_return_value): Delete unused variable "pos".
12318 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12319 (mips_print_fp_register): Delete unused variable "namelen"
12320 (mips_print_fp_register): Delete unused variable "flt2"
12321 (get_frame_pointer): Delete function.
12322 (cached_proc_desc): Delete static variable.
12323 (mips_pop_frame): Delete function.
12324 (mips_find_saved_regs): Delete function.
12325 (mips_get_saved_register): Delete function.
12326 (mips_saved_pc_after_call): Delete function.
12327 (SIGFRAME_BASE): Delete macro.
12328 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12329 (SIGFRAME_PC_OFF): Delete macro.
12330 (SIGFRAME_REGSAVE_OFF): Delete macro.
12331 (mips_dump_tdep): Do not print deleted macro definitions.
12332
b9fb98bd
AC
123332004-02-10 Andrew Cagney <cagney@redhat.com>
12334
12335 * Makefile.in (SFILES): Remove explictly listed tui files.
12336 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12337
78ced177 123382004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12339
78ced177
JJ
12340 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12341 to use paddr functions to format ia64 addresses and long values.
12342 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12343 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12344 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12345 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12346 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12347
6a83354a
AC
123482004-02-10 Andrew Cagney <cagney@redhat.com>
12349
12350 * defs.h: Do not include "tui.h".
12351 * gdb_curses.h: New file.
12352 * tui/tui-hooks.h: New file.
12353 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12354 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12355 (tui_initialize_io): Delete declaration.
12356 (tui_initialize_readline: Delete redundant declaration.
12357 (struct tui_point): Delete definition.
12358 * tui/tui-data.h (struct tui_point): Define.
12359 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12360 * utils.c: Include "tui/tui.h".
12361 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12362 * printcmd.c [TUI]: Include "tui/tui.h".
12363 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12364 * tui/tui-command.c: Include "gdb_curses.h".
12365 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12366 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12367 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12368 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12369 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12370 * Makefile.in: Update all dependencies.
12371 (tui_hooks_h, gdb_curses_h): Define.
12372 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12373
997470ef
EZ
123742004-02-10 Elena Zannoni <ezannoni@redhat.com>
12375
12376 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12377 auxf2. Add comments about some other rarely used fields.
12378
4ff2cc4d
AC
123792004-02-10 Andrew Cagney <cagney@redhat.com>
12380
12381 * Makefile.in (init.c): Fix script removing duplicates. Problem
12382 reported by Peter Schauer.
12383
1ab21617
EZ
123842004-02-09 Elena Zannoni <ezannoni@redhat.com>
12385
12386 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12387 obstack_specify_allocation.
12388 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12389 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12390 (allocate_rt_common_objfile): Ditto.
12391 * symfile.c (reread_symbols): Ditto.
12392 * gdb_obstack.h: Add comment.
12393
17763fd9
EZ
123942004-02-09 Elena Zannoni <ezannoni@redhat.com>
12395
12396 * linespec.c (decode_line_1, locate_first_half)
12397 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12398 commented out code.
12399
ec5cdd75
DJ
124002004-02-09 Daniel Jacobowitz <drow@mvista.com>
12401
12402 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12403 obstack_free.
12404
43b54b88
AC
124052004-02-09 Andrew Cagney <cagney@redhat.com>
12406
12407 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12408 fails, try find_pc_section. Fix PR c++/1267.
12409 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12410 instead of find_pc_mapped_section.
12411 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12412 not default to the section containing PC. Fix PR symtab/1519.
12413
edfae063
AC
124142004-02-09 Andrew Cagney <cagney@redhat.com>
12415
12416 * Makefile.in (mips-tdep.o): Update dependencies.
12417 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12418 "trad-frame.h".
12419 (mips_unwind_pc): Return the pseudo PC register.
12420 (mips_unwind_dummy_id): New function.
12421 (mips16_fetch_instruction): New function.
12422 (mips32_fetch_instruction): New function.
12423 (struct mips_frame_cache): Define.
12424 (mips_mdebug_frame_cache): New function.
12425 (mips_mdebug_frame_this_id): New function.
12426 (mips_mdebug_frame_prev_register): New function.
12427 (mips_mdebug_frame_unwind): Define.
12428 (mips_mdebug_frame_sniffer): New function.
12429 (mips_mdebug_frame_base_address): New function.
12430 (mips_mdebug_frame_base): Define.
12431 (mips_mdebug_frame_base_sniffer): New function.
12432 (mips_gdbarch_init): Append unwind and base sniffers. Set
12433 unwind_dummy_id.
12434
defc864c
AC
124352004-02-08 Andrew Cagney <cagney@redhat.com>
12436
6764ddad
AC
12437 * frame.c: Print both the register number and name.
12438
defc864c
AC
12439 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12440 and a sed into a single sed. Make .c and .o patterns more robust.
12441 (OBS): Delete.
12442 (INIT_FILES): Replace OBS with COMMON_OBS.
12443 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12444
645d6d10
MK
124452004-02-08 Mark Kettenis <kettenis@gnu.org>
12446
12447 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12448 the PT_WCOOKIE request.
12449
23e3c3fc
AC
124502004-02-08 Andrew Cagney <cagney@redhat.com>
12451
58dfe9ff
AC
12452 * mips-tdep.c (mips_unwind_pc): New function.
12453 (mips_gdbarch_init): Set mips_unwind_pc.
12454
1152e35e
AC
12455 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12456 (get_frame_id): Allow the UNKNOWN_FRAME.
12457 (frame_register_unwind, get_frame_type): Ditto.
12458
31b75dbf
AC
12459 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12460 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12461 unwind_dummy_id indicates a legacy frame.
12462
3483b318
AC
12463 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12464 * configure: Re-generate.
12465
23e3c3fc
AC
12466 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12467 methods.
12468
33f8ca73
AC
124692004-02-08 Andrew Cagney <cagney@redhat.com>
12470
12471 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12472 makefile macro.
12473 * configure: Re-generate.
12474 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12475 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12476 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12477 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12478 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12479 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12480 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12481 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12482 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12483 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12484
6ba8e26f 124852004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12486
20d286a5
AC
12487 * Makefile.in: Update all dependencies.
12488
d836ee13
AC
12489 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12490 * configure: Re-generate.
12491 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12492 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12493 (COMMON_OBS): Add "main.o" and "annotate.o".
12494 (ANNOTATE_OBS): Delete.
12495 (OBS): Remove ANNOTATE_OBS.
12496 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12497 CONFIG_INITS.
12498 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12499 against CONFIG_OBS and "main.o".
12500 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12501 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12502
d02c80cd
AC
12503 * tui/tui-command.c: Include "gdb_string.h", delete register
12504 attribute, use ISO-C function signatures.
12505 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12506 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12507 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12508 * tui/tui.c: Ditto.
6ba8e26f
AC
12509
12510 * tui/tui-command.c: Change variable and function names to lower
12511 case.
12512 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12513 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12514 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12515 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12516 * tui/tui-winsource.c, tui/tui.c: Ditto.
12517
4a146b47
EZ
125182004-02-07 Elena Zannoni <ezannoni@redhat.com>
12519
12520 * buildsym.c (free_pending_blocks, finish_block)
12521 (record_pending_block, make_blockvector, end_symtab): Replace
12522 symbol_obstack with objfile_obstack.
8a1dac83 12523 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12524 (coff_read_enum_type): Ditto.
8a1dac83 12525 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12526 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12527 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12528 (dwarf2_symbol_mark_computed): Ditto.
12529 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12530 * elfread.c (elf_symtab_read): Ditto.
12531 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12532 (hpread_read_enum_type, hpread_read_function_type)
12533 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12534 Ditto.
8a1dac83 12535 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12536 (java_link_class_type): Ditto.
8a1dac83 12537 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12538 (new_symbol): Ditto.
12539 * minsyms.c (install_minimal_symbols): Ditto.
12540 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12541 (terminate_minimal_symbol_table): Replace symbol_obstack with
12542 objfile_obstack.
12543 (free_objfile): Remove freeing of symbol_obstack.
12544 * objfiles.h: Remove symbol_obstack field.
12545 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12546 objfile_obstack.
12547 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12548 symbol_obstack.
12549 (solib_add_common_symbols): Replace symbol_obstack with
12550 objfile_obstack.
12551 * somsolib.c (som_solib_add): Ditto.
12552 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12553 (common_block_start, common_block_end): Ditto.
12554 * symfile.c (reread_symbols): Remove freeing and init of
12555 symbol_obstack.
12556 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12557 * symfile.h: Update comment.
12558 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12559 stats printing.
12560 * symtab.c (symbol_set_names): Replace symbol_obstack with
12561 objfile_obstack.
12562 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12563 Update comments.
12564 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12565 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12566 objfile_obstack.
12567
6d012f14
AC
125682004-02-07 Andrew Cagney <cagney@redhat.com>
12569
12570 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12571 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12572 fields and variables.
12573 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12574 (m_beInvisible): Delete macro.
12575 * tui/tui-data.h: Fix case case fields and variables.
12576 (m_genWinPtrIsNull): Delete macro.
12577 (tui_win_list): Rename winList.
12578 (TUI_SRC_WIN): Rename srcWin.
12579 (TUI_DISASM_WIN): Rename disassemWin.
12580 (TUI_DATA_WIN): Rename dataWin.
12581 (TUI_CMD_WIN): Rename cmdWin.
12582 (m_genWinPtrNotNull): Delete macro.
12583 (m_winPtrIsNull): Delete macro.
12584 (m_winPtrNotNull): Delete macro.
12585 (tui_win_is_source_type): Replace m_winIsSourceType
12586 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12587 (tui_win_has_locator): Replace m_hasLocator.
12588 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12589 m_setWinHighlightOff.
12590 * tui/tui-data.c: Update references.
12591 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12592 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12593 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12594 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12595 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12596 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12597 * tui/tui-winsource.c, tui/tui.c: Ditto.
12598
7d34766b
MK
125992004-02-07 Mark Kettenis <kettenis@gnu.org>
12600
1c800673
MK
12601 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12602 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12603 StackGhost.
12604
7d34766b
MK
12605 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12606 variable `i6' to `i7'.
12607 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12608
22940a24
AC
126092004-02-07 Andrew Cagney <cagney@redhat.com>
12610
12611 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12612 (TuiPoint, TuiPointPtr): Ditto.
12613 (TuiStatus, TuiStatusPtr): Ditto.
12614 (TuiWinType, TuiWinTypePtr): Ditto.
12615 (struct tui_point): Rename _TuiPoint.
12616 (tui_get_low_disassembly_address): Rename
12617 tuiGetLowDisassemblyAddress.
12618 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12619 (tuiFree): Delete declaration.
12620 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12621 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12622 * tui/tui.c (tuiFree): Delete function.
12623 * cli/cli-cmds.c (disassemble_command): Update references.
12624 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12625 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12626 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12627 * tui/tui-winsource.c: Ditto.
12628
8b92e4d5
EZ
126292004-02-07 Elena Zannoni <ezannoni@redhat.com>
12630
12631 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12632 coffstab_build_psymtabs, elfstab_build_psymtabs)
12633 (stabsect_build_psymtabs): Replace psymbol_obstack with
12634 objfile_obstack.
12635 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12636 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12637 Ditto.
12638 * dwarfread.c (scan_compilation_units): Ditto.
12639 * elfread.c (elfstab_offset_sections): Ditto.
12640 * hppa-tdep.c (read_unwind_info): Ditto.
12641 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12642 (hpread_end_psymtab): Ditto.
12643 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12644 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12645 Ditto.
12646 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12647 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12648 (build_objfile_section_table): Ditto.
12649 (allocate_objfile): Remove init of psymbol_obstack.
12650 (free_objfile): Remove freeing of psymbol_obstack.
12651 * objfiles.h (struct objfile): Remove field
12652 psymbol_obstack. Update comments.
12653 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12654 psymbol_obstack with objfile_obstack.
12655 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12656 psymbol_obstack.
12657 * somread.c (som_symfile_offsets, init_import_symbols)
12658 (init_export_symbols): Replace psymbol_obstack with
12659 objfile_obstack.
12660 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12661 * symfile.c (default_symfile_offsets, syms_from_objfile)
12662 (reread_symbols): Remove freeing and init of psymbol_obstack.
12663 (cashier_psymtab): Update comment.
12664 * symmisc.c (print_objfile_statistics): Don't report stats for
12665 psymbol obstack.
12666 * symtab.h (struct general_symbol_info, struct partial_symtab):
12667 Update comments.
12668 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12669 (xcoff_symfile_offsets): Replace psymbol_obstack with
12670 objfile_obstack.
12671
b99607ea
EZ
126722004-02-07 Elena Zannoni <ezannoni@redhat.com>
12673
12674 * objfiles.h (struct objfile): Add objfile_obstack field.
12675 Remove type_obstack field.
12676
12677 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12678 read_structure_scope read_enumeration, new_symbol): Replace
12679 type_obstack with objfile_obstack.
12680 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12681 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12682 (lookup_fundamental_type): Ditto.
12683 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12684 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12685 (hpread_read_doc_function_type, hpread_read_struct_type)
12686 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12687 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12688 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12689 (java_link_class_type): Ditto.
12690 * mdebugread.c (parse_type): Ditto.
12691 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12692 * solib-sunos.c (solib_add_common_symbols): Ditto.
12693 * stabsread.c (define_symbol, read_type, read_member_functions,
12694 read_cpp_abbrev, read_one_struct_field): Ditto.
12695 * symfile.c (reread_symbols): Ditto.
12696 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12697
2a8854a7
AC
126982004-02-07 Andrew Cagney <cagney@redhat.com>
12699
12700 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12701 (tui_exec_info_content): Rename TuiExecInfoContent.
12702 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12703 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12704 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12705 (TuiList, TuiListPtr): Ditto.
12706 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12707 (TuiDataType, TuiDataTypePtr): Ditto.
12708 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12709 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12710 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12711 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12712 (TuiDataElement, TuiDataElementPtr): Ditto.
12713 (TuiWinElement, TuiWinElementPtr): Ditto.
12714 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12715 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12716 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12717 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12718 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12719 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12720 * tui/tui-command.c, tui/tui-data.c: Update references.
12721 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12722 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12723 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12724 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12725
05cbe71a
MK
127262004-02-07 Mark Kettenis <kettenis@gnu.org>
12727
12728 * dwarf2-frame.h: Update copyright.
12729 (enum dwarf2_frame_reg_rule): New.
12730 (struct dwarf2_frame_state_reg): New.
12731 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12732 * dwarf2-frame.c: Update copyright.
12733 (enum dwarf2_reg_rule): Remove.
12734 (struct dwarf2_frame_state): Remove defenition of `struct
12735 dwarf2_frame_state_reg'.
12736 (read_reg): Call get_frame_arch to get the architecture instead of
12737 using CURRENT_GDBARCH.
12738 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12739 DWARF2_FRAME_.
12740 (dwarf2_frame_init_reg): New function.
12741 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12742 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12743 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12744 tags with DWARF2_FRAME_.
12745 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12746 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12747 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12748
ec7d9e56
AC
127492004-02-06 Andrew Cagney <cagney@redhat.com>
12750
dd1abb8c
AC
12751 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12752 (enum tui_data_type): Rename _TuiDataType.
12753 (struct tui_layout_def): Rename _TuiLayoutDef.
12754 (struct tui_source_element): Rename _TuiSourceElement.
12755 (struct tui_data_element): Rename _TuiDataElement.
12756 (struct tui_command_element): Rename _TuiCommandElement.
12757 (struct tui_locator_element): Rename _TuiLocatorElement.
12758 (union tui_which_element): Define.
12759 (struct tui_win_element): Rename _TuiWinElement.
12760 (struct tui_data_info): Rename _TuiDataInfo.
12761 (struct tui_source_info): Rename _TuiSourceInfo.
12762 (struct tui_command_info): Rename _TuiCommandInfo.
12763 (tui_initialize_static_data): Rename initializeStaticData.
12764 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12765 (tui_alloc_win_info): Rename allocWinInfo.
12766 (tui_init_generic_part): Rename initGenericPart.
12767 (tui_init_win_info): Rename initWinInfo.
12768 (tui_alloc_content): Rename allocContent.
12769 (tui_add_content_elements): Rename addContentElements.
12770 (tui_init_content_element): Rename initContentElement.
12771 (tui_free_window): Rename freeWindow.
12772 (tui_free_win_content): Rename freeWinContent.
12773 (tui_free_data_content): Rename freeDataContent.
12774 (tui_free_all_source_wins_content): Rename
12775 freeAllSourceWinsContent.
12776 (tui_del_window): Rename tuiDelWindow.
12777 (tui_del_data_windows): Rename tuiDelDataWindows.
12778 (tui_partial_win_by_name): Rename partialWinByName.
12779 (tui_win_name): Rename winName.
12780 (tui_current_layout): Rename currentLayout.
12781 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12782 (tui_term_height): Rename termHeight.
12783 (tui_set_term_height_to): Rename setTermHeightTo.
12784 (tui_term_width): Rename termWidth.
12785 (tui_set_term_width_to): Rename setTermWidthTo.
12786 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12787 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12788 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12789 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12790 (tui_source_windows): Rename sourceWindows.
12791 (tui_clear_source_windows): Rename clearSourceWindows.
12792 (tui_clear_source_windows_detail): Rename
12793 clearSourceWindowsDetail.
12794 (tui_clear_win_detail): Rename clearWinDetail.
12795 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12796 (tui_default_tab_len): Rename tuiDefaultTabLen.
12797 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12798 (tui_win_with_focus): Rename tuiWinWithFocus.
12799 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12800 (tui_layout_def): Rename tuiLayoutDef.
12801 (tui_win_resized): Rename tuiWinResized.
12802 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12803 (tui_next_win): Rename tuiNextWin.
12804 (tui_prev_win): Rename tuiPrevWin.
12805 (tui_add_to_source_windows): Rename addToSourceWindows.
12806 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12807 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12808 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12809 * tui/tui.c, tui/tui-data.c: Ditto.
12810 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12811 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12812
a358af15
AC
12813 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12814 (struct symtab): Declare.
12815 (tui_set_source_content): Rename tuiSetSourceContent.
12816 (tui_show_symtab_source): Rename tuiShowSource.
12817 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12818 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12819 * tui/tui-source.c: Update copyright. Update references.
12820 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12821 * tui/tui-stack.c: Update references.
12822
a21fcd8f
AC
12823 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12824 (struct tui_win_info): Declare.
12825 (tui_scroll_forward): Rename tuiScrollForward.
12826 (tui_scroll_backward): Rename tuiScrollBackward.
12827 (tui_scroll_left): Rename tuiScrollLeft.
12828 (tui_scroll_right): Rename tuiScrollRight.
12829 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12830 (tui_resize_all): Rename tuiResizeAll.
12831 (tui_refresh_all_win): Rename tuiRefreshAll.
12832 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12833 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12834 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12835 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12836
edae1ccf
AC
12837 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12838 (tui_erase_data_content): Rename tuiEraseDataContent.
12839 (tui_display_all_data): Rename tuiDisplayAllData.
12840 (tui_check_data_values): Rename tuiCheckDataValues.
12841 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12842 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12843 (tui_first_data_element_no_in_line): Rename
12844 tuiFirstDataElementNoInLine.
12845 (tui_delete_data_content_windows): Rename
12846 tuiDeleteDataContentWindows.
12847 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12848 (tui_display_data_from): Rename tuiDisplayDataFrom.
12849 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12850 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12851 * tui/tui-win.c, tui/tui-regs.c: Update references.
12852 * tui/tui-layout.c, tui/tui.c: Update references.
12853
ec7d9e56
AC
12854 * tui/tui-wingeneral.h: Update copyright.
12855 (m_allBeVisible): Delete macro.
8a1dac83 12856 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12857 (struct tui_gen_win_info): Declare.
12858 (struct tui_win_info): Declare.
12859 (tui_unhighlight_win): Rename unhighlightWin.
12860 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12861 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12862 (tui_make_window): Rename makeWindow.
12863 (tui_copy_win): Rename copyWin.
12864 (tui_box_win): Rename boxWin.
12865 (tui_highlight_win): Rename highlightWin.
12866 (tui_check_and_display_highlight_if_needed): Rename
12867 checkAndDisplayHighlightIfNeeded.
12868 (tui_refresh_all): Rename refreshAll.
12869 (tui_delete_win): Rename tuiDelwin.
12870 (tui_refresh_win): Rename tuiRefreshWin.
12871 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12872 (tui_make_visible, tui_make_invisible): New functions.
12873 (tui_make_all_visible, tui_make_all_invisible): New functions.
12874 (make_all_visible): Rename makeAllVisible.
12875 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12876 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12877 * tui/tui-windata.c, tui/tui-win.c: Update references.
12878 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12879 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12880
1e52e2eb
MK
128812004-02-06 Mark Kettenis <kettenis@gnu.org>
12882
12883 * proc-api.c (write_with_trace): Initialize local variable to
12884 silence compiler warning.
12885
f80bda8e
AC
128862004-02-06 Andrew Cagney <cagney@redhat.com>
12887
12888 * tui/tui-source.h: Do not include "defs.h".
12889 (struct tui_win_info): Declare.
12890 (tui_set_source_content_nil): Declare.
12891 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12892 (union tui_line_or_address): Rename _TuiLineOrAddress.
12893 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12894 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12895 (tui_update_source_window_as_is): Rename
12896 tuiUpdateSourceWindowAsIs.
12897 (tui_update_source_windows_with_addr): Rename
12898 tuiUpdateSourceWindowsWithAddr.
12899 (tui_update_source_windows_with_line): Rename
12900 tuiUpdateSourceWindowsWithLine.
12901 (tui_clear_source_content): Rename tuiClearSourceContent.
12902 (tui_erase_source_content): Rename tuiEraseSourceContent.
12903 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12904 (tui_show_source_content): Rename tuiShowSourceContent.
12905 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12906 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12907 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12908 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12909 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12910 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12911 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12912 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12913 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12914 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12915 (struct tui_win_info): Declare.
12916 * tui/tui-stack.c: Update references.
12917 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12918 * tui/tui-win.c, tui/tui-source.c: Ditto.
12919 * tui/tui.c, tui/tui-disasm.c: Ditto.
12920
9fbfb822
MK
129212004-02-06 Mark Kettenis <kettenis@gnu.org>
12922
12923 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12924 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12925
03cebad2
MK
129262004-02-05 Mark Kettenis <kettenis@gnu.org>
12927
12928 * infrun.c (handle_inferior_event): Allow for breakpoint
12929 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12930 and SIGEMT. Update comments.
12931 * NEWS (Revised SPARC target): Mention support for non-executable
12932 stack.
12933
290281b1
MK
129342004-02-04 Mark Kettenis <kettenis@gnu.org>
12935
12936 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12937 * inftarg.c: Update copyright year.
12938 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12939 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12940 (sparc_xfer_wcookie): New function.
12941 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12942 * Makefile.in (sparc-nat.o): Update dependencies.
12943 * config/sparc/nm-nbsd.h: Include "target.h".
12944 (NATIVE_XFER_WCOOKIE): New define.
12945 (sparc_xfer_wcookie): New prototype.
12946
212161df
AC
129472004-02-04 Andrew Cagney <cagney@redhat.com>
12948
12949 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12950 SYSCALL_TRAP function.
12951 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12952
6e4c6c91
DJ
129532004-02-04 Andrew Cagney <cagney@redhat.com>
12954 Daniel Jacobowitz <drow@mvista.com>
12955
12956 * objfiles.h: Delete comments refering to inside_entry_func and
12957 DEPRECATED_FRAME_CHAIN_VALID.
12958 * defs.h (inside_entry_func): Update prototype..
12959 * blockframe.c (inside_entry_func): Rename to
12960 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12961 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12962
cae688ec
JJ
129632004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12964
12965 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12966 outside of #ifdef SOLIB_ADD region.
12967 (do_restore_lang_radix_cleanup): Ditto.
12968 (resolve_pending_breakpoint): Ditto.
12969
19217676
AC
129702004-02-03 Andrew Cagney <cagney@redhat.com>
12971
12972 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12973 (process_note_abi_tag_sections): Delete unused function.
12974 (ia64_read_fp): Delete unused function.
12975 (gdbarch_extract_struct_value_address): Delete declaration.
12976
876753be
AC
129772004-02-02 Andrew Cagney <cagney@redhat.com>
12978
12979 * vax-tdep.c (vax_frame_chain): Delete call to
12980 deprecated_inside_entry_file.
12981 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12982
d4f10bf2
MK
129832004-02-02 Mark Kettenis <kettenis@gnu.org>
12984
12985 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12986 column that's "empty" or "same value" when eliminating REG_RA
12987 rules.
12988
cae688ec
JJ
129892004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12990
12991 * NEWS: Add information about new pending breakpoint support.
12992
0101ce28
JJ
129932004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12994
12995 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12996 and pending fields for pending breakpoint support.
12997 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12998 (condition_command): Only parse condition if not a pending
12999 breakpoint.
13000 (print_one_breakpoint): Add support for pending breakpoints.
13001 (describe_other_breakpoints): Add checks to verify we are not
13002 dealing with pending breakpoints.
13003 (check_duplicates): Don't check pending breakpoints.
13004 (set_raw_breakpoint): Initialize pending flag.
13005 (do_restore_lang_radix_cleanup): New cleanup routine.
13006 (resolve_pending_breakpoint): New function.
13007 (re_enable_breakpoints_in_shlibs): Try and resolve any
13008 pending breakpoints via resolve_pending_breakpoint.
13009 (mention): Add pending breakpoint support.
13010 (parse_breakpoint_sals): Add new parameter to pass to
13011 decode_line_1 to indicate silent errors when files or functions
13012 are not found. Change all callers.
13013 (do_captured_parse_breakpoint): New function.
13014 (break_command_1): Change prototype to return an rc value and to
13015 take an optional pending breakpoint pointer. Support creating
13016 a pending breakpoint if a "not found" form of error occurs when
13017 parsing the breakpoint. Also support resolving an existing pending
13018 breakpoint and be silent if the resolution fails.
13019 (create_breakpoints): Change prototype to take pending breakpoint
13020 pointer. When resolving a pending breakpoint, use the new pointer
13021 to provide a conditional or commands added by the end-user.
13022 (delete_breakpoint): Add appropriate check for pending.
13023 (breakpoint_re_set_one): Ditto.
13024 (do_enable_breakpoint): Ditto.
13025
8d577d32
DC
130262004-02-02 David Carlton <carlton@kealia.com>
13027
13028 * valops.c (enum oload_classification): New.
13029 (find_overload_match): Break implementation into separate
13030 functions; delete #if 0'd code; look for symbols within
13031 namespaces.
13032 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13033 (find_oload_champ,oload_method_static,classify_oload_match): New.
13034 * cp-support.h: Add declaration for cp_func_name; update
13035 declaration for make_symbol_overload_list.
13036 * cp-support.c (cp_func_name): New.
13037 (overload_list_add_symbol): Fix comment, use
13038 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13039 (make_symbol_overload_list): Take a function name and a namespace
13040 instead of a symbol; change implementation.
13041 (make_symbol_overload_list_using): New.
13042 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13043
22e8e3c7
FF
130442004-02-02 Fred Fish <fnf@redhat.com>
13045
13046 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 13047 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
13048 * remote-sim.c (gdb_os_write_stderr): Write output to
13049 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13050 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 13051 gdb_stderr stream and update copyright years.
22e8e3c7 13052
6b753f60
DJ
130532004-02-01 Daniel Jacobowitz <drow@mvista.com>
13054
13055 * Makefile.in (mips-linux-nat.o): Update dependencies.
13056 * mips-linux-nat.c: Include mips-tdep.h.
13057
130582004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
13059
13060 * sol-thread.c (sol_thread_xfer_partial): New function.
13061 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13062 (init_sol_core_ops): Likewise.
13063
13064 * procfs.c (procfs_xfer_partial): New function.
13065 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13066 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13067
13068 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13069 procfs_xfer_auxv function.
13070
13071 * procfs.c (procfs_make_note_section): If we can read
13072 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13073 * linux-proc.c (linux_make_note_section): Likewise.
13074
13075 * auxv.h: New file.
13076 * auxv.c: New file.
13077 * Makefile.in (auxv_h): New variable.
13078 (COMMON_OBS): Add auxv.o here.
13079 (auxv.o): New target.
13080
13081 * corelow.c (core_xfer_partial): New function.
13082 (init_core_ops): Use it for core_ops.to_xfer_partial.
13083
13084 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13085 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13086 macro if that is defined.
13087
fa5281d0
DJ
130882004-02-01 Daniel Jacobowitz <drow@mvista.com>
13089
13090 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13091 and check the specified thread for each breakpoint.
13092 * breakpoint.h (bpstat_stop_status): Update prototype.
13093 * infrun.c (handle_inferior_event): Update calls to
13094 bpstat_stop_status.
13095
26ee262d
DJ
130962004-02-01 Daniel Jacobowitz <drow@mvista.com>
13097
13098 * Makefile.in (cli-cmds.o): Add $(readline_h).
13099
d9b52655
DJ
131002004-02-01 Daniel Jacobowitz <drow@mvista.com>
13101
13102 * cli/cli-cmds.c: Include readline.h.
13103 (complete_command): Pass the start of the last word to
13104 complete_line.
13105
9709f61c
DJ
131062004-01-31 Daniel Jacobowitz <drow@mvista.com>
13107
13108 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13109 argument, and change first argument to a CORE_ADDR.
13110 * breakpoint.h (bpstat_stop_status): Update prototype.
13111 * infrun.c (adjust_pc_after_break): Add a new comment.
13112 (handle_inferior_event): Update calls to bpstat_stop_status.
13113
4f1280bb
DJ
131142004-01-31 Daniel Jacobowitz <drow@mvista.com>
13115
13116 * breakpoint.h: Update copyright years.
13117
4fa8626c
DJ
131182004-01-31 Daniel Jacobowitz <drow@mvista.com>
13119
13120 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13121 (bpstat_stop_status): Don't decrement PC.
13122 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13123 prototype.
13124 * infrun.c (adjust_pc_after_break): New function.
13125 (handle_inferior_event): Call it, early. Remove later references
13126 to DECR_PC_AFTER_BREAK.
13127 (normal_stop): Add commentary.
13128
fad0733a
DJ
131292004-01-31 Daniel Jacobowitz <drow@mvista.com>
13130
13131 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13132 2004-01-27 double-free fix.
13133
42cdca6c
MK
131342004-01-31 Mark Kettenis <kettenis@gnu.org>
13135
13136 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13137 (sparc32_frame_prev_register): Handle StackGhost.
13138 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13139
932d5416
RM
131402004-01-29 Roland McGrath <roland@redhat.com>
13141
13142 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13143 * configure: Regenerated.
13144
13145 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13146 * Makefile.in (procfs.o): Add dep.
13147
47d3492a
AC
131482004-01-28 Andrew Cagney <cagney@redhat.com>
13149
13150 * tui/tui-stack.h: Update copyright.
13151 (struct frame_info): Add opaque declaration.
13152 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13153 (tui_show_locator_content): Rename tuiShowLocatorContent.
13154 (tui_show_frame_info): Rename tuiShowFrameInfo.
13155 * tui/tui-stack.c: Update copyright. Update references.
13156 * tui/tui-winsource.c: Update references.
13157 * tui/tui-win.c: Update references.
13158 * tui/tui-layout.c: Update references.
13159 * tui/tui-hooks.c: Update copyright, update references.
13160 * tui/tui.c: Update copyright, update references.
13161 * tui/tui-disasm.c: Update references.
13162
5d51ca54
DC
131632004-01-28 David Carlton <carlton@kealia.com>
13164
13165 * dwarf2read.c (add_partial_structure): Use demangled name if
13166 namespace equals "".
13167
086ed43d
JB
131682004-01-27 Jim Blandy <jimb@redhat.com>
13169
13170 Clean up misapplied patch:
13171 * dwarf2read.c (determine_prefix): Change one of the two forward
13172 declarations for 'determine_prefix_aux' to a declaration for this.
13173 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13174 argument to 'die_specification'.
13175
2a35147e
JB
13176 * dwarf2read.c (read_func_scope): Re-indent comment.
13177
a355c7de 131782004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13179
a355c7de
AC
13180 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13181 b->exp to NULL after freeing so that error during re-parsing or
13182 evaluation of expressions associated with breakpoint don't
13183 eventually lead to re-freeing of storage.
13184 Committed by Andrew Cagney.
13185
63ff5125
AC
131862004-01-27 Andrew Cagney <cagney@redhat.com>
13187
13188 * source.c (ambiguous_line_spec): Delete undefined declaration.
13189 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13190 (m32r_set_server_address, m32r_set_download_path): Ditto.
13191 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13192
e142c38c
DJ
131932004-01-27 Daniel Jacobowitz <drow@mvista.com>
13194
13195 * dwarf2read.c: Update calls to changed and renamed functions, and
13196 references to moved variables.
13197
13198 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13199 language, language_defn, list_in_scope, and ftypes members.
13200 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13201 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13202 (baseaddr): Remove globals.
13203
13204 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13205 (set_cu_language, die_is_declaration, die_specification)
13206 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13207 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13208 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13209 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13210
13211 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13212 cu.list_in_scope. Don't initialize cu_header_offset.
13213 (add_partial_symbol): Add local baseaddr.
13214 (psymtab_to_symtab_1): Add local baseaddr. Use
13215 objfile->section_offsets for consistency. Don't initialize
13216 cu_header_offset; do initialize cu.header.offset and
13217 cu.list_in_scope.
13218 (read_file_scope, read_func_scope, read_lexical_block_scope)
13219 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13220
c6e06ede
MC
132212004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13222
fb328ecc 13223 * PROBLEMS: Add gdb/1516.
c6e06ede 13224
48184fd4
AC
132252003-12-29 Robert Millan <robertmh@gnu.org>
13226
13227 Patch committed by Andrw Cagney.
13228 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13229 * configure.tgt: Match knetbsd*-gnu.
13230
c1321b30
AC
132312004-01-26 Andrew Cagney <cagney@redhat.com>
13232
f3699be3
AC
13233 * breakpoint.c (catch_command_1): Delete #ifdef code.
13234 (catch_fork_command_1): Delete #ifdef wrapper.
13235 (catch_exec_command_1): Ditto.
13236 (catch_load_command_1): Ditto.
13237 (catch_unload_command_1): Ditto.
13238
c1321b30
AC
13239 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13240 (catch_breakpoint): Delete #if0ed function.
13241 (disable_catch_breakpoint): Ditto.
13242 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13243 (disable_catch, enable_catch, delete_catch): Ditto.
13244
b4501125
AC
132452004-01-26 Andrew Cagney <cagney@redhat.com>
13246
13247 * remote.c (echo_check, quit_flag): Delete variables.
13248 (cisco_kernel_mode): Delete variable.
13249 (minitelnet_return, tty_input, escape_count): Delete variables.
13250 (remote_cisco_mode): Delete variable.
13251 (remote_cisco_open, remote_cisco_close): Delete function.
13252 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13253 (init_remote_cisco_ops): Delete function.
13254 (_initialize_remote): Do not install "remote cisco" code.
13255 (read_frame): Delete cisco specific code.
13256 (remote_info_process): Delete function.
13257 (remote_wait): Delete cisco specific code.
13258 (remote_cisco_section_offsets): Delete function.
13259 (remote_cisco_objfile_relocate): Delete function.
13260 (remote_async_wait): Delete cisco specific code.
13261 (minitelnet, readtty, readsocket): Delete function.
13262
74055713
AC
132632004-01-26 Andrew Cagney <cagney@redhat.com>
13264
13265 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13266 comments mentioning extract_returned_value_address.
13267 * infcmd.c (print_return_value): Update. Add comments on
13268 extract_returned_value_address.
13269 * stack.c (return_command): Add comments on
13270 extract_returned_value_address.
13271 * values.c: Update comment.
13272 * m32r-tdep.c: Update comment.
13273 * sparc-tdep.c: Update comment.
13274 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13276 * sh64-tdep.c (sh64_gdbarch_init): Update.
13277 * sh-tdep.c (sh_gdbarch_init): Update.
13278 * s390-tdep.c (s390_gdbarch_init): Update.
13279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13280 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13281 * m68k-tdep.c (m68k_gdbarch_init): Update.
13282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13283 * m32r-tdep.c (m32r_gdbarch_init): Update.
13284 * ia64-tdep.c (ia64_gdbarch_init): Update.
13285 * h8300-tdep.c (h8300_gdbarch_init): Update.
13286 * frv-tdep.c (frv_gdbarch_init): Update.
13287 * arm-tdep.c (arm_gdbarch_init): Update.
13288 * alpha-tdep.c (alpha_gdbarch_init): Update.
13289
a67af2b9
AC
132902004-01-26 Andrew Cagney <cagney@redhat.com>
13291
13292 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13293 SYMBOL_LOCATION_FUNCS
13294 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13295 "struct symbol_ops".
13296 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13297 type to "struct symbol_ops".
13298 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13299 (struct symbol): Replace ".aux_value.loc.funcs" and
13300 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13301 (SYMBOL_OBJFILE): Delete macro.
13302 (SYMBOL_LOCATION_FUNCS): Delete macro.
13303 (SYMBOL_LOCATION_BATON): Update.
13304 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13305 intead of SYMBOL_LOCATION_FUNCS.
13306 * ax-gdb.c (gen_var_ref): Ditto.
13307 * printcmd.c (address_info): Ditto.
13308 * findvar.c (read_var_value): Ditto.
13309 (symbol_read_needs_frame): Ditto.
13310
c034e007
AC
133112004-01-26 Andrew Cagney <cagney@redhat.com>
13312
13313 * dwarf2read.c (read_func_scope): Document frame-base hack.
13314
bb472c1e
MK
133152004-01-25 Mark Kettenis <kettenis@gnu.org>
13316
13317 * infcmd.c (print_return_value): Plug memory leak; delete
13318 ui_stream object. Rename argument `structure_return' to
13319 `struct_return'.
13320
c8e737d5
MK
133212004-01-25 Mark Kettenis <kettenis@gnu.org>
13322
f941662f
MK
13323 * infcmd.c (print_return_value): Wrap long lines.
13324 (finish_command_continuation, finish_command): Remove unused
13325 variable `funcaddr'. Fix some coding-standards problems.
13326
c558d81a 13327 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13328 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13329 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13330 TDEP->fpregset to zero.
13331
bf1e5861 13332 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13333 floating-point registers for traditional NetBSD core files.
13334 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13335 TDEP->sizeof_fpregset here.
13336
4c72d57a
MK
133372004-01-25 Mark Kettenis <kettenis@gnu.org>
13338
566626fa
MK
13339 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13340 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13341 function with code split out from
13342 sparc32nbsd_sigcontext_frame_cache.
13343 (sparc32nbsd_sigcontext_frame_cache): Use
13344 sparc32nbsd_sigcontext_saved_regs.
13345 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13346 OpenBSD.
13347 * sparcobsd-tdep.c: New file.
13348 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13349 (sparcobsd-tdep.o): New dependency.
13350 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13351 * config/sparc/obsd.mt: New file.
13352
4c72d57a
MK
13353 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13354 TDEP->fpregset to be initialized to enable core file register
13355 sets.
13356
7e5e9f88
MK
133572004-01-24 Mark Kettenis <kettenis@gnu.org>
13358
f0f207fd 13359 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13360 Add opaque declarations.
13361 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13362 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13363 function with code split out from
13364 sparc64nbsd_sigcontext_frame_cache.
13365 (sparc64nbsd_sigcontext_frame_cache): Use
13366 sparc64nbsd_sigcontext_saved_regs.
13367 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13368 OpenBSD.
13369 * sparc64obsd-tdep.c: New file.
13370 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13371 (sparc64obsd-tdep.o): New dependency.
13372 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13373 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13374 * config/sparc/obsd64.mt: New file.
13375
690668cc
MK
13376 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13377 read the instruction at PC.
13378
7e5e9f88
MK
13379 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13380 value of GDB_OSABI_DEFAULT.
13381 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13382 instead of GDB_OSABI_NETBSD_AOUT.
13383
68b6dce9
NR
133842004-01-24 Nick Roberts <nick@nick.uklinux.net>
13385
13386 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13387 copyright.
13388
080ce8c0
AC
133892004-01-23 Andrew Cagney <cagney@redhat.com>
13390
13391 * printcmd.c (display_command): Replace tui_set_display call with
13392 tui_set_layout_for_display_command.
13393 * tui/tui.h (enum tui_win_type): Define.
13394 (tui_set_layout): Delete declaration.
13395 (tui_set_layout_for_display_command): Rename set_tui_layout.
13396 * tui/tui-data.h (enum tui_layout_type): Define.
13397 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13398 "tui.h".
13399 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13400 (tui_default_win_height): Rename tuiDefaultWinHeight.
13401 (tui_default_win_viewport_height): Rename
13402 tuiDefaultWinViewportHeight.
13403 (tui_set_layout): RenametuiSetLayout.
13404 * tui/tui-layout.c: Update references.
13405 * tui/tui.c: Update references.
13406 * tui/tui-disasm.c: Update references.
13407
b368761e
DC
134082004-01-23 David Carlton <carlton@kealia.com>
13409
13410 Partial workaround for PR c++/1511:
13411 * cp-namespace.c: Include frame.h.
13412 (cp_lookup_transparent_type): New
13413 (cp_lookup_transparent_type_loop): New.
13414 * cp-support.h: Declare cp_lookup_transparent_type.
13415 * symtab.c (basic_lookup_transparent_type): Renamed from
13416 lookup_transparent_type.
13417 (lookup_transparent_type): Replace old body by a call to
13418 current_language->la_lookup_transparent_type.
13419 * symtab.h: Update copyright. Declare
13420 basic_lookup_transparent_type.
13421 * language.h: Update copyright.
13422 (struct language_defn): Add la_lookup_transparent_type.
13423 * language.c: Update copyright.
13424 (unknown_language_defn): Add basic_lookup_transparent_type.
13425 (auto_language_defn): Add basic_lookup_transparent_type.
13426 (local_language_defn): Add basic_lookup_transparent_type.
13427 * ada-lang.c: Update copyright.
13428 (ada_language_defn): Add basic_lookup_transparent_type.
13429 * c-lang.c: Update copyright.
13430 (c_language_defn): Add basic_lookup_transparent_type.
13431 (cplus_language_defn): Add basic_lookup_transparent_type.
13432 (asm_language_defn): Add basic_lookup_transparent_type.
13433 (minimal_language_defn): Add basic_lookup_transparent_type.
13434 * f-lang.c: Update copyright.
13435 (f_language_defn): Add basic_lookup_transparent_type.
13436 * jv-lang.c: Update copyright.
13437 (java_language_defn): Add basic_lookup_transparent_type.
13438 * m2-lang.c: Update copyright.
13439 (m2_language_defn): Add basic_lookup_transparent_type.
13440 * objc-lang.c: Update copyright.
13441 (objc_language_defn): Add basic_lookup_transparent_type.
13442 * p-lang.c: Update copyright.
13443 (p_language_defn): Add basic_lookup_transparent_type.
13444 * scm-lang.c: Update copyright.
13445 (scm_language_defn): Add basic_lookup_transparent_type.
13446 * Makefile.in (cp-namespace.o): Depend on frame.h.
13447
fdde2d81
DC
134482004-01-23 David Carlton <carlton@kealia.com>
13449
13450 Patch for PR c++/1520:
13451 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13452 properly if we have a specification die.
13453 (determine_prefix_aux): Rename from determine_prefix.
13454 (determine_prefix): Like the old determine_prefix, but never
13455 returns NULL.
13456
5b828b6b
TR
134572004-01-23 Theodore A. Roth <troth@openavr.org>
13458
13459 * avr-tdep.c: Update copyright.
13460 (avr_iaddr_p): Delete unused function.
13461 (avr_saddr_p): Delete unused function.
13462
a1b8c067
DC
134632004-01-23 David Carlton <carlton@kealia.com>
13464
13465 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13466 Fix for PR symtab/1534.
13467
f2cab569
MK
134682004-01-23 Mark Kettenis <kettenis@gnu.org>
13469
13470 * NEWS (New native configurations): Mention OpenBSD/sparc and
13471 OpenBSD/sparc64.
13472 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13473 * configure.host: Likewise.
13474 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13475 handler for OpenBSD.
13476 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13477
642d8300
MK
134782004-01-22 Mark Kettenis <kettenis@gnu.org>
13479
89aac506
MK
13480 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13481 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13482
36662fde
MK
13483 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13484 * cli/cli-cmds.c (shell_escape): Likewise.
13485
642d8300
MK
13486 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13487 OpenBSD .note.openbsd.ident sections.
13488
fae299cd
DC
134892004-01-22 David Carlton <carlton@kealia.com>
13490
13491 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13492 get_scope_pc_bounds.
13493 (read_file_scope): Ditto.
13494 (get_scope_pc_bounds): New function, produced by extracting code
13495 from the above two functions, consolidating it, and adding support
13496 for DW_TAG_namespace.
13497
a49d618c
MK
134982004-01-22 Mark Kettenis <kettenis@gnu.org>
13499
13500 * osabi.c (MAX_NOTESZ): New define.
13501 (check_note): New function.
13502 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13503 check_note.
13504
fe61caab
RM
135052004-01-21 Roland McGrath <roland@redhat.com>
13506
13507 * MAINTAINERS (write after approval): Add myself.
13508
ec145965
EZ
135092004-01-21 Eli Zaretskii <eliz@gnu.org>
13510
13511 * utils.c (init_page_info): Move declarations of `rows' and
13512 `cols' before the __GO32__-specific code. Move the closing brace
13513 outside the #ifdef __GO32__..#endif block.
13514 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13515
877522db
PB
135162004-01-21 Paul Brook <paul@codesourcery.com>
13517
13518 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13519 BPSTAT_WHAT_CHECK_SHLIBS.
13520
dbf5be1c
PB
135212004-01-21 Paul Brook <paul@codesourcery.com>
13522
13523 * MAINTAINERS: Add myself to write-after-approval.
13524
81f08b92
AC
135252004-01-20 Andrew Cagney <cagney@redhat.com>
13526
5a1efed7
AC
13527 * ax-gdb.c (print_axs_value): Delete unused function.
13528 * jv-lang.c (java_lookup_type): Delete unused function.
13529 * cli/cli-dump.c (dump_filetype): Delete unused function.
13530 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13531 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13532 (mips_getstring): Delete unused function.
13533 (pmon_insert_breakpoint): Delete #if0ed function.
13534 (PMON_MAX_BP): Delete #if0ed MACRO.
13535 (mips_pmon_bp_info): Delete #if0ed variable.
13536 (pmon_remove_breakpoint): Delete #if0ed function.
13537 * monitor.c (monitor_write_even_block): Delete unused function.
13538 (monitor_write_memory_block): Delete #if0ed code.
13539 * dink32-rom.c (dink32_load): Delete unused function.
13540 (_initialize_dink32_rom): Delete #if0ed code.
13541 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13542
b0a30fce
AC
13543 * tui/tui-command.c: Update references.
13544 * tui/tui-io.c: Update references.
13545 * tui/tui-command.h: Update copyright.
13546 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13547
81f08b92
AC
13548 * source.c (ambiguous_line_spec): Delete never-defined function.
13549 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13550 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13551 * cli/cli-cmds.c (validate_comname): Ditto.
13552
65f05602
AC
13553 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13554 "tui-data.h".
13555 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13556 (tui_show_disassem): Rename tuiShowDisassem.
13557 (tui_show_disassem_and_update_source): Rename
13558 tuiVerticalDisassemScroll.
13559 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13560 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13561 * tui/tui.h: Update copyright.
13562 (enum tui_status): Define.
13563 * tui/tui-data.h (enum tui_scroll_direction): Define.
13564 * tui/tui-disasm.c: Update copyright. Update references.
13565 * tui/tui-winsource.c: Update copyright. Update references.
13566 * tui/tui-win.c: Update references.
13567 * tui/tui-layout.c: Update references.
13568
6bb0384f
AC
135692004-01-20 Andrew Cagney <cagney@redhat.com>
13570
13571 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13572 sym2 to start of block.
13573
9175c9a3
MC
135742004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13575
13576 * MAINTAINERS: Delete mmalloc.
13577 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13578 * NEWS: Mention removal of --with-malloc.
13579 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13580 * config.in: Regenerate.
13581 * configure: Regenerate.
6bb0384f
AC
13582 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13583 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13584 * gdbinit.in: Remove mmalloc.
13585 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13586 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13587 * config/i386/go32.mh: Likewise.
13588 * config/i386/interix.mh: Likewise.
13589 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13590
4fcef00a
JJ
135912004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13592
13593 * linespec.c (decode_variable, symtab_from_filename): Call
13594 error_silent with error message instead of throwing an exception
13595 directly.
13596 * defs.h (error_silent, error_output_message): Add prototypes.
13597 (catch_exceptions_with_msg): Ditto.
13598 * utils.c (error_silent, error_output_message): New functions.
13599 * top.c (catch_exceptions_with_msg): New function.
13600
8e94b928
NR
136012004-01-20 Nick Roberts <nick@nick.uklinux.net>
13602
13603 * mi/mi-cmds.h (enum print_values): Add definition.
13604
13605 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13606 type and value for simple data types and just the name and type
13607 for complex ones, if required.
13608
13609 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13610 children, if required.
13611
a02d6af8
KB
136122004-01-19 Kevin Buettner <kevinb@redhat.com>
13613
13614 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13615 unused declarations.
13616
78a4a9b9
AC
136172004-01-19 Andrew Cagney <cagney@redhat.com>
13618
13619 * top.h (mapped_symbol_files): Delete declaration.
13620 * main.c (captured_main): Delete option "m" and "mapped".
13621 * objfiles.c (mapped_symbol_files): Delete variable.
13622 * symfile.c (symbol_file_command): Delete mmap code.
13623 (symbol_file_add_with_addrs_or_offsets): Ditto.
13624 (add_symbol_file_command, reread_separate_symbols): Ditto.
13625 * objfiles.h (OBJF_MAPPED): Delete.
13626 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13627 (free_objfile) [USE_MMALLOC]: Ditto.
13628 (open_existing_mapped_file): Delete function.
13629 (open_mapped_file): Delete function.
13630 (map_to_file): Delete function.
13631
2dbd5e30
KB
136322004-01-19 Kevin Buettner <kevinb@redhat.com>
13633
13634 * infrun.c (step_into_function): Account for possible breakpoint
13635 adjustment when computing ``stop_func_start''.
13636
437b434f
KB
136372004-01-19 Kevin Buettner <kevinb@redhat.com>
13638
13639 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13640 the region size against the size of a pointer, not the size of
13641 a register as given by DEPRECATED_REGISTER_SIZE.
13642
55fb0713
AC
136432004-01-19 Andrew Cagney <cagney@redhat.com>
13644
13645 * tui/tui-regs.h: Include "tui-data.h".
13646 (tuiFirstRegElementNoInLine): Delete declaration.
13647 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13648 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13649 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13650 (tui_calculate_regs_column_count): Rename
13651 tuiCalculateRegsColumnCount.
13652 (tui_check_register_values): Rename tuiCheckRegisterValues.
13653 (tui_show_registers): Rename tuiShowRegisters.
13654 (tui_display_registers_from_line): Rename
13655 tuiDisplayRegistersFromLine.
13656 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13657 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13658 (tui_first_reg_element_no_inline): Rename
13659 tuiFirstRegElementNoInLine.
13660 * tui/tui-data.h: Update copyright.
13661 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13662 * tui/tui-windata.c: Update copyright, update references.
13663 * tui/tui-regs.c: Update copyright, update references.
13664 * tui/tui-win.c: Update copyright, update references.
13665 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13666
cebe9500
AC
136672004-01-18 Andrew Cagney <cagney@redhat.com>
13668
bcdf1568
AC
13669 * tui/tui-io.c: Update copyright.
13670 (key_is_end_sequence, key_is_backspace): New functions.
13671 (key_is_command_char, key_is_start_sequence): New function.
13672 (tui_getc): Update references.
13673 * tui/tui-io.h: Update copyright.
13674 (m_tuiStartNewLine): Delete macro.
13675 (m_isBackspace, m_isDeleteChar): Delete macros.
13676 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13677 (m_isNextPage, m_isPrevPage): Delete macros.
13678 (m_isLeftArrow, m_isRightArrow): Delete macros.
13679 (m_isXdbStyleCommandChar): Delete macro.
13680 (key_is_start_sequence): Declare, replace m_isStartSequence.
13681 (key_is_end_sequence): Declare, replace m_isEndSequence.
13682 (key_is_backspace): Declare ,replace m_isBackspace.
13683 (key_is_command_char): Declare, replace m_isCommandChar.
13684 * tui/tui-command.c: Update copyright.
13685 (tuiDispatchCtrlChar): Update references.
13686
130d87e6
AC
13687 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13688 tuiSourceWin.h.
13689
d7b2e967
AC
13690 * tui/tui-command.c: Rename tui/tuiCommand.c.
13691 * tui/tui-command.h: Rename tui/tuiCommand.h.
13692 * tui/tui-data.c: Rename tui/tuiData.c.
13693 * tui/tui-data.h: Rename tui/tuiData.h.
13694 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13695 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13696 * tui/tui-io.c: Rename tui/tuiIO.c.
13697 * tui/tui-io.h: Rename tui/tuiIO.h.
13698 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13699 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13700 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13701 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13702 * tui/tui-source.c: Rename tui/tuiSource.c.
13703 * tui/tui-source.h: Rename tui/tuiSource.h.
13704 * tui/tui-stack.c: Rename tui/tuiStack.c.
13705 * tui/tui-stack.h: Rename tui/tuiStack.h.
13706 * tui/tui-win.c: Rename tui/tuiWin.c.
13707 * tui/tui-win.h: Rename tui/tuiWin.h.
13708 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13709 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13710 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13711 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13712 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13713 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13714 * tui/tui-file.c: Update includes.
13715 * tui/tui-hooks.c: Update includes.
13716 * tui/tui-interp.c: Update includes.
13717 * tui/tui.c: Update includes.
13718 * Makefile.in: Update all tui/ dependencies.
13719 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13720
b2100910
AC
13721 * Makefile.in: Update copyright. Update dependencies.
13722
cebe9500
AC
13723 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13724 problem.
13725
c6f0559b
AC
137262004-01-18 Andrew Cagney <cagney@redhat.com>
13727
43e9390b
AC
13728 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13729 instead of register_gdbarch_init.
13730
c6f0559b
AC
13731 * remote-sds.c (tohex): Delete unused function. Update copyright.
13732 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13733 * v850-tdep.c (v850_register_virtual_size): Ditto.
13734 * target.c (normal_target_post_startup_inferior): Ditto.
13735 * source.c (ambiguous_line_spec): Ditto.
13736 * remote.c (adapt_remote_get_threadinfo): Ditto.
13737 * mi/mi-out.c (out_field_fmt): Ditto.
13738 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13739 (output_control_change_notification): Ditto.
13740 * m68k-tdep.c (m68k_register_byte): Ditto.
13741 (m68k_remote_breakpoint_from_pc): Ditto.
13742 * ui-out.c (init_ui_out_state): Delete unused declaration.
13743 * stabsread.c (search_value): Ditto.
13744 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13745 * maint.c (print_section_table): Ditto.
13746 * infrun.c (set_follow_fork_mode_command): Ditto.
13747
a8504492
MK
137482004-01-18 Mark Kettenis <kettenis@gnu.org>
13749
13750 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13751 DW_CFA_def_cfa_exporession. Add support for
13752 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13753 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13754
0bd8997e
AC
137552004-01-18 Andrew Cagney <cagney@redhat.com>
13756
13757 * ocd.c: Update copyright.
13758 (bdm_read_register_command): Delete unused function.
13759 (_initialize_remote_ocd): Delete commented out reference.
13760 (get_quoted_char, reset_packet): Delete #if0ed function.
13761 (output_packet, put_quoted_char): Delete #if0ed function.
13762 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13763 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13764 (BDM_BREAKPOINT): Delete #if0ed macro.
13765 (remote_timeout): Delete #if0ed variable.
13766
31bb40e4
MK
137672004-01-18 Mark Kettenis <kettenis@gnu.org>
13768
13769 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13770 (core-sol2.o): Remove dependency.
13771 * core-sol2.c: Remove file.
13772
887432a5
AC
137732004-01-17 Andrew Cagney <cagney@redhat.com>
13774
13775 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13776 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13777 enums.
13778
29182b13
DJ
137792004-01-17 Daniel Jacobowitz <drow@mvista.com>
13780
13781 * remote.c: Update copyright years.
13782
2963ee1d
DJ
137832004-01-17 Daniel Jacobowitz <drow@mvista.com>
13784
13785 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13786
79d45cd4
AC
137872004-01-17 Andrew Cagney <cagney@redhat.com>
13788
ee300cd4
AC
13789 * mdebugread.c: Update copyright.
13790 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13791 (parse_type, parse_procedure): Ditto.
13792 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13793
fcacc9c2
AC
13794 * cris-tdep.c (cris_store_struct_return): Put back accidently
13795 deleted function.
13796
79d45cd4
AC
13797 * gdbarch.sh: Update copyright year.
13798 * gdbarch.h, gdbarch.c: Re-generate.
13799
b263358a
DJ
138002004-01-17 Daniel Jacobowitz <drow@mvista.com>
13801
13802 Suggested by George Anzinger.
13803 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13804 correct stack offset. Include unknown opcode numbers in the error
13805 message.
13806
931aecf5
AC
138072004-01-17 Andrew Cagney <cagney@redhat.com>
13808
13809 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13810 extract_struct_value_address, i386 does not set it.
13811 * sparc64-tdep.c (sparc64_init_abi): Do not set
13812 extract_struct_value_address, never called.
13813 (sparc64_extract_struct_value_address): Delete function.
13814 * m68hc11-tdep.c: Update copyright.
13815 (m68hc11_gdbarch_init): Delete redundant assignment of
13816 extract_struct_value_address.
13817 * i386-tdep.c: Update copyright.
13818 (i386_gdbarch_init): Do not set extract_struct_value_address,
13819 never called.
13820 (i386_extract_struct_value_address): Delete function.
13821 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13822 extract_struct_value_address, never called.
13823 (sparc32_extract_struct_value_address): #if 0 function. Add
13824 comments explaining its future.
13825
756fe439
DJ
138262004-01-17 Daniel Jacobowitz <drow@mvista.com>
13827
13828 * arm-tdep.c (arm_write_pc): New function.
13829 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13830
e74f0f02
DJ
138312004-01-17 Daniel Jacobowitz <drow@mvista.com>
13832
13833 * breakpoint.c (must_shift_inst_regs): Delete.
13834 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13835 and SHIFT_INST_REGS.
13836 * infcmd.c (step_1, step_1_continuation): Delete references to
13837 SHIFT_INST_REGS.
13838 * infrun.c (keep_going): Likewise.
13839 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13840 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13841
b6cb9035
AC
138422004-01-17 Andrew Cagney <cagney@redhat.com>
13843
444a1e2e
AC
13844 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13845 * gdbarch.h, gdbarch.c: Re-generate.
13846 * infcmd.c (print_return_value): Delete reference to
13847 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13848
def7e6ed
AC
13849 * cris-tdep.c (cris_gdbarch_init): Do not set
13850 deprecated_extract_struct_value_address.
13851
07be497a
AC
13852 * xstormy16-tdep.c: Update copyright.
13853 (xstormy16_extract_struct_value_address): Update to current
13854 extract struct value address interface.
13855 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13856 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13857 current extract struct value address interface.
13858 (sh64_gdbarch_init): Set extract_struct_value_address.
13859
6b4d5c91
AC
13860 * cris-tdep.c: Update copyright.
13861 (cris_extract_struct_value_address): Delete function.
13862 (struct_return_address): Delete variable.
13863 (cris_store_struct_return): Do not set struct_return_address.
13864
464e0365
AC
13865 * mcore-tdep.c: Update copyright.
13866 (mcore_extract_struct_value_address): Delete function. Update
13867 comments.
13868 (mcore_gdbarch_init): Update.
13869 * mn10300-tdep.c: Update copyright.
13870 (mn10300_extract_struct_value_address): Delete function.
13871 (mn10300_gdbarch_init): Update.
13872 * v850-tdep.c: Update copyright.
13873 (v850_extract_struct_value_address): Delete.
13874 (v850_gdbarch_init): Update.
13875 * ns32k-tdep.c: Update copyright.
13876 (ns32k_extract_struct_value_address): Delete.
13877 (ns32k_gdbarch_init): Update.
13878 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13879 (hppa_gdbarch_init): Update.
13880 * vax-tdep.c: Update copyright.
13881 (vax_extract_struct_value_address): Delete.
13882 (vax_gdbarch_init): Update.
13883
afb18d0f
AC
13884 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13885 * gdbarch.h, gdbarch.c: Re-generate.
13886 * procfs.c (procfs_fetch_registers): Delete reference to
13887 DEPRECATED_NPC_REGNUM.
13888 (procfs_store_registers): Ditto.
13889 * regcache.c (generic_target_write_pc): Simplify.
13890 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13891
a698f53e
AC
13892 * core-sol2.c (fetch_core_registers): Replace
13893 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13894
adc11376
AC
13895 * hppa-tdep.c: Update copyright year.
13896 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13897 NPC_REGNUM.
13898 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13899
b6cb9035
AC
13900 * mips-tdep.c (mips_write_pc): New function.
13901 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13902 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13903 (mips_find_saved_regs, mips_software_single_step: Ditto.
13904 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13905 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13906
6d82d43b
AC
139072004-01-17 Andrew Cagney <cagney@redhat.com>
13908
13909 * mips-tdep.c: Re-indent. Group functions by ABI.
13910
71bd6bd4
AC
139112004-01-17 Andrew Cagney <cagney@redhat.com>
13912
13913 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13914 * gdbarch.c: Re-generate.
13915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13916 DECR_PC_AFTER_BREAK to zero.
13917 * vax-tdep.c (vax_gdbarch_init): Ditto.
13918 * v850-tdep.c (v850_gdbarch_init): Ditto.
13919 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13920 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13921 * sh-tdep.c (sh_gdbarch_init): Ditto.
13922 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13923 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13924 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13925 * mips-tdep.c (mips_gdbarch_init): Ditto.
13926 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13928 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13929 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13930 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13931 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13932 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13933 * frv-tdep.c (frv_gdbarch_init): Ditto.
13934 * cris-tdep.c (cris_gdbarch_init): Ditto.
13935 * avr-tdep.c (avr_gdbarch_init): Ditto.
13936 * arm-tdep.c (arm_gdbarch_init): Ditto.
13937 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13938
a02abb62
JB
139392004-01-17 J. Brobecker <brobecker@gnat.com>
13940
13941 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13942 Delete, no longer used.
13943 (read_subrange_type): New function, mostly extracted from
13944 read_array_type().
13945 (read_array_type): Replace extracted code by call to
13946 read_subrange_type().
13947 (dwarf2_get_attr_constant_value): New function.
13948 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13949 (add_partial_symbol): Likewise.
13950 (process_die): Likewise.
13951 (new_symbol): Likewise.
13952 (read_type_die): Likewise.
13953
cf5b2f1b
AC
139542004-01-16 Andrew Cagney <cagney@redhat.com>
13955
13956 * symfile.c: Update copyright year.
13957 (compare_symbols): Delete unused function.
13958 * stabsread.c: Update copyright year.
13959 (lrs_general_complaint): Delete unused function.
13960 (ref_search_value): Ditto.
13961 (get_substring): Delete declaration.
13962 * sh64-tdep.c: Update copyright year.
13963 (sh64_get_gdb_regnum): Delete unused function.
13964 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13965 Delete unused function.
13966
d33b9831
MK
139672004-01-17 Mark Kettenis <kettenis@gnu.org>
13968
13969 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13970 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13971
7aea86e6
AC
139722004-01-16 Andrew Cagney <cagney@redhat.com>
13973
13974 Changes from Peter Schauer.
13975 * rs6000-tdep.c: Update copyright year.
13976 (rs6000_push_dummy_call): Update the stack pointer before
13977 accessing the corresponding stack region.
13978 * rs6000-nat.c: Update copyright year.
13979 (set_host_arch): Set "info.abfd" to "exec_bfd".
13980
26b0da32
MK
139812004-01-15 Mark Kettenis <kettenis@gnu.org>
13982
13983 * blockframe.c: Update copyright year.
13984 (inside_entry_func): Don't treat a zero PC specially.
13985
86fbe6cc
EZ
139862004-01-14 Elena Zannoni <ezannoni@redhat.com>
13987
13988 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13989 variable.
13990 (gcore_create_callback): Ditto. Skip any memory segment that has
13991 no permissions set.
13992
63d06c5c
DC
139932004-01-14 David Carlton <carlton@kealia.com>
13994
13995 Change symbols for C++ nested types to contain the fully qualified
13996 name, if possible. (At least in the DWARF-2 case.) Partial fix
13997 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13998 c++/895.
13999 * c-exp.y (qualified_type): Handle types nested within classes.
14000 * cp-namespace.c: Update comments.
14001 (cp_set_block_scope): Delete #if 0.
14002 (cp_lookup_nested_type): Handle types nested within classes.
14003 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14004 when appropriate.
14005 (add_partial_symbol): Add the name of the enclosing namespace to
14006 types.
14007 (pdi_needs_namespace): New.
14008 (add_partial_namespace): Tweak comment.
14009 (add_partial_structure): New.
14010 (psymtab_to_symtab_1): Initialize processing_current_prefix
14011 here...
14012 (process_die): instead of here.
14013 (read_structure_scope): Try to figure out the name of the class or
14014 namespace that the structure might be defined within.
14015 (read_enumeration): Generate fully-qualified names, if possible.
14016 (read_namespace): Don't set name to NULL.
14017 (die_specification): New.
14018 (new_symbol): Generate fully-qualified names for types.
14019 (read_type_die): Determine appropriate prefix.
14020 (determine_prefix): New.
14021 (typename_concat): New.
14022 (class_name): New.
14023 * valops.c (value_aggregate_elt): Pass NOSIDE to
14024 value_struct_elt_for_reference.
14025 (value_struct_elt_for_reference): Make static, add NOSIDE
14026 parameter, call value_maybe_namespace_elt as a last resort.
14027 (value_namespace_elt): Break out code into
14028 value_maybe_namespace_elt.
14029 (value_maybe_namespace_elt): New.
14030
87783b8b
AC
140312004-01-12 Andrew Cagney <cagney@redhat.com>
14032
14033 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14034 cooked floating-point registers.
14035 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14036 and value_to_register.
14037
6503b91e
AC
140382004-01-13 Andrew Cagney <cagney@redhat.com>
14039
14040 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14041 * gdbarch.c: Re-generate.
14042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14043 FUNCTION_START_OFFSET.
14044 * v850-tdep.c (v850_gdbarch_init): Ditto.
14045 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14046 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14047 * sh-tdep.c (sh_gdbarch_init): Ditto.
14048 * s390-tdep.c (s390_gdbarch_init): Ditto.
14049 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14050 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14051 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14052 * mips-tdep.c (mips_gdbarch_init): Ditto.
14053 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14054 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14056 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14057 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14058 * i386-tdep.c (i386_gdbarch_init): Ditto.
14059 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14060 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14061 * frv-tdep.c (frv_gdbarch_init): Ditto.
14062 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14063 * cris-tdep.c (cris_gdbarch_init): Ditto.
14064 * avr-tdep.c (avr_gdbarch_init): Ditto.
14065 * arm-tdep.c (arm_gdbarch_init): Ditto.
14066 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14067
ea1dd7bc
DJ
140682004-01-13 Daniel Jacobowitz <drow@mvista.com>
14069
14070 * infrun.c (follow_fork_mode_ask): Remove.
14071 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14072 (follow_fork): Simplify and remove internal error for
14073 follow_fork_mode_ask.
14074 (_initialize_infrun): Update "set follow-fork-mode" help text.
14075
0f0cffd2
AC
140762004-01-13 Andrew Cagney <cagney@redhat.com>
14077
14078 * configure.in: Update copyright year.
14079 (build_warnings): Add -Wunused-label.
14080 * configure: Re-generate.
14081
de38af99
AC
140822004-01-12 Andrew Cagney <cagney@redhat.com>
14083
954a7fba
AC
14084 * exec.h (exec_ops): Make "extern".
14085
de38af99
AC
14086 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14087 the function is void.
14088 (mips_pseudo_register_write): Ditto.
14089
1a111ce3
AC
140902004-01-12 Andrew Cagney <cagney@redhat.com>
14091
14092 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14093 call. Never defined.
14094 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14095 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14096 (struct sparc_gregset, struct regcache): Ditto.
14097 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14098
48efe704
AC
140992004-01-12 Andrew Cagney <cagney@redhat.com>
14100
14101 * mi/ChangeLog: Delete file. Renamed to ...
14102 * mi/ChangeLog-1999-2003: New file.
14103 * tui/ChangeLog: Delete file. Renamed to ...
14104 * tui/ChangeLog-1998-2003: New file.
fe61caab 14105
a54124c5
MK
141062004-01-11 Mark Kettenis <kettenis@gnu.org>
14107
2ca62865
MK
14108 * sparc64nbsd-tdep.c: Include "regset.h".
14109 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14110 Remove variables.
14111 (fetch_core_registers): Remove function.
14112 (sparc64nbsd_core_fns): Remove variable.
14113 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14114 functions.
14115 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14116 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14117 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14118
ca9d58e9
MK
14119 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14120 sparc_extract_struct_value_address.
14121 (sparc32_gdbarch_init): Set extract_struct_value_address.
14122 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14123 function.
14124 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14125 return_value_on_stack.
14126
3cc87ec0
MK
14127 * NEWS: Mention that %cs and %ss have been added to the AMD64
14128 configurations
14129
5bf00f29
MK
14130 * frame.c: Update copyright year.
14131 (get_prev_frame): Improve comment.
14132
4f7ec84e
MK
14133 * sparc64fbsd-tdep.c: Include "regset.h".
14134 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14135 Remove variables.
14136 (fetch_core_registers): Remove function.
14137 (sparc64fbsd_core_fns): Remove variable.
14138 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14139 functions.
14140 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14141 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 14142 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 14143
4e7b0cd3
MK
14144 * sparcnbsd-tdep.c: Include "regset.h".
14145 (fetch_core_registers): Remove function.
14146 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14147 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14148 functions.
14149 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14150 TDEP->fpregset.
46b58ce9 14151 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 14152
a54124c5
MK
14153 * sparc-tdep.h (struct regset): Provide opaque declaration.
14154 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14155 fpregset and sizeof_fpregset members.
14156 * sparc-tdep.c (struct regset): Provide opaque declaration.
14157 (sparc_regset_from_core_section): New function.
14158 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14159 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14160 Set regset_from_core_section when appropriate.
14161
29ff87c5
MK
141622004-01-10 Mark Kettenis <kettenis@gnu.org>
14163
79b1ab3d
MK
14164 * x86-64-tdep.c (amd64_non_pod_p): New function.
14165 (amd64_classify_aggregate): Return class memory for non-POD
14166 C++ structure types.
14167
6470d250
MK
14168 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14169 argument. Use it to reserve a register if necessary.
14170 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14171 amd64_push_arguments.
14172
562c50c2
MK
14173 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14174
af233647
MK
14175 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14176 register numbers in comments.
14177 * x86-64-tdep.h: Update copyright year.
14178 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14179 Adjust for addition of %cs and %ss.
14180 * amd64fbsd-nat.c: Update copyright year.
14181 (reg_offset): Add register offsets for %cs and %ss.
14182 * amd64fbsd-tdep.c: Update copyright year.
14183 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14184 (amd64fbsd_sc_reg_offset): Likewise.
14185 * x86-64-linux-nat.c: Update copyright year.
14186 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14187 and %ss.
14188 * amd64nbsd-nat.c: Update copyright year.
14189 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14190 * amd64nbsd-tdep.c: Update copyright year.
14191 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14192 * x86-64-linux-tdep.c: Update copyright year.
14193 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14194 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14195 * regformats/reg-x86-64.dat: Add %cs and %ss.
14196
29ff87c5
MK
14197 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14198 variables to prevent long lines. Update comments to reflect
14199 reality.
14200
38d518c9
EZ
142012004-01-09 David Carlton <carlton@kealia.com>
14202
14203 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14204 * dwarf2read.c (read_namespace): Pull out name-generating code
14205 into namespace_name. Rename previous_namespace to previous_prefix
14206 and processing_current_namespace to processing_current_prefix..
14207 (namespace_name): New function.
14208 (add_partial_symbol): Substitute uses of pdi->name with
14209 actual_name.
14210 * cp-support.h: Rename processing_current_namespace to
14211 processing_current_prefix.
14212 Update copyright year.
14213 * cp-namespace.c: Rename processing_current_namespace to
14214 processing_current_prefix.
14215 Update copyright year.
fe61caab 14216
1e4728e7
AC
142172004-01-09 Andrew Cagney <cagney@redhat.com>
14218
14219 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14220
c77c642a
MK
142212004-01-09 Mark Kettenis <kettenis@gnu.org>
14222
14223 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14224 complaining.
14225 (process_one_symbol): Deal with N_PATCH stabs.
14226
b44e9041
EZ
142272004-01-09 Elena Zannoni <ezannoni@redhat.com>
14228
14229 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14230 ifdeffed code.
14231 Update copyright year.
38d518c9 14232
eccfb640
MC
142332004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14234
14235 * config/pa/tm-hppa.h: Update extern declarations for
14236 hppa32_hpux_frame_saved_pc_in_sigtramp,
14237 hppa32_hpux_frame_base_before_sigtramp, and
14238 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14239
848c5feb
MC
142402004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14241
14242 * config/pa/tm-hppah.h: Update copyright years.
14243
3cc5d663
AC
142442004-01-08 Andrew Cagney <cagney@redhat.com>
14245
14246 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14247 (mips_o32_reg_struct_has_addr): Delete function.
14248 (mips_gdbarch_init): Update.
14249 (mips_extract_struct_value_address): Delete function.
14250
bfec0b41
JJ
142512004-01-08 David Mosberger <davidm@hpl.hp.com>
14252
14253 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14254 reality.
14255
16e109ca
AC
142562004-01-07 Andrew Cagney <cagney@redhat.com>
14257
6214a8a1
AC
14258 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14259 architecture's elf flags (when available).
14260
8d5838b5
AC
14261 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14262 FPU to the start, check the MIPS FPU when looking for an old
14263 architecture.
14264 (set_mipsfpu_single_command): Update the architecture.
14265 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14266
480d3dd2
AC
14267 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14268 (mips_mask_address_p): Add "tdep" parameter.
14269 (show_mask_address, mips_addr_bits_remove): Update.
14270 (mips_dump_tdep): Update.
14271 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14272 (MIPS_STACK_ARGSIZE): Delete macro.
14273 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14274 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14275 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14276 (mips_dump_tdep): Update.
14277 (MIPS_SAVED_REGSIZE): Delete macro.
14278 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14279 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14280 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14281 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14282 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14283 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14284 (mips_pop_frame, return_value_location): Update.
14285 (mips_n32n64_return_value, mips_dump_tdep): Update.
14286
ec03c1ac
AC
14287 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14288 MIPS ABI.
14289
16e109ca
AC
14290 * mips-tdep.c: Update copyright.
14291 (mips_gdbarch_init): Merge two code blocks handling the register
14292 name and number layout.
14293
15255275
MS
142942004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14295
14296 * tracepoint.c (validate_actionline): Fix segv at EOF
14297
9f9057da
MC
142982004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14299
14300 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14301 properly for static fields.
14302
0127c0d3 143032004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14304 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14305
14306 * disasm.c: Update copyright to include 2004.
14307 (do_mixed_source_and_assembly): For uiout asm list
14308 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14309 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14310 the tuple/list. Move check for whether to close off the
fe61caab 14311 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14312 on each loop iteration.
14313
5269965e
AC
143142004-01-05 Andrew Cagney <cagney@redhat.com>
14315
54f1137d
AC
14316 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14317 should be a switch case and not a label.
14318 * mips-tdep.c (mips32_next_pc): Delete unused labels
14319 "greater_equal_branch" and "less_zero_branch".
14320 * jv-valprint.c (java_print_value_fields): Delete unused label
14321 "flush_it".
14322
5269965e
AC
14323 * target.c (unpush_target): Only close a target that is in the
14324 target stack.
14325
dbc22fa1
MK
143262004-01-05 Mark Kettenis <kettenis@gnu.org>
14327
9515395e
MK
14328 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14329 address from [sp + 64] instead of %o2.
14330
dbc22fa1
MK
14331 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14332 fixes PR backtrace/1476.
14333
5439edaa
AC
143342004-01-05 Andrew Cagney <cagney@redhat.com>
14335
14336 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14337 move to start of file.
14338 * i386-tdep.h (struct regcache): Add opaque declaration.
14339 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14340 declaration.
14341 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14342 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14343 * win32-nat.c (fake_create_process): Use ISO C style definition.
14344 * stabsread.c (define_symbol): Delete #ifndef
14345 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14346 stabs_argument_has_addr call, macro never defined.
14347
19061abe
MC
143482004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14349
14350 * op50-rom.c: Delete.
14351 * w89k-rom.c: Delete.
14352 * Makefile.in: Remove references.
14353
e53bef9f
MK
143542004-01-04 Mark Kettenis <kettenis@gnu.org>
14355
14356 * x86-64-tdep.c: Update copyright year.
14357 (struct amd64_register_info): Rename from x86_64_register_info.
14358 (amd64_register_info): Rename from x86_64_register_info.
14359 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14360 (amd64_register_name): Rename from x86_64_register_name.
14361 (amd64_register_type): Rename from x86_64_register_type.
14362 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14363 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14364 (amd64_dwarf_reg_to_regnum): Rename from
14365 x86_64_dwarf_reg_to_regnum.
14366 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14367 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14368 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14369 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14370 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14371 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14372 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14373 (amd64_frame_cache): Rename from x86_64_frame_cache.
14374 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14375 (amd64_frame_prev_register): Rename from
14376 x86_64_frame_prev_register.
14377 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14378 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14379 (amd64_sigtramp_frame_cache): Rename from
14380 x86_64_sigtramp_frame_cache.
14381 (amd64_sigtramp_frame_prev_register): Rename from
14382 x86_64_sigtramp_frame_prev_register.
14383 (amd64_sigtramp_frame_unwind): Rename from
14384 x86_64_sigtramp_frame_unwind.
14385 (amd64_sigtramp_frame_sniffer): Rename from
14386 x86_64_sigtramp_frame_sniffer.
14387 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14388 (amd64_frame_base): Rename from x86_64_frame_base.
14389 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14390 (amd64_frame_align): Rename from x86_64_frame_align.
14391 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14392 (amd64_regset_from_core_section): Rename from
14393 x86_64_regset_from_core_section.
14394 (x86_64_init_abi): Update comments.
14395
fca6aa58
NR
143962004-01-04 Nick Roberts <nick@nick.uklinux.net>
14397
14398 * MAINTAINERS (write after approval): Add myself.
14399
8ada74e3
MK
144002004-01-04 Mark Kettenis <kettenis@gnu.org>
14401
14402 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14403 `float' arguments.
14404
5154b0cd
MK
144052004-01-04 Mark Kettenis <kettenis@gnu.org>
14406
14407 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14408 such that it mentions a specific version of GCC that exhibits this
14409 bug.
14410
fb316966
MK
144112004-01-03 Mark Kettenis <kettenis@gnu.org>
14412
200cc553
MK
14413 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14414 structure that has a single `float' member, store it in %f1 in
14415 addition to %f0.
14416
e226a4a0
MK
14417 * sparc-sol2-nat.c: Add missing '\'.
14418
b9d4c5ed
MK
14419 * sparc-tdep.c (sparc32_return_value): New function.
14420 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14421 Remove functions.
14422 (sparc32_gdbarch_init): Set return_value, don't set
14423 extract_return_value, store_return_value, use_struct_convention
14424 and return_value_on_stack.
14425
fb316966
MK
14426 * sparc-sol2-nat.c: Add missing ')'.
14427
1af510a8
JB
144282004-01-03 J. Brobecker <brobecker@gnat.com>
14429
14430 * infrun.c (handle_step_into_function): New function.
14431 (handle_inferior_event): Extract out some code into the new
14432 function above.
14433
5cf4d23a
JB
144342004-01-03 J. Brobecker <brobecker@gnat.com>
14435
14436 * infrun.c (handle_inferior_event): Move the declaration of
14437 real_stop_pc inside the if blocks where it is used.
14438
60af1db2
MK
144392004-01-03 Mark Kettenis <kettenis@gnu.org>
14440
14441 * sparc64-tdep.c (sparc64_16_byte_align_p)
14442 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14443 Use check_typedef to get subtypes of structures and unions.
14444 (sparc64_store_return_value): Fix calculation of the appropriate
14445 offset into VALBUF when storing a structure or union.
14446 (sparc64_return_value): New function.
14447 (sparc64_use_struct_convention): Remove function.
14448 (sparc64_init_abi): Set return_value, don't set
14449 extract_return_value, store_return_value and
14450 use_struct_convention.
14451
1a901d3f
EZ
144522004-01-03 Eli Zaretskii <eliz@elta.co.il>
14453
14454 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14455 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14456 gdb/config/alpha/xm-alphaosf.h,
14457 gdb/config/powerpc/tm-ppcle-eabi.h,
14458 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14459 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14460 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14461 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14462 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14463 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14464 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14465 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14466 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14467 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14468 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14469 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14470 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14471 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14472 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14473 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14474 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14475 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14476 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14477 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14478 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14479 Remove lines for .cvsignore files.
14480
ef52e463
JB
144812004-01-03 J. Brobecker <brobecker@gnat.com>
14482
14483 * infrun.c: Back out the previous change.
14484
cb1bf9dc
MK
144852004-01-03 Mark Kettenis <kettenis@gnu.org>
14486
f0424ef6
MK
14487 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14488 sparc-*-sunos4* to the list of REMOVED configurations.
14489
cb1bf9dc
MK
14490 * configure.tgt: Add back sparc-*-vxworks*.
14491 * remote-vxsparc.c: Remove all includes except for "defs.h",
14492 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14493 Include "sparc-tdep.h".
14494 (SPARC_R_G1): New define.
14495 (vxsparc_gregset): New variable.
14496 (ext_format_sparc): Remove extern declaration.
14497 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14498 sparc32_supply_fpregset.
14499 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14500 sparc_collect_rwindow and sparc32_collect_fpregset.
14501 * config/sparc/tm-vxworks.h: New file, based on recently removed
14502 tm-vxsparc.h.
14503 * config/sparc/vxworks.mt: New file, based on recently removed
14504 vxworks.mt.
fe61caab 14505
5e938f9f
JB
145062004-01-03 J. Brobecker <brobecker@gnat.com>
14507
14508 * infrun.c (handle_step_into_function): New function.
14509 (handle_inferior_event): Extract out some code into the new
14510 function above.
14511
386c036b
MK
145122004-01-02 Mark Kettenis <kettenis@gnu.org>
14513
14514 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14515 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14516 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14517 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14518 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14519 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14520 (sparc_nat_h): New variable.
14521 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14522 (tm-sun4os4.h): Remove dependency.
14523 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14524 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14525 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14526 sparc-tdep.o): Update dependencies.
14527 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14528 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14529 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14530 dependencies.
14531 * configure.host: Remove existing sparc-*-lynxos*,
14532 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14533 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14534 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14535 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14536 triplets.
14537 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14538 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14539 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14540 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14541 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14542 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14543 sparc64-*-solaris2* and sparc64-*-* triplets.
14544 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14545 "symtab.h" and "objfiles.h".
14546 (BIAS): Remove define.
14547 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14548 (X_DISP19): Remove macros.
14549 (sparc_fetch_instruction): Remove function.
14550 (struct gdbarch_tdep): Remove definition.
14551 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14552 (sparc_breakpoint_from_pc): Remove function.
14553 (struct sparc64_frame_cache): Remove definition.
14554 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14555 sparc64_unwind_pc): Remove functions.
14556 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14557 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14558 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14559 (sparc64_frame_cache): Change return type to `struct
14560 sparc_frame_cache *'. Simply call sparc_frame_cache.
14561 (sparc64_frame_this_id, sparc64_frame_prev_register,
14562 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14563 instead of `struct sparc64_frame_cache.
14564 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14565 sparc_analyze_control_transfer, sparc_software_single_step,
14566 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14567 _initialize_sparc64_tdep): Remove functions.
14568 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14569 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14570 macros.
14571 (sparc64_supply_gregset, sparc64_collect_gregset,
14572 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14573 (sparc64_init_abi): New function.
14574 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14575 inclusion guard. Include "sparc-tdep.h".
14576 (BIAS): Define.
14577 (r_tstate_offset, r_fprs_offset): New defines.
14578 (enum sparc_regnum): Remove defenition.
14579 (enum sparc64_regnum): Reformat.
14580 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14581 (sparc64_init_abi, sparc64_supply_gregset,
14582 sparc64_collect_gregset, sparc64_supply_fpregset,
14583 sparc64_collect_fpregset): New prototypes.
14584 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14585 Add extern declarations.
14586 (sparc64_sol2_init_abi): New prototype.
14587 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14588 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14589 prototypes.
14590 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14591 "sparnbsd-nat.h".
14592 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14593 functions.
14594 (_initialize_sparc64fbsd_nat): Remove initialization of
14595 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14596 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14597 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14598 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14599 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14600 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14601 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14602 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14603 (sparc64fbsd_r_y_offset): Remove variables.
14604 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14605 Make static and const.
14606 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14607 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14608 functions.
14609 (sparc64fbsd_gregset): New variable.
14610 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14611 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14612 and sparc64_supply_fpregset.
14613 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14614 (sparc64fbsd_sigtramp_frame_this_id)
14615 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14616 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14617 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14618 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14619 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14620 * sparcnbsd-tdep.c: Update copyright year. Include
14621 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14622 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14623 "value.h" and "sparcnbsd-tdep.h".
14624 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14625 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14626 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14627 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14628 defines.
14629 (sparcnbsd_gregset): New variable.
14630 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14631 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14632 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14633 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14634 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14635 variables.
14636 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14637 (sparc32nbsd_sigcontext_frame_this_id)
14638 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14639 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14640 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14641 (sparcnbsd_get_longjmp_target_32,
14642 sparcnbsd_get_longjmp_target_64): Remove functions.
14643 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14644 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14645 sparcnbsd_init_elf): Remove.
14646 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14647 (sparcnbsd_elf_init_abi): New functions.
14648 (_initialize_sparcnbsd_tdep): New prototype.
14649 (_initialize_sparnbsd_tdep): Update.
14650 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14651 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14652 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14653 * config/sparc/linux.mh: Update comment.
14654 (XM_FILE, HOST_IPC): Remove variables.
14655 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14656 sparc-linux-nat.o.
14657 * config/sparc/linux.mt: Update comment.
14658 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14659 * config/sparc/nbsd.mt: Reformat.
14660 * config/sparc/nbsd64.mh: Update comment.
14661 (NATDEPFILES): Add sparc-nat.o.
14662 * config/sparc/nbsd64.mt: Update comment.
14663 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14664 (TM_FILE): Set to tm-nbsd.h.
14665 * config/sparc/nbsdelf.mh: Update comment.
14666 (NATDEPFILES): Add sparc-nat.o.
14667 (XM_FILE): Delete.
14668 * config/sparc/nbsdaout.mh: Update comment.
14669 (NATDEPFILES): Add sparc-nat.o
14670 (XM_FILE): Delete.
14671 * config/sparc/nm-linux.h: Update copyright year. Don't include
14672 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14673 inclusion.
14674 (KERNEL_U_SIZE): Remove define.
14675 (kernel_u_size): Remove prototype.
14676 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14677 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14678 "regcache.h".
14679 (CHILD_PREPARE_TO_STORE): Remove define.
14680 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14681 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14682 sparcnbsd-nat.c: Rewrite files.
14683 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14684 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14685 sparcnbsd-tdep.h: Remove files.
14686 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14687 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14688 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14689 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14690 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14691 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14692 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14693 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14694 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14695 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14696 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14697 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14698 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14699 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14700 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14701 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14702 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14703 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14704 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14705
ee84457a
AC
147062004-01-02 Andrew Cagney <cagney@redhat.com>
14707
14708 From 2003-12-18 Kazuhiro Inaoka:
14709 * configure.host: Add m32r-linux target.
14710
0bc2134e
MC
147112004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14712
14713 * top.c (print_gdb_version): Update year to 2004.
14714
89a72f9c
MM
147152004-01-02 Mark Mitchell <mark@codesourcery.com>
14716
14717 * MAINTAINERS: Add myself to the write-after-approval category.
14718
86b013ed
DJ
147192004-01-02 Daniel Jacobowitz <drow@mvista.com>
14720
14721 From Bernardo Innocenti <bernie@develer.com>:
14722 * configure.tgt: Add uClinux target.
14723
e42c9534
AC
147242004-01-02 Andrew Cagney <cagney@redhat.com>
14725
14726 * utils.c (do_my_cleanups): Make static, add forward declaration.
14727 * defs.h (do_my_cleanups): Delete declaration.
14728
162467d3
EZ
147292004-01-02 Eli Zaretskii <eliz@elta.co.il>
14730
14731 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14732 bfd/ChangeLog-0203.
14733
78434e59
MK
147342004-01-02 Mark Kettenis <kettenis@gnu.org>
14735
14736 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14737 in <machine/reg.h>.
14738 * configure, config.in: Regenerate.
14739
48efe704
AC
14740For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14741tui/ChangeLog-1998-2003.
c906108c
SS
14742\f
14743Local Variables:
14744mode: change-log
14745left-margin: 8
14746fill-column: 74
14747version-control: never
14748End:
This page took 1.2958 seconds and 4 git commands to generate.