2004-12-07 Randolph Chung <tausq@debian.org>
[binutils-gdb.git] / gdb / ChangeLog
1 2004-12-07 Randolph Chung <tausq@debian.org>
2
3 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
4 register for both 32- and 64-bit targets.
5
6 2004-12-07 Randolph Chung <tausq@debian.org>
7
8 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
9 are unwinding through a dummy frame.
10
11 2004-12-07 Randolph Chung <tausq@debian.org>
12
13 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
14 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
15 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
16 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
17 if defined.
18
19 2004-12-07 Randolph Chung <tausq@debian.org>
20
21 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
22 unwinding from a frame with pc == 0.
23 (hppa_stub_frame_this_id): Likewise.
24 (hppa_stub_frame_prev_register): Only provide real values if the frame
25 cache is not NULL.
26
27 2004-12-07 Randolph Chung <tausq@debian.org>
28
29 * solib-som.c: New file.
30 * solib-som.h: New file.
31 * solib-pa64.c: New file.
32 * solib-pa64.h: New file.
33
34 2004-12-07 Mark Kettenis <kettenis@gnu.org>
35
36 * Makefile.in (inf-ttrace.o): Fix typo.
37
38 2004-12-07 Jim Blandy <jimb@redhat.com>
39
40 * remote.c (remote_threads_info, remote_current_thread): Use
41 strtoul to parse thread ID numbers.
42
43 2004-12-07 Mark Kettenis <kettenis@gnu.org>
44
45 * inf-ttrace.c: Include "gdbthread.h".
46 (inf_ttrace_num_lwps): New variable.
47 (inf_ttrace_num_lwps_in_syscall): Renamed from
48 inf_ttrace_num_threads_in_syscall.
49 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
50 TTEVT_LWP_TERMINATE events.
51 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
52 zero.
53 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
54 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
55 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
56 events.
57 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
58 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
59 TTEVT_LWP_TERMINATE events.
60 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
61 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
62 * Makefile.in (inf-ttrace.o): Update dependencies.
63
64 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
65 prototypes.
66 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
67 Make global. Remove HP-UX specific code. Use
68 frame_unwind_register_unsigned instead of
69 frame_unwind_register_signed.
70 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
71 Remove HP-UX specific code.
72 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
73 (hppa_frame_prev_register_helper): Set "flags" register to zero
74 for all unwound frames.
75 (hppa_gdbarch_init): Adjust.
76 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
77 (hppa_hpux_read_pc, hppa_hpux_write_pc)
78 (hppa_hpux_unwind_pc): New functions.
79 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
80
81 2004-12-07 Andreas Schwab <schwab@suse.de>
82
83 * main.c (long_options): Add entry for "-l".
84 (print_gdb_help): Add line for -l option.
85 * NEWS: Mention it.
86
87 2004-12-05 Randolph Chung <tausq@debian.org>
88
89 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
90 DEPRECATED_REGISTER_BYTE.
91
92 2004-12-05 Randolph Chung <tausq@debian.org>
93
94 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
95 records.
96
97 2004-12-05 Mark Kettenis <kettenis@gnu.org>
98
99 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
100 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
101
102 * hppa-hpux-tdep.c: Update copyright notice and year.
103
104 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
105
106 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
107 (get_field, put_field): Assert that the format is one we can handle.
108 Simplify logic accordingly.
109 (floatformat_normalize_byteorder): New function.
110 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
111 to normalize and select modified byte order. Pass modified byte order
112 to get_field.
113 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
114 Likewise.
115 (convert_doublest_to_floatformat): Select an appropriate intermediate
116 byte order if necessary. Always convert to the final format before
117 returning.
118
119 2004-12-04 Daniel Jacobowitz <dan@debian.org>
120
121 PR tui/1703
122 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
123 Suggested by Joshua Neuheisel.
124
125 2004-12-03 Randolph Chung <tausq@debian.org>
126
127 * gdbarch.sh (instruction_nullified): Delete.
128 * gdbarch.c: Regenerate.
129 * gdbarch.h: Regenerate.
130 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
131 nullified.
132 (hppa_unwind_pc): Likewise.
133 (hppa_instruction_nullified): Delete.
134 (hppa_gdbarch_init): Don't set instruction_nullified method.
135 * infrun.c (infwait_states): Remove infwait_nullified_state.
136 (handle_inferior_event): Remove handling of infwait_nullified_state.
137 Remove handling of nullified instructions.
138
139 2004-12-03 Mark Kettenis <kettenis@gnu.org>
140
141 * inf-ttrace.c: Include <sys/mman.h>.
142 (struct inf_ttrace_page): New.
143 (struct inf_ttrace_page_dict): New.
144 (inf_ttrace_num_threads_in_syscall)
145 (inf_ttrace_reenable_page_protections): New variables.
146 (inf_ttrace_enable_syscall_events)
147 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
148 (inf_ttrace_add_page, inf_ttrace_insert_page)
149 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
150 (inf_ttrace_enable_page_protections)
151 (inf_ttrace_disable_page_protections)
152 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
153 (inf_ttrace_can_use_hw_breakpoint)
154 (inf_ttrace_region_size_ok_for_hw_watchpoint)
155 (inf_ttrace_stopped_by_watchpoint): New functions.
156 (inf_ttrace_him): Remove unsused varaible `tts'.
157 (inf_ttrace_create_inferior): Add assertionts.
158 (inf_ttrace_mourn_inferior): Clear page dictionary.
159 (inf_ttrace_attach): Set initial event mask.
160 (inf_ttrace_detach): Reset number of threads in system call.
161 (inf_ttrace_wait): Deal with system call events.
162 (inf_ttrace_target): Initialize "hardware" watchpoint-related
163 parts of the target vector.
164 (_initialize_inf_ttrace): New prototype and function.
165
166 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
167 type of `gp' variable.
168
169 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
170
171 * README: Remove config.if from directory listing.
172
173 2004-12-01 Joel Brobecker <brobecker@gnat.com>
174
175 * alpha-tdep.c (alpha_register_name): Add comment.
176 (alpha_cannot_fetch_register): Exclude registers numbers which
177 are no longer used from the list of registers that can be fetched.
178 (alpha_cannot_store_register): Exclude registers numbers which
179 are no longer used from the list of registers that can be stored.
180 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
181 core_reg_mapping array.
182
183 2004-12-01 Joel Brobecker <brobecker@gnat.com>
184
185 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
186 the register value from the correct frame.
187
188 2004-11-30 Randolph Chung <tausq@debian.org>
189
190 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
191 (hppa_linux_in_dyncall): Check that we are inside the range of
192 $$dyncall, not necessarily at the first insn.
193 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
194 even if the pc does not point to the first insn of the trampoline.
195
196 2004-11-30 Randolph Chung <tausq@debian.org>
197
198 * breakpoint.c (break_at_finish_command): Delete.
199 (break_at_finish_command_1): Delete.
200 (break_at_finish_at_depth_command): Delete.
201 (break_at_finish_at_depth_command_1): Delete.
202 (tbreak_at_finish_command): Delete.
203 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
204 and bx commands.
205
206 2004-11-30 Andrew Cagney <cagney@gnu.org>
207
208 * config/nm-gnu.h: Delete file.
209 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
210
211 * config/nm-sysv4.h: Delete file.
212 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
213 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
214 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
215 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
216 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
217
218 2004-11-29 Andrew Cagney <cagney@gnu.org>
219
220 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
221 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
222 as can-commit architecture developers.
223
224 2004-11-29 Mark Kettenis <kettenis@gnu.org>
225
226 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
227 (sparc32_skip_prologue): Skip instructions that store arguments in
228 registers into their corresponding stack slots.
229
230 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
231 tm-solib.h.
232 * config/m68k/obsd.mh (NAT_FILE): Likewise.
233
234 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
235 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
236 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
237 sparc32nbsd_elf_init_abi. Remove duplicate code.
238
239 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
240 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
241 * config/sparc/nm-nbsd.h: Remove file.
242 * config/sparc/nm-nbsdaout.h: Remove file.
243
244 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
245 (sparc_xfer_partial): New function.
246 (sparc_target): Save value of to_xfer_partial from ptrace vector.
247 Set to_xfer_partial.
248
249 * fork-child.c (fork_inferior): Fork instead of vfork if
250 PRE_TRACE_FUN is non-null.
251
252 2004-11-24 Fred Fish <fnf@specifixinc.com>
253
254 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
255 compiler generated function calls made as part of a prologue.
256
257 2004-11-23 Mark Kettenis <kettenis@gnu.org>
258
259 * inf-ttrace.c: New file.
260 * inf-ttrace.h: New file.
261 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
262 Include "inf-ttrace.h".
263 (ss_mpsfu_high): Define to ss_tlsp if necessary.
264 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
265 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
266 ptrace systems.
267 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
268 instead of inf_ptrace_target.
269 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
270 * Makefile.in (inf_ttrace_h): New variable.
271 (hppa-hpux-nat.o): Update dependency.
272 (inf-ttrace.o): New dependency.
273 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
274
275 2004-11-23 Randolph Chung <tausq@debian.org>
276
277 * arch-utils.c (generic_instruction_nullified): New.
278 * arch-utils.h (generic_instruction_nullified): New.
279 * gdbarch.sh (instruction_nullified): New method.
280 * gdbarch.c: Regenerate.
281 * gdbarch.h: Regenerate.
282 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
283 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
284 new gdbarch method.
285 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
286 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
287 static. Rewrite to work directly off the passed regcache.
288 (hppa_gdbarch_init): Set instruction_nullified method.
289
290 2004-11-23 Joel Brobecker <brobecker@gnat.com>
291
292 * sparc-tdep.c (sparc_is_unimp_insn): New function.
293 (sparc32_frame_cache): For functions where there is no debugging
294 information to help us determine whether it's a struct-return
295 function or not, fallback on checking whether the instruction
296 at the return address is an "unimp" instruction or not.
297
298 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
299
300 * MAINTAINERS: Add myself to write after approval section.
301
302 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
303 hpux-thread.c to suppress children from running.
304 (hppa_hpux_child_can_run): New function.
305 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
306 * hpux-thread.c: Include string.h and hppa-tdep.h.
307 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
308 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
309 (hpux_thread_store_registers): Replace deprecated_registers with
310 calls to regcache_raw_read.
311 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
312
313 2004-11-21 Mark Kettenis <kettenis@gnu.org>
314
315 * sparc64fbsd-nat.c: Update copyright year.
316 (_initialize_sparc64fbsd_nat): Construct and add target vector.
317 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
318 inftarg.o.
319
320 2004-11-21 Daniel Jacobowitz <dan@debian.org>
321
322 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
323
324 2004-11-21 Daniel Jacobowitz <dan@debian.org>
325
326 * linux-nat.c (my_waitpid): New function.
327 (linux_test_for_tracefork): Make more robust and verbose. Take
328 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
329 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
330 argument. Update calls to linux_test_for_tracefork.
331 (linux_enable_event_reporting, child_follow_fork)
332 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
333 (child_insert_exec_catchpoint): Update calls to
334 linux_supports_tracefork and linux_supports_tracevforkdone.
335
336 2004-11-21 Daniel Jacobowitz <dan@debian.org>
337
338 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
339 (value_subscripted_rvalue): Likewise.
340 * valops.c (search_struct_field, value_slice): Likewise.
341
342 2004-11-21 Mark Kettenis <kettenis@gnu.org>
343
344 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
345 Reorder includes a bit. Fix comment.
346 * Makefile.in (inf-ptrace.o): Update dependencies.
347
348 2004-11-21 Andreas Schwab <schwab@suse.de>
349
350 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
351 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
352 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
353 to glibc_skip_solib_resolver.
354 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
355 solib-legacy.o.
356 * Makefile.in (m68klinux-tdep.o): Update dependencies.
357
358 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
359
360 * infttrace.h (ttrace_write_reg_64): Add prototype.
361 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
362 expression.
363 (store_inferior_registers): Correct formatting. Replace uses of
364 deprecated_registers with calls to regcache_raw_read,
365 regcache_raw_write_part and regcache_raw_read_part.
366
367 2004-11-21 Mark Kettenis <kettenis@gnu.org>
368
369 * config/pa/hppahpux.mh: Remove file.
370 * config/pa/hpux1020.mh: Remove file.
371
372 2004-11-20 Andreas Schwab <schwab@suse.de>
373
374 * configure.host: Set host floatformat for m68k.
375
376 2004-11-20 Eli Zaretskii <eliz@gnu.org>
377
378 * config/djgpp/fnchange.lst: Resolve file-name clash between
379 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
380
381 2004-11-20 Mark Kettenis <kettenis@gnu.org>
382
383 * hppa-hpux-nat.c: New file.
384 * config/pa/hpux.mh (NATDEPFILES): New file.
385 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
386 (hppa-hpux-nat.o): New dependency.
387 * configure.host: Remove hppa*-*-hpux10.20.
388 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
389
390 * inf-ptrace.c: Fix coding style.
391
392 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
393 * infptrace.c (call_ptrace): Simply call ptrace with four
394 arguments.
395
396 * dbxread.c (process_one_symbol): Fix a few coding standard
397 issues. Improve code formatting.
398
399 * dbxread.c: Include "gdb_string.h".
400 (record_minimal_symbol, read_ofile_symtab): Replace
401 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
402 * Makefile.in (dbxread.o): Update dependencies.
403
404 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
405 of bytes read for aligned LEB128 encodings.
406
407 2004-11-19 Mark Kettenis <kettenis@gnu.org>
408
409 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
410 parse_and_eval_address to u_long before converting it to a pointer
411 type.
412 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
413 ps_strings from int to u_long.
414 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
415 u_long instead of CORE_ADDR.
416
417 2004-11-18 Mark Kettenis <kettenis@gnu.org>
418
419 * dbxread.c (process_one_symbol): Do not adjust address of first
420 N_SLINE stab for a function for code generated by non-GCC
421 compilers.
422
423 2004-11-18 Kevin Buettner <kevinb@redhat.com>
424
425 * solib-null.c: New file.
426
427 2004-11-17 Andrew Cagney <cagney@gnu.org>
428
429 * MAINTAINERS: Drop MIPS and remote.
430
431 2004-11-15 Andrew Cagney <cagney@gnu.org>
432
433 * findvar.c (value_of_register): Set the frame ID.
434 * value.c (value_primitive_field): Copy the frame ID.
435 * valops.c (value_assign): Simplify lval_register case, there's
436 always a frame.
437
438 2004-11-14 Daniel Jacobowitz <dan@debian.org>
439
440 * Makefile.in (mips-linux-tdep.o): Update dependencies.
441 * mips-linux-tdep.c: Include "regcache.h".
442 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
443
444 2004-11-14 Daniel Jacobowitz <dan@debian.org>
445
446 * Makefile.in (linux-thread-db.o): Fix typo in last change.
447
448 2004-11-14 Daniel Jacobowitz <dan@debian.org>
449
450 * linux-thread-db.c: New file, renamed from thread-db.c.
451 * thread-db.c: Remove.
452 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
453 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
454 to linux-thread-db.o.
455 * config/arm/linux.mh (NATDEPFILES): Likewise.
456 * config/i386/linux.mh (NATDEPFILES): Likewise.
457 * config/i386/linux64.mh (NATDEPFILES): Likewise.
458 * config/ia64/linux.mh (NATDEPFILES): Likewise.
459 * config/m32r/linux.mh (NATDEPFILES): Likewise.
460 * config/m68k/linux.mh (NATDEPFILES): Likewise.
461 * config/mips/linux.mh (NATDEPFILES): Likewise.
462 * config/pa/linux.mh (NATDEPFILES): Likewise.
463 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
464 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
465 * config/s390/s390.mh (NATDEPFILES): Likewise.
466 * config/sparc/linux.mh (NATDEPFILES): Likewise.
467 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
468
469 2004-11-13 Andrew Cagney <cagney@gnu.org>
470
471 * config/i386/i386lynx.mh: Delete file.
472 * config/i386/i386lynx.mt: Delete file.
473 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
474 * i386ly-tdep.c: Delete.
475
476 * config/tm-lynx.h: Delete, inline contents ...
477 * config/rs6000/tm-rs6000ly.h: ... here.
478
479 * config/tm-sysv4.h: Delete file, inlining contents.
480 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
481 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
482 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
483
484 * regcache.h (deprecated_register_valid): Delete.
485 (deprecated_registers): Delete.
486 * regcache.c (deprecated_register_valid): Delete.
487 (deprecated_registers): Delete.
488 (deprecated_read_register_byte, _initialize_regcache)
489 (deprecated_write_register_bytes, build_regcache): Update.
490 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
491 remote-sds.o.
492 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
493 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
494
495 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
496 v850-*-* under removed.
497 * configure.host: Delete ns32k-*-netbsd*.
498 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
499 ns32k-*-netbsd*, and v850*-*-*.
500 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
501 "Deleted"
502 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
503 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
504 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
505 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
506 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
507 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
508 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
509 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
510 * v850-tdep.c: Delete.
511
512 2004-11-13 Joel Brobecker <brobecker@gnat.com>
513
514 * irix5-nat.c (fetch_core_registers): Replace use of
515 deprecated_registers by equivalent code.
516
517 2004-11-13 Joel Brobecker <brobecker@gnat.com>
518
519 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
520 with equivalent code.
521 (fill_fpregset): Likewise.
522
523 2004-11-13 Andrew Cagney <cagney@gnu.org>
524
525 * MAINTAINERS: Do not list "Deleted" architectures.
526
527 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
528 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
529 sparc-*-vxworks*.
530 * NEWS: Mention that vxworks was deleted.
531 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
532 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
533 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
534 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
535 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
536 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
537 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
538 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
539 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
540 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
541 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
542 * remote-vxmips.c, remote-vx.c: Delete.
543 * remote-vx68.c: Delete.
544 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
545 * config/m68k/os68k.mt, ada-lang.h: Ditto.
546 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
547 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
548
549 2004-11-13 Eli Zaretskii <eliz@gnu.org>
550
551 * config/i386/xm-go32.h: Don't include fopen-bin.h.
552 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
553
554 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
555 branch that doesn't define CRLF_SOURCE_FILES; always use
556 binary-mode open.
557 (print_source_lines_base, forward_search_command)
558 (reverse_search_command): Enable the code that accepts DOS-style
559 CRLF line endings on all platforms (this removes the need for
560 CRLF_SOURCE_FILES).
561
562 * defs.h: Fix wording of the comment before FOPEN_RB.
563 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
564
565 * config/djgpp/fnchange.lst: Group renames for opcode directory
566 together.
567
568 * config/djgpp/djconfig.sh: Replace file names that don't exist
569 anymore with existing files, for checking the unpacked
570 distribution.
571
572 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
573 Export pre-cooked values in configure-* targets that begin with
574 "@test -f stage_last".
575
576 2004-11-12 Andrew Cagney <cagney@gnu.org>
577
578 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
579 * value.h (struct value): Update comment.
580 * valops.c (value_assign): Fold lval_reg_fame_relative into
581 lval_register.
582 * findvar.c (value_from_register, locate_var_value): Ditto.
583
584 2004-11-12 Randolph Chung <tausq@debian.org>
585
586 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
587 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
588 (write_exp_msymbol): Remove conditional check for symbols starting
589 with $. Update comments.
590
591 2004-11-12 Randolph Chung <tausq@debian.org>
592
593 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
594 so_lib_thread_start_addr.
595 * pa64solib.h (so_list): Forward declare.
596 (pa64_solib_thread_start_addr): Prototype.
597 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
598 (no_shared_libraries): Remove.
599 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
600 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
601 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
602 the elf solib handler to find the start address.
603
604 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
605 files to the target makefile.
606 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
607 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
608 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
609
610 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
611 files for symbol reading and shared library handling here.
612 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
613 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
614 without bringing in 64-bit support.
615
616 2004-11-12 Andrew Cagney <cagney@gnu.org>
617
618 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
619 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
620 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
621 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
622 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
623 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
624 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
625
626 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
627 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
628 (VALUE_REGNUM): Define.
629 (struct value): Delete location.regnum, rename "regno" to
630 "regnum".
631 * value.c, valops.c, valarith.c, findvar.c: Update.
632
633 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
634 (VALUE_BITPOS): Delete.
635 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
636 * value.c (value_type, value_offset, value_bitpos)
637 (value_bitsize): New functions. Update references.
638 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
639 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
640 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
641 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
642 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
643 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
644 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
645 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
646 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
647
648 2004-11-12 Andrew Cagney <cagney@gnu.org>
649
650 * cris-tdep.c (cris_register_offset): Delete, never called.
651 (cris_spec_reg_applicable): Delete cris_ver_sim.
652 * MAINTAINERS: List d10v as OBSOLETE.
653 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
654 FOPEN_WB et.al., defined by "fopen-bin.h".
655
656 2004-11-12 Randolph Chung <tausq@debian.org>
657
658 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
659 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
660 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
661 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
662
663 2004-11-12 Mark Kettenis <kettenis@jive.nl>
664
665 * tui/tui-io.c: Don't include "terminal.h".
666 * Makefile.in (tui-io.o): Update dependencies.
667
668 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
669
670 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
671 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
672 set_gdbarch_regset_from_core_section for core file support.
673 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
674 New functions.
675
676 2004-11-11 Randolph Chung <tausq@debian.org>
677
678 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
679 stop_after_branch parameter and use it to determine if we should look
680 at the delay slot of the first branch insn to find prologue insns.
681 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
682 (hppa_frame_cache): Likewise.
683
684 2004-11-11 Randolph Chung <tausq@debian.org>
685
686 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
687 register so that it can be unwound from anywhere in the prologue.
688
689 2004-11-10 msnyder <msnyder@redhat.com>
690
691 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
692 must invalidate lr_reg (so we don't try to save it again).
693 Ditto for cr_offset and cr_reg.
694
695 2004-11-05 Jon Beniston <jon@beniston.com>
696
697 Committed by Andrew Cagney.
698 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
699 when an unexpected packet is received, as the target stubs
700 continually retransmit the same packet until ACKed.
701
702 2004-11-10 Randolph Chung <tausq@debian.org>
703
704 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
705 frame's type.
706
707 2004-11-10 Randolph Chung <tausq@debian.org>
708
709 * blockframe.c (inside_entry_func): Move to .....
710 * frame.c (inside_entry_func): ... here, and make static.
711 (backtrace_past_entry): New flag.
712 (get_prev_frame): Stop backtrace at the entry function if enabled
713 by flag. Update comments.
714 (_initialize_frame): Add command to set backtrace_past_entry flag.
715 * defs.h (inside_entry_func): Remove prototype.
716
717 2004-11-10 Mark Kettenis <kettenis@gnu.org>
718
719 * dwarf2read.c: Fix formatting.
720
721 2004-11-10 Andrew Cagney <cagney@gnu.org>
722
723 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
724 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
725 macros with function declarations.
726 * value.c (coerce_ref, coerce_array, coerce_number)
727 (coerce_enum): New functions.
728 (value_as_long, value_as_address): Update.
729 * ada-lang.c (ada_coerce_ref, ada_value_binop)
730 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
731 * jv-lang.c (evaluate_subexp_java): Update.
732 * valarith.c (value_less, value_neg, value_complement)
733 (value_binop, value_add, value_subscript, value_x_binop)
734 (value_logical_not, value_sub): Update.
735 * valops.c (check_field, value_struct_elt, value_ind)
736 (value_find_oload_method_list, value_cast, value_assign): Update.
737 * eval.c (evaluate_subexp_standard): Update.
738
739 2004-11-10 Mark Kettenis <kettenis@gnu.org>
740
741 * mips-tdep.c (mips32_relative_offset): Change return type to
742 LONGEST, change argument type to ULONGEST. Fix sign-extension.
743
744 2004-11-10 Randolph Chung <tausq@debian.org>
745
746 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
747 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
748 (hppa_fetch_pointer_argument): Likewise.
749 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
750 deprecated_read_memory_nobpt.
751 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
752 add_set_cmd sequence with add_setshow_boolean_cmd.
753
754 2004-11-09 Andrew Cagney <cagney@gnu.org>
755
756 GDB 6.3 released from GDB 6.3 branch.
757
758 2004-11-09 Andrew Cagney <cagney@gnu.org>
759
760 * values.c: Rename to ...
761 * value.c: ..., new file.
762 * Makefile.in: Update.
763
764 2004-11-09 Daniel Jacobowitz <dan@debian.org>
765
766 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
767 size.
768
769 2004-11-09 Andrew Cagney <cagney@gnu.org>
770
771 * TODO: Delete.
772
773 * value.h (struct value): Delete field bfd_section.
774 (VALUE_BFD_SECTION): Delete macro.
775 (COERCE_REF): Update.
776 (value_at, value_at_lazy): Delete asection parameter.
777 * printcmd.c (print_formatted, x_command): Update.
778 (do_examine): Delete asection parameter.
779 (next_section): Delete variable.
780 * valops.c (value_cast, value_at, value_at_lazy)
781 (value_coerce_function, value_addr, value_ind, value_string)
782 (find_rt_vbase_offset, value_full_object): Update.
783 * hpacc-abi.c (hpacc_virtual_fn_field)
784 (hpacc_value_rtti_type): Update.
785 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
786 (gnuv3_baseclass_offset): Update.
787 * f-valprint.c (f_val_print): Update.
788 * c-valprint.c (c_val_print): Update.
789 * p-valprint.c (pascal_val_print): Update.
790 * jv-valprint.c (java_value_print): Update.
791 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
792 * ada-lang.c (ada_value_primitive_packed_val)
793 (ada_evaluate_subexp): Update.
794 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
795 * expprint.c (print_subexp_standard): Update.
796 * infcall.c (call_function_by_hand): Update.
797 * valarith.c (value_add): Update.
798 * eval.c (evaluate_subexp_standard): Update.
799 * values.c (allocate_value, value_copy, value_static_field): Update.
800 * findvar.c (read_var_value, locate_var_value): Update.
801
802 2004-11-09 Andrew Cagney <cagney@gnu.org>
803
804 * i386-linux-tdep.c: Include "dwarf2-frame.h".
805 * Makefile.in: Update all dependencies.
806
807 2004-11-08 Andrew Cagney <cagney@gnu.org>
808
809 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
810 (sentinel_frame_unwinder): Add the prev_pc method.
811 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
812 available. Do not handle the sentinel-frame case.
813 * frame-unwind.h (frame_prev_register_ftype): Define.
814 (struct frame_unwind): Add prev_pc;
815
816 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
817
818 * configure.in: Check for ncurses/term.h.
819 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
820 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
821 * tui/tui.c: Don't include term.h.
822 * configure, config.in: Rebuilt.
823
824 2004-11-08 Mark Kettenis <kettenis@gnu.org>
825
826 * m68kbsd-nat.c: Include "inf-ptrace.h".
827 (_initialize_m68kbsd_nat): Fix pasto.
828 * Makefile.in (m68kbsd-nat.o): Update dependencies.
829
830 2004-11-08 Randolph Chung <tausq@debian.org>
831
832 * infrun.c (debug_infrun): New variable.
833 (resume, proceed, wait_for_inferior): Annotate with debug messages.
834 (handle_inferior_event, keep_going): Likewise.
835 (_initialize_infrun): Register "set debug infrun" command.
836
837 2004-11-08 Andreas Schwab <schwab@suse.de>
838
839 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
840 PTRACE_EVENT_VFORKDONE.
841 (child_follow_fork): Adjust.
842
843 2004-11-08 Andrew Cagney <cagney@gnu.org>
844
845 * README: Refer to 6.3, not 6.2, update directory listing droppng
846 references to intl/ and mmalloc/.
847 * PROBLEMS: Refer to 6.3 not 6.2.
848
849 * PROBLEMS: Delete no-longer applicable problems.
850
851 2004-11-07 Andrew Cagney <cagney@redhat.com>
852 Daniel Jacobowitz <dan@debian.org>
853 Roland McGrath <roland@redhat.com>
854
855 * Makefile.in (symfile-mem.o): Update dependencies.
856 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
857 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
858 * inf-ptrace.c (inf_ptrace_attach): Call
859 observer_notify_inferior_created.
860 * inftarg.c (child_attach): Likewise.
861 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
862 (symbol_file_add_from_memory): Take NAME argument. Use it for
863 the new BFD's filename.
864 (add_symbol_file_from_memory_command): Update call to
865 symbol_file_add_from_memory.
866 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
867 (symbol_file_add_from_memory_wrapper): New.
868 (_initialize_symfile_mem): Register add_vsyscall_page as an
869 inferior_created observer.
870
871 2004-11-07 Mark Kettenis <kettenis@gnu.org>
872
873 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
874 fetch_inferior_registers. Make static.
875 (m68kbsd_store_inferior_registers): Rename from
876 store_inferior_registers. Make static.
877 (_initialize_m68kbsd_nat): Construct and add target vector.
878 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
879 inftarg.o. Add inf-ptrace.o.
880 (NAT_FILE): Set to tm-solib.h.
881 (LOADLIBES): New variable.
882 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
883 inftarg.o. Add inf-ptrace.o.
884 (NAT_FILE): Delete variable.
885 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
886 inftarg.o. Add inf-ptrace.o.
887 (NAT_FILE): Set to tm-solib.h.
888 * config/m68k/nm-nbsdaout.h: Remove file.
889
890 2004-11-07 Daniel Jacobowitz <dan@debian.org>
891
892 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
893 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
894 (dwarf2_signal_frame_unwind): New.
895 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
896 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
897
898 2004-11-07 Mark Kettenis <kettenis@gnu.org>
899
900 * Makefile.in (mips64obsd-tdep.o): Fix typo.
901
902 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
903 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
904 to only include the structure members we actually need.
905 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
906 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
907 only include the structure members we actually need.
908 (mipsnbsd_init_abi): Update.
909
910 * mips64obsd-nat.c: Include "mips-tdep.h".
911 (MIPS64OBSD_NUM_REGS): Remove define.
912 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
913 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
914 floating-point registers correctly.
915 * Makefile.in (mips64obsd-nat.o): Update dependencies.
916
917 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
918 "gdb_assert.h".
919 (mips64obsd_sigframe_init): New function.
920 (mips64obsd_sigframe): New variable.
921 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
922 unwinder.
923 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
924
925 2004-11-06 Joel Brobecker <brobecker@gnat.com>
926
927 * alpha-mdebug-tdep.c: #include mdebugread.h.
928 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
929 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
930
931 2004-11-05 Andrew Cagney <cagney@gnu.org>
932
933 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
934 CFI and the init_reg method leave the register unspecified.
935 Include the register name in the "Incomplete CFI data" complaint.
936 Supress leading zeros in the address.
937
938 2004-11-05 Mark Kettenis <kettenis@gnu.org>
939
940 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
941 skipping a personality routine in a CIE augmentation.
942
943 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
944
945 * defs.h (fatal, vfatal): New function prototypes.
946 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
947 via catch_errors.
948 (backtrace_command): Change to call backtrace_command_stub via
949 catch_errors instead of calling backtrace_command_1 directly.
950 (backtrace_full_command): Ditto.
951 * utils.c (error_stream_1): New static function.
952 (verror): Change to call error_stream_1 instead of error_stream.
953 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
954 (vfatal, fatal): New functions.
955
956 2004-11-05 Andrew Cagney <cagney@gnu.org>
957
958 * stack.c (parse_frame_specification_1): Clear selected_frame_p
959 when not using selected frame.
960
961 2004-11-05 Mark Kettenis <kettenis@jive.nl>
962
963 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
964 personality routine in a CIE augmentation.
965
966 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
967
968 * stack.c (set_current_sal_from_frame): New function.
969 (print_args_stub): Use it.
970 (print_frame_info): Don't set sal here.
971
972 2004-11-04 Mark Kettenis <kettenis@gnu.org>
973
974 * dwarf2-frame.c (read_encoded_value): Change type of third
975 argument to `unsigned char *'. Add support for LEB128 encodings.
976
977 2004-11-04 Jim Blandy <jimb@redhat.com>
978
979 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
980 prevent cross-objfile references.
981 (make_cv_type): Doc fix. Don't create cross-objfile references,
982 even for stub types.
983 (replace_type): Add assertion to prevent cross-objfile references.
984 (check_typedef): Never resolve a stub type by copying over a type
985 from another file.
986
987 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
988
989 * Makefile.in (m32r-tdep.o): Update dependencies.
990 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
991 ABI-specific overrides.
992
993 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
994
995 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
996 unnecessary parallel execution bit.
997 (m32r_memory_remove_breakpoint): Ditto.
998 (m32r_breakpoint_from_pc): Update.
999
1000 2004-11-03 Randolph Chung <tausq@debian.org>
1001
1002 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1003 frame_func_unwind to locate the unwind entry.
1004 (hppa_frame_this_id): Likewise.
1005
1006 2004-11-03 Andrew Cagney <cagney@gnu.org>
1007
1008 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1009 packet, obsolete configurations, end-of-life deprecated_registers.
1010
1011 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1012
1013 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1014 encodings as well as unsigned encodings.
1015
1016 2004-11-02 Andrew Cagney <cagney@gnu.org>
1017
1018 * value.h (COERCE_VARYING_ARRAY): Delete.
1019 * valops.c (value_cast, value_slice): Delete use.
1020 * valarith.c (value_subscript, value_concat): Delete use.
1021
1022 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1023
1024 * NEWS: GDB understands GNAT Ada.
1025
1026 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1027
1028 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1029 (amd64-sol2-tdep.o): Add dependencies.
1030 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1031 config/i386/sol2-64.mt: New files.
1032 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1033 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1034 (supply_gregset): Correct order of arguments to
1035 amd64_supply_native_gregset.
1036 (fill_gregset): Correct order of arguments to
1037 amd64_collect_native_gregset.
1038 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1039 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1040 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1041 for definition of NEW_PROC_API.
1042 * configure: Regenerate.
1043
1044 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1045
1046 * MAINTAINERS (Write After Approval): Add myself.
1047
1048 2004-11-01 Andrew Cagney <cagney@gnu.org>
1049
1050 * configure.tgt: Mark d10v-*-* as obsolete.
1051 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1052
1053 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1054
1055 * values.c (modify_field): Correct handling of bit-fields that
1056 don't fit in 32 bits. Use unsigned operations throughout and
1057 simplify the code a bit. Document preconditions.
1058
1059 2004-10-31 Andrew Cagney <cagney@gnu.org>
1060
1061 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1062 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1063 (in_plt_section): Delete.
1064
1065 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1066 (mips_gdbarch_init): Do not set same.
1067
1068 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1069 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1070
1071 * gdbarch.sh (in_solib_call_trampoline): Delete.
1072 * gdbarch.h, gdbarch.c: Re-generate.
1073
1074 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1075 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1076 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1077 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1078 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1079
1080 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1081
1082 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1083 (mipsnbsd_fetch_inferior_registers): Rename from
1084 fetch_inferior_registers. Make static.
1085 (mipsnbsd_store_inferior_registers): Rename from
1086 store_inferior_registers. Make static.
1087 (_initialize_mipsnbsd_nat): New function and prototype.
1088 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1089 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1090 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1091 inf-ptrace.o.
1092
1093 2004-10-31 Andrew Cagney <cagney@gnu.org>
1094
1095 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1096 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1097 delete corresponding unused function.
1098 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1099 in_solib_call_trampoline.
1100 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1101 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1102 * config/mips/tm-nbsd.h: Ditto.
1103 * config/arm/tm-linux.h: Ditto.
1104 * config/mips/tm-linux.h: Ditto.
1105
1106 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1107 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1108 in_solib_call_trampoline, delete corresponding unused function.
1109 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1110 (vaxnbsd_aout_init_abi): Ditto.
1111 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1112 (sparc32nbsd_aout_init_abi): Ditto.
1113 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1114 (ppc_linux_init_abi): Ditto.
1115 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1116 (ns32knbsd_init_abi_aout): Ditto.
1117 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1118 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1119 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1120 (m68kbsd_aout_init_abi): Ditto.
1121 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1122 (i386_cygwin_init_abi): Ditto.
1123 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1124 (i386bsd_init_abi): Ditto.
1125
1126 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1127 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1128 isn't used by this architecture.
1129 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1130 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1131 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1132 * s390-tdep.c (s390_gdbarch_init): Ditto.
1133 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1134 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1135 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1136 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1137 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1138 * amd64-tdep.c (amd64_init_abi): Ditto.
1139
1140 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1141 in_solib_call_trampoline to its default value of
1142 generic_in_solib_call_trampoline.
1143 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1144 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1145 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1146 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1147 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1148 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1149
1150 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1151
1152 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1153
1154 * config/mips/tm-mips.h: Delete file.
1155 * remote-mips.c: Delete tm-mips.h from comment.
1156 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1157 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1158 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1159 * config/mips/tm-linux.h: Don't include tm-mips.h.
1160 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1161 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1162 * config/mips/tm-wince.h: Don't include.
1163
1164 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1165 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1166 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1167 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1168
1169 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1170 * mdebugread.c (ecoff_relocate_efi): Delete function.
1171 * objfiles.c (objfile_relocate): Delete #ifdef
1172 MDEBUG_EFI_SYMBOL_NAME code.
1173
1174 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1175 Andrew Cagney <cagney@gnu.org>
1176
1177 * gdbarch.sh (single_step_through_delay): Add.
1178 * gdbarch.h, gdbarch.c: Re-generate.
1179 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1180 (mips_step_skips_delay): Delete.
1181 * mips-tdep.c (mips_single_step_through_delay): Replace
1182 mips_step_skips_delay.
1183 (mips_gdbarch_init): Set single_step_through_delay.
1184 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1185
1186 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1187
1188 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1189 from TRAMP_FRAME frame type.
1190
1191 2004-10-31 Andrew Cagney <cagney@gnu.org>
1192
1193 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1194
1195 * mips-tdep.c (mips_ignore_helper): Delete.
1196 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1197 * infrun.c (handle_inferior_event): Delete #ifdef
1198 DEPRECATED_IGNORE_HELPER_CALL code.
1199
1200 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1201
1202 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1203
1204 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1205 (fill_fpregset): Do not compile for 64-bit systems.
1206 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1207 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1208 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1209
1210 2004-10-30 Andrew Cagney <cagney@gnu.org>
1211
1212 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1213 (struct mdebug_extra_func_info): Define.
1214 * config/alpha/tm-alpha.h: Delete same.
1215 * config/mips/tm-mips.h: Delete same.
1216 * mdebugread.c: Delete same.
1217 * Makefile.in: Update dependencies.
1218 * mips-mdebug-tdep.c: Include "mdebugread.h".
1219
1220 * objfiles.c: Include "mdebugread.h".
1221 * mdebugread.c: Include "mdebugread.h".
1222 (ecoff_relocate_cfi): Delete.
1223 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1224 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1225 * mdebugread.h (ecoff_relocate_efi): New file.
1226 * Makefile.in: Update dependencies.
1227
1228 * mips-tdep.c (struct frame_extra_info): Delete.
1229 (temp_proc_desc): Delete.
1230
1231 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1232 MIPS_EFI_SYMBOL_NAME.
1233 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1234 (struct mdebug_extra_func_info): Replace struct
1235 alpha_extra_func_info and alpha_extra_func_info_t.
1236 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1237 MIPS_EFI_SYMBOL_NAME.
1238 (struct mdebug_extra_func_info): Replace struct
1239 alpha_extra_func_info and alpha_extra_func_info_t.
1240 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1241 * mdebugread.c, alpha-mdebug-tdep.c:
1242
1243 Suggested by Mark Kettenis.
1244 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1245 fields frame_adjust and high_addr.
1246 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1247 (non_heuristic_proc_desc): Delete references.
1248
1249 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1250 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1251 * mips-tdep.c: Update.
1252
1253 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1254 (MIPS_LAST_EMBED_REGNUM): Add.
1255 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1256 (LAST_EMBED_REGNUM): Delete.
1257 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1258
1259 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1260 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1261 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1262 * mips-linux-nat.c: Update.
1263
1264 * mips-tdep.h: Add comments on registers.
1265 (MIPS_UNUSED_REGNUM): Define.
1266 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1267 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1268 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1269 * mips-linux-nat.c, remote-mips.c: Update.
1270
1271 * config/mips/tm-mips.h (t_insn): Delete.
1272 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1273 Replace t_insn with ULONGEST.
1274
1275 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1276
1277 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1278 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1279 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1280 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1281 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1282 (mipsnbsd_core_osabi_sniffer): New function.
1283 (mipsnbsd_init_abi): Set regset_from_core_section.
1284 (_initialize_mipsnbsd_tdep): Remove calls to
1285 deprecated_add_core_fns.
1286 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1287 (mipsnbsd_regset_from_core_section): New functions.
1288 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1289 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1290
1291 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1292 Remove optimization for DEPRECATED_FP_REGNUM.
1293
1294 2004-10-30 Andrew Cagney <cagney@gnu.org>
1295
1296 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1297 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1298 (alpha_setup_arbitrary_frame): Delete.
1299 * mips-tdep.c (setup_arbitrary_frame): Delete.
1300 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1301 (setup_arbitrary_frame): Delete.
1302 * stack.c (parse_frame_specification_1): When specified, call
1303 create_new_frame with two parameters. Delete #ifdef
1304 SETUP_ARBITRARY_FRAME.
1305
1306 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1307 (MIPS_INSTLEN): Delete.
1308 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1309 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1310 * remote-mips.c, mips-tdep.c: Update.
1311
1312 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1313 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1314 * mips-tdep.c (mips_mdebug_frame_cache)
1315 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1316 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1317 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1318 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1319 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1320 (mips_gdbarch_init): Do not append mdebug sniffers.
1321 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1322 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1323 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1324 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1325 * Makefile.in: Update dependencies.
1326
1327 * mips-tdep.h (mips_abi_regsize): Declare.
1328 * mips-tdep.c (mips_abi_regsize): Make non-static.
1329
1330 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1331 (make_mips16_addr): Delete.
1332
1333 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1334
1335 * i386-sol2-nat.c: New file.
1336 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1337 i386-sol2-tdep.c.
1338 (i386-sol2-nat.o): Update dependencies.
1339 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1340 i386-sol2-nat.o.
1341
1342 2004-10-30 Andrew Cagney <cagney@gnu.org>
1343
1344 Total breakage identified by Joel Brobecker.
1345 * mips-tdep.c (after_prologue): Delete.
1346 (mips_skip_prologue): Use skip_prologue_using_sal.
1347 (heuristic_proc_desc): Delete, unused.
1348
1349 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1350
1351 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1352 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1353 Cleanup coding style.
1354
1355 2004-10-30 Andrew Cagney <cagney@gnu.org>
1356
1357 * mips-tdep.h (mips_pc_is_mips16): Declare.
1358 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1359 non-static. Update calls.
1360
1361 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1362 * command.h (add_setshow_enum_cmd): Declare.
1363 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1364
1365 * mips-tdep.c (_initialize_mips_tdep): Use
1366 add_setshow_zinteger_cmd.
1367
1368 * mips-tdep.c (mips_eabi_extract_return_value)
1369 (mips_o64_extract_return_value, mips_o64_store_return_value)
1370 (return_value_location, mips_eabi_reg_struct_has_addr)
1371 (mips_eabi_use_struct_convention)
1372 (mips_eabi_store_return_value): Delete.
1373 (mips_eabi_store_return_value): New function.
1374 (mips_eabi_return_value): New function.
1375 (mips_gdbarch_init): For O64 and EABI, delete
1376 extract_return_value, store_return_value, use_struct_convention
1377 and reg_struct_has_addr, add return_value.
1378
1379 * mips-tdep.c (read_signed_register): Use
1380 regcache_cooked_read_signed.
1381
1382 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1383
1384 * mipsread.c: Cleanup coding style.
1385 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1386 (mipscoff_symfile_finish): Remove prototypes.
1387
1388 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1389
1390 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1391 (mips_mdebug_frame_cache, mips16_scan_prologue)
1392 (mips32_scan_prologue, mips_stub_frame_cache)
1393 (heuristic_proc_start, heuristic_proc_desc)
1394 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1395 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1396 (mips_o32_return_value, mips_o64_push_dummy_call)
1397 (mips_step_skips_delay, mips_skip_trampoline_code)
1398 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1399 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1400 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1401 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1402 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1403 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1404 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1405 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1406 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1407 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1408 ZERO_REGNUM.
1409 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1410 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1411 ZERO_REGNUM.
1412 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1413 A0_REGNUM.
1414 * mipsnbsd-nat.c: Include "mips-tdep.h".
1415 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1416 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1417
1418 2004-10-29 Andrew Cagney <cagney@gnu.org>
1419
1420 * stack.c (parse_frame_specification_1): New function based on
1421 parse_frame_specification. Add message and selected_frame_p
1422 paramters. Truely always return non-NULL.
1423 (parse_frame_specification): Call parse_frame_specification_1.
1424 (frame_info): Update. Eliminate target_has_stack check.
1425 (select_frame_command): Update.
1426
1427 2004-10-29 Andrew Cagney <cagney@gnu.org>
1428
1429 * frame.h (get_selected_frame): Add message parameter.
1430 * frame.c (get_selected_frame): Add and use message parameter.
1431 * stack.c (current_frame_command, return_command, locals_info)
1432 (catch_info, args_info, up_silently_base, down_silently_base): Use
1433 get_selected_frame with an explicit message.
1434 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1435 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1436 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1437 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1438 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1439 * breakpoint.c: Update.
1440
1441 2004-10-29 Andrew Cagney <cagney@gnu.org>
1442
1443 * trad-frame.c (trad_frame_get_prev_register): Use
1444 frame_unwind_register instead of frame_register_unwind, do not
1445 recurse the register's location.
1446 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1447 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1448 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1449 * sh-tdep.c (sh_frame_prev_register): Ditto.
1450 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1451 * i386-tdep.c (i386_frame_prev_register): Ditto.
1452 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1453 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1454
1455 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1456
1457 * proc-events.c: Fix several coding-style issues. Consistently
1458 use #ifdef instead of #if defined().
1459 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1460 ARRAY_SIZE.
1461 (_initialize_proc_events): New prototype.
1462
1463 * proc-why.c: Fix several coding-style issues.
1464 (proc_prettyfprint_why): Use ARRAY_SIZE.
1465
1466 2004-10-27 Jim Blandy <jimb@redhat.com>
1467
1468 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1469 manner independent of the host byte order.
1470
1471 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1472
1473 * mips-tdep.c (id_delayed): Remove prototype.
1474
1475 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1476
1477 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1478 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1479 to enum with register numbers.
1480 (enum mips_insn_size): New enum.
1481
1482 2004-10-26 Andrew Cagney <cagney@gnu.org>
1483
1484 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1485 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1486 (mips_gdbarch_init): Update.
1487 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1488
1489 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1490 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1491 IN_SOLIB_RETURN_TRAMPOLINE.
1492 * mips-tdep.c (mips_dump_tdep): Do not print
1493 IN_SOLIB_RETURN_TRAMPOLINE.
1494 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1495 (mips_gdbarch_init): Update.
1496
1497 * mips-tdep.h (mips_software_single_step): Move to here ...
1498 * config/mips/tm-mips.h: ... from here.
1499 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1500 (SOFTWARE_SINGLE_STEP): Delete.
1501 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1502
1503 2004-10-25 Andrew Cagney <cagney@gnu.org>
1504
1505 * NEWS: Add Changes since GDB 6.3 section.
1506
1507 2004-10-23 Andreas Schwab <schwab@suse.de>
1508
1509 * ada-lang.c (grow_vect): Return the new array instead of
1510 expecting pointer to pointer to avoid violation of aliasing rules.
1511 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1512
1513 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1514
1515 * s390-tdep.c (enum pv_boolean): Remove.
1516 (pv_is_array_ref): Remove.
1517 (s390_on_stack): Remove.
1518 (S390_NUM_SPILL_SLOTS): Remove.
1519 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1520 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1521 (s390_store): Track all stores of orginal incoming registers to the
1522 stack constant offsets relative to the CFA, instead of only tracking
1523 stores into specific spill slots.
1524 (s390_load): Likewise.
1525 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1526 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1527 defined as call-saved by the ABI.
1528 (s390_push_dummy_call): Use bottom of dummy call argument save area
1529 as return value, not the top. Do not store to the called function's
1530 register save area.
1531 (s390_unwind_dummy_id): Adapt accordingly.
1532
1533 2004-10-23 Andrew Cagney <cagney@gnu.org>
1534
1535 * objfiles.h (struct objfile): Rename obj_private to
1536 deprecated_obj_private, sym_private to deprecated_sym_private, and
1537 sym_stab_info to deprecated_sym_stab_info.
1538 * gdb-stabs.h: Update.
1539 * elfread.c: Update.
1540 * dbxread.c: Update.
1541 * coffread.c: Update.
1542 * xcoffread.c: Update.
1543 * symfile.c: Update.
1544 * somread.c: Update.
1545 * nlmread.c: Update.
1546 * mdebugread.c: Update.
1547 * hpread.c: Update.
1548 * coffread.c: Update.
1549
1550 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1551
1552 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1553 * configure.host: Add mips64*-*-openbsd*.
1554 * configure.tgt: Add mips64*-*-openbsd*.
1555 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1556 mips64obsd-tdep.c.
1557 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1558 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1559
1560 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1561
1562 * symtab.c (symbol_search_name): Minor reformatting.
1563
1564 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1565
1566 * symtab.h: Fix typo in comment.
1567
1568 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1569
1570 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1571 (dwarf_decode_line_header): Likewise.
1572
1573 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1574
1575 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1576
1577 2004-10-19 Andrew Cagney <cagney@gnu.org>
1578
1579 GDB 6.3 branch created.
1580 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1581
1582 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1583
1584 * dwarf2read.c (set_cu_language): Set language to Ada for
1585 DW_LANG_Ada83 and DW_LANG_Ada95.
1586
1587 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1588
1589 From Andreas Schwab <schwab@suse.de>:
1590 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1591 for xmalloc and xrealloc.
1592
1593 2004-10-15 Andrew Cagney <cagney@gnu.org>
1594
1595 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1596 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1597 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1598 Update dependencies.
1599
1600 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1601
1602 * ada-lang.c (ada_lookup_symbol): Correct comment.
1603 (ada_evaluate_subexp): Change error message for
1604 OP_FUNCALL case so as not to indicate an internal error.
1605
1606 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1607
1608 Committed by Paul Hilfinger.
1609 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1610 type sizes in XVE/XVU types, and emit a warning when that happens,
1611 instead of rounding up the size of the resulting type.
1612 Some minor reformatting.
1613 (ada_is_aligner_type): Do not consider a type as an aligner type
1614 if there is a corresponding XVS type as well.
1615 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1616 have several levels of pointer indirection to the array.
1617
1618 2004-10-15 Jerome Guitton <guitton@gnat.com>
1619
1620 Committed by Paul Hilfinger.
1621 * ada-lang.c (check_size): New function.
1622 (coerce_unspec_val_to_type): call check_size to make sure
1623 that the object size is reasonable.
1624 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1625 Implements the case when we get a reference when we evaluate
1626 the expression of one of the bounds of the slice.
1627 (ada_value_struct_elt): when a packed array field is
1628 a reference, use ada_coerce_ref to dereference it; use
1629 ada_value_ind only if it is a pointer.
1630
1631 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1632
1633 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1634 a bit to avoid the necessity of an advance declaration. Remove
1635 declaration.
1636 (set_reg_offset): Move implemenation up.
1637 (mips16_get_imm): Likewise.
1638 (mips16_scan_prologue): Likewise.
1639 (reset_saved_regs): Likewise.
1640 (mips32_scan_prologue): Likewise.
1641
1642 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1643
1644 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1645 Remove sp as a parameter, compute it internally instead. Move
1646 prologue scanning limit from heuristic_proc_desc to here.
1647 (mips16_scan_prologue): Likewise.
1648 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1649 by call to mips16_scan_prologue.
1650 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1651 by call to mips32_scan_prologue.
1652 (heuristic_proc_desc): Remove code that's no longer necessary.
1653 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1654 (mips_skip_prologue): Update calls to mips16_scan_prologue
1655 and mips32_scan_prologue.
1656
1657 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1658
1659 * mips-tdep.c (mips16_scan_prologue): Merge code from
1660 mips16_skip_prologue. Now return the address of the first
1661 instruction past the function prologue.
1662 (mips16_skip_prologue): Remove, no longer necessary.
1663 (mips_skip_prologue): Replace call to mips16_skip_prologue
1664 by call to mips16_scan_prologue.
1665
1666 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1667
1668 * mips-tdep.c (mips32_scan_prologue): Merge code from
1669 mips32_skip_prologue. Now return the address of the first
1670 instruction past the function prologue.
1671 (mips32_skip_prologue): Remove. No longer necessary.
1672 (mips16_skip_prologue): Add parameter end_pc instead of
1673 computing it.
1674 (mips_skip_prologue): Compute the upper limit for the
1675 prologue scanning. Update call to mips16_skip_prologue.
1676 Replace call to mips32_skip_prologue by call to
1677 mips32_scan_prologue.
1678
1679 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1680
1681 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1682 NetBSD system call stubs that store %rp in the ERP slot of the
1683 stack frame.
1684
1685 * source.c: Always define O_BINARY to 0 if not defined already.
1686 (openp): Unconditionally use O_BINARY.
1687
1688 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1689 * event-top.c (gdb_readline2): Likewise.
1690
1691 2004-10-14 Orjan Friberg <orjanf@axis.com>
1692
1693 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1694 deprecated_add_core_fns which was removed by mistake.
1695
1696 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1697
1698 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1699 references to deprecated_registers[] with equivalent code.
1700
1701 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1702
1703 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1704 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1705 instead of explicit test and print statement.
1706
1707 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1708
1709 * sparc-nat.c: Include "inf-ptrace.h".
1710 (sparc_target): New function.
1711 * sparc-nat.h: Update copyright year.
1712 (sparc_target): New prototype.
1713 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1714 (_initialize_sparcnbsd_nat): Construct and add target vector.
1715 * sparc64nbsd-nat.c: Include "target.h".
1716 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1717 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1718 Update dependencies.
1719 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1720 inftarg.o, add inf-ptrace.o.
1721 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1722 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1723 (NAT_FILE): Set to nm-bsd.h.
1724 (LOADLIBES): New variable.
1725 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1726 infarg.o, add inf-ptrace.o.
1727 * config/sparc/nm-nbsdaout.h: Remove file.
1728 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1729 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1730 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1731
1732 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1733 "fopen-same.h". Update comment.
1734
1735 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1736
1737 * i386gnu-nat.c: Include "gdb_string.h".
1738 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1739 registers when the floating-point state isn't initialized.
1740 * Makefile.in (i386gnu-nat.o): Update dependencies.
1741
1742 2004-10-11 David Anderson <davea@sgi.com>
1743
1744 * regcache.c (regcache_raw_read): Comment was missing "to".
1745 Extraneous ' removed.
1746 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1747 comment now describes use.
1748
1749 2004-10-11 Orjan Friberg <orjanf@axis.com>
1750
1751 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1752 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1753 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1754 (cris_sigtramp_frame_sniffer): New functions.
1755 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1756 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1757 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1758 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1759 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1760 command.
1761 (cris_version_update): Remove, replace with ...
1762 (set_cris_version): New function.
1763 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1764 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1765 (_initialize_cris_tdep): Remove CRIS mode command.
1766 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1767 cris-fpless-backtrace command.
1768 (cris_scan_prologue): Fix prologue scanning limit.
1769 (cris_register_type): Update to reflect actual registers.
1770 (cris_register_bytes_ok) Remove.
1771 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1772 Remove set_gdbarch_deprecated_register_size,
1773 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1774
1775 2004-10-10 Andrew Cagney <cagney@gnu.org>
1776
1777 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1778 comment.
1779
1780 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1781
1782 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1783
1784 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1785
1786 * mips-tdep.c (mips16_scan_prologue): Renames
1787 mips16_heuristic_proc_desc. Update comment.
1788 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1789 (heuristic_proc_desc): Update calls to the 2 functions above.
1790
1791 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1792
1793 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1794 Update comments. Also immediately return empty cache when the start
1795 address of our function could not be found.
1796 (mips_insn32_frame_cache): Likewise.
1797
1798 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1799
1800 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1801 (mips_insn16_frame_cache): Pass frame cache in call to
1802 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1803 Remove code that became redundant as a consequence.
1804 (mips32_heuristic_proc_desc): No longer compute a fake
1805 procedure descriptor. Compute the full frame cache instead.
1806 Some minor comment reformatting.
1807
1808 2004-10-10 Jim Blandy <jimb@redhat.com>
1809
1810 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1811 reader, tracing bytecode stuff): Remove self.
1812
1813 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1814
1815 * sparc64-linux-tdep.c: Update copyright year. Don't include
1816 "solib-svr4.h".
1817 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1818 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1819 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1820
1821 * sparc-linux-tdep.c: Update copyright year.
1822 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1823 to struct frame_info *. Use safe_frame_unwind_memory instead of
1824 deprecated_read_memory_nobpt.
1825 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1826 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1827 changed signature of sparc_linux_sigtramp_start.
1828 (sparc32_linux_pc_in_sigtramp): Remove function.
1829 (sparc32_linux_sigtramp_p): New function.
1830 (sparc32_linux_sigtramp_frame_sniffer): Use
1831 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1832
1833 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1834 Remove function.
1835 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1836
1837 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1838 (decode_packed_array_type, value_subscript_packed)
1839 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1840 argument in call to lim_warning.
1841
1842 * configure.in: Really disable the TUI if an enhanced curses
1843 library isn't found.
1844 * configure: Regenerate.
1845
1846 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1847
1848 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1849 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1850 * config/i386/nm-nbsdaout.h: Remove file.
1851 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1852 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1853 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1854 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1855 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1856 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1857 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1858 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1859 (ldd, ld_un, ld_2): Remove defines.
1860 * config/i386/nm-obsd.h: Likewise.
1861
1862 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1863
1864 * ada-lex.l: Remove useless rule whose right-context clause
1865 causes unreferenced static function warning for yyrealloc.
1866 (ada_flex_use): Remove the artificial reference to yyrealloc.
1867
1868 2004-10-08 Andrew Cagney <cagney@gnu.org>
1869
1870 * target.h (struct target_ops): Rename to_xfer_memory to
1871 deprecated_xfer_memory.
1872 * target.c: Update.
1873 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1874 * wince.c: Update.
1875 * win32-nat.c: Update.
1876 * v850ice.c: Update.
1877 * uw-thread.c: Update.
1878 * thread-db.c: Update.
1879 * sol-thread.c: Update.
1880 * remote.c: Update.
1881 * remote-vx.c: Update.
1882 * remote-st.c: Update.
1883 * remote-sim.c: Update.
1884 * remote-sds.c: Update.
1885 * remote-rdp.c: Update.
1886 * remote-rdi.c: Update.
1887 * remote-mips.c: Update.
1888 * remote-m32r-sdi.c: Update.
1889 * remote-e7000.c: Update.
1890 * procfs.c: Update.
1891 * ppc-bdm.c: Update.
1892 * nto-procfs.c: Update.
1893 * monitor.c: Update.
1894 * linux-nat.c: Update.
1895 * inftarg.c: Update.
1896 * hpux-thread.c: Update.
1897 * go32-nat.c: Update.
1898 * gnu-nat.c: Update.
1899 * exec.c: Update.
1900 * corelow.c: Update.
1901 * bsd-kvm.c: Update.
1902 * aix-thread.c: Update.
1903
1904 2004-10-08 Andrew Cagney <cagney@gnu.org>
1905
1906 * target.c (debug_target): Move to near start of file.
1907 (target_stopped_data_address_p): Re-org logic, add casts.
1908
1909 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1910
1911 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1912 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1913 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1914 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1915 New defines.
1916
1917 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1918
1919 * target.h (to_stopped_data_address): Change prototype to
1920 take a CORE_ADDR pointer and return an int.
1921 * target.c (update_current_target): Change to_stopped_data_address
1922 to match new prototype.
1923 (debug_to_stopped_data_address): Change appropriately.
1924 * breakpoint.c (bpstat_stop_status): Change call to
1925 target_stopped_data_address to use new prototype.
1926 * frv-tdep.c (frv_have_stopped_data_address): New function.
1927 (frv_stopped_data_address): Change to new prototype and
1928 functionality.
1929 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1930 prototype and functionality.
1931 (ia64_stopped_by_watchpoint): New function.
1932 * i386-nat.c (i386_stopped_data_address): Change to new
1933 prototype and functionality.
1934 (i386_stopped_by_watchpoint): New function.
1935 * remote.c (remote_stopped_data_address): Change to new prototype
1936 and functionality.
1937 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1938 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1939 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1940 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1941 new i386_stopped_by_watchpoint function.
1942 (i386_stopped_by_watchpoint): New prototype.
1943 (i386_stoppped_data_address): Change to new prototype.
1944 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1945 new ia64_stopped_by_watchpoint function.
1946 (ia64_stopped_by_watchpoint): New prototype.
1947 (ia64_stopped_data_address): Ditto.
1948
1949 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1950
1951 * ada-typeprint.c (ada_print_type): Use int_string for printing
1952 modulus of modular type.
1953 * ada-lang.h (ada_modulus): Change return type to unsigned.
1954 * ada-lang.c (ada_language_arch_info): Correct type of
1955 string_char_type.
1956 (ada_modulus): Return unsigned result.
1957 (ada_lookup_symbol): Remove user disambiguation and modify comment
1958 accordingly.
1959
1960 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1961
1962 Committed by Paul Hilfinger.
1963 * ada-lang.c (decode_packed_array): On big-endian targets,
1964 left-justify the value if it comes with a modular type.
1965
1966 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1967
1968 Committed by Paul Hilfinger.
1969 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1970 (is_name_suffix): Add support for "___JM" suffixes.
1971 (ada_check_typedef): Renames ada_completed_type.
1972 Update all users of CHECK_TYPEDEF, check_typedef, and
1973 ada_complete_type to call ada_check_typedef.
1974 * ada-typeprint.c: Likewise.
1975 * ada-valprint.c: Likewise.
1976
1977 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1978
1979 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1980
1981 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1982
1983 * MAINTAINERS: Update e-mail address.
1984
1985 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1986
1987 From Maciej W. Rozycki <macro@mips.com>:
1988 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1989 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1990
1991 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1992
1993 * m32r-tdep.c (decode_prologue): Support functions written
1994 in assembler language. Recognize trap instructions as the
1995 end of prologue.
1996 (m32r_frame_unwind_cache): Ditto.
1997 (m32r_skip_prologue): Extend search limit. Quit analyzing
1998 prologue if pc's location is not readable.
1999
2000 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2001
2002 * Makefile.in (.l.c): Do conversions of names of alloc and free
2003 functions that are done for .y.c files, plus special one
2004 for yy_flex_realloc. Also, correct missing-file tests here.
2005 * ada-lex.l (malloc, free): Remove macros.
2006 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2007 xrealloc.
2008 (ada_flex_use): Dummy definition to remove warnings about unused
2009 functions.
2010 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2011 to suppress warning.
2012
2013 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2014
2015 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2016 RETURN_VALUE.
2017 (sh_return_value_fpu): Ditto for CPUs with FPU.
2018 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2019 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2020 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2021 RETURN_VALUE functions.
2022
2023 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2024
2025 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2026 (sh_pseudo_register_write): Ditto.
2027
2028 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2029
2030 * sh-tdep.c (IS_MACL_STS): New define.
2031 (IS_MOVI20): Ditto.
2032 (IS_MACL_LDS): Ditto.
2033 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2034 instructions in prologue.
2035 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2036 instructions in epilogue.
2037
2038 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2039
2040 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2041 (sh_sh_register_name): Add eight empty register names.
2042 (sh_sh3_register_name): Ditto.
2043 (sh_sh3e_register_name): Ditto.
2044 (sh_sh2e_register_name): Ditto.
2045 (sh_sh2a_register_name): New function, defining SH2A register set.
2046 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2047 in nofpu case.
2048 (sh_sh_dsp_register_name): Add eight empty register names.
2049 (sh_sh3_dsp_register_name): Ditto.
2050 (sh_sh4_register_name): Ditto.
2051 (sh_sh4_nofpu_register_name): Ditto.
2052 (sh_sh4al_dsp_register_name): Ditto.
2053 (sh2a_show_regs): New function.
2054 (sh2a_nofpu_show_regs): New function.
2055 (sh_sh2a_register_type): New function.
2056 (do_bank_register_info): New function.
2057 (sh_print_pseudo_register): Call do_bank_register_info.
2058 Call sh_print_pseudo_register for valid "bank" register.
2059 (sh_sh2a_register_sim_regno): New function.
2060 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2061 Increment pseudo register count by one for all sh variants with
2062 pseudo registers to accomodate pseudo bank register.
2063 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2064 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2065 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2066 Increment pseudo register numbers.
2067
2068 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2069
2070 * dwarf2read.c (read_subroutine_type): Call make_function_type
2071 instead of lookup_function_type.
2072
2073 2004-10-05 Jim Blandy <jimb@redhat.com>
2074
2075 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2076 (Previous change missed some uses.)
2077
2078 2004-10-05 Andrew Cagney <cagney@gnu.org>
2079
2080 * target.h (deprecated_child_ops): Rename child_ops.
2081 * wince.c: Update copyright. Rename child_ops.
2082 * win32-nat.c: Rename child_ops.
2083 * target.c: Rename child_ops.
2084 * rs6000-nat.c: Rename child_ops.
2085 * linux-nat.c: Rename child_ops.
2086 * infttrace.c: Rename child_ops.
2087 * inftarg.c: Rename child_ops.
2088 * infptrace.c: Rename child_ops.
2089 * hppah-nat.c: Update copyright. Rename child_ops.
2090 * hpux-thread.c: Update copyright. Rename child_ops.
2091
2092 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2093
2094 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2095
2096 2004-10-05 Andrew Cagney <cagney@gnu.org>
2097
2098 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2099
2100 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2101
2102 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2103 (die_ref_table): Remove.
2104 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2105 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2106 the usage of this type.
2107 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2108 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2109 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2110 (dwarf2_create_include_psymtab): Update comment.
2111 (find_partial_die): Remove third argument. Remove unreachable call
2112 to error ().
2113 (dwarf2_find_containing_comp_unit): Update comments. Change one
2114 assertion to an error. Remove an unreachable error.
2115 (dwarf2_find_comp_unit): Update comments.
2116 (type_at_offset): Remove dead code.
2117 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2118 (store_in_ref_table): Add CU argument.
2119 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2120 inter-compilation-unit references.
2121 (load_full_comp_unit, process_full_comp_unit): New functions, based
2122 on psymtab_to_symtab_1.
2123 (psymtab_to_symtab_1): Use them.
2124 (dwarf2_add_dependence): New function.
2125 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2126 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2127 (partial_die_parent_scope, guess_structure_name): Update for changes
2128 to find_partial_die.
2129 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2130 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2131 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2132 (read_die_and_children): Update call to store_in_ref_table.
2133 (do_free_die_list_cleanup): Remove.
2134 (fixup_partial_die): Update for changes to find_partial_die.
2135 (read_full_die): Handle queueing absolute references.
2136 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2137 (dwarf2_attr, die_specification, die_type)
2138 (die_containing_type, dwarf2_extension): Update calls to
2139 follow_die_ref.
2140 (dump_die): Update DW_FORM_ref* handling.
2141 (dwarf2_get_ref_die_offset): Likewise.
2142 (free_one_comp_unit): Release the dies list.
2143 (dwarf2_mark_helper): New function.
2144 (dwarf2_mark): Use it.
2145
2146 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2147
2148 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2149 when writing to memory.
2150
2151 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2152
2153 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2154 (m32r_extract_struct_value_address): Delete function.
2155 (m32r_return_value): New function.
2156 (m32r_gdbarch_init): Instead of store_return_value,
2157 extract_return_value, deprecated_extract_struct_value_address
2158 and deprecated_use_struct_convention, set return_value.
2159
2160 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2161
2162 * dwarf2read.c (read_subrange_type): Add comment for variable
2163 sized arrays.
2164
2165 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2166
2167 * Makefile.in (.l.c): Modify rule for compatibility with recent
2168 versions of flex, and remove most command-line options.
2169 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2170 options.
2171
2172 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2173
2174 Turn on initial Ada support (mainly expression evaluation).
2175
2176 * Makefile.in (SFILES): Remove ada-tasks.c.
2177 (HFILES_NO_SRCDIR): Add ada-lang.h.
2178 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2179 (YYOBJ): Add ada-exp.o.
2180 (rule .l.c): Generalize to not mention ada.
2181 * symtab.c: Include ada-lang.h.
2182 (symbol_natural_name, symbol_demangled_name)
2183 (symbol_search_name): Add Ada case.
2184
2185 2004-10-01 Andrew Cagney <cagney@gnu.org>
2186
2187 * Makefile.in (COMMON_OBS): Add inf-child.o.
2188 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2189 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2190 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2191 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2192 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2193 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2194 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2195 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2196 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2197 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2198 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2199 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2200 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2201
2202 * target.c (xfer_using_stratum): Change return type to LONGEST.
2203 On each iteration offset, readbuf and writebuf.
2204 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2205 partial_length, and read/modify/write predicate, update comments.
2206 Pass buffer.word to ptrace write.
2207
2208 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2209
2210 * symfile.c (init_filename_language_table): Add extensions for
2211 Ada.
2212 * defs.h (enum language): Add language_ada.
2213 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2214 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2215 (add_symbols_from_enclosing_procs): Make a no-op for now.
2216 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2217 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2218 (find_line_in_linetable, find_next_line_in_linetable)
2219 (read_all_symtabs, is_plausible_func_for_line)
2220 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2221 (is_runtime_sym_defined, check_size): Remove declaration.
2222 (function_name_from_pc, ada_translate_error_message)
2223 (ada_lookup_minimal_symbol): Remove definition.
2224 (ada_add_block_symbols): Remove useless label.
2225 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2226 useless declaration.
2227 (ada_is_exception_sym): Likewise.
2228
2229 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2230
2231 Add m32r-linux support.
2232 * configure.tgt: Add m32r*-*-linux*.
2233 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2234 and m32r-linux-tdep.c.
2235 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2236 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2237 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2238 m32r-linux-tdep.c.
2239 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2240 config/m32r/linux.mh, config/m32r/linux.mt,
2241 config/m32r/nm-linux.h: New files.
2242
2243 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2244
2245 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2246 (mips32_fetch_instruction): Remove, unused.
2247
2248 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2249
2250 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2251 conditions that will always be true.
2252
2253 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2254
2255 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2256 (vaxbsd_fetch_inferior_registers): Rename from
2257 fetch_inferior_registers. Make static.
2258 (vaxbsd_store_inferior_registers): Rename from
2259 store_inferior_registers. Make static.
2260 (_initialize_vaxbsd_nat): Construct and add target vector.
2261 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2262 inftarg.o. Add inf-child.o and inf-ptrace.o.
2263 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2264 inftarg.o. Add inf-child.o and inf-ptrace.o.
2265 (NAT_FILE): Remove.
2266 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2267 inftarg.o. Add inf-child.o and inf-ptrace.o.
2268 (NAT_FILE): Remove.
2269 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2270
2271 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2272 (m88kbsd_fetch_inferior_registers): Rename from
2273 fetch_inferior_registers. Make static.
2274 (m88kbsd_store_inferior_registers): Rename from
2275 store_inferior_registers. Make static.
2276 (_initialize_m88kbsd_nat): New prototype and function.
2277 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2278 inftarg.o. Add inf-child.o and inf-ptrace.o.
2279 (NAT_FILE): Remove.
2280 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2281
2282 2004-09-30 Andrew Cagney <cagney@gnu.org>
2283
2284 * target.c (target_xfer_partial): New function.
2285 (target_read_memory_partial, target_write_memory_partial)
2286 (default_xfer_partial, target_read_partial, target_write_partial)
2287 (xfer_using_stratum): Use.
2288 (debug_to_xfer_partial): Delete function.
2289 (setup_target_debug): Do not override to_xfer_partial.
2290
2291 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2292
2293 * fork-child.c: Update copyright year. Fix coding style.
2294
2295 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2296
2297 * defs.h (msavestring, mstrsave): Remove prototypes.
2298 * utils.c (msavestring, mstrsave): Remove functions.
2299 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2300 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2301 of mstrsave.
2302 * source.c (find_and_open_source): Use xstrdup instead of
2303 mstrsave.
2304
2305 2004-09-30 Andrew Cagney <cagney@gnu.org>
2306
2307 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2308 (inf_ptrace_xfer_memory): Delete.
2309 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2310 (target_read_memory, target_write_memory): Use xfer_using_stratum
2311 when target_xfer_partial_p.
2312 (debug_target): Move to start of file.
2313 (target_read_memory_partial, target_write_memory_partial): Use
2314 to_xfer_partial when target_xfer_partial_p.
2315
2316 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2317 inf_ptrace_xfer_memory with equivalent code.
2318 * inftarg.c (child_xfer_partial): When performing a write, pass
2319 writebuf to child_xfer_memory.
2320
2321 * target.c (target_read_string): Use target_read_memory instead of
2322 target_xfer_memory.
2323
2324 2004-09-29 Andrew Cagney <cagney@gnu.org>
2325
2326 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2327 the address of status.
2328
2329 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2330 (kill_inferior): Inline ptrace_wait call.
2331 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2332 * inftarg.c (child_wait): Inline ptrace_wait call.
2333
2334 * target.h (struct target_ops): Delete field to_post_wait.
2335 (target_post_wait): Delete macro.
2336 (child_post_wait): Delete declaration.
2337 * target.c (update_current_target, update_current_target)
2338 (debug_to_post_wait, setup_target_debug): Delete functions and
2339 references.
2340 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2341 * inftarg.c (child_post_wait): Delete.
2342 (init_child_ops): Do not set to_post_wait.
2343 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2344 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2345 * inf-child.c (inf_child_post_wait): Delete.
2346 (inf_child_target): Do not set to_post_wait.
2347 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2348 (inf_ptrace_target): Do not set to_post_wait.
2349
2350 * wince.c (child_ops): Delete.
2351 * win32-nat.c (child_ops): Delete.
2352
2353 * inftarg.c (inftarg_set_find_memory_regions)
2354 (inftarg_set_make_corefile_notes): Delete functions.
2355 (_initialize_linux_nat): Inline calls.
2356
2357 * target.h (child_ops): Declare.
2358 * inftarg.c (child_ops): Move from here ...
2359 * target.c (child_ops): ... to here.
2360 * wince.c (child_ops): Delete extern declaration.
2361 * win32-nat.c (child_ops): Delete extern declaration.
2362 * linux-nat.c (child_ops): Delete extern declaration.
2363 * hpux-thread.c (child_ops): Delete extern declaration.
2364
2365 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2366
2367 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2368
2369 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2370
2371 * configure.in: Only set host_makefile_frag when building a native
2372 debugger.
2373 * configure: Regenerate.
2374
2375 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2376 for OpenBSD ELF.
2377
2378 2004-09-28 Andrew Cagney <cagney@gnu.org>
2379
2380 Problem identified by Paul Hilfinger.
2381 * Makefile.in (ada_lex_c): Define.
2382 (ada-lex.o): Delete rule.
2383
2384 * linux-proc.c: Delete file.
2385 * Makefile.in: Update.
2386 * config/sparc/linux64.mh (NATDEPFILES):
2387 * config/sparc/linux.mh (NATDEPFILES): Update.
2388 * config/s390/s390.mh (NATDEPFILES): Update.
2389 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2390 * config/powerpc/linux.mh (NATDEPFILES): Update.
2391 * config/pa/linux.mh (NATDEPFILES): Update.
2392 * config/mips/linux.mh (NATDEPFILES): Update.
2393 * config/m68k/linux.mh (NATDEPFILES): Update.
2394 * config/ia64/linux.mh (NATDEPFILES): Update.
2395 * config/i386/linux64.mh (NATDEPFILES): Update.
2396 * config/i386/linux.mh (NATDEPFILES): Update.
2397 * config/arm/linux.mh (NATDEPFILES): Update.
2398 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2399 * linux-nat.c: Update copyright. Include <sys/param.h>,
2400 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2401 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2402 (O_LARGEFILE): Possibly define.
2403 (_initialize_linux_nat, linux_proc_pending_signals)
2404 (add_line_to_sigset, linux_proc_xfer_memory)
2405 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2406 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2407 (struct linux_corefile_thread_data)
2408 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2409 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2410
2411 2004-09-16 Andrew Cagney <cagney@gnu.org>
2412
2413 * lin-lwp.c: Delete file.
2414 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2415 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2416 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2417 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2418 (linux_nat_attach, detach_callback, linux_nat_detach)
2419 (resume_callback, resume_clear_callback, linux_nat_resume)
2420 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2421 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2422 (status_callback, running_callback, count_events_callback)
2423 (select_singlestep_lwp_callback, select_event_lwp_callback)
2424 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2425 (child_wait, stop_and_resume_callback, linux_nat_wait)
2426 (kill_callback, kill_wait_callback, linux_nat_kill)
2427 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2428 (linux_nat_xfer_memory, linux_nat_thread_alive)
2429 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2430 (_initialize_linux_nat): New functions.
2431 * Makefile.in: Update all dependencies.
2432 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2433 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2434 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2435 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2436 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2437 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2438 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2439 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2440 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2441 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2442 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2443 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2444 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2445
2446 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2447
2448 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2449 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2450
2451 * configure.in: Don't comment out NATDEPFILES in the generated
2452 Makefile if NAT_FILE is unset.
2453 * configure: Regenerate.
2454
2455 2004-09-27 Andrew Cagney <cagney@gnu.org>
2456
2457 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2458 (insert_step_resume_breakpoint): Delete.
2459 (insert_step_resume_breakpoint_at_frame): New function.
2460 (insert_step_resume_breakpoint_at_sal): New function.
2461 (handle_inferior_event, step_into_function)
2462 (insert_step_resume_breakpoint): Simplify by using same.
2463
2464 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2465
2466 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2467
2468 * fbsd-proc.c: Remove file.
2469 * Makefile.in (fbsd-proc.o): Remove dependency.
2470
2471 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2472 code together.
2473
2474 * config/i386/nm-fbsd64.h: Remove file.
2475 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2476
2477 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2478
2479 * amd64-nat.h: Update copyright year.
2480 (amd64bsd_target): New prototype.
2481 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2482 (amd64bsd_target): New function.
2483 (amd64bsd_fetch_inferior_registers): Rename from
2484 fetch_inferior_registers. Make static.
2485 (amd64bsd_store_inferior_registers): Rename from
2486 store_inferior_registers. Make static.
2487 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2488 (_initialize_amd64fbsd_nat): Construct and add target vector.
2489 * amd64nbsd-nat.o: Include "target.h".
2490 (_initialize_amd64nbsd_nat): Construct and add target vector.
2491 * amd64obsd-nat.c: Include "target.h".
2492 (_initialize_amd64obsd_nat): Construct and add target vector.
2493 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2494 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2495 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2496 fbsd-nat.o.
2497 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2498 Remove infptrace.o and inftarg.o. Add inf-child.o and
2499 inf-ptrace.o.
2500 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2501 (amd64obsd-nat.o): Update dependencies.
2502
2503 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2504
2505 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2506 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2507 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2508 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2509 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2510
2511 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2512 Inline attach call.
2513 (inf_ptrace_detach): Inline detach call.
2514
2515 * configure.in: Check for waddstr instead of mvwaddstr when
2516 searching for curses library. Check for wborder.
2517 * configure, config.in: Regenerate.
2518 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2519 available.
2520
2521 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2522
2523 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2524
2525 Committed by Andrew Cagney.
2526 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2527 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2528 configuration.
2529 (fetch_register_using_p): Implement 'p' packet. Based on code by
2530 Fernando Nasser.
2531 (remote_fetch_registers): Call fetch_register_using_p.
2532 (init_all_packet_configs, show_remote_cmd)
2533 (_initialize_remote): Add p-packet.
2534
2535 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2536
2537 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2538 instead of call_ptrace. Call wait directly instead of
2539 ptrace_wait.
2540 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2541 (inf_ptrace_wait): Inline ptrace_wait call.
2542
2543 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2544
2545 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2546 rolled back instead.
2547
2548 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2549
2550 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2551 the new argument order.
2552
2553 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2554
2555 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2556 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2557 (struct gdbarch_tdep): Remove.
2558 (struct xstormy16_frame_cache): New frame cache structure.
2559 (xstormy16_register_byte, xstormy16_register_raw_size)
2560 (xstormy16_reg_virtual_type, xstormy16_register_type)
2561 (xstormy16_push_arguments, xstormy16_push_return_address)
2562 (xstormy16_pop_frame, xstormy16_store_struct_return)
2563 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2564 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2565 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2566 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2567 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2568 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2569 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2570 (xstormy16_extract_return_value, xstormy16_store_return_value):
2571 Regcachify. Drop useless struct convention handling.
2572 (xstormy16_register_type, xstormy16_return_value)
2573 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2574 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2575 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2576 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2577 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2578 (xstormy16_unwind_dummy_id) : New functions.
2579 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2580 of xstormy16_scan_prologue.
2581 (xstormy16_frame_unwind): New frame_unwind structure.
2582 (xstormy16_frame_base): New frame_base structure.
2583 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2584 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2585
2586 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2587
2588 * language.c (language_gdbarch_post_init): Fix off-by one error.
2589
2590 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2591
2592 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2593 (struct dwarf2_offset_and_type): New.
2594 (set_die_type, reset_die_and_siblings_types, get_die_type)
2595 (offset_and_type_hash, offset_and_type_eq): New functions.
2596 (read_structure_type, read_enumeration_type, read_array_type)
2597 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2598 (read_tag_reference_type, read_tag_const_type)
2599 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2600 (read_typedef, read_base_type, read_subrange_type): Use
2601 set_die_type.
2602
2603 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2604
2605 * Makefile.in (dwarf2read.o): Update dependencies.
2606 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2607 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2608 and read_in_chain.
2609 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2610 mark, and has_form_ref_addr.
2611 (struct dwarf2_per_cu_data): New.
2612 (dwarf2_max_cache_age): New.
2613 (dwarf2_build_psymtabs_hard): Free cached compilation units
2614 after loading. Create and manage the list of compilation units.
2615 Remove unnecessary NULL initialization. Fix indentation.
2616 (psymtab_to_symtab_1): Initialize all of CU.
2617 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2618 (find_partial_die): Use dwarf2_find_containing_comp_unit
2619 and load_comp_unit.
2620 (free_stack_comp_unit): Update comments. Clear the per-cu
2621 pointer. Handle aging.
2622 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2623 (age_cached_comp_units, free_one_cached_comp_unit)
2624 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2625 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2626 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2627 (show_dwarf2_cmd): New.
2628 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2629 and "maint show dwarf2 max-cache-age".
2630 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2631 externs.
2632 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2633 global.
2634
2635 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2636
2637 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2638 and dwarf2_cu struct pointer as arguments. Change function to use
2639 obstack if provided and use dwarf2_cu to determine language-specific
2640 separator.
2641 (partial_die_parent_scope): Change comment to include java. Use
2642 new version of typename_concat instead of obconcat.
2643 (partial_die_full_name): Use typename_concat.
2644 (read_namespace): Ditto.
2645 (read_enumeration_type): Use typename_concat instead of obconcat.
2646 (new_symbol): Ditto.
2647 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2648 (guess_structure_name): Ditto.
2649 (read_subroutine_type): Ditto.
2650 (read_structure_type): Ditto.
2651 (is_vtable_name): Add Java support.
2652 (determine_class_name): Switch to new typename_concat call.
2653 (determine_prefix): Switch to new typename_concat call.
2654 * jv-exp.y (FuncStart): New pattern.
2655 (MethodInvocation): Add support for simple function calls. Change
2656 warning message for other forms of inferior call currently not
2657 supported.
2658 * valarith.c (value_subscript): Treat an array with upper-bound
2659 of -1 as unknown size.
2660
2661 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2662
2663 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2664 (lookup_partial_symtab): Use symtab_to_fullname.
2665
2666 2004-09-19 Jim Blandy <jimb@redhat.com>
2667
2668 * minsyms.c (lookup_minimal_symbol): Doc fix.
2669
2670 2004-09-20 Andrew Cagney <cagney@gnu.org>
2671
2672 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2673 CHILD_RESUME.
2674 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2675 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2676 KILL_INFERIOR.
2677 * infptrace.c: Update.
2678
2679 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2680
2681 * symtab.c (output_source_filename): Mark first argument as const.
2682 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2683 for "info sources" output.
2684
2685 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2686
2687 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2688 <machine/vmparam.h>.
2689 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2690 (register_u_addr): Remove prototype.
2691
2692 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2693
2694 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2695 (i386bsd_fetch_inferior_registers): Rename from
2696 fetch_inferior_registers. Make static.
2697 (i386bsd_store_inferior_registers): Rename from
2698 store_inferior_registers. Make static.
2699 (i386bsd_target): New function.
2700 * i386bsd-nat.h: New file.
2701 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2702 "i386bsd-nat.h".
2703 (i386fbsd_resume): Rename from child_resume. Make static.
2704 (_initialize_i386fbsd_nat): Construct and add target vector.
2705 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2706 (_initialize_i386nbsd_nat): Construct and add target vector.
2707 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2708 Remove defines.
2709 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2710 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2711 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2712 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2713 (LOADLIBES): New variable.
2714 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2715 inf-ptrace.o. Remove inftarg.o.
2716 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2717 inf-ptrace.o. Remove inftarg.o.
2718 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2719 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2720 (LOADLIBES): New variable.
2721 * Makefile.in (i386bsd_nat_h): New variable.
2722 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2723 dependencies.
2724
2725 * sparc64nbsd-tdep.c: Include "objfiles.h".
2726 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2727 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2728 svr4_lp64_fetch_link_map_offsets.
2729 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2730 "nbsd-tdep.h".
2731 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2732 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2733 svr4_lp64_fetch_link_map_offsets.
2734 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2735 dependencies.
2736
2737 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2738 * fbsd-nat.h: New file.
2739 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2740 (fbsd_nat_h): New variable.
2741 (fbsd-nat.o): New dependency.
2742
2743 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2744 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2745
2746 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2747 comment.
2748
2749 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2750
2751 * ada-exp.y (type_int): New function to add layer of abstraction
2752 around references to expression types.
2753 (type_long): Ditto.
2754 (type_long_long): Ditto.
2755 (type_float): Ditto.
2756 (type_double): Ditto.
2757 (type_long_double): Ditto.
2758 (type_char): Ditto.
2759 (type_system_address): Ditto.
2760 (simple_exp): Use type_* functions in place of builtin_*
2761 variables.
2762 (exp): Ditto.
2763 (write_var_from_name): Ditto.
2764 (write_object_renaming): Ditto.
2765 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2766 declaration.
2767 (build_ada_types): Remove, replacing with...
2768 (ada_language_arch_info): New function to initialize primitive
2769 type vector in language_arch_info.
2770 (ada_array_length): Remove use of builtin_type_ada_int.
2771 (value_pos_atr): Ditto.
2772 (ada_evaluate_subexp): Ditto.
2773 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2774 builtin_type_ada_long_long, builtin_type_ada_char,
2775 builtin_type_ada_float, builtin_type_ada_double,
2776 builtin_type_ada_long_double, builtin_type_ada_natural,
2777 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2778 (ada_builtin_types): Remove.
2779 (ada_language_defn): Remove entries for la_builtin_type_vector and
2780 string_char_type and use ada_language_arch_info.
2781 (_initialize_ada_language): Do type-vector initialization along
2782 the lines of c-lang.c.
2783 (ada_create_fundamental_type): Break up line.
2784 (ada_dump_symtab): Remove unused function.
2785 (enum ada_primitive_types): Define.
2786 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2787 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2788 builtin_type_ada_float, builtin_type_ada_double,
2789 builtin_type_ada_long_double, builtin_type_ada_natural,
2790 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2791 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2792 (processInt): Ditto.
2793 (processReal): Ditto.
2794 (name_lookup): Ditto.
2795 * ada-typeprint.c (print_range): Use builtin_type_int, not
2796 builtin_type_ada_int.
2797
2798 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2799
2800 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2801
2802 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2803 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2804 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2805 * configure.in: Improve checks for curses library by checking for
2806 mvwaddstr instead of initscr. Drop HP curses in favour of
2807 standard curses on HP-UX.
2808 * configure: Regenerated.
2809
2810 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2811
2812 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2813 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2814 Minor formatting changes.
2815 (empty_array): Slight rewrite for formatting.
2816 (emit_char,parse,ada_language_defn,build_ada_types,
2817 ada_is_exception_sym, _initialize_ada_language): Move
2818 definitions around.
2819 (ada_dump_symtab): Remove unused definition.
2820 (ada_maybe_exception_partial_symbol): Remove unused definition.
2821
2822 2004-09-16 Andrew Cagney <cagney@gnu.org>
2823
2824 * inf-child.c: Include "gdb_string.h".
2825 (inf_child_core_file_to_sym_file): Delete.
2826 (inf_child_target): Set to_fetch_registers and to_store_registers.
2827 * inf-ptrace.c: Include "gdb_string.h".
2828 * Makefile.in: Update all dependencies.
2829
2830 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2831 problem.
2832
2833 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2834
2835 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2836 call to heuristic_proc_desc. Remove code that became redundant
2837 as a consequence.
2838 (read_next_frame_reg): Remove special case for SP_REGNUM.
2839 (set_reg_offset): Fix small typo.
2840 (reset_saved_regs): New procedure.
2841 (mips32_heuristic_proc_desc): No longer compute a fake
2842 procedure descriptor. Compute the full frame cache instead.
2843 Some minor comment reformatting.
2844
2845 2004-09-14 Andrew Cagney <cagney@gnu.org>
2846
2847 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2848 maintainer.
2849
2850 * thread-db.c (thread_db_new_objfile): Assume that there is a
2851 child process.
2852
2853 2004-09-13 Jim Blandy <jimb@redhat.com>
2854
2855 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2856 so that its storage isn't referenced after its lifetime ends.
2857
2858 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2859 and never assigned to. Delete it, and the 'if (use_buffer)'
2860 clauses. Delete 'raw_buffer', since it is now unused.
2861
2862 2004-09-13 Andrew Cagney <cagney@gnu.org>
2863
2864 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2865 * configure: Re-generate.
2866 * nlm/Makefile.in (TAGS): Update.
2867 * Makefile.in (TAGS): Update.
2868 * config/vax/nbsd.mt (TM_FILE): Update.
2869 * config/sparc/vxworks.mt (TM_FILE): Update.
2870 * config/sparc/sol2.mt (TM_FILE): Update.
2871 * config/sparc/sol2-64.mt (TM_FILE): Update.
2872 * config/sparc/obsd64.mt (TM_FILE): Update.
2873 * config/sparc/obsd.mt (TM_FILE): Update.
2874 * config/sparc/nbsd64.mt (TM_FILE): Update.
2875 * config/sparc/nbsd.mt (TM_FILE): Update.
2876 * config/sparc/linux64.mt (TM_FILE): Update.
2877 * config/sparc/linux.mt (TM_FILE): Update.
2878 * config/sparc/fbsd.mt (TM_FILE): Update.
2879 * config/sh/wince.mt (TM_FILE): Update.
2880 * config/sh/nbsd.mt (TM_FILE): Update.
2881 * config/sh/linux.mt (TM_FILE): Update.
2882 * config/sh/embed.mt (TM_FILE): Update.
2883 * config/s390/s390.mt (TM_FILE): Update.
2884 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2885 * config/rs6000/rs6000.mt (TM_FILE): Update.
2886 * config/rs6000/aix4.mt (TM_FILE): Update.
2887 * config/powerpc/vxworks.mt (TM_FILE): Update.
2888 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2889 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2890 * config/powerpc/obsd.mt (TM_FILE): Update.
2891 * config/powerpc/nbsd.mt (TM_FILE): Update.
2892 * config/powerpc/linux.mt (TM_FILE): Update.
2893 * config/powerpc/aix.mt (TM_FILE): Update.
2894 * config/pa/obsd.mt (TM_FILE): Update.
2895 * config/pa/linux.mt (TM_FILE): Update.
2896 * config/pa/hppahpux.mt (TM_FILE): Update.
2897 * config/pa/hppa64.mt (TM_FILE): Update.
2898 * config/pa/hppa.mt (TM_FILE): Update.
2899 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2900 * config/mips/wince.mt (TM_FILE): Update.
2901 * config/mips/vxmips.mt (TM_FILE): Update.
2902 * config/mips/nbsd.mt (TM_FILE): Update.
2903 * config/mips/linux.mt (TM_FILE): Update.
2904 * config/mips/irix6.mt (TM_FILE): Update.
2905 * config/mips/irix5.mt (TM_FILE): Update.
2906 * config/mips/embed.mt (TM_FILE): Update.
2907 * config/m68k/vxworks68.mt (TM_FILE): Update.
2908 * config/m68k/st2000.mt (TM_FILE): Update.
2909 * config/m68k/os68k.mt (TM_FILE): Update.
2910 * config/m68k/obsd.mt (TM_FILE): Update.
2911 * config/m68k/nbsd.mt (TM_FILE): Update.
2912 * config/m68k/monitor.mt (TM_FILE): Update.
2913 * config/m68k/linux.mt (TM_FILE): Update.
2914 * config/m68k/cisco.mt (TM_FILE): Update.
2915 * config/ia64/linux.mt (TM_FILE): Update.
2916 * config/ia64/aix.mt (TM_FILE): Update.
2917 * config/ia64/ia64.mt (TM_FILE): Update.
2918 * config/i386/vxworks.mt (TM_FILE): Update.
2919 * config/i386/obsd64.mt (TM_FILE): Update.
2920 * config/i386/obsd.mt (TM_FILE): Update.
2921 * config/i386/nto.mt (TM_FILE): Update.
2922 * config/i386/nbsd64.mt (TM_FILE): Update.
2923 * config/i386/nbsd.mt (TM_FILE): Update.
2924 * config/i386/linux64.mt (TM_FILE): Update.
2925 * config/i386/linux.mt (TM_FILE): Update.
2926 * config/i386/i386sol2.mt (TM_FILE): Update.
2927 * config/i386/i386lynx.mt (TM_FILE): Update.
2928 * config/i386/fbsd64.mt (TM_FILE): Update.
2929 * config/i386/fbsd.mt (TM_FILE): Update.
2930 * config/i386/cygwin.mt (TM_FILE): Update.
2931 * config/h8300/h8300.mt (TM_FILE): Update.
2932 * config/frv/frv.mt (TM_FILE): Update.
2933 * config/cris/cris.mt (TM_FILE): Update.
2934 * config/arm/wince.mt (TM_FILE): Update.
2935 * config/arm/nbsd.mt (TM_FILE): Update.
2936 * config/arm/linux.mt (TM_FILE): Update.
2937 * config/arm/embed.mt (TM_FILE): Update.
2938 * config/alpha/nbsd.mt (TM_FILE): Update.
2939 * config/alpha/fbsd.mt (TM_FILE): Update.
2940 * config/alpha/alpha.mt (TM_FILE): Update.
2941 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2942 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2943
2944 Eliminate event_loop_p, always has the value 1.
2945 * defs.h (event_loop_p): Delete macro.
2946 * breakpoint.c (until_break_command): Simplify.
2947 * utils.c (prompt_for_continue): Simplify.
2948 * tracepoint.c (read_actions): Simplify.
2949 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2950 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2951 (set_prompt, init_main): Simplify.
2952 (init_signals, disconnect): Delete, unused.
2953 * remote.c (remote_async_resume)
2954 (extended_remote_async_create_inferior): Simplify.
2955 * mi/mi-interp.c (mi_input): Delete, unused.
2956 (mi_interpreter_resume, mi_command_loop): Simplify.
2957 * interps.c (current_interp_command_loop): Simplify.
2958 * infrun.c (proceed): Simplify.
2959 * infcmd.c (run_command, continue_command, step_1, jump_command)
2960 (until_command, advance_command, finish_command)
2961 (interrupt_target_command): Simplify.
2962 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2963
2964 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2965 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2966 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2967 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2968 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2969 * mips-tdep.c (mips_dump_tdep): Do not print same.
2970
2971 2004-09-12 Andrew Cagney <cagney@gnu.org>
2972
2973 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2974 const.
2975 * Makefile.in (valprint.o): Delete explict rule.
2976
2977 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2978 reported by Dave Anderson.
2979
2980 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2981
2982 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2983
2984 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2985 Andrew Cagney <cagney@gnu.org>
2986
2987 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2988 (mi_cmd_data_list_register_values)
2989 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2990 the register number computation.
2991
2992 2004-09-12 Andrew Cagney <cagney@gnu.org>
2993
2994 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2995 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2996 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2997 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2998 target.
2999 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3000 inf-ptrace.o and inf-child.o.
3001 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3002 * Makefile.in: Update dependencies.
3003
3004 2004-09-11 Andrew Cagney <cagney@gnu.org>
3005
3006 * language.c (hex_string, hex_string_custom): Move from here ...
3007 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3008 (CELLSIZE): Increase to 50.
3009 * language.h (hex_string, hex_string_custom): Move from here ...
3010 * defs.h: ... to here.
3011 * Makefile.in: Update all dependencies.
3012
3013 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3014
3015 * language.c (local_hex_format_custom): Remove.
3016 (local_hex_string): Rename to hex_string, use C format, and move to
3017 utils.c
3018 (local_hex_string_custom): Rename to hex_string_custom and change
3019 interface. Now uses C format. Move to utils.c
3020 (local_octal_format_custom): Remove.
3021 (local_decimal_format_custom): Remove.
3022 (unknown_language_defn): Remove language-specific number
3023 formatting entries.
3024 (auto_language_defn): Ditto.
3025 (local_language_defn): Ditto.
3026 * language.h (struct language_format_info): Delete declaration.
3027 (struct language_defn): Remove language_format_info fields
3028 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3029 (local_binary_format): Remove macro.
3030 (local_binary_format_prefix): Remove macro.
3031 (local_binary_format_specifier): Remove macro.
3032 (local_binary_format_suffix): Remove macro.
3033 (local_octal_format): Remove macro.
3034 (local_octal_format_prefix): Remove macro.
3035 (local_octal_format_specifier): Remove macro.
3036 (local_octal_format_suffix): Remove macro.
3037 (local_decimal_format): Remove macro.
3038 (local_decimal_format_prefix): Remove macro.
3039 (local_decimal_format_specifier): Remove macro.
3040 (local_decimal_format_suffix): Remove macro.
3041 (local_hex_format): Remove macro.
3042 (local_hex_format_prefix): Remove macro.
3043 (local_hex_format_specifier): Remove macro.
3044 (local_hex_format_suffix): Remove macro.
3045 (local_decimal_format_custom): Remove.
3046 (local_octal_format_custom): Remove.
3047 (local_hex_format_custom): Remove.
3048 (local_hex_string): Rename to hex_string and move to defs.h.
3049 (local_hex_string_custom): Rename to hex_string_custom, change
3050 interface, and move to defs.h.
3051 * utils.c: (int_string): New function.
3052 (hex_string): New function (from language.c).
3053 (hex_string_custom): New function (from language.c).
3054 (octal2str): New function.
3055 (decimal2str): Add width parameter.
3056 (paddr_u): Use new decimal2str interface.
3057 (paddr_d): Ditto.
3058 * defs.h (hex_string): Declare.
3059 (hex_string_custom): Declare.
3060 (int_string): Declare.
3061 * printcmd.c (print_scalar_formatted): Remove localized binary
3062 formatting.
3063 * valprint.c (print_longest): Use int_string.
3064 (print_floating): Use C hex format.
3065 (print_hex_chars): Ditto.
3066 (print_binary_chars): Remove language-specific formatting.
3067 (print_octal_chars): Use C octal format.
3068 (print_decimal_chars): Delocalize format.
3069 (print_decimal): Remove.
3070 * ada-lang.c (ada_language_defn): Remove language-specific number
3071 formatting entries.
3072 * p-lang.c (pascal_language_defn): Ditto.
3073 * c-lang.c (c_language_defn): Ditto.
3074 (cplus_language_defn): Ditto.
3075 (asm_language_defn): Ditto.
3076 (minimal_language_defn): Ditto.
3077 * f-lang.c (f_language_defn): Ditto.
3078 * jv-lang.c (java_language_defn): Ditto.
3079 * m2-lang.c (m2_language_defn): Ditto.
3080 * scm-lang.c (scm_language_defn): Ditto.
3081 * objc-lang.c (objc_language_defn): Ditto.
3082 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3083 new interface.
3084 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3085 * ui-out.c (ui_out_field_core_addr): Ditto.
3086 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3087 * exec.c (print_section_info): Ditto.
3088 * i387-tdep.c (print_i387_status_word): Ditto.
3089 (print_i387_control_word): Ditto.
3090 (i387_print_float_info): Ditto.
3091 * maint.c (maint_print_section_info): Ditto.
3092 * solib.c (info_sharedlibrary_command): Ditto.
3093 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3094 * symtab.c (print_msymbol_info): Ditto.
3095 * tracepoint.c (tracepoints_info): Ditto.
3096 * solib-frv.c (lm_base): Ditto.
3097 (frv_current_sos): Ditto.
3098 (enable_break2): Ditto.
3099 (enable_break): Ditto.
3100 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3101 (process_one_symbol): Ditto.
3102 * infcmd.c (program_info): Ditto.
3103 * mdebugread.c (parse_partial_symbols): Ditto.
3104 * symfile.c (add_symbol_file_command): Ditto.
3105 * cli/cli-cmds.c (edit_command): Ditto.
3106 (list_command): Ditto.
3107 * infcall.c (call_function_by_hand): Ditto.
3108 * remote-vx.c (vx_run_files_info): Ditto.
3109 (vx_wait): Ditto.
3110 (vx_attach): Ditto.
3111 (vx_detach): Ditto.
3112 (vx_kill): Ditto.
3113 * aix-thread.c (pdc_symbol_addrs): Ditto.
3114 (pdc_read_regs): Ditto.
3115 (pdc_write_regs): Ditto.
3116 (pdc_read_data): Ditto.
3117 (pdc_write_data): Ditto.
3118 * d10v-tdep.c (display_trace): Ditto.
3119 * rs6000-nat.c (find_toc_address): Ditto.
3120 * aix-thread.c: Don't include language.h.
3121 * buildsym.c: Ditto.
3122 * dbxread.c: Ditto.
3123 * mdebugread.c: Ditto.
3124 * rs6000-nat.c: Ditto.
3125 * buildsym.c (make_blockvector): Use renamed hex_string.
3126
3127 2004-09-10 Jason Molenda (jmolenda@apple.com)
3128
3129 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3130 chars after 'if' or 'while' commands in user-defined commands.
3131
3132 2004-09-08 Jim Blandy <jimb@redhat.com>
3133
3134 Fix bug reported and analyzed by Olivier Crete:
3135 * symfile.c (copy_section_addr_info): New function.
3136 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3137 original set of address arguments, instead of handwritten code
3138 that uses one length to allocate and a different length to
3139 initialize. Use make_cleanup_free_section_addr_info.
3140 * symfile.h (copy_section_addr_info): New declaration.
3141 * utils.c: #include "symfile.h".
3142 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3143 New functions.
3144 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3145 * Makefile.in (utils.o): Update dependencies.
3146
3147 2004-09-08 Andrew Cagney <cagney@gnu.org>
3148
3149 * thread-db.c (keep_thread_db): Delete.
3150 (thread_db_new_objfile, thread_db_create_inferior)
3151 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3152
3153 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3154
3155 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3156 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3157 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3158 (i386_frameless_signal_p): Remove prototype.
3159 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3160 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3161 I386_SSE_NUM_REGS.
3162 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3163 instead of FP0_REGNUM.
3164 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3165 of FP0_REGNUM and FPC_REGNUM.
3166
3167 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3168 (sunos_solib_create_inferior_hook): Don't call
3169 sunos_relocate_main_executable.
3170
3171 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3172 solib_svr4_fetch_link_map_offsets to
3173 svr4_ilp32_fetch_link_map_offsets.
3174 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3175 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3176 svr4_ilp32_fetch_link_map_offsets.
3177 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3178
3179 2004-09-07 Jim Blandy <jimb@redhat.com>
3180
3181 * frame.h (frame_register): Doc fix.
3182
3183 2004-09-07 Andrew Cagney <cagney@gnu.org>
3184
3185 * vx-share/wait.h: Delete #ifdef USG.
3186 * utils.c (request_quit): Ditto.
3187 * tui/tui.c (tui_reset): Ditto.
3188 * remote.c: Ditto.
3189 * remote-sds.c: Ditto.
3190 * remote-rdi.c: Ditto.
3191 * mdebugread.c: Ditto.
3192 * m68klinux-nat.c: Ditto.
3193 * infttrace.c: Ditto.
3194 * infptrace.c: Ditto.
3195 * i386v-nat.c: Ditto.
3196 * exec.c: Ditto.
3197 * dbxread.c: Ditto.
3198 * core-aout.c: Ditto.
3199
3200 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3201
3202 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3203 heuristic_proc_desc.
3204 (mips_insn32_frame_cache): Likewise.
3205
3206 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3207
3208 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3209 left behind by error.
3210
3211 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3212
3213 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3214 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3215
3216 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3217
3218 * config/rs6000/xm-aix4.h: Remove this file.
3219 * config/rs6000/aix4.mh (XM_FILE): Delete.
3220
3221 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3222
3223 * config/rs6000/xm-rs6000.h: Remove this file.
3224 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3225
3226 2004-09-03 Andrew Cagney <cagney@gnu.org>
3227
3228 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3229 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3230 only use.
3231
3232 * mips-tdep.c (temp_saved_regs): Delete.
3233 (set_reg_offset): Replace saved_regs parameter with this_cache.
3234 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3235 (mips32_heuristic_proc_desc): Add this_cache parameter.
3236 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3237 (after_prologue): Pass a NULL this_cache.
3238
3239 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3240 non-kernel trap prologues.
3241
3242 * mips-tdep.c (find_proc_desc): Delete function.
3243 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3244 simplify.
3245 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3246 mips_insn32_frame_cache.
3247
3248 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3249 Simplify as NEXT_FRAME is NULL.
3250 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3251
3252 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3253 local variable.
3254 (mips_skip_prologue): Update.
3255
3256 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3257 "cur_frame" parameter.
3258 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3259 (mips_insn32_frame_cache, find_proc_desc): Update
3260
3261 * config/vax/nm-obsd.h: Delete file.
3262 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3263 * config/vax/nm-nbsd.h: Delete file.
3264 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3265 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3266 * config/sh/nm-nbsd.h: Delete file.
3267 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3268 * config/rs6000/nm-rs6000ly.h: Delete file.
3269 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3270 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3271 * config/powerpc/nm-obsd.h: Delete file.
3272 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3273 * config/powerpc/nm-nbsd.h: Delete file.
3274 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3275 * config/pa/nm-obsd.h: Delete file.
3276 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3277 * config/mips/nm-nbsd.h: Delete file.
3278 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3279 * config/m88k/nm-obsd.h: Delete file.
3280 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3281 * config/m68k/nm-nbsd.h: Delete file.
3282 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3283 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3284 * config/i386/nm-nbsd.h: Delete file.
3285 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3286 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3287 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3288 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3289 * config/i386/nm-i386lynx.h: Delete file.
3290 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3291 * config/arm/nm-nbsd.h: Delete file.
3292 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3293 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3294
3295 * config/i386/tm-fbsd.h: Delete file.
3296 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3297 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3298
3299 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3300 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3301 * config/rs6000/aix4.mt (TM_FILE): Set to
3302 config/rs6000/tm-rs6000.h.
3303 * config/powerpc/tm-ppc-aix.h: Delete file.
3304 * config/powerpc/aix.mt (TM_FILE): Set to
3305 config/rs6000/tm-rs6000.h.
3306 * config/m68k/tm-linux.h: Delete file.
3307 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3308 * config/i386/tm-linux64.h: Delete file.
3309 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3310 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3311
3312 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3313 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3314 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3315 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3316 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3317 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3318 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3319 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3320 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3321
3322 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3323 gdb_host_cpu.
3324
3325 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3326
3327 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3328 Minor reformatting. Some code factoring.
3329
3330 2004-09-02 Andrew Cagney <cagney@gnu.org>
3331
3332 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3333 * config/vax/tm-nbsd.h: Delete file.
3334 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3335 * config/sparc/tm-vxworks.h: Delete file.
3336 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3337 * config/sparc/tm-nbsd.h: Delete file.
3338 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3339 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3340 * config/sparc/tm-linux.h: Delete file.
3341 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3342 * config/s390/tm-linux.h: Delete file.
3343 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3344 * config/pa/tm-bsd.h: Delete file.
3345 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3346 * config/m68k/tm-obsd.h: Delete file.
3347 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3348 * config/m68k/tm-nbsd.h: Delete file.
3349 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3350 * config/i386/tm-vxworks.h: Delete file.
3351 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3352 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3353 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3354 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3355 * config/i386/tm-nbsd.h: Delete file.
3356 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3357 * config/i386/tm-i386lynx.h: Delete file.
3358 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3359 * config/cris/tm-cris.h: Delete file.
3360
3361 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3362 * configure: Re-generate.
3363 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3364 * config/arm/tm-nbsd.h: Delete file.
3365
3366 * config/powerpc/tm-ppcle-sim.h: Delete.
3367 * config/powerpc/tm-ppcle-eabi.h: Delete.
3368 * config/powerpc/tm-nbsd.h: Delete.
3369 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3370 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3371 tm-ppcle-eabi.h.
3372
3373 * config/i386/nto.mh (NAT_FILE): Delete.
3374 * config/i386/nm-nto.h: Delete.
3375
3376 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3377 * config/m68k/tm-os68k.h: Ditto.
3378 * config/m68k/tm-monitor.h: Ditto.
3379 * config/m68k/tm-cisco.h: Ditto.
3380 * config/m68k/st2000.mt (TM_FILE): Delete.
3381 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3382 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3383 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3384 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3385
3386 * config/m68k/tm-st2000.h: Delete.
3387 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3388 * config/sparc/fbsd.mt (TM_FILE): Delete.
3389 * config/sparc/tm-fbsd.h: Delete.
3390
3391 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3392 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3393 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3394
3395 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3396 GDB_TM_FILE and GDB_XM_FILE.
3397 * gdbarch.c: Re-generate.
3398 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3399 quotes in macro definition.
3400 * configure.in: Re-generate.
3401
3402 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3403 validating architecture methods.
3404 * gdbarch.c: Re-generate.
3405
3406 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3407 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3408 GDB_MULTI_ARCH_PARTIAL.
3409 * gdbarch.h: Re-generate.
3410
3411 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3412 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3413 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3414 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3415 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3416 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3417 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3418 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3419 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3420 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3421 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3422 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3423
3424 2004-09-01 Andrew Cagney <cagney@gnu.org>
3425
3426 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3427 and main_func_highpc.
3428 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3429 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3430 * nlmread.c (nlm_symfile_read): Update.
3431
3432 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3433
3434 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3435 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3436 (find_proc_desc): Remove dead code.
3437
3438 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3439
3440 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3441
3442 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3443
3444 * observer.sh: Add struct so_list declaration.
3445 * Makefile.in: Add dependencies on observer.h for solib.c and
3446 breakpoint.c.
3447 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3448 function.
3449 (_initialize_breakpoint): Register
3450 disable_breakpoints_in_unloaded_shlib as an observer of the
3451 "solib unloaded" observation event.
3452 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3453 call decode_line_1 so unfound breakpoint errors are silent.
3454 * solib.c (update_solib_list): When a solib is discovered to have
3455 been unloaded by the program, notify all observers of the
3456 "solib unloaded" observation event.
3457
3458 2004-09-01 Andrew Cagney <cagney@gnu.org>
3459
3460 * frame.c: Include "objfiles.h".
3461 (inside_main_func): New function.
3462 (get_prev_frame): Use new inside_main_func.
3463 * Makefile.in (frame.o): Update dependencies.
3464 * defs.h (inside_main_func): Delete declaration.
3465 * blockframe.c (inside_main_func): Delete function.
3466
3467 2004-08-31 Jim Blandy <jimb@redhat.com>
3468
3469 * dwarf2read.c (is_vtable_name): New function, based on logic from
3470 read_structure_type, but passing the correct length to strncmp,
3471 and using 'sizeof' instead of 'strlen'.
3472 (read_structure_type): Call it.
3473
3474 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3475
3476 * config/powerpc/aix.mh: Add comment.
3477
3478 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3479
3480 * MAINTAINERS: Add self to Write-After-Approval.
3481
3482 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3483
3484 * MAINTAINERS: Add self to Write-After-Approval.
3485
3486 2004-08-30 Andrew Cagney <cagney@gnu.org>
3487
3488 Fix PR breakpoints/1757.
3489 * infrun.c (struct execution_control_state): Replace
3490 remove_breakpoints_on_following_step with
3491 step_after_step_resume_breakpoint.
3492 (init_execution_control_state): Update.
3493 (handle_inferior_event): For signals, when stepping off a
3494 breakpoint, set step_after_step_resume_breakpoint. When
3495 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3496 (keep_going): Delete code handling
3497 remove_breakpoints_on_following_step.
3498
3499 2004-08-29 David Lecomber <david@streamline-computing.com>
3500
3501 Fix PR gdb/648
3502 * language.h (enum array_ordering): New enum.
3503 * language.h (struct language_defn): New la_array_ordering
3504 attribute.
3505 * language.c (unknown_language_defn, auto_language_defn)
3506 (local_language_defn): Ditto.
3507 * ada-lang.c (ada_language_defn): Ditto.
3508 * c-lang.c (c_language_defn, cplus_language_defn)
3509 (asm_language_defn, minimal_language_defn): Ditto.
3510 * f-lang.c (f_language_defn): Ditto.
3511 * jv-lang.c (java_language_defn): Ditto.
3512 * m2-lang.c (f_language_defn): Ditto.
3513 * objc-lang.c (objc_language_defn): Ditto.
3514 * p-lang.c (pascal_language_defn): Ditto.
3515 * scm-lang.c (scm_language_defn): Ditto.
3516 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3517 oriented large to small in type structure.
3518 * dwarf2read.c (read_array_order): New function.
3519 (read_array_type): Use read_array_order to check row/column
3520 major ordering.
3521
3522 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3523
3524 * target.c (target_resize_to_sections): Check
3525 current_target.to_sections for an old value when updating.
3526
3527 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3528
3529 * procfs.c (dbx_link_bpt_addr): New static global variable.
3530 (dbx_link_shadow_contents): New static global variable.
3531 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3532 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3533 if we just hit it.
3534 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3535 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3536 from run to run.
3537 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3538 after the inferior has been forked.
3539 (remove_dbx_link_breakpoint): New function.
3540 (dbx_link_addr): New function.
3541 (insert_dbx_link_bpt_in_file): New function.
3542 (insert_dbx_link_bpt_in_region): New function.
3543 (insert_dbx_link_breakpoint): New function.
3544 (proc_trace_syscalls_1): New function, extracted from
3545 proc_trace_syscalls.
3546 (proc_trace_syscalls): Replace extract code by call to
3547 proc_trace_syscalls_1.
3548 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3549 is no longer valid.
3550
3551 2004-08-25 Jim Blandy <jimb@redhat.com>
3552
3553 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3554
3555 2004-08-25 Andrew Cagney <cagney@gnu.org>
3556
3557 * infrun.c (struct execution_control_state): Delete field
3558 "stepping_through_sigtramp".
3559 (init_execution_control_state): Do not set same.
3560 (context_switch): Do not pass same to save_infrun_state and
3561 load_infrun_state.
3562 * gdbthread.h (struct thread_info): Delete field
3563 stepping_through_sigtramp.
3564 (save_infrun_state, load_infrun_state): Delete parameter
3565 stepping_through_sigtramp.
3566 * thread.c (load_infrun_state, save_infrun_state): Update.
3567
3568 * infrun.c: Re-indent. Move expression operators to the beginning
3569 of the line. Remove long disabled #if 0 code.
3570
3571 2004-08-24 Andrew Cagney <cagney@gnu.org>
3572
3573 * doublest.h (floatformat_ieee_quad): Rename
3574 floatformat_ia64_quad.
3575 * doublest.c (floatformat_ieee_quad): Rename
3576 floatformat_ia64_quad.
3577 (_initialize_doublest): Update.
3578
3579 2004-08-24 Jim Blandy <jimb@redhat.com>
3580
3581 * dwarf2expr.h (struct dwarf_expr_context): New members
3582 'num_pieces' and 'pieces', for returning the result of an
3583 expression that uses DW_OP_piece.
3584 (struct dwarf_expr_piece): New struct type.
3585 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3586 pieces.
3587 (free_dwarf_expr_context): Free pieces, if any.
3588 (add_piece): New function.
3589 (execute_stack_op): Implement DW_OP_piece.
3590 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3591 expression is a list of pieces, print an error message.
3592 (dwarf2_loc_desc_needs_frame): If the expression yields
3593 pieces, and any piece is in a register, then we need a frame.
3594
3595 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3596 the stack until we've decided what sort of result the evaluation
3597 has produced. Use separate variables, with more specific names.
3598
3599 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3600
3601 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3602 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3603 (arm_netbsd_init_abi_common): Register them.
3604
3605 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3606
3607 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3608
3609 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3610 safe_frame_unwind_memory instead of target_read_memory.
3611
3612 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3613 Reorder includes.
3614 (fetch_register, store_register): Remove prototypes.
3615 (child_resume): Reorganize code and comments such that it is
3616 grouped a bit more logically.
3617 (attach): Explicitly compare errno against 0.
3618 (detach): Likewise. Use perror_with_name instead of
3619 print_sys_errmsg.
3620 * Makefile.in (infptrace.o): Update dependencies.
3621
3622 * ia64-linux-nat.c: Update copyright year.
3623 (fetch_debug_register, store_debug_register)
3624 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3625 PTRACE_TYPE_ARG3.
3626 * config/ia64/nm-linux.h: Update copyright year.
3627 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3628
3629 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3630 from CORE_ADDR to struct frame_info *. Use
3631 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3632 (amd64_linux_sigtramp_p): Adjust for changed signature of
3633 and64_linux_sigtramp_start
3634
3635 * gdb_ptrace.h: GNU/Linux.
3636
3637 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3638 Remove defines.
3639
3640 * infptrace.c: Include "gdb_assert.h".
3641 (PTRACE_XFER_TYPE): Remove define.
3642 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3643 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3644 Tweak comment.
3645 (fetch_inferior_registers, store_inferior_registers): Remove
3646 redundant culry braces. Tweak comment. s/regno/regnum.
3647 * Makefile.in (infptrace.o): Update dependencies.
3648
3649 * configure.in: Change test for return type of ptrace to default
3650 to `long' instead of `int'.
3651 * configure: Regenerate.
3652
3653 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3654
3655 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3656
3657 * configure.in: Check for ttrace function.
3658 * configure, config.in: Regenerate.
3659
3660 * gdb_ptrace.h: New file.
3661 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3662 <sys/ptrace.h>.
3663 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3664 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3665 (attach): Don't define PT_ATTACH.
3666 (detach): Don't define PT_DETACH.
3667 * Makefile.in (gdb_ptrace_h): New variable.
3668 (infptrace.o): Update dependencies.
3669
3670 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3671
3672 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3673 instead of `int' if not already defined.
3674 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3675 PTRACE_TYPE_ARG3.
3676 * infptrace.c (call_ptrace): Revert change that replaced
3677 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3678
3679 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3680
3681 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3682 Remove defines.
3683
3684 * linux-nat.c (kill_inferior): Add missing third and fourth
3685 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3686
3687 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3688 PTRACE_TYPE_RET.
3689
3690 * proc-why.c (proc_prettyfprint_why): Fix format string.
3691
3692 * solib-osf.c (osf_current_sos): Remove unsused label.
3693
3694 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3695 curses headers.
3696 * configure, config.in: Regenerate.
3697 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3698 <ncurses/ncurses.h>.
3699
3700 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3701 * config/nm-nbsd.h: Update copyright year.
3702 (PTRACE_ARG3_TYPE): Remove define.
3703
3704 * sparc-nat.c (fetch_inferior_registers)
3705 (store_inferior_registers, sparc_xfer_wcookie):
3706 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3707
3708 * alphabsd-nat.c (fetch_inferior_registers):
3709 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3710 PTRACE_TYPE_ARG3.
3711 * amd64bsd-nat.c (fetch_inferior_registers)
3712 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3713 PTRACE_TYPE_ARG3.
3714 * armnbsd-nat.c: Update copyright year.
3715 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3716 (store_register, store_regs, store_fp_register, store_fp_regs):
3717 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3718 * hppabsd-nat.c (fetch_inferior_registers)
3719 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3720 PTRACE_TYPE_ARG3.
3721 * i386bsd-nat.c (fetch_inferior_registers)
3722 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3723 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3724 * m68kbsd-nat.c (fetch_inferior_registers)
3725 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3726 PTRACE_TYPE_ARG3.
3727 * m88kbsd-nat.c (fetch_inferior_registers)
3728 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3729 PTRACE_TYPE_ARG3.
3730 * mipsnbsd-nat.c: Update copyright year.
3731 (fetch_inferior_registers, store_inferior_registers):
3732 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3733 * ns32knbsd-nat.c: Update copyright year.
3734 (fetch_inferior_registers, store_inferior_registers):
3735 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3736 * ppcnbsd-nat.c (fetch_inferior_registers):
3737 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3738 PTRACE_TYPE_ARG3.
3739 * ppcobsd-nat.c (fetch_inferior_registers):
3740 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3741 PTRACE_TYPE_ARG3.
3742 * shnbsd-nat.c: Update copyright year.
3743 (fetch_inferior_registers, store_inferior_registers):
3744 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3745 * vaxbsd-nat.c (fetch_inferior_registers)
3746 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3747 PTRACE_TYPE_ARG3.
3748
3749 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3750 PTRACE_TYPE_ARG3.
3751 * infptrace.c (call_ptrace, child_resume, attach, detach)
3752 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3753 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3754 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3755 PTRACE_TYPE_ARG3.
3756
3757 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3758
3759 * defs.h: Remove out-of-date comment.
3760 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3761 [!GETENV_PROVIDED] (getenv): Remove prototype.
3762
3763 * standalone.c: Remove file.
3764 * Makefile.in (standalone.o): Remove dependency.
3765
3766 * i386-linux-nat.c (dummy_sse_values): Remove function and
3767 prototype.
3768 (i386_linux_dr_get): Fix typo in comment.
3769 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3770
3771 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3772
3773 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3774 from declaration.
3775 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3776 from definition.
3777
3778 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3779
3780 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3781 parenthesis in definition.
3782 * configure: Regenerated.
3783
3784 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3785
3786 * PROBLEMS: Mention build/1411.
3787
3788 2004-08-09 Robert Millan <robertmh@gnu.org>
3789
3790 Committed by Nathanael Nerode.
3791 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3792 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3793
3794 2004-08-12 Andrew Cagney <cagney@gnu.org>
3795
3796 * NEWS: Mention fixes in GDB 6.2.1.
3797 * PROBLEMS: Remove mention of mips-irix.
3798
3799 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3800
3801 * config/powerpc/xm-aix.h: Delete.
3802 * config/powerpc/aix.mh (MH_FILE): Remove.
3803 * config/powerpc/aix432.mh (MH_FILE): Remove.
3804
3805 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3806
3807 * config/powerpc/aix.mh: Remove obsolete comment.
3808 * config/powerpc/aix432.mh: Likewise.
3809
3810 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3811
3812 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3813
3814 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3815
3816 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3817 this file is now empty.
3818 * config/xm-aix4.h: Remove, this file is no longer included
3819 anywhere.
3820
3821 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3822
3823 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3824 that file is now empty.
3825 (termdef): Remove prototype, function no longer used.
3826
3827 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3828
3829 * doc/gdbint.texinfo (Host Definition): Remove documentation
3830 for USE_O_NOCTTY, no longer used.
3831 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3832 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3833
3834 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3835
3836 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3837 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3838 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3839
3840 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3841
3842 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3843 instead of FIVE_ARG_PTRACE.
3844
3845 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3846 (new_tty): Use O_NOCTTY unconditionally.
3847
3848 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3849
3850 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3851 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3852 fflush on stdout.
3853
3854 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3855
3856 * xcoff_symfile_finish: Replace last call to xmfree by call
3857 to xfree.
3858
3859 2004-08-10 Andrew Cagney <cagney@gnu.org>
3860
3861 * main.c (captured_main): Delete call to init_malloc.
3862 * defs.h (init_malloc): Delete declaration.
3863 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3864 (init_malloc): Delete functions.
3865
3866 * defs.h (xmfree): Delete.
3867 * utils.c (xmfree): Delete function.
3868 (xfree): Inline calls to xmfree and mfree.
3869 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3870 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3871 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3872 * somread.c (som_symfile_finish): Ditto.
3873 * objfiles.c (allocate_objfile, free_objfile):
3874 * nlmread.c (nlm_symfile_finish): Ditto.
3875 * hpread.c (hpread_symfile_finish): Ditto.
3876 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3877 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3878 * coffread.c (coff_symfile_finish): Ditto.
3879
3880 * defs.h (xmcalloc): Delete declaration.
3881 * utils.c (xmcalloc): Delete.
3882 (xcalloc): Inline calls to xmcalloc and mcalloc.
3883 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3884 xcalloc and xfree.
3885 * symtab.c (create_demangled_names_hash): Ditto.
3886
3887 * defs.h (xmrealloc): Delete.
3888 * utils.c (xmrealloc): Delete.
3889 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3890 * symmisc.c (extend_psymbol_list): Use xrealloc.
3891 * source.c (find_source_lines): Ditto.
3892 * hpread.c (hpread_lookup_type): Ditto.
3893 * dbxread.c (add_bincl_to_list): Ditto.
3894
3895 * utils.c (xmmalloc): Delete.
3896 (xmalloc): Inline xmmalloc and mmalloc calls.
3897 (msavestring): Use xmalloc.
3898 * defs.h (xmmalloc): Delete declaration.
3899 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3900 xmmalloc.
3901 * symmisc.c (extend_psymbol_list): Ditto.
3902 * symfile.c (init_psymbol_list): Ditto.
3903 * source.c (find_source_lines): Ditto.
3904 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3905 * elfread.c (elf_symtab_read): Ditto.
3906 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3907 * coffread.c (coff_symfile_init): Ditto.
3908
3909 2004-08-10 David Carlton <carlton@bactrian.org>
3910
3911 * MAINTAINERS: Remove David Carlton from c++ testsuite
3912 maintainers.
3913
3914 2004-08-10 Jerome Guitton <guitton@gnat.com>
3915
3916 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3917 print a line feed before the prompt.
3918
3919 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3920
3921 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3922
3923 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3924
3925 General cleanup of the AIX xm include file:
3926 * config/xm-aix4.h (fd_set): Remove undefine.
3927 Remove include of <sys/select.h>.
3928 (HAVE_TERMIO): Remove define.
3929 (USG): Likewise.
3930 (NULL): Remove redefine.
3931 (alloca): Remove #pragma.
3932 (vfork): Remove define.
3933 (termdef): Remove.
3934 (SIGWINCH_HANDLER): Remove.
3935 (SIGWINCH_HANDLER_BODY): Remove.
3936
3937 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3938
3939 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3940 GDB_OSABI_OPENBSD_ELF.
3941
3942 2004-08-07 Robert Millan <robertmh@gnu.org>
3943
3944 * bsd-kvm.c: Check for nlist.h before including it.
3945
3946 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3947
3948 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3949 sigcontext' offset consistency checks for ancient BSD.
3950
3951 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3952
3953 * configure.in: Check for <sys/types.h>. Check return and
3954 argument types of ptrace.
3955 * configure, config.in: Regenerate.
3956
3957 2004-08-09 Jim Blandy <jimb@redhat.com>
3958
3959 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3960 rs6000_register_sim_regno): Doc fixes.
3961
3962 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3963
3964 * mips-tdep.c: Include "floatformat.h".
3965 (n32n64_floatformat_always_valid): New function.
3966 (floatformat_n32n64_long_double_big): New constant.
3967 (mips_gdbarch_init): Set size and format of long double
3968 for N32 and N64 ABIs.
3969 * Makefile.in (mips-tdep.o): Update dependencies.
3970
3971 2004-08-08 Andrew Cagney <cagney@gnu.org>
3972
3973 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3974 print. Improve script's error messages.
3975 * gdbarch.h: Re-generate.
3976
3977 * gdbarch.sh (pformat): New function.
3978 (float_format, double_format, long_double_format): List with bit
3979 members. Use pformat when printing.
3980 * gdbarch.c, gdbarch.h: Re-generate.
3981
3982 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3983
3984 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3985 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3986 (ppcnbsd_supply_pcb): New function.
3987 (_initialize_ppcnbsd_nat): New prototype and function.
3988 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3989 (LOADLIBES): New variable.
3990 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3991
3992 2004-08-08 Andrew Cagney <cagney@gnu.org>
3993
3994 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3995 (builtin_type_ieee_double, builtin_type_ia64_quad)
3996 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3997 BE/LE floating-point types.
3998 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3999 (builtin_type_ieee_double, builtin_type_ia64_quad)
4000 (builtin_type_ia64_spill): Declare.
4001 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4002 (floatformat_ieee_double, floatformat_arm_ext)
4003 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4004 of LE/BE floatformats.
4005 * doublest.h: (struct floatformat, floatformat_ieee_single)
4006 (floatformat_ieee_double, floatformat_arm_ext)
4007 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4008
4009 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4010
4011 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4012
4013 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4014 instead of regcache_raw_supply when storing the registers.
4015
4016 * i386gnu-nat.c: Update copyright year.
4017 (gnu_store_registers): Don't use deprecated_registers and
4018 deprecated_registers_valid. Use regcache_valid_p and
4019 regcache_raw_supply instead.
4020
4021 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4022 frame_pc_unwind.
4023
4024 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4025 variables. Incapitalized "process".
4026
4027 * configure.in: Add cursesX to the list of possible curses libs.
4028 Add cursesX.h to the list of possible curses headers.
4029 * configure, config.in: Regenerate.
4030
4031 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4032
4033 * configure.in: Test for struct lwp in <sys/lwp.h>.
4034 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4035 the offset of l_addr in struct lwp.
4036
4037 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4038
4039 * bsd-kvm.c: Include "gdbcore.h"
4040 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4041
4042 2004-08-07 Andrew Cagney <cagney@gnu.org>
4043
4044 * gdbtypes.c (build_flt, build_complex): New functions.
4045 (gdbtypes_post_init): Use.
4046
4047 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4048
4049 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4050 through to builtin_type_uint128.
4051
4052 * c-exp.y: Use builtin_type function to obtain builtin types.
4053
4054 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4055 builtin_uint128.
4056 * gdbtypes.c (gdbtypes_post_init): Update.
4057 (build_gdbtypes): Move initialization of builtin_type_int0
4058 through to builtin_type_uint128 from here ...
4059 (_initialize_gdbtypes): ... to here.
4060 * d10v-tdep.c (d10v_register_type): Update.
4061
4062 * doublest.c: Update copyright.
4063 (floatformat_from_length): Call error when floatformat is NULL.
4064 (extract_floating_by_length): Remove NULL fmt check.
4065 (store_floating_by_length): Ditto.
4066
4067 2004-08-07 Andrew Cagney <cagney@gnu.org>
4068
4069 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4070 that the register is valid.
4071
4072 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4073
4074 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4075 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4076 struct frame_info *. Use safe_frame_unwind_memory instead of
4077 deprecated_read_memory_nobpt.
4078 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4079 changed signature of i386_linux_sigtramp_start and
4080 i386_linux_rt_sigtramp_start.
4081
4082 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4083 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4084 instead of deprecated_read_memory_nobpt.
4085 (i386nbsd_sigtramp_p): Adjust for changed signature of
4086 i386nbsd_sigtramp_offset.
4087
4088 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4089 safe_frame_unwind_memory instead of target_read_memory.
4090
4091 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4092 !NO_SYS_FILE.
4093 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4094 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4095 (_initialize_kernel_u_addr): Remove prototype and function.
4096 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4097 !NO_SYS_FILE.
4098 * xcoffread.c: Likewise.
4099
4100 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4101
4102 * vax-nat.c: New file.
4103 * vaxbsd-nat.c: Tweak comment.
4104 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4105 vaxnbsd-tdep.c.
4106 (vax-nat.o): New dependency.
4107 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4108 (vax-*-ultrix2*): Remove.
4109 * config/vax/vax.mh: New file.
4110 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4111 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4112 (vax_register_u_addr): New prototype.
4113 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4114 * config/vax/vaxult2.mh: Remove file.
4115 * config/vax/vaxult.mh: Remove file.
4116 * config/vax/vaxbsd.mh: Remove file.
4117 * config/vax/vax.mt (TM_FILE): Remove.
4118 * config/vax/tm-vaxbsd.h: Remove file.
4119
4120 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4121
4122 * aix-thread.c (get_signaled_thread): New function.
4123 (iter_trap): Delete, no longer used.
4124 (iter_tid): New function.
4125 (pd_update): Find the thread that received the SIGTRAP signal
4126 by first locating the kernel thread, and then finding its
4127 associated thread.
4128
4129 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4130
4131 * lin-lwp.c (child_wait): Continue inferior after processing
4132 PTRACE_EVENT_CLONE event.
4133
4134 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4135
4136 * MAINTAINERS: Add self to Write-After-Approval.
4137
4138 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4139
4140 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4141 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4142
4143 2004-08-05 Andrew Cagney <cagney@gnu.org>
4144
4145 * config/xm-sysv4.h: Delete file.
4146 * config/mips/xm-irix5.h: Delete file.
4147 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4148 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4149 * config/ia64/xm-aix.h: Delete file.
4150 * config/ia64/aix.mh (XM_FILE): Delete.
4151 * config/pa/xm-hppah.h: Delete file.
4152 * config/pa/hpux11w.mh (XM_FILE): Delete.
4153 * config/pa/hpux11.mh (XM_FILE): Delete.
4154 * config/pa/hpux1020.mh (XM_FILE): Delete.
4155 * config/pa/hppahpux.mh (XM_FILE): Delete.
4156
4157 * config/alpha/xm-alphalinux.h: Delete file.
4158 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4159 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4160 * config/alpha/xm-alphaosf.h: Delete file.
4161 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4162 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4163 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4164 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4165
4166 * config/i386/xm-i386v.h: Delete file.
4167 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4168 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4169 * config/i386/xm-i386sco.h: Delete file.
4170 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4171 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4172 * config/i386/xm-i386v4.h: Delete file.
4173 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4174 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4175 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4176 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4177
4178 * config/vax/xm-vax.h: Delete file.
4179 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4180 * config/vax/xm-vaxult2.h: Delete file.
4181 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4182 * config/vax/vaxult2.mh (XM_FILE): Delete.
4183 * config/vax/xm-vaxult.h: Delete file.
4184 * config/vax/vaxult.mh (XM_FILE): Delete.
4185 * config/vax/xm-vaxbsd.h: Delete file.
4186 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4187
4188 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4189 * gdbarch.h, gdbarch.c: Re-generate.
4190 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4191 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4192 * frame.h: Delete deprecated_read_fp from comments.
4193 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4194 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4195
4196 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4197
4198 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4199 trampoline in OpenBSD 3.5-current.
4200
4201 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4202 SSE registers.
4203
4204 * Makefile.in: Remove embedded page breaks.
4205
4206 2004-08-04 Jim Blandy <jimb@redhat.com>
4207
4208 * regcache.c (regcache_raw_read): Assert that, after calling
4209 target_fetch_registers, the register we're reading is cached.
4210
4211 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4212 a call to 'internal_error', with a more helpful error message.
4213 * rs6000-tdep.c (e500_pseudo_register_read,
4214 e500_pseudo_register_write, rs6000_store_return_value): Same.
4215
4216 2004-08-04 Andrew Cagney <cagney@gnu.org>
4217
4218 * Makefile.in: Update dependencies.
4219
4220 2004-08-04 Jim Blandy <jimb@redhat.com>
4221
4222 Change the layout of the PowerPC E500 raw register cache to allow
4223 the lower 32-bit halves of the GPRS to be their own raw registers,
4224 not pseudoregisters.
4225 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4226 add ppc_ev0_upper_regnum flag.
4227 * rs6000-tdep.c: #include "reggroups.h".
4228 (spe_register_p): Recognize the ev upper half registers as SPE
4229 registers.
4230 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4231 registers.
4232 (e500_move_ev_register): New function.
4233 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4234 vector registers are the pseudo-registers now, formed by splicing
4235 together the gprs and the upper-half registers.
4236 (e500_register_reggroup_p): New function.
4237 (P): Macro deleted.
4238 (P8, A4): New macro.
4239 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4240 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4241 macros.
4242 (registers_e500): Rearrange register set so that the raw register
4243 set contains 32-bit GPRs and upper-half registers, and the SPE
4244 vector registers become pseudo-registers.
4245 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4246 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4247 register numbers are now the same for the E500 as they are for
4248 other PowerPC variants. Register e500_register_reggroup_p as the
4249 register group function for the E500.
4250 * Makefile.in (rs6000-tdep.o): Update dependencies.
4251
4252 Adapt PPC E500 native support to the new raw regcache layout.
4253 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4254 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4255 (fetch_spe_register, store_spe_register): Handle fetching/storing
4256 all the SPE registers at once, if regno == -1. These now take
4257 over the job of fetch_spe_registers and store_spe_registers.
4258 (fetch_spe_registers, store_spe_registers): Deleted.
4259 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4260 unconditionally; they're always raw. Fetch/store SPE upper half
4261 registers, if present, instead of ev registers.
4262 (fetch_register, store_register): Remove sanity checks: gprs are
4263 never pseudo-registers now, so we never need to even mention any
4264 registers that are ever pseudoregisters.
4265
4266 Use a fixed register numbering when communicating with the PowerPC
4267 simulator.
4268 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4269 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4270 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4271 New functions.
4272 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4273 init_sim_regno_table.
4274 * Makefile.in (gdb_sim_ppc_h): New variable.
4275 (rs6000-tdep.o): Update dependencies.
4276
4277 2004-08-02 Andrew Cagney <cagney@gnu.org>
4278
4279 * cris-tdep.c (cris_register_size): Restore function, still used
4280 locally.
4281
4282 * gdbarch.sh (deprecated_target_read_fp)
4283 (deprecated_frame_locals_address, deprecated_frame_args_address)
4284 (deprecated_frame_chain_valid, deprecated_frame_chain)
4285 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4286 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4287 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4288 * gdbarch.h, gdbarch.c: Re-generate.
4289 * regcache.c (deprecated_read_fp): Do not call
4290 DEPRECATED_TARGET_READ_FP_P.
4291 * infcmd.c (default_print_registers_info): Do not call
4292 DEPRECATED_DO_REGISTERS_INFO.
4293 * frame-base.c (default_frame_locals_address): Do not call
4294 DEPRECATED_FRAME_LOCALS_ADDRESS.
4295 (default_frame_args_address): Do not call
4296 DEPRECATED_FRAME_ARGS_ADDRESS.
4297
4298 * gdbarch.sh (deprecated_register_raw_size)
4299 (deprecated_register_virtual_size:int): Delete.
4300 * gdbarch.h, gdbarch.c: Re-generate.
4301 * cris-tdep.c (cris_register_size): Delete.
4302 (cris_gdbarch_init): Update.
4303 * alpha-tdep.c (alpha_register_raw_size)
4304 (alpha_register_virtual_size): Delete.
4305 (alpha_gdbarch_init): Update.
4306
4307 * gdbarch.sh (deprecated_register_virtual_type)
4308 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4309 (deprecated_dummy_write_sp): Delete.
4310 * gdbarch.h, gdbarch.c: Re-generate.
4311
4312 * gdbarch.sh (deprecated_register_bytes): Delete.
4313 * gdbarch.h, gdbarch.c: Re-generate.
4314 * regcache.c (deprecated_register_bytes): New function.
4315 * regcache.h (deprecated_register_bytes): Declare.
4316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4317 * v850-tdep.c (v850_gdbarch_init): Update.
4318 * sh64-tdep.c (sh64_gdbarch_init): Update.
4319 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4320 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4321 * mcore-tdep.c (mcore_gdbarch_init): Update.
4322 * cris-tdep.c (cris_gdbarch_init): Update.
4323 * arm-tdep.c (arm_gdbarch_init): Update.
4324 * remote.c (init_remote_state): Update.
4325 * remote-vx.c (vx_prepare_to_store): Update.
4326 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4327 * irix5-nat.c (fetch_core_registers): Update.
4328 * cris-tdep.c (cris_register_bytes_ok): Update.
4329 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4330
4331 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4332 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4333 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4334 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4335 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4336 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4337 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4338 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4339 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4340 with mips_insn16 and mips_insn32.
4341
4342 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4343 * rs6000-tdep.c (rs6000_push_dummy_call)
4344 (rs6000_extract_return_value): Use register_size.
4345 * xstormy16-tdep.c (xstormy16_get_saved_register)
4346 (xstormy16_extract_return_value): Ditto.
4347 * valops.c (value_assign): Ditto.
4348 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4349 * v850-tdep.c (v850_extract_return_value): Ditto.
4350 * tracepoint.c (collect_symbol): Ditto.
4351 * target.c (debug_print_register): Ditto.
4352 * stack.c (frame_info): Ditto.
4353 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4354 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4355 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4356 (store_register_using_P): Ditto.
4357 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4358 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4359 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4360 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4361 * regcache.c (deprecated_read_register_bytes)
4362 (deprecated_write_register_bytes, read_register)
4363 (write_register): Ditto.
4364 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4365 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4366 * monitor.c (monitor_supply_register, monitor_fetch_register)
4367 (monitor_store_register): Ditto.
4368 * mn10300-tdep.c (mn10300_pop_frame_regular)
4369 (mn10300_print_register): Ditto.
4370 * mipsv4-nat.c (fill_fpregset): Ditto.
4371 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4372 (mips64_fill_fpregset): Ditto.
4373 * mi/mi-main.c (register_changed_p, get_register)
4374 (mi_cmd_data_write_register_values): Ditto.
4375 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4376 * irix5-nat.c (fill_gregset, fetch_core_registers):
4377 * infrun.c (write_inferior_status_register): Ditto.
4378 * infptrace.c (fetch_register, store_register): Ditto.
4379 * infcmd.c (default_print_registers_info): Ditto.
4380 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4381 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4382 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4383 * hpux-thread.c (hpux_thread_fetch_registers)
4384 (hpux_thread_store_registers): Ditto.
4385 * hppah-nat.c (store_inferior_registers, fetch_register):
4386 * findvar.c (value_from_register): Ditto.
4387 * dve3900-rom.c (fetch_bitmapped_register):
4388 * cris-tdep.c (cris_gdbarch_init): Ditto.
4389 * alpha-tdep.h: Ditto.
4390 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4391
4392 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4393 DEPRECATED_REGISTER_RAW_SIZE from comments.
4394 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4395 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4396 DEPRECATED_REGISTER_RAW_SIZE.
4397 * findvar.c (value_of_register): Simplify by assuming that the
4398 registers raw and virtual sizes are identical.
4399 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4400 comment.
4401 * arch-utils.c (generic_register_size): Simplify by assuming
4402 register_type.
4403
4404 * regcache.c (legacy_read_register_gen, real_register)
4405 (legacy_write_register_gen): Delete, not used.
4406
4407 * regcache.c (struct regcache_descr): Delete legacy_p.
4408 (init_legacy_regcache_descr): Delete function.
4409 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4410 Do not use deprecated register functions.
4411 (regcache_raw_read, deprecated_write_register_gen):
4412 (deprecated_read_register_gen, regcache_raw_write): Delete code
4413 predicated on legacy_p.
4414 (register_size): Delete check against register raw size.
4415
4416 * cris-tdep.c (cris_register_type): Replace
4417 cris_register_virtual_type.
4418 (cris_gdbarch_init): Update, set register_type.
4419
4420 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4421 * gdbarch.h, gdbarch.c: Re-generate.
4422 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4423 (arm_gdbarch_init) Do not set frameless function invocation.
4424 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4425 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4426 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4427 (frv_gdbarch_init): Do not set frameless function invocation.
4428 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4429 * sh-tdep.c (sh_gdbarch_init): Ditto.
4430 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4431 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4432 * avr-tdep.c (avr_gdbarch_init): Ditto.
4433
4434 * blockframe.c (legacy_frame_chain_valid): Delete function.
4435
4436 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4437 and pc. Update comments.
4438 (pc_in_dummy_frame): Delete function.
4439 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4440 use the "id".
4441 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4442 call_hi, top and pc, use the id.
4443 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4444
4445 * dummy-frame.c: Include "gdb_string.h".
4446 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4447 (generic_save_dummy_frame_tos): Delete.
4448 (dummy_frame_push): New function, replaces above.
4449 * dummy-frame.h: Update copyright.
4450 (dummy_frame_push): Declare.
4451 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4452 (generic_save_call_dummy_addr): Delete declarations.
4453 * infcall.c: Include "dummy-frame.h".
4454 (call_function_by_hand): Add locals caller_regcache,
4455 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4456 with call to frame_save_as_regcache plus cleanup. Delete calls to
4457 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4458 Move clear_proceed_status to just before the resume, add call to
4459 dummy_frame_push (discard cleanup).
4460 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4461 (dummy-frame.o): Add $(gdb_string_h).
4462
4463 2004-08-01 Andrew Cagney <cagney@gnu.org>
4464
4465 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4466 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4467 * dummy-frame.c (find_dummy_frame): Delete.
4468 (struct dummy_frame_cache, dummy_frame_sniffer)
4469 (dummy_frame_prev_register, dummy_frame_this_id)
4470 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4471 frame unwinder using a dummy_frame_cache.
4472
4473 2004-08-01 Andrew Cagney <cagney@gnu.org>
4474
4475 * frame.h (frame_save_as_regcache): Declare.
4476 * frame.c (frame_save_as_regcache): New function.
4477 (do_frame_read_register): Replace do_frame_unwind_register.
4478 (frame_pop): Use frame_save_as_regcache.
4479 * dummy-frame.c (generic_push_dummy_frame): Use
4480 frame_save_as_regcache.
4481
4482 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4483
4484 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4485 file as included until we record the first line in the linetable.
4486
4487 2004-08-01 Andrew Cagney <cagney@gnu.org>
4488
4489 * frame.h (deprecated_pop_dummy_frame)
4490 (deprecated_read_register_dummy)
4491 (deprecated_generic_find_dummy_frame): Delete.
4492 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4493 (deprecated_read_register_dummy)
4494 (deprecated_find_dummy_frame_regcache)
4495 (discard_innermost_dummy)
4496 (deprecated_pop_dummy_frame): Delete.
4497 (dummy_frame_this_id): Simplify.
4498 (struct dummy_frame): Delete "fp" and "sp".
4499 (find_dummy_frame): Simplify.
4500 (generic_push_dummy_frame): Do not set "fp" or "sp".
4501 (fprint_dummy_frames): Do not print "fp" and "sp"
4502
4503 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4504
4505 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4506 (struct i386_insn): New structure.
4507 (i386_match_insn): New function.
4508 (i386_frame_setup_skip_insns): New variable.
4509 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4510 array i386_frame_setup_insns of instructions that should be
4511 skipped inside the frame setup sequence.
4512
4513 2004-08-01 Andrew Cagney <cagney@gnu.org>
4514
4515 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4516 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4517 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4518 * stack.c (frame_info): Delete references to
4519 DEPRECATED_FRAME_INIT_SAVED_REGS and
4520 deprecated_get_frame_saved_regs.
4521 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4522 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4523 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4524 (frame_unwind_register_signed)
4525 (frame_unwind_register_unsigned)
4526 (frame_unwind_unsigned_register): Use register_size.
4527 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4528 (deprecated_frame_xmalloc_with_cleanup)
4529 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4530 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4531
4532 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4533 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4534 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4535 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4536
4537 * infcall.c (call_function_by_hand): Do not use
4538 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4539 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4540 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4541 DEPRECATED_STACK_ALIGN.
4542
4543 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4544
4545 Committed by Andrew Cagney.
4546 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4547
4548 2004-08-01 Andrew Cagney <cagney@gnu.org>
4549
4550 * mips-tdep.c (mips16_frame_cache)
4551 (mips16_frame_this_id, mips16_frame_prev_register)
4552 (mips16_frame_unwind, mips16_frame_sniffer)
4553 (mips16_frame_base_address, mips16_frame_base)
4554 (mips16_frame_base_sniffer, mips32_frame_cache)
4555 (mips32_frame_this_id, mips32_frame_prev_register)
4556 (mips32_frame_unwind, mips32_frame_sniffer)
4557 (mips32_frame_base_address, mips32_frame_base)
4558 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4559 separate heuristic mips16 and mips32 unwinders.
4560 (mips_stub_frame_cache, mips_stub_frame_this_id)
4561 (mips_stub_frame_prev_register)
4562 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4563 (mips_stub_frame_base_address, mips_stub_frame_base)
4564 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4565 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4566 match true mdebug frames.
4567 (non_heuristic_proc_desc): Add forward declaration.
4568
4569 2004-08-01 Andrew Cagney <cagney@gnu.org>
4570
4571 * config/mips/tm-irix6.h: Delete file.
4572 * config/mips/tm-irix5.h: Delete file.
4573 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4574 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4575
4576 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4577 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4578 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4579 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4580 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4581 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4582 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4583 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4584 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4585 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4586 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4587 (TARGET_SIGNAL_RAW_VALUES): Delete.
4588 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4589 Delete.
4590 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4591 (TARGET_HW_WATCH_LIMIT): Delete.
4592 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4593 * minimon.h: Delete file.
4594
4595 * trad-frame.c (trad_frame_get_this_base)
4596 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4597 functions.
4598 * trad-frame.h (trad_frame_set_this_base)
4599 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4600
4601 2004-07-31 Andrew Cagney <cagney@gnu.org>
4602
4603 * trad-frame.c (trad_frame_get_prev_register): Rename
4604 trad_frame_get_prev_register.
4605 * vax-tdep.c (vax_frame_prev_register): Update.
4606 * trad-frame.h: Update.
4607 * trad-frame.c (trad_frame_get_register): Update.
4608 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4609 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4610 Update.
4611 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4612 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4613 Update.
4614 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4615 Update.
4616 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4617 Update.
4618 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4619 Update.
4620 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4621 Update.
4622 * s390-tdep.c (s390_frame_prev_register)
4623 (s390_stub_frame_prev_register)
4624 (s390_sigtramp_frame_prev_register): Update.
4625 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4626 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4627 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4628 * m88k-tdep.c (m88k_frame_prev_register)
4629 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4630 * m32r-tdep.c (m32r_frame_prev_register): Update.
4631 * hppa-tdep.c (hppa_frame_prev_register_helper)
4632 * frv-tdep.c (frv_frame_prev_register): Update.
4633 * d10v-tdep.c (d10v_frame_prev_register): Update.
4634 * cris-tdep.c (cris_frame_prev_register): Update.
4635 * avr-tdep.c (avr_frame_prev_register): Update.
4636 * arm-tdep.c (arm_prologue_prev_register)
4637 (arm_sigtramp_prev_register): Update.
4638
4639 2004-07-31 Andrew Cagney <cagney@gnu.org>
4640
4641 * frame.h (legacy_saved_regs_unwind)
4642 (legacy_frame_chain_valid, legacy_frame_p)
4643 (enum frame_type): Delete UNKNOWN_FRAME.
4644 * dummy-frame.c (dummy_frame_this_id): Simplify.
4645 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4646 * frame.c (struct frame_info): Delete the field "type".
4647 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4648 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4649 (legacy_saved_regs_unwind, legacy_frame_p)
4650 (frame_type_from_pc): Delete.
4651 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4652 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4653
4654 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4655
4656 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4657 indentation.
4658
4659 * mips-nat.c: Remove file.
4660 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4661 (mips-nat.o): Remove dependency.
4662
4663 * infptrace.c: Update copyright year.
4664 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4665 explicitly setting the buffer to all zeroes.
4666
4667 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4668 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4669
4670 2004-07-30 Andrew Cagney <cagney@gnu.org>
4671
4672 * GDB 6.2 released from gdb_6_2-branch.
4673
4674 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4675
4676 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4677
4678 * exec.c (exec_file_attach):
4679 * nto-tdep.c (nto_find_and_open_solib):
4680 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4681 * solib.c (solib_open):
4682 * somsolib.c (som_solib_sizeof_symbol_table):
4683 * source.c (is_regular_file, openp, open_source_file):
4684 * symfile.c (symfile_bfd_open):
4685 * wince.c (upload_to_device): Differentiate between the search for
4686 binary and source files.
4687
4688 2004-07-30 Andrew Cagney <cagney@gnu.org>
4689
4690 * complaints.c (_initialize_complaints): Pass NULL to
4691 add_setshow_zinteger_cmd for help_doc.
4692 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4693
4694 2004-07-30 Andrew Cagney <cagney@gnu.org>
4695
4696 Fix PR i18n/761.
4697 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4698 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4699 $(PACKAGE).pot and update-po.
4700 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4701 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4702 (update-po): New rules.
4703 (localedir): Define using autoconf.
4704 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4705 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4706 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4707 * configure.in: Generate CATALOGS and LINGUAS from contents of
4708 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4709 * configure: Re-generate.
4710 * po/gdbtext: New file
4711
4712 2004-07-30 Jerome Guitton <guitton@gnat.com>
4713
4714 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4715 order.
4716
4717 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4718
4719 * dwarf2read.c (read_file_scope): Set producer if attribute
4720 present.
4721 (struct dwarf2_cu): Added new member producer.
4722
4723 2004-07-30 Jerome Guitton <guitton@gnat.com>
4724
4725 * inflow.c (kill_command): release file handles in BFD.
4726 * exec.c (exec_file_attach): Ditto.
4727 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4728
4729 2004-07-29 Andrew Cagney <cagney@gnu.org>
4730
4731 * PROBLEMS (mips-irix): Note that it is broken.
4732
4733 2004-07-29 Andrew Cagney <cagney@gnu.org>
4734
4735 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4736 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4737
4738 * config/xm-nbsd.h: Delete file.
4739 * config/arm/xm-nbsd.h: Delete file.
4740 * config/i386/xm-nbsd.h: Delete file.
4741 * config/ns32k/xm-nbsd.h: Delete file.
4742 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4743 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4744 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4745 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4746 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4747
4748 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4749 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4750 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4751 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4752 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4753 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4754
4755 * config/powerpc/xm-linux.h: Delete empty file.
4756 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4757 * config/powerpc/linux.mh (XM_FILE): Delete.
4758 * config/m68k/xm-linux.h: Delete empty file.
4759 * config/m68k/linux.mh (XM_FILE): Delete.
4760 * config/ia64/xm-linux.h: Delete empty file.
4761 * config/ia64/linux.mh (XM_FILE): Delete.
4762 * config/arm/xm-linux.h: Delete empty file.
4763 * config/arm/linux.mh (XM_FILE): Delete.
4764
4765 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4766 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4767 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4768 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4769 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4770 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4771 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4772 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4773
4774 * config/m68k/xm-m68k.h: Delete file.
4775 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4776 copyright.
4777 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4778 * config/pa/xm-linux.h: Delete empty file.
4779 * config/pa/linux.mh (XM_FILE): Delete.
4780 * config/i386/xm-i386.h: Delete empty file.
4781 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4782 "i386/xm-i386.h".
4783 * config/i386/obsdaout.mh (XM_FILE): Delete.
4784 * config/i386/obsd64.mh (XM_FILE): Delete.
4785 * config/i386/fbsd64.mh (XM_FILE): Delete.
4786 * config/i386/nto.mh (XM_FILE): Delete.
4787 * config/i386/obsd.mh (XM_FILE): Delete.
4788 * config/i386/linux64.mh (XM_FILE): Delete.
4789 * config/i386/linux.mh (XM_FILE): Delete.
4790 * config/i386/i386sol2.mh (XM_FILE): Delete.
4791 * config/i386/i386gnu.mh (XM_FILE): Delete.
4792 * config/i386/fbsd.mh (XM_FILE): Delete.
4793 * config/i386/nbsd64.mh (XM_FILE): Delete.
4794
4795 2004-07-29 Andrew Cagney <cagney@gnu.org>
4796
4797 * config/pa/xm-linux.h: Do not include "floatformat.h".
4798 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4799 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4800 * config/i386/xm-i386.h: Do not include "floatformat.h".
4801 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4802 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4803 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4804 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4805 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4806 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4807 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4808 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4809 * configure, config.in: Regenerate.
4810 * configure.host (gdb_host_float_format, gdb_host_double_format)
4811 (gdb_host_long_double_format): Set according to the host.
4812
4813 2004-07-29 Andrew Cagney <cagney@gnu.org>
4814
4815 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4816
4817 2004-07-28 Andrew Cagney <cagney@gnu.org>
4818
4819 * PROBLEMS: Mention threads/1650.
4820 * NEWS: Mention the NPTL fix.
4821
4822 2004-07-28 Andrew Cagney <cagney@gnu.org>
4823
4824 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4825 (add_setshow_cmd_full): Make static.
4826 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4827 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4828 * cli/cli-decode.c (add_setshow_filename_cmd)
4829 (add_setshow_string_cmd): New functions.
4830 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4831 * mips-tdep.c (_initialize_mips_tdep): Update.
4832 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4833 * cli/cli-logging.c (_initialize_cli_logging): Update.
4834 * complaints.c (_initialize_complaints): Update.
4835 * remote.c (_initialize_remote): Update.
4836
4837 2004-07-28 Andrew Cagney <cagney@gnu.org>
4838
4839 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4840 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4841 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4842 print parameters. Make string parameters constant.
4843 * command.h: Update. Update copyright.
4844 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4845 * observer.c (_initialize_observer): Ditto.
4846 * frame.c (_initialize_frame): Ditto.
4847 * complaints.c (_initialize_complaints): Ditto.
4848 * maint.c (_initialize_maint_cmds): Ditto.
4849 * target.c (initialize_targets): Ditto.
4850 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4851 * infcall.c (_initialize_infcall): Ditto.
4852 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4853 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4854 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4855 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4856 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4857
4858 2004-07-28 Andrew Cagney <cagney@gnu.org>
4859
4860 * gdbtypes.c (lookup_primitive_typename): Delete function.
4861 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4862 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4863 * gdbtypes.c (lookup_typename): Ditto.
4864 * f-exp.y (yylex): Ditto.
4865 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4866
4867 * scm-lang.c (c_builtin_types): Delete extern declaration.
4868 (scm_language_defn): Replace
4869 string_char_type and primitive_type_vector with
4870 la_language_arch_info.
4871 * jv-lang.c (java_language_defn): Replace
4872 string_char_type and primitive_type_vector with
4873 la_language_arch_info.
4874 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4875 c_builtin_types in comment.
4876 * c-lang.h (struct language_arch_info): Declare opaque.
4877 (c_language_arch_info): Declare.
4878 (c_builtin_types): Delete declaration.
4879 * c-lang.c (c_language_arch_info): Set string_char_type to
4880 builtin_char, not builtin_true_char. Make global.
4881 (c_builtin_types): Delete array.
4882 (asm_language_defn, minimal_language_defn): Replace
4883 string_char_type and primitive_type_vector with
4884 la_language_arch_info.
4885
4886 2004-07-28 Andrew Cagney <cagney@gnu.org>
4887
4888 * gdbtypes.h (struct builtin_type): Rename true_char to
4889 builtin_true_char.
4890 * gdbtypes.c (gdbtypes_post_init): Update.
4891 * c-lang.c (arch_info): New function.
4892 (enum c_primitive_types): New enum.
4893 (c_language_defn): Instead of string_char_type and
4894 primitive_type_vector set la_language_arch_info.
4895
4896 2004-07-28 Andrew Cagney <cagney@gnu.org>
4897
4898 * language.h (struct language_arch_info): Fix typo
4899 s/primative/primitive/.
4900 * gdbtypes.c (lookup_primitive_typename): Ditto.
4901 * language.c (language_lookup_primitive_type_by_name)
4902 (unknown_language_arch_info): Ditto.
4903
4904 2004-07-27 Andrew Cagney <cagney@gnu.org>
4905
4906 * defs.h (enum language): Add nr_languages.
4907 * language.h (struct language_arch_info): Define.
4908 (struct language_defn): Add la_language_arch_info.
4909 (language_lookup_primative_type_by_name): Declare.
4910 (language_string_char_type): Declare.
4911 * language.c (_initialize_language, language_gdbarch_post_init)
4912 (struct language_gdbarch, language_gdbarch_data): Implement
4913 per-architecture language information.
4914 (unknown_language_arch_info, language_string_char_type)
4915 (language_lookup_primative_type_by_name): New functions.
4916 (unknown_language_defn, auto_language_defn)
4917 (local_language_defn): Set la_language_arch_info to
4918 unknown_language_arch_info.
4919 (unknown_builtin_types): Delete.
4920 * gdbtypes.c (lookup_primitive_typename): Use
4921 language_lookup_primative_type_by_name.
4922 (create_string_type): Use language_string_char_type.
4923 * values.c (value_from_string): Use language_string_char_type.
4924 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4925 * p-lang.c (pascal_language_defn): Ditto.
4926 * m2-lang.c (m2_language_defn): Ditto.
4927 * jv-lang.c (java_language_defn): Ditto.
4928 * objc-lang.c (objc_language_defn): Ditto.
4929 * f-lang.c (f_language_defn): Ditto.
4930 * c-lang.c (c_language_defn, cplus_language_defn)
4931 (asm_language_defn, minimal_language_defn): Ditto.
4932
4933 2004-07-27 Andrew Cagney <cagney@gnu.org>
4934
4935 * gdbtypes.h (struct builtin_type): Declare.
4936 (builtin_type): Declare.
4937 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4938 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4939 (gdbtypes_post_init): New function.
4940 (builtin_type): New function.
4941
4942 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4943
4944 * remote-m32r-sdi.c: Fix breakpoint bug.
4945 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4946 recv_char_data, recv_long_data): New functions to replace communication
4947 sequences.
4948
4949 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4950
4951 Document PR threads/1650.
4952 * PROBLEMS (Threads): Document problem with many threads
4953
4954 2004-07-26 Andrew Cagney <cagney@gnu.org>
4955
4956 * gdb-mi.el: Move from here ...
4957 * mi/gdb-mi.el: ... to here.
4958
4959 2004-07-26 Andrew Cagney <cagney@gnu.org>
4960
4961 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4962 * main.c (captured_main): When in batch mode always detach.
4963
4964 2004-07-26 Andrew Cagney <cagney@gnu.org>
4965
4966 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4967 and h8300 as broken.
4968 * NEWS: END-OF-LIFE frame compatibility module.
4969 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4970 specific comments.
4971
4972 2004-07-26 Andrew Cagney <cagney@gnu.org>
4973
4974 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4975 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4976 * wince.c (_initialize_wince): Update.
4977 * win32-nat.c (_initialize_win32_nat): Update.
4978 * varobj.c (_initialize_varobj): Update.
4979 * valops.c (_initialize_valops): Update.
4980 * utils.c (initialize_utils, initialize_utils): Update.
4981 * tui/tui-win.c (_initialize_tui_win): Update.
4982 * top.c (init_main): Update.
4983 * symfile.c (_initialize_symfile): Update.
4984 * source.c (_initialize_source): Update.
4985 * somsolib.c (_initialize_som_solib): Update.
4986 * solib.c (_initialize_solib): Update.
4987 * solib-frv.c (_initialize_frv_solib): Update.
4988 * serial.c (_initialize_serial): Update.
4989 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4990 * remote.c (_initialize_remote, _initialize_remote): Update.
4991 * remote-vx.c (_initialize_vx): Update.
4992 * remote-utils.c (_initialize_sr_support): Update.
4993 * remote-sds.c (_initialize_remote_sds): Update.
4994 * remote-mips.c (_initialize_remote_mips): Update.
4995 * remote-e7000.c (_initialize_remote_e7000): Update.
4996 * proc-api.c (_initialize_proc_api): Update.
4997 * printcmd.c: Update.
4998 * parse.c (_initialize_parse): Update.
4999 * pa64solib.c (_initialize_pa64_solib): Update.
5000 * p-valprint.c (_initialize_pascal_valprint): Update.
5001 * monitor.c (_initialize_remote_monitors): Update.
5002 * mips-tdep.c (_initialize_mips_tdep): Update.
5003 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5004 * maint.c (_initialize_maint_cmds): Update.
5005 * lin-lwp.c (_initialize_lin_lwp): Update.
5006 * language.c (_initialize_language): Update.
5007 * kod.c (_initialize_kod): Update.
5008 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5009 * i386-tdep.c (_initialize_i386_tdep): Update.
5010 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5011 * gdbarch.sh: Update.
5012 * gdbarch.c: Re-generate.
5013 * gdb-events.sh: Update.
5014 * gdb-events.c: Re-generate.
5015 * frame.c (_initialize_frame): Update.
5016 * exec.c: Update.
5017 * demangle.c (_initialize_demangler): Update.
5018 * dcache.c (_initialize_dcache): Update.
5019 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5020 * cp-valprint.c (_initialize_cp_valprint): Update.
5021 * corefile.c (_initialize_core): Update.
5022 * command.h: Update.
5023 * cli/cli-decode.h: Update.
5024 * cli/cli-cmds.c (init_cli_cmds): Update.
5025 * charset.c (_initialize_charset): Update.
5026 * breakpoint.c (_initialize_breakpoint): Update.
5027 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5028 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5029 * aix-thread.c (_initialize_aix_thread): Update.
5030
5031 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5032
5033 Partial fix for PR backtrace/1718.
5034 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5035 that GCC migrates into the prolugue. Don't handle any
5036 instructions that clobber %ebx.
5037
5038 2004-07-23 Andrew Cagney <cagney@gnu.org>
5039
5040 Use regcache_raw_collect instead of regcache_collect.
5041 * regcache.h (regcache_collect): Delete declaration.
5042 * regcache.c (regcache_colect): Delete function.
5043 * win32-nat.c (do_child_store_inferior_registers): Update.
5044 * sol-thread.c (sol_thread_store_registers): Update.
5045 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5046 * rs6000-nat.c (store_register): Update.
5047 * remote.c (store_register_using_P, remote_store_registers): Update.
5048 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5049 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5050 (fill_vrregset, store_spe_registers, fill_gregset)
5051 (fill_gregset): Update.
5052 * nto-procfs.c (procfs_store_registers): Update.
5053 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5054 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5055 * m68klinux-nat.c (store_register, fill_gregset): Update.
5056 * m68k-tdep.c (fill_gregset): Update.
5057 * infptrace.c (store_register): Update.
5058 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5059 * i386-linux-nat.c (store_register, fill_gregset): Update.
5060 * hppa-linux-nat.c (fill_gregset): Update.
5061 * go32-nat.c (store_register): Update.
5062 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5063 (store_fp_regs): Update.
5064 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5065 (store_nwfpe_extended, store_fpregister, store_fpregs)
5066 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5067 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5068 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5069 (store_regs_user_thread, store_regs_kernel_thread): Update.
5070
5071 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5072
5073 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5074 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5075 encoding.
5076 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5077 member of `struct comp_unit'.
5078
5079 2004-07-23 Andrew Cagney <cagney@gnu.org>
5080
5081 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5082 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5083
5084 2004-07-23 Martin Hunt <hunt@redhat.com>
5085 Kevin Buettner <kevinb@redhat.com>
5086
5087 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5088 alignment was being added to the offset instead of multiplied.
5089
5090 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5091
5092 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5093 changed signal trampoline in OpenBSD 3.5-current.
5094
5095 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5096 <machine/pcb.h> and "bsd-kvm.h".
5097 (sparc64nbsd_supply_pcb): New function.
5098 (_initialize_sparc64nbsd_nat): Renamed from
5099 _initialize_sparcnbsd_nat. Enable libkvm interface.
5100 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5101 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5102 (LOADLIBES): New variable.
5103
5104 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5105
5106 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5107
5108 2004-07-21 Andrew Cagney <cagney@gnu.org>
5109
5110 Use regcache_raw_supply instead of supply_register.
5111 * regcache.h (supply_register): Delete declaration.
5112 * regcache.c (supply_register): Delete function.
5113 * wince.c (do_child_fetch_inferior_registers): Update.
5114 * win32-nat.c (do_child_fetch_inferior_registers)
5115 (fetch_elf_core_registers): Update.
5116 * v850ice.c (v850ice_fetch_registers): Update.
5117 * thread-db.c (thread_db_store_registers): Update.
5118 * sol-thread.c (sol_thread_store_registers): Update.
5119 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5120 * rs6000-nat.c (fetch_register): Update.
5121 * rom68k-rom.c (rom68k_supply_one_register): Update.
5122 * remote.c (remote_wait, remote_async_wait): Update.
5123 * remote-st.c (get_hex_regs): Update.
5124 * remote-sim.c (gdbsim_fetch_register): Update.
5125 * remote-sds.c (sds_fetch_registers): Update.
5126 * remote-rdp.c (remote_rdp_fetch_register): Update.
5127 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5128 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5129 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5130 * remote-hms.c (init_hms_cmds): Update.
5131 * remote-est.c (init_est_cmds): Update.
5132 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5133 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5134 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5135 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5136 (fetch_register, supply_vrregset, supply_vrregset)
5137 (fetch_spe_registers): Update.
5138 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5139 * monitor.c (monitor_supply_register): Update.
5140 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5141 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5142 (mipsnbsd_supply_fpreg): Update.
5143 * mips-nat.c (fetch_inferior_registers)
5144 (fetch_core_registers): Update.
5145 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5146 (supply_fpregset, mips64_supply_gregset)
5147 (mips64_supply_fpregset): Update.
5148 * m68klinux-nat.c (fetch_register, supply_gregset)
5149 (supply_fpregset): Update.
5150 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5151 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5152 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5153 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5154 * infptrace.c (fetch_register): Update.
5155 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5156 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5157 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5158 (gnu_fetch_registers, gnu_store_registers): Update.
5159 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5160 * i386-linux-nat.c (fetch_register, supply_gregset)
5161 (dummy_sse_values): Update.
5162 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5163 * hppah-nat.c (fetch_register): Update.
5164 * hppa-linux-nat.c (fetch_register, supply_gregset)
5165 (supply_fpregset): Update.
5166 * go32-nat.c (fetch_register): Update.
5167 * dve3900-rom.c (fetch_bitmapped_register)
5168 (_initialize_r3900_rom): Update.
5169 * cris-tdep.c (supply_gregset): Update.
5170 * abug-rom.c (init_abug_cmds): Update.
5171 * core-aout.c (fetch_core_registers): Update.
5172 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5173 (fetch_register, fetch_fp_register): Update.
5174 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5175 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5176 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5177 * alphanbsd-tdep.c (fetch_core_registers): Update.
5178 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5179 * alpha-nat.c (fetch_osf_core_registers)
5180 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5181 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5182 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5183
5184 2004-07-21 Andrew Cagney <cagney@gnu.org>
5185
5186 * PROBLEMS: Mention breakpoints/1702.
5187 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5188 that is known to work.
5189
5190 2004-07-21 Andrew Cagney <cagney@gnu.org>
5191
5192 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5193 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5194 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5195 (handle_inferior_event): Wrap call to deprecated
5196 IGNORE_HELPER_CALL in #ifdef.
5197 * config/mips/tm-nbsd.h: Update.
5198
5199 2004-07-20 Jim Blandy <jimb@redhat.com>
5200
5201 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5202 bfd_mach_ppc has no segment registers.
5203
5204 Include PowerPC SPR numbers for special-purpose registers.
5205 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5206 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5207 new member in initializer.
5208 (S, S4, SN4, S64): New macros for defining special-purpose
5209 registers.
5210 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5211 registers_403, registers_403GC, registers_505, registers_860,
5212 registers_601, registers_602, registers_603, registers_604,
5213 registers_750, registers_e500): Use them.
5214
5215 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5216 replace references with expression used to initialize variable.
5217
5218 2004-07-20 Andrew Cagney <cagney@gnu.org>
5219
5220 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5221 read_memory_nobpt.
5222 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5223 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5224 (s390_sigtramp_frame_sniffer): Update.
5225 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5226 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5227 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5228 (mips32_fetch_instruction): Update.
5229 * mcore-tdep.c (get_insn): Update.
5230 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5231 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5232 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5233 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5234 (i386_linux_rt_sigtramp_start): Update.
5235 * i386-linux-nat.c (child_resume): Update.
5236 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5237 * hppa-linux-tdep.c (insns_match_pattern): Update.
5238 * gdbcore.h: Update.
5239 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5240 * frame.c (safe_frame_unwind_memory): Update.
5241 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5242 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5243 * alpha-tdep.c (alpha_read_insn): Update.
5244
5245 2004-07-20 Andrew Cagney <cagney@gnu.org>
5246
5247 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5248 containing both bytes and mask. Add "frame_type".
5249 * tramp-frame.c (tramp_frame_start): Update.
5250 (tramp_frame_prepend_unwinder): Update.
5251 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5252 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5253 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5254 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5255
5256 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5257
5258 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5259 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5260 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5261 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5262
5263 2004-07-17 Andrew Cagney <cagney@gnu.org>
5264
5265 * NEWS, PROBLEMS: Update for 6.2.
5266
5267 * README: Update to 6.2.
5268
5269 * utils.c (xvasprintf): Call xstrvprintf.
5270
5271 * parse.c: Update copyright.
5272 (null_post_parser): Eliminate ARGSUSED.
5273
5274 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5275 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5276 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5277
5278 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5279 * ppc-linux-nat.c: Use "Linux kernel".
5280 * hppa-linux-tdep.c: Use GNU/Linux.
5281 * hppa-linux-nat.c: Use GNU/Linux.
5282 * dwarfread.c: Add [sic] to use of Linux.
5283
5284 * hppa-linux-nat.c: Do not include <string.h>.
5285 (supply_fpregset): Remove "register" attribute.
5286
5287 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5288
5289 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5290
5291 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5292 * configure, config.in: Regenerated.
5293
5294 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5295 "bsd-kvm.h".
5296 (vaxbsd_supply_pcb): New function.
5297 (_initialize_vaxbsd_nat): New prototype and function.
5298 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5299 solib-sunos.o.
5300 (LOADLIBES): New variable.
5301 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5302 (LOADLIBES): New variable.
5303 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5304 (LOADLIBES): New variable.
5305 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5306
5307 2004-07-16 Andrew Cagney <cagney@gnu.org>
5308
5309 * defs.h (event_loop_p): Replace variable declaration with macro,
5310 always 1.
5311 * main.c (captured_main): Delete options "-async" and "-noasync".
5312 (event_loop_p): Delete variable.
5313 * NEWS: Mention that "-async" and "-noasync" were removed.
5314
5315 2004-07-16 Andrew Cagney <cagney@gnu.org>
5316
5317 * remote-m32r-sdi.c: Re-indent.
5318
5319 2004-07-16 Jim Blandy <jimb@redhat.com>
5320
5321 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5322 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5323 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5324 missing MPC823 SPRs.
5325 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5326 incorrect. (This was corrected in GDB's register name tables on
5327 2004-07-14.)
5328
5329 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5330 should be "esasrr" ("ESA Save and Restore Register").
5331
5332 2004-07-16 Andrew Cagney <cagney@gnu.org>
5333
5334 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5335 calls, no longer applicable. Update comments and rename parameter
5336 "step_frame" to "return_frame".
5337
5338 2004-07-16 Andrew Cagney <cagney@gnu.org>
5339
5340 * frame.c (fprint_field): New function.
5341 (fprint_frame_id): Use fprint_field.
5342
5343 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5344
5345 * ada-lang.c (ada_language_defn): Remove commented out code.
5346
5347 2004-07-15 Jim Blandy <jimb@redhat.com>
5348
5349 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5350 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5351
5352 2004-07-14 Jim Blandy <jimb@redhat.com>
5353
5354 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5355
5356 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5357
5358 * ppc-tdep.h (ppc_num_srs): New enum constant.
5359
5360 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5361 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5362 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5363 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5364 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5365 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5366 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5367 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5368 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5369 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5370 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5371 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5372 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5373 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5374 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5375 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5376 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5377 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5378 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5379 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5380 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5381 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5382 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5383 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5384 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5385 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5386 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5387 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5388 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5389 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5390 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5391 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5392 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5393 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5394 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5395 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5396 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5397 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5398 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5399 special-purpose register numbers.
5400
5401 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5402 manual mentions 'md_twb', but many mention 'm_twb', and at that
5403 point in the register list.)
5404
5405 2004-07-14 Andrew Cagney <cagney@gnu.org>
5406
5407 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5408 instead of "internal-error".
5409
5410 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5411
5412 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5413 that was inserted inside a comment.
5414
5415 2004-07-10 Randolph Chung <tausq@debian.org>
5416
5417 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5418 function.
5419 (hppa_hpux_push_dummy_code): New function.
5420 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5421 Set find_global_pointer method.
5422
5423 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5424
5425 * NEWS: Mention BSD libkvm interface.
5426
5427 2004-07-10 Michael Snyder <msnyder@redhat.com>
5428
5429 * symfile.c (generic_load): Comment typo.
5430 * stack.c (get_selected_block): Ditto.
5431 * regcache.c (regcache_cooked_read): Ditto.
5432 * monitor.c (monitor_debug): Ditto.
5433 * mips-tdep.c (mips_read_pc): Ditto.
5434 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5435 * gdb_mbuild.sh: Ditto.
5436 * gdbarch.sh: Ditto.
5437 * gdbarch.h: Ditto.
5438
5439 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5440
5441 * ada-tasks.c: Remove file.
5442
5443 Remove ARI problems:
5444
5445 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5446 beginning of line.
5447
5448 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5449 Add comment.
5450 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5451 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5452 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5453 (UMIN_OF_SIZE): Remove.
5454 (max_of_type): New function to replace orphan macro in gdbtypes.h
5455 (min_of_type): Ditto.
5456 (discrete_type_high_bound): Use max_of_type.
5457 (discrete_type_low_bound): Use min_of_type.
5458 (possible_user_operator_p): Move operator to beginning of line.
5459 (ada_is_variant_part): Ditto.
5460 (ensure_lval): Rewrite to avoid deprecated operations.
5461 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5462 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5463 (ada_enum_name): Remove assignments in 'if' statements.
5464 (build_ada_types): Add gdbarch parameter.
5465 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5466 with gdbarch_data_register_post_init.
5467 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5468 add_show_from_set.
5469
5470 * ada-valprint.c (inspect_it): Remove declaration.
5471 (repeat_count_threshold): Remove declaration.
5472 (ada_print_floating): Remove assignments in 'if' statements.
5473 (print_str): Move operator to beginning of line.
5474
5475 2004-07-08 Jim Blandy <jimb@redhat.com>
5476
5477 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5478
5479 2004-07-08 Bob Rossi <bob@brasko.net>
5480
5481 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5482
5483 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5484
5485 * language.h (struct_language_defn): Add new function pointer:
5486 la_class_name_from_physname. Also add new prototype for
5487 language_class_name_from_physname.
5488 * language.c (language_class_name_from_physname): New function.
5489 (unk_lang_class_name): Ditto.
5490 (unknown_language_defn, auto_language_defn): Change
5491 to add unk_lang_class_name function pointer for
5492 la_class_name_from_physname.
5493 (local_language_defn): Ditto.
5494 * dwarf2read.c (guess_structure_name): Change to call
5495 language_class_name_from_physname.
5496 (determine_class_name): Ditto.
5497 * cp-support.c (class_name_from_physname): Renamed.
5498 (cp_class_name_from_physname): New name of function.
5499 * cp-support.h: Ditto.
5500 * c-lang.c (c_language_defn): Change to add NULL
5501 for class_name_from_physname function pointer.
5502 (cplus_language_defn): Change to add cp_class_name_from_physname.
5503 * jv-lang.c (java_class_name_physname): New function.
5504 (java_find_last_component): New static routine.
5505 (java_language_defn): Add java_class_name_from_physname pointer.
5506 * ada-lang.c (ada_language_defn): Change to add NULL
5507 for class_name_from_physname function pointer.
5508 * f-lang.c (f_language_defn): Ditto.
5509 * m2-lang.c (m2_language_defn): Ditto.
5510 * objc-lang.c (objc_language_defn): Ditto.
5511 * p-lang.c (pascal_language_defn): Ditto.
5512 * scm-lang.c (scm_language_defn): Ditto.
5513
5514 2004-07-06 Andrew Cagney <cagney@gnu.org>
5515
5516 Patch from Bart Robinson.
5517 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5518 (O_LARGEFILE): Define to 0, if not defined.
5519
5520 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5521
5522 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5523 <machine/pcb.h> and "bsd-kvm.h".
5524 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5525 (m68kbsd_supply_pcb): New function.
5526 (_initialize_m68kbsd_nat): New prototype and function.
5527 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5528 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5529 (LOADLIBES): New variable.
5530 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5531 (LOADLIBES): New variable.
5532
5533 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5534
5535 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5536
5537 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5538 <sys/proc.h>.
5539 (bsd_kvm_cmdlist): New variable.
5540 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5541 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5542 command and "kvm proc" command.
5543 * Makefile.in (bsd-kvm.o): Update dependencies.
5544
5545 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5546
5547 * osabi.c: Update copyright year.
5548 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5549 notes if EI_OSABI is set to ELFOSABI_HPUX.
5550
5551 2004-07-01 Michael Snyder <msnyder@redhat.com>
5552
5553 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5554 that seems to have gotten whacked out of line.
5555
5556 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5557
5558 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5559 code.
5560
5561 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5562
5563 * ada-lang.c (decode_packed_array): Minor change to comment.
5564 (ada_value_slice_ptr): New function.
5565 (ada_value_slice): New function.
5566 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5567 test. Don't know why it is there.
5568 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5569 to avoid dereferencing huge arrays from which one is slicing.
5570 (empty_array): Correct to return an array rather than
5571 a subrange value.
5572 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5573 on empty arrays (let'em use 'FIRST instead).
5574
5575 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5576
5577 Address complaints from gdb_ari.sh:
5578
5579 * ada-exp.y: Include gdb_string.h rather than string.h.
5580 (convert_char_literal): Reformat declaration.
5581 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5582 * ada-lex.l: Change use of free to xfree (the macro would do so
5583 anyway, but this is harmless).
5584 Include gdb_string.h rather than string.h.
5585 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5586
5587 * ada-lang.c (parse): Remove K&Rism in parameter list.
5588 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5589
5590 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5591
5592 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5593 dead code.
5594
5595 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5596
5597 * alphabsd-nat.c: Update copyright year.
5598 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5599
5600 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5601
5602 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5603 (i386_cygwin_in_solib_call_trampoline): New function.
5604 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5605 and skip_trampoline_code gdbarch methods.
5606
5607 2004-06-29 Jim Blandy <jimb@redhat.com>
5608
5609 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5610 name actually used in the dependency lists.
5611
5612 2004-06-29 Randolph Chung <tausq@debian.org>
5613
5614 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5615
5616 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5617
5618 * win32-nat.c (child_pid_to_exec_file): New function.
5619 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5620 functionality.
5621
5622 2004-06-28 Andrew Cagney <cagney@gnu.org>
5623
5624 * defs.h (xstrvprintf): Declare.
5625 * utils.c (xstrvprintf): New function.
5626 (internal_vproblem, xstrprintf, xasprintf)
5627 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5628 * serial.c (serial_printf): Ditto.
5629 * complaints.c (vcomplaint): Ditto.
5630
5631 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5632
5633 * infcmd.c (attach_command): Move call to target_terminal_inferior
5634 behind loading symbol table.
5635
5636 2004-06-28 Andrew Cagney <cagney@gnu.org>
5637
5638 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5639 change - add back extern deprecated_ui_loop_hook declaration.
5640
5641 2004-06-28 Andrew Cagney <cagney@gnu.org>
5642
5643 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5644 xstrprintf.
5645 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5646 (c_value_of_variable): Ditto.
5647 * utils.c (internal_vproblem): Ditto.
5648 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5649 * remote.c (add_packet_config_cmd): Ditto.
5650 * remote-rdp.c (rdp_set_command_line): Ditto.
5651 * regcache.c (regcache_dump): Ditto.
5652 * frv-tdep.c (new_variant, new_variant): Ditto.
5653 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5654 (fbsd_find_memory_regions): Ditto.
5655 * breakpoint.c (create_thread_event_breakpoint)
5656 (create_breakpoints): Ditto.
5657 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5658 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5659
5660 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5661
5662 * ada-lang.c: Re-indent file, with some massaging to help indent
5663 a bit when the result is otherwise really too ugly.
5664
5665 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5666
5667 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5668 code_addr_p and special_addr_p to 'unsigned int'.
5669
5670 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5671
5672 * i386v4-nat.c: Update copyright year and tweak comment.
5673 (regmap): Remove trailing comma.
5674 (supply_gregset): Rename local variable i to regnum. Call
5675 regcache_raw_supply instead of supply_register.
5676 (fill_gregset): Rename argument regno to regnum. Call
5677 regcache_raw_collect instead of regcache_collect.
5678
5679 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5680
5681 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5682 and special_addr_p.
5683 (frame_id_build, frame_id_build_special): Update comments.
5684 (frame_id_build_wild): New prototype.
5685 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5686 struct frame_id fields.
5687 (frame_id_build_wild): New function.
5688 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5689
5690 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5691
5692 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5693 hppabsd-tdep.c.
5694
5695 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5696
5697 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5698
5699 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5700
5701 * ada-lang.c: Re-indent file.
5702
5703 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5704
5705 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5706 (no_symtab_msg): Likewise.
5707
5708 2004-06-27 Andreas Schwab <schwab@suse.de>
5709
5710 * source.c: Fix whitespace.
5711
5712 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5713
5714 * configure.in: Include <sys/param.h> for td_pcb test.
5715 * configure: Regenerated.
5716
5717 * i386nbsd-nat.c: New file.
5718 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5719 i386obsd-nat.c and i386obsd-tdep.c.
5720 (i386nbsd-nat.o): New dependency.
5721 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5722 bsd-kvm.o.
5723 (LOADLIBES): New variable.
5724 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5725 bsd-kvm.o.
5726 (LOADLIBES): New variable.
5727
5728 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5729 (LOADLIBES): New variable.
5730
5731 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5732 fetching from BSD_KVM_PADDR. Correctly lookup address for
5733 "_thread0".
5734
5735 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5736 "bsd-kvm.h".
5737 (amd64fbsd_supply_pcb): New funcion.
5738 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5739
5740 2004-06-27 <david@streamline-computing.com>
5741
5742 Partial fix for PR cli/1056.
5743 * valarith.c: Check for zero in division and remainder
5744 evaluation.
5745
5746 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5747
5748 * i387-tdep.c: Remove excessive whitespace.
5749
5750 2004-06-26 Andrew Cagney <cagney@gnu.org>
5751
5752 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5753 * gdb-events.h, gdb-events.c: Re-generate.
5754 * tui/tui-hooks.c (tui_install_hooks): Update.
5755 (tui_remove_hooks): Update.
5756 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5757
5758 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5759
5760 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5761 (gregset_t, fpregset_t): Remove typedefs.
5762 (REG_OFFSET): Rename argument.
5763 (amd64bsd_r_reg_offset): Rename from reg_offset.
5764 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5765 Remove functions.
5766 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5767 of reg_offset.
5768 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5769
5770 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5771
5772 * vax-tdep.c: Tweak comment.
5773
5774 Add OpenBSD/hppa support.
5775 * NEWS (New native configurations): Mention OpenBSD/hppa.
5776 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5777 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5778 files.
5779 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5780 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5781 * configure.host: Add hppa*-*-openbsd*.
5782 * configure.tgt: Add hppa*-*-openbsd*.
5783
5784 2004-06-25 Andrew Cagney <cagney@gnu.org>
5785
5786 * defs.h (deprecated_ui_loop_hook): Deprecated.
5787 * wince.c (child_wait): Update.
5788 * win32-nat.c (child_wait): Update.
5789 * v850ice.c (v850ice_wait): Update.
5790 * top.c (deprecated_ui_loop_hook): Update.
5791 * serial.h: Update.
5792 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5793 (do_unix_readchar): Update.
5794 * ser-tcp.c (net_open): Update.
5795 * remote-sim.c (gdb_os_poll_quit): Update.
5796 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5797
5798 2004-06-24 Andrew Cagney <cagney@gnu.org>
5799
5800 * defs.h (deprecated_pre_add_symbol_hook)
5801 (deprecated_post_add_symbol_hook): Deprecated.
5802 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5803 (symbol_file_add_with_addrs_or_offsets): Update references.
5804
5805 2004-06-24 Andrew Cagney <cagney@gnu.org>
5806
5807 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5808 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5809 * wince.c (ui_loop_hook): Delete extern declaration.
5810 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5811 * v850ice.c (ui_loop_hook): Delete extern declaration..
5812 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5813 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5814 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5815 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5816 ui_loop_hook declaration.
5817
5818 2004-06-24 Andrew Cagney <cagney@gnu.org>
5819
5820 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5821 entry_func_highpc fields.
5822 * objfiles.c (init_entry_point_info): Do not clear
5823 entry_func_lowpc and entry_func_highpc.
5824 (objfile_relocate): Do not relocate entry_func_lowpc and
5825 entry_func_highpc.
5826 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5827 entry_func_highpc.
5828 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5829 entry_func_highpc.
5830 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5831 entry_func_lowpc and entry_func_highpc with call to
5832 inside_entry_func.
5833
5834 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5835
5836 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5837 quad-precision floating point arguments in registers.
5838
5839 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5840
5841 From Michael Mueller <m.mueller99@kay-mueller.de>:
5842 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5843 account.
5844
5845 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5846
5847 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5848 to -1.
5849 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5850 untriggered watchpoints to a separate if clause. Update function
5851 comment regarding STOPPED_BY_WATCHPOINT argument.
5852
5853 2004-06-22 Jim Blandy <jimb@redhat.com>
5854
5855 * gdbarch.sh: Doc fix.
5856
5857 2004-06-21 Martin Hunt <hunt@redhat.com>
5858 Kevin Buettner <kevinb@redhat.com>
5859
5860 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5861 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5862 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5863 to set_gdbarch_sp_regnum(). Use cooked register number.
5864 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5865
5866 2004-06-21 Andrew Cagney <cagney@gnu.org>
5867
5868 * gdbarch.sh: When the macro field is empty, do not generate a
5869 macro definition. When the macro field is "=", generate the macro
5870 name from the upper-case function name.
5871 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5872 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5873 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5874 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5875 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5876 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5877 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5878 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5879 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5880 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5881 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5882 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5883 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5884 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5885 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5886 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5887 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5888 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5889 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5890 (DEPRECATED_USE_STRUCT_CONVENTION)
5891 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5892 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5893 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5894 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5895 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5896 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5897 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5898 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5899 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5900 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5901 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5902 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5903 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5904 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5905 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5906 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5907 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5908 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5909
5910 2004-06-21 Andrew Cagney <cagney@gnu.org>
5911
5912 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5913 macro name, and the function rather than macro value. Only wrap
5914 macro print statements in #ifdef. Move format logic to where it
5915 is needed.
5916 * gdbarch.c: Re-generate.
5917
5918 * gdbarch.sh (read): Delete "print_p" and "description", add
5919 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5920 Delete references to print_p.
5921 (TARGET_ARCHITECTURE): Delete print predicate.
5922 * gdbarch.c: Re-generate.
5923
5924 * gdbarch.sh: Check that multi-arch methods do not provide a
5925 macro.
5926 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5927 (print_registers_info, print_float_info, print_vector_info)
5928 (adjust_breakpoint_address, remote_translate_xfer_address)
5929 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5930 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5931 name from the multi-arch definition.
5932
5933 2004-06-20 Andrew Cagney <cagney@gnu.org>
5934
5935 * gdbarch.sh: Sort by the function, instead of macro name.
5936 * gdbarch.c: Re-generate.
5937
5938 2004-06-20 Andrew Cagney <cagney@gnu.org>
5939
5940 * gdbarch.sh: Use the function, instead of macro name in
5941 errors and the log file.
5942 (return_value): Remove stray ":" in spec.
5943
5944 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5945 * gdbarch.h, gdbarch.c: Re-generate.
5946 * Makefile.in (arch-utils.o): Update dependencies.
5947 * values.c (using_struct_return): Move code calling
5948 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5949 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5950 to legacy_return_value, simplify.
5951 * infcmd.c (print_return_value): Move code calling
5952 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5953 to legacy_return_value, simplify.
5954 * infcall.c (call_function_by_hand): Move code calling
5955 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5956 * arch-utils.c: Update copyright. Include "gdbcore.h".
5957 (legacy_return_value): New function.
5958 * arch-utils.h: Update copyright.
5959 (legacy_return_value): Declare.
5960
5961 2004-06-20 Andrew Cagney <cagney@gnu.org>
5962
5963 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5964 * gdbarch.h, gdbarch.c: Re-generate.
5965 * values.c (using_struct_return): Update call.
5966 * mcore-tdep.c: Update comment.
5967 * infcall.c (call_function_by_hand): Update comment.
5968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5969 * arch-utils.h (always_use_struct_convention): Update.
5970 * v850-tdep.c (v850_gdbarch_init): Update.
5971 * sh64-tdep.c (sh64_gdbarch_init): Update.
5972 * sh-tdep.c (sh_gdbarch_init): Update.
5973 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5974 * mips-tdep.c (mips_gdbarch_init): Update.
5975 * mcore-tdep.c (mcore_gdbarch_init): Update.
5976 * m32r-tdep.c (m32r_gdbarch_init): Update.
5977 * ia64-tdep.c (ia64_gdbarch_init): Update.
5978 * h8300-tdep.c (h8300_gdbarch_init): Update.
5979 * frv-tdep.c (frv_gdbarch_init): Update.
5980 * cris-tdep.c (cris_gdbarch_init): Update.
5981 * arm-tdep.c (arm_gdbarch_init): Update.
5982 * alpha-tdep.c (alpha_gdbarch_init): Update.
5983
5984 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5985
5986 * PROBLEMS: Add more specific information, and a work-around,
5987 for PR gdb/1458.
5988
5989 2004-06-18 Andrew Cagney <cagney@gnu.org>
5990
5991 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * ada-lang.c (ada_finish_decode_line_1): Update.
5994 * infrun.c (handle_inferior_event): Update.
5995 * infcall.c (find_function_addr): Update.
5996 * linespec.c (minsym_found): Update.
5997 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5998 Update.
5999 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6000 * cli/cli-cmds.c (disassemble_command): Update.
6001 * vax-tdep.c (vax_gdbarch_init): Update.
6002
6003 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6004
6005 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6006
6007 2004-06-17 Andrew Cagney <cagney@gnu.org>
6008
6009 GDB 6.1.1 released from the GDB 6.1 branch.
6010 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6011 * PROBLEMS: Ditto.
6012
6013 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6014
6015 PR gdb/1658
6016 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6017 operation as a uleb128. Found by Michael Coulter.
6018
6019 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6020
6021 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6022 make it non-static.
6023 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6024 to ada-lang.h; this is needed to be able to implement the kill command
6025 in multi-task mode.
6026 (task_ptid): Ditto.
6027 (task_entry): Ditto.
6028 (task_list): Ditto.
6029 (ada_build_task_list): Ditto.
6030
6031 * ada-lang.c: Conditionalize routines and data structures related
6032 to breakpoints, exceptions, completion, and symbol caching on
6033 GNAT_GDB, since these are not yet used in the submitted public sources.
6034 (ada_main_name): Editorial: Move definition out of exception-related
6035 code.
6036
6037 2004-06-15 Andrew Cagney <cagney@gnu.org>
6038
6039 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6040 deprecated_pc_in_call_dummy.
6041
6042 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6043
6044 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6045 bfd_get_section_size_before_reloc or _raw_size.
6046 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6047 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6048 (dwarf2_read_section): Likewise.
6049 * elfread.c (elf_locate_sections): Likewise.
6050 * gcore.c (derive_heap_segment): Likewise.
6051 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6052 * remote-e7000.c (e7000_load): Likewise.
6053 * remote-m32r-sdi.c (m32r_load): Likewise.
6054 * remote-mips.c (mips_load_srec): Likewise.
6055 (pmon_load_fast): Likewise.
6056 * remote.c (compare_sections_command): Likewise.
6057 * symfile.c (add_section_size_callback): Likewise.
6058 (load_section_callback): Likewise.
6059 (pc_in_unmapped_range): Likewise.
6060 (pc_in_mapped_range): Likewise.
6061 (sections_overlap): Likewise.
6062 (list_overlays_command): Likewise.
6063 (simple_overlay_update_1): Likewise.
6064 (simple_overlay_update): Likewise.
6065 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6066 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6067
6068 2004-06-14 Randolph Chung <tausq@debian.org>
6069
6070 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6071 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6072 static.
6073 (hppa_hpux_inferior_created): New function.
6074 (hppa_hpux_init_abi): Register observer.
6075 * symfile.c (hp_cxx_exception_support_initialized)
6076 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6077 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6078
6079 2004-06-14 Randolph Chung <tausq@debian.org>
6080
6081 * MAINTAINERS (Write After Approval): Alphabetize my entry
6082 correctly.
6083
6084 2004-06-14 Andrew Cagney <cagney@gnu.org>
6085
6086 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6087 testsuite maintainer.
6088
6089 2004-06-13 Andrew Cagney <cagney@gnu.org>
6090
6091 * infcmd.c (print_return_value): Fix logic, allow
6092 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6093
6094 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6095 defining any macros.
6096 * gdbarch.h: Re-generate.
6097
6098 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6099 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6100 * gdbarch.h: Re-generate.
6101
6102 * values.c (generic_use_struct_convention): Don't check gcc_p.
6103
6104 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6105 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6106 * gdbarch.h, gdbarch.c: Regenerate.
6107 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6108 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6110 deprecated_max_register_raw_size and
6111 deprecated_max_register_virtual_size.
6112 * v850-tdep.c (v850_gdbarch_init): Ditto.
6113 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6115 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6116 * cris-tdep.c (cris_gdbarch_init): Ditto.
6117
6118 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6119 * gdbarch.h, gdbarch.c: Re-generate.
6120 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6121 (m68hc11_use_struct_convention): Delete function.
6122 (m68hc11_extract_struct_value_address): Delete function.
6123 (m68hc11_return_value): New function.
6124 (m68hc11_gdbarch_init): Instead of store_return_value,
6125 extract_return_value, return_value_on_stack,
6126 deprecated_extract_struct_value_address and use_struct_convention,
6127 set return_value.
6128 * values.c (using_struct_return): Do not call
6129 RETURN_VALUE_ON_STACK.
6130 * arch-utils.h (generic_return_value_on_stack_not): Delete
6131 declaration.
6132 * arch-utils.c (generic_return_value_on_stack_not): Delete
6133 function.
6134
6135 2004-06-12 Andrew Cagney <cagney@gnu.org>
6136
6137 * values.c (register_value_being_returned): Delete function.
6138 * infcmd.c (legacy_return_value): Delete function.
6139 * infcall.c (call_function_by_hand): Inline
6140 "register_value_being_returned", simplify.
6141 * values.c (using_struct_return): Update comment, refer to
6142 print_return_value instead of register_value_being_returned.
6143 * infcmd.c (print_return_value): Inline calls to
6144 register_value_being_returned and legacy_return_value. Simplify.
6145
6146 2004-06-11 Randolph Chung <tausq@debian.org>
6147
6148 * somread.c (som_symtab_read): Exclude gcc local symbols.
6149
6150 2004-06-11 Randolph Chung <tausq@debian.org>
6151
6152 * infrun.c (handle_inferior_event): Handle the case when a
6153 trampoline ends up in the runtime resolver, and if the trampoline
6154 has no name. Rearrange the code so that all the trampoline
6155 processing happens before other step-out-of-range handling.
6156
6157 2004-06-11 Martin Hunt <hunt@redhat.com>
6158
6159 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6160 has no fpu.
6161
6162 2004-06-10 Andrew Cagney <cagney@gnu.org>
6163
6164 * blockframe.c (legacy_inside_entry_func): Delete.
6165 (legacy_frame_chain_valid): Inline call to
6166 legacy_inside_entry_func, simplify.
6167
6168 2004-06-10 Bob Rossi <bob@brasko.net>
6169
6170 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6171 * dwarf2read.c (partial_die_info): Add dirname field.
6172 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6173 (read_partial_die): Save away DW_AT_comp_dir.
6174 * defs.h (symtab_to_filename): Removed.
6175 * source.c (find_and_open_source): Added.
6176 (open_source_file): Just calls find_and_open_source.
6177 (symtab_to_filename): Removed.
6178 (symtab_to_fullname, psymtab_to_fullname): Added.
6179 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6180 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6181 symtab_to_filename.
6182 * symtab.h (partial_symtab): Add dirname field.
6183 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6184 (mi_cmd_file_list_exec_source_file): Call new function
6185 symtab_to_fullname to find fullname.
6186 (mi_cmd_file_list_exec_source_files): Added.
6187 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6188 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6189
6190 2004-06-10 Andrew Cagney <cagney@gnu.org>
6191
6192 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6193 to generic_use_struct_convention, the default value.
6194
6195 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6196 of abort.
6197
6198 * ns32k-tdep.c (ns32k_push_arguments): New function.
6199 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6200 * infcall.c (call_function_by_hand): Call error instead of
6201 legacy_push_arguments.
6202 * value.h (legacy_push_arguments): Delete declaration.
6203 * valops.c (legacy_push_arguments): Delete function.
6204 (value_push): Delete function.
6205
6206 2004-06-10 Brian Ford <ford@vss.fsi.com>
6207
6208 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6209 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6210 info.
6211 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6212
6213 2004-06-10 Andrew Cagney <cagney@gnu.org>
6214
6215 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6216 * gdbarch.h, gdbarch.c: Re-generate.
6217 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6218 parameters.
6219 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6220 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6221 deprecated_pc_in_call_dummy instead of
6222 DEPRECATED_PC_IN_CALL_DUMMY.
6223 (arm_skip_prologue): Ditto.
6224 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6225 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6226 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6227 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6228 Ditto.
6229 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6230 (sh64_init_extra_frame_info, sh64_get_saved_register)
6231 (sh64_pop_frame): Ditto.
6232 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6233 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6234 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6235 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6236 (h8300_pop_frame): Ditto.
6237 * blockframe.c (legacy_inside_entry_func)
6238 (legacy_frame_chain_valid): Ditto.
6239 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6240 to deprecated_pc_in_call_dummy.
6241
6242 2004-06-09 Andrew Cagney <cagney@gnu.org>
6243
6244 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6245 provide a default value.
6246 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6247 * gdbarch.h, gdbarch.c: Re-generate.
6248 * arch-utils.c (generic_convert_register_p): Rename
6249 legacy_convert_register_p
6250 (legacy_register_to_value, legacy_value_to_register): Delete
6251 functions.
6252 * arch-utils.h (generic_convert_register_p): Rename
6253 legacy_convert_register_p.
6254 (legacy_register_to_value, legacy_value_to_register): Delete
6255 declarations.
6256
6257 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6258 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6259 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6260 * gdbarch.h, gdbarch.c: Re-generate.
6261 * infcmd.c (default_print_registers_info): Simplify.
6262 * findvar.c (value_of_register): Simplify.
6263 * mi/mi-main.c (get_register): Simplify.
6264 * arch-utils.c (legacy_convert_register_p): Always return 0.
6265 (legacy_register_to_value, legacy_value_to_register): Always call
6266 internal_error.
6267
6268 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6269 #ifdef CLEAR_INSN_CACHE code.
6270 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6271 Delete #ifdef CLEAR_DEFERRED_STORES code.
6272
6273 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6274
6275 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6276 copyright.
6277 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6278
6279 * config/mips/mipsv4.mh: Delete file.
6280
6281 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6282 unreferenced macro.
6283 (hpread_adjust_stack_address): Delete declaration.
6284
6285 2004-06-08 Andrew Cagney <cagney@gnu.org>
6286
6287 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6288 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6289 PTRACE_ATTACH / PTRACE_DETACH available call error.
6290 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6291 * infttrace.c (update_thread_state_after_attach, attach, detach):
6292 Remove #ifdef wrappers.
6293 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6294 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6295 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6296 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6297 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6298 * config/nm-linux.h (ATTACH_DETACH): Delete.
6299 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6300 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6301 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6302 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6303 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6304
6305 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6306
6307 * configure.in: Set $configdir to the right OS specific value.
6308 Use value when setting $tcldir and $tkdir.
6309 * configure: Regenerate.
6310
6311 2004-06-06 Paul Brook <paul@codesourcery.com>
6312
6313 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6314 records.
6315
6316 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6317
6318 * ada-lang.c (lookup_symbol_in_language): New function to allow
6319 re-use of another language's symbol lookup code. (Placed here
6320 temporarily while Ada support is being integrated into the public
6321 tree).
6322 (restore_language): New auxiliary function for
6323 lookup_symbol_in_language.
6324 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6325 temporarily while Ada support is being integrated into the public
6326 tree).
6327
6328 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6329
6330 * Makefile.in (check//%): New.
6331
6332 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6333 (mn10300_store_return_value): Rewrite.
6334 (mn10300_type_align): New.
6335 (mn10300_use_struct_convention): Rewrite.
6336 (mn10300_return_value): New, using all of the above.
6337 (mn10300_pop_frame_regular): Add saved_regs_size.
6338 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6339
6340 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6341 regs if PC is on movm.
6342
6343 2004-06-07 Jim Blandy <jimb@redhat.com>
6344
6345 Add native Linux support for the PowerPC E500.
6346 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6347 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6348 all architectures except the E500.
6349 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6350 #definitions.
6351 (struct gdb_evrregset_t): New type.
6352 (have_ptrace_getsetevrregs): New variable.
6353 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6354 fetch_spe_registers): New functions.
6355 (fetch_register): Call fetch_spe_register as appropriate.
6356 Assert that we're only passed raw register numbers.
6357 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6358 Don't fetch gprs if they're pseudoregisters.
6359 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6360 store_spe_registers): New functions.
6361 (store_register): Call store_spe_register as appropriate.
6362 Assert that we're only passed raw register numbers.
6363 (store_ppc_registers): Call store_spe_registers as appropriate.
6364 Don't store gprs if they're pseudoregisters.
6365
6366 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6367
6368 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6369 struct if one exists, even if we are dealing with a zombie thread.
6370
6371 2004-06-07 Andrew Cagney <cagney@gnu.org>
6372
6373 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6374 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6375 Rename PC_REQUIRES_RUN_BEFORE_USE.
6376 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6377 #ifdef.
6378
6379 2004-06-07 Randolph Chung <tausq@debian.org>
6380
6381 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6382 unwinding after sp has been saved to the stack but before the end
6383 of the prologue, and after the fp has been modified but before it has
6384 been saved to the stack.
6385 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6386 Remove superfluous definitions.
6387 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6388
6389 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6390
6391 Committed by Randolph Chung.
6392 * hppa-linux-nat.c: Include the correct version of the header file
6393 depending on the kernel version.
6394
6395 2004-06-06 Randolph Chung <tausq@debian.org>
6396
6397 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6398 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6399
6400 2004-06-06 Randolph Chung <tausq@debian.org>
6401
6402 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6403 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6404 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6405 * hppa-tdep.c (hppa_symbol_address): New function definition.
6406 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6407
6408 2004-06-06 Randolph Chung <tausq@debian.org>
6409
6410 * hppa-tdep.h (struct value): Forward declaration.
6411 (gdbarch_tdep): Define tdep find_global_pointer method.
6412 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6413 associated with the function we are trying to call, and write it
6414 to the gp register.
6415 (hppa32_convert_from_funct_ptr_addr): New function.
6416 (hppa_find_global_pointer): New function.
6417 (hppa_gdbarch_init): Set default find_global_pointer method; set
6418 convert_from_func_ptr_addr method.
6419 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6420 (hppa_linux_init_abi): Set find_global_pointer method.
6421 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6422
6423 2004-06-06 Randolph Chung <tausq@debian.org>
6424
6425 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6426 to struct value *function.
6427 * gdbarch.c: Regenerate.
6428 * gdbarch.h: Likewise.
6429 * infcall.c (call_function_by_hand): Pass entire function value
6430 to push_dummy_call.
6431
6432 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6433 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6434 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6435 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6436 * arm-tdep.c (arm_push_dummy_call): Likewise.
6437 * avr-tdep.c (avr_push_dummy_call): Likewise.
6438 * cris-tdep.c (cris_push_dummy_call): Likewise.
6439 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6440 * frv-tdep.c (frv_push_dummy_call): Likewise.
6441 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6442 * hppa-tdep.c (hppa32_push_dummy_call)
6443 (hppa64_push_dummy_call): Likewise.
6444 * i386-tdep.c (i386_push_dummy_call): Likewise.
6445 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6446 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6447 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6448 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6449 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6450 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6451 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6452 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6453 (ppc64_sysv_abi_push_dummy_call): Likewise.
6454 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6455 (ppc64_sysv_abi_push_dummy_call): Likewise.
6456 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6457 * s390-tdep.c (s390_push_dummy_call): Likewise.
6458 * sh-tdep.c (sh_push_dummy_call_fpu)
6459 (sh_push_dummy_call_nofpu): Likewise.
6460 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6461 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6462 * vax-tdep.c (vax_push_dummy_call): Likewise.
6463
6464 2004-06-04 Jim Blandy <jimb@redhat.com>
6465
6466 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6467 gdbarch argument to register_size.
6468
6469 * rs6000-tdep.c (rs6000_store_return_value): Use
6470 regcache_cooked_write_part instead of
6471 deprecated_write_register_bytes.
6472 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6473 not gdbarch_deprecated_store_return_value.
6474
6475 * ppc-linux-nat.c (store_register, fetch_register): Remove
6476 incorrect assertions. Simplify and generalize handling of
6477 transfers whose sizes are not multiples of, or less than, sizeof
6478 (PTRACE_XFER_TYPE).
6479
6480 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6481
6482 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6483 as a new thread event.
6484 * thread-db.c (thread_get_info_callback): If the thread is a
6485 zombie, return TD_THR_ZOMBIE.
6486 (thread_from_lwp): If thread_get_info_callback returns
6487 TD_THR_ZOMBIE, check if the thread is still on the thread list
6488 and return a -1 ptid if not found.
6489 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6490 change the status to TARGET_WAITKIND_SPURIOUS.
6491
6492 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6493
6494 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6495 double values in little endian mode.
6496
6497 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6498
6499 Committed by Andrew Cagney.
6500 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6501 after last enum constant to avoid error from IBM C
6502 compiler.
6503
6504 2004-06-02 Jim Blandy <jimb@redhat.com>
6505
6506 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6507 to 'message', and make it local to the lone block that uses it.
6508
6509 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6510
6511 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6512
6513 * ada-exp.y: Update copyright notice.
6514 Include block.h.
6515
6516 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6517 SPECIAL_VARIABLE and unify the treatment of these cases.
6518
6519 (write_attribute_call0): Remove.
6520 (write_attribute_call1): Remove.
6521 (write_attribute_calln): Remove.
6522 (save_qualifier): Add missing semicolon.
6523
6524 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6525 temporarily disabled to allow compilation with FSF head version.
6526
6527 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6528 use individual operators (OP_*) for all attributes.
6529 (exp syntax): Use write_int.
6530 Handle STRING literals with OP_STRING.
6531 (variable syntax): Add limit parameter to calls to
6532 write_object_renaming.
6533
6534 (temp_parse_space): New definition to hold entities that need
6535 only live until the next call to ada_parse.
6536 (string_to_operator): Rename fields of ada_opname_table entries.
6537
6538 (write_var_from_sym): Record block.
6539 (write_var_from_name): Minor reformatting.
6540 Make sure saved name is properly encoded in the case of multiple
6541 matches, and set its language to Ada.
6542 Update comment.
6543 Modify to indicate unresolved name as symbol in the UNRESOLVED
6544 namespace, allocated in temp_parse_space.
6545 (write_int): New function.
6546
6547 (write_object_renaming): Add max_depth parameter to limit
6548 chains of object renamings.
6549 Handle case where root of renaming expression is itself a renaming.
6550 Use temp_parse_space for temporary name buffer.
6551 Handle renamings to dereferenced pointers (___XEXA suffices).
6552
6553 (ada_parse, yyerror, string_to_operator,
6554 write_var_from_sym, write_var_from_name, write_attribute_call0,
6555 write_attribute_call1, write_attribute_calln,
6556 write_object_renaming): Protoize.
6557
6558 (_initialize_ada_exp): New function.
6559
6560 * ada-lang.c: Update copyright notice.
6561 General terminology change to conform to GNAT compiler usage:
6562 mangle => encode, demangle => decode
6563 Include gdb_obstack.h.
6564 Include gdb_regex.h
6565 Include frame.h
6566 Include hashtab.h
6567 Include completer.h
6568 Include gdb_stat.h
6569 Include block.h
6570 Include infcall.h
6571
6572 (ADA_RETAIN_DOTS): Make sure this is defined.
6573 (TRUNCATION_TOWARDS_ZERO): Define.
6574 (struct string_vector): Define.
6575 (unresolved_names): Remove definition.
6576 (xnew_string_vector): New function.
6577 (string_vector_append): New function.
6578 (extract_string): Make static.
6579 (ada_unqualified_name): New function.
6580 (add_angle_brackets): New function.
6581 (function_name_from_pc): New function.
6582 (place_on_stack): Rename to ensure_lval.
6583
6584 (ensure_lval): Renamed from place_on_stack.
6585 Make identity on lvals.
6586 Update comment.
6587 (is_nonfunction): New interface.
6588 Only symbols in LOC_CONST class can be enumerals.
6589 (fill_in_ada_prototype): Remove; now independent of language.
6590 (add_defn_to_vec): Add obstack and symtab arguments.
6591 Use obstack to hold collected definitions.
6592 (num_defns_collected): New function.
6593 (defns_collected): New function.
6594 (ada_resolve_subexp): Rename to resolve_subexp.
6595 (resolve_subexp): Renamed from ada_resolve_subexp.
6596 (ada_op_name): Return non-const result.
6597 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6598 other purposes.
6599
6600 (to_fixed_array_type): Add declaration.
6601 (coerce_unspec_val_to_type): Remove offset parameter.
6602 (find_sal_from_funcs_and_line): New interface.
6603 (find_line_in_linetable): Ditto.
6604
6605 (all_sals_for_line): Rename to ada_sals_for_line and make
6606 global.
6607 Add new parameter. When set, do not ask the user to choose the
6608 instance, but use the first one found instead.
6609 Use given line number in returned sals.
6610 Fix comment.
6611 Skip the prologue if funfirstline is set.
6612 Correct for memory leak when 0 lines found.
6613
6614 (value_pos_atr): Use pos_atr.
6615 (pos_atr): New function.
6616 (standard_lookup): Add block parameter.
6617
6618 (makeTimeStart): Remove declaration and uses.
6619 (makeTimeStop): Remove declaration and uses.
6620
6621 (ada_completer_word_break_characters): Allow for VMS.
6622 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6623 (raise_sym_name): New constant.
6624 (raise_unhandled_sym_name): New constant.
6625 (raise_assert_sym_name): New constant.
6626 (process_raise_exception_name): New constant.
6627 (longest_exception_template): New constant.
6628 (warning_limit): New variable to limit warnings during expression
6629 evaluation.
6630 (warnings_issued): New variable to keep track of warnings issued.
6631 (known_runtime_file_name_patterns): New constant.
6632 (known_auxiliary_function_name_patterns): New constant.
6633 (symbol_list_obstack): New variable.
6634
6635 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6636 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6637 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6638 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6639 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6640 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6641 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6642 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6643 and strcmp.
6644
6645 (ada_get_field_index): New function.
6646 (lim_warning): New function.
6647 (ada_translate_error_message): New function.
6648 (MAX_OF_SIZE): New function.
6649 (MIN_OF_SIZE): New function.
6650 (UMAX_OF_SIZE): New function.
6651 (UMIN_OF_SIZE): New function.
6652 (discrete_type_high_bound): New function.
6653 (discrete_type_low_bound): New function.
6654 (base_type): New function.
6655 (do_command): Remove.
6656
6657 (ada_update_initial_language): Use language_ada, not language_unknown.
6658 (ada_encode): Renamed from ada_mangle.
6659 Obey ADA_RETAIN_DOTS.
6660 (ada_decode): Renamed from ada_demangle.
6661 Update coding conventions.
6662 (decoded_names_store): New hash table.
6663 (ada_decode_symbol): New function.
6664 (ada_la_decode): New function.
6665
6666 (modify_general_field): Correct computations of offset and bit
6667 position.
6668 (desc_base_type): Handle ref types, too.
6669 (ada_is_direct_array_type): New function.
6670
6671 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6672 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6673 (ada_is_bogus_array_descriptor,ada_type_of_array,
6674 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6675 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6676 ada_is_array_descriptor_type.
6677
6678 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6679 (ada_is_packed_array_type): Handle pointers or
6680 references to packed arrays as well.
6681 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6682 (decode_packed_array_type): Search for the packed array type
6683 symbol in the currently selected block and associated
6684 superblocks too.
6685 Use lookup_symbol again.
6686
6687 (decode_packed_array): Handle pointers and references.
6688 Update call to coerce_unspec_val_to_type.
6689 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6690 (ada_value_primitive_packed_val): Improve comment.
6691
6692 (ada_index_type): Substitute int type for "undefined".
6693 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6694 ada_array_langth, ada_is_string_type): Use renamed
6695 ada_is_simple_array_type.
6696 (empty_array): New function.
6697
6698 (ada_resolve): Rename to resolve.
6699 (resolve): Make static.
6700 Call renamed resolve_subexp.
6701 Update comment.
6702 (ada_resolve_subexp): Rename to resolve_subexp.
6703 (resolve_subexp): Update comment.
6704 Decomment disabled code.
6705 Add LOC_COMPUTED* cases.
6706 Modify to use temporary struct symbols (marked as being in
6707 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6708 OP_UNRESOLVED_VALUE.
6709 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6710 Add OP_STRING case.
6711 Remove OP_ARRAY.
6712 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6713 Use new ada_lookup_symbol_list interface.
6714 Use new ada_resolve_function interface.
6715 Remove OP_TYPE case.
6716
6717 (ada_args_match): Idiot proof against null actuals.
6718 Use intermediate variables to clarify.
6719 (ada_resolve_function): Update comment and interface.
6720 (mangled_ordered_before): Rename to encoded_ordered_before and
6721 update comment.
6722 (sort_choices): Update comment and interface.
6723 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6724 (user_select_syms): New interface.
6725 Use new sort_choices interface.
6726 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6727 (possible_user_operator_p): Idiot-proof against null values.
6728 (ada_simple_renamed_entity): Don't make cleanup; rely on
6729 caller to free result string.
6730 Remove const from return type.
6731 (make_array_descriptor): Rename uses of place_on_stack to
6732 ensure_lval.
6733 Make sure that arrays are on stack.
6734
6735 (HASH_SIZE): Define.
6736 (struct cache_entry): Define.
6737 (cache_space): Define.
6738 (cache): Define.
6739 (clear_ada_sym_cache): New function.
6740 (find_entry): New function.
6741 (lookup_cached_symbol): New function.
6742 (defn_vector_size): Define.
6743 (cache_symbol): New function.
6744 (defn_symbols): Remove.
6745
6746 (standard_lookup): Use lookup_symbol_in_language to get effect of
6747 C lookup.
6748 Cache results.
6749
6750 (symbol_completion_match): New function.
6751 (symbol_completion_add): New function.
6752 (ada_make_symbol_completion_list): New function.
6753
6754 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6755 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6756 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6757 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6758
6759 (ada_lookup_simple_minsym): New function.
6760 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6761
6762 (add_symbols_from_enclosing_procs): New interface.
6763 Conditionalize more helpfully.
6764 Don't bother if program isn't running.
6765 Use new interface to get_frame_block.
6766 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6767
6768 (remove_extra_symbols): New interface.
6769 (xget_renaming_scope): New function.
6770 (is_package_name): New function.
6771 (renaming_is_visible): New function.
6772 (remove_out_of_scope_renamings): New function.
6773
6774 (ada_lookup_symbol_list): New interface.
6775 Properly reinitialize the symbol list obstack.
6776 Don't call add_symbols_from_enclosing_procs if we start from a
6777 static or global block.
6778 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6779 add_symbols_from_enclosing_procs.
6780 Add symtab data to cached entries.
6781 Handle symbols prefixed with
6782 "standard__" specially; strip prefix and don't look in local symbols.
6783 Do not include out of scope renaming symbols in list of
6784 symbols returned.
6785 Add const to block parameter.
6786 Move check for non-local, non-global symbols earlier.
6787 Remove timing stuff.
6788 (ada_lookup_symbol): New interface.
6789 Find symtab as well.
6790 (ada_lookup_symbol_nonlocal): New function.
6791
6792 (is_name_suffix): Enhance suffix detection to recognize
6793 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6794 (is_dot_digits_suffix): New function.
6795 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6796
6797 (ada_add_block_symbols): New interface. Use obstack to return results
6798 in a vector of struct ada_symbol_infos. Add symtab argument.
6799 Use new interface to add_defn_to_vec.
6800 Remove calls to fill_in_ada_prototype.
6801 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6802
6803 (ada_finish_decode_line_1): Add const qualification to local to fix
6804 warning.
6805 Start looking in static block for functions to avoid attempts
6806 to search frame chain for up-level variables.
6807 Adapt to new ada_sals_for_line interface.
6808 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6809 Handle quoting of the function name inside the spec string.
6810 Skip prologue when funfirstline is set and update the
6811 function documentation to that effect.
6812
6813 (debug_print_lines, debug_print_block, debug_print_blocks,
6814 debug_print_symtab): Remove.
6815
6816 (ada_main_name): New function.
6817 (ada_exception_breakpoint_type): New function.
6818 (is_known_support_routine): New function.
6819 (ada_find_printable_frame): Renamed from find_printable_frame and made
6820 global.
6821 Remove level parameter.
6822 Use new interface to select_frame.
6823
6824 (begin_command): Remove.
6825 (ada_adjust_exception_stop): New function.
6826 (ada_print_exception_stop): New function.
6827 (exception_name_from_cond): New function.
6828 (ada_report_exception_break): Replace disabled code with
6829 conditionalization on GNAT_GDB.
6830 Get the exception name from the condition string.
6831 Remove and move functionality into new functions
6832 ada_print_exception_breakpoint_task and
6833 ada_print_exception_breakpoint_nontask.
6834 (error_breakpoint_runtime_sym_not_found): New function.
6835 (is_runtime_sym_defined): New function.
6836 (ada_breakpoint_rewrite): Uncomment suppressed code.
6837 Use symbolic error-message and runtime-symbol names.
6838 Surround runtime symbol names in quotes.
6839 Allow non-specific breakpoints on exceptions and assertions before
6840 program starts.
6841
6842 (ada_is_tagged_type): Add parameter.
6843 (ada_is_tag_type): New function.
6844 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6845 (ada_variant_discrim_type): Ditto.
6846 (value_tag_from_contents_and_address): New function.
6847 (type_from_tag): New function.
6848 (struct tag_args): New structure used to communicate with
6849 ada_tag_name_1.
6850 (ada_tag_name_1): New function.
6851 (ada_tag_name): New function.
6852
6853 (ada_scan_number): Update comment.
6854 (find_struct_field): New function.
6855 (ada_search_struct_field): Make static.
6856 (ada_value_struct_elt): New version that returns references when
6857 given pointers or references to structs.
6858 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6859 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6860 interface.
6861 (ada_value_ind): Use new ada_to_fixed_value interface.
6862 (ada_coerce_ref): Ditto.
6863 (field_offset): Remove.
6864
6865 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6866 (ada_find_renaming_symbol): New function.
6867 (ada_prefer_type): Prefer named types over unnamed ones.
6868 (variant_field_index): New function.
6869 (contains_variant_part): Removed: subsumed by variant_field_index.
6870 (ada_template_to_fixed_record_type): New function, mostly from
6871 template_to_fixed_record_type.
6872 (template_to_fixed_record_type):
6873 Do not scan the type fields beyond the last one; prevents a
6874 potential SEGV.
6875 Handle case where variant field is listed BEFORE discriminant it
6876 depends on.
6877 Fix calculation of record length when bit length is
6878 not evenly divisible by char length.
6879 Move code to ada_template_to_fixed_record_type and call it.
6880
6881 (template_to_static_fixed_type): Revise comment.
6882 Modify to work on ordinary record types as well as templates,
6883 so as to handle fields that use ___XVE or ___XVU encodings.
6884 (to_record_with_fixed_variant_part): Fill out comment.
6885 Initialize C++ stuff in right type.
6886 Allow case where DVAL is null.
6887 Handle case where variant field is not last.
6888 Fix typo concerning record length.
6889 (to_fixed_record_type): Decomment disabled code.
6890 (to_fixed_record_type): Use variant_field_index instead of
6891 contains_variant_part.
6892 (to_fixed_variant_branch_type): Ditto.
6893 (to_fixed_array_type): Decomment disabled code.
6894 (ada_to_fixed_type): Convert tagged types to the specific type.
6895 Deactivate the size-check for array types in order to avoid
6896 some false size alarms.
6897 (to_static_fixed_type): Decomment disabled code.
6898 Modify to call template_to_static_fixed_type
6899 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6900 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6901 Remove valaddr argument, as it is never really used.
6902 (ada_to_fixed_value): Change interface to act on single struct value*
6903 operand.
6904 (adjust_pc_past_prologue): New function.
6905 (ada_attribute_name): Modify to take enum exp_opcode argument.
6906
6907 (ada_enum_name): Recognize new homonym-distinguishing convention.
6908 Adjust local variable's type to remove compiler warning.
6909 Fix a small problem in the part that unqualifies the enumeration name.
6910 (ada_value_binop): New function.
6911 (ada_value_equal): New function.
6912
6913 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6914 Don't give error message when not doing normal evaluation
6915 and a tagged type doesn't seem to contain a structure member.
6916 Give error message for packed arrays.
6917 For indexing arrays, handle pointers to packed arrays correctly.
6918 Handle case of 'first and 'last attributes of bare integral type
6919 without encoded subtype info.
6920 Remove some unnecessary casts.
6921 Fix uninitialized value of type in computing 'first, 'last, or 'length
6922 of array object.
6923 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6924 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6925 calls.
6926 Attributes are now exp_opcode values.
6927 Correct treatment of 'modulus.
6928 Better error message for taking 'length of wrong kind of type;
6929 improve comment.
6930 Change EVAL_NORMAL to noside for consistency.
6931 Use ada_value_binop for DIV, MOD, REM.
6932 Make special case out of array of length 0, since an argument
6933 of 0 upsets some platforms' malloc.
6934 Use OP_STRING instead of OP_ARRAY.
6935 For slice, add check that we have an array type before extracting
6936 a slice out of it. Avoids a SEGV.
6937 When evaluating an array slice, if the array type is a reference to
6938 an aligner type, then replace the aligner type by the actual type.
6939 Decomment disabled code.
6940 Remove some dead code.
6941 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6942 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6943 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6944 and UNOP_MBR to UNOP_IN_RANGE.
6945 If an array type has a parallel ___XVE type, then use it.
6946 Turn arrays into pointers for lvalue arrays.
6947 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6948 bounds error and handle 0-length slices.
6949 Use lim_warning.
6950 When selecting fields, apply ada_to_fixed_value (because the fields
6951 might have ___XVU or ___XVE encodings even if not dynamic.)
6952 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6953 (ada_is_system_address_type): New function.
6954
6955 (get_var_value): Use new interface to ada_lookup_symbol_list.
6956 (get_int_var_value): New interface.
6957 (to_fixed_range_type): Allow unknown bound, with warning.
6958 (ada_is_modular_type): Decomment disabled code.
6959 (ADA_OPERATORS): New definition.
6960 (ada_operator_length): New function.
6961 (ada_expr_op_name): New function.
6962 (ada_forward_operator_length): New function.
6963 (ada_dump_subexp_body): New function.
6964 (ada_print_subexp): New function.
6965 (ada_exp_descriptor): New constant.
6966 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6967 (ada_language_defn): Add ada_exp_descriptor entry.
6968 Change ada_parse => parse.
6969 Add post-parser entry.
6970 Use ada-specific non-local symbol lookup.
6971 Don't use C-style arrays.
6972 String lower-bound is 1.
6973 Decomment disabled code.
6974 (parse): New function.
6975 New fields ada_translate_error_message, ada_lookup_symbol,
6976 ada_lookup_minimal_symbol.
6977
6978 * ada-lang.h: Update copyright dates.
6979 Replace the mangle/demangle terminology throughout by the
6980 more appropriate encode/decode one.
6981 Include breakpoint.h.
6982 Forward declare struct partial_symbol, struct block.
6983 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6984 (EXTRACT_ADDRESS): Remove.
6985 (EXTRACT_INT): Remove.
6986 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6987 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6988 (MAX_RENAMING_CHAIN_LENGTH): Define.
6989 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6990
6991 (enum task_states): Remove.
6992 ada_task_states: Remove.
6993 (fat_string): Remove.
6994 (struct entry_call): Remove.
6995 (struct task_fields): Remove.
6996 (struct task_entry): Remove.
6997
6998 (struct ada_symbol_info): Define.
6999 (enum ada_attribute): Remove.
7000 (enum ada_operator): Define.
7001
7002 (ada_get_field_index): Declare.
7003 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7004 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7005 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7006 (ada_lookup_symbol_list): New interface.
7007 (ada_decode_symbol): Declare.
7008 (ada_decode): Declare.
7009 (ada_lookup_symbol): New interface.
7010 (ada_update_initial_language): Declare.
7011 (ada_lookup_simple_minsym): Declare.
7012 (user_select_syms): New interface.
7013 (ada_sals_for_line): Declare.
7014 (ada_is_tagged_type): New interface.
7015 (ada_tag_name): Declare.
7016 (ada_lookup_struct_elt_type): Remove declaration.
7017 (ada_search_struct_field): Remove declaration.
7018 (ada_attribute_name): New interface.
7019 (ada_is_system_address_type): Declare.
7020 (ada_to_fixed_value): Remove declaration.
7021 (ada_template_to_fixed_record_type_1): Declare.
7022 (get_int_var_value): New interface.
7023 (ada_find_any_symbol): Declare.
7024 (ada_find_renaming_symbol): Declare.
7025 (ada_mangle): Rename to ada_encode.
7026 (ada_simple_renamed_entity): Remove const.
7027 (ada_main_name): Declare.
7028 (get_current_task): Rename to ada_get_current_task.
7029 (get_entry_number): Remove declaration.
7030 (ada_report_exception_break): Remove declaration.
7031 (ada_print_exception_breakpoint_nontask): Declare.
7032 (ada_print_exception_breakpoint_task): Declare.
7033 (ada_find_printable_frame): Declare.
7034
7035 * ada-lex.l: Update copyright notices.
7036 Use xmalloc and xfree instead of malloc and free.
7037 Use new interface to name_lookup.
7038 Use new interface to
7039 ada_mangle=>ada_encode.
7040 Redo handling of '$...' variable to parallel current treatment
7041 in c-exp.y.
7042 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7043 digit_to_int, strtoulst, processInt, processReal, processId,
7044 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7045 yywrap): Protoize.
7046
7047 (processInt): Use cast to remove harmless warning.
7048 (processReal): Modify to get rid of compiler warning on scan formats.
7049
7050 (processId): Replace xmalloc with obstack_alloc for name and remove
7051 call to ada_name_string_cleanup.
7052 Remove obsolete disabled code.
7053 (name_lookup): Ditto.
7054 New interface.
7055 Use obsavestring on temp_parse_space instead of savestring
7056 on name, and remove call to ada_name_string_cleanup.
7057 Free string returned from ada_simple_renamed_entity.
7058 Use new interface to ada_lookup_symbol_list.
7059 Decomment disabled code.
7060 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7061 not types.
7062 When a type name lookup succeeds as a result of
7063 lookup_primitive_typename, check for regular type entry that has not
7064 yet been read in.
7065 Limit length of chain of renamed symbols we are willing to follow.
7066 Do not break names beginning with "standard__" into segments.
7067 (block_lookup): Use new interface to ada_lookup_symbol_list.
7068
7069 * ada-typeprint.c: Update copyright notice.
7070 (demangled_type_name): Rename to decoded_type_name.
7071 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7072 (print_range_bound): Correct handling of negative
7073 bounds that make the index type looked unsigned under STABS.
7074 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7075 (print_range_type_named): Use the builtin int type if no type
7076 corresponding to the given type name could be found.
7077 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7078 Add some bullet-proofing.
7079 (print_variant_clauses): Allow for variant branches with ___XVU
7080 encodings that are not dynamic fields.
7081 Use new interface to ada_is_tagged_type.
7082 (print_record_type): Allow for fields with ___XVE encodings that
7083 are not dynamic fields.
7084 Use new interface to ada_is_tagged_type.
7085 (ada_print_type): ada_is_array_descriptor =>
7086 ada_is_array_descriptor_type.
7087
7088 * ada-valprint.c: Update copyright notice.
7089 Include gdb_string.h
7090 Include infcall.h
7091 (ui_memcpy): New function.
7092 (ada_print_floating): New function.
7093 (ada_print_str): Order arguments correctly.
7094 Correct handling of empty arrays and arrays of 0-length items.
7095 ada_is_array_descriptor => ada_is_array_descriptor_type
7096 Print values of type System.Address in hexadecimal format.
7097 Use ada_print_floating to print floating-point numbers in Ada format.
7098 Print class tag values with type names.
7099 No longer print the address of reference values. Avoids
7100 a potential confusion.
7101 (ada_value_print): Stop printing the object type for reference
7102 values, but preserve that behavior for access types. Avoids
7103 a potential confusion.
7104 Simplify one conditional expression, as the first part is now
7105 necessarily true.
7106 ada_is_array_descriptor => ada_is_array_descriptor_type
7107 Add check for arrays for null records, and print them by hand.
7108
7109 2004-06-01 Jim Blandy <jimb@redhat.com>
7110
7111 * ppc-tdep.h: Delete unused 'regoff' member.
7112 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7113
7114 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7115
7116 Fix PR symtab/1661.
7117 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7118 (hpread_read_struct_type): Likewise.
7119
7120 2004-06-01 Andrew Cagney <cagney@gnu.org>
7121
7122 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7123 instead of xasprintf.
7124 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7125 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7126 (mi_cmd_data_list_register_names)
7127 (mi_cmd_data_list_changed_registers)
7128 (mi_cmd_data_list_register_values)
7129 (get_register, mi_cmd_data_write_register_values)
7130 (mi_cmd_data_write_register_values)
7131 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7132 (mi_cmd_target_download, mi_cmd_target_select)
7133 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7134 (mi_execute_cli_command, mi_execute_async_cli_command)
7135 (mi_execute_async_cli_command): Ditto.
7136 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7137 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7138
7139 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7140 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7141 error_last_message instead of mi_error_last_message.
7142 * mi/mi-main.c (mi_error_last_message): Delete function.
7143
7144 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7145 "invalid number of columns" error. Delete redundant "out of
7146 memory" check.
7147
7148 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7149
7150 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7151 (gregset_t, fpregset_t): Remove typedefs.
7152 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7153 (REG_OFFSET): Rename argument.
7154 (i386bsd_r_reg_offset): Rename from reg_offset.
7155 (REG_ADDR): Remove macro.
7156 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7157 functions.
7158 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7159 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7160 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7161 instead of supply_gregset.
7162 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7163 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7164 instead of fill_gregset.
7165 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7166
7167 * i386bsd-nat.c: Don't include "gregset.h".
7168 (supply_gregset, fill_gregset): Make static.
7169 (supply_fpregset, fill_fpregset): Remove.
7170 * Makefile.in (i386bsd-nat.o): Update dependencies.
7171
7172 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7173
7174 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7175 "gdb_assert.h". Con't include "gregset.h".
7176 (fbsd_make_corefile_notes): Use regset-based core file support
7177 instead off fill_gregset and fill_fpregset.
7178 * Makefile.in (fbsd-proc.o): Update dependencies.
7179
7180 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7181 instructions.
7182 (m88k_frame_prev_register): Simplify code a bit.
7183
7184 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7185 (amd64_collect_fpregset): New function.
7186 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7187
7188 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7189
7190 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7191 (i386_collect_gregset): New function.
7192 (i386_supply_fpregset): Adjust comment.
7193 (i386_collect_fpregset): New function.
7194 (i386_regset_from_core_section): Use i386_collect_gregset and
7195 i386_collect_fpregset.
7196
7197 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7198 handle VALUEP being null.
7199
7200 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7201
7202 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7203
7204 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7205
7206 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7207 assembler in OpenBSD 3.5-current.
7208 (amd64obsd_sigcontext_addr): Likewise.
7209
7210 2004-05-28 Jim Blandy <jimb@redhat.com>
7211
7212 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7213 register set, so our regcache isn't declared "legacy" and our E500
7214 pseudoregister read and write functions aren't ignored.
7215 (rs6000_register_byte, rs6000_register_raw_size,
7216 rs6000_register_virtual_type, rs6000_register_convertible,
7217 rs6000_register_convert_to_virtual,
7218 rs6000_register_convert_to_raw): Deleted.
7219 (rs6000_register_type, rs6000_convert_register_p,
7220 rs6000_register_to_value, rs6000_value_to_register): New
7221 functions.
7222 (rs6000_gdbarch_init): Don't register
7223 gdbarch_deprecated_register_size,
7224 gdbarch_deprecated_register_bytes,
7225 gdbarch_deprecated_register_byte,
7226 gdbarch_deprecated_register_raw_size,
7227 gdbarch_deprecated_register_virtual_type,
7228 gdbarch_deprecated_register_convertible,
7229 gdbarch_deprecated_register_convert_to_virtual, or
7230 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7231 register gdbarch_register_type, gdbarch_convert_register_p,
7232 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7233
7234 2004-05-26 Jim Blandy <jimb@redhat.com>
7235
7236 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7237 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7238 functions, updated to match the register numberings used in GCC.
7239 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7240 rs6000_dwarf2_reg_to_regnum as register number conversions
7241 functions for STABS and Dwarf2.
7242
7243 2004-05-26 Randolph Chung <tausq@debian.org>
7244
7245 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7246 in header file.
7247
7248 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7249
7250 * NEWS: Document new "start" command.
7251
7252 2004-05-25 Randolph Chung <tausq@debian.org>
7253
7254 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7255 hppa-linux.
7256
7257 2004-05-25 Randolph Chung <tausq@debian.org>
7258
7259 * hppa-hpux-tdep.c (offsetof): Define.
7260 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7261 (hppa32_hpux_frame_base_before_sigtramp)
7262 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7263 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7264 (hppa64_hpux_frame_base_before_sigtramp)
7265 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7266 functions.
7267 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7268 (hppa_hpux_sigtramp_frame_unwind_cache)
7269 (hppa_hpux_sigtramp_frame_this_id)
7270 (hppa_hpux_sigtramp_frame_prev_register)
7271 (hppa_hpux_sigtramp_frame_unwind)
7272 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7273 (hppa_hpux_init_abi): Register sigtramp unwinder.
7274 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7275
7276 2004-05-25 Randolph Chung <tausq@debian.org>
7277
7278 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7279 and multiple stack unwinds.
7280 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7281
7282 2004-05-25 Andrew Cagney <cagney@gnu.org>
7283
7284 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7285 * symfile-mem.h: Delete file.
7286 * symfile-mem.c: Do not include "symfile-mem.h".
7287 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7288 "struct bfd_section". When an error do not bother returning NULL.
7289 (add_symbol_file_from_memory_command): Use "struct bfd" and
7290 "struct bfd_section".
7291 * Makefile.in (symfile_mem_h): Delete.
7292 (symfile-mem.o): Update dependencies.
7293
7294 2004-05-25 Nick Roberts <nickrob@gnu.org>
7295
7296 * gdb-mi.el: New file.
7297
7298 2004-05-25 Andrew Cagney <cagney@gnu.org>
7299
7300 * inftarg.c: Include "observer.h".
7301 (child_attach, child_create_inferior): Notify inferior_created.
7302 * corelow.c: Include "observer.h".
7303 (core_open): Notify inferior_created.
7304 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7305
7306 2004-05-25 Andrew Cagney <cagney@gnu.org>
7307
7308 * target.h (struct target_ops): Add from_tty to
7309 to_create_inferior.
7310 (target_create_inferior, find_default_create_inferior): Update.
7311 * infcmd.c (run_command): Update.
7312 * wince.c (child_create_inferior): Update.
7313 * win32-nat.c (child_create_inferior): Update.
7314 * uw-thread.c (uw_thread_create_inferior): Update.
7315 * thread-db.c (thread_db_create_inferior): Update.
7316 * target.c (debug_to_create_inferior)
7317 (find_default_create_inferior): Update.
7318 (maybe_kill_then_create_inferior): Update.
7319 * sol-thread.c (sol_thread_create_inferior): Update.
7320 * remote.c (extended_remote_async_create_inferior)
7321 (extended_remote_create_inferior): Update.
7322 * remote-vx.c (vx_create_inferior): Update.
7323 * remote-st.c (st2000_create_inferior): Update.
7324 * remote-sim.c (gdbsim_create_inferior): Update.
7325 * remote-sds.c (sds_create_inferior): Update.
7326 * remote-rdp.c (remote_rdp_create_inferior): Update.
7327 * remote-rdi.c (arm_rdi_create_inferior): Update.
7328 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7329 * remote-e7000.c (e7000_create_inferior): Update.
7330 * procfs.c (procfs_create_inferior): Update.
7331 * ocd.c (ocd_create_inferior): Update.
7332 * ocd.h (ocd_create_inferior): Update.
7333 * nto-procfs.c (procfs_create_inferior): Update.
7334 * monitor.c (monitor_create_inferior): Update.
7335 * lin-lwp.c (lin_lwp_create_inferior): Update.
7336 * inftarg.c (child_create_inferior): Update.
7337 * hpux-thread.c (hpux_thread_create_inferior): Update.
7338 * gnu-nat.c (gnu_create_inferior): Update.
7339
7340 2004-05-25 Andrew Cagney <cagney@gnu.com>
7341
7342 * MAINTAINERS: Update e-mail address.
7343
7344 2004-05-24 Randolph Chung <tausq@debian.org>
7345
7346 * thread.c (info_threads_command, thread_apply_all_command)
7347 (thread_apply_command, thread_command, do_captured_thread_select):
7348 Remove HPUXHPPA-specific code.
7349
7350 2004-05-24 Randolph Chung <tausq@debian.org>
7351
7352 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7353 unused symbols.
7354 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7355 references.
7356
7357 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7358
7359 * infcmd.c (kill_if_already_running): New function, extracted
7360 from run_command().
7361 (run_command): Replace extracted code by call to
7362 kill_if_already_running().
7363 (start_command): New function.
7364 (_initialize_infcmd): Add "start" command.
7365
7366 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7367
7368 Add OpenBSD/m88k support.
7369 * NEWS (New native configurations): Mention OpenBSD/m88k.
7370 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7371 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7372 * Makefile.in (m88k_tdep_h): New variable.
7373 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7374 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7375 * configure.host: Add m88*-*-openbsd*.
7376 * configure.tgt: Add m88*-*-openbsd*.
7377
7378 2004-05-24 Jim Blandy <jimb@redhat.com>
7379
7380 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7381 to approve changes.
7382
7383 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7384
7385 * symtab.c (fixup_section): Search section table when lookup by
7386 name fails.
7387
7388 2004-05-24 Randolph Chung <tausq@debian.org>
7389
7390 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7391 be "small_struct".
7392
7393 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7394
7395 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7396 register number in regcache_raw_collect call.
7397 (m68kbsd_collect_fpregset): Likewise.
7398 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7399
7400 * regset.h (struct regset): Add back `regset' member.
7401
7402 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7403
7404 * configure.in: Check for td_pcb in `struct thread'.
7405 * configure, config.in: Regenerated.
7406
7407 * dpx2-nat.c: Remove file.
7408 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7409 (dpx2-nat.o): Remove dependencies.
7410
7411 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7412 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7413 (amd64obsd_supply_pcb): New function.
7414 (_initialize_amd64obsd_nat): Enable libkvm interface.
7415 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7416 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7417 (LOADLIBES): New variable.
7418
7419 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7420 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7421 (sparc32nbsd_supply_pcb): New function.
7422 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7423 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7424 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7425 (LOADLIBES): New variable.
7426
7427 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7428
7429 * bsd-kvm.c, bsd-kvm.h: New files.
7430 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7431 "bsd-kvm.h".
7432 (i386fbsd_supply_pcb): New function.
7433 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7434 (i386fbsd-nat.o): Update dependencies.
7435 (bsd_kvm_h): New variable.
7436 (bsd-kvm.o): New dependency.
7437 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7438 (LOADLIBES): New variable.
7439
7440 * regset.c: Tweak comment.
7441 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7442 macro.
7443 * regset.h: Update copyright year.
7444 (struct regset): Remove `descr' member, add `gdbarch' member.
7445 (regset_alloc): Adjust prototype and comment.
7446 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7447 (i386_supply_fpregset): Likewise.
7448 (i386_regset_from_core_section): Update call to regset_alloc.
7449 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7450 REGSET->arch.
7451 (i386obsd_aout_regset_from_core_section): Update call to
7452 regset_alloc.
7453 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7454 REGSET->arch.
7455 (i386nbsd_aout_regset_from_core_section): Update call to
7456 regset_alloc.
7457 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7458 REGSET->arch.
7459 (amd64_regset_from_core_section): Update call to regset_alloc.
7460 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7461 REGSET->arch.
7462 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7463 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7464 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7465 (sparc32nbsd_init_abi): Update call to regset_alloc.
7466 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7467 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7468 (sparc64obsd_init_abi): Update call to regset_alloc.
7469 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7470 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7471 (sparc64nbsd_init_abi): Update call to regset_alloc.
7472 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7473 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7474 (sparc64fbsd_init_abi): Update call to regset_alloc.
7475
7476 2004-05-22 Jim Blandy <jimb@redhat.com>
7477
7478 * ppc-tdep.h (spe_register_p): New declaration.
7479 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7480 ppc_spefscr_regnum.
7481 * rs6000-tdep.c (spe_register_p): New function.
7482 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7483 spefscr.
7484 (rs6000_gdbarch_init): Initialize the new members of the tdep
7485 structure.
7486
7487 2004-05-21 Jim Blandy <jimb@redhat.com>
7488
7489 * ppc-linux-nat.c (fetch_register): Move code back to be next
7490 to the comment that describes it. (Moved code, instead of
7491 comment, for symmetry with store_register.)
7492
7493 Allocate regset structures in the gdbarch's obstack, not using
7494 xmalloc.
7495 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7496 Add 'arch' argument. Allocate the regset on arch's obstack, not
7497 using xmalloc.
7498 * regset.h (regset_alloc): Update declaration.
7499 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7500 gdbarch argument.
7501 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7502 * i386-tdep.c (i386_regset_from_core_section): Same.
7503 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7504 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7505 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7506 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7507 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7508 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7509
7510 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7511
7512 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7513
7514 2004-05-21 Jim Blandy <jimb@redhat.com>
7515
7516 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7517 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7518
7519 2004-05-20 Jim Blandy <jimb@redhat.com>
7520
7521 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7522
7523 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7524
7525 * regset.h: Make prototype const-correct.
7526 * regset.c (regset_xmalloc): Make const-correct.
7527
7528 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7529
7530 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7531 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7532 (symbol_search_name): Declare.
7533
7534 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7535 (iter_name_next_hashed): Ditto.
7536 (iter_name_next_linear): Ditto.
7537 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7538
7539 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7540 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7541 (symbol_search_name): New function.
7542
7543 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7544
7545 * minsyms.c (build_minimal_symbol_hash_tables): Change
7546 test for adding to demangled hash table to check for difference
7547 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7548
7549 2004-05-19 Jim Blandy <jimb@redhat.com>
7550
7551 Use a constructor function to create regset structures.
7552 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7553 (struct regset): Use supply_regset_ftype. Add new
7554 'collect_regset' member.
7555 (regset_xmalloc): New declaration.
7556 * regset.c: New file.
7557 * am64-tdep.c (amd64_regset_from_core_section): Use
7558 regset_xmalloc to construct regset structures.
7559 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7560 * i386-tdep.c (i386_regset_from_core_section): Same.
7561 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7562 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7563 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7564 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7565 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7566 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7567 * Makefile.in (COMMON_OBS): Add regset.o.
7568 (regset.o): New rule.
7569
7570 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7571
7572 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7573 and pthread_cond_wait.c.
7574
7575 2004-05-18 Jim Blandy <jimb@redhat.com>
7576
7577 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7578 before the mach-specific switch, and then let the individual cases
7579 override the defaults, rather than leaving them uninitialized
7580 until the switch and then setting them in each case.
7581
7582 2004-05-18 Randolph Chung <tausq@debian.org>
7583
7584 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7585 millicode functions.
7586
7587 2004-05-18 Randolph Chung <tausq@debian.org>
7588
7589 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7590 references to dld_flags_buffer consistent.
7591
7592 2004-05-18 Randolph Chung <tausq@debian.org>
7593
7594 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7595 it for unwinding the stack.
7596
7597 2004-05-18 Randolph Chung <tausq@debian.org>
7598
7599 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7600 Undefine these so we can overide them using gdbarch.
7601
7602 2004-05-18 Randolph Chung <tausq@debian.org>
7603
7604 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7605 handling for 64-bit HPUX (elf).
7606
7607 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7608
7609 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7610 constants.
7611 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7612 * ia64-tdep.c (examine_prologue): Likewise.
7613 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7614 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7615
7616 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7617
7618 * vax-tdep.c (vax_return_value): Implement
7619 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7620
7621 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7622
7623 * vax-tdep.c (vax_return_value): Fix typo.
7624
7625 2004-05-17 Andrew Cagney <cagney@redhat.com>
7626
7627 * MAINTAINERS: Mark Salter was also responsible for
7628 testsuite/config/
7629
7630 * NEWS: Mention signal fixes.
7631
7632 2004-05-17 Randolph Chung <tausq@debian.org>
7633
7634 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7635 check to see if we are unwinding an export stub. Export stubs clobber
7636 the %rp in the call path and stores the original rp in a stack slot.
7637
7638 2004-05-17 Jim Blandy <jimb@redhat.com>
7639
7640 * MAINTAINERS: Update address for J.T. Conklin.
7641
7642 2004-05-17 Randolph Chung <tausq@debian.org>
7643
7644 * hppa-tdep.c: Remove superfluous #include's.
7645 * Makefile.in (hppa-tdep.o): Update dependencies.
7646
7647 2004-05-17 Randolph Chung <tausq@debian.org>
7648
7649 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7650 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7651 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7652 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7653 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7654 Remove static function declarations.
7655
7656 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7657
7658 * alphabsd-nat.c: Update copyright year.
7659 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7660
7661 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7662 and M68K_A2_REGNUM.
7663
7664 * m68k-tdep.c (m68k_svr4_return_value): Implement
7665 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7666
7667 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7668
7669 * sol-thread.c Update copyright year. Fix various coding
7670 standards violations. Tweak a few comments.
7671 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7672 Delete prototypes.
7673
7674 2004-05-15 Randolph Chung <tausq@debian.org>
7675
7676 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7677 as pointer instead of array reference since HPUX compiler does
7678 not accept unsized array arguments.
7679 * somsolib.c (dld_flags_buffer): Use constant array size.
7680
7681 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7682
7683 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7684 offset with decimal offset.
7685 (amd64obsd_sigcontext_addr): Return correct address for entire
7686 signal trampoline.
7687
7688 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7689 instead of get_frame_base.
7690
7691 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7692 (fill_gregset): Use regcache_raw_collect.
7693
7694 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7695 ppcobsd-tdep.c.
7696
7697 * config/sparc/tm-nbsd64.h: Remove file.
7698 * config/tm-sunos.h: Remove file.
7699
7700 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7701
7702 * rs6000-tdep.c (store_param_on_stack_p): New function,
7703 an improved version of some code extracted from skip_prologue().
7704 (skip_prologue): Use store_param_on_stack_p() to detect
7705 instructions saving a parameter on the stack. Detect when r0
7706 is used to save a parameter.
7707 Do not mark "li rx, SIMM" instructions as part of the prologue,
7708 unless the following instruction is also part of the prologue.
7709
7710 2004-05-14 Andrew Cagney <cagney@redhat.com>
7711
7712 * infrun.c (handle_inferior_event): Simplify
7713 STEP_OVER_UNDEBUGGABLE.
7714
7715 * infrun.c (handle_step_into_function): Delete function.
7716 (handle_inferior_event): Inline calls to
7717 handle_step_into_function.
7718
7719 2004-05-14 Jerome Guitton <guitton@gnat.com>
7720
7721 * rs6000-nat.c: Fix a comment.
7722
7723 2004-05-12 David Anderson <davea@sgi.com>
7724
7725 Committed by Jim Blandy <jimb@redhat.com>:
7726 * regcache.c (struct regcache_descr): fix comment spelling.
7727
7728 2004-05-13 J. Brobecker <brobecker@gnat.com>
7729
7730 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7731 Fixes a link link failure.
7732
7733 2004-05-13 J. Brobecker <brobecker@gnat.com>
7734
7735 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7736 error that was causing the build to fail.
7737
7738 2004-05-13 J. Brobecker <brobecker@gnat.com>
7739
7740 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7741 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7742
7743 2004-05-13 Andrew Cagney <cagney@redhat.com>
7744
7745 * infrun.c (handle_inferior_event): Check for
7746 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7747 calls. Update comments.
7748
7749 2004-05-13 Jim Blandy <jimb@redhat.com>
7750
7751 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7752 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7753 (store_regs_user_thread, store_regs_kernel_thread): Use
7754 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7755 * ppc-linux-nat.c (fill_gregset): Same.
7756 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7757 (ppc_linux_sigtramp_cache): Same.
7758 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7759 (ppcnbsd_sigtramp_cache_init): Same.
7760 * rs6000-nat.c (fetch_core_registers): Same.
7761 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7762 (rs6000_frame_cache): Same.
7763
7764 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7765 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7766 of assuming that the gprs are numbered starting with zero.
7767 * ppc-linux-nat.c (fill_gregset): Same.
7768 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7769 * ppcnbsd-nat.c (getregs_supplies): Same.
7770 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7771 * rs6000-nat.c (fetch_core_registers): Same.
7772 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7773
7774 2004-05-07 Michael Snyder <msnyder@redhat.com>
7775
7776 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7777 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7778
7779 2004-05-13 Andrew Cagney <cagney@redhat.com>
7780
7781 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7782
7783 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7784
7785 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7786 base_address for shared libraries.
7787
7788 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7789
7790 * MAINTAINERS (write after approval): Add myself.
7791
7792 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7793
7794 * breakpoint.c (bpstat_stop_status): Add new argument
7795 STOPPED_BY_WATCHPOINT. Use it instead of testing
7796 target_stopped_data_address agaist 0 to check whether
7797 or not we stopped due to a hardware watchpoint.
7798 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7799 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7800 with new argument.
7801
7802 2004-05-12 Jim Blandy <jimb@redhat.com>
7803
7804 * configure.in: When checking whether we should use the -bbigtoc
7805 option, don't forget to restore the original value of LDFLAGS.
7806 * configure: Regenerated.
7807
7808 2004-05-12 Andrew Cagney <cagney@redhat.com>
7809
7810 * thread.c (load_infrun_state): Delete step_sp.
7811 * infrun.c (context_switch): Ditto.
7812 * inferior.h (step_sp): Ditto.
7813 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7814 * gdbthread.h (struct thread_info, save_infrun_state)
7815 (restore_infrun_state): Ditto.
7816
7817 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7818
7819 * MAINTAINERS (write after approval): Add myself.
7820
7821 2004-05-12 Andrew Cagney <cagney@redhat.com>
7822
7823 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7824 eliminate reference to step_sp.
7825 (struct execution_control_state, init_execution_control_state)
7826 (handle_inferior_event, keep_going): Delete update_step_sp and
7827 step_sp.
7828 * infcmd.c (step_sp): Note that variable is unused.
7829
7830 2004-05-11 Andrew Cagney <cagney@redhat.com>
7831
7832 * infrun.c (step_over_function): Delete function.
7833 (handle_step_into_function): Use insert_step_resume_breakpoint.
7834 (insert_step_resume_breakpoint): Fix assertion.
7835
7836 2004-05-11 Nick Roberts <nickrob@gnu.org>
7837
7838 * utils.c (defaulted_query): Just use the normal query input type
7839 when printing the annotations.
7840
7841 2004-05-11 Andrew Cagney <cagney@redhat.com>
7842
7843 * infrun.c (handle_inferior_event): Simplify code handling
7844 step-into or return-from a signal trampoline.
7845
7846 2004-05-11 Andrew Cagney <cagney@redhat.com>
7847
7848 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7849 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7850
7851 2004-05-10 Jim Blandy <jimb@redhat.com>
7852
7853 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7854 with a call to internal_error.
7855
7856 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7857 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7858 processor variant lacks those registers.
7859 (ppc_floating_point_unit_p): Change description to make it clear
7860 that this returns info about the ISA, not the ABI.
7861 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7862 return true or false by checking tdep->ppc_fp0_regnum and
7863 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7864 arch/mach switching done in rs6000_gdbarch_init; it's better to
7865 keep that logic there, and just check the results here.
7866 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7867 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7868 floating-point registers.
7869 (ppc_supply_fpregset, ppc_collect_fpregset)
7870 (rs6000_push_dummy_call, rs6000_extract_return_value)
7871 (rs6000_store_return_value): Assert that we have floating-point
7872 registers.
7873 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7874 (rs6000_frame_cache): Don't note the locations at which
7875 floating-point registers were saved if we have no fprs.
7876 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7877 registers.
7878 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7879 (store_regs_user_thread, store_regs_kernel_thread): Only call
7880 supply_fprs / fill_fprs if we actually have floating-point
7881 registers.
7882 (special_register_p): Check ppc_fpscr_regnum before matching
7883 against it.
7884 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7885 supply / collect fpscr if we don't have it.
7886 * ppc-bdm.c: #include "gdb_assert.h".
7887 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7888 have floating-point registers, since I can't test this code on
7889 FP-free systems to adapt it.
7890 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7891 fpscr and floating point register numbers if they don't exist.
7892 (fetch_register): Assert that we have floating-point registers
7893 before we reach the code that handles them.
7894 (store_register): Same. And use tdep instead of calling
7895 gdbarch_tdep again.
7896 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7897 don't have them.
7898 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7899 fprs and fpscr if we don't have them.
7900 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7901 don't have them.
7902 * ppcnbsd-nat.c: #include "gdb_assert.h".
7903 (getfpregs_supplies): Assert that we have floating-point registers.
7904 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7905 * ppcobsd-tdep.c: #include "gdb_assert.h".
7906 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7907 have floating-point registers.
7908 * rs6000-nat.c (regmap): Don't match against the fpscr and
7909 floating point register numbers if they don't exist.
7910 (fetch_inferior_registers, store_inferior_registers,
7911 fetch_core_registers): Only fetch / store / supply the
7912 floating-point registers and the fpscr if we have them.
7913 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7914 (ppcobsd-tdep.o): Update dependencies.
7915
7916 2004-05-10 Andrew Cagney <cagney@redhat.com>
7917
7918 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7919 (context_switch): Do not switch through_sigtramp_breakpoint.
7920 * gdbthread.h (save_infrun_state, load_infrun_state)
7921 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7922 and structure member.
7923 * thread.c (load_infrun_state, save_infrun_state): Update.
7924
7925 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7926
7927 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7928
7929 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7930
7931 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7932 throughout.
7933 * aclocal.m4: Regenerate.
7934
7935 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7936
7937 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7938
7939 2004-05-10 Andrew Cagney <cagney@redhat.com>
7940
7941 * infrun.c (check_sigtramp2): Delete function.
7942 (handle_inferior_event): When single stepping, and taking a
7943 signal, set a breakpoint at the signal return address. Delete
7944 redundant calls to check_sigtramp2.
7945 (insert_step_resume_breakpoint): New function.
7946 (through_sigtramp_breakpoint, handle_inferior_event)
7947 (follow_exec, wait_for_inferior, fetch_inferior_event)
7948 (currently_stepping, keep_going): Delete most uses of
7949 through_sigtramp_breakpoint, not that it should be deleted.
7950 (delete_breakpoint_current_contents): Delete function.
7951
7952 2004-05-10 Randolph Chung <tausq@debian.org>
7953
7954 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7955 target.
7956 * config/pa/tm-linux.h: New file.
7957
7958 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7959
7960 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7961 of prefixes. Don't print the prefix twice in the CLI.
7962
7963 2004-05-10 Jim Blandy <jimb@redhat.com>
7964
7965 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7966 collect all the gprs.
7967
7968 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7969 loop collecting gprs.
7970
7971 2004-05-09 Andrew Cagney <cagney@redhat.com>
7972
7973 * remote-vx.c (net_step): Delete step-range code.
7974 * remote.c (remote_resume, init_all_packet_configs)
7975 (set_remote_protocol_E_packet_cmd)
7976 (show_remote_protocol_E_packet_cmd)
7977 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7978 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7979 (show_remote_protocol_e_packet_cmd): Ditto.
7980
7981 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7982
7983 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7984
7985 * hppa-tdep.h: Update copyright year.
7986 (struct trad_frame_saved_reg): Add opaque declaration.
7987
7988 * amd64-tdep.c (amd64_return_value): Implement
7989 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7990
7991 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7992 (m68k_value_to_register): New functions.
7993 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7994 value_to_register.
7995
7996 * defs.h (enum return_value_convention): Add
7997 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7998 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7999 * infcmd.c (legacy_return_value): New function.
8000 (print_return_value): Rwerite to implement
8001 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8002 * values.c (using_struct_return): Check for inequality to
8003 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8004 RETURN_VALUE_STRUCT_CONVENTION.
8005 * i386-tdep.c (i386_return_value): Implement
8006 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8007
8008 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8009 include "symtab.h", "opcode/vax.h" and "inferior.h".
8010 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8011 to read_memory_unsigned_integer.
8012 (vax_gdbarch_init): Reorder.
8013 (_initialize_vax_tdep): Spell out prototype.
8014 * Makefile.in (vax-tdep.o): Update dependencies.
8015
8016 2004-05-08 Andrew Cagney <cagney@redhat.com>
8017
8018 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8019 * target.c (target_detach, target_disconnect): Ditto.
8020
8021 * infcall.c (call_function_by_hand): When no
8022 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8023 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8024 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8025 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8026 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8027
8028 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8029 * gdbarch.h, gdbarch.c: Re-generate.
8030 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8031 deprecated_fix_call_dummy.
8032 * v850-tdep.c (v850_gdbarch_init): Ditto.
8033 * infcall.c (call_function_by_hand): Do not call
8034 DEPRECATED_FIX_CALL_DUMMY.
8035
8036 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8037 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8038 * gdbarch.h, gdbarch.c: Re-generate.
8039 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8040 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8041 deprecated_sizeof_call_dummy_words.
8042 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8043 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8044 * v850-tdep.c (v850_gdbarch_init): Ditto.
8045 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8046 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8047 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8048 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8049 * arch-utils.h (legacy_call_dummy_words)
8050 (legacy_sizeof_call_dummy_words): Delete declarations.
8051 * arch-utils.c (legacy_call_dummy_words)
8052 (legacy_sizeof_call_dummy_words): Delete variables.
8053
8054 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8055 * gdbarch.h, gdbarch.c: Re-generate.
8056 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8057 * infcall.c (call_function_by_hand): Eliminate call to
8058 DEPRECATED_PUSH_DUMMY_FRAME.
8059 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8060 push_dummy_frame.
8061 (ns32k_push_dummy_frame): Delete function.
8062
8063 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8064 deprecated_call_dummy_breakpoint_offset or
8065 deprecated_call_dummy_start_offset.
8066 * dummy-frame.c, arm-tdep.c: Update comments.
8067 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8068 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8069 * gdbarch.h, gdbarch.c: Re-generate.
8070
8071 * infcall.c (legacy_push_dummy_code): Delete function.
8072 (push_dummy_code): Delete call.
8073
8074 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8075 * gdbarch.h, gdbarch.c: Re-generate.
8076 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8077 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8078 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8079 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8080
8081 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8082 (struct frame_info): Delete opaque declaration.
8083 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8084 * frame.c (get_frame_type): Delete call.
8085
8086 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8087 pc_in_call_dummy.
8088 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8089 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8090
8091 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8092
8093 * alphanbsd-tdep.c: Include "gdb_string.h".
8094 * armnbsd-tdep.c: Update copyright year.
8095 Include "gdb_string.h".
8096 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8097 dependencies.
8098
8099 * delta68-nat.c: Remove file.
8100 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8101 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8102 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8103 (delta68-nat.o): Remove dependency.
8104
8105 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8106 function.
8107 (m68k_gdbarch_init): Don't set
8108 deprecated_frameless_function_invocation.
8109
8110 2004-05-07 Randolph Chung <tausq@debian.org>
8111
8112 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8113 read_memory_nobpt for code reading when doing frame unwinding.
8114 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8115
8116 2004-05-07 Randolph Chung <tausq@debian.org>
8117
8118 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8119 instead of sp, handle sigaltstack case.
8120 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8121 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8122 signal handler and not that of the caller.
8123 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8124 hppa_linux_sigtramp_find_sigcontext.
8125
8126 2004-05-07 Randolph Chung <tausq@debian.org>
8127
8128 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8129 hppa-linux-nat.c.
8130 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8131 * hppa-linux-nat.c (fetch_register, store_register): Define.
8132 (fetch_inferior_registers, store_inferior_registers): Define.
8133 (supply_gregset): Add comment and clean up some unneeded code.
8134 (fill_gregset): Add comment and fix so that it saves registers in
8135 the right place in the gregset.
8136 (fill_fpregset): Fix buffer overrun problem.
8137 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8138
8139 2004-05-07 Randolph Chung <tausq@debian.org>
8140
8141 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8142 do common handling of the pcoqt register.
8143 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8144 to use helper function.
8145 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8146 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8147 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8148 generic fallback unwinder when all else fails.
8149 (hppa_gdbarch_init): Add fallback sniffer.
8150 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8151 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8152 to use helper function.
8153
8154 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8155
8156 * config/djgpp/fnchange.lst: Add translation rules for
8157 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8158
8159 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8160
8161 * frame.c (get_prev_frame_1): Work around GCC bug.
8162 * frame.h: Add comment about GCC bug.
8163
8164 2004-05-07 Andrew Cagney <cagney@redhat.com>
8165
8166 * observer.c: Include "commands.h" and "gdbcmd.h".
8167 (observer_debug, _initialize_observer): Add the
8168 command "set/show debug observer".
8169 * observer.sh: When observer debugging, log notify calls.
8170 * Makefile.in (observer.o): Update dependencies.
8171
8172 2004-05-07 Jason Molenda (jmolenda@apple.com)
8173
8174 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8175
8176 2004-05-07 Jim Blandy <jimb@redhat.com>
8177
8178 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8179 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8180 to recognize gpr regnums, instead of assuming that
8181 tdep->ppc_fp0_regnum marks the end of the general-purpose
8182 registers.
8183
8184 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8185 the given architecture has floating-point registers.
8186
8187 2004-05-07 Andrew Cagney <cagney@redhat.com>
8188
8189 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8190 macro defined to 1.
8191 * gdbarch.h, gdbarch.c: Re-generate.
8192 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8193 deprecated_use_generic_dummy_frames.
8194
8195 2004-05-07 Brian Ford <ford@vss.fsi.com>
8196
8197 * NEWS: Mention Cygwin DWARF 2 support.
8198
8199 2004-05-07 Andrew Cagney <cagney@redhat.com>
8200
8201 * objfiles.h (struct entry_info): Delete unused fields
8202 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8203 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8204 * mipsread.c (mipscoff_symfile_read): Update.
8205 * mdebugread.c (parse_partial_symbols): Update.
8206 * dwarfread.c (read_file_scope): Update.
8207 * dwarf2read.c (read_file_scope): Update.
8208 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8209 * coffread.c (complete_symtab): Update.
8210
8211 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8212
8213 * infcall.c (_initialize_infcall): Fix typo.
8214
8215 2004-05-07 Andrew Cagney <cagney@redhat.com>
8216
8217 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8218 * command.h (add_setshow_zinteger_cmd): Declare.
8219
8220 2004-05-06 Randolph Chung <tausq@debian.org>
8221
8222 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8223 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8224 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8225 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8226 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8227 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8228 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8229 definitions ...
8230 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8231 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8232 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8233 (hppa64_hpux_frame_find_saved_regs_in_sig)
8234 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8235 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8236 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8237 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8238 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8239 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8240 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8241 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8242 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8243 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8244 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8245 (hppa32_register_type, hppa_cannot_store_register)
8246 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8247 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8248 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8249 * pa64solib.c (pa64_solib_have_load_event)
8250 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8251 (pa64_solib_unloaded_library_pathname): Likewise.
8252 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8253 (som_solib_library_pathname): Likewise.
8254
8255 2004-05-05 Jim Ingham <jingham@apple.com>
8256
8257 * breakpoint.c (create_breakpoints): Copy the ignore count and
8258 thread id over from the pended breakpoint to the actual
8259 breakpoint.
8260
8261 2004-05-05 Andrew Cagney <cagney@redhat.com>
8262
8263 * gdbarch.sh (PARM_BOUNDARY): Delete.
8264 gdbarch.h, gdbarch.c: Re-generate.
8265 * valops.c (PARM_BOUNDARY): Delete macro.
8266 (value_push): Delete PARM_BOUNDARY code.
8267 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8268
8269 2004-05-04 Jim Blandy <jimb@redhat.com>
8270
8271 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8272 Don't assume that the gprs, fprs, and UISA sprs are
8273 contiguous, start at register number zero, and end with fpscr.
8274 Instead, use the numbers from the tdep structure.
8275
8276 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8277 should no longer be used in code specific to the RS6000 and its
8278 derivatives.
8279 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8280 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8281 tdep->ppc_fp0_regnum.
8282 (ppc_supply_fpregset, ppc_collect_fpregset)
8283 (rs6000_push_dummy_call, rs6000_extract_return_value)
8284 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8285 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8286 FP0_REGNUM.
8287 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8288 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8289 Same.
8290 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8291 bdm_ppc_store_registers): Same.
8292 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8293 (store_register, fill_fpregset): Same.
8294 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8295 (ppc_linux_supply_fpregset): Same.
8296 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8297 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8298 Same.
8299 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8300 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8301 ppc64_sysv_abi_return_value): Same.
8302 * rs6000-nat.c (regmap, fetch_inferior_registers)
8303 (store_inferior_registers, fetch_core_registers): Same.
8304
8305 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8306
8307 * m68knbsd-nat.c: Remove file.
8308 * m68knbsd-tdep.c: Remove file.
8309 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8310 dependencies.
8311 * configure.host: Add m68k-*-netbsdelf*.
8312 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8313 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8314 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8315 (XM_FILE): Remove.
8316 * config/m68k/nbsdelf.mh: New file.
8317 * config/m68k/nbsd.mt: New file.
8318 * config/m68k/nbsdaout.mt: Remove file.
8319 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8320 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8321 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8322 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8323 (use_struct_convention): Remove prototype.
8324 (USE_STRUCT_CONVENTION): Remove define.
8325 * config/m68k/xm-nbsd.h: Remove file.
8326
8327 2004-05-04 Michael Snyder <msnyder@redhat.com>
8328
8329 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8330 reg_struct_return method (as gcc usually does for cross targets).
8331
8332 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8333
8334 Committed by Andrew Cagney.
8335 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8336 alignment padding when accessing ucontext struct members.
8337
8338 2004-05-04 Jim Blandy <jimb@redhat.com>
8339
8340 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8341 'ppc_gplast_regnum' member.
8342 (ppc_num_gprs): New enum constant.
8343 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8344 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8345 * rs6000-nat.c (regmap, fetch_inferior_registers,
8346 store_inferior_registers): Same.
8347 * rs6000-tdep.c (e500_pseudo_register_read)
8348 (e500_pseudo_register_write): Same.
8349 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8350
8351 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8352 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8353 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8354 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8355 FPLAST_REGNUM.
8356 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8357 Same.
8358 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8359 * rs6000-nat.c (regmap, fetch_inferior_registers)
8360 (store_inferior_registers): Same.
8361
8362 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8363 with FPLAST_REGNUM.
8364
8365 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8366
8367 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8368 failure detected by recent versions of GCC.
8369 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8370 to be consistent with the usage in dwarf2_create_include_psymtab.
8371
8372 2004-05-03 Michael Snyder <msnyder@redhat.com>
8373
8374 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8375 (heuristic_proc_start): Whitespace cleanup.
8376
8377 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8378
8379 * sun3-nat.c: Remove file.
8380 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8381 dependencies.
8382 (ALLDEPFILES): Remove sun3-nat.c.
8383 (sun3-nat.o): Remove dependencies.
8384
8385 * i386-interix-nat.c, i386-interix-tdep.c,
8386 config/i386/nm-interix.h, config/i386/interix.mh,
8387 config/i386/interix.mt: Remove files.
8388 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8389 dependencies.
8390
8391 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8392
8393 * m68k-tdep.h (struct gdbarch_tdep): Add member
8394 struct_value_regnum.
8395 (m68k_svr4_init_abi): New prototype.
8396 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8397 different calling conventions.
8398 (m68k_extract_return_value): Remove code dealing with single-field
8399 structs.
8400 (m68k_store_return_value): Remove code dealing with single-field
8401 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8402 (m68k_extract_struct_value_address): Remove function.
8403 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8404 (m68k_reg_struct_return_p, m68k_return_value)
8405 (m68k_svr4_return_value): New functions.
8406 (m68k_use_struct_convention): Remove function.
8407 (m68k_push_dummy_call): Use new struct_value_regnum member of
8408 `struct gdbarch_tdep' instead of hardcoded register number to
8409 store STRUCT_ADDR.
8410 (m68k_svr4_init_abi): New function.
8411 (m68k_gdbarch_init): Don't set extract_return_value,
8412 store_return_values, deprecated_extract_struct_value_address and
8413 use_struct_convention. Set return_value instead. Initialize new
8414 struct_value_regnum member of `struct gdbarch_tdep'.
8415 * m68klinux-tdep.c: Update copyright year.
8416 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8417 (m68k_linux_extract_struct_value_address): Remove function.
8418 (m68k_linux_init_abi): Don't set extract_return_value,
8419 store_return_values, deprecated_extract_struct_value_address and
8420 use_struct_convention. Call m68k_svr4_init_abi but override the
8421 new struct_value_regnum member of `struct gdbarch_tdep'.
8422 * Makefile.in (m68k-tdep.o): Update dependencies.
8423
8424 2004-05-03 J. Brobecker <brobecker@gnat.com>
8425
8426 * dwarf2read.c (line_header): Add new included_p field in
8427 field file_names.
8428 (partial_die_info): New field has_stmt_list. New field line_offset.
8429 (dwarf2_create_include_psymtab): New function.
8430 (dwarf2_build_include_psymtabs): New function.
8431 (add_file_name): Add forward declaration. Initialize new field.
8432 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8433 to be able to determine the list of files included by the
8434 given unit, and build their associated psymtabs.
8435 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8436 files as well.
8437 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8438 (read_file_scope): Update call to dwarf_decode_lines.
8439 (read_partial_die): Handle DW_AT_stmt_list attributes.
8440
8441 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8442
8443 Unfix PR gdb/1626.
8444 * configure.in: Revert special case for osf5.*.
8445 * configure: Regenerate.
8446
8447 2004-05-02 Jim Blandy <jimb@redhat.com>
8448
8449 Move the symbol-file-from-memory functions into their own file.
8450 * symfile-mem.c, symfile-mem.h: New files.
8451 * symfile.c (symbol_file_add_from_bfd): New function.
8452 (symbol_file_add): Call symbol_file_add_from_bfd.
8453 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8454 Moved to symfile-mem.c.
8455 (_initialize_symfile): Move definition of
8456 add-symbol-file-from-memory command to symfile-mem.c.
8457 * symfile.h (symbol_file_add_from_bfd): New declaration.
8458 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8459 * config/powerpc/linux.mt (TDEPFILES): Same.
8460 * Makefile.in (SFILES): Add symfile-mem.c.
8461 (symfile_mem_h): New variable.
8462 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8463 (symfile-mem.o): New rule.
8464
8465 2004-05-01 Andrew Cagney <cagney@redhat.com>
8466
8467 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8468 frame_find_by_id instead of frame_relative_level.
8469 (do_enable_breakpoint): Ditto.
8470 * thread.c: Update copyright.
8471 (info_threads_command): Ditto, simplify.
8472
8473 * frame.c (deprecated_generic_get_saved_register): Delete
8474 function, moved to "xstormy16-tdep.c".
8475 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8476 deprecated_generic_get_saved_register from "frame.c".
8477 (xstormy16_frame_saved_register): Call
8478 xstormy16_get_saved_register.
8479 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8480 static.
8481 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8482 * frame.h (deprecated_generic_get_saved_register): Delete.
8483
8484 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8485
8486 * dwarfread.c: Update documentation on the state of dwarf-1.
8487
8488 2004-05-01 Andrew Cagney <cagney@redhat.com>
8489
8490 * stack.c (select_frame_command): Delete call to
8491 frame_relative_level.
8492 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8493 Delete #if0 code.
8494 (frame_info): Do not print FRAMELESS.
8495 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8496 (catch_info): Delete #if0 code.
8497
8498 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8499 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8500 of frame_relative_level.
8501 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8502 to SENTINEL_FRAME.
8503 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8504 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8505 frame_relative_level.
8506
8507 * frame.h (deprecated_set_frame_type): Delete declaration.
8508 * frame.c (deprecated_set_frame_type): Delete function, update
8509 comments.
8510
8511 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8512 * gdbarch.h, gdbarch.c: Re-generate.
8513 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8514 (shnbsd_pc_in_sigtramp): Delete.
8515 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8516 pc_in_sigtramp.
8517 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8518 pc_in_sigtramp.
8519 * frame.h: Update comments.
8520 * ppc-linux-tdep.c: Update comments.
8521 * breakpoint.c (bpstat_what): Update comments.
8522
8523 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8524 m68klinux-tdep.o's dependencies, were previously added to
8525 m68klinux-nat.o.
8526
8527 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8528 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8529 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8530 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8531 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8532
8533 * Makefile.in (m68klinux-nat.o): Update dependencies.
8534 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8535 (m68k_linux_sigtramp_frame_cache)
8536 (m68k_linux_sigtramp_frame_this_id)
8537 (m68k_linux_sigtramp_frame_prev_register)
8538 (m68k_linux_sigtramp_frame_unwind)
8539 (m68k_linux_sigtramp_frame_sniffer)
8540 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8541 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8542 names, use trad-frame.h.
8543 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8544 (struct m68k_sigtramp_info): Delete.
8545 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8546 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8547 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8548 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8549 "m68klinux-tdep.c".
8550
8551 * infrun.c (check_sigtramp2): Delete check for
8552 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8553
8554 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8555
8556 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8557
8558 2004-05-01 Andrew Cagney <cagney@redhat.com>
8559
8560 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8561 (frv_linux_sigtramp_frame_cache)
8562 (frv_linux_sigtramp_frame_this_id)
8563 (frv_linux_sigtramp_frame_prev_register)
8564 (frv_linux_sigtramp_frame_unwind)
8565 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8566 include "linux" in function and variable names, directly call
8567 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8568 the latest trad-frame code.
8569 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8570 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8571 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8572 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8573 * frv-tdep.c (frv_sigtramp_frame_cache)
8574 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8575 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8576 frv-linux-tdep.c.
8577 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8578 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8579 (frv_set_sigcontext_reg_addr): Delete function.
8580
8581 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8582 (DEPRECATED_SIGTRAMP_END): Delete.
8583 * gdbarch.h, gdbarch.c: Re-generate.
8584 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8585 * config/vax/tm-vaxbsd.h: Update copyright.
8586 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8587 (DEPRECATED_IN_SIGTRAMP): Define.
8588 * config/m68k/tm-nbsd.h: Update copyright.
8589 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8590 (DEPRECATED_IN_SIGTRAMP): Define.
8591
8592 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8593
8594 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8595 encondings. Fixes PR gdb/1628.
8596
8597 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8598 DW_CFA_restore state without a matching DW_CFA_remember_state
8599 instead of aborting. Fixes PR backtrace/1589.
8600
8601 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8602
8603 * MAINTAINERS: Add self as AIX maintainer.
8604 Update my e-mail address in write-after-approval section.
8605
8606 2004-04-30 Andrew Cagney <cagney@redhat.com>
8607
8608 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8609 (legacy_get_prev_frame): Ditto.
8610
8611 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8612 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8613 * mipsread.c (sigtramp_address): Delete extern variable.
8614 (mipscoff_new_init): Delete reference.
8615 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8616 (fixup_sigtramp): Delete function.
8617 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8618 (fixup_sigtramp): Delete declarations.
8619
8620 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8621 deprecated_pc_in_sigtramp.
8622 (ppcnbsd_pc_in_sigtramp): Delete function.
8623
8624 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8625
8626 * config/m68k/nm-nbsd.h: Tweak comments.
8627 * config/m68k/nm-nbsdaout.h: Likewise.
8628
8629 2004-04-30 Andrew Cagney <cagney@redhat.com>
8630
8631 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8632 legacy_pc_in_sigtramp.
8633 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8634
8635 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8636
8637 Add OpenBSD/m68k support.
8638 * NEWS (New native configurations): Mention OpenBSD/m68k.
8639 * m68kbsd-tdep.c: New file.
8640 * m68kbsd-nat.c: New file.
8641 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8642 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8643 * configure.host: Add m68k-*-openbsd.
8644 * configure.tgt: Add m68k-*-openbsd.
8645 * config/m68k/tm-obsd.h: New file.
8646 * config/m68k/obsd.mt: New file.
8647 * config/m68k/obsd.mh: New file.
8648 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8649 m68kbsd-tdep.c.
8650
8651 2004-04-30 Andrew Cagney <cagney@redhat.com>
8652
8653 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8654 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8655
8656 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8657
8658 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8659 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8660
8661 2004-04-30 Brian Ford <ford@vss.fsi.com>
8662
8663 Revert 2004-04-16 change.
8664 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8665 (i386_coff_init_abi): Remove.
8666 * i386-tdep.h (i386_coff_init_abi): Remove.
8667 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8668
8669 2004-04-30 Andrew Cagney <cagney@redhat.com>
8670
8671 * blockframe.c (find_pc_partial_function): Delete use of
8672 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8673 DEPRECATED_SIGTRAMP_END.
8674
8675 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8676 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8677 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8678 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8679 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8680
8681 * defs.h (deprecated_inside_entry_file): Delete declaration.
8682 * blockframe.c (deprecated_inside_entry_file): Delete function.
8683 (legacy_frame_chain_valid): Delete call.
8684 * sh64-tdep.c (sh64_frame_chain): Delete call.
8685 * objfiles.h: Update comments.
8686 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8687 call.
8688 * frame.c (get_prev_frame): Delete call, update comments.
8689
8690 2004-04-30 Brian Ford <ford@vss.fsi.com>
8691
8692 * MAINTAINERS (Write After Approval): Add myself.
8693
8694 2004-04-30 Andrew Cagney <cagney@redhat.com>
8695
8696 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8697 * gdbarch.h, gdbarch.c: Re-generate.
8698 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8699 code.
8700
8701 2004-04-30 Andrew Cagney <cagney@redhat.com>
8702
8703 * gdb-events.sh (selected_thread_changed)
8704 (selected_frame_level_changed, target_changed): Delete.
8705 * gdb-events.h, gdb-events.c: Re-generate.
8706 * valops.c (value_assign): Update.
8707 * stack.c (select_frame_command, up_silently_base)
8708 (down_silently_base): Update.
8709
8710 2004-04-29 Andrew Cagney <cagney@redhat.com>
8711
8712 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8713 registers correctly.
8714 (print_gp_register_row, mips32_heuristic_proc_desc)
8715 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8716 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8717 references to mips_isa_regsize.
8718
8719 2004-04-29 Andrew Cagney <cagney@redhat.com>
8720
8721 * mips-tdep.c (struct gdbarch_tdep): Delete
8722 mips_fp_register_double.
8723 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8724 mips_abi_regsize.
8725 (mips_gdbarch_init): Do not set mips_fp_register_double.
8726 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8727
8728 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8729
8730 Committed by Andrew Cagney.
8731 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8732 function calls.
8733
8734 2004-04-29 Andrew Cagney <cagney@redhat.com>
8735
8736 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8737 gdbarch, use mips_abi, update callers.
8738 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8739 mips_abi_regsize, update callers.
8740 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8741 mips_default_abi_regsize.
8742 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8743 mips_default_abi_regsize.
8744
8745 2004-04-29 Andrew Cagney <cagney@redhat.com>
8746
8747 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8748 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8749 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8750 mips_default_abi_regsize.
8751 (mips_isa_regsize): Rename mips_regisze.
8752 * mipsnbsd-tdep.c: Update.
8753 * mips-linux-tdep.c: Update.
8754 * irix5-nat.c: Update.
8755 * mips-tdep.h (mips_isa_regsize): Update.
8756
8757 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8758 Delete all disabled code.
8759 * gdb-events.h, gdb-events.c: Re-generate.
8760
8761 2004-04-19 Jerome Guitton <guitton@gnat.com>
8762 Mark Kettenis <kettenis@gnu.org>
8763
8764 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8765 the function begins with a branch instruction.
8766
8767 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8768
8769 * i386-tdep.c: Fix spelling mistakes.
8770
8771 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8772 Andrew Cagney <cagney@redhat.com>
8773
8774 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8775 <sys/proc.h>.
8776 * acconfig.h: Provide default _KMEMUSER value.
8777 * config.in, configure: Re-generate.
8778 * NEWS: Mention fix.
8779
8780 2004-04-24 Randolph Chung <tausq@debian.org>
8781
8782 * configure.host (hppa*-*-linux*): New target.
8783 * configure.tgt (hppa*-*-linux*): Likewise.
8784 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8785 gdbarch_init_osabi() call earlier so that osabi-specific frame
8786 unwinders can be registered first.
8787 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8788 hppa-linux-nat.c.
8789 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8790 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8791 * config/pa/linux.mh: New file.
8792 * config/pa/linux.mt: New file.
8793 * config/pa/nm-linux.h: New file.
8794 * config/pa/xm-linux.h: New file.
8795 * hppa-linux-nat.c: New file.
8796 * hppa-linux-tdep.c: New file.
8797
8798 2004-04-28 Randolph Chung <tausq@debian.org>
8799
8800 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8801 return values.
8802 (hppa32_push_dummy_call): Fix small struct and floating point argument
8803 passing, and make sure the stack frame is properly aligned.
8804
8805 2004-04-28 Andrew Cagney <cagney@redhat.com>
8806
8807 * stack.c (print_stack_frame): Fix description.
8808
8809 * NEWS: Mention gdb/gdbserver/configure execute permission
8810 changed. PR server/519.
8811
8812 2004-04-28 Andrew Cagney <cagney@redhat.com>
8813
8814 * stack.c (print_stack_frame_stub): Delete declaration.
8815 (struct print_stack_frame_args, print_stack_frame)
8816 (print_frame_info, print_frame): Replace "source" with print what.
8817 Replace "print" with "print_level". Replace "args" with
8818 "print_args".
8819 * frame.h (show_and_print_stack_frame, print_stack_frame)
8820 (print_frame_info): Update declarations.
8821 * stack.c (select_and_print_frame, frame_command)
8822 (current_frame_command, up_command, down_command): Update calls -
8823 use get_selected_frame, pass "enum print_what" for source, do not
8824 call frame_relative_level.
8825 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8826 * remote-rdp.c (remote_rdp_open): Ditto.
8827 * remote-mips.c (common_open): Ditto.
8828 * remote-e7000.c (e7000_start_remote): Ditto.
8829 * ocd.c (ocd_start_remote): Ditto.
8830 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8831 * infrun.c (normal_stop): Ditto.
8832 * inflow.c (kill_command): Ditto.
8833 * infcmd.c (finish_command): Ditto.
8834 * corelow.c (core_open): Ditto.
8835 * tracepoint.c (finish_tfind_command): Ditto.
8836 * thread.c (info_threads_command, info_threads_command)
8837 (restore_current_thread, do_captured_thread_select): Ditto.
8838 * ada-tasks.c (task_command): Ditto.
8839
8840 2004-04-26 Orjan Friberg <orjanf@axis.com>
8841
8842 * frame.c: Include "observer.h".
8843 (frame_observer_target_changed): New function.
8844 (_initialize_frame): Attach target_changed observer.
8845 * regcache.c: Include "observer.h".
8846 (regcache_observer_target_changed): New function.
8847 (_initialize_regcache): Attach target_changed observer.
8848 * valops.c: Include "observer.h".
8849 (value_assign): Notify target_changed event when modifying register.
8850 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8851
8852 2004-04-26 Orjan Friberg <orjanf@axis.com>
8853
8854 From Paul Koning <pkoning@equallogic.com>:
8855 * breakpoint.c (free_valchain): New function.
8856 (insert_bp_location, delete_breakpoint): Use free_valchain.
8857 (remove_breakpoint): Do not remove the valchain.
8858 (bpstat_stop_status): If not stopped by watchpoint, skip
8859 watchpoints when generating stop status list.
8860 * infrun.c (handle_inferior_event): Make
8861 stepped_after_stopped_by_watchpoint a global variable.
8862 * remote.c (remote_stopped_data_address): Return watch data
8863 address rather than zero if stepped_after_stopped_by_watchpoint is
8864 set.
8865
8866 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8867
8868 Fix PR gdb/1626.
8869 * configure.in: Check for curses after termcap.
8870 On osf5.*, do not check for ncurses.
8871 * configure: Regenerate.
8872
8873 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8874
8875 * ppcobsd-nat.c: Include "ppc-tdep.h".
8876 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8877
8878 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8879 Fixes PR tdep/1623 and PR tdep/1624.
8880
8881 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8882
8883 * xmodem.h, xmodem.c: Remove files.
8884 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8885
8886 2004-04-23 Randolph Chung <tausq@debian.org>
8887
8888 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8889 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8890 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8891 for handling stackless frames.
8892 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8893
8894 2004-04-23 Randolph Chung <tausq@debian.org>
8895
8896 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8897 starts at a pc before the frame is created.
8898
8899 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8900
8901 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8902
8903 2004-04-23 Jerome Guitton <guitton@gnat.com>
8904
8905 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8906 use convert_typed_floating to get the appropriate format.
8907
8908 2004-04-22 Randolph Chung <tausq@debian.org>
8909
8910 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8911 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8912 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8913 (hppa_sign_extend): Add prototype.
8914 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8915 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8916 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8917 hppa targets will also use these functions.
8918 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8919 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8920 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8921 (hppa_gdbarch_init): Remove gdbarch setting of
8922 skip_trampoline_code, in_solib_call_trampoline and
8923 in_solib_return_trampoline.
8924 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8925 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8926 hppa_in_solib_call_trampoline.
8927 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8928 Moved from hppa-tdep.c.
8929 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8930 in_solib_call_trampoline and in_solib_return_trampoline.
8931
8932 2004-04-22 Randolph Chung <tausq@debian.org>
8933
8934 * hppa-tdep.c (hppa_debug): New variable.
8935 (find_unwind_entry, hppa_frame_cache): Add debug output.
8936 (_initialize_hppa_tdep): Add command to set debug flag.
8937
8938 2004-04-22 Andrew Cagney <cagney@redhat.com>
8939
8940 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8941 "trad-frame.h".
8942 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8943 signal trampoline unwinder.
8944 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8945
8946 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8947
8948 Add OpenBSD/powerpc support.
8949 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8950 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8951 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8952 (ppc_collect_fpregset): New prototypes.
8953 * ppcobsd-nat.c: New file.
8954 * ppcobsd-tdep.c: New file.
8955 * ppcobsd-tdep.h: New file.
8956 * rs6000-tdep.c: Include "regset.h".
8957 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8958 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8959 New functions.
8960 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8961 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8962 (rs6000-tdep.o): Update dependencies.
8963 * configure.host: Add powerpc-*-openbsd.
8964 * configure.tgt: Add powerpc-*-openbsd.
8965 * config/powerpc/obsd.mh: New file.
8966 * config/powerpc/nm-obsd.h: New file.
8967 * config/powerpc/obsd.mt: New file.
8968
8969 2004-04-22 Andrew Cagney <cagney@redhat.com>
8970
8971 * frame.h (show_frame_info): Delete declaration.
8972
8973 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8974 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8975 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8976 * frv-tdep.c (frv_frame_this_id): Ditto.
8977 * avr-tdep.c (avr_frame_this_id): Ditto.
8978
8979 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8980
8981 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8982
8983 2004-04-22 Jim Blandy <jimb@redhat.com>
8984
8985 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8986 register number zero.
8987
8988 2004-04-21 Michael Snyder <msnyder@redhat.com>
8989
8990 * mips-tdep.c (heuristic_proc_start):
8991 Warning() already prefixes "Warning: ".
8992
8993 2004-04-21 Andrew Cagney <cagney@redhat.com>
8994
8995 * annotate.h (deprecated_annotate_starting_hook)
8996 (deprecated_annotate_stopped_hook)
8997 (deprecated_annotate_exited_hook)
8998 (deprecated_annotate_signal_hook)
8999 (deprecated_annotate_signalled_hook): Deprecate.
9000 * tracepoint.h (deprecated_create_tracepoint_hook)
9001 (deprecated_delete_tracepoint_hook)
9002 (deprecated_modify_tracepoint_hook)
9003 (deprecated_trace_find_hook)
9004 (deprecated_trace_start_stop_hook): Deprecate.
9005 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9006 * remote.h (deprecated_target_resume_hook)
9007 (deprecated_target_wait_loop_hook): Deprecate.
9008 * gdbcore.h (deprecated_exec_file_display_hook)
9009 (deprecated_file_changed_hook): Deprecate.
9010 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9011 * defs.h (deprecated_modify_breakpoint_hook)
9012 (deprecated_command_loop_hook, deprecated_show_load_progress)
9013 (deprecated_print_frame_info_listing_hook)
9014 (deprecated_query_hook, deprecated_warning_hook)
9015 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9016 (deprecated_delete_breakpoint_hook)
9017 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9018 (deprecated_readline_begin_hook, deprecated_readline_hook)
9019 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9020 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9021 (deprecated_context_hook, deprecated_target_wait_hook)
9022 (deprecated_attach_hook, deprecated_detach_hook)
9023 (deprecated_call_command_hook, deprecated_set_hook)
9024 (deprecated_error_hook, deprecated_error_begin_hook)
9025 (deprecated_ui_load_progress_hook): Deprecate.
9026 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9027 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9028 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9029 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9030 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9031 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9032 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9033 * annotate.c, aix-thread.c: Update.
9034
9035 2004-04-21 Andrew Cagney <cagney@redhat.com>
9036
9037 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9038 * vaxnbsd-tdep.c: Include "gdb_string.h".
9039
9040 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9041 (add_symbol_file_from_memory_command): #if 0 function body, call
9042 error instead.
9043
9044 2004-04-21 Andrew Cagney <cagney@redhat.com>
9045
9046 * gdbcore.h: Update copyright.
9047 (deprecated_add_core_fns): Rename add_core_fns.
9048 * win32-nat.c (_initialize_core_win32): Update.
9049 * sun3-nat.c (_initialize_core_sun3): Update.
9050 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9051 * rs6000-nat.c (_initialize_core_rs6000): Update.
9052 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9053 * nto-tdep.c (_initialize_nto_tdep): Update.
9054 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9055 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9056 * mips-nat.c (_initialize_core_mips): Update.
9057 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9058 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9059 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9060 * lynx-nat.c (_initialize_core_lynx): Update.
9061 * irix5-nat.c (_initialize_core_irix5): Update.
9062 * i386-interix-nat.c (_initialize_core_interix): Update.
9063 * cris-tdep.c (_initialize_cris_tdep): Update.
9064 * corelow.c (deprecated_add_core_fns): Update.
9065 * core-regset.c (_initialize_core_regset): Update.
9066 * core-aout.c (_initialize_core_aout): Update.
9067 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9068 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9069 * alpha-nat.c (_initialize_core_alpha): Update.
9070
9071 2004-04-21 Jim Blandy <jimb@redhat.com>
9072
9073 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9074
9075 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9076
9077 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9078 Delete.
9079 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9080 (read_attribute_value): Update calls to dwarf_alloc_block.
9081 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9082 dwarf2_tmp_obstack.
9083 (psymtab_to_symtab_1): Likewise. Clean up using
9084 free_stack_comp_unit.
9085 (add_to_cu_func_list): Use the comp_unit_obstack.
9086
9087 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9088
9089 * dwarf2read.c (dwarf2_flag_true_p): New function.
9090 (die_is_declaration): Use the function above. Add some comments.
9091
9092 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9093
9094 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9095 architecture when registering sparcnbsd_core_osabi_sniffer.
9096 Adjust comment.
9097
9098 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9099
9100 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9101 return value.
9102
9103 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9104 * i386-tdep.c: Correct register numbering scheme comments
9105 throughout.
9106 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9107 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9108 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9109 (i386_gdb_arch_init): Likewise.
9110
9111 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9112 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9113 ppcnbsd-tdep.o.
9114
9115 * m68k-tdep.h: Tweak comments.
9116 * m68k-tdep.c: Tweak comment.
9117
9118 2004-04-17 Randolph Chung <tausq@debian.org>
9119
9120 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9121 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9122 (hppa_hpux_som_init_abi): Set is_elf to 0.
9123 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9124 * hppa-tdep.c (low_text_segment_address): Remove global.
9125 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9126 section offset to calculate segment address.
9127 (internalize_unwinds): Define low_text_segment_address as local and
9128 pass to record_text_segment_lowaddr for ELF targets.
9129 (hppa_gdbarch_init): Zero fill tdep structure.
9130 (hppa_dump_tdep): Print tdep structure.
9131 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9132
9133 2004-04-17 Randolph Chung <tausq@debian.org>
9134
9135 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9136 (hppa_gdbarch_init): Set pseudo_register_read.
9137 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9138 * regcache.c (supply_register): Remove check for
9139 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9140
9141 2004-04-17 Randolph Chung <tausq@debian.org>
9142
9143 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9144 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9145 (hpread_adjust_stack_address): Move to hpread.c.
9146 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9147 obj_private_struct): Move from tm-hppa.h.
9148 * hpread.c (hppa-tdep.h): Include.
9149 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9150 (hpread_read_function_type, hpread_read_doc_function_type)
9151 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9152 directly.
9153 * pa64solib.c (hppa-tdep.h): Include.
9154 * somsolib.c (hppa-tdep.h): Include.
9155 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9156 inferior_status): Remove unused forward declarations.
9157 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9158 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9159 obj_private_struct): Move to hppa-tdep.h.
9160 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9161
9162 2004-04-17 Randolph Chung <tausq@debian.org>
9163
9164 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9165 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9166 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9167 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9168 Remove forward declaration and make static.
9169 (hppa_reg_struct_has_addr): Remove.
9170
9171 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9172
9173 * observer.sh: Move comments in sed command to first column.
9174
9175 2004-04-16 Jason Molenda (jmolenda@apple.com)
9176
9177 * frame.c: Minor typeo corrections in comments.
9178
9179 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9180
9181 * observer.c (observer_test_first_notification_function): Update
9182 function profile.
9183 (observer_test_second_notification_function): Likewise.
9184 (observer_test_third_notification_function): Likewise.
9185
9186 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9187
9188 From Brian Ford <ford@vss.fsi.com>:
9189 * i386-tdep.c (i386_coff_init_abi): New function.
9190 * i386-tdep.h (i386_coff_init_abi): New prototype.
9191 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9192 register number translation functions for DWARF and DWARF 2.
9193
9194 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9195
9196 * dwarf2read.c: Back out my previous change, it was incorrect.
9197
9198 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9199
9200 * dwarf2read.c: Include "hashtab.h".
9201 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9202 has_namespace_info.
9203 (struct partial_die_info): Add comments. Use bitfields to reduce
9204 memory footprint. Add scope, scope_set, has_specification,
9205 spec_offset, die_parent, die_child, and die_sibling.
9206 (peek_die_abbrev): Add prototype.
9207 (partial_read_comp_unit_head): New function, broken out from
9208 dwarf2_build_psymtabs_hard.
9209 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9210 Use partial_read_comp_unit_head. Initialize the CU and
9211 comp_unit_obstack. Update calls to read_partial_die and
9212 scan_partial_symbols. Use free_stack_comp_unit and
9213 load_partial_dies.
9214 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9215 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9216 Update calls to helper functions. Remove NAMESPACE argument.
9217 Update comments.
9218 (partial_die_parent_scope, partial_die_full_name): New functions.
9219 (add_partial_symbol): Remove namespace argument. Update call to
9220 pdi_needs_namespace. Use partial_die_full_name. Handle
9221 DW_TAG_namespace. Check has_namespace_info flag.
9222 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9223 tag. Handle namespaces.
9224 (add_partial_namespace, add_partial_enumeration): Simplify.
9225 (guess_structure_name): New function, derived from
9226 add_partial_structure.
9227 (add_partial_structure): Remove.
9228 (determine_class_name): Update comment.
9229 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9230 (is_type_tag_for_partial, load_partial_dies): New functions.
9231 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9232 Record specifications instead of following them immediately.
9233 (find_partial_die_in_comp_unit, find_partial_die)
9234 (fixup_partial_die, free_stack_comp_unit)
9235 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9236 (partial_die_hash, partial_die_eq): New functions.
9237 * Makefile.in (hashtab_h): Define.
9238 (dwarf2read.o): Update dependencies.
9239 (observer_inc, observer_h): Move to the correct section.
9240
9241 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9242
9243 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9244 (die_is_declaration): Use the function above. Add comment.
9245
9246 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9247
9248 * dwarf2read.c (read_structure_scope): Identify stub types
9249 using die_is_declaration() only.
9250
9251 2004-04-15 Roland McGrath <roland@redhat.com>
9252
9253 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9254 argument instead of NAME.
9255 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9256 in call to symbol_file_add_with_addrs_or_offsets.
9257 (build_addr_info): New function, helper for ...
9258 (symbol_file_add_from_memory): New function.
9259 (add_symbol_file_from_memory_command): New function using that.
9260 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9261 (pre_add_symbol_hook): Add const to argument type.
9262 * symfile.h (symbol_file_add_from_memory): Declare it.
9263
9264 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9265
9266 * NEWS (New native configurations): Mention OpenBSD/vax.
9267 * configure.host: Add vax-*-openbsd*.
9268 * config/vax/obsd.mh: New file.
9269 * config/vax/nm-obsd.h: New file.
9270
9271 * vax-tdep.c: Include "regset.h".
9272 (vax_supply_gregset): New function.
9273 (vax_gregset): New variable.
9274 (vax_regset_from_core_section): New function.
9275 (vax_gdbarch_init): Set regset_from_core_section.
9276 * Makefile.in (vax-tdep.o): Update dependencies.
9277
9278 2004-04-15 Andrew Cagney <cagney@redhat.com>
9279
9280 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9281 (observer_normal_stop_notification_stub)
9282 (observer_attach_normal_stop, observer_detach_normal_stop):
9283 Delete, replaced by #include "observer.inc".
9284 * infrun.c (normal_stop): Pass "stop_bpstat" to
9285 observer_notify_normal_stop.
9286 * Makefile.in (observer_inc): Define.
9287 (observer.o): Update dependencies.
9288 (observer.h, observer.inc): New rules.
9289 * observer.h: Delete file.
9290 * observer.sh: New file.
9291
9292 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9293
9294 * vax-tdep.c (vax_frame_cache): Fix typo.
9295
9296 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9297
9298 * NEWS (New native configurations): Mention NetBSD/vax.
9299 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9300 * config/vax/nbsdelf.mh: New file.
9301 * config/vax/nbsdaout.mh: New file.
9302 * config/vax/nm-nbsd.h: New file.
9303 * config/vax/nm-nbsdaout.h: New file.
9304
9305 * vaxnbsd-tdep.c: New file.
9306 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9307 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9308 * config/vax/nbsd.mt: New file.
9309 * config/vax/tm-nbsd.h: New file.
9310
9311 * Makefile.in (vaxbsd-nat.o): New dependency.
9312
9313 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9314 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9315 struct_addr arguments. Don't push return value address.
9316 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9317 arguments to vax_store_arguments. Store return value address in
9318 R1.
9319 (vax_store_struct_return, vax_extract_return_value)
9320 (vax_store_return_value): Remove functions.
9321 (vax_return_value): New function.
9322 (vax_gdbarch_init): Set return value. Don't set
9323 deprecated_store_struct_return, deprecated_extract_struct_return
9324 and deprecated_store_return_value.
9325
9326 2004-04-14 Andreas Schwab <schwab@suse.de>
9327
9328 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9329 value buffer.
9330 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9331
9332 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9333
9334 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9335 (vax_unwind_dummy_id): New functions.
9336 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9337 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9338 variables.
9339 (vax_fix_call_dummy): Remove function.
9340 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9341 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9342 call_dummy_location, deprecated_call_dummy_words,
9343 deprecated_sizeof_call_dummy_words,
9344 deprecated_call_dummy_breakpoint_offset,
9345 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9346 and deprecated_dummy_write_sp.
9347
9348 2004-04-13 David Carlton <carlton@kealia.com>
9349
9350 * MAINTAINERS: Move myself to "paper trail" section.
9351
9352 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9353
9354 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9355 "trad-frame.h".
9356 (vax_frame_init_saved_regs): Remove function.
9357 (vax_sigtramp_saved_pc): Remove function.
9358 (vax_frame_saved_pc): Remove function.
9359 (vax_frame_args_address): Remove function.
9360 (vax_frame_num_args): Rewrite.
9361 (vax_frame_chain): Remove function.
9362 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9363 VAX_FP_REGNUM.
9364 (vax_pop_frame): Likewise.
9365 (vax_saved_pc_after_call): Remove function.
9366 (struct vax_frame_cache): New structure.
9367 (vax_frame_cache): New function.
9368 (vax_frame_this_id): New function.
9369 (vax_frame_prev_register): New function.
9370 (vax_frame_unwind): New variable.
9371 (vax_frame_sniffer): New function.
9372 (vax_frame_base_address): New function.
9373 (vax_frame_args_address): New function.
9374 (vax_frame_base): New variable.
9375 (vax_unwind_pc): New function.
9376 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9377 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9378 deprecated_frame_chain, deprecated_frame_saved_pc,
9379 deprecated_frame_args_address and
9380 deprecated_frame_init_saved_regs.
9381 * Makefile.in (vax-tdep.o): Update dependencies.
9382
9383 * vaxbsd-nat.c: New file.
9384
9385 * vax-tdep.h: Update copyright year. Adjust comments.
9386 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9387 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9388 (vax_regnum): New enum. Replacing...
9389 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9390 (VAX_PS_REGNUM): ... these removed macros.
9391 * vax-tdep.c (vax_register_name): Remove prototype.
9392 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9393 (vax_register_byte, vax_register_raw_size,
9394 vax_register_virtual_size, vax_register_virtual_type): Remove
9395 functions.
9396 (vax_register_type): New function.
9397 (vax_breakpoint_from_pc): Reorganize.
9398 (vax_gdbarch_init): Set register_type. Don't set
9399 deprecated_register_size, deprecated_register_bytes,
9400 deprecated_register_byte, deprecated_register_raw_size,
9401 deprecated_max_register_raw_size,
9402 deprecated_register_virtual_size,
9403 deprecated_max_register_virtual_size and
9404 deprecated_register_virtual_type. Add comment on stack direction.
9405
9406 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9407
9408 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9409 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9410 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9411
9412 2004-04-10 Randolph Chung <tausq@debian.org>
9413
9414 * MAINTAINERS (write after approval): Add myself.
9415
9416 2004-04-07 Randolph Chung <tausq@debian.org>
9417
9418 * hppa-tdep.c (hppa_inner_than): Remove.
9419 (is_pa_2): Remove unused static variable.
9420 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9421
9422 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9423
9424 * language.h (language_defn): Add new la_post_parser field.
9425 * parser-defs.h (null_post_parser): New declaration (default for
9426 la_post_parser).
9427
9428 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9429 insert call to that function.
9430 (parse_exp_in_context): New function, including code formerly in
9431 parse_exp_1. Calls language-dependent post-parser after
9432 prefixification.
9433 (parse_expression_in_context): New exported function.
9434 (null_post_parser): New definition.
9435 * expression.h (parse_expression_in_context): Add declaration.
9436
9437 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9438 * c-lang.c (c_language_defn): Ditto.
9439 (cplus_language_defn): Ditto.
9440 (asm_language_defn): Ditto.
9441 (minimal_language_defn): Ditto.
9442 * f-lang.c (f_language_defn): Ditto.
9443 * jv-lang.c (java_language_defn): Ditto.
9444 * language.c (unknown_language_defn): Ditto.
9445 (auto_language_defn): Ditto.
9446 (local_language_defn): Ditto.
9447 * m2-lang.c (m2_language_defn): Ditto.
9448 * scm-lang.c (scm_language_defn): Ditto.
9449 * obj-lang.c (objc_language_defn): Ditto.
9450
9451 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9452
9453 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9454 (amd64nbsd_mcontext_addr): New function.
9455 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9456 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9457 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9458
9459 * corelow.c (core_xfer_partial): Fix coding standards violation.
9460 Add support for TARGET_OBJECT_WCOOKIE.
9461
9462 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9463 deprecated_pc_in_sigtramp.
9464 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9465 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9466 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9467 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9468 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9469 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9470 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9471
9472 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9473 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9474 Fix typo.
9475
9476 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9477 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9478 (amd64_collect_fxsave): Likewise.
9479
9480 * i386-sol2-tdep.c: Include "gdb_string.h".
9481 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9482 name.
9483 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9484
9485 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9486
9487 * i386-sol2-tdep.c: Include "solib-svr4.h".
9488 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9489 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9490 * config/i386/tm-i386sol2.h: Include :solib.h".
9491 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9492 solib-svr4.o and solib-legacy.o.
9493 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9494 solib-svr4.o.
9495
9496 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9497
9498 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9499 whether a register is supplied by PTRACE_GETFPREGS.
9500 (store_inferior_registers): Likewise.
9501 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9502 whether a register is supplied by PT_GETFPREGS.
9503 (store_inferior_registers): Likewise.
9504
9505 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9506 * config/i386/linux64.mt (TDEPFILES): Likewise.
9507
9508 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9509
9510 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9511 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9512 the program counter is in the range specified by `struct
9513 gdbarch_tdep'.
9514 * amd64-linux-tdep.c: Include "symtab.h".
9515 (amd64_linux_pc_in_sigtramp): Remove function.
9516 (amd64_linux_sigtramp_p): New function.
9517 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9518 deprecated_pc_in_sigtramp.
9519 * amd64nbsd-tdep.c: Include "symtab.h".
9520 (amd64nbsd_sigtramp_p): New function.
9521 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9522 deprecated_pc_in_sigtramp.
9523 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9524 few comments.
9525 (amd64obsd_pc_in_sigtramp): Remove function.
9526 (amd64obsd_sigtramp_p): New function.
9527 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9528 deprecated_pc_in_sigtramp.
9529 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9530 (i386bsd_pc_ins_sigtramp): Remove prototype.
9531 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9532 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9533 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9534 the program counter is in the range specified by `struct
9535 gdbarch_tdep'.
9536 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9537 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9538 (i386_go32_pc_in_sigtramp): Remove function.
9539 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9540 Initialize TDEP->sigtramp_p.
9541 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9542 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9543 deprecated_pc_in_sigtramp.
9544 * i386-linux-tdep.c: Adjust comments.
9545 (i386_linux_pc_in_sigtramp): Remove function.
9546 (i386_linux_sigtramp_p): New function.
9547 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9548 deprecated_pc_in_sigtramp.
9549 * i386-nto-tdep.c: Update copyright year.
9550 (i386nto_pc_in_sigtramp): Remove function.
9551 (i386nto_sigtramp_p): New function.
9552 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9553 SP_REGNUM.
9554 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9555 deprecated_pc_in_sigtramp.
9556 * i386-sol2-tdep.c: Update copyright year.
9557 (i386_sol2_pc_in_sigtramp): Remove function.
9558 (i386_sol2_sigtramp_p): New function.
9559 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9560 deprecated_pc_in_sigtramp.
9561 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9562 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9563 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9564 deprecated_sigtramp_start and deprecated_sigtramp_end.
9565 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9566 (i386nbsd_pc_in_sigtramp): Remove function.
9567 (i386nbsd_sigtramp_p): New function.
9568 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9569 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9570 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9571 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9572 (i386obsd_pc_in_sigtramp): Remove function.
9573 (i386obsd_sigtramp_p): New function.
9574 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9575 functions.
9576 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9577 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9578 TDEP->sigtramp_p.
9579 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9580 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9581 dependencies.
9582
9583 * config/i386/i386aout.mt: Remove file.
9584
9585 * configure.tgt: Remove i[34567]86-*-go32*,
9586 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9587 and i[34567]86-*-isc*. Set gdb_target to i386 for
9588 i[34567]86-*-netware* and i[34567]86-*-*.
9589 * config/i386/i386.mt: New file.
9590 * config/i386/embed.mt: Remove file.
9591 * config/i386/go32.mt: Remove file.
9592 * config/i386/i386nw.mt: Remove file.
9593 * config/i386/i386v.mt: Remove file.
9594 * config/i386/tm-go32.h: Remove file.
9595
9596 * tui/tui-hooks.c: Include "readline/readline.h" after
9597 "gdb_curses.h" instead of before.
9598 * tui/tui-io.c: Likewise.
9599
9600 * tui/tui.c: Fix typo in comment.
9601
9602 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9603
9604 2004-04-08 Andrew Cagney <cagney@redhat.com>
9605
9606 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9607 (deprecated_exception_support_initialized): Declare.
9608 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9609 (initialize_hp_cxx_exception_support)
9610 (child_enable_exception_callback): Update.
9611 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9612 (deprecated_exception_support_initialized): Rename
9613 deprecated_exception_catchpoints_are_fragile and
9614 deprecated_exception_support_initialized.
9615 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9616
9617 * symtab.c (deprecated_hp_som_som_object_present): Rename
9618 hp_som_som_object_present.
9619 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9620 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9621 Update. Delete extern declaration.
9622 * valops.c (hp_som_som_object_present): Ditto.
9623 * parse.c (deprecated_hp_som_som_object_present)
9624 (parse_nested_classes_for_hpacc): Ditto.
9625 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9626 * hppa-hpux-tdep.c (hp_som_som_object_present)
9627 (initialize_hp_cxx_exception_support): Ditto.
9628 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9629 * cp-valprint.c (hp_som_som_object_present)
9630 (cp_print_class_method): Ditto.
9631 * c-typeprint.c (hp_som_som_object_present):
9632 (c_type_print_base): Ditto.
9633 * c-exp.y (hp_som_som_object_present): Ditto.
9634
9635 2004-04-08 Andrew Cagney <cagney@redhat.com>
9636
9637 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9638 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9639 (frame_unwind_find_by_frame): Re-implement the unwind code so
9640 that it can both prepend and append sniffers. Replace
9641 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9642 * tramp-frame.c (tramp_frame_append): Use
9643 frame_unwind_prepend_unwinder.
9644 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9645 frame_unwind_register_unwinder.
9646 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9647 tramp_frame_append.
9648 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9649 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9650 (mips_linux_init_abi): Update.
9651
9652 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9653
9654 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9655 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9656 file support.
9657
9658 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9659
9660 * ia64-tdep.c (elf.h): Don't include.
9661 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9662
9663 2004-04-07 Jason Molenda (jmolenda@apple.com)
9664
9665 * frame.h: Typeo corrections in comments.
9666
9667 2004-04-07 Jim Blandy <jimb@redhat.com>
9668
9669 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9670 %esp and %ebp
9671
9672 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9673
9674 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9675 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9676 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9677 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9678 and solib-legacy.o.
9679 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9680 solib-svr4.o.
9681 * config/sparc/tm-sol2.h: Update copyright year. Include
9682 "solib.h".
9683
9684 * sparc-sol2-tdep.c: Update copyright year. Include
9685 "solib-svr4.h".
9686 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9687 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9688 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9689 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9690 dependencies.
9691
9692 2004-04-06 Andrew Cagney <cagney@redhat.com>
9693
9694 * infttrace.c: Include "infttrace.h".
9695 * infttrace.h: Include "target.h".
9696 * Makefile.in (infttrace_h): Update.
9697 (infttrace.o): Update.
9698
9699 2004-04-06 Andrew Cagney <cagney@redhat.com>
9700
9701 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9702 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9703 move extern declarations from here ...
9704 * infttrace.h: ... to here.
9705 * Makefile.in (hppah-nat.o): Update dependencies.
9706
9707 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9708 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9709 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9710 (hppa_breakpoint_from_pc): Delete.
9711
9712 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9713
9714 2004-04-05 Andrew Cagney <cagney@redhat.com>
9715
9716 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9717 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9718 <sys/file.h>.
9719
9720 2004-04-06 Randolph Chung <tausq@debian.org>
9721
9722 Committed by Andrew Cagney (mechanical change).
9723 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9724 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9725 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9726 child_enable_exception_callback, current_ex_event,
9727 null_symtab_and_line, child_get_current_exception_event,
9728 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9729 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9730 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9731 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9732 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9733 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9734 Move hpux-specific definitions ...
9735 * hppa-hpux-tdep.c: ... to here.
9736
9737 2004-04-05 Andrew Cagney <cagney@redhat.com>
9738
9739 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9740 skip_prologue_using_sal.
9741
9742 2004-04-05 Andrew Cagney <cagney@redhat.com>
9743
9744 * config/i386/tm-i386.h: Delete file.
9745 * config/i386/tm-vxworks.h: Update copyright, do not include
9746 "tm-i386.h".
9747 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9748 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9749 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9750 * config/i386/ncr3000.mt (TM_FILE): Delete.
9751 * config/i386/interix.mt (TM_FILE): Delete.
9752 * config/i386/i386v.mt (TM_FILE): Delete.
9753 * config/i386/i386nw.mt (TM_FILE): Delete.
9754 * config/i386/i386gnu.mt (TM_FILE): Delete.
9755 * config/i386/i386aout.mt (TM_FILE): Delete.
9756 * config/i386/embed.mt (TM_FILE): Delete.
9757
9758 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9759
9760 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9761 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9762 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9763 (accg7_regnum): New constants.
9764 (last_spr_regnum, last_pseudo_regnum): Update.
9765 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9766 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9767 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9768 for accg registers.
9769 (frv_register_sim_regno): Update spr_map[].
9770
9771 2004-04-04 Andrew Cagney <cagney@redhat.com>
9772
9773 * config/mips/xm-riscos.h: Delete.
9774 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9775 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9776 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9777 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9778 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9779 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9780 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9781 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9782 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9783 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9784 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9785 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9786 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9787 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9788 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9789 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9790 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9791 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9792 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9793 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9794 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9795 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9796 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9797 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9798 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9799 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9800
9801 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9802 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9803 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9804 * configure.host: Remove m680[01]0-sun-sunos3*,
9805 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9806 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9807 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9808 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9809 mips-*-riscos*.
9810 * NEWS: Mention removed systems.
9811
9812 2004-04-04 Andrew Cagney <cagney@redhat.com>
9813
9814 GDB 6.1 release created from 6.1 branch.
9815
9816 2004-04-04 Andrew Cagney <cagney@redhat.com>
9817
9818 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9819 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9820 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9821
9822 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9823 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9824 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9825
9826 2004-04-03 Jim Blandy <jimb@redhat.com>
9827
9828 * MAINTAINERS: Chris Faylor has changed employers; add him to
9829 "paper trail" section, and update his E-mail address.
9830
9831 2004-04-03 Andrew Cagney <cagney@redhat.com>
9832
9833 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9834 generic dummy frames.
9835 * dummy-frame.c: Update copyright.
9836 (dummy_frame_sniffer): Delete check for generic dummy frames.
9837
9838 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9839 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9840 (REG_PARM_STACK_SPACE): Delete.
9841 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9842 Inline reference to REG_PARM_STACK_SPACE.
9843
9844 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9845 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9846 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9847 (FRAME_BASE_BEFORE_SIGTRAMP)
9848 (hppa32_hpux_frame_base_before_sigtramp)
9849 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9850 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9851 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9852 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9853 (FRAME_BASE_BEFORE_SIGTRAMP)
9854 (hppa64_hpux_frame_base_before_sigtramp)
9855 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9856
9857 2004-04-03 Andrew Cagney <cagney@redhat.com>
9858
9859 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9860
9861 2004-04-02 Andrew Cagney <cagney@redhat.com>
9862
9863 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9864 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9865 * dummy-frame.h: Delete out-of-date comments.
9866 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9867 * gdbarch.h, gdbarch.c: Re-generate.
9868
9869 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9870
9871 Committed by Andrew Cagney <cagney@redhat.com>.
9872 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9873 into account an instruction saving a register if we have already
9874 seen an earlier instruction saving that same register.
9875
9876 2004-04-02 Andrew Cagney <cagney@redhat.com>
9877
9878 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9879 * gdbarch.h, gdbarch.c: Re-generate.
9880 * frame.c (legacy_get_prev_frame): Delete references to
9881 DEPRECATED_INIT_FRAME_PC_FIRST.
9882
9883 * infrun.c (pc_in_sigtramp): Delete function.
9884 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9885 get_frame_type.
9886
9887 2004-04-02 Andrew Cagney <cagney@redhat.com>
9888
9889 * infrun.c (handle_step_into_function): Delete code conditional on
9890 legacy_frame_p.
9891 (handle_inferior_event, step_over_function): Ditto.
9892
9893 2004-04-02 Andrew Cagney <cagney@redhat.com>
9894
9895 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9896 "previous frame inner to this frame" test.
9897
9898 2004-04-02 Andrew Cagney <cagney@redhat.com>
9899
9900 * frame.c (safe_frame_unwind_memory): New function.
9901 * frame.h (safe_frame_unwind_memory): Declare. Update description
9902 of /safe_/ methods.
9903 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9904 "next_frame". Use safe_frame_unwind_memory.
9905 (tramp_frame_sniffer): Update call to tramp_frame_start.
9906
9907 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9908
9909 * dwarf2read.c (dwarf2_objfile_data_key): New.
9910 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9911 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9912 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9913 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9914 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9915 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9916 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9917 Remove variables.
9918 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9919 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9920 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9921 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9922 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9923 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9924 Remove macros.
9925 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9926 data.
9927 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9928 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9929 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9930 (read_partial_die, read_full_die, read_indirect_string)
9931 (dwarf_decode_line_header, dwarf_decode_macros)
9932 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9933 Update uses of removed variables.
9934 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9935 of removed macros.
9936 (_initialize_dwarf2_read): New function.
9937 * symfile.h (dwarf2_has_info): Update prototype.
9938 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9939 * elfread.c (elf_symfile_read): Likewise.
9940
9941 2004-04-01 Jim Blandy <jimb@redhat.com>
9942
9943 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9944 function for register numbers on all the rs6000-derived targets.
9945 (rs6000_gdbarch_init): Don't register a separate
9946 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9947 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9948 variants.
9949
9950 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9951 numbering.
9952
9953 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9954
9955 * valarith.c: Update copyright notice.
9956 (value_add): Handle range types.
9957 (value_sub): Ditto.
9958 (value_equal): Ditto.
9959 (value_less): Ditto.
9960 (value_neg): Ditto.
9961 (value_complement): Ditto.
9962 (value_binop): Simplify slightly by using is_integral_type and
9963 eliminiating unnecessary COERCE_ENUMs.
9964
9965 2004-03-31 Andrew Cagney <cagney@redhat.com>
9966
9967 * frame.h (frame_unwind_id): Declare.
9968 * frame.c (frame_unwind_id): New function.
9969 (get_prev_frame_1): New function.
9970 (frame_debug_got_null_frame): New function.
9971 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9972 code proper to prev_frame, update description.
9973 * infrun.c (step_over_function): Use frame_unwind_id.
9974
9975 2004-04-31 J. Brobecker <brobecker@gnat.com>
9976
9977 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9978 (hppa64_push_dummy_call): Likewise.
9979
9980 2004-03-30 Jim Blandy <jimb@redhat.com>
9981
9982 From Ulrich Weigand:
9983 * utils.c (query): Do not use a va_list variable multiple times.
9984
9985 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * Makefile.in (linux_nat_h): Update dependencies.
9988 * configure.in: Check for <gnu/libc-version.h>.
9989 * configure: Regenerate.
9990 * config.in: Regenerate.
9991 * linux-nat.h: Include "target.h". Add waitstatus field to
9992 struct lwp_info.
9993 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9994 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9995 to.
9996 (lin_lwp_handle_extended): New function. Handle clone events.
9997 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9998 thread exit events.
9999 (child_wait): Handle clone events.
10000 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10001 * linux-nat.c (linux_enable_event_reporting): Turn on
10002 PTRACE_O_TRACECLONE.
10003 (linux_handle_extended_wait): Handle clone events.
10004 * thread-db.c: Include <gnu/libc-version.h>.
10005 (struct private_thread_info): Add dying flag.
10006 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10007 higher.
10008 (attach_thread): Update comments. Handle dying threads.
10009 (detach_thread): Set the dying flag.
10010 (check_event): Always call attach_thread.
10011
10012 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10013
10014 * mips-tdep.c (mips_pdr_data): New.
10015 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10016 (_initialize_mips_tdep): Initialize mips_pdr_data.
10017
10018 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10019
10020 * minsyms.c (install_minimal_symbols): Move dropping leading
10021 char from linkage name from here...
10022 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10023 test for "__gnu_compiled*" symbols.
10024
10025 2004-03-28 Jim Blandy <jimb@redhat.com>
10026
10027 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10028 registers to temp register r0 and byte stores as prologue
10029 instructions.
10030
10031 2004-03-28 Andrew Cagney <cagney@redhat.com>
10032
10033 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10034 arm*-*-*.
10035
10036 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10037
10038 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10039 and switch the layout to force a display of register window.
10040
10041 2004-02-26 J. Brobecker <brobecker@gnat.com>
10042
10043 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10044 of the INTEGER class.
10045
10046 2004-03-26 Jim Blandy <jimb@redhat.com>
10047
10048 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10049 bytes long on PPC GNU/Linux.
10050
10051 2004-03-26 David Carlton <carlton@kealia.com>
10052
10053 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10054
10055 2004-03-25 Andrew Cagney <cagney@redhat.com>
10056
10057 * PROBLEMS: Add general section titles, remove references to
10058 specific releases.
10059
10060 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10061
10062 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10063 INT_REGISTER_SIZE.
10064 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10065 FP_REGISTER_VIRTUAL_SIZE.
10066 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10067 of DEPRECATED_REGISTER_RAW_SIZE.
10068 (arm_register_type): Add gdbarch argument.
10069 (arm_register_raw_size, arm_register_virtual_size): Delete.
10070 (arm_register_byte, arm_extract_return_value)
10071 (arm_store_return_value, arm_get_longjmp_target): Update references
10072 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10073 (arm_gdbarch_init): Likewise. Don't set
10074 deprecated_register_raw_size, deprecated_register_virtual_size,
10075 deprecated_max_register_raw_size,
10076 deprecated_max_register_virtual_size, or
10077 deprecated_max_register_virtual_type. Do set register_type.
10078 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10079 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10080 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10081 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10082 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10083 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10084 INT_REGISTER_SIZE.
10085 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10086 (remote_rdp_store_register): Likewise.
10087
10088 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10091 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10092 to after osabi initialization.
10093 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10094 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10095 functions.
10096 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10097 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10098 variables.
10099 (mips_linux_init_abi): Append signal trampoline unwinders.
10100
10101 2004-03-24 Andrew Cagney <cagney@redhat.com>
10102
10103 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10104 * tramp-frame.c: Include "gdb_assert.h".
10105 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10106 correct sizeof.
10107 (tramp_frame_append): Validate the tramp frame's instructions.
10108 * Makefile.in (tramp-frame.o): Update dependencies.
10109
10110 2004-03-23 Andrew Cagney <cagney@redhat.com>
10111
10112 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10113
10114 2004-03-23 Andrew Cagney <cagney@redhat.com>
10115
10116 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10117 Nasser as past testsuite/lib/ (and other) maintainers.
10118
10119 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10120
10121 * infcmd.c (attach_command): Reread symbols if we already have
10122 an exec file.
10123
10124 2004-03-23 Andrew Cagney <cagney@redhat.com>
10125
10126 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10127
10128 2004-03-23 Andrew Cagney <cagney@redhat.com>
10129
10130 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10131 * gdbarch.h, gdbarch.c: Re-generate.
10132 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10133 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10134 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10135 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10136 (DEPRECATED_SIGTRAMP_START): Update.
10137 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10138 (DEPRECATED_SIGTRAMP_START): Update.
10139 * blockframe.c (find_pc_sect_partial_function): Update.
10140 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10141
10142 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10145 if necessary.
10146
10147 2004-03-23 Andrew Cagney <cagney@redhat.com>
10148
10149 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10150 predicate, deprecate.
10151 * gdbarch.h, gdbarch.c: Re-generate.
10152 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10153 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10154 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10155 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10156 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10157 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10158 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10159 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10160 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10161 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10162 * blockframe.c (find_pc_partial_function): Update.
10163 * breakpoint.c (bpstat_what): Update.
10164 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10165 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10166 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10167 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10168 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10169 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10170 * i386-nto-tdep.c (i386nto_init_abi): Update.
10171 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10172 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10173 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10174 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10175 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10176 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10177 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10178 * infrun.c (pc_in_sigtramp): Update.
10179 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10180 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10181 * mips-tdep.c (mips_gdbarch_init): Update.
10182 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10183 * ppc-linux-tdep.c: Update comment.
10184 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10185 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10186 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10187 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10188 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10189 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10190 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10191 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10192 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10193 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10194
10195 2004-03-23 Andrew Cagney <cagney@redhat.com>
10196
10197 * tramp-frame.h, tramp-frame.h: New files.
10198 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10199 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10200
10201 * Makefile.in: Update all dependencies.
10202
10203 2004-03-23 Andrew Cagney <cagney@redhat.com>
10204
10205 * Makefile.in (trad_frame_h): Add $(frame_h).
10206 * trad-frame.h: Update copyright. Include "frame.h".
10207 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10208 (trad_frame_set_id, trad_frame_get_id): Declare.
10209 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10210 * trad-frame.c: Update copyright.
10211 (struct trad_frame_cache): Define.
10212 (trad_frame_cache_zalloc): New function.
10213 (trad_frame_set_id, trad_frame_get_id): New functions.
10214 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10215
10216 2004-03-22 Andrew Cagney <cagney@redhat.com>
10217
10218 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10219 s390_pltstub_unwind_cache.
10220 (s390_stub_frame_unwind_cache): Rename
10221 s390_pltstub_frame_unwind_cache.
10222 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10223 (s390_stub_frame_prev_register): Rename
10224 s390_pltstub_frame_prev_register.
10225 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10226 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10227
10228 From Ulrich Weigand:
10229 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10230 pointer calls like PLT calls.
10231
10232 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10233
10234 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10235 PC rather than the partial function start address. Use the start
10236 address to sanity check the found PDR.
10237
10238 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10239
10240 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10241 linux_handle_extended_wait.
10242
10243 2004-03-22 Andrew Cagney <cagney@redhat.com>
10244
10245 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10246 function.
10247
10248 * frame.h (generic_pop_current_frame): Delete declaration.
10249 (deprecate_pop_dummy_frame): Deprecate
10250 generic_pop_dummy_frame.
10251 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10252 (generic_pop_current_frame): Delete function.
10253 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10254 generic_pop_current_frame.
10255 * v850-tdep.c (v850_pop_frame): Update.
10256 * mcore-tdep.c (mcore_pop_frame): Update.
10257 * sh64-tdep.c (sh64_pop_frame): Update.
10258 * h8300-tdep.c (h8300_pop_frame): Update.
10259
10260 2004-03-22 Andrew Cagney <cagney@redhat.com>
10261
10262 * frame.h (deprecated_pc_in_call_dummy): Rename
10263 generic_pc_in_call_dummy.
10264 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10265 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10266 generic_pc_in_call_dummy.
10267 (pc_in_dummy_frame): Make static.
10268 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10269 * gdbarch.h, gdbarch.c: Re-generate.
10270 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10271 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10272 (legacy_get_prev_frame): Ditto.
10273 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10274 comment.
10275
10276 2004-03-21 Andrew Cagney <cagney@redhat.com>
10277
10278 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10279 declaration and out-of-date comment.
10280 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10281 Delete function.
10282 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10283 deprecated_pc_in_call_dummy.
10284
10285 * infrun.c (handle_inferior_event): For non legacy frames, use the
10286 frame ID and frame type to identify a signal trampoline. Update
10287 comments.
10288
10289 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10290
10291 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10292 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10293
10294 2004-03-21 Andrew Cagney <cagney@redhat.com>
10295
10296 * frame-unwind.h: Update copyright.
10297 (struct frame_data): Add opaque declaration.
10298 (frame_sniffer_ftype): Declare.
10299 (struct frame_unwind): Add "unwind_data" and "sniffer".
10300 (frame_unwind_register_unwinder): Declare.
10301 (frame_unwind_find_by_frame): Add parameter "this_cache".
10302 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10303 (legacy_get_prev_frame, legacy_get_prev_frame)
10304 (get_frame_type): Pass the prologue_cache to
10305 frame_unwind_find_by_frame.
10306 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10307 "unwinder".
10308 (frame_unwind_register_unwinder): New function.
10309 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10310
10311 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10312
10313 * bcache.c (print_percentage): Use floating point to avoid
10314 incorrect results when portion*100 overflows.
10315
10316 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10317
10318 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10319 (ppc_linux_init_extra_frame_info)
10320 (ppc_linux_frameless_function_invocation)
10321 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10322 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10323 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10324 (rs6000_frame_chain): Delete declarations.
10325 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10326 (ppc_linux_init_extra_frame_info)
10327 (ppc_linux_frameless_function_invocation)
10328 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10329 (ppc_linux_init_abi): Remove registration of above deleted functions.
10330 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10331 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10332 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10333 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10334 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10335 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10336 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10337 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10338 frame management for all OSABIs.
10339
10340 2004-03-19 Andrew Cagney <cagney@redhat.com>
10341
10342 Committed by Kevin Buettner <kevinb@redhat.com>.
10343
10344 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10345 Update copyright.
10346 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10347 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10348 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10349 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10350 unwinders. #ifdef legacy frame code.
10351 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10352 "frame-base.h".
10353 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10354 (struct rs6000_frame_cache, rs6000_frame_cache)
10355 (rs6000_frame_this_id, rs6000_frame_prev_register)
10356 (rs6000_frame_sniffer, rs6000_frame_unwind)
10357 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10358 (rs6000_frame_base): Implement a traditional frame unwinder.
10359 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10360 frame unwinder.
10361
10362 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10363
10364 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10365 breakpoint address for watchpoints or the catch eventpoints.
10366 Add new paramter ``bptype''. Adjust all callers.
10367
10368 2004-03-19 Andrew Cagney <cagney@redhat.com>
10369
10370 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10371
10372 * PROBLEMS: Delete note that ARM does not use frame code, problem
10373 fixed.
10374
10375 2004-03-18 Andrew Cagney <cagney@redhat.com>
10376
10377 * stack.c (return_command): Delete code wrapped in #ifdef
10378 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10379
10380 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10381
10382 2004-03-18 Andrew Cagney <cagney@redhat.com>
10383
10384 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10385 DEPRECATED_IN_SIGTRAMP.
10386 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10387 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10388 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10389 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10390 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10391 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10392 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10393 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10394 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10395 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10396
10397 2004-03-18 Andrew Cagney <cagney@redhat.com>
10398
10399 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10400 (struct frame_base_table_entry): Define.
10401 (struct frame_base_table): Re-implement as a linked list.
10402 (frame_base_init): Re-implement.
10403 (frame_base_table): Delete function.
10404 (append_predicate): Delete function.
10405 (frame_base_append_sniffer): Update.
10406 (frame_base_set_default): Update.
10407 (frame_base_find_by_frame): Update.
10408 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10409 * Makefile.in (frame-base.o): Update dependencies.
10410
10411 2004-03-17 Andrew Cagney <cagney@redhat.com>
10412
10413 * frame.c (legacy_get_prev_frame): Pass correct frame to
10414 frame_unwind_find_by_frame.
10415
10416 2004-03-17 David Carlton <carlton@kealia.com>
10417
10418 * NEWS: Mention C++ nested types and namespaces
10419
10420 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10421
10422 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10423 and "Regressions since gdb 5.3.". Add known regressions since
10424 gdb 6.0.
10425
10426 2004-03-16 David Carlton <carlton@kealia.com>
10427
10428 * dwarf2read.c (process_structure_scope): Process children even
10429 when we're a declaration.
10430
10431 2004-03-16 Andrew Cagney <cagney@redhat.com>
10432
10433 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10434 * blockframe.c (find_pc_partial_function)
10435 (find_pc_sect_partial_function): Merge into a single
10436 find_pc_partial_function.
10437
10438 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10439
10440 * i386bsd-nat.c: s/regno/regnum/g.
10441 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10442 FP0_REGNUM.
10443 (store_inferior_registers): Likewise.
10444
10445 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10446
10447 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10448 of i387_fill_fsave.
10449 (store_inferior_registers): Call i387_collect_fsave and
10450 i387_collect_fxsave instead of i387_fill_fsave and
10451 i387_fill_fxsave.
10452
10453 2004-03-15 Andrew Cagney <cagney@redhat.com>
10454
10455 * Makefile.in (frame-unwind.o): Update dependencies.
10456 * frame-unwind.c: Include "gdb_obstack.h".
10457 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10458 parameter.
10459 (append_predicate): Delete function.
10460 (struct frame_unwind_table_entry): New structure.
10461 (struct frame_unwind_table): Replace "sniffer" with "head" and
10462 "tail".
10463 (frame_unwind_append_sniffer): Update.
10464 (frame_unwind_find_by_frame): Update.
10465 (_initialize_frame_unwind): Registe frame_unwind_init using
10466 gdbarch_data_register_pre_init.
10467
10468 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10469
10470 * i386bsd-nat.c: Update copyright year.
10471 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10472 define unconditionally.
10473
10474 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10475
10476 * i387-tdep.h (i387_collect_fsave): New prototype.
10477 * i387-tdep.c (i387_collect_fsave): New function containing most
10478 of the code from i387_fill_fsave.
10479 (i387_fill_fsave): Call i387_collect_fsave.
10480
10481 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10482
10483 * i386-linux-tdep.c: Update copyright year.
10484 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10485 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10486 svr4_ilp32_link_map_offsets instead of
10487 i386_linux_svr4_fetch_link_map_offsets.
10488
10489 2004-03-15 David Carlton <carlton@kealia.com>
10490
10491 Fix for PR c++/1553:
10492 * dwarf2read.c (read_structure_type): Determine type name by
10493 calling determine_class_name.
10494 (determine_class_name): New.
10495 (determine_prefix): Look at TYPE_TAG_NAME and call
10496 determine_class_name when appropriate.
10497 (determine_prefix_aux, class_name): Delete.
10498 (read_namespace): Set die->type.
10499
10500 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10501
10502 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10503 unused macro definition. The definition in target.h (or perhaps
10504 elsewhere) takes precedence.
10505
10506 2004-03-15 Andrew Cagney <cagney@redhat.com>
10507
10508 * ppc-tdep.h: Update copyright.
10509 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10510 function signatures to match "regsets.h".
10511 * ppc-linux-tdep.c: Include "regset.h".
10512 (ELF_GREGSET_SIZE): Delete.
10513 (right_supply_register): New function.
10514 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10515 using right_supply_register.
10516 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10517 functions.
10518 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10519 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10520 (_initialize_ppc_linux_tdep): Do not register
10521 ppc_linux_regset_core_fns.
10522 (ppc_linux_regset_from_core_section): Replace
10523 fetch_core_registers.
10524 (ppc_linux_regset_core_fns): Delete.
10525 * ppc-linux-nat.c: (right_fill_reg): New function.
10526 (supply_gregset): Update call to ppc_linux_supply_gregset.
10527 (fill_gregset): Clear the register set, use right_fill_reg.
10528 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10529 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10530
10531 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10532 unsigned.
10533
10534 2004-03-15 Andrew Cagney <cagney@redhat.com>
10535
10536 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10537 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10538 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10539 and register_gdbarch_data.
10540 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10541 (struct gdbarch_data): Replace "init" by "pre_init" and
10542 "post_init".
10543 * gdbarch.h, gdbarch.c: Re-generate.
10544 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10545 with"obstack", use OBSTACK_ZALLOC.
10546 (dwarf2_frame_ops): Delete.
10547 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10548 (dwarf2_frame_init_reg): Use gdbarch_data.
10549 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10550 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10551 (_initialize_svr4_solib): Update.
10552 * user-regs.c (_initialize_user_regs): Update.
10553 * reggroups.c (_initialize_reggroup): Update.
10554 * regcache.c (_initialize_regcache): Update.
10555 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10556 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10557 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10558 * frame-unwind.c (_initialize_frame_unwind): Update.
10559 * frame-base.c (_initialize_frame_base): Update.
10560 * user-regs.c (user_reg_add): Update.
10561 * reggroups.c (reggroup_add): Update.
10562 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10563 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10564 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10565 * frame-base.c (frame_base_table): Update.
10566 * remote.c (_initialize_remote): Update.
10567 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10568
10569 2004-03-15 Andrew Cagney <cagney@redhat.com>
10570
10571 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10572
10573 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10574
10575 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10576 * frv-linux-tdep.c: New file.
10577 * frv-tdep.c (struct gdbarch_tdep): Add new field
10578 ``sigcontext_reg_addr''.
10579 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10580 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10581 (frv_sigramp_frame_sniffer): New functions.
10582 (frv_sigtramp_frame_unwind): New static global.
10583 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10584 sniffers.
10585 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10586 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10587
10588 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10589
10590 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10591 but not via a call to error(), when unable to read memory.
10592
10593 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10594
10595 * frv-tdep.c (frv_call_dummy_words): Delete.
10596 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10597
10598 2004-03-15 Andrew Cagney <cagney@redhat.com>
10599
10600 * infrun.c (handle_step_into_function, step_over_function): Only
10601 update and use STEP_FRAME_ID when the system is using legacy
10602 frames. Update comments.
10603
10604 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10605
10606 * amd64-linux-tdep.h: Remove file.
10607 * amd64-linux-tdep.c: Don't include "inferior.h" and
10608 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10609 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10610 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10611 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10612 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10613 macros.
10614 (user_to_gdb_regmap): Remove variable.
10615 (amd64_linux_gregset_reg_offset): New variable.
10616 (amd64_core_fns): Remove variable.
10617 (fetch_core_registers): Remove function.
10618 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10619 functions.
10620 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10621 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10622 * Makefile.in (amd64_linux_tdep_h): Remove.
10623 (amd64-linux-nat.o): Update dependencies.
10624 (amd64-linux-tdep.o): Update dependencies.
10625
10626 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10627 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10628 functions.
10629 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10630
10631 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10632 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10633
10634 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10635
10636 * dwarf2read.c (read_structure_type): Rename from
10637 read_structure_scope. Don't create a symbol or call process_die.
10638 Return immediately if die->type is set. Call read_type_die before
10639 dwarf2_add_member_fn.
10640 (process_structure_scope): New function.
10641 (read_enumeration_type, process_enumeration_scope): New functions,
10642 broken out from read_enumeration. Don't create the enumeration
10643 type if it has already been created.
10644 (read_enumeration): Removed.
10645 (process_die): Call read_structure_type, process_structure_scope,
10646 read_enumeration_type, and process_enumeration_scope. Just call
10647 new_symbol for base and subrange types. Add a comment about other
10648 type dies.
10649 (read_type_die): Call read_enumeration_type.
10650 (add_partial_structure, new_symbol): Update comments.
10651
10652 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10653
10654 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10655
10656 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10657
10658 * tui/tui-win.h (tui_get_cmd_list): Declare.
10659 * tui/tui-win.c (tui_command): New function.
10660 (tui_get_cmd_list): New function.
10661 (_initialize_tui_win): Moved initialization of tui command in
10662 tui_get_cmd_list.
10663
10664 * tui/tui-data.c (init_content_element): Setup new data members.
10665 (init_win_info): Likewise.
10666 (free_content_elements): Free it.
10667 * tui/tui-data.h (struct tui_data_element): Store the register
10668 content to print.
10669 (struct tui_data_info): Keep the current register group.
10670
10671 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10672
10673 * tui/tui-regs.h (tui_show_registers): Update prototype.
10674 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10675 (tui_resize_all): No need to calculate anything for register window.
10676 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10677 (tui_set_register_element, tui_set_general_regs_content): Remove.
10678 (tui_set_special_regs_content): Remove.
10679 (tui_set_general_and_special_regs_content): Remove.
10680 (tui_set_float_regs_content): Remove.
10681 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10682 (tui_set_regs_content): Remove.
10683 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10684 (tui_v_show_registers_command_support): Remove.
10685 (tui_show_registers): Use a reggroup to specify the registers to show.
10686 (tui_show_register_group): New function.
10687 (tui_display_registers_from): Compute the layout of register window
10688 and refresh with new API; be sure to delete old register windows.
10689 (tui_check_register_values): Update to use tui_get_register and
10690 tui_display_data.
10691 (tui_display_register): Just refresh the register window part.
10692 (tui_register_format): Format registers and save in tui_data_element.
10693 (tui_get_register): New to combine tui_reg_value_has_changed and
10694 tui_get_register_raw_value; fix to use the new gdb API.
10695 (tui_show_float_command): Renamed tui_reg_float_command.
10696 (tui_show_general_command): Renamed tui_reg_general_command.
10697 (tui_show_special_command): Renamed tui_reg_system_command.
10698 (_initialize_tui_regs): Remove unused commands.
10699
10700 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10701
10702 * NEWS (New native configurations): Mention OpenBSD/amd64.
10703
10704 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10705 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10706 Remove defines.
10707 * config/i386/nm-fbsd64.h: Likewise.
10708 * config/i386/nm-obsd.h: Likewise.
10709 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10710 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10711
10712 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10713
10714 * frv-tdep.c (set_variant_scratch_registers): New function.
10715 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10716 New constants.
10717
10718 From Richard Sandiford <rsandifo@redhat.com>:
10719 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10720
10721 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10722
10723 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10724 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10725 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10726 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10727 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10728 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10729 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10730 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10731 definitions from frv-tdep.c to frv-tdep.h.
10732
10733 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10734
10735 Add shared library support for FR-V FDPIC ABI:
10736 * Makefile.in (solib-frv.o): Add dependencies.
10737 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10738 New functions.
10739 (frv_push_dummy_call): Add support for FDPIC ABI.
10740 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10741 for FDPIC ABI.
10742 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10743 (frv_fdpic_find_canonical_descriptor): Declare.
10744 * solib-frv.c: New file.
10745 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10746 * config/frv/tm-frv.h (solib.h): Include.
10747
10748 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10749
10750 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10751 (frv-tdep.o): Update dependencies.
10752 * frv-tdep.h: New file.
10753 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10754 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10755 constants.
10756 (struct gdbarch_tdep): Add new member ``frv_abi''.
10757 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10758 functions.
10759 (new_variant): Set ``frv_abi'' field.
10760 (gdb_arch_init): Detect FDPIC executables.
10761
10762 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10763
10764 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10765 wrapper.
10766
10767 2004-03-11 Andrew Cagney <cagney@redhat.com>
10768
10769 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10770
10771 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10772
10773 * solist.h (master_so_list): New function.
10774 * solib.c (master_so_list): Likewise.
10775 * solib-svr4.c (enable_break): Iterate over so_list entries
10776 obtained from master list instead of entries obtained directly
10777 via svr4_current_sos().
10778
10779 2004-03-10 Ben Elliston <bje@gnu.org>
10780
10781 * MAINTAINERS: Update my mail address.
10782
10783 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10784
10785 * remote-m32r-sdi.c: Support hardware watchpoint.
10786
10787 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * user-regs.c: Update copyright years.
10790 (struct user_regs): Rename to gdb_user_regs.
10791 (append_user_reg, builtin_user_regs, user_regs_init)
10792 (user_reg_add, user_reg_map_name_to_regnum)
10793 (usernum_to_user_reg): Update.
10794
10795 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10796
10797 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10798 (skip_children): New functions.
10799 (locate_pdi_sibling): Call skip_children.
10800
10801 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10804 * gdbtypes.c (check_typedef): Update comments.
10805
10806 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10807
10808 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10809 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10810 pointer. Update comment about comp_unit_head.
10811 (struct abbrev_info): Shorten two int flags.
10812 (dwarf_alloc_abbrev): Take a CU argument.
10813 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10814 each time through the loop. Update cleanup argument.
10815 (psymtab_to_symtab_1): Update cleanup call.
10816 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10817 abbrev_obstack.
10818 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10819 Just call obstack_free and clear the pointer.
10820
10821 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10822
10823 * infrun.c (handle_inferior_event): Remove short-circuit code for
10824 events in a different thread.
10825
10826 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10827
10828 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10829 print the whole transfer.
10830 (initialize_targets): Update description of "set debug target".
10831
10832 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10833
10834 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10835
10836 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10837
10838 * MAINTAINERS (write after approval): Add myself.
10839
10840 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10841
10842 * sh-tdep.c (sh_print_registers_info): Use for loop.
10843 Don't skip multiple registers when a float register is encountered.
10844
10845 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10846
10847 Fix PR tdep/1291.
10848 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10849 to official SH documentation.
10850
10851 2004-03-07 Andrew Cagney <cagney@redhat.com>
10852
10853 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10854 unused function.
10855
10856 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10859 (arm_get_next_pc): Handle BX and BLX.
10860
10861 2004-03-07 Andrew Cagney <cagney@redhat.com>
10862
10863 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10864 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10865 HPPA_SP_REGNUM.
10866 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10867 (hppa_target_read_fp): Delete.
10868 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10869 register_virtual_size, max_register_raw_size,
10870 max_register_virtual_size, register_byte, register_size,
10871 target_read_fp, fp_regnum, and register_bytes. Set register_type
10872 instead of register_virtual_type.
10873 (hppa32_register_type, hppa64_register_type): Replace
10874 hppa32_register_virtual_type and hppa64_register_virtual_type.
10875 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10876 (HPPA_FP_REGNUM): Define.
10877
10878 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10879
10880 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10881 (pa_do_registers_info): Delete.
10882 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10883 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10884 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10885
10886 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10887 GDB_TARGET_IS_HPPA code.
10888 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10889 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10890 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10891 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10892 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10893 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10894 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10895 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10896 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10897 (hppa_frameless_function_invocation, hppa64_store_return_value)
10898 (hppa_store_struct_return, hppa64_extract_return_value)
10899 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10900 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10901 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10902 (find_proc_framesize, deposit_21, restore_pc_queue)
10903 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10904 (rp_saved, pc_in_linker_stub): Delete.
10905
10906 Unconditionally enable 64-bit frame and ABI code.
10907 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10908 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10909 push_dummy_frame, fix_call_dummy, push_arguments,
10910 call_dummy_location, extract_return_value, use_struct_convention,
10911 store_return_value, store_struct_return, saved_pc_after_call,
10912 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10913 frame_chain, frame_chain_valid, frameless_function_invocation,
10914 frame_saved_pc, and pop_frame.
10915
10916 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10917 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10918 (hppa_gdbarch_init): Do not set PC_REGNUM.
10919
10920 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10921
10922 * config/alpha/tm-fbsd.h: Remove file.
10923 * config/alpha/fbsd.mt: Tweak comment.
10924 (TM_FILE): Set to tm-alpha.h.
10925
10926 2004-03-05 Andrew Cagney <cagney@redhat.com>
10927
10928 * infrun.c (step_over_function): When non-legacy code, and no
10929 step_frame_id, use the unwinder to get the caller's frame ID.
10930
10931 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10932
10933 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10934 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10935 bfd_arch_unknown. Adjust comment.
10936
10937 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10938 * i386obsd-tdep.c: Correct spelling in comment.
10939 * i386nbsd-tdep.c: Correct spelling in comment.
10940 * sparc-tdep.c: Correct spelling in comments.
10941
10942 2004-03-05 David Carlton <carlton@kealia.com>
10943
10944 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10945 bug.
10946
10947 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10948
10949 * sparc-tdep.c: Fix typo in comment.
10950
10951 2004-03-04 J. Brobecker <brobecker@gnat.com>
10952
10953 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10954
10955 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10956
10957 * dwarf2read.c: Add comment describing memory lifetimes.
10958 (struct dwarf2_pinfo): Update comment.
10959 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10960 (read_enumeration, new_symbol): Don't use obsavestring.
10961
10962 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10963
10964 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10965 instead of amd64_fill_fxsave.
10966 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10967 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10968
10969 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10970 Reorganize code a bit.
10971
10972 2004-03-04 Orjan Friberg <orjanf@axis.com>
10973
10974 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10975 when the frame pointer is pushed. Don't set the frame pointer's
10976 address on the stack unless it's actually located there.
10977 Set the SRP's address on the stack correctly when the PC is still in
10978 the prologue.
10979 (cris_return_value): New function.
10980 (cris_gdbarch_init): Clear deprecated store_return_value,
10981 extract_return_value.
10982
10983 2004-03-02 Jim Blandy <jimb@redhat.com>
10984
10985 * stabsread.c (reg_value_complaint): The maximum register number
10986 is one less than the number of registers.
10987
10988 2004-03-02 Andrew Cagney <cagney@redhat.com>
10989
10990 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10991 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10992 trailing comma and redundant assignment of I386_ST0_REGNUM.
10993 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10994 32-bit segment registers.
10995
10996 2004-03-01 Andrew Cagney <cagney@redhat.com>
10997
10998 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10999 use frame_relative_level and get_next_frame.
11000
11001 2004-02-29 Andrew Cagney <cagney@redhat.com>
11002
11003 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11004 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11005 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11006 Delete macro.
11007
11008 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11009
11010 * inflow.c (terminal_inferior): Don't give up the terminal if we
11011 previously couldn't get the inferior's terminal state.
11012
11013 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11016 PC_REGNUM.
11017
11018 2004-02-28 Andrew Cagney <cagney@redhat.com>
11019
11020 * NEWS: Refer to GDB 6.1.
11021 * README: Refer to GDB 6.1.
11022 * PROBLEMS: Refer to GDB 6.1.
11023
11024 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * thread-db.c (disable_thread_signals): Remove unused function.
11027
11028 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11029
11030 * amd64-nat.c: Include "gdb_string.h".
11031 (amd64_collect_native_gregset): Zero-extend the 32-bit
11032 general-purpose registers and %eip.
11033
11034 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11035 * amd64-tdep.c (amd64_collect_fxsave): New function.
11036 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11037
11038 * i387-tdep.h: Update copyright year.
11039 (i387_collect_fxsave): New prototype.
11040 * i387-tdep.c: Update copyright year.
11041 (i387_collect_fxsave): New function containing most of the code
11042 from i387_fill_fxsave.
11043 (i387_fill_fxsave): Call i387_collect_fxsave.
11044
11045 2004-02-28 Andrew Cagney <cagney@redhat.com>
11046
11047 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11048 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11049
11050 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11051
11052 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11053
11054 2004-02-28 Andrew Cagney <cagney@redhat.com>
11055
11056 * utils.c: Use "", instead of <>, to include readline.
11057 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11058 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11059 * source.c, solib.c, exec.c, event-top.c: Ditto.
11060 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11061 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11062 * Makefile.in: Update all dependencies.
11063 (readline_tilde_h, readline_history_h): Define.
11064 (readline_headers): Delete.
11065
11066 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11067
11068 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11069 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11070 "config/i386/tm-lx64.h".
11071
11072 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11073 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11074 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11075
11076 2004-02-28 Andrew Cagney <cagney@redhat.com>
11077
11078 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11079
11080 * breakpoint.c (_initialize_breakpoint): Use
11081 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11082 Add help to show command.
11083
11084 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11085
11086 * i386-nat.c: Reformat to be closer to coding standards.
11087 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11088 `retval'. Make variables `align' and `size' local to while-loop.
11089 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11090 (_initialize_i386_nat): New prototype.
11091
11092 * tui/tui.c: Include <readline/readline.h> instead of
11093 "readline/readline.h". Include it after <term.h> and
11094 "gdb_curses.h".
11095
11096 2004-02-27 Andrew Cagney <cagney@redhat.com>
11097
11098 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11099 the new frame unwind code.
11100 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11101 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11102 PCOQ_HEAD_REGNUM.
11103
11104 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11105 "return_value" and "push_dummy_call".
11106 (hppa32_use_struct_convention): Delete unused function.
11107 (hppa32_store_return_value): Delete unused function.
11108 (hppa32_extract_return_value): Delete unused function.
11109 (hppa32_stack_align): Delete function.
11110
11111 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11112
11113 * coffread.c (enter_linenos): Don't let rawptr reference memory
11114 outside linetab[]'s limits.
11115
11116 2004-02-27 Andrew Cagney <cagney@redhat.com>
11117
11118 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11119 inferior stack space - the stack needs to grow upwards.
11120 (hppa32_frame_align): New function.
11121 (hppa64_frame_align): Replace hppa_frame_align.
11122 (hppa_gdbarch_init): Update.
11123
11124 2004-02-26 Orjan Friberg <orjanf@axis.com>
11125
11126 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11127 (dwarf2-frame.h): Include.
11128 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11129 Remove static variables related to ABI setting.
11130 (struct gdbarch_tdep): Remove cris_abi member.
11131 (struct frame_extra_info): Remove.
11132 (cris_unwind_cache, stack_item): New structs.
11133 (cris_frame_unwind, cris_frame_base): New variables.
11134 (push_stack_item, pop_stack_item)
11135 (cris_frame_unwind_cache, cris_frame_this_id)
11136 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11137 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11138 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11139 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11140 (cris_reg_struct_has_addr): New functions.
11141 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11142 (cris_frame_saved_pc, cris_saved_pc_after_call,
11143 (cris_store_struct_return, cris_frameless_function_invocation)
11144 (cris_pop_frame, cris_skip_prologue_main)
11145 (cris_abi_original_store_return_value)
11146 (cris_abi_v2_store_return_value)
11147 (cris_abi_original_extract_return_value)
11148 (cris_abi_v2_extract_return_value)
11149 (cris_abi_original_reg_struct_has_addr)
11150 (cris_abi_v2_reg_struct_has_addr)
11151 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11152 (cris_push_return_address, cris_abi_update): Remove.
11153 (_initialize_cris_tdep): Remove ABI command.
11154 (cris_dump_tdep): Ditto.
11155 (cris_gdbarch_init): Remove ABI command.
11156 Set store_return_value, extract_return_value, push_dummy_code,
11157 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11158 frame_unwind_append_sniffer, frame_base_set_default.
11159 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11160 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11161 sizeof_call_dummy_words, get_saved_register, push_return_address,
11162 pop_frame, store_struct_return, frame_init_saved_regs,
11163 init_extra_frame_info, frameless_function_invocation, frame_chain,
11164 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11165 dummy_write_sp.
11166
11167 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11168
11169 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11170 * valprint.c (print_hex_chars): Change from static to external.
11171 (print_char_chars): New function.
11172 * printcmd.c (print_scalar_formatted): For integer and enum types
11173 that are longer than LONGEST, perform processing via appropriate
11174 print_*_chars routines.
11175
11176 2004-02-26 Andrew Cagney <cagney@redhat.com>
11177
11178 * Makefile.in: Update dependencies.
11179 Changes from Ulrich Weigand,
11180 * s390-tdep.c: Include "dwarf2-frame.h".
11181 (s390_dwarf2_frame_init_reg): New function.
11182 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11183 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11184
11185 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11186
11187 * breakpoint.c (pending_break_support): New setting variable.
11188 (break_command_1): Account for pending_break_support setting
11189 when creating pending breakpoints.
11190 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11191 (_initialize_breakpoint): Add "set breakpoint pending" and
11192 "show breakpoint pending" commands.
11193
11194 2004-02-26 Andrew Cagney <cagney@redhat.com>
11195
11196 Fix PR i18n/1570.
11197 * charset.c (backslashable, backslashed, represented): Remove 'e'
11198 from list of escaped characters, not part of ISO-C.
11199
11200 2004-02-25 J. Brobecker <brobecker@gnat.com>
11201
11202 From Peter Schauer <schauer@pdf.de>:
11203 * tui/tui.c: Move system header includes after local includes.
11204 Fixes a build failure on solaris systems.
11205
11206 2004-02-25 J. Brobecker <brobecker@gnat.com>
11207
11208 * configure.in: Refine the previous change.
11209 * configure: Regenerate.
11210
11211 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11212
11213 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11214 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11215 "amd64-tdep.h" instead of "x86-64-tdep.h".
11216 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11217 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11218 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11219 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11220 and "x86-64-tdep.c".
11221 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11222 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11223 and "x86-64-tdep.c".
11224 * amd64bsd-nat.c: Update copyright year.
11225 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11226 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11227 "x86-64-tdep.h".
11228 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11229 "x86-64-tdep.h".
11230 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11231 "x86-64-tdep.h".
11232 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11233 "x86-64-tdep.h".
11234 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11235 "x86-64-tdep.h".
11236 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11237 "x86-64-tdep.h".
11238 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11239 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11240 * Makefile.in (amd64_linux_tdep_h): Renamed from
11241 x86_64_linux_tdep_h.
11242 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11243 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11244 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11245 (amd64obsd-tdep.o): Update dependencies.
11246 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11247 dependencies.
11248 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11249 dependencies.
11250 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11251 amd64-linux-nat.c amd64-linux-tdep.c.
11252 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11253 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11254 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11255 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11256 amd64-tdep.o and amd64-linux-tdep.o.
11257 (TM_FILE): Set to tm-linux64.h.
11258 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11259 (NAT_FILE): Set to nm-linux64.h.
11260 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11261 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11262 amd64-tdep.o.
11263 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11264 amd64-tdep.o.
11265 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11266 amd64-tdep.o.
11267
11268 2004-02-25 Roland McGrath <roland@redhat.com>
11269
11270 * remote.c (remote_protocol_qPart_auxv): New variable.
11271 (init_all_packet_configs): Initialize it.
11272 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11273 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11274 (show_remote_cmd): Call it.
11275 (_initialize_remote): Initialize commands.
11276 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11277 service TARGET_OBJECT_AUXV requests.
11278
11279 2004-02-25 J. Brobecker <brobecker@gnat.com>
11280
11281 * configure.in: Make sure that the wborder function is available.
11282 Otherwise, search for it in the cur_colr library.
11283 * configure: Regenerate.
11284
11285 2004-02-25 Andrew Cagney <cagney@redhat.com>
11286
11287 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11288
11289 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11290
11291 * config/i386/tm-x86-64linux.h: Tweak comments.
11292
11293 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11294
11295 * MAINTAINERS: Add self to write-after-approval list.
11296
11297 2004-02-25 Andrew Cagney <cagney@redhat.com>
11298
11299 PR cli/1566. Problem found, and fix suggested by David Allan.
11300 * cli/cli-script.c (execute_control_command): Unconditionally
11301 install a cleanup. Default "ret" to "invalid_control". Use
11302 "break" instead of "return" to escape from the switch.
11303
11304 2004-02-24 J. Brobecker <brobecker@gnat.com>
11305
11306 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11307 with the lines macro defined in term.h on AiX.
11308 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11309 a collision with the label_width macro defined in term.h on AiX.
11310
11311 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11312
11313 Committed by Kevin Buettner <kevinb@redhat.com>.
11314
11315 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11316 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11317 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11318 instead of ia64_write_pc().
11319 * ia64-linux-tdep.c (regcache.h): Include.
11320 (ia64_linux_write_pc): New function.
11321
11322 2004-02-23 Roland McGrath <roland@redhat.com>
11323
11324 * auxv.c (info_auxv_command): Fix typos in error messages.
11325
11326 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11327
11328 * x86-64-tdep.h: Tweak comment.
11329 (enum amd64_regnum): New.
11330 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11331 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11332 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11333 (X86_64_XMM1_REGNUM): Removed.
11334 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11335 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11336 prototypes for renamed functions.
11337 * x86-64-tdep.c: Fix typo.
11338 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11339 register numbers.
11340 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11341 Use constants from `enum amd64_regnum' for register numbers.
11342 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11343 (amd64_analyze_prologue, amd64_frame_cache,
11344 amd64_sigtramp_frame_cache): Use constants from `enum
11345 amd64_regnum' for register numbers.
11346 (amd64_supply_fpregset): Adjust for renamed functions.
11347 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11348 `enum amd64_regnum' for register numbers.
11349 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11350 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11351 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11352 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11353 (amd64_linux_fill_gregset): Adjust for renamed macros.
11354 (fetch_core_registers): Adjust for renamed functions.
11355 (amd64_linux_init_abi): Adjust for renamed functions.
11356 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11357 renamed functions.
11358 * amd64-nat.c: Adjust for renamed macros.
11359 * amd64bsd-nat.c (fetch_inferior_registers)
11360 (store_inferior_registers): Use constants from `enum amd64_regnum'
11361 for register numbers. Adjust for renamed variables.
11362 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11363 renamed variables.
11364 (_initialize_amd64fbsd_nat): Use constants from `enum
11365 amd64_regnum' for register numbers.
11366 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11367 `enum amd64_regnum' for register numbers.
11368 (amd64fbsd_init_abi): Adjust for renamed functions.
11369 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11370 `enum amd64_regnum' for register numbers.
11371 (amd64nbsd_init_abi): Adjust for renamed functions.
11372 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11373 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11374 `enum amd64_regnum' for register numbers.
11375 (amd64obsd_init_abi): Adjust for renamed functions.
11376 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11377
11378 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11379
11380 * breakpoint.c (print_one_breakpoint): Do not output spaces
11381 after printing <PENDING> for a pending breakpoint.
11382
11383 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11384
11385 * printcmd.c (print_scalar_formatted): Initialize val_long
11386 to remove compiler warning message.
11387
11388 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11389
11390 * defs.h (nquery, yquery): New prototypes.
11391 * breakpoint.c (break_command_1): Use new nquery interface.
11392 * utils.c (defaulted_query, nquery, yquery): New functions.
11393
11394 2004-02-23 Andrew Cagney <cagney@redhat.com>
11395
11396 * hppa-tdep.c (hppa_frame_align): New function.
11397 (hppa32_push_dummy_call): New function.
11398 (hppa64_push_dummy_call): New function.
11399 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11400 disabled.
11401
11402 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11403 FIX_CALL_DUMMY when push_dummy_call is available.
11404 (call_function_by_hand, push_dummy_code): Ditto.
11405
11406 2004-02-22 Andrew Cagney <cagney@redhat.com>
11407
11408 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11409 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11410 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11411 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11412 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11413 call_dummy_location to ON_STACK.
11414
11415 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11416
11417 * x86-64-linux-tdep.c: Tweak comment.
11418 (amd64_linux_supply_gregset): Renamed from
11419 x86_64_linux_supply_gresget.
11420 (amd64_linux_fill_gregset): Renamed from
11421 x86_64_linux_fill_gregset.
11422 (fetch_core_registers): Adjust for renamed functions.
11423 (amd64_core_fns): Renamed from x86_64_core_fns.
11424 (amd64_linux_sigtramp_start): Renamed from
11425 x86_64_linux_sigtramp_start.
11426 (amd64_linux_pc_in_sigtramp): Renamed from
11427 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11428 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11429 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11430 (amd64_linux_sigcontext_addr): Renamed from
11431 x86_64_linux_sigcontext_addr.
11432 (amd64_linux_sc_reg_offset): Renamed from
11433 x86_64_linux_sc_reg_offset.
11434 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11435 Adjust for renamed functions and variables.
11436 (_initialize_amd64_linux_tdep): Renamed from
11437 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11438 variables.
11439 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11440 Adjust for renamed functions.
11441
11442 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11443 from x86_64_linux_gregset64_reg_offset.
11444 (amd64_linux_gregset32_reg_offset): Rename from
11445 x86_64_linux_gregset64_reg_offset.
11446 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11447 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11448 (amd64_linux_dr_set_control): Renamed from
11449 x86_64_linux_dr_set_control. Adjust for renamed functions.
11450 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11451 Adjust for renamed functions.
11452 (amd64_linux_dr_reset_addr): Renamed from
11453 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11454 (amd64_linux_dr_get_status): Renamed from
11455 x86_64_linux_dr_get_status. Adjust for renamed functions.
11456 (_initialize_amd64_linux_nat): Renamed from
11457 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11458 functions.
11459 * config/i386/nm-x86-64linux.h: Update copyright year.
11460 Adjust for renamed functions.
11461
11462 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11463 amd64fbsd_sigtramp_start.
11464 (amd64fbsd_sigtramp_end_addr): Renamed from
11465 amd64fbsd_sigtramp_end.
11466 (amd64fbsd_init_abi): Adjust for renamed variables.
11467 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11468 variables.
11469 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11470 amd64fbsd_sigtramp_start.
11471 (amd64fbsd_sigtramp_end_addr): Renamed from
11472 amd64fbsd_sigtramp_end.
11473
11474 2004-02-22 Andrew Cagney <cagney@redhat.com>
11475
11476 * hppa-tdep.c (hppa32_return_value): New function.
11477 (hppa64_return_value): New function.
11478 (hppa_gdbarch_init): Set return_value; keep disabled.
11479
11480 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11481 struct-return and inferior function call methods.
11482
11483 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11484 "frame-base.h".
11485 (struct hppa_frame_cache): Define.
11486 (hppa_frame_cache, hppa_frame_this_id): New functions.
11487 (hppa_frame_prev_register): New function.
11488 (hppa_frame_unwind, hppa_frame_base): New variables.
11489 (hppa_frame_unwind_sniffer): New function.
11490 (hppa_frame_base_address, hppa_unwind_pc): New function.
11491 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11492 sniffer, and frame base sniffer; keep disabled.
11493 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11494 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11495
11496 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11497 to predicates for "seriously old code".
11498
11499 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11500 runtime if(0).
11501
11502 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11503 unsigned.
11504 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11505
11506 * config/pa/tm-hppa.h: Update copyright.
11507 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11508 (deprecated_init_frame_pc_default): Delete declaration.
11509 (hppa_frame_init_saved_regs): Delete declaration.
11510 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11511 * hppa-tdep.c: Include "arch-utils.h".
11512 (hppa_gdbarch_init): Set deprecated init_frame_pc
11513 and deprecated frame_init_saved_regs.
11514 (hppa_frame_init_saved_regs): Make static.
11515
11516 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11517
11518 Remove old 386BSD support.
11519 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11520 * configure.host: Remove i[34567]86-*-bsd*.
11521 * configure.tgt: Remove i[34567]86-*-bsd*.
11522 * i386b-nat.c: Removed.
11523 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11524 (i386b-nat.o): Remove dependencies.
11525
11526 * config/i386/i386bsd.mh: Removed.
11527 * config/i386/i386bsd.mt: Removed.
11528 * config/i386/nm-i386bsd.h: Removed.
11529 * config/i386/tm-i386bsd.h: Removed.
11530 * config/i386/xm-i386bsd.h: Removed.
11531
11532 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11533
11534 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11535 (amd64fbsd_init_abi): Set link map offsets.
11536 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11537 (amd64nbsd_init_abi): Set link map offsets.
11538 * amd64obsd-tdep.c: Include "solib-svr4.h".
11539 (amd64obsd_init_abi): Set link map offsets.
11540 * i386fbsd-tdep.c: Include "solib-svr4.h".
11541 (i386fbsd_init_abi): Set link map offsets.
11542 * i386nbsd-tdep.c: Include "solib-svr4.h".
11543 (i386nbsdelf_init_abi): Set link map offsets.
11544 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11545 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11546 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11547 solib-legacy.o and core-aout.o. Reformat.
11548 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11549 solib-svr4.o, solib-legacy.o. Reformat.
11550 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11551 * config/i386/nbsdelf.mh: Reformat.
11552 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11553 solib-svr4.o, solib-legacy.o and corelow.o.
11554 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11555 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11556 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11557 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11558 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11559 (TM_FILE): Set to tm-fbsd.h.
11560 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11561 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11562 solib-svr4.o.
11563 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11564 solib-svr4.o.
11565 (TM_FILE): Set to nm-nbsd.h.
11566 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11567 Simplify shared library support. Don't include "elf/common.h".
11568 (SVR4_SHARED_LIBS): Don't define.
11569 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11570 "solib.h".
11571 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11572 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11573 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11574 Don't include "i386/tm-i386.h". Include "solib.h".
11575 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11576 Don't include "i386/tm-i386.h".
11577 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11578 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11579 Include "i386/xm-i386.h".
11580 (HOST_LONG_DOUBLE_FORMAT): Remove.
11581
11582 Fix OpenBSD/i386 sigtramp recognition.
11583 * i386-tdep.h: Update copyright year.
11584 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11585 (i386bsd_sigtramp_end): New prototypes.
11586 (i386fbsd_sigtramp_start_addr): Renamed from
11587 i386fbsd_sigtramp_start.
11588 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11589 (i386obsd_sigtramp_start_addr): Renamed from
11590 i386obsd_sigtramp_start.
11591 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11592 * i386bsd-tdep.c: Update copyright year.
11593 (i386bsd_pc_in_sigtramp): Make public.
11594 * i386fbsd-nat.c: Update copyright year.
11595 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11596 * i386fbsd-tdep.c: Update copyright year.
11597 (i386fbsd_sigtramp_start_addr): Renamed from
11598 i386fbsd_sigtramp_start.
11599 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11600 (i386fbsdaout_init_abi): Adjust for renamed variables.
11601 * i386obsd-nat.c: Update copyright year.
11602 (_initialize_i386obsd_nat): Adjust for renamed variables.
11603 * i386obsd-tdep.c: Include "target.h".
11604 (i386obsd_page_size): New variable.
11605 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11606 (i386obsd_sigtramp_end): New functions.
11607 (i386obsd_sigtramp_start_addr): Renamed from
11608 i386obsd_sigtramp_start.
11609 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11610 (i386obsd_init_abi): Adjust for renamed variables. Set
11611 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11612 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11613
11614 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11615 trampoline change in OpenBSD kernel.
11616
11617 * amd64-nat.c: Update copyright year.
11618 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11619 architecture from REGCACHE.
11620
11621 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11622 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11623
11624 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11625
11626 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11627 i[34567]86-*-openbsd3.[0-3].
11628 * config/i386/obsdaout.mh: New file.
11629
11630 * config/i386/obsd.mh (MH_FLAGS): Remove.
11631
11632 Fix PR build/1549.
11633 * i386obsd-tdep.c: Update copyright years. Include
11634 "solib-svr4.h".
11635 (i386obsd_init_abi): Don't set regset_from_core_section here.
11636 (i386obsd_aout_init_abi): New function. Set
11637 regset_from_core_section here.
11638 (i386obsd_elf_init_abi): New function.
11639 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11640 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11641 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11642 (TM_FILE): Set to tm-nbsd.h.
11643
11644 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11645 solib-sunos.o.
11646
11647 * solib-svr4.h: Update copyright year.
11648 (svr4_ilp32_fetch_link_map_offsets)
11649 (svr4_lp64_fetch_link_map_offsets): New prototype.
11650 * solib-svr4.c: Update copyright year.
11651 (svr4_ilp32_fetch_link_map_offsets)
11652 (svr4_lp64_fetch_link_map_offsets): New function.
11653
11654 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11655
11656 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11657 to the partial symbol table.
11658
11659 2004-02-20 J. brobecker <brobecker@gnat.com>
11660
11661 * PROBLEMS: Add description of problem documented under gdb/1560.
11662
11663 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11664
11665 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11666 comments.
11667 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11668 functions.
11669 (amd64obsd_init_abi): Reorder initializations. Use
11670 amd64obsd_r_reg_offset to initialize the general-purpose register
11671 set details. Set regset_from_core_section.
11672 (_initialize_amd64obsd_tdep): Rename from
11673 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11674 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11675 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11676
11677 * NEWS (New native configurations): Mention OpenBSD/alpha.
11678 * configure.tgt: Add alpha*-*-openbsd*.
11679 * configure.host: Add alpha*-*-openbsd*.
11680 * alphanbsd-tdep.c: Update copyright year.
11681 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11682
11683 2004-02-20 Andrew Cagney <cagney@redhat.com>
11684
11685 Fix PR tdep/1372.
11686 * configure.tgt: Delete target "none-*-*".
11687 * configure.host: Delete host "none-*-*".
11688 * config/none/none.mh: Delete file.
11689 * config/none/none.mt: Delete file.
11690 * config/none/xm-none.h: Delete file.
11691 * config/none/tm-none.h: Delete file.
11692 * config/none/nm-none.h: Delete file.
11693
11694 2004-02-19 Fred Fish <fnf@redhat.com>
11695
11696 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11697 cache->uses_fp prior to setting it.
11698
11699 2004-02-19 Fred Fish <fnf@redhat.com>
11700
11701 Fix for PR breakpoint/1558.
11702 * sh-tdep.c (IS_JSR): New macro.
11703 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11704
11705 2004-02-19 Jim Blandy <jimb@redhat.com>
11706
11707 * findvar.c (value_from_register): Doc fix.
11708
11709 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11710
11711 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11712 type being greater than sizeof of host's LONGEST. Always use
11713 unpack_long() unless format 'f' chosen.
11714
11715 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11716
11717 Committed by Elena Zannoni <ezannoni@redhat.com>
11718
11719 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11720 contains a symbol wich is the best, non-exact match for the given
11721 pc. Update comments.
11722
11723 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11724
11725 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11726 macro, which was part of the now removed Mach 3 port.
11727 * utils.c (request_quit): Ditto.
11728
11729 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11730
11731 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11732 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11733
11734 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11735
11736 Committed by Mark Kettenis <kettenis@gnu.org>.
11737
11738 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11739 Define.
11740
11741 2004-02-18 Andrew Cagney <cagney@redhat.com>
11742
11743 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11744 CONFIG_INSTALL and CONFIG_UNINSTALL.
11745 * configure: Re-generate.
11746 * interps.h (INTERP_TUI): Define.
11747 * Makefile.in: Update dependencies.
11748 (TUI): New macro.
11749 (tui-main.o): Specify dependencies.
11750 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11751 * tui/tui-main.c: New file.
11752
11753 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11754
11755 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11756 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11757 dependencies.
11758 * configure.host: Add x86_64-*-openbsd*.
11759 * configure.tgt: Add x86_64-*-openbsd*.
11760 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11761
11762 * tui/tui.c: Don't include <malloc.h>.
11763
11764 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11765 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11766 amd64nbsd-tdep.c.
11767
11768 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11769 static. Remove extraneous whitespace.
11770 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11771 static.
11772
11773 2004-02-17 Jim Blandy <jimb@redhat.com>
11774
11775 * findvar.c (value_from_register): Doc fix.
11776
11777 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11778
11779 Committed by Jim Blandy <jimb@redhat.com>.
11780
11781 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11782 CORE_ADDR as type for selectors. Correct types for GNU run time
11783 message lookup function to use double indirection.
11784 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11785 * objc-lang.h (lookup_child_selector): Adapt prototype.
11786
11787 * s390-nat.c (SUBOFF): New macro.
11788 (supply_gregset, fill_gregset): Use it to handle debugging
11789 of 32-bit exectuables running under a 64-bit kernel.
11790 * s390-tdep.c: Include "solib-svr4.h".
11791 (s390_svr4_fetch_link_map_offset): New function.
11792 (s390x_svr_fetch_link_map_offset): Likewise.
11793 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11794 * Makefile.in (s390-tdep.o): Update dependencies.
11795
11796 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11797 "frame-unwind.h".
11798 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11799 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11800 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11801 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11802 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11803 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11804 S390_SIGNAL_FRAMESIZE,
11805 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11806 (struct frame_extra_info): Remove.
11807 (s390_memset_extra_info): Remove.
11808 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11809 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11810 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11811 (is_rse): Renamed to ...
11812 (is_rsy): ... this. Support long displacements.
11813 (is_rxe): Renamed to ...
11814 (is_rxy): ... this. Support long displacements.
11815 (compute_x_addr): Support long displacements.
11816 (struct s390_prologue_data): New data type.
11817 (s390_on_stack): Change API to use struct s390_prologue_data.
11818 (s390_store): Reimplement.
11819 (s390_load): New function.
11820 (s390_get_signal_frame_info): Remove.
11821 (s390_get_frame_info): Remove, replace by ...
11822 (s390_analyze_prolog): ... this new function.
11823 (s390_check_function_end): Remove.
11824 (s390_function_start): Remove.
11825 (s390_frameless_function_invokation): Remove.
11826 (s390_is_sigreturn): Remove.
11827 (s390_init_frame_pc_first): Remove.
11828 (s390_init_frame_extra_info): Remove.
11829 (s390_frame_init_saved_regs): Remove.
11830 (s390_frame_saved_pc_nofix): Remove.
11831 (s390_frame_saved_pc): Remove.
11832 (s390_frame_chain): Remove.
11833 (s390_fp_regnum, s390_read_fp): Remove.
11834 (s390_pop_frame_regular, s390_pop_frame): Remove.
11835 (s390_saved_pc_after_call): Remove.
11836 (s390_skip_prologue): Reimplement.
11837 (s390_in_function_epilogue_p): Support long displacements.
11838 (struct s390_unwind_cache): New data structure.
11839 (s390_frame_unwind_cache): New function.
11840 (s390_prologue_frame_unwind_cache): Likewise.
11841 (s390_backchain_frame_unwind_cache): Likewise.
11842 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11843 (s390_frame_unwind): Define.
11844 (s390_frame_sniffer): New function.
11845 (struct s390_pltstub_unwind_cache): New data structure.
11846 (s390_pltstub_frame_unwind_cache): New function.
11847 (s390_pltstub_frame_this_id): Likewise.
11848 (s390_pltstub_frame_prev_register): Likewise.
11849 (s390_pltstub_frame_unwind): Define.
11850 (s390_pltstub_frame_sniffer): New function.
11851 (struct s390_sigtramp_unwind_cache): New data structure.
11852 (s390_sigtramp_frame_unwind_cache): New function.
11853 (s390_sigtramp_frame_this_id): Likewise.
11854 (s390_sigtramp_frame_prev_register): Likewise.
11855 (s390_sigtramp_frame_unwind): Define.
11856 (s390_sigtramp_frame_sniffer): New function.
11857 (s390_frame_base_address, s390_local_base_address): New functions.
11858 (s390_frame_base): Define.
11859 (s390_unwind_pc, s390_unwind_sp): New function.
11860 (s390_push_dummy_call): Use new frame base location.
11861 (s390_unwind_dummy_id): Likewise.
11862 (s390_gdbarch_init): Remove calls to:
11863 set_gdbarch_frameless_function_invocation,
11864 set_gdbarch_deprecated_init_frame_pc,
11865 set_gdbarch_deprecated_frame_chain,
11866 set_gdbarch_deprecated_frame_init_saved_regs,
11867 set_gdbarch_deprecated_pop_frame,
11868 set_gdbarch_deprecated_init_extra_frame_info,
11869 set_gdbarch_deprecated_init_frame_pc_first,
11870 set_gdbarch_deprecated_target_read_fp,
11871 set_gdbarch_deprecated_frame_saved_pc,
11872 set_gdbarch_deprecated_saved_pc_after_call,
11873 set_gdbarch_deprecated_fp_regnum.
11874 Add calls to:
11875 set_gdbarch_in_solib_call_trampoline,
11876 frame_unwind_append_sniffer,
11877 frame_base_set_default,
11878 set_gdbarch_unwind_pc,
11879 set_gdbarch_unwind_sp.
11880 * Makefile.in (s390-tdep.o): Update dependencies.
11881
11882 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11883 (S390_STACK_FRAME_OVERHEAD): Remove.
11884 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11885 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11886 (s390_promote_integer_argument): Remove.
11887 (s390_cannot_extract_struct_value_address): Remove.
11888 (s390_use_struct_convention, s390_store_struct_return): Remove.
11889 (s390_extract_return_value, s390_store_return_value): Remove.
11890 (s390_return_value_convention, s390_return_value): New functions.
11891 (is_float_singleton): Handle typedefs.
11892 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11893 Remove, replace by ...
11894 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11895 s390_function_arg_integer): ... these new functions.
11896 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11897 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11898 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11899 Fill in tdep->abi.
11900 Remove calls to:
11901 set_gdbarch_deprecated_store_struct_return,
11902 set_gdbarch_deprecated_extract_return_value,
11903 set_gdbarch_deprecated_store_return_value,
11904 set_gdbarch_use_struct_convention,
11905 set_gdbarch_extract_struct_value_address,
11906 set_gdbarch_deprecated_pc_in_call_dummy,
11907 set_gdbarch_deprecated_push_arguments,
11908 set_gdbarch_deprecated_save_dummy_frame_tos,
11909 set_gdbarch_deprecated_push_return_address,
11910 set_gdbarch_deprecated_sizeof_call_dummy_words,
11911 set_gdbarch_deprecated_call_dummy_words,
11912 set_gdbarch_deprecated_dummy_write_sp.
11913 Add calls to:
11914 set_gdbarch_push_dummy_call,
11915 set_gdbarch_unwind_dummy_id,
11916 set_gdbarch_return_value.
11917
11918 * config/s390/nm-linux.h: Update comments.
11919 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11920 (STOPPED_BY_WATCHPOINT): Redefine.
11921 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11922 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11923 (s390_stopped_by_watchpoint): Likewise.
11924 (watch_area_cnt): Remove.
11925 * s390-nat.c: Update comments.
11926 (watch_area): Remove typedef.
11927 Global replace watch_area by struct watch_area.
11928 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11929 (s390_stopped_by_watchpoint): Remove pid argument,
11930 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11931 (s390_fix_watch_points): Remove pid argument,
11932 use s390_inferior_tid. Recompute area spanned by watchpoints.
11933 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11934 argument. Reimplement.
11935
11936 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11937 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11938 (FETCH_INFERIOR_REGISTERS): Define.
11939 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11940 core-regset.o.
11941 * config/s390/s390x.mt: Remove.
11942 * config/s390/tm-s390.h: Remove.
11943 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11944 (TARGET_ELF64): Remove.
11945 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11946 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11947 s390*-*-* case; always set gdb_target to s390.
11948 * regformats/reg-s390.dat: Remove control registers.
11949 * regformats/reg-s390x.dat: Likewise.
11950 * s390-tdep.h: New file.
11951 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11952 Include "inferior.h" and "s390-tdep.h".
11953 Remove private definition of offsetof.
11954 (s390_register_u_addr): Remove.
11955 (regmap_gregset, regmap_fpregset): Define.
11956 (supply_gregset, fill_gregset): Reimplement.
11957 (supply_fpregset, fill_fpregset): Likewise.
11958 (s390_inferior_tid): New function.
11959 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11960 (fetch_inferior_registers, store_inferior_registers): Likewise.
11961 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11962 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11963 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11964 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11965 (struct gdbarch_tdep): Define.
11966 (struct s390_register_info): Define.
11967 (s390_register_info): New variable.
11968 (s390_register_name): Reimplement.
11969 (s390_register_type): New function.
11970 (s390_register_raw_size, s390x_register_raw_size): Remove.
11971 (s390_cannot_fetch_register): Remove.
11972 (s390_register_byte): Remove.
11973 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11974 (s390_dwarf_regmap): New variable.
11975 (s390_dwarf_reg_to_regnum): New function.
11976 (s390_stab_reg_to_regnum): Remove.
11977 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11978 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11979 (s390_convert_register_p): Likewise.
11980 (s390_register_to_value, s390_value_to_register): Likewise.
11981 (s390_register_reggroup_p): Likewise.
11982 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11983 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11984 (s390_supply_regset, s390_regset_from_core_section): New functions.
11985 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11986 (S390_FPR_SIZE): Likewise.
11987 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11988 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11989 (S390_NUM_GPRS): Move here from tm-s390.h.
11990 (S390_NUM_FPRS): Likewise.
11991 (s390_in_function_epilogue_p): New function.
11992 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11993 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11994 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11995 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11996 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11997 Remove calls to:
11998 set_gdbarch_deprecated_max_register_raw_size,
11999 set_gdbarch_deprecated_max_register_virtual_size,
12000 set_gdbarch_deprecated_register_byte,
12001 set_gdbarch_cannot_fetch_register,
12002 set_gdbarch_cannot_store_register,
12003 set_gdbarch_deprecated_register_size,
12004 set_gdbarch_deprecated_register_raw_size,
12005 set_gdbarch_deprecated_register_virtual_size,
12006 set_gdbarch_deprecated_register_virtual_type,
12007 set_gdbarch_deprecated_register_bytes.
12008 Add calls to:
12009 set_gdbarch_num_pseudo_regs,
12010 set_gdbarch_register_type,
12011 set_gdbarch_convert_register_p,
12012 set_gdbarch_register_to_value,
12013 set_gdbarch_value_to_register,
12014 set_gdbarch_register_reggroup_p,
12015 set_gdbarch_regset_from_core_section,
12016 set_gdbarch_pseudo_register_read,
12017 set_gdbarch_pseudo_register_write,
12018 set_gdbarch_in_function_epilogue_p.
12019 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12020 (s390_tdep_h): New variable.
12021
12022 2004-02-17 Jim Blandy <jimb@redhat.com>
12023
12024 * findvar.c (value_from_register): If the type has no length, just
12025 return an acceptable value --- don't report an internal error.
12026
12027 * stabsread.c (read_type): If we find any type numbers that are
12028 forward references, complain if the references aren't resolved by
12029 the time we're finished reading.
12030 (cleanup_undefined_types): Make error message more appropriate for
12031 a complaint.
12032
12033 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12034
12035 * Makefile.in (defs_h): Remove dependency on progress_h.
12036 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12037 progress.h.
12038 * main.c (captured_main): Delete use of START_PROGRESS and
12039 END_PROGRESS.
12040
12041 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12042
12043 * objfiles.c (terminate_minimal_symbol_table): Add back
12044 initialization of MSYMBOL_TYPE.
12045
12046 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12047
12048 Committed by Andrew Cagney.
12049 * Makefile.in (ia64_tdep_h): New macro.
12050 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12051 (ia64-tdep.o): Likewise.
12052 * ia64-tdep.h: New file.
12053 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12054 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12055 (ia64_aix_sigcontext_register_address): Likewise.
12056 (ia64_linux_getunwind_table): Delete declaration.
12057 * ia64-linux-tdep.c: Likewise.
12058
12059 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12060
12061 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12062 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12063 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12064
12065 2004-02-17 Andrew Cagney <cagney@redhat.com>
12066
12067 * symtab.c (skip_prologue_using_sal): New function.
12068 * symtab.h (skip_prologue_using_sal): Declare.
12069 * frv-tdep.c: Include "symtab.h".
12070 (skip_prologue_using_sal): Delete function.
12071 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12072 * rs6000-tdep.c (refine_prologue_limit): Mention
12073 skip_prologue_using_sal.
12074 * ia64-tdep.c (refine_prologue_limit): Ditto.
12075 * Makefile.in: Update dependencies.
12076
12077 2004-02-16 Andrew Cagney <cagney@redhat.com>
12078
12079 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12080 START_INFERIOR_TRAPS_EXPECTED.
12081 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12082 START_INFERIOR_TRAPS_EXPECTED.
12083 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12084 Delete macro.
12085 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12086 macro, moved to "nm-osf.h". Update copyright.
12087 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12088 update copyright.
12089
12090 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12091 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12092 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12093 frameless_look_for_prologue.
12094 * frame.h (legacy_frameless_look_for_prologue): Rename
12095 frameless_look_for_prologue.
12096 * gdbarch.h, gdbarch.c: Re-generate.
12097 * sh64-tdep.c (sh64_gdbarch_init): Update.
12098 * sh-tdep.c (sh_gdbarch_init): Update.
12099 * s390-tdep.c (s390_gdbarch_init): Update.
12100 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12101 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12102 * m68k-tdep.c (m68k_gdbarch_init): Update.
12103 (delta68_frame_args_address): Update.
12104 * m32r-tdep.c (m32r_gdbarch_init): Update.
12105 * hppa-tdep.c (hppa_gdbarch_init): Update.
12106 * h8300-tdep.c (h8300_gdbarch_init): Update.
12107 * frv-tdep.c (frv_gdbarch_init): Update.
12108 (frv_frameless_function_invocation): Update.
12109 * cris-tdep.c (cris_gdbarch_init): Update.
12110 (cris_frameless_function_invocation): Update.
12111 * avr-tdep.c (avr_gdbarch_init): Update.
12112 * arm-tdep.c (arm_gdbarch_init): Update.
12113 * stack.c (frame_info): Update, call predicate.
12114 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12115 * frame.c (legacy_get_prev_frame): Update, call predicate..
12116 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12117 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12118 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12119 invocation.
12120 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12121 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12122 * vax-tdep.c (vax_gdbarch_init): Ditto.
12123
12124 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12125 function.
12126
12127 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12128
12129 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12130 initializations.
12131
12132 2004-02-16 Andrew Cagney <cagney@redhat.com>
12133
12134 * tui/tui-windata.c: Include "gdb_string.h".
12135 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12136 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12137 * Makefile.in: Update dependencies.
12138
12139 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12140
12141 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12142 * infrun.c: Include "gdb_assert.h".
12143 (singlestep_ptid, saved_singlestep_ptid)
12144 (stepping_past_singlestep_breakpoint): New variables.
12145 (resume): Set singlestep_ptid. Check for singlestep thread
12146 hop.
12147 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12148 (handle_inferior_event): Handle singlestep thread hop.
12149
12150 2004-02-16 Andrew Cagney <cagney@redhat.com>
12151
12152 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12153 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12154 (dwarf2_frame_init_reg): Ditto.
12155
12156 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12157 suggested by Joshua Neuheisel
12158
12159 * configure.in: Always check for curses, including pdcurses.
12160 Warn, instead of error, when no curses are found. Enable TUI when
12161 curses is available.
12162 * configure: Re-generate.
12163
12164 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12165
12166 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12167 sh_sh4_register_convert_to_virtual.
12168 (sh_register_convert_to_raw): Rename from
12169 sh_sh4_register_convert_to_raw.
12170 (sh_pseudo_register_read): Accomodate above name change.
12171 (sh_pseudo_register_write): Ditto.
12172
12173 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12174
12175 * sh-tdep.c (sh_generic_register_name): Remove.
12176 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12177
12178 2004-02-15 Andrew Cagney <cagney@redhat.com>
12179
12180 * configure.in (build_warnings): Add -Wunused-function.
12181 * configure: Re-generate.
12182
12183 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12184 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12185
12186 * procfs.c (procfs_init_inferior): Assume that
12187 START_INFERIOR_TRAPS_EXPECTED is defined.
12188 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12189 * config/ns32k/tm-nbsd.h: Delete file,
12190 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12191
12192 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12193 * config/vax/tm-vax.h: Delete file.
12194
12195 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12196 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12197 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12198 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12199 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12200 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12201 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12202
12203 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12204
12205 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12206 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12207 (struct dwarf2_frame_ops): New.
12208 (dwarf2_frame_default_init_reg): New function, based on
12209 dwarf2_frame_init_reg.
12210 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12211 (dwarf2_frame_init_reg): Call architecture-specific function.
12212 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12213 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12214 instead of dwarf2_frame_data.
12215 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12216 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12217
12218 2004-02-15 Andrew Cagney <cagney@redhat.com>
12219
12220 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12221 register_gdbarch_swap.
12222 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12223 * f-lang.c (_initialize_f_language): Update, use
12224 DEPRECATED_REGISTER_GDBARCH_SWAP.
12225 * remote.c (_initialize_remote): Ditto.
12226 * regcache.c (_initialize_regcache): Ditto.
12227 * parse.c (_initialize_parse): Ditto.
12228 * infrun.c (_initialize_infrun): Ditto.
12229 * mi/mi-main.c (_initialize_mi_main): Ditto.
12230 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12231
12232 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12233 poking .cacheable directly.
12234 * symfile.c (symfile_bfd_open): Ditto.
12235
12236 * Makefile.in: Update all dependencies.
12237
12238 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12239 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12240 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12241 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12242 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12243
12244 2004-02-14 Andrew Cagney <cagney@redhat.com>
12245
12246 * arch-utils.c (legacy_convert_register_p): Check
12247 DEPRECATED_REGISTER_CONVERTIBLE_P.
12248 * findvar.c (value_of_register): Ditto.
12249
12250 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12251 * gdbarch.h, gdbarch.c: Re-generate.
12252 * arch-utils.c (deprecated_register_convertible_not): Delete.
12253 * arch-utils.h (deprecated_register_convertible_not): Delete.
12254 * mi/mi-main.c (get_register): Update. Update copyright.
12255 * infcmd.c (default_print_registers_info): Update.
12256
12257 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12258 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12259 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12260 * gdbarch.h, gdbarch.c: Re-generate.
12261 * frame.c (deprecated_get_next_frame_hack): Delete function.
12262 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12263 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12264 Update.
12265 * infcall.c (call_function_by_hand): Update.
12266
12267 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12268
12269 * symfile.c (init_entry_point_info, entry_point_address): Move
12270 from here...
12271 * objfiles.c (init_entry_point_info, entry_point_address):..to
12272 here.
12273 * symfile.h (init_entry_point_info, entry_point_address): Remove
12274 prototypes.
12275 * objfiles.h (init_entry_point_info, entry_point_address):Add
12276 prototypes.
12277 * cris-tdep.c: Remove include of symfile.h. Add include of
12278 objfiles.h.
12279 * infcall.c: Ditto.
12280 * mcore-tdep.c: Ditto.
12281 * mn10300-tdep.c: Ditto.
12282 * sh64-tdep.c: Ditto.
12283 * v850-tdep.c: Ditto.
12284 * arm-tdep.c: Remove include of symfile.h.
12285 * blockframe.c: Ditto.
12286 * coffread.c: Ditto.
12287 * dbxread.c: Ditto.
12288 * dwarf2read.c: Ditto.
12289 * dwarfread.c: Ditto.
12290 * frv-tdep.c: Ditto.
12291 * ia64-tdep.c: Ditto.
12292 * mdebugread.c: Ditto.
12293 * mipsread.c: Ditto.
12294 * rs6000-tdep.c: Ditto.
12295 * s390-tdep.c: Ditto.
12296 * sh-tdep.c: Ditto.
12297 * xstormy16-tdep.c: Ditto.
12298 * gdbarch.sh: Remove include of symfile.h.
12299 * gdbarch.c: Regenerate.
12300 * solib-irix.c (enable_break): Use entry_point_address().
12301 Add comment about include file.
12302 * xcoffread.c: Add comment about include file.
12303 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12304 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12305 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12306 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12307 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12308
12309 2004-02-13 Andrew Cagney <cagney@redhat.com>
12310
12311 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12312 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12313 copyright.
12314 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12315
12316 2004-02-12 Fred Fish <fnf@redhat.com>
12317
12318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12319 set_gdbarch_store_return_value.
12320
12321 2004-02-12 Andrew Cagney <cagney@redhat.com>
12322
12323 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12324 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12325 (interrupt_query): Ditto.
12326 (ofunc): Delete unused variable.
12327 * cris-tdep.c (cris_abi): Delete unused function.
12328 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12329 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12330 (cris_get_asr_quick_shift_steps): Ditto.
12331 (cris_skip_prologue_frameless_p): Ditto.
12332 * arm-tdep.c (arm_push_return_address): Delete unused function.
12333 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12334 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12335 * s390-tdep.c (s390_function_start): Delete unused function.
12336
12337 2004-02-12 Andrew Cagney <cagney@redhat.com>
12338
12339 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12340 gdbarch.h, gdbarch.c: Re-generate.
12341 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12342 to generic_prologue_frameless_p.
12343 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12344 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12345
12346 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12347
12348 * mips-linux-tdep.c: Include "frame.h".
12349 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12350 (mips_linux_skip_resolver): New functions.
12351 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12352 and set_gdbarch_in_solib_call_trampoline.
12353 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12354 to after set_gdbarch_in_solib_return_trampoline. Only set the
12355 solib hooks to mips16 functions if the OS ABI is unknown.
12356 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12357 including "config/tm-linux.h".
12358 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12359 * Makefile.in (mips-linux-tdep.o): Update.
12360
12361 2004-02-11 David Carlton <carlton@kealia.com>
12362
12363 * linespec.c (decode_compound): Only look for a class symbol when
12364 considering all but the rightmost component.
12365
12366 2004-02-11 Andrew Cagney <cagney@redhat.com>
12367
12368 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12369 abi code are are separatly grouped.
12370
12371 2004-02-11 Andrew Cagney <cagney@redhat.com>
12372
12373 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12374 * gdbarch.h, gdbarch.c: Re-generate.
12375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12376 * v850-tdep.c (v850_gdbarch_init): Update.
12377 * sh64-tdep.c (sh64_gdbarch_init): Update.
12378 * sh-tdep.c (sh_gdbarch_init): Update.
12379 * s390-tdep.c (s390_gdbarch_init): Update.
12380 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12381 * mips-tdep.c (mips_gdbarch_init): Update.
12382 * mcore-tdep.c (mcore_gdbarch_init): Update.
12383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12384 * m32r-tdep.c (m32r_gdbarch_init): Update.
12385 * ia64-tdep.c (ia64_gdbarch_init): Update.
12386 * hppa-tdep.c (hppa_gdbarch_init): Update.
12387 * h8300-tdep.c (h8300_gdbarch_init): Update.
12388 * frv-tdep.c (frv_gdbarch_init): Update.
12389 * d10v-tdep.c (d10v_gdbarch_init): Update.
12390 * cris-tdep.c (cris_gdbarch_init): Update.
12391 * avr-tdep.c (avr_gdbarch_init): Update.
12392 * arm-tdep.c (arm_gdbarch_init): Update.
12393 * alpha-tdep.c (alpha_gdbarch_init): Update.
12394
12395 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12396
12397 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12398 comma.
12399 (sh_sh4al_dsp_register_name): Ditto.
12400
12401 2004-02-10 Andrew Cagney <cagney@redhat.com>
12402
12403 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12404 (mips_init_frame_pc_first): Delete function.
12405 (mips_frame_saved_pc): Delete function.
12406 (mips_frame_chain): Delete function.
12407 (mips_init_extra_frame_info): Delete function.
12408 (mips_xfer_register): Delete unused variable "reg".
12409 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12410 (mips_n32n64_return_value): Delete unused variable "reg".
12411 (mips_n32n64_return_value): Delete unused variable "pos".
12412 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12413 (mips_o32_return_value): Delete unused variable "pos".
12414 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12415 (mips_print_fp_register): Delete unused variable "namelen"
12416 (mips_print_fp_register): Delete unused variable "flt2"
12417 (get_frame_pointer): Delete function.
12418 (cached_proc_desc): Delete static variable.
12419 (mips_pop_frame): Delete function.
12420 (mips_find_saved_regs): Delete function.
12421 (mips_get_saved_register): Delete function.
12422 (mips_saved_pc_after_call): Delete function.
12423 (SIGFRAME_BASE): Delete macro.
12424 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12425 (SIGFRAME_PC_OFF): Delete macro.
12426 (SIGFRAME_REGSAVE_OFF): Delete macro.
12427 (mips_dump_tdep): Do not print deleted macro definitions.
12428
12429 2004-02-10 Andrew Cagney <cagney@redhat.com>
12430
12431 * Makefile.in (SFILES): Remove explictly listed tui files.
12432 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12433
12434 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12435
12436 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12437 to use paddr functions to format ia64 addresses and long values.
12438 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12439 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12440 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12441 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12442 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12443
12444 2004-02-10 Andrew Cagney <cagney@redhat.com>
12445
12446 * defs.h: Do not include "tui.h".
12447 * gdb_curses.h: New file.
12448 * tui/tui-hooks.h: New file.
12449 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12450 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12451 (tui_initialize_io): Delete declaration.
12452 (tui_initialize_readline: Delete redundant declaration.
12453 (struct tui_point): Delete definition.
12454 * tui/tui-data.h (struct tui_point): Define.
12455 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12456 * utils.c: Include "tui/tui.h".
12457 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12458 * printcmd.c [TUI]: Include "tui/tui.h".
12459 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12460 * tui/tui-command.c: Include "gdb_curses.h".
12461 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12462 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12463 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12464 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12465 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12466 * Makefile.in: Update all dependencies.
12467 (tui_hooks_h, gdb_curses_h): Define.
12468 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12469
12470 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12471
12472 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12473 auxf2. Add comments about some other rarely used fields.
12474
12475 2004-02-10 Andrew Cagney <cagney@redhat.com>
12476
12477 * Makefile.in (init.c): Fix script removing duplicates. Problem
12478 reported by Peter Schauer.
12479
12480 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12481
12482 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12483 obstack_specify_allocation.
12484 * objfiles.c (allocate_objfile): Ditto.
12485 * solib-sunos.c (solib_add_common_symbols)
12486 (allocate_rt_common_objfile): Ditto.
12487 * symfile.c (reread_symbols): Ditto.
12488 * gdb_obstack.h: Add comment.
12489
12490 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12491
12492 * linespec.c (decode_line_1, locate_first_half)
12493 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12494 commented out code.
12495
12496 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12497
12498 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12499 obstack_free.
12500
12501 2004-02-09 Andrew Cagney <cagney@redhat.com>
12502
12503 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12504 fails, try find_pc_section. Fix PR c++/1267.
12505 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12506 instead of find_pc_mapped_section.
12507 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12508 not default to the section containing PC. Fix PR symtab/1519.
12509
12510 2004-02-09 Andrew Cagney <cagney@redhat.com>
12511
12512 * Makefile.in (mips-tdep.o): Update dependencies.
12513 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12514 "trad-frame.h".
12515 (mips_unwind_pc): Return the pseudo PC register.
12516 (mips_unwind_dummy_id): New function.
12517 (mips16_fetch_instruction): New function.
12518 (mips32_fetch_instruction): New function.
12519 (struct mips_frame_cache): Define.
12520 (mips_mdebug_frame_cache): New function.
12521 (mips_mdebug_frame_this_id): New function.
12522 (mips_mdebug_frame_prev_register): New function.
12523 (mips_mdebug_frame_unwind): Define.
12524 (mips_mdebug_frame_sniffer): New function.
12525 (mips_mdebug_frame_base_address): New function.
12526 (mips_mdebug_frame_base): Define.
12527 (mips_mdebug_frame_base_sniffer): New function.
12528 (mips_gdbarch_init): Append unwind and base sniffers. Set
12529 unwind_dummy_id.
12530
12531 2004-02-08 Andrew Cagney <cagney@redhat.com>
12532
12533 * frame.c: Print both the register number and name.
12534
12535 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12536 and a sed into a single sed. Make .c and .o patterns more robust.
12537 (OBS): Delete.
12538 (INIT_FILES): Replace OBS with COMMON_OBS.
12539 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12540
12541 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12542
12543 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12544 the PT_WCOOKIE request.
12545
12546 2004-02-08 Andrew Cagney <cagney@redhat.com>
12547
12548 * mips-tdep.c (mips_unwind_pc): New function.
12549 (mips_gdbarch_init): Set mips_unwind_pc.
12550
12551 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12552 (get_frame_id): Allow the UNKNOWN_FRAME.
12553 (frame_register_unwind, get_frame_type): Ditto.
12554
12555 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12556 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12557 unwind_dummy_id indicates a legacy frame.
12558
12559 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12560 * configure: Re-generate.
12561
12562 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12563 methods.
12564
12565 2004-02-08 Andrew Cagney <cagney@redhat.com>
12566
12567 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12568 makefile macro.
12569 * configure: Re-generate.
12570 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12571 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12572 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12573 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12574 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12575 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12576 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12577 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12578 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12579 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12580
12581 2004-02-07 Andrew Cagney <cagney@redhat.com>
12582
12583 * Makefile.in: Update all dependencies.
12584
12585 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12586 * configure: Re-generate.
12587 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12588 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12589 (COMMON_OBS): Add "main.o" and "annotate.o".
12590 (ANNOTATE_OBS): Delete.
12591 (OBS): Remove ANNOTATE_OBS.
12592 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12593 CONFIG_INITS.
12594 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12595 against CONFIG_OBS and "main.o".
12596 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12597 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12598
12599 * tui/tui-command.c: Include "gdb_string.h", delete register
12600 attribute, use ISO-C function signatures.
12601 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12602 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12603 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12604 * tui/tui.c: Ditto.
12605
12606 * tui/tui-command.c: Change variable and function names to lower
12607 case.
12608 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12609 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12610 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12611 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12612 * tui/tui-winsource.c, tui/tui.c: Ditto.
12613
12614 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12615
12616 * buildsym.c (free_pending_blocks, finish_block)
12617 (record_pending_block, make_blockvector, end_symtab): Replace
12618 symbol_obstack with objfile_obstack.
12619 * coffread.c (process_coff_symbol, coff_read_struct_type)
12620 (coff_read_enum_type): Ditto.
12621 * cp-namespace.c (initialize_namespace_symtab)
12622 (check_one_possible_namespace_symbol): Ditto.
12623 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12624 (dwarf2_symbol_mark_computed): Ditto.
12625 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12626 * elfread.c (elf_symtab_read): Ditto.
12627 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12628 (hpread_read_enum_type, hpread_read_function_type)
12629 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12630 Ditto.
12631 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12632 (java_link_class_type): Ditto.
12633 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12634 (new_symbol): Ditto.
12635 * minsyms.c (install_minimal_symbols): Ditto.
12636 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12637 (terminate_minimal_symbol_table): Replace symbol_obstack with
12638 objfile_obstack.
12639 (free_objfile): Remove freeing of symbol_obstack.
12640 * objfiles.h: Remove symbol_obstack field.
12641 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12642 objfile_obstack.
12643 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12644 symbol_obstack.
12645 (solib_add_common_symbols): Replace symbol_obstack with
12646 objfile_obstack.
12647 * somsolib.c (som_solib_add): Ditto.
12648 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12649 (common_block_start, common_block_end): Ditto.
12650 * symfile.c (reread_symbols): Remove freeing and init of
12651 symbol_obstack.
12652 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12653 * symfile.h: Update comment.
12654 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12655 stats printing.
12656 * symtab.c (symbol_set_names): Replace symbol_obstack with
12657 objfile_obstack.
12658 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12659 Update comments.
12660 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12661 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12662 objfile_obstack.
12663
12664 2004-02-07 Andrew Cagney <cagney@redhat.com>
12665
12666 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12667 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12668 fields and variables.
12669 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12670 (m_beInvisible): Delete macro.
12671 * tui/tui-data.h: Fix case case fields and variables.
12672 (m_genWinPtrIsNull): Delete macro.
12673 (tui_win_list): Rename winList.
12674 (TUI_SRC_WIN): Rename srcWin.
12675 (TUI_DISASM_WIN): Rename disassemWin.
12676 (TUI_DATA_WIN): Rename dataWin.
12677 (TUI_CMD_WIN): Rename cmdWin.
12678 (m_genWinPtrNotNull): Delete macro.
12679 (m_winPtrIsNull): Delete macro.
12680 (m_winPtrNotNull): Delete macro.
12681 (tui_win_is_source_type): Replace m_winIsSourceType
12682 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12683 (tui_win_has_locator): Replace m_hasLocator.
12684 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12685 m_setWinHighlightOff.
12686 * tui/tui-data.c: Update references.
12687 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12688 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12689 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12690 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12691 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12692 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12693 * tui/tui-winsource.c, tui/tui.c: Ditto.
12694
12695 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12696
12697 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12698 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12699 StackGhost.
12700
12701 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12702 variable `i6' to `i7'.
12703 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12704
12705 2004-02-07 Andrew Cagney <cagney@redhat.com>
12706
12707 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12708 (TuiPoint, TuiPointPtr): Ditto.
12709 (TuiStatus, TuiStatusPtr): Ditto.
12710 (TuiWinType, TuiWinTypePtr): Ditto.
12711 (struct tui_point): Rename _TuiPoint.
12712 (tui_get_low_disassembly_address): Rename
12713 tuiGetLowDisassemblyAddress.
12714 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12715 (tuiFree): Delete declaration.
12716 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12717 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12718 * tui/tui.c (tuiFree): Delete function.
12719 * cli/cli-cmds.c (disassemble_command): Update references.
12720 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12721 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12722 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12723 * tui/tui-winsource.c: Ditto.
12724
12725 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12726
12727 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12728 coffstab_build_psymtabs, elfstab_build_psymtabs)
12729 (stabsect_build_psymtabs): Replace psymbol_obstack with
12730 objfile_obstack.
12731 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12732 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12733 Ditto.
12734 * dwarfread.c (scan_compilation_units): Ditto.
12735 * elfread.c (elfstab_offset_sections): Ditto.
12736 * hppa-tdep.c (read_unwind_info): Ditto.
12737 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12738 (hpread_end_psymtab): Ditto.
12739 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12740 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12741 Ditto.
12742 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12743 * objfiles.c (add_to_objfile_sections)
12744 (build_objfile_section_table): Ditto.
12745 (allocate_objfile): Remove init of psymbol_obstack.
12746 (free_objfile): Remove freeing of psymbol_obstack.
12747 * objfiles.h (struct objfile): Remove field
12748 psymbol_obstack. Update comments.
12749 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12750 psymbol_obstack with objfile_obstack.
12751 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12752 psymbol_obstack.
12753 * somread.c (som_symfile_offsets, init_import_symbols)
12754 (init_export_symbols): Replace psymbol_obstack with
12755 objfile_obstack.
12756 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12757 * symfile.c (default_symfile_offsets, syms_from_objfile)
12758 (reread_symbols): Remove freeing and init of psymbol_obstack.
12759 (cashier_psymtab): Update comment.
12760 * symmisc.c (print_objfile_statistics): Don't report stats for
12761 psymbol obstack.
12762 * symtab.h (struct general_symbol_info, struct partial_symtab):
12763 Update comments.
12764 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12765 (xcoff_symfile_offsets): Replace psymbol_obstack with
12766 objfile_obstack.
12767
12768 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12769
12770 * objfiles.h (struct objfile): Add objfile_obstack field.
12771 Remove type_obstack field.
12772
12773 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12774 read_structure_scope read_enumeration, new_symbol): Replace
12775 type_obstack with objfile_obstack.
12776 * dwarfread.c (struct_type, enum_type): Ditto.
12777 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12778 (lookup_fundamental_type): Ditto.
12779 * gdbtypes.h (TYPE_ALLOC): Ditto.
12780 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12781 (hpread_read_doc_function_type, hpread_read_struct_type)
12782 (fix_static_member_physnames, hpread_read_array_type)
12783 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12784 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12785 (java_link_class_type): Ditto.
12786 * mdebugread.c (parse_type): Ditto.
12787 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12788 * solib-sunos.c (solib_add_common_symbols): Ditto.
12789 * stabsread.c (define_symbol, read_type, read_member_functions,
12790 read_cpp_abbrev, read_one_struct_field): Ditto.
12791 * symfile.c (reread_symbols): Ditto.
12792 * symmisc.c (print_objfile_statistics): Ditto.
12793
12794 2004-02-07 Andrew Cagney <cagney@redhat.com>
12795
12796 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12797 (tui_exec_info_content): Rename TuiExecInfoContent.
12798 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12799 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12800 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12801 (TuiList, TuiListPtr): Ditto.
12802 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12803 (TuiDataType, TuiDataTypePtr): Ditto.
12804 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12805 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12806 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12807 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12808 (TuiDataElement, TuiDataElementPtr): Ditto.
12809 (TuiWinElement, TuiWinElementPtr): Ditto.
12810 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12811 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12812 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12813 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12814 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12815 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12816 * tui/tui-command.c, tui/tui-data.c: Update references.
12817 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12818 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12819 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12820 * tui/tui-winsource.c, tui/tui.c: Ditto.
12821
12822 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12823
12824 * dwarf2-frame.h: Update copyright.
12825 (enum dwarf2_frame_reg_rule): New.
12826 (struct dwarf2_frame_state_reg): New.
12827 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12828 * dwarf2-frame.c: Update copyright.
12829 (enum dwarf2_reg_rule): Remove.
12830 (struct dwarf2_frame_state): Remove defenition of `struct
12831 dwarf2_frame_state_reg'.
12832 (read_reg): Call get_frame_arch to get the architecture instead of
12833 using CURRENT_GDBARCH.
12834 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12835 DWARF2_FRAME_.
12836 (dwarf2_frame_init_reg): New function.
12837 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12838 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12839 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12840 tags with DWARF2_FRAME_.
12841 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12842 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12843 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12844
12845 2004-02-06 Andrew Cagney <cagney@redhat.com>
12846
12847 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12848 (enum tui_data_type): Rename _TuiDataType.
12849 (struct tui_layout_def): Rename _TuiLayoutDef.
12850 (struct tui_source_element): Rename _TuiSourceElement.
12851 (struct tui_data_element): Rename _TuiDataElement.
12852 (struct tui_command_element): Rename _TuiCommandElement.
12853 (struct tui_locator_element): Rename _TuiLocatorElement.
12854 (union tui_which_element): Define.
12855 (struct tui_win_element): Rename _TuiWinElement.
12856 (struct tui_data_info): Rename _TuiDataInfo.
12857 (struct tui_source_info): Rename _TuiSourceInfo.
12858 (struct tui_command_info): Rename _TuiCommandInfo.
12859 (tui_initialize_static_data): Rename initializeStaticData.
12860 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12861 (tui_alloc_win_info): Rename allocWinInfo.
12862 (tui_init_generic_part): Rename initGenericPart.
12863 (tui_init_win_info): Rename initWinInfo.
12864 (tui_alloc_content): Rename allocContent.
12865 (tui_add_content_elements): Rename addContentElements.
12866 (tui_init_content_element): Rename initContentElement.
12867 (tui_free_window): Rename freeWindow.
12868 (tui_free_win_content): Rename freeWinContent.
12869 (tui_free_data_content): Rename freeDataContent.
12870 (tui_free_all_source_wins_content): Rename
12871 freeAllSourceWinsContent.
12872 (tui_del_window): Rename tuiDelWindow.
12873 (tui_del_data_windows): Rename tuiDelDataWindows.
12874 (tui_partial_win_by_name): Rename partialWinByName.
12875 (tui_win_name): Rename winName.
12876 (tui_current_layout): Rename currentLayout.
12877 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12878 (tui_term_height): Rename termHeight.
12879 (tui_set_term_height_to): Rename setTermHeightTo.
12880 (tui_term_width): Rename termWidth.
12881 (tui_set_term_width_to): Rename setTermWidthTo.
12882 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12883 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12884 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12885 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12886 (tui_source_windows): Rename sourceWindows.
12887 (tui_clear_source_windows): Rename clearSourceWindows.
12888 (tui_clear_source_windows_detail): Rename
12889 clearSourceWindowsDetail.
12890 (tui_clear_win_detail): Rename clearWinDetail.
12891 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12892 (tui_default_tab_len): Rename tuiDefaultTabLen.
12893 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12894 (tui_win_with_focus): Rename tuiWinWithFocus.
12895 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12896 (tui_layout_def): Rename tuiLayoutDef.
12897 (tui_win_resized): Rename tuiWinResized.
12898 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12899 (tui_next_win): Rename tuiNextWin.
12900 (tui_prev_win): Rename tuiPrevWin.
12901 (tui_add_to_source_windows): Rename addToSourceWindows.
12902 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12903 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12904 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12905 * tui/tui.c, tui/tui-data.c: Ditto.
12906 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12907 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12908
12909 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12910 (struct symtab): Declare.
12911 (tui_set_source_content): Rename tuiSetSourceContent.
12912 (tui_show_symtab_source): Rename tuiShowSource.
12913 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12914 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12915 * tui/tui-source.c: Update copyright. Update references.
12916 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12917 * tui/tui-stack.c: Update references.
12918
12919 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12920 (struct tui_win_info): Declare.
12921 (tui_scroll_forward): Rename tuiScrollForward.
12922 (tui_scroll_backward): Rename tuiScrollBackward.
12923 (tui_scroll_left): Rename tuiScrollLeft.
12924 (tui_scroll_right): Rename tuiScrollRight.
12925 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12926 (tui_resize_all): Rename tuiResizeAll.
12927 (tui_refresh_all_win): Rename tuiRefreshAll.
12928 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12929 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12930 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12931 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12932
12933 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12934 (tui_erase_data_content): Rename tuiEraseDataContent.
12935 (tui_display_all_data): Rename tuiDisplayAllData.
12936 (tui_check_data_values): Rename tuiCheckDataValues.
12937 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12938 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12939 (tui_first_data_element_no_in_line): Rename
12940 tuiFirstDataElementNoInLine.
12941 (tui_delete_data_content_windows): Rename
12942 tuiDeleteDataContentWindows.
12943 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12944 (tui_display_data_from): Rename tuiDisplayDataFrom.
12945 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12946 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12947 * tui/tui-win.c, tui/tui-regs.c: Update references.
12948 * tui/tui-layout.c, tui/tui.c: Update references.
12949
12950 * tui/tui-wingeneral.h: Update copyright.
12951 (m_allBeVisible): Delete macro.
12952 (m_allBeInvisible): Delete macro.
12953 (struct tui_gen_win_info): Declare.
12954 (struct tui_win_info): Declare.
12955 (tui_unhighlight_win): Rename unhighlightWin.
12956 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12957 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12958 (tui_make_window): Rename makeWindow.
12959 (tui_copy_win): Rename copyWin.
12960 (tui_box_win): Rename boxWin.
12961 (tui_highlight_win): Rename highlightWin.
12962 (tui_check_and_display_highlight_if_needed): Rename
12963 checkAndDisplayHighlightIfNeeded.
12964 (tui_refresh_all): Rename refreshAll.
12965 (tui_delete_win): Rename tuiDelwin.
12966 (tui_refresh_win): Rename tuiRefreshWin.
12967 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12968 (tui_make_visible, tui_make_invisible): New functions.
12969 (tui_make_all_visible, tui_make_all_invisible): New functions.
12970 (make_all_visible): Rename makeAllVisible.
12971 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12972 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12973 * tui/tui-windata.c, tui/tui-win.c: Update references.
12974 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12975 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12976
12977 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12978
12979 * proc-api.c (write_with_trace): Initialize local variable to
12980 silence compiler warning.
12981
12982 2004-02-06 Andrew Cagney <cagney@redhat.com>
12983
12984 * tui/tui-source.h: Do not include "defs.h".
12985 (struct tui_win_info): Declare.
12986 (tui_set_source_content_nil): Declare.
12987 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12988 (union tui_line_or_address): Rename _TuiLineOrAddress.
12989 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12990 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12991 (tui_update_source_window_as_is): Rename
12992 tuiUpdateSourceWindowAsIs.
12993 (tui_update_source_windows_with_addr): Rename
12994 tuiUpdateSourceWindowsWithAddr.
12995 (tui_update_source_windows_with_line): Rename
12996 tuiUpdateSourceWindowsWithLine.
12997 (tui_clear_source_content): Rename tuiClearSourceContent.
12998 (tui_erase_source_content): Rename tuiEraseSourceContent.
12999 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13000 (tui_show_source_content): Rename tuiShowSourceContent.
13001 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13002 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13003 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13004 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13005 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13006 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13007 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13008 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13009 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13010 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13011 (struct tui_win_info): Declare.
13012 * tui/tui-stack.c: Update references.
13013 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13014 * tui/tui-win.c, tui/tui-source.c: Ditto.
13015 * tui/tui.c, tui/tui-disasm.c: Ditto.
13016
13017 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13018
13019 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13020 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13021
13022 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13023
13024 * infrun.c (handle_inferior_event): Allow for breakpoint
13025 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13026 and SIGEMT. Update comments.
13027 * NEWS (Revised SPARC target): Mention support for non-executable
13028 stack.
13029
13030 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13031
13032 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13033 * inftarg.c: Update copyright year.
13034 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13035 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13036 (sparc_xfer_wcookie): New function.
13037 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13038 * Makefile.in (sparc-nat.o): Update dependencies.
13039 * config/sparc/nm-nbsd.h: Include "target.h".
13040 (NATIVE_XFER_WCOOKIE): New define.
13041 (sparc_xfer_wcookie): New prototype.
13042
13043 2004-02-04 Andrew Cagney <cagney@redhat.com>
13044
13045 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13046 SYSCALL_TRAP function.
13047 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13048
13049 2004-02-04 Andrew Cagney <cagney@redhat.com>
13050 Daniel Jacobowitz <drow@mvista.com>
13051
13052 * objfiles.h: Delete comments refering to inside_entry_func and
13053 DEPRECATED_FRAME_CHAIN_VALID.
13054 * defs.h (inside_entry_func): Update prototype..
13055 * blockframe.c (inside_entry_func): Rename to
13056 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13057 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13058
13059 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13060
13061 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13062 outside of #ifdef SOLIB_ADD region.
13063 (do_restore_lang_radix_cleanup): Ditto.
13064 (resolve_pending_breakpoint): Ditto.
13065
13066 2004-02-03 Andrew Cagney <cagney@redhat.com>
13067
13068 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13069 (process_note_abi_tag_sections): Delete unused function.
13070 (ia64_read_fp): Delete unused function.
13071 (gdbarch_extract_struct_value_address): Delete declaration.
13072
13073 2004-02-02 Andrew Cagney <cagney@redhat.com>
13074
13075 * vax-tdep.c (vax_frame_chain): Delete call to
13076 deprecated_inside_entry_file.
13077 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13078
13079 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13080
13081 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13082 column that's "empty" or "same value" when eliminating REG_RA
13083 rules.
13084
13085 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13086
13087 * NEWS: Add information about new pending breakpoint support.
13088
13089 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13090
13091 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13092 and pending fields for pending breakpoint support.
13093 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13094 (condition_command): Only parse condition if not a pending
13095 breakpoint.
13096 (print_one_breakpoint): Add support for pending breakpoints.
13097 (describe_other_breakpoints): Add checks to verify we are not
13098 dealing with pending breakpoints.
13099 (check_duplicates): Don't check pending breakpoints.
13100 (set_raw_breakpoint): Initialize pending flag.
13101 (do_restore_lang_radix_cleanup): New cleanup routine.
13102 (resolve_pending_breakpoint): New function.
13103 (re_enable_breakpoints_in_shlibs): Try and resolve any
13104 pending breakpoints via resolve_pending_breakpoint.
13105 (mention): Add pending breakpoint support.
13106 (parse_breakpoint_sals): Add new parameter to pass to
13107 decode_line_1 to indicate silent errors when files or functions
13108 are not found. Change all callers.
13109 (do_captured_parse_breakpoint): New function.
13110 (break_command_1): Change prototype to return an rc value and to
13111 take an optional pending breakpoint pointer. Support creating
13112 a pending breakpoint if a "not found" form of error occurs when
13113 parsing the breakpoint. Also support resolving an existing pending
13114 breakpoint and be silent if the resolution fails.
13115 (create_breakpoints): Change prototype to take pending breakpoint
13116 pointer. When resolving a pending breakpoint, use the new pointer
13117 to provide a conditional or commands added by the end-user.
13118 (delete_breakpoint): Add appropriate check for pending.
13119 (breakpoint_re_set_one): Ditto.
13120 (do_enable_breakpoint): Ditto.
13121
13122 2004-02-02 David Carlton <carlton@kealia.com>
13123
13124 * valops.c (enum oload_classification): New.
13125 (find_overload_match): Break implementation into separate
13126 functions; delete #if 0'd code; look for symbols within
13127 namespaces.
13128 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13129 (find_oload_champ,oload_method_static,classify_oload_match): New.
13130 * cp-support.h: Add declaration for cp_func_name; update
13131 declaration for make_symbol_overload_list.
13132 * cp-support.c (cp_func_name): New.
13133 (overload_list_add_symbol): Fix comment, use
13134 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13135 (make_symbol_overload_list): Take a function name and a namespace
13136 instead of a symbol; change implementation.
13137 (make_symbol_overload_list_using): New.
13138 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13139
13140 2004-02-02 Fred Fish <fnf@redhat.com>
13141
13142 * main.c (gdb_stdtarg): Move definition to group with other
13143 gdb_stdtarg definitions and update copyright years.
13144 * remote-sim.c (gdb_os_write_stderr): Write output to
13145 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13146 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13147 gdb_stderr stream and update copyright years.
13148
13149 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13150
13151 * Makefile.in (mips-linux-nat.o): Update dependencies.
13152 * mips-linux-nat.c: Include mips-tdep.h.
13153
13154 2004-02-01 Roland McGrath <roland@redhat.com>
13155
13156 * sol-thread.c (sol_thread_xfer_partial): New function.
13157 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13158 (init_sol_core_ops): Likewise.
13159
13160 * procfs.c (procfs_xfer_partial): New function.
13161 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13162 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13163
13164 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13165 procfs_xfer_auxv function.
13166
13167 * procfs.c (procfs_make_note_section): If we can read
13168 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13169 * linux-proc.c (linux_make_note_section): Likewise.
13170
13171 * auxv.h: New file.
13172 * auxv.c: New file.
13173 * Makefile.in (auxv_h): New variable.
13174 (COMMON_OBS): Add auxv.o here.
13175 (auxv.o): New target.
13176
13177 * corelow.c (core_xfer_partial): New function.
13178 (init_core_ops): Use it for core_ops.to_xfer_partial.
13179
13180 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13181 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13182 macro if that is defined.
13183
13184 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13185
13186 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13187 and check the specified thread for each breakpoint.
13188 * breakpoint.h (bpstat_stop_status): Update prototype.
13189 * infrun.c (handle_inferior_event): Update calls to
13190 bpstat_stop_status.
13191
13192 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13193
13194 * Makefile.in (cli-cmds.o): Add $(readline_h).
13195
13196 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13197
13198 * cli/cli-cmds.c: Include readline.h.
13199 (complete_command): Pass the start of the last word to
13200 complete_line.
13201
13202 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13203
13204 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13205 argument, and change first argument to a CORE_ADDR.
13206 * breakpoint.h (bpstat_stop_status): Update prototype.
13207 * infrun.c (adjust_pc_after_break): Add a new comment.
13208 (handle_inferior_event): Update calls to bpstat_stop_status.
13209
13210 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13211
13212 * breakpoint.h: Update copyright years.
13213
13214 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13215
13216 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13217 (bpstat_stop_status): Don't decrement PC.
13218 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13219 prototype.
13220 * infrun.c (adjust_pc_after_break): New function.
13221 (handle_inferior_event): Call it, early. Remove later references
13222 to DECR_PC_AFTER_BREAK.
13223 (normal_stop): Add commentary.
13224
13225 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13226
13227 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13228 2004-01-27 double-free fix.
13229
13230 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13231
13232 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13233 (sparc32_frame_prev_register): Handle StackGhost.
13234 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13235
13236 2004-01-29 Roland McGrath <roland@redhat.com>
13237
13238 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13239 * configure: Regenerated.
13240
13241 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13242 * Makefile.in (procfs.o): Add dep.
13243
13244 2004-01-28 Andrew Cagney <cagney@redhat.com>
13245
13246 * tui/tui-stack.h: Update copyright.
13247 (struct frame_info): Add opaque declaration.
13248 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13249 (tui_show_locator_content): Rename tuiShowLocatorContent.
13250 (tui_show_frame_info): Rename tuiShowFrameInfo.
13251 * tui/tui-stack.c: Update copyright. Update references.
13252 * tui/tui-winsource.c: Update references.
13253 * tui/tui-win.c: Update references.
13254 * tui/tui-layout.c: Update references.
13255 * tui/tui-hooks.c: Update copyright, update references.
13256 * tui/tui.c: Update copyright, update references.
13257 * tui/tui-disasm.c: Update references.
13258
13259 2004-01-28 David Carlton <carlton@kealia.com>
13260
13261 * dwarf2read.c (add_partial_structure): Use demangled name if
13262 namespace equals "".
13263
13264 2004-01-27 Jim Blandy <jimb@redhat.com>
13265
13266 Clean up misapplied patch:
13267 * dwarf2read.c (determine_prefix): Change one of the two forward
13268 declarations for 'determine_prefix_aux' to a declaration for this.
13269 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13270 argument to 'die_specification'.
13271
13272 * dwarf2read.c (read_func_scope): Re-indent comment.
13273
13274 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13275
13276 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13277 b->exp to NULL after freeing so that error during re-parsing or
13278 evaluation of expressions associated with breakpoint don't
13279 eventually lead to re-freeing of storage.
13280 Committed by Andrew Cagney.
13281
13282 2004-01-27 Andrew Cagney <cagney@redhat.com>
13283
13284 * source.c (ambiguous_line_spec): Delete undefined declaration.
13285 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13286 (m32r_set_server_address, m32r_set_download_path): Ditto.
13287 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13288
13289 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13290
13291 * dwarf2read.c: Update calls to changed and renamed functions, and
13292 references to moved variables.
13293
13294 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13295 language, language_defn, list_in_scope, and ftypes members.
13296 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13297 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13298 (baseaddr): Remove globals.
13299
13300 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13301 (set_cu_language, die_is_declaration, die_specification)
13302 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13303 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13304 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13305 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13306
13307 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13308 cu.list_in_scope. Don't initialize cu_header_offset.
13309 (add_partial_symbol): Add local baseaddr.
13310 (psymtab_to_symtab_1): Add local baseaddr. Use
13311 objfile->section_offsets for consistency. Don't initialize
13312 cu_header_offset; do initialize cu.header.offset and
13313 cu.list_in_scope.
13314 (read_file_scope, read_func_scope, read_lexical_block_scope)
13315 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13316
13317 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13318
13319 * PROBLEMS: Add gdb/1516.
13320
13321 2003-12-29 Robert Millan <robertmh@gnu.org>
13322
13323 Patch committed by Andrw Cagney.
13324 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13325 * configure.tgt: Match knetbsd*-gnu.
13326
13327 2004-01-26 Andrew Cagney <cagney@redhat.com>
13328
13329 * breakpoint.c (catch_command_1): Delete #ifdef code.
13330 (catch_fork_command_1): Delete #ifdef wrapper.
13331 (catch_exec_command_1): Ditto.
13332 (catch_load_command_1): Ditto.
13333 (catch_unload_command_1): Ditto.
13334
13335 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13336 (catch_breakpoint): Delete #if0ed function.
13337 (disable_catch_breakpoint): Ditto.
13338 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13339 (disable_catch, enable_catch, delete_catch): Ditto.
13340
13341 2004-01-26 Andrew Cagney <cagney@redhat.com>
13342
13343 * remote.c (echo_check, quit_flag): Delete variables.
13344 (cisco_kernel_mode): Delete variable.
13345 (minitelnet_return, tty_input, escape_count): Delete variables.
13346 (remote_cisco_mode): Delete variable.
13347 (remote_cisco_open, remote_cisco_close): Delete function.
13348 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13349 (init_remote_cisco_ops): Delete function.
13350 (_initialize_remote): Do not install "remote cisco" code.
13351 (read_frame): Delete cisco specific code.
13352 (remote_info_process): Delete function.
13353 (remote_wait): Delete cisco specific code.
13354 (remote_cisco_section_offsets): Delete function.
13355 (remote_cisco_objfile_relocate): Delete function.
13356 (remote_async_wait): Delete cisco specific code.
13357 (minitelnet, readtty, readsocket): Delete function.
13358
13359 2004-01-26 Andrew Cagney <cagney@redhat.com>
13360
13361 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13362 comments mentioning extract_returned_value_address.
13363 * infcmd.c (print_return_value): Update. Add comments on
13364 extract_returned_value_address.
13365 * stack.c (return_command): Add comments on
13366 extract_returned_value_address.
13367 * values.c: Update comment.
13368 * m32r-tdep.c: Update comment.
13369 * sparc-tdep.c: Update comment.
13370 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13372 * sh64-tdep.c (sh64_gdbarch_init): Update.
13373 * sh-tdep.c (sh_gdbarch_init): Update.
13374 * s390-tdep.c (s390_gdbarch_init): Update.
13375 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13376 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13377 * m68k-tdep.c (m68k_gdbarch_init): Update.
13378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13379 * m32r-tdep.c (m32r_gdbarch_init): Update.
13380 * ia64-tdep.c (ia64_gdbarch_init): Update.
13381 * h8300-tdep.c (h8300_gdbarch_init): Update.
13382 * frv-tdep.c (frv_gdbarch_init): Update.
13383 * arm-tdep.c (arm_gdbarch_init): Update.
13384 * alpha-tdep.c (alpha_gdbarch_init): Update.
13385
13386 2004-01-26 Andrew Cagney <cagney@redhat.com>
13387
13388 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13389 SYMBOL_LOCATION_FUNCS
13390 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13391 "struct symbol_ops".
13392 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13393 type to "struct symbol_ops".
13394 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13395 (struct symbol): Replace ".aux_value.loc.funcs" and
13396 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13397 (SYMBOL_OBJFILE): Delete macro.
13398 (SYMBOL_LOCATION_FUNCS): Delete macro.
13399 (SYMBOL_LOCATION_BATON): Update.
13400 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13401 intead of SYMBOL_LOCATION_FUNCS.
13402 * ax-gdb.c (gen_var_ref): Ditto.
13403 * printcmd.c (address_info): Ditto.
13404 * findvar.c (read_var_value): Ditto.
13405 (symbol_read_needs_frame): Ditto.
13406
13407 2004-01-26 Andrew Cagney <cagney@redhat.com>
13408
13409 * dwarf2read.c (read_func_scope): Document frame-base hack.
13410
13411 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13412
13413 * infcmd.c (print_return_value): Plug memory leak; delete
13414 ui_stream object. Rename argument `structure_return' to
13415 `struct_return'.
13416
13417 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13418
13419 * infcmd.c (print_return_value): Wrap long lines.
13420 (finish_command_continuation, finish_command): Remove unused
13421 variable `funcaddr'. Fix some coding-standards problems.
13422
13423 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13424 SECT_SIZE is large enough, not whether it's exactly the right size.
13425 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13426 TDEP->fpregset to zero.
13427
13428 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13429 floating-point registers for traditional NetBSD core files.
13430 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13431 TDEP->sizeof_fpregset here.
13432
13433 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13434
13435 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13436 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13437 function with code split out from
13438 sparc32nbsd_sigcontext_frame_cache.
13439 (sparc32nbsd_sigcontext_frame_cache): Use
13440 sparc32nbsd_sigcontext_saved_regs.
13441 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13442 OpenBSD.
13443 * sparcobsd-tdep.c: New file.
13444 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13445 (sparcobsd-tdep.o): New dependency.
13446 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13447 * config/sparc/obsd.mt: New file.
13448
13449 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13450 TDEP->fpregset to be initialized to enable core file register
13451 sets.
13452
13453 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13454
13455 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13456 Add opaque declarations.
13457 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13458 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13459 function with code split out from
13460 sparc64nbsd_sigcontext_frame_cache.
13461 (sparc64nbsd_sigcontext_frame_cache): Use
13462 sparc64nbsd_sigcontext_saved_regs.
13463 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13464 OpenBSD.
13465 * sparc64obsd-tdep.c: New file.
13466 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13467 (sparc64obsd-tdep.o): New dependency.
13468 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13469 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13470 * config/sparc/obsd64.mt: New file.
13471
13472 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13473 read the instruction at PC.
13474
13475 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13476 value of GDB_OSABI_DEFAULT.
13477 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13478 instead of GDB_OSABI_NETBSD_AOUT.
13479
13480 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13481
13482 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13483 copyright.
13484
13485 2004-01-23 Andrew Cagney <cagney@redhat.com>
13486
13487 * printcmd.c (display_command): Replace tui_set_display call with
13488 tui_set_layout_for_display_command.
13489 * tui/tui.h (enum tui_win_type): Define.
13490 (tui_set_layout): Delete declaration.
13491 (tui_set_layout_for_display_command): Rename set_tui_layout.
13492 * tui/tui-data.h (enum tui_layout_type): Define.
13493 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13494 "tui.h".
13495 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13496 (tui_default_win_height): Rename tuiDefaultWinHeight.
13497 (tui_default_win_viewport_height): Rename
13498 tuiDefaultWinViewportHeight.
13499 (tui_set_layout): RenametuiSetLayout.
13500 * tui/tui-layout.c: Update references.
13501 * tui/tui.c: Update references.
13502 * tui/tui-disasm.c: Update references.
13503
13504 2004-01-23 David Carlton <carlton@kealia.com>
13505
13506 Partial workaround for PR c++/1511:
13507 * cp-namespace.c: Include frame.h.
13508 (cp_lookup_transparent_type): New
13509 (cp_lookup_transparent_type_loop): New.
13510 * cp-support.h: Declare cp_lookup_transparent_type.
13511 * symtab.c (basic_lookup_transparent_type): Renamed from
13512 lookup_transparent_type.
13513 (lookup_transparent_type): Replace old body by a call to
13514 current_language->la_lookup_transparent_type.
13515 * symtab.h: Update copyright. Declare
13516 basic_lookup_transparent_type.
13517 * language.h: Update copyright.
13518 (struct language_defn): Add la_lookup_transparent_type.
13519 * language.c: Update copyright.
13520 (unknown_language_defn): Add basic_lookup_transparent_type.
13521 (auto_language_defn): Add basic_lookup_transparent_type.
13522 (local_language_defn): Add basic_lookup_transparent_type.
13523 * ada-lang.c: Update copyright.
13524 (ada_language_defn): Add basic_lookup_transparent_type.
13525 * c-lang.c: Update copyright.
13526 (c_language_defn): Add basic_lookup_transparent_type.
13527 (cplus_language_defn): Add basic_lookup_transparent_type.
13528 (asm_language_defn): Add basic_lookup_transparent_type.
13529 (minimal_language_defn): Add basic_lookup_transparent_type.
13530 * f-lang.c: Update copyright.
13531 (f_language_defn): Add basic_lookup_transparent_type.
13532 * jv-lang.c: Update copyright.
13533 (java_language_defn): Add basic_lookup_transparent_type.
13534 * m2-lang.c: Update copyright.
13535 (m2_language_defn): Add basic_lookup_transparent_type.
13536 * objc-lang.c: Update copyright.
13537 (objc_language_defn): Add basic_lookup_transparent_type.
13538 * p-lang.c: Update copyright.
13539 (p_language_defn): Add basic_lookup_transparent_type.
13540 * scm-lang.c: Update copyright.
13541 (scm_language_defn): Add basic_lookup_transparent_type.
13542 * Makefile.in (cp-namespace.o): Depend on frame.h.
13543
13544 2004-01-23 David Carlton <carlton@kealia.com>
13545
13546 Patch for PR c++/1520:
13547 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13548 properly if we have a specification die.
13549 (determine_prefix_aux): Rename from determine_prefix.
13550 (determine_prefix): Like the old determine_prefix, but never
13551 returns NULL.
13552
13553 2004-01-23 Theodore A. Roth <troth@openavr.org>
13554
13555 * avr-tdep.c: Update copyright.
13556 (avr_iaddr_p): Delete unused function.
13557 (avr_saddr_p): Delete unused function.
13558
13559 2004-01-23 David Carlton <carlton@kealia.com>
13560
13561 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13562 Fix for PR symtab/1534.
13563
13564 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13565
13566 * NEWS (New native configurations): Mention OpenBSD/sparc and
13567 OpenBSD/sparc64.
13568 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13569 * configure.host: Likewise.
13570 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13571 handler for OpenBSD.
13572 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13573
13574 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13575
13576 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13577 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13578
13579 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13580 * cli/cli-cmds.c (shell_escape): Likewise.
13581
13582 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13583 OpenBSD .note.openbsd.ident sections.
13584
13585 2004-01-22 David Carlton <carlton@kealia.com>
13586
13587 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13588 get_scope_pc_bounds.
13589 (read_file_scope): Ditto.
13590 (get_scope_pc_bounds): New function, produced by extracting code
13591 from the above two functions, consolidating it, and adding support
13592 for DW_TAG_namespace.
13593
13594 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13595
13596 * osabi.c (MAX_NOTESZ): New define.
13597 (check_note): New function.
13598 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13599 check_note.
13600
13601 2004-01-21 Roland McGrath <roland@redhat.com>
13602
13603 * MAINTAINERS (write after approval): Add myself.
13604
13605 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13606
13607 * utils.c (init_page_info): Move declarations of `rows' and
13608 `cols' before the __GO32__-specific code. Move the closing brace
13609 outside the #ifdef __GO32__..#endif block.
13610 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13611
13612 2004-01-21 Paul Brook <paul@codesourcery.com>
13613
13614 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13615 BPSTAT_WHAT_CHECK_SHLIBS.
13616
13617 2004-01-21 Paul Brook <paul@codesourcery.com>
13618
13619 * MAINTAINERS: Add myself to write-after-approval.
13620
13621 2004-01-20 Andrew Cagney <cagney@redhat.com>
13622
13623 * ax-gdb.c (print_axs_value): Delete unused function.
13624 * jv-lang.c (java_lookup_type): Delete unused function.
13625 * cli/cli-dump.c (dump_filetype): Delete unused function.
13626 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13627 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13628 (mips_getstring): Delete unused function.
13629 (pmon_insert_breakpoint): Delete #if0ed function.
13630 (PMON_MAX_BP): Delete #if0ed MACRO.
13631 (mips_pmon_bp_info): Delete #if0ed variable.
13632 (pmon_remove_breakpoint): Delete #if0ed function.
13633 * monitor.c (monitor_write_even_block): Delete unused function.
13634 (monitor_write_memory_block): Delete #if0ed code.
13635 * dink32-rom.c (dink32_load): Delete unused function.
13636 (_initialize_dink32_rom): Delete #if0ed code.
13637 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13638
13639 * tui/tui-command.c: Update references.
13640 * tui/tui-io.c: Update references.
13641 * tui/tui-command.h: Update copyright.
13642 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13643
13644 * source.c (ambiguous_line_spec): Delete never-defined function.
13645 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13646 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13647 * cli/cli-cmds.c (validate_comname): Ditto.
13648
13649 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13650 "tui-data.h".
13651 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13652 (tui_show_disassem): Rename tuiShowDisassem.
13653 (tui_show_disassem_and_update_source): Rename
13654 tuiVerticalDisassemScroll.
13655 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13656 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13657 * tui/tui.h: Update copyright.
13658 (enum tui_status): Define.
13659 * tui/tui-data.h (enum tui_scroll_direction): Define.
13660 * tui/tui-disasm.c: Update copyright. Update references.
13661 * tui/tui-winsource.c: Update copyright. Update references.
13662 * tui/tui-win.c: Update references.
13663 * tui/tui-layout.c: Update references.
13664
13665 2004-01-20 Andrew Cagney <cagney@redhat.com>
13666
13667 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13668 sym2 to start of block.
13669
13670 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13671
13672 * MAINTAINERS: Delete mmalloc.
13673 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13674 * NEWS: Mention removal of --with-malloc.
13675 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13676 * config.in: Regenerate.
13677 * configure: Regenerate.
13678 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13679 USE_MMALLOC, MMCHECK_FORCE.
13680 * gdbinit.in: Remove mmalloc.
13681 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13682 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13683 * config/i386/go32.mh: Likewise.
13684 * config/i386/interix.mh: Likewise.
13685 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13686
13687 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13688
13689 * linespec.c (decode_variable, symtab_from_filename): Call
13690 error_silent with error message instead of throwing an exception
13691 directly.
13692 * defs.h (error_silent, error_output_message): Add prototypes.
13693 (catch_exceptions_with_msg): Ditto.
13694 * utils.c (error_silent, error_output_message): New functions.
13695 * top.c (catch_exceptions_with_msg): New function.
13696
13697 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13698
13699 * mi/mi-cmds.h (enum print_values): Add definition.
13700
13701 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13702 type and value for simple data types and just the name and type
13703 for complex ones, if required.
13704
13705 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13706 children, if required.
13707
13708 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13709
13710 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13711 unused declarations.
13712
13713 2004-01-19 Andrew Cagney <cagney@redhat.com>
13714
13715 * top.h (mapped_symbol_files): Delete declaration.
13716 * main.c (captured_main): Delete option "m" and "mapped".
13717 * objfiles.c (mapped_symbol_files): Delete variable.
13718 * symfile.c (symbol_file_command): Delete mmap code.
13719 (symbol_file_add_with_addrs_or_offsets): Ditto.
13720 (add_symbol_file_command, reread_separate_symbols): Ditto.
13721 * objfiles.h (OBJF_MAPPED): Delete.
13722 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13723 (free_objfile) [USE_MMALLOC]: Ditto.
13724 (open_existing_mapped_file): Delete function.
13725 (open_mapped_file): Delete function.
13726 (map_to_file): Delete function.
13727
13728 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13729
13730 * infrun.c (step_into_function): Account for possible breakpoint
13731 adjustment when computing ``stop_func_start''.
13732
13733 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13734
13735 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13736 the region size against the size of a pointer, not the size of
13737 a register as given by DEPRECATED_REGISTER_SIZE.
13738
13739 2004-01-19 Andrew Cagney <cagney@redhat.com>
13740
13741 * tui/tui-regs.h: Include "tui-data.h".
13742 (tuiFirstRegElementNoInLine): Delete declaration.
13743 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13744 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13745 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13746 (tui_calculate_regs_column_count): Rename
13747 tuiCalculateRegsColumnCount.
13748 (tui_check_register_values): Rename tuiCheckRegisterValues.
13749 (tui_show_registers): Rename tuiShowRegisters.
13750 (tui_display_registers_from_line): Rename
13751 tuiDisplayRegistersFromLine.
13752 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13753 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13754 (tui_first_reg_element_no_inline): Rename
13755 tuiFirstRegElementNoInLine.
13756 * tui/tui-data.h: Update copyright.
13757 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13758 * tui/tui-windata.c: Update copyright, update references.
13759 * tui/tui-regs.c: Update copyright, update references.
13760 * tui/tui-win.c: Update copyright, update references.
13761 * tui/tui-layout.c: Update copyright, update references.
13762
13763 2004-01-18 Andrew Cagney <cagney@redhat.com>
13764
13765 * tui/tui-io.c: Update copyright.
13766 (key_is_end_sequence, key_is_backspace): New functions.
13767 (key_is_command_char, key_is_start_sequence): New function.
13768 (tui_getc): Update references.
13769 * tui/tui-io.h: Update copyright.
13770 (m_tuiStartNewLine): Delete macro.
13771 (m_isBackspace, m_isDeleteChar): Delete macros.
13772 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13773 (m_isNextPage, m_isPrevPage): Delete macros.
13774 (m_isLeftArrow, m_isRightArrow): Delete macros.
13775 (m_isXdbStyleCommandChar): Delete macro.
13776 (key_is_start_sequence): Declare, replace m_isStartSequence.
13777 (key_is_end_sequence): Declare, replace m_isEndSequence.
13778 (key_is_backspace): Declare ,replace m_isBackspace.
13779 (key_is_command_char): Declare, replace m_isCommandChar.
13780 * tui/tui-command.c: Update copyright.
13781 (tuiDispatchCtrlChar): Update references.
13782
13783 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13784 tuiSourceWin.h.
13785
13786 * tui/tui-command.c: Rename tui/tuiCommand.c.
13787 * tui/tui-command.h: Rename tui/tuiCommand.h.
13788 * tui/tui-data.c: Rename tui/tuiData.c.
13789 * tui/tui-data.h: Rename tui/tuiData.h.
13790 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13791 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13792 * tui/tui-io.c: Rename tui/tuiIO.c.
13793 * tui/tui-io.h: Rename tui/tuiIO.h.
13794 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13795 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13796 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13797 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13798 * tui/tui-source.c: Rename tui/tuiSource.c.
13799 * tui/tui-source.h: Rename tui/tuiSource.h.
13800 * tui/tui-stack.c: Rename tui/tuiStack.c.
13801 * tui/tui-stack.h: Rename tui/tuiStack.h.
13802 * tui/tui-win.c: Rename tui/tuiWin.c.
13803 * tui/tui-win.h: Rename tui/tuiWin.h.
13804 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13805 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13806 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13807 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13808 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13809 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13810 * tui/tui-file.c: Update includes.
13811 * tui/tui-hooks.c: Update includes.
13812 * tui/tui-interp.c: Update includes.
13813 * tui/tui.c: Update includes.
13814 * Makefile.in: Update all tui/ dependencies.
13815 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13816
13817 * Makefile.in: Update copyright. Update dependencies.
13818
13819 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13820 problem.
13821
13822 2004-01-18 Andrew Cagney <cagney@redhat.com>
13823
13824 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13825 instead of register_gdbarch_init.
13826
13827 * remote-sds.c (tohex): Delete unused function. Update copyright.
13828 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13829 * v850-tdep.c (v850_register_virtual_size): Ditto.
13830 * target.c (normal_target_post_startup_inferior): Ditto.
13831 * source.c (ambiguous_line_spec): Ditto.
13832 * remote.c (adapt_remote_get_threadinfo): Ditto.
13833 * mi/mi-out.c (out_field_fmt): Ditto.
13834 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13835 (output_control_change_notification): Ditto.
13836 * m68k-tdep.c (m68k_register_byte): Ditto.
13837 (m68k_remote_breakpoint_from_pc): Ditto.
13838 * ui-out.c (init_ui_out_state): Delete unused declaration.
13839 * stabsread.c (search_value): Ditto.
13840 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13841 * maint.c (print_section_table): Ditto.
13842 * infrun.c (set_follow_fork_mode_command): Ditto.
13843
13844 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13845
13846 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13847 DW_CFA_def_cfa_exporession. Add support for
13848 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13849 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13850
13851 2004-01-18 Andrew Cagney <cagney@redhat.com>
13852
13853 * ocd.c: Update copyright.
13854 (bdm_read_register_command): Delete unused function.
13855 (_initialize_remote_ocd): Delete commented out reference.
13856 (get_quoted_char, reset_packet): Delete #if0ed function.
13857 (output_packet, put_quoted_char): Delete #if0ed function.
13858 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13859 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13860 (BDM_BREAKPOINT): Delete #if0ed macro.
13861 (remote_timeout): Delete #if0ed variable.
13862
13863 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13864
13865 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13866 (core-sol2.o): Remove dependency.
13867 * core-sol2.c: Remove file.
13868
13869 2004-01-17 Andrew Cagney <cagney@redhat.com>
13870
13871 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13872 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13873 enums.
13874
13875 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13876
13877 * remote.c: Update copyright years.
13878
13879 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13880
13881 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13882
13883 2004-01-17 Andrew Cagney <cagney@redhat.com>
13884
13885 * mdebugread.c: Update copyright.
13886 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13887 (parse_type, parse_procedure): Ditto.
13888 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13889
13890 * cris-tdep.c (cris_store_struct_return): Put back accidently
13891 deleted function.
13892
13893 * gdbarch.sh: Update copyright year.
13894 * gdbarch.h, gdbarch.c: Re-generate.
13895
13896 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13897
13898 Suggested by George Anzinger.
13899 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13900 correct stack offset. Include unknown opcode numbers in the error
13901 message.
13902
13903 2004-01-17 Andrew Cagney <cagney@redhat.com>
13904
13905 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13906 extract_struct_value_address, i386 does not set it.
13907 * sparc64-tdep.c (sparc64_init_abi): Do not set
13908 extract_struct_value_address, never called.
13909 (sparc64_extract_struct_value_address): Delete function.
13910 * m68hc11-tdep.c: Update copyright.
13911 (m68hc11_gdbarch_init): Delete redundant assignment of
13912 extract_struct_value_address.
13913 * i386-tdep.c: Update copyright.
13914 (i386_gdbarch_init): Do not set extract_struct_value_address,
13915 never called.
13916 (i386_extract_struct_value_address): Delete function.
13917 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13918 extract_struct_value_address, never called.
13919 (sparc32_extract_struct_value_address): #if 0 function. Add
13920 comments explaining its future.
13921
13922 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13923
13924 * arm-tdep.c (arm_write_pc): New function.
13925 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13926
13927 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13928
13929 * breakpoint.c (must_shift_inst_regs): Delete.
13930 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13931 and SHIFT_INST_REGS.
13932 * infcmd.c (step_1, step_1_continuation): Delete references to
13933 SHIFT_INST_REGS.
13934 * infrun.c (keep_going): Likewise.
13935 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13936 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13937
13938 2004-01-17 Andrew Cagney <cagney@redhat.com>
13939
13940 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13941 * gdbarch.h, gdbarch.c: Re-generate.
13942 * infcmd.c (print_return_value): Delete reference to
13943 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13944
13945 * cris-tdep.c (cris_gdbarch_init): Do not set
13946 deprecated_extract_struct_value_address.
13947
13948 * xstormy16-tdep.c: Update copyright.
13949 (xstormy16_extract_struct_value_address): Update to current
13950 extract struct value address interface.
13951 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13952 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13953 current extract struct value address interface.
13954 (sh64_gdbarch_init): Set extract_struct_value_address.
13955
13956 * cris-tdep.c: Update copyright.
13957 (cris_extract_struct_value_address): Delete function.
13958 (struct_return_address): Delete variable.
13959 (cris_store_struct_return): Do not set struct_return_address.
13960
13961 * mcore-tdep.c: Update copyright.
13962 (mcore_extract_struct_value_address): Delete function. Update
13963 comments.
13964 (mcore_gdbarch_init): Update.
13965 * mn10300-tdep.c: Update copyright.
13966 (mn10300_extract_struct_value_address): Delete function.
13967 (mn10300_gdbarch_init): Update.
13968 * v850-tdep.c: Update copyright.
13969 (v850_extract_struct_value_address): Delete.
13970 (v850_gdbarch_init): Update.
13971 * ns32k-tdep.c: Update copyright.
13972 (ns32k_extract_struct_value_address): Delete.
13973 (ns32k_gdbarch_init): Update.
13974 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13975 (hppa_gdbarch_init): Update.
13976 * vax-tdep.c: Update copyright.
13977 (vax_extract_struct_value_address): Delete.
13978 (vax_gdbarch_init): Update.
13979
13980 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13981 * gdbarch.h, gdbarch.c: Re-generate.
13982 * procfs.c (procfs_fetch_registers): Delete reference to
13983 DEPRECATED_NPC_REGNUM.
13984 (procfs_store_registers): Ditto.
13985 * regcache.c (generic_target_write_pc): Simplify.
13986 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13987
13988 * core-sol2.c (fetch_core_registers): Replace
13989 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13990
13991 * hppa-tdep.c: Update copyright year.
13992 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13993 NPC_REGNUM.
13994 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13995
13996 * mips-tdep.c (mips_write_pc): New function.
13997 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13998 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13999 (mips_find_saved_regs, mips_software_single_step: Ditto.
14000 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14001 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14002
14003 2004-01-17 Andrew Cagney <cagney@redhat.com>
14004
14005 * mips-tdep.c: Re-indent. Group functions by ABI.
14006
14007 2004-01-17 Andrew Cagney <cagney@redhat.com>
14008
14009 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14010 * gdbarch.c: Re-generate.
14011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14012 DECR_PC_AFTER_BREAK to zero.
14013 * vax-tdep.c (vax_gdbarch_init): Ditto.
14014 * v850-tdep.c (v850_gdbarch_init): Ditto.
14015 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14016 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14017 * sh-tdep.c (sh_gdbarch_init): Ditto.
14018 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14019 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14020 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14021 * mips-tdep.c (mips_gdbarch_init): Ditto.
14022 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14024 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14025 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14026 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14027 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14028 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14029 * frv-tdep.c (frv_gdbarch_init): Ditto.
14030 * cris-tdep.c (cris_gdbarch_init): Ditto.
14031 * avr-tdep.c (avr_gdbarch_init): Ditto.
14032 * arm-tdep.c (arm_gdbarch_init): Ditto.
14033 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14034
14035 2004-01-17 J. Brobecker <brobecker@gnat.com>
14036
14037 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14038 Delete, no longer used.
14039 (read_subrange_type): New function, mostly extracted from
14040 read_array_type().
14041 (read_array_type): Replace extracted code by call to
14042 read_subrange_type().
14043 (dwarf2_get_attr_constant_value): New function.
14044 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14045 (add_partial_symbol): Likewise.
14046 (process_die): Likewise.
14047 (new_symbol): Likewise.
14048 (read_type_die): Likewise.
14049
14050 2004-01-16 Andrew Cagney <cagney@redhat.com>
14051
14052 * symfile.c: Update copyright year.
14053 (compare_symbols): Delete unused function.
14054 * stabsread.c: Update copyright year.
14055 (lrs_general_complaint): Delete unused function.
14056 (ref_search_value): Ditto.
14057 (get_substring): Delete declaration.
14058 * sh64-tdep.c: Update copyright year.
14059 (sh64_get_gdb_regnum): Delete unused function.
14060 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14061 Delete unused function.
14062
14063 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14064
14065 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14066 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14067
14068 2004-01-16 Andrew Cagney <cagney@redhat.com>
14069
14070 Changes from Peter Schauer.
14071 * rs6000-tdep.c: Update copyright year.
14072 (rs6000_push_dummy_call): Update the stack pointer before
14073 accessing the corresponding stack region.
14074 * rs6000-nat.c: Update copyright year.
14075 (set_host_arch): Set "info.abfd" to "exec_bfd".
14076
14077 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14078
14079 * blockframe.c: Update copyright year.
14080 (inside_entry_func): Don't treat a zero PC specially.
14081
14082 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14083
14084 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14085 variable.
14086 (gcore_create_callback): Ditto. Skip any memory segment that has
14087 no permissions set.
14088
14089 2004-01-14 David Carlton <carlton@kealia.com>
14090
14091 Change symbols for C++ nested types to contain the fully qualified
14092 name, if possible. (At least in the DWARF-2 case.) Partial fix
14093 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14094 c++/895.
14095 * c-exp.y (qualified_type): Handle types nested within classes.
14096 * cp-namespace.c: Update comments.
14097 (cp_set_block_scope): Delete #if 0.
14098 (cp_lookup_nested_type): Handle types nested within classes.
14099 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14100 when appropriate.
14101 (add_partial_symbol): Add the name of the enclosing namespace to
14102 types.
14103 (pdi_needs_namespace): New.
14104 (add_partial_namespace): Tweak comment.
14105 (add_partial_structure): New.
14106 (psymtab_to_symtab_1): Initialize processing_current_prefix
14107 here...
14108 (process_die): instead of here.
14109 (read_structure_scope): Try to figure out the name of the class or
14110 namespace that the structure might be defined within.
14111 (read_enumeration): Generate fully-qualified names, if possible.
14112 (read_namespace): Don't set name to NULL.
14113 (die_specification): New.
14114 (new_symbol): Generate fully-qualified names for types.
14115 (read_type_die): Determine appropriate prefix.
14116 (determine_prefix): New.
14117 (typename_concat): New.
14118 (class_name): New.
14119 * valops.c (value_aggregate_elt): Pass NOSIDE to
14120 value_struct_elt_for_reference.
14121 (value_struct_elt_for_reference): Make static, add NOSIDE
14122 parameter, call value_maybe_namespace_elt as a last resort.
14123 (value_namespace_elt): Break out code into
14124 value_maybe_namespace_elt.
14125 (value_maybe_namespace_elt): New.
14126
14127 2004-01-12 Andrew Cagney <cagney@redhat.com>
14128
14129 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14130 cooked floating-point registers.
14131 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14132 and value_to_register.
14133
14134 2004-01-13 Andrew Cagney <cagney@redhat.com>
14135
14136 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14137 * gdbarch.c: Re-generate.
14138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14139 FUNCTION_START_OFFSET.
14140 * v850-tdep.c (v850_gdbarch_init): Ditto.
14141 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14142 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14143 * sh-tdep.c (sh_gdbarch_init): Ditto.
14144 * s390-tdep.c (s390_gdbarch_init): Ditto.
14145 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14146 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14148 * mips-tdep.c (mips_gdbarch_init): Ditto.
14149 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14150 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14152 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14153 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14154 * i386-tdep.c (i386_gdbarch_init): Ditto.
14155 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14156 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14157 * frv-tdep.c (frv_gdbarch_init): Ditto.
14158 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14159 * cris-tdep.c (cris_gdbarch_init): Ditto.
14160 * avr-tdep.c (avr_gdbarch_init): Ditto.
14161 * arm-tdep.c (arm_gdbarch_init): Ditto.
14162 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14163
14164 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14165
14166 * infrun.c (follow_fork_mode_ask): Remove.
14167 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14168 (follow_fork): Simplify and remove internal error for
14169 follow_fork_mode_ask.
14170 (_initialize_infrun): Update "set follow-fork-mode" help text.
14171
14172 2004-01-13 Andrew Cagney <cagney@redhat.com>
14173
14174 * configure.in: Update copyright year.
14175 (build_warnings): Add -Wunused-label.
14176 * configure: Re-generate.
14177
14178 2004-01-12 Andrew Cagney <cagney@redhat.com>
14179
14180 * exec.h (exec_ops): Make "extern".
14181
14182 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14183 the function is void.
14184 (mips_pseudo_register_write): Ditto.
14185
14186 2004-01-12 Andrew Cagney <cagney@redhat.com>
14187
14188 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14189 call. Never defined.
14190 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14191 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14192 (struct sparc_gregset, struct regcache): Ditto.
14193 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14194
14195 2004-01-12 Andrew Cagney <cagney@redhat.com>
14196
14197 * mi/ChangeLog: Delete file. Renamed to ...
14198 * mi/ChangeLog-1999-2003: New file.
14199 * tui/ChangeLog: Delete file. Renamed to ...
14200 * tui/ChangeLog-1998-2003: New file.
14201
14202 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14203
14204 * sparc64nbsd-tdep.c: Include "regset.h".
14205 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14206 Remove variables.
14207 (fetch_core_registers): Remove function.
14208 (sparc64nbsd_core_fns): Remove variable.
14209 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14210 functions.
14211 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14212 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14213 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14214
14215 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14216 sparc_extract_struct_value_address.
14217 (sparc32_gdbarch_init): Set extract_struct_value_address.
14218 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14219 function.
14220 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14221 return_value_on_stack.
14222
14223 * NEWS: Mention that %cs and %ss have been added to the AMD64
14224 configurations
14225
14226 * frame.c: Update copyright year.
14227 (get_prev_frame): Improve comment.
14228
14229 * sparc64fbsd-tdep.c: Include "regset.h".
14230 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14231 Remove variables.
14232 (fetch_core_registers): Remove function.
14233 (sparc64fbsd_core_fns): Remove variable.
14234 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14235 functions.
14236 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14237 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14238 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14239
14240 * sparcnbsd-tdep.c: Include "regset.h".
14241 (fetch_core_registers): Remove function.
14242 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14243 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14244 functions.
14245 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14246 TDEP->fpregset.
14247 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14248
14249 * sparc-tdep.h (struct regset): Provide opaque declaration.
14250 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14251 fpregset and sizeof_fpregset members.
14252 * sparc-tdep.c (struct regset): Provide opaque declaration.
14253 (sparc_regset_from_core_section): New function.
14254 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14255 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14256 Set regset_from_core_section when appropriate.
14257
14258 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14259
14260 * x86-64-tdep.c (amd64_non_pod_p): New function.
14261 (amd64_classify_aggregate): Return class memory for non-POD
14262 C++ structure types.
14263
14264 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14265 argument. Use it to reserve a register if necessary.
14266 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14267 amd64_push_arguments.
14268
14269 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14270
14271 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14272 register numbers in comments.
14273 * x86-64-tdep.h: Update copyright year.
14274 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14275 Adjust for addition of %cs and %ss.
14276 * amd64fbsd-nat.c: Update copyright year.
14277 (reg_offset): Add register offsets for %cs and %ss.
14278 * amd64fbsd-tdep.c: Update copyright year.
14279 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14280 (amd64fbsd_sc_reg_offset): Likewise.
14281 * x86-64-linux-nat.c: Update copyright year.
14282 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14283 and %ss.
14284 * amd64nbsd-nat.c: Update copyright year.
14285 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14286 * amd64nbsd-tdep.c: Update copyright year.
14287 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14288 * x86-64-linux-tdep.c: Update copyright year.
14289 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14290 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14291 * regformats/reg-x86-64.dat: Add %cs and %ss.
14292
14293 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14294 variables to prevent long lines. Update comments to reflect
14295 reality.
14296
14297 2004-01-09 David Carlton <carlton@kealia.com>
14298
14299 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14300 * dwarf2read.c (read_namespace): Pull out name-generating code
14301 into namespace_name. Rename previous_namespace to previous_prefix
14302 and processing_current_namespace to processing_current_prefix..
14303 (namespace_name): New function.
14304 (add_partial_symbol): Substitute uses of pdi->name with
14305 actual_name.
14306 * cp-support.h: Rename processing_current_namespace to
14307 processing_current_prefix.
14308 Update copyright year.
14309 * cp-namespace.c: Rename processing_current_namespace to
14310 processing_current_prefix.
14311 Update copyright year.
14312
14313 2004-01-09 Andrew Cagney <cagney@redhat.com>
14314
14315 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14316
14317 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14318
14319 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14320 complaining.
14321 (process_one_symbol): Deal with N_PATCH stabs.
14322
14323 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14324
14325 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14326 ifdeffed code.
14327 Update copyright year.
14328
14329 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14330
14331 * config/pa/tm-hppa.h: Update extern declarations for
14332 hppa32_hpux_frame_saved_pc_in_sigtramp,
14333 hppa32_hpux_frame_base_before_sigtramp, and
14334 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14335
14336 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14337
14338 * config/pa/tm-hppah.h: Update copyright years.
14339
14340 2004-01-08 Andrew Cagney <cagney@redhat.com>
14341
14342 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14343 (mips_o32_reg_struct_has_addr): Delete function.
14344 (mips_gdbarch_init): Update.
14345 (mips_extract_struct_value_address): Delete function.
14346
14347 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14348
14349 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14350 reality.
14351
14352 2004-01-07 Andrew Cagney <cagney@redhat.com>
14353
14354 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14355 architecture's elf flags (when available).
14356
14357 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14358 FPU to the start, check the MIPS FPU when looking for an old
14359 architecture.
14360 (set_mipsfpu_single_command): Update the architecture.
14361 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14362
14363 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14364 (mips_mask_address_p): Add "tdep" parameter.
14365 (show_mask_address, mips_addr_bits_remove): Update.
14366 (mips_dump_tdep): Update.
14367 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14368 (MIPS_STACK_ARGSIZE): Delete macro.
14369 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14370 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14371 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14372 (mips_dump_tdep): Update.
14373 (MIPS_SAVED_REGSIZE): Delete macro.
14374 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14375 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14376 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14377 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14378 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14379 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14380 (mips_pop_frame, return_value_location): Update.
14381 (mips_n32n64_return_value, mips_dump_tdep): Update.
14382
14383 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14384 MIPS ABI.
14385
14386 * mips-tdep.c: Update copyright.
14387 (mips_gdbarch_init): Merge two code blocks handling the register
14388 name and number layout.
14389
14390 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14391
14392 * tracepoint.c (validate_actionline): Fix segv at EOF
14393
14394 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14395
14396 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14397 properly for static fields.
14398
14399 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14400 Jason Molenda <jmolenda@apple.com>
14401
14402 * disasm.c: Update copyright to include 2004.
14403 (do_mixed_source_and_assembly): For uiout asm list
14404 and tuple cleanups, initialize to null_cleanup instead of
14405 NULL and do so prior to loop. Only reset when we close off
14406 the tuple/list. Move check for whether to close off the
14407 asm tuple/list to after dump_insns call where it will be run
14408 on each loop iteration.
14409
14410 2004-01-05 Andrew Cagney <cagney@redhat.com>
14411
14412 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14413 should be a switch case and not a label.
14414 * mips-tdep.c (mips32_next_pc): Delete unused labels
14415 "greater_equal_branch" and "less_zero_branch".
14416 * jv-valprint.c (java_print_value_fields): Delete unused label
14417 "flush_it".
14418
14419 * target.c (unpush_target): Only close a target that is in the
14420 target stack.
14421
14422 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14423
14424 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14425 address from [sp + 64] instead of %o2.
14426
14427 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14428 fixes PR backtrace/1476.
14429
14430 2004-01-05 Andrew Cagney <cagney@redhat.com>
14431
14432 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14433 move to start of file.
14434 * i386-tdep.h (struct regcache): Add opaque declaration.
14435 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14436 declaration.
14437 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14438 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14439 * win32-nat.c (fake_create_process): Use ISO C style definition.
14440 * stabsread.c (define_symbol): Delete #ifndef
14441 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14442 stabs_argument_has_addr call, macro never defined.
14443
14444 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14445
14446 * op50-rom.c: Delete.
14447 * w89k-rom.c: Delete.
14448 * Makefile.in: Remove references.
14449
14450 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14451
14452 * x86-64-tdep.c: Update copyright year.
14453 (struct amd64_register_info): Rename from x86_64_register_info.
14454 (amd64_register_info): Rename from x86_64_register_info.
14455 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14456 (amd64_register_name): Rename from x86_64_register_name.
14457 (amd64_register_type): Rename from x86_64_register_type.
14458 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14459 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14460 (amd64_dwarf_reg_to_regnum): Rename from
14461 x86_64_dwarf_reg_to_regnum.
14462 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14463 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14464 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14465 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14466 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14467 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14468 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14469 (amd64_frame_cache): Rename from x86_64_frame_cache.
14470 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14471 (amd64_frame_prev_register): Rename from
14472 x86_64_frame_prev_register.
14473 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14474 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14475 (amd64_sigtramp_frame_cache): Rename from
14476 x86_64_sigtramp_frame_cache.
14477 (amd64_sigtramp_frame_prev_register): Rename from
14478 x86_64_sigtramp_frame_prev_register.
14479 (amd64_sigtramp_frame_unwind): Rename from
14480 x86_64_sigtramp_frame_unwind.
14481 (amd64_sigtramp_frame_sniffer): Rename from
14482 x86_64_sigtramp_frame_sniffer.
14483 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14484 (amd64_frame_base): Rename from x86_64_frame_base.
14485 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14486 (amd64_frame_align): Rename from x86_64_frame_align.
14487 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14488 (amd64_regset_from_core_section): Rename from
14489 x86_64_regset_from_core_section.
14490 (x86_64_init_abi): Update comments.
14491
14492 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14493
14494 * MAINTAINERS (write after approval): Add myself.
14495
14496 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14497
14498 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14499 `float' arguments.
14500
14501 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14502
14503 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14504 such that it mentions a specific version of GCC that exhibits this
14505 bug.
14506
14507 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14508
14509 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14510 structure that has a single `float' member, store it in %f1 in
14511 addition to %f0.
14512
14513 * sparc-sol2-nat.c: Add missing '\'.
14514
14515 * sparc-tdep.c (sparc32_return_value): New function.
14516 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14517 Remove functions.
14518 (sparc32_gdbarch_init): Set return_value, don't set
14519 extract_return_value, store_return_value, use_struct_convention
14520 and return_value_on_stack.
14521
14522 * sparc-sol2-nat.c: Add missing ')'.
14523
14524 2004-01-03 J. Brobecker <brobecker@gnat.com>
14525
14526 * infrun.c (handle_step_into_function): New function.
14527 (handle_inferior_event): Extract out some code into the new
14528 function above.
14529
14530 2004-01-03 J. Brobecker <brobecker@gnat.com>
14531
14532 * infrun.c (handle_inferior_event): Move the declaration of
14533 real_stop_pc inside the if blocks where it is used.
14534
14535 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14536
14537 * sparc64-tdep.c (sparc64_16_byte_align_p)
14538 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14539 Use check_typedef to get subtypes of structures and unions.
14540 (sparc64_store_return_value): Fix calculation of the appropriate
14541 offset into VALBUF when storing a structure or union.
14542 (sparc64_return_value): New function.
14543 (sparc64_use_struct_convention): Remove function.
14544 (sparc64_init_abi): Set return_value, don't set
14545 extract_return_value, store_return_value and
14546 use_struct_convention.
14547
14548 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14549
14550 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14551 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14552 gdb/config/alpha/xm-alphaosf.h,
14553 gdb/config/powerpc/tm-ppcle-eabi.h,
14554 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14555 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14556 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14557 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14558 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14559 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14560 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14561 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14562 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14563 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14564 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14565 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14566 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14567 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14568 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14569 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14570 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14571 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14572 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14573 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14574 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14575 Remove lines for .cvsignore files.
14576
14577 2004-01-03 J. Brobecker <brobecker@gnat.com>
14578
14579 * infrun.c: Back out the previous change.
14580
14581 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14582
14583 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14584 sparc-*-sunos4* to the list of REMOVED configurations.
14585
14586 * configure.tgt: Add back sparc-*-vxworks*.
14587 * remote-vxsparc.c: Remove all includes except for "defs.h",
14588 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14589 Include "sparc-tdep.h".
14590 (SPARC_R_G1): New define.
14591 (vxsparc_gregset): New variable.
14592 (ext_format_sparc): Remove extern declaration.
14593 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14594 sparc32_supply_fpregset.
14595 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14596 sparc_collect_rwindow and sparc32_collect_fpregset.
14597 * config/sparc/tm-vxworks.h: New file, based on recently removed
14598 tm-vxsparc.h.
14599 * config/sparc/vxworks.mt: New file, based on recently removed
14600 vxworks.mt.
14601
14602 2004-01-03 J. Brobecker <brobecker@gnat.com>
14603
14604 * infrun.c (handle_step_into_function): New function.
14605 (handle_inferior_event): Extract out some code into the new
14606 function above.
14607
14608 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14609
14610 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14611 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14612 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14613 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14614 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14615 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14616 (sparc_nat_h): New variable.
14617 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14618 (tm-sun4os4.h): Remove dependency.
14619 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14620 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14621 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14622 sparc-tdep.o): Update dependencies.
14623 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14624 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14625 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14626 dependencies.
14627 * configure.host: Remove existing sparc-*-lynxos*,
14628 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14629 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14630 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14631 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14632 triplets.
14633 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14634 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14635 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14636 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14637 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14638 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14639 sparc64-*-solaris2* and sparc64-*-* triplets.
14640 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14641 "symtab.h" and "objfiles.h".
14642 (BIAS): Remove define.
14643 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14644 (X_DISP19): Remove macros.
14645 (sparc_fetch_instruction): Remove function.
14646 (struct gdbarch_tdep): Remove definition.
14647 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14648 (sparc_breakpoint_from_pc): Remove function.
14649 (struct sparc64_frame_cache): Remove definition.
14650 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14651 sparc64_unwind_pc): Remove functions.
14652 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14653 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14654 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14655 (sparc64_frame_cache): Change return type to `struct
14656 sparc_frame_cache *'. Simply call sparc_frame_cache.
14657 (sparc64_frame_this_id, sparc64_frame_prev_register,
14658 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14659 instead of `struct sparc64_frame_cache.
14660 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14661 sparc_analyze_control_transfer, sparc_software_single_step,
14662 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14663 _initialize_sparc64_tdep): Remove functions.
14664 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14665 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14666 macros.
14667 (sparc64_supply_gregset, sparc64_collect_gregset,
14668 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14669 (sparc64_init_abi): New function.
14670 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14671 inclusion guard. Include "sparc-tdep.h".
14672 (BIAS): Define.
14673 (r_tstate_offset, r_fprs_offset): New defines.
14674 (enum sparc_regnum): Remove defenition.
14675 (enum sparc64_regnum): Reformat.
14676 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14677 (sparc64_init_abi, sparc64_supply_gregset,
14678 sparc64_collect_gregset, sparc64_supply_fpregset,
14679 sparc64_collect_fpregset): New prototypes.
14680 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14681 Add extern declarations.
14682 (sparc64_sol2_init_abi): New prototype.
14683 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14684 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14685 prototypes.
14686 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14687 "sparnbsd-nat.h".
14688 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14689 functions.
14690 (_initialize_sparc64fbsd_nat): Remove initialization of
14691 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14692 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14693 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14694 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14695 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14696 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14697 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14698 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14699 (sparc64fbsd_r_y_offset): Remove variables.
14700 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14701 Make static and const.
14702 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14703 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14704 functions.
14705 (sparc64fbsd_gregset): New variable.
14706 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14707 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14708 and sparc64_supply_fpregset.
14709 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14710 (sparc64fbsd_sigtramp_frame_this_id)
14711 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14712 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14713 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14714 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14715 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14716 * sparcnbsd-tdep.c: Update copyright year. Include
14717 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14718 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14719 "value.h" and "sparcnbsd-tdep.h".
14720 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14721 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14722 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14723 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14724 defines.
14725 (sparcnbsd_gregset): New variable.
14726 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14727 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14728 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14729 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14730 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14731 variables.
14732 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14733 (sparc32nbsd_sigcontext_frame_this_id)
14734 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14735 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14736 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14737 (sparcnbsd_get_longjmp_target_32,
14738 sparcnbsd_get_longjmp_target_64): Remove functions.
14739 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14740 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14741 sparcnbsd_init_elf): Remove.
14742 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14743 (sparcnbsd_elf_init_abi): New functions.
14744 (_initialize_sparcnbsd_tdep): New prototype.
14745 (_initialize_sparnbsd_tdep): Update.
14746 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14747 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14748 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14749 * config/sparc/linux.mh: Update comment.
14750 (XM_FILE, HOST_IPC): Remove variables.
14751 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14752 sparc-linux-nat.o.
14753 * config/sparc/linux.mt: Update comment.
14754 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14755 * config/sparc/nbsd.mt: Reformat.
14756 * config/sparc/nbsd64.mh: Update comment.
14757 (NATDEPFILES): Add sparc-nat.o.
14758 * config/sparc/nbsd64.mt: Update comment.
14759 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14760 (TM_FILE): Set to tm-nbsd.h.
14761 * config/sparc/nbsdelf.mh: Update comment.
14762 (NATDEPFILES): Add sparc-nat.o.
14763 (XM_FILE): Delete.
14764 * config/sparc/nbsdaout.mh: Update comment.
14765 (NATDEPFILES): Add sparc-nat.o
14766 (XM_FILE): Delete.
14767 * config/sparc/nm-linux.h: Update copyright year. Don't include
14768 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14769 inclusion.
14770 (KERNEL_U_SIZE): Remove define.
14771 (kernel_u_size): Remove prototype.
14772 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14773 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14774 "regcache.h".
14775 (CHILD_PREPARE_TO_STORE): Remove define.
14776 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14777 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14778 sparcnbsd-nat.c: Rewrite files.
14779 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14780 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14781 sparcnbsd-tdep.h: Remove files.
14782 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14783 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14784 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14785 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14786 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14787 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14788 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14789 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14790 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14791 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14792 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14793 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14794 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14795 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14796 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14797 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14798 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14799 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14800 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14801
14802 2004-01-02 Andrew Cagney <cagney@redhat.com>
14803
14804 From 2003-12-18 Kazuhiro Inaoka:
14805 * configure.host: Add m32r-linux target.
14806
14807 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14808
14809 * top.c (print_gdb_version): Update year to 2004.
14810
14811 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14812
14813 * MAINTAINERS: Add myself to the write-after-approval category.
14814
14815 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14816
14817 From Bernardo Innocenti <bernie@develer.com>:
14818 * configure.tgt: Add uClinux target.
14819
14820 2004-01-02 Andrew Cagney <cagney@redhat.com>
14821
14822 * utils.c (do_my_cleanups): Make static, add forward declaration.
14823 * defs.h (do_my_cleanups): Delete declaration.
14824
14825 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14826
14827 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14828 bfd/ChangeLog-0203.
14829
14830 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14831
14832 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14833 in <machine/reg.h>.
14834 * configure, config.in: Regenerate.
14835
14836 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14837 tui/ChangeLog-1998-2003.
14838 \f
14839 Local Variables:
14840 mode: change-log
14841 left-margin: 8
14842 fill-column: 74
14843 version-control: never
14844 End: