* somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b1acf338
MK
12004-12-05 Mark Kettenis <kettenis@gnu.org>
2
3 * hppa-hpux-tdep.c: Update copyright notice and year.
4
fcab3fb5
RE
52004-12-05 Richard Earnshaw <rearnsha@arm.com>
6
7 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
8 (get_field, put_field): Assert that the format is one we can handle.
9 Simplify logic accordingly.
10 (floatformat_normalize_byteorder): New function.
11 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
12 to normalize and select modified byte order. Pass modified byte order
13 to get_field.
14 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
15 Likewise.
16 (convert_doublest_to_floatformat): Select an appropriate intermediate
17 byte order if necessary. Always convert to the final format before
18 returning.
19
48bb3cce
DJ
202004-12-04 Daniel Jacobowitz <dan@debian.org>
21
22 PR tui/1703
23 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
24 Suggested by Joshua Neuheisel.
25
fe46cd3a
RC
262004-12-03 Randolph Chung <tausq@debian.org>
27
28 * gdbarch.sh (instruction_nullified): Delete.
29 * gdbarch.c: Regenerate.
30 * gdbarch.h: Regenerate.
31 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
32 nullified.
33 (hppa_unwind_pc): Likewise.
34 (hppa_instruction_nullified): Delete.
35 (hppa_gdbarch_init): Don't set instruction_nullified method.
36 * infrun.c (infwait_states): Remove infwait_nullified_state.
37 (handle_inferior_event): Remove handling of infwait_nullified_state.
38 Remove handling of nullified instructions.
39
dd515450
MK
402004-12-03 Mark Kettenis <kettenis@gnu.org>
41
932936f0
MK
42 * inf-ttrace.c: Include <sys/mman.h>.
43 (struct inf_ttrace_page): New.
44 (struct inf_ttrace_page_dict): New.
45 (inf_ttrace_num_threads_in_syscall)
46 (inf_ttrace_reenable_page_protections): New variables.
47 (inf_ttrace_enable_syscall_events)
48 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
49 (inf_ttrace_add_page, inf_ttrace_insert_page)
50 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
51 (inf_ttrace_enable_page_protections)
52 (inf_ttrace_disable_page_protections)
53 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
54 (inf_ttrace_can_use_hw_breakpoint)
55 (inf_ttrace_region_size_ok_for_hw_watchpoint)
56 (inf_ttrace_stopped_by_watchpoint): New functions.
57 (inf_ttrace_him): Remove unsused varaible `tts'.
58 (inf_ttrace_create_inferior): Add assertionts.
59 (inf_ttrace_mourn_inferior): Clear page dictionary.
60 (inf_ttrace_attach): Set initial event mask.
61 (inf_ttrace_detach): Reset number of threads in system call.
62 (inf_ttrace_wait): Deal with system call events.
63 (inf_ttrace_target): Initialize "hardware" watchpoint-related
64 parts of the target vector.
65 (_initialize_inf_ttrace): New prototype and function.
66
dd515450
MK
67 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
68 type of `gp' variable.
69
73fb7068
RS
702004-12-03 Richard Sandiford <rsandifo@redhat.com>
71
72 * README: Remove config.if from directory listing.
73
515921d7
JB
742004-12-01 Joel Brobecker <brobecker@gnat.com>
75
76 * alpha-tdep.c (alpha_register_name): Add comment.
77 (alpha_cannot_fetch_register): Exclude registers numbers which
78 are no longer used from the list of registers that can be fetched.
79 (alpha_cannot_store_register): Exclude registers numbers which
80 are no longer used from the list of registers that can be stored.
81 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
82 core_reg_mapping array.
83
1cc759c3
JB
842004-12-01 Joel Brobecker <brobecker@gnat.com>
85
86 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
87 the register value from the correct frame.
88
b546247c
RC
892004-11-30 Randolph Chung <tausq@debian.org>
90
91 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
92 (hppa_linux_in_dyncall): Check that we are inside the range of
93 $$dyncall, not necessarily at the first insn.
94 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
95 even if the pc does not point to the first insn of the trampoline.
96
46905982
RC
972004-11-30 Randolph Chung <tausq@debian.org>
98
99 * breakpoint.c (break_at_finish_command): Delete.
100 (break_at_finish_command_1): Delete.
101 (break_at_finish_at_depth_command): Delete.
102 (break_at_finish_at_depth_command_1): Delete.
103 (tbreak_at_finish_command): Delete.
104 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
105 and bx commands.
106
80b93d6b
AC
1072004-11-30 Andrew Cagney <cagney@gnu.org>
108
a7711b1f
AC
109 * config/nm-gnu.h: Delete file.
110 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
111
80b93d6b
AC
112 * config/nm-sysv4.h: Delete file.
113 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
114 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
115 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
116 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
117 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
118
31ffb221
AC
1192004-11-29 Andrew Cagney <cagney@gnu.org>
120
121 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
122 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
123 as can-commit architecture developers.
124
3919e12c
MK
1252004-11-29 Mark Kettenis <kettenis@gnu.org>
126
075ccec8
MK
127 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
128 (sparc32_skip_prologue): Skip instructions that store arguments in
129 registers into their corresponding stack slots.
130
388e0111
MK
131 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
132 tm-solib.h.
133 * config/m68k/obsd.mh (NAT_FILE): Likewise.
134
19671c2b
MK
135 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
136 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
137 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
138 sparc32nbsd_elf_init_abi. Remove duplicate code.
139
77a7fe6d
MK
140 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
141 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
142 * config/sparc/nm-nbsd.h: Remove file.
143 * config/sparc/nm-nbsdaout.h: Remove file.
144
cbfc58d1
MK
145 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
146 (sparc_xfer_partial): New function.
147 (sparc_target): Save value of to_xfer_partial from ptrace vector.
148 Set to_xfer_partial.
149
3919e12c
MK
150 * fork-child.c (fork_inferior): Fork instead of vfork if
151 PRE_TRACE_FUN is non-null.
152
ebd98106
FF
1532004-11-24 Fred Fish <fnf@specifixinc.com>
154
155 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
156 compiler generated function calls made as part of a prologue.
157
eee22bf8
MK
1582004-11-23 Mark Kettenis <kettenis@gnu.org>
159
160 * inf-ttrace.c: New file.
161 * inf-ttrace.h: New file.
162 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
163 Include "inf-ttrace.h".
164 (ss_mpsfu_high): Define to ss_tlsp if necessary.
165 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
166 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
167 ptrace systems.
168 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
169 instead of inf_ptrace_target.
170 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
171 * Makefile.in (inf_ttrace_h): New variable.
172 (hppa-hpux-nat.o): Update dependency.
173 (inf-ttrace.o): New dependency.
174 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
175
3ca64954
RC
1762004-11-23 Randolph Chung <tausq@debian.org>
177
178 * arch-utils.c (generic_instruction_nullified): New.
179 * arch-utils.h (generic_instruction_nullified): New.
180 * gdbarch.sh (instruction_nullified): New method.
181 * gdbarch.c: Regenerate.
182 * gdbarch.h: Regenerate.
183 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
184 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
185 new gdbarch method.
186 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
187 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
188 static. Rewrite to work directly off the passed regcache.
189 (hppa_gdbarch_init): Set instruction_nullified method.
190
5465445a
JB
1912004-11-23 Joel Brobecker <brobecker@gnat.com>
192
193 * sparc-tdep.c (sparc_is_unimp_insn): New function.
194 (sparc32_frame_cache): For functions where there is no debugging
195 information to help us determine whether it's a struct-return
196 function or not, fallback on checking whether the instruction
197 at the return address is an "unimp" instruction or not.
198
3f6306ec
DA
1992004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
200
871cce51
DA
201 * MAINTAINERS: Add myself to write after approval section.
202
3f6306ec
DA
203 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
204 hpux-thread.c to suppress children from running.
205 (hppa_hpux_child_can_run): New function.
206 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
207 * hpux-thread.c: Include string.h and hppa-tdep.h.
208 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
209 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
210 (hpux_thread_store_registers): Replace deprecated_registers with
211 calls to regcache_raw_read.
212 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
213
f5ccf7a2
MK
2142004-11-21 Mark Kettenis <kettenis@gnu.org>
215
216 * sparc64fbsd-nat.c: Update copyright year.
217 (_initialize_sparc64fbsd_nat): Construct and add target vector.
218 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
219 inftarg.o.
220
8c3900e4
DJ
2212004-11-21 Daniel Jacobowitz <dan@debian.org>
222
223 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
224
b957e937
DJ
2252004-11-21 Daniel Jacobowitz <dan@debian.org>
226
227 * linux-nat.c (my_waitpid): New function.
228 (linux_test_for_tracefork): Make more robust and verbose. Take
229 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
230 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
231 argument. Update calls to linux_test_for_tracefork.
232 (linux_enable_event_reporting, child_follow_fork)
233 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
234 (child_insert_exec_catchpoint): Update calls to
235 linux_supports_tracefork and linux_supports_tracevforkdone.
236
65d3800a
DJ
2372004-11-21 Daniel Jacobowitz <dan@debian.org>
238
239 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
240 (value_subscripted_rvalue): Likewise.
241 * valops.c (search_struct_field, value_slice): Likewise.
242
2c4a536d
MK
2432004-11-21 Mark Kettenis <kettenis@gnu.org>
244
245 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
246 Reorder includes a bit. Fix comment.
247 * Makefile.in (inf-ptrace.o): Update dependencies.
248
fefa1888
AS
2492004-11-21 Andreas Schwab <schwab@suse.de>
250
251 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
252 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
253 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
254 to glibc_skip_solib_resolver.
255 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
256 solib-legacy.o.
257 * Makefile.in (m68klinux-tdep.o): Update dependencies.
258
d564a7d4
DA
2592004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
260
261 * infttrace.h (ttrace_write_reg_64): Add prototype.
262 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
263 expression.
264 (store_inferior_registers): Correct formatting. Replace uses of
265 deprecated_registers with calls to regcache_raw_read,
266 regcache_raw_write_part and regcache_raw_read_part.
267
3f70a5e9
MK
2682004-11-21 Mark Kettenis <kettenis@gnu.org>
269
270 * config/pa/hppahpux.mh: Remove file.
271 * config/pa/hpux1020.mh: Remove file.
272
ced0d73d
AS
2732004-11-20 Andreas Schwab <schwab@suse.de>
274
275 * configure.host: Set host floatformat for m68k.
276
fcf54f50
EZ
2772004-11-20 Eli Zaretskii <eliz@gnu.org>
278
279 * config/djgpp/fnchange.lst: Resolve file-name clash between
280 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
281
a7289609
MK
2822004-11-20 Mark Kettenis <kettenis@gnu.org>
283
eeb8076c
MK
284 * hppa-hpux-nat.c: New file.
285 * config/pa/hpux.mh (NATDEPFILES): New file.
286 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
287 (hppa-hpux-nat.o): New dependency.
288 * configure.host: Remove hppa*-*-hpux10.20.
289 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
290
f6ffd89b
MK
291 * inf-ptrace.c: Fix coding style.
292
f1bc22da
MK
293 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
294 * infptrace.c (call_ptrace): Simply call ptrace with four
295 arguments.
296
e31272c3
MK
297 * dbxread.c (process_one_symbol): Fix a few coding standard
298 issues. Improve code formatting.
299
91f54576
MK
300 * dbxread.c: Include "gdb_string.h".
301 (record_minimal_symbol, read_ofile_symtab): Replace
302 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
303 * Makefile.in (dbxread.o): Update dependencies.
304
a7289609
MK
305 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
306 of bytes read for aligned LEB128 encodings.
307
57ac95b8
MK
3082004-11-19 Mark Kettenis <kettenis@gnu.org>
309
310 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
311 parse_and_eval_address to u_long before converting it to a pointer
312 type.
313 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
314 ps_strings from int to u_long.
315 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
316 u_long instead of CORE_ADDR.
317
ceddaf06
MK
3182004-11-18 Mark Kettenis <kettenis@gnu.org>
319
320 * dbxread.c (process_one_symbol): Do not adjust address of first
321 N_SLINE stab for a function for code generated by non-GCC
322 compilers.
323
915a2d21
KB
3242004-11-18 Kevin Buettner <kevinb@redhat.com>
325
326 * solib-null.c: New file.
327
92790ee7
AC
3282004-11-17 Andrew Cagney <cagney@gnu.org>
329
330 * MAINTAINERS: Drop MIPS and remote.
331
0c16dd26
AC
3322004-11-15 Andrew Cagney <cagney@gnu.org>
333
334 * findvar.c (value_of_register): Set the frame ID.
335 * value.c (value_primitive_field): Copy the frame ID.
336 * valops.c (value_assign): Simplify lval_register case, there's
337 always a frame.
338
2fdf551c
DJ
3392004-11-14 Daniel Jacobowitz <dan@debian.org>
340
341 * Makefile.in (mips-linux-tdep.o): Update dependencies.
342 * mips-linux-tdep.c: Include "regcache.h".
343 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
344
98754800
DJ
3452004-11-14 Daniel Jacobowitz <dan@debian.org>
346
347 * Makefile.in (linux-thread-db.o): Fix typo in last change.
348
ed89d175
DJ
3492004-11-14 Daniel Jacobowitz <dan@debian.org>
350
351 * linux-thread-db.c: New file, renamed from thread-db.c.
352 * thread-db.c: Remove.
353 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
354 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
355 to linux-thread-db.o.
356 * config/arm/linux.mh (NATDEPFILES): Likewise.
357 * config/i386/linux.mh (NATDEPFILES): Likewise.
358 * config/i386/linux64.mh (NATDEPFILES): Likewise.
359 * config/ia64/linux.mh (NATDEPFILES): Likewise.
360 * config/m32r/linux.mh (NATDEPFILES): Likewise.
361 * config/m68k/linux.mh (NATDEPFILES): Likewise.
362 * config/mips/linux.mh (NATDEPFILES): Likewise.
363 * config/pa/linux.mh (NATDEPFILES): Likewise.
364 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
365 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
366 * config/s390/s390.mh (NATDEPFILES): Likewise.
367 * config/sparc/linux.mh (NATDEPFILES): Likewise.
368 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
369
8851ec7a
AC
3702004-11-13 Andrew Cagney <cagney@gnu.org>
371
f97fe8ff
AC
372 * config/i386/i386lynx.mh: Delete file.
373 * config/i386/i386lynx.mt: Delete file.
374 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
375 * i386ly-tdep.c: Delete.
376
5873946b
AC
377 * config/tm-lynx.h: Delete, inline contents ...
378 * config/rs6000/tm-rs6000ly.h: ... here.
379
a69637bd
AC
380 * config/tm-sysv4.h: Delete file, inlining contents.
381 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
382 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
383 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
384
8851ec7a
AC
385 * regcache.h (deprecated_register_valid): Delete.
386 (deprecated_registers): Delete.
387 * regcache.c (deprecated_register_valid): Delete.
388 (deprecated_registers): Delete.
389 (deprecated_read_register_byte, _initialize_regcache)
390 (deprecated_write_register_bytes, build_regcache): Update.
391 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
392 remote-sds.o.
393 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
394 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
395
9445aa30
AC
396 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
397 v850-*-* under removed.
398 * configure.host: Delete ns32k-*-netbsd*.
399 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
400 ns32k-*-netbsd*, and v850*-*-*.
401 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
402 "Deleted"
403 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
404 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
405 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
406 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
407 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
408 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
409 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
410 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
411 * v850-tdep.c: Delete.
412
f6e1bffc
JB
4132004-11-13 Joel Brobecker <brobecker@gnat.com>
414
415 * irix5-nat.c (fetch_core_registers): Replace use of
416 deprecated_registers by equivalent code.
417
44ed547b
JB
4182004-11-13 Joel Brobecker <brobecker@gnat.com>
419
420 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
421 with equivalent code.
422 (fill_fpregset): Likewise.
423
e84ecc99
AC
4242004-11-13 Andrew Cagney <cagney@gnu.org>
425
ca1a823a
AC
426 * MAINTAINERS: Do not list "Deleted" architectures.
427
e84ecc99
AC
428 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
429 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
430 sparc-*-vxworks*.
431 * NEWS: Mention that vxworks was deleted.
432 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
433 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
434 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
435 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
436 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
437 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
438 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
439 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
440 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
441 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
442 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
443 * remote-vxmips.c, remote-vx.c: Delete.
444 * remote-vx68.c: Delete.
445 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
446 * config/m68k/os68k.mt, ada-lang.h: Ditto.
447 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
448 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
449
01e937bc
EZ
4502004-11-13 Eli Zaretskii <eliz@gnu.org>
451
29247324
EZ
452 * config/i386/xm-go32.h: Don't include fopen-bin.h.
453 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
454
455 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
456 branch that doesn't define CRLF_SOURCE_FILES; always use
457 binary-mode open.
458 (print_source_lines_base, forward_search_command)
459 (reverse_search_command): Enable the code that accepts DOS-style
460 CRLF line endings on all platforms (this removes the need for
461 CRLF_SOURCE_FILES).
462
f8f0d88a 463 * defs.h: Fix wording of the comment before FOPEN_RB.
29247324 464 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
f8f0d88a 465
01e937bc
EZ
466 * config/djgpp/fnchange.lst: Group renames for opcode directory
467 together.
468
469 * config/djgpp/djconfig.sh: Replace file names that don't exist
470 anymore with existing files, for checking the unpacked
471 distribution.
472
473 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
474 Export pre-cooked values in configure-* targets that begin with
475 "@test -f stage_last".
476
25ae5d16
AC
4772004-11-12 Andrew Cagney <cagney@gnu.org>
478
479 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
480 * value.h (struct value): Update comment.
481 * valops.c (value_assign): Fold lval_reg_fame_relative into
482 lval_register.
483 * findvar.c (value_from_register, locate_var_value): Ditto.
484
d7318818
RC
4852004-11-12 Randolph Chung <tausq@debian.org>
486
487 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
488 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
489 (write_exp_msymbol): Remove conditional check for symbols starting
490 with $. Update comments.
491
89676665
RC
4922004-11-12 Randolph Chung <tausq@debian.org>
493
494 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
495 so_lib_thread_start_addr.
496 * pa64solib.h (so_list): Forward declare.
497 (pa64_solib_thread_start_addr): Prototype.
498 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
499 (no_shared_libraries): Remove.
500 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
501 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
502 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
503 the elf solib handler to find the start address.
504
505 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
506 files to the target makefile.
507 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
508 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
509 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
510
511 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
b82f24bf 512 files for symbol reading and shared library handling here.
89676665 513 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
b82f24bf
RC
514 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
515 without bringing in 64-bit support.
89676665 516
df407dfe
AC
5172004-11-12 Andrew Cagney <cagney@gnu.org>
518
4991999e
AC
519 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
520 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
521 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
522 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
523 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
524 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
525 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
526
9ee8fc9d
AC
527 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
528 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
529 (VALUE_REGNUM): Define.
530 (struct value): Delete location.regnum, rename "regno" to
531 "regnum".
532 * value.c, valops.c, valarith.c, findvar.c: Update.
533
df407dfe
AC
534 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
535 (VALUE_BITPOS): Delete.
536 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
537 * value.c (value_type, value_offset, value_bitpos)
538 (value_bitsize): New functions. Update references.
539 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
540 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
541 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
542 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
543 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
544 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
545 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
546 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
547 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
548
61c82a3b
AC
5492004-11-12 Andrew Cagney <cagney@gnu.org>
550
551 * cris-tdep.c (cris_register_offset): Delete, never called.
552 (cris_spec_reg_applicable): Delete cris_ver_sim.
553 * MAINTAINERS: List d10v as OBSOLETE.
554 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
555 FOPEN_WB et.al., defined by "fopen-bin.h".
556
5aac166f
RC
5572004-11-12 Randolph Chung <tausq@debian.org>
558
559 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
560 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
561 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
562 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
563
4fab48b9
MK
5642004-11-12 Mark Kettenis <kettenis@jive.nl>
565
566 * tui/tui-io.c: Don't include "terminal.h".
567 * Makefile.in (tui-io.o): Update dependencies.
568
9b098f24
KI
5692004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
570
571 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
572 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
573 set_gdbarch_regset_from_core_section for core file support.
574 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
575 New functions.
576
a71f8c30
RC
5772004-11-11 Randolph Chung <tausq@debian.org>
578
579 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
580 stop_after_branch parameter and use it to determine if we should look
581 at the delay slot of the first branch insn to find prologue insns.
582 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
583 (hppa_frame_cache): Likewise.
584
50b2f48a
RC
5852004-11-11 Randolph Chung <tausq@debian.org>
586
587 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
588 register so that it can be unwound from anywhere in the prologue.
589
be723e22
MS
5902004-11-10 msnyder <msnyder@redhat.com>
591
592 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
593 must invalidate lr_reg (so we don't try to save it again).
594 Ditto for cr_offset and cr_reg.
595
d6f7abdf
AC
5962004-11-05 Jon Beniston <jon@beniston.com>
597
216c5547 598 Committed by Andrew Cagney.
d6f7abdf
AC
599 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
600 when an unexpected packet is received, as the target stubs
601 continually retransmit the same packet until ACKed.
602
1d225535
RC
6032004-11-10 Randolph Chung <tausq@debian.org>
604
605 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
d6f7abdf 606 frame's type.
1d225535 607
2315ffec
RC
6082004-11-10 Randolph Chung <tausq@debian.org>
609
610 * blockframe.c (inside_entry_func): Move to .....
611 * frame.c (inside_entry_func): ... here, and make static.
612 (backtrace_past_entry): New flag.
613 (get_prev_frame): Stop backtrace at the entry function if enabled
614 by flag. Update comments.
615 (_initialize_frame): Add command to set backtrace_past_entry flag.
616 * defs.h (inside_entry_func): Remove prototype.
617
917c78fc
MK
6182004-11-10 Mark Kettenis <kettenis@gnu.org>
619
620 * dwarf2read.c: Fix formatting.
621
994b9211
AC
6222004-11-10 Andrew Cagney <cagney@gnu.org>
623
624 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
625 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
626 macros with function declarations.
627 * value.c (coerce_ref, coerce_array, coerce_number)
628 (coerce_enum): New functions.
629 (value_as_long, value_as_address): Update.
630 * ada-lang.c (ada_coerce_ref, ada_value_binop)
631 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
632 * jv-lang.c (evaluate_subexp_java): Update.
633 * valarith.c (value_less, value_neg, value_complement)
634 (value_binop, value_add, value_subscript, value_x_binop)
635 (value_logical_not, value_sub): Update.
636 * valops.c (check_field, value_struct_elt, value_ind)
637 (value_find_oload_method_list, value_cast, value_assign): Update.
638 * eval.c (evaluate_subexp_standard): Update.
639
06987e64
MK
6402004-11-10 Mark Kettenis <kettenis@gnu.org>
641
642 * mips-tdep.c (mips32_relative_offset): Change return type to
643 LONGEST, change argument type to ULONGEST. Fix sign-extension.
644
4a302917
RC
6452004-11-10 Randolph Chung <tausq@debian.org>
646
647 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
648 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
649 (hppa_fetch_pointer_argument): Likewise.
650 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
651 deprecated_read_memory_nobpt.
652 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
653 add_set_cmd sequence with add_setshow_boolean_cmd.
654
390e974f
AC
6552004-11-09 Andrew Cagney <cagney@gnu.org>
656
657 GDB 6.3 released from GDB 6.3 branch.
658
92e023d6
AC
6592004-11-09 Andrew Cagney <cagney@gnu.org>
660
661 * values.c: Rename to ...
662 * value.c: ..., new file.
663 * Makefile.in: Update.
664
d10891d4
DJ
6652004-11-09 Daniel Jacobowitz <dan@debian.org>
666
667 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
668 size.
669
00a4c844
AC
6702004-11-09 Andrew Cagney <cagney@gnu.org>
671
c44523e7
AC
672 * TODO: Delete.
673
00a4c844
AC
674 * value.h (struct value): Delete field bfd_section.
675 (VALUE_BFD_SECTION): Delete macro.
676 (COERCE_REF): Update.
677 (value_at, value_at_lazy): Delete asection parameter.
678 * printcmd.c (print_formatted, x_command): Update.
679 (do_examine): Delete asection parameter.
680 (next_section): Delete variable.
681 * valops.c (value_cast, value_at, value_at_lazy)
682 (value_coerce_function, value_addr, value_ind, value_string)
683 (find_rt_vbase_offset, value_full_object): Update.
684 * hpacc-abi.c (hpacc_virtual_fn_field)
685 (hpacc_value_rtti_type): Update.
686 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
687 (gnuv3_baseclass_offset): Update.
688 * f-valprint.c (f_val_print): Update.
689 * c-valprint.c (c_val_print): Update.
690 * p-valprint.c (pascal_val_print): Update.
691 * jv-valprint.c (java_value_print): Update.
692 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
693 * ada-lang.c (ada_value_primitive_packed_val)
694 (ada_evaluate_subexp): Update.
695 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
696 * expprint.c (print_subexp_standard): Update.
697 * infcall.c (call_function_by_hand): Update.
698 * valarith.c (value_add): Update.
699 * eval.c (evaluate_subexp_standard): Update.
700 * values.c (allocate_value, value_copy, value_static_field): Update.
701 * findvar.c (read_var_value, locate_var_value): Update.
702
5cb2fe25
AC
7032004-11-09 Andrew Cagney <cagney@gnu.org>
704
705 * i386-linux-tdep.c: Include "dwarf2-frame.h".
706 * Makefile.in: Update all dependencies.
707
cbafadeb
AC
7082004-11-08 Andrew Cagney <cagney@gnu.org>
709
710 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
711 (sentinel_frame_unwinder): Add the prev_pc method.
712 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
713 available. Do not handle the sentinel-frame case.
714 * frame-unwind.h (frame_prev_register_ftype): Define.
715 (struct frame_unwind): Add prev_pc;
716
3b78cdbb
DA
7172004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
718
719 * configure.in: Check for ncurses/term.h.
720 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
721 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
722 * tui/tui.c: Don't include term.h.
723 * configure, config.in: Rebuilt.
724
bcfca652
MK
7252004-11-08 Mark Kettenis <kettenis@gnu.org>
726
727 * m68kbsd-nat.c: Include "inf-ptrace.h".
728 (_initialize_m68kbsd_nat): Fix pasto.
729 * Makefile.in (m68kbsd-nat.o): Update dependencies.
730
527159b7
RC
7312004-11-08 Randolph Chung <tausq@debian.org>
732
733 * infrun.c (debug_infrun): New variable.
734 (resume, proceed, wait_for_inferior): Annotate with debug messages.
735 (handle_inferior_event, keep_going): Likewise.
736 (_initialize_infrun): Register "set debug infrun" command.
737
c874c7fc
AS
7382004-11-08 Andreas Schwab <schwab@suse.de>
739
740 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
741 PTRACE_EVENT_VFORKDONE.
742 (child_follow_fork): Adjust.
743
3c8fa307
AC
7442004-11-08 Andrew Cagney <cagney@gnu.org>
745
5c26072a
AC
746 * README: Refer to 6.3, not 6.2, update directory listing droppng
747 references to intl/ and mmalloc/.
748 * PROBLEMS: Refer to 6.3 not 6.2.
749
3c8fa307
AC
750 * PROBLEMS: Delete no-longer applicable problems.
751
12b8a2cb
DJ
7522004-11-07 Andrew Cagney <cagney@redhat.com>
753 Daniel Jacobowitz <dan@debian.org>
754 Roland McGrath <roland@redhat.com>
755
756 * Makefile.in (symfile-mem.o): Update dependencies.
757 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
758 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
759 * inf-ptrace.c (inf_ptrace_attach): Call
760 observer_notify_inferior_created.
761 * inftarg.c (child_attach): Likewise.
762 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
763 (symbol_file_add_from_memory): Take NAME argument. Use it for
764 the new BFD's filename.
765 (add_symbol_file_from_memory_command): Update call to
766 symbol_file_add_from_memory.
767 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
768 (symbol_file_add_from_memory_wrapper): New.
769 (_initialize_symfile_mem): Register add_vsyscall_page as an
770 inferior_created observer.
771
abbc6945
MK
7722004-11-07 Mark Kettenis <kettenis@gnu.org>
773
774 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
775 fetch_inferior_registers. Make static.
776 (m68kbsd_store_inferior_registers): Rename from
777 store_inferior_registers. Make static.
778 (_initialize_m68kbsd_nat): Construct and add target vector.
779 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
780 inftarg.o. Add inf-ptrace.o.
781 (NAT_FILE): Set to tm-solib.h.
782 (LOADLIBES): New variable.
783 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
784 inftarg.o. Add inf-ptrace.o.
785 (NAT_FILE): Delete variable.
786 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
787 inftarg.o. Add inf-ptrace.o.
788 (NAT_FILE): Set to tm-solib.h.
789 * config/m68k/nm-nbsdaout.h: Remove file.
790
3ed09a32
DJ
7912004-11-07 Daniel Jacobowitz <dan@debian.org>
792
793 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
794 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
795 (dwarf2_signal_frame_unwind): New.
796 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
797 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
798
8e763687
MK
7992004-11-07 Mark Kettenis <kettenis@gnu.org>
800
4fb31ed0
MK
801 * Makefile.in (mips64obsd-tdep.o): Fix typo.
802
fabe86c8
MK
803 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
804 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
805 to only include the structure members we actually need.
806 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
807 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
808 only include the structure members we actually need.
809 (mipsnbsd_init_abi): Update.
810
366e93e8
MK
811 * mips64obsd-nat.c: Include "mips-tdep.h".
812 (MIPS64OBSD_NUM_REGS): Remove define.
813 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
814 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
815 floating-point registers correctly.
816 * Makefile.in (mips64obsd-nat.o): Update dependencies.
817
8e763687
MK
818 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
819 "gdb_assert.h".
820 (mips64obsd_sigframe_init): New function.
821 (mips64obsd_sigframe): New variable.
822 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
823 unwinder.
824 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
825
5f6a2351
JB
8262004-11-06 Joel Brobecker <brobecker@gnat.com>
827
828 * alpha-mdebug-tdep.c: #include mdebugread.h.
829 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
830 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
831
f059bf6f
AC
8322004-11-05 Andrew Cagney <cagney@gnu.org>
833
834 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
835 CFI and the init_reg method leave the register unspecified.
836 Include the register name in the "Incomplete CFI data" complaint.
837 Supress leading zeros in the address.
838
1234d960
MK
8392004-11-05 Mark Kettenis <kettenis@gnu.org>
840
841 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
842 skipping a personality routine in a CIE augmentation.
843
d75e3c94
JJ
8442004-11-05 Jeff Johnston <jjohnstn@redhat.com>
845
846 * defs.h (fatal, vfatal): New function prototypes.
847 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
848 via catch_errors.
849 (backtrace_command): Change to call backtrace_command_stub via
850 catch_errors instead of calling backtrace_command_1 directly.
851 (backtrace_full_command): Ditto.
852 * utils.c (error_stream_1): New static function.
853 (verror): Change to call error_stream_1 instead of error_stream.
854 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
855 (vfatal, fatal): New functions.
856
98f276a0
AC
8572004-11-05 Andrew Cagney <cagney@gnu.org>
858
859 * stack.c (parse_frame_specification_1): Clear selected_frame_p
860 when not using selected frame.
861
f724bf08
MK
8622004-11-05 Mark Kettenis <kettenis@jive.nl>
863
864 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
865 personality routine in a CIE augmentation.
866
c789492a
FL
8672004-11-05 Felix Lee <felix+log1@specifixinc.com>
868
869 * stack.c (set_current_sal_from_frame): New function.
870 (print_args_stub): Use it.
871 (print_frame_info): Don't set sal here.
872
a81b10ae
MK
8732004-11-04 Mark Kettenis <kettenis@gnu.org>
874
875 * dwarf2-frame.c (read_encoded_value): Change type of third
876 argument to `unsigned char *'. Add support for LEB128 encodings.
877
ad766c0a
JB
8782004-11-04 Jim Blandy <jimb@redhat.com>
879
880 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
881 prevent cross-objfile references.
882 (make_cv_type): Doc fix. Don't create cross-objfile references,
883 even for stub types.
884 (replace_type): Add assertion to prevent cross-objfile references.
885 (check_typedef): Never resolve a stub type by copying over a type
886 from another file.
887
c46b0409 8882004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 889
c46b0409
KI
890 * Makefile.in (m32r-tdep.o): Update dependencies.
891 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
892 ABI-specific overrides.
893
9f0b0322 8942004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
f16d97c9 895
9f0b0322
KI
896 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
897 unnecessary parallel execution bit.
898 (m32r_memory_remove_breakpoint): Ditto.
899 (m32r_breakpoint_from_pc): Update.
900
d5c27f81
RC
9012004-11-03 Randolph Chung <tausq@debian.org>
902
903 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
9f0b0322 904 frame_func_unwind to locate the unwind entry.
d5c27f81
RC
905 (hppa_frame_this_id): Likewise.
906
4577593c
AC
9072004-11-03 Andrew Cagney <cagney@gnu.org>
908
909 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
910 packet, obsolete configurations, end-of-life deprecated_registers.
911
b04de778
MK
9122004-11-02 Mark Kettenis <kettenis@gnu.org>
913
914 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
915 encodings as well as unsigned encodings.
916
9f2feefc
AC
9172004-11-02 Andrew Cagney <cagney@gnu.org>
918
919 * value.h (COERCE_VARYING_ARRAY): Delete.
920 * valops.c (value_cast, value_slice): Delete use.
921 * valarith.c (value_subscript, value_concat): Delete use.
922
117ea3cf
PH
9232004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
924
925 * NEWS: GDB understands GNAT Ada.
926
0bbc026e
JM
9272004-11-01 Joseph S. Myers <joseph@codesourcery.com>
928
929 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
930 (amd64-sol2-tdep.o): Add dependencies.
931 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
932 config/i386/sol2-64.mt: New files.
933 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
934 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
935 (supply_gregset): Correct order of arguments to
936 amd64_supply_native_gregset.
937 (fill_gregset): Correct order of arguments to
938 amd64_collect_native_gregset.
939 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
940 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
941 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
942 for definition of NEW_PROC_API.
943 * configure: Regenerate.
944
3d38a0a5
JM
9452004-11-01 Joseph S. Myers <joseph@codesourcery.com>
946
947 * MAINTAINERS (Write After Approval): Add myself.
948
f81cd1cf
AC
9492004-11-01 Andrew Cagney <cagney@gnu.org>
950
951 * configure.tgt: Mark d10v-*-* as obsolete.
952 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
953
f4e88c8e
PH
9542004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
955
956 * values.c (modify_field): Correct handling of bit-fields that
957 don't fit in 32 bits. Use unsigned operations throughout and
958 simplify the code a bit. Document preconditions.
959
84674fe1
AC
9602004-10-31 Andrew Cagney <cagney@gnu.org>
961
96693b3a
AC
962 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
963 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
964 (in_plt_section): Delete.
965
6f296f8f
AC
966 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
967 (mips_gdbarch_init): Do not set same.
968
618501c0
AC
969 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
970 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
971
b22e8f02
AC
972 * gdbarch.sh (in_solib_call_trampoline): Delete.
973 * gdbarch.h, gdbarch.c: Re-generate.
974
84674fe1
AC
975 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
976 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
977 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
978 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
979 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
980
c6d1029f
MK
9812004-10-31 Mark Kettenis <kettenis@gnu.org>
982
983 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
984 (mipsnbsd_fetch_inferior_registers): Rename from
985 fetch_inferior_registers. Make static.
986 (mipsnbsd_store_inferior_registers): Rename from
987 store_inferior_registers. Make static.
988 (_initialize_mipsnbsd_nat): New function and prototype.
989 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
990 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
991 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
992 inf-ptrace.o.
993
bd9ca83f
AC
9942004-10-31 Andrew Cagney <cagney@gnu.org>
995
19d718a3
AC
996 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
997 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
998 delete corresponding unused function.
999 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1000 in_solib_call_trampoline.
1001 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1002 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1003 * config/mips/tm-nbsd.h: Ditto.
1004 * config/arm/tm-linux.h: Ditto.
1005 * config/mips/tm-linux.h: Ditto.
1006
e8ce19c0
AC
1007 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1008 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1009 in_solib_call_trampoline, delete corresponding unused function.
1010 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1011 (vaxnbsd_aout_init_abi): Ditto.
1012 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1013 (sparc32nbsd_aout_init_abi): Ditto.
1014 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1015 (ppc_linux_init_abi): Ditto.
1016 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1017 (ns32knbsd_init_abi_aout): Ditto.
1018 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1019 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1020 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1021 (m68kbsd_aout_init_abi): Ditto.
1022 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1023 (i386_cygwin_init_abi): Ditto.
1024 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1025 (i386bsd_init_abi): Ditto.
1026
af380d61
AC
1027 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1028 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1029 isn't used by this architecture.
1030 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1031 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1032 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1033 * s390-tdep.c (s390_gdbarch_init): Ditto.
1034 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1035 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1036 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1037 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1038 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1039 * amd64-tdep.c (amd64_init_abi): Ditto.
1040
0528d9f7
AC
1041 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1042 in_solib_call_trampoline to its default value of
1043 generic_in_solib_call_trampoline.
1044 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1045 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1046 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1047 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1048 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1049 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1050
f9f9eacb
AC
1051 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1052
a4ffd1e7
AC
1053 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1054
82e34d2f
AC
1055 * config/mips/tm-mips.h: Delete file.
1056 * remote-mips.c: Delete tm-mips.h from comment.
1057 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1058 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1059 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1060 * config/mips/tm-linux.h: Don't include tm-mips.h.
1061 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1062 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1063 * config/mips/tm-wince.h: Don't include.
1064
75dec9cf
AC
1065 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1066 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1067 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1068 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1069
bd9ca83f
AC
1070 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1071 * mdebugread.c (ecoff_relocate_efi): Delete function.
1072 * objfiles.c (objfile_relocate): Delete #ifdef
1073 MDEBUG_EFI_SYMBOL_NAME code.
1074
3352ef37
AC
10752004-10-31 Orjan Friberg <organ.friberg@axis.com>
1076 Andrew Cagney <cagney@gnu.org>
1077
1078 * gdbarch.sh (single_step_through_delay): Add.
1079 * gdbarch.h, gdbarch.c: Re-generate.
1080 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1081 (mips_step_skips_delay): Delete.
1082 * mips-tdep.c (mips_single_step_through_delay): Replace
1083 mips_step_skips_delay.
1084 (mips_gdbarch_init): Set single_step_through_delay.
1085 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1086
2440b685
MK
10872004-10-31 Mark Kettenis <kettenis@gnu.org>
1088
1089 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1090 from TRAMP_FRAME frame type.
1091
56a2fed5
AC
10922004-10-31 Andrew Cagney <cagney@gnu.org>
1093
9b792b1d
AC
1094 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1095
0a5e8d98
AC
1096 * mips-tdep.c (mips_ignore_helper): Delete.
1097 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1098 * infrun.c (handle_inferior_event): Delete #ifdef
1099 DEPRECATED_IGNORE_HELPER_CALL code.
1100
56a2fed5
AC
1101 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1102
f69c55b2
MK
11032004-10-31 Mark Kettenis <kettenis@gnu.org>
1104
1105 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1106 (fill_fpregset): Do not compile for 64-bit systems.
1107 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1108 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1109 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1110
d37cca3d
AC
11112004-10-30 Andrew Cagney <cagney@gnu.org>
1112
36b8628e
AC
1113 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1114 (struct mdebug_extra_func_info): Define.
1115 * config/alpha/tm-alpha.h: Delete same.
1116 * config/mips/tm-mips.h: Delete same.
1117 * mdebugread.c: Delete same.
1118 * Makefile.in: Update dependencies.
1119 * mips-mdebug-tdep.c: Include "mdebugread.h".
1120
5b123146
AC
1121 * objfiles.c: Include "mdebugread.h".
1122 * mdebugread.c: Include "mdebugread.h".
1123 (ecoff_relocate_cfi): Delete.
1124 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1125 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1126 * mdebugread.h (ecoff_relocate_efi): New file.
1127 * Makefile.in: Update dependencies.
1128
b9c3a7de
AC
1129 * mips-tdep.c (struct frame_extra_info): Delete.
1130 (temp_proc_desc): Delete.
1131
f92761ec
AC
1132 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1133 MIPS_EFI_SYMBOL_NAME.
1134 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1135 (struct mdebug_extra_func_info): Replace struct
1136 alpha_extra_func_info and alpha_extra_func_info_t.
1137 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1138 MIPS_EFI_SYMBOL_NAME.
1139 (struct mdebug_extra_func_info): Replace struct
1140 alpha_extra_func_info and alpha_extra_func_info_t.
1141 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1142 * mdebugread.c, alpha-mdebug-tdep.c:
1143
0bb57b31
AC
1144 Suggested by Mark Kettenis.
1145 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1146 fields frame_adjust and high_addr.
1147 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1148 (non_heuristic_proc_desc): Delete references.
1149
a5c9623c
AC
1150 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1151 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1152 * mips-tdep.c: Update.
1153
607fc93c
AC
1154 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1155 (MIPS_LAST_EMBED_REGNUM): Add.
1156 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1157 (LAST_EMBED_REGNUM): Delete.
1158 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1159
24e05951
AC
1160 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1161 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1162 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1163 * mips-linux-nat.c: Update.
1164
613e114f
AC
1165 * mips-tdep.h: Add comments on registers.
1166 (MIPS_UNUSED_REGNUM): Define.
1167 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1168 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1169 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1170 * mips-linux-nat.c, remote-mips.c: Update.
1171
d37cca3d
AC
1172 * config/mips/tm-mips.h (t_insn): Delete.
1173 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1174 Replace t_insn with ULONGEST.
1175
ceb41096
MK
11762004-10-30 Mark Kettenis <kettenis@gnu.org>
1177
d1180b0f
MK
1178 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1179 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1180 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1181 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1182 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1183 (mipsnbsd_core_osabi_sniffer): New function.
1184 (mipsnbsd_init_abi): Set regset_from_core_section.
1185 (_initialize_mipsnbsd_tdep): Remove calls to
1186 deprecated_add_core_fns.
1187 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1188 (mipsnbsd_regset_from_core_section): New functions.
1189 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1190 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1191
ceb41096
MK
1192 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1193 Remove optimization for DEPRECATED_FP_REGNUM.
1194
ec4045ea
AC
11952004-10-30 Andrew Cagney <cagney@gnu.org>
1196
cd65c8f6
AC
1197 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1198 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1199 (alpha_setup_arbitrary_frame): Delete.
1200 * mips-tdep.c (setup_arbitrary_frame): Delete.
1201 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1202 (setup_arbitrary_frame): Delete.
1203 * stack.c (parse_frame_specification_1): When specified, call
1204 create_new_frame with two parameters. Delete #ifdef
1205 SETUP_ARBITRARY_FRAME.
1206
95ac2dcf
AC
1207 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1208 (MIPS_INSTLEN): Delete.
1209 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1210 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1211 * remote-mips.c, mips-tdep.c: Update.
1212
1a8da44d
AC
1213 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1214 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1215 * mips-tdep.c (mips_mdebug_frame_cache)
1216 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1217 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1218 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1219 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1220 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1221 (mips_gdbarch_init): Do not append mdebug sniffers.
1222 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1223 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1224 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1225 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1226 * Makefile.in: Update dependencies.
1227
e6bc2e8a
AC
1228 * mips-tdep.h (mips_abi_regsize): Declare.
1229 * mips-tdep.c (mips_abi_regsize): Make non-static.
1230
ec4045ea
AC
1231 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1232 (make_mips16_addr): Delete.
e6bc2e8a 1233
6b16acab
MK
12342004-10-30 Mark Kettenis <kettenis@gnu.org>
1235
1236 * i386-sol2-nat.c: New file.
1237 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1238 i386-sol2-tdep.c.
1239 (i386-sol2-nat.o): Update dependencies.
1240 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1241 i386-sol2-nat.o.
1242
8b622e6a
AC
12432004-10-30 Andrew Cagney <cagney@gnu.org>
1244
1245 Total breakage identified by Joel Brobecker.
1246 * mips-tdep.c (after_prologue): Delete.
1247 (mips_skip_prologue): Use skip_prologue_using_sal.
1248 (heuristic_proc_desc): Delete, unused.
1249
772cf8be
MK
12502004-10-30 Mark Kettenis <kettenis@gnu.org>
1251
1252 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1253 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1254 Cleanup coding style.
1255
9c8fdbfa
AC
12562004-10-30 Andrew Cagney <cagney@gnu.org>
1257
0fe7e7c8
AC
1258 * mips-tdep.h (mips_pc_is_mips16): Declare.
1259 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1260 non-static. Update calls.
1261
1b295c3d
AC
1262 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1263 * command.h (add_setshow_enum_cmd): Declare.
1264 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1265
6bcadd06
AC
1266 * mips-tdep.c (_initialize_mips_tdep): Use
1267 add_setshow_zinteger_cmd.
1268
9c8fdbfa
AC
1269 * mips-tdep.c (mips_eabi_extract_return_value)
1270 (mips_o64_extract_return_value, mips_o64_store_return_value)
1271 (return_value_location, mips_eabi_reg_struct_has_addr)
1272 (mips_eabi_use_struct_convention)
1273 (mips_eabi_store_return_value): Delete.
1274 (mips_eabi_store_return_value): New function.
1275 (mips_eabi_return_value): New function.
1276 (mips_gdbarch_init): For O64 and EABI, delete
1277 extract_return_value, store_return_value, use_struct_convention
1278 and reg_struct_has_addr, add return_value.
1279
1d93fe1a
AC
1280 * mips-tdep.c (read_signed_register): Use
1281 regcache_cooked_read_signed.
1282
303d2914
MK
12832004-10-30 Mark Kettenis <kettenis@gnu.org>
1284
1285 * mipsread.c: Cleanup coding style.
1286 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1287 (mipscoff_symfile_finish): Remove prototypes.
1288
12892004-10-29 Mark Kettenis <kettenis@gnu.org>
1290
1291 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1292 (mips_mdebug_frame_cache, mips16_scan_prologue)
1293 (mips32_scan_prologue, mips_stub_frame_cache)
1294 (heuristic_proc_start, heuristic_proc_desc)
1295 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1296 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1297 (mips_o32_return_value, mips_o64_push_dummy_call)
1298 (mips_step_skips_delay, mips_skip_trampoline_code)
1299 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1300 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1301 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1302 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1303 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1304 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1305 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1306 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1307 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1308 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1309 ZERO_REGNUM.
1310 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1311 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1312 ZERO_REGNUM.
1313 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1314 A0_REGNUM.
1315 * mipsnbsd-nat.c: Include "mips-tdep.h".
1316 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1317 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1318
1c8831c5
AC
13192004-10-29 Andrew Cagney <cagney@gnu.org>
1320
1321 * stack.c (parse_frame_specification_1): New function based on
1322 parse_frame_specification. Add message and selected_frame_p
1323 paramters. Truely always return non-NULL.
1324 (parse_frame_specification): Call parse_frame_specification_1.
1325 (frame_info): Update. Eliminate target_has_stack check.
1326 (select_frame_command): Update.
1327
b04f3ab4
AC
13282004-10-29 Andrew Cagney <cagney@gnu.org>
1329
1330 * frame.h (get_selected_frame): Add message parameter.
1331 * frame.c (get_selected_frame): Add and use message parameter.
1332 * stack.c (current_frame_command, return_command, locals_info)
1333 (catch_info, args_info, up_silently_base, down_silently_base): Use
1334 get_selected_frame with an explicit message.
1335 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1336 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1337 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1338 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1339 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1340 * breakpoint.c: Update.
1341
13422004-10-29 Andrew Cagney <cagney@gnu.org>
00b25ff3
AC
1343
1344 * trad-frame.c (trad_frame_get_prev_register): Use
1345 frame_unwind_register instead of frame_register_unwind, do not
1346 recurse the register's location.
1347 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1348 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1349 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1350 * sh-tdep.c (sh_frame_prev_register): Ditto.
1351 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1352 * i386-tdep.c (i386_frame_prev_register): Ditto.
1353 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1354 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1355
7a952542
MK
13562004-10-28 Mark Kettenis <kettenis@jive.nl>
1357
c18c06be
MK
1358 * proc-events.c: Fix several coding-style issues. Consistently
1359 use #ifdef instead of #if defined().
1360 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1361 ARRAY_SIZE.
1362 (_initialize_proc_events): New prototype.
1363
7a952542
MK
1364 * proc-why.c: Fix several coding-style issues.
1365 (proc_prettyfprint_why): Use ARRAY_SIZE.
1366
fcad0fa4
JB
13672004-10-27 Jim Blandy <jimb@redhat.com>
1368
1369 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1370 manner independent of the host byte order.
1371
c163184f
MK
13722004-10-27 Mark Kettenis <kettenis@gnu.org>
1373
1374 * mips-tdep.c (id_delayed): Remove prototype.
1375
9c46b6f0
MK
13762004-10-26 Mark Kettenis <kettenis@gnu.org>
1377
1378 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1379 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1380 to enum with register numbers.
1381 (enum mips_insn_size): New enum.
1382
0d0266c6
AC
13832004-10-26 Andrew Cagney <cagney@gnu.org>
1384
e7d6a6d2
AC
1385 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1386 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1387 (mips_gdbarch_init): Update.
1388 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1389
c5115f39
AC
1390 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1391 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1392 IN_SOLIB_RETURN_TRAMPOLINE.
1393 * mips-tdep.c (mips_dump_tdep): Do not print
1394 IN_SOLIB_RETURN_TRAMPOLINE.
1395 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1396 (mips_gdbarch_init): Update.
1397
0d0266c6
AC
1398 * mips-tdep.h (mips_software_single_step): Move to here ...
1399 * config/mips/tm-mips.h: ... from here.
1400 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1401 (SOFTWARE_SINGLE_STEP): Delete.
1402 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1403
156a53ca
AC
14042004-10-25 Andrew Cagney <cagney@gnu.org>
1405
1406 * NEWS: Add Changes since GDB 6.3 section.
1407
f27cf670
AS
14082004-10-23 Andreas Schwab <schwab@suse.de>
1409
156a53ca
AC
1410 * ada-lang.c (grow_vect): Return the new array instead of
1411 expecting pointer to pointer to avoid violation of aliasing rules.
f27cf670
AS
1412 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1413
121d8485
UW
14142004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1415
1416 * s390-tdep.c (enum pv_boolean): Remove.
1417 (pv_is_array_ref): Remove.
1418 (s390_on_stack): Remove.
1419 (S390_NUM_SPILL_SLOTS): Remove.
1420 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1421 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1422 (s390_store): Track all stores of orginal incoming registers to the
1423 stack constant offsets relative to the CFA, instead of only tracking
1424 stores into specific spill slots.
1425 (s390_load): Likewise.
1426 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1427 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1428 defined as call-saved by the ABI.
1429 (s390_push_dummy_call): Use bottom of dummy call argument save area
1430 as return value, not the top. Do not store to the called function's
1431 register save area.
1432 (s390_unwind_dummy_id): Adapt accordingly.
1433
0a6ddd08
AC
14342004-10-23 Andrew Cagney <cagney@gnu.org>
1435
1436 * objfiles.h (struct objfile): Rename obj_private to
1437 deprecated_obj_private, sym_private to deprecated_sym_private, and
1438 sym_stab_info to deprecated_sym_stab_info.
1439 * gdb-stabs.h: Update.
1440 * elfread.c: Update.
1441 * dbxread.c: Update.
1442 * coffread.c: Update.
1443 * xcoffread.c: Update.
1444 * symfile.c: Update.
1445 * somread.c: Update.
1446 * nlmread.c: Update.
1447 * mdebugread.c: Update.
1448 * hpread.c: Update.
1449 * coffread.c: Update.
1450
abc08782
MK
14512004-10-23 Mark Kettenis <kettenis@gnu.org>
1452
1453 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1454 * configure.host: Add mips64*-*-openbsd*.
1455 * configure.tgt: Add mips64*-*-openbsd*.
1456 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1457 mips64obsd-tdep.c.
1458 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1459 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1460
fc062ac6
JB
14612004-10-21 Joel Brobecker <brobecker@gnat.com>
1462
1463 * symtab.c (symbol_search_name): Minor reformatting.
1464
5bccb4d1
JB
14652004-10-20 Joel Brobecker <brobecker@gnat.com>
1466
1467 * symtab.h: Fix typo in comment.
1468
a738430d
MK
14692004-10-19 Mark Kettenis <kettenis@gnu.org>
1470
1471 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1472 (dwarf_decode_line_header): Likewise.
1473
f2cb65ca
MC
14742004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1475
1476 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1477
09e55376
AC
14782004-10-19 Andrew Cagney <cagney@gnu.org>
1479
1480 GDB 6.3 branch created.
1481 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1482
bc5f45f8
JB
14832004-10-15 Joel Brobecker <brobecker@gnat.com>
1484
1485 * dwarf2read.c (set_cu_language): Set language to Ada for
1486 DW_LANG_Ada83 and DW_LANG_Ada95.
1487
2941da8c
MC
14882004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1489
1490 From Andreas Schwab <schwab@suse.de>:
1491 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1492 for xmalloc and xrealloc.
1493
34a17005
AC
14942004-10-15 Andrew Cagney <cagney@gnu.org>
1495
1496 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1497 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1498 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1499 Update dependencies.
1500
714e53ab
PH
15012004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1502
1503 * ada-lang.c (ada_lookup_symbol): Correct comment.
1504 (ada_evaluate_subexp): Change error message for
1505 OP_FUNCALL case so as not to indicate an internal error.
1506
15072004-10-15 Joel Brobecker <brobecker@gnat.com>
1508
1509 Committed by Paul Hilfinger.
1510 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1511 type sizes in XVE/XVU types, and emit a warning when that happens,
1512 instead of rounding up the size of the resulting type.
1513 Some minor reformatting.
1514 (ada_is_aligner_type): Do not consider a type as an aligner type
1515 if there is a corresponding XVS type as well.
1516 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1517 have several levels of pointer indirection to the array.
1518
15192004-10-15 Jerome Guitton <guitton@gnat.com>
1520
1521 Committed by Paul Hilfinger.
1522 * ada-lang.c (check_size): New function.
1523 (coerce_unspec_val_to_type): call check_size to make sure
1524 that the object size is reasonable.
1525 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1526 Implements the case when we get a reference when we evaluate
1527 the expression of one of the bounds of the slice.
1528 (ada_value_struct_elt): when a packed array field is
1529 a reference, use ada_coerce_ref to dereference it; use
1530 ada_value_ind only if it is a pointer.
1531
29639122
JB
15322004-10-15 Joel Brobecker <brobecker@gnat.com>
1533
1534 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1535 a bit to avoid the necessity of an advance declaration. Remove
1536 declaration.
1537 (set_reg_offset): Move implemenation up.
1538 (mips16_get_imm): Likewise.
1539 (mips16_scan_prologue): Likewise.
1540 (reset_saved_regs): Likewise.
1541 (mips32_scan_prologue): Likewise.
1542
a65bbe44
JB
15432004-10-14 Joel Brobecker <brobecker@gnat.com>
1544
1545 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1546 Remove sp as a parameter, compute it internally instead. Move
1547 prologue scanning limit from heuristic_proc_desc to here.
1548 (mips16_scan_prologue): Likewise.
1549 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1550 by call to mips16_scan_prologue.
1551 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1552 by call to mips32_scan_prologue.
1553 (heuristic_proc_desc): Remove code that's no longer necessary.
1554 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1555 (mips_skip_prologue): Update calls to mips16_scan_prologue
1556 and mips32_scan_prologue.
1557
1c645fec
JB
15582004-10-14 Joel Brobecker <brobecker@gnat.com>
1559
1560 * mips-tdep.c (mips16_scan_prologue): Merge code from
1561 mips16_skip_prologue. Now return the address of the first
1562 instruction past the function prologue.
1563 (mips16_skip_prologue): Remove, no longer necessary.
1564 (mips_skip_prologue): Replace call to mips16_skip_prologue
1565 by call to mips16_scan_prologue.
1566
98b4dd94
JB
15672004-10-14 Joel Brobecker <brobecker@gnat.com>
1568
1569 * mips-tdep.c (mips32_scan_prologue): Merge code from
1570 mips32_skip_prologue. Now return the address of the first
1571 instruction past the function prologue.
1572 (mips32_skip_prologue): Remove. No longer necessary.
1573 (mips16_skip_prologue): Add parameter end_pc instead of
1574 computing it.
1575 (mips_skip_prologue): Compute the upper limit for the
1576 prologue scanning. Update call to mips16_skip_prologue.
1577 Replace call to mips32_skip_prologue by call to
1578 mips32_scan_prologue.
1579
ad4c72d2
MK
15802004-10-14 Mark Kettenis <kettenis@gnu.org>
1581
dfaf8edb
MK
1582 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1583 NetBSD system call stubs that store %rp in the ERP slot of the
1584 stack frame.
1585
3e3a28f1
MK
1586 * source.c: Always define O_BINARY to 0 if not defined already.
1587 (openp): Unconditionally use O_BINARY.
1588
ad4c72d2
MK
1589 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1590 * event-top.c (gdb_readline2): Likewise.
1591
52bd1401
OF
15922004-10-14 Orjan Friberg <orjanf@axis.com>
1593
1594 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1595 deprecated_add_core_fns which was removed by mistake.
1596
e0e25c6c
KB
15972004-10-13 Kevin Buettner <kevinb@redhat.com>
1598
1599 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1600 references to deprecated_registers[] with equivalent code.
1601
9f335945
KB
16022004-10-13 Kevin Buettner <kevinb@redhat.com>
1603
1604 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1605 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1606 instead of explicit test and print statement.
1607
06c2338d
MK
16082004-10-12 Mark Kettenis <kettenis@gnu.org>
1609
1b9445c2
MK
1610 * sparc-nat.c: Include "inf-ptrace.h".
1611 (sparc_target): New function.
1612 * sparc-nat.h: Update copyright year.
1613 (sparc_target): New prototype.
1614 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1615 (_initialize_sparcnbsd_nat): Construct and add target vector.
1616 * sparc64nbsd-nat.c: Include "target.h".
1617 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1618 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1619 Update dependencies.
1620 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1621 inftarg.o, add inf-ptrace.o.
1622 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1623 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1624 (NAT_FILE): Set to nm-bsd.h.
1625 (LOADLIBES): New variable.
1626 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1627 infarg.o, add inf-ptrace.o.
1628 * config/sparc/nm-nbsdaout.h: Remove file.
1629 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1630 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1631 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1632
06c2338d
MK
1633 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1634 "fopen-same.h". Update comment.
1635
3303a276
MK
16362004-10-11 Mark Kettenis <kettenis@gnu.org>
1637
1638 * i386gnu-nat.c: Include "gdb_string.h".
1639 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1640 registers when the floating-point state isn't initialized.
1641 * Makefile.in (i386gnu-nat.o): Update dependencies.
1642
04c663e3
DA
16432004-10-11 David Anderson <davea@sgi.com>
1644
1645 * regcache.c (regcache_raw_read): Comment was missing "to".
1646 Extraneous ' removed.
1647 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1648 comment now describes use.
1649
a5f6c8f5
OF
16502004-10-11 Orjan Friberg <orjanf@axis.com>
1651
1652 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1653 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1654 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1655 (cris_sigtramp_frame_sniffer): New functions.
1656 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1657 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1658 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1659 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1660 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1661 command.
1662 (cris_version_update): Remove, replace with ...
1663 (set_cris_version): New function.
1664 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1665 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1666 (_initialize_cris_tdep): Remove CRIS mode command.
1667 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1668 cris-fpless-backtrace command.
1669 (cris_scan_prologue): Fix prologue scanning limit.
1670 (cris_register_type): Update to reflect actual registers.
1671 (cris_register_bytes_ok) Remove.
1672 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1673 Remove set_gdbarch_deprecated_register_size,
1674 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1675
77109804
AC
16762004-10-10 Andrew Cagney <cagney@gnu.org>
1677
1678 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1679 comment.
1680
25652d4f
JB
16812004-10-10 Joel Brobecker <brobecker@gnat.com>
1682
1683 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1684
1e05a7bf
JB
16852004-10-10 Joel Brobecker <brobecker@gnat.com>
1686
1687 * mips-tdep.c (mips16_scan_prologue): Renames
1688 mips16_heuristic_proc_desc. Update comment.
1689 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1690 (heuristic_proc_desc): Update calls to the 2 functions above.
1691
c68a4142
JB
16922004-10-10 Joel Brobecker <brobecker@gnat.com>
1693
1694 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1695 Update comments. Also immediately return empty cache when the start
1696 address of our function could not be found.
1697 (mips_insn32_frame_cache): Likewise.
1698
0fce0821
JB
16992004-10-10 Joel Brobecker <brobecker@gnat.com>
1700
1701 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1702 (mips_insn16_frame_cache): Pass frame cache in call to
1703 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1704 Remove code that became redundant as a consequence.
1705 (mips32_heuristic_proc_desc): No longer compute a fake
1706 procedure descriptor. Compute the full frame cache instead.
1707 Some minor comment reformatting.
1708
b672553e
JB
17092004-10-10 Jim Blandy <jimb@redhat.com>
1710
1711 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1712 reader, tracing bytecode stuff): Remove self.
1713
9cc52bde
MK
17142004-10-10 Mark Kettenis <kettenis@gnu.org>
1715
cc9784b6
MK
1716 * sparc64-linux-tdep.c: Update copyright year. Don't include
1717 "solib-svr4.h".
1718 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1719 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1720 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1721
ee8aef23
MK
1722 * sparc-linux-tdep.c: Update copyright year.
1723 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1724 to struct frame_info *. Use safe_frame_unwind_memory instead of
1725 deprecated_read_memory_nobpt.
1726 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1727 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1728 changed signature of sparc_linux_sigtramp_start.
1729 (sparc32_linux_pc_in_sigtramp): Remove function.
1730 (sparc32_linux_sigtramp_p): New function.
1731 (sparc32_linux_sigtramp_frame_sniffer): Use
1732 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1733
bc73f8cc
MK
1734 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1735 Remove function.
1736 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1737
a2249542
MK
1738 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1739 (decode_packed_array_type, value_subscript_packed)
1740 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1741 argument in call to lim_warning.
1742
9cc52bde
MK
1743 * configure.in: Really disable the TUI if an enhanced curses
1744 library isn't found.
1745 * configure: Regenerate.
1746
151fc45b
MK
17472004-10-09 Mark Kettenis <kettenis@gnu.org>
1748
1749 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1750 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1751 * config/i386/nm-nbsdaout.h: Remove file.
1752 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1753 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1754 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1755 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1756 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1757 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1758 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1759 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1760 (ldd, ld_un, ld_2): Remove defines.
1761 * config/i386/nm-obsd.h: Likewise.
1762
375c0479
PH
17632004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1764
1765 * ada-lex.l: Remove useless rule whose right-context clause
1766 causes unreferenced static function warning for yyrealloc.
1767 (ada_flex_use): Remove the artificial reference to yyrealloc.
1768
c8e73a31
AC
17692004-10-08 Andrew Cagney <cagney@gnu.org>
1770
1771 * target.h (struct target_ops): Rename to_xfer_memory to
1772 deprecated_xfer_memory.
1773 * target.c: Update.
1774 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1775 * wince.c: Update.
1776 * win32-nat.c: Update.
1777 * v850ice.c: Update.
1778 * uw-thread.c: Update.
1779 * thread-db.c: Update.
1780 * sol-thread.c: Update.
1781 * remote.c: Update.
1782 * remote-vx.c: Update.
1783 * remote-st.c: Update.
1784 * remote-sim.c: Update.
1785 * remote-sds.c: Update.
1786 * remote-rdp.c: Update.
1787 * remote-rdi.c: Update.
1788 * remote-mips.c: Update.
1789 * remote-m32r-sdi.c: Update.
1790 * remote-e7000.c: Update.
1791 * procfs.c: Update.
1792 * ppc-bdm.c: Update.
1793 * nto-procfs.c: Update.
1794 * monitor.c: Update.
1795 * linux-nat.c: Update.
1796 * inftarg.c: Update.
1797 * hpux-thread.c: Update.
1798 * go32-nat.c: Update.
1799 * gnu-nat.c: Update.
1800 * exec.c: Update.
1801 * corelow.c: Update.
1802 * bsd-kvm.c: Update.
1803 * aix-thread.c: Update.
1804
aa869812
AC
18052004-10-08 Andrew Cagney <cagney@gnu.org>
1806
1807 * target.c (debug_target): Move to near start of file.
1808 (target_stopped_data_address_p): Re-org logic, add casts.
1809
8dcef9cf
MK
18102004-10-02 Mark Kettenis <kettenis@gnu.org>
1811
1812 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1813 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1814 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1815 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1816 New defines.
1817
4aa7a7f5
JJ
18182004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1819
1820 * target.h (to_stopped_data_address): Change prototype to
1821 take a CORE_ADDR pointer and return an int.
1822 * target.c (update_current_target): Change to_stopped_data_address
1823 to match new prototype.
1824 (debug_to_stopped_data_address): Change appropriately.
1825 * breakpoint.c (bpstat_stop_status): Change call to
1826 target_stopped_data_address to use new prototype.
1827 * frv-tdep.c (frv_have_stopped_data_address): New function.
1828 (frv_stopped_data_address): Change to new prototype and
1829 functionality.
1830 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1831 prototype and functionality.
1832 (ia64_stopped_by_watchpoint): New function.
1833 * i386-nat.c (i386_stopped_data_address): Change to new
1834 prototype and functionality.
1835 (i386_stopped_by_watchpoint): New function.
1836 * remote.c (remote_stopped_data_address): Change to new prototype
1837 and functionality.
1838 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1839 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1840 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1841 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1842 new i386_stopped_by_watchpoint function.
1843 (i386_stopped_by_watchpoint): New prototype.
1844 (i386_stoppped_data_address): Change to new prototype.
1845 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1846 new ia64_stopped_by_watchpoint function.
1847 (ia64_stopped_by_watchpoint): New prototype.
1848 (ia64_stopped_data_address): Ditto.
1849
61ee279c
PH
18502004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1851
1852 * ada-typeprint.c (ada_print_type): Use int_string for printing
1853 modulus of modular type.
1854 * ada-lang.h (ada_modulus): Change return type to unsigned.
1855 * ada-lang.c (ada_language_arch_info): Correct type of
1856 string_char_type.
1857 (ada_modulus): Return unsigned result.
1858 (ada_lookup_symbol): Remove user disambiguation and modify comment
1859 accordingly.
1860
18612004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1862
1863 Committed by Paul Hilfinger.
1864 * ada-lang.c (decode_packed_array): On big-endian targets,
1865 left-justify the value if it comes with a modular type.
1866
18672004-10-08 Joel Brobecker <brobecker@gnat.com>
1868
1869 Committed by Paul Hilfinger.
1870 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1871 (is_name_suffix): Add support for "___JM" suffixes.
1872 (ada_check_typedef): Renames ada_completed_type.
1873 Update all users of CHECK_TYPEDEF, check_typedef, and
1874 ada_complete_type to call ada_check_typedef.
1875 * ada-typeprint.c: Likewise.
1876 * ada-valprint.c: Likewise.
1877
b6c25a56
CV
18782004-10-08 Corinna Vinschen <vinschen@redhat.com>
1879
1880 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1881
83ca6a46
NR
18822004-10-08 Nick Roberts <nickrob@snap.net.nz>
1883
1884 * MAINTAINERS: Update e-mail address.
1885
1fd8cd20
DJ
18862004-10-07 Daniel Jacobowitz <dan@debian.org>
1887
1888 From Maciej W. Rozycki <macro@mips.com>:
1889 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1890 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1891
cea15572
KI
18922004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1893
1894 * m32r-tdep.c (decode_prologue): Support functions written
1895 in assembler language. Recognize trap instructions as the
1896 end of prologue.
1897 (m32r_frame_unwind_cache): Ditto.
1898 (m32r_skip_prologue): Extend search limit. Quit analyzing
1899 prologue if pc's location is not readable.
1900
23485554
PH
19012004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1902
1903 * Makefile.in (.l.c): Do conversions of names of alloc and free
1904 functions that are done for .y.c files, plus special one
1905 for yy_flex_realloc. Also, correct missing-file tests here.
1906 * ada-lex.l (malloc, free): Remove macros.
1907 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1908 xrealloc.
1909 (ada_flex_use): Dummy definition to remove warnings about unused
1910 functions.
1911 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1912 to suppress warning.
1913
c0409442
CV
19142004-10-06 Corinna Vinschen <vinschen@redhat.com>
1915
1916 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1917 RETURN_VALUE.
1918 (sh_return_value_fpu): Ditto for CPUs with FPU.
1919 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1920 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1921 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1922 RETURN_VALUE functions.
1923
9bed62d7
CV
19242004-10-06 Corinna Vinschen <vinschen@redhat.com>
1925
1926 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1927 (sh_pseudo_register_write): Ditto.
1928
03131d99
CV
19292004-10-06 Corinna Vinschen <vinschen@redhat.com>
1930
1931 * sh-tdep.c (IS_MACL_STS): New define.
1932 (IS_MOVI20): Ditto.
1933 (IS_MACL_LDS): Ditto.
1934 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1935 instructions in prologue.
1936 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1937 instructions in epilogue.
1938
da962468
CV
19392004-10-06 Corinna Vinschen <vinschen@redhat.com>
1940
1941 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1942 (sh_sh_register_name): Add eight empty register names.
1943 (sh_sh3_register_name): Ditto.
1944 (sh_sh3e_register_name): Ditto.
1945 (sh_sh2e_register_name): Ditto.
1946 (sh_sh2a_register_name): New function, defining SH2A register set.
1947 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1948 in nofpu case.
1949 (sh_sh_dsp_register_name): Add eight empty register names.
1950 (sh_sh3_dsp_register_name): Ditto.
1951 (sh_sh4_register_name): Ditto.
1952 (sh_sh4_nofpu_register_name): Ditto.
1953 (sh_sh4al_dsp_register_name): Ditto.
1954 (sh2a_show_regs): New function.
1955 (sh2a_nofpu_show_regs): New function.
1956 (sh_sh2a_register_type): New function.
1957 (do_bank_register_info): New function.
1958 (sh_print_pseudo_register): Call do_bank_register_info.
1959 Call sh_print_pseudo_register for valid "bank" register.
1960 (sh_sh2a_register_sim_regno): New function.
1961 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1962 Increment pseudo register count by one for all sh variants with
1963 pseudo registers to accomodate pseudo bank register.
1964 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1965 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1966 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1967 Increment pseudo register numbers.
1968
1326e61b
CV
19692004-10-06 Corinna Vinschen <vinschen@redhat.com>
1970
1971 * dwarf2read.c (read_subroutine_type): Call make_function_type
1972 instead of lookup_function_type.
1973
146c42e3
JB
19742004-10-05 Jim Blandy <jimb@redhat.com>
1975
1976 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1977 (Previous change missed some uses.)
1978
1df84f13
AC
19792004-10-05 Andrew Cagney <cagney@gnu.org>
1980
1981 * target.h (deprecated_child_ops): Rename child_ops.
1982 * wince.c: Update copyright. Rename child_ops.
1983 * win32-nat.c: Rename child_ops.
1984 * target.c: Rename child_ops.
1985 * rs6000-nat.c: Rename child_ops.
1986 * linux-nat.c: Rename child_ops.
1987 * infttrace.c: Rename child_ops.
1988 * inftarg.c: Rename child_ops.
1989 * infptrace.c: Rename child_ops.
1990 * hppah-nat.c: Update copyright. Rename child_ops.
1991 * hpux-thread.c: Update copyright. Rename child_ops.
1992
21e3b9b9
DJ
19932004-10-05 Daniel Jacobowitz <dan@debian.org>
1994
1995 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1996
de83afe7
AC
19972004-10-05 Andrew Cagney <cagney@gnu.org>
1998
1999 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2000
10b3939b
DJ
20012004-10-05 Daniel Jacobowitz <dan@debian.org>
2002
2003 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2004 (die_ref_table): Remove.
2005 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2006 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2007 the usage of this type.
2008 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2009 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2010 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2011 (dwarf2_create_include_psymtab): Update comment.
2012 (find_partial_die): Remove third argument. Remove unreachable call
2013 to error ().
2014 (dwarf2_find_containing_comp_unit): Update comments. Change one
2015 assertion to an error. Remove an unreachable error.
2016 (dwarf2_find_comp_unit): Update comments.
2017 (type_at_offset): Remove dead code.
2018 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2019 (store_in_ref_table): Add CU argument.
2020 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2021 inter-compilation-unit references.
2022 (load_full_comp_unit, process_full_comp_unit): New functions, based
2023 on psymtab_to_symtab_1.
2024 (psymtab_to_symtab_1): Use them.
2025 (dwarf2_add_dependence): New function.
2026 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2027 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2028 (partial_die_parent_scope, guess_structure_name): Update for changes
2029 to find_partial_die.
2030 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2031 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2032 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2033 (read_die_and_children): Update call to store_in_ref_table.
2034 (do_free_die_list_cleanup): Remove.
2035 (fixup_partial_die): Update for changes to find_partial_die.
2036 (read_full_die): Handle queueing absolute references.
2037 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2038 (dwarf2_attr, die_specification, die_type)
2039 (die_containing_type, dwarf2_extension): Update calls to
2040 follow_die_ref.
2041 (dump_die): Update DW_FORM_ref* handling.
2042 (dwarf2_get_ref_die_offset): Likewise.
2043 (free_one_comp_unit): Release the dies list.
2044 (dwarf2_mark_helper): New function.
2045 (dwarf2_mark): Use it.
2046
998bdd68
MK
20472004-10-05 Mark Kettenis <kettenis@jive.nl>
2048
2049 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2050 when writing to memory.
2051
14588880
KI
20522004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2053
2054 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2055 (m32r_extract_struct_value_address): Delete function.
2056 (m32r_return_value): New function.
2057 (m32r_gdbarch_init): Instead of store_return_value,
2058 extract_return_value, deprecated_extract_struct_value_address
2059 and deprecated_use_struct_convention, set return_value.
2060
dd5e6932
DJ
20612004-10-03 Daniel Jacobowitz <dan@debian.org>
2062
2063 * dwarf2read.c (read_subrange_type): Add comment for variable
2064 sized arrays.
2065
7dc1ef8d
PH
20662004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2067
2068 * Makefile.in (.l.c): Modify rule for compatibility with recent
2069 versions of flex, and remove most command-line options.
2070 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2071 options.
2072
1f8173e6
PH
20732004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2074
2075 Turn on initial Ada support (mainly expression evaluation).
2076
2077 * Makefile.in (SFILES): Remove ada-tasks.c.
2078 (HFILES_NO_SRCDIR): Add ada-lang.h.
2079 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2080 (YYOBJ): Add ada-exp.o.
2081 (rule .l.c): Generalize to not mention ada.
2082 * symtab.c: Include ada-lang.h.
2083 (symbol_natural_name, symbol_demangled_name)
2084 (symbol_search_name): Add Ada case.
2085
cb85a953
AC
20862004-10-01 Andrew Cagney <cagney@gnu.org>
2087
3f3db248
AC
2088 * Makefile.in (COMMON_OBS): Add inf-child.o.
2089 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2090 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2091 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2092 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2093 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2094 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2095 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2096 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2097 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2098 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2099 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2100 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2101 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2102
cb85a953
AC
2103 * target.c (xfer_using_stratum): Change return type to LONGEST.
2104 On each iteration offset, readbuf and writebuf.
2105 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2106 partial_length, and read/modify/write predicate, update comments.
2107 Pass buffer.word to ptrace write.
2108
963a6417
PH
21092004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2110
2111 * symfile.c (init_filename_language_table): Add extensions for
2112 Ada.
2113 * defs.h (enum language): Add language_ada.
2114 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2115 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2116 (add_symbols_from_enclosing_procs): Make a no-op for now.
2117 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2118 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2119 (find_line_in_linetable, find_next_line_in_linetable)
2120 (read_all_symtabs, is_plausible_func_for_line)
2121 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2122 (is_runtime_sym_defined, check_size): Remove declaration.
2123 (function_name_from_pc, ada_translate_error_message)
2124 (ada_lookup_minimal_symbol): Remove definition.
2125 (ada_add_block_symbols): Remove useless label.
2126 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2127 useless declaration.
2128 (ada_is_exception_sym): Likewise.
2129
9b32d526
KI
21302004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2131
2132 Add m32r-linux support.
2133 * configure.tgt: Add m32r*-*-linux*.
2134 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2135 and m32r-linux-tdep.c.
2136 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2137 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2138 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2139 m32r-linux-tdep.c.
2140 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2141 config/m32r/linux.mh, config/m32r/linux.mt,
2142 config/m32r/nm-linux.h: New files.
2143
2de118d3
JB
21442004-09-30 Joel Brobecker <brobecker@gnat.com>
2145
2146 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2147 (mips32_fetch_instruction): Remove, unused.
2148
a9fe69d1
JB
21492004-09-30 Joel Brobecker <brobecker@gnat.com>
2150
2151 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2152 conditions that will always be true.
2153
bc8ffc12
MK
21542004-09-30 Mark Kettenis <kettenis@gnu.org>
2155
ba0cd111
MK
2156 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2157 (vaxbsd_fetch_inferior_registers): Rename from
2158 fetch_inferior_registers. Make static.
2159 (vaxbsd_store_inferior_registers): Rename from
2160 store_inferior_registers. Make static.
2161 (_initialize_vaxbsd_nat): Construct and add target vector.
2162 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2163 inftarg.o. Add inf-child.o and inf-ptrace.o.
2164 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2165 inftarg.o. Add inf-child.o and inf-ptrace.o.
2166 (NAT_FILE): Remove.
2167 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2168 inftarg.o. Add inf-child.o and inf-ptrace.o.
2169 (NAT_FILE): Remove.
2170 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2171
bc8ffc12
MK
2172 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2173 (m88kbsd_fetch_inferior_registers): Rename from
2174 fetch_inferior_registers. Make static.
2175 (m88kbsd_store_inferior_registers): Rename from
2176 store_inferior_registers. Make static.
2177 (_initialize_m88kbsd_nat): New prototype and function.
2178 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2179 inftarg.o. Add inf-child.o and inf-ptrace.o.
2180 (NAT_FILE): Remove.
2181 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2182
27394598
AC
21832004-09-30 Andrew Cagney <cagney@gnu.org>
2184
2185 * target.c (target_xfer_partial): New function.
2186 (target_read_memory_partial, target_write_memory_partial)
2187 (default_xfer_partial, target_read_partial, target_write_partial)
2188 (xfer_using_stratum): Use.
2189 (debug_to_xfer_partial): Delete function.
2190 (setup_target_debug): Do not override to_xfer_partial.
2191
74a4fe32
MK
21922004-09-30 Mark Kettenis <kettenis@chello.nl>
2193
2194 * fork-child.c: Update copyright year. Fix coding style.
2195
982526a1
MK
21962004-09-29 Mark Kettenis <kettenis@gnu.org>
2197
2198 * defs.h (msavestring, mstrsave): Remove prototypes.
2199 * utils.c (msavestring, mstrsave): Remove functions.
2200 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2201 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2202 of mstrsave.
2203 * source.c (find_and_open_source): Use xstrdup instead of
2204 mstrsave.
2205
b8eb5af0
AC
22062004-09-30 Andrew Cagney <cagney@gnu.org>
2207
0779438d
AC
2208 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2209 (inf_ptrace_xfer_memory): Delete.
2210 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2211 (target_read_memory, target_write_memory): Use xfer_using_stratum
2212 when target_xfer_partial_p.
2213 (debug_target): Move to start of file.
2214 (target_read_memory_partial, target_write_memory_partial): Use
2215 to_xfer_partial when target_xfer_partial_p.
2216
f929a579
AC
2217 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2218 inf_ptrace_xfer_memory with equivalent code.
2219 * inftarg.c (child_xfer_partial): When performing a write, pass
2220 writebuf to child_xfer_memory.
2221
b8eb5af0
AC
2222 * target.c (target_read_string): Use target_read_memory instead of
2223 target_xfer_memory.
2224
ee21b650
AC
22252004-09-29 Andrew Cagney <cagney@gnu.org>
2226
d3e05d0d
AC
2227 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2228 the address of status.
2229
ee21b650
AC
2230 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2231 (kill_inferior): Inline ptrace_wait call.
2232 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2233 * inftarg.c (child_wait): Inline ptrace_wait call.
2234
a182eed6
AC
2235 * target.h (struct target_ops): Delete field to_post_wait.
2236 (target_post_wait): Delete macro.
2237 (child_post_wait): Delete declaration.
2238 * target.c (update_current_target, update_current_target)
2239 (debug_to_post_wait, setup_target_debug): Delete functions and
2240 references.
2241 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2242 * inftarg.c (child_post_wait): Delete.
2243 (init_child_ops): Do not set to_post_wait.
2244 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2245 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2246 * inf-child.c (inf_child_post_wait): Delete.
2247 (inf_child_target): Do not set to_post_wait.
2248 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2249 (inf_ptrace_target): Do not set to_post_wait.
2250
ba0c540b
AC
2251 * wince.c (child_ops): Delete.
2252 * win32-nat.c (child_ops): Delete.
2253
81977402
AC
2254 * inftarg.c (inftarg_set_find_memory_regions)
2255 (inftarg_set_make_corefile_notes): Delete functions.
2256 (_initialize_linux_nat): Inline calls.
2257
5ac10fd1
AC
2258 * target.h (child_ops): Declare.
2259 * inftarg.c (child_ops): Move from here ...
2260 * target.c (child_ops): ... to here.
2261 * wince.c (child_ops): Delete extern declaration.
2262 * win32-nat.c (child_ops): Delete extern declaration.
2263 * linux-nat.c (child_ops): Delete extern declaration.
2264 * hpux-thread.c (child_ops): Delete extern declaration.
2265
663408c2 22662004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
2267
2268 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2269
0dad8a66
MK
22702004-09-28 Mark Kettenis <kettenis@gnu.org>
2271
2272 * configure.in: Only set host_makefile_frag when building a native
2273 debugger.
2274 * configure: Regenerate.
e8d74ed3
MK
2275
2276 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2277 for OpenBSD ELF.
2278
dba24537
AC
22792004-09-28 Andrew Cagney <cagney@gnu.org>
2280
e979516b
AC
2281 Problem identified by Paul Hilfinger.
2282 * Makefile.in (ada_lex_c): Define.
2283 (ada-lex.o): Delete rule.
2284
dba24537
AC
2285 * linux-proc.c: Delete file.
2286 * Makefile.in: Update.
2287 * config/sparc/linux64.mh (NATDEPFILES):
2288 * config/sparc/linux.mh (NATDEPFILES): Update.
2289 * config/s390/s390.mh (NATDEPFILES): Update.
2290 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2291 * config/powerpc/linux.mh (NATDEPFILES): Update.
2292 * config/pa/linux.mh (NATDEPFILES): Update.
2293 * config/mips/linux.mh (NATDEPFILES): Update.
2294 * config/m68k/linux.mh (NATDEPFILES): Update.
2295 * config/ia64/linux.mh (NATDEPFILES): Update.
2296 * config/i386/linux64.mh (NATDEPFILES): Update.
2297 * config/i386/linux.mh (NATDEPFILES): Update.
2298 * config/arm/linux.mh (NATDEPFILES): Update.
2299 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2300 * linux-nat.c: Update copyright. Include <sys/param.h>,
2301 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2302 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2303 (O_LARGEFILE): Possibly define.
2304 (_initialize_linux_nat, linux_proc_pending_signals)
2305 (add_line_to_sigset, linux_proc_xfer_memory)
2306 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2307 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2308 (struct linux_corefile_thread_data)
2309 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2310 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2311
d6b0e80f
AC
23122004-09-16 Andrew Cagney <cagney@gnu.org>
2313
2314 * lin-lwp.c: Delete file.
2315 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2316 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2317 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2318 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2319 (linux_nat_attach, detach_callback, linux_nat_detach)
2320 (resume_callback, resume_clear_callback, linux_nat_resume)
2321 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2322 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2323 (status_callback, running_callback, count_events_callback)
2324 (select_singlestep_lwp_callback, select_event_lwp_callback)
2325 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2326 (child_wait, stop_and_resume_callback, linux_nat_wait)
2327 (kill_callback, kill_wait_callback, linux_nat_kill)
2328 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2329 (linux_nat_xfer_memory, linux_nat_thread_alive)
2330 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2331 (_initialize_linux_nat): New functions.
2332 * Makefile.in: Update all dependencies.
2333 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2334 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2335 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2336 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2337 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2338 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2339 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2340 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2341 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2342 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2343 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2344 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2345 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2346
5a174d79
MK
23472004-09-27 Mark Kettenis <kettenis@gnu.org>
2348
2f604c28
MK
2349 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2350 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2351
5a174d79
MK
2352 * configure.in: Don't comment out NATDEPFILES in the generated
2353 Makefile if NAT_FILE is unset.
2354 * configure: Regenerate.
2355
b2ed1746
AC
23562004-09-27 Andrew Cagney <cagney@gnu.org>
2357
44cbf7b5
AC
2358 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2359 (insert_step_resume_breakpoint): Delete.
2360 (insert_step_resume_breakpoint_at_frame): New function.
2361 (insert_step_resume_breakpoint_at_sal): New function.
2362 (handle_inferior_event, step_into_function)
2363 (insert_step_resume_breakpoint): Simplify by using same.
2364
b2ed1746
AC
2365 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2366
3691b3be
MK
23672004-09-26 Mark Kettenis <kettenis@gnu.org>
2368
36f391e8
MK
2369 * fbsd-proc.c: Remove file.
2370 * Makefile.in (fbsd-proc.o): Remove dependency.
2371
771e236c
MK
2372 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2373 code together.
2374
3691b3be
MK
2375 * config/i386/nm-fbsd64.h: Remove file.
2376 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2377
6a5c78a3
MK
23782004-09-26 Mark Kettenis <kettenis@gnu.org>
2379
2380 * amd64-nat.h: Update copyright year.
2381 (amd64bsd_target): New prototype.
2382 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2383 (amd64bsd_target): New function.
2384 (amd64bsd_fetch_inferior_registers): Rename from
2385 fetch_inferior_registers. Make static.
2386 (amd64bsd_store_inferior_registers): Rename from
2387 store_inferior_registers. Make static.
2388 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2389 (_initialize_amd64fbsd_nat): Construct and add target vector.
2390 * amd64nbsd-nat.o: Include "target.h".
2391 (_initialize_amd64nbsd_nat): Construct and add target vector.
2392 * amd64obsd-nat.c: Include "target.h".
2393 (_initialize_amd64obsd_nat): Construct and add target vector.
2394 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2395 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2396 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2397 fbsd-nat.o.
2398 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2399 Remove infptrace.o and inftarg.o. Add inf-child.o and
2400 inf-ptrace.o.
2401 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2402 (amd64obsd-nat.o): Update dependencies.
2403
27acbe61
MK
24042004-09-25 Mark Kettenis <kettenis@gnu.org>
2405
509a5e7d
MK
2406 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2407 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2408 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2409 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2410 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2411
6e1e94ea
MK
2412 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2413 Inline attach call.
2414 (inf_ptrace_detach): Inline detach call.
2415
8b9cf735
MK
2416 * configure.in: Check for waddstr instead of mvwaddstr when
2417 searching for curses library. Check for wborder.
2418 * configure, config.in: Regenerate.
2419 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2420 available.
2421
27acbe61
MK
2422 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2423
b96ec7ac
AC
24242004-09-24 Robert Picco <Robert.Picco@hp.com>
2425
2426 Committed by Andrew Cagney.
2427 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2428 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2429 configuration.
2430 (fetch_register_using_p): Implement 'p' packet. Based on code by
2431 Fernando Nasser.
2432 (remote_fetch_registers): Call fetch_register_using_p.
2433 (init_all_packet_configs, show_remote_cmd)
2434 (_initialize_remote): Add p-packet.
2435
62ece330
MK
24362004-09-24 Mark Kettenis <kettenis@gnu.org>
2437
2438 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2439 instead of call_ptrace. Call wait directly instead of
2440 ptrace_wait.
2441 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2442 (inf_ptrace_wait): Inline ptrace_wait call.
2443
00937274
PH
24442004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2445
2446 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2447 rolled back instead.
2448
3f2c7a45
PH
24492004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2450
2451 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2452 the new argument order.
2453
b6fcb393
CV
24542004-09-23 Corinna Vinschen <vinschen@redhat.com>
2455
2456 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2457 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2458 (struct gdbarch_tdep): Remove.
2459 (struct xstormy16_frame_cache): New frame cache structure.
2460 (xstormy16_register_byte, xstormy16_register_raw_size)
2461 (xstormy16_reg_virtual_type, xstormy16_register_type)
2462 (xstormy16_push_arguments, xstormy16_push_return_address)
2463 (xstormy16_pop_frame, xstormy16_store_struct_return)
2464 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2465 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2466 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2467 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2468 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2469 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2470 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2471 (xstormy16_extract_return_value, xstormy16_store_return_value):
2472 Regcachify. Drop useless struct convention handling.
2473 (xstormy16_register_type, xstormy16_return_value)
2474 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2475 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2476 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2477 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2478 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2479 (xstormy16_unwind_dummy_id) : New functions.
2480 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2481 of xstormy16_scan_prologue.
2482 (xstormy16_frame_unwind): New frame_unwind structure.
2483 (xstormy16_frame_base): New frame_base structure.
2484 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2485 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2486
1285b746
MK
24872004-09-22 Mark Kettenis <kettenis@gnu.org>
2488
2489 * language.c (language_gdbarch_post_init): Fix off-by one error.
2490
1c379e20
DJ
24912004-09-21 Daniel Jacobowitz <dan@debian.org>
2492
2493 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2494 (struct dwarf2_offset_and_type): New.
2495 (set_die_type, reset_die_and_siblings_types, get_die_type)
2496 (offset_and_type_hash, offset_and_type_eq): New functions.
2497 (read_structure_type, read_enumeration_type, read_array_type)
2498 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2499 (read_tag_reference_type, read_tag_const_type)
2500 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2501 (read_typedef, read_base_type, read_subrange_type): Use
2502 set_die_type.
2503
ae038cb0
DJ
25042004-09-20 Daniel Jacobowitz <dan@debian.org>
2505
2506 * Makefile.in (dwarf2read.o): Update dependencies.
2507 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2508 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2509 and read_in_chain.
2510 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2511 mark, and has_form_ref_addr.
2512 (struct dwarf2_per_cu_data): New.
2513 (dwarf2_max_cache_age): New.
2514 (dwarf2_build_psymtabs_hard): Free cached compilation units
2515 after loading. Create and manage the list of compilation units.
2516 Remove unnecessary NULL initialization. Fix indentation.
2517 (psymtab_to_symtab_1): Initialize all of CU.
2518 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2519 (find_partial_die): Use dwarf2_find_containing_comp_unit
2520 and load_comp_unit.
2521 (free_stack_comp_unit): Update comments. Clear the per-cu
2522 pointer. Handle aging.
2523 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2524 (age_cached_comp_units, free_one_cached_comp_unit)
2525 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2526 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2527 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2528 (show_dwarf2_cmd): New.
2529 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2530 and "maint show dwarf2 max-cache-age".
2531 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2532 externs.
2533 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2534 global.
2535
987504bb
JJ
25362004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2537
2538 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2539 and dwarf2_cu struct pointer as arguments. Change function to use
2540 obstack if provided and use dwarf2_cu to determine language-specific
2541 separator.
2542 (partial_die_parent_scope): Change comment to include java. Use
2543 new version of typename_concat instead of obconcat.
2544 (partial_die_full_name): Use typename_concat.
2545 (read_namespace): Ditto.
2546 (read_enumeration_type): Use typename_concat instead of obconcat.
2547 (new_symbol): Ditto.
2548 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2549 (guess_structure_name): Ditto.
2550 (read_subroutine_type): Ditto.
2551 (read_structure_type): Ditto.
2552 (is_vtable_name): Add Java support.
2553 (determine_class_name): Switch to new typename_concat call.
2554 (determine_prefix): Switch to new typename_concat call.
2555 * jv-exp.y (FuncStart): New pattern.
2556 (MethodInvocation): Add support for simple function calls. Change
2557 warning message for other forms of inferior call currently not
2558 supported.
2559 * valarith.c (value_subscript): Treat an array with upper-bound
2560 of -1 as unknown size.
2561
d9c8471e
DJ
25622004-09-20 Daniel Jacobowitz <dan@debian.org>
2563
2564 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2565 (lookup_partial_symtab): Use symtab_to_fullname.
2566
d73f140a
JB
25672004-09-19 Jim Blandy <jimb@redhat.com>
2568
2569 * minsyms.c (lookup_minimal_symbol): Doc fix.
2570
adbef1f0
AC
25712004-09-20 Andrew Cagney <cagney@gnu.org>
2572
2573 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2574 CHILD_RESUME.
2575 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2576 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2577 KILL_INFERIOR.
2578 * infptrace.c: Update.
2579
d092d1a2
DJ
25802004-09-19 Daniel Jacobowitz <dan@debian.org>
2581
2582 * symtab.c (output_source_filename): Mark first argument as const.
2583 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2584 for "info sources" output.
2585
86d9e1d7
MK
25862004-09-20 Mark Kettenis <kettenis@gnu.org>
2587
2588 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2589 <machine/vmparam.h>.
2590 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2591 (register_u_addr): Remove prototype.
2592
9a6c8ef4
MK
25932004-09-19 Mark Kettenis <kettenis@gnu.org>
2594
9692934b
MK
2595 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2596 (i386bsd_fetch_inferior_registers): Rename from
2597 fetch_inferior_registers. Make static.
2598 (i386bsd_store_inferior_registers): Rename from
2599 store_inferior_registers. Make static.
2600 (i386bsd_target): New function.
2601 * i386bsd-nat.h: New file.
2602 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2603 "i386bsd-nat.h".
2604 (i386fbsd_resume): Rename from child_resume. Make static.
2605 (_initialize_i386fbsd_nat): Construct and add target vector.
2606 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2607 (_initialize_i386nbsd_nat): Construct and add target vector.
2608 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2609 Remove defines.
2610 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2611 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2612 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2613 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2614 (LOADLIBES): New variable.
2615 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2616 inf-ptrace.o. Remove inftarg.o.
2617 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2618 inf-ptrace.o. Remove inftarg.o.
2619 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2620 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2621 (LOADLIBES): New variable.
2622 * Makefile.in (i386bsd_nat_h): New variable.
2623 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2624 dependencies.
2625
3510d1f2
MK
2626 * sparc64nbsd-tdep.c: Include "objfiles.h".
2627 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2628 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2629 svr4_lp64_fetch_link_map_offsets.
2630 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2631 "nbsd-tdep.h".
2632 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2633 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2634 svr4_lp64_fetch_link_map_offsets.
2635 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2636 dependencies.
2637
578c1c03
MK
2638 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2639 * fbsd-nat.h: New file.
2640 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2641 (fbsd_nat_h): New variable.
2642 (fbsd-nat.o): New dependency.
2643
7a7b73b7
MK
2644 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2645 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2646
9a6c8ef4
MK
2647 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2648 comment.
2649
72d5681a
PH
26502004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2651
2652 * ada-exp.y (type_int): New function to add layer of abstraction
2653 around references to expression types.
2654 (type_long): Ditto.
2655 (type_long_long): Ditto.
2656 (type_float): Ditto.
2657 (type_double): Ditto.
2658 (type_long_double): Ditto.
2659 (type_char): Ditto.
2660 (type_system_address): Ditto.
2661 (simple_exp): Use type_* functions in place of builtin_*
2662 variables.
2663 (exp): Ditto.
2664 (write_var_from_name): Ditto.
2665 (write_object_renaming): Ditto.
2666 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2667 declaration.
2668 (build_ada_types): Remove, replacing with...
2669 (ada_language_arch_info): New function to initialize primitive
2670 type vector in language_arch_info.
2671 (ada_array_length): Remove use of builtin_type_ada_int.
2672 (value_pos_atr): Ditto.
2673 (ada_evaluate_subexp): Ditto.
2674 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2675 builtin_type_ada_long_long, builtin_type_ada_char,
2676 builtin_type_ada_float, builtin_type_ada_double,
2677 builtin_type_ada_long_double, builtin_type_ada_natural,
2678 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2679 (ada_builtin_types): Remove.
2680 (ada_language_defn): Remove entries for la_builtin_type_vector and
2681 string_char_type and use ada_language_arch_info.
2682 (_initialize_ada_language): Do type-vector initialization along
2683 the lines of c-lang.c.
2684 (ada_create_fundamental_type): Break up line.
2685 (ada_dump_symtab): Remove unused function.
2686 (enum ada_primitive_types): Define.
2687 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2688 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2689 builtin_type_ada_float, builtin_type_ada_double,
2690 builtin_type_ada_long_double, builtin_type_ada_natural,
2691 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2692 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2693 (processInt): Ditto.
2694 (processReal): Ditto.
2695 (name_lookup): Ditto.
2696 * ada-typeprint.c (print_range): Use builtin_type_int, not
2697 builtin_type_ada_int.
2698
4f0be353
MK
26992004-09-18 Mark Kettenis <kettenis@gnu.org>
2700
30b0e2d8
MK
2701 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2702
4f0be353
MK
2703 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2704 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2705 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2706 * configure.in: Improve checks for curses library by checking for
2707 mvwaddstr instead of initscr. Drop HP curses in favour of
2708 standard curses on HP-UX.
2709 * configure: Regenerated.
2710
72d5681a 27112004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
2712
2713 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2714 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2715 Minor formatting changes.
2716 (empty_array): Slight rewrite for formatting.
2717 (emit_char,parse,ada_language_defn,build_ada_types,
2718 ada_is_exception_sym, _initialize_ada_language): Move
2719 definitions around.
2720 (ada_dump_symtab): Remove unused definition.
2721 (ada_maybe_exception_partial_symbol): Remove unused definition.
2722
1c8c7407
AC
27232004-09-16 Andrew Cagney <cagney@gnu.org>
2724
7681f339
AC
2725 * inf-child.c: Include "gdb_string.h".
2726 (inf_child_core_file_to_sym_file): Delete.
2727 (inf_child_target): Set to_fetch_registers and to_store_registers.
2728 * inf-ptrace.c: Include "gdb_string.h".
2729 * Makefile.in: Update all dependencies.
2730
1c8c7407
AC
2731 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2732 problem.
2733
65596487
JB
27342004-09-14 Joel Brobecker <brobecker@gnat.com>
2735
2736 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2737 call to heuristic_proc_desc. Remove code that became redundant
2738 as a consequence.
2739 (read_next_frame_reg): Remove special case for SP_REGNUM.
2740 (set_reg_offset): Fix small typo.
2741 (reset_saved_regs): New procedure.
2742 (mips32_heuristic_proc_desc): No longer compute a fake
2743 procedure descriptor. Compute the full frame cache instead.
2744 Some minor comment reformatting.
2745
95575b2e
AC
27462004-09-14 Andrew Cagney <cagney@gnu.org>
2747
f200c492
AC
2748 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2749 maintainer.
2750
95575b2e
AC
2751 * thread-db.c (thread_db_new_objfile): Assume that there is a
2752 child process.
2753
69657671
JB
27542004-09-13 Jim Blandy <jimb@redhat.com>
2755
2756 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2757 so that its storage isn't referenced after its lifetime ends.
2758
6c4182dd
JB
2759 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2760 and never assigned to. Delete it, and the 'if (use_buffer)'
2761 clauses. Delete 'raw_buffer', since it is now unused.
2762
ee31a58d
AC
27632004-09-13 Andrew Cagney <cagney@gnu.org>
2764
2c0fc042
AC
2765 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2766 * configure: Re-generate.
2767 * nlm/Makefile.in (TAGS): Update.
2768 * Makefile.in (TAGS): Update.
2769 * config/vax/nbsd.mt (TM_FILE): Update.
2770 * config/sparc/vxworks.mt (TM_FILE): Update.
2771 * config/sparc/sol2.mt (TM_FILE): Update.
2772 * config/sparc/sol2-64.mt (TM_FILE): Update.
2773 * config/sparc/obsd64.mt (TM_FILE): Update.
2774 * config/sparc/obsd.mt (TM_FILE): Update.
2775 * config/sparc/nbsd64.mt (TM_FILE): Update.
2776 * config/sparc/nbsd.mt (TM_FILE): Update.
2777 * config/sparc/linux64.mt (TM_FILE): Update.
2778 * config/sparc/linux.mt (TM_FILE): Update.
2779 * config/sparc/fbsd.mt (TM_FILE): Update.
2780 * config/sh/wince.mt (TM_FILE): Update.
2781 * config/sh/nbsd.mt (TM_FILE): Update.
2782 * config/sh/linux.mt (TM_FILE): Update.
2783 * config/sh/embed.mt (TM_FILE): Update.
2784 * config/s390/s390.mt (TM_FILE): Update.
2785 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2786 * config/rs6000/rs6000.mt (TM_FILE): Update.
2787 * config/rs6000/aix4.mt (TM_FILE): Update.
2788 * config/powerpc/vxworks.mt (TM_FILE): Update.
2789 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2790 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2791 * config/powerpc/obsd.mt (TM_FILE): Update.
2792 * config/powerpc/nbsd.mt (TM_FILE): Update.
2793 * config/powerpc/linux.mt (TM_FILE): Update.
2794 * config/powerpc/aix.mt (TM_FILE): Update.
2795 * config/pa/obsd.mt (TM_FILE): Update.
2796 * config/pa/linux.mt (TM_FILE): Update.
2797 * config/pa/hppahpux.mt (TM_FILE): Update.
2798 * config/pa/hppa64.mt (TM_FILE): Update.
2799 * config/pa/hppa.mt (TM_FILE): Update.
2800 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2801 * config/mips/wince.mt (TM_FILE): Update.
2802 * config/mips/vxmips.mt (TM_FILE): Update.
2803 * config/mips/nbsd.mt (TM_FILE): Update.
2804 * config/mips/linux.mt (TM_FILE): Update.
2805 * config/mips/irix6.mt (TM_FILE): Update.
2806 * config/mips/irix5.mt (TM_FILE): Update.
2807 * config/mips/embed.mt (TM_FILE): Update.
2808 * config/m68k/vxworks68.mt (TM_FILE): Update.
2809 * config/m68k/st2000.mt (TM_FILE): Update.
2810 * config/m68k/os68k.mt (TM_FILE): Update.
2811 * config/m68k/obsd.mt (TM_FILE): Update.
2812 * config/m68k/nbsd.mt (TM_FILE): Update.
2813 * config/m68k/monitor.mt (TM_FILE): Update.
2814 * config/m68k/linux.mt (TM_FILE): Update.
2815 * config/m68k/cisco.mt (TM_FILE): Update.
2816 * config/ia64/linux.mt (TM_FILE): Update.
2817 * config/ia64/aix.mt (TM_FILE): Update.
2818 * config/ia64/ia64.mt (TM_FILE): Update.
2819 * config/i386/vxworks.mt (TM_FILE): Update.
2820 * config/i386/obsd64.mt (TM_FILE): Update.
2821 * config/i386/obsd.mt (TM_FILE): Update.
2822 * config/i386/nto.mt (TM_FILE): Update.
2823 * config/i386/nbsd64.mt (TM_FILE): Update.
2824 * config/i386/nbsd.mt (TM_FILE): Update.
2825 * config/i386/linux64.mt (TM_FILE): Update.
2826 * config/i386/linux.mt (TM_FILE): Update.
2827 * config/i386/i386sol2.mt (TM_FILE): Update.
2828 * config/i386/i386lynx.mt (TM_FILE): Update.
2829 * config/i386/fbsd64.mt (TM_FILE): Update.
2830 * config/i386/fbsd.mt (TM_FILE): Update.
2831 * config/i386/cygwin.mt (TM_FILE): Update.
2832 * config/h8300/h8300.mt (TM_FILE): Update.
2833 * config/frv/frv.mt (TM_FILE): Update.
2834 * config/cris/cris.mt (TM_FILE): Update.
2835 * config/arm/wince.mt (TM_FILE): Update.
2836 * config/arm/nbsd.mt (TM_FILE): Update.
2837 * config/arm/linux.mt (TM_FILE): Update.
2838 * config/arm/embed.mt (TM_FILE): Update.
2839 * config/alpha/nbsd.mt (TM_FILE): Update.
2840 * config/alpha/fbsd.mt (TM_FILE): Update.
2841 * config/alpha/alpha.mt (TM_FILE): Update.
2842 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2843 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2844
362646f5
AC
2845 Eliminate event_loop_p, always has the value 1.
2846 * defs.h (event_loop_p): Delete macro.
2847 * breakpoint.c (until_break_command): Simplify.
2848 * utils.c (prompt_for_continue): Simplify.
2849 * tracepoint.c (read_actions): Simplify.
2850 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2851 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2852 (set_prompt, init_main): Simplify.
2853 (init_signals, disconnect): Delete, unused.
2854 * remote.c (remote_async_resume)
2855 (extended_remote_async_create_inferior): Simplify.
2856 * mi/mi-interp.c (mi_input): Delete, unused.
2857 (mi_interpreter_resume, mi_command_loop): Simplify.
2858 * interps.c (current_interp_command_loop): Simplify.
2859 * infrun.c (proceed): Simplify.
2860 * infcmd.c (run_command, continue_command, step_1, jump_command)
2861 (until_command, advance_command, finish_command)
2862 (interrupt_target_command): Simplify.
2863 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2864
ee31a58d
AC
2865 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2866 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2867 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2868 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2869 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2870 * mips-tdep.c (mips_dump_tdep): Do not print same.
2871
b7ffc4a8
AC
28722004-09-12 Andrew Cagney <cagney@gnu.org>
2873
2bfb72ee
AC
2874 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2875 const.
2876 * Makefile.in (valprint.o): Delete explict rule.
2877
4f17c3c1
AC
2878 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2879 reported by Dave Anderson.
2880
f810308b
AC
2881 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2882
b7ffc4a8
AC
2883 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2884
28b41c52
AC
28852004-09-12 Salvador E. Tropea <set@users.sf.net>
2886 Andrew Cagney <cagney@gnu.org>
2887
2888 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2889 (mi_cmd_data_list_register_values)
2890 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2891 the register number computation.
2892
5bf970f9
AC
28932004-09-12 Andrew Cagney <cagney@gnu.org>
2894
2895 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2896 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2897 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2898 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2899 target.
2900 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2901 inf-ptrace.o and inf-child.o.
2902 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2903 * Makefile.in: Update dependencies.
2904
0759e0bf
AC
29052004-09-11 Andrew Cagney <cagney@gnu.org>
2906
2907 * language.c (hex_string, hex_string_custom): Move from here ...
2908 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2909 (CELLSIZE): Increase to 50.
2910 * language.h (hex_string, hex_string_custom): Move from here ...
2911 * defs.h: ... to here.
2912 * Makefile.in: Update all dependencies.
2913
bb599908
PH
29142004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2915
2916 * language.c (local_hex_format_custom): Remove.
2917 (local_hex_string): Rename to hex_string, use C format, and move to
2918 utils.c
2919 (local_hex_string_custom): Rename to hex_string_custom and change
2920 interface. Now uses C format. Move to utils.c
2921 (local_octal_format_custom): Remove.
2922 (local_decimal_format_custom): Remove.
2923 (unknown_language_defn): Remove language-specific number
2924 formatting entries.
2925 (auto_language_defn): Ditto.
2926 (local_language_defn): Ditto.
2927 * language.h (struct language_format_info): Delete declaration.
2928 (struct language_defn): Remove language_format_info fields
2929 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2930 (local_binary_format): Remove macro.
2931 (local_binary_format_prefix): Remove macro.
2932 (local_binary_format_specifier): Remove macro.
2933 (local_binary_format_suffix): Remove macro.
2934 (local_octal_format): Remove macro.
2935 (local_octal_format_prefix): Remove macro.
2936 (local_octal_format_specifier): Remove macro.
2937 (local_octal_format_suffix): Remove macro.
2938 (local_decimal_format): Remove macro.
2939 (local_decimal_format_prefix): Remove macro.
2940 (local_decimal_format_specifier): Remove macro.
2941 (local_decimal_format_suffix): Remove macro.
2942 (local_hex_format): Remove macro.
2943 (local_hex_format_prefix): Remove macro.
2944 (local_hex_format_specifier): Remove macro.
2945 (local_hex_format_suffix): Remove macro.
2946 (local_decimal_format_custom): Remove.
2947 (local_octal_format_custom): Remove.
2948 (local_hex_format_custom): Remove.
2949 (local_hex_string): Rename to hex_string and move to defs.h.
2950 (local_hex_string_custom): Rename to hex_string_custom, change
2951 interface, and move to defs.h.
2952 * utils.c: (int_string): New function.
2953 (hex_string): New function (from language.c).
2954 (hex_string_custom): New function (from language.c).
2955 (octal2str): New function.
2956 (decimal2str): Add width parameter.
2957 (paddr_u): Use new decimal2str interface.
2958 (paddr_d): Ditto.
2959 * defs.h (hex_string): Declare.
2960 (hex_string_custom): Declare.
2961 (int_string): Declare.
2962 * printcmd.c (print_scalar_formatted): Remove localized binary
2963 formatting.
2964 * valprint.c (print_longest): Use int_string.
2965 (print_floating): Use C hex format.
2966 (print_hex_chars): Ditto.
2967 (print_binary_chars): Remove language-specific formatting.
2968 (print_octal_chars): Use C octal format.
2969 (print_decimal_chars): Delocalize format.
2970 (print_decimal): Remove.
2971 * ada-lang.c (ada_language_defn): Remove language-specific number
2972 formatting entries.
2973 * p-lang.c (pascal_language_defn): Ditto.
2974 * c-lang.c (c_language_defn): Ditto.
2975 (cplus_language_defn): Ditto.
2976 (asm_language_defn): Ditto.
2977 (minimal_language_defn): Ditto.
2978 * f-lang.c (f_language_defn): Ditto.
2979 * jv-lang.c (java_language_defn): Ditto.
2980 * m2-lang.c (m2_language_defn): Ditto.
2981 * scm-lang.c (scm_language_defn): Ditto.
2982 * objc-lang.c (objc_language_defn): Ditto.
2983 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2984 new interface.
2985 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2986 * ui-out.c (ui_out_field_core_addr): Ditto.
2987 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2988 * exec.c (print_section_info): Ditto.
2989 * i387-tdep.c (print_i387_status_word): Ditto.
2990 (print_i387_control_word): Ditto.
2991 (i387_print_float_info): Ditto.
2992 * maint.c (maint_print_section_info): Ditto.
2993 * solib.c (info_sharedlibrary_command): Ditto.
2994 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2995 * symtab.c (print_msymbol_info): Ditto.
2996 * tracepoint.c (tracepoints_info): Ditto.
2997 * solib-frv.c (lm_base): Ditto.
2998 (frv_current_sos): Ditto.
2999 (enable_break2): Ditto.
3000 (enable_break): Ditto.
3001 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3002 (process_one_symbol): Ditto.
3003 * infcmd.c (program_info): Ditto.
3004 * mdebugread.c (parse_partial_symbols): Ditto.
3005 * symfile.c (add_symbol_file_command): Ditto.
3006 * cli/cli-cmds.c (edit_command): Ditto.
3007 (list_command): Ditto.
3008 * infcall.c (call_function_by_hand): Ditto.
3009 * remote-vx.c (vx_run_files_info): Ditto.
3010 (vx_wait): Ditto.
3011 (vx_attach): Ditto.
3012 (vx_detach): Ditto.
3013 (vx_kill): Ditto.
3014 * aix-thread.c (pdc_symbol_addrs): Ditto.
3015 (pdc_read_regs): Ditto.
3016 (pdc_write_regs): Ditto.
3017 (pdc_read_data): Ditto.
3018 (pdc_write_data): Ditto.
3019 * d10v-tdep.c (display_trace): Ditto.
3020 * rs6000-nat.c (find_toc_address): Ditto.
3021 * aix-thread.c: Don't include language.h.
3022 * buildsym.c: Ditto.
3023 * dbxread.c: Ditto.
3024 * mdebugread.c: Ditto.
3025 * rs6000-nat.c: Ditto.
3026 * buildsym.c (make_blockvector): Use renamed hex_string.
3027
33f2d567
JM
30282004-09-10 Jason Molenda (jmolenda@apple.com)
3029
3030 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3031 chars after 'if' or 'while' commands in user-defined commands.
3032
7b90c3f9
JB
30332004-09-08 Jim Blandy <jimb@redhat.com>
3034
3035 Fix bug reported and analyzed by Olivier Crete:
3036 * symfile.c (copy_section_addr_info): New function.
3037 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3038 original set of address arguments, instead of handwritten code
3039 that uses one length to allocate and a different length to
3040 initialize. Use make_cleanup_free_section_addr_info.
3041 * symfile.h (copy_section_addr_info): New declaration.
3042 * utils.c: #include "symfile.h".
3043 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3044 New functions.
3045 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3046 * Makefile.in (utils.o): Update dependencies.
3047
b26a6851
AC
30482004-09-08 Andrew Cagney <cagney@gnu.org>
3049
3050 * thread-db.c (keep_thread_db): Delete.
3051 (thread_db_new_objfile, thread_db_create_inferior)
3052 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3053
be24b061
MK
30542004-09-08 Mark Kettenis <kettenis@gnu.org>
3055
f6792ef4
MK
3056 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3057 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3058 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3059 (i386_frameless_signal_p): Remove prototype.
3060 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3061 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3062 I386_SSE_NUM_REGS.
3063 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3064 instead of FP0_REGNUM.
3065 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3066 of FP0_REGNUM and FPC_REGNUM.
3067
eeefdaa7
MK
3068 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3069 (sunos_solib_create_inferior_hook): Don't call
3070 sunos_relocate_main_executable.
3071
be24b061
MK
3072 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3073 solib_svr4_fetch_link_map_offsets to
3074 svr4_ilp32_fetch_link_map_offsets.
3075 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3076 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3077 svr4_ilp32_fetch_link_map_offsets.
3078 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3079
7c679d16
JB
30802004-09-07 Jim Blandy <jimb@redhat.com>
3081
3082 * frame.h (frame_register): Doc fix.
3083
1f04aa62
AC
30842004-09-07 Andrew Cagney <cagney@gnu.org>
3085
3086 * vx-share/wait.h: Delete #ifdef USG.
3087 * utils.c (request_quit): Ditto.
3088 * tui/tui.c (tui_reset): Ditto.
3089 * remote.c: Ditto.
3090 * remote-sds.c: Ditto.
3091 * remote-rdi.c: Ditto.
3092 * mdebugread.c: Ditto.
3093 * m68klinux-nat.c: Ditto.
3094 * infttrace.c: Ditto.
3095 * infptrace.c: Ditto.
3096 * i386v-nat.c: Ditto.
3097 * exec.c: Ditto.
3098 * dbxread.c: Ditto.
3099 * core-aout.c: Ditto.
3100
90edbfbc
JB
31012004-09-05 Joel Brobecker <brobecker@gnat.com>
3102
3103 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3104 heuristic_proc_desc.
3105 (mips_insn32_frame_cache): Likewise.
3106
01f4bf2b
JB
31072004-09-04 Joel Brobecker <brobecker@gnat.com>
3108
3109 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3110 left behind by error.
3111
8511a048
JB
31122004-09-04 Joel Brobecker <brobecker@gnat.com>
3113
3114 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3115 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3116
649dfe9f
JB
31172004-09-04 Joel Brobecker <brobecker@gnat.com>
3118
3119 * config/rs6000/xm-aix4.h: Remove this file.
3120 * config/rs6000/aix4.mh (XM_FILE): Delete.
3121
6e50f889
JB
31222004-09-04 Joel Brobecker <brobecker@gnat.com>
3123
3124 * config/rs6000/xm-rs6000.h: Remove this file.
3125 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3126
b8c4aece
AC
31272004-09-03 Andrew Cagney <cagney@gnu.org>
3128
fb603883
AC
3129 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3130 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3131 only use.
3132
c9343fd1
AC
3133 * mips-tdep.c (temp_saved_regs): Delete.
3134 (set_reg_offset): Replace saved_regs parameter with this_cache.
3135 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3136 (mips32_heuristic_proc_desc): Add this_cache parameter.
3137 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3138 (after_prologue): Pass a NULL this_cache.
3139
9733cfe1
AC
3140 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3141 non-kernel trap prologues.
3142
0d5febcc
AC
3143 * mips-tdep.c (find_proc_desc): Delete function.
3144 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3145 simplify.
3146 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3147 mips_insn32_frame_cache.
3148
9733cfe1 3149 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
3150 Simplify as NEXT_FRAME is NULL.
3151 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3152
177f84a3
AC
3153 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3154 local variable.
3155 (mips_skip_prologue): Update.
3156
465f7520
AC
3157 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3158 "cur_frame" parameter.
177f84a3
AC
3159 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3160 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 3161
e38b8658
AC
3162 * config/vax/nm-obsd.h: Delete file.
3163 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3164 * config/vax/nm-nbsd.h: Delete file.
3165 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3166 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3167 * config/sh/nm-nbsd.h: Delete file.
3168 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3169 * config/rs6000/nm-rs6000ly.h: Delete file.
3170 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3171 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3172 * config/powerpc/nm-obsd.h: Delete file.
3173 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3174 * config/powerpc/nm-nbsd.h: Delete file.
3175 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3176 * config/pa/nm-obsd.h: Delete file.
3177 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3178 * config/mips/nm-nbsd.h: Delete file.
3179 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3180 * config/m88k/nm-obsd.h: Delete file.
3181 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3182 * config/m68k/nm-nbsd.h: Delete file.
3183 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3184 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3185 * config/i386/nm-nbsd.h: Delete file.
3186 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3187 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3188 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3189 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3190 * config/i386/nm-i386lynx.h: Delete file.
3191 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3192 * config/arm/nm-nbsd.h: Delete file.
3193 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3194 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3195
be1ed680
AC
3196 * config/i386/tm-fbsd.h: Delete file.
3197 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3198 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3199
4b392b26
AC
3200 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3201 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3202 * config/rs6000/aix4.mt (TM_FILE): Set to
3203 config/rs6000/tm-rs6000.h.
3204 * config/powerpc/tm-ppc-aix.h: Delete file.
3205 * config/powerpc/aix.mt (TM_FILE): Set to
3206 config/rs6000/tm-rs6000.h.
3207 * config/m68k/tm-linux.h: Delete file.
3208 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3209 * config/i386/tm-linux64.h: Delete file.
3210 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3211 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3212
f3219c75
AC
3213 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3214 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3215 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3216 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3217 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3218 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3219 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3220 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3221 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3222
b8c4aece
AC
3223 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3224 gdb_host_cpu.
3225
8ac2e020
JB
32262004-09-02 Joel Brobecker <brobecker@gnat.com>
3227
3228 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3229 Minor reformatting. Some code factoring.
3230
c185a355
AC
32312004-09-02 Andrew Cagney <cagney@gnu.org>
3232
63f22f0d
AC
3233 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3234 * config/vax/tm-nbsd.h: Delete file.
3235 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3236 * config/sparc/tm-vxworks.h: Delete file.
3237 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3238 * config/sparc/tm-nbsd.h: Delete file.
3239 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3240 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3241 * config/sparc/tm-linux.h: Delete file.
3242 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3243 * config/s390/tm-linux.h: Delete file.
3244 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3245 * config/pa/tm-bsd.h: Delete file.
3246 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3247 * config/m68k/tm-obsd.h: Delete file.
3248 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3249 * config/m68k/tm-nbsd.h: Delete file.
3250 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3251 * config/i386/tm-vxworks.h: Delete file.
3252 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3253 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3254 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3255 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3256 * config/i386/tm-nbsd.h: Delete file.
3257 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3258 * config/i386/tm-i386lynx.h: Delete file.
3259 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3260 * config/cris/tm-cris.h: Delete file.
3261
0f475e27
AC
3262 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3263 * configure: Re-generate.
3264 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3265 * config/arm/tm-nbsd.h: Delete file.
3266
458ed000
AC
3267 * config/powerpc/tm-ppcle-sim.h: Delete.
3268 * config/powerpc/tm-ppcle-eabi.h: Delete.
3269 * config/powerpc/tm-nbsd.h: Delete.
3270 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3271 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3272 tm-ppcle-eabi.h.
3273
f14375f3
AC
3274 * config/i386/nto.mh (NAT_FILE): Delete.
3275 * config/i386/nm-nto.h: Delete.
3276
c34d127c
AC
3277 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3278 * config/m68k/tm-os68k.h: Ditto.
3279 * config/m68k/tm-monitor.h: Ditto.
3280 * config/m68k/tm-cisco.h: Ditto.
3281 * config/m68k/st2000.mt (TM_FILE): Delete.
3282 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3283 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3284 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3285 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3286
f7f0fe03
AC
3287 * config/m68k/tm-st2000.h: Delete.
3288 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3289 * config/sparc/fbsd.mt (TM_FILE): Delete.
3290 * config/sparc/tm-fbsd.h: Delete.
3291
a2558533
AC
3292 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3293 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3294 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3295
b78960be
AC
3296 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3297 GDB_TM_FILE and GDB_XM_FILE.
3298 * gdbarch.c: Re-generate.
3299 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3300 quotes in macro definition.
3301 * configure.in: Re-generate.
3302
4d60522e
AC
3303 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3304 validating architecture methods.
3305 * gdbarch.c: Re-generate.
3306
5010d38b
AC
3307 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3308 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3309 GDB_MULTI_ARCH_PARTIAL.
3310 * gdbarch.h: Re-generate.
3311
c185a355
AC
3312 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3313 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3314 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3315 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3316 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3317 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3318 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3319 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3320 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3321 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3322 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3323 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3324
14aaa6ab
AC
33252004-09-01 Andrew Cagney <cagney@gnu.org>
3326
3327 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3328 and main_func_highpc.
3329 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3330 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3331 * nlmread.c (nlm_symfile_read): Update.
3332
a343eb3c
JB
33332004-09-01 Joel Brobecker <brobecker@gnat.com>
3334
3335 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3336 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3337 (find_proc_desc): Remove dead code.
3338
4fbbbd07
JB
33392004-09-01 Joel Brobecker <brobecker@gnat.com>
3340
3341 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3342
84acb35a
JJ
33432004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3344
3345 * observer.sh: Add struct so_list declaration.
3346 * Makefile.in: Add dependencies on observer.h for solib.c and
3347 breakpoint.c.
3348 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3349 function.
3350 (_initialize_breakpoint): Register
3351 disable_breakpoints_in_unloaded_shlib as an observer of the
3352 "solib unloaded" observation event.
3353 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3354 call decode_line_1 so unfound breakpoint errors are silent.
3355 * solib.c (update_solib_list): When a solib is discovered to have
3356 been unloaded by the program, notify all observers of the
3357 "solib unloaded" observation event.
3358
c8cd9f6c
AC
33592004-09-01 Andrew Cagney <cagney@gnu.org>
3360
3361 * frame.c: Include "objfiles.h".
3362 (inside_main_func): New function.
3363 (get_prev_frame): Use new inside_main_func.
3364 * Makefile.in (frame.o): Update dependencies.
3365 * defs.h (inside_main_func): Delete declaration.
3366 * blockframe.c (inside_main_func): Delete function.
3367
1168df01
JB
33682004-08-31 Jim Blandy <jimb@redhat.com>
3369
3370 * dwarf2read.c (is_vtable_name): New function, based on logic from
3371 read_structure_type, but passing the correct length to strncmp,
3372 and using 'sizeof' instead of 'strlen'.
3373 (read_structure_type): Call it.
3374
f14f9744
JB
33752004-08-31 Joel Brobecker <brobecker@gnat.com>
3376
3377 * config/powerpc/aix.mh: Add comment.
3378
386d4518
PG
33792004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3380
3381 * MAINTAINERS: Add self to Write-After-Approval.
3382
7d97d5e2
MI
33832004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3384
3385 * MAINTAINERS: Add self to Write-After-Approval.
3386
68f53502
AC
33872004-08-30 Andrew Cagney <cagney@gnu.org>
3388
3389 Fix PR breakpoints/1757.
3390 * infrun.c (struct execution_control_state): Replace
3391 remove_breakpoints_on_following_step with
3392 step_after_step_resume_breakpoint.
3393 (init_execution_control_state): Update.
3394 (handle_inferior_event): For signals, when stepping off a
3395 breakpoint, set step_after_step_resume_breakpoint. When
3396 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3397 (keep_going): Delete code handling
3398 remove_breakpoints_on_following_step.
3399
7ca2d3a3
DL
34002004-08-29 David Lecomber <david@streamline-computing.com>
3401
3402 Fix PR gdb/648
3403 * language.h (enum array_ordering): New enum.
3404 * language.h (struct language_defn): New la_array_ordering
3405 attribute.
3406 * language.c (unknown_language_defn, auto_language_defn)
3407 (local_language_defn): Ditto.
3408 * ada-lang.c (ada_language_defn): Ditto.
3409 * c-lang.c (c_language_defn, cplus_language_defn)
3410 (asm_language_defn, minimal_language_defn): Ditto.
3411 * f-lang.c (f_language_defn): Ditto.
3412 * jv-lang.c (java_language_defn): Ditto.
3413 * m2-lang.c (f_language_defn): Ditto.
3414 * objc-lang.c (objc_language_defn): Ditto.
3415 * p-lang.c (pascal_language_defn): Ditto.
3416 * scm-lang.c (scm_language_defn): Ditto.
3417 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3418 oriented large to small in type structure.
3419 * dwarf2read.c (read_array_order): New function.
3420 (read_array_type): Use read_array_order to check row/column
3421 major ordering.
3422
e354df01
NW
34232004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3424
3425 * target.c (target_resize_to_sections): Check
3426 current_target.to_sections for an old value when updating.
3427
9185ddce
JB
34282004-08-27 Joel Brobecker <brobecker@gnat.com>
3429
3430 * procfs.c (dbx_link_bpt_addr): New static global variable.
3431 (dbx_link_shadow_contents): New static global variable.
3432 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3433 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3434 if we just hit it.
3435 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3436 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3437 from run to run.
3438 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3439 after the inferior has been forked.
3440 (remove_dbx_link_breakpoint): New function.
3441 (dbx_link_addr): New function.
3442 (insert_dbx_link_bpt_in_file): New function.
3443 (insert_dbx_link_bpt_in_region): New function.
3444 (insert_dbx_link_breakpoint): New function.
3445 (proc_trace_syscalls_1): New function, extracted from
3446 proc_trace_syscalls.
3447 (proc_trace_syscalls): Replace extract code by call to
3448 proc_trace_syscalls_1.
3449 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3450 is no longer valid.
3451
e6742ace
JB
34522004-08-25 Jim Blandy <jimb@redhat.com>
3453
3454 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3455
8fb3e588
AC
34562004-08-25 Andrew Cagney <cagney@gnu.org>
3457
629a41ee
AC
3458 * infrun.c (struct execution_control_state): Delete field
3459 "stepping_through_sigtramp".
3460 (init_execution_control_state): Do not set same.
3461 (context_switch): Do not pass same to save_infrun_state and
3462 load_infrun_state.
3463 * gdbthread.h (struct thread_info): Delete field
3464 stepping_through_sigtramp.
3465 (save_infrun_state, load_infrun_state): Delete parameter
3466 stepping_through_sigtramp.
3467 * thread.c (load_infrun_state, save_infrun_state): Update.
3468
8fb3e588
AC
3469 * infrun.c: Re-indent. Move expression operators to the beginning
3470 of the line. Remove long disabled #if 0 code.
3471
49c54768
AC
34722004-08-24 Andrew Cagney <cagney@gnu.org>
3473
3474 * doublest.h (floatformat_ieee_quad): Rename
3475 floatformat_ia64_quad.
3476 * doublest.c (floatformat_ieee_quad): Rename
3477 floatformat_ia64_quad.
3478 (_initialize_doublest): Update.
3479
5ca2e327
JB
34802004-08-24 Jim Blandy <jimb@redhat.com>
3481
87808bd6
JB
3482 * dwarf2expr.h (struct dwarf_expr_context): New members
3483 'num_pieces' and 'pieces', for returning the result of an
3484 expression that uses DW_OP_piece.
3485 (struct dwarf_expr_piece): New struct type.
3486 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3487 pieces.
3488 (free_dwarf_expr_context): Free pieces, if any.
3489 (add_piece): New function.
3490 (execute_stack_op): Implement DW_OP_piece.
3491 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3492 expression is a list of pieces, print an error message.
3493 (dwarf2_loc_desc_needs_frame): If the expression yields
3494 pieces, and any piece is in a register, then we need a frame.
3495
5ca2e327
JB
3496 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3497 the stack until we've decided what sort of result the evaluation
3498 has produced. Use separate variables, with more specific names.
3499
2afeb6b8
RE
35002004-08-23 Richard Earnshaw <rearnsha@arm.com>
3501
3502 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3503 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3504 (arm_netbsd_init_abi_common): Register them.
3505
5885ab49
MK
35062004-08-22 Mark Kettenis <kettenis@gnu.org>
3507
fda820a6
MK
3508 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3509
1c5bf419
MK
3510 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3511 safe_frame_unwind_memory instead of target_read_memory.
3512
8cbba7c8
MK
3513 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3514 Reorder includes.
3515 (fetch_register, store_register): Remove prototypes.
3516 (child_resume): Reorganize code and comments such that it is
3517 grouped a bit more logically.
3518 (attach): Explicitly compare errno against 0.
3519 (detach): Likewise. Use perror_with_name instead of
3520 print_sys_errmsg.
3521 * Makefile.in (infptrace.o): Update dependencies.
3522
c5fa4245
MK
3523 * ia64-linux-nat.c: Update copyright year.
3524 (fetch_debug_register, store_debug_register)
3525 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3526 PTRACE_TYPE_ARG3.
3527 * config/ia64/nm-linux.h: Update copyright year.
3528 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3529
387c058c
MK
3530 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3531 from CORE_ADDR to struct frame_info *. Use
3532 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3533 (amd64_linux_sigtramp_p): Adjust for changed signature of
3534 and64_linux_sigtramp_start
3535
277215a6
MK
3536 * gdb_ptrace.h: GNU/Linux.
3537
25f6178e
MK
3538 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3539 Remove defines.
3540
652fc137
MK
3541 * infptrace.c: Include "gdb_assert.h".
3542 (PTRACE_XFER_TYPE): Remove define.
3543 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3544 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3545 Tweak comment.
3546 (fetch_inferior_registers, store_inferior_registers): Remove
3547 redundant culry braces. Tweak comment. s/regno/regnum.
3548 * Makefile.in (infptrace.o): Update dependencies.
3549
5885ab49
MK
3550 * configure.in: Change test for return type of ptrace to default
3551 to `long' instead of `int'.
3552 * configure: Regenerate.
3553
11003ae3
MK
35542004-08-21 Mark Kettenis <kettenis@gnu.org>
3555
6b95110c
MK
3556 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3557
bcb3dc3d
MK
3558 * configure.in: Check for ttrace function.
3559 * configure, config.in: Regenerate.
3560
11003ae3
MK
3561 * gdb_ptrace.h: New file.
3562 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3563 <sys/ptrace.h>.
3564 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3565 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3566 (attach): Don't define PT_ATTACH.
3567 (detach): Don't define PT_DETACH.
3568 * Makefile.in (gdb_ptrace_h): New variable.
3569 (infptrace.o): Update dependencies.
3570
f8707cac
MK
35712004-08-16 Mark Kettenis <kettenis@gnu.org>
3572
3573 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3574 instead of `int' if not already defined.
3575 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3576 PTRACE_TYPE_ARG3.
3577 * infptrace.c (call_ptrace): Revert change that replaced
3578 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3579
655c5466
MK
35802004-08-15 Mark Kettenis <kettenis@gnu.org>
3581
156e5ba7
MK
3582 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3583 Remove defines.
3584
de9a9e51
MK
3585 * linux-nat.c (kill_inferior): Add missing third and fourth
3586 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3587
88800403
MK
3588 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3589 PTRACE_TYPE_RET.
3590
849a1d7c
MK
3591 * proc-why.c (proc_prettyfprint_why): Fix format string.
3592
61ad16d1
MK
3593 * solib-osf.c (osf_current_sos): Remove unsused label.
3594
a6ed5501
MK
3595 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3596 curses headers.
3597 * configure, config.in: Regenerate.
3598 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3599 <ncurses/ncurses.h>.
3600
016ddeca
MK
3601 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3602 * config/nm-nbsd.h: Update copyright year.
3603 (PTRACE_ARG3_TYPE): Remove define.
3604
49ec097f
MK
3605 * sparc-nat.c (fetch_inferior_registers)
3606 (store_inferior_registers, sparc_xfer_wcookie):
3607 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3608
9f8e0089
MK
3609 * alphabsd-nat.c (fetch_inferior_registers):
3610 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3611 PTRACE_TYPE_ARG3.
3612 * amd64bsd-nat.c (fetch_inferior_registers)
3613 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3614 PTRACE_TYPE_ARG3.
3615 * armnbsd-nat.c: Update copyright year.
3616 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3617 (store_register, store_regs, store_fp_register, store_fp_regs):
3618 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3619 * hppabsd-nat.c (fetch_inferior_registers)
3620 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3621 PTRACE_TYPE_ARG3.
3622 * i386bsd-nat.c (fetch_inferior_registers)
3623 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3624 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3625 * m68kbsd-nat.c (fetch_inferior_registers)
3626 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3627 PTRACE_TYPE_ARG3.
3628 * m88kbsd-nat.c (fetch_inferior_registers)
3629 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3630 PTRACE_TYPE_ARG3.
3631 * mipsnbsd-nat.c: Update copyright year.
3632 (fetch_inferior_registers, store_inferior_registers):
3633 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3634 * ns32knbsd-nat.c: Update copyright year.
3635 (fetch_inferior_registers, store_inferior_registers):
3636 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3637 * ppcnbsd-nat.c (fetch_inferior_registers):
3638 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3639 PTRACE_TYPE_ARG3.
3640 * ppcobsd-nat.c (fetch_inferior_registers):
3641 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3642 PTRACE_TYPE_ARG3.
3643 * shnbsd-nat.c: Update copyright year.
3644 (fetch_inferior_registers, store_inferior_registers):
3645 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3646 * vaxbsd-nat.c (fetch_inferior_registers)
3647 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3648 PTRACE_TYPE_ARG3.
3649
655c5466
MK
3650 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3651 PTRACE_TYPE_ARG3.
3652 * infptrace.c (call_ptrace, child_resume, attach, detach)
3653 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3654 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3655 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3656 PTRACE_TYPE_ARG3.
3657
c40d0d10
MK
36582004-08-14 Mark Kettenis <kettenis@gnu.org>
3659
5cb0ff31
MK
3660 * defs.h: Remove out-of-date comment.
3661 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3662 [!GETENV_PROVIDED] (getenv): Remove prototype.
3663
5f0f34cb
MK
3664 * standalone.c: Remove file.
3665 * Makefile.in (standalone.o): Remove dependency.
3666
7532965f
MK
3667 * i386-linux-nat.c (dummy_sse_values): Remove function and
3668 prototype.
3669 (i386_linux_dr_get): Fix typo in comment.
3670 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3671
1bdc6c53
MK
3672 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3673
c40d0d10
MK
3674 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3675 from declaration.
3676 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3677 from definition.
3678
64218d3e
MK
36792004-08-13 Mark Kettenis <kettenis@gnu.org>
3680
3681 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3682 parenthesis in definition.
3683 * configure: Regenerated.
3684
926c94e7
MC
36852004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3686
3687 * PROBLEMS: Mention build/1411.
3688
69489883
NN
36892004-08-09 Robert Millan <robertmh@gnu.org>
3690
3691 Committed by Nathanael Nerode.
3692 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3693 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3694
ebb7c577
AC
36952004-08-12 Andrew Cagney <cagney@gnu.org>
3696
3697 * NEWS: Mention fixes in GDB 6.2.1.
3698 * PROBLEMS: Remove mention of mips-irix.
3699
232d697c
JB
37002004-08-11 Joel Brobecker <brobecker@gnat.com>
3701
3702 * config/powerpc/xm-aix.h: Delete.
3703 * config/powerpc/aix.mh (MH_FILE): Remove.
3704 * config/powerpc/aix432.mh (MH_FILE): Remove.
3705
72f4e82b
JB
37062004-08-11 Joel Brobecker <brobecker@gnat.com>
3707
3708 * config/powerpc/aix.mh: Remove obsolete comment.
3709 * config/powerpc/aix432.mh: Likewise.
3710
0687ccb2
JB
37112004-08-11 Joel Brobecker <brobecker@gnat.com>
3712
3713 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3714
dbf3ada7
JB
37152004-08-11 Joel Brobecker <brobecker@gnat.com>
3716
e08e1886
JB
3717 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3718 this file is now empty.
3719 * config/xm-aix4.h: Remove, this file is no longer included
3720 anywhere.
3721
37222004-08-11 Joel Brobecker <brobecker@gnat.com>
3723
3724 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3725 that file is now empty.
dbf3ada7
JB
3726 (termdef): Remove prototype, function no longer used.
3727
4c525ef6
JB
37282004-08-11 Joel Brobecker <brobecker@gnat.com>
3729
3730 * doc/gdbint.texinfo (Host Definition): Remove documentation
3731 for USE_O_NOCTTY, no longer used.
3732 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3733 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3734
82e0b968
JB
37352004-08-11 Joel Brobecker <brobecker@gnat.com>
3736
3737 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3738 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3739 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3740
f2acbe1c
MK
37412004-08-11 Mark Kettenis <kettenis@gnu.org>
3742
daa98270
MK
3743 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3744 instead of FIVE_ARG_PTRACE.
3745
f2acbe1c
MK
3746 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3747 (new_tty): Use O_NOCTTY unconditionally.
3748
cc377e6b
MK
37492004-08-10 Mark Kettenis <kettenis@gnu.org>
3750
3751 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3752 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3753 fflush on stdout.
3754
3bcc18fa
JB
37552004-08-10 Joel Brobecker <brobecker@gnat.com>
3756
3757 * xcoff_symfile_finish: Replace last call to xmfree by call
3758 to xfree.
3759
7936743b
AC
37602004-08-10 Andrew Cagney <cagney@gnu.org>
3761
cc503c8a
AC
3762 * main.c (captured_main): Delete call to init_malloc.
3763 * defs.h (init_malloc): Delete declaration.
3764 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3765 (init_malloc): Delete functions.
3766
2dc74dc1
AC
3767 * defs.h (xmfree): Delete.
3768 * utils.c (xmfree): Delete function.
3769 (xfree): Inline calls to xmfree and mfree.
3770 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3771 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3772 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3773 * somread.c (som_symfile_finish): Ditto.
3774 * objfiles.c (allocate_objfile, free_objfile):
3775 * nlmread.c (nlm_symfile_finish): Ditto.
3776 * hpread.c (hpread_symfile_finish): Ditto.
3777 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3778 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3779 * coffread.c (coff_symfile_finish): Ditto.
3780
aa2ee5f6
AC
3781 * defs.h (xmcalloc): Delete declaration.
3782 * utils.c (xmcalloc): Delete.
3783 (xcalloc): Inline calls to xmcalloc and mcalloc.
3784 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3785 xcalloc and xfree.
3786 * symtab.c (create_demangled_names_hash): Ditto.
3787
0efffb96
AC
3788 * defs.h (xmrealloc): Delete.
3789 * utils.c (xmrealloc): Delete.
3790 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3791 * symmisc.c (extend_psymbol_list): Use xrealloc.
3792 * source.c (find_source_lines): Ditto.
3793 * hpread.c (hpread_lookup_type): Ditto.
3794 * dbxread.c (add_bincl_to_list): Ditto.
3795
7936743b
AC
3796 * utils.c (xmmalloc): Delete.
3797 (xmalloc): Inline xmmalloc and mmalloc calls.
3798 (msavestring): Use xmalloc.
3799 * defs.h (xmmalloc): Delete declaration.
3800 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3801 xmmalloc.
3802 * symmisc.c (extend_psymbol_list): Ditto.
3803 * symfile.c (init_psymbol_list): Ditto.
3804 * source.c (find_source_lines): Ditto.
3805 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3806 * elfread.c (elf_symtab_read): Ditto.
3807 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3808 * coffread.c (coff_symfile_init): Ditto.
3809
252ab814
DC
38102004-08-10 David Carlton <carlton@bactrian.org>
3811
3812 * MAINTAINERS: Remove David Carlton from c++ testsuite
3813 maintainers.
3814
8f5ba92b
JG
38152004-08-10 Jerome Guitton <guitton@gnat.com>
3816
3817 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3818 print a line feed before the prompt.
3819
21749010
MK
38202004-08-10 Mark Kettenis <kettenis@gnu.org>
3821
3822 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3823
1f011ce2
JB
38242004-08-09 Joel Brobecker <brobecker@gnat.com>
3825
3826 General cleanup of the AIX xm include file:
3827 * config/xm-aix4.h (fd_set): Remove undefine.
3828 Remove include of <sys/select.h>.
3829 (HAVE_TERMIO): Remove define.
3830 (USG): Likewise.
3831 (NULL): Remove redefine.
3832 (alloca): Remove #pragma.
3833 (vfork): Remove define.
3834 (termdef): Remove.
3835 (SIGWINCH_HANDLER): Remove.
3836 (SIGWINCH_HANDLER_BODY): Remove.
3837
cf4e7692
MK
38382004-08-09 Mark Kettenis <kettenis@gnu.org>
3839
3840 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3841 GDB_OSABI_OPENBSD_ELF.
3842
ac5754fa
MK
38432004-08-07 Robert Millan <robertmh@gnu.org>
3844
3845 * bsd-kvm.c: Check for nlist.h before including it.
3846
086ec9eb
MK
38472004-08-09 Mark Kettenis <kettenis@gnu.org>
3848
bbe06c74
MK
3849 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3850 sigcontext' offset consistency checks for ancient BSD.
3851
3aa7b3b3
MK
3852 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3853
086ec9eb
MK
3854 * configure.in: Check for <sys/types.h>. Check return and
3855 argument types of ptrace.
3856 * configure, config.in: Regenerate.
3857
09991fa0
JB
38582004-08-09 Jim Blandy <jimb@redhat.com>
3859
3860 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3861 rs6000_register_sim_regno): Doc fixes.
3862
fed7ba43
JB
38632004-08-08 Joel Brobecker <brobecker@gnat.com>
3864
3865 * mips-tdep.c: Include "floatformat.h".
3866 (n32n64_floatformat_always_valid): New function.
3867 (floatformat_n32n64_long_double_big): New constant.
3868 (mips_gdbarch_init): Set size and format of long double
3869 for N32 and N64 ABIs.
3870 * Makefile.in (mips-tdep.o): Update dependencies.
3871
456fcf94
AC
38722004-08-08 Andrew Cagney <cagney@gnu.org>
3873
2f9b146e
AC
3874 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3875 print. Improve script's error messages.
3876 * gdbarch.h: Re-generate.
3877
456fcf94
AC
3878 * gdbarch.sh (pformat): New function.
3879 (float_format, double_format, long_double_format): List with bit
3880 members. Use pformat when printing.
3881 * gdbarch.c, gdbarch.h: Re-generate.
3882
69e9e646
NW
38832004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3884
3885 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3886 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3887 (ppcnbsd_supply_pcb): New function.
3888 (_initialize_ppcnbsd_nat): New prototype and function.
3889 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3890 (LOADLIBES): New variable.
3891 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3892
5ef2d0aa
AC
38932004-08-08 Andrew Cagney <cagney@gnu.org>
3894
3895 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3896 (builtin_type_ieee_double, builtin_type_ia64_quad)
3897 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3898 BE/LE floating-point types.
3899 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3900 (builtin_type_ieee_double, builtin_type_ia64_quad)
3901 (builtin_type_ia64_spill): Declare.
3902 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3903 (floatformat_ieee_double, floatformat_arm_ext)
3904 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3905 of LE/BE floatformats.
3906 * doublest.h: (struct floatformat, floatformat_ieee_single)
3907 (floatformat_ieee_double, floatformat_arm_ext)
3908 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3909
5c7f2947
MK
39102004-08-08 Mark Kettenis <kettenis@gnu.org>
3911
ecac404d
MK
3912 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3913
9b8607ce
MK
3914 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3915 instead of regcache_raw_supply when storing the registers.
3916
f6052080
MK
3917 * i386gnu-nat.c: Update copyright year.
3918 (gnu_store_registers): Don't use deprecated_registers and
3919 deprecated_registers_valid. Use regcache_valid_p and
3920 regcache_raw_supply instead.
3921
17777823
MK
3922 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3923 frame_pc_unwind.
3924
5240ceac
MK
3925 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3926 variables. Incapitalized "process".
3927
5c7f2947
MK
3928 * configure.in: Add cursesX to the list of possible curses libs.
3929 Add cursesX.h to the list of possible curses headers.
3930 * configure, config.in: Regenerate.
3931
da7d81e3
NW
39322004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3933
3934 * configure.in: Test for struct lwp in <sys/lwp.h>.
3935 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3936 the offset of l_addr in struct lwp.
3937
7f245d65
NW
39382004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3939
3940 * bsd-kvm.c: Include "gdbcore.h"
3941 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3942
47b3f456
AC
39432004-08-07 Andrew Cagney <cagney@gnu.org>
3944
70bd8e24
AC
3945 * gdbtypes.c (build_flt, build_complex): New functions.
3946 (gdbtypes_post_init): Use.
3947
9b0dea39
AC
3948 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3949
5cf7abac
AC
3950 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3951 through to builtin_type_uint128.
3952
64d2b26d
AC
3953 * c-exp.y: Use builtin_type function to obtain builtin types.
3954
7ad6570d
AC
3955 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3956 builtin_uint128.
3957 * gdbtypes.c (gdbtypes_post_init): Update.
3958 (build_gdbtypes): Move initialization of builtin_type_int0
3959 through to builtin_type_uint128 from here ...
3960 (_initialize_gdbtypes): ... to here.
3961 * d10v-tdep.c (d10v_register_type): Update.
3962
47b3f456
AC
3963 * doublest.c: Update copyright.
3964 (floatformat_from_length): Call error when floatformat is NULL.
3965 (extract_floating_by_length): Remove NULL fmt check.
3966 (store_floating_by_length): Ditto.
3967
0a8146bf
AC
39682004-08-07 Andrew Cagney <cagney@gnu.org>
3969
3970 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3971 that the register is valid.
3972
c0ccb908
MK
39732004-08-05 Mark Kettenis <kettenis@chello.nl>
3974
8e6bed05
MK
3975 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3976 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3977 struct frame_info *. Use safe_frame_unwind_memory instead of
3978 deprecated_read_memory_nobpt.
3979 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3980 changed signature of i386_linux_sigtramp_start and
3981 i386_linux_rt_sigtramp_start.
3982
24f9f5e3
MK
3983 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3984 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3985 instead of deprecated_read_memory_nobpt.
3986 (i386nbsd_sigtramp_p): Adjust for changed signature of
3987 i386nbsd_sigtramp_offset.
3988
c822af0c
MK
3989 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3990 safe_frame_unwind_memory instead of target_read_memory.
3991
c0ccb908
MK
3992 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3993 !NO_SYS_FILE.
3994 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3995 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3996 (_initialize_kernel_u_addr): Remove prototype and function.
3997 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3998 !NO_SYS_FILE.
3999 * xcoffread.c: Likewise.
4000
b9e1c0d6
MK
40012004-08-06 Mark Kettenis <kettenis@gnu.org>
4002
4003 * vax-nat.c: New file.
4004 * vaxbsd-nat.c: Tweak comment.
4005 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4006 vaxnbsd-tdep.c.
4007 (vax-nat.o): New dependency.
4008 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4009 (vax-*-ultrix2*): Remove.
4010 * config/vax/vax.mh: New file.
4011 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4012 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4013 (vax_register_u_addr): New prototype.
4014 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4015 * config/vax/vaxult2.mh: Remove file.
4016 * config/vax/vaxult.mh: Remove file.
4017 * config/vax/vaxbsd.mh: Remove file.
4018 * config/vax/vax.mt (TM_FILE): Remove.
4019 * config/vax/tm-vaxbsd.h: Remove file.
4020
9ad7bec7
JB
40212004-08-06 Joel Brobecker <brobecker@gnat.com>
4022
4023 * aix-thread.c (get_signaled_thread): New function.
4024 (iter_trap): Delete, no longer used.
4025 (iter_tid): New function.
4026 (pd_update): Find the thread that received the SIGTRAP signal
4027 by first locating the kernel thread, and then finding its
4028 associated thread.
4029
bf0d233d
UW
40302004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4031
4032 * lin-lwp.c (child_wait): Continue inferior after processing
4033 PTRACE_EVENT_CLONE event.
4034
d0f853e1
NN
40352004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4036
4037 * MAINTAINERS: Add self to Write-After-Approval.
4038
ab14aeb0
JJ
40392004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4040
4041 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4042 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4043
9c8dbfa9
AC
40442004-08-05 Andrew Cagney <cagney@gnu.org>
4045
c8f3ca46
AC
4046 * config/xm-sysv4.h: Delete file.
4047 * config/mips/xm-irix5.h: Delete file.
4048 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4049 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4050 * config/ia64/xm-aix.h: Delete file.
4051 * config/ia64/aix.mh (XM_FILE): Delete.
4052 * config/pa/xm-hppah.h: Delete file.
4053 * config/pa/hpux11w.mh (XM_FILE): Delete.
4054 * config/pa/hpux11.mh (XM_FILE): Delete.
4055 * config/pa/hpux1020.mh (XM_FILE): Delete.
4056 * config/pa/hppahpux.mh (XM_FILE): Delete.
4057
5f7daaff
AC
4058 * config/alpha/xm-alphalinux.h: Delete file.
4059 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4060 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4061 * config/alpha/xm-alphaosf.h: Delete file.
4062 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4063 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4064 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4065 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4066
69babf95
AC
4067 * config/i386/xm-i386v.h: Delete file.
4068 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4069 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4070 * config/i386/xm-i386sco.h: Delete file.
4071 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4072 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4073 * config/i386/xm-i386v4.h: Delete file.
4074 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4075 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4076 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4077 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4078
6f009c8a
AC
4079 * config/vax/xm-vax.h: Delete file.
4080 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4081 * config/vax/xm-vaxult2.h: Delete file.
4082 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4083 * config/vax/vaxult2.mh (XM_FILE): Delete.
4084 * config/vax/xm-vaxult.h: Delete file.
4085 * config/vax/vaxult.mh (XM_FILE): Delete.
4086 * config/vax/xm-vaxbsd.h: Delete file.
4087 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4088
9c8dbfa9
AC
4089 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4090 * gdbarch.h, gdbarch.c: Re-generate.
4091 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4092 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4093 * frame.h: Delete deprecated_read_fp from comments.
4094 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4095 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4096
84367a3e
MK
40972004-08-04 Mark Kettenis <kettenis@gnu.org>
4098
9c8e3411
MK
4099 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4100 trampoline in OpenBSD 3.5-current.
4101
b87bc0d8
MK
4102 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4103 SSE registers.
4104
84367a3e
MK
4105 * Makefile.in: Remove embedded page breaks.
4106
a44bddec
JB
41072004-08-04 Jim Blandy <jimb@redhat.com>
4108
7ab3286f
JB
4109 * regcache.c (regcache_raw_read): Assert that, after calling
4110 target_fetch_registers, the register we're reading is cached.
4111
a44bddec
JB
4112 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4113 a call to 'internal_error', with a more helpful error message.
4114 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 4115 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 4116
35124113
AC
41172004-08-04 Andrew Cagney <cagney@gnu.org>
4118
4119 * Makefile.in: Update dependencies.
4120
9f643768
JB
41212004-08-04 Jim Blandy <jimb@redhat.com>
4122
6ced10dd
JB
4123 Change the layout of the PowerPC E500 raw register cache to allow
4124 the lower 32-bit halves of the GPRS to be their own raw registers,
4125 not pseudoregisters.
4126 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4127 add ppc_ev0_upper_regnum flag.
4128 * rs6000-tdep.c: #include "reggroups.h".
4129 (spe_register_p): Recognize the ev upper half registers as SPE
4130 registers.
4131 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4132 registers.
4133 (e500_move_ev_register): New function.
4134 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4135 vector registers are the pseudo-registers now, formed by splicing
4136 together the gprs and the upper-half registers.
4137 (e500_register_reggroup_p): New function.
4138 (P): Macro deleted.
4139 (P8, A4): New macro.
4140 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4141 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4142 macros.
4143 (registers_e500): Rearrange register set so that the raw register
4144 set contains 32-bit GPRs and upper-half registers, and the SPE
4145 vector registers become pseudo-registers.
4146 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4147 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4148 register numbers are now the same for the E500 as they are for
4149 other PowerPC variants. Register e500_register_reggroup_p as the
4150 register group function for the E500.
4151 * Makefile.in (rs6000-tdep.o): Update dependencies.
4152
4153 Adapt PPC E500 native support to the new raw regcache layout.
4154 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4155 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4156 (fetch_spe_register, store_spe_register): Handle fetching/storing
4157 all the SPE registers at once, if regno == -1. These now take
4158 over the job of fetch_spe_registers and store_spe_registers.
4159 (fetch_spe_registers, store_spe_registers): Deleted.
4160 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4161 unconditionally; they're always raw. Fetch/store SPE upper half
4162 registers, if present, instead of ev registers.
4163 (fetch_register, store_register): Remove sanity checks: gprs are
4164 never pseudo-registers now, so we never need to even mention any
4165 registers that are ever pseudoregisters.
4166
9f643768
JB
4167 Use a fixed register numbering when communicating with the PowerPC
4168 simulator.
4169 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4170 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4171 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4172 New functions.
4173 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4174 init_sim_regno_table.
4175 * Makefile.in (gdb_sim_ppc_h): New variable.
4176 (rs6000-tdep.o): Update dependencies.
4177
1e2279c8
AC
41782004-08-02 Andrew Cagney <cagney@gnu.org>
4179
1d94326f
AC
4180 * cris-tdep.c (cris_register_size): Restore function, still used
4181 locally.
4182
331ae7ed
AC
4183 * gdbarch.sh (deprecated_target_read_fp)
4184 (deprecated_frame_locals_address, deprecated_frame_args_address)
4185 (deprecated_frame_chain_valid, deprecated_frame_chain)
4186 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4187 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4188 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4189 * gdbarch.h, gdbarch.c: Re-generate.
4190 * regcache.c (deprecated_read_fp): Do not call
4191 DEPRECATED_TARGET_READ_FP_P.
4192 * infcmd.c (default_print_registers_info): Do not call
4193 DEPRECATED_DO_REGISTERS_INFO.
4194 * frame-base.c (default_frame_locals_address): Do not call
4195 DEPRECATED_FRAME_LOCALS_ADDRESS.
4196 (default_frame_args_address): Do not call
4197 DEPRECATED_FRAME_ARGS_ADDRESS.
4198
1e2279c8
AC
4199 * gdbarch.sh (deprecated_register_raw_size)
4200 (deprecated_register_virtual_size:int): Delete.
4201 * gdbarch.h, gdbarch.c: Re-generate.
4202 * cris-tdep.c (cris_register_size): Delete.
4203 (cris_gdbarch_init): Update.
4204 * alpha-tdep.c (alpha_register_raw_size)
4205 (alpha_register_virtual_size): Delete.
4206 (alpha_gdbarch_init): Update.
4207
a90c06b4
AC
4208 * gdbarch.sh (deprecated_register_virtual_type)
4209 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4210 (deprecated_dummy_write_sp): Delete.
4211 * gdbarch.h, gdbarch.c: Re-generate.
4212
f42accbe
AC
4213 * gdbarch.sh (deprecated_register_bytes): Delete.
4214 * gdbarch.h, gdbarch.c: Re-generate.
4215 * regcache.c (deprecated_register_bytes): New function.
4216 * regcache.h (deprecated_register_bytes): Declare.
4217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4218 * v850-tdep.c (v850_gdbarch_init): Update.
4219 * sh64-tdep.c (sh64_gdbarch_init): Update.
4220 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4221 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4222 * mcore-tdep.c (mcore_gdbarch_init): Update.
4223 * cris-tdep.c (cris_gdbarch_init): Update.
4224 * arm-tdep.c (arm_gdbarch_init): Update.
4225 * remote.c (init_remote_state): Update.
4226 * remote-vx.c (vx_prepare_to_store): Update.
4227 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4228 * irix5-nat.c (fetch_core_registers): Update.
4229 * cris-tdep.c (cris_register_bytes_ok): Update.
4230 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4231
45c9dd44
AC
4232 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4233 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4234 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4235 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4236 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4237 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4238 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4239 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4240 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4241 with mips_insn16 and mips_insn32.
4242
3acba339
AC
4243 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4244 * rs6000-tdep.c (rs6000_push_dummy_call)
4245 (rs6000_extract_return_value): Use register_size.
4246 * xstormy16-tdep.c (xstormy16_get_saved_register)
4247 (xstormy16_extract_return_value): Ditto.
4248 * valops.c (value_assign): Ditto.
4249 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4250 * v850-tdep.c (v850_extract_return_value): Ditto.
4251 * tracepoint.c (collect_symbol): Ditto.
4252 * target.c (debug_print_register): Ditto.
4253 * stack.c (frame_info): Ditto.
4254 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4255 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4256 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4257 (store_register_using_P): Ditto.
4258 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4259 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4260 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4261 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4262 * regcache.c (deprecated_read_register_bytes)
4263 (deprecated_write_register_bytes, read_register)
4264 (write_register): Ditto.
4265 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4266 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4267 * monitor.c (monitor_supply_register, monitor_fetch_register)
4268 (monitor_store_register): Ditto.
4269 * mn10300-tdep.c (mn10300_pop_frame_regular)
4270 (mn10300_print_register): Ditto.
4271 * mipsv4-nat.c (fill_fpregset): Ditto.
4272 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4273 (mips64_fill_fpregset): Ditto.
4274 * mi/mi-main.c (register_changed_p, get_register)
4275 (mi_cmd_data_write_register_values): Ditto.
4276 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4277 * irix5-nat.c (fill_gregset, fetch_core_registers):
4278 * infrun.c (write_inferior_status_register): Ditto.
4279 * infptrace.c (fetch_register, store_register): Ditto.
4280 * infcmd.c (default_print_registers_info): Ditto.
4281 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4282 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4283 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4284 * hpux-thread.c (hpux_thread_fetch_registers)
4285 (hpux_thread_store_registers): Ditto.
4286 * hppah-nat.c (store_inferior_registers, fetch_register):
4287 * findvar.c (value_from_register): Ditto.
4288 * dve3900-rom.c (fetch_bitmapped_register):
4289 * cris-tdep.c (cris_gdbarch_init): Ditto.
4290 * alpha-tdep.h: Ditto.
4291 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4292
01e1877c
AC
4293 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4294 DEPRECATED_REGISTER_RAW_SIZE from comments.
4295 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4296 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4297 DEPRECATED_REGISTER_RAW_SIZE.
4298 * findvar.c (value_of_register): Simplify by assuming that the
4299 registers raw and virtual sizes are identical.
4300 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4301 comment.
4302 * arch-utils.c (generic_register_size): Simplify by assuming
4303 register_type.
4304
73f458fb
AC
4305 * regcache.c (legacy_read_register_gen, real_register)
4306 (legacy_write_register_gen): Delete, not used.
4307
336a3131
AC
4308 * regcache.c (struct regcache_descr): Delete legacy_p.
4309 (init_legacy_regcache_descr): Delete function.
4310 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4311 Do not use deprecated register functions.
4312 (regcache_raw_read, deprecated_write_register_gen):
4313 (deprecated_read_register_gen, regcache_raw_write): Delete code
4314 predicated on legacy_p.
4315 (register_size): Delete check against register raw size.
4316
c1d546cd
AC
4317 * cris-tdep.c (cris_register_type): Replace
4318 cris_register_virtual_type.
4319 (cris_gdbarch_init): Update, set register_type.
4320
48c2c0a6
AC
4321 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4322 * gdbarch.h, gdbarch.c: Re-generate.
4323 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4324 (arm_gdbarch_init) Do not set frameless function invocation.
4325 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4326 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4327 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4328 (frv_gdbarch_init): Do not set frameless function invocation.
4329 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4330 * sh-tdep.c (sh_gdbarch_init): Ditto.
4331 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4332 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4333 * avr-tdep.c (avr_gdbarch_init): Ditto.
4334
474093a6
AC
4335 * blockframe.c (legacy_frame_chain_valid): Delete function.
4336
3c109c8b
AC
4337 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4338 and pc. Update comments.
4339 (pc_in_dummy_frame): Delete function.
4340 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4341 use the "id".
4342 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4343 call_hi, top and pc, use the id.
4344 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4345
96860204
AC
4346 * dummy-frame.c: Include "gdb_string.h".
4347 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4348 (generic_save_dummy_frame_tos): Delete.
4349 (dummy_frame_push): New function, replaces above.
4350 * dummy-frame.h: Update copyright.
4351 (dummy_frame_push): Declare.
4352 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4353 (generic_save_call_dummy_addr): Delete declarations.
4354 * infcall.c: Include "dummy-frame.h".
4355 (call_function_by_hand): Add locals caller_regcache,
4356 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4357 with call to frame_save_as_regcache plus cleanup. Delete calls to
4358 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4359 Move clear_proceed_status to just before the resume, add call to
4360 dummy_frame_push (discard cleanup).
4361 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4362 (dummy-frame.o): Add $(gdb_string_h).
4363
d67ec5db
AC
43642004-08-01 Andrew Cagney <cagney@gnu.org>
4365
4366 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4367 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4368 * dummy-frame.c (find_dummy_frame): Delete.
4369 (struct dummy_frame_cache, dummy_frame_sniffer)
4370 (dummy_frame_prev_register, dummy_frame_this_id)
4371 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4372 frame unwinder using a dummy_frame_cache.
4373
a81dcb05
AC
43742004-08-01 Andrew Cagney <cagney@gnu.org>
4375
4376 * frame.h (frame_save_as_regcache): Declare.
4377 * frame.c (frame_save_as_regcache): New function.
4378 (do_frame_read_register): Replace do_frame_unwind_register.
4379 (frame_pop): Use frame_save_as_regcache.
4380 * dummy-frame.c (generic_push_dummy_frame): Use
4381 frame_save_as_regcache.
4382
aa495d11
JB
43832004-08-01 Joel Brobecker <brobecker@gnat.com>
4384
4385 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4386 file as included until we record the first line in the linetable.
4387
ff65ac78
AC
43882004-08-01 Andrew Cagney <cagney@gnu.org>
4389
4390 * frame.h (deprecated_pop_dummy_frame)
4391 (deprecated_read_register_dummy)
4392 (deprecated_generic_find_dummy_frame): Delete.
4393 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4394 (deprecated_read_register_dummy)
4395 (deprecated_find_dummy_frame_regcache)
4396 (discard_innermost_dummy)
4397 (deprecated_pop_dummy_frame): Delete.
4398 (dummy_frame_this_id): Simplify.
4399 (struct dummy_frame): Delete "fp" and "sp".
4400 (find_dummy_frame): Simplify.
4401 (generic_push_dummy_frame): Do not set "fp" or "sp".
4402 (fprint_dummy_frames): Do not print "fp" and "sp"
4403
37bdc87e
MK
44042004-08-01 Mark Kettenis <kettenis@gnu.org>
4405
4406 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4407 (struct i386_insn): New structure.
4408 (i386_match_insn): New function.
4409 (i386_frame_setup_skip_insns): New variable.
4410 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4411 array i386_frame_setup_insns of instructions that should be
4412 skipped inside the frame setup sequence.
4413
8241eaa6
AC
44142004-08-01 Andrew Cagney <cagney@gnu.org>
4415
5bc602c7
AC
4416 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4417 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4418 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4419 * stack.c (frame_info): Delete references to
4420 DEPRECATED_FRAME_INIT_SAVED_REGS and
4421 deprecated_get_frame_saved_regs.
4422 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4423 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4424 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4425 (frame_unwind_register_signed)
4426 (frame_unwind_register_unsigned)
4427 (frame_unwind_unsigned_register): Use register_size.
4428 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4429 (deprecated_frame_xmalloc_with_cleanup)
4430 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4431 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4432
03d363a1
AC
4433 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4434 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4435 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4436 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4437
8241eaa6
AC
4438 * infcall.c (call_function_by_hand): Do not use
4439 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4440 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4441 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4442 DEPRECATED_STACK_ALIGN.
4443
f00df8b7
AC
44442004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4445
4446 Committed by Andrew Cagney.
4447 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4448
eec63939
AC
44492004-08-01 Andrew Cagney <cagney@gnu.org>
4450
4451 * mips-tdep.c (mips16_frame_cache)
4452 (mips16_frame_this_id, mips16_frame_prev_register)
4453 (mips16_frame_unwind, mips16_frame_sniffer)
4454 (mips16_frame_base_address, mips16_frame_base)
4455 (mips16_frame_base_sniffer, mips32_frame_cache)
4456 (mips32_frame_this_id, mips32_frame_prev_register)
4457 (mips32_frame_unwind, mips32_frame_sniffer)
4458 (mips32_frame_base_address, mips32_frame_base)
4459 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4460 separate heuristic mips16 and mips32 unwinders.
4461 (mips_stub_frame_cache, mips_stub_frame_this_id)
4462 (mips_stub_frame_prev_register)
4463 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4464 (mips_stub_frame_base_address, mips_stub_frame_base)
4465 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4466 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4467 match true mdebug frames.
4468 (non_heuristic_proc_desc): Add forward declaration.
4469
e66299b3
AC
44702004-08-01 Andrew Cagney <cagney@gnu.org>
4471
83cbbf3e
AC
4472 * config/mips/tm-irix6.h: Delete file.
4473 * config/mips/tm-irix5.h: Delete file.
4474 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4475 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4476
22d41b37
AC
4477 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4478 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4479 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4480 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4481 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4482 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4483 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4484 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4485 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4486 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4487 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4488 (TARGET_SIGNAL_RAW_VALUES): Delete.
4489 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4490 Delete.
4491 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4492 (TARGET_HW_WATCH_LIMIT): Delete.
4493 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4494 * minimon.h: Delete file.
4495
e66299b3
AC
4496 * trad-frame.c (trad_frame_get_this_base)
4497 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4498 functions.
4499 * trad-frame.h (trad_frame_set_this_base)
4500 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4501
1f67027d
AC
45022004-07-31 Andrew Cagney <cagney@gnu.org>
4503
4504 * trad-frame.c (trad_frame_get_prev_register): Rename
4505 trad_frame_get_prev_register.
4506 * vax-tdep.c (vax_frame_prev_register): Update.
4507 * trad-frame.h: Update.
4508 * trad-frame.c (trad_frame_get_register): Update.
4509 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4510 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4511 Update.
4512 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4513 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4514 Update.
4515 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4516 Update.
4517 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4518 Update.
4519 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4520 Update.
4521 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4522 Update.
4523 * s390-tdep.c (s390_frame_prev_register)
4524 (s390_stub_frame_prev_register)
4525 (s390_sigtramp_frame_prev_register): Update.
4526 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4527 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4528 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4529 * m88k-tdep.c (m88k_frame_prev_register)
4530 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4531 * m32r-tdep.c (m32r_frame_prev_register): Update.
4532 * hppa-tdep.c (hppa_frame_prev_register_helper)
4533 * frv-tdep.c (frv_frame_prev_register): Update.
4534 * d10v-tdep.c (d10v_frame_prev_register): Update.
4535 * cris-tdep.c (cris_frame_prev_register): Update.
4536 * avr-tdep.c (avr_frame_prev_register): Update.
4537 * arm-tdep.c (arm_prologue_prev_register)
4538 (arm_sigtramp_prev_register): Update.
4539
c1bf6f65
AC
45402004-07-31 Andrew Cagney <cagney@gnu.org>
4541
4542 * frame.h (legacy_saved_regs_unwind)
4543 (legacy_frame_chain_valid, legacy_frame_p)
4544 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
4545 * dummy-frame.c (dummy_frame_this_id): Simplify.
4546 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
4547 * frame.c (struct frame_info): Delete the field "type".
4548 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4549 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4550 (legacy_saved_regs_unwind, legacy_frame_p)
4551 (frame_type_from_pc): Delete.
4552 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4553 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4554
dc856692
MK
45552004-07-31 Mark Kettenis <kettenis@gnu.org>
4556
5a5effe1
MK
4557 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4558 indentation.
4559
d4fd50a6
MK
4560 * mips-nat.c: Remove file.
4561 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4562 (mips-nat.o): Remove dependency.
4563
2689df5a
MK
4564 * infptrace.c: Update copyright year.
4565 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4566 explicitly setting the buffer to all zeroes.
4567
dc856692
MK
4568 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4569 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4570
763910e0
AC
45712004-07-30 Andrew Cagney <cagney@gnu.org>
4572
4573 * GDB 6.2 released from gdb_6_2-branch.
4574
0b66e38c
EZ
45752004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4576
4577 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4578
4579 * exec.c (exec_file_attach):
4580 * nto-tdep.c (nto_find_and_open_solib):
4581 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4582 * solib.c (solib_open):
4583 * somsolib.c (som_solib_sizeof_symbol_table):
4584 * source.c (is_regular_file, openp, open_source_file):
4585 * symfile.c (symfile_bfd_open):
4586 * wince.c (upload_to_device): Differentiate between the search for
4587 binary and source files.
4588
be7d7357
AC
45892004-07-30 Andrew Cagney <cagney@gnu.org>
4590
4591 * complaints.c (_initialize_complaints): Pass NULL to
4592 add_setshow_zinteger_cmd for help_doc.
4593 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4594
ddc9cd0f
AC
45952004-07-30 Andrew Cagney <cagney@gnu.org>
4596
4597 Fix PR i18n/761.
4598 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4599 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4600 $(PACKAGE).pot and update-po.
4601 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4602 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4603 (update-po): New rules.
4604 (localedir): Define using autoconf.
4605 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4606 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4607 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4608 * configure.in: Generate CATALOGS and LINGUAS from contents of
4609 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4610 * configure: Re-generate.
4611 * po/gdbtext: New file
4612
e92f3704
JG
46132004-07-30 Jerome Guitton <guitton@gnat.com>
4614
4615 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4616 order.
4617
b0f35d58
DL
46182004-07-30 David Lecomber <dsl@sources.redhat.com>
4619
4620 * dwarf2read.c (read_file_scope): Set producer if attribute
4621 present.
4622 (struct dwarf2_cu): Added new member producer.
4623
ce7d4522
JG
46242004-07-30 Jerome Guitton <guitton@gnat.com>
4625
4626 * inflow.c (kill_command): release file handles in BFD.
4627 * exec.c (exec_file_attach): Ditto.
4628 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4629
05ee07c7
AC
46302004-07-29 Andrew Cagney <cagney@gnu.org>
4631
4632 * PROBLEMS (mips-irix): Note that it is broken.
4633
62eceb47
AC
46342004-07-29 Andrew Cagney <cagney@gnu.org>
4635
e57b8d41
AC
4636 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4637 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4638
d334389b
AC
4639 * config/xm-nbsd.h: Delete file.
4640 * config/arm/xm-nbsd.h: Delete file.
4641 * config/i386/xm-nbsd.h: Delete file.
4642 * config/ns32k/xm-nbsd.h: Delete file.
4643 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4644 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4645 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4646 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4647 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4648
e910f676
AC
4649 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4650 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4651 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4652 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4653 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4654 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4655
6fa856b9
AC
4656 * config/powerpc/xm-linux.h: Delete empty file.
4657 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4658 * config/powerpc/linux.mh (XM_FILE): Delete.
4659 * config/m68k/xm-linux.h: Delete empty file.
4660 * config/m68k/linux.mh (XM_FILE): Delete.
4661 * config/ia64/xm-linux.h: Delete empty file.
4662 * config/ia64/linux.mh (XM_FILE): Delete.
4663 * config/arm/xm-linux.h: Delete empty file.
4664 * config/arm/linux.mh (XM_FILE): Delete.
4665
471ae5ae
AC
4666 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4667 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4668 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4669 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4670 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4671 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4672 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4673 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4674
62eceb47
AC
4675 * config/m68k/xm-m68k.h: Delete file.
4676 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4677 copyright.
4678 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4679 * config/pa/xm-linux.h: Delete empty file.
4680 * config/pa/linux.mh (XM_FILE): Delete.
4681 * config/i386/xm-i386.h: Delete empty file.
4682 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4683 "i386/xm-i386.h".
4684 * config/i386/obsdaout.mh (XM_FILE): Delete.
4685 * config/i386/obsd64.mh (XM_FILE): Delete.
4686 * config/i386/fbsd64.mh (XM_FILE): Delete.
4687 * config/i386/nto.mh (XM_FILE): Delete.
4688 * config/i386/obsd.mh (XM_FILE): Delete.
4689 * config/i386/linux64.mh (XM_FILE): Delete.
4690 * config/i386/linux.mh (XM_FILE): Delete.
4691 * config/i386/i386sol2.mh (XM_FILE): Delete.
4692 * config/i386/i386gnu.mh (XM_FILE): Delete.
4693 * config/i386/fbsd.mh (XM_FILE): Delete.
4694 * config/i386/nbsd64.mh (XM_FILE): Delete.
4695
c35f4ffc
AC
46962004-07-29 Andrew Cagney <cagney@gnu.org>
4697
4698 * config/pa/xm-linux.h: Do not include "floatformat.h".
4699 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4700 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4701 * config/i386/xm-i386.h: Do not include "floatformat.h".
4702 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4703 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4704 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4705 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4706 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4707 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4708 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4709 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4710 * configure, config.in: Regenerate.
4711 * configure.host (gdb_host_float_format, gdb_host_double_format)
4712 (gdb_host_long_double_format): Set according to the host.
4713
624a44a3
AC
47142004-07-29 Andrew Cagney <cagney@gnu.org>
4715
4716 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4717
0dea2468
AC
47182004-07-28 Andrew Cagney <cagney@gnu.org>
4719
4720 * PROBLEMS: Mention threads/1650.
4721 * NEWS: Mention the NPTL fix.
4722
b3f42336
AC
47232004-07-28 Andrew Cagney <cagney@gnu.org>
4724
4725 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4726 (add_setshow_cmd_full): Make static.
4727 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4728 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4729 * cli/cli-decode.c (add_setshow_filename_cmd)
4730 (add_setshow_string_cmd): New functions.
4731 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4732 * mips-tdep.c (_initialize_mips_tdep): Update.
4733 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4734 * cli/cli-logging.c (_initialize_cli_logging): Update.
4735 * complaints.c (_initialize_complaints): Update.
4736 * remote.c (_initialize_remote): Update.
4737
3b64bf98
AC
47382004-07-28 Andrew Cagney <cagney@gnu.org>
4739
4740 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4741 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4742 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4743 print parameters. Make string parameters constant.
4744 * command.h: Update. Update copyright.
4745 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4746 * observer.c (_initialize_observer): Ditto.
4747 * frame.c (_initialize_frame): Ditto.
4748 * complaints.c (_initialize_complaints): Ditto.
4749 * maint.c (_initialize_maint_cmds): Ditto.
4750 * target.c (initialize_targets): Ditto.
4751 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4752 * infcall.c (_initialize_infcall): Ditto.
4753 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4754 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4755 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4756 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4757 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4758
e9667a65
AC
47592004-07-28 Andrew Cagney <cagney@gnu.org>
4760
54a5b07d
AC
4761 * gdbtypes.c (lookup_primitive_typename): Delete function.
4762 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4763 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4764 * gdbtypes.c (lookup_typename): Ditto.
4765 * f-exp.y (yylex): Ditto.
4766 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4767
e9667a65
AC
4768 * scm-lang.c (c_builtin_types): Delete extern declaration.
4769 (scm_language_defn): Replace
4770 string_char_type and primitive_type_vector with
4771 la_language_arch_info.
4772 * jv-lang.c (java_language_defn): Replace
4773 string_char_type and primitive_type_vector with
4774 la_language_arch_info.
4775 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4776 c_builtin_types in comment.
4777 * c-lang.h (struct language_arch_info): Declare opaque.
4778 (c_language_arch_info): Declare.
4779 (c_builtin_types): Delete declaration.
4780 * c-lang.c (c_language_arch_info): Set string_char_type to
4781 builtin_char, not builtin_true_char. Make global.
4782 (c_builtin_types): Delete array.
4783 (asm_language_defn, minimal_language_defn): Replace
4784 string_char_type and primitive_type_vector with
4785 la_language_arch_info.
4786
685419e2
AC
47872004-07-28 Andrew Cagney <cagney@gnu.org>
4788
4789 * gdbtypes.h (struct builtin_type): Rename true_char to
4790 builtin_true_char.
4791 * gdbtypes.c (gdbtypes_post_init): Update.
4792 * c-lang.c (arch_info): New function.
4793 (enum c_primitive_types): New enum.
4794 (c_language_defn): Instead of string_char_type and
4795 primitive_type_vector set la_language_arch_info.
4796
5a44ea29
AC
47972004-07-28 Andrew Cagney <cagney@gnu.org>
4798
4799 * language.h (struct language_arch_info): Fix typo
4800 s/primative/primitive/.
4801 * gdbtypes.c (lookup_primitive_typename): Ditto.
4802 * language.c (language_lookup_primitive_type_by_name)
4803 (unknown_language_arch_info): Ditto.
4804
f290d38e
AC
48052004-07-27 Andrew Cagney <cagney@gnu.org>
4806
4807 * defs.h (enum language): Add nr_languages.
4808 * language.h (struct language_arch_info): Define.
4809 (struct language_defn): Add la_language_arch_info.
4810 (language_lookup_primative_type_by_name): Declare.
4811 (language_string_char_type): Declare.
4812 * language.c (_initialize_language, language_gdbarch_post_init)
4813 (struct language_gdbarch, language_gdbarch_data): Implement
4814 per-architecture language information.
4815 (unknown_language_arch_info, language_string_char_type)
4816 (language_lookup_primative_type_by_name): New functions.
4817 (unknown_language_defn, auto_language_defn)
4818 (local_language_defn): Set la_language_arch_info to
4819 unknown_language_arch_info.
4820 (unknown_builtin_types): Delete.
4821 * gdbtypes.c (lookup_primitive_typename): Use
4822 language_lookup_primative_type_by_name.
4823 (create_string_type): Use language_string_char_type.
4824 * values.c (value_from_string): Use language_string_char_type.
4825 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4826 * p-lang.c (pascal_language_defn): Ditto.
4827 * m2-lang.c (m2_language_defn): Ditto.
4828 * jv-lang.c (java_language_defn): Ditto.
4829 * objc-lang.c (objc_language_defn): Ditto.
4830 * f-lang.c (f_language_defn): Ditto.
4831 * c-lang.c (c_language_defn, cplus_language_defn)
4832 (asm_language_defn, minimal_language_defn): Ditto.
4833
000177f0
AC
48342004-07-27 Andrew Cagney <cagney@gnu.org>
4835
4836 * gdbtypes.h (struct builtin_type): Declare.
4837 (builtin_type): Declare.
4838 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4839 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4840 (gdbtypes_post_init): New function.
4841 (builtin_type): New function.
4842
e22f895c
KI
48432004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4844
4845 * remote-m32r-sdi.c: Fix breakpoint bug.
4846 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4847 recv_char_data, recv_long_data): New functions to replace communication
4848 sequences.
4849
536517dd
MC
48502004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4851
4852 Document PR threads/1650.
4853 * PROBLEMS (Threads): Document problem with many threads
4854
a0a44d18
AC
48552004-07-26 Andrew Cagney <cagney@gnu.org>
4856
4857 * gdb-mi.el: Move from here ...
4858 * mi/gdb-mi.el: ... to here.
4859
7ac4ac06
AC
48602004-07-26 Andrew Cagney <cagney@gnu.org>
4861
4862 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4863 * main.c (captured_main): When in batch mode always detach.
4864
a1b461bf
AC
48652004-07-26 Andrew Cagney <cagney@gnu.org>
4866
4867 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4868 and h8300 as broken.
4869 * NEWS: END-OF-LIFE frame compatibility module.
4870 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4871 specific comments.
4872
cb1a6d5f
AC
48732004-07-26 Andrew Cagney <cagney@gnu.org>
4874
4875 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4876 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4877 * wince.c (_initialize_wince): Update.
4878 * win32-nat.c (_initialize_win32_nat): Update.
4879 * varobj.c (_initialize_varobj): Update.
4880 * valops.c (_initialize_valops): Update.
4881 * utils.c (initialize_utils, initialize_utils): Update.
4882 * tui/tui-win.c (_initialize_tui_win): Update.
4883 * top.c (init_main): Update.
4884 * symfile.c (_initialize_symfile): Update.
4885 * source.c (_initialize_source): Update.
4886 * somsolib.c (_initialize_som_solib): Update.
4887 * solib.c (_initialize_solib): Update.
4888 * solib-frv.c (_initialize_frv_solib): Update.
4889 * serial.c (_initialize_serial): Update.
4890 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4891 * remote.c (_initialize_remote, _initialize_remote): Update.
4892 * remote-vx.c (_initialize_vx): Update.
4893 * remote-utils.c (_initialize_sr_support): Update.
4894 * remote-sds.c (_initialize_remote_sds): Update.
4895 * remote-mips.c (_initialize_remote_mips): Update.
4896 * remote-e7000.c (_initialize_remote_e7000): Update.
4897 * proc-api.c (_initialize_proc_api): Update.
4898 * printcmd.c: Update.
4899 * parse.c (_initialize_parse): Update.
4900 * pa64solib.c (_initialize_pa64_solib): Update.
4901 * p-valprint.c (_initialize_pascal_valprint): Update.
4902 * monitor.c (_initialize_remote_monitors): Update.
4903 * mips-tdep.c (_initialize_mips_tdep): Update.
4904 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4905 * maint.c (_initialize_maint_cmds): Update.
4906 * lin-lwp.c (_initialize_lin_lwp): Update.
4907 * language.c (_initialize_language): Update.
4908 * kod.c (_initialize_kod): Update.
4909 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4910 * i386-tdep.c (_initialize_i386_tdep): Update.
4911 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4912 * gdbarch.sh: Update.
4913 * gdbarch.c: Re-generate.
4914 * gdb-events.sh: Update.
4915 * gdb-events.c: Re-generate.
4916 * frame.c (_initialize_frame): Update.
4917 * exec.c: Update.
4918 * demangle.c (_initialize_demangler): Update.
4919 * dcache.c (_initialize_dcache): Update.
4920 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4921 * cp-valprint.c (_initialize_cp_valprint): Update.
4922 * corefile.c (_initialize_core): Update.
4923 * command.h: Update.
4924 * cli/cli-decode.h: Update.
4925 * cli/cli-cmds.c (init_cli_cmds): Update.
4926 * charset.c (_initialize_charset): Update.
4927 * breakpoint.c (_initialize_breakpoint): Update.
4928 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4929 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4930 * aix-thread.c (_initialize_aix_thread): Update.
4931
b4632131
MK
49322004-07-24 Mark Kettenis <kettenis@gnu.org>
4933
4934 Partial fix for PR backtrace/1718.
4935 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4936 that GCC migrates into the prolugue. Don't handle any
4937 instructions that clobber %ebx.
4938
822c9732
AC
49392004-07-23 Andrew Cagney <cagney@gnu.org>
4940
4941 Use regcache_raw_collect instead of regcache_collect.
4942 * regcache.h (regcache_collect): Delete declaration.
4943 * regcache.c (regcache_colect): Delete function.
4944 * win32-nat.c (do_child_store_inferior_registers): Update.
4945 * sol-thread.c (sol_thread_store_registers): Update.
4946 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4947 * rs6000-nat.c (store_register): Update.
4948 * remote.c (store_register_using_P, remote_store_registers): Update.
4949 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4950 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4951 (fill_vrregset, store_spe_registers, fill_gregset)
4952 (fill_gregset): Update.
4953 * nto-procfs.c (procfs_store_registers): Update.
4954 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4955 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4956 * m68klinux-nat.c (store_register, fill_gregset): Update.
4957 * m68k-tdep.c (fill_gregset): Update.
4958 * infptrace.c (store_register): Update.
4959 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4960 * i386-linux-nat.c (store_register, fill_gregset): Update.
4961 * hppa-linux-nat.c (fill_gregset): Update.
4962 * go32-nat.c (store_register): Update.
4963 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4964 (store_fp_regs): Update.
4965 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4966 (store_nwfpe_extended, store_fpregister, store_fpregs)
4967 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4968 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4969 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4970 (store_regs_user_thread, store_regs_kernel_thread): Update.
4971
32b05c07
MK
49722004-07-24 Mark Kettenis <kettenis@gnu.org>
4973
4974 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4975 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4976 encoding.
4977 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4978 member of `struct comp_unit'.
4979
8567c30f
AC
49802004-07-23 Andrew Cagney <cagney@gnu.org>
4981
4982 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4983 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4984
f6da8dd8
MH
49852004-07-23 Martin Hunt <hunt@redhat.com>
4986 Kevin Buettner <kevinb@redhat.com>
4987
4988 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4989 alignment was being added to the offset instead of multiplied.
4990
bd921882
MK
49912004-07-23 Mark Kettenis <kettenis@gnu.org>
4992
24f033e8
MK
4993 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4994 changed signal trampoline in OpenBSD 3.5-current.
4995
90f3cecd
MK
4996 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4997 <machine/pcb.h> and "bsd-kvm.h".
4998 (sparc64nbsd_supply_pcb): New function.
4999 (_initialize_sparc64nbsd_nat): Renamed from
5000 _initialize_sparcnbsd_nat. Enable libkvm interface.
5001 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5002 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5003 (LOADLIBES): New variable.
5004
a4954a62
MK
5005 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5006
bd921882
MK
5007 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5008
23a6d369
AC
50092004-07-21 Andrew Cagney <cagney@gnu.org>
5010
5011 Use regcache_raw_supply instead of supply_register.
5012 * regcache.h (supply_register): Delete declaration.
5013 * regcache.c (supply_register): Delete function.
5014 * wince.c (do_child_fetch_inferior_registers): Update.
5015 * win32-nat.c (do_child_fetch_inferior_registers)
5016 (fetch_elf_core_registers): Update.
5017 * v850ice.c (v850ice_fetch_registers): Update.
5018 * thread-db.c (thread_db_store_registers): Update.
5019 * sol-thread.c (sol_thread_store_registers): Update.
5020 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5021 * rs6000-nat.c (fetch_register): Update.
5022 * rom68k-rom.c (rom68k_supply_one_register): Update.
5023 * remote.c (remote_wait, remote_async_wait): Update.
5024 * remote-st.c (get_hex_regs): Update.
5025 * remote-sim.c (gdbsim_fetch_register): Update.
5026 * remote-sds.c (sds_fetch_registers): Update.
5027 * remote-rdp.c (remote_rdp_fetch_register): Update.
5028 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5029 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5030 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5031 * remote-hms.c (init_hms_cmds): Update.
5032 * remote-est.c (init_est_cmds): Update.
5033 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5034 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5035 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5036 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5037 (fetch_register, supply_vrregset, supply_vrregset)
5038 (fetch_spe_registers): Update.
5039 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5040 * monitor.c (monitor_supply_register): Update.
5041 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5042 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5043 (mipsnbsd_supply_fpreg): Update.
5044 * mips-nat.c (fetch_inferior_registers)
5045 (fetch_core_registers): Update.
5046 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5047 (supply_fpregset, mips64_supply_gregset)
5048 (mips64_supply_fpregset): Update.
5049 * m68klinux-nat.c (fetch_register, supply_gregset)
5050 (supply_fpregset): Update.
5051 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5052 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5053 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5054 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5055 * infptrace.c (fetch_register): Update.
5056 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5057 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5058 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5059 (gnu_fetch_registers, gnu_store_registers): Update.
5060 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5061 * i386-linux-nat.c (fetch_register, supply_gregset)
5062 (dummy_sse_values): Update.
5063 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5064 * hppah-nat.c (fetch_register): Update.
5065 * hppa-linux-nat.c (fetch_register, supply_gregset)
5066 (supply_fpregset): Update.
5067 * go32-nat.c (fetch_register): Update.
5068 * dve3900-rom.c (fetch_bitmapped_register)
5069 (_initialize_r3900_rom): Update.
5070 * cris-tdep.c (supply_gregset): Update.
5071 * abug-rom.c (init_abug_cmds): Update.
5072 * core-aout.c (fetch_core_registers): Update.
5073 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5074 (fetch_register, fetch_fp_register): Update.
5075 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5076 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5077 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5078 * alphanbsd-tdep.c (fetch_core_registers): Update.
5079 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5080 * alpha-nat.c (fetch_osf_core_registers)
5081 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5082 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5083 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5084
73cc75f3
AC
50852004-07-21 Andrew Cagney <cagney@gnu.org>
5086
5087 * PROBLEMS: Mention breakpoints/1702.
5088 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5089 that is known to work.
5090
a53c66de
AC
50912004-07-21 Andrew Cagney <cagney@gnu.org>
5092
5093 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5094 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5095 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5096 (handle_inferior_event): Wrap call to deprecated
5097 IGNORE_HELPER_CALL in #ifdef.
5098 * config/mips/tm-nbsd.h: Update.
5099
708ff411
JB
51002004-07-20 Jim Blandy <jimb@redhat.com>
5101
412b3060
JB
5102 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5103 bfd_mach_ppc has no segment registers.
5104
13ac140c
JB
5105 Include PowerPC SPR numbers for special-purpose registers.
5106 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5107 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5108 new member in initializer.
5109 (S, S4, SN4, S64): New macros for defining special-purpose
5110 registers.
5111 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5112 registers_403, registers_403GC, registers_505, registers_860,
5113 registers_601, registers_602, registers_603, registers_604,
5114 registers_750, registers_e500): Use them.
5115
708ff411
JB
5116 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5117 replace references with expression used to initialize variable.
5118
1f602b35
AC
51192004-07-20 Andrew Cagney <cagney@gnu.org>
5120
5121 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5122 read_memory_nobpt.
5123 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5124 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5125 (s390_sigtramp_frame_sniffer): Update.
5126 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5127 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5128 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5129 (mips32_fetch_instruction): Update.
5130 * mcore-tdep.c (get_insn): Update.
5131 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5132 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5133 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5134 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5135 (i386_linux_rt_sigtramp_start): Update.
5136 * i386-linux-nat.c (child_resume): Update.
5137 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5138 * hppa-linux-tdep.c (insns_match_pattern): Update.
5139 * gdbcore.h: Update.
5140 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5141 * frame.c (safe_frame_unwind_memory): Update.
5142 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5143 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5144 * alpha-tdep.c (alpha_read_insn): Update.
5145
2cd8546d
AC
51462004-07-20 Andrew Cagney <cagney@gnu.org>
5147
5148 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5149 containing both bytes and mask. Add "frame_type".
5150 * tramp-frame.c (tramp_frame_start): Update.
5151 (tramp_frame_prepend_unwinder): Update.
5152 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5153 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5154 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5155 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5156
f928dd62
EZ
51572004-07-19 Eli Zaretskii <eliz@gnu.org>
5158
5159 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5160 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5161 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5162 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5163
d5c560f7
AC
51642004-07-17 Andrew Cagney <cagney@gnu.org>
5165
860660cb
AC
5166 * NEWS, PROBLEMS: Update for 6.2.
5167
8c266f54
AC
5168 * README: Update to 6.2.
5169
a552edd9
AC
5170 * utils.c (xvasprintf): Call xstrvprintf.
5171
c4a172b5
AC
5172 * parse.c: Update copyright.
5173 (null_post_parser): Eliminate ARGSUSED.
5174
da745b36
AC
5175 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5176 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5177 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5178
9cbc6ef0
AC
5179 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5180 * ppc-linux-nat.c: Use "Linux kernel".
5181 * hppa-linux-tdep.c: Use GNU/Linux.
5182 * hppa-linux-nat.c: Use GNU/Linux.
5183 * dwarfread.c: Add [sic] to use of Linux.
5184
1b89295f
AC
5185 * hppa-linux-nat.c: Do not include <string.h>.
5186 (supply_fpregset): Remove "register" attribute.
5187
d5c560f7
AC
5188 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5189
7ddd7709
MK
51902004-07-17 Mark Kettenis <kettenis@gnu.org>
5191
b1d19a62
MK
5192 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5193 * configure, config.in: Regenerated.
5194
7ddd7709
MK
5195 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5196 "bsd-kvm.h".
5197 (vaxbsd_supply_pcb): New function.
5198 (_initialize_vaxbsd_nat): New prototype and function.
5199 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5200 solib-sunos.o.
5201 (LOADLIBES): New variable.
5202 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5203 (LOADLIBES): New variable.
5204 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5205 (LOADLIBES): New variable.
5206 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5207
2c07db7a
AC
52082004-07-16 Andrew Cagney <cagney@gnu.org>
5209
5210 * defs.h (event_loop_p): Replace variable declaration with macro,
5211 always 1.
5212 * main.c (captured_main): Delete options "-async" and "-noasync".
5213 (event_loop_p): Delete variable.
5214 * NEWS: Mention that "-async" and "-noasync" were removed.
5215
717eb1cf
AC
52162004-07-16 Andrew Cagney <cagney@gnu.org>
5217
5218 * remote-m32r-sdi.c: Re-indent.
5219
c101bc14
JB
52202004-07-16 Jim Blandy <jimb@redhat.com>
5221
5109a438
JB
5222 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5223 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5224 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5225 missing MPC823 SPRs.
5226 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5227 incorrect. (This was corrected in GDB's register name tables on
5228 2004-07-14.)
5229
c101bc14
JB
5230 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5231 should be "esasrr" ("ESA Save and Restore Register").
5232
7ce450bd
AC
52332004-07-16 Andrew Cagney <cagney@gnu.org>
5234
5235 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5236 calls, no longer applicable. Update comments and rename parameter
5237 "step_frame" to "return_frame".
5238
ca73dd9d
AC
52392004-07-16 Andrew Cagney <cagney@gnu.org>
5240
5241 * frame.c (fprint_field): New function.
5242 (fprint_frame_id): Use fprint_field.
5243
31941f6d
JB
52442004-07-15 Joel Brobecker <brobecker@gnat.com>
5245
5246 * ada-lang.c (ada_language_defn): Remove commented out code.
5247
f86a7158
JB
52482004-07-15 Jim Blandy <jimb@redhat.com>
5249
5250 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5251 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5252
c24791ec
JB
52532004-07-14 Jim Blandy <jimb@redhat.com>
5254
29bb1356
JB
5255 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5256
cc98b5cc
JB
5257 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5258
8f088af7
JB
5259 * ppc-tdep.h (ppc_num_srs): New enum constant.
5260
0ea0ec5f
JB
5261 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5262 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5263 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5264 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5265 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5266 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5267 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5268 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5269 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5270 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5271 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5272 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5273 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5274 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5275 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5276 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5277 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5278 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5279 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5280 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5281 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5282 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5283 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5284 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5285 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5286 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5287 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5288 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5289 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5290 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5291 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5292 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5293 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5294 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5295 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5296 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5297 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5298 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5299 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5300 special-purpose register numbers.
5301
c24791ec
JB
5302 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5303 manual mentions 'md_twb', but many mention 'm_twb', and at that
5304 point in the register list.)
5305
d833db3b
AC
53062004-07-14 Andrew Cagney <cagney@gnu.org>
5307
5308 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5309 instead of "internal-error".
5310
080228b2
JB
53112004-07-10 Joel Brobecker <brobecker@gnat.com>
5312
5313 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5314 that was inserted inside a comment.
5315
c268433a
RC
53162004-07-10 Randolph Chung <tausq@debian.org>
5317
5318 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5319 function.
5320 (hppa_hpux_push_dummy_code): New function.
5321 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5322 Set find_global_pointer method.
5323
71009278
MK
53242004-07-10 Mark Kettenis <kettenis@gnu.org>
5325
5326 * NEWS: Mention BSD libkvm interface.
5327
b2fa5097
MS
53282004-07-10 Michael Snyder <msnyder@redhat.com>
5329
5330 * symfile.c (generic_load): Comment typo.
5331 * stack.c (get_selected_block): Ditto.
5332 * regcache.c (regcache_cooked_read): Ditto.
5333 * monitor.c (monitor_debug): Ditto.
5334 * mips-tdep.c (mips_read_pc): Ditto.
5335 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5336 * gdb_mbuild.sh: Ditto.
5337 * gdbarch.sh: Ditto.
5338 * gdbarch.h: Ditto.
5339
c3e5cd34
PH
53402004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5341
8a2225b2
PH
5342 * ada-tasks.c: Remove file.
5343
c3e5cd34
PH
5344 Remove ARI problems:
5345
5346 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5347 beginning of line.
5348
5349 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5350 Add comment.
5351 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5352 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5353 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5354 (UMIN_OF_SIZE): Remove.
5355 (max_of_type): New function to replace orphan macro in gdbtypes.h
5356 (min_of_type): Ditto.
5357 (discrete_type_high_bound): Use max_of_type.
5358 (discrete_type_low_bound): Use min_of_type.
5359 (possible_user_operator_p): Move operator to beginning of line.
5360 (ada_is_variant_part): Ditto.
5361 (ensure_lval): Rewrite to avoid deprecated operations.
5362 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5363 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5364 (ada_enum_name): Remove assignments in 'if' statements.
5365 (build_ada_types): Add gdbarch parameter.
5366 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5367 with gdbarch_data_register_post_init.
5368 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5369 add_show_from_set.
5370
5371 * ada-valprint.c (inspect_it): Remove declaration.
5372 (repeat_count_threshold): Remove declaration.
5373 (ada_print_floating): Remove assignments in 'if' statements.
5374 (print_str): Move operator to beginning of line.
5375
61ce229a
JB
53762004-07-08 Jim Blandy <jimb@redhat.com>
5377
5378 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5379
09bcec80
BR
53802004-07-08 Bob Rossi <bob@brasko.net>
5381
5382 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5383
31c27f77
JJ
53842004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5385
5386 * language.h (struct_language_defn): Add new function pointer:
5387 la_class_name_from_physname. Also add new prototype for
5388 language_class_name_from_physname.
5389 * language.c (language_class_name_from_physname): New function.
5390 (unk_lang_class_name): Ditto.
5391 (unknown_language_defn, auto_language_defn): Change
5392 to add unk_lang_class_name function pointer for
5393 la_class_name_from_physname.
5394 (local_language_defn): Ditto.
5395 * dwarf2read.c (guess_structure_name): Change to call
5396 language_class_name_from_physname.
5397 (determine_class_name): Ditto.
5398 * cp-support.c (class_name_from_physname): Renamed.
5399 (cp_class_name_from_physname): New name of function.
5400 * cp-support.h: Ditto.
5401 * c-lang.c (c_language_defn): Change to add NULL
5402 for class_name_from_physname function pointer.
5403 (cplus_language_defn): Change to add cp_class_name_from_physname.
5404 * jv-lang.c (java_class_name_physname): New function.
5405 (java_find_last_component): New static routine.
5406 (java_language_defn): Add java_class_name_from_physname pointer.
5407 * ada-lang.c (ada_language_defn): Change to add NULL
5408 for class_name_from_physname function pointer.
5409 * f-lang.c (f_language_defn): Ditto.
5410 * m2-lang.c (m2_language_defn): Ditto.
5411 * objc-lang.c (objc_language_defn): Ditto.
5412 * p-lang.c (pascal_language_defn): Ditto.
5413 * scm-lang.c (scm_language_defn): Ditto.
5414
ee28ca0f
AC
54152004-07-06 Andrew Cagney <cagney@gnu.org>
5416
5417 Patch from Bart Robinson.
5418 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5419 (O_LARGEFILE): Define to 0, if not defined.
5420
fdb1bf9d
MK
54212004-07-03 Mark Kettenis <kettenis@gnu.org>
5422
cb162ff6
MK
5423 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5424 <machine/pcb.h> and "bsd-kvm.h".
5425 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5426 (m68kbsd_supply_pcb): New function.
5427 (_initialize_m68kbsd_nat): New prototype and function.
5428 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5429 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5430 (LOADLIBES): New variable.
5431 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5432 (LOADLIBES): New variable.
5433
fdb1bf9d
MK
5434 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5435
963c4174
MK
54362004-07-03 Mark Kettenis <kettenis@gnu.org>
5437
5438 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5439 <sys/proc.h>.
5440 (bsd_kvm_cmdlist): New variable.
5441 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5442 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5443 command and "kvm proc" command.
5444 * Makefile.in (bsd-kvm.o): Update dependencies.
5445
533f1d8f
MK
54462004-07-02 Mark Kettenis <kettenis@gnu.org>
5447
5448 * osabi.c: Update copyright year.
5449 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5450 notes if EI_OSABI is set to ELFOSABI_HPUX.
5451
6780dcde
MS
54522004-07-01 Michael Snyder <msnyder@redhat.com>
5453
5454 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5455 that seems to have gotten whacked out of line.
5456
67bebe79
MK
54572004-07-01 Mark Kettenis <kettenis@gnu.org>
5458
5459 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5460 code.
5461
0b5d8877
PH
54622004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5463
5464 * ada-lang.c (decode_packed_array): Minor change to comment.
5465 (ada_value_slice_ptr): New function.
5466 (ada_value_slice): New function.
5467 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5468 test. Don't know why it is there.
5469 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5470 to avoid dereferencing huge arrays from which one is slicing.
5471 (empty_array): Correct to return an array rather than
5472 a subrange value.
5473 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5474 on empty arrays (let'em use 'FIRST instead).
5475
19c1ef65
PH
54762004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5477
5478 Address complaints from gdb_ari.sh:
5479
5480 * ada-exp.y: Include gdb_string.h rather than string.h.
5481 (convert_char_literal): Reformat declaration.
5482 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5483 * ada-lex.l: Change use of free to xfree (the macro would do so
5484 anyway, but this is harmless).
5485 Include gdb_string.h rather than string.h.
5486 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5487
5488 * ada-lang.c (parse): Remove K&Rism in parameter list.
5489 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5490
d81cbc94
MK
54912004-06-30 Mark Kettenis <kettenis@gnu.org>
5492
5493 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5494 dead code.
5495
07681759
MK
54962004-06-30 Mark Kettenis <kettenis@gnu.org>
5497
5498 * alphabsd-nat.c: Update copyright year.
5499 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5500
f7948b5f
JB
55012004-06-29 Joel Brobecker <brobecker@gnat.com>
5502
6e0cdd28 5503 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
5504 (i386_cygwin_in_solib_call_trampoline): New function.
5505 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5506 and skip_trampoline_code gdbarch methods.
5507
8f113c9a
JB
55082004-06-29 Jim Blandy <jimb@redhat.com>
5509
5510 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5511 name actually used in the dependency lists.
5512
97dc871c
RC
55132004-06-29 Randolph Chung <tausq@debian.org>
5514
5515 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5516
47216e51
CV
55172004-06-29 Corinna Vinschen <vinschen@redhat.com>
5518
5519 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 5520 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
5521 functionality.
5522
e623b504
AC
55232004-06-28 Andrew Cagney <cagney@gnu.org>
5524
5525 * defs.h (xstrvprintf): Declare.
5526 * utils.c (xstrvprintf): New function.
5527 (internal_vproblem, xstrprintf, xasprintf)
5528 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5529 * serial.c (serial_printf): Ditto.
5530 * complaints.c (vcomplaint): Ditto.
5531
79acc9b3
CV
55322004-06-29 Corinna Vinschen <vinschen@redhat.com>
5533
5534 * infcmd.c (attach_command): Move call to target_terminal_inferior
5535 behind loading symbol table.
5536
1daf35d9
AC
55372004-06-28 Andrew Cagney <cagney@gnu.org>
5538
5539 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5540 change - add back extern deprecated_ui_loop_hook declaration.
5541
b435e160
AC
55422004-06-28 Andrew Cagney <cagney@gnu.org>
5543
5544 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5545 xstrprintf.
5546 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5547 (c_value_of_variable): Ditto.
5548 * utils.c (internal_vproblem): Ditto.
5549 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5550 * remote.c (add_packet_config_cmd): Ditto.
5551 * remote-rdp.c (rdp_set_command_line): Ditto.
5552 * regcache.c (regcache_dump): Ditto.
5553 * frv-tdep.c (new_variant, new_variant): Ditto.
5554 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5555 (fbsd_find_memory_regions): Ditto.
5556 * breakpoint.c (create_thread_event_breakpoint)
5557 (create_breakpoints): Ditto.
5558 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5559 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5560
06d5cf63
JB
55612004-06-28 Joel Brobecker <brobecker@gnat.com>
5562
5563 * ada-lang.c: Re-indent file, with some massaging to help indent
5564 a bit when the result is otherwise really too ugly.
5565
35809fad
UW
55662004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5567
5568 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5569 code_addr_p and special_addr_p to 'unsigned int'.
5570
40e20472
MK
55712004-06-27 Mark Kettenis <kettenis@gnu.org>
5572
5573 * i386v4-nat.c: Update copyright year and tweak comment.
5574 (regmap): Remove trailing comma.
5575 (supply_gregset): Rename local variable i to regnum. Call
5576 regcache_raw_supply instead of supply_register.
5577 (fill_gregset): Rename argument regno to regnum. Call
5578 regcache_raw_collect instead of regcache_collect.
5579
12b0b6de
UW
55802004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5581
5582 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5583 and special_addr_p.
5584 (frame_id_build, frame_id_build_special): Update comments.
5585 (frame_id_build_wild): New prototype.
5586 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5587 struct frame_id fields.
5588 (frame_id_build_wild): New function.
5589 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5590
47b42a3e
MK
55912004-06-27 Mark Kettenis <kettenis@gnu.org>
5592
5593 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5594 hppabsd-tdep.c.
5595
1265e4aa
JB
55962004-06-27 Joel Brobecker <brobecker@gnat.com>
5597
5598 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5599
76a01679
JB
56002004-06-27 Joel Brobecker <brobecker@gnat.com>
5601
5602 * ada-lang.c: Re-indent file.
5603
7aca490a
JB
56042004-06-27 Joel Brobecker <brobecker@gnat.com>
5605
5606 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5607 (no_symtab_msg): Likewise.
5608
5e987968
AS
56092004-06-27 Andreas Schwab <schwab@suse.de>
5610
5611 * source.c: Fix whitespace.
5612
315c4276
MK
56132004-06-27 Mark Kettenis <kettenis@gnu.org>
5614
d15be926
MK
5615 * configure.in: Include <sys/param.h> for td_pcb test.
5616 * configure: Regenerated.
5617
9062529b
MK
5618 * i386nbsd-nat.c: New file.
5619 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5620 i386obsd-nat.c and i386obsd-tdep.c.
5621 (i386nbsd-nat.o): New dependency.
5622 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5623 bsd-kvm.o.
5624 (LOADLIBES): New variable.
5625 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5626 bsd-kvm.o.
5627 (LOADLIBES): New variable.
5628
8010310e
MK
5629 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5630 (LOADLIBES): New variable.
5631
efe1d7b9
MK
5632 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5633 fetching from BSD_KVM_PADDR. Correctly lookup address for
5634 "_thread0".
5635
315c4276
MK
5636 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5637 "bsd-kvm.h".
5638 (amd64fbsd_supply_pcb): New funcion.
5639 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5640
399cfac6
DL
56412004-06-27 <david@streamline-computing.com>
5642
5643 Partial fix for PR cli/1056.
5644 * valarith.c: Check for zero in division and remainder
5645 evaluation.
5646
6235f9c8
MK
56472004-06-27 Mark Kettenis <kettenis@gnu.org>
5648
5649 * i387-tdep.c: Remove excessive whitespace.
5650
2726dafc
AC
56512004-06-26 Andrew Cagney <cagney@gnu.org>
5652
5653 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5654 * gdb-events.h, gdb-events.c: Re-generate.
5655 * tui/tui-hooks.c (tui_install_hooks): Update.
5656 (tui_remove_hooks): Update.
5657 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5658
0e56aeaf
MK
56592004-06-26 Mark Kettenis <kettenis@gnu.org>
5660
cb461069
MK
5661 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5662 (gregset_t, fpregset_t): Remove typedefs.
5663 (REG_OFFSET): Rename argument.
5664 (amd64bsd_r_reg_offset): Rename from reg_offset.
5665 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5666 Remove functions.
5667 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5668 of reg_offset.
5669 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5670
ecba89de
MK
5671 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5672
4cd80476
MK
5673 * vax-tdep.c: Tweak comment.
5674
0e56aeaf
MK
5675 Add OpenBSD/hppa support.
5676 * NEWS (New native configurations): Mention OpenBSD/hppa.
5677 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5678 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5679 files.
5680 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5681 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5682 * configure.host: Add hppa*-*-openbsd*.
5683 * configure.tgt: Add hppa*-*-openbsd*.
5684
98bbd631
AC
56852004-06-25 Andrew Cagney <cagney@gnu.org>
5686
5687 * defs.h (deprecated_ui_loop_hook): Deprecated.
5688 * wince.c (child_wait): Update.
5689 * win32-nat.c (child_wait): Update.
5690 * v850ice.c (v850ice_wait): Update.
5691 * top.c (deprecated_ui_loop_hook): Update.
5692 * serial.h: Update.
5693 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5694 (do_unix_readchar): Update.
5695 * ser-tcp.c (net_open): Update.
5696 * remote-sim.c (gdb_os_poll_quit): Update.
5697 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5698
769d7dc4
AC
56992004-06-24 Andrew Cagney <cagney@gnu.org>
5700
5701 * defs.h (deprecated_pre_add_symbol_hook)
5702 (deprecated_post_add_symbol_hook): Deprecated.
5703 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5704 (symbol_file_add_with_addrs_or_offsets): Update references.
5705
11c949aa
AC
57062004-06-24 Andrew Cagney <cagney@gnu.org>
5707
5708 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5709 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5710 * wince.c (ui_loop_hook): Delete extern declaration.
5711 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5712 * v850ice.c (ui_loop_hook): Delete extern declaration..
5713 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5714 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5715 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5716 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5717 ui_loop_hook declaration.
5718
eedc19af
AC
57192004-06-24 Andrew Cagney <cagney@gnu.org>
5720
5721 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5722 entry_func_highpc fields.
5723 * objfiles.c (init_entry_point_info): Do not clear
5724 entry_func_lowpc and entry_func_highpc.
5725 (objfile_relocate): Do not relocate entry_func_lowpc and
5726 entry_func_highpc.
5727 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5728 entry_func_highpc.
5729 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5730 entry_func_highpc.
5731 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5732 entry_func_lowpc and entry_func_highpc with call to
5733 inside_entry_func.
5734
d47079be
MK
57352004-06-24 Mark Kettenis <kettenis@gnu.org>
5736
5737 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5738 quad-precision floating point arguments in registers.
5739
2107e348
MK
57402004-06-24 Mark Kettenis <kettenis@gnu.org>
5741
5742 From Michael Mueller <m.mueller99@kay-mueller.de>:
5743 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5744 account.
5745
46587c42
JJ
57462004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5747
5748 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5749 to -1.
5750 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5751 untriggered watchpoints to a separate if clause. Update function
5752 comment regarding STOPPED_BY_WATCHPOINT argument.
5753
226f5cf4
JB
57542004-06-22 Jim Blandy <jimb@redhat.com>
5755
5756 * gdbarch.sh: Doc fix.
5757
f10683bb
MH
57582004-06-21 Martin Hunt <hunt@redhat.com>
5759 Kevin Buettner <kevinb@redhat.com>
5760
5761 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5762 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5763 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5764 to set_gdbarch_sp_regnum(). Use cooked register number.
5765 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5766
412d5987
AC
57672004-06-21 Andrew Cagney <cagney@gnu.org>
5768
5769 * gdbarch.sh: When the macro field is empty, do not generate a
5770 macro definition. When the macro field is "=", generate the macro
5771 name from the upper-case function name.
5772 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5773 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5774 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5775 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5776 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5777 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5778 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5779 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5780 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5781 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5782 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5783 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5784 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5785 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5786 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5787 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5788 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5789 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5790 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5791 (DEPRECATED_USE_STRUCT_CONVENTION)
5792 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5793 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5794 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5795 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5796 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5797 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5798 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5799 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5800 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5801 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5802 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5803 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5804 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5805 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5806 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5807 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5808 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5809 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5810
68908a3e
AC
58112004-06-21 Andrew Cagney <cagney@gnu.org>
5812
48f7351b
AC
5813 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5814 macro name, and the function rather than macro value. Only wrap
5815 macro print statements in #ifdef. Move format logic to where it
5816 is needed.
5817 * gdbarch.c: Re-generate.
5818
283354d8
AC
5819 * gdbarch.sh (read): Delete "print_p" and "description", add
5820 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5821 Delete references to print_p.
5822 (TARGET_ARCHITECTURE): Delete print predicate.
5823 * gdbarch.c: Re-generate.
5824
68908a3e
AC
5825 * gdbarch.sh: Check that multi-arch methods do not provide a
5826 macro.
5827 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5828 (print_registers_info, print_float_info, print_vector_info)
5829 (adjust_breakpoint_address, remote_translate_xfer_address)
5830 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5831 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5832 name from the multi-arch definition.
5833
a2428dbe
AC
58342004-06-20 Andrew Cagney <cagney@gnu.org>
5835
5836 * gdbarch.sh: Sort by the function, instead of macro name.
5837 * gdbarch.c: Re-generate.
5838
750eb019
AC
58392004-06-20 Andrew Cagney <cagney@gnu.org>
5840
66d659b1
AC
5841 * gdbarch.sh: Use the function, instead of macro name in
5842 errors and the log file.
5843 (return_value): Remove stray ":" in spec.
5844
750eb019
AC
5845 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5846 * gdbarch.h, gdbarch.c: Re-generate.
5847 * Makefile.in (arch-utils.o): Update dependencies.
5848 * values.c (using_struct_return): Move code calling
5849 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5850 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5851 to legacy_return_value, simplify.
5852 * infcmd.c (print_return_value): Move code calling
5853 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5854 to legacy_return_value, simplify.
5855 * infcall.c (call_function_by_hand): Move code calling
5856 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5857 * arch-utils.c: Update copyright. Include "gdbcore.h".
5858 (legacy_return_value): New function.
5859 * arch-utils.h: Update copyright.
5860 (legacy_return_value): Declare.
5861
b5622e8d
AC
58622004-06-20 Andrew Cagney <cagney@gnu.org>
5863
5864 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5865 * gdbarch.h, gdbarch.c: Re-generate.
5866 * values.c (using_struct_return): Update call.
5867 * mcore-tdep.c: Update comment.
5868 * infcall.c (call_function_by_hand): Update comment.
5869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5870 * arch-utils.h (always_use_struct_convention): Update.
5871 * v850-tdep.c (v850_gdbarch_init): Update.
5872 * sh64-tdep.c (sh64_gdbarch_init): Update.
5873 * sh-tdep.c (sh_gdbarch_init): Update.
5874 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5875 * mips-tdep.c (mips_gdbarch_init): Update.
5876 * mcore-tdep.c (mcore_gdbarch_init): Update.
5877 * m32r-tdep.c (m32r_gdbarch_init): Update.
5878 * ia64-tdep.c (ia64_gdbarch_init): Update.
5879 * h8300-tdep.c (h8300_gdbarch_init): Update.
5880 * frv-tdep.c (frv_gdbarch_init): Update.
5881 * cris-tdep.c (cris_gdbarch_init): Update.
5882 * arm-tdep.c (arm_gdbarch_init): Update.
5883 * alpha-tdep.c (alpha_gdbarch_init): Update.
5884
5191de37
MC
58852004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5886
5887 * PROBLEMS: Add more specific information, and a work-around,
5888 for PR gdb/1458.
5889
782263ab
AC
58902004-06-18 Andrew Cagney <cagney@gnu.org>
5891
5892 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5893 * gdbarch.h, gdbarch.c: Re-generate.
5894 * ada-lang.c (ada_finish_decode_line_1): Update.
5895 * infrun.c (handle_inferior_event): Update.
5896 * infcall.c (find_function_addr): Update.
5897 * linespec.c (minsym_found): Update.
5898 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5899 Update.
5900 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5901 * cli/cli-cmds.c (disassemble_command): Update.
5902 * vax-tdep.c (vax_gdbarch_init): Update.
5903
2f305df1
MK
59042004-06-18 Mark Kettenis <kettenis@gnu.org>
5905
5906 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5907
e5fe55f7
AC
59082004-06-17 Andrew Cagney <cagney@gnu.org>
5909
5910 GDB 6.1.1 released from the GDB 6.1 branch.
5911 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5912 * PROBLEMS: Ditto.
5913
473b7be6
DJ
59142004-06-16 Daniel Jacobowitz <dan@debian.org>
5915
5916 PR gdb/1658
5917 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5918 operation as a uleb128. Found by Michael Coulter.
5919
96d887e8
PH
59202004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5921
5922 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5923 make it non-static.
5924 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5925 to ada-lang.h; this is needed to be able to implement the kill command
5926 in multi-task mode.
5927 (task_ptid): Ditto.
5928 (task_entry): Ditto.
5929 (task_list): Ditto.
5930 (ada_build_task_list): Ditto.
5931
5932 * ada-lang.c: Conditionalize routines and data structures related
5933 to breakpoints, exceptions, completion, and symbol caching on
5934 GNAT_GDB, since these are not yet used in the submitted public sources.
5935 (ada_main_name): Editorial: Move definition out of exception-related
5936 code.
5937
31eef181
AC
59382004-06-15 Andrew Cagney <cagney@gnu.org>
5939
5940 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5941 deprecated_pc_in_call_dummy.
5942
2c500098
AM
59432004-06-15 Alan Modra <amodra@bigpond.net.au>
5944
5945 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5946 bfd_get_section_size_before_reloc or _raw_size.
5947 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5948 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5949 (dwarf2_read_section): Likewise.
5950 * elfread.c (elf_locate_sections): Likewise.
5951 * gcore.c (derive_heap_segment): Likewise.
5952 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5953 * remote-e7000.c (e7000_load): Likewise.
5954 * remote-m32r-sdi.c (m32r_load): Likewise.
5955 * remote-mips.c (mips_load_srec): Likewise.
5956 (pmon_load_fast): Likewise.
5957 * remote.c (compare_sections_command): Likewise.
5958 * symfile.c (add_section_size_callback): Likewise.
5959 (load_section_callback): Likewise.
5960 (pc_in_unmapped_range): Likewise.
5961 (pc_in_mapped_range): Likewise.
5962 (sections_overlap): Likewise.
5963 (list_overlays_command): Likewise.
5964 (simple_overlay_update_1): Likewise.
5965 (simple_overlay_update): Likewise.
5966 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5967 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5968
90f943f1
RC
59692004-06-14 Randolph Chung <tausq@debian.org>
5970
5971 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5972 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5973 static.
5974 (hppa_hpux_inferior_created): New function.
5975 (hppa_hpux_init_abi): Register observer.
5976 * symfile.c (hp_cxx_exception_support_initialized)
5977 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5978 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5979
700c15aa
RC
59802004-06-14 Randolph Chung <tausq@debian.org>
5981
3973a7d3
AC
5982 * MAINTAINERS (Write After Approval): Alphabetize my entry
5983 correctly.
700c15aa 5984
cea4838c
AC
59852004-06-14 Andrew Cagney <cagney@gnu.org>
5986
5987 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5988 testsuite maintainer.
5989
97092415
AC
59902004-06-13 Andrew Cagney <cagney@gnu.org>
5991
e8c3165b
AC
5992 * infcmd.c (print_return_value): Fix logic, allow
5993 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5994
bceabdd8
AC
5995 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5996 defining any macros.
5997 * gdbarch.h: Re-generate.
5998
57010b1c
AC
5999 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6000 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6001 * gdbarch.h: Re-generate.
6002
bc87dfa0
AC
6003 * values.c (generic_use_struct_convention): Don't check gcc_p.
6004
15ac804d
AC
6005 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6006 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6007 * gdbarch.h, gdbarch.c: Regenerate.
6008 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6009 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6011 deprecated_max_register_raw_size and
6012 deprecated_max_register_virtual_size.
6013 * v850-tdep.c (v850_gdbarch_init): Ditto.
6014 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6015 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6017 * cris-tdep.c (cris_gdbarch_init): Ditto.
6018
97092415
AC
6019 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6020 * gdbarch.h, gdbarch.c: Re-generate.
6021 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6022 (m68hc11_use_struct_convention): Delete function.
6023 (m68hc11_extract_struct_value_address): Delete function.
6024 (m68hc11_return_value): New function.
6025 (m68hc11_gdbarch_init): Instead of store_return_value,
6026 extract_return_value, return_value_on_stack,
6027 deprecated_extract_struct_value_address and use_struct_convention,
6028 set return_value.
6029 * values.c (using_struct_return): Do not call
6030 RETURN_VALUE_ON_STACK.
6031 * arch-utils.h (generic_return_value_on_stack_not): Delete
6032 declaration.
6033 * arch-utils.c (generic_return_value_on_stack_not): Delete
6034 function.
6035
44e5158b
AC
60362004-06-12 Andrew Cagney <cagney@gnu.org>
6037
6038 * values.c (register_value_being_returned): Delete function.
6039 * infcmd.c (legacy_return_value): Delete function.
6040 * infcall.c (call_function_by_hand): Inline
6041 "register_value_being_returned", simplify.
6042 * values.c (using_struct_return): Update comment, refer to
6043 print_return_value instead of register_value_being_returned.
6044 * infcmd.c (print_return_value): Inline calls to
6045 register_value_being_returned and legacy_return_value. Simplify.
6046
b887c273
RC
60472004-06-11 Randolph Chung <tausq@debian.org>
6048
6049 * somread.c (som_symtab_read): Exclude gcc local symbols.
6050
1b2bfbb9
RC
60512004-06-11 Randolph Chung <tausq@debian.org>
6052
3973a7d3
AC
6053 * infrun.c (handle_inferior_event): Handle the case when a
6054 trampoline ends up in the runtime resolver, and if the trampoline
6055 has no name. Rearrange the code so that all the trampoline
6056 processing happens before other step-out-of-range handling.
1b2bfbb9 6057
a9d61c86
MH
60582004-06-11 Martin Hunt <hunt@redhat.com>
6059
6060 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6061 has no fpu.
6062
2c87cf5a
AC
60632004-06-10 Andrew Cagney <cagney@gnu.org>
6064
6065 * blockframe.c (legacy_inside_entry_func): Delete.
6066 (legacy_frame_chain_valid): Inline call to
6067 legacy_inside_entry_func, simplify.
6068
0b67b468 60692004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
6070
6071 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
6072 * dwarf2read.c (partial_die_info): Add dirname field.
6073 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6074 (read_partial_die): Save away DW_AT_comp_dir.
6075 * defs.h (symtab_to_filename): Removed.
6076 * source.c (find_and_open_source): Added.
57c22c6c 6077 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
6078 (symtab_to_filename): Removed.
6079 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
6080 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6081 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6082 symtab_to_filename.
6083 * symtab.h (partial_symtab): Add dirname field.
6084 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
6085 (mi_cmd_file_list_exec_source_file): Call new function
6086 symtab_to_fullname to find fullname.
57c22c6c 6087 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 6088 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
6089 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6090
9a1dd1ad
AC
60912004-06-10 Andrew Cagney <cagney@gnu.org>
6092
239ae8c7
AC
6093 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6094 to generic_use_struct_convention, the default value.
6095
fc720350
AC
6096 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6097 of abort.
6098
9a1dd1ad
AC
6099 * ns32k-tdep.c (ns32k_push_arguments): New function.
6100 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6101 * infcall.c (call_function_by_hand): Call error instead of
6102 legacy_push_arguments.
6103 * value.h (legacy_push_arguments): Delete declaration.
6104 * valops.c (legacy_push_arguments): Delete function.
6105 (value_push): Delete function.
6106
fea25152
BF
61072004-06-10 Brian Ford <ford@vss.fsi.com>
6108
6109 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6110 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6111 info.
6112 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6113
30a4a8e0
AC
61142004-06-10 Andrew Cagney <cagney@gnu.org>
6115
6116 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6117 * gdbarch.h, gdbarch.c: Re-generate.
6118 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6119 parameters.
6120 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6121 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6122 deprecated_pc_in_call_dummy instead of
6123 DEPRECATED_PC_IN_CALL_DUMMY.
6124 (arm_skip_prologue): Ditto.
6125 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6126 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6127 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6128 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6129 Ditto.
6130 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6131 (sh64_init_extra_frame_info, sh64_get_saved_register)
6132 (sh64_pop_frame): Ditto.
6133 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6134 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6135 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6136 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6137 (h8300_pop_frame): Ditto.
6138 * blockframe.c (legacy_inside_entry_func)
6139 (legacy_frame_chain_valid): Ditto.
6140 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6141 to deprecated_pc_in_call_dummy.
6142
81cfbe54
AC
61432004-06-09 Andrew Cagney <cagney@gnu.org>
6144
a1f4a1b6
AC
6145 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6146 provide a default value.
6147 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6148 * gdbarch.h, gdbarch.c: Re-generate.
6149 * arch-utils.c (generic_convert_register_p): Rename
6150 legacy_convert_register_p
6151 (legacy_register_to_value, legacy_value_to_register): Delete
6152 functions.
6153 * arch-utils.h (generic_convert_register_p): Rename
6154 legacy_convert_register_p.
6155 (legacy_register_to_value, legacy_value_to_register): Delete
6156 declarations.
6157
9730f241
AC
6158 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6159 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6160 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6161 * gdbarch.h, gdbarch.c: Re-generate.
6162 * infcmd.c (default_print_registers_info): Simplify.
6163 * findvar.c (value_of_register): Simplify.
6164 * mi/mi-main.c (get_register): Simplify.
6165 * arch-utils.c (legacy_convert_register_p): Always return 0.
6166 (legacy_register_to_value, legacy_value_to_register): Always call
6167 internal_error.
6168
8a1bf479
AC
6169 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6170 #ifdef CLEAR_INSN_CACHE code.
6171 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6172 Delete #ifdef CLEAR_DEFERRED_STORES code.
6173
4b38d6f1
AC
6174 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6175
2d62ecc7
AC
6176 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6177 copyright.
6178 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6179
be4f7469
AC
6180 * config/mips/mipsv4.mh: Delete file.
6181
81cfbe54
AC
6182 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6183 unreferenced macro.
6184 (hpread_adjust_stack_address): Delete declaration.
6185
d966f0cb
AC
61862004-06-08 Andrew Cagney <cagney@gnu.org>
6187
6188 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6189 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6190 PTRACE_ATTACH / PTRACE_DETACH available call error.
6191 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6192 * infttrace.c (update_thread_state_after_attach, attach, detach):
6193 Remove #ifdef wrappers.
6194 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6195 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6196 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6197 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6198 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6199 * config/nm-linux.h (ATTACH_DETACH): Delete.
6200 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6201 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6202 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6203 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6204 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6205
d91670b9
CV
62062004-06-08 Corinna Vinschen <vinschen@redhat.com>
6207
6208 * configure.in: Set $configdir to the right OS specific value.
6209 Use value when setting $tcldir and $tkdir.
6210 * configure: Regenerate.
6211
28ba0b33
PB
62122004-06-06 Paul Brook <paul@codesourcery.com>
6213
6214 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6215 records.
6216
f26caa11
PH
62172004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6218
6219 * ada-lang.c (lookup_symbol_in_language): New function to allow
6220 re-use of another language's symbol lookup code. (Placed here
6221 temporarily while Ada support is being integrated into the public
6222 tree).
6223 (restore_language): New auxiliary function for
6224 lookup_symbol_in_language.
6225 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6226 temporarily while Ada support is being integrated into the public
6227 tree).
6228
d560a54b
AO
62292004-06-08 Alexandre Oliva <aoliva@redhat.com>
6230
e75d110c
AO
6231 * Makefile.in (check//%): New.
6232
d560a54b
AO
6233 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6234 (mn10300_store_return_value): Rewrite.
6235 (mn10300_type_align): New.
6236 (mn10300_use_struct_convention): Rewrite.
6237 (mn10300_return_value): New, using all of the above.
6238 (mn10300_pop_frame_regular): Add saved_regs_size.
6239 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6240
a72fbdb7
AO
6241 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6242 regs if PC is on movm.
6243
01904826
JB
62442004-06-07 Jim Blandy <jimb@redhat.com>
6245
6246 Add native Linux support for the PowerPC E500.
6247 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6248 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6249 all architectures except the E500.
6250 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6251 #definitions.
6252 (struct gdb_evrregset_t): New type.
6253 (have_ptrace_getsetevrregs): New variable.
6254 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6255 fetch_spe_registers): New functions.
6256 (fetch_register): Call fetch_spe_register as appropriate.
6257 Assert that we're only passed raw register numbers.
6258 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6259 Don't fetch gprs if they're pseudoregisters.
6260 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6261 store_spe_registers): New functions.
6262 (store_register): Call store_spe_register as appropriate.
6263 Assert that we're only passed raw register numbers.
6264 (store_ppc_registers): Call store_spe_registers as appropriate.
6265 Don't store gprs if they're pseudoregisters.
6266
f90ef764
JJ
62672004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6268
6269 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6270 struct if one exists, even if we are dealing with a zombie thread.
6271
45b75230
AC
62722004-06-07 Andrew Cagney <cagney@gnu.org>
6273
6274 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6275 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6276 Rename PC_REQUIRES_RUN_BEFORE_USE.
6277 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6278 #ifdef.
6279
1658da49
RC
62802004-06-07 Randolph Chung <tausq@debian.org>
6281
6282 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6283 unwinding after sp has been saved to the stack but before the end
6284 of the prologue, and after the fp has been modified but before it has
6285 been saved to the stack.
6286 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6287 Remove superfluous definitions.
6288 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6289
9a727a3c
RC
62902004-06-07 Guy Martin <gmsoft@gentoo.org>
6291
6292 Committed by Randolph Chung.
6293 * hppa-linux-nat.c: Include the correct version of the header file
6294 depending on the kernel version.
6295
9e500012
RC
62962004-06-06 Randolph Chung <tausq@debian.org>
6297
6298 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6299 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6300
3388d7ff
RC
63012004-06-06 Randolph Chung <tausq@debian.org>
6302
6303 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6304 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6305 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6306 * hppa-tdep.c (hppa_symbol_address): New function definition.
6307 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6308
d49771ef
RC
63092004-06-06 Randolph Chung <tausq@debian.org>
6310
6311 * hppa-tdep.h (struct value): Forward declaration.
6312 (gdbarch_tdep): Define tdep find_global_pointer method.
6313 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6314 associated with the function we are trying to call, and write it
6315 to the gp register.
6316 (hppa32_convert_from_funct_ptr_addr): New function.
6317 (hppa_find_global_pointer): New function.
6318 (hppa_gdbarch_init): Set default find_global_pointer method; set
6319 convert_from_func_ptr_addr method.
6320 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6321 (hppa_linux_init_abi): Set find_global_pointer method.
6322 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6323
7d9b040b
RC
63242004-06-06 Randolph Chung <tausq@debian.org>
6325
6326 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6327 to struct value *function.
6328 * gdbarch.c: Regenerate.
6329 * gdbarch.h: Likewise.
6330 * infcall.c (call_function_by_hand): Pass entire function value
6331 to push_dummy_call.
6332
6333 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6334 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6335 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6336 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6337 * arm-tdep.c (arm_push_dummy_call): Likewise.
6338 * avr-tdep.c (avr_push_dummy_call): Likewise.
6339 * cris-tdep.c (cris_push_dummy_call): Likewise.
6340 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6341 * frv-tdep.c (frv_push_dummy_call): Likewise.
6342 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6343 * hppa-tdep.c (hppa32_push_dummy_call)
6344 (hppa64_push_dummy_call): Likewise.
6345 * i386-tdep.c (i386_push_dummy_call): Likewise.
6346 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6347 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6348 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6349 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6350 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6351 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6352 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6353 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6354 (ppc64_sysv_abi_push_dummy_call): Likewise.
6355 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6356 (ppc64_sysv_abi_push_dummy_call): Likewise.
6357 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6358 * s390-tdep.c (s390_push_dummy_call): Likewise.
6359 * sh-tdep.c (sh_push_dummy_call_fpu)
6360 (sh_push_dummy_call_nofpu): Likewise.
6361 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6362 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6363 * vax-tdep.c (vax_push_dummy_call): Likewise.
6364
4a19ea35
JB
63652004-06-04 Jim Blandy <jimb@redhat.com>
6366
8327ccee
JB
6367 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6368 gdbarch argument to register_size.
6369
a3c001ce
JB
6370 * rs6000-tdep.c (rs6000_store_return_value): Use
6371 regcache_cooked_write_part instead of
6372 deprecated_write_register_bytes.
6373 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6374 not gdbarch_deprecated_store_return_value.
6375
4a19ea35
JB
6376 * ppc-linux-nat.c (store_register, fetch_register): Remove
6377 incorrect assertions. Simplify and generalize handling of
6378 transfers whose sizes are not multiples of, or less than, sizeof
6379 (PTRACE_XFER_TYPE).
6380
b9b5d7ea
JJ
63812004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6382
6383 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6384 as a new thread event.
720c7d64 6385 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 6386 zombie, return TD_THR_ZOMBIE.
720c7d64 6387 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
6388 TD_THR_ZOMBIE, check if the thread is still on the thread list
6389 and return a -1 ptid if not found.
6390 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6391 change the status to TARGET_WAITKIND_SPURIOUS.
6392
c8a3b559
CV
63932004-06-03 Corinna Vinschen <vinschen@redhat.com>
6394
6395 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6396 double values in little endian mode.
6397
20605361
AC
63982004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6399
6400 Committed by Andrew Cagney.
6401 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6402 after last enum constant to avoid error from IBM C
6403 compiler.
6404
bc97b3ba
JB
64052004-06-02 Jim Blandy <jimb@redhat.com>
6406
6407 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6408 to 'message', and make it local to the lone block that uses it.
6409
1da28ab0
JB
6410 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6411
4c4b4cd2
PH
64122004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6413
8a2225b2
PH
6414 * ada-exp.y: Update copyright notice.
6415 Include block.h.
6416
6417 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6418 SPECIAL_VARIABLE and unify the treatment of these cases.
6419
6420 (write_attribute_call0): Remove.
6421 (write_attribute_call1): Remove.
6422 (write_attribute_calln): Remove.
6423 (save_qualifier): Add missing semicolon.
6424
6425 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6426 temporarily disabled to allow compilation with FSF head version.
6427
6428 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6429 use individual operators (OP_*) for all attributes.
6430 (exp syntax): Use write_int.
6431 Handle STRING literals with OP_STRING.
6432 (variable syntax): Add limit parameter to calls to
6433 write_object_renaming.
6434
6435 (temp_parse_space): New definition to hold entities that need
6436 only live until the next call to ada_parse.
6437 (string_to_operator): Rename fields of ada_opname_table entries.
6438
6439 (write_var_from_sym): Record block.
6440 (write_var_from_name): Minor reformatting.
6441 Make sure saved name is properly encoded in the case of multiple
6442 matches, and set its language to Ada.
6443 Update comment.
6444 Modify to indicate unresolved name as symbol in the UNRESOLVED
6445 namespace, allocated in temp_parse_space.
6446 (write_int): New function.
6447
6448 (write_object_renaming): Add max_depth parameter to limit
6449 chains of object renamings.
6450 Handle case where root of renaming expression is itself a renaming.
6451 Use temp_parse_space for temporary name buffer.
6452 Handle renamings to dereferenced pointers (___XEXA suffices).
6453
6454 (ada_parse, yyerror, string_to_operator,
6455 write_var_from_sym, write_var_from_name, write_attribute_call0,
6456 write_attribute_call1, write_attribute_calln,
6457 write_object_renaming): Protoize.
6458
6459 (_initialize_ada_exp): New function.
6460
6461 * ada-lang.c: Update copyright notice.
6462 General terminology change to conform to GNAT compiler usage:
6463 mangle => encode, demangle => decode
6464 Include gdb_obstack.h.
6465 Include gdb_regex.h
6466 Include frame.h
6467 Include hashtab.h
6468 Include completer.h
6469 Include gdb_stat.h
6470 Include block.h
6471 Include infcall.h
6472
6473 (ADA_RETAIN_DOTS): Make sure this is defined.
6474 (TRUNCATION_TOWARDS_ZERO): Define.
6475 (struct string_vector): Define.
6476 (unresolved_names): Remove definition.
6477 (xnew_string_vector): New function.
6478 (string_vector_append): New function.
6479 (extract_string): Make static.
6480 (ada_unqualified_name): New function.
6481 (add_angle_brackets): New function.
6482 (function_name_from_pc): New function.
6483 (place_on_stack): Rename to ensure_lval.
6484
6485 (ensure_lval): Renamed from place_on_stack.
6486 Make identity on lvals.
6487 Update comment.
6488 (is_nonfunction): New interface.
6489 Only symbols in LOC_CONST class can be enumerals.
6490 (fill_in_ada_prototype): Remove; now independent of language.
6491 (add_defn_to_vec): Add obstack and symtab arguments.
6492 Use obstack to hold collected definitions.
6493 (num_defns_collected): New function.
6494 (defns_collected): New function.
6495 (ada_resolve_subexp): Rename to resolve_subexp.
6496 (resolve_subexp): Renamed from ada_resolve_subexp.
6497 (ada_op_name): Return non-const result.
6498 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6499 other purposes.
6500
6501 (to_fixed_array_type): Add declaration.
6502 (coerce_unspec_val_to_type): Remove offset parameter.
6503 (find_sal_from_funcs_and_line): New interface.
6504 (find_line_in_linetable): Ditto.
6505
6506 (all_sals_for_line): Rename to ada_sals_for_line and make
6507 global.
6508 Add new parameter. When set, do not ask the user to choose the
6509 instance, but use the first one found instead.
6510 Use given line number in returned sals.
6511 Fix comment.
6512 Skip the prologue if funfirstline is set.
6513 Correct for memory leak when 0 lines found.
6514
6515 (value_pos_atr): Use pos_atr.
6516 (pos_atr): New function.
6517 (standard_lookup): Add block parameter.
6518
6519 (makeTimeStart): Remove declaration and uses.
6520 (makeTimeStop): Remove declaration and uses.
6521
6522 (ada_completer_word_break_characters): Allow for VMS.
6523 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6524 (raise_sym_name): New constant.
6525 (raise_unhandled_sym_name): New constant.
6526 (raise_assert_sym_name): New constant.
6527 (process_raise_exception_name): New constant.
6528 (longest_exception_template): New constant.
6529 (warning_limit): New variable to limit warnings during expression
6530 evaluation.
6531 (warnings_issued): New variable to keep track of warnings issued.
6532 (known_runtime_file_name_patterns): New constant.
6533 (known_auxiliary_function_name_patterns): New constant.
6534 (symbol_list_obstack): New variable.
6535
6536 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6537 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6538 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6539 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6540 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6541 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6542 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6543 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6544 and strcmp.
6545
6546 (ada_get_field_index): New function.
6547 (lim_warning): New function.
6548 (ada_translate_error_message): New function.
6549 (MAX_OF_SIZE): New function.
6550 (MIN_OF_SIZE): New function.
6551 (UMAX_OF_SIZE): New function.
6552 (UMIN_OF_SIZE): New function.
6553 (discrete_type_high_bound): New function.
6554 (discrete_type_low_bound): New function.
6555 (base_type): New function.
6556 (do_command): Remove.
6557
6558 (ada_update_initial_language): Use language_ada, not language_unknown.
6559 (ada_encode): Renamed from ada_mangle.
6560 Obey ADA_RETAIN_DOTS.
6561 (ada_decode): Renamed from ada_demangle.
6562 Update coding conventions.
6563 (decoded_names_store): New hash table.
6564 (ada_decode_symbol): New function.
6565 (ada_la_decode): New function.
6566
6567 (modify_general_field): Correct computations of offset and bit
6568 position.
6569 (desc_base_type): Handle ref types, too.
6570 (ada_is_direct_array_type): New function.
6571
6572 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6573 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6574 (ada_is_bogus_array_descriptor,ada_type_of_array,
6575 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6576 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6577 ada_is_array_descriptor_type.
6578
6579 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6580 (ada_is_packed_array_type): Handle pointers or
6581 references to packed arrays as well.
6582 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6583 (decode_packed_array_type): Search for the packed array type
6584 symbol in the currently selected block and associated
6585 superblocks too.
6586 Use lookup_symbol again.
6587
6588 (decode_packed_array): Handle pointers and references.
6589 Update call to coerce_unspec_val_to_type.
6590 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6591 (ada_value_primitive_packed_val): Improve comment.
6592
6593 (ada_index_type): Substitute int type for "undefined".
6594 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6595 ada_array_langth, ada_is_string_type): Use renamed
6596 ada_is_simple_array_type.
6597 (empty_array): New function.
6598
6599 (ada_resolve): Rename to resolve.
6600 (resolve): Make static.
6601 Call renamed resolve_subexp.
6602 Update comment.
6603 (ada_resolve_subexp): Rename to resolve_subexp.
6604 (resolve_subexp): Update comment.
6605 Decomment disabled code.
6606 Add LOC_COMPUTED* cases.
6607 Modify to use temporary struct symbols (marked as being in
6608 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6609 OP_UNRESOLVED_VALUE.
6610 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6611 Add OP_STRING case.
6612 Remove OP_ARRAY.
6613 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6614 Use new ada_lookup_symbol_list interface.
6615 Use new ada_resolve_function interface.
6616 Remove OP_TYPE case.
6617
6618 (ada_args_match): Idiot proof against null actuals.
6619 Use intermediate variables to clarify.
6620 (ada_resolve_function): Update comment and interface.
6621 (mangled_ordered_before): Rename to encoded_ordered_before and
6622 update comment.
6623 (sort_choices): Update comment and interface.
6624 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6625 (user_select_syms): New interface.
6626 Use new sort_choices interface.
6627 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6628 (possible_user_operator_p): Idiot-proof against null values.
6629 (ada_simple_renamed_entity): Don't make cleanup; rely on
6630 caller to free result string.
6631 Remove const from return type.
6632 (make_array_descriptor): Rename uses of place_on_stack to
6633 ensure_lval.
6634 Make sure that arrays are on stack.
6635
6636 (HASH_SIZE): Define.
6637 (struct cache_entry): Define.
6638 (cache_space): Define.
6639 (cache): Define.
6640 (clear_ada_sym_cache): New function.
6641 (find_entry): New function.
6642 (lookup_cached_symbol): New function.
6643 (defn_vector_size): Define.
6644 (cache_symbol): New function.
6645 (defn_symbols): Remove.
6646
6647 (standard_lookup): Use lookup_symbol_in_language to get effect of
6648 C lookup.
6649 Cache results.
6650
6651 (symbol_completion_match): New function.
6652 (symbol_completion_add): New function.
6653 (ada_make_symbol_completion_list): New function.
6654
6655 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6656 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6657 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6658 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6659
6660 (ada_lookup_simple_minsym): New function.
6661 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6662
6663 (add_symbols_from_enclosing_procs): New interface.
6664 Conditionalize more helpfully.
6665 Don't bother if program isn't running.
6666 Use new interface to get_frame_block.
6667 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6668
6669 (remove_extra_symbols): New interface.
6670 (xget_renaming_scope): New function.
6671 (is_package_name): New function.
6672 (renaming_is_visible): New function.
6673 (remove_out_of_scope_renamings): New function.
6674
6675 (ada_lookup_symbol_list): New interface.
6676 Properly reinitialize the symbol list obstack.
6677 Don't call add_symbols_from_enclosing_procs if we start from a
6678 static or global block.
6679 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6680 add_symbols_from_enclosing_procs.
6681 Add symtab data to cached entries.
6682 Handle symbols prefixed with
6683 "standard__" specially; strip prefix and don't look in local symbols.
6684 Do not include out of scope renaming symbols in list of
6685 symbols returned.
6686 Add const to block parameter.
6687 Move check for non-local, non-global symbols earlier.
6688 Remove timing stuff.
6689 (ada_lookup_symbol): New interface.
6690 Find symtab as well.
6691 (ada_lookup_symbol_nonlocal): New function.
6692
6693 (is_name_suffix): Enhance suffix detection to recognize
6694 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6695 (is_dot_digits_suffix): New function.
6696 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6697
6698 (ada_add_block_symbols): New interface. Use obstack to return results
6699 in a vector of struct ada_symbol_infos. Add symtab argument.
6700 Use new interface to add_defn_to_vec.
6701 Remove calls to fill_in_ada_prototype.
6702 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6703
6704 (ada_finish_decode_line_1): Add const qualification to local to fix
6705 warning.
6706 Start looking in static block for functions to avoid attempts
6707 to search frame chain for up-level variables.
6708 Adapt to new ada_sals_for_line interface.
6709 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6710 Handle quoting of the function name inside the spec string.
6711 Skip prologue when funfirstline is set and update the
6712 function documentation to that effect.
6713
6714 (debug_print_lines, debug_print_block, debug_print_blocks,
6715 debug_print_symtab): Remove.
6716
6717 (ada_main_name): New function.
6718 (ada_exception_breakpoint_type): New function.
6719 (is_known_support_routine): New function.
6720 (ada_find_printable_frame): Renamed from find_printable_frame and made
6721 global.
6722 Remove level parameter.
6723 Use new interface to select_frame.
6724
6725 (begin_command): Remove.
6726 (ada_adjust_exception_stop): New function.
6727 (ada_print_exception_stop): New function.
6728 (exception_name_from_cond): New function.
6729 (ada_report_exception_break): Replace disabled code with
6730 conditionalization on GNAT_GDB.
6731 Get the exception name from the condition string.
6732 Remove and move functionality into new functions
6733 ada_print_exception_breakpoint_task and
6734 ada_print_exception_breakpoint_nontask.
6735 (error_breakpoint_runtime_sym_not_found): New function.
6736 (is_runtime_sym_defined): New function.
6737 (ada_breakpoint_rewrite): Uncomment suppressed code.
6738 Use symbolic error-message and runtime-symbol names.
6739 Surround runtime symbol names in quotes.
6740 Allow non-specific breakpoints on exceptions and assertions before
6741 program starts.
6742
6743 (ada_is_tagged_type): Add parameter.
6744 (ada_is_tag_type): New function.
6745 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6746 (ada_variant_discrim_type): Ditto.
6747 (value_tag_from_contents_and_address): New function.
6748 (type_from_tag): New function.
6749 (struct tag_args): New structure used to communicate with
6750 ada_tag_name_1.
6751 (ada_tag_name_1): New function.
6752 (ada_tag_name): New function.
6753
6754 (ada_scan_number): Update comment.
6755 (find_struct_field): New function.
6756 (ada_search_struct_field): Make static.
6757 (ada_value_struct_elt): New version that returns references when
6758 given pointers or references to structs.
6759 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6760 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6761 interface.
6762 (ada_value_ind): Use new ada_to_fixed_value interface.
6763 (ada_coerce_ref): Ditto.
6764 (field_offset): Remove.
6765
6766 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6767 (ada_find_renaming_symbol): New function.
6768 (ada_prefer_type): Prefer named types over unnamed ones.
6769 (variant_field_index): New function.
6770 (contains_variant_part): Removed: subsumed by variant_field_index.
6771 (ada_template_to_fixed_record_type): New function, mostly from
6772 template_to_fixed_record_type.
6773 (template_to_fixed_record_type):
6774 Do not scan the type fields beyond the last one; prevents a
6775 potential SEGV.
6776 Handle case where variant field is listed BEFORE discriminant it
6777 depends on.
6778 Fix calculation of record length when bit length is
6779 not evenly divisible by char length.
6780 Move code to ada_template_to_fixed_record_type and call it.
6781
6782 (template_to_static_fixed_type): Revise comment.
6783 Modify to work on ordinary record types as well as templates,
6784 so as to handle fields that use ___XVE or ___XVU encodings.
6785 (to_record_with_fixed_variant_part): Fill out comment.
6786 Initialize C++ stuff in right type.
6787 Allow case where DVAL is null.
6788 Handle case where variant field is not last.
6789 Fix typo concerning record length.
6790 (to_fixed_record_type): Decomment disabled code.
6791 (to_fixed_record_type): Use variant_field_index instead of
6792 contains_variant_part.
6793 (to_fixed_variant_branch_type): Ditto.
6794 (to_fixed_array_type): Decomment disabled code.
6795 (ada_to_fixed_type): Convert tagged types to the specific type.
6796 Deactivate the size-check for array types in order to avoid
6797 some false size alarms.
6798 (to_static_fixed_type): Decomment disabled code.
6799 Modify to call template_to_static_fixed_type
6800 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6801 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6802 Remove valaddr argument, as it is never really used.
6803 (ada_to_fixed_value): Change interface to act on single struct value*
6804 operand.
6805 (adjust_pc_past_prologue): New function.
6806 (ada_attribute_name): Modify to take enum exp_opcode argument.
6807
6808 (ada_enum_name): Recognize new homonym-distinguishing convention.
6809 Adjust local variable's type to remove compiler warning.
6810 Fix a small problem in the part that unqualifies the enumeration name.
6811 (ada_value_binop): New function.
6812 (ada_value_equal): New function.
6813
6814 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6815 Don't give error message when not doing normal evaluation
6816 and a tagged type doesn't seem to contain a structure member.
6817 Give error message for packed arrays.
6818 For indexing arrays, handle pointers to packed arrays correctly.
6819 Handle case of 'first and 'last attributes of bare integral type
6820 without encoded subtype info.
6821 Remove some unnecessary casts.
6822 Fix uninitialized value of type in computing 'first, 'last, or 'length
6823 of array object.
6824 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6825 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6826 calls.
6827 Attributes are now exp_opcode values.
6828 Correct treatment of 'modulus.
6829 Better error message for taking 'length of wrong kind of type;
6830 improve comment.
6831 Change EVAL_NORMAL to noside for consistency.
6832 Use ada_value_binop for DIV, MOD, REM.
6833 Make special case out of array of length 0, since an argument
6834 of 0 upsets some platforms' malloc.
6835 Use OP_STRING instead of OP_ARRAY.
6836 For slice, add check that we have an array type before extracting
6837 a slice out of it. Avoids a SEGV.
6838 When evaluating an array slice, if the array type is a reference to
6839 an aligner type, then replace the aligner type by the actual type.
6840 Decomment disabled code.
6841 Remove some dead code.
6842 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6843 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6844 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6845 and UNOP_MBR to UNOP_IN_RANGE.
6846 If an array type has a parallel ___XVE type, then use it.
6847 Turn arrays into pointers for lvalue arrays.
6848 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6849 bounds error and handle 0-length slices.
6850 Use lim_warning.
6851 When selecting fields, apply ada_to_fixed_value (because the fields
6852 might have ___XVU or ___XVE encodings even if not dynamic.)
6853 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6854 (ada_is_system_address_type): New function.
6855
6856 (get_var_value): Use new interface to ada_lookup_symbol_list.
6857 (get_int_var_value): New interface.
6858 (to_fixed_range_type): Allow unknown bound, with warning.
6859 (ada_is_modular_type): Decomment disabled code.
6860 (ADA_OPERATORS): New definition.
6861 (ada_operator_length): New function.
6862 (ada_expr_op_name): New function.
6863 (ada_forward_operator_length): New function.
6864 (ada_dump_subexp_body): New function.
6865 (ada_print_subexp): New function.
6866 (ada_exp_descriptor): New constant.
6867 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6868 (ada_language_defn): Add ada_exp_descriptor entry.
6869 Change ada_parse => parse.
6870 Add post-parser entry.
6871 Use ada-specific non-local symbol lookup.
6872 Don't use C-style arrays.
6873 String lower-bound is 1.
6874 Decomment disabled code.
6875 (parse): New function.
6876 New fields ada_translate_error_message, ada_lookup_symbol,
6877 ada_lookup_minimal_symbol.
6878
6879 * ada-lang.h: Update copyright dates.
6880 Replace the mangle/demangle terminology throughout by the
6881 more appropriate encode/decode one.
6882 Include breakpoint.h.
6883 Forward declare struct partial_symbol, struct block.
6884 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6885 (EXTRACT_ADDRESS): Remove.
6886 (EXTRACT_INT): Remove.
6887 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6888 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6889 (MAX_RENAMING_CHAIN_LENGTH): Define.
6890 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6891
6892 (enum task_states): Remove.
6893 ada_task_states: Remove.
6894 (fat_string): Remove.
6895 (struct entry_call): Remove.
6896 (struct task_fields): Remove.
6897 (struct task_entry): Remove.
6898
6899 (struct ada_symbol_info): Define.
6900 (enum ada_attribute): Remove.
6901 (enum ada_operator): Define.
6902
6903 (ada_get_field_index): Declare.
6904 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6905 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6906 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6907 (ada_lookup_symbol_list): New interface.
6908 (ada_decode_symbol): Declare.
6909 (ada_decode): Declare.
6910 (ada_lookup_symbol): New interface.
6911 (ada_update_initial_language): Declare.
6912 (ada_lookup_simple_minsym): Declare.
6913 (user_select_syms): New interface.
6914 (ada_sals_for_line): Declare.
6915 (ada_is_tagged_type): New interface.
6916 (ada_tag_name): Declare.
6917 (ada_lookup_struct_elt_type): Remove declaration.
6918 (ada_search_struct_field): Remove declaration.
6919 (ada_attribute_name): New interface.
6920 (ada_is_system_address_type): Declare.
6921 (ada_to_fixed_value): Remove declaration.
6922 (ada_template_to_fixed_record_type_1): Declare.
6923 (get_int_var_value): New interface.
6924 (ada_find_any_symbol): Declare.
6925 (ada_find_renaming_symbol): Declare.
6926 (ada_mangle): Rename to ada_encode.
6927 (ada_simple_renamed_entity): Remove const.
6928 (ada_main_name): Declare.
6929 (get_current_task): Rename to ada_get_current_task.
6930 (get_entry_number): Remove declaration.
6931 (ada_report_exception_break): Remove declaration.
6932 (ada_print_exception_breakpoint_nontask): Declare.
6933 (ada_print_exception_breakpoint_task): Declare.
6934 (ada_find_printable_frame): Declare.
6935
6936 * ada-lex.l: Update copyright notices.
6937 Use xmalloc and xfree instead of malloc and free.
6938 Use new interface to name_lookup.
6939 Use new interface to
6940 ada_mangle=>ada_encode.
6941 Redo handling of '$...' variable to parallel current treatment
6942 in c-exp.y.
6943 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6944 digit_to_int, strtoulst, processInt, processReal, processId,
6945 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6946 yywrap): Protoize.
6947
6948 (processInt): Use cast to remove harmless warning.
6949 (processReal): Modify to get rid of compiler warning on scan formats.
6950
6951 (processId): Replace xmalloc with obstack_alloc for name and remove
6952 call to ada_name_string_cleanup.
6953 Remove obsolete disabled code.
6954 (name_lookup): Ditto.
6955 New interface.
6956 Use obsavestring on temp_parse_space instead of savestring
6957 on name, and remove call to ada_name_string_cleanup.
6958 Free string returned from ada_simple_renamed_entity.
6959 Use new interface to ada_lookup_symbol_list.
6960 Decomment disabled code.
6961 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6962 not types.
6963 When a type name lookup succeeds as a result of
6964 lookup_primitive_typename, check for regular type entry that has not
6965 yet been read in.
6966 Limit length of chain of renamed symbols we are willing to follow.
6967 Do not break names beginning with "standard__" into segments.
6968 (block_lookup): Use new interface to ada_lookup_symbol_list.
6969
6970 * ada-typeprint.c: Update copyright notice.
6971 (demangled_type_name): Rename to decoded_type_name.
6972 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6973 (print_range_bound): Correct handling of negative
6974 bounds that make the index type looked unsigned under STABS.
6975 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6976 (print_range_type_named): Use the builtin int type if no type
6977 corresponding to the given type name could be found.
6978 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6979 Add some bullet-proofing.
6980 (print_variant_clauses): Allow for variant branches with ___XVU
6981 encodings that are not dynamic fields.
6982 Use new interface to ada_is_tagged_type.
6983 (print_record_type): Allow for fields with ___XVE encodings that
6984 are not dynamic fields.
6985 Use new interface to ada_is_tagged_type.
6986 (ada_print_type): ada_is_array_descriptor =>
6987 ada_is_array_descriptor_type.
6988
6989 * ada-valprint.c: Update copyright notice.
6990 Include gdb_string.h
6991 Include infcall.h
6992 (ui_memcpy): New function.
6993 (ada_print_floating): New function.
6994 (ada_print_str): Order arguments correctly.
6995 Correct handling of empty arrays and arrays of 0-length items.
6996 ada_is_array_descriptor => ada_is_array_descriptor_type
6997 Print values of type System.Address in hexadecimal format.
6998 Use ada_print_floating to print floating-point numbers in Ada format.
6999 Print class tag values with type names.
7000 No longer print the address of reference values. Avoids
7001 a potential confusion.
7002 (ada_value_print): Stop printing the object type for reference
7003 values, but preserve that behavior for access types. Avoids
7004 a potential confusion.
7005 Simplify one conditional expression, as the first part is now
7006 necessarily true.
7007 ada_is_array_descriptor => ada_is_array_descriptor_type
7008 Add check for arrays for null records, and print them by hand.
4c4b4cd2 7009
f65f91b5
JB
70102004-06-01 Jim Blandy <jimb@redhat.com>
7011
7012 * ppc-tdep.h: Delete unused 'regoff' member.
7013 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7014
d4687fa0
MC
70152004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7016
7017 Fix PR symtab/1661.
7018 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7019 (hpread_read_struct_type): Likewise.
7020
de169ec9
AC
70212004-06-01 Andrew Cagney <cagney@gnu.org>
7022
c6902d46
AC
7023 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7024 instead of xasprintf.
7025 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7026 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7027 (mi_cmd_data_list_register_names)
7028 (mi_cmd_data_list_changed_registers)
7029 (mi_cmd_data_list_register_values)
7030 (get_register, mi_cmd_data_write_register_values)
7031 (mi_cmd_data_write_register_values)
7032 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7033 (mi_cmd_target_download, mi_cmd_target_select)
7034 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7035 (mi_execute_cli_command, mi_execute_async_cli_command)
7036 (mi_execute_async_cli_command): Ditto.
7037 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7038 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7039
6085fc2d
AC
7040 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7041 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7042 error_last_message instead of mi_error_last_message.
7043 * mi/mi-main.c (mi_error_last_message): Delete function.
7044
de169ec9
AC
7045 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7046 "invalid number of columns" error. Delete redundant "out of
7047 memory" check.
7048
1fc7d519
MK
70492004-05-31 Mark Kettenis <kettenis@gnu.org>
7050
6cfb2041
MK
7051 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7052 (gregset_t, fpregset_t): Remove typedefs.
7053 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7054 (REG_OFFSET): Rename argument.
7055 (i386bsd_r_reg_offset): Rename from reg_offset.
7056 (REG_ADDR): Remove macro.
7057 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7058 functions.
7059 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7060 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7061 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7062 instead of supply_gregset.
7063 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7064 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7065 instead of fill_gregset.
7066 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7067
1fc7d519
MK
7068 * i386bsd-nat.c: Don't include "gregset.h".
7069 (supply_gregset, fill_gregset): Make static.
7070 (supply_fpregset, fill_fpregset): Remove.
7071 * Makefile.in (i386bsd-nat.o): Update dependencies.
7072
2c34abbe
MK
70732004-05-30 Mark Kettenis <kettenis@gnu.org>
7074
448724fb
MK
7075 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7076 "gdb_assert.h". Con't include "gregset.h".
7077 (fbsd_make_corefile_notes): Use regset-based core file support
7078 instead off fill_gregset and fill_fpregset.
7079 * Makefile.in (fbsd-proc.o): Update dependencies.
7080
5ca8ca7c
MK
7081 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7082 instructions.
7083 (m88k_frame_prev_register): Simplify code a bit.
7084
593adc23
MK
7085 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7086 (amd64_collect_fpregset): New function.
7087 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7088
8d1b517b
MK
7089 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7090
7fdafb5a
MK
7091 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7092 (i386_collect_gregset): New function.
7093 (i386_supply_fpregset): Adjust comment.
7094 (i386_collect_fpregset): New function.
7095 (i386_regset_from_core_section): Use i386_collect_gregset and
7096 i386_collect_fpregset.
7097
8693c419
MK
7098 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7099 handle VALUEP being null.
7100
2c34abbe
MK
7101 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7102
45d134d8
MK
71032004-05-29 Mark Kettenis <kettenis@gnu.org>
7104
1698f4e7
MK
7105 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7106
45d134d8
MK
7107 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7108 assembler in OpenBSD 3.5-current.
7109 (amd64obsd_sigcontext_addr): Likewise.
7110
691d145a
JB
71112004-05-28 Jim Blandy <jimb@redhat.com>
7112
7113 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7114 register set, so our regcache isn't declared "legacy" and our E500
7115 pseudoregister read and write functions aren't ignored.
7116 (rs6000_register_byte, rs6000_register_raw_size,
7117 rs6000_register_virtual_type, rs6000_register_convertible,
7118 rs6000_register_convert_to_virtual,
7119 rs6000_register_convert_to_raw): Deleted.
7120 (rs6000_register_type, rs6000_convert_register_p,
7121 rs6000_register_to_value, rs6000_value_to_register): New
7122 functions.
7123 (rs6000_gdbarch_init): Don't register
7124 gdbarch_deprecated_register_size,
7125 gdbarch_deprecated_register_bytes,
7126 gdbarch_deprecated_register_byte,
7127 gdbarch_deprecated_register_raw_size,
7128 gdbarch_deprecated_register_virtual_type,
7129 gdbarch_deprecated_register_convertible,
7130 gdbarch_deprecated_register_convert_to_virtual, or
7131 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7132 register gdbarch_register_type, gdbarch_convert_register_p,
7133 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7134
18ed0c4e
JB
71352004-05-26 Jim Blandy <jimb@redhat.com>
7136
7137 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7138 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7139 functions, updated to match the register numberings used in GCC.
7140 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7141 rs6000_dwarf2_reg_to_regnum as register number conversions
7142 functions for STABS and Dwarf2.
7143
779af9e3
RC
71442004-05-26 Randolph Chung <tausq@debian.org>
7145
7146 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7147 in header file.
7148
c23968a2
JB
71492004-05-25 Joel Brobecker <brobecker@gnat.com>
7150
7151 * NEWS: Document new "start" command.
7152
3a7d1c27
RC
71532004-05-25 Randolph Chung <tausq@debian.org>
7154
7155 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7156 hppa-linux.
7157
43613416
RC
71582004-05-25 Randolph Chung <tausq@debian.org>
7159
7160 * hppa-hpux-tdep.c (offsetof): Define.
7161 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7162 (hppa32_hpux_frame_base_before_sigtramp)
7163 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7164 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7165 (hppa64_hpux_frame_base_before_sigtramp)
7166 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7167 functions.
7168 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7169 (hppa_hpux_sigtramp_frame_unwind_cache)
7170 (hppa_hpux_sigtramp_frame_this_id)
7171 (hppa_hpux_sigtramp_frame_prev_register)
7172 (hppa_hpux_sigtramp_frame_unwind)
7173 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7174 (hppa_hpux_init_abi): Register sigtramp unwinder.
7175 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7176
6d1be3f1
RC
71772004-05-25 Randolph Chung <tausq@debian.org>
7178
7179 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7180 and multiple stack unwinds.
7181 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7182
97c34f65
AC
71832004-05-25 Andrew Cagney <cagney@gnu.org>
7184
7185 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7186 * symfile-mem.h: Delete file.
7187 * symfile-mem.c: Do not include "symfile-mem.h".
7188 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7189 "struct bfd_section". When an error do not bother returning NULL.
7190 (add_symbol_file_from_memory_command): Use "struct bfd" and
7191 "struct bfd_section".
7192 * Makefile.in (symfile_mem_h): Delete.
7193 (symfile-mem.o): Update dependencies.
7194
e23cbd82
NR
71952004-05-25 Nick Roberts <nickrob@gnu.org>
7196
7197 * gdb-mi.el: New file.
7198
20d2ca3e
AC
71992004-05-25 Andrew Cagney <cagney@gnu.org>
7200
7201 * inftarg.c: Include "observer.h".
7202 (child_attach, child_create_inferior): Notify inferior_created.
7203 * corelow.c: Include "observer.h".
7204 (core_open): Notify inferior_created.
7205 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7206
c27cda74
AC
72072004-05-25 Andrew Cagney <cagney@gnu.org>
7208
7209 * target.h (struct target_ops): Add from_tty to
7210 to_create_inferior.
7211 (target_create_inferior, find_default_create_inferior): Update.
7212 * infcmd.c (run_command): Update.
7213 * wince.c (child_create_inferior): Update.
7214 * win32-nat.c (child_create_inferior): Update.
7215 * uw-thread.c (uw_thread_create_inferior): Update.
7216 * thread-db.c (thread_db_create_inferior): Update.
7217 * target.c (debug_to_create_inferior)
7218 (find_default_create_inferior): Update.
7219 (maybe_kill_then_create_inferior): Update.
7220 * sol-thread.c (sol_thread_create_inferior): Update.
7221 * remote.c (extended_remote_async_create_inferior)
7222 (extended_remote_create_inferior): Update.
7223 * remote-vx.c (vx_create_inferior): Update.
7224 * remote-st.c (st2000_create_inferior): Update.
7225 * remote-sim.c (gdbsim_create_inferior): Update.
7226 * remote-sds.c (sds_create_inferior): Update.
7227 * remote-rdp.c (remote_rdp_create_inferior): Update.
7228 * remote-rdi.c (arm_rdi_create_inferior): Update.
7229 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7230 * remote-e7000.c (e7000_create_inferior): Update.
7231 * procfs.c (procfs_create_inferior): Update.
7232 * ocd.c (ocd_create_inferior): Update.
7233 * ocd.h (ocd_create_inferior): Update.
7234 * nto-procfs.c (procfs_create_inferior): Update.
7235 * monitor.c (monitor_create_inferior): Update.
7236 * lin-lwp.c (lin_lwp_create_inferior): Update.
7237 * inftarg.c (child_create_inferior): Update.
7238 * hpux-thread.c (hpux_thread_create_inferior): Update.
7239 * gnu-nat.c (gnu_create_inferior): Update.
7240
1db2a798
AC
72412004-05-25 Andrew Cagney <cagney@gnu.com>
7242
7243 * MAINTAINERS: Update e-mail address.
7244
007d08bb
RC
72452004-05-24 Randolph Chung <tausq@debian.org>
7246
7247 * thread.c (info_threads_command, thread_apply_all_command)
7248 (thread_apply_command, thread_command, do_captured_thread_select):
7249 Remove HPUXHPPA-specific code.
7250
69e7b95e
RC
72512004-05-24 Randolph Chung <tausq@debian.org>
7252
7253 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7254 unused symbols.
7255 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7256 references.
7257
a4d5f2e0
JB
72582004-05-24 Joel Brobecker <brobecker@gnat.com>
7259
7260 * infcmd.c (kill_if_already_running): New function, extracted
7261 from run_command().
7262 (run_command): Replace extracted code by call to
7263 kill_if_already_running().
7264 (start_command): New function.
7265 (_initialize_infcmd): Add "start" command.
7266
bf2ca189
MK
72672004-05-24 Mark Kettenis <kettenis@gnu.org>
7268
7269 Add OpenBSD/m88k support.
7270 * NEWS (New native configurations): Mention OpenBSD/m88k.
7271 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7272 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7273 * Makefile.in (m88k_tdep_h): New variable.
7274 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7275 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7276 * configure.host: Add m88*-*-openbsd*.
7277 * configure.tgt: Add m88*-*-openbsd*.
7278
80fadb11
JB
72792004-05-24 Jim Blandy <jimb@redhat.com>
7280
7281 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7282 to approve changes.
7283
19e2d14b
KB
72842004-05-24 Kevin Buettner <kevinb@redhat.com>
7285
7286 * symtab.c (fixup_section): Search section table when lookup by
7287 name fails.
7288
1b07b470
RC
72892004-05-24 Randolph Chung <tausq@debian.org>
7290
7291 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7292 be "small_struct".
7293
368702b1
MK
72942004-05-24 Mark Kettenis <kettenis@gnu.org>
7295
5df97fde
MK
7296 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7297 register number in regcache_raw_collect call.
7298 (m68kbsd_collect_fpregset): Likewise.
7299 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7300
368702b1
MK
7301 * regset.h (struct regset): Add back `regset' member.
7302
a770d4ec
MK
73032004-05-23 Mark Kettenis <kettenis@gnu.org>
7304
70f9f479
MK
7305 * configure.in: Check for td_pcb in `struct thread'.
7306 * configure, config.in: Regenerated.
7307
2e16d79e
MK
7308 * dpx2-nat.c: Remove file.
7309 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7310 (dpx2-nat.o): Remove dependencies.
7311
492cf391
MK
7312 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7313 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7314 (amd64obsd_supply_pcb): New function.
7315 (_initialize_amd64obsd_nat): Enable libkvm interface.
7316 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7317 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7318 (LOADLIBES): New variable.
7319
a770d4ec
MK
7320 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7321 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7322 (sparc32nbsd_supply_pcb): New function.
7323 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7324 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7325 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7326 (LOADLIBES): New variable.
7327
9ea75c57
MK
73282004-05-22 Mark Kettenis <kettenis@gnu.org>
7329
2e0c3539
MK
7330 * bsd-kvm.c, bsd-kvm.h: New files.
7331 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7332 "bsd-kvm.h".
7333 (i386fbsd_supply_pcb): New function.
7334 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7335 (i386fbsd-nat.o): Update dependencies.
7336 (bsd_kvm_h): New variable.
7337 (bsd-kvm.o): New dependency.
7338 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7339 (LOADLIBES): New variable.
7340
9ea75c57
MK
7341 * regset.c: Tweak comment.
7342 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7343 macro.
7344 * regset.h: Update copyright year.
7345 (struct regset): Remove `descr' member, add `gdbarch' member.
7346 (regset_alloc): Adjust prototype and comment.
7347 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7348 (i386_supply_fpregset): Likewise.
7349 (i386_regset_from_core_section): Update call to regset_alloc.
7350 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7351 REGSET->arch.
7352 (i386obsd_aout_regset_from_core_section): Update call to
7353 regset_alloc.
7354 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7355 REGSET->arch.
7356 (i386nbsd_aout_regset_from_core_section): Update call to
7357 regset_alloc.
7358 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7359 REGSET->arch.
7360 (amd64_regset_from_core_section): Update call to regset_alloc.
7361 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7362 REGSET->arch.
7363 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7364 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7365 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7366 (sparc32nbsd_init_abi): Update call to regset_alloc.
7367 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7368 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7369 (sparc64obsd_init_abi): Update call to regset_alloc.
7370 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7371 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7372 (sparc64nbsd_init_abi): Update call to regset_alloc.
7373 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7374 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7375 (sparc64fbsd_init_abi): Update call to regset_alloc.
7376
867e2dc5
JB
73772004-05-22 Jim Blandy <jimb@redhat.com>
7378
7379 * ppc-tdep.h (spe_register_p): New declaration.
7380 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7381 ppc_spefscr_regnum.
7382 * rs6000-tdep.c (spe_register_p): New function.
7383 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7384 spefscr.
7385 (rs6000_gdbarch_init): Initialize the new members of the tdep
7386 structure.
7387
617a4cba
JB
73882004-05-21 Jim Blandy <jimb@redhat.com>
7389
0397dee1
JB
7390 * ppc-linux-nat.c (fetch_register): Move code back to be next
7391 to the comment that describes it. (Moved code, instead of
7392 comment, for symmetry with store_register.)
7393
617a4cba
JB
7394 Allocate regset structures in the gdbarch's obstack, not using
7395 xmalloc.
7396 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7397 Add 'arch' argument. Allocate the regset on arch's obstack, not
7398 using xmalloc.
7399 * regset.h (regset_alloc): Update declaration.
7400 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7401 gdbarch argument.
7402 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7403 * i386-tdep.c (i386_regset_from_core_section): Same.
7404 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7405 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7406 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7407 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7408 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7409 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7410
9aa3914d
JB
74112004-05-21 Joel Brobecker <brobecker@gnat.com>
7412
7413 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7414
99c87dab
JB
74152004-05-21 Jim Blandy <jimb@redhat.com>
7416
7417 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7418 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7419
c2b6b4aa
JB
74202004-05-20 Jim Blandy <jimb@redhat.com>
7421
7422 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7423
144529d0
MK
74242004-05-20 Mark Kettenis <kettenis@gnu.org>
7425
7426 * regset.h: Make prototype const-correct.
7427 * regset.c (regset_xmalloc): Make const-correct.
7428
4725b721
PH
74292004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7430
7431 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7432 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7433 (symbol_search_name): Declare.
7434
7435 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7436 (iter_name_next_hashed): Ditto.
7437 (iter_name_next_linear): Ditto.
7438 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7439
7440 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7441 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7442 (symbol_search_name): New function.
7443
7444 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7445
7446 * minsyms.c (build_minimal_symbol_hash_tables): Change
7447 test for adding to demangled hash table to check for difference
7448 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7449
be07a590
JB
74502004-05-19 Jim Blandy <jimb@redhat.com>
7451
7452 Use a constructor function to create regset structures.
7453 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7454 (struct regset): Use supply_regset_ftype. Add new
7455 'collect_regset' member.
7456 (regset_xmalloc): New declaration.
7457 * regset.c: New file.
7458 * am64-tdep.c (amd64_regset_from_core_section): Use
7459 regset_xmalloc to construct regset structures.
7460 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7461 * i386-tdep.c (i386_regset_from_core_section): Same.
7462 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7463 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7464 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7465 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7466 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7467 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7468 * Makefile.in (COMMON_OBS): Add regset.o.
7469 (regset.o): New rule.
7470
604368f5
JB
74712004-05-19 Joel Brobecker <brobecker@gnat.com>
7472
7473 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7474 and pthread_cond_wait.c.
7475
82d69f8b
JB
74762004-05-18 Jim Blandy <jimb@redhat.com>
7477
7478 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7479 before the mach-specific switch, and then let the individual cases
7480 override the defaults, rather than leaving them uninitialized
7481 until the switch and then setting them in each case.
7482
5859efe5
RC
74832004-05-18 Randolph Chung <tausq@debian.org>
7484
7485 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7486 millicode functions.
7487
9ca80cf8
RC
74882004-05-18 Randolph Chung <tausq@debian.org>
7489
7490 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7491 references to dld_flags_buffer consistent.
7492
ed70ba00
RC
74932004-05-18 Randolph Chung <tausq@debian.org>
7494
7495 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7496 it for unwinding the stack.
7497
63100632
RC
74982004-05-18 Randolph Chung <tausq@debian.org>
7499
7500 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7501 Undefine these so we can overide them using gdbarch.
7502
090ccbb7
RC
75032004-05-18 Randolph Chung <tausq@debian.org>
7504
7505 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7506 handling for 64-bit HPUX (elf).
7507
594706e6
DJ
75082004-05-18 Daniel Jacobowitz <dan@debian.org>
7509
7510 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7511 constants.
7512 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7513 * ia64-tdep.c (examine_prologue): Likewise.
7514 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7515 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7516
e5483145
MK
75172004-05-18 Mark Kettenis <kettenis@gnu.org>
7518
7519 * vax-tdep.c (vax_return_value): Implement
7520 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7521
caed1a45
MK
75222004-05-17 Mark Kettenis <kettenis@gnu.org>
7523
7524 * vax-tdep.c (vax_return_value): Fix typo.
7525
3c0b7db2
AC
75262004-05-17 Andrew Cagney <cagney@redhat.com>
7527
5aae53e5
AC
7528 * MAINTAINERS: Mark Salter was also responsible for
7529 testsuite/config/
7530
3c0b7db2
AC
7531 * NEWS: Mention signal fixes.
7532
22b0923d
RC
75332004-05-17 Randolph Chung <tausq@debian.org>
7534
7535 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7536 check to see if we are unwinding an export stub. Export stubs clobber
7537 the %rp in the call path and stores the original rp in a stack slot.
7538
22f2b2f3
JB
75392004-05-17 Jim Blandy <jimb@redhat.com>
7540
7541 * MAINTAINERS: Update address for J.T. Conklin.
7542
cea96d64
RC
75432004-05-17 Randolph Chung <tausq@debian.org>
7544
7545 * hppa-tdep.c: Remove superfluous #include's.
7546 * Makefile.in (hppa-tdep.o): Update dependencies.
7547
f08f6a4a
RC
75482004-05-17 Randolph Chung <tausq@debian.org>
7549
7550 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7551 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7552 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7553 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7554 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7555 Remove static function declarations.
7556
51da707a
MK
75572004-05-17 Mark Kettenis <kettenis@gnu.org>
7558
caed1a45
MK
7559 * alphabsd-nat.c: Update copyright year.
7560 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7561
c0c2b0db
MK
7562 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7563 and M68K_A2_REGNUM.
7564
51da707a
MK
7565 * m68k-tdep.c (m68k_svr4_return_value): Implement
7566 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7567
8d027a04
MK
75682004-05-16 Mark Kettenis <kettenis@gnu.org>
7569
7570 * sol-thread.c Update copyright year. Fix various coding
7571 standards violations. Tweak a few comments.
7572 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7573 Delete prototypes.
7574
0d99fdb9
RC
75752004-05-15 Randolph Chung <tausq@debian.org>
7576
7577 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7578 as pointer instead of array reference since HPUX compiler does
7579 not accept unsized array arguments.
7580 * somsolib.c (dld_flags_buffer): Use constant array size.
7581
f7e3843a
MK
75822004-05-15 Mark Kettenis <kettenis@gnu.org>
7583
0fe85704
MK
7584 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7585 offset with decimal offset.
7586 (amd64obsd_sigcontext_addr): Return correct address for entire
7587 signal trampoline.
7588
a54f9a00
MK
7589 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7590 instead of get_frame_base.
7591
feae6502
MK
7592 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7593 (fill_gregset): Use regcache_raw_collect.
7594
0382d099
MK
7595 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7596 ppcobsd-tdep.c.
7597
f7e3843a
MK
7598 * config/sparc/tm-nbsd64.h: Remove file.
7599 * config/tm-sunos.h: Remove file.
7600
773df3e5
JB
76012004-05-15 Joel Brobecker <brobecker@gnat.com>
7602
7603 * rs6000-tdep.c (store_param_on_stack_p): New function,
7604 an improved version of some code extracted from skip_prologue().
7605 (skip_prologue): Use store_param_on_stack_p() to detect
7606 instructions saving a parameter on the stack. Detect when r0
7607 is used to save a parameter.
7608 Do not mark "li rx, SIMM" instructions as part of the prologue,
7609 unless the following instruction is also part of the prologue.
7610
95918acb
AC
76112004-05-14 Andrew Cagney <cagney@redhat.com>
7612
06f32659
AC
7613 * infrun.c (handle_inferior_event): Simplify
7614 STEP_OVER_UNDEBUGGABLE.
7615
95918acb
AC
7616 * infrun.c (handle_step_into_function): Delete function.
7617 (handle_inferior_event): Inline calls to
7618 handle_step_into_function.
7619
40711ff1 76202004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
7621
7622 * rs6000-nat.c: Fix a comment.
7623
02f60eae
JB
76242004-05-12 David Anderson <davea@sgi.com>
7625
7626 Committed by Jim Blandy <jimb@redhat.com>:
7627 * regcache.c (struct regcache_descr): fix comment spelling.
7628
552e377b
JB
76292004-05-13 J. Brobecker <brobecker@gnat.com>
7630
7631 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7632 Fixes a link link failure.
7633
349766b2
JB
76342004-05-13 J. Brobecker <brobecker@gnat.com>
7635
7636 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7637 error that was causing the build to fail.
7638
0d4d5484
JB
76392004-05-13 J. Brobecker <brobecker@gnat.com>
7640
7641 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7642 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7643
0b30808c
AC
76442004-05-13 Andrew Cagney <cagney@redhat.com>
7645
7646 * infrun.c (handle_inferior_event): Check for
7647 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7648 calls. Update comments.
7649
cdf2c5f5
JB
76502004-05-13 Jim Blandy <jimb@redhat.com>
7651
063715bf
JB
7652 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7653 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7654 (store_regs_user_thread, store_regs_kernel_thread): Use
7655 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7656 * ppc-linux-nat.c (fill_gregset): Same.
7657 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7658 (ppc_linux_sigtramp_cache): Same.
7659 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7660 (ppcnbsd_sigtramp_cache_init): Same.
7661 * rs6000-nat.c (fetch_core_registers): Same.
7662 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7663 (rs6000_frame_cache): Same.
7664
cdf2c5f5
JB
7665 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7666 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7667 of assuming that the gprs are numbered starting with zero.
7668 * ppc-linux-nat.c (fill_gregset): Same.
7669 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7670 * ppcnbsd-nat.c (getregs_supplies): Same.
7671 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7672 * rs6000-nat.c (fetch_core_registers): Same.
7673 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7674
450bd37b
MS
76752004-05-07 Michael Snyder <msnyder@redhat.com>
7676
7677 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7678 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7679
4a72a2a6
AC
76802004-05-13 Andrew Cagney <cagney@redhat.com>
7681
7682 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7683
8edfa926
BM
76842004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7685
7686 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7687 base_address for shared libraries.
7688
723e0e3d
BM
76892004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7690
7691 * MAINTAINERS (write after approval): Add myself.
7692
00d4360e
UW
76932004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7694
7695 * breakpoint.c (bpstat_stop_status): Add new argument
7696 STOPPED_BY_WATCHPOINT. Use it instead of testing
7697 target_stopped_data_address agaist 0 to check whether
7698 or not we stopped due to a hardware watchpoint.
7699 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7700 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7701 with new argument.
7702
ec76baa5
JB
77032004-05-12 Jim Blandy <jimb@redhat.com>
7704
7705 * configure.in: When checking whether we should use the -bbigtoc
7706 option, don't forget to restore the original value of LDFLAGS.
7707 * configure: Regenerated.
7708
f2c9ca08
AC
77092004-05-12 Andrew Cagney <cagney@redhat.com>
7710
7711 * thread.c (load_infrun_state): Delete step_sp.
7712 * infrun.c (context_switch): Ditto.
7713 * inferior.h (step_sp): Ditto.
7714 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7715 * gdbthread.h (struct thread_info, save_infrun_state)
7716 (restore_infrun_state): Ditto.
7717
090ddb2a
UW
77182004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7719
7720 * MAINTAINERS (write after approval): Add myself.
7721
8aad930b
AC
77222004-05-12 Andrew Cagney <cagney@redhat.com>
7723
7724 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7725 eliminate reference to step_sp.
7726 (struct execution_control_state, init_execution_control_state)
7727 (handle_inferior_event, keep_going): Delete update_step_sp and
7728 step_sp.
7729 * infcmd.c (step_sp): Note that variable is unused.
7730
922d5ae0
AC
77312004-05-11 Andrew Cagney <cagney@redhat.com>
7732
7733 * infrun.c (step_over_function): Delete function.
7734 (handle_step_into_function): Use insert_step_resume_breakpoint.
7735 (insert_step_resume_breakpoint): Fix assertion.
7736
017c5ca5
NR
77372004-05-11 Nick Roberts <nickrob@gnu.org>
7738
7739 * utils.c (defaulted_query): Just use the normal query input type
7740 when printing the annotations.
7741
42edda50
AC
77422004-05-11 Andrew Cagney <cagney@redhat.com>
7743
7744 * infrun.c (handle_inferior_event): Simplify code handling
7745 step-into or return-from a signal trampoline.
7746
d28b44a7
AC
77472004-05-11 Andrew Cagney <cagney@redhat.com>
7748
7749 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7750 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7751
383f0f5b
JB
77522004-05-10 Jim Blandy <jimb@redhat.com>
7753
d0b57c3a
JB
7754 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7755 with a call to internal_error.
7756
383f0f5b
JB
7757 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7758 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7759 processor variant lacks those registers.
7760 (ppc_floating_point_unit_p): Change description to make it clear
7761 that this returns info about the ISA, not the ABI.
7762 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7763 return true or false by checking tdep->ppc_fp0_regnum and
7764 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7765 arch/mach switching done in rs6000_gdbarch_init; it's better to
7766 keep that logic there, and just check the results here.
7767 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7768 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7769 floating-point registers.
7770 (ppc_supply_fpregset, ppc_collect_fpregset)
7771 (rs6000_push_dummy_call, rs6000_extract_return_value)
7772 (rs6000_store_return_value): Assert that we have floating-point
7773 registers.
7774 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7775 (rs6000_frame_cache): Don't note the locations at which
7776 floating-point registers were saved if we have no fprs.
7777 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7778 registers.
7779 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7780 (store_regs_user_thread, store_regs_kernel_thread): Only call
7781 supply_fprs / fill_fprs if we actually have floating-point
7782 registers.
7783 (special_register_p): Check ppc_fpscr_regnum before matching
7784 against it.
7785 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7786 supply / collect fpscr if we don't have it.
7787 * ppc-bdm.c: #include "gdb_assert.h".
7788 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7789 have floating-point registers, since I can't test this code on
7790 FP-free systems to adapt it.
7791 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7792 fpscr and floating point register numbers if they don't exist.
7793 (fetch_register): Assert that we have floating-point registers
7794 before we reach the code that handles them.
7795 (store_register): Same. And use tdep instead of calling
7796 gdbarch_tdep again.
7797 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7798 don't have them.
7799 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7800 fprs and fpscr if we don't have them.
7801 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7802 don't have them.
7803 * ppcnbsd-nat.c: #include "gdb_assert.h".
7804 (getfpregs_supplies): Assert that we have floating-point registers.
7805 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7806 * ppcobsd-tdep.c: #include "gdb_assert.h".
7807 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7808 have floating-point registers.
7809 * rs6000-nat.c (regmap): Don't match against the fpscr and
7810 floating point register numbers if they don't exist.
7811 (fetch_inferior_registers, store_inferior_registers,
7812 fetch_core_registers): Only fetch / store / supply the
7813 floating-point registers and the fpscr if we have them.
7814 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7815 (ppcobsd-tdep.o): Update dependencies.
7816
15960608
AC
78172004-05-10 Andrew Cagney <cagney@redhat.com>
7818
7819 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7820 (context_switch): Do not switch through_sigtramp_breakpoint.
7821 * gdbthread.h (save_infrun_state, load_infrun_state)
7822 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7823 and structure member.
7824 * thread.c (load_infrun_state, save_infrun_state): Update.
7825
5ab5aa0f
MK
78262004-05-10 Mark Kettenis <kettenis@gnu.org>
7827
7828 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7829
da78b0e7
DJ
78302004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7831
7832 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7833 throughout.
7834 * aclocal.m4: Regenerate.
7835
cca0d3b0
NW
78362004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7837
7838 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7839
d303a6c7
AC
78402004-05-10 Andrew Cagney <cagney@redhat.com>
7841
7842 * infrun.c (check_sigtramp2): Delete function.
7843 (handle_inferior_event): When single stepping, and taking a
7844 signal, set a breakpoint at the signal return address. Delete
7845 redundant calls to check_sigtramp2.
7846 (insert_step_resume_breakpoint): New function.
7847 (through_sigtramp_breakpoint, handle_inferior_event)
7848 (follow_exec, wait_for_inferior, fetch_inferior_event)
7849 (currently_stepping, keep_going): Delete most uses of
7850 through_sigtramp_breakpoint, not that it should be deleted.
7851 (delete_breakpoint_current_contents): Delete function.
7852
03f4cc20
RC
78532004-05-10 Randolph Chung <tausq@debian.org>
7854
7855 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7856 target.
7857 * config/pa/tm-linux.h: New file.
7858
37fc812e
DJ
78592004-05-10 Daniel Jacobowitz <drow@mvista.com>
7860
7861 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7862 of prefixes. Don't print the prefix twice in the CLI.
7863
26c0b942
JB
78642004-05-10 Jim Blandy <jimb@redhat.com>
7865
2e56e9c1
JB
7866 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7867 collect all the gprs.
7868
26c0b942
JB
7869 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7870 loop collecting gprs.
7871
dc497459
AC
78722004-05-09 Andrew Cagney <cagney@redhat.com>
7873
7874 * remote-vx.c (net_step): Delete step-range code.
7875 * remote.c (remote_resume, init_all_packet_configs)
7876 (set_remote_protocol_E_packet_cmd)
7877 (show_remote_protocol_E_packet_cmd)
7878 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7879 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7880 (show_remote_protocol_e_packet_cmd): Ditto.
7881
0543f387
MK
78822004-05-09 Mark Kettenis <kettenis@gnu.org>
7883
c481d1ca
MK
7884 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7885
f626a069
MK
7886 * hppa-tdep.h: Update copyright year.
7887 (struct trad_frame_saved_reg): Add opaque declaration.
7888
6fa57a7d
MK
7889 * amd64-tdep.c (amd64_return_value): Implement
7890 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7891
e47577ab
MK
7892 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7893 (m68k_value_to_register): New functions.
7894 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7895 value_to_register.
7896
31db7b6c
MK
7897 * defs.h (enum return_value_convention): Add
7898 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7899 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7900 * infcmd.c (legacy_return_value): New function.
7901 (print_return_value): Rwerite to implement
7902 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7903 * values.c (using_struct_return): Check for inequality to
7904 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7905 RETURN_VALUE_STRUCT_CONVENTION.
7906 * i386-tdep.c (i386_return_value): Implement
7907 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7908
0543f387
MK
7909 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7910 include "symtab.h", "opcode/vax.h" and "inferior.h".
7911 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7912 to read_memory_unsigned_integer.
7913 (vax_gdbarch_init): Reorder.
7914 (_initialize_vax_tdep): Spell out prototype.
7915 * Makefile.in (vax-tdep.o): Update dependencies.
7916
0c93b7b6
AC
79172004-05-08 Andrew Cagney <cagney@redhat.com>
7918
e6b55ae2
AC
7919 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7920 * target.c (target_detach, target_disconnect): Ditto.
7921
1ac839b8
AC
7922 * infcall.c (call_function_by_hand): When no
7923 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7924 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7925 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7926 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7927 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7928
28954179
AC
7929 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7930 * gdbarch.h, gdbarch.c: Re-generate.
7931 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7932 deprecated_fix_call_dummy.
7933 * v850-tdep.c (v850_gdbarch_init): Ditto.
7934 * infcall.c (call_function_by_hand): Do not call
7935 DEPRECATED_FIX_CALL_DUMMY.
7936
434b87dd
AC
7937 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7938 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7939 * gdbarch.h, gdbarch.c: Re-generate.
7940 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7941 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7942 deprecated_sizeof_call_dummy_words.
7943 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7945 * v850-tdep.c (v850_gdbarch_init): Ditto.
7946 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7947 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7948 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7949 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7950 * arch-utils.h (legacy_call_dummy_words)
7951 (legacy_sizeof_call_dummy_words): Delete declarations.
7952 * arch-utils.c (legacy_call_dummy_words)
7953 (legacy_sizeof_call_dummy_words): Delete variables.
7954
58d28df8
AC
7955 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7956 * gdbarch.h, gdbarch.c: Re-generate.
7957 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7958 * infcall.c (call_function_by_hand): Eliminate call to
7959 DEPRECATED_PUSH_DUMMY_FRAME.
7960 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7961 push_dummy_frame.
7962 (ns32k_push_dummy_frame): Delete function.
7963
e4a2df64
AC
7964 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7965 deprecated_call_dummy_breakpoint_offset or
7966 deprecated_call_dummy_start_offset.
7967 * dummy-frame.c, arm-tdep.c: Update comments.
7968 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7969 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7970 * gdbarch.h, gdbarch.c: Re-generate.
7971
d3712828
AC
7972 * infcall.c (legacy_push_dummy_code): Delete function.
7973 (push_dummy_code): Delete call.
7974
7a882905
AC
7975 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7976 * gdbarch.h, gdbarch.c: Re-generate.
7977 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7978 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7979 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7980 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7981
0ec5872b
AC
7982 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7983 (struct frame_info): Delete opaque declaration.
7984 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7985 * frame.c (get_frame_type): Delete call.
7986
0c93b7b6
AC
7987 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7988 pc_in_call_dummy.
7989 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7990 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7991
75536971
MK
79922004-05-08 Mark Kettenis <kettenis@gnu.org>
7993
527ca6bb
MK
7994 * alphanbsd-tdep.c: Include "gdb_string.h".
7995 * armnbsd-tdep.c: Update copyright year.
7996 Include "gdb_string.h".
7997 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7998 dependencies.
7999
d39fdc61
MK
8000 * delta68-nat.c: Remove file.
8001 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8002 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8003 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8004 (delta68-nat.o): Remove dependency.
8005
75536971
MK
8006 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8007 function.
8008 (m68k_gdbarch_init): Don't set
8009 deprecated_frameless_function_invocation.
8010
f4ca1d1f
RC
80112004-05-07 Randolph Chung <tausq@debian.org>
8012
8013 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8014 read_memory_nobpt for code reading when doing frame unwinding.
8015 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8016
2f0e8c7a
RC
80172004-05-07 Randolph Chung <tausq@debian.org>
8018
8019 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8020 instead of sp, handle sigaltstack case.
8021 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8022 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8023 signal handler and not that of the caller.
8024 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8025 hppa_linux_sigtramp_find_sigcontext.
8026
959464ff
RC
80272004-05-07 Randolph Chung <tausq@debian.org>
8028
8029 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8030 hppa-linux-nat.c.
8031 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8032 * hppa-linux-nat.c (fetch_register, store_register): Define.
8033 (fetch_inferior_registers, store_inferior_registers): Define.
8034 (supply_gregset): Add comment and clean up some unneeded code.
8035 (fill_gregset): Add comment and fix so that it saves registers in
8036 the right place in the gregset.
8037 (fill_fpregset): Fix buffer overrun problem.
8038 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8039
0da28f8a
RC
80402004-05-07 Randolph Chung <tausq@debian.org>
8041
8042 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8043 do common handling of the pcoqt register.
8044 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8045 to use helper function.
8046 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8047 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8048 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8049 generic fallback unwinder when all else fails.
8050 (hppa_gdbarch_init): Add fallback sniffer.
8051 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8052 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8053 to use helper function.
8054
b9ec757a
JB
80552004-05-08 Joel Brobecker <brobecker@gnat.com>
8056
8057 * config/djgpp/fnchange.lst: Add translation rules for
8058 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8059
756e95f1
MK
80602004-05-08 Mark Kettenis <kettenis@gnu.org>
8061
8062 * frame.c (get_prev_frame_1): Work around GCC bug.
8063 * frame.h: Add comment about GCC bug.
8064
2b4855ab
AC
80652004-05-07 Andrew Cagney <cagney@redhat.com>
8066
8067 * observer.c: Include "commands.h" and "gdbcmd.h".
8068 (observer_debug, _initialize_observer): Add the
8069 command "set/show debug observer".
8070 * observer.sh: When observer debugging, log notify calls.
8071 * Makefile.in (observer.o): Update dependencies.
8072
ba3e8e46
JM
80732004-05-07 Jason Molenda (jmolenda@apple.com)
8074
8075 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8076
16796152
JB
80772004-05-07 Jim Blandy <jimb@redhat.com>
8078
daf6dc85
JB
8079 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8080 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8081 to recognize gpr regnums, instead of assuming that
8082 tdep->ppc_fp0_regnum marks the end of the general-purpose
8083 registers.
8084
16796152
JB
8085 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8086 the given architecture has floating-point registers.
8087
c69b8bfc
AC
80882004-05-07 Andrew Cagney <cagney@redhat.com>
8089
8090 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8091 macro defined to 1.
8092 * gdbarch.h, gdbarch.c: Re-generate.
8093 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8094 deprecated_use_generic_dummy_frames.
8095
7243600a
BF
80962004-05-07 Brian Ford <ford@vss.fsi.com>
8097
8098 * NEWS: Mention Cygwin DWARF 2 support.
8099
73c1e0a1
AC
81002004-05-07 Andrew Cagney <cagney@redhat.com>
8101
8102 * objfiles.h (struct entry_info): Delete unused fields
8103 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8104 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8105 * mipsread.c (mipscoff_symfile_read): Update.
8106 * mdebugread.c (parse_partial_symbols): Update.
8107 * dwarfread.c (read_file_scope): Update.
8108 * dwarf2read.c (read_file_scope): Update.
8109 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8110 * coffread.c (complete_symtab): Update.
8111
1d3056ac
MK
81122004-05-07 Mark Kettenis <kettenis@gnu.org>
8113
8114 * infcall.c (_initialize_infcall): Fix typo.
8115
15170568
AC
81162004-05-07 Andrew Cagney <cagney@redhat.com>
8117
8118 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8119 * command.h (add_setshow_zinteger_cmd): Declare.
8120
34f75cc1
RC
81212004-05-06 Randolph Chung <tausq@debian.org>
8122
8123 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8124 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8125 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8126 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8127 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8128 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8129 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8130 definitions ...
8131 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8132 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8133 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8134 (hppa64_hpux_frame_find_saved_regs_in_sig)
8135 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8136 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8137 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8138 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8139 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8140 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8141 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8142 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8143 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8144 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8145 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8146 (hppa32_register_type, hppa_cannot_store_register)
8147 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8148 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8149 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8150 * pa64solib.c (pa64_solib_have_load_event)
8151 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8152 (pa64_solib_unloaded_library_pathname): Likewise.
8153 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8154 (som_solib_library_pathname): Likewise.
8155
0a5e7efe
JI
81562004-05-05 Jim Ingham <jingham@apple.com>
8157
8158 * breakpoint.c (create_breakpoints): Copy the ignore count and
8159 thread id over from the pended breakpoint to the actual
8160 breakpoint.
8161
10a4b113
AC
81622004-05-05 Andrew Cagney <cagney@redhat.com>
8163
8164 * gdbarch.sh (PARM_BOUNDARY): Delete.
8165 gdbarch.h, gdbarch.c: Re-generate.
8166 * valops.c (PARM_BOUNDARY): Delete macro.
8167 (value_push): Delete PARM_BOUNDARY code.
8168 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8169
366f009f
JB
81702004-05-04 Jim Blandy <jimb@redhat.com>
8171
32b99774
JB
8172 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8173 Don't assume that the gprs, fprs, and UISA sprs are
8174 contiguous, start at register number zero, and end with fpscr.
8175 Instead, use the numbers from the tdep structure.
8176
366f009f
JB
8177 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8178 should no longer be used in code specific to the RS6000 and its
8179 derivatives.
8180 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8181 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8182 tdep->ppc_fp0_regnum.
8183 (ppc_supply_fpregset, ppc_collect_fpregset)
8184 (rs6000_push_dummy_call, rs6000_extract_return_value)
8185 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8186 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8187 FP0_REGNUM.
8188 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8189 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8190 Same.
8191 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8192 bdm_ppc_store_registers): Same.
8193 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8194 (store_register, fill_fpregset): Same.
8195 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8196 (ppc_linux_supply_fpregset): Same.
8197 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8198 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8199 Same.
8200 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8201 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8202 ppc64_sysv_abi_return_value): Same.
8203 * rs6000-nat.c (regmap, fetch_inferior_registers)
8204 (store_inferior_registers, fetch_core_registers): Same.
8205
827f338d
MK
82062004-05-01 Mark Kettenis <kettenis@gnu.org>
8207
8208 * m68knbsd-nat.c: Remove file.
8209 * m68knbsd-tdep.c: Remove file.
8210 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8211 dependencies.
8212 * configure.host: Add m68k-*-netbsdelf*.
8213 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8214 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8215 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8216 (XM_FILE): Remove.
8217 * config/m68k/nbsdelf.mh: New file.
8218 * config/m68k/nbsd.mt: New file.
8219 * config/m68k/nbsdaout.mt: Remove file.
8220 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8221 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8222 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8223 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8224 (use_struct_convention): Remove prototype.
8225 (USE_STRUCT_CONVENTION): Remove define.
8226 * config/m68k/xm-nbsd.h: Remove file.
8227
66894781
MS
82282004-05-04 Michael Snyder <msnyder@redhat.com>
8229
8230 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8231 reg_struct_return method (as gcc usually does for cross targets).
8232
f0f63663
AC
82332004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8234
8235 Committed by Andrew Cagney.
8236 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8237 alignment padding when accessing ucontext struct members.
8238
edf61169
JB
82392004-05-04 Jim Blandy <jimb@redhat.com>
8240
8bf659e8
JB
8241 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8242 'ppc_gplast_regnum' member.
8243 (ppc_num_gprs): New enum constant.
8244 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8245 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8246 * rs6000-nat.c (regmap, fetch_inferior_registers,
8247 store_inferior_registers): Same.
8248 * rs6000-tdep.c (e500_pseudo_register_read)
8249 (e500_pseudo_register_write): Same.
8250 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8251
b967e06f
JB
8252 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8253 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8254 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8255 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8256 FPLAST_REGNUM.
8257 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8258 Same.
8259 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8260 * rs6000-nat.c (regmap, fetch_inferior_registers)
8261 (store_inferior_registers): Same.
8262
edf61169
JB
8263 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8264 with FPLAST_REGNUM.
8265
58a9656e
JB
82662004-05-03 Joel Brobecker <brobecker@gnat.com>
8267
8268 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8269 failure detected by recent versions of GCC.
8270 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8271 to be consistent with the usage in dwarf2_create_include_psymtab.
8272
dc305454
MS
82732004-05-03 Michael Snyder <msnyder@redhat.com>
8274
8275 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8276 (heuristic_proc_start): Whitespace cleanup.
8277
29972665
MK
82782004-05-04 Mark Kettenis <kettenis@gnu.org>
8279
6b57680d
MK
8280 * sun3-nat.c: Remove file.
8281 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8282 dependencies.
8283 (ALLDEPFILES): Remove sun3-nat.c.
8284 (sun3-nat.o): Remove dependencies.
8285
29972665
MK
8286 * i386-interix-nat.c, i386-interix-tdep.c,
8287 config/i386/nm-interix.h, config/i386/interix.mh,
8288 config/i386/interix.mt: Remove files.
8289 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8290 dependencies.
8291
f595cb19
MK
82922004-05-03 Mark Kettenis <kettenis@gnu.org>
8293
8294 * m68k-tdep.h (struct gdbarch_tdep): Add member
8295 struct_value_regnum.
8296 (m68k_svr4_init_abi): New prototype.
8297 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8298 different calling conventions.
8299 (m68k_extract_return_value): Remove code dealing with single-field
8300 structs.
8301 (m68k_store_return_value): Remove code dealing with single-field
8302 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8303 (m68k_extract_struct_value_address): Remove function.
8304 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8305 (m68k_reg_struct_return_p, m68k_return_value)
8306 (m68k_svr4_return_value): New functions.
8307 (m68k_use_struct_convention): Remove function.
8308 (m68k_push_dummy_call): Use new struct_value_regnum member of
8309 `struct gdbarch_tdep' instead of hardcoded register number to
8310 store STRUCT_ADDR.
8311 (m68k_svr4_init_abi): New function.
8312 (m68k_gdbarch_init): Don't set extract_return_value,
8313 store_return_values, deprecated_extract_struct_value_address and
8314 use_struct_convention. Set return_value instead. Initialize new
8315 struct_value_regnum member of `struct gdbarch_tdep'.
8316 * m68klinux-tdep.c: Update copyright year.
8317 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8318 (m68k_linux_extract_struct_value_address): Remove function.
8319 (m68k_linux_init_abi): Don't set extract_return_value,
8320 store_return_values, deprecated_extract_struct_value_address and
8321 use_struct_convention. Call m68k_svr4_init_abi but override the
8322 new struct_value_regnum member of `struct gdbarch_tdep'.
8323 * Makefile.in (m68k-tdep.o): Update dependencies.
8324
aaa75496
JB
83252004-05-03 J. Brobecker <brobecker@gnat.com>
8326
8327 * dwarf2read.c (line_header): Add new included_p field in
8328 field file_names.
8329 (partial_die_info): New field has_stmt_list. New field line_offset.
8330 (dwarf2_create_include_psymtab): New function.
8331 (dwarf2_build_include_psymtabs): New function.
8332 (add_file_name): Add forward declaration. Initialize new field.
8333 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8334 to be able to determine the list of files included by the
8335 given unit, and build their associated psymtabs.
8336 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8337 files as well.
8338 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8339 (read_file_scope): Update call to dwarf_decode_lines.
8340 (read_partial_die): Handle DW_AT_stmt_list attributes.
8341
c848556f
MC
83422004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8343
8344 Unfix PR gdb/1626.
8345 * configure.in: Revert special case for osf5.*.
8346 * configure: Regenerate.
8347
eb4556d7
JB
83482004-05-02 Jim Blandy <jimb@redhat.com>
8349
8350 Move the symbol-file-from-memory functions into their own file.
8351 * symfile-mem.c, symfile-mem.h: New files.
8352 * symfile.c (symbol_file_add_from_bfd): New function.
8353 (symbol_file_add): Call symbol_file_add_from_bfd.
8354 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8355 Moved to symfile-mem.c.
8356 (_initialize_symfile): Move definition of
8357 add-symbol-file-from-memory command to symfile-mem.c.
8358 * symfile.h (symbol_file_add_from_bfd): New declaration.
8359 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8360 * config/powerpc/linux.mt (TDEPFILES): Same.
8361 * Makefile.in (SFILES): Add symfile-mem.c.
8362 (symfile_mem_h): New variable.
8363 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8364 (symfile-mem.o): New rule.
8365
80bb239e
AC
83662004-05-01 Andrew Cagney <cagney@redhat.com>
8367
7789d0fa
AC
8368 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8369 frame_find_by_id instead of frame_relative_level.
8370 (do_enable_breakpoint): Ditto.
8371 * thread.c: Update copyright.
8372 (info_threads_command): Ditto, simplify.
8373
80bb239e
AC
8374 * frame.c (deprecated_generic_get_saved_register): Delete
8375 function, moved to "xstormy16-tdep.c".
8376 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8377 deprecated_generic_get_saved_register from "frame.c".
8378 (xstormy16_frame_saved_register): Call
8379 xstormy16_get_saved_register.
8380 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8381 static.
8382 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8383 * frame.h (deprecated_generic_get_saved_register): Delete.
8384
b2a871dd
MC
83852004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8386
8387 * dwarfread.c: Update documentation on the state of dwarf-1.
8388
0e100dab
AC
83892004-05-01 Andrew Cagney <cagney@redhat.com>
8390
acd8056e
AC
8391 * stack.c (select_frame_command): Delete call to
8392 frame_relative_level.
8393 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8394 Delete #if0 code.
8395 (frame_info): Do not print FRAMELESS.
8396 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8397 (catch_info): Delete #if0 code.
8398
0e100dab
AC
8399 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8400 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8401 of frame_relative_level.
8402 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8403 to SENTINEL_FRAME.
8404 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8405 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8406 frame_relative_level.
8407
55699d59
AC
8408 * frame.h (deprecated_set_frame_type): Delete declaration.
8409 * frame.c (deprecated_set_frame_type): Delete function, update
8410 comments.
8411
fcf70625
AC
8412 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8413 * gdbarch.h, gdbarch.c: Re-generate.
8414 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8415 (shnbsd_pc_in_sigtramp): Delete.
8416 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8417 pc_in_sigtramp.
8418 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8419 pc_in_sigtramp.
8420 * frame.h: Update comments.
8421 * ppc-linux-tdep.c: Update comments.
8422 * breakpoint.c (bpstat_what): Update comments.
8423
ac5eccb7
AC
8424 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8425 m68klinux-tdep.o's dependencies, were previously added to
8426 m68klinux-nat.o.
8427
f2524b93
AC
8428 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8429 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8430 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8431 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8432 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8433
17e20bce
AC
8434 * Makefile.in (m68klinux-nat.o): Update dependencies.
8435 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8436 (m68k_linux_sigtramp_frame_cache)
8437 (m68k_linux_sigtramp_frame_this_id)
8438 (m68k_linux_sigtramp_frame_prev_register)
8439 (m68k_linux_sigtramp_frame_unwind)
8440 (m68k_linux_sigtramp_frame_sniffer)
8441 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8442 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8443 names, use trad-frame.h.
8444 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8445 (struct m68k_sigtramp_info): Delete.
8446 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8447 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8448 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8449 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8450 "m68klinux-tdep.c".
8451
c8864fa2
AC
8452 * infrun.c (check_sigtramp2): Delete check for
8453 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8454
511dd2cd
MK
84552004-05-01 Mark Kettenis <kettenis@gnu.org>
8456
8457 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8458
8c6b0e06
AC
84592004-05-01 Andrew Cagney <cagney@redhat.com>
8460
9df0bb3f
AC
8461 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8462 (frv_linux_sigtramp_frame_cache)
8463 (frv_linux_sigtramp_frame_this_id)
8464 (frv_linux_sigtramp_frame_prev_register)
8465 (frv_linux_sigtramp_frame_unwind)
8466 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8467 include "linux" in function and variable names, directly call
8468 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8469 the latest trad-frame code.
8470 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8471 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8472 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8473 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8474 * frv-tdep.c (frv_sigtramp_frame_cache)
8475 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8476 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8477 frv-linux-tdep.c.
8478 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8479 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8480 (frv_set_sigcontext_reg_addr): Delete function.
8481
8c6b0e06
AC
8482 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8483 (DEPRECATED_SIGTRAMP_END): Delete.
8484 * gdbarch.h, gdbarch.c: Re-generate.
8485 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8486 * config/vax/tm-vaxbsd.h: Update copyright.
8487 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8488 (DEPRECATED_IN_SIGTRAMP): Define.
8489 * config/m68k/tm-nbsd.h: Update copyright.
8490 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8491 (DEPRECATED_IN_SIGTRAMP): Define.
8492
50ea7769
MK
84932004-05-01 Mark Kettenis <kettenis@gnu.org>
8494
03ac2a74
MK
8495 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8496 encondings. Fixes PR gdb/1628.
8497
50ea7769
MK
8498 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8499 DW_CFA_restore state without a matching DW_CFA_remember_state
8500 instead of aborting. Fixes PR backtrace/1589.
8501
9a5d7be1
JB
85022004-04-30 Joel Brobecker <brobecker@gnat.com>
8503
8504 * MAINTAINERS: Add self as AIX maintainer.
8505 Update my e-mail address in write-after-approval section.
8506
2593d1cd
AC
85072004-04-30 Andrew Cagney <cagney@redhat.com>
8508
ce12bbf9
AC
8509 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8510 (legacy_get_prev_frame): Ditto.
8511
36710c63
AC
8512 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8513 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8514 * mipsread.c (sigtramp_address): Delete extern variable.
8515 (mipscoff_new_init): Delete reference.
8516 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8517 (fixup_sigtramp): Delete function.
8518 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8519 (fixup_sigtramp): Delete declarations.
8520
2593d1cd
AC
8521 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8522 deprecated_pc_in_sigtramp.
8523 (ppcnbsd_pc_in_sigtramp): Delete function.
8524
2a25f91c
MK
85252004-05-01 Mark Kettenis <kettenis@gnu.org>
8526
8527 * config/m68k/nm-nbsd.h: Tweak comments.
8528 * config/m68k/nm-nbsdaout.h: Likewise.
8529
0b281939
AC
85302004-04-30 Andrew Cagney <cagney@redhat.com>
8531
8532 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8533 legacy_pc_in_sigtramp.
8534 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8535
8f2d3ea0
MK
85362004-05-01 Mark Kettenis <kettenis@gnu.org>
8537
8538 Add OpenBSD/m68k support.
8539 * NEWS (New native configurations): Mention OpenBSD/m68k.
8540 * m68kbsd-tdep.c: New file.
8541 * m68kbsd-nat.c: New file.
8542 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8543 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8544 * configure.host: Add m68k-*-openbsd.
8545 * configure.tgt: Add m68k-*-openbsd.
8546 * config/m68k/tm-obsd.h: New file.
8547 * config/m68k/obsd.mt: New file.
8548 * config/m68k/obsd.mh: New file.
8549 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8550 m68kbsd-tdep.c.
8551
c40f49a4
AC
85522004-04-30 Andrew Cagney <cagney@redhat.com>
8553
8554 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8555 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8556
e81554cd
MK
85572004-04-30 Mark Kettenis <kettenis@gnu.org>
8558
8559 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8560 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8561
d4dc1a91
BF
85622004-04-30 Brian Ford <ford@vss.fsi.com>
8563
8564 Revert 2004-04-16 change.
8565 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8566 (i386_coff_init_abi): Remove.
8567 * i386-tdep.h (i386_coff_init_abi): Remove.
8568 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8569
2f72f850
AC
85702004-04-30 Andrew Cagney <cagney@redhat.com>
8571
e492f9d6
AC
8572 * blockframe.c (find_pc_partial_function): Delete use of
8573 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8574 DEPRECATED_SIGTRAMP_END.
8575
7b7adad0
AC
8576 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8577 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8578 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8579 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8580 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8581
2f72f850
AC
8582 * defs.h (deprecated_inside_entry_file): Delete declaration.
8583 * blockframe.c (deprecated_inside_entry_file): Delete function.
8584 (legacy_frame_chain_valid): Delete call.
8585 * sh64-tdep.c (sh64_frame_chain): Delete call.
8586 * objfiles.h: Update comments.
8587 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8588 call.
8589 * frame.c (get_prev_frame): Delete call, update comments.
8590
283f90a7
BF
85912004-04-30 Brian Ford <ford@vss.fsi.com>
8592
8593 * MAINTAINERS (Write After Approval): Add myself.
8594
8ee56bcf
AC
85952004-04-30 Andrew Cagney <cagney@redhat.com>
8596
8597 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8598 * gdbarch.h, gdbarch.c: Re-generate.
8599 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8600 code.
8601
ee27e1b6
AC
86022004-04-30 Andrew Cagney <cagney@redhat.com>
8603
8604 * gdb-events.sh (selected_thread_changed)
8605 (selected_frame_level_changed, target_changed): Delete.
8606 * gdb-events.h, gdb-events.c: Re-generate.
8607 * valops.c (value_assign): Update.
8608 * stack.c (select_frame_command, up_silently_base)
8609 (down_silently_base): Update.
8610
d5ac5a39
AC
86112004-04-29 Andrew Cagney <cagney@redhat.com>
8612
8613 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8614 registers correctly.
8615 (print_gp_register_row, mips32_heuristic_proc_desc)
8616 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8617 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8618 references to mips_isa_regsize.
8619
ceae6e75
AC
86202004-04-29 Andrew Cagney <cagney@redhat.com>
8621
8622 * mips-tdep.c (struct gdbarch_tdep): Delete
8623 mips_fp_register_double.
8624 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8625 mips_abi_regsize.
8626 (mips_gdbarch_init): Do not set mips_fp_register_double.
8627 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8628
a587af0b
AC
86292004-04-29 Joel Brobecker <brobecker@gnat.com>
8630
8631 Committed by Andrew Cagney.
8632 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8633 function calls.
8634
13326b4e
AC
86352004-04-29 Andrew Cagney <cagney@redhat.com>
8636
8637 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8638 gdbarch, use mips_abi, update callers.
8639 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8640 mips_abi_regsize, update callers.
8641 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8642 mips_default_abi_regsize.
8643 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8644 mips_default_abi_regsize.
8645
711cc5cd
AC
86462004-04-29 Andrew Cagney <cagney@redhat.com>
8647
1b13c4f6
AC
8648 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8649 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8650 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8651 mips_default_abi_regsize.
8652 (mips_isa_regsize): Rename mips_regisze.
8653 * mipsnbsd-tdep.c: Update.
8654 * mips-linux-tdep.c: Update.
8655 * irix5-nat.c: Update.
8656 * mips-tdep.h (mips_isa_regsize): Update.
8657
711cc5cd
AC
8658 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8659 Delete all disabled code.
8660 * gdb-events.h, gdb-events.c: Re-generate.
8661
e63bbc88
MK
86622004-04-19 Jerome Guitton <guitton@gnat.com>
8663 Mark Kettenis <kettenis@gnu.org>
8664
8665 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8666 the function begins with a branch instruction.
8667
fd35795f
MK
86682004-04-29 Mark Kettenis <kettenis@gnu.org>
8669
8670 * i386-tdep.c: Fix spelling mistakes.
8671
c960c18f
AC
86722004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8673 Andrew Cagney <cagney@redhat.com>
8674
8675 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8676 <sys/proc.h>.
8677 * acconfig.h: Provide default _KMEMUSER value.
8678 * config.in, configure: Re-generate.
8679 * NEWS: Mention fix.
8680
50306a9d
RC
86812004-04-24 Randolph Chung <tausq@debian.org>
8682
8683 * configure.host (hppa*-*-linux*): New target.
8684 * configure.tgt (hppa*-*-linux*): Likewise.
8685 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8686 gdbarch_init_osabi() call earlier so that osabi-specific frame
8687 unwinders can be registered first.
8688 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8689 hppa-linux-nat.c.
8690 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8691 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8692 * config/pa/linux.mh: New file.
8693 * config/pa/linux.mt: New file.
8694 * config/pa/nm-linux.h: New file.
8695 * config/pa/xm-linux.h: New file.
8696 * hppa-linux-nat.c: New file.
8697 * hppa-linux-tdep.c: New file.
8698
2a6228ef
RC
86992004-04-28 Randolph Chung <tausq@debian.org>
8700
8701 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8702 return values.
8703 (hppa32_push_dummy_call): Fix small struct and floating point argument
8704 passing, and make sure the stack frame is properly aligned.
8705
82c10df6
AC
87062004-04-28 Andrew Cagney <cagney@redhat.com>
8707
d762c46a
AC
8708 * stack.c (print_stack_frame): Fix description.
8709
82c10df6
AC
8710 * NEWS: Mention gdb/gdbserver/configure execute permission
8711 changed. PR server/519.
8712
0faf0076
AC
87132004-04-28 Andrew Cagney <cagney@redhat.com>
8714
8715 * stack.c (print_stack_frame_stub): Delete declaration.
8716 (struct print_stack_frame_args, print_stack_frame)
8717 (print_frame_info, print_frame): Replace "source" with print what.
8718 Replace "print" with "print_level". Replace "args" with
8719 "print_args".
8720 * frame.h (show_and_print_stack_frame, print_stack_frame)
8721 (print_frame_info): Update declarations.
8722 * stack.c (select_and_print_frame, frame_command)
8723 (current_frame_command, up_command, down_command): Update calls -
8724 use get_selected_frame, pass "enum print_what" for source, do not
8725 call frame_relative_level.
8726 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8727 * remote-rdp.c (remote_rdp_open): Ditto.
8728 * remote-mips.c (common_open): Ditto.
8729 * remote-e7000.c (e7000_start_remote): Ditto.
8730 * ocd.c (ocd_start_remote): Ditto.
8731 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8732 * infrun.c (normal_stop): Ditto.
8733 * inflow.c (kill_command): Ditto.
8734 * infcmd.c (finish_command): Ditto.
8735 * corelow.c (core_open): Ditto.
8736 * tracepoint.c (finish_tfind_command): Ditto.
8737 * thread.c (info_threads_command, info_threads_command)
8738 (restore_current_thread, do_captured_thread_select): Ditto.
8739 * ada-tasks.c (task_command): Ditto.
8740
f4c5303c
OF
87412004-04-26 Orjan Friberg <orjanf@axis.com>
8742
8743 * frame.c: Include "observer.h".
8744 (frame_observer_target_changed): New function.
8745 (_initialize_frame): Attach target_changed observer.
8746 * regcache.c: Include "observer.h".
8747 (regcache_observer_target_changed): New function.
8748 (_initialize_regcache): Attach target_changed observer.
8749 * valops.c: Include "observer.h".
8750 (value_assign): Notify target_changed event when modifying register.
8751 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8752
7270d8f2
OF
87532004-04-26 Orjan Friberg <orjanf@axis.com>
8754
8755 From Paul Koning <pkoning@equallogic.com>:
8756 * breakpoint.c (free_valchain): New function.
8757 (insert_bp_location, delete_breakpoint): Use free_valchain.
8758 (remove_breakpoint): Do not remove the valchain.
8759 (bpstat_stop_status): If not stopped by watchpoint, skip
8760 watchpoints when generating stop status list.
8761 * infrun.c (handle_inferior_event): Make
8762 stepped_after_stopped_by_watchpoint a global variable.
8763 * remote.c (remote_stopped_data_address): Return watch data
8764 address rather than zero if stepped_after_stopped_by_watchpoint is
8765 set.
8766
02d62932
MC
87672004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8768
8769 Fix PR gdb/1626.
8770 * configure.in: Check for curses after termcap.
8771 On osf5.*, do not check for ncurses.
8772 * configure: Regenerate.
8773
3e9a183c
MK
87742004-04-25 Mark Kettenis <kettenis@gnu.org>
8775
c79ac407
MK
8776 * ppcobsd-nat.c: Include "ppc-tdep.h".
8777 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8778
3e9a183c
MK
8779 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8780 Fixes PR tdep/1623 and PR tdep/1624.
8781
38cc9c28
MC
87822004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8783
8784 * xmodem.h, xmodem.c: Remove files.
8785 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8786
7f07c5b6
RC
87872004-04-23 Randolph Chung <tausq@debian.org>
8788
8789 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8790 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8791 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8792 for handling stackless frames.
8793 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8794
9f7194c3
RC
87952004-04-23 Randolph Chung <tausq@debian.org>
8796
8797 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8798 starts at a pc before the frame is created.
8799
dcff6009
JB
88002004-04-23 Joel Brobecker <brobecker@gnat.com>
8801
8802 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8803
40711ff1 88042004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
8805
8806 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8807 use convert_typed_floating to get the appropriate format.
8808
abc485a1
RC
88092004-04-22 Randolph Chung <tausq@debian.org>
8810
8811 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8812 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8813 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8814 (hppa_sign_extend): Add prototype.
8815 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8816 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8817 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8818 hppa targets will also use these functions.
8819 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8820 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8821 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8822 (hppa_gdbarch_init): Remove gdbarch setting of
8823 skip_trampoline_code, in_solib_call_trampoline and
8824 in_solib_return_trampoline.
8825 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8826 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8827 hppa_in_solib_call_trampoline.
8828 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8829 Moved from hppa-tdep.c.
8830 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8831 in_solib_call_trampoline and in_solib_return_trampoline.
8832
369aa520
RC
88332004-04-22 Randolph Chung <tausq@debian.org>
8834
8835 * hppa-tdep.c (hppa_debug): New variable.
8836 (find_unwind_entry, hppa_frame_cache): Add debug output.
8837 (_initialize_hppa_tdep): Add command to set debug flag.
8838
476be15e
AC
88392004-04-22 Andrew Cagney <cagney@redhat.com>
8840
8841 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8842 "trad-frame.h".
8843 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8844 signal trampoline unwinder.
8845 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8846
d195bc9f
MK
88472004-04-22 Mark Kettenis <kettenis@gnu.org>
8848
8849 Add OpenBSD/powerpc support.
8850 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8851 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8852 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8853 (ppc_collect_fpregset): New prototypes.
8854 * ppcobsd-nat.c: New file.
8855 * ppcobsd-tdep.c: New file.
8856 * ppcobsd-tdep.h: New file.
8857 * rs6000-tdep.c: Include "regset.h".
8858 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8859 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8860 New functions.
8861 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8862 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8863 (rs6000-tdep.o): Update dependencies.
8864 * configure.host: Add powerpc-*-openbsd.
8865 * configure.tgt: Add powerpc-*-openbsd.
8866 * config/powerpc/obsd.mh: New file.
8867 * config/powerpc/nm-obsd.h: New file.
8868 * config/powerpc/obsd.mt: New file.
8869
6f14cc33
AC
88702004-04-22 Andrew Cagney <cagney@redhat.com>
8871
fcf29e5f
AC
8872 * frame.h (show_frame_info): Delete declaration.
8873
6f14cc33
AC
8874 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8875 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8876 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8877 * frv-tdep.c (frv_frame_this_id): Ditto.
8878 * avr-tdep.c (avr_frame_this_id): Ditto.
8879
e5786a5c
EZ
88802004-04-22 Elena Zannoni <ezannoni@redhat.com>
8881
8882 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8883
26e75e5c
JB
88842004-04-22 Jim Blandy <jimb@redhat.com>
8885
8886 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8887 register number zero.
8888
d8d65dd3
MS
88892004-04-21 Michael Snyder <msnyder@redhat.com>
8890
8891 * mips-tdep.c (heuristic_proc_start):
8892 Warning() already prefixes "Warning: ".
8893
9a4105ab
AC
88942004-04-21 Andrew Cagney <cagney@redhat.com>
8895
8896 * annotate.h (deprecated_annotate_starting_hook)
8897 (deprecated_annotate_stopped_hook)
8898 (deprecated_annotate_exited_hook)
8899 (deprecated_annotate_signal_hook)
8900 (deprecated_annotate_signalled_hook): Deprecate.
8901 * tracepoint.h (deprecated_create_tracepoint_hook)
8902 (deprecated_delete_tracepoint_hook)
8903 (deprecated_modify_tracepoint_hook)
8904 (deprecated_trace_find_hook)
8905 (deprecated_trace_start_stop_hook): Deprecate.
8906 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8907 * remote.h (deprecated_target_resume_hook)
8908 (deprecated_target_wait_loop_hook): Deprecate.
8909 * gdbcore.h (deprecated_exec_file_display_hook)
8910 (deprecated_file_changed_hook): Deprecate.
8911 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8912 * defs.h (deprecated_modify_breakpoint_hook)
8913 (deprecated_command_loop_hook, deprecated_show_load_progress)
8914 (deprecated_print_frame_info_listing_hook)
8915 (deprecated_query_hook, deprecated_warning_hook)
8916 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8917 (deprecated_delete_breakpoint_hook)
8918 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8919 (deprecated_readline_begin_hook, deprecated_readline_hook)
8920 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8921 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8922 (deprecated_context_hook, deprecated_target_wait_hook)
8923 (deprecated_attach_hook, deprecated_detach_hook)
8924 (deprecated_call_command_hook, deprecated_set_hook)
8925 (deprecated_error_hook, deprecated_error_begin_hook)
8926 (deprecated_ui_load_progress_hook): Deprecate.
8927 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8928 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8929 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8930 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8931 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8932 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8933 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8934 * annotate.c, aix-thread.c: Update.
8935
62cf13cc
AC
89362004-04-21 Andrew Cagney <cagney@redhat.com>
8937
b2e31a62
AC
8938 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8939 * vaxnbsd-tdep.c: Include "gdb_string.h".
8940
62cf13cc
AC
8941 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8942 (add_symbol_file_from_memory_command): #if 0 function body, call
8943 error instead.
8944
00e32a35
AC
89452004-04-21 Andrew Cagney <cagney@redhat.com>
8946
8947 * gdbcore.h: Update copyright.
8948 (deprecated_add_core_fns): Rename add_core_fns.
8949 * win32-nat.c (_initialize_core_win32): Update.
8950 * sun3-nat.c (_initialize_core_sun3): Update.
8951 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8952 * rs6000-nat.c (_initialize_core_rs6000): Update.
8953 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8954 * nto-tdep.c (_initialize_nto_tdep): Update.
8955 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8956 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8957 * mips-nat.c (_initialize_core_mips): Update.
8958 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8959 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8960 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8961 * lynx-nat.c (_initialize_core_lynx): Update.
8962 * irix5-nat.c (_initialize_core_irix5): Update.
8963 * i386-interix-nat.c (_initialize_core_interix): Update.
8964 * cris-tdep.c (_initialize_cris_tdep): Update.
8965 * corelow.c (deprecated_add_core_fns): Update.
8966 * core-regset.c (_initialize_core_regset): Update.
8967 * core-aout.c (_initialize_core_aout): Update.
8968 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8969 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8970 * alpha-nat.c (_initialize_core_alpha): Update.
8971
13c7b1ca
JB
89722004-04-21 Jim Blandy <jimb@redhat.com>
8973
8974 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8975
7b5a2f43
DJ
89762004-04-19 Daniel Jacobowitz <drow@mvista.com>
8977
8978 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8979 Delete.
8980 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8981 (read_attribute_value): Update calls to dwarf_alloc_block.
8982 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8983 dwarf2_tmp_obstack.
8984 (psymtab_to_symtab_1): Likewise. Clean up using
8985 free_stack_comp_unit.
8986 (add_to_cu_func_list): Use the comp_unit_obstack.
8987
05cf31d1
JB
89882004-04-19 Joel Brobecker <brobecker@gnat.com>
8989
8990 * dwarf2read.c (dwarf2_flag_true_p): New function.
8991 (die_is_declaration): Use the function above. Add some comments.
8992
adf93a2f
MK
89932004-04-19 Mark Kettenis <kettenis@gnu.org>
8994
8995 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8996 architecture when registering sparcnbsd_core_osabi_sniffer.
8997 Adjust comment.
8998
748894bf
MK
89992004-04-18 Mark Kettenis <kettenis@gnu.org>
9000
f622ad42
MK
9001 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9002 return value.
9003
c4fc7f1b
MK
9004 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9005 * i386-tdep.c: Correct register numbering scheme comments
9006 throughout.
9007 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9008 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9009 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9010 (i386_gdb_arch_init): Likewise.
9011
b4ead1bd
MK
9012 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9013 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9014 ppcnbsd-tdep.o.
9015
748894bf
MK
9016 * m68k-tdep.h: Tweak comments.
9017 * m68k-tdep.c: Tweak comment.
9018
fdd72f95
RC
90192004-04-17 Randolph Chung <tausq@debian.org>
9020
9021 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9022 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9023 (hppa_hpux_som_init_abi): Set is_elf to 0.
9024 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9025 * hppa-tdep.c (low_text_segment_address): Remove global.
9026 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9027 section offset to calculate segment address.
9028 (internalize_unwinds): Define low_text_segment_address as local and
9029 pass to record_text_segment_lowaddr for ELF targets.
9030 (hppa_gdbarch_init): Zero fill tdep structure.
9031 (hppa_dump_tdep): Print tdep structure.
9032 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9033
0f8d9d59
RC
90342004-04-17 Randolph Chung <tausq@debian.org>
9035
9036 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9037 (hppa_gdbarch_init): Set pseudo_register_read.
9038 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9039 * regcache.c (supply_register): Remove check for
9040 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9041
7c46b9fb
RC
90422004-04-17 Randolph Chung <tausq@debian.org>
9043
9044 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9045 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9046 (hpread_adjust_stack_address): Move to hpread.c.
9047 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9048 obj_private_struct): Move from tm-hppa.h.
9049 * hpread.c (hppa-tdep.h): Include.
9050 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9051 (hpread_read_function_type, hpread_read_doc_function_type)
9052 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9053 directly.
9054 * pa64solib.c (hppa-tdep.h): Include.
9055 * somsolib.c (hppa-tdep.h): Include.
9056 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9057 inferior_status): Remove unused forward declarations.
9058 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9059 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9060 obj_private_struct): Move to hppa-tdep.h.
9061 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9062
8d153463
RC
90632004-04-17 Randolph Chung <tausq@debian.org>
9064
9065 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9066 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9067 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9068 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9069 Remove forward declaration and make static.
9070 (hppa_reg_struct_has_addr): Remove.
9071
350c2e5b
JB
90722004-04-16 Joel Brobecker <brobecker@gnat.com>
9073
9074 * observer.sh: Move comments in sed command to first column.
9075
bbde78fa
JM
90762004-04-16 Jason Molenda (jmolenda@apple.com)
9077
9078 * frame.c: Minor typeo corrections in comments.
9079
e0270fd9
JB
90802004-04-16 Joel Brobecker <brobecker@gnat.com>
9081
9082 * observer.c (observer_test_first_notification_function): Update
9083 function profile.
9084 (observer_test_second_notification_function): Likewise.
9085 (observer_test_third_notification_function): Likewise.
9086
3d049254
MK
90872004-04-16 Mark Kettenis <kettenis@gnu.org>
9088
9089 From Brian Ford <ford@vss.fsi.com>:
9090 * i386-tdep.c (i386_coff_init_abi): New function.
9091 * i386-tdep.h (i386_coff_init_abi): New prototype.
9092 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9093 register number translation functions for DWARF and DWARF 2.
9094
7867684d
JB
90952004-04-16 Joel Brobecker <brobecker@gnat.com>
9096
9097 * dwarf2read.c: Back out my previous change, it was incorrect.
9098
72bf9492
DJ
90992004-04-16 Daniel Jacobowitz <drow@mvista.com>
9100
9101 * dwarf2read.c: Include "hashtab.h".
9102 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9103 has_namespace_info.
9104 (struct partial_die_info): Add comments. Use bitfields to reduce
9105 memory footprint. Add scope, scope_set, has_specification,
9106 spec_offset, die_parent, die_child, and die_sibling.
9107 (peek_die_abbrev): Add prototype.
9108 (partial_read_comp_unit_head): New function, broken out from
9109 dwarf2_build_psymtabs_hard.
9110 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9111 Use partial_read_comp_unit_head. Initialize the CU and
9112 comp_unit_obstack. Update calls to read_partial_die and
9113 scan_partial_symbols. Use free_stack_comp_unit and
9114 load_partial_dies.
9115 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9116 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9117 Update calls to helper functions. Remove NAMESPACE argument.
9118 Update comments.
9119 (partial_die_parent_scope, partial_die_full_name): New functions.
9120 (add_partial_symbol): Remove namespace argument. Update call to
9121 pdi_needs_namespace. Use partial_die_full_name. Handle
9122 DW_TAG_namespace. Check has_namespace_info flag.
9123 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9124 tag. Handle namespaces.
9125 (add_partial_namespace, add_partial_enumeration): Simplify.
9126 (guess_structure_name): New function, derived from
9127 add_partial_structure.
9128 (add_partial_structure): Remove.
9129 (determine_class_name): Update comment.
9130 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9131 (is_type_tag_for_partial, load_partial_dies): New functions.
9132 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9133 Record specifications instead of following them immediately.
9134 (find_partial_die_in_comp_unit, find_partial_die)
9135 (fixup_partial_die, free_stack_comp_unit)
9136 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9137 (partial_die_hash, partial_die_eq): New functions.
9138 * Makefile.in (hashtab_h): Define.
9139 (dwarf2read.o): Update dependencies.
9140 (observer_inc, observer_h): Move to the correct section.
9141
fdc860a3
JB
91422004-04-15 Joel Brobecker <brobecker@gnat.com>
9143
9144 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9145 (die_is_declaration): Use the function above. Add comment.
9146
dc718098
JB
91472004-04-15 Joel Brobecker <brobecker@gnat.com>
9148
9149 * dwarf2read.c (read_structure_scope): Identify stub types
9150 using die_is_declaration() only.
9151
8718a420
RM
91522004-04-15 Roland McGrath <roland@redhat.com>
9153
9154 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9155 argument instead of NAME.
9156 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9157 in call to symbol_file_add_with_addrs_or_offsets.
9158 (build_addr_info): New function, helper for ...
9159 (symbol_file_add_from_memory): New function.
9160 (add_symbol_file_from_memory_command): New function using that.
9161 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9162 (pre_add_symbol_hook): Add const to argument type.
9163 * symfile.h (symbol_file_add_from_memory): Declare it.
9164
8b910bab
MK
91652004-04-15 Mark Kettenis <kettenis@gnu.org>
9166
9f076e7a
MK
9167 * NEWS (New native configurations): Mention OpenBSD/vax.
9168 * configure.host: Add vax-*-openbsd*.
9169 * config/vax/obsd.mh: New file.
9170 * config/vax/nm-obsd.h: New file.
9171
8b910bab
MK
9172 * vax-tdep.c: Include "regset.h".
9173 (vax_supply_gregset): New function.
9174 (vax_gregset): New variable.
9175 (vax_regset_from_core_section): New function.
9176 (vax_gdbarch_init): Set regset_from_core_section.
9177 * Makefile.in (vax-tdep.o): Update dependencies.
9178
7a464420
AC
91792004-04-15 Andrew Cagney <cagney@redhat.com>
9180
9181 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9182 (observer_normal_stop_notification_stub)
9183 (observer_attach_normal_stop, observer_detach_normal_stop):
9184 Delete, replaced by #include "observer.inc".
9185 * infrun.c (normal_stop): Pass "stop_bpstat" to
9186 observer_notify_normal_stop.
9187 * Makefile.in (observer_inc): Define.
9188 (observer.o): Update dependencies.
9189 (observer.h, observer.inc): New rules.
9190 * observer.h: Delete file.
9191 * observer.sh: New file.
9192
e36ad527
MK
91932004-04-15 Mark Kettenis <kettenis@gnu.org>
9194
9195 * vax-tdep.c (vax_frame_cache): Fix typo.
9196
67b441e1
MK
91972004-04-14 Mark Kettenis <kettenis@gnu.org>
9198
6f606e1c
MK
9199 * NEWS (New native configurations): Mention NetBSD/vax.
9200 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9201 * config/vax/nbsdelf.mh: New file.
9202 * config/vax/nbsdaout.mh: New file.
9203 * config/vax/nm-nbsd.h: New file.
9204 * config/vax/nm-nbsdaout.h: New file.
9205
9c5519a5
MK
9206 * vaxnbsd-tdep.c: New file.
9207 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9208 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9209 * config/vax/nbsd.mt: New file.
9210 * config/vax/tm-nbsd.h: New file.
9211
4844a614
MK
9212 * Makefile.in (vaxbsd-nat.o): New dependency.
9213
67b441e1
MK
9214 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9215 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9216 struct_addr arguments. Don't push return value address.
9217 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9218 arguments to vax_store_arguments. Store return value address in
9219 R1.
9220 (vax_store_struct_return, vax_extract_return_value)
9221 (vax_store_return_value): Remove functions.
9222 (vax_return_value): New function.
9223 (vax_gdbarch_init): Set return value. Don't set
9224 deprecated_store_struct_return, deprecated_extract_struct_return
9225 and deprecated_store_return_value.
9226
6672f2ae
AS
92272004-04-14 Andreas Schwab <schwab@suse.de>
9228
9229 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9230 value buffer.
9231 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9232
7346c184
MK
92332004-04-14 Mark Kettenis <kettenis@gnu.org>
9234
9235 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9236 (vax_unwind_dummy_id): New functions.
9237 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9238 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9239 variables.
9240 (vax_fix_call_dummy): Remove function.
9241 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9242 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9243 call_dummy_location, deprecated_call_dummy_words,
9244 deprecated_sizeof_call_dummy_words,
9245 deprecated_call_dummy_breakpoint_offset,
9246 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9247 and deprecated_dummy_write_sp.
9248
58e23df4
DC
92492004-04-13 David Carlton <carlton@kealia.com>
9250
9251 * MAINTAINERS: Move myself to "paper trail" section.
9252
5e6b39ff
MK
92532004-04-12 Mark Kettenis <kettenis@gnu.org>
9254
7def7fef
MK
9255 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9256 "trad-frame.h".
9257 (vax_frame_init_saved_regs): Remove function.
9258 (vax_sigtramp_saved_pc): Remove function.
9259 (vax_frame_saved_pc): Remove function.
9260 (vax_frame_args_address): Remove function.
9261 (vax_frame_num_args): Rewrite.
9262 (vax_frame_chain): Remove function.
9263 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9264 VAX_FP_REGNUM.
9265 (vax_pop_frame): Likewise.
9266 (vax_saved_pc_after_call): Remove function.
9267 (struct vax_frame_cache): New structure.
9268 (vax_frame_cache): New function.
9269 (vax_frame_this_id): New function.
9270 (vax_frame_prev_register): New function.
9271 (vax_frame_unwind): New variable.
9272 (vax_frame_sniffer): New function.
9273 (vax_frame_base_address): New function.
9274 (vax_frame_args_address): New function.
9275 (vax_frame_base): New variable.
9276 (vax_unwind_pc): New function.
9277 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9278 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9279 deprecated_frame_chain, deprecated_frame_saved_pc,
9280 deprecated_frame_args_address and
9281 deprecated_frame_init_saved_regs.
9282 * Makefile.in (vax-tdep.o): Update dependencies.
9283
53284fc1
MK
9284 * vaxbsd-nat.c: New file.
9285
5e6b39ff
MK
9286 * vax-tdep.h: Update copyright year. Adjust comments.
9287 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9288 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9289 (vax_regnum): New enum. Replacing...
9290 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9291 (VAX_PS_REGNUM): ... these removed macros.
9292 * vax-tdep.c (vax_register_name): Remove prototype.
9293 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9294 (vax_register_byte, vax_register_raw_size,
9295 vax_register_virtual_size, vax_register_virtual_type): Remove
9296 functions.
9297 (vax_register_type): New function.
9298 (vax_breakpoint_from_pc): Reorganize.
9299 (vax_gdbarch_init): Set register_type. Don't set
9300 deprecated_register_size, deprecated_register_bytes,
9301 deprecated_register_byte, deprecated_register_raw_size,
9302 deprecated_max_register_raw_size,
9303 deprecated_register_virtual_size,
9304 deprecated_max_register_virtual_size and
9305 deprecated_register_virtual_type. Add comment on stack direction.
9306
e9c71e9f
MK
93072004-04-11 Mark Kettenis <kettenis@gnu.org>
9308
9309 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9310 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 9311 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 9312
d46f1176 93132004-04-10 Randolph Chung <tausq@debian.org>
8718a420 9314
d46f1176
RC
9315 * MAINTAINERS (write after approval): Add myself.
9316
a2a84a72
RC
93172004-04-07 Randolph Chung <tausq@debian.org>
9318
9319 * hppa-tdep.c (hppa_inner_than): Remove.
9320 (is_pa_2): Remove unused static variable.
8718a420 9321 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 9322
e85c3284
PH
93232004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9324
9325 * language.h (language_defn): Add new la_post_parser field.
9326 * parser-defs.h (null_post_parser): New declaration (default for
9327 la_post_parser).
8718a420 9328
e85c3284
PH
9329 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9330 insert call to that function.
9331 (parse_exp_in_context): New function, including code formerly in
8718a420 9332 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
9333 prefixification.
9334 (parse_expression_in_context): New exported function.
9335 (null_post_parser): New definition.
9336 * expression.h (parse_expression_in_context): Add declaration.
8718a420 9337
e85c3284
PH
9338 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9339 * c-lang.c (c_language_defn): Ditto.
9340 (cplus_language_defn): Ditto.
9341 (asm_language_defn): Ditto.
9342 (minimal_language_defn): Ditto.
9343 * f-lang.c (f_language_defn): Ditto.
9344 * jv-lang.c (java_language_defn): Ditto.
9345 * language.c (unknown_language_defn): Ditto.
9346 (auto_language_defn): Ditto.
9347 (local_language_defn): Ditto.
9348 * m2-lang.c (m2_language_defn): Ditto.
9349 * scm-lang.c (scm_language_defn): Ditto.
9350 * obj-lang.c (objc_language_defn): Ditto.
8718a420 9351
d9f8c85b
MK
93522004-04-10 Mark Kettenis <kettenis@gnu.org>
9353
fa34704a
MK
9354 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9355 (amd64nbsd_mcontext_addr): New function.
9356 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9357 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9358 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9359
403e1656
MK
9360 * corelow.c (core_xfer_partial): Fix coding standards violation.
9361 Add support for TARGET_OBJECT_WCOOKIE.
9362
a57e5a95
MK
9363 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9364 deprecated_pc_in_sigtramp.
9365 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9366 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9367 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9368 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9369 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9370 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9371 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9372
377d9ebd
MK
9373 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9374 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9375 Fix typo.
9376
f0ef85a5
MK
9377 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9378 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9379 (amd64_collect_fxsave): Likewise.
9380
d9f8c85b
MK
9381 * i386-sol2-tdep.c: Include "gdb_string.h".
9382 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9383 name.
9384 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9385
75f501b5
MK
93862004-04-10 Mark Kettenis <kettenis@gnu.org>
9387
9388 * i386-sol2-tdep.c: Include "solib-svr4.h".
9389 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9390 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9391 * config/i386/tm-i386sol2.h: Include :solib.h".
9392 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9393 solib-svr4.o and solib-legacy.o.
9394 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9395 solib-svr4.o.
9396
b31bc724
MK
93972004-04-09 Mark Kettenis <kettenis@gnu.org>
9398
18bbbd9e
MK
9399 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9400 whether a register is supplied by PTRACE_GETFPREGS.
9401 (store_inferior_registers): Likewise.
9402 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9403 whether a register is supplied by PT_GETFPREGS.
9404 (store_inferior_registers): Likewise.
9405
3c30bf1b
MK
9406 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9407 * config/i386/linux64.mt (TDEPFILES): Likewise.
9408
a4194092
MK
9409 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9410
911bc6ee
MK
9411 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9412 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9413 the program counter is in the range specified by `struct
9414 gdbarch_tdep'.
9415 * amd64-linux-tdep.c: Include "symtab.h".
9416 (amd64_linux_pc_in_sigtramp): Remove function.
9417 (amd64_linux_sigtramp_p): New function.
9418 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9419 deprecated_pc_in_sigtramp.
9420 * amd64nbsd-tdep.c: Include "symtab.h".
9421 (amd64nbsd_sigtramp_p): New function.
9422 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9423 deprecated_pc_in_sigtramp.
9424 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9425 few comments.
9426 (amd64obsd_pc_in_sigtramp): Remove function.
9427 (amd64obsd_sigtramp_p): New function.
9428 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9429 deprecated_pc_in_sigtramp.
9430 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9431 (i386bsd_pc_ins_sigtramp): Remove prototype.
9432 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9433 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9434 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9435 the program counter is in the range specified by `struct
9436 gdbarch_tdep'.
9437 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9438 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9439 (i386_go32_pc_in_sigtramp): Remove function.
9440 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9441 Initialize TDEP->sigtramp_p.
9442 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9443 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9444 deprecated_pc_in_sigtramp.
9445 * i386-linux-tdep.c: Adjust comments.
9446 (i386_linux_pc_in_sigtramp): Remove function.
9447 (i386_linux_sigtramp_p): New function.
9448 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9449 deprecated_pc_in_sigtramp.
9450 * i386-nto-tdep.c: Update copyright year.
9451 (i386nto_pc_in_sigtramp): Remove function.
9452 (i386nto_sigtramp_p): New function.
9453 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9454 SP_REGNUM.
9455 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9456 deprecated_pc_in_sigtramp.
9457 * i386-sol2-tdep.c: Update copyright year.
9458 (i386_sol2_pc_in_sigtramp): Remove function.
9459 (i386_sol2_sigtramp_p): New function.
9460 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9461 deprecated_pc_in_sigtramp.
9462 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9463 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9464 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9465 deprecated_sigtramp_start and deprecated_sigtramp_end.
9466 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9467 (i386nbsd_pc_in_sigtramp): Remove function.
9468 (i386nbsd_sigtramp_p): New function.
9469 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9470 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9471 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9472 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9473 (i386obsd_pc_in_sigtramp): Remove function.
9474 (i386obsd_sigtramp_p): New function.
9475 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9476 functions.
9477 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9478 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9479 TDEP->sigtramp_p.
9480 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9481 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9482 dependencies.
9483
e083e6ec
MK
9484 * config/i386/i386aout.mt: Remove file.
9485
bd153b94
MK
9486 * configure.tgt: Remove i[34567]86-*-go32*,
9487 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9488 and i[34567]86-*-isc*. Set gdb_target to i386 for
9489 i[34567]86-*-netware* and i[34567]86-*-*.
9490 * config/i386/i386.mt: New file.
9491 * config/i386/embed.mt: Remove file.
9492 * config/i386/go32.mt: Remove file.
9493 * config/i386/i386nw.mt: Remove file.
9494 * config/i386/i386v.mt: Remove file.
9495 * config/i386/tm-go32.h: Remove file.
9496
4a1bcc8c
MK
9497 * tui/tui-hooks.c: Include "readline/readline.h" after
9498 "gdb_curses.h" instead of before.
9499 * tui/tui-io.c: Likewise.
9500
f9a79064
MK
9501 * tui/tui.c: Fix typo in comment.
9502
b31bc724
MK
9503 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9504
f83f82bc
AC
95052004-04-08 Andrew Cagney <cagney@redhat.com>
9506
9507 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9508 (deprecated_exception_support_initialized): Declare.
8718a420 9509 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
9510 (initialize_hp_cxx_exception_support)
9511 (child_enable_exception_callback): Update.
9512 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9513 (deprecated_exception_support_initialized): Rename
9514 deprecated_exception_catchpoints_are_fragile and
9515 deprecated_exception_support_initialized.
9516 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9517
9518 * symtab.c (deprecated_hp_som_som_object_present): Rename
9519 hp_som_som_object_present.
9520 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9521 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9522 Update. Delete extern declaration.
9523 * valops.c (hp_som_som_object_present): Ditto.
8718a420 9524 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
9525 (parse_nested_classes_for_hpacc): Ditto.
9526 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 9527 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
9528 (initialize_hp_cxx_exception_support): Ditto.
9529 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 9530 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 9531 (cp_print_class_method): Ditto.
8718a420 9532 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
9533 (c_type_print_base): Ditto.
9534 * c-exp.y (hp_som_som_object_present): Ditto.
9535
fb2be677
AC
95362004-04-08 Andrew Cagney <cagney@redhat.com>
9537
9538 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9539 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9540 (frame_unwind_find_by_frame): Re-implement the unwind code so
9541 that it can both prepend and append sniffers. Replace
9542 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9543 * tramp-frame.c (tramp_frame_append): Use
9544 frame_unwind_prepend_unwinder.
9545 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9546 frame_unwind_register_unwinder.
9547 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9548 tramp_frame_append.
9549 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 9550 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
9551 (mips_linux_init_abi): Update.
9552
67faf007
KB
95532004-04-08 Kevin Buettner <kevinb@redhat.com>
9554
9555 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9556 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9557 file support.
9558
8973ff21
KB
95592004-04-07 Kevin Buettner <kevinb@redhat.com>
9560
9561 * ia64-tdep.c (elf.h): Don't include.
9562 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9563
4a0e2f88
JM
95642004-04-07 Jason Molenda (jmolenda@apple.com)
9565
9566 * frame.h: Typeo corrections in comments.
9567
9872ad24
JB
95682004-04-07 Jim Blandy <jimb@redhat.com>
9569
9570 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9571 %esp and %ebp
9572
70b216c8
MK
95732004-04-07 Mark Kettenis <kettenis@gnu.org>
9574
11d5789c
MK
9575 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9576 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9577 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9578 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9579 and solib-legacy.o.
9580 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9581 solib-svr4.o.
9582 * config/sparc/tm-sol2.h: Update copyright year. Include
9583 "solib.h".
9584
70b216c8
MK
9585 * sparc-sol2-tdep.c: Update copyright year. Include
9586 "solib-svr4.h".
9587 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9588 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9589 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 9590 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
9591 dependencies.
9592
6339dc9e
AC
95932004-04-06 Andrew Cagney <cagney@redhat.com>
9594
9595 * infttrace.c: Include "infttrace.h".
9596 * infttrace.h: Include "target.h".
9597 * Makefile.in (infttrace_h): Update.
9598 (infttrace.o): Update.
8718a420 9599
93449403
AC
96002004-04-06 Andrew Cagney <cagney@redhat.com>
9601
6d518969
AC
9602 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9603 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9604 move extern declarations from here ...
9605 * infttrace.h: ... to here.
9606 * Makefile.in (hppah-nat.o): Update dependencies.
9607
85f4f2d8
AC
9608 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9609 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 9610 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
9611 (hppa_breakpoint_from_pc): Delete.
9612
93449403
AC
9613 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9614
71456ec6
AC
96152004-04-05 Andrew Cagney <cagney@redhat.com>
9616
9617 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9618 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9619 <sys/file.h>.
8718a420 9620
4c02c60c
AC
96212004-04-06 Randolph Chung <tausq@debian.org>
9622
9623 Committed by Andrew Cagney (mechanical change).
9624 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9625 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9626 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9627 child_enable_exception_callback, current_ex_event,
9628 null_symtab_and_line, child_get_current_exception_event,
9629 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9630 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9631 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9632 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9633 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9634 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9635 Move hpux-specific definitions ...
9636 * hppa-hpux-tdep.c: ... to here.
9637
3a515653
AC
96382004-04-05 Andrew Cagney <cagney@redhat.com>
9639
9640 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9641 skip_prologue_using_sal.
9642
c1730d02
AC
96432004-04-05 Andrew Cagney <cagney@redhat.com>
9644
9645 * config/i386/tm-i386.h: Delete file.
9646 * config/i386/tm-vxworks.h: Update copyright, do not include
9647 "tm-i386.h".
9648 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9649 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9650 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9651 * config/i386/ncr3000.mt (TM_FILE): Delete.
9652 * config/i386/interix.mt (TM_FILE): Delete.
9653 * config/i386/i386v.mt (TM_FILE): Delete.
9654 * config/i386/i386nw.mt (TM_FILE): Delete.
9655 * config/i386/i386gnu.mt (TM_FILE): Delete.
9656 * config/i386/i386aout.mt (TM_FILE): Delete.
9657 * config/i386/embed.mt (TM_FILE): Delete.
9658
8b67aa36
KB
96592004-04-05 Kevin Buettner <kevinb@redhat.com>
9660
9661 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9662 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9663 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9664 (accg7_regnum): New constants.
9665 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
9666 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9667 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
9668 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9669 for accg registers.
9670 (frv_register_sim_regno): Update spr_map[].
9671
3c7012f5
AC
96722004-04-04 Andrew Cagney <cagney@redhat.com>
9673
9674 * config/mips/xm-riscos.h: Delete.
9675 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9676 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9677 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9678 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9679 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9680 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9681 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9682 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9683 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9684 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9685 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9686 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9687 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9688 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9689 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9690 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9691 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9692 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9693 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9694 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9695 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9696 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9697 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9698 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9699 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9700 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 9701
3c7012f5
AC
9702 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9703 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9704 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9705 * configure.host: Remove m680[01]0-sun-sunos3*,
9706 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9707 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9708 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9709 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9710 mips-*-riscos*.
9711 * NEWS: Mention removed systems.
9712
99d16a21
AC
97132004-04-04 Andrew Cagney <cagney@redhat.com>
9714
9715 GDB 6.1 release created from 6.1 branch.
9716
6cdf9d98
AC
97172004-04-04 Andrew Cagney <cagney@redhat.com>
9718
98d346c3
AC
9719 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9720 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9721 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9722
6cdf9d98
AC
9723 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9724 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9725 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9726
859a326d
JB
97272004-04-03 Jim Blandy <jimb@redhat.com>
9728
9729 * MAINTAINERS: Chris Faylor has changed employers; add him to
9730 "paper trail" section, and update his E-mail address.
9731
b87178c3
AC
97322004-04-03 Andrew Cagney <cagney@redhat.com>
9733
4ea2acf0
AC
9734 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9735 generic dummy frames.
9736 * dummy-frame.c: Update copyright.
9737 (dummy_frame_sniffer): Delete check for generic dummy frames.
9738
d0bd2d18 9739 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 9740 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
9741 (REG_PARM_STACK_SPACE): Delete.
9742 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9743 Inline reference to REG_PARM_STACK_SPACE.
9744
b87178c3
AC
9745 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9746 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9747 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9748 (FRAME_BASE_BEFORE_SIGTRAMP)
9749 (hppa32_hpux_frame_base_before_sigtramp)
9750 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9751 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9752 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9753 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9754 (FRAME_BASE_BEFORE_SIGTRAMP)
9755 (hppa64_hpux_frame_base_before_sigtramp)
9756 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9757
43e2e1a0
AC
97582004-04-03 Andrew Cagney <cagney@redhat.com>
9759
9760 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9761
ddc135a4
AC
97622004-04-02 Andrew Cagney <cagney@redhat.com>
9763
9764 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9765 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9766 * dummy-frame.h: Delete out-of-date comments.
9767 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9768 * gdbarch.h, gdbarch.c: Re-generate.
9769
d15bfd3a 97702004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 9771
d15bfd3a
AC
9772 Committed by Andrew Cagney <cagney@redhat.com>.
9773 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9774 into account an instruction saving a register if we have already
9775 seen an earlier instruction saving that same register.
9776
f04ceafa
AC
97772004-04-02 Andrew Cagney <cagney@redhat.com>
9778
08be3abd
AC
9779 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9780 * gdbarch.h, gdbarch.c: Re-generate.
9781 * frame.c (legacy_get_prev_frame): Delete references to
9782 DEPRECATED_INIT_FRAME_PC_FIRST.
9783
f04ceafa
AC
9784 * infrun.c (pc_in_sigtramp): Delete function.
9785 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9786 get_frame_type.
9787
08e69816
AC
97882004-04-02 Andrew Cagney <cagney@redhat.com>
9789
9790 * infrun.c (handle_step_into_function): Delete code conditional on
9791 legacy_frame_p.
9792 (handle_inferior_event, step_over_function): Ditto.
9793
adb54772
AC
97942004-04-02 Andrew Cagney <cagney@redhat.com>
9795
9796 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9797 "previous frame inner to this frame" test.
9798
304396fb
AC
97992004-04-02 Andrew Cagney <cagney@redhat.com>
9800
9801 * frame.c (safe_frame_unwind_memory): New function.
9802 * frame.h (safe_frame_unwind_memory): Declare. Update description
9803 of /safe_/ methods.
9804 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9805 "next_frame". Use safe_frame_unwind_memory.
9806 (tramp_frame_sniffer): Update call to tramp_frame_start.
9807
6502dd73
DJ
98082004-04-01 Daniel Jacobowitz <drow@mvista.com>
9809
9810 * dwarf2read.c (dwarf2_objfile_data_key): New.
9811 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9812 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9813 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9814 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9815 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9816 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9817 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9818 Remove variables.
9819 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9820 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9821 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9822 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9823 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9824 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9825 Remove macros.
9826 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9827 data.
9828 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9829 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9830 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9831 (read_partial_die, read_full_die, read_indirect_string)
9832 (dwarf_decode_line_header, dwarf_decode_macros)
9833 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9834 Update uses of removed variables.
9835 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9836 of removed macros.
9837 (_initialize_dwarf2_read): New function.
9838 * symfile.h (dwarf2_has_info): Update prototype.
9839 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9840 * elfread.c (elf_symfile_read): Likewise.
9841
408752b0
JB
98422004-04-01 Jim Blandy <jimb@redhat.com>
9843
9f744501
JB
9844 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9845 function for register numbers on all the rs6000-derived targets.
9846 (rs6000_gdbarch_init): Don't register a separate
9847 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9848 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9849 variants.
9850
408752b0
JB
9851 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9852 numbering.
9853
2de41bce
PH
98542004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9855
9856 * valarith.c: Update copyright notice.
9857 (value_add): Handle range types.
9858 (value_sub): Ditto.
9859 (value_equal): Ditto.
9860 (value_less): Ditto.
9861 (value_neg): Ditto.
9862 (value_complement): Ditto.
8718a420 9863 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 9864 eliminiating unnecessary COERCE_ENUMs.
8718a420 9865
5613d8d3
AC
98662004-03-31 Andrew Cagney <cagney@redhat.com>
9867
9868 * frame.h (frame_unwind_id): Declare.
9869 * frame.c (frame_unwind_id): New function.
9870 (get_prev_frame_1): New function.
9871 (frame_debug_got_null_frame): New function.
9872 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9873 code proper to prev_frame, update description.
9874 * infrun.c (step_over_function): Use frame_unwind_id.
9875
c4557624
JB
98762004-04-31 J. Brobecker <brobecker@gnat.com>
9877
9878 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9879 (hppa64_push_dummy_call): Likewise.
9880
3e6bb910
JB
98812004-03-30 Jim Blandy <jimb@redhat.com>
9882
9883 From Ulrich Weigand:
9884 * utils.c (query): Do not use a va_list variable multiple times.
9885
a2f23071
DJ
98862004-03-29 Daniel Jacobowitz <drow@mvista.com>
9887
9888 * Makefile.in (linux_nat_h): Update dependencies.
9889 * configure.in: Check for <gnu/libc-version.h>.
9890 * configure: Regenerate.
9891 * config.in: Regenerate.
9892 * linux-nat.h: Include "target.h". Add waitstatus field to
9893 struct lwp_info.
9894 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9895 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9896 to.
9897 (lin_lwp_handle_extended): New function. Handle clone events.
9898 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9899 thread exit events.
9900 (child_wait): Handle clone events.
9901 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9902 * linux-nat.c (linux_enable_event_reporting): Turn on
9903 PTRACE_O_TRACECLONE.
9904 (linux_handle_extended_wait): Handle clone events.
9905 * thread-db.c: Include <gnu/libc-version.h>.
9906 (struct private_thread_info): Add dying flag.
9907 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9908 higher.
9909 (attach_thread): Update comments. Handle dying threads.
9910 (detach_thread): Set the dying flag.
9911 (check_event): Always call attach_thread.
9912
8d5f9dcb
DJ
99132004-03-29 Daniel Jacobowitz <drow@mvista.com>
9914
9915 * mips-tdep.c (mips_pdr_data): New.
9916 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9917 (_initialize_mips_tdep): Initialize mips_pdr_data.
9918
66337bb1
CV
99192004-03-29 Corinna Vinschen <vinschen@redhat.com>
9920
9921 * minsyms.c (install_minimal_symbols): Move dropping leading
9922 char from linkage name from here...
9923 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9924 test for "__gnu_compiled*" symbols.
9925
e802b915
JB
99262004-03-28 Jim Blandy <jimb@redhat.com>
9927
9928 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9929 registers to temp register r0 and byte stores as prologue
9930 instructions.
9931
72b56458
AC
99322004-03-28 Andrew Cagney <cagney@redhat.com>
9933
9934 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9935 arm*-*-*.
9936
0bfbda3b
SC
99372004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9938
9939 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9940 and switch the layout to force a display of register window.
9941
5a7225ed
JB
99422004-02-26 J. Brobecker <brobecker@gnat.com>
9943
9944 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9945 of the INTEGER class.
9946
81a07a45
JB
99472004-03-26 Jim Blandy <jimb@redhat.com>
9948
9949 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9950 bytes long on PPC GNU/Linux.
9951
8c691c7a
DC
99522004-03-26 David Carlton <carlton@kealia.com>
9953
9954 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9955
103a0089
AC
99562004-03-25 Andrew Cagney <cagney@redhat.com>
9957
9958 * PROBLEMS: Add general section titles, remove references to
9959 specific releases.
9960
7a5ea0d4
DJ
99612004-03-25 Daniel Jacobowitz <drow@mvista.com>
9962
9963 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9964 INT_REGISTER_SIZE.
9965 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9966 FP_REGISTER_VIRTUAL_SIZE.
9967 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9968 of DEPRECATED_REGISTER_RAW_SIZE.
9969 (arm_register_type): Add gdbarch argument.
9970 (arm_register_raw_size, arm_register_virtual_size): Delete.
9971 (arm_register_byte, arm_extract_return_value)
9972 (arm_store_return_value, arm_get_longjmp_target): Update references
9973 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9974 (arm_gdbarch_init): Likewise. Don't set
9975 deprecated_register_raw_size, deprecated_register_virtual_size,
9976 deprecated_max_register_raw_size,
9977 deprecated_max_register_virtual_size, or
9978 deprecated_max_register_virtual_type. Do set register_type.
9979 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9980 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9981 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9982 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9983 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9984 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9985 INT_REGISTER_SIZE.
9986 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9987 (remote_rdp_store_register): Likewise.
9988
5792a79b
DJ
99892004-03-24 Daniel Jacobowitz <drow@mvista.com>
9990
9991 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9992 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9993 to after osabi initialization.
9994 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9995 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9996 functions.
9997 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9998 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9999 variables.
10000 (mips_linux_init_abi): Append signal trampoline unwinders.
10001
1196bfda
AC
100022004-03-24 Andrew Cagney <cagney@redhat.com>
10003
10004 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10005 * tramp-frame.c: Include "gdb_assert.h".
10006 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10007 correct sizeof.
10008 (tramp_frame_append): Validate the tramp frame's instructions.
10009 * Makefile.in (tramp-frame.o): Update dependencies.
10010
4be282b4
AC
100112004-03-23 Andrew Cagney <cagney@redhat.com>
10012
10013 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10014
69aec09b
AC
100152004-03-23 Andrew Cagney <cagney@redhat.com>
10016
10017 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10018 Nasser as past testsuite/lib/ (and other) maintainers.
10019
63ed89b4
DJ
100202004-03-23 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * infcmd.c (attach_command): Reread symbols if we already have
10023 an exec file.
10024
f3b36427
AC
100252004-03-23 Andrew Cagney <cagney@redhat.com>
10026
10027 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10028
aa2a3f87
AC
100292004-03-23 Andrew Cagney <cagney@redhat.com>
10030
10031 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10032 * gdbarch.h, gdbarch.c: Re-generate.
10033 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10034 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10035 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 10036 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 10037 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 10038 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
10039 (DEPRECATED_SIGTRAMP_START): Update.
10040 * blockframe.c (find_pc_sect_partial_function): Update.
10041 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10042
00cac895
DJ
100432004-03-23 Daniel Jacobowitz <drow@mvista.com>
10044
10045 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10046 if necessary.
10047
f561f026
AC
100482004-03-23 Andrew Cagney <cagney@redhat.com>
10049
10050 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10051 predicate, deprecate.
10052 * gdbarch.h, gdbarch.c: Re-generate.
10053 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10054 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10055 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10056 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10057 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10058 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10059 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10060 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10061 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10062 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10063 * blockframe.c (find_pc_partial_function): Update.
10064 * breakpoint.c (bpstat_what): Update.
10065 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10066 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10067 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10068 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10069 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10070 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10071 * i386-nto-tdep.c (i386nto_init_abi): Update.
10072 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10073 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10074 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10075 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10076 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10077 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10078 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10079 * infrun.c (pc_in_sigtramp): Update.
10080 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10081 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10082 * mips-tdep.c (mips_gdbarch_init): Update.
10083 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10084 * ppc-linux-tdep.c: Update comment.
10085 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10086 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10087 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10088 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10089 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10090 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10091 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10092 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10093 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10094 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 10095
8050c72f
AC
100962004-03-23 Andrew Cagney <cagney@redhat.com>
10097
d2259dd3
AC
10098 * tramp-frame.h, tramp-frame.h: New files.
10099 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10100 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10101
8050c72f
AC
10102 * Makefile.in: Update all dependencies.
10103
0db9b4b7
AC
101042004-03-23 Andrew Cagney <cagney@redhat.com>
10105
10106 * Makefile.in (trad_frame_h): Add $(frame_h).
10107 * trad-frame.h: Update copyright. Include "frame.h".
10108 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10109 (trad_frame_set_id, trad_frame_get_id): Declare.
10110 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10111 * trad-frame.c: Update copyright.
10112 (struct trad_frame_cache): Define.
10113 (trad_frame_cache_zalloc): New function.
10114 (trad_frame_set_id, trad_frame_get_id): New functions.
10115 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 10116
8e645ae7
AC
101172004-03-22 Andrew Cagney <cagney@redhat.com>
10118
10119 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10120 s390_pltstub_unwind_cache.
10121 (s390_stub_frame_unwind_cache): Rename
10122 s390_pltstub_frame_unwind_cache.
10123 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10124 (s390_stub_frame_prev_register): Rename
10125 s390_pltstub_frame_prev_register.
10126 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10127 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10128
10129 From Ulrich Weigand:
10130 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10131 pointer calls like PLT calls.
10132
34fcf120
DJ
101332004-03-22 Daniel Jacobowitz <drow@mvista.com>
10134
10135 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10136 PC rather than the partial function start address. Use the start
10137 address to sanity check the found PDR.
10138
5b917078
DJ
101392004-03-22 Daniel Jacobowitz <drow@mvista.com>
10140
10141 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10142 linux_handle_extended_wait.
10143
8adf9e78
AC
101442004-03-22 Andrew Cagney <cagney@redhat.com>
10145
c3122434
AC
10146 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10147 function.
10148
8adf9e78
AC
10149 * frame.h (generic_pop_current_frame): Delete declaration.
10150 (deprecate_pop_dummy_frame): Deprecate
10151 generic_pop_dummy_frame.
10152 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10153 (generic_pop_current_frame): Delete function.
10154 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10155 generic_pop_current_frame.
10156 * v850-tdep.c (v850_pop_frame): Update.
10157 * mcore-tdep.c (mcore_pop_frame): Update.
10158 * sh64-tdep.c (sh64_pop_frame): Update.
10159 * h8300-tdep.c (h8300_pop_frame): Update.
10160
90ba813f
AC
101612004-03-22 Andrew Cagney <cagney@redhat.com>
10162
10163 * frame.h (deprecated_pc_in_call_dummy): Rename
10164 generic_pc_in_call_dummy.
10165 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10166 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10167 generic_pc_in_call_dummy.
10168 (pc_in_dummy_frame): Make static.
10169 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10170 * gdbarch.h, gdbarch.c: Re-generate.
10171 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10172 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10173 (legacy_get_prev_frame): Ditto.
10174 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10175 comment.
8718a420 10176
ca4bb888
AC
101772004-03-21 Andrew Cagney <cagney@redhat.com>
10178
244675f9
AC
10179 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10180 declaration and out-of-date comment.
10181 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10182 Delete function.
10183 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10184 deprecated_pc_in_call_dummy.
10185
ca4bb888
AC
10186 * infrun.c (handle_inferior_event): For non legacy frames, use the
10187 frame ID and frame type to identify a signal trampoline. Update
10188 comments.
10189
1777c7b4
NW
101902004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10191
10192 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10193 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10194
82417da5
AC
101952004-03-21 Andrew Cagney <cagney@redhat.com>
10196
10197 * frame-unwind.h: Update copyright.
10198 (struct frame_data): Add opaque declaration.
10199 (frame_sniffer_ftype): Declare.
10200 (struct frame_unwind): Add "unwind_data" and "sniffer".
10201 (frame_unwind_register_unwinder): Declare.
10202 (frame_unwind_find_by_frame): Add parameter "this_cache".
10203 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10204 (legacy_get_prev_frame, legacy_get_prev_frame)
10205 (get_frame_type): Pass the prologue_cache to
10206 frame_unwind_find_by_frame.
10207 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10208 "unwinder".
10209 (frame_unwind_register_unwinder): New function.
10210 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10211
b2ba182e
PH
102122004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10213
10214 * bcache.c (print_percentage): Use floating point to avoid
10215 incorrect results when portion*100 overflows.
10216
81332287
KB
102172004-03-19 Kevin Buettner <kevinb@redhat.com>
10218
10219 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10220 (ppc_linux_init_extra_frame_info)
10221 (ppc_linux_frameless_function_invocation)
10222 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10223 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10224 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10225 (rs6000_frame_chain): Delete declarations.
10226 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10227 (ppc_linux_init_extra_frame_info)
10228 (ppc_linux_frameless_function_invocation)
10229 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10230 (ppc_linux_init_abi): Remove registration of above deleted functions.
10231 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10232 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10233 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10234 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10235 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10236 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10237 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10238 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10239 frame management for all OSABIs.
10240
61a65099
KB
102412004-03-19 Andrew Cagney <cagney@redhat.com>
10242
10243 Committed by Kevin Buettner <kevinb@redhat.com>.
10244
10245 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10246 Update copyright.
10247 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10248 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10249 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10250 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10251 unwinders. #ifdef legacy frame code.
10252 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10253 "frame-base.h".
10254 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10255 (struct rs6000_frame_cache, rs6000_frame_cache)
10256 (rs6000_frame_this_id, rs6000_frame_prev_register)
10257 (rs6000_frame_sniffer, rs6000_frame_unwind)
10258 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10259 (rs6000_frame_base): Implement a traditional frame unwinder.
10260 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10261 frame unwinder.
10262
88f7da05
KB
102632004-03-19 Kevin Buettner <kevinb@redhat.com>
10264
10265 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10266 breakpoint address for watchpoints or the catch eventpoints.
10267 Add new paramter ``bptype''. Adjust all callers.
10268
f826dce1
AC
102692004-03-19 Andrew Cagney <cagney@redhat.com>
10270
33cb8b0f
AC
10271 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10272
f826dce1
AC
10273 * PROBLEMS: Delete note that ARM does not use frame code, problem
10274 fixed.
10275
43b1ab88
AC
102762004-03-18 Andrew Cagney <cagney@redhat.com>
10277
292ab034
AC
10278 * stack.c (return_command): Delete code wrapped in #ifdef
10279 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10280
43b1ab88
AC
10281 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10282
dbfe4626
AC
102832004-03-18 Andrew Cagney <cagney@redhat.com>
10284
10285 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10286 DEPRECATED_IN_SIGTRAMP.
10287 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10288 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10289 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10290 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10291 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10292 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10293 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10294 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10295 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10296 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10297
0cad6aec
AC
102982004-03-18 Andrew Cagney <cagney@redhat.com>
10299
10300 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10301 (struct frame_base_table_entry): Define.
10302 (struct frame_base_table): Re-implement as a linked list.
10303 (frame_base_init): Re-implement.
10304 (frame_base_table): Delete function.
10305 (append_predicate): Delete function.
10306 (frame_base_append_sniffer): Update.
10307 (frame_base_set_default): Update.
10308 (frame_base_find_by_frame): Update.
10309 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10310 * Makefile.in (frame-base.o): Update dependencies.
10311
9982c2e7
AC
103122004-03-17 Andrew Cagney <cagney@redhat.com>
10313
10314 * frame.c (legacy_get_prev_frame): Pass correct frame to
10315 frame_unwind_find_by_frame.
10316
8dfe8985
DC
103172004-03-17 David Carlton <carlton@kealia.com>
10318
10319 * NEWS: Mention C++ nested types and namespaces
10320
ed47347a
MC
103212004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10322
10323 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10324 and "Regressions since gdb 5.3.". Add known regressions since
10325 gdb 6.0.
10326
90aeadfc
DC
103272004-03-16 David Carlton <carlton@kealia.com>
10328
10329 * dwarf2read.c (process_structure_scope): Process children even
10330 when we're a declaration.
10331
73912b9b
AC
103322004-03-16 Andrew Cagney <cagney@redhat.com>
10333
10334 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10335 * blockframe.c (find_pc_partial_function)
10336 (find_pc_sect_partial_function): Merge into a single
10337 find_pc_partial_function.
10338
283accbc
MK
103392004-03-16 Mark Kettenis <kettenis@gnu.org>
10340
10341 * i386bsd-nat.c: s/regno/regnum/g.
10342 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10343 FP0_REGNUM.
10344 (store_inferior_registers): Likewise.
10345
f5b1afdf
MK
103462004-03-16 Mark Kettenis <kettenis@gnu.org>
10347
10348 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10349 of i387_fill_fsave.
10350 (store_inferior_registers): Call i387_collect_fsave and
10351 i387_collect_fxsave instead of i387_fill_fsave and
10352 i387_fill_fxsave.
10353
41fe5eb3
AC
103542004-03-15 Andrew Cagney <cagney@redhat.com>
10355
10356 * Makefile.in (frame-unwind.o): Update dependencies.
10357 * frame-unwind.c: Include "gdb_obstack.h".
10358 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10359 parameter.
10360 (append_predicate): Delete function.
10361 (struct frame_unwind_table_entry): New structure.
10362 (struct frame_unwind_table): Replace "sniffer" with "head" and
10363 "tail".
10364 (frame_unwind_append_sniffer): Update.
10365 (frame_unwind_find_by_frame): Update.
10366 (_initialize_frame_unwind): Registe frame_unwind_init using
10367 gdbarch_data_register_pre_init.
10368
3f63813d
MK
103692004-03-15 Mark Kettenis <kettenis@gnu.org>
10370
10371 * i386bsd-nat.c: Update copyright year.
10372 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10373 define unconditionally.
10374
3248c325 103752004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
10376
10377 * i387-tdep.h (i387_collect_fsave): New prototype.
10378 * i387-tdep.c (i387_collect_fsave): New function containing most
10379 of the code from i387_fill_fsave.
3248c325 10380 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 10381
871fbe6a
MK
103822004-03-15 Mark Kettenis <kettenis@gnu.org>
10383
10384 * i386-linux-tdep.c: Update copyright year.
10385 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10386 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10387 svr4_ilp32_link_map_offsets instead of
10388 i386_linux_svr4_fetch_link_map_offsets.
10389
8176b9b8
DC
103902004-03-15 David Carlton <carlton@kealia.com>
10391
10392 Fix for PR c++/1553:
10393 * dwarf2read.c (read_structure_type): Determine type name by
10394 calling determine_class_name.
10395 (determine_class_name): New.
10396 (determine_prefix): Look at TYPE_TAG_NAME and call
10397 determine_class_name when appropriate.
10398 (determine_prefix_aux, class_name): Delete.
9d58e29d 10399 (read_namespace): Set die->type.
8176b9b8 10400
fe8bf7d7
KB
104012004-03-15 Kevin Buettner <kevinb@redhat.com>
10402
10403 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10404 unused macro definition. The definition in target.h (or perhaps
10405 elsewhere) takes precedence.
10406
ed6edd9b
AC
104072004-03-15 Andrew Cagney <cagney@redhat.com>
10408
f9be684a
AC
10409 * ppc-tdep.h: Update copyright.
10410 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10411 function signatures to match "regsets.h".
10412 * ppc-linux-tdep.c: Include "regset.h".
10413 (ELF_GREGSET_SIZE): Delete.
10414 (right_supply_register): New function.
10415 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10416 using right_supply_register.
10417 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10418 functions.
10419 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10420 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10421 (_initialize_ppc_linux_tdep): Do not register
10422 ppc_linux_regset_core_fns.
10423 (ppc_linux_regset_from_core_section): Replace
10424 fetch_core_registers.
10425 (ppc_linux_regset_core_fns): Delete.
10426 * ppc-linux-nat.c: (right_fill_reg): New function.
10427 (supply_gregset): Update call to ppc_linux_supply_gregset.
10428 (fill_gregset): Clear the register set, use right_fill_reg.
10429 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10430 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10431
ed6edd9b
AC
10432 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10433 unsigned.
10434
030f20e1
AC
104352004-03-15 Andrew Cagney <cagney@redhat.com>
10436
10437 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10438 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10439 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10440 and register_gdbarch_data.
10441 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10442 (struct gdbarch_data): Replace "init" by "pre_init" and
10443 "post_init".
10444 * gdbarch.h, gdbarch.c: Re-generate.
10445 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10446 with"obstack", use OBSTACK_ZALLOC.
10447 (dwarf2_frame_ops): Delete.
10448 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10449 (dwarf2_frame_init_reg): Use gdbarch_data.
10450 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 10451 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
10452 (_initialize_svr4_solib): Update.
10453 * user-regs.c (_initialize_user_regs): Update.
10454 * reggroups.c (_initialize_reggroup): Update.
10455 * regcache.c (_initialize_regcache): Update.
10456 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10457 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10458 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10459 * frame-unwind.c (_initialize_frame_unwind): Update.
10460 * frame-base.c (_initialize_frame_base): Update.
10461 * user-regs.c (user_reg_add): Update.
10462 * reggroups.c (reggroup_add): Update.
10463 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10464 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10465 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10466 * frame-base.c (frame_base_table): Update.
10467 * remote.c (_initialize_remote): Update.
10468 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 10469
3111a3fc
AC
104702004-03-15 Andrew Cagney <cagney@redhat.com>
10471
10472 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10473
5ecb7103
KB
104742004-03-15 Kevin Buettner <kevinb@redhat.com>
10475
10476 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10477 * frv-linux-tdep.c: New file.
10478 * frv-tdep.c (struct gdbarch_tdep): Add new field
10479 ``sigcontext_reg_addr''.
10480 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10481 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10482 (frv_sigramp_frame_sniffer): New functions.
10483 (frv_sigtramp_frame_unwind): New static global.
10484 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10485 sniffers.
10486 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10487 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10488
1ccda5e9
KB
104892004-03-15 Kevin Buettner <kevinb@redhat.com>
10490
10491 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10492 but not via a call to error(), when unable to read memory.
10493
b375a0a5
KB
104942004-03-15 Kevin Buettner <kevinb@redhat.com>
10495
10496 * frv-tdep.c (frv_call_dummy_words): Delete.
10497 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10498
4fdf6121
AC
104992004-03-15 Andrew Cagney <cagney@redhat.com>
10500
10501 * infrun.c (handle_step_into_function, step_over_function): Only
10502 update and use STEP_FRAME_ID when the system is using legacy
10503 frames. Update comments.
10504
34021503
MK
105052004-03-14 Mark Kettenis <kettenis@gnu.org>
10506
187e21d1
MK
10507 * amd64-linux-tdep.h: Remove file.
10508 * amd64-linux-tdep.c: Don't include "inferior.h" and
10509 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10510 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10511 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10512 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10513 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10514 macros.
10515 (user_to_gdb_regmap): Remove variable.
10516 (amd64_linux_gregset_reg_offset): New variable.
10517 (amd64_core_fns): Remove variable.
10518 (fetch_core_registers): Remove function.
10519 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10520 functions.
10521 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10522 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10523 * Makefile.in (amd64_linux_tdep_h): Remove.
10524 (amd64-linux-nat.o): Update dependencies.
10525 (amd64-linux-tdep.o): Update dependencies.
10526
99679982
MK
10527 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10528 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10529 functions.
10530 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10531
34021503
MK
10532 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10533 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10534
134d01f1
DJ
105352004-03-14 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * dwarf2read.c (read_structure_type): Rename from
8718a420 10538 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
10539 Return immediately if die->type is set. Call read_type_die before
10540 dwarf2_add_member_fn.
10541 (process_structure_scope): New function.
10542 (read_enumeration_type, process_enumeration_scope): New functions,
10543 broken out from read_enumeration. Don't create the enumeration
10544 type if it has already been created.
10545 (read_enumeration): Removed.
10546 (process_die): Call read_structure_type, process_structure_scope,
10547 read_enumeration_type, and process_enumeration_scope. Just call
10548 new_symbol for base and subrange types. Add a comment about other
10549 type dies.
10550 (read_type_die): Call read_enumeration_type.
10551 (add_partial_structure, new_symbol): Update comments.
10552
65760afb
SC
105532004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10554
10555 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10556
10f59415
SC
105572004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10558
10559 * tui/tui-win.h (tui_get_cmd_list): Declare.
10560 * tui/tui-win.c (tui_command): New function.
10561 (tui_get_cmd_list): New function.
10562 (_initialize_tui_win): Moved initialization of tui command in
10563 tui_get_cmd_list.
10564
10565 * tui/tui-data.c (init_content_element): Setup new data members.
10566 (init_win_info): Likewise.
10567 (free_content_elements): Free it.
10568 * tui/tui-data.h (struct tui_data_element): Store the register
10569 content to print.
10570 (struct tui_data_info): Keep the current register group.
10571
10572 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10573
10574 * tui/tui-regs.h (tui_show_registers): Update prototype.
10575 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10576 (tui_resize_all): No need to calculate anything for register window.
10577 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10578 (tui_set_register_element, tui_set_general_regs_content): Remove.
10579 (tui_set_special_regs_content): Remove.
10580 (tui_set_general_and_special_regs_content): Remove.
10581 (tui_set_float_regs_content): Remove.
10582 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10583 (tui_set_regs_content): Remove.
10584 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10585 (tui_v_show_registers_command_support): Remove.
10586 (tui_show_registers): Use a reggroup to specify the registers to show.
10587 (tui_show_register_group): New function.
10588 (tui_display_registers_from): Compute the layout of register window
10589 and refresh with new API; be sure to delete old register windows.
10590 (tui_check_register_values): Update to use tui_get_register and
10591 tui_display_data.
10592 (tui_display_register): Just refresh the register window part.
10593 (tui_register_format): Format registers and save in tui_data_element.
10594 (tui_get_register): New to combine tui_reg_value_has_changed and
10595 tui_get_register_raw_value; fix to use the new gdb API.
10596 (tui_show_float_command): Renamed tui_reg_float_command.
10597 (tui_show_general_command): Renamed tui_reg_general_command.
10598 (tui_show_special_command): Renamed tui_reg_system_command.
10599 (_initialize_tui_regs): Remove unused commands.
10600
c3364ea4
MK
106012004-03-13 Mark Kettenis <kettenis@gnu.org>
10602
27d1e716
MK
10603 * NEWS (New native configurations): Mention OpenBSD/amd64.
10604
c3364ea4
MK
10605 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10606 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10607 Remove defines.
10608 * config/i386/nm-fbsd64.h: Likewise.
10609 * config/i386/nm-obsd.h: Likewise.
10610 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10611 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10612
b2d6d697
KB
106132004-03-12 Kevin Buettner <kevinb@redhat.com>
10614
10615 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
10616 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10617 New constants.
10618
76e43199
KB
10619 From Richard Sandiford <rsandifo@redhat.com>:
10620 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10621
34ce532e
KB
106222004-03-12 Kevin Buettner <kevinb@redhat.com>
10623
10624 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10625 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10626 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10627 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10628 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10629 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10630 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10631 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10632 definitions from frv-tdep.c to frv-tdep.h.
10633
c4d10515
KB
106342004-03-12 Kevin Buettner <kevinb@redhat.com>
10635
10636 Add shared library support for FR-V FDPIC ABI:
10637 * Makefile.in (solib-frv.o): Add dependencies.
10638 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10639 New functions.
10640 (frv_push_dummy_call): Add support for FDPIC ABI.
10641 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10642 for FDPIC ABI.
10643 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10644 (frv_fdpic_find_canonical_descriptor): Declare.
10645 * solib-frv.c: New file.
10646 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10647 * config/frv/tm-frv.h (solib.h): Include.
10648
ed1bd989
KB
106492004-03-12 Kevin Buettner <kevinb@redhat.com>
10650
10651 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10652 (frv-tdep.o): Update dependencies.
10653 * frv-tdep.h: New file.
10654 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10655 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10656 constants.
10657 (struct gdbarch_tdep): Add new member ``frv_abi''.
10658 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10659 functions.
10660 (new_variant): Set ``frv_abi'' field.
10661 (gdb_arch_init): Detect FDPIC executables.
10662
82b38f72
MK
106632004-03-12 Mark Kettenis <kettenis@gnu.org>
10664
10665 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10666 wrapper.
10667
db1ea9ba
AC
106682004-03-11 Andrew Cagney <cagney@redhat.com>
10669
10670 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10671
f8766ec1
KB
106722004-03-11 Kevin Buettner <kevinb@redhat.com>
10673
10674 * solist.h (master_so_list): New function.
10675 * solib.c (master_so_list): Likewise.
10676 * solib-svr4.c (enable_break): Iterate over so_list entries
10677 obtained from master list instead of entries obtained directly
10678 via svr4_current_sos().
10679
523f6a27
BE
106802004-03-10 Ben Elliston <bje@gnu.org>
10681
10682 * MAINTAINERS: Update my mail address.
10683
37814c18
KI
106842004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10685
10686 * remote-m32r-sdi.c: Support hardware watchpoint.
10687
8b9740d8
DJ
106882004-03-09 Daniel Jacobowitz <drow@mvista.com>
10689
10690 * user-regs.c: Update copyright years.
10691 (struct user_regs): Rename to gdb_user_regs.
10692 (append_user_reg, builtin_user_regs, user_regs_init)
10693 (user_reg_add, user_reg_map_name_to_regnum)
10694 (usernum_to_user_reg): Update.
10695
4bb7a0a7
DJ
106962004-03-09 Daniel Jacobowitz <drow@mvista.com>
10697
10698 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10699 (skip_children): New functions.
10700 (locate_pdi_sibling): Call skip_children.
10701
44e1a9eb
DJ
107022004-03-09 Daniel Jacobowitz <drow@mvista.com>
10703
10704 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10705 * gdbtypes.c (check_typedef): Update comments.
10706
f3dd6933
DJ
107072004-03-09 Daniel Jacobowitz <drow@mvista.com>
10708
10709 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10710 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10711 pointer. Update comment about comp_unit_head.
10712 (struct abbrev_info): Shorten two int flags.
10713 (dwarf_alloc_abbrev): Take a CU argument.
10714 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10715 each time through the loop. Update cleanup argument.
10716 (psymtab_to_symtab_1): Update cleanup call.
10717 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10718 abbrev_obstack.
10719 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10720 Just call obstack_free and clear the pointer.
10721
b40c7d58
DJ
107222004-03-09 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * infrun.c (handle_inferior_event): Remove short-circuit code for
10725 events in a different thread.
10726
333dabeb
DJ
107272004-03-09 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10730 print the whole transfer.
10731 (initialize_targets): Update description of "set debug target".
10732
aa17d93e
DJ
107332004-03-09 Daniel Jacobowitz <drow@mvista.com>
10734
10735 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10736
0b71f08f
NW
107372004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10738
10739 * MAINTAINERS (write after approval): Add myself.
10740
3930f270
CV
107412004-03-08 Corinna Vinschen <vinschen@redhat.com>
10742
10743 * sh-tdep.c (sh_print_registers_info): Use for loop.
10744 Don't skip multiple registers when a float register is encountered.
10745
a2b4a96c
CV
107462004-03-08 Corinna Vinschen <vinschen@redhat.com>
10747
10748 Fix PR tdep/1291.
10749 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10750 to official SH documentation.
10751
f15a4bc0
AC
107522004-03-07 Andrew Cagney <cagney@redhat.com>
10753
10754 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10755 unused function.
10756
9498281f
DJ
107572004-03-07 Daniel Jacobowitz <drow@mvista.com>
10758
10759 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10760 (arm_get_next_pc): Handle BX and BLX.
10761
449e1137
AC
107622004-03-07 Andrew Cagney <cagney@redhat.com>
10763
eded0a31
AC
10764 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10765 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10766 HPPA_SP_REGNUM.
10767 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10768 (hppa_target_read_fp): Delete.
10769 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10770 register_virtual_size, max_register_raw_size,
10771 max_register_virtual_size, register_byte, register_size,
10772 target_read_fp, fp_regnum, and register_bytes. Set register_type
10773 instead of register_virtual_type.
10774 (hppa32_register_type, hppa64_register_type): Replace
10775 hppa32_register_virtual_type and hppa64_register_virtual_type.
10776 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10777 (HPPA_FP_REGNUM): Define.
10778
f5f907e2
AC
10779 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10780
69b4bbe4
AC
10781 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10782 (pa_do_registers_info): Delete.
10783 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 10784 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 10785 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 10786
78161e48
AC
10787 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10788 GDB_TARGET_IS_HPPA code.
10789 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 10790 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
10791 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10792 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
10793 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10794 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10795 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 10796 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
10797 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10798 (hppa_frameless_function_invocation, hppa64_store_return_value)
10799 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 10800 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 10801 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 10802 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
10803 (find_proc_framesize, deposit_21, restore_pc_queue)
10804 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 10805 (rp_saved, pc_in_linker_stub): Delete.
78161e48 10806
782eae8b
AC
10807 Unconditionally enable 64-bit frame and ABI code.
10808 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10809 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10810 push_dummy_frame, fix_call_dummy, push_arguments,
10811 call_dummy_location, extract_return_value, use_struct_convention,
10812 store_return_value, store_struct_return, saved_pc_after_call,
10813 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10814 frame_chain, frame_chain_valid, frameless_function_invocation,
10815 frame_saved_pc, and pop_frame.
78161e48 10816
449e1137
AC
10817 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10818 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10819 (hppa_gdbarch_init): Do not set PC_REGNUM.
10820
12507572
MK
108212004-03-06 Mark Kettenis <kettenis@gnu.org>
10822
10823 * config/alpha/tm-fbsd.h: Remove file.
10824 * config/alpha/fbsd.mt: Tweak comment.
10825 (TM_FILE): Set to tm-alpha.h.
10826
c107cc1b
AC
108272004-03-05 Andrew Cagney <cagney@redhat.com>
10828
10829 * infrun.c (step_over_function): When non-legacy code, and no
10830 step_frame_id, use the unwinder to get the caller's frame ID.
10831
f2e7c15d
MK
108322004-03-05 Mark Kettenis <kettenis@gnu.org>
10833
8b0c3633
MK
10834 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10835 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10836 bfd_arch_unknown. Adjust comment.
10837
f2e7c15d
MK
10838 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10839 * i386obsd-tdep.c: Correct spelling in comment.
10840 * i386nbsd-tdep.c: Correct spelling in comment.
10841 * sparc-tdep.c: Correct spelling in comments.
10842
1198ecbe
DC
108432004-03-05 David Carlton <carlton@kealia.com>
10844
10845 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10846 bug.
10847
9eb42ed1
MK
108482004-03-05 Mark Kettenis <kettenis@gnu.org>
10849
10850 * sparc-tdep.c: Fix typo in comment.
10851
52b5e991
JB
108522004-03-04 J. Brobecker <brobecker@gnat.com>
10853
10854 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10855
d8151005
DJ
108562004-03-04 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * dwarf2read.c: Add comment describing memory lifetimes.
10859 (struct dwarf2_pinfo): Update comment.
10860 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10861 (read_enumeration, new_symbol): Don't use obsavestring.
10862
cbeae229
MK
108632004-03-04 Mark Kettenis <kettenis@gnu.org>
10864
722d18c2
MK
10865 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10866 instead of amd64_fill_fxsave.
10867 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10868 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10869
cbeae229
MK
10870 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10871 Reorganize code a bit.
10872
b4206d25
OF
108732004-03-04 Orjan Friberg <orjanf@axis.com>
10874
10875 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
10876 when the frame pointer is pushed. Don't set the frame pointer's
10877 address on the stack unless it's actually located there.
b4206d25
OF
10878 Set the SRP's address on the stack correctly when the PC is still in
10879 the prologue.
10880 (cris_return_value): New function.
10881 (cris_gdbarch_init): Clear deprecated store_return_value,
10882 extract_return_value.
10883
49b0b195
JB
108842004-03-02 Jim Blandy <jimb@redhat.com>
10885
10886 * stabsread.c (reg_value_complaint): The maximum register number
10887 is one less than the number of registers.
10888
e9ff708b
AC
108892004-03-02 Andrew Cagney <cagney@redhat.com>
10890
10891 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10892 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10893 trailing comma and redundant assignment of I386_ST0_REGNUM.
10894 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10895 32-bit segment registers.
10896
d4715e41
AC
108972004-03-01 Andrew Cagney <cagney@redhat.com>
10898
10899 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10900 use frame_relative_level and get_next_frame.
10901
3ce2bf18
AC
109022004-02-29 Andrew Cagney <cagney@redhat.com>
10903
10904 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10905 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10906 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10907 Delete macro.
10908
2da6aac3
DJ
109092004-02-29 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * inflow.c (terminal_inferior): Don't give up the terminal if we
10912 previously couldn't get the inferior's terminal state.
10913
6ba34a8d
DJ
109142004-02-29 Daniel Jacobowitz <drow@mvista.com>
10915
10916 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10917 PC_REGNUM.
10918
faae5abe
AC
109192004-02-28 Andrew Cagney <cagney@redhat.com>
10920
10921 * NEWS: Refer to GDB 6.1.
10922 * README: Refer to GDB 6.1.
10923 * PROBLEMS: Refer to GDB 6.1.
10924
2227a3c5
DJ
109252004-02-28 Daniel Jacobowitz <drow@mvista.com>
10926
10927 * thread-db.c (disable_thread_signals): Remove unused function.
10928
80571bff
MK
109292004-02-28 Mark Kettenis <kettenis@gnu.org>
10930
041bd74b
MK
10931 * amd64-nat.c: Include "gdb_string.h".
10932 (amd64_collect_native_gregset): Zero-extend the 32-bit
10933 general-purpose registers and %eip.
10934
3c017e40
MK
10935 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10936 * amd64-tdep.c (amd64_collect_fxsave): New function.
10937 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10938
80571bff
MK
10939 * i387-tdep.h: Update copyright year.
10940 (i387_collect_fxsave): New prototype.
10941 * i387-tdep.c: Update copyright year.
10942 (i387_collect_fxsave): New function containing most of the code
10943 from i387_fill_fxsave.
10944 (i387_fill_fxsave): Call i387_collect_fxsave.
10945
50d71875
AC
109462004-02-28 Andrew Cagney <cagney@redhat.com>
10947
10948 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10949 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10950
4a28816e
MK
109512004-02-28 Mark Kettenis <kettenis@gnu.org>
10952
10953 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10954
dbda9972
AC
109552004-02-28 Andrew Cagney <cagney@redhat.com>
10956
10957 * utils.c: Use "", instead of <>, to include readline.
10958 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10959 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10960 * source.c, solib.c, exec.c, event-top.c: Ditto.
10961 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10962 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10963 * Makefile.in: Update all dependencies.
10964 (readline_tilde_h, readline_history_h): Define.
10965 (readline_headers): Delete.
10966
83277a99
MK
109672004-02-28 Mark Kettenis <kettenis@gnu.org>
10968
91ae4303
MK
10969 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10970 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10971 "config/i386/tm-lx64.h".
10972
83277a99
MK
10973 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10974 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10975 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10976
6e1d7d6c
AC
109772004-02-28 Andrew Cagney <cagney@redhat.com>
10978
ecc9ac84
AC
10979 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10980
6e1d7d6c
AC
10981 * breakpoint.c (_initialize_breakpoint): Use
10982 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10983 Add help to show command.
10984
9671aeef
MK
109852004-02-28 Mark Kettenis <kettenis@gnu.org>
10986
7fa2737c
MK
10987 * i386-nat.c: Reformat to be closer to coding standards.
10988 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10989 `retval'. Make variables `align' and `size' local to while-loop.
10990 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10991 (_initialize_i386_nat): New prototype.
10992
9671aeef
MK
10993 * tui/tui.c: Include <readline/readline.h> instead of
10994 "readline/readline.h". Include it after <term.h> and
10995 "gdb_curses.h".
10996
fca7aa43
AC
109972004-02-27 Andrew Cagney <cagney@redhat.com>
10998
412275d5
AC
10999 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11000 the new frame unwind code.
11001 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11002 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11003 PCOQ_HEAD_REGNUM.
11004
fca7aa43
AC
11005 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11006 "return_value" and "push_dummy_call".
11007 (hppa32_use_struct_convention): Delete unused function.
11008 (hppa32_store_return_value): Delete unused function.
11009 (hppa32_extract_return_value): Delete unused function.
11010 (hppa32_stack_align): Delete function.
11011
e6a8a7d2
EZ
110122004-02-27 Eli Zaretskii <eliz@elta.co.il>
11013
11014 * coffread.c (enter_linenos): Don't let rawptr reference memory
11015 outside linetab[]'s limits.
11016
1797a8f6
AC
110172004-02-27 Andrew Cagney <cagney@redhat.com>
11018
11019 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11020 inferior stack space - the stack needs to grow upwards.
11021 (hppa32_frame_align): New function.
11022 (hppa64_frame_align): Replace hppa_frame_align.
11023 (hppa_gdbarch_init): Update.
11024
2e4b5889
OF
110252004-02-26 Orjan Friberg <orjanf@axis.com>
11026
11027 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11028 (dwarf2-frame.h): Include.
11029 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11030 Remove static variables related to ABI setting.
11031 (struct gdbarch_tdep): Remove cris_abi member.
11032 (struct frame_extra_info): Remove.
11033 (cris_unwind_cache, stack_item): New structs.
11034 (cris_frame_unwind, cris_frame_base): New variables.
11035 (push_stack_item, pop_stack_item)
11036 (cris_frame_unwind_cache, cris_frame_this_id)
11037 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11038 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11039 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11040 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11041 (cris_reg_struct_has_addr): New functions.
11042 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 11043 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
11044 (cris_store_struct_return, cris_frameless_function_invocation)
11045 (cris_pop_frame, cris_skip_prologue_main)
11046 (cris_abi_original_store_return_value)
11047 (cris_abi_v2_store_return_value)
11048 (cris_abi_original_extract_return_value)
11049 (cris_abi_v2_extract_return_value)
11050 (cris_abi_original_reg_struct_has_addr)
11051 (cris_abi_v2_reg_struct_has_addr)
11052 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11053 (cris_push_return_address, cris_abi_update): Remove.
11054 (_initialize_cris_tdep): Remove ABI command.
11055 (cris_dump_tdep): Ditto.
8718a420 11056 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
11057 Set store_return_value, extract_return_value, push_dummy_code,
11058 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11059 frame_unwind_append_sniffer, frame_base_set_default.
11060 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11061 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11062 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 11063 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
11064 init_extra_frame_info, frameless_function_invocation, frame_chain,
11065 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11066 dummy_write_sp.
8718a420 11067
6b9acc27
JJ
110682004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11069
11070 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11071 * valprint.c (print_hex_chars): Change from static to external.
11072 (print_char_chars): New function.
11073 * printcmd.c (print_scalar_formatted): For integer and enum types
11074 that are longer than LONGEST, perform processing via appropriate
11075 print_*_chars routines.
11076
a431654a
AC
110772004-02-26 Andrew Cagney <cagney@redhat.com>
11078
11079 * Makefile.in: Update dependencies.
11080 Changes from Ulrich Weigand,
11081 * s390-tdep.c: Include "dwarf2-frame.h".
11082 (s390_dwarf2_frame_init_reg): New function.
11083 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11084 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11085
fa8d40ab
JJ
110862004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11087
11088 * breakpoint.c (pending_break_support): New setting variable.
11089 (break_command_1): Account for pending_break_support setting
11090 when creating pending breakpoints.
11091 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11092 (_initialize_breakpoint): Add "set breakpoint pending" and
11093 "show breakpoint pending" commands.
11094
0dcd613f
AC
110952004-02-26 Andrew Cagney <cagney@redhat.com>
11096
11097 Fix PR i18n/1570.
11098 * charset.c (backslashable, backslashed, represented): Remove 'e'
11099 from list of escaped characters, not part of ISO-C.
11100
479272a3
JB
111012004-02-25 J. Brobecker <brobecker@gnat.com>
11102
11103 From Peter Schauer <schauer@pdf.de>:
11104 * tui/tui.c: Move system header includes after local includes.
11105 Fixes a build failure on solaris systems.
11106
7613d933
JB
111072004-02-25 J. Brobecker <brobecker@gnat.com>
11108
11109 * configure.in: Refine the previous change.
11110 * configure: Regenerate.
11111
9c1488cb
MK
111122004-02-25 Mark Kettenis <kettenis@gnu.org>
11113
11114 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11115 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11116 "amd64-tdep.h" instead of "x86-64-tdep.h".
11117 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11118 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11119 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11120 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11121 and "x86-64-tdep.c".
11122 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11123 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11124 and "x86-64-tdep.c".
11125 * amd64bsd-nat.c: Update copyright year.
11126 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11127 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11128 "x86-64-tdep.h".
11129 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11130 "x86-64-tdep.h".
11131 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11132 "x86-64-tdep.h".
11133 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11134 "x86-64-tdep.h".
11135 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11136 "x86-64-tdep.h".
11137 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11138 "x86-64-tdep.h".
8718a420 11139 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
11140 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11141 * Makefile.in (amd64_linux_tdep_h): Renamed from
11142 x86_64_linux_tdep_h.
11143 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11144 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11145 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11146 (amd64obsd-tdep.o): Update dependencies.
11147 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11148 dependencies.
11149 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11150 dependencies.
11151 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11152 amd64-linux-nat.c amd64-linux-tdep.c.
11153 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11154 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11155 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11156 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11157 amd64-tdep.o and amd64-linux-tdep.o.
11158 (TM_FILE): Set to tm-linux64.h.
11159 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11160 (NAT_FILE): Set to nm-linux64.h.
11161 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11162 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11163 amd64-tdep.o.
11164 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11165 amd64-tdep.o.
11166 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11167 amd64-tdep.o.
11168
4b8dad4a
RM
111692004-02-25 Roland McGrath <roland@redhat.com>
11170
11171 * remote.c (remote_protocol_qPart_auxv): New variable.
11172 (init_all_packet_configs): Initialize it.
11173 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11174 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11175 (show_remote_cmd): Call it.
11176 (_initialize_remote): Initialize commands.
11177 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11178 service TARGET_OBJECT_AUXV requests.
11179
66745969
JB
111802004-02-25 J. Brobecker <brobecker@gnat.com>
11181
11182 * configure.in: Make sure that the wborder function is available.
11183 Otherwise, search for it in the cur_colr library.
11184 * configure: Regenerate.
11185
79508e1e
AC
111862004-02-25 Andrew Cagney <cagney@redhat.com>
11187
11188 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11189
571ee600
MK
111902004-02-25 Mark Kettenis <kettenis@gnu.org>
11191
11192 * config/i386/tm-x86-64linux.h: Tweak comments.
11193
2b1b322f 111942004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
11195
11196 * MAINTAINERS: Add self to write-after-approval list.
11197
4d2acc65
AC
111982004-02-25 Andrew Cagney <cagney@redhat.com>
11199
4b8dad4a 11200 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
11201 * cli/cli-script.c (execute_control_command): Unconditionally
11202 install a cleanup. Default "ret" to "invalid_control". Use
11203 "break" instead of "return" to escape from the switch.
11204
4cfcaf21
JB
112052004-02-24 J. Brobecker <brobecker@gnat.com>
11206
11207 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11208 with the lines macro defined in term.h on AiX.
11209 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11210 a collision with the label_width macro defined in term.h on AiX.
11211
54a5c8d8
KB
112122004-02-23 David Mosberger <davidm@hpl.hp.com>
11213
11214 Committed by Kevin Buettner <kevinb@redhat.com>.
11215
11216 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11217 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11218 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11219 instead of ia64_write_pc().
11220 * ia64-linux-tdep.c (regcache.h): Include.
11221 (ia64_linux_write_pc): New function.
4b8dad4a 11222
8a1dac83
RM
112232004-02-23 Roland McGrath <roland@redhat.com>
11224
11225 * auxv.c (info_auxv_command): Fix typos in error messages.
11226
90f90721
MK
112272004-02-23 Mark Kettenis <kettenis@gnu.org>
11228
8a1dac83 11229 * x86-64-tdep.h: Tweak comment.
90f90721
MK
11230 (enum amd64_regnum): New.
11231 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11232 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11233 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11234 (X86_64_XMM1_REGNUM): Removed.
11235 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11236 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11237 prototypes for renamed functions.
11238 * x86-64-tdep.c: Fix typo.
11239 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11240 register numbers.
11241 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11242 Use constants from `enum amd64_regnum' for register numbers.
11243 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11244 (amd64_analyze_prologue, amd64_frame_cache,
11245 amd64_sigtramp_frame_cache): Use constants from `enum
11246 amd64_regnum' for register numbers.
11247 (amd64_supply_fpregset): Adjust for renamed functions.
11248 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11249 `enum amd64_regnum' for register numbers.
11250 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11251 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11252 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11253 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11254 (amd64_linux_fill_gregset): Adjust for renamed macros.
11255 (fetch_core_registers): Adjust for renamed functions.
11256 (amd64_linux_init_abi): Adjust for renamed functions.
11257 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11258 renamed functions.
11259 * amd64-nat.c: Adjust for renamed macros.
11260 * amd64bsd-nat.c (fetch_inferior_registers)
11261 (store_inferior_registers): Use constants from `enum amd64_regnum'
11262 for register numbers. Adjust for renamed variables.
11263 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11264 renamed variables.
11265 (_initialize_amd64fbsd_nat): Use constants from `enum
11266 amd64_regnum' for register numbers.
11267 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11268 `enum amd64_regnum' for register numbers.
11269 (amd64fbsd_init_abi): Adjust for renamed functions.
11270 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11271 `enum amd64_regnum' for register numbers.
11272 (amd64nbsd_init_abi): Adjust for renamed functions.
11273 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11274 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11275 `enum amd64_regnum' for register numbers.
11276 (amd64obsd_init_abi): Adjust for renamed functions.
11277 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11278
d5479188
JJ
112792004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11280
11281 * breakpoint.c (print_one_breakpoint): Do not output spaces
11282 after printing <PENDING> for a pending breakpoint.
11283
81cb7cc9
JJ
112842004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11285
11286 * printcmd.c (print_scalar_formatted): Initialize val_long
11287 to remove compiler warning message.
11288
cbdeadca
JJ
112892004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11290
11291 * defs.h (nquery, yquery): New prototypes.
11292 * breakpoint.c (break_command_1): Use new nquery interface.
11293 * utils.c (defaulted_query, nquery, yquery): New functions.
11294
da6bab63
AC
112952004-02-23 Andrew Cagney <cagney@redhat.com>
11296
2f690297
AC
11297 * hppa-tdep.c (hppa_frame_align): New function.
11298 (hppa32_push_dummy_call): New function.
11299 (hppa64_push_dummy_call): New function.
11300 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11301 disabled.
8a1dac83 11302
da6bab63
AC
11303 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11304 FIX_CALL_DUMMY when push_dummy_call is available.
11305 (call_function_by_hand, push_dummy_code): Ditto.
11306
abf9b42d
AC
113072004-02-22 Andrew Cagney <cagney@redhat.com>
11308
11309 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11310 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11311 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11312 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11313 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11314 call_dummy_location to ON_STACK.
11315
10fc94a4
MK
113162004-02-22 Mark Kettenis <kettenis@gnu.org>
11317
51433e4b
MK
11318 * x86-64-linux-tdep.c: Tweak comment.
11319 (amd64_linux_supply_gregset): Renamed from
11320 x86_64_linux_supply_gresget.
11321 (amd64_linux_fill_gregset): Renamed from
11322 x86_64_linux_fill_gregset.
11323 (fetch_core_registers): Adjust for renamed functions.
11324 (amd64_core_fns): Renamed from x86_64_core_fns.
11325 (amd64_linux_sigtramp_start): Renamed from
11326 x86_64_linux_sigtramp_start.
11327 (amd64_linux_pc_in_sigtramp): Renamed from
11328 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11329 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11330 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11331 (amd64_linux_sigcontext_addr): Renamed from
11332 x86_64_linux_sigcontext_addr.
11333 (amd64_linux_sc_reg_offset): Renamed from
11334 x86_64_linux_sc_reg_offset.
11335 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11336 Adjust for renamed functions and variables.
11337 (_initialize_amd64_linux_tdep): Renamed from
11338 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11339 variables.
11340 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11341 Adjust for renamed functions.
11342
430eaf2e
MK
11343 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11344 from x86_64_linux_gregset64_reg_offset.
11345 (amd64_linux_gregset32_reg_offset): Rename from
11346 x86_64_linux_gregset64_reg_offset.
11347 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11348 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11349 (amd64_linux_dr_set_control): Renamed from
11350 x86_64_linux_dr_set_control. Adjust for renamed functions.
11351 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11352 Adjust for renamed functions.
11353 (amd64_linux_dr_reset_addr): Renamed from
11354 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11355 (amd64_linux_dr_get_status): Renamed from
11356 x86_64_linux_dr_get_status. Adjust for renamed functions.
11357 (_initialize_amd64_linux_nat): Renamed from
11358 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11359 functions.
11360 * config/i386/nm-x86-64linux.h: Update copyright year.
11361 Adjust for renamed functions.
11362
10fc94a4
MK
11363 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11364 amd64fbsd_sigtramp_start.
11365 (amd64fbsd_sigtramp_end_addr): Renamed from
11366 amd64fbsd_sigtramp_end.
11367 (amd64fbsd_init_abi): Adjust for renamed variables.
11368 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11369 variables.
11370 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11371 amd64fbsd_sigtramp_start.
11372 (amd64fbsd_sigtramp_end_addr): Renamed from
11373 amd64fbsd_sigtramp_end.
11374
343af405
AC
113752004-02-22 Andrew Cagney <cagney@redhat.com>
11376
537987fc
AC
11377 * hppa-tdep.c (hppa32_return_value): New function.
11378 (hppa64_return_value): New function.
11379 (hppa_gdbarch_init): Set return_value; keep disabled.
11380
fad850b2
AC
11381 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11382 struct-return and inferior function call methods.
11383
26d08f08
AC
11384 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11385 "frame-base.h".
11386 (struct hppa_frame_cache): Define.
11387 (hppa_frame_cache, hppa_frame_this_id): New functions.
11388 (hppa_frame_prev_register): New function.
11389 (hppa_frame_unwind, hppa_frame_base): New variables.
11390 (hppa_frame_unwind_sniffer): New function.
11391 (hppa_frame_base_address, hppa_unwind_pc): New function.
11392 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11393 sniffer, and frame base sniffer; keep disabled.
11394 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11395 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11396
e7d7bd65
AC
11397 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11398 to predicates for "seriously old code".
11399
e963316f
AC
11400 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11401 runtime if(0).
11402
56132691
AC
11403 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11404 unsigned.
11405 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 11406
343af405
AC
11407 * config/pa/tm-hppa.h: Update copyright.
11408 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11409 (deprecated_init_frame_pc_default): Delete declaration.
11410 (hppa_frame_init_saved_regs): Delete declaration.
11411 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11412 * hppa-tdep.c: Include "arch-utils.h".
11413 (hppa_gdbarch_init): Set deprecated init_frame_pc
11414 and deprecated frame_init_saved_regs.
11415 (hppa_frame_init_saved_regs): Make static.
11416
f5859b4d
MK
114172004-02-22 Mark Kettenis <kettenis@gnu.org>
11418
86f6f8e7 11419 Remove old 386BSD support.
cf7c5c23 11420 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
11421 * configure.host: Remove i[34567]86-*-bsd*.
11422 * configure.tgt: Remove i[34567]86-*-bsd*.
11423 * i386b-nat.c: Removed.
11424 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
11425 (i386b-nat.o): Remove dependencies.
11426
86f6f8e7
MK
11427 * config/i386/i386bsd.mh: Removed.
11428 * config/i386/i386bsd.mt: Removed.
11429 * config/i386/nm-i386bsd.h: Removed.
11430 * config/i386/tm-i386bsd.h: Removed.
11431 * config/i386/xm-i386bsd.h: Removed.
11432
971218cd
MK
11433 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11434
7e654c37
MK
11435 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11436 (amd64fbsd_init_abi): Set link map offsets.
11437 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11438 (amd64nbsd_init_abi): Set link map offsets.
11439 * amd64obsd-tdep.c: Include "solib-svr4.h".
11440 (amd64obsd_init_abi): Set link map offsets.
11441 * i386fbsd-tdep.c: Include "solib-svr4.h".
11442 (i386fbsd_init_abi): Set link map offsets.
11443 * i386nbsd-tdep.c: Include "solib-svr4.h".
11444 (i386nbsdelf_init_abi): Set link map offsets.
11445 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11446 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11447 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11448 solib-legacy.o and core-aout.o. Reformat.
11449 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11450 solib-svr4.o, solib-legacy.o. Reformat.
11451 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11452 * config/i386/nbsdelf.mh: Reformat.
11453 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11454 solib-svr4.o, solib-legacy.o and corelow.o.
11455 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11456 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11457 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11458 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11459 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11460 (TM_FILE): Set to tm-fbsd.h.
11461 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11462 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11463 solib-svr4.o.
11464 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11465 solib-svr4.o.
11466 (TM_FILE): Set to nm-nbsd.h.
11467 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11468 Simplify shared library support. Don't include "elf/common.h".
11469 (SVR4_SHARED_LIBS): Don't define.
11470 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11471 "solib.h".
11472 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11473 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11474 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11475 Don't include "i386/tm-i386.h". Include "solib.h".
11476 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11477 Don't include "i386/tm-i386.h".
11478 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11479 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11480 Include "i386/xm-i386.h".
11481 (HOST_LONG_DOUBLE_FORMAT): Remove.
11482
5d93ae8c
MK
11483 Fix OpenBSD/i386 sigtramp recognition.
11484 * i386-tdep.h: Update copyright year.
11485 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11486 (i386bsd_sigtramp_end): New prototypes.
11487 (i386fbsd_sigtramp_start_addr): Renamed from
11488 i386fbsd_sigtramp_start.
11489 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11490 (i386obsd_sigtramp_start_addr): Renamed from
11491 i386obsd_sigtramp_start.
11492 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11493 * i386bsd-tdep.c: Update copyright year.
11494 (i386bsd_pc_in_sigtramp): Make public.
11495 * i386fbsd-nat.c: Update copyright year.
11496 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11497 * i386fbsd-tdep.c: Update copyright year.
11498 (i386fbsd_sigtramp_start_addr): Renamed from
11499 i386fbsd_sigtramp_start.
11500 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11501 (i386fbsdaout_init_abi): Adjust for renamed variables.
11502 * i386obsd-nat.c: Update copyright year.
11503 (_initialize_i386obsd_nat): Adjust for renamed variables.
11504 * i386obsd-tdep.c: Include "target.h".
11505 (i386obsd_page_size): New variable.
11506 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11507 (i386obsd_sigtramp_end): New functions.
11508 (i386obsd_sigtramp_start_addr): Renamed from
11509 i386obsd_sigtramp_start.
11510 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11511 (i386obsd_init_abi): Adjust for renamed variables. Set
11512 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11513 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11514
84d04465
MK
11515 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11516 trampoline change in OpenBSD kernel.
11517
b053aceb
MK
11518 * amd64-nat.c: Update copyright year.
11519 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11520 architecture from REGCACHE.
11521
f5859b4d
MK
11522 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11523 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11524
e4bbbda8
MK
115252004-02-21 Mark Kettenis <kettenis@gnu.org>
11526
ba361932
MK
11527 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11528 i[34567]86-*-openbsd3.[0-3].
11529 * config/i386/obsdaout.mh: New file.
11530
d3e48264
MK
11531 * config/i386/obsd.mh (MH_FLAGS): Remove.
11532
60a6eeb6
MK
11533 Fix PR build/1549.
11534 * i386obsd-tdep.c: Update copyright years. Include
11535 "solib-svr4.h".
11536 (i386obsd_init_abi): Don't set regset_from_core_section here.
11537 (i386obsd_aout_init_abi): New function. Set
11538 regset_from_core_section here.
11539 (i386obsd_elf_init_abi): New function.
11540 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11541 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11542 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11543 (TM_FILE): Set to tm-nbsd.h.
11544
11545 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11546 solib-sunos.o.
11547
e4bbbda8
MK
11548 * solib-svr4.h: Update copyright year.
11549 (svr4_ilp32_fetch_link_map_offsets)
11550 (svr4_lp64_fetch_link_map_offsets): New prototype.
11551 * solib-svr4.c: Update copyright year.
11552 (svr4_ilp32_fetch_link_map_offsets)
11553 (svr4_lp64_fetch_link_map_offsets): New function.
11554
f6fe98ef
DJ
115552004-02-20 Daniel Jacobowitz <drow@mvista.com>
11556
11557 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11558 to the partial symbol table.
11559
589ca796
JB
115602004-02-20 J. brobecker <brobecker@gnat.com>
11561
11562 * PROBLEMS: Add description of problem documented under gdb/1560.
11563
2031c21a
MK
115642004-02-20 Mark Kettenis <kettenis@gnu.org>
11565
30b344b1
MK
11566 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11567 comments.
11568 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11569 functions.
11570 (amd64obsd_init_abi): Reorder initializations. Use
11571 amd64obsd_r_reg_offset to initialize the general-purpose register
11572 set details. Set regset_from_core_section.
11573 (_initialize_amd64obsd_tdep): Rename from
11574 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11575 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11576 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11577
2031c21a
MK
11578 * NEWS (New native configurations): Mention OpenBSD/alpha.
11579 * configure.tgt: Add alpha*-*-openbsd*.
11580 * configure.host: Add alpha*-*-openbsd*.
11581 * alphanbsd-tdep.c: Update copyright year.
11582 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11583
42471775
AC
115842004-02-20 Andrew Cagney <cagney@redhat.com>
11585
11586 Fix PR tdep/1372.
11587 * configure.tgt: Delete target "none-*-*".
11588 * configure.host: Delete host "none-*-*".
11589 * config/none/none.mh: Delete file.
11590 * config/none/none.mt: Delete file.
11591 * config/none/xm-none.h: Delete file.
11592 * config/none/tm-none.h: Delete file.
11593 * config/none/nm-none.h: Delete file.
11594
960ccd7d
FF
115952004-02-19 Fred Fish <fnf@redhat.com>
11596
11597 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11598 cache->uses_fp prior to setting it.
11599
5f883edd
FF
116002004-02-19 Fred Fish <fnf@redhat.com>
11601
11602 Fix for PR breakpoint/1558.
11603 * sh-tdep.c (IS_JSR): New macro.
11604 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11605
f98c22d5
JB
116062004-02-19 Jim Blandy <jimb@redhat.com>
11607
11608 * findvar.c (value_from_register): Doc fix.
11609
95051d27
JJ
116102004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11611
11612 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11613 type being greater than sizeof of host's LONGEST. Always use
11614 unpack_long() unless format 'f' chosen.
11615
ccefbec3
EZ
116162004-02-19 Joel Brobecker <brobecker@gnat.com>
11617
11618 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 11619
ccefbec3
EZ
11620 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11621 contains a symbol wich is the best, non-exact match for the given
11622 pc. Update comments.
11623
116242004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11625
2ede629f
EZ
11626 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11627 macro, which was part of the now removed Mach 3 port.
11628 * utils.c (request_quit): Ditto.
11629
567ee972
MK
116302004-02-18 Mark Kettenis <kettenis@gnu.org>
11631
11632 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11633 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11634
50cca7bb
MK
116352004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11636
11637 Committed by Mark Kettenis <kettenis@gnu.org>.
11638
11639 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11640 Define.
11641
226361c4
AC
116422004-02-18 Andrew Cagney <cagney@redhat.com>
11643
11644 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11645 CONFIG_INSTALL and CONFIG_UNINSTALL.
11646 * configure: Re-generate.
11647 * interps.h (INTERP_TUI): Define.
11648 * Makefile.in: Update dependencies.
11649 (TUI): New macro.
11650 (tui-main.o): Specify dependencies.
11651 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11652 * tui/tui-main.c: New file.
11653
49cfa46f
MK
116542004-02-18 Mark Kettenis <kettenis@gnu.org>
11655
e2879ccb
MK
11656 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11657 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11658 dependencies.
11659 * configure.host: Add x86_64-*-openbsd*.
11660 * configure.tgt: Add x86_64-*-openbsd*.
11661 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11662
c43f4bec
MK
11663 * tui/tui.c: Don't include <malloc.h>.
11664
09ae75b6
MK
11665 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11666 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11667 amd64nbsd-tdep.c.
11668
49cfa46f 11669 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 11670 static. Remove extraneous whitespace.
49cfa46f
MK
11671 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11672 static.
11673
05957fdb
JB
116742004-02-17 Jim Blandy <jimb@redhat.com>
11675
11676 * findvar.c (value_from_register): Doc fix.
11677
d0f54f9d
JB
116782004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11679
11680 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 11681
8a1dac83 11682 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
11683 CORE_ADDR as type for selectors. Correct types for GNU run time
11684 message lookup function to use double indirection.
11685 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11686 * objc-lang.h (lookup_child_selector): Adapt prototype.
11687
9cbd5950
JB
11688 * s390-nat.c (SUBOFF): New macro.
11689 (supply_gregset, fill_gregset): Use it to handle debugging
11690 of 32-bit exectuables running under a 64-bit kernel.
11691 * s390-tdep.c: Include "solib-svr4.h".
11692 (s390_svr4_fetch_link_map_offset): New function.
11693 (s390x_svr_fetch_link_map_offset): Likewise.
11694 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11695 * Makefile.in (s390-tdep.o): Update dependencies.
11696
a8c99f38
JB
11697 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11698 "frame-unwind.h".
11699 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11700 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11701 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11702 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11703 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11704 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 11705 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
11706 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11707 (struct frame_extra_info): Remove.
11708 (s390_memset_extra_info): Remove.
f73b1eff
JB
11709 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11710 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11711 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
11712 (is_rse): Renamed to ...
11713 (is_rsy): ... this. Support long displacements.
11714 (is_rxe): Renamed to ...
11715 (is_rxy): ... this. Support long displacements.
11716 (compute_x_addr): Support long displacements.
11717 (struct s390_prologue_data): New data type.
11718 (s390_on_stack): Change API to use struct s390_prologue_data.
11719 (s390_store): Reimplement.
11720 (s390_load): New function.
11721 (s390_get_signal_frame_info): Remove.
11722 (s390_get_frame_info): Remove, replace by ...
11723 (s390_analyze_prolog): ... this new function.
11724 (s390_check_function_end): Remove.
11725 (s390_function_start): Remove.
11726 (s390_frameless_function_invokation): Remove.
11727 (s390_is_sigreturn): Remove.
11728 (s390_init_frame_pc_first): Remove.
11729 (s390_init_frame_extra_info): Remove.
11730 (s390_frame_init_saved_regs): Remove.
11731 (s390_frame_saved_pc_nofix): Remove.
11732 (s390_frame_saved_pc): Remove.
11733 (s390_frame_chain): Remove.
11734 (s390_fp_regnum, s390_read_fp): Remove.
11735 (s390_pop_frame_regular, s390_pop_frame): Remove.
11736 (s390_saved_pc_after_call): Remove.
11737 (s390_skip_prologue): Reimplement.
11738 (s390_in_function_epilogue_p): Support long displacements.
11739 (struct s390_unwind_cache): New data structure.
11740 (s390_frame_unwind_cache): New function.
11741 (s390_prologue_frame_unwind_cache): Likewise.
11742 (s390_backchain_frame_unwind_cache): Likewise.
11743 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11744 (s390_frame_unwind): Define.
11745 (s390_frame_sniffer): New function.
11746 (struct s390_pltstub_unwind_cache): New data structure.
11747 (s390_pltstub_frame_unwind_cache): New function.
11748 (s390_pltstub_frame_this_id): Likewise.
11749 (s390_pltstub_frame_prev_register): Likewise.
11750 (s390_pltstub_frame_unwind): Define.
11751 (s390_pltstub_frame_sniffer): New function.
11752 (struct s390_sigtramp_unwind_cache): New data structure.
11753 (s390_sigtramp_frame_unwind_cache): New function.
11754 (s390_sigtramp_frame_this_id): Likewise.
11755 (s390_sigtramp_frame_prev_register): Likewise.
11756 (s390_sigtramp_frame_unwind): Define.
11757 (s390_sigtramp_frame_sniffer): New function.
11758 (s390_frame_base_address, s390_local_base_address): New functions.
11759 (s390_frame_base): Define.
11760 (s390_unwind_pc, s390_unwind_sp): New function.
11761 (s390_push_dummy_call): Use new frame base location.
11762 (s390_unwind_dummy_id): Likewise.
11763 (s390_gdbarch_init): Remove calls to:
11764 set_gdbarch_frameless_function_invocation,
11765 set_gdbarch_deprecated_init_frame_pc,
11766 set_gdbarch_deprecated_frame_chain,
11767 set_gdbarch_deprecated_frame_init_saved_regs,
11768 set_gdbarch_deprecated_pop_frame,
11769 set_gdbarch_deprecated_init_extra_frame_info,
11770 set_gdbarch_deprecated_init_frame_pc_first,
11771 set_gdbarch_deprecated_target_read_fp,
11772 set_gdbarch_deprecated_frame_saved_pc,
11773 set_gdbarch_deprecated_saved_pc_after_call,
11774 set_gdbarch_deprecated_fp_regnum.
11775 Add calls to:
11776 set_gdbarch_in_solib_call_trampoline,
11777 frame_unwind_append_sniffer,
11778 frame_base_set_default,
11779 set_gdbarch_unwind_pc,
11780 set_gdbarch_unwind_sp.
11781 * Makefile.in (s390-tdep.o): Update dependencies.
11782
b0cf273e
JB
11783 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11784 (S390_STACK_FRAME_OVERHEAD): Remove.
11785 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11786 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11787 (s390_promote_integer_argument): Remove.
11788 (s390_cannot_extract_struct_value_address): Remove.
11789 (s390_use_struct_convention, s390_store_struct_return): Remove.
11790 (s390_extract_return_value, s390_store_return_value): Remove.
11791 (s390_return_value_convention, s390_return_value): New functions.
11792 (is_float_singleton): Handle typedefs.
8a1dac83 11793 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
11794 Remove, replace by ...
11795 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11796 s390_function_arg_integer): ... these new functions.
11797 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11798 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11799 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11800 Fill in tdep->abi.
11801 Remove calls to:
11802 set_gdbarch_deprecated_store_struct_return,
11803 set_gdbarch_deprecated_extract_return_value,
11804 set_gdbarch_deprecated_store_return_value,
11805 set_gdbarch_use_struct_convention,
11806 set_gdbarch_extract_struct_value_address,
11807 set_gdbarch_deprecated_pc_in_call_dummy,
11808 set_gdbarch_deprecated_push_arguments,
11809 set_gdbarch_deprecated_save_dummy_frame_tos,
11810 set_gdbarch_deprecated_push_return_address,
11811 set_gdbarch_deprecated_sizeof_call_dummy_words,
11812 set_gdbarch_deprecated_call_dummy_words,
11813 set_gdbarch_deprecated_dummy_write_sp.
11814 Add calls to:
11815 set_gdbarch_push_dummy_call,
11816 set_gdbarch_unwind_dummy_id,
11817 set_gdbarch_return_value.
8a1dac83 11818
e1457d83
JB
11819 * config/s390/nm-linux.h: Update comments.
11820 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11821 (STOPPED_BY_WATCHPOINT): Redefine.
11822 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11823 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11824 (s390_stopped_by_watchpoint): Likewise.
11825 (watch_area_cnt): Remove.
11826 * s390-nat.c: Update comments.
11827 (watch_area): Remove typedef.
11828 Global replace watch_area by struct watch_area.
11829 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 11830 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
11831 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11832 (s390_fix_watch_points): Remove pid argument,
11833 use s390_inferior_tid. Recompute area spanned by watchpoints.
11834 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11835 argument. Reimplement.
11836
d0f54f9d
JB
11837 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11838 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11839 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 11840 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
11841 core-regset.o.
11842 * config/s390/s390x.mt: Remove.
11843 * config/s390/tm-s390.h: Remove.
11844 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11845 (TARGET_ELF64): Remove.
11846 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11847 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11848 s390*-*-* case; always set gdb_target to s390.
11849 * regformats/reg-s390.dat: Remove control registers.
11850 * regformats/reg-s390x.dat: Likewise.
11851 * s390-tdep.h: New file.
8a1dac83 11852 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
11853 Include "inferior.h" and "s390-tdep.h".
11854 Remove private definition of offsetof.
11855 (s390_register_u_addr): Remove.
11856 (regmap_gregset, regmap_fpregset): Define.
11857 (supply_gregset, fill_gregset): Reimplement.
11858 (supply_fpregset, fill_fpregset): Likewise.
11859 (s390_inferior_tid): New function.
11860 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11861 (fetch_inferior_registers, store_inferior_registers): Likewise.
11862 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11863 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11864 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11865 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11866 (struct gdbarch_tdep): Define.
11867 (struct s390_register_info): Define.
11868 (s390_register_info): New variable.
11869 (s390_register_name): Reimplement.
11870 (s390_register_type): New function.
11871 (s390_register_raw_size, s390x_register_raw_size): Remove.
11872 (s390_cannot_fetch_register): Remove.
11873 (s390_register_byte): Remove.
11874 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11875 (s390_dwarf_regmap): New variable.
11876 (s390_dwarf_reg_to_regnum): New function.
11877 (s390_stab_reg_to_regnum): Remove.
11878 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11879 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11880 (s390_convert_register_p): Likewise.
11881 (s390_register_to_value, s390_value_to_register): Likewise.
11882 (s390_register_reggroup_p): Likewise.
11883 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11884 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11885 (s390_supply_regset, s390_regset_from_core_section): New functions.
11886 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11887 (S390_FPR_SIZE): Likewise.
11888 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11889 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11890 (S390_NUM_GPRS): Move here from tm-s390.h.
11891 (S390_NUM_FPRS): Likewise.
11892 (s390_in_function_epilogue_p): New function.
11893 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11894 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11895 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11896 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11897 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11898 Remove calls to:
11899 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
11900 set_gdbarch_deprecated_max_register_virtual_size,
11901 set_gdbarch_deprecated_register_byte,
d0f54f9d 11902 set_gdbarch_cannot_fetch_register,
8a1dac83 11903 set_gdbarch_cannot_store_register,
d0f54f9d
JB
11904 set_gdbarch_deprecated_register_size,
11905 set_gdbarch_deprecated_register_raw_size,
11906 set_gdbarch_deprecated_register_virtual_size,
11907 set_gdbarch_deprecated_register_virtual_type,
11908 set_gdbarch_deprecated_register_bytes.
11909 Add calls to:
11910 set_gdbarch_num_pseudo_regs,
11911 set_gdbarch_register_type,
11912 set_gdbarch_convert_register_p,
11913 set_gdbarch_register_to_value,
11914 set_gdbarch_value_to_register,
11915 set_gdbarch_register_reggroup_p,
11916 set_gdbarch_regset_from_core_section,
11917 set_gdbarch_pseudo_register_read,
11918 set_gdbarch_pseudo_register_write,
11919 set_gdbarch_in_function_epilogue_p.
11920 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11921 (s390_tdep_h): New variable.
11922
8cfe231d
JB
119232004-02-17 Jim Blandy <jimb@redhat.com>
11924
4589a601
JB
11925 * findvar.c (value_from_register): If the type has no length, just
11926 return an acceptable value --- don't report an internal error.
11927
8cfe231d
JB
11928 * stabsread.c (read_type): If we find any type numbers that are
11929 forward references, complain if the references aren't resolved by
11930 the time we're finished reading.
11931 (cleanup_undefined_types): Make error message more appropriate for
11932 a complaint.
11933
5bf0017e
EZ
119342004-02-17 Elena Zannoni <ezannoni@redhat.com>
11935
9d62932d
EZ
11936 * Makefile.in (defs_h): Remove dependency on progress_h.
11937 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11938 progress.h.
11939 * main.c (captured_main): Delete use of START_PROGRESS and
11940 END_PROGRESS.
11941
119422004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 11943
5bf0017e
EZ
11944 * objfiles.c (terminate_minimal_symbol_table): Add back
11945 initialization of MSYMBOL_TYPE.
11946
9fc9f5e2
AC
119472004-02-17 David Mosberger <davidm@hpl.hp.com>
11948
11949 Committed by Andrew Cagney.
11950 * Makefile.in (ia64_tdep_h): New macro.
11951 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11952 (ia64-tdep.o): Likewise.
11953 * ia64-tdep.h: New file.
11954 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11955 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11956 (ia64_aix_sigcontext_register_address): Likewise.
11957 (ia64_linux_getunwind_table): Delete declaration.
11958 * ia64-linux-tdep.c: Likewise.
11959
76cd2bd9
CV
119602004-02-17 Corinna Vinschen <vinschen@redhat.com>
11961
11962 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11963 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11964 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11965
634aa483
AC
119662004-02-17 Andrew Cagney <cagney@redhat.com>
11967
11968 * symtab.c (skip_prologue_using_sal): New function.
11969 * symtab.h (skip_prologue_using_sal): Declare.
11970 * frv-tdep.c: Include "symtab.h".
11971 (skip_prologue_using_sal): Delete function.
11972 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11973 * rs6000-tdep.c (refine_prologue_limit): Mention
11974 skip_prologue_using_sal.
11975 * ia64-tdep.c (refine_prologue_limit): Ditto.
11976 * Makefile.in: Update dependencies.
11977
119782004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 11979
39ce7b3f
AC
11980 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11981 START_INFERIOR_TRAPS_EXPECTED.
11982 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11983 START_INFERIOR_TRAPS_EXPECTED.
11984 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11985 Delete macro.
11986 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11987 macro, moved to "nm-osf.h". Update copyright.
11988 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11989 update copyright.
11990
19772a2c
AC
11991 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11992 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11993 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11994 frameless_look_for_prologue.
11995 * frame.h (legacy_frameless_look_for_prologue): Rename
11996 frameless_look_for_prologue.
11997 * gdbarch.h, gdbarch.c: Re-generate.
11998 * sh64-tdep.c (sh64_gdbarch_init): Update.
11999 * sh-tdep.c (sh_gdbarch_init): Update.
12000 * s390-tdep.c (s390_gdbarch_init): Update.
12001 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12002 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12003 * m68k-tdep.c (m68k_gdbarch_init): Update.
12004 (delta68_frame_args_address): Update.
12005 * m32r-tdep.c (m32r_gdbarch_init): Update.
12006 * hppa-tdep.c (hppa_gdbarch_init): Update.
12007 * h8300-tdep.c (h8300_gdbarch_init): Update.
12008 * frv-tdep.c (frv_gdbarch_init): Update.
12009 (frv_frameless_function_invocation): Update.
12010 * cris-tdep.c (cris_gdbarch_init): Update.
12011 (cris_frameless_function_invocation): Update.
12012 * avr-tdep.c (avr_gdbarch_init): Update.
12013 * arm-tdep.c (arm_gdbarch_init): Update.
12014 * stack.c (frame_info): Update, call predicate.
12015 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12016 * frame.c (legacy_get_prev_frame): Update, call predicate..
12017 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12018 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12019 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12020 invocation.
12021 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12022 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12023 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
12024
12025 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12026 function.
12027
7dcaac91
DJ
120282004-02-16 Daniel Jacobowitz <drow@mvista.com>
12029
12030 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12031 initializations.
12032
88289b6e
AC
120332004-02-16 Andrew Cagney <cagney@redhat.com>
12034
12035 * tui/tui-windata.c: Include "gdb_string.h".
12036 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12037 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12038 * Makefile.in: Update dependencies.
12039
9f976b41
DJ
120402004-02-16 Daniel Jacobowitz <drow@mvista.com>
12041
12042 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12043 * infrun.c: Include "gdb_assert.h".
12044 (singlestep_ptid, saved_singlestep_ptid)
12045 (stepping_past_singlestep_breakpoint): New variables.
12046 (resume): Set singlestep_ptid. Check for singlestep thread
12047 hop.
12048 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12049 (handle_inferior_event): Handle singlestep thread hop.
12050
c324d747
AC
120512004-02-16 Andrew Cagney <cagney@redhat.com>
12052
f090b9b1
AC
12053 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12054 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12055 (dwarf2_frame_init_reg): Ditto.
12056
fd33e6cb
AC
12057 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12058 suggested by Joshua Neuheisel
12059
c324d747
AC
12060 * configure.in: Always check for curses, including pdcurses.
12061 Warn, instead of error, when no curses are found. Enable TUI when
12062 curses is available.
12063 * configure: Re-generate.
12064
b66ba949
CV
120652004-02-16 Corinna Vinschen <vinschen@redhat.com>
12066
12067 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12068 sh_sh4_register_convert_to_virtual.
12069 (sh_register_convert_to_raw): Rename from
12070 sh_sh4_register_convert_to_raw.
12071 (sh_pseudo_register_read): Accomodate above name change.
12072 (sh_pseudo_register_write): Ditto.
12073
b58cbbf2
CV
120742004-02-16 Corinna Vinschen <vinschen@redhat.com>
12075
12076 * sh-tdep.c (sh_generic_register_name): Remove.
12077 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12078
5929a910
AC
120792004-02-15 Andrew Cagney <cagney@redhat.com>
12080
4566dfcf
AC
12081 * configure.in (build_warnings): Add -Wunused-function.
12082 * configure: Re-generate.
12083
db11ed55
AC
12084 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12085 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12086
46ac7a5d
AC
12087 * procfs.c (procfs_init_inferior): Assume that
12088 START_INFERIOR_TRAPS_EXPECTED is defined.
12089 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12090 * config/ns32k/tm-nbsd.h: Delete file,
12091 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12092
ba801595
AC
12093 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12094 * config/vax/tm-vax.h: Delete file.
12095
5929a910
AC
12096 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12097 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12098 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12099 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12100 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12101 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12102 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12103
8f22cb90
MK
121042004-02-15 Mark Kettenis <kettenis@gnu.org>
12105
12106 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12107 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12108 (struct dwarf2_frame_ops): New.
12109 (dwarf2_frame_default_init_reg): New function, based on
12110 dwarf2_frame_init_reg.
12111 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12112 (dwarf2_frame_init_reg): Call architecture-specific function.
12113 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12114 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12115 instead of dwarf2_frame_data.
12116 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12117 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12118
8132723e
AC
121192004-02-15 Andrew Cagney <cagney@redhat.com>
12120
046a4708
AC
12121 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12122 register_gdbarch_swap.
12123 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12124 * f-lang.c (_initialize_f_language): Update, use
12125 DEPRECATED_REGISTER_GDBARCH_SWAP.
12126 * remote.c (_initialize_remote): Ditto.
12127 * regcache.c (_initialize_regcache): Ditto.
12128 * parse.c (_initialize_parse): Ditto.
12129 * infrun.c (_initialize_infrun): Ditto.
12130 * mi/mi-main.c (_initialize_mi_main): Ditto.
12131 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 12132
549c1eea
AC
12133 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12134 poking .cacheable directly.
12135 * symfile.c (symfile_bfd_open): Ditto.
12136
0c0b39de
AC
12137 * Makefile.in: Update all dependencies.
12138
8132723e
AC
12139 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12140 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12141 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12142 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12143 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 12144
b9d26eb9
AC
121452004-02-14 Andrew Cagney <cagney@redhat.com>
12146
8e1f669a
AC
12147 * arch-utils.c (legacy_convert_register_p): Check
12148 DEPRECATED_REGISTER_CONVERTIBLE_P.
12149 * findvar.c (value_of_register): Ditto.
12150
cd0bfa36
AC
12151 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12152 * gdbarch.h, gdbarch.c: Re-generate.
12153 * arch-utils.c (deprecated_register_convertible_not): Delete.
12154 * arch-utils.h (deprecated_register_convertible_not): Delete.
12155 * mi/mi-main.c (get_register): Update. Update copyright.
12156 * infcmd.c (default_print_registers_info): Update.
12157
b9d26eb9
AC
12158 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12159 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12160 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 12161 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
12162 * frame.c (deprecated_get_next_frame_hack): Delete function.
12163 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12164 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12165 Update.
12166 * infcall.c (call_function_by_hand): Update.
12167
9ab9195f
EZ
121682004-02-14 Elena Zannoni <ezannoni@redhat.com>
12169
12170 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 12171 from here...
9ab9195f
EZ
12172 * objfiles.c (init_entry_point_info, entry_point_address):..to
12173 here.
12174 * symfile.h (init_entry_point_info, entry_point_address): Remove
12175 prototypes.
12176 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 12177 prototypes.
9ab9195f
EZ
12178 * cris-tdep.c: Remove include of symfile.h. Add include of
12179 objfiles.h.
12180 * infcall.c: Ditto.
12181 * mcore-tdep.c: Ditto.
12182 * mn10300-tdep.c: Ditto.
12183 * sh64-tdep.c: Ditto.
12184 * v850-tdep.c: Ditto.
12185 * arm-tdep.c: Remove include of symfile.h.
12186 * blockframe.c: Ditto.
12187 * coffread.c: Ditto.
12188 * dbxread.c: Ditto.
12189 * dwarf2read.c: Ditto.
12190 * dwarfread.c: Ditto.
8a1dac83 12191 * frv-tdep.c: Ditto.
9ab9195f
EZ
12192 * ia64-tdep.c: Ditto.
12193 * mdebugread.c: Ditto.
12194 * mipsread.c: Ditto.
8a1dac83 12195 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
12196 * s390-tdep.c: Ditto.
12197 * sh-tdep.c: Ditto.
8a1dac83 12198 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
12199 * gdbarch.sh: Remove include of symfile.h.
12200 * gdbarch.c: Regenerate.
12201 * solib-irix.c (enable_break): Use entry_point_address().
12202 Add comment about include file.
12203 * xcoffread.c: Add comment about include file.
8a1dac83
RM
12204 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12205 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12206 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12207 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
12208 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12209
c4c5b7ba
AC
122102004-02-13 Andrew Cagney <cagney@redhat.com>
12211
12212 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12213 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12214 copyright.
12215 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12216
3e7879de
FF
122172004-02-12 Fred Fish <fnf@redhat.com>
12218
12219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12220 set_gdbarch_store_return_value.
12221
6a7760b6
AC
122222004-02-12 Andrew Cagney <cagney@redhat.com>
12223
12224 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12225 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12226 (interrupt_query): Ditto.
12227 (ofunc): Delete unused variable.
12228 * cris-tdep.c (cris_abi): Delete unused function.
12229 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12230 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12231 (cris_get_asr_quick_shift_steps): Ditto.
12232 (cris_skip_prologue_frameless_p): Ditto.
12233 * arm-tdep.c (arm_push_return_address): Delete unused function.
12234 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12235 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12236 * s390-tdep.c (s390_function_start): Delete unused function.
12237
31687c3c
AC
122382004-02-12 Andrew Cagney <cagney@redhat.com>
12239
12240 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12241 gdbarch.h, gdbarch.c: Re-generate.
12242 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12243 to generic_prologue_frameless_p.
12244 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12245 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12246
6de918a6
DJ
122472004-02-11 Daniel Jacobowitz <drow@mvista.com>
12248
12249 * mips-linux-tdep.c: Include "frame.h".
12250 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12251 (mips_linux_skip_resolver): New functions.
12252 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12253 and set_gdbarch_in_solib_call_trampoline.
12254 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12255 to after set_gdbarch_in_solib_return_trampoline. Only set the
12256 solib hooks to mips16 functions if the OS ABI is unknown.
12257 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12258 including "config/tm-linux.h".
12259 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12260 * Makefile.in (mips-linux-tdep.o): Update.
12261
87b3ede8
DC
122622004-02-11 David Carlton <carlton@kealia.com>
12263
12264 * linespec.c (decode_compound): Only look for a class symbol when
12265 considering all but the rightmost component.
12266
5979bc46
AC
122672004-02-11 Andrew Cagney <cagney@redhat.com>
12268
12269 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12270 abi code are are separatly grouped.
12271
5867a2fb
AC
122722004-02-11 Andrew Cagney <cagney@redhat.com>
12273
12274 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12275 * gdbarch.h, gdbarch.c: Re-generate.
12276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12277 * v850-tdep.c (v850_gdbarch_init): Update.
12278 * sh64-tdep.c (sh64_gdbarch_init): Update.
12279 * sh-tdep.c (sh_gdbarch_init): Update.
12280 * s390-tdep.c (s390_gdbarch_init): Update.
12281 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12282 * mips-tdep.c (mips_gdbarch_init): Update.
12283 * mcore-tdep.c (mcore_gdbarch_init): Update.
12284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12285 * m32r-tdep.c (m32r_gdbarch_init): Update.
12286 * ia64-tdep.c (ia64_gdbarch_init): Update.
12287 * hppa-tdep.c (hppa_gdbarch_init): Update.
12288 * h8300-tdep.c (h8300_gdbarch_init): Update.
12289 * frv-tdep.c (frv_gdbarch_init): Update.
12290 * d10v-tdep.c (d10v_gdbarch_init): Update.
12291 * cris-tdep.c (cris_gdbarch_init): Update.
12292 * avr-tdep.c (avr_gdbarch_init): Update.
12293 * arm-tdep.c (arm_gdbarch_init): Update.
12294 * alpha-tdep.c (alpha_gdbarch_init): Update.
12295
026a72f8
CV
122962004-02-11 Corinna Vinschen <vinschen@redhat.com>
12297
12298 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12299 comma.
12300 (sh_sh4al_dsp_register_name): Ditto.
12301
3903d437
AC
123022004-02-10 Andrew Cagney <cagney@redhat.com>
12303
12304 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12305 (mips_init_frame_pc_first): Delete function.
12306 (mips_frame_saved_pc): Delete function.
12307 (mips_frame_chain): Delete function.
12308 (mips_init_extra_frame_info): Delete function.
12309 (mips_xfer_register): Delete unused variable "reg".
12310 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12311 (mips_n32n64_return_value): Delete unused variable "reg".
12312 (mips_n32n64_return_value): Delete unused variable "pos".
12313 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12314 (mips_o32_return_value): Delete unused variable "pos".
12315 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12316 (mips_print_fp_register): Delete unused variable "namelen"
12317 (mips_print_fp_register): Delete unused variable "flt2"
12318 (get_frame_pointer): Delete function.
12319 (cached_proc_desc): Delete static variable.
12320 (mips_pop_frame): Delete function.
12321 (mips_find_saved_regs): Delete function.
12322 (mips_get_saved_register): Delete function.
12323 (mips_saved_pc_after_call): Delete function.
12324 (SIGFRAME_BASE): Delete macro.
12325 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12326 (SIGFRAME_PC_OFF): Delete macro.
12327 (SIGFRAME_REGSAVE_OFF): Delete macro.
12328 (mips_dump_tdep): Do not print deleted macro definitions.
12329
b9fb98bd
AC
123302004-02-10 Andrew Cagney <cagney@redhat.com>
12331
12332 * Makefile.in (SFILES): Remove explictly listed tui files.
12333 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12334
78ced177 123352004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 12336
78ced177
JJ
12337 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12338 to use paddr functions to format ia64 addresses and long values.
12339 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12340 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12341 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12342 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12343 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12344
6a83354a
AC
123452004-02-10 Andrew Cagney <cagney@redhat.com>
12346
12347 * defs.h: Do not include "tui.h".
12348 * gdb_curses.h: New file.
12349 * tui/tui-hooks.h: New file.
12350 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12351 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12352 (tui_initialize_io): Delete declaration.
12353 (tui_initialize_readline: Delete redundant declaration.
12354 (struct tui_point): Delete definition.
12355 * tui/tui-data.h (struct tui_point): Define.
12356 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12357 * utils.c: Include "tui/tui.h".
12358 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12359 * printcmd.c [TUI]: Include "tui/tui.h".
12360 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12361 * tui/tui-command.c: Include "gdb_curses.h".
12362 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12363 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12364 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12365 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12366 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12367 * Makefile.in: Update all dependencies.
12368 (tui_hooks_h, gdb_curses_h): Define.
12369 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12370
997470ef
EZ
123712004-02-10 Elena Zannoni <ezannoni@redhat.com>
12372
12373 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12374 auxf2. Add comments about some other rarely used fields.
12375
4ff2cc4d
AC
123762004-02-10 Andrew Cagney <cagney@redhat.com>
12377
12378 * Makefile.in (init.c): Fix script removing duplicates. Problem
12379 reported by Peter Schauer.
12380
1ab21617
EZ
123812004-02-09 Elena Zannoni <ezannoni@redhat.com>
12382
12383 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12384 obstack_specify_allocation.
12385 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 12386 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
12387 (allocate_rt_common_objfile): Ditto.
12388 * symfile.c (reread_symbols): Ditto.
12389 * gdb_obstack.h: Add comment.
12390
17763fd9
EZ
123912004-02-09 Elena Zannoni <ezannoni@redhat.com>
12392
12393 * linespec.c (decode_line_1, locate_first_half)
12394 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12395 commented out code.
12396
ec5cdd75
DJ
123972004-02-09 Daniel Jacobowitz <drow@mvista.com>
12398
12399 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12400 obstack_free.
12401
43b54b88
AC
124022004-02-09 Andrew Cagney <cagney@redhat.com>
12403
12404 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12405 fails, try find_pc_section. Fix PR c++/1267.
12406 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12407 instead of find_pc_mapped_section.
12408 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12409 not default to the section containing PC. Fix PR symtab/1519.
12410
edfae063
AC
124112004-02-09 Andrew Cagney <cagney@redhat.com>
12412
12413 * Makefile.in (mips-tdep.o): Update dependencies.
12414 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12415 "trad-frame.h".
12416 (mips_unwind_pc): Return the pseudo PC register.
12417 (mips_unwind_dummy_id): New function.
12418 (mips16_fetch_instruction): New function.
12419 (mips32_fetch_instruction): New function.
12420 (struct mips_frame_cache): Define.
12421 (mips_mdebug_frame_cache): New function.
12422 (mips_mdebug_frame_this_id): New function.
12423 (mips_mdebug_frame_prev_register): New function.
12424 (mips_mdebug_frame_unwind): Define.
12425 (mips_mdebug_frame_sniffer): New function.
12426 (mips_mdebug_frame_base_address): New function.
12427 (mips_mdebug_frame_base): Define.
12428 (mips_mdebug_frame_base_sniffer): New function.
12429 (mips_gdbarch_init): Append unwind and base sniffers. Set
12430 unwind_dummy_id.
12431
defc864c
AC
124322004-02-08 Andrew Cagney <cagney@redhat.com>
12433
6764ddad
AC
12434 * frame.c: Print both the register number and name.
12435
defc864c
AC
12436 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12437 and a sed into a single sed. Make .c and .o patterns more robust.
12438 (OBS): Delete.
12439 (INIT_FILES): Replace OBS with COMMON_OBS.
12440 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12441
645d6d10
MK
124422004-02-08 Mark Kettenis <kettenis@gnu.org>
12443
12444 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12445 the PT_WCOOKIE request.
12446
23e3c3fc
AC
124472004-02-08 Andrew Cagney <cagney@redhat.com>
12448
58dfe9ff
AC
12449 * mips-tdep.c (mips_unwind_pc): New function.
12450 (mips_gdbarch_init): Set mips_unwind_pc.
12451
1152e35e
AC
12452 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12453 (get_frame_id): Allow the UNKNOWN_FRAME.
12454 (frame_register_unwind, get_frame_type): Ditto.
12455
31b75dbf
AC
12456 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12457 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12458 unwind_dummy_id indicates a legacy frame.
12459
3483b318
AC
12460 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12461 * configure: Re-generate.
12462
23e3c3fc
AC
12463 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12464 methods.
12465
33f8ca73
AC
124662004-02-08 Andrew Cagney <cagney@redhat.com>
12467
12468 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12469 makefile macro.
12470 * configure: Re-generate.
12471 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12472 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12473 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12474 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12475 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12476 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12477 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12478 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12479 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12480 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12481
6ba8e26f 124822004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 12483
20d286a5
AC
12484 * Makefile.in: Update all dependencies.
12485
d836ee13
AC
12486 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12487 * configure: Re-generate.
12488 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12489 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12490 (COMMON_OBS): Add "main.o" and "annotate.o".
12491 (ANNOTATE_OBS): Delete.
12492 (OBS): Remove ANNOTATE_OBS.
12493 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12494 CONFIG_INITS.
12495 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12496 against CONFIG_OBS and "main.o".
12497 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12498 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12499
d02c80cd
AC
12500 * tui/tui-command.c: Include "gdb_string.h", delete register
12501 attribute, use ISO-C function signatures.
12502 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12503 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12504 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12505 * tui/tui.c: Ditto.
6ba8e26f
AC
12506
12507 * tui/tui-command.c: Change variable and function names to lower
12508 case.
12509 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12510 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12511 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12512 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12513 * tui/tui-winsource.c, tui/tui.c: Ditto.
12514
4a146b47
EZ
125152004-02-07 Elena Zannoni <ezannoni@redhat.com>
12516
12517 * buildsym.c (free_pending_blocks, finish_block)
12518 (record_pending_block, make_blockvector, end_symtab): Replace
12519 symbol_obstack with objfile_obstack.
8a1dac83 12520 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 12521 (coff_read_enum_type): Ditto.
8a1dac83 12522 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 12523 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 12524 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
12525 (dwarf2_symbol_mark_computed): Ditto.
12526 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12527 * elfread.c (elf_symtab_read): Ditto.
12528 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12529 (hpread_read_enum_type, hpread_read_function_type)
12530 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12531 Ditto.
8a1dac83 12532 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 12533 (java_link_class_type): Ditto.
8a1dac83 12534 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
12535 (new_symbol): Ditto.
12536 * minsyms.c (install_minimal_symbols): Ditto.
12537 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12538 (terminate_minimal_symbol_table): Replace symbol_obstack with
12539 objfile_obstack.
12540 (free_objfile): Remove freeing of symbol_obstack.
12541 * objfiles.h: Remove symbol_obstack field.
12542 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12543 objfile_obstack.
12544 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12545 symbol_obstack.
12546 (solib_add_common_symbols): Replace symbol_obstack with
12547 objfile_obstack.
12548 * somsolib.c (som_solib_add): Ditto.
12549 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12550 (common_block_start, common_block_end): Ditto.
12551 * symfile.c (reread_symbols): Remove freeing and init of
12552 symbol_obstack.
12553 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12554 * symfile.h: Update comment.
12555 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12556 stats printing.
12557 * symtab.c (symbol_set_names): Replace symbol_obstack with
12558 objfile_obstack.
12559 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12560 Update comments.
12561 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12562 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12563 objfile_obstack.
12564
6d012f14
AC
125652004-02-07 Andrew Cagney <cagney@redhat.com>
12566
12567 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12568 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12569 fields and variables.
12570 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12571 (m_beInvisible): Delete macro.
12572 * tui/tui-data.h: Fix case case fields and variables.
12573 (m_genWinPtrIsNull): Delete macro.
12574 (tui_win_list): Rename winList.
12575 (TUI_SRC_WIN): Rename srcWin.
12576 (TUI_DISASM_WIN): Rename disassemWin.
12577 (TUI_DATA_WIN): Rename dataWin.
12578 (TUI_CMD_WIN): Rename cmdWin.
12579 (m_genWinPtrNotNull): Delete macro.
12580 (m_winPtrIsNull): Delete macro.
12581 (m_winPtrNotNull): Delete macro.
12582 (tui_win_is_source_type): Replace m_winIsSourceType
12583 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12584 (tui_win_has_locator): Replace m_hasLocator.
12585 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12586 m_setWinHighlightOff.
12587 * tui/tui-data.c: Update references.
12588 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12589 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12590 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12591 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12592 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12593 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12594 * tui/tui-winsource.c, tui/tui.c: Ditto.
12595
7d34766b
MK
125962004-02-07 Mark Kettenis <kettenis@gnu.org>
12597
1c800673
MK
12598 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12599 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12600 StackGhost.
12601
7d34766b
MK
12602 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12603 variable `i6' to `i7'.
12604 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12605
22940a24
AC
126062004-02-07 Andrew Cagney <cagney@redhat.com>
12607
12608 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12609 (TuiPoint, TuiPointPtr): Ditto.
12610 (TuiStatus, TuiStatusPtr): Ditto.
12611 (TuiWinType, TuiWinTypePtr): Ditto.
12612 (struct tui_point): Rename _TuiPoint.
12613 (tui_get_low_disassembly_address): Rename
12614 tuiGetLowDisassemblyAddress.
12615 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12616 (tuiFree): Delete declaration.
12617 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12618 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12619 * tui/tui.c (tuiFree): Delete function.
12620 * cli/cli-cmds.c (disassemble_command): Update references.
12621 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12622 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12623 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12624 * tui/tui-winsource.c: Ditto.
12625
8b92e4d5
EZ
126262004-02-07 Elena Zannoni <ezannoni@redhat.com>
12627
12628 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12629 coffstab_build_psymtabs, elfstab_build_psymtabs)
12630 (stabsect_build_psymtabs): Replace psymbol_obstack with
12631 objfile_obstack.
12632 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12633 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12634 Ditto.
12635 * dwarfread.c (scan_compilation_units): Ditto.
12636 * elfread.c (elfstab_offset_sections): Ditto.
12637 * hppa-tdep.c (read_unwind_info): Ditto.
12638 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12639 (hpread_end_psymtab): Ditto.
12640 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12641 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12642 Ditto.
12643 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 12644 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
12645 (build_objfile_section_table): Ditto.
12646 (allocate_objfile): Remove init of psymbol_obstack.
12647 (free_objfile): Remove freeing of psymbol_obstack.
12648 * objfiles.h (struct objfile): Remove field
12649 psymbol_obstack. Update comments.
12650 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12651 psymbol_obstack with objfile_obstack.
12652 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12653 psymbol_obstack.
12654 * somread.c (som_symfile_offsets, init_import_symbols)
12655 (init_export_symbols): Replace psymbol_obstack with
12656 objfile_obstack.
12657 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12658 * symfile.c (default_symfile_offsets, syms_from_objfile)
12659 (reread_symbols): Remove freeing and init of psymbol_obstack.
12660 (cashier_psymtab): Update comment.
12661 * symmisc.c (print_objfile_statistics): Don't report stats for
12662 psymbol obstack.
12663 * symtab.h (struct general_symbol_info, struct partial_symtab):
12664 Update comments.
12665 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12666 (xcoff_symfile_offsets): Replace psymbol_obstack with
12667 objfile_obstack.
12668
b99607ea
EZ
126692004-02-07 Elena Zannoni <ezannoni@redhat.com>
12670
12671 * objfiles.h (struct objfile): Add objfile_obstack field.
12672 Remove type_obstack field.
12673
12674 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12675 read_structure_scope read_enumeration, new_symbol): Replace
12676 type_obstack with objfile_obstack.
12677 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 12678 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
12679 (lookup_fundamental_type): Ditto.
12680 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
12681 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12682 (hpread_read_doc_function_type, hpread_read_struct_type)
12683 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 12684 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 12685 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
12686 (java_link_class_type): Ditto.
12687 * mdebugread.c (parse_type): Ditto.
12688 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12689 * solib-sunos.c (solib_add_common_symbols): Ditto.
12690 * stabsread.c (define_symbol, read_type, read_member_functions,
12691 read_cpp_abbrev, read_one_struct_field): Ditto.
12692 * symfile.c (reread_symbols): Ditto.
12693 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 12694
2a8854a7
AC
126952004-02-07 Andrew Cagney <cagney@redhat.com>
12696
12697 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12698 (tui_exec_info_content): Rename TuiExecInfoContent.
12699 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12700 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12701 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12702 (TuiList, TuiListPtr): Ditto.
12703 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12704 (TuiDataType, TuiDataTypePtr): Ditto.
12705 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12706 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12707 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12708 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12709 (TuiDataElement, TuiDataElementPtr): Ditto.
12710 (TuiWinElement, TuiWinElementPtr): Ditto.
12711 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12712 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12713 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12714 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12715 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12716 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12717 * tui/tui-command.c, tui/tui-data.c: Update references.
12718 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12719 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12720 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12721 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 12722
05cbe71a
MK
127232004-02-07 Mark Kettenis <kettenis@gnu.org>
12724
12725 * dwarf2-frame.h: Update copyright.
12726 (enum dwarf2_frame_reg_rule): New.
12727 (struct dwarf2_frame_state_reg): New.
12728 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12729 * dwarf2-frame.c: Update copyright.
12730 (enum dwarf2_reg_rule): Remove.
12731 (struct dwarf2_frame_state): Remove defenition of `struct
12732 dwarf2_frame_state_reg'.
12733 (read_reg): Call get_frame_arch to get the architecture instead of
12734 using CURRENT_GDBARCH.
12735 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12736 DWARF2_FRAME_.
12737 (dwarf2_frame_init_reg): New function.
12738 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12739 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12740 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12741 tags with DWARF2_FRAME_.
12742 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12743 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12744 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12745
ec7d9e56
AC
127462004-02-06 Andrew Cagney <cagney@redhat.com>
12747
dd1abb8c
AC
12748 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12749 (enum tui_data_type): Rename _TuiDataType.
12750 (struct tui_layout_def): Rename _TuiLayoutDef.
12751 (struct tui_source_element): Rename _TuiSourceElement.
12752 (struct tui_data_element): Rename _TuiDataElement.
12753 (struct tui_command_element): Rename _TuiCommandElement.
12754 (struct tui_locator_element): Rename _TuiLocatorElement.
12755 (union tui_which_element): Define.
12756 (struct tui_win_element): Rename _TuiWinElement.
12757 (struct tui_data_info): Rename _TuiDataInfo.
12758 (struct tui_source_info): Rename _TuiSourceInfo.
12759 (struct tui_command_info): Rename _TuiCommandInfo.
12760 (tui_initialize_static_data): Rename initializeStaticData.
12761 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12762 (tui_alloc_win_info): Rename allocWinInfo.
12763 (tui_init_generic_part): Rename initGenericPart.
12764 (tui_init_win_info): Rename initWinInfo.
12765 (tui_alloc_content): Rename allocContent.
12766 (tui_add_content_elements): Rename addContentElements.
12767 (tui_init_content_element): Rename initContentElement.
12768 (tui_free_window): Rename freeWindow.
12769 (tui_free_win_content): Rename freeWinContent.
12770 (tui_free_data_content): Rename freeDataContent.
12771 (tui_free_all_source_wins_content): Rename
12772 freeAllSourceWinsContent.
12773 (tui_del_window): Rename tuiDelWindow.
12774 (tui_del_data_windows): Rename tuiDelDataWindows.
12775 (tui_partial_win_by_name): Rename partialWinByName.
12776 (tui_win_name): Rename winName.
12777 (tui_current_layout): Rename currentLayout.
12778 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12779 (tui_term_height): Rename termHeight.
12780 (tui_set_term_height_to): Rename setTermHeightTo.
12781 (tui_term_width): Rename termWidth.
12782 (tui_set_term_width_to): Rename setTermWidthTo.
12783 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12784 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12785 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12786 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12787 (tui_source_windows): Rename sourceWindows.
12788 (tui_clear_source_windows): Rename clearSourceWindows.
12789 (tui_clear_source_windows_detail): Rename
12790 clearSourceWindowsDetail.
12791 (tui_clear_win_detail): Rename clearWinDetail.
12792 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12793 (tui_default_tab_len): Rename tuiDefaultTabLen.
12794 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12795 (tui_win_with_focus): Rename tuiWinWithFocus.
12796 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12797 (tui_layout_def): Rename tuiLayoutDef.
12798 (tui_win_resized): Rename tuiWinResized.
12799 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12800 (tui_next_win): Rename tuiNextWin.
12801 (tui_prev_win): Rename tuiPrevWin.
12802 (tui_add_to_source_windows): Rename addToSourceWindows.
12803 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12804 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12805 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12806 * tui/tui.c, tui/tui-data.c: Ditto.
12807 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12808 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12809
a358af15
AC
12810 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12811 (struct symtab): Declare.
12812 (tui_set_source_content): Rename tuiSetSourceContent.
12813 (tui_show_symtab_source): Rename tuiShowSource.
12814 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12815 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12816 * tui/tui-source.c: Update copyright. Update references.
12817 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12818 * tui/tui-stack.c: Update references.
12819
a21fcd8f
AC
12820 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12821 (struct tui_win_info): Declare.
12822 (tui_scroll_forward): Rename tuiScrollForward.
12823 (tui_scroll_backward): Rename tuiScrollBackward.
12824 (tui_scroll_left): Rename tuiScrollLeft.
12825 (tui_scroll_right): Rename tuiScrollRight.
12826 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12827 (tui_resize_all): Rename tuiResizeAll.
12828 (tui_refresh_all_win): Rename tuiRefreshAll.
12829 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12830 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12831 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12832 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12833
edae1ccf
AC
12834 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12835 (tui_erase_data_content): Rename tuiEraseDataContent.
12836 (tui_display_all_data): Rename tuiDisplayAllData.
12837 (tui_check_data_values): Rename tuiCheckDataValues.
12838 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12839 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12840 (tui_first_data_element_no_in_line): Rename
12841 tuiFirstDataElementNoInLine.
12842 (tui_delete_data_content_windows): Rename
12843 tuiDeleteDataContentWindows.
12844 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12845 (tui_display_data_from): Rename tuiDisplayDataFrom.
12846 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12847 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12848 * tui/tui-win.c, tui/tui-regs.c: Update references.
12849 * tui/tui-layout.c, tui/tui.c: Update references.
12850
ec7d9e56
AC
12851 * tui/tui-wingeneral.h: Update copyright.
12852 (m_allBeVisible): Delete macro.
8a1dac83 12853 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
12854 (struct tui_gen_win_info): Declare.
12855 (struct tui_win_info): Declare.
12856 (tui_unhighlight_win): Rename unhighlightWin.
12857 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12858 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12859 (tui_make_window): Rename makeWindow.
12860 (tui_copy_win): Rename copyWin.
12861 (tui_box_win): Rename boxWin.
12862 (tui_highlight_win): Rename highlightWin.
12863 (tui_check_and_display_highlight_if_needed): Rename
12864 checkAndDisplayHighlightIfNeeded.
12865 (tui_refresh_all): Rename refreshAll.
12866 (tui_delete_win): Rename tuiDelwin.
12867 (tui_refresh_win): Rename tuiRefreshWin.
12868 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12869 (tui_make_visible, tui_make_invisible): New functions.
12870 (tui_make_all_visible, tui_make_all_invisible): New functions.
12871 (make_all_visible): Rename makeAllVisible.
12872 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12873 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12874 * tui/tui-windata.c, tui/tui-win.c: Update references.
12875 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12876 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12877
1e52e2eb
MK
128782004-02-06 Mark Kettenis <kettenis@gnu.org>
12879
12880 * proc-api.c (write_with_trace): Initialize local variable to
12881 silence compiler warning.
12882
f80bda8e
AC
128832004-02-06 Andrew Cagney <cagney@redhat.com>
12884
12885 * tui/tui-source.h: Do not include "defs.h".
12886 (struct tui_win_info): Declare.
12887 (tui_set_source_content_nil): Declare.
12888 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12889 (union tui_line_or_address): Rename _TuiLineOrAddress.
12890 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12891 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12892 (tui_update_source_window_as_is): Rename
12893 tuiUpdateSourceWindowAsIs.
12894 (tui_update_source_windows_with_addr): Rename
12895 tuiUpdateSourceWindowsWithAddr.
12896 (tui_update_source_windows_with_line): Rename
12897 tuiUpdateSourceWindowsWithLine.
12898 (tui_clear_source_content): Rename tuiClearSourceContent.
12899 (tui_erase_source_content): Rename tuiEraseSourceContent.
12900 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12901 (tui_show_source_content): Rename tuiShowSourceContent.
12902 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12903 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12904 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12905 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12906 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12907 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12908 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12909 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12910 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12911 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12912 (struct tui_win_info): Declare.
12913 * tui/tui-stack.c: Update references.
12914 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12915 * tui/tui-win.c, tui/tui-source.c: Ditto.
12916 * tui/tui.c, tui/tui-disasm.c: Ditto.
12917
9fbfb822
MK
129182004-02-06 Mark Kettenis <kettenis@gnu.org>
12919
12920 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12921 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12922
03cebad2
MK
129232004-02-05 Mark Kettenis <kettenis@gnu.org>
12924
12925 * infrun.c (handle_inferior_event): Allow for breakpoint
12926 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12927 and SIGEMT. Update comments.
12928 * NEWS (Revised SPARC target): Mention support for non-executable
12929 stack.
12930
290281b1
MK
129312004-02-04 Mark Kettenis <kettenis@gnu.org>
12932
12933 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12934 * inftarg.c: Update copyright year.
12935 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12936 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12937 (sparc_xfer_wcookie): New function.
12938 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12939 * Makefile.in (sparc-nat.o): Update dependencies.
12940 * config/sparc/nm-nbsd.h: Include "target.h".
12941 (NATIVE_XFER_WCOOKIE): New define.
12942 (sparc_xfer_wcookie): New prototype.
12943
212161df
AC
129442004-02-04 Andrew Cagney <cagney@redhat.com>
12945
12946 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12947 SYSCALL_TRAP function.
12948 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12949
6e4c6c91
DJ
129502004-02-04 Andrew Cagney <cagney@redhat.com>
12951 Daniel Jacobowitz <drow@mvista.com>
12952
12953 * objfiles.h: Delete comments refering to inside_entry_func and
12954 DEPRECATED_FRAME_CHAIN_VALID.
12955 * defs.h (inside_entry_func): Update prototype..
12956 * blockframe.c (inside_entry_func): Rename to
12957 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12958 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12959
cae688ec
JJ
129602004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12961
12962 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12963 outside of #ifdef SOLIB_ADD region.
12964 (do_restore_lang_radix_cleanup): Ditto.
12965 (resolve_pending_breakpoint): Ditto.
12966
19217676
AC
129672004-02-03 Andrew Cagney <cagney@redhat.com>
12968
12969 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12970 (process_note_abi_tag_sections): Delete unused function.
12971 (ia64_read_fp): Delete unused function.
12972 (gdbarch_extract_struct_value_address): Delete declaration.
12973
876753be
AC
129742004-02-02 Andrew Cagney <cagney@redhat.com>
12975
12976 * vax-tdep.c (vax_frame_chain): Delete call to
12977 deprecated_inside_entry_file.
12978 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12979
d4f10bf2
MK
129802004-02-02 Mark Kettenis <kettenis@gnu.org>
12981
12982 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12983 column that's "empty" or "same value" when eliminating REG_RA
12984 rules.
12985
cae688ec
JJ
129862004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12987
12988 * NEWS: Add information about new pending breakpoint support.
12989
0101ce28
JJ
129902004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12991
12992 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12993 and pending fields for pending breakpoint support.
12994 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12995 (condition_command): Only parse condition if not a pending
12996 breakpoint.
12997 (print_one_breakpoint): Add support for pending breakpoints.
12998 (describe_other_breakpoints): Add checks to verify we are not
12999 dealing with pending breakpoints.
13000 (check_duplicates): Don't check pending breakpoints.
13001 (set_raw_breakpoint): Initialize pending flag.
13002 (do_restore_lang_radix_cleanup): New cleanup routine.
13003 (resolve_pending_breakpoint): New function.
13004 (re_enable_breakpoints_in_shlibs): Try and resolve any
13005 pending breakpoints via resolve_pending_breakpoint.
13006 (mention): Add pending breakpoint support.
13007 (parse_breakpoint_sals): Add new parameter to pass to
13008 decode_line_1 to indicate silent errors when files or functions
13009 are not found. Change all callers.
13010 (do_captured_parse_breakpoint): New function.
13011 (break_command_1): Change prototype to return an rc value and to
13012 take an optional pending breakpoint pointer. Support creating
13013 a pending breakpoint if a "not found" form of error occurs when
13014 parsing the breakpoint. Also support resolving an existing pending
13015 breakpoint and be silent if the resolution fails.
13016 (create_breakpoints): Change prototype to take pending breakpoint
13017 pointer. When resolving a pending breakpoint, use the new pointer
13018 to provide a conditional or commands added by the end-user.
13019 (delete_breakpoint): Add appropriate check for pending.
13020 (breakpoint_re_set_one): Ditto.
13021 (do_enable_breakpoint): Ditto.
13022
8d577d32
DC
130232004-02-02 David Carlton <carlton@kealia.com>
13024
13025 * valops.c (enum oload_classification): New.
13026 (find_overload_match): Break implementation into separate
13027 functions; delete #if 0'd code; look for symbols within
13028 namespaces.
13029 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13030 (find_oload_champ,oload_method_static,classify_oload_match): New.
13031 * cp-support.h: Add declaration for cp_func_name; update
13032 declaration for make_symbol_overload_list.
13033 * cp-support.c (cp_func_name): New.
13034 (overload_list_add_symbol): Fix comment, use
13035 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13036 (make_symbol_overload_list): Take a function name and a namespace
13037 instead of a symbol; change implementation.
13038 (make_symbol_overload_list_using): New.
13039 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13040
22e8e3c7
FF
130412004-02-02 Fred Fish <fnf@redhat.com>
13042
13043 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 13044 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
13045 * remote-sim.c (gdb_os_write_stderr): Write output to
13046 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13047 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 13048 gdb_stderr stream and update copyright years.
22e8e3c7 13049
6b753f60
DJ
130502004-02-01 Daniel Jacobowitz <drow@mvista.com>
13051
13052 * Makefile.in (mips-linux-nat.o): Update dependencies.
13053 * mips-linux-nat.c: Include mips-tdep.h.
13054
130552004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
13056
13057 * sol-thread.c (sol_thread_xfer_partial): New function.
13058 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13059 (init_sol_core_ops): Likewise.
13060
13061 * procfs.c (procfs_xfer_partial): New function.
13062 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13063 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13064
13065 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13066 procfs_xfer_auxv function.
13067
13068 * procfs.c (procfs_make_note_section): If we can read
13069 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13070 * linux-proc.c (linux_make_note_section): Likewise.
13071
13072 * auxv.h: New file.
13073 * auxv.c: New file.
13074 * Makefile.in (auxv_h): New variable.
13075 (COMMON_OBS): Add auxv.o here.
13076 (auxv.o): New target.
13077
13078 * corelow.c (core_xfer_partial): New function.
13079 (init_core_ops): Use it for core_ops.to_xfer_partial.
13080
13081 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13082 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13083 macro if that is defined.
13084
fa5281d0
DJ
130852004-02-01 Daniel Jacobowitz <drow@mvista.com>
13086
13087 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13088 and check the specified thread for each breakpoint.
13089 * breakpoint.h (bpstat_stop_status): Update prototype.
13090 * infrun.c (handle_inferior_event): Update calls to
13091 bpstat_stop_status.
13092
26ee262d
DJ
130932004-02-01 Daniel Jacobowitz <drow@mvista.com>
13094
13095 * Makefile.in (cli-cmds.o): Add $(readline_h).
13096
d9b52655
DJ
130972004-02-01 Daniel Jacobowitz <drow@mvista.com>
13098
13099 * cli/cli-cmds.c: Include readline.h.
13100 (complete_command): Pass the start of the last word to
13101 complete_line.
13102
9709f61c
DJ
131032004-01-31 Daniel Jacobowitz <drow@mvista.com>
13104
13105 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13106 argument, and change first argument to a CORE_ADDR.
13107 * breakpoint.h (bpstat_stop_status): Update prototype.
13108 * infrun.c (adjust_pc_after_break): Add a new comment.
13109 (handle_inferior_event): Update calls to bpstat_stop_status.
13110
4f1280bb
DJ
131112004-01-31 Daniel Jacobowitz <drow@mvista.com>
13112
13113 * breakpoint.h: Update copyright years.
13114
4fa8626c
DJ
131152004-01-31 Daniel Jacobowitz <drow@mvista.com>
13116
13117 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13118 (bpstat_stop_status): Don't decrement PC.
13119 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13120 prototype.
13121 * infrun.c (adjust_pc_after_break): New function.
13122 (handle_inferior_event): Call it, early. Remove later references
13123 to DECR_PC_AFTER_BREAK.
13124 (normal_stop): Add commentary.
13125
fad0733a
DJ
131262004-01-31 Daniel Jacobowitz <drow@mvista.com>
13127
13128 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13129 2004-01-27 double-free fix.
13130
42cdca6c
MK
131312004-01-31 Mark Kettenis <kettenis@gnu.org>
13132
13133 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13134 (sparc32_frame_prev_register): Handle StackGhost.
13135 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13136
932d5416
RM
131372004-01-29 Roland McGrath <roland@redhat.com>
13138
13139 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13140 * configure: Regenerated.
13141
13142 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13143 * Makefile.in (procfs.o): Add dep.
13144
47d3492a
AC
131452004-01-28 Andrew Cagney <cagney@redhat.com>
13146
13147 * tui/tui-stack.h: Update copyright.
13148 (struct frame_info): Add opaque declaration.
13149 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13150 (tui_show_locator_content): Rename tuiShowLocatorContent.
13151 (tui_show_frame_info): Rename tuiShowFrameInfo.
13152 * tui/tui-stack.c: Update copyright. Update references.
13153 * tui/tui-winsource.c: Update references.
13154 * tui/tui-win.c: Update references.
13155 * tui/tui-layout.c: Update references.
13156 * tui/tui-hooks.c: Update copyright, update references.
13157 * tui/tui.c: Update copyright, update references.
13158 * tui/tui-disasm.c: Update references.
13159
5d51ca54
DC
131602004-01-28 David Carlton <carlton@kealia.com>
13161
13162 * dwarf2read.c (add_partial_structure): Use demangled name if
13163 namespace equals "".
13164
086ed43d
JB
131652004-01-27 Jim Blandy <jimb@redhat.com>
13166
13167 Clean up misapplied patch:
13168 * dwarf2read.c (determine_prefix): Change one of the two forward
13169 declarations for 'determine_prefix_aux' to a declaration for this.
13170 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13171 argument to 'die_specification'.
13172
2a35147e
JB
13173 * dwarf2read.c (read_func_scope): Re-indent comment.
13174
a355c7de 131752004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 13176
a355c7de
AC
13177 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13178 b->exp to NULL after freeing so that error during re-parsing or
13179 evaluation of expressions associated with breakpoint don't
13180 eventually lead to re-freeing of storage.
13181 Committed by Andrew Cagney.
13182
63ff5125
AC
131832004-01-27 Andrew Cagney <cagney@redhat.com>
13184
13185 * source.c (ambiguous_line_spec): Delete undefined declaration.
13186 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13187 (m32r_set_server_address, m32r_set_download_path): Ditto.
13188 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13189
e142c38c
DJ
131902004-01-27 Daniel Jacobowitz <drow@mvista.com>
13191
13192 * dwarf2read.c: Update calls to changed and renamed functions, and
13193 references to moved variables.
13194
13195 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13196 language, language_defn, list_in_scope, and ftypes members.
13197 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13198 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13199 (baseaddr): Remove globals.
13200
13201 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13202 (set_cu_language, die_is_declaration, die_specification)
13203 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13204 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13205 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13206 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13207
13208 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13209 cu.list_in_scope. Don't initialize cu_header_offset.
13210 (add_partial_symbol): Add local baseaddr.
13211 (psymtab_to_symtab_1): Add local baseaddr. Use
13212 objfile->section_offsets for consistency. Don't initialize
13213 cu_header_offset; do initialize cu.header.offset and
13214 cu.list_in_scope.
13215 (read_file_scope, read_func_scope, read_lexical_block_scope)
13216 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13217
c6e06ede
MC
132182004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13219
fb328ecc 13220 * PROBLEMS: Add gdb/1516.
c6e06ede 13221
48184fd4
AC
132222003-12-29 Robert Millan <robertmh@gnu.org>
13223
13224 Patch committed by Andrw Cagney.
13225 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13226 * configure.tgt: Match knetbsd*-gnu.
13227
c1321b30
AC
132282004-01-26 Andrew Cagney <cagney@redhat.com>
13229
f3699be3
AC
13230 * breakpoint.c (catch_command_1): Delete #ifdef code.
13231 (catch_fork_command_1): Delete #ifdef wrapper.
13232 (catch_exec_command_1): Ditto.
13233 (catch_load_command_1): Ditto.
13234 (catch_unload_command_1): Ditto.
13235
c1321b30
AC
13236 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13237 (catch_breakpoint): Delete #if0ed function.
13238 (disable_catch_breakpoint): Ditto.
13239 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13240 (disable_catch, enable_catch, delete_catch): Ditto.
13241
b4501125
AC
132422004-01-26 Andrew Cagney <cagney@redhat.com>
13243
13244 * remote.c (echo_check, quit_flag): Delete variables.
13245 (cisco_kernel_mode): Delete variable.
13246 (minitelnet_return, tty_input, escape_count): Delete variables.
13247 (remote_cisco_mode): Delete variable.
13248 (remote_cisco_open, remote_cisco_close): Delete function.
13249 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13250 (init_remote_cisco_ops): Delete function.
13251 (_initialize_remote): Do not install "remote cisco" code.
13252 (read_frame): Delete cisco specific code.
13253 (remote_info_process): Delete function.
13254 (remote_wait): Delete cisco specific code.
13255 (remote_cisco_section_offsets): Delete function.
13256 (remote_cisco_objfile_relocate): Delete function.
13257 (remote_async_wait): Delete cisco specific code.
13258 (minitelnet, readtty, readsocket): Delete function.
13259
74055713
AC
132602004-01-26 Andrew Cagney <cagney@redhat.com>
13261
13262 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13263 comments mentioning extract_returned_value_address.
13264 * infcmd.c (print_return_value): Update. Add comments on
13265 extract_returned_value_address.
13266 * stack.c (return_command): Add comments on
13267 extract_returned_value_address.
13268 * values.c: Update comment.
13269 * m32r-tdep.c: Update comment.
13270 * sparc-tdep.c: Update comment.
13271 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13272 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13273 * sh64-tdep.c (sh64_gdbarch_init): Update.
13274 * sh-tdep.c (sh_gdbarch_init): Update.
13275 * s390-tdep.c (s390_gdbarch_init): Update.
13276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13277 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13278 * m68k-tdep.c (m68k_gdbarch_init): Update.
13279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13280 * m32r-tdep.c (m32r_gdbarch_init): Update.
13281 * ia64-tdep.c (ia64_gdbarch_init): Update.
13282 * h8300-tdep.c (h8300_gdbarch_init): Update.
13283 * frv-tdep.c (frv_gdbarch_init): Update.
13284 * arm-tdep.c (arm_gdbarch_init): Update.
13285 * alpha-tdep.c (alpha_gdbarch_init): Update.
13286
a67af2b9
AC
132872004-01-26 Andrew Cagney <cagney@redhat.com>
13288
13289 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13290 SYMBOL_LOCATION_FUNCS
13291 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13292 "struct symbol_ops".
13293 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13294 type to "struct symbol_ops".
13295 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13296 (struct symbol): Replace ".aux_value.loc.funcs" and
13297 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13298 (SYMBOL_OBJFILE): Delete macro.
13299 (SYMBOL_LOCATION_FUNCS): Delete macro.
13300 (SYMBOL_LOCATION_BATON): Update.
13301 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13302 intead of SYMBOL_LOCATION_FUNCS.
13303 * ax-gdb.c (gen_var_ref): Ditto.
13304 * printcmd.c (address_info): Ditto.
13305 * findvar.c (read_var_value): Ditto.
13306 (symbol_read_needs_frame): Ditto.
13307
c034e007
AC
133082004-01-26 Andrew Cagney <cagney@redhat.com>
13309
13310 * dwarf2read.c (read_func_scope): Document frame-base hack.
13311
bb472c1e
MK
133122004-01-25 Mark Kettenis <kettenis@gnu.org>
13313
13314 * infcmd.c (print_return_value): Plug memory leak; delete
13315 ui_stream object. Rename argument `structure_return' to
13316 `struct_return'.
13317
c8e737d5
MK
133182004-01-25 Mark Kettenis <kettenis@gnu.org>
13319
f941662f
MK
13320 * infcmd.c (print_return_value): Wrap long lines.
13321 (finish_command_continuation, finish_command): Remove unused
13322 variable `funcaddr'. Fix some coding-standards problems.
13323
c558d81a 13324 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 13325 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
13326 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13327 TDEP->fpregset to zero.
13328
bf1e5861 13329 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
13330 floating-point registers for traditional NetBSD core files.
13331 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13332 TDEP->sizeof_fpregset here.
13333
4c72d57a
MK
133342004-01-25 Mark Kettenis <kettenis@gnu.org>
13335
566626fa
MK
13336 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13337 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13338 function with code split out from
13339 sparc32nbsd_sigcontext_frame_cache.
13340 (sparc32nbsd_sigcontext_frame_cache): Use
13341 sparc32nbsd_sigcontext_saved_regs.
13342 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13343 OpenBSD.
13344 * sparcobsd-tdep.c: New file.
13345 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13346 (sparcobsd-tdep.o): New dependency.
13347 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13348 * config/sparc/obsd.mt: New file.
13349
4c72d57a
MK
13350 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13351 TDEP->fpregset to be initialized to enable core file register
13352 sets.
13353
7e5e9f88
MK
133542004-01-24 Mark Kettenis <kettenis@gnu.org>
13355
f0f207fd 13356 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
13357 Add opaque declarations.
13358 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13359 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13360 function with code split out from
13361 sparc64nbsd_sigcontext_frame_cache.
13362 (sparc64nbsd_sigcontext_frame_cache): Use
13363 sparc64nbsd_sigcontext_saved_regs.
13364 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13365 OpenBSD.
13366 * sparc64obsd-tdep.c: New file.
13367 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13368 (sparc64obsd-tdep.o): New dependency.
13369 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13370 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13371 * config/sparc/obsd64.mt: New file.
13372
690668cc
MK
13373 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13374 read the instruction at PC.
13375
7e5e9f88
MK
13376 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13377 value of GDB_OSABI_DEFAULT.
13378 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13379 instead of GDB_OSABI_NETBSD_AOUT.
13380
68b6dce9
NR
133812004-01-24 Nick Roberts <nick@nick.uklinux.net>
13382
13383 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13384 copyright.
13385
080ce8c0
AC
133862004-01-23 Andrew Cagney <cagney@redhat.com>
13387
13388 * printcmd.c (display_command): Replace tui_set_display call with
13389 tui_set_layout_for_display_command.
13390 * tui/tui.h (enum tui_win_type): Define.
13391 (tui_set_layout): Delete declaration.
13392 (tui_set_layout_for_display_command): Rename set_tui_layout.
13393 * tui/tui-data.h (enum tui_layout_type): Define.
13394 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13395 "tui.h".
13396 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13397 (tui_default_win_height): Rename tuiDefaultWinHeight.
13398 (tui_default_win_viewport_height): Rename
13399 tuiDefaultWinViewportHeight.
13400 (tui_set_layout): RenametuiSetLayout.
13401 * tui/tui-layout.c: Update references.
13402 * tui/tui.c: Update references.
13403 * tui/tui-disasm.c: Update references.
13404
b368761e
DC
134052004-01-23 David Carlton <carlton@kealia.com>
13406
13407 Partial workaround for PR c++/1511:
13408 * cp-namespace.c: Include frame.h.
13409 (cp_lookup_transparent_type): New
13410 (cp_lookup_transparent_type_loop): New.
13411 * cp-support.h: Declare cp_lookup_transparent_type.
13412 * symtab.c (basic_lookup_transparent_type): Renamed from
13413 lookup_transparent_type.
13414 (lookup_transparent_type): Replace old body by a call to
13415 current_language->la_lookup_transparent_type.
13416 * symtab.h: Update copyright. Declare
13417 basic_lookup_transparent_type.
13418 * language.h: Update copyright.
13419 (struct language_defn): Add la_lookup_transparent_type.
13420 * language.c: Update copyright.
13421 (unknown_language_defn): Add basic_lookup_transparent_type.
13422 (auto_language_defn): Add basic_lookup_transparent_type.
13423 (local_language_defn): Add basic_lookup_transparent_type.
13424 * ada-lang.c: Update copyright.
13425 (ada_language_defn): Add basic_lookup_transparent_type.
13426 * c-lang.c: Update copyright.
13427 (c_language_defn): Add basic_lookup_transparent_type.
13428 (cplus_language_defn): Add basic_lookup_transparent_type.
13429 (asm_language_defn): Add basic_lookup_transparent_type.
13430 (minimal_language_defn): Add basic_lookup_transparent_type.
13431 * f-lang.c: Update copyright.
13432 (f_language_defn): Add basic_lookup_transparent_type.
13433 * jv-lang.c: Update copyright.
13434 (java_language_defn): Add basic_lookup_transparent_type.
13435 * m2-lang.c: Update copyright.
13436 (m2_language_defn): Add basic_lookup_transparent_type.
13437 * objc-lang.c: Update copyright.
13438 (objc_language_defn): Add basic_lookup_transparent_type.
13439 * p-lang.c: Update copyright.
13440 (p_language_defn): Add basic_lookup_transparent_type.
13441 * scm-lang.c: Update copyright.
13442 (scm_language_defn): Add basic_lookup_transparent_type.
13443 * Makefile.in (cp-namespace.o): Depend on frame.h.
13444
fdde2d81
DC
134452004-01-23 David Carlton <carlton@kealia.com>
13446
13447 Patch for PR c++/1520:
13448 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13449 properly if we have a specification die.
13450 (determine_prefix_aux): Rename from determine_prefix.
13451 (determine_prefix): Like the old determine_prefix, but never
13452 returns NULL.
13453
5b828b6b
TR
134542004-01-23 Theodore A. Roth <troth@openavr.org>
13455
13456 * avr-tdep.c: Update copyright.
13457 (avr_iaddr_p): Delete unused function.
13458 (avr_saddr_p): Delete unused function.
13459
a1b8c067
DC
134602004-01-23 David Carlton <carlton@kealia.com>
13461
13462 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13463 Fix for PR symtab/1534.
13464
f2cab569
MK
134652004-01-23 Mark Kettenis <kettenis@gnu.org>
13466
13467 * NEWS (New native configurations): Mention OpenBSD/sparc and
13468 OpenBSD/sparc64.
13469 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13470 * configure.host: Likewise.
13471 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13472 handler for OpenBSD.
13473 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13474
642d8300
MK
134752004-01-22 Mark Kettenis <kettenis@gnu.org>
13476
89aac506
MK
13477 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13478 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13479
36662fde
MK
13480 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13481 * cli/cli-cmds.c (shell_escape): Likewise.
13482
642d8300
MK
13483 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13484 OpenBSD .note.openbsd.ident sections.
13485
fae299cd
DC
134862004-01-22 David Carlton <carlton@kealia.com>
13487
13488 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13489 get_scope_pc_bounds.
13490 (read_file_scope): Ditto.
13491 (get_scope_pc_bounds): New function, produced by extracting code
13492 from the above two functions, consolidating it, and adding support
13493 for DW_TAG_namespace.
13494
a49d618c
MK
134952004-01-22 Mark Kettenis <kettenis@gnu.org>
13496
13497 * osabi.c (MAX_NOTESZ): New define.
13498 (check_note): New function.
13499 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13500 check_note.
13501
fe61caab
RM
135022004-01-21 Roland McGrath <roland@redhat.com>
13503
13504 * MAINTAINERS (write after approval): Add myself.
13505
ec145965
EZ
135062004-01-21 Eli Zaretskii <eliz@gnu.org>
13507
13508 * utils.c (init_page_info): Move declarations of `rows' and
13509 `cols' before the __GO32__-specific code. Move the closing brace
13510 outside the #ifdef __GO32__..#endif block.
13511 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13512
877522db
PB
135132004-01-21 Paul Brook <paul@codesourcery.com>
13514
13515 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13516 BPSTAT_WHAT_CHECK_SHLIBS.
13517
dbf5be1c
PB
135182004-01-21 Paul Brook <paul@codesourcery.com>
13519
13520 * MAINTAINERS: Add myself to write-after-approval.
13521
81f08b92
AC
135222004-01-20 Andrew Cagney <cagney@redhat.com>
13523
5a1efed7
AC
13524 * ax-gdb.c (print_axs_value): Delete unused function.
13525 * jv-lang.c (java_lookup_type): Delete unused function.
13526 * cli/cli-dump.c (dump_filetype): Delete unused function.
13527 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13528 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13529 (mips_getstring): Delete unused function.
13530 (pmon_insert_breakpoint): Delete #if0ed function.
13531 (PMON_MAX_BP): Delete #if0ed MACRO.
13532 (mips_pmon_bp_info): Delete #if0ed variable.
13533 (pmon_remove_breakpoint): Delete #if0ed function.
13534 * monitor.c (monitor_write_even_block): Delete unused function.
13535 (monitor_write_memory_block): Delete #if0ed code.
13536 * dink32-rom.c (dink32_load): Delete unused function.
13537 (_initialize_dink32_rom): Delete #if0ed code.
13538 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13539
b0a30fce
AC
13540 * tui/tui-command.c: Update references.
13541 * tui/tui-io.c: Update references.
13542 * tui/tui-command.h: Update copyright.
13543 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13544
81f08b92
AC
13545 * source.c (ambiguous_line_spec): Delete never-defined function.
13546 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13547 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13548 * cli/cli-cmds.c (validate_comname): Ditto.
13549
65f05602
AC
13550 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13551 "tui-data.h".
13552 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13553 (tui_show_disassem): Rename tuiShowDisassem.
13554 (tui_show_disassem_and_update_source): Rename
13555 tuiVerticalDisassemScroll.
13556 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13557 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13558 * tui/tui.h: Update copyright.
13559 (enum tui_status): Define.
13560 * tui/tui-data.h (enum tui_scroll_direction): Define.
13561 * tui/tui-disasm.c: Update copyright. Update references.
13562 * tui/tui-winsource.c: Update copyright. Update references.
13563 * tui/tui-win.c: Update references.
13564 * tui/tui-layout.c: Update references.
13565
6bb0384f
AC
135662004-01-20 Andrew Cagney <cagney@redhat.com>
13567
13568 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13569 sym2 to start of block.
13570
9175c9a3
MC
135712004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13572
13573 * MAINTAINERS: Delete mmalloc.
13574 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13575 * NEWS: Mention removal of --with-malloc.
13576 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13577 * config.in: Regenerate.
13578 * configure: Regenerate.
6bb0384f
AC
13579 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13580 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
13581 * gdbinit.in: Remove mmalloc.
13582 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13583 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13584 * config/i386/go32.mh: Likewise.
13585 * config/i386/interix.mh: Likewise.
13586 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13587
4fcef00a
JJ
135882004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13589
13590 * linespec.c (decode_variable, symtab_from_filename): Call
13591 error_silent with error message instead of throwing an exception
13592 directly.
13593 * defs.h (error_silent, error_output_message): Add prototypes.
13594 (catch_exceptions_with_msg): Ditto.
13595 * utils.c (error_silent, error_output_message): New functions.
13596 * top.c (catch_exceptions_with_msg): New function.
13597
8e94b928
NR
135982004-01-20 Nick Roberts <nick@nick.uklinux.net>
13599
13600 * mi/mi-cmds.h (enum print_values): Add definition.
13601
13602 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13603 type and value for simple data types and just the name and type
13604 for complex ones, if required.
13605
13606 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13607 children, if required.
13608
a02d6af8
KB
136092004-01-19 Kevin Buettner <kevinb@redhat.com>
13610
13611 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13612 unused declarations.
13613
78a4a9b9
AC
136142004-01-19 Andrew Cagney <cagney@redhat.com>
13615
13616 * top.h (mapped_symbol_files): Delete declaration.
13617 * main.c (captured_main): Delete option "m" and "mapped".
13618 * objfiles.c (mapped_symbol_files): Delete variable.
13619 * symfile.c (symbol_file_command): Delete mmap code.
13620 (symbol_file_add_with_addrs_or_offsets): Ditto.
13621 (add_symbol_file_command, reread_separate_symbols): Ditto.
13622 * objfiles.h (OBJF_MAPPED): Delete.
13623 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13624 (free_objfile) [USE_MMALLOC]: Ditto.
13625 (open_existing_mapped_file): Delete function.
13626 (open_mapped_file): Delete function.
13627 (map_to_file): Delete function.
13628
2dbd5e30
KB
136292004-01-19 Kevin Buettner <kevinb@redhat.com>
13630
13631 * infrun.c (step_into_function): Account for possible breakpoint
13632 adjustment when computing ``stop_func_start''.
13633
437b434f
KB
136342004-01-19 Kevin Buettner <kevinb@redhat.com>
13635
13636 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13637 the region size against the size of a pointer, not the size of
13638 a register as given by DEPRECATED_REGISTER_SIZE.
13639
55fb0713
AC
136402004-01-19 Andrew Cagney <cagney@redhat.com>
13641
13642 * tui/tui-regs.h: Include "tui-data.h".
13643 (tuiFirstRegElementNoInLine): Delete declaration.
13644 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13645 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13646 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13647 (tui_calculate_regs_column_count): Rename
13648 tuiCalculateRegsColumnCount.
13649 (tui_check_register_values): Rename tuiCheckRegisterValues.
13650 (tui_show_registers): Rename tuiShowRegisters.
13651 (tui_display_registers_from_line): Rename
13652 tuiDisplayRegistersFromLine.
13653 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13654 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13655 (tui_first_reg_element_no_inline): Rename
13656 tuiFirstRegElementNoInLine.
13657 * tui/tui-data.h: Update copyright.
13658 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13659 * tui/tui-windata.c: Update copyright, update references.
13660 * tui/tui-regs.c: Update copyright, update references.
13661 * tui/tui-win.c: Update copyright, update references.
13662 * tui/tui-layout.c: Update copyright, update references.
fe61caab 13663
cebe9500
AC
136642004-01-18 Andrew Cagney <cagney@redhat.com>
13665
bcdf1568
AC
13666 * tui/tui-io.c: Update copyright.
13667 (key_is_end_sequence, key_is_backspace): New functions.
13668 (key_is_command_char, key_is_start_sequence): New function.
13669 (tui_getc): Update references.
13670 * tui/tui-io.h: Update copyright.
13671 (m_tuiStartNewLine): Delete macro.
13672 (m_isBackspace, m_isDeleteChar): Delete macros.
13673 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13674 (m_isNextPage, m_isPrevPage): Delete macros.
13675 (m_isLeftArrow, m_isRightArrow): Delete macros.
13676 (m_isXdbStyleCommandChar): Delete macro.
13677 (key_is_start_sequence): Declare, replace m_isStartSequence.
13678 (key_is_end_sequence): Declare, replace m_isEndSequence.
13679 (key_is_backspace): Declare ,replace m_isBackspace.
13680 (key_is_command_char): Declare, replace m_isCommandChar.
13681 * tui/tui-command.c: Update copyright.
13682 (tuiDispatchCtrlChar): Update references.
13683
130d87e6
AC
13684 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13685 tuiSourceWin.h.
13686
d7b2e967
AC
13687 * tui/tui-command.c: Rename tui/tuiCommand.c.
13688 * tui/tui-command.h: Rename tui/tuiCommand.h.
13689 * tui/tui-data.c: Rename tui/tuiData.c.
13690 * tui/tui-data.h: Rename tui/tuiData.h.
13691 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13692 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13693 * tui/tui-io.c: Rename tui/tuiIO.c.
13694 * tui/tui-io.h: Rename tui/tuiIO.h.
13695 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13696 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13697 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13698 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13699 * tui/tui-source.c: Rename tui/tuiSource.c.
13700 * tui/tui-source.h: Rename tui/tuiSource.h.
13701 * tui/tui-stack.c: Rename tui/tuiStack.c.
13702 * tui/tui-stack.h: Rename tui/tuiStack.h.
13703 * tui/tui-win.c: Rename tui/tuiWin.c.
13704 * tui/tui-win.h: Rename tui/tuiWin.h.
13705 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13706 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13707 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13708 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13709 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13710 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13711 * tui/tui-file.c: Update includes.
13712 * tui/tui-hooks.c: Update includes.
13713 * tui/tui-interp.c: Update includes.
13714 * tui/tui.c: Update includes.
13715 * Makefile.in: Update all tui/ dependencies.
13716 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13717
b2100910
AC
13718 * Makefile.in: Update copyright. Update dependencies.
13719
cebe9500
AC
13720 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13721 problem.
13722
c6f0559b
AC
137232004-01-18 Andrew Cagney <cagney@redhat.com>
13724
43e9390b
AC
13725 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13726 instead of register_gdbarch_init.
13727
c6f0559b
AC
13728 * remote-sds.c (tohex): Delete unused function. Update copyright.
13729 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13730 * v850-tdep.c (v850_register_virtual_size): Ditto.
13731 * target.c (normal_target_post_startup_inferior): Ditto.
13732 * source.c (ambiguous_line_spec): Ditto.
13733 * remote.c (adapt_remote_get_threadinfo): Ditto.
13734 * mi/mi-out.c (out_field_fmt): Ditto.
13735 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13736 (output_control_change_notification): Ditto.
13737 * m68k-tdep.c (m68k_register_byte): Ditto.
13738 (m68k_remote_breakpoint_from_pc): Ditto.
13739 * ui-out.c (init_ui_out_state): Delete unused declaration.
13740 * stabsread.c (search_value): Ditto.
13741 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13742 * maint.c (print_section_table): Ditto.
13743 * infrun.c (set_follow_fork_mode_command): Ditto.
13744
a8504492
MK
137452004-01-18 Mark Kettenis <kettenis@gnu.org>
13746
13747 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13748 DW_CFA_def_cfa_exporession. Add support for
13749 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13750 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13751
0bd8997e
AC
137522004-01-18 Andrew Cagney <cagney@redhat.com>
13753
13754 * ocd.c: Update copyright.
13755 (bdm_read_register_command): Delete unused function.
13756 (_initialize_remote_ocd): Delete commented out reference.
13757 (get_quoted_char, reset_packet): Delete #if0ed function.
13758 (output_packet, put_quoted_char): Delete #if0ed function.
13759 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13760 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13761 (BDM_BREAKPOINT): Delete #if0ed macro.
13762 (remote_timeout): Delete #if0ed variable.
13763
31bb40e4
MK
137642004-01-18 Mark Kettenis <kettenis@gnu.org>
13765
13766 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13767 (core-sol2.o): Remove dependency.
13768 * core-sol2.c: Remove file.
13769
887432a5
AC
137702004-01-17 Andrew Cagney <cagney@redhat.com>
13771
13772 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13773 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13774 enums.
13775
29182b13
DJ
137762004-01-17 Daniel Jacobowitz <drow@mvista.com>
13777
13778 * remote.c: Update copyright years.
13779
2963ee1d
DJ
137802004-01-17 Daniel Jacobowitz <drow@mvista.com>
13781
13782 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13783
79d45cd4
AC
137842004-01-17 Andrew Cagney <cagney@redhat.com>
13785
ee300cd4
AC
13786 * mdebugread.c: Update copyright.
13787 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13788 (parse_type, parse_procedure): Ditto.
13789 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13790
fcacc9c2
AC
13791 * cris-tdep.c (cris_store_struct_return): Put back accidently
13792 deleted function.
13793
79d45cd4
AC
13794 * gdbarch.sh: Update copyright year.
13795 * gdbarch.h, gdbarch.c: Re-generate.
13796
b263358a
DJ
137972004-01-17 Daniel Jacobowitz <drow@mvista.com>
13798
13799 Suggested by George Anzinger.
13800 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13801 correct stack offset. Include unknown opcode numbers in the error
13802 message.
13803
931aecf5
AC
138042004-01-17 Andrew Cagney <cagney@redhat.com>
13805
13806 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13807 extract_struct_value_address, i386 does not set it.
13808 * sparc64-tdep.c (sparc64_init_abi): Do not set
13809 extract_struct_value_address, never called.
13810 (sparc64_extract_struct_value_address): Delete function.
13811 * m68hc11-tdep.c: Update copyright.
13812 (m68hc11_gdbarch_init): Delete redundant assignment of
13813 extract_struct_value_address.
13814 * i386-tdep.c: Update copyright.
13815 (i386_gdbarch_init): Do not set extract_struct_value_address,
13816 never called.
13817 (i386_extract_struct_value_address): Delete function.
13818 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13819 extract_struct_value_address, never called.
13820 (sparc32_extract_struct_value_address): #if 0 function. Add
13821 comments explaining its future.
13822
756fe439
DJ
138232004-01-17 Daniel Jacobowitz <drow@mvista.com>
13824
13825 * arm-tdep.c (arm_write_pc): New function.
13826 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13827
e74f0f02
DJ
138282004-01-17 Daniel Jacobowitz <drow@mvista.com>
13829
13830 * breakpoint.c (must_shift_inst_regs): Delete.
13831 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13832 and SHIFT_INST_REGS.
13833 * infcmd.c (step_1, step_1_continuation): Delete references to
13834 SHIFT_INST_REGS.
13835 * infrun.c (keep_going): Likewise.
13836 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13837 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13838
b6cb9035
AC
138392004-01-17 Andrew Cagney <cagney@redhat.com>
13840
444a1e2e
AC
13841 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13842 * gdbarch.h, gdbarch.c: Re-generate.
13843 * infcmd.c (print_return_value): Delete reference to
13844 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13845
def7e6ed
AC
13846 * cris-tdep.c (cris_gdbarch_init): Do not set
13847 deprecated_extract_struct_value_address.
13848
07be497a
AC
13849 * xstormy16-tdep.c: Update copyright.
13850 (xstormy16_extract_struct_value_address): Update to current
13851 extract struct value address interface.
13852 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13853 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13854 current extract struct value address interface.
13855 (sh64_gdbarch_init): Set extract_struct_value_address.
13856
6b4d5c91
AC
13857 * cris-tdep.c: Update copyright.
13858 (cris_extract_struct_value_address): Delete function.
13859 (struct_return_address): Delete variable.
13860 (cris_store_struct_return): Do not set struct_return_address.
13861
464e0365
AC
13862 * mcore-tdep.c: Update copyright.
13863 (mcore_extract_struct_value_address): Delete function. Update
13864 comments.
13865 (mcore_gdbarch_init): Update.
13866 * mn10300-tdep.c: Update copyright.
13867 (mn10300_extract_struct_value_address): Delete function.
13868 (mn10300_gdbarch_init): Update.
13869 * v850-tdep.c: Update copyright.
13870 (v850_extract_struct_value_address): Delete.
13871 (v850_gdbarch_init): Update.
13872 * ns32k-tdep.c: Update copyright.
13873 (ns32k_extract_struct_value_address): Delete.
13874 (ns32k_gdbarch_init): Update.
13875 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13876 (hppa_gdbarch_init): Update.
13877 * vax-tdep.c: Update copyright.
13878 (vax_extract_struct_value_address): Delete.
13879 (vax_gdbarch_init): Update.
13880
afb18d0f
AC
13881 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13882 * gdbarch.h, gdbarch.c: Re-generate.
13883 * procfs.c (procfs_fetch_registers): Delete reference to
13884 DEPRECATED_NPC_REGNUM.
13885 (procfs_store_registers): Ditto.
13886 * regcache.c (generic_target_write_pc): Simplify.
13887 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13888
a698f53e
AC
13889 * core-sol2.c (fetch_core_registers): Replace
13890 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13891
adc11376
AC
13892 * hppa-tdep.c: Update copyright year.
13893 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13894 NPC_REGNUM.
13895 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13896
b6cb9035
AC
13897 * mips-tdep.c (mips_write_pc): New function.
13898 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13899 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13900 (mips_find_saved_regs, mips_software_single_step: Ditto.
13901 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13902 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13903
6d82d43b
AC
139042004-01-17 Andrew Cagney <cagney@redhat.com>
13905
13906 * mips-tdep.c: Re-indent. Group functions by ABI.
13907
71bd6bd4
AC
139082004-01-17 Andrew Cagney <cagney@redhat.com>
13909
13910 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13911 * gdbarch.c: Re-generate.
13912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13913 DECR_PC_AFTER_BREAK to zero.
13914 * vax-tdep.c (vax_gdbarch_init): Ditto.
13915 * v850-tdep.c (v850_gdbarch_init): Ditto.
13916 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13917 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13918 * sh-tdep.c (sh_gdbarch_init): Ditto.
13919 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13920 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13921 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13922 * mips-tdep.c (mips_gdbarch_init): Ditto.
13923 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13925 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13926 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13927 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13928 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13930 * frv-tdep.c (frv_gdbarch_init): Ditto.
13931 * cris-tdep.c (cris_gdbarch_init): Ditto.
13932 * avr-tdep.c (avr_gdbarch_init): Ditto.
13933 * arm-tdep.c (arm_gdbarch_init): Ditto.
13934 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13935
a02abb62
JB
139362004-01-17 J. Brobecker <brobecker@gnat.com>
13937
13938 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13939 Delete, no longer used.
13940 (read_subrange_type): New function, mostly extracted from
13941 read_array_type().
13942 (read_array_type): Replace extracted code by call to
13943 read_subrange_type().
13944 (dwarf2_get_attr_constant_value): New function.
13945 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13946 (add_partial_symbol): Likewise.
13947 (process_die): Likewise.
13948 (new_symbol): Likewise.
13949 (read_type_die): Likewise.
13950
cf5b2f1b
AC
139512004-01-16 Andrew Cagney <cagney@redhat.com>
13952
13953 * symfile.c: Update copyright year.
13954 (compare_symbols): Delete unused function.
13955 * stabsread.c: Update copyright year.
13956 (lrs_general_complaint): Delete unused function.
13957 (ref_search_value): Ditto.
13958 (get_substring): Delete declaration.
13959 * sh64-tdep.c: Update copyright year.
13960 (sh64_get_gdb_regnum): Delete unused function.
13961 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13962 Delete unused function.
13963
d33b9831
MK
139642004-01-17 Mark Kettenis <kettenis@gnu.org>
13965
13966 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13967 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13968
7aea86e6
AC
139692004-01-16 Andrew Cagney <cagney@redhat.com>
13970
13971 Changes from Peter Schauer.
13972 * rs6000-tdep.c: Update copyright year.
13973 (rs6000_push_dummy_call): Update the stack pointer before
13974 accessing the corresponding stack region.
13975 * rs6000-nat.c: Update copyright year.
13976 (set_host_arch): Set "info.abfd" to "exec_bfd".
13977
26b0da32
MK
139782004-01-15 Mark Kettenis <kettenis@gnu.org>
13979
13980 * blockframe.c: Update copyright year.
13981 (inside_entry_func): Don't treat a zero PC specially.
13982
86fbe6cc
EZ
139832004-01-14 Elena Zannoni <ezannoni@redhat.com>
13984
13985 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13986 variable.
13987 (gcore_create_callback): Ditto. Skip any memory segment that has
13988 no permissions set.
13989
63d06c5c
DC
139902004-01-14 David Carlton <carlton@kealia.com>
13991
13992 Change symbols for C++ nested types to contain the fully qualified
13993 name, if possible. (At least in the DWARF-2 case.) Partial fix
13994 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13995 c++/895.
13996 * c-exp.y (qualified_type): Handle types nested within classes.
13997 * cp-namespace.c: Update comments.
13998 (cp_set_block_scope): Delete #if 0.
13999 (cp_lookup_nested_type): Handle types nested within classes.
14000 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14001 when appropriate.
14002 (add_partial_symbol): Add the name of the enclosing namespace to
14003 types.
14004 (pdi_needs_namespace): New.
14005 (add_partial_namespace): Tweak comment.
14006 (add_partial_structure): New.
14007 (psymtab_to_symtab_1): Initialize processing_current_prefix
14008 here...
14009 (process_die): instead of here.
14010 (read_structure_scope): Try to figure out the name of the class or
14011 namespace that the structure might be defined within.
14012 (read_enumeration): Generate fully-qualified names, if possible.
14013 (read_namespace): Don't set name to NULL.
14014 (die_specification): New.
14015 (new_symbol): Generate fully-qualified names for types.
14016 (read_type_die): Determine appropriate prefix.
14017 (determine_prefix): New.
14018 (typename_concat): New.
14019 (class_name): New.
14020 * valops.c (value_aggregate_elt): Pass NOSIDE to
14021 value_struct_elt_for_reference.
14022 (value_struct_elt_for_reference): Make static, add NOSIDE
14023 parameter, call value_maybe_namespace_elt as a last resort.
14024 (value_namespace_elt): Break out code into
14025 value_maybe_namespace_elt.
14026 (value_maybe_namespace_elt): New.
14027
87783b8b
AC
140282004-01-12 Andrew Cagney <cagney@redhat.com>
14029
14030 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14031 cooked floating-point registers.
14032 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14033 and value_to_register.
14034
6503b91e
AC
140352004-01-13 Andrew Cagney <cagney@redhat.com>
14036
14037 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14038 * gdbarch.c: Re-generate.
14039 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14040 FUNCTION_START_OFFSET.
14041 * v850-tdep.c (v850_gdbarch_init): Ditto.
14042 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14043 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14044 * sh-tdep.c (sh_gdbarch_init): Ditto.
14045 * s390-tdep.c (s390_gdbarch_init): Ditto.
14046 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14047 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14048 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14049 * mips-tdep.c (mips_gdbarch_init): Ditto.
14050 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14051 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14053 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14054 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14055 * i386-tdep.c (i386_gdbarch_init): Ditto.
14056 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14057 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14058 * frv-tdep.c (frv_gdbarch_init): Ditto.
14059 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14060 * cris-tdep.c (cris_gdbarch_init): Ditto.
14061 * avr-tdep.c (avr_gdbarch_init): Ditto.
14062 * arm-tdep.c (arm_gdbarch_init): Ditto.
14063 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14064
ea1dd7bc
DJ
140652004-01-13 Daniel Jacobowitz <drow@mvista.com>
14066
14067 * infrun.c (follow_fork_mode_ask): Remove.
14068 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14069 (follow_fork): Simplify and remove internal error for
14070 follow_fork_mode_ask.
14071 (_initialize_infrun): Update "set follow-fork-mode" help text.
14072
0f0cffd2
AC
140732004-01-13 Andrew Cagney <cagney@redhat.com>
14074
14075 * configure.in: Update copyright year.
14076 (build_warnings): Add -Wunused-label.
14077 * configure: Re-generate.
14078
de38af99
AC
140792004-01-12 Andrew Cagney <cagney@redhat.com>
14080
954a7fba
AC
14081 * exec.h (exec_ops): Make "extern".
14082
de38af99
AC
14083 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14084 the function is void.
14085 (mips_pseudo_register_write): Ditto.
14086
1a111ce3
AC
140872004-01-12 Andrew Cagney <cagney@redhat.com>
14088
14089 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14090 call. Never defined.
14091 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14092 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14093 (struct sparc_gregset, struct regcache): Ditto.
14094 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14095
48efe704
AC
140962004-01-12 Andrew Cagney <cagney@redhat.com>
14097
14098 * mi/ChangeLog: Delete file. Renamed to ...
14099 * mi/ChangeLog-1999-2003: New file.
14100 * tui/ChangeLog: Delete file. Renamed to ...
14101 * tui/ChangeLog-1998-2003: New file.
fe61caab 14102
a54124c5
MK
141032004-01-11 Mark Kettenis <kettenis@gnu.org>
14104
2ca62865
MK
14105 * sparc64nbsd-tdep.c: Include "regset.h".
14106 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14107 Remove variables.
14108 (fetch_core_registers): Remove function.
14109 (sparc64nbsd_core_fns): Remove variable.
14110 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14111 functions.
14112 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14113 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14114 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14115
ca9d58e9
MK
14116 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14117 sparc_extract_struct_value_address.
14118 (sparc32_gdbarch_init): Set extract_struct_value_address.
14119 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14120 function.
14121 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14122 return_value_on_stack.
14123
3cc87ec0
MK
14124 * NEWS: Mention that %cs and %ss have been added to the AMD64
14125 configurations
14126
5bf00f29
MK
14127 * frame.c: Update copyright year.
14128 (get_prev_frame): Improve comment.
14129
4f7ec84e
MK
14130 * sparc64fbsd-tdep.c: Include "regset.h".
14131 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14132 Remove variables.
14133 (fetch_core_registers): Remove function.
14134 (sparc64fbsd_core_fns): Remove variable.
14135 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14136 functions.
14137 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14138 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 14139 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 14140
4e7b0cd3
MK
14141 * sparcnbsd-tdep.c: Include "regset.h".
14142 (fetch_core_registers): Remove function.
14143 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14144 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14145 functions.
14146 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14147 TDEP->fpregset.
46b58ce9 14148 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 14149
a54124c5
MK
14150 * sparc-tdep.h (struct regset): Provide opaque declaration.
14151 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14152 fpregset and sizeof_fpregset members.
14153 * sparc-tdep.c (struct regset): Provide opaque declaration.
14154 (sparc_regset_from_core_section): New function.
14155 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14156 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14157 Set regset_from_core_section when appropriate.
14158
29ff87c5
MK
141592004-01-10 Mark Kettenis <kettenis@gnu.org>
14160
79b1ab3d
MK
14161 * x86-64-tdep.c (amd64_non_pod_p): New function.
14162 (amd64_classify_aggregate): Return class memory for non-POD
14163 C++ structure types.
14164
6470d250
MK
14165 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14166 argument. Use it to reserve a register if necessary.
14167 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14168 amd64_push_arguments.
14169
562c50c2
MK
14170 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14171
af233647
MK
14172 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14173 register numbers in comments.
14174 * x86-64-tdep.h: Update copyright year.
14175 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14176 Adjust for addition of %cs and %ss.
14177 * amd64fbsd-nat.c: Update copyright year.
14178 (reg_offset): Add register offsets for %cs and %ss.
14179 * amd64fbsd-tdep.c: Update copyright year.
14180 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14181 (amd64fbsd_sc_reg_offset): Likewise.
14182 * x86-64-linux-nat.c: Update copyright year.
14183 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14184 and %ss.
14185 * amd64nbsd-nat.c: Update copyright year.
14186 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14187 * amd64nbsd-tdep.c: Update copyright year.
14188 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14189 * x86-64-linux-tdep.c: Update copyright year.
14190 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14191 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14192 * regformats/reg-x86-64.dat: Add %cs and %ss.
14193
29ff87c5
MK
14194 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14195 variables to prevent long lines. Update comments to reflect
14196 reality.
14197
38d518c9
EZ
141982004-01-09 David Carlton <carlton@kealia.com>
14199
14200 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14201 * dwarf2read.c (read_namespace): Pull out name-generating code
14202 into namespace_name. Rename previous_namespace to previous_prefix
14203 and processing_current_namespace to processing_current_prefix..
14204 (namespace_name): New function.
14205 (add_partial_symbol): Substitute uses of pdi->name with
14206 actual_name.
14207 * cp-support.h: Rename processing_current_namespace to
14208 processing_current_prefix.
14209 Update copyright year.
14210 * cp-namespace.c: Rename processing_current_namespace to
14211 processing_current_prefix.
14212 Update copyright year.
fe61caab 14213
1e4728e7
AC
142142004-01-09 Andrew Cagney <cagney@redhat.com>
14215
14216 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14217
c77c642a
MK
142182004-01-09 Mark Kettenis <kettenis@gnu.org>
14219
14220 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14221 complaining.
14222 (process_one_symbol): Deal with N_PATCH stabs.
14223
b44e9041
EZ
142242004-01-09 Elena Zannoni <ezannoni@redhat.com>
14225
14226 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14227 ifdeffed code.
14228 Update copyright year.
38d518c9 14229
eccfb640
MC
142302004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14231
14232 * config/pa/tm-hppa.h: Update extern declarations for
14233 hppa32_hpux_frame_saved_pc_in_sigtramp,
14234 hppa32_hpux_frame_base_before_sigtramp, and
14235 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14236
848c5feb
MC
142372004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14238
14239 * config/pa/tm-hppah.h: Update copyright years.
14240
3cc5d663
AC
142412004-01-08 Andrew Cagney <cagney@redhat.com>
14242
14243 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14244 (mips_o32_reg_struct_has_addr): Delete function.
14245 (mips_gdbarch_init): Update.
14246 (mips_extract_struct_value_address): Delete function.
14247
bfec0b41
JJ
142482004-01-08 David Mosberger <davidm@hpl.hp.com>
14249
14250 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14251 reality.
14252
16e109ca
AC
142532004-01-07 Andrew Cagney <cagney@redhat.com>
14254
6214a8a1
AC
14255 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14256 architecture's elf flags (when available).
14257
8d5838b5
AC
14258 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14259 FPU to the start, check the MIPS FPU when looking for an old
14260 architecture.
14261 (set_mipsfpu_single_command): Update the architecture.
14262 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14263
480d3dd2
AC
14264 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14265 (mips_mask_address_p): Add "tdep" parameter.
14266 (show_mask_address, mips_addr_bits_remove): Update.
14267 (mips_dump_tdep): Update.
14268 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14269 (MIPS_STACK_ARGSIZE): Delete macro.
14270 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14271 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14272 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14273 (mips_dump_tdep): Update.
14274 (MIPS_SAVED_REGSIZE): Delete macro.
14275 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14276 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14277 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14278 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14279 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14280 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14281 (mips_pop_frame, return_value_location): Update.
14282 (mips_n32n64_return_value, mips_dump_tdep): Update.
14283
ec03c1ac
AC
14284 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14285 MIPS ABI.
14286
16e109ca
AC
14287 * mips-tdep.c: Update copyright.
14288 (mips_gdbarch_init): Merge two code blocks handling the register
14289 name and number layout.
14290
15255275
MS
142912004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14292
14293 * tracepoint.c (validate_actionline): Fix segv at EOF
14294
9f9057da
MC
142952004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14296
14297 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14298 properly for static fields.
14299
0127c0d3 143002004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 14301 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
14302
14303 * disasm.c: Update copyright to include 2004.
14304 (do_mixed_source_and_assembly): For uiout asm list
14305 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 14306 NULL and do so prior to loop. Only reset when we close off
0127c0d3 14307 the tuple/list. Move check for whether to close off the
fe61caab 14308 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
14309 on each loop iteration.
14310
5269965e
AC
143112004-01-05 Andrew Cagney <cagney@redhat.com>
14312
54f1137d
AC
14313 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14314 should be a switch case and not a label.
14315 * mips-tdep.c (mips32_next_pc): Delete unused labels
14316 "greater_equal_branch" and "less_zero_branch".
14317 * jv-valprint.c (java_print_value_fields): Delete unused label
14318 "flush_it".
14319
5269965e
AC
14320 * target.c (unpush_target): Only close a target that is in the
14321 target stack.
14322
dbc22fa1
MK
143232004-01-05 Mark Kettenis <kettenis@gnu.org>
14324
9515395e
MK
14325 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14326 address from [sp + 64] instead of %o2.
14327
dbc22fa1
MK
14328 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14329 fixes PR backtrace/1476.
14330
5439edaa
AC
143312004-01-05 Andrew Cagney <cagney@redhat.com>
14332
14333 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14334 move to start of file.
14335 * i386-tdep.h (struct regcache): Add opaque declaration.
14336 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14337 declaration.
14338 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14339 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14340 * win32-nat.c (fake_create_process): Use ISO C style definition.
14341 * stabsread.c (define_symbol): Delete #ifndef
14342 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14343 stabs_argument_has_addr call, macro never defined.
14344
19061abe
MC
143452004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14346
14347 * op50-rom.c: Delete.
14348 * w89k-rom.c: Delete.
14349 * Makefile.in: Remove references.
14350
e53bef9f
MK
143512004-01-04 Mark Kettenis <kettenis@gnu.org>
14352
14353 * x86-64-tdep.c: Update copyright year.
14354 (struct amd64_register_info): Rename from x86_64_register_info.
14355 (amd64_register_info): Rename from x86_64_register_info.
14356 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14357 (amd64_register_name): Rename from x86_64_register_name.
14358 (amd64_register_type): Rename from x86_64_register_type.
14359 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14360 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14361 (amd64_dwarf_reg_to_regnum): Rename from
14362 x86_64_dwarf_reg_to_regnum.
14363 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14364 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14365 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14366 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14367 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14368 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14369 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14370 (amd64_frame_cache): Rename from x86_64_frame_cache.
14371 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14372 (amd64_frame_prev_register): Rename from
14373 x86_64_frame_prev_register.
14374 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14375 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14376 (amd64_sigtramp_frame_cache): Rename from
14377 x86_64_sigtramp_frame_cache.
14378 (amd64_sigtramp_frame_prev_register): Rename from
14379 x86_64_sigtramp_frame_prev_register.
14380 (amd64_sigtramp_frame_unwind): Rename from
14381 x86_64_sigtramp_frame_unwind.
14382 (amd64_sigtramp_frame_sniffer): Rename from
14383 x86_64_sigtramp_frame_sniffer.
14384 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14385 (amd64_frame_base): Rename from x86_64_frame_base.
14386 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14387 (amd64_frame_align): Rename from x86_64_frame_align.
14388 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14389 (amd64_regset_from_core_section): Rename from
14390 x86_64_regset_from_core_section.
14391 (x86_64_init_abi): Update comments.
14392
fca6aa58
NR
143932004-01-04 Nick Roberts <nick@nick.uklinux.net>
14394
14395 * MAINTAINERS (write after approval): Add myself.
14396
8ada74e3
MK
143972004-01-04 Mark Kettenis <kettenis@gnu.org>
14398
14399 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14400 `float' arguments.
14401
5154b0cd
MK
144022004-01-04 Mark Kettenis <kettenis@gnu.org>
14403
14404 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14405 such that it mentions a specific version of GCC that exhibits this
14406 bug.
14407
fb316966
MK
144082004-01-03 Mark Kettenis <kettenis@gnu.org>
14409
200cc553
MK
14410 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14411 structure that has a single `float' member, store it in %f1 in
14412 addition to %f0.
14413
e226a4a0
MK
14414 * sparc-sol2-nat.c: Add missing '\'.
14415
b9d4c5ed
MK
14416 * sparc-tdep.c (sparc32_return_value): New function.
14417 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14418 Remove functions.
14419 (sparc32_gdbarch_init): Set return_value, don't set
14420 extract_return_value, store_return_value, use_struct_convention
14421 and return_value_on_stack.
14422
fb316966
MK
14423 * sparc-sol2-nat.c: Add missing ')'.
14424
1af510a8
JB
144252004-01-03 J. Brobecker <brobecker@gnat.com>
14426
14427 * infrun.c (handle_step_into_function): New function.
14428 (handle_inferior_event): Extract out some code into the new
14429 function above.
14430
5cf4d23a
JB
144312004-01-03 J. Brobecker <brobecker@gnat.com>
14432
14433 * infrun.c (handle_inferior_event): Move the declaration of
14434 real_stop_pc inside the if blocks where it is used.
14435
60af1db2
MK
144362004-01-03 Mark Kettenis <kettenis@gnu.org>
14437
14438 * sparc64-tdep.c (sparc64_16_byte_align_p)
14439 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14440 Use check_typedef to get subtypes of structures and unions.
14441 (sparc64_store_return_value): Fix calculation of the appropriate
14442 offset into VALBUF when storing a structure or union.
14443 (sparc64_return_value): New function.
14444 (sparc64_use_struct_convention): Remove function.
14445 (sparc64_init_abi): Set return_value, don't set
14446 extract_return_value, store_return_value and
14447 use_struct_convention.
14448
1a901d3f
EZ
144492004-01-03 Eli Zaretskii <eliz@elta.co.il>
14450
14451 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14452 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14453 gdb/config/alpha/xm-alphaosf.h,
14454 gdb/config/powerpc/tm-ppcle-eabi.h,
14455 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14456 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14457 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14458 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14459 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14460 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14461 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14462 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14463 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14464 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14465 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14466 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14467 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14468 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14469 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14470 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14471 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14472 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14473 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14474 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14475 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14476 Remove lines for .cvsignore files.
14477
ef52e463
JB
144782004-01-03 J. Brobecker <brobecker@gnat.com>
14479
14480 * infrun.c: Back out the previous change.
14481
cb1bf9dc
MK
144822004-01-03 Mark Kettenis <kettenis@gnu.org>
14483
f0424ef6
MK
14484 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14485 sparc-*-sunos4* to the list of REMOVED configurations.
14486
cb1bf9dc
MK
14487 * configure.tgt: Add back sparc-*-vxworks*.
14488 * remote-vxsparc.c: Remove all includes except for "defs.h",
14489 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14490 Include "sparc-tdep.h".
14491 (SPARC_R_G1): New define.
14492 (vxsparc_gregset): New variable.
14493 (ext_format_sparc): Remove extern declaration.
14494 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14495 sparc32_supply_fpregset.
14496 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14497 sparc_collect_rwindow and sparc32_collect_fpregset.
14498 * config/sparc/tm-vxworks.h: New file, based on recently removed
14499 tm-vxsparc.h.
14500 * config/sparc/vxworks.mt: New file, based on recently removed
14501 vxworks.mt.
fe61caab 14502
5e938f9f
JB
145032004-01-03 J. Brobecker <brobecker@gnat.com>
14504
14505 * infrun.c (handle_step_into_function): New function.
14506 (handle_inferior_event): Extract out some code into the new
14507 function above.
14508
386c036b
MK
145092004-01-02 Mark Kettenis <kettenis@gnu.org>
14510
14511 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14512 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14513 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14514 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14515 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14516 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14517 (sparc_nat_h): New variable.
14518 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14519 (tm-sun4os4.h): Remove dependency.
14520 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14521 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14522 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14523 sparc-tdep.o): Update dependencies.
14524 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14525 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14526 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14527 dependencies.
14528 * configure.host: Remove existing sparc-*-lynxos*,
14529 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14530 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14531 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14532 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14533 triplets.
14534 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14535 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14536 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14537 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14538 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14539 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14540 sparc64-*-solaris2* and sparc64-*-* triplets.
14541 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14542 "symtab.h" and "objfiles.h".
14543 (BIAS): Remove define.
14544 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14545 (X_DISP19): Remove macros.
14546 (sparc_fetch_instruction): Remove function.
14547 (struct gdbarch_tdep): Remove definition.
14548 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14549 (sparc_breakpoint_from_pc): Remove function.
14550 (struct sparc64_frame_cache): Remove definition.
14551 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14552 sparc64_unwind_pc): Remove functions.
14553 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14554 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14555 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14556 (sparc64_frame_cache): Change return type to `struct
14557 sparc_frame_cache *'. Simply call sparc_frame_cache.
14558 (sparc64_frame_this_id, sparc64_frame_prev_register,
14559 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14560 instead of `struct sparc64_frame_cache.
14561 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14562 sparc_analyze_control_transfer, sparc_software_single_step,
14563 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14564 _initialize_sparc64_tdep): Remove functions.
14565 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14566 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14567 macros.
14568 (sparc64_supply_gregset, sparc64_collect_gregset,
14569 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14570 (sparc64_init_abi): New function.
14571 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14572 inclusion guard. Include "sparc-tdep.h".
14573 (BIAS): Define.
14574 (r_tstate_offset, r_fprs_offset): New defines.
14575 (enum sparc_regnum): Remove defenition.
14576 (enum sparc64_regnum): Reformat.
14577 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14578 (sparc64_init_abi, sparc64_supply_gregset,
14579 sparc64_collect_gregset, sparc64_supply_fpregset,
14580 sparc64_collect_fpregset): New prototypes.
14581 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14582 Add extern declarations.
14583 (sparc64_sol2_init_abi): New prototype.
14584 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14585 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14586 prototypes.
14587 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14588 "sparnbsd-nat.h".
14589 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14590 functions.
14591 (_initialize_sparc64fbsd_nat): Remove initialization of
14592 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14593 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 14594 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
14595 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14596 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14597 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14598 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14599 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14600 (sparc64fbsd_r_y_offset): Remove variables.
14601 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14602 Make static and const.
14603 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14604 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14605 functions.
14606 (sparc64fbsd_gregset): New variable.
14607 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14608 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14609 and sparc64_supply_fpregset.
14610 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14611 (sparc64fbsd_sigtramp_frame_this_id)
14612 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14613 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14614 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14615 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14616 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14617 * sparcnbsd-tdep.c: Update copyright year. Include
14618 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14619 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14620 "value.h" and "sparcnbsd-tdep.h".
14621 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14622 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14623 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14624 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14625 defines.
14626 (sparcnbsd_gregset): New variable.
14627 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14628 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14629 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14630 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14631 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14632 variables.
14633 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14634 (sparc32nbsd_sigcontext_frame_this_id)
14635 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14636 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14637 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14638 (sparcnbsd_get_longjmp_target_32,
14639 sparcnbsd_get_longjmp_target_64): Remove functions.
14640 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14641 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14642 sparcnbsd_init_elf): Remove.
14643 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14644 (sparcnbsd_elf_init_abi): New functions.
14645 (_initialize_sparcnbsd_tdep): New prototype.
14646 (_initialize_sparnbsd_tdep): Update.
14647 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14648 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14649 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14650 * config/sparc/linux.mh: Update comment.
14651 (XM_FILE, HOST_IPC): Remove variables.
14652 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14653 sparc-linux-nat.o.
14654 * config/sparc/linux.mt: Update comment.
14655 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14656 * config/sparc/nbsd.mt: Reformat.
14657 * config/sparc/nbsd64.mh: Update comment.
14658 (NATDEPFILES): Add sparc-nat.o.
14659 * config/sparc/nbsd64.mt: Update comment.
14660 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14661 (TM_FILE): Set to tm-nbsd.h.
14662 * config/sparc/nbsdelf.mh: Update comment.
14663 (NATDEPFILES): Add sparc-nat.o.
14664 (XM_FILE): Delete.
14665 * config/sparc/nbsdaout.mh: Update comment.
14666 (NATDEPFILES): Add sparc-nat.o
14667 (XM_FILE): Delete.
14668 * config/sparc/nm-linux.h: Update copyright year. Don't include
14669 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14670 inclusion.
14671 (KERNEL_U_SIZE): Remove define.
14672 (kernel_u_size): Remove prototype.
14673 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14674 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14675 "regcache.h".
14676 (CHILD_PREPARE_TO_STORE): Remove define.
14677 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14678 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14679 sparcnbsd-nat.c: Rewrite files.
14680 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14681 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14682 sparcnbsd-tdep.h: Remove files.
14683 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14684 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14685 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14686 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14687 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14688 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14689 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14690 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14691 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14692 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14693 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14694 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14695 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14696 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14697 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14698 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14699 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14700 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14701 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14702
ee84457a
AC
147032004-01-02 Andrew Cagney <cagney@redhat.com>
14704
14705 From 2003-12-18 Kazuhiro Inaoka:
14706 * configure.host: Add m32r-linux target.
14707
0bc2134e
MC
147082004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14709
14710 * top.c (print_gdb_version): Update year to 2004.
14711
89a72f9c
MM
147122004-01-02 Mark Mitchell <mark@codesourcery.com>
14713
14714 * MAINTAINERS: Add myself to the write-after-approval category.
14715
86b013ed
DJ
147162004-01-02 Daniel Jacobowitz <drow@mvista.com>
14717
14718 From Bernardo Innocenti <bernie@develer.com>:
14719 * configure.tgt: Add uClinux target.
14720
e42c9534
AC
147212004-01-02 Andrew Cagney <cagney@redhat.com>
14722
14723 * utils.c (do_my_cleanups): Make static, add forward declaration.
14724 * defs.h (do_my_cleanups): Delete declaration.
14725
162467d3
EZ
147262004-01-02 Eli Zaretskii <eliz@elta.co.il>
14727
14728 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14729 bfd/ChangeLog-0203.
14730
78434e59
MK
147312004-01-02 Mark Kettenis <kettenis@gnu.org>
14732
14733 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14734 in <machine/reg.h>.
14735 * configure, config.in: Regenerate.
14736
48efe704
AC
14737For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14738tui/ChangeLog-1998-2003.
c906108c
SS
14739\f
14740Local Variables:
14741mode: change-log
14742left-margin: 8
14743fill-column: 74
14744version-control: never
14745End:
This page took 1.470446 seconds and 4 git commands to generate.