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.h (gdbarch_tdep): Add unwind_adjust_stub method.
4 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
5 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
6 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
7 if defined.
8
9 2004-12-07 Randolph Chung <tausq@debian.org>
10
11 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
12 unwinding from a frame with pc == 0.
13 (hppa_stub_frame_this_id): Likewise.
14 (hppa_stub_frame_prev_register): Only provide real values if the frame
15 cache is not NULL.
16
17 2004-12-07 Randolph Chung <tausq@debian.org>
18
19 * solib-som.c: New file.
20 * solib-som.h: New file.
21 * solib-pa64.c: New file.
22 * solib-pa64.h: New file.
23
24 2004-12-07 Mark Kettenis <kettenis@gnu.org>
25
26 * Makefile.in (inf-ttrace.o): Fix typo.
27
28 2004-12-07 Jim Blandy <jimb@redhat.com>
29
30 * remote.c (remote_threads_info, remote_current_thread): Use
31 strtoul to parse thread ID numbers.
32
33 2004-12-07 Mark Kettenis <kettenis@gnu.org>
34
35 * inf-ttrace.c: Include "gdbthread.h".
36 (inf_ttrace_num_lwps): New variable.
37 (inf_ttrace_num_lwps_in_syscall): Renamed from
38 inf_ttrace_num_threads_in_syscall.
39 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
40 TTEVT_LWP_TERMINATE events.
41 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
42 zero.
43 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
44 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
45 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
46 events.
47 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
48 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
49 TTEVT_LWP_TERMINATE events.
50 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
51 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
52 * Makefile.in (inf-ttrace.o): Update dependencies.
53
54 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
55 prototypes.
56 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
57 Make global. Remove HP-UX specific code. Use
58 frame_unwind_register_unsigned instead of
59 frame_unwind_register_signed.
60 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
61 Remove HP-UX specific code.
62 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
63 (hppa_frame_prev_register_helper): Set "flags" register to zero
64 for all unwound frames.
65 (hppa_gdbarch_init): Adjust.
66 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
67 (hppa_hpux_read_pc, hppa_hpux_write_pc)
68 (hppa_hpux_unwind_pc): New functions.
69 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
70
71 2004-12-07 Andreas Schwab <schwab@suse.de>
72
73 * main.c (long_options): Add entry for "-l".
74 (print_gdb_help): Add line for -l option.
75 * NEWS: Mention it.
76
77 2004-12-05 Randolph Chung <tausq@debian.org>
78
79 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
80 DEPRECATED_REGISTER_BYTE.
81
82 2004-12-05 Randolph Chung <tausq@debian.org>
83
84 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
85 records.
86
87 2004-12-05 Mark Kettenis <kettenis@gnu.org>
88
89 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
90 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
91
92 * hppa-hpux-tdep.c: Update copyright notice and year.
93
94 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
95
96 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
97 (get_field, put_field): Assert that the format is one we can handle.
98 Simplify logic accordingly.
99 (floatformat_normalize_byteorder): New function.
100 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
101 to normalize and select modified byte order. Pass modified byte order
102 to get_field.
103 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
104 Likewise.
105 (convert_doublest_to_floatformat): Select an appropriate intermediate
106 byte order if necessary. Always convert to the final format before
107 returning.
108
109 2004-12-04 Daniel Jacobowitz <dan@debian.org>
110
111 PR tui/1703
112 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
113 Suggested by Joshua Neuheisel.
114
115 2004-12-03 Randolph Chung <tausq@debian.org>
116
117 * gdbarch.sh (instruction_nullified): Delete.
118 * gdbarch.c: Regenerate.
119 * gdbarch.h: Regenerate.
120 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
121 nullified.
122 (hppa_unwind_pc): Likewise.
123 (hppa_instruction_nullified): Delete.
124 (hppa_gdbarch_init): Don't set instruction_nullified method.
125 * infrun.c (infwait_states): Remove infwait_nullified_state.
126 (handle_inferior_event): Remove handling of infwait_nullified_state.
127 Remove handling of nullified instructions.
128
129 2004-12-03 Mark Kettenis <kettenis@gnu.org>
130
131 * inf-ttrace.c: Include <sys/mman.h>.
132 (struct inf_ttrace_page): New.
133 (struct inf_ttrace_page_dict): New.
134 (inf_ttrace_num_threads_in_syscall)
135 (inf_ttrace_reenable_page_protections): New variables.
136 (inf_ttrace_enable_syscall_events)
137 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
138 (inf_ttrace_add_page, inf_ttrace_insert_page)
139 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
140 (inf_ttrace_enable_page_protections)
141 (inf_ttrace_disable_page_protections)
142 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
143 (inf_ttrace_can_use_hw_breakpoint)
144 (inf_ttrace_region_size_ok_for_hw_watchpoint)
145 (inf_ttrace_stopped_by_watchpoint): New functions.
146 (inf_ttrace_him): Remove unsused varaible `tts'.
147 (inf_ttrace_create_inferior): Add assertionts.
148 (inf_ttrace_mourn_inferior): Clear page dictionary.
149 (inf_ttrace_attach): Set initial event mask.
150 (inf_ttrace_detach): Reset number of threads in system call.
151 (inf_ttrace_wait): Deal with system call events.
152 (inf_ttrace_target): Initialize "hardware" watchpoint-related
153 parts of the target vector.
154 (_initialize_inf_ttrace): New prototype and function.
155
156 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
157 type of `gp' variable.
158
159 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
160
161 * README: Remove config.if from directory listing.
162
163 2004-12-01 Joel Brobecker <brobecker@gnat.com>
164
165 * alpha-tdep.c (alpha_register_name): Add comment.
166 (alpha_cannot_fetch_register): Exclude registers numbers which
167 are no longer used from the list of registers that can be fetched.
168 (alpha_cannot_store_register): Exclude registers numbers which
169 are no longer used from the list of registers that can be stored.
170 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
171 core_reg_mapping array.
172
173 2004-12-01 Joel Brobecker <brobecker@gnat.com>
174
175 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
176 the register value from the correct frame.
177
178 2004-11-30 Randolph Chung <tausq@debian.org>
179
180 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
181 (hppa_linux_in_dyncall): Check that we are inside the range of
182 $$dyncall, not necessarily at the first insn.
183 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
184 even if the pc does not point to the first insn of the trampoline.
185
186 2004-11-30 Randolph Chung <tausq@debian.org>
187
188 * breakpoint.c (break_at_finish_command): Delete.
189 (break_at_finish_command_1): Delete.
190 (break_at_finish_at_depth_command): Delete.
191 (break_at_finish_at_depth_command_1): Delete.
192 (tbreak_at_finish_command): Delete.
193 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
194 and bx commands.
195
196 2004-11-30 Andrew Cagney <cagney@gnu.org>
197
198 * config/nm-gnu.h: Delete file.
199 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
200
201 * config/nm-sysv4.h: Delete file.
202 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
203 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
204 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
205 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
206 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
207
208 2004-11-29 Andrew Cagney <cagney@gnu.org>
209
210 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
211 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
212 as can-commit architecture developers.
213
214 2004-11-29 Mark Kettenis <kettenis@gnu.org>
215
216 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
217 (sparc32_skip_prologue): Skip instructions that store arguments in
218 registers into their corresponding stack slots.
219
220 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
221 tm-solib.h.
222 * config/m68k/obsd.mh (NAT_FILE): Likewise.
223
224 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
225 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
226 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
227 sparc32nbsd_elf_init_abi. Remove duplicate code.
228
229 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
230 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
231 * config/sparc/nm-nbsd.h: Remove file.
232 * config/sparc/nm-nbsdaout.h: Remove file.
233
234 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
235 (sparc_xfer_partial): New function.
236 (sparc_target): Save value of to_xfer_partial from ptrace vector.
237 Set to_xfer_partial.
238
239 * fork-child.c (fork_inferior): Fork instead of vfork if
240 PRE_TRACE_FUN is non-null.
241
242 2004-11-24 Fred Fish <fnf@specifixinc.com>
243
244 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
245 compiler generated function calls made as part of a prologue.
246
247 2004-11-23 Mark Kettenis <kettenis@gnu.org>
248
249 * inf-ttrace.c: New file.
250 * inf-ttrace.h: New file.
251 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
252 Include "inf-ttrace.h".
253 (ss_mpsfu_high): Define to ss_tlsp if necessary.
254 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
255 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
256 ptrace systems.
257 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
258 instead of inf_ptrace_target.
259 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
260 * Makefile.in (inf_ttrace_h): New variable.
261 (hppa-hpux-nat.o): Update dependency.
262 (inf-ttrace.o): New dependency.
263 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
264
265 2004-11-23 Randolph Chung <tausq@debian.org>
266
267 * arch-utils.c (generic_instruction_nullified): New.
268 * arch-utils.h (generic_instruction_nullified): New.
269 * gdbarch.sh (instruction_nullified): New method.
270 * gdbarch.c: Regenerate.
271 * gdbarch.h: Regenerate.
272 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
273 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
274 new gdbarch method.
275 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
276 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
277 static. Rewrite to work directly off the passed regcache.
278 (hppa_gdbarch_init): Set instruction_nullified method.
279
280 2004-11-23 Joel Brobecker <brobecker@gnat.com>
281
282 * sparc-tdep.c (sparc_is_unimp_insn): New function.
283 (sparc32_frame_cache): For functions where there is no debugging
284 information to help us determine whether it's a struct-return
285 function or not, fallback on checking whether the instruction
286 at the return address is an "unimp" instruction or not.
287
288 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
289
290 * MAINTAINERS: Add myself to write after approval section.
291
292 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
293 hpux-thread.c to suppress children from running.
294 (hppa_hpux_child_can_run): New function.
295 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
296 * hpux-thread.c: Include string.h and hppa-tdep.h.
297 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
298 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
299 (hpux_thread_store_registers): Replace deprecated_registers with
300 calls to regcache_raw_read.
301 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
302
303 2004-11-21 Mark Kettenis <kettenis@gnu.org>
304
305 * sparc64fbsd-nat.c: Update copyright year.
306 (_initialize_sparc64fbsd_nat): Construct and add target vector.
307 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
308 inftarg.o.
309
310 2004-11-21 Daniel Jacobowitz <dan@debian.org>
311
312 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
313
314 2004-11-21 Daniel Jacobowitz <dan@debian.org>
315
316 * linux-nat.c (my_waitpid): New function.
317 (linux_test_for_tracefork): Make more robust and verbose. Take
318 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
319 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
320 argument. Update calls to linux_test_for_tracefork.
321 (linux_enable_event_reporting, child_follow_fork)
322 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
323 (child_insert_exec_catchpoint): Update calls to
324 linux_supports_tracefork and linux_supports_tracevforkdone.
325
326 2004-11-21 Daniel Jacobowitz <dan@debian.org>
327
328 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
329 (value_subscripted_rvalue): Likewise.
330 * valops.c (search_struct_field, value_slice): Likewise.
331
332 2004-11-21 Mark Kettenis <kettenis@gnu.org>
333
334 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
335 Reorder includes a bit. Fix comment.
336 * Makefile.in (inf-ptrace.o): Update dependencies.
337
338 2004-11-21 Andreas Schwab <schwab@suse.de>
339
340 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
341 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
342 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
343 to glibc_skip_solib_resolver.
344 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
345 solib-legacy.o.
346 * Makefile.in (m68klinux-tdep.o): Update dependencies.
347
348 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
349
350 * infttrace.h (ttrace_write_reg_64): Add prototype.
351 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
352 expression.
353 (store_inferior_registers): Correct formatting. Replace uses of
354 deprecated_registers with calls to regcache_raw_read,
355 regcache_raw_write_part and regcache_raw_read_part.
356
357 2004-11-21 Mark Kettenis <kettenis@gnu.org>
358
359 * config/pa/hppahpux.mh: Remove file.
360 * config/pa/hpux1020.mh: Remove file.
361
362 2004-11-20 Andreas Schwab <schwab@suse.de>
363
364 * configure.host: Set host floatformat for m68k.
365
366 2004-11-20 Eli Zaretskii <eliz@gnu.org>
367
368 * config/djgpp/fnchange.lst: Resolve file-name clash between
369 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
370
371 2004-11-20 Mark Kettenis <kettenis@gnu.org>
372
373 * hppa-hpux-nat.c: New file.
374 * config/pa/hpux.mh (NATDEPFILES): New file.
375 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
376 (hppa-hpux-nat.o): New dependency.
377 * configure.host: Remove hppa*-*-hpux10.20.
378 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
379
380 * inf-ptrace.c: Fix coding style.
381
382 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
383 * infptrace.c (call_ptrace): Simply call ptrace with four
384 arguments.
385
386 * dbxread.c (process_one_symbol): Fix a few coding standard
387 issues. Improve code formatting.
388
389 * dbxread.c: Include "gdb_string.h".
390 (record_minimal_symbol, read_ofile_symtab): Replace
391 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
392 * Makefile.in (dbxread.o): Update dependencies.
393
394 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
395 of bytes read for aligned LEB128 encodings.
396
397 2004-11-19 Mark Kettenis <kettenis@gnu.org>
398
399 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
400 parse_and_eval_address to u_long before converting it to a pointer
401 type.
402 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
403 ps_strings from int to u_long.
404 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
405 u_long instead of CORE_ADDR.
406
407 2004-11-18 Mark Kettenis <kettenis@gnu.org>
408
409 * dbxread.c (process_one_symbol): Do not adjust address of first
410 N_SLINE stab for a function for code generated by non-GCC
411 compilers.
412
413 2004-11-18 Kevin Buettner <kevinb@redhat.com>
414
415 * solib-null.c: New file.
416
417 2004-11-17 Andrew Cagney <cagney@gnu.org>
418
419 * MAINTAINERS: Drop MIPS and remote.
420
421 2004-11-15 Andrew Cagney <cagney@gnu.org>
422
423 * findvar.c (value_of_register): Set the frame ID.
424 * value.c (value_primitive_field): Copy the frame ID.
425 * valops.c (value_assign): Simplify lval_register case, there's
426 always a frame.
427
428 2004-11-14 Daniel Jacobowitz <dan@debian.org>
429
430 * Makefile.in (mips-linux-tdep.o): Update dependencies.
431 * mips-linux-tdep.c: Include "regcache.h".
432 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
433
434 2004-11-14 Daniel Jacobowitz <dan@debian.org>
435
436 * Makefile.in (linux-thread-db.o): Fix typo in last change.
437
438 2004-11-14 Daniel Jacobowitz <dan@debian.org>
439
440 * linux-thread-db.c: New file, renamed from thread-db.c.
441 * thread-db.c: Remove.
442 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
443 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
444 to linux-thread-db.o.
445 * config/arm/linux.mh (NATDEPFILES): Likewise.
446 * config/i386/linux.mh (NATDEPFILES): Likewise.
447 * config/i386/linux64.mh (NATDEPFILES): Likewise.
448 * config/ia64/linux.mh (NATDEPFILES): Likewise.
449 * config/m32r/linux.mh (NATDEPFILES): Likewise.
450 * config/m68k/linux.mh (NATDEPFILES): Likewise.
451 * config/mips/linux.mh (NATDEPFILES): Likewise.
452 * config/pa/linux.mh (NATDEPFILES): Likewise.
453 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
454 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
455 * config/s390/s390.mh (NATDEPFILES): Likewise.
456 * config/sparc/linux.mh (NATDEPFILES): Likewise.
457 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
458
459 2004-11-13 Andrew Cagney <cagney@gnu.org>
460
461 * config/i386/i386lynx.mh: Delete file.
462 * config/i386/i386lynx.mt: Delete file.
463 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
464 * i386ly-tdep.c: Delete.
465
466 * config/tm-lynx.h: Delete, inline contents ...
467 * config/rs6000/tm-rs6000ly.h: ... here.
468
469 * config/tm-sysv4.h: Delete file, inlining contents.
470 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
471 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
472 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
473
474 * regcache.h (deprecated_register_valid): Delete.
475 (deprecated_registers): Delete.
476 * regcache.c (deprecated_register_valid): Delete.
477 (deprecated_registers): Delete.
478 (deprecated_read_register_byte, _initialize_regcache)
479 (deprecated_write_register_bytes, build_regcache): Update.
480 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
481 remote-sds.o.
482 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
483 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
484
485 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
486 v850-*-* under removed.
487 * configure.host: Delete ns32k-*-netbsd*.
488 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
489 ns32k-*-netbsd*, and v850*-*-*.
490 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
491 "Deleted"
492 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
493 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
494 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
495 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
496 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
497 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
498 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
499 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
500 * v850-tdep.c: Delete.
501
502 2004-11-13 Joel Brobecker <brobecker@gnat.com>
503
504 * irix5-nat.c (fetch_core_registers): Replace use of
505 deprecated_registers by equivalent code.
506
507 2004-11-13 Joel Brobecker <brobecker@gnat.com>
508
509 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
510 with equivalent code.
511 (fill_fpregset): Likewise.
512
513 2004-11-13 Andrew Cagney <cagney@gnu.org>
514
515 * MAINTAINERS: Do not list "Deleted" architectures.
516
517 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
518 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
519 sparc-*-vxworks*.
520 * NEWS: Mention that vxworks was deleted.
521 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
522 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
523 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
524 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
525 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
526 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
527 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
528 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
529 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
530 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
531 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
532 * remote-vxmips.c, remote-vx.c: Delete.
533 * remote-vx68.c: Delete.
534 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
535 * config/m68k/os68k.mt, ada-lang.h: Ditto.
536 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
537 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
538
539 2004-11-13 Eli Zaretskii <eliz@gnu.org>
540
541 * config/i386/xm-go32.h: Don't include fopen-bin.h.
542 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
543
544 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
545 branch that doesn't define CRLF_SOURCE_FILES; always use
546 binary-mode open.
547 (print_source_lines_base, forward_search_command)
548 (reverse_search_command): Enable the code that accepts DOS-style
549 CRLF line endings on all platforms (this removes the need for
550 CRLF_SOURCE_FILES).
551
552 * defs.h: Fix wording of the comment before FOPEN_RB.
553 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
554
555 * config/djgpp/fnchange.lst: Group renames for opcode directory
556 together.
557
558 * config/djgpp/djconfig.sh: Replace file names that don't exist
559 anymore with existing files, for checking the unpacked
560 distribution.
561
562 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
563 Export pre-cooked values in configure-* targets that begin with
564 "@test -f stage_last".
565
566 2004-11-12 Andrew Cagney <cagney@gnu.org>
567
568 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
569 * value.h (struct value): Update comment.
570 * valops.c (value_assign): Fold lval_reg_fame_relative into
571 lval_register.
572 * findvar.c (value_from_register, locate_var_value): Ditto.
573
574 2004-11-12 Randolph Chung <tausq@debian.org>
575
576 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
577 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
578 (write_exp_msymbol): Remove conditional check for symbols starting
579 with $. Update comments.
580
581 2004-11-12 Randolph Chung <tausq@debian.org>
582
583 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
584 so_lib_thread_start_addr.
585 * pa64solib.h (so_list): Forward declare.
586 (pa64_solib_thread_start_addr): Prototype.
587 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
588 (no_shared_libraries): Remove.
589 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
590 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
591 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
592 the elf solib handler to find the start address.
593
594 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
595 files to the target makefile.
596 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
597 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
598 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
599
600 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
601 files for symbol reading and shared library handling here.
602 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
603 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
604 without bringing in 64-bit support.
605
606 2004-11-12 Andrew Cagney <cagney@gnu.org>
607
608 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
609 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
610 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
611 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
612 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
613 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
614 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
615
616 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
617 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
618 (VALUE_REGNUM): Define.
619 (struct value): Delete location.regnum, rename "regno" to
620 "regnum".
621 * value.c, valops.c, valarith.c, findvar.c: Update.
622
623 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
624 (VALUE_BITPOS): Delete.
625 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
626 * value.c (value_type, value_offset, value_bitpos)
627 (value_bitsize): New functions. Update references.
628 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
629 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
630 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
631 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
632 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
633 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
634 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
635 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
636 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
637
638 2004-11-12 Andrew Cagney <cagney@gnu.org>
639
640 * cris-tdep.c (cris_register_offset): Delete, never called.
641 (cris_spec_reg_applicable): Delete cris_ver_sim.
642 * MAINTAINERS: List d10v as OBSOLETE.
643 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
644 FOPEN_WB et.al., defined by "fopen-bin.h".
645
646 2004-11-12 Randolph Chung <tausq@debian.org>
647
648 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
649 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
650 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
651 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
652
653 2004-11-12 Mark Kettenis <kettenis@jive.nl>
654
655 * tui/tui-io.c: Don't include "terminal.h".
656 * Makefile.in (tui-io.o): Update dependencies.
657
658 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
659
660 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
661 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
662 set_gdbarch_regset_from_core_section for core file support.
663 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
664 New functions.
665
666 2004-11-11 Randolph Chung <tausq@debian.org>
667
668 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
669 stop_after_branch parameter and use it to determine if we should look
670 at the delay slot of the first branch insn to find prologue insns.
671 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
672 (hppa_frame_cache): Likewise.
673
674 2004-11-11 Randolph Chung <tausq@debian.org>
675
676 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
677 register so that it can be unwound from anywhere in the prologue.
678
679 2004-11-10 msnyder <msnyder@redhat.com>
680
681 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
682 must invalidate lr_reg (so we don't try to save it again).
683 Ditto for cr_offset and cr_reg.
684
685 2004-11-05 Jon Beniston <jon@beniston.com>
686
687 Committed by Andrew Cagney.
688 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
689 when an unexpected packet is received, as the target stubs
690 continually retransmit the same packet until ACKed.
691
692 2004-11-10 Randolph Chung <tausq@debian.org>
693
694 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
695 frame's type.
696
697 2004-11-10 Randolph Chung <tausq@debian.org>
698
699 * blockframe.c (inside_entry_func): Move to .....
700 * frame.c (inside_entry_func): ... here, and make static.
701 (backtrace_past_entry): New flag.
702 (get_prev_frame): Stop backtrace at the entry function if enabled
703 by flag. Update comments.
704 (_initialize_frame): Add command to set backtrace_past_entry flag.
705 * defs.h (inside_entry_func): Remove prototype.
706
707 2004-11-10 Mark Kettenis <kettenis@gnu.org>
708
709 * dwarf2read.c: Fix formatting.
710
711 2004-11-10 Andrew Cagney <cagney@gnu.org>
712
713 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
714 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
715 macros with function declarations.
716 * value.c (coerce_ref, coerce_array, coerce_number)
717 (coerce_enum): New functions.
718 (value_as_long, value_as_address): Update.
719 * ada-lang.c (ada_coerce_ref, ada_value_binop)
720 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
721 * jv-lang.c (evaluate_subexp_java): Update.
722 * valarith.c (value_less, value_neg, value_complement)
723 (value_binop, value_add, value_subscript, value_x_binop)
724 (value_logical_not, value_sub): Update.
725 * valops.c (check_field, value_struct_elt, value_ind)
726 (value_find_oload_method_list, value_cast, value_assign): Update.
727 * eval.c (evaluate_subexp_standard): Update.
728
729 2004-11-10 Mark Kettenis <kettenis@gnu.org>
730
731 * mips-tdep.c (mips32_relative_offset): Change return type to
732 LONGEST, change argument type to ULONGEST. Fix sign-extension.
733
734 2004-11-10 Randolph Chung <tausq@debian.org>
735
736 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
737 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
738 (hppa_fetch_pointer_argument): Likewise.
739 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
740 deprecated_read_memory_nobpt.
741 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
742 add_set_cmd sequence with add_setshow_boolean_cmd.
743
744 2004-11-09 Andrew Cagney <cagney@gnu.org>
745
746 GDB 6.3 released from GDB 6.3 branch.
747
748 2004-11-09 Andrew Cagney <cagney@gnu.org>
749
750 * values.c: Rename to ...
751 * value.c: ..., new file.
752 * Makefile.in: Update.
753
754 2004-11-09 Daniel Jacobowitz <dan@debian.org>
755
756 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
757 size.
758
759 2004-11-09 Andrew Cagney <cagney@gnu.org>
760
761 * TODO: Delete.
762
763 * value.h (struct value): Delete field bfd_section.
764 (VALUE_BFD_SECTION): Delete macro.
765 (COERCE_REF): Update.
766 (value_at, value_at_lazy): Delete asection parameter.
767 * printcmd.c (print_formatted, x_command): Update.
768 (do_examine): Delete asection parameter.
769 (next_section): Delete variable.
770 * valops.c (value_cast, value_at, value_at_lazy)
771 (value_coerce_function, value_addr, value_ind, value_string)
772 (find_rt_vbase_offset, value_full_object): Update.
773 * hpacc-abi.c (hpacc_virtual_fn_field)
774 (hpacc_value_rtti_type): Update.
775 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
776 (gnuv3_baseclass_offset): Update.
777 * f-valprint.c (f_val_print): Update.
778 * c-valprint.c (c_val_print): Update.
779 * p-valprint.c (pascal_val_print): Update.
780 * jv-valprint.c (java_value_print): Update.
781 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
782 * ada-lang.c (ada_value_primitive_packed_val)
783 (ada_evaluate_subexp): Update.
784 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
785 * expprint.c (print_subexp_standard): Update.
786 * infcall.c (call_function_by_hand): Update.
787 * valarith.c (value_add): Update.
788 * eval.c (evaluate_subexp_standard): Update.
789 * values.c (allocate_value, value_copy, value_static_field): Update.
790 * findvar.c (read_var_value, locate_var_value): Update.
791
792 2004-11-09 Andrew Cagney <cagney@gnu.org>
793
794 * i386-linux-tdep.c: Include "dwarf2-frame.h".
795 * Makefile.in: Update all dependencies.
796
797 2004-11-08 Andrew Cagney <cagney@gnu.org>
798
799 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
800 (sentinel_frame_unwinder): Add the prev_pc method.
801 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
802 available. Do not handle the sentinel-frame case.
803 * frame-unwind.h (frame_prev_register_ftype): Define.
804 (struct frame_unwind): Add prev_pc;
805
806 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
807
808 * configure.in: Check for ncurses/term.h.
809 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
810 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
811 * tui/tui.c: Don't include term.h.
812 * configure, config.in: Rebuilt.
813
814 2004-11-08 Mark Kettenis <kettenis@gnu.org>
815
816 * m68kbsd-nat.c: Include "inf-ptrace.h".
817 (_initialize_m68kbsd_nat): Fix pasto.
818 * Makefile.in (m68kbsd-nat.o): Update dependencies.
819
820 2004-11-08 Randolph Chung <tausq@debian.org>
821
822 * infrun.c (debug_infrun): New variable.
823 (resume, proceed, wait_for_inferior): Annotate with debug messages.
824 (handle_inferior_event, keep_going): Likewise.
825 (_initialize_infrun): Register "set debug infrun" command.
826
827 2004-11-08 Andreas Schwab <schwab@suse.de>
828
829 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
830 PTRACE_EVENT_VFORKDONE.
831 (child_follow_fork): Adjust.
832
833 2004-11-08 Andrew Cagney <cagney@gnu.org>
834
835 * README: Refer to 6.3, not 6.2, update directory listing droppng
836 references to intl/ and mmalloc/.
837 * PROBLEMS: Refer to 6.3 not 6.2.
838
839 * PROBLEMS: Delete no-longer applicable problems.
840
841 2004-11-07 Andrew Cagney <cagney@redhat.com>
842 Daniel Jacobowitz <dan@debian.org>
843 Roland McGrath <roland@redhat.com>
844
845 * Makefile.in (symfile-mem.o): Update dependencies.
846 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
847 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
848 * inf-ptrace.c (inf_ptrace_attach): Call
849 observer_notify_inferior_created.
850 * inftarg.c (child_attach): Likewise.
851 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
852 (symbol_file_add_from_memory): Take NAME argument. Use it for
853 the new BFD's filename.
854 (add_symbol_file_from_memory_command): Update call to
855 symbol_file_add_from_memory.
856 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
857 (symbol_file_add_from_memory_wrapper): New.
858 (_initialize_symfile_mem): Register add_vsyscall_page as an
859 inferior_created observer.
860
861 2004-11-07 Mark Kettenis <kettenis@gnu.org>
862
863 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
864 fetch_inferior_registers. Make static.
865 (m68kbsd_store_inferior_registers): Rename from
866 store_inferior_registers. Make static.
867 (_initialize_m68kbsd_nat): Construct and add target vector.
868 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
869 inftarg.o. Add inf-ptrace.o.
870 (NAT_FILE): Set to tm-solib.h.
871 (LOADLIBES): New variable.
872 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
873 inftarg.o. Add inf-ptrace.o.
874 (NAT_FILE): Delete variable.
875 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
876 inftarg.o. Add inf-ptrace.o.
877 (NAT_FILE): Set to tm-solib.h.
878 * config/m68k/nm-nbsdaout.h: Remove file.
879
880 2004-11-07 Daniel Jacobowitz <dan@debian.org>
881
882 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
883 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
884 (dwarf2_signal_frame_unwind): New.
885 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
886 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
887
888 2004-11-07 Mark Kettenis <kettenis@gnu.org>
889
890 * Makefile.in (mips64obsd-tdep.o): Fix typo.
891
892 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
893 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
894 to only include the structure members we actually need.
895 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
896 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
897 only include the structure members we actually need.
898 (mipsnbsd_init_abi): Update.
899
900 * mips64obsd-nat.c: Include "mips-tdep.h".
901 (MIPS64OBSD_NUM_REGS): Remove define.
902 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
903 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
904 floating-point registers correctly.
905 * Makefile.in (mips64obsd-nat.o): Update dependencies.
906
907 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
908 "gdb_assert.h".
909 (mips64obsd_sigframe_init): New function.
910 (mips64obsd_sigframe): New variable.
911 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
912 unwinder.
913 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
914
915 2004-11-06 Joel Brobecker <brobecker@gnat.com>
916
917 * alpha-mdebug-tdep.c: #include mdebugread.h.
918 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
919 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
920
921 2004-11-05 Andrew Cagney <cagney@gnu.org>
922
923 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
924 CFI and the init_reg method leave the register unspecified.
925 Include the register name in the "Incomplete CFI data" complaint.
926 Supress leading zeros in the address.
927
928 2004-11-05 Mark Kettenis <kettenis@gnu.org>
929
930 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
931 skipping a personality routine in a CIE augmentation.
932
933 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
934
935 * defs.h (fatal, vfatal): New function prototypes.
936 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
937 via catch_errors.
938 (backtrace_command): Change to call backtrace_command_stub via
939 catch_errors instead of calling backtrace_command_1 directly.
940 (backtrace_full_command): Ditto.
941 * utils.c (error_stream_1): New static function.
942 (verror): Change to call error_stream_1 instead of error_stream.
943 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
944 (vfatal, fatal): New functions.
945
946 2004-11-05 Andrew Cagney <cagney@gnu.org>
947
948 * stack.c (parse_frame_specification_1): Clear selected_frame_p
949 when not using selected frame.
950
951 2004-11-05 Mark Kettenis <kettenis@jive.nl>
952
953 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
954 personality routine in a CIE augmentation.
955
956 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
957
958 * stack.c (set_current_sal_from_frame): New function.
959 (print_args_stub): Use it.
960 (print_frame_info): Don't set sal here.
961
962 2004-11-04 Mark Kettenis <kettenis@gnu.org>
963
964 * dwarf2-frame.c (read_encoded_value): Change type of third
965 argument to `unsigned char *'. Add support for LEB128 encodings.
966
967 2004-11-04 Jim Blandy <jimb@redhat.com>
968
969 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
970 prevent cross-objfile references.
971 (make_cv_type): Doc fix. Don't create cross-objfile references,
972 even for stub types.
973 (replace_type): Add assertion to prevent cross-objfile references.
974 (check_typedef): Never resolve a stub type by copying over a type
975 from another file.
976
977 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
978
979 * Makefile.in (m32r-tdep.o): Update dependencies.
980 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
981 ABI-specific overrides.
982
983 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
984
985 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
986 unnecessary parallel execution bit.
987 (m32r_memory_remove_breakpoint): Ditto.
988 (m32r_breakpoint_from_pc): Update.
989
990 2004-11-03 Randolph Chung <tausq@debian.org>
991
992 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
993 frame_func_unwind to locate the unwind entry.
994 (hppa_frame_this_id): Likewise.
995
996 2004-11-03 Andrew Cagney <cagney@gnu.org>
997
998 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
999 packet, obsolete configurations, end-of-life deprecated_registers.
1000
1001 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1002
1003 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1004 encodings as well as unsigned encodings.
1005
1006 2004-11-02 Andrew Cagney <cagney@gnu.org>
1007
1008 * value.h (COERCE_VARYING_ARRAY): Delete.
1009 * valops.c (value_cast, value_slice): Delete use.
1010 * valarith.c (value_subscript, value_concat): Delete use.
1011
1012 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1013
1014 * NEWS: GDB understands GNAT Ada.
1015
1016 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1017
1018 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1019 (amd64-sol2-tdep.o): Add dependencies.
1020 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1021 config/i386/sol2-64.mt: New files.
1022 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1023 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1024 (supply_gregset): Correct order of arguments to
1025 amd64_supply_native_gregset.
1026 (fill_gregset): Correct order of arguments to
1027 amd64_collect_native_gregset.
1028 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1029 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1030 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1031 for definition of NEW_PROC_API.
1032 * configure: Regenerate.
1033
1034 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1035
1036 * MAINTAINERS (Write After Approval): Add myself.
1037
1038 2004-11-01 Andrew Cagney <cagney@gnu.org>
1039
1040 * configure.tgt: Mark d10v-*-* as obsolete.
1041 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1042
1043 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1044
1045 * values.c (modify_field): Correct handling of bit-fields that
1046 don't fit in 32 bits. Use unsigned operations throughout and
1047 simplify the code a bit. Document preconditions.
1048
1049 2004-10-31 Andrew Cagney <cagney@gnu.org>
1050
1051 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1052 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1053 (in_plt_section): Delete.
1054
1055 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1056 (mips_gdbarch_init): Do not set same.
1057
1058 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1059 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1060
1061 * gdbarch.sh (in_solib_call_trampoline): Delete.
1062 * gdbarch.h, gdbarch.c: Re-generate.
1063
1064 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1065 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1066 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1067 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1068 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1069
1070 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1071
1072 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1073 (mipsnbsd_fetch_inferior_registers): Rename from
1074 fetch_inferior_registers. Make static.
1075 (mipsnbsd_store_inferior_registers): Rename from
1076 store_inferior_registers. Make static.
1077 (_initialize_mipsnbsd_nat): New function and prototype.
1078 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1079 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1080 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1081 inf-ptrace.o.
1082
1083 2004-10-31 Andrew Cagney <cagney@gnu.org>
1084
1085 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1086 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1087 delete corresponding unused function.
1088 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1089 in_solib_call_trampoline.
1090 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1091 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1092 * config/mips/tm-nbsd.h: Ditto.
1093 * config/arm/tm-linux.h: Ditto.
1094 * config/mips/tm-linux.h: Ditto.
1095
1096 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1097 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1098 in_solib_call_trampoline, delete corresponding unused function.
1099 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1100 (vaxnbsd_aout_init_abi): Ditto.
1101 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1102 (sparc32nbsd_aout_init_abi): Ditto.
1103 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1104 (ppc_linux_init_abi): Ditto.
1105 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1106 (ns32knbsd_init_abi_aout): Ditto.
1107 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1108 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1109 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1110 (m68kbsd_aout_init_abi): Ditto.
1111 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1112 (i386_cygwin_init_abi): Ditto.
1113 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1114 (i386bsd_init_abi): Ditto.
1115
1116 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1117 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1118 isn't used by this architecture.
1119 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1120 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1121 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1122 * s390-tdep.c (s390_gdbarch_init): Ditto.
1123 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1124 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1125 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1126 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1127 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1128 * amd64-tdep.c (amd64_init_abi): Ditto.
1129
1130 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1131 in_solib_call_trampoline to its default value of
1132 generic_in_solib_call_trampoline.
1133 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1134 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1135 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1136 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1137 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1138 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1139
1140 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1141
1142 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1143
1144 * config/mips/tm-mips.h: Delete file.
1145 * remote-mips.c: Delete tm-mips.h from comment.
1146 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1147 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1148 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1149 * config/mips/tm-linux.h: Don't include tm-mips.h.
1150 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1151 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1152 * config/mips/tm-wince.h: Don't include.
1153
1154 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1155 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1156 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1157 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1158
1159 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1160 * mdebugread.c (ecoff_relocate_efi): Delete function.
1161 * objfiles.c (objfile_relocate): Delete #ifdef
1162 MDEBUG_EFI_SYMBOL_NAME code.
1163
1164 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1165 Andrew Cagney <cagney@gnu.org>
1166
1167 * gdbarch.sh (single_step_through_delay): Add.
1168 * gdbarch.h, gdbarch.c: Re-generate.
1169 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1170 (mips_step_skips_delay): Delete.
1171 * mips-tdep.c (mips_single_step_through_delay): Replace
1172 mips_step_skips_delay.
1173 (mips_gdbarch_init): Set single_step_through_delay.
1174 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1175
1176 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1177
1178 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1179 from TRAMP_FRAME frame type.
1180
1181 2004-10-31 Andrew Cagney <cagney@gnu.org>
1182
1183 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1184
1185 * mips-tdep.c (mips_ignore_helper): Delete.
1186 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1187 * infrun.c (handle_inferior_event): Delete #ifdef
1188 DEPRECATED_IGNORE_HELPER_CALL code.
1189
1190 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1191
1192 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1193
1194 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1195 (fill_fpregset): Do not compile for 64-bit systems.
1196 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1197 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1198 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1199
1200 2004-10-30 Andrew Cagney <cagney@gnu.org>
1201
1202 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1203 (struct mdebug_extra_func_info): Define.
1204 * config/alpha/tm-alpha.h: Delete same.
1205 * config/mips/tm-mips.h: Delete same.
1206 * mdebugread.c: Delete same.
1207 * Makefile.in: Update dependencies.
1208 * mips-mdebug-tdep.c: Include "mdebugread.h".
1209
1210 * objfiles.c: Include "mdebugread.h".
1211 * mdebugread.c: Include "mdebugread.h".
1212 (ecoff_relocate_cfi): Delete.
1213 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1214 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1215 * mdebugread.h (ecoff_relocate_efi): New file.
1216 * Makefile.in: Update dependencies.
1217
1218 * mips-tdep.c (struct frame_extra_info): Delete.
1219 (temp_proc_desc): Delete.
1220
1221 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1222 MIPS_EFI_SYMBOL_NAME.
1223 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1224 (struct mdebug_extra_func_info): Replace struct
1225 alpha_extra_func_info and alpha_extra_func_info_t.
1226 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1227 MIPS_EFI_SYMBOL_NAME.
1228 (struct mdebug_extra_func_info): Replace struct
1229 alpha_extra_func_info and alpha_extra_func_info_t.
1230 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1231 * mdebugread.c, alpha-mdebug-tdep.c:
1232
1233 Suggested by Mark Kettenis.
1234 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1235 fields frame_adjust and high_addr.
1236 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1237 (non_heuristic_proc_desc): Delete references.
1238
1239 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1240 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1241 * mips-tdep.c: Update.
1242
1243 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1244 (MIPS_LAST_EMBED_REGNUM): Add.
1245 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1246 (LAST_EMBED_REGNUM): Delete.
1247 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1248
1249 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1250 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1251 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1252 * mips-linux-nat.c: Update.
1253
1254 * mips-tdep.h: Add comments on registers.
1255 (MIPS_UNUSED_REGNUM): Define.
1256 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1257 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1258 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1259 * mips-linux-nat.c, remote-mips.c: Update.
1260
1261 * config/mips/tm-mips.h (t_insn): Delete.
1262 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1263 Replace t_insn with ULONGEST.
1264
1265 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1266
1267 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1268 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1269 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1270 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1271 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1272 (mipsnbsd_core_osabi_sniffer): New function.
1273 (mipsnbsd_init_abi): Set regset_from_core_section.
1274 (_initialize_mipsnbsd_tdep): Remove calls to
1275 deprecated_add_core_fns.
1276 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1277 (mipsnbsd_regset_from_core_section): New functions.
1278 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1279 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1280
1281 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1282 Remove optimization for DEPRECATED_FP_REGNUM.
1283
1284 2004-10-30 Andrew Cagney <cagney@gnu.org>
1285
1286 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1287 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1288 (alpha_setup_arbitrary_frame): Delete.
1289 * mips-tdep.c (setup_arbitrary_frame): Delete.
1290 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1291 (setup_arbitrary_frame): Delete.
1292 * stack.c (parse_frame_specification_1): When specified, call
1293 create_new_frame with two parameters. Delete #ifdef
1294 SETUP_ARBITRARY_FRAME.
1295
1296 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1297 (MIPS_INSTLEN): Delete.
1298 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1299 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1300 * remote-mips.c, mips-tdep.c: Update.
1301
1302 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1303 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1304 * mips-tdep.c (mips_mdebug_frame_cache)
1305 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1306 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1307 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1308 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1309 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1310 (mips_gdbarch_init): Do not append mdebug sniffers.
1311 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1312 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1313 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1314 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1315 * Makefile.in: Update dependencies.
1316
1317 * mips-tdep.h (mips_abi_regsize): Declare.
1318 * mips-tdep.c (mips_abi_regsize): Make non-static.
1319
1320 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1321 (make_mips16_addr): Delete.
1322
1323 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1324
1325 * i386-sol2-nat.c: New file.
1326 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1327 i386-sol2-tdep.c.
1328 (i386-sol2-nat.o): Update dependencies.
1329 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1330 i386-sol2-nat.o.
1331
1332 2004-10-30 Andrew Cagney <cagney@gnu.org>
1333
1334 Total breakage identified by Joel Brobecker.
1335 * mips-tdep.c (after_prologue): Delete.
1336 (mips_skip_prologue): Use skip_prologue_using_sal.
1337 (heuristic_proc_desc): Delete, unused.
1338
1339 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1340
1341 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1342 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1343 Cleanup coding style.
1344
1345 2004-10-30 Andrew Cagney <cagney@gnu.org>
1346
1347 * mips-tdep.h (mips_pc_is_mips16): Declare.
1348 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1349 non-static. Update calls.
1350
1351 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1352 * command.h (add_setshow_enum_cmd): Declare.
1353 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1354
1355 * mips-tdep.c (_initialize_mips_tdep): Use
1356 add_setshow_zinteger_cmd.
1357
1358 * mips-tdep.c (mips_eabi_extract_return_value)
1359 (mips_o64_extract_return_value, mips_o64_store_return_value)
1360 (return_value_location, mips_eabi_reg_struct_has_addr)
1361 (mips_eabi_use_struct_convention)
1362 (mips_eabi_store_return_value): Delete.
1363 (mips_eabi_store_return_value): New function.
1364 (mips_eabi_return_value): New function.
1365 (mips_gdbarch_init): For O64 and EABI, delete
1366 extract_return_value, store_return_value, use_struct_convention
1367 and reg_struct_has_addr, add return_value.
1368
1369 * mips-tdep.c (read_signed_register): Use
1370 regcache_cooked_read_signed.
1371
1372 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1373
1374 * mipsread.c: Cleanup coding style.
1375 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1376 (mipscoff_symfile_finish): Remove prototypes.
1377
1378 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1379
1380 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1381 (mips_mdebug_frame_cache, mips16_scan_prologue)
1382 (mips32_scan_prologue, mips_stub_frame_cache)
1383 (heuristic_proc_start, heuristic_proc_desc)
1384 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1385 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1386 (mips_o32_return_value, mips_o64_push_dummy_call)
1387 (mips_step_skips_delay, mips_skip_trampoline_code)
1388 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1389 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1390 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1391 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1392 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1393 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1394 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1395 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1396 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1397 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1398 ZERO_REGNUM.
1399 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1400 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1401 ZERO_REGNUM.
1402 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1403 A0_REGNUM.
1404 * mipsnbsd-nat.c: Include "mips-tdep.h".
1405 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1406 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1407
1408 2004-10-29 Andrew Cagney <cagney@gnu.org>
1409
1410 * stack.c (parse_frame_specification_1): New function based on
1411 parse_frame_specification. Add message and selected_frame_p
1412 paramters. Truely always return non-NULL.
1413 (parse_frame_specification): Call parse_frame_specification_1.
1414 (frame_info): Update. Eliminate target_has_stack check.
1415 (select_frame_command): Update.
1416
1417 2004-10-29 Andrew Cagney <cagney@gnu.org>
1418
1419 * frame.h (get_selected_frame): Add message parameter.
1420 * frame.c (get_selected_frame): Add and use message parameter.
1421 * stack.c (current_frame_command, return_command, locals_info)
1422 (catch_info, args_info, up_silently_base, down_silently_base): Use
1423 get_selected_frame with an explicit message.
1424 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1425 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1426 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1427 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1428 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1429 * breakpoint.c: Update.
1430
1431 2004-10-29 Andrew Cagney <cagney@gnu.org>
1432
1433 * trad-frame.c (trad_frame_get_prev_register): Use
1434 frame_unwind_register instead of frame_register_unwind, do not
1435 recurse the register's location.
1436 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1437 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1438 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1439 * sh-tdep.c (sh_frame_prev_register): Ditto.
1440 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1441 * i386-tdep.c (i386_frame_prev_register): Ditto.
1442 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1443 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1444
1445 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1446
1447 * proc-events.c: Fix several coding-style issues. Consistently
1448 use #ifdef instead of #if defined().
1449 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1450 ARRAY_SIZE.
1451 (_initialize_proc_events): New prototype.
1452
1453 * proc-why.c: Fix several coding-style issues.
1454 (proc_prettyfprint_why): Use ARRAY_SIZE.
1455
1456 2004-10-27 Jim Blandy <jimb@redhat.com>
1457
1458 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1459 manner independent of the host byte order.
1460
1461 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1462
1463 * mips-tdep.c (id_delayed): Remove prototype.
1464
1465 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1466
1467 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1468 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1469 to enum with register numbers.
1470 (enum mips_insn_size): New enum.
1471
1472 2004-10-26 Andrew Cagney <cagney@gnu.org>
1473
1474 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1475 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1476 (mips_gdbarch_init): Update.
1477 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1478
1479 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1480 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1481 IN_SOLIB_RETURN_TRAMPOLINE.
1482 * mips-tdep.c (mips_dump_tdep): Do not print
1483 IN_SOLIB_RETURN_TRAMPOLINE.
1484 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1485 (mips_gdbarch_init): Update.
1486
1487 * mips-tdep.h (mips_software_single_step): Move to here ...
1488 * config/mips/tm-mips.h: ... from here.
1489 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1490 (SOFTWARE_SINGLE_STEP): Delete.
1491 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1492
1493 2004-10-25 Andrew Cagney <cagney@gnu.org>
1494
1495 * NEWS: Add Changes since GDB 6.3 section.
1496
1497 2004-10-23 Andreas Schwab <schwab@suse.de>
1498
1499 * ada-lang.c (grow_vect): Return the new array instead of
1500 expecting pointer to pointer to avoid violation of aliasing rules.
1501 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1502
1503 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1504
1505 * s390-tdep.c (enum pv_boolean): Remove.
1506 (pv_is_array_ref): Remove.
1507 (s390_on_stack): Remove.
1508 (S390_NUM_SPILL_SLOTS): Remove.
1509 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1510 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1511 (s390_store): Track all stores of orginal incoming registers to the
1512 stack constant offsets relative to the CFA, instead of only tracking
1513 stores into specific spill slots.
1514 (s390_load): Likewise.
1515 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1516 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1517 defined as call-saved by the ABI.
1518 (s390_push_dummy_call): Use bottom of dummy call argument save area
1519 as return value, not the top. Do not store to the called function's
1520 register save area.
1521 (s390_unwind_dummy_id): Adapt accordingly.
1522
1523 2004-10-23 Andrew Cagney <cagney@gnu.org>
1524
1525 * objfiles.h (struct objfile): Rename obj_private to
1526 deprecated_obj_private, sym_private to deprecated_sym_private, and
1527 sym_stab_info to deprecated_sym_stab_info.
1528 * gdb-stabs.h: Update.
1529 * elfread.c: Update.
1530 * dbxread.c: Update.
1531 * coffread.c: Update.
1532 * xcoffread.c: Update.
1533 * symfile.c: Update.
1534 * somread.c: Update.
1535 * nlmread.c: Update.
1536 * mdebugread.c: Update.
1537 * hpread.c: Update.
1538 * coffread.c: Update.
1539
1540 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1541
1542 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1543 * configure.host: Add mips64*-*-openbsd*.
1544 * configure.tgt: Add mips64*-*-openbsd*.
1545 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1546 mips64obsd-tdep.c.
1547 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1548 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1549
1550 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1551
1552 * symtab.c (symbol_search_name): Minor reformatting.
1553
1554 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1555
1556 * symtab.h: Fix typo in comment.
1557
1558 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1559
1560 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1561 (dwarf_decode_line_header): Likewise.
1562
1563 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1564
1565 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1566
1567 2004-10-19 Andrew Cagney <cagney@gnu.org>
1568
1569 GDB 6.3 branch created.
1570 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1571
1572 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1573
1574 * dwarf2read.c (set_cu_language): Set language to Ada for
1575 DW_LANG_Ada83 and DW_LANG_Ada95.
1576
1577 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1578
1579 From Andreas Schwab <schwab@suse.de>:
1580 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1581 for xmalloc and xrealloc.
1582
1583 2004-10-15 Andrew Cagney <cagney@gnu.org>
1584
1585 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1586 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1587 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1588 Update dependencies.
1589
1590 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1591
1592 * ada-lang.c (ada_lookup_symbol): Correct comment.
1593 (ada_evaluate_subexp): Change error message for
1594 OP_FUNCALL case so as not to indicate an internal error.
1595
1596 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1597
1598 Committed by Paul Hilfinger.
1599 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1600 type sizes in XVE/XVU types, and emit a warning when that happens,
1601 instead of rounding up the size of the resulting type.
1602 Some minor reformatting.
1603 (ada_is_aligner_type): Do not consider a type as an aligner type
1604 if there is a corresponding XVS type as well.
1605 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1606 have several levels of pointer indirection to the array.
1607
1608 2004-10-15 Jerome Guitton <guitton@gnat.com>
1609
1610 Committed by Paul Hilfinger.
1611 * ada-lang.c (check_size): New function.
1612 (coerce_unspec_val_to_type): call check_size to make sure
1613 that the object size is reasonable.
1614 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1615 Implements the case when we get a reference when we evaluate
1616 the expression of one of the bounds of the slice.
1617 (ada_value_struct_elt): when a packed array field is
1618 a reference, use ada_coerce_ref to dereference it; use
1619 ada_value_ind only if it is a pointer.
1620
1621 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1622
1623 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1624 a bit to avoid the necessity of an advance declaration. Remove
1625 declaration.
1626 (set_reg_offset): Move implemenation up.
1627 (mips16_get_imm): Likewise.
1628 (mips16_scan_prologue): Likewise.
1629 (reset_saved_regs): Likewise.
1630 (mips32_scan_prologue): Likewise.
1631
1632 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1633
1634 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1635 Remove sp as a parameter, compute it internally instead. Move
1636 prologue scanning limit from heuristic_proc_desc to here.
1637 (mips16_scan_prologue): Likewise.
1638 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1639 by call to mips16_scan_prologue.
1640 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1641 by call to mips32_scan_prologue.
1642 (heuristic_proc_desc): Remove code that's no longer necessary.
1643 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1644 (mips_skip_prologue): Update calls to mips16_scan_prologue
1645 and mips32_scan_prologue.
1646
1647 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1648
1649 * mips-tdep.c (mips16_scan_prologue): Merge code from
1650 mips16_skip_prologue. Now return the address of the first
1651 instruction past the function prologue.
1652 (mips16_skip_prologue): Remove, no longer necessary.
1653 (mips_skip_prologue): Replace call to mips16_skip_prologue
1654 by call to mips16_scan_prologue.
1655
1656 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1657
1658 * mips-tdep.c (mips32_scan_prologue): Merge code from
1659 mips32_skip_prologue. Now return the address of the first
1660 instruction past the function prologue.
1661 (mips32_skip_prologue): Remove. No longer necessary.
1662 (mips16_skip_prologue): Add parameter end_pc instead of
1663 computing it.
1664 (mips_skip_prologue): Compute the upper limit for the
1665 prologue scanning. Update call to mips16_skip_prologue.
1666 Replace call to mips32_skip_prologue by call to
1667 mips32_scan_prologue.
1668
1669 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1670
1671 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1672 NetBSD system call stubs that store %rp in the ERP slot of the
1673 stack frame.
1674
1675 * source.c: Always define O_BINARY to 0 if not defined already.
1676 (openp): Unconditionally use O_BINARY.
1677
1678 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1679 * event-top.c (gdb_readline2): Likewise.
1680
1681 2004-10-14 Orjan Friberg <orjanf@axis.com>
1682
1683 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1684 deprecated_add_core_fns which was removed by mistake.
1685
1686 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1687
1688 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1689 references to deprecated_registers[] with equivalent code.
1690
1691 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1692
1693 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1694 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1695 instead of explicit test and print statement.
1696
1697 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1698
1699 * sparc-nat.c: Include "inf-ptrace.h".
1700 (sparc_target): New function.
1701 * sparc-nat.h: Update copyright year.
1702 (sparc_target): New prototype.
1703 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1704 (_initialize_sparcnbsd_nat): Construct and add target vector.
1705 * sparc64nbsd-nat.c: Include "target.h".
1706 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1707 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1708 Update dependencies.
1709 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1710 inftarg.o, add inf-ptrace.o.
1711 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1712 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1713 (NAT_FILE): Set to nm-bsd.h.
1714 (LOADLIBES): New variable.
1715 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1716 infarg.o, add inf-ptrace.o.
1717 * config/sparc/nm-nbsdaout.h: Remove file.
1718 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1719 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1720 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1721
1722 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1723 "fopen-same.h". Update comment.
1724
1725 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1726
1727 * i386gnu-nat.c: Include "gdb_string.h".
1728 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1729 registers when the floating-point state isn't initialized.
1730 * Makefile.in (i386gnu-nat.o): Update dependencies.
1731
1732 2004-10-11 David Anderson <davea@sgi.com>
1733
1734 * regcache.c (regcache_raw_read): Comment was missing "to".
1735 Extraneous ' removed.
1736 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1737 comment now describes use.
1738
1739 2004-10-11 Orjan Friberg <orjanf@axis.com>
1740
1741 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1742 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1743 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1744 (cris_sigtramp_frame_sniffer): New functions.
1745 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1746 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1747 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1748 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1749 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1750 command.
1751 (cris_version_update): Remove, replace with ...
1752 (set_cris_version): New function.
1753 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1754 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1755 (_initialize_cris_tdep): Remove CRIS mode command.
1756 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1757 cris-fpless-backtrace command.
1758 (cris_scan_prologue): Fix prologue scanning limit.
1759 (cris_register_type): Update to reflect actual registers.
1760 (cris_register_bytes_ok) Remove.
1761 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1762 Remove set_gdbarch_deprecated_register_size,
1763 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1764
1765 2004-10-10 Andrew Cagney <cagney@gnu.org>
1766
1767 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1768 comment.
1769
1770 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1771
1772 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1773
1774 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1775
1776 * mips-tdep.c (mips16_scan_prologue): Renames
1777 mips16_heuristic_proc_desc. Update comment.
1778 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1779 (heuristic_proc_desc): Update calls to the 2 functions above.
1780
1781 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1782
1783 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1784 Update comments. Also immediately return empty cache when the start
1785 address of our function could not be found.
1786 (mips_insn32_frame_cache): Likewise.
1787
1788 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1789
1790 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1791 (mips_insn16_frame_cache): Pass frame cache in call to
1792 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1793 Remove code that became redundant as a consequence.
1794 (mips32_heuristic_proc_desc): No longer compute a fake
1795 procedure descriptor. Compute the full frame cache instead.
1796 Some minor comment reformatting.
1797
1798 2004-10-10 Jim Blandy <jimb@redhat.com>
1799
1800 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1801 reader, tracing bytecode stuff): Remove self.
1802
1803 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1804
1805 * sparc64-linux-tdep.c: Update copyright year. Don't include
1806 "solib-svr4.h".
1807 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1808 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1809 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1810
1811 * sparc-linux-tdep.c: Update copyright year.
1812 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1813 to struct frame_info *. Use safe_frame_unwind_memory instead of
1814 deprecated_read_memory_nobpt.
1815 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1816 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1817 changed signature of sparc_linux_sigtramp_start.
1818 (sparc32_linux_pc_in_sigtramp): Remove function.
1819 (sparc32_linux_sigtramp_p): New function.
1820 (sparc32_linux_sigtramp_frame_sniffer): Use
1821 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1822
1823 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1824 Remove function.
1825 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1826
1827 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1828 (decode_packed_array_type, value_subscript_packed)
1829 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1830 argument in call to lim_warning.
1831
1832 * configure.in: Really disable the TUI if an enhanced curses
1833 library isn't found.
1834 * configure: Regenerate.
1835
1836 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1837
1838 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1839 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1840 * config/i386/nm-nbsdaout.h: Remove file.
1841 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1842 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1843 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1844 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1845 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1846 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1847 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1848 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1849 (ldd, ld_un, ld_2): Remove defines.
1850 * config/i386/nm-obsd.h: Likewise.
1851
1852 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1853
1854 * ada-lex.l: Remove useless rule whose right-context clause
1855 causes unreferenced static function warning for yyrealloc.
1856 (ada_flex_use): Remove the artificial reference to yyrealloc.
1857
1858 2004-10-08 Andrew Cagney <cagney@gnu.org>
1859
1860 * target.h (struct target_ops): Rename to_xfer_memory to
1861 deprecated_xfer_memory.
1862 * target.c: Update.
1863 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1864 * wince.c: Update.
1865 * win32-nat.c: Update.
1866 * v850ice.c: Update.
1867 * uw-thread.c: Update.
1868 * thread-db.c: Update.
1869 * sol-thread.c: Update.
1870 * remote.c: Update.
1871 * remote-vx.c: Update.
1872 * remote-st.c: Update.
1873 * remote-sim.c: Update.
1874 * remote-sds.c: Update.
1875 * remote-rdp.c: Update.
1876 * remote-rdi.c: Update.
1877 * remote-mips.c: Update.
1878 * remote-m32r-sdi.c: Update.
1879 * remote-e7000.c: Update.
1880 * procfs.c: Update.
1881 * ppc-bdm.c: Update.
1882 * nto-procfs.c: Update.
1883 * monitor.c: Update.
1884 * linux-nat.c: Update.
1885 * inftarg.c: Update.
1886 * hpux-thread.c: Update.
1887 * go32-nat.c: Update.
1888 * gnu-nat.c: Update.
1889 * exec.c: Update.
1890 * corelow.c: Update.
1891 * bsd-kvm.c: Update.
1892 * aix-thread.c: Update.
1893
1894 2004-10-08 Andrew Cagney <cagney@gnu.org>
1895
1896 * target.c (debug_target): Move to near start of file.
1897 (target_stopped_data_address_p): Re-org logic, add casts.
1898
1899 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1900
1901 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1902 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1903 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1904 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1905 New defines.
1906
1907 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1908
1909 * target.h (to_stopped_data_address): Change prototype to
1910 take a CORE_ADDR pointer and return an int.
1911 * target.c (update_current_target): Change to_stopped_data_address
1912 to match new prototype.
1913 (debug_to_stopped_data_address): Change appropriately.
1914 * breakpoint.c (bpstat_stop_status): Change call to
1915 target_stopped_data_address to use new prototype.
1916 * frv-tdep.c (frv_have_stopped_data_address): New function.
1917 (frv_stopped_data_address): Change to new prototype and
1918 functionality.
1919 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1920 prototype and functionality.
1921 (ia64_stopped_by_watchpoint): New function.
1922 * i386-nat.c (i386_stopped_data_address): Change to new
1923 prototype and functionality.
1924 (i386_stopped_by_watchpoint): New function.
1925 * remote.c (remote_stopped_data_address): Change to new prototype
1926 and functionality.
1927 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1928 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1929 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1930 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1931 new i386_stopped_by_watchpoint function.
1932 (i386_stopped_by_watchpoint): New prototype.
1933 (i386_stoppped_data_address): Change to new prototype.
1934 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1935 new ia64_stopped_by_watchpoint function.
1936 (ia64_stopped_by_watchpoint): New prototype.
1937 (ia64_stopped_data_address): Ditto.
1938
1939 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1940
1941 * ada-typeprint.c (ada_print_type): Use int_string for printing
1942 modulus of modular type.
1943 * ada-lang.h (ada_modulus): Change return type to unsigned.
1944 * ada-lang.c (ada_language_arch_info): Correct type of
1945 string_char_type.
1946 (ada_modulus): Return unsigned result.
1947 (ada_lookup_symbol): Remove user disambiguation and modify comment
1948 accordingly.
1949
1950 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1951
1952 Committed by Paul Hilfinger.
1953 * ada-lang.c (decode_packed_array): On big-endian targets,
1954 left-justify the value if it comes with a modular type.
1955
1956 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1957
1958 Committed by Paul Hilfinger.
1959 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1960 (is_name_suffix): Add support for "___JM" suffixes.
1961 (ada_check_typedef): Renames ada_completed_type.
1962 Update all users of CHECK_TYPEDEF, check_typedef, and
1963 ada_complete_type to call ada_check_typedef.
1964 * ada-typeprint.c: Likewise.
1965 * ada-valprint.c: Likewise.
1966
1967 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1968
1969 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1970
1971 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1972
1973 * MAINTAINERS: Update e-mail address.
1974
1975 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1976
1977 From Maciej W. Rozycki <macro@mips.com>:
1978 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1979 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1980
1981 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1982
1983 * m32r-tdep.c (decode_prologue): Support functions written
1984 in assembler language. Recognize trap instructions as the
1985 end of prologue.
1986 (m32r_frame_unwind_cache): Ditto.
1987 (m32r_skip_prologue): Extend search limit. Quit analyzing
1988 prologue if pc's location is not readable.
1989
1990 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1991
1992 * Makefile.in (.l.c): Do conversions of names of alloc and free
1993 functions that are done for .y.c files, plus special one
1994 for yy_flex_realloc. Also, correct missing-file tests here.
1995 * ada-lex.l (malloc, free): Remove macros.
1996 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1997 xrealloc.
1998 (ada_flex_use): Dummy definition to remove warnings about unused
1999 functions.
2000 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2001 to suppress warning.
2002
2003 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2004
2005 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2006 RETURN_VALUE.
2007 (sh_return_value_fpu): Ditto for CPUs with FPU.
2008 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2009 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2010 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2011 RETURN_VALUE functions.
2012
2013 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2014
2015 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2016 (sh_pseudo_register_write): Ditto.
2017
2018 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2019
2020 * sh-tdep.c (IS_MACL_STS): New define.
2021 (IS_MOVI20): Ditto.
2022 (IS_MACL_LDS): Ditto.
2023 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2024 instructions in prologue.
2025 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2026 instructions in epilogue.
2027
2028 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2029
2030 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2031 (sh_sh_register_name): Add eight empty register names.
2032 (sh_sh3_register_name): Ditto.
2033 (sh_sh3e_register_name): Ditto.
2034 (sh_sh2e_register_name): Ditto.
2035 (sh_sh2a_register_name): New function, defining SH2A register set.
2036 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2037 in nofpu case.
2038 (sh_sh_dsp_register_name): Add eight empty register names.
2039 (sh_sh3_dsp_register_name): Ditto.
2040 (sh_sh4_register_name): Ditto.
2041 (sh_sh4_nofpu_register_name): Ditto.
2042 (sh_sh4al_dsp_register_name): Ditto.
2043 (sh2a_show_regs): New function.
2044 (sh2a_nofpu_show_regs): New function.
2045 (sh_sh2a_register_type): New function.
2046 (do_bank_register_info): New function.
2047 (sh_print_pseudo_register): Call do_bank_register_info.
2048 Call sh_print_pseudo_register for valid "bank" register.
2049 (sh_sh2a_register_sim_regno): New function.
2050 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2051 Increment pseudo register count by one for all sh variants with
2052 pseudo registers to accomodate pseudo bank register.
2053 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2054 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2055 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2056 Increment pseudo register numbers.
2057
2058 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2059
2060 * dwarf2read.c (read_subroutine_type): Call make_function_type
2061 instead of lookup_function_type.
2062
2063 2004-10-05 Jim Blandy <jimb@redhat.com>
2064
2065 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2066 (Previous change missed some uses.)
2067
2068 2004-10-05 Andrew Cagney <cagney@gnu.org>
2069
2070 * target.h (deprecated_child_ops): Rename child_ops.
2071 * wince.c: Update copyright. Rename child_ops.
2072 * win32-nat.c: Rename child_ops.
2073 * target.c: Rename child_ops.
2074 * rs6000-nat.c: Rename child_ops.
2075 * linux-nat.c: Rename child_ops.
2076 * infttrace.c: Rename child_ops.
2077 * inftarg.c: Rename child_ops.
2078 * infptrace.c: Rename child_ops.
2079 * hppah-nat.c: Update copyright. Rename child_ops.
2080 * hpux-thread.c: Update copyright. Rename child_ops.
2081
2082 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2083
2084 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2085
2086 2004-10-05 Andrew Cagney <cagney@gnu.org>
2087
2088 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2089
2090 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2091
2092 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2093 (die_ref_table): Remove.
2094 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2095 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2096 the usage of this type.
2097 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2098 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2099 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2100 (dwarf2_create_include_psymtab): Update comment.
2101 (find_partial_die): Remove third argument. Remove unreachable call
2102 to error ().
2103 (dwarf2_find_containing_comp_unit): Update comments. Change one
2104 assertion to an error. Remove an unreachable error.
2105 (dwarf2_find_comp_unit): Update comments.
2106 (type_at_offset): Remove dead code.
2107 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2108 (store_in_ref_table): Add CU argument.
2109 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2110 inter-compilation-unit references.
2111 (load_full_comp_unit, process_full_comp_unit): New functions, based
2112 on psymtab_to_symtab_1.
2113 (psymtab_to_symtab_1): Use them.
2114 (dwarf2_add_dependence): New function.
2115 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2116 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2117 (partial_die_parent_scope, guess_structure_name): Update for changes
2118 to find_partial_die.
2119 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2120 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2121 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2122 (read_die_and_children): Update call to store_in_ref_table.
2123 (do_free_die_list_cleanup): Remove.
2124 (fixup_partial_die): Update for changes to find_partial_die.
2125 (read_full_die): Handle queueing absolute references.
2126 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2127 (dwarf2_attr, die_specification, die_type)
2128 (die_containing_type, dwarf2_extension): Update calls to
2129 follow_die_ref.
2130 (dump_die): Update DW_FORM_ref* handling.
2131 (dwarf2_get_ref_die_offset): Likewise.
2132 (free_one_comp_unit): Release the dies list.
2133 (dwarf2_mark_helper): New function.
2134 (dwarf2_mark): Use it.
2135
2136 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2137
2138 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2139 when writing to memory.
2140
2141 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2142
2143 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2144 (m32r_extract_struct_value_address): Delete function.
2145 (m32r_return_value): New function.
2146 (m32r_gdbarch_init): Instead of store_return_value,
2147 extract_return_value, deprecated_extract_struct_value_address
2148 and deprecated_use_struct_convention, set return_value.
2149
2150 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2151
2152 * dwarf2read.c (read_subrange_type): Add comment for variable
2153 sized arrays.
2154
2155 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2156
2157 * Makefile.in (.l.c): Modify rule for compatibility with recent
2158 versions of flex, and remove most command-line options.
2159 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2160 options.
2161
2162 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2163
2164 Turn on initial Ada support (mainly expression evaluation).
2165
2166 * Makefile.in (SFILES): Remove ada-tasks.c.
2167 (HFILES_NO_SRCDIR): Add ada-lang.h.
2168 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2169 (YYOBJ): Add ada-exp.o.
2170 (rule .l.c): Generalize to not mention ada.
2171 * symtab.c: Include ada-lang.h.
2172 (symbol_natural_name, symbol_demangled_name)
2173 (symbol_search_name): Add Ada case.
2174
2175 2004-10-01 Andrew Cagney <cagney@gnu.org>
2176
2177 * Makefile.in (COMMON_OBS): Add inf-child.o.
2178 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2179 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2180 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2181 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2182 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2183 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2184 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2185 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2186 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2187 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2188 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2189 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2190 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2191
2192 * target.c (xfer_using_stratum): Change return type to LONGEST.
2193 On each iteration offset, readbuf and writebuf.
2194 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2195 partial_length, and read/modify/write predicate, update comments.
2196 Pass buffer.word to ptrace write.
2197
2198 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2199
2200 * symfile.c (init_filename_language_table): Add extensions for
2201 Ada.
2202 * defs.h (enum language): Add language_ada.
2203 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2204 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2205 (add_symbols_from_enclosing_procs): Make a no-op for now.
2206 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2207 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2208 (find_line_in_linetable, find_next_line_in_linetable)
2209 (read_all_symtabs, is_plausible_func_for_line)
2210 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2211 (is_runtime_sym_defined, check_size): Remove declaration.
2212 (function_name_from_pc, ada_translate_error_message)
2213 (ada_lookup_minimal_symbol): Remove definition.
2214 (ada_add_block_symbols): Remove useless label.
2215 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2216 useless declaration.
2217 (ada_is_exception_sym): Likewise.
2218
2219 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2220
2221 Add m32r-linux support.
2222 * configure.tgt: Add m32r*-*-linux*.
2223 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2224 and m32r-linux-tdep.c.
2225 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2226 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2227 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2228 m32r-linux-tdep.c.
2229 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2230 config/m32r/linux.mh, config/m32r/linux.mt,
2231 config/m32r/nm-linux.h: New files.
2232
2233 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2234
2235 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2236 (mips32_fetch_instruction): Remove, unused.
2237
2238 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2239
2240 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2241 conditions that will always be true.
2242
2243 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2244
2245 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2246 (vaxbsd_fetch_inferior_registers): Rename from
2247 fetch_inferior_registers. Make static.
2248 (vaxbsd_store_inferior_registers): Rename from
2249 store_inferior_registers. Make static.
2250 (_initialize_vaxbsd_nat): Construct and add target vector.
2251 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2252 inftarg.o. Add inf-child.o and inf-ptrace.o.
2253 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2254 inftarg.o. Add inf-child.o and inf-ptrace.o.
2255 (NAT_FILE): Remove.
2256 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2257 inftarg.o. Add inf-child.o and inf-ptrace.o.
2258 (NAT_FILE): Remove.
2259 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2260
2261 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2262 (m88kbsd_fetch_inferior_registers): Rename from
2263 fetch_inferior_registers. Make static.
2264 (m88kbsd_store_inferior_registers): Rename from
2265 store_inferior_registers. Make static.
2266 (_initialize_m88kbsd_nat): New prototype and function.
2267 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2268 inftarg.o. Add inf-child.o and inf-ptrace.o.
2269 (NAT_FILE): Remove.
2270 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2271
2272 2004-09-30 Andrew Cagney <cagney@gnu.org>
2273
2274 * target.c (target_xfer_partial): New function.
2275 (target_read_memory_partial, target_write_memory_partial)
2276 (default_xfer_partial, target_read_partial, target_write_partial)
2277 (xfer_using_stratum): Use.
2278 (debug_to_xfer_partial): Delete function.
2279 (setup_target_debug): Do not override to_xfer_partial.
2280
2281 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2282
2283 * fork-child.c: Update copyright year. Fix coding style.
2284
2285 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2286
2287 * defs.h (msavestring, mstrsave): Remove prototypes.
2288 * utils.c (msavestring, mstrsave): Remove functions.
2289 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2290 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2291 of mstrsave.
2292 * source.c (find_and_open_source): Use xstrdup instead of
2293 mstrsave.
2294
2295 2004-09-30 Andrew Cagney <cagney@gnu.org>
2296
2297 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2298 (inf_ptrace_xfer_memory): Delete.
2299 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2300 (target_read_memory, target_write_memory): Use xfer_using_stratum
2301 when target_xfer_partial_p.
2302 (debug_target): Move to start of file.
2303 (target_read_memory_partial, target_write_memory_partial): Use
2304 to_xfer_partial when target_xfer_partial_p.
2305
2306 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2307 inf_ptrace_xfer_memory with equivalent code.
2308 * inftarg.c (child_xfer_partial): When performing a write, pass
2309 writebuf to child_xfer_memory.
2310
2311 * target.c (target_read_string): Use target_read_memory instead of
2312 target_xfer_memory.
2313
2314 2004-09-29 Andrew Cagney <cagney@gnu.org>
2315
2316 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2317 the address of status.
2318
2319 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2320 (kill_inferior): Inline ptrace_wait call.
2321 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2322 * inftarg.c (child_wait): Inline ptrace_wait call.
2323
2324 * target.h (struct target_ops): Delete field to_post_wait.
2325 (target_post_wait): Delete macro.
2326 (child_post_wait): Delete declaration.
2327 * target.c (update_current_target, update_current_target)
2328 (debug_to_post_wait, setup_target_debug): Delete functions and
2329 references.
2330 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2331 * inftarg.c (child_post_wait): Delete.
2332 (init_child_ops): Do not set to_post_wait.
2333 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2334 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2335 * inf-child.c (inf_child_post_wait): Delete.
2336 (inf_child_target): Do not set to_post_wait.
2337 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2338 (inf_ptrace_target): Do not set to_post_wait.
2339
2340 * wince.c (child_ops): Delete.
2341 * win32-nat.c (child_ops): Delete.
2342
2343 * inftarg.c (inftarg_set_find_memory_regions)
2344 (inftarg_set_make_corefile_notes): Delete functions.
2345 (_initialize_linux_nat): Inline calls.
2346
2347 * target.h (child_ops): Declare.
2348 * inftarg.c (child_ops): Move from here ...
2349 * target.c (child_ops): ... to here.
2350 * wince.c (child_ops): Delete extern declaration.
2351 * win32-nat.c (child_ops): Delete extern declaration.
2352 * linux-nat.c (child_ops): Delete extern declaration.
2353 * hpux-thread.c (child_ops): Delete extern declaration.
2354
2355 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2356
2357 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2358
2359 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2360
2361 * configure.in: Only set host_makefile_frag when building a native
2362 debugger.
2363 * configure: Regenerate.
2364
2365 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2366 for OpenBSD ELF.
2367
2368 2004-09-28 Andrew Cagney <cagney@gnu.org>
2369
2370 Problem identified by Paul Hilfinger.
2371 * Makefile.in (ada_lex_c): Define.
2372 (ada-lex.o): Delete rule.
2373
2374 * linux-proc.c: Delete file.
2375 * Makefile.in: Update.
2376 * config/sparc/linux64.mh (NATDEPFILES):
2377 * config/sparc/linux.mh (NATDEPFILES): Update.
2378 * config/s390/s390.mh (NATDEPFILES): Update.
2379 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2380 * config/powerpc/linux.mh (NATDEPFILES): Update.
2381 * config/pa/linux.mh (NATDEPFILES): Update.
2382 * config/mips/linux.mh (NATDEPFILES): Update.
2383 * config/m68k/linux.mh (NATDEPFILES): Update.
2384 * config/ia64/linux.mh (NATDEPFILES): Update.
2385 * config/i386/linux64.mh (NATDEPFILES): Update.
2386 * config/i386/linux.mh (NATDEPFILES): Update.
2387 * config/arm/linux.mh (NATDEPFILES): Update.
2388 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2389 * linux-nat.c: Update copyright. Include <sys/param.h>,
2390 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2391 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2392 (O_LARGEFILE): Possibly define.
2393 (_initialize_linux_nat, linux_proc_pending_signals)
2394 (add_line_to_sigset, linux_proc_xfer_memory)
2395 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2396 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2397 (struct linux_corefile_thread_data)
2398 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2399 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2400
2401 2004-09-16 Andrew Cagney <cagney@gnu.org>
2402
2403 * lin-lwp.c: Delete file.
2404 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2405 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2406 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2407 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2408 (linux_nat_attach, detach_callback, linux_nat_detach)
2409 (resume_callback, resume_clear_callback, linux_nat_resume)
2410 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2411 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2412 (status_callback, running_callback, count_events_callback)
2413 (select_singlestep_lwp_callback, select_event_lwp_callback)
2414 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2415 (child_wait, stop_and_resume_callback, linux_nat_wait)
2416 (kill_callback, kill_wait_callback, linux_nat_kill)
2417 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2418 (linux_nat_xfer_memory, linux_nat_thread_alive)
2419 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2420 (_initialize_linux_nat): New functions.
2421 * Makefile.in: Update all dependencies.
2422 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2423 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2424 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2425 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2426 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2427 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2428 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2429 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2430 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2431 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2432 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2433 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2434 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2435
2436 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2437
2438 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2439 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2440
2441 * configure.in: Don't comment out NATDEPFILES in the generated
2442 Makefile if NAT_FILE is unset.
2443 * configure: Regenerate.
2444
2445 2004-09-27 Andrew Cagney <cagney@gnu.org>
2446
2447 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2448 (insert_step_resume_breakpoint): Delete.
2449 (insert_step_resume_breakpoint_at_frame): New function.
2450 (insert_step_resume_breakpoint_at_sal): New function.
2451 (handle_inferior_event, step_into_function)
2452 (insert_step_resume_breakpoint): Simplify by using same.
2453
2454 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2455
2456 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2457
2458 * fbsd-proc.c: Remove file.
2459 * Makefile.in (fbsd-proc.o): Remove dependency.
2460
2461 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2462 code together.
2463
2464 * config/i386/nm-fbsd64.h: Remove file.
2465 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2466
2467 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2468
2469 * amd64-nat.h: Update copyright year.
2470 (amd64bsd_target): New prototype.
2471 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2472 (amd64bsd_target): New function.
2473 (amd64bsd_fetch_inferior_registers): Rename from
2474 fetch_inferior_registers. Make static.
2475 (amd64bsd_store_inferior_registers): Rename from
2476 store_inferior_registers. Make static.
2477 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2478 (_initialize_amd64fbsd_nat): Construct and add target vector.
2479 * amd64nbsd-nat.o: Include "target.h".
2480 (_initialize_amd64nbsd_nat): Construct and add target vector.
2481 * amd64obsd-nat.c: Include "target.h".
2482 (_initialize_amd64obsd_nat): Construct and add target vector.
2483 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2484 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2485 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2486 fbsd-nat.o.
2487 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2488 Remove infptrace.o and inftarg.o. Add inf-child.o and
2489 inf-ptrace.o.
2490 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2491 (amd64obsd-nat.o): Update dependencies.
2492
2493 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2494
2495 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2496 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2497 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2498 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2499 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2500
2501 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2502 Inline attach call.
2503 (inf_ptrace_detach): Inline detach call.
2504
2505 * configure.in: Check for waddstr instead of mvwaddstr when
2506 searching for curses library. Check for wborder.
2507 * configure, config.in: Regenerate.
2508 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2509 available.
2510
2511 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2512
2513 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2514
2515 Committed by Andrew Cagney.
2516 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2517 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2518 configuration.
2519 (fetch_register_using_p): Implement 'p' packet. Based on code by
2520 Fernando Nasser.
2521 (remote_fetch_registers): Call fetch_register_using_p.
2522 (init_all_packet_configs, show_remote_cmd)
2523 (_initialize_remote): Add p-packet.
2524
2525 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2526
2527 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2528 instead of call_ptrace. Call wait directly instead of
2529 ptrace_wait.
2530 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2531 (inf_ptrace_wait): Inline ptrace_wait call.
2532
2533 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2534
2535 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2536 rolled back instead.
2537
2538 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2539
2540 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2541 the new argument order.
2542
2543 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2544
2545 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2546 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2547 (struct gdbarch_tdep): Remove.
2548 (struct xstormy16_frame_cache): New frame cache structure.
2549 (xstormy16_register_byte, xstormy16_register_raw_size)
2550 (xstormy16_reg_virtual_type, xstormy16_register_type)
2551 (xstormy16_push_arguments, xstormy16_push_return_address)
2552 (xstormy16_pop_frame, xstormy16_store_struct_return)
2553 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2554 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2555 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2556 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2557 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2558 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2559 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2560 (xstormy16_extract_return_value, xstormy16_store_return_value):
2561 Regcachify. Drop useless struct convention handling.
2562 (xstormy16_register_type, xstormy16_return_value)
2563 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2564 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2565 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2566 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2567 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2568 (xstormy16_unwind_dummy_id) : New functions.
2569 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2570 of xstormy16_scan_prologue.
2571 (xstormy16_frame_unwind): New frame_unwind structure.
2572 (xstormy16_frame_base): New frame_base structure.
2573 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2574 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2575
2576 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2577
2578 * language.c (language_gdbarch_post_init): Fix off-by one error.
2579
2580 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2581
2582 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2583 (struct dwarf2_offset_and_type): New.
2584 (set_die_type, reset_die_and_siblings_types, get_die_type)
2585 (offset_and_type_hash, offset_and_type_eq): New functions.
2586 (read_structure_type, read_enumeration_type, read_array_type)
2587 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2588 (read_tag_reference_type, read_tag_const_type)
2589 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2590 (read_typedef, read_base_type, read_subrange_type): Use
2591 set_die_type.
2592
2593 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2594
2595 * Makefile.in (dwarf2read.o): Update dependencies.
2596 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2597 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2598 and read_in_chain.
2599 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2600 mark, and has_form_ref_addr.
2601 (struct dwarf2_per_cu_data): New.
2602 (dwarf2_max_cache_age): New.
2603 (dwarf2_build_psymtabs_hard): Free cached compilation units
2604 after loading. Create and manage the list of compilation units.
2605 Remove unnecessary NULL initialization. Fix indentation.
2606 (psymtab_to_symtab_1): Initialize all of CU.
2607 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2608 (find_partial_die): Use dwarf2_find_containing_comp_unit
2609 and load_comp_unit.
2610 (free_stack_comp_unit): Update comments. Clear the per-cu
2611 pointer. Handle aging.
2612 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2613 (age_cached_comp_units, free_one_cached_comp_unit)
2614 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2615 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2616 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2617 (show_dwarf2_cmd): New.
2618 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2619 and "maint show dwarf2 max-cache-age".
2620 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2621 externs.
2622 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2623 global.
2624
2625 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2626
2627 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2628 and dwarf2_cu struct pointer as arguments. Change function to use
2629 obstack if provided and use dwarf2_cu to determine language-specific
2630 separator.
2631 (partial_die_parent_scope): Change comment to include java. Use
2632 new version of typename_concat instead of obconcat.
2633 (partial_die_full_name): Use typename_concat.
2634 (read_namespace): Ditto.
2635 (read_enumeration_type): Use typename_concat instead of obconcat.
2636 (new_symbol): Ditto.
2637 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2638 (guess_structure_name): Ditto.
2639 (read_subroutine_type): Ditto.
2640 (read_structure_type): Ditto.
2641 (is_vtable_name): Add Java support.
2642 (determine_class_name): Switch to new typename_concat call.
2643 (determine_prefix): Switch to new typename_concat call.
2644 * jv-exp.y (FuncStart): New pattern.
2645 (MethodInvocation): Add support for simple function calls. Change
2646 warning message for other forms of inferior call currently not
2647 supported.
2648 * valarith.c (value_subscript): Treat an array with upper-bound
2649 of -1 as unknown size.
2650
2651 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2652
2653 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2654 (lookup_partial_symtab): Use symtab_to_fullname.
2655
2656 2004-09-19 Jim Blandy <jimb@redhat.com>
2657
2658 * minsyms.c (lookup_minimal_symbol): Doc fix.
2659
2660 2004-09-20 Andrew Cagney <cagney@gnu.org>
2661
2662 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2663 CHILD_RESUME.
2664 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2665 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2666 KILL_INFERIOR.
2667 * infptrace.c: Update.
2668
2669 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2670
2671 * symtab.c (output_source_filename): Mark first argument as const.
2672 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2673 for "info sources" output.
2674
2675 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2676
2677 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2678 <machine/vmparam.h>.
2679 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2680 (register_u_addr): Remove prototype.
2681
2682 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2683
2684 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2685 (i386bsd_fetch_inferior_registers): Rename from
2686 fetch_inferior_registers. Make static.
2687 (i386bsd_store_inferior_registers): Rename from
2688 store_inferior_registers. Make static.
2689 (i386bsd_target): New function.
2690 * i386bsd-nat.h: New file.
2691 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2692 "i386bsd-nat.h".
2693 (i386fbsd_resume): Rename from child_resume. Make static.
2694 (_initialize_i386fbsd_nat): Construct and add target vector.
2695 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2696 (_initialize_i386nbsd_nat): Construct and add target vector.
2697 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2698 Remove defines.
2699 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2700 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2701 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2702 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2703 (LOADLIBES): New variable.
2704 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2705 inf-ptrace.o. Remove inftarg.o.
2706 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2707 inf-ptrace.o. Remove inftarg.o.
2708 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2709 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2710 (LOADLIBES): New variable.
2711 * Makefile.in (i386bsd_nat_h): New variable.
2712 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2713 dependencies.
2714
2715 * sparc64nbsd-tdep.c: Include "objfiles.h".
2716 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2717 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2718 svr4_lp64_fetch_link_map_offsets.
2719 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2720 "nbsd-tdep.h".
2721 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2722 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2723 svr4_lp64_fetch_link_map_offsets.
2724 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2725 dependencies.
2726
2727 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2728 * fbsd-nat.h: New file.
2729 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2730 (fbsd_nat_h): New variable.
2731 (fbsd-nat.o): New dependency.
2732
2733 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2734 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2735
2736 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2737 comment.
2738
2739 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2740
2741 * ada-exp.y (type_int): New function to add layer of abstraction
2742 around references to expression types.
2743 (type_long): Ditto.
2744 (type_long_long): Ditto.
2745 (type_float): Ditto.
2746 (type_double): Ditto.
2747 (type_long_double): Ditto.
2748 (type_char): Ditto.
2749 (type_system_address): Ditto.
2750 (simple_exp): Use type_* functions in place of builtin_*
2751 variables.
2752 (exp): Ditto.
2753 (write_var_from_name): Ditto.
2754 (write_object_renaming): Ditto.
2755 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2756 declaration.
2757 (build_ada_types): Remove, replacing with...
2758 (ada_language_arch_info): New function to initialize primitive
2759 type vector in language_arch_info.
2760 (ada_array_length): Remove use of builtin_type_ada_int.
2761 (value_pos_atr): Ditto.
2762 (ada_evaluate_subexp): Ditto.
2763 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2764 builtin_type_ada_long_long, builtin_type_ada_char,
2765 builtin_type_ada_float, builtin_type_ada_double,
2766 builtin_type_ada_long_double, builtin_type_ada_natural,
2767 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2768 (ada_builtin_types): Remove.
2769 (ada_language_defn): Remove entries for la_builtin_type_vector and
2770 string_char_type and use ada_language_arch_info.
2771 (_initialize_ada_language): Do type-vector initialization along
2772 the lines of c-lang.c.
2773 (ada_create_fundamental_type): Break up line.
2774 (ada_dump_symtab): Remove unused function.
2775 (enum ada_primitive_types): Define.
2776 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2777 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2778 builtin_type_ada_float, builtin_type_ada_double,
2779 builtin_type_ada_long_double, builtin_type_ada_natural,
2780 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2781 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2782 (processInt): Ditto.
2783 (processReal): Ditto.
2784 (name_lookup): Ditto.
2785 * ada-typeprint.c (print_range): Use builtin_type_int, not
2786 builtin_type_ada_int.
2787
2788 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2789
2790 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2791
2792 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2793 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2794 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2795 * configure.in: Improve checks for curses library by checking for
2796 mvwaddstr instead of initscr. Drop HP curses in favour of
2797 standard curses on HP-UX.
2798 * configure: Regenerated.
2799
2800 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2801
2802 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2803 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2804 Minor formatting changes.
2805 (empty_array): Slight rewrite for formatting.
2806 (emit_char,parse,ada_language_defn,build_ada_types,
2807 ada_is_exception_sym, _initialize_ada_language): Move
2808 definitions around.
2809 (ada_dump_symtab): Remove unused definition.
2810 (ada_maybe_exception_partial_symbol): Remove unused definition.
2811
2812 2004-09-16 Andrew Cagney <cagney@gnu.org>
2813
2814 * inf-child.c: Include "gdb_string.h".
2815 (inf_child_core_file_to_sym_file): Delete.
2816 (inf_child_target): Set to_fetch_registers and to_store_registers.
2817 * inf-ptrace.c: Include "gdb_string.h".
2818 * Makefile.in: Update all dependencies.
2819
2820 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2821 problem.
2822
2823 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2824
2825 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2826 call to heuristic_proc_desc. Remove code that became redundant
2827 as a consequence.
2828 (read_next_frame_reg): Remove special case for SP_REGNUM.
2829 (set_reg_offset): Fix small typo.
2830 (reset_saved_regs): New procedure.
2831 (mips32_heuristic_proc_desc): No longer compute a fake
2832 procedure descriptor. Compute the full frame cache instead.
2833 Some minor comment reformatting.
2834
2835 2004-09-14 Andrew Cagney <cagney@gnu.org>
2836
2837 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2838 maintainer.
2839
2840 * thread-db.c (thread_db_new_objfile): Assume that there is a
2841 child process.
2842
2843 2004-09-13 Jim Blandy <jimb@redhat.com>
2844
2845 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2846 so that its storage isn't referenced after its lifetime ends.
2847
2848 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2849 and never assigned to. Delete it, and the 'if (use_buffer)'
2850 clauses. Delete 'raw_buffer', since it is now unused.
2851
2852 2004-09-13 Andrew Cagney <cagney@gnu.org>
2853
2854 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2855 * configure: Re-generate.
2856 * nlm/Makefile.in (TAGS): Update.
2857 * Makefile.in (TAGS): Update.
2858 * config/vax/nbsd.mt (TM_FILE): Update.
2859 * config/sparc/vxworks.mt (TM_FILE): Update.
2860 * config/sparc/sol2.mt (TM_FILE): Update.
2861 * config/sparc/sol2-64.mt (TM_FILE): Update.
2862 * config/sparc/obsd64.mt (TM_FILE): Update.
2863 * config/sparc/obsd.mt (TM_FILE): Update.
2864 * config/sparc/nbsd64.mt (TM_FILE): Update.
2865 * config/sparc/nbsd.mt (TM_FILE): Update.
2866 * config/sparc/linux64.mt (TM_FILE): Update.
2867 * config/sparc/linux.mt (TM_FILE): Update.
2868 * config/sparc/fbsd.mt (TM_FILE): Update.
2869 * config/sh/wince.mt (TM_FILE): Update.
2870 * config/sh/nbsd.mt (TM_FILE): Update.
2871 * config/sh/linux.mt (TM_FILE): Update.
2872 * config/sh/embed.mt (TM_FILE): Update.
2873 * config/s390/s390.mt (TM_FILE): Update.
2874 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2875 * config/rs6000/rs6000.mt (TM_FILE): Update.
2876 * config/rs6000/aix4.mt (TM_FILE): Update.
2877 * config/powerpc/vxworks.mt (TM_FILE): Update.
2878 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2879 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2880 * config/powerpc/obsd.mt (TM_FILE): Update.
2881 * config/powerpc/nbsd.mt (TM_FILE): Update.
2882 * config/powerpc/linux.mt (TM_FILE): Update.
2883 * config/powerpc/aix.mt (TM_FILE): Update.
2884 * config/pa/obsd.mt (TM_FILE): Update.
2885 * config/pa/linux.mt (TM_FILE): Update.
2886 * config/pa/hppahpux.mt (TM_FILE): Update.
2887 * config/pa/hppa64.mt (TM_FILE): Update.
2888 * config/pa/hppa.mt (TM_FILE): Update.
2889 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2890 * config/mips/wince.mt (TM_FILE): Update.
2891 * config/mips/vxmips.mt (TM_FILE): Update.
2892 * config/mips/nbsd.mt (TM_FILE): Update.
2893 * config/mips/linux.mt (TM_FILE): Update.
2894 * config/mips/irix6.mt (TM_FILE): Update.
2895 * config/mips/irix5.mt (TM_FILE): Update.
2896 * config/mips/embed.mt (TM_FILE): Update.
2897 * config/m68k/vxworks68.mt (TM_FILE): Update.
2898 * config/m68k/st2000.mt (TM_FILE): Update.
2899 * config/m68k/os68k.mt (TM_FILE): Update.
2900 * config/m68k/obsd.mt (TM_FILE): Update.
2901 * config/m68k/nbsd.mt (TM_FILE): Update.
2902 * config/m68k/monitor.mt (TM_FILE): Update.
2903 * config/m68k/linux.mt (TM_FILE): Update.
2904 * config/m68k/cisco.mt (TM_FILE): Update.
2905 * config/ia64/linux.mt (TM_FILE): Update.
2906 * config/ia64/aix.mt (TM_FILE): Update.
2907 * config/ia64/ia64.mt (TM_FILE): Update.
2908 * config/i386/vxworks.mt (TM_FILE): Update.
2909 * config/i386/obsd64.mt (TM_FILE): Update.
2910 * config/i386/obsd.mt (TM_FILE): Update.
2911 * config/i386/nto.mt (TM_FILE): Update.
2912 * config/i386/nbsd64.mt (TM_FILE): Update.
2913 * config/i386/nbsd.mt (TM_FILE): Update.
2914 * config/i386/linux64.mt (TM_FILE): Update.
2915 * config/i386/linux.mt (TM_FILE): Update.
2916 * config/i386/i386sol2.mt (TM_FILE): Update.
2917 * config/i386/i386lynx.mt (TM_FILE): Update.
2918 * config/i386/fbsd64.mt (TM_FILE): Update.
2919 * config/i386/fbsd.mt (TM_FILE): Update.
2920 * config/i386/cygwin.mt (TM_FILE): Update.
2921 * config/h8300/h8300.mt (TM_FILE): Update.
2922 * config/frv/frv.mt (TM_FILE): Update.
2923 * config/cris/cris.mt (TM_FILE): Update.
2924 * config/arm/wince.mt (TM_FILE): Update.
2925 * config/arm/nbsd.mt (TM_FILE): Update.
2926 * config/arm/linux.mt (TM_FILE): Update.
2927 * config/arm/embed.mt (TM_FILE): Update.
2928 * config/alpha/nbsd.mt (TM_FILE): Update.
2929 * config/alpha/fbsd.mt (TM_FILE): Update.
2930 * config/alpha/alpha.mt (TM_FILE): Update.
2931 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2932 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2933
2934 Eliminate event_loop_p, always has the value 1.
2935 * defs.h (event_loop_p): Delete macro.
2936 * breakpoint.c (until_break_command): Simplify.
2937 * utils.c (prompt_for_continue): Simplify.
2938 * tracepoint.c (read_actions): Simplify.
2939 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2940 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2941 (set_prompt, init_main): Simplify.
2942 (init_signals, disconnect): Delete, unused.
2943 * remote.c (remote_async_resume)
2944 (extended_remote_async_create_inferior): Simplify.
2945 * mi/mi-interp.c (mi_input): Delete, unused.
2946 (mi_interpreter_resume, mi_command_loop): Simplify.
2947 * interps.c (current_interp_command_loop): Simplify.
2948 * infrun.c (proceed): Simplify.
2949 * infcmd.c (run_command, continue_command, step_1, jump_command)
2950 (until_command, advance_command, finish_command)
2951 (interrupt_target_command): Simplify.
2952 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2953
2954 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2955 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2956 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2957 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2958 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2959 * mips-tdep.c (mips_dump_tdep): Do not print same.
2960
2961 2004-09-12 Andrew Cagney <cagney@gnu.org>
2962
2963 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2964 const.
2965 * Makefile.in (valprint.o): Delete explict rule.
2966
2967 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2968 reported by Dave Anderson.
2969
2970 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2971
2972 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2973
2974 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2975 Andrew Cagney <cagney@gnu.org>
2976
2977 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2978 (mi_cmd_data_list_register_values)
2979 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2980 the register number computation.
2981
2982 2004-09-12 Andrew Cagney <cagney@gnu.org>
2983
2984 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2985 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2986 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2987 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2988 target.
2989 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2990 inf-ptrace.o and inf-child.o.
2991 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2992 * Makefile.in: Update dependencies.
2993
2994 2004-09-11 Andrew Cagney <cagney@gnu.org>
2995
2996 * language.c (hex_string, hex_string_custom): Move from here ...
2997 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2998 (CELLSIZE): Increase to 50.
2999 * language.h (hex_string, hex_string_custom): Move from here ...
3000 * defs.h: ... to here.
3001 * Makefile.in: Update all dependencies.
3002
3003 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3004
3005 * language.c (local_hex_format_custom): Remove.
3006 (local_hex_string): Rename to hex_string, use C format, and move to
3007 utils.c
3008 (local_hex_string_custom): Rename to hex_string_custom and change
3009 interface. Now uses C format. Move to utils.c
3010 (local_octal_format_custom): Remove.
3011 (local_decimal_format_custom): Remove.
3012 (unknown_language_defn): Remove language-specific number
3013 formatting entries.
3014 (auto_language_defn): Ditto.
3015 (local_language_defn): Ditto.
3016 * language.h (struct language_format_info): Delete declaration.
3017 (struct language_defn): Remove language_format_info fields
3018 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3019 (local_binary_format): Remove macro.
3020 (local_binary_format_prefix): Remove macro.
3021 (local_binary_format_specifier): Remove macro.
3022 (local_binary_format_suffix): Remove macro.
3023 (local_octal_format): Remove macro.
3024 (local_octal_format_prefix): Remove macro.
3025 (local_octal_format_specifier): Remove macro.
3026 (local_octal_format_suffix): Remove macro.
3027 (local_decimal_format): Remove macro.
3028 (local_decimal_format_prefix): Remove macro.
3029 (local_decimal_format_specifier): Remove macro.
3030 (local_decimal_format_suffix): Remove macro.
3031 (local_hex_format): Remove macro.
3032 (local_hex_format_prefix): Remove macro.
3033 (local_hex_format_specifier): Remove macro.
3034 (local_hex_format_suffix): Remove macro.
3035 (local_decimal_format_custom): Remove.
3036 (local_octal_format_custom): Remove.
3037 (local_hex_format_custom): Remove.
3038 (local_hex_string): Rename to hex_string and move to defs.h.
3039 (local_hex_string_custom): Rename to hex_string_custom, change
3040 interface, and move to defs.h.
3041 * utils.c: (int_string): New function.
3042 (hex_string): New function (from language.c).
3043 (hex_string_custom): New function (from language.c).
3044 (octal2str): New function.
3045 (decimal2str): Add width parameter.
3046 (paddr_u): Use new decimal2str interface.
3047 (paddr_d): Ditto.
3048 * defs.h (hex_string): Declare.
3049 (hex_string_custom): Declare.
3050 (int_string): Declare.
3051 * printcmd.c (print_scalar_formatted): Remove localized binary
3052 formatting.
3053 * valprint.c (print_longest): Use int_string.
3054 (print_floating): Use C hex format.
3055 (print_hex_chars): Ditto.
3056 (print_binary_chars): Remove language-specific formatting.
3057 (print_octal_chars): Use C octal format.
3058 (print_decimal_chars): Delocalize format.
3059 (print_decimal): Remove.
3060 * ada-lang.c (ada_language_defn): Remove language-specific number
3061 formatting entries.
3062 * p-lang.c (pascal_language_defn): Ditto.
3063 * c-lang.c (c_language_defn): Ditto.
3064 (cplus_language_defn): Ditto.
3065 (asm_language_defn): Ditto.
3066 (minimal_language_defn): Ditto.
3067 * f-lang.c (f_language_defn): Ditto.
3068 * jv-lang.c (java_language_defn): Ditto.
3069 * m2-lang.c (m2_language_defn): Ditto.
3070 * scm-lang.c (scm_language_defn): Ditto.
3071 * objc-lang.c (objc_language_defn): Ditto.
3072 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3073 new interface.
3074 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3075 * ui-out.c (ui_out_field_core_addr): Ditto.
3076 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3077 * exec.c (print_section_info): Ditto.
3078 * i387-tdep.c (print_i387_status_word): Ditto.
3079 (print_i387_control_word): Ditto.
3080 (i387_print_float_info): Ditto.
3081 * maint.c (maint_print_section_info): Ditto.
3082 * solib.c (info_sharedlibrary_command): Ditto.
3083 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3084 * symtab.c (print_msymbol_info): Ditto.
3085 * tracepoint.c (tracepoints_info): Ditto.
3086 * solib-frv.c (lm_base): Ditto.
3087 (frv_current_sos): Ditto.
3088 (enable_break2): Ditto.
3089 (enable_break): Ditto.
3090 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3091 (process_one_symbol): Ditto.
3092 * infcmd.c (program_info): Ditto.
3093 * mdebugread.c (parse_partial_symbols): Ditto.
3094 * symfile.c (add_symbol_file_command): Ditto.
3095 * cli/cli-cmds.c (edit_command): Ditto.
3096 (list_command): Ditto.
3097 * infcall.c (call_function_by_hand): Ditto.
3098 * remote-vx.c (vx_run_files_info): Ditto.
3099 (vx_wait): Ditto.
3100 (vx_attach): Ditto.
3101 (vx_detach): Ditto.
3102 (vx_kill): Ditto.
3103 * aix-thread.c (pdc_symbol_addrs): Ditto.
3104 (pdc_read_regs): Ditto.
3105 (pdc_write_regs): Ditto.
3106 (pdc_read_data): Ditto.
3107 (pdc_write_data): Ditto.
3108 * d10v-tdep.c (display_trace): Ditto.
3109 * rs6000-nat.c (find_toc_address): Ditto.
3110 * aix-thread.c: Don't include language.h.
3111 * buildsym.c: Ditto.
3112 * dbxread.c: Ditto.
3113 * mdebugread.c: Ditto.
3114 * rs6000-nat.c: Ditto.
3115 * buildsym.c (make_blockvector): Use renamed hex_string.
3116
3117 2004-09-10 Jason Molenda (jmolenda@apple.com)
3118
3119 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3120 chars after 'if' or 'while' commands in user-defined commands.
3121
3122 2004-09-08 Jim Blandy <jimb@redhat.com>
3123
3124 Fix bug reported and analyzed by Olivier Crete:
3125 * symfile.c (copy_section_addr_info): New function.
3126 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3127 original set of address arguments, instead of handwritten code
3128 that uses one length to allocate and a different length to
3129 initialize. Use make_cleanup_free_section_addr_info.
3130 * symfile.h (copy_section_addr_info): New declaration.
3131 * utils.c: #include "symfile.h".
3132 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3133 New functions.
3134 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3135 * Makefile.in (utils.o): Update dependencies.
3136
3137 2004-09-08 Andrew Cagney <cagney@gnu.org>
3138
3139 * thread-db.c (keep_thread_db): Delete.
3140 (thread_db_new_objfile, thread_db_create_inferior)
3141 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3142
3143 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3144
3145 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3146 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3147 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3148 (i386_frameless_signal_p): Remove prototype.
3149 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3150 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3151 I386_SSE_NUM_REGS.
3152 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3153 instead of FP0_REGNUM.
3154 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3155 of FP0_REGNUM and FPC_REGNUM.
3156
3157 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3158 (sunos_solib_create_inferior_hook): Don't call
3159 sunos_relocate_main_executable.
3160
3161 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3162 solib_svr4_fetch_link_map_offsets to
3163 svr4_ilp32_fetch_link_map_offsets.
3164 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3165 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3166 svr4_ilp32_fetch_link_map_offsets.
3167 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3168
3169 2004-09-07 Jim Blandy <jimb@redhat.com>
3170
3171 * frame.h (frame_register): Doc fix.
3172
3173 2004-09-07 Andrew Cagney <cagney@gnu.org>
3174
3175 * vx-share/wait.h: Delete #ifdef USG.
3176 * utils.c (request_quit): Ditto.
3177 * tui/tui.c (tui_reset): Ditto.
3178 * remote.c: Ditto.
3179 * remote-sds.c: Ditto.
3180 * remote-rdi.c: Ditto.
3181 * mdebugread.c: Ditto.
3182 * m68klinux-nat.c: Ditto.
3183 * infttrace.c: Ditto.
3184 * infptrace.c: Ditto.
3185 * i386v-nat.c: Ditto.
3186 * exec.c: Ditto.
3187 * dbxread.c: Ditto.
3188 * core-aout.c: Ditto.
3189
3190 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3191
3192 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3193 heuristic_proc_desc.
3194 (mips_insn32_frame_cache): Likewise.
3195
3196 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3197
3198 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3199 left behind by error.
3200
3201 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3202
3203 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3204 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3205
3206 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3207
3208 * config/rs6000/xm-aix4.h: Remove this file.
3209 * config/rs6000/aix4.mh (XM_FILE): Delete.
3210
3211 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3212
3213 * config/rs6000/xm-rs6000.h: Remove this file.
3214 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3215
3216 2004-09-03 Andrew Cagney <cagney@gnu.org>
3217
3218 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3219 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3220 only use.
3221
3222 * mips-tdep.c (temp_saved_regs): Delete.
3223 (set_reg_offset): Replace saved_regs parameter with this_cache.
3224 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3225 (mips32_heuristic_proc_desc): Add this_cache parameter.
3226 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3227 (after_prologue): Pass a NULL this_cache.
3228
3229 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3230 non-kernel trap prologues.
3231
3232 * mips-tdep.c (find_proc_desc): Delete function.
3233 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3234 simplify.
3235 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3236 mips_insn32_frame_cache.
3237
3238 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3239 Simplify as NEXT_FRAME is NULL.
3240 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3241
3242 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3243 local variable.
3244 (mips_skip_prologue): Update.
3245
3246 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3247 "cur_frame" parameter.
3248 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3249 (mips_insn32_frame_cache, find_proc_desc): Update
3250
3251 * config/vax/nm-obsd.h: Delete file.
3252 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3253 * config/vax/nm-nbsd.h: Delete file.
3254 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3255 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3256 * config/sh/nm-nbsd.h: Delete file.
3257 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3258 * config/rs6000/nm-rs6000ly.h: Delete file.
3259 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3260 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3261 * config/powerpc/nm-obsd.h: Delete file.
3262 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3263 * config/powerpc/nm-nbsd.h: Delete file.
3264 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3265 * config/pa/nm-obsd.h: Delete file.
3266 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3267 * config/mips/nm-nbsd.h: Delete file.
3268 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3269 * config/m88k/nm-obsd.h: Delete file.
3270 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3271 * config/m68k/nm-nbsd.h: Delete file.
3272 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3273 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3274 * config/i386/nm-nbsd.h: Delete file.
3275 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3276 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3277 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3278 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3279 * config/i386/nm-i386lynx.h: Delete file.
3280 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3281 * config/arm/nm-nbsd.h: Delete file.
3282 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3283 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3284
3285 * config/i386/tm-fbsd.h: Delete file.
3286 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3287 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3288
3289 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3290 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3291 * config/rs6000/aix4.mt (TM_FILE): Set to
3292 config/rs6000/tm-rs6000.h.
3293 * config/powerpc/tm-ppc-aix.h: Delete file.
3294 * config/powerpc/aix.mt (TM_FILE): Set to
3295 config/rs6000/tm-rs6000.h.
3296 * config/m68k/tm-linux.h: Delete file.
3297 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3298 * config/i386/tm-linux64.h: Delete file.
3299 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3300 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3301
3302 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3303 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3304 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3305 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3306 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3307 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3308 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3309 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3310 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3311
3312 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3313 gdb_host_cpu.
3314
3315 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3316
3317 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3318 Minor reformatting. Some code factoring.
3319
3320 2004-09-02 Andrew Cagney <cagney@gnu.org>
3321
3322 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3323 * config/vax/tm-nbsd.h: Delete file.
3324 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3325 * config/sparc/tm-vxworks.h: Delete file.
3326 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3327 * config/sparc/tm-nbsd.h: Delete file.
3328 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3329 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3330 * config/sparc/tm-linux.h: Delete file.
3331 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3332 * config/s390/tm-linux.h: Delete file.
3333 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3334 * config/pa/tm-bsd.h: Delete file.
3335 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3336 * config/m68k/tm-obsd.h: Delete file.
3337 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3338 * config/m68k/tm-nbsd.h: Delete file.
3339 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3340 * config/i386/tm-vxworks.h: Delete file.
3341 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3342 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3343 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3344 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3345 * config/i386/tm-nbsd.h: Delete file.
3346 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3347 * config/i386/tm-i386lynx.h: Delete file.
3348 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3349 * config/cris/tm-cris.h: Delete file.
3350
3351 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3352 * configure: Re-generate.
3353 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3354 * config/arm/tm-nbsd.h: Delete file.
3355
3356 * config/powerpc/tm-ppcle-sim.h: Delete.
3357 * config/powerpc/tm-ppcle-eabi.h: Delete.
3358 * config/powerpc/tm-nbsd.h: Delete.
3359 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3360 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3361 tm-ppcle-eabi.h.
3362
3363 * config/i386/nto.mh (NAT_FILE): Delete.
3364 * config/i386/nm-nto.h: Delete.
3365
3366 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3367 * config/m68k/tm-os68k.h: Ditto.
3368 * config/m68k/tm-monitor.h: Ditto.
3369 * config/m68k/tm-cisco.h: Ditto.
3370 * config/m68k/st2000.mt (TM_FILE): Delete.
3371 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3372 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3373 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3374 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3375
3376 * config/m68k/tm-st2000.h: Delete.
3377 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3378 * config/sparc/fbsd.mt (TM_FILE): Delete.
3379 * config/sparc/tm-fbsd.h: Delete.
3380
3381 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3382 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3383 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3384
3385 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3386 GDB_TM_FILE and GDB_XM_FILE.
3387 * gdbarch.c: Re-generate.
3388 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3389 quotes in macro definition.
3390 * configure.in: Re-generate.
3391
3392 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3393 validating architecture methods.
3394 * gdbarch.c: Re-generate.
3395
3396 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3397 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3398 GDB_MULTI_ARCH_PARTIAL.
3399 * gdbarch.h: Re-generate.
3400
3401 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3402 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3403 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3404 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3405 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3406 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3407 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3408 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3409 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3410 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3411 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3412 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3413
3414 2004-09-01 Andrew Cagney <cagney@gnu.org>
3415
3416 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3417 and main_func_highpc.
3418 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3419 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3420 * nlmread.c (nlm_symfile_read): Update.
3421
3422 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3423
3424 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3425 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3426 (find_proc_desc): Remove dead code.
3427
3428 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3429
3430 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3431
3432 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3433
3434 * observer.sh: Add struct so_list declaration.
3435 * Makefile.in: Add dependencies on observer.h for solib.c and
3436 breakpoint.c.
3437 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3438 function.
3439 (_initialize_breakpoint): Register
3440 disable_breakpoints_in_unloaded_shlib as an observer of the
3441 "solib unloaded" observation event.
3442 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3443 call decode_line_1 so unfound breakpoint errors are silent.
3444 * solib.c (update_solib_list): When a solib is discovered to have
3445 been unloaded by the program, notify all observers of the
3446 "solib unloaded" observation event.
3447
3448 2004-09-01 Andrew Cagney <cagney@gnu.org>
3449
3450 * frame.c: Include "objfiles.h".
3451 (inside_main_func): New function.
3452 (get_prev_frame): Use new inside_main_func.
3453 * Makefile.in (frame.o): Update dependencies.
3454 * defs.h (inside_main_func): Delete declaration.
3455 * blockframe.c (inside_main_func): Delete function.
3456
3457 2004-08-31 Jim Blandy <jimb@redhat.com>
3458
3459 * dwarf2read.c (is_vtable_name): New function, based on logic from
3460 read_structure_type, but passing the correct length to strncmp,
3461 and using 'sizeof' instead of 'strlen'.
3462 (read_structure_type): Call it.
3463
3464 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3465
3466 * config/powerpc/aix.mh: Add comment.
3467
3468 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3469
3470 * MAINTAINERS: Add self to Write-After-Approval.
3471
3472 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3473
3474 * MAINTAINERS: Add self to Write-After-Approval.
3475
3476 2004-08-30 Andrew Cagney <cagney@gnu.org>
3477
3478 Fix PR breakpoints/1757.
3479 * infrun.c (struct execution_control_state): Replace
3480 remove_breakpoints_on_following_step with
3481 step_after_step_resume_breakpoint.
3482 (init_execution_control_state): Update.
3483 (handle_inferior_event): For signals, when stepping off a
3484 breakpoint, set step_after_step_resume_breakpoint. When
3485 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3486 (keep_going): Delete code handling
3487 remove_breakpoints_on_following_step.
3488
3489 2004-08-29 David Lecomber <david@streamline-computing.com>
3490
3491 Fix PR gdb/648
3492 * language.h (enum array_ordering): New enum.
3493 * language.h (struct language_defn): New la_array_ordering
3494 attribute.
3495 * language.c (unknown_language_defn, auto_language_defn)
3496 (local_language_defn): Ditto.
3497 * ada-lang.c (ada_language_defn): Ditto.
3498 * c-lang.c (c_language_defn, cplus_language_defn)
3499 (asm_language_defn, minimal_language_defn): Ditto.
3500 * f-lang.c (f_language_defn): Ditto.
3501 * jv-lang.c (java_language_defn): Ditto.
3502 * m2-lang.c (f_language_defn): Ditto.
3503 * objc-lang.c (objc_language_defn): Ditto.
3504 * p-lang.c (pascal_language_defn): Ditto.
3505 * scm-lang.c (scm_language_defn): Ditto.
3506 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3507 oriented large to small in type structure.
3508 * dwarf2read.c (read_array_order): New function.
3509 (read_array_type): Use read_array_order to check row/column
3510 major ordering.
3511
3512 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3513
3514 * target.c (target_resize_to_sections): Check
3515 current_target.to_sections for an old value when updating.
3516
3517 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3518
3519 * procfs.c (dbx_link_bpt_addr): New static global variable.
3520 (dbx_link_shadow_contents): New static global variable.
3521 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3522 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3523 if we just hit it.
3524 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3525 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3526 from run to run.
3527 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3528 after the inferior has been forked.
3529 (remove_dbx_link_breakpoint): New function.
3530 (dbx_link_addr): New function.
3531 (insert_dbx_link_bpt_in_file): New function.
3532 (insert_dbx_link_bpt_in_region): New function.
3533 (insert_dbx_link_breakpoint): New function.
3534 (proc_trace_syscalls_1): New function, extracted from
3535 proc_trace_syscalls.
3536 (proc_trace_syscalls): Replace extract code by call to
3537 proc_trace_syscalls_1.
3538 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3539 is no longer valid.
3540
3541 2004-08-25 Jim Blandy <jimb@redhat.com>
3542
3543 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3544
3545 2004-08-25 Andrew Cagney <cagney@gnu.org>
3546
3547 * infrun.c (struct execution_control_state): Delete field
3548 "stepping_through_sigtramp".
3549 (init_execution_control_state): Do not set same.
3550 (context_switch): Do not pass same to save_infrun_state and
3551 load_infrun_state.
3552 * gdbthread.h (struct thread_info): Delete field
3553 stepping_through_sigtramp.
3554 (save_infrun_state, load_infrun_state): Delete parameter
3555 stepping_through_sigtramp.
3556 * thread.c (load_infrun_state, save_infrun_state): Update.
3557
3558 * infrun.c: Re-indent. Move expression operators to the beginning
3559 of the line. Remove long disabled #if 0 code.
3560
3561 2004-08-24 Andrew Cagney <cagney@gnu.org>
3562
3563 * doublest.h (floatformat_ieee_quad): Rename
3564 floatformat_ia64_quad.
3565 * doublest.c (floatformat_ieee_quad): Rename
3566 floatformat_ia64_quad.
3567 (_initialize_doublest): Update.
3568
3569 2004-08-24 Jim Blandy <jimb@redhat.com>
3570
3571 * dwarf2expr.h (struct dwarf_expr_context): New members
3572 'num_pieces' and 'pieces', for returning the result of an
3573 expression that uses DW_OP_piece.
3574 (struct dwarf_expr_piece): New struct type.
3575 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3576 pieces.
3577 (free_dwarf_expr_context): Free pieces, if any.
3578 (add_piece): New function.
3579 (execute_stack_op): Implement DW_OP_piece.
3580 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3581 expression is a list of pieces, print an error message.
3582 (dwarf2_loc_desc_needs_frame): If the expression yields
3583 pieces, and any piece is in a register, then we need a frame.
3584
3585 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3586 the stack until we've decided what sort of result the evaluation
3587 has produced. Use separate variables, with more specific names.
3588
3589 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3590
3591 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3592 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3593 (arm_netbsd_init_abi_common): Register them.
3594
3595 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3596
3597 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3598
3599 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3600 safe_frame_unwind_memory instead of target_read_memory.
3601
3602 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3603 Reorder includes.
3604 (fetch_register, store_register): Remove prototypes.
3605 (child_resume): Reorganize code and comments such that it is
3606 grouped a bit more logically.
3607 (attach): Explicitly compare errno against 0.
3608 (detach): Likewise. Use perror_with_name instead of
3609 print_sys_errmsg.
3610 * Makefile.in (infptrace.o): Update dependencies.
3611
3612 * ia64-linux-nat.c: Update copyright year.
3613 (fetch_debug_register, store_debug_register)
3614 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3615 PTRACE_TYPE_ARG3.
3616 * config/ia64/nm-linux.h: Update copyright year.
3617 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3618
3619 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3620 from CORE_ADDR to struct frame_info *. Use
3621 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3622 (amd64_linux_sigtramp_p): Adjust for changed signature of
3623 and64_linux_sigtramp_start
3624
3625 * gdb_ptrace.h: GNU/Linux.
3626
3627 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3628 Remove defines.
3629
3630 * infptrace.c: Include "gdb_assert.h".
3631 (PTRACE_XFER_TYPE): Remove define.
3632 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3633 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3634 Tweak comment.
3635 (fetch_inferior_registers, store_inferior_registers): Remove
3636 redundant culry braces. Tweak comment. s/regno/regnum.
3637 * Makefile.in (infptrace.o): Update dependencies.
3638
3639 * configure.in: Change test for return type of ptrace to default
3640 to `long' instead of `int'.
3641 * configure: Regenerate.
3642
3643 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3644
3645 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3646
3647 * configure.in: Check for ttrace function.
3648 * configure, config.in: Regenerate.
3649
3650 * gdb_ptrace.h: New file.
3651 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3652 <sys/ptrace.h>.
3653 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3654 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3655 (attach): Don't define PT_ATTACH.
3656 (detach): Don't define PT_DETACH.
3657 * Makefile.in (gdb_ptrace_h): New variable.
3658 (infptrace.o): Update dependencies.
3659
3660 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3661
3662 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3663 instead of `int' if not already defined.
3664 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3665 PTRACE_TYPE_ARG3.
3666 * infptrace.c (call_ptrace): Revert change that replaced
3667 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3668
3669 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3670
3671 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3672 Remove defines.
3673
3674 * linux-nat.c (kill_inferior): Add missing third and fourth
3675 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3676
3677 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3678 PTRACE_TYPE_RET.
3679
3680 * proc-why.c (proc_prettyfprint_why): Fix format string.
3681
3682 * solib-osf.c (osf_current_sos): Remove unsused label.
3683
3684 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3685 curses headers.
3686 * configure, config.in: Regenerate.
3687 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3688 <ncurses/ncurses.h>.
3689
3690 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3691 * config/nm-nbsd.h: Update copyright year.
3692 (PTRACE_ARG3_TYPE): Remove define.
3693
3694 * sparc-nat.c (fetch_inferior_registers)
3695 (store_inferior_registers, sparc_xfer_wcookie):
3696 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3697
3698 * alphabsd-nat.c (fetch_inferior_registers):
3699 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3700 PTRACE_TYPE_ARG3.
3701 * amd64bsd-nat.c (fetch_inferior_registers)
3702 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3703 PTRACE_TYPE_ARG3.
3704 * armnbsd-nat.c: Update copyright year.
3705 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3706 (store_register, store_regs, store_fp_register, store_fp_regs):
3707 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3708 * hppabsd-nat.c (fetch_inferior_registers)
3709 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3710 PTRACE_TYPE_ARG3.
3711 * i386bsd-nat.c (fetch_inferior_registers)
3712 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3713 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3714 * m68kbsd-nat.c (fetch_inferior_registers)
3715 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3716 PTRACE_TYPE_ARG3.
3717 * m88kbsd-nat.c (fetch_inferior_registers)
3718 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3719 PTRACE_TYPE_ARG3.
3720 * mipsnbsd-nat.c: Update copyright year.
3721 (fetch_inferior_registers, store_inferior_registers):
3722 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3723 * ns32knbsd-nat.c: Update copyright year.
3724 (fetch_inferior_registers, store_inferior_registers):
3725 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3726 * ppcnbsd-nat.c (fetch_inferior_registers):
3727 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3728 PTRACE_TYPE_ARG3.
3729 * ppcobsd-nat.c (fetch_inferior_registers):
3730 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3731 PTRACE_TYPE_ARG3.
3732 * shnbsd-nat.c: Update copyright year.
3733 (fetch_inferior_registers, store_inferior_registers):
3734 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3735 * vaxbsd-nat.c (fetch_inferior_registers)
3736 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3737 PTRACE_TYPE_ARG3.
3738
3739 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3740 PTRACE_TYPE_ARG3.
3741 * infptrace.c (call_ptrace, child_resume, attach, detach)
3742 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3743 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3744 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3745 PTRACE_TYPE_ARG3.
3746
3747 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3748
3749 * defs.h: Remove out-of-date comment.
3750 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3751 [!GETENV_PROVIDED] (getenv): Remove prototype.
3752
3753 * standalone.c: Remove file.
3754 * Makefile.in (standalone.o): Remove dependency.
3755
3756 * i386-linux-nat.c (dummy_sse_values): Remove function and
3757 prototype.
3758 (i386_linux_dr_get): Fix typo in comment.
3759 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3760
3761 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3762
3763 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3764 from declaration.
3765 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3766 from definition.
3767
3768 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3769
3770 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3771 parenthesis in definition.
3772 * configure: Regenerated.
3773
3774 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3775
3776 * PROBLEMS: Mention build/1411.
3777
3778 2004-08-09 Robert Millan <robertmh@gnu.org>
3779
3780 Committed by Nathanael Nerode.
3781 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3782 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3783
3784 2004-08-12 Andrew Cagney <cagney@gnu.org>
3785
3786 * NEWS: Mention fixes in GDB 6.2.1.
3787 * PROBLEMS: Remove mention of mips-irix.
3788
3789 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3790
3791 * config/powerpc/xm-aix.h: Delete.
3792 * config/powerpc/aix.mh (MH_FILE): Remove.
3793 * config/powerpc/aix432.mh (MH_FILE): Remove.
3794
3795 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3796
3797 * config/powerpc/aix.mh: Remove obsolete comment.
3798 * config/powerpc/aix432.mh: Likewise.
3799
3800 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3801
3802 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3803
3804 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3805
3806 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3807 this file is now empty.
3808 * config/xm-aix4.h: Remove, this file is no longer included
3809 anywhere.
3810
3811 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3812
3813 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3814 that file is now empty.
3815 (termdef): Remove prototype, function no longer used.
3816
3817 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3818
3819 * doc/gdbint.texinfo (Host Definition): Remove documentation
3820 for USE_O_NOCTTY, no longer used.
3821 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3822 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3823
3824 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3825
3826 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3827 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3828 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3829
3830 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3831
3832 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3833 instead of FIVE_ARG_PTRACE.
3834
3835 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3836 (new_tty): Use O_NOCTTY unconditionally.
3837
3838 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3839
3840 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3841 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3842 fflush on stdout.
3843
3844 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3845
3846 * xcoff_symfile_finish: Replace last call to xmfree by call
3847 to xfree.
3848
3849 2004-08-10 Andrew Cagney <cagney@gnu.org>
3850
3851 * main.c (captured_main): Delete call to init_malloc.
3852 * defs.h (init_malloc): Delete declaration.
3853 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3854 (init_malloc): Delete functions.
3855
3856 * defs.h (xmfree): Delete.
3857 * utils.c (xmfree): Delete function.
3858 (xfree): Inline calls to xmfree and mfree.
3859 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3860 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3861 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3862 * somread.c (som_symfile_finish): Ditto.
3863 * objfiles.c (allocate_objfile, free_objfile):
3864 * nlmread.c (nlm_symfile_finish): Ditto.
3865 * hpread.c (hpread_symfile_finish): Ditto.
3866 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3867 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3868 * coffread.c (coff_symfile_finish): Ditto.
3869
3870 * defs.h (xmcalloc): Delete declaration.
3871 * utils.c (xmcalloc): Delete.
3872 (xcalloc): Inline calls to xmcalloc and mcalloc.
3873 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3874 xcalloc and xfree.
3875 * symtab.c (create_demangled_names_hash): Ditto.
3876
3877 * defs.h (xmrealloc): Delete.
3878 * utils.c (xmrealloc): Delete.
3879 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3880 * symmisc.c (extend_psymbol_list): Use xrealloc.
3881 * source.c (find_source_lines): Ditto.
3882 * hpread.c (hpread_lookup_type): Ditto.
3883 * dbxread.c (add_bincl_to_list): Ditto.
3884
3885 * utils.c (xmmalloc): Delete.
3886 (xmalloc): Inline xmmalloc and mmalloc calls.
3887 (msavestring): Use xmalloc.
3888 * defs.h (xmmalloc): Delete declaration.
3889 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3890 xmmalloc.
3891 * symmisc.c (extend_psymbol_list): Ditto.
3892 * symfile.c (init_psymbol_list): Ditto.
3893 * source.c (find_source_lines): Ditto.
3894 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3895 * elfread.c (elf_symtab_read): Ditto.
3896 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3897 * coffread.c (coff_symfile_init): Ditto.
3898
3899 2004-08-10 David Carlton <carlton@bactrian.org>
3900
3901 * MAINTAINERS: Remove David Carlton from c++ testsuite
3902 maintainers.
3903
3904 2004-08-10 Jerome Guitton <guitton@gnat.com>
3905
3906 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3907 print a line feed before the prompt.
3908
3909 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3910
3911 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3912
3913 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3914
3915 General cleanup of the AIX xm include file:
3916 * config/xm-aix4.h (fd_set): Remove undefine.
3917 Remove include of <sys/select.h>.
3918 (HAVE_TERMIO): Remove define.
3919 (USG): Likewise.
3920 (NULL): Remove redefine.
3921 (alloca): Remove #pragma.
3922 (vfork): Remove define.
3923 (termdef): Remove.
3924 (SIGWINCH_HANDLER): Remove.
3925 (SIGWINCH_HANDLER_BODY): Remove.
3926
3927 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3928
3929 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3930 GDB_OSABI_OPENBSD_ELF.
3931
3932 2004-08-07 Robert Millan <robertmh@gnu.org>
3933
3934 * bsd-kvm.c: Check for nlist.h before including it.
3935
3936 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3937
3938 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3939 sigcontext' offset consistency checks for ancient BSD.
3940
3941 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3942
3943 * configure.in: Check for <sys/types.h>. Check return and
3944 argument types of ptrace.
3945 * configure, config.in: Regenerate.
3946
3947 2004-08-09 Jim Blandy <jimb@redhat.com>
3948
3949 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3950 rs6000_register_sim_regno): Doc fixes.
3951
3952 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3953
3954 * mips-tdep.c: Include "floatformat.h".
3955 (n32n64_floatformat_always_valid): New function.
3956 (floatformat_n32n64_long_double_big): New constant.
3957 (mips_gdbarch_init): Set size and format of long double
3958 for N32 and N64 ABIs.
3959 * Makefile.in (mips-tdep.o): Update dependencies.
3960
3961 2004-08-08 Andrew Cagney <cagney@gnu.org>
3962
3963 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3964 print. Improve script's error messages.
3965 * gdbarch.h: Re-generate.
3966
3967 * gdbarch.sh (pformat): New function.
3968 (float_format, double_format, long_double_format): List with bit
3969 members. Use pformat when printing.
3970 * gdbarch.c, gdbarch.h: Re-generate.
3971
3972 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3973
3974 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3975 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3976 (ppcnbsd_supply_pcb): New function.
3977 (_initialize_ppcnbsd_nat): New prototype and function.
3978 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3979 (LOADLIBES): New variable.
3980 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3981
3982 2004-08-08 Andrew Cagney <cagney@gnu.org>
3983
3984 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3985 (builtin_type_ieee_double, builtin_type_ia64_quad)
3986 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3987 BE/LE floating-point types.
3988 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3989 (builtin_type_ieee_double, builtin_type_ia64_quad)
3990 (builtin_type_ia64_spill): Declare.
3991 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3992 (floatformat_ieee_double, floatformat_arm_ext)
3993 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3994 of LE/BE floatformats.
3995 * doublest.h: (struct floatformat, floatformat_ieee_single)
3996 (floatformat_ieee_double, floatformat_arm_ext)
3997 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3998
3999 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4000
4001 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4002
4003 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4004 instead of regcache_raw_supply when storing the registers.
4005
4006 * i386gnu-nat.c: Update copyright year.
4007 (gnu_store_registers): Don't use deprecated_registers and
4008 deprecated_registers_valid. Use regcache_valid_p and
4009 regcache_raw_supply instead.
4010
4011 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4012 frame_pc_unwind.
4013
4014 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4015 variables. Incapitalized "process".
4016
4017 * configure.in: Add cursesX to the list of possible curses libs.
4018 Add cursesX.h to the list of possible curses headers.
4019 * configure, config.in: Regenerate.
4020
4021 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4022
4023 * configure.in: Test for struct lwp in <sys/lwp.h>.
4024 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4025 the offset of l_addr in struct lwp.
4026
4027 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4028
4029 * bsd-kvm.c: Include "gdbcore.h"
4030 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4031
4032 2004-08-07 Andrew Cagney <cagney@gnu.org>
4033
4034 * gdbtypes.c (build_flt, build_complex): New functions.
4035 (gdbtypes_post_init): Use.
4036
4037 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4038
4039 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4040 through to builtin_type_uint128.
4041
4042 * c-exp.y: Use builtin_type function to obtain builtin types.
4043
4044 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4045 builtin_uint128.
4046 * gdbtypes.c (gdbtypes_post_init): Update.
4047 (build_gdbtypes): Move initialization of builtin_type_int0
4048 through to builtin_type_uint128 from here ...
4049 (_initialize_gdbtypes): ... to here.
4050 * d10v-tdep.c (d10v_register_type): Update.
4051
4052 * doublest.c: Update copyright.
4053 (floatformat_from_length): Call error when floatformat is NULL.
4054 (extract_floating_by_length): Remove NULL fmt check.
4055 (store_floating_by_length): Ditto.
4056
4057 2004-08-07 Andrew Cagney <cagney@gnu.org>
4058
4059 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4060 that the register is valid.
4061
4062 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4063
4064 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4065 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4066 struct frame_info *. Use safe_frame_unwind_memory instead of
4067 deprecated_read_memory_nobpt.
4068 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4069 changed signature of i386_linux_sigtramp_start and
4070 i386_linux_rt_sigtramp_start.
4071
4072 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4073 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4074 instead of deprecated_read_memory_nobpt.
4075 (i386nbsd_sigtramp_p): Adjust for changed signature of
4076 i386nbsd_sigtramp_offset.
4077
4078 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4079 safe_frame_unwind_memory instead of target_read_memory.
4080
4081 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4082 !NO_SYS_FILE.
4083 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4084 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4085 (_initialize_kernel_u_addr): Remove prototype and function.
4086 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4087 !NO_SYS_FILE.
4088 * xcoffread.c: Likewise.
4089
4090 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4091
4092 * vax-nat.c: New file.
4093 * vaxbsd-nat.c: Tweak comment.
4094 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4095 vaxnbsd-tdep.c.
4096 (vax-nat.o): New dependency.
4097 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4098 (vax-*-ultrix2*): Remove.
4099 * config/vax/vax.mh: New file.
4100 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4101 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4102 (vax_register_u_addr): New prototype.
4103 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4104 * config/vax/vaxult2.mh: Remove file.
4105 * config/vax/vaxult.mh: Remove file.
4106 * config/vax/vaxbsd.mh: Remove file.
4107 * config/vax/vax.mt (TM_FILE): Remove.
4108 * config/vax/tm-vaxbsd.h: Remove file.
4109
4110 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4111
4112 * aix-thread.c (get_signaled_thread): New function.
4113 (iter_trap): Delete, no longer used.
4114 (iter_tid): New function.
4115 (pd_update): Find the thread that received the SIGTRAP signal
4116 by first locating the kernel thread, and then finding its
4117 associated thread.
4118
4119 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4120
4121 * lin-lwp.c (child_wait): Continue inferior after processing
4122 PTRACE_EVENT_CLONE event.
4123
4124 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4125
4126 * MAINTAINERS: Add self to Write-After-Approval.
4127
4128 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4129
4130 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4131 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4132
4133 2004-08-05 Andrew Cagney <cagney@gnu.org>
4134
4135 * config/xm-sysv4.h: Delete file.
4136 * config/mips/xm-irix5.h: Delete file.
4137 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4138 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4139 * config/ia64/xm-aix.h: Delete file.
4140 * config/ia64/aix.mh (XM_FILE): Delete.
4141 * config/pa/xm-hppah.h: Delete file.
4142 * config/pa/hpux11w.mh (XM_FILE): Delete.
4143 * config/pa/hpux11.mh (XM_FILE): Delete.
4144 * config/pa/hpux1020.mh (XM_FILE): Delete.
4145 * config/pa/hppahpux.mh (XM_FILE): Delete.
4146
4147 * config/alpha/xm-alphalinux.h: Delete file.
4148 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4149 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4150 * config/alpha/xm-alphaosf.h: Delete file.
4151 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4152 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4153 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4154 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4155
4156 * config/i386/xm-i386v.h: Delete file.
4157 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4158 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4159 * config/i386/xm-i386sco.h: Delete file.
4160 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4161 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4162 * config/i386/xm-i386v4.h: Delete file.
4163 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4164 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4165 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4166 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4167
4168 * config/vax/xm-vax.h: Delete file.
4169 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4170 * config/vax/xm-vaxult2.h: Delete file.
4171 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4172 * config/vax/vaxult2.mh (XM_FILE): Delete.
4173 * config/vax/xm-vaxult.h: Delete file.
4174 * config/vax/vaxult.mh (XM_FILE): Delete.
4175 * config/vax/xm-vaxbsd.h: Delete file.
4176 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4177
4178 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4179 * gdbarch.h, gdbarch.c: Re-generate.
4180 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4181 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4182 * frame.h: Delete deprecated_read_fp from comments.
4183 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4184 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4185
4186 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4187
4188 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4189 trampoline in OpenBSD 3.5-current.
4190
4191 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4192 SSE registers.
4193
4194 * Makefile.in: Remove embedded page breaks.
4195
4196 2004-08-04 Jim Blandy <jimb@redhat.com>
4197
4198 * regcache.c (regcache_raw_read): Assert that, after calling
4199 target_fetch_registers, the register we're reading is cached.
4200
4201 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4202 a call to 'internal_error', with a more helpful error message.
4203 * rs6000-tdep.c (e500_pseudo_register_read,
4204 e500_pseudo_register_write, rs6000_store_return_value): Same.
4205
4206 2004-08-04 Andrew Cagney <cagney@gnu.org>
4207
4208 * Makefile.in: Update dependencies.
4209
4210 2004-08-04 Jim Blandy <jimb@redhat.com>
4211
4212 Change the layout of the PowerPC E500 raw register cache to allow
4213 the lower 32-bit halves of the GPRS to be their own raw registers,
4214 not pseudoregisters.
4215 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4216 add ppc_ev0_upper_regnum flag.
4217 * rs6000-tdep.c: #include "reggroups.h".
4218 (spe_register_p): Recognize the ev upper half registers as SPE
4219 registers.
4220 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4221 registers.
4222 (e500_move_ev_register): New function.
4223 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4224 vector registers are the pseudo-registers now, formed by splicing
4225 together the gprs and the upper-half registers.
4226 (e500_register_reggroup_p): New function.
4227 (P): Macro deleted.
4228 (P8, A4): New macro.
4229 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4230 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4231 macros.
4232 (registers_e500): Rearrange register set so that the raw register
4233 set contains 32-bit GPRs and upper-half registers, and the SPE
4234 vector registers become pseudo-registers.
4235 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4236 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4237 register numbers are now the same for the E500 as they are for
4238 other PowerPC variants. Register e500_register_reggroup_p as the
4239 register group function for the E500.
4240 * Makefile.in (rs6000-tdep.o): Update dependencies.
4241
4242 Adapt PPC E500 native support to the new raw regcache layout.
4243 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4244 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4245 (fetch_spe_register, store_spe_register): Handle fetching/storing
4246 all the SPE registers at once, if regno == -1. These now take
4247 over the job of fetch_spe_registers and store_spe_registers.
4248 (fetch_spe_registers, store_spe_registers): Deleted.
4249 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4250 unconditionally; they're always raw. Fetch/store SPE upper half
4251 registers, if present, instead of ev registers.
4252 (fetch_register, store_register): Remove sanity checks: gprs are
4253 never pseudo-registers now, so we never need to even mention any
4254 registers that are ever pseudoregisters.
4255
4256 Use a fixed register numbering when communicating with the PowerPC
4257 simulator.
4258 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4259 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4260 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4261 New functions.
4262 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4263 init_sim_regno_table.
4264 * Makefile.in (gdb_sim_ppc_h): New variable.
4265 (rs6000-tdep.o): Update dependencies.
4266
4267 2004-08-02 Andrew Cagney <cagney@gnu.org>
4268
4269 * cris-tdep.c (cris_register_size): Restore function, still used
4270 locally.
4271
4272 * gdbarch.sh (deprecated_target_read_fp)
4273 (deprecated_frame_locals_address, deprecated_frame_args_address)
4274 (deprecated_frame_chain_valid, deprecated_frame_chain)
4275 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4276 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4277 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4278 * gdbarch.h, gdbarch.c: Re-generate.
4279 * regcache.c (deprecated_read_fp): Do not call
4280 DEPRECATED_TARGET_READ_FP_P.
4281 * infcmd.c (default_print_registers_info): Do not call
4282 DEPRECATED_DO_REGISTERS_INFO.
4283 * frame-base.c (default_frame_locals_address): Do not call
4284 DEPRECATED_FRAME_LOCALS_ADDRESS.
4285 (default_frame_args_address): Do not call
4286 DEPRECATED_FRAME_ARGS_ADDRESS.
4287
4288 * gdbarch.sh (deprecated_register_raw_size)
4289 (deprecated_register_virtual_size:int): Delete.
4290 * gdbarch.h, gdbarch.c: Re-generate.
4291 * cris-tdep.c (cris_register_size): Delete.
4292 (cris_gdbarch_init): Update.
4293 * alpha-tdep.c (alpha_register_raw_size)
4294 (alpha_register_virtual_size): Delete.
4295 (alpha_gdbarch_init): Update.
4296
4297 * gdbarch.sh (deprecated_register_virtual_type)
4298 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4299 (deprecated_dummy_write_sp): Delete.
4300 * gdbarch.h, gdbarch.c: Re-generate.
4301
4302 * gdbarch.sh (deprecated_register_bytes): Delete.
4303 * gdbarch.h, gdbarch.c: Re-generate.
4304 * regcache.c (deprecated_register_bytes): New function.
4305 * regcache.h (deprecated_register_bytes): Declare.
4306 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4307 * v850-tdep.c (v850_gdbarch_init): Update.
4308 * sh64-tdep.c (sh64_gdbarch_init): Update.
4309 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4310 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4311 * mcore-tdep.c (mcore_gdbarch_init): Update.
4312 * cris-tdep.c (cris_gdbarch_init): Update.
4313 * arm-tdep.c (arm_gdbarch_init): Update.
4314 * remote.c (init_remote_state): Update.
4315 * remote-vx.c (vx_prepare_to_store): Update.
4316 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4317 * irix5-nat.c (fetch_core_registers): Update.
4318 * cris-tdep.c (cris_register_bytes_ok): Update.
4319 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4320
4321 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4322 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4323 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4324 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4325 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4326 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4327 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4328 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4329 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4330 with mips_insn16 and mips_insn32.
4331
4332 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4333 * rs6000-tdep.c (rs6000_push_dummy_call)
4334 (rs6000_extract_return_value): Use register_size.
4335 * xstormy16-tdep.c (xstormy16_get_saved_register)
4336 (xstormy16_extract_return_value): Ditto.
4337 * valops.c (value_assign): Ditto.
4338 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4339 * v850-tdep.c (v850_extract_return_value): Ditto.
4340 * tracepoint.c (collect_symbol): Ditto.
4341 * target.c (debug_print_register): Ditto.
4342 * stack.c (frame_info): Ditto.
4343 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4344 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4345 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4346 (store_register_using_P): Ditto.
4347 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4348 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4349 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4350 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4351 * regcache.c (deprecated_read_register_bytes)
4352 (deprecated_write_register_bytes, read_register)
4353 (write_register): Ditto.
4354 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4355 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4356 * monitor.c (monitor_supply_register, monitor_fetch_register)
4357 (monitor_store_register): Ditto.
4358 * mn10300-tdep.c (mn10300_pop_frame_regular)
4359 (mn10300_print_register): Ditto.
4360 * mipsv4-nat.c (fill_fpregset): Ditto.
4361 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4362 (mips64_fill_fpregset): Ditto.
4363 * mi/mi-main.c (register_changed_p, get_register)
4364 (mi_cmd_data_write_register_values): Ditto.
4365 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4366 * irix5-nat.c (fill_gregset, fetch_core_registers):
4367 * infrun.c (write_inferior_status_register): Ditto.
4368 * infptrace.c (fetch_register, store_register): Ditto.
4369 * infcmd.c (default_print_registers_info): Ditto.
4370 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4371 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4372 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4373 * hpux-thread.c (hpux_thread_fetch_registers)
4374 (hpux_thread_store_registers): Ditto.
4375 * hppah-nat.c (store_inferior_registers, fetch_register):
4376 * findvar.c (value_from_register): Ditto.
4377 * dve3900-rom.c (fetch_bitmapped_register):
4378 * cris-tdep.c (cris_gdbarch_init): Ditto.
4379 * alpha-tdep.h: Ditto.
4380 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4381
4382 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4383 DEPRECATED_REGISTER_RAW_SIZE from comments.
4384 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4385 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4386 DEPRECATED_REGISTER_RAW_SIZE.
4387 * findvar.c (value_of_register): Simplify by assuming that the
4388 registers raw and virtual sizes are identical.
4389 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4390 comment.
4391 * arch-utils.c (generic_register_size): Simplify by assuming
4392 register_type.
4393
4394 * regcache.c (legacy_read_register_gen, real_register)
4395 (legacy_write_register_gen): Delete, not used.
4396
4397 * regcache.c (struct regcache_descr): Delete legacy_p.
4398 (init_legacy_regcache_descr): Delete function.
4399 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4400 Do not use deprecated register functions.
4401 (regcache_raw_read, deprecated_write_register_gen):
4402 (deprecated_read_register_gen, regcache_raw_write): Delete code
4403 predicated on legacy_p.
4404 (register_size): Delete check against register raw size.
4405
4406 * cris-tdep.c (cris_register_type): Replace
4407 cris_register_virtual_type.
4408 (cris_gdbarch_init): Update, set register_type.
4409
4410 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4411 * gdbarch.h, gdbarch.c: Re-generate.
4412 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4413 (arm_gdbarch_init) Do not set frameless function invocation.
4414 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4415 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4416 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4417 (frv_gdbarch_init): Do not set frameless function invocation.
4418 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4419 * sh-tdep.c (sh_gdbarch_init): Ditto.
4420 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4421 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4422 * avr-tdep.c (avr_gdbarch_init): Ditto.
4423
4424 * blockframe.c (legacy_frame_chain_valid): Delete function.
4425
4426 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4427 and pc. Update comments.
4428 (pc_in_dummy_frame): Delete function.
4429 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4430 use the "id".
4431 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4432 call_hi, top and pc, use the id.
4433 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4434
4435 * dummy-frame.c: Include "gdb_string.h".
4436 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4437 (generic_save_dummy_frame_tos): Delete.
4438 (dummy_frame_push): New function, replaces above.
4439 * dummy-frame.h: Update copyright.
4440 (dummy_frame_push): Declare.
4441 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4442 (generic_save_call_dummy_addr): Delete declarations.
4443 * infcall.c: Include "dummy-frame.h".
4444 (call_function_by_hand): Add locals caller_regcache,
4445 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4446 with call to frame_save_as_regcache plus cleanup. Delete calls to
4447 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4448 Move clear_proceed_status to just before the resume, add call to
4449 dummy_frame_push (discard cleanup).
4450 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4451 (dummy-frame.o): Add $(gdb_string_h).
4452
4453 2004-08-01 Andrew Cagney <cagney@gnu.org>
4454
4455 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4456 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4457 * dummy-frame.c (find_dummy_frame): Delete.
4458 (struct dummy_frame_cache, dummy_frame_sniffer)
4459 (dummy_frame_prev_register, dummy_frame_this_id)
4460 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4461 frame unwinder using a dummy_frame_cache.
4462
4463 2004-08-01 Andrew Cagney <cagney@gnu.org>
4464
4465 * frame.h (frame_save_as_regcache): Declare.
4466 * frame.c (frame_save_as_regcache): New function.
4467 (do_frame_read_register): Replace do_frame_unwind_register.
4468 (frame_pop): Use frame_save_as_regcache.
4469 * dummy-frame.c (generic_push_dummy_frame): Use
4470 frame_save_as_regcache.
4471
4472 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4473
4474 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4475 file as included until we record the first line in the linetable.
4476
4477 2004-08-01 Andrew Cagney <cagney@gnu.org>
4478
4479 * frame.h (deprecated_pop_dummy_frame)
4480 (deprecated_read_register_dummy)
4481 (deprecated_generic_find_dummy_frame): Delete.
4482 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4483 (deprecated_read_register_dummy)
4484 (deprecated_find_dummy_frame_regcache)
4485 (discard_innermost_dummy)
4486 (deprecated_pop_dummy_frame): Delete.
4487 (dummy_frame_this_id): Simplify.
4488 (struct dummy_frame): Delete "fp" and "sp".
4489 (find_dummy_frame): Simplify.
4490 (generic_push_dummy_frame): Do not set "fp" or "sp".
4491 (fprint_dummy_frames): Do not print "fp" and "sp"
4492
4493 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4494
4495 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4496 (struct i386_insn): New structure.
4497 (i386_match_insn): New function.
4498 (i386_frame_setup_skip_insns): New variable.
4499 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4500 array i386_frame_setup_insns of instructions that should be
4501 skipped inside the frame setup sequence.
4502
4503 2004-08-01 Andrew Cagney <cagney@gnu.org>
4504
4505 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4506 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4507 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4508 * stack.c (frame_info): Delete references to
4509 DEPRECATED_FRAME_INIT_SAVED_REGS and
4510 deprecated_get_frame_saved_regs.
4511 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4512 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4513 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4514 (frame_unwind_register_signed)
4515 (frame_unwind_register_unsigned)
4516 (frame_unwind_unsigned_register): Use register_size.
4517 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4518 (deprecated_frame_xmalloc_with_cleanup)
4519 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4520 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4521
4522 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4523 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4524 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4525 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4526
4527 * infcall.c (call_function_by_hand): Do not use
4528 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4529 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4530 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4531 DEPRECATED_STACK_ALIGN.
4532
4533 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4534
4535 Committed by Andrew Cagney.
4536 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4537
4538 2004-08-01 Andrew Cagney <cagney@gnu.org>
4539
4540 * mips-tdep.c (mips16_frame_cache)
4541 (mips16_frame_this_id, mips16_frame_prev_register)
4542 (mips16_frame_unwind, mips16_frame_sniffer)
4543 (mips16_frame_base_address, mips16_frame_base)
4544 (mips16_frame_base_sniffer, mips32_frame_cache)
4545 (mips32_frame_this_id, mips32_frame_prev_register)
4546 (mips32_frame_unwind, mips32_frame_sniffer)
4547 (mips32_frame_base_address, mips32_frame_base)
4548 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4549 separate heuristic mips16 and mips32 unwinders.
4550 (mips_stub_frame_cache, mips_stub_frame_this_id)
4551 (mips_stub_frame_prev_register)
4552 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4553 (mips_stub_frame_base_address, mips_stub_frame_base)
4554 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4555 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4556 match true mdebug frames.
4557 (non_heuristic_proc_desc): Add forward declaration.
4558
4559 2004-08-01 Andrew Cagney <cagney@gnu.org>
4560
4561 * config/mips/tm-irix6.h: Delete file.
4562 * config/mips/tm-irix5.h: Delete file.
4563 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4564 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4565
4566 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4567 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4568 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4569 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4570 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4571 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4572 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4573 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4574 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4575 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4576 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4577 (TARGET_SIGNAL_RAW_VALUES): Delete.
4578 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4579 Delete.
4580 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4581 (TARGET_HW_WATCH_LIMIT): Delete.
4582 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4583 * minimon.h: Delete file.
4584
4585 * trad-frame.c (trad_frame_get_this_base)
4586 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4587 functions.
4588 * trad-frame.h (trad_frame_set_this_base)
4589 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4590
4591 2004-07-31 Andrew Cagney <cagney@gnu.org>
4592
4593 * trad-frame.c (trad_frame_get_prev_register): Rename
4594 trad_frame_get_prev_register.
4595 * vax-tdep.c (vax_frame_prev_register): Update.
4596 * trad-frame.h: Update.
4597 * trad-frame.c (trad_frame_get_register): Update.
4598 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4599 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4600 Update.
4601 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4602 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4603 Update.
4604 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4605 Update.
4606 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4607 Update.
4608 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4609 Update.
4610 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4611 Update.
4612 * s390-tdep.c (s390_frame_prev_register)
4613 (s390_stub_frame_prev_register)
4614 (s390_sigtramp_frame_prev_register): Update.
4615 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4616 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4617 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4618 * m88k-tdep.c (m88k_frame_prev_register)
4619 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4620 * m32r-tdep.c (m32r_frame_prev_register): Update.
4621 * hppa-tdep.c (hppa_frame_prev_register_helper)
4622 * frv-tdep.c (frv_frame_prev_register): Update.
4623 * d10v-tdep.c (d10v_frame_prev_register): Update.
4624 * cris-tdep.c (cris_frame_prev_register): Update.
4625 * avr-tdep.c (avr_frame_prev_register): Update.
4626 * arm-tdep.c (arm_prologue_prev_register)
4627 (arm_sigtramp_prev_register): Update.
4628
4629 2004-07-31 Andrew Cagney <cagney@gnu.org>
4630
4631 * frame.h (legacy_saved_regs_unwind)
4632 (legacy_frame_chain_valid, legacy_frame_p)
4633 (enum frame_type): Delete UNKNOWN_FRAME.
4634 * dummy-frame.c (dummy_frame_this_id): Simplify.
4635 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4636 * frame.c (struct frame_info): Delete the field "type".
4637 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4638 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4639 (legacy_saved_regs_unwind, legacy_frame_p)
4640 (frame_type_from_pc): Delete.
4641 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4642 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4643
4644 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4645
4646 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4647 indentation.
4648
4649 * mips-nat.c: Remove file.
4650 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4651 (mips-nat.o): Remove dependency.
4652
4653 * infptrace.c: Update copyright year.
4654 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4655 explicitly setting the buffer to all zeroes.
4656
4657 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4658 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4659
4660 2004-07-30 Andrew Cagney <cagney@gnu.org>
4661
4662 * GDB 6.2 released from gdb_6_2-branch.
4663
4664 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4665
4666 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4667
4668 * exec.c (exec_file_attach):
4669 * nto-tdep.c (nto_find_and_open_solib):
4670 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4671 * solib.c (solib_open):
4672 * somsolib.c (som_solib_sizeof_symbol_table):
4673 * source.c (is_regular_file, openp, open_source_file):
4674 * symfile.c (symfile_bfd_open):
4675 * wince.c (upload_to_device): Differentiate between the search for
4676 binary and source files.
4677
4678 2004-07-30 Andrew Cagney <cagney@gnu.org>
4679
4680 * complaints.c (_initialize_complaints): Pass NULL to
4681 add_setshow_zinteger_cmd for help_doc.
4682 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4683
4684 2004-07-30 Andrew Cagney <cagney@gnu.org>
4685
4686 Fix PR i18n/761.
4687 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4688 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4689 $(PACKAGE).pot and update-po.
4690 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4691 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4692 (update-po): New rules.
4693 (localedir): Define using autoconf.
4694 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4695 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4696 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4697 * configure.in: Generate CATALOGS and LINGUAS from contents of
4698 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4699 * configure: Re-generate.
4700 * po/gdbtext: New file
4701
4702 2004-07-30 Jerome Guitton <guitton@gnat.com>
4703
4704 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4705 order.
4706
4707 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4708
4709 * dwarf2read.c (read_file_scope): Set producer if attribute
4710 present.
4711 (struct dwarf2_cu): Added new member producer.
4712
4713 2004-07-30 Jerome Guitton <guitton@gnat.com>
4714
4715 * inflow.c (kill_command): release file handles in BFD.
4716 * exec.c (exec_file_attach): Ditto.
4717 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4718
4719 2004-07-29 Andrew Cagney <cagney@gnu.org>
4720
4721 * PROBLEMS (mips-irix): Note that it is broken.
4722
4723 2004-07-29 Andrew Cagney <cagney@gnu.org>
4724
4725 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4726 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4727
4728 * config/xm-nbsd.h: Delete file.
4729 * config/arm/xm-nbsd.h: Delete file.
4730 * config/i386/xm-nbsd.h: Delete file.
4731 * config/ns32k/xm-nbsd.h: Delete file.
4732 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4733 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4734 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4735 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4736 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4737
4738 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4739 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4740 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4741 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4742 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4743 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4744
4745 * config/powerpc/xm-linux.h: Delete empty file.
4746 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4747 * config/powerpc/linux.mh (XM_FILE): Delete.
4748 * config/m68k/xm-linux.h: Delete empty file.
4749 * config/m68k/linux.mh (XM_FILE): Delete.
4750 * config/ia64/xm-linux.h: Delete empty file.
4751 * config/ia64/linux.mh (XM_FILE): Delete.
4752 * config/arm/xm-linux.h: Delete empty file.
4753 * config/arm/linux.mh (XM_FILE): Delete.
4754
4755 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4756 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4757 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4758 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4759 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4760 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4761 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4762 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4763
4764 * config/m68k/xm-m68k.h: Delete file.
4765 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4766 copyright.
4767 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4768 * config/pa/xm-linux.h: Delete empty file.
4769 * config/pa/linux.mh (XM_FILE): Delete.
4770 * config/i386/xm-i386.h: Delete empty file.
4771 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4772 "i386/xm-i386.h".
4773 * config/i386/obsdaout.mh (XM_FILE): Delete.
4774 * config/i386/obsd64.mh (XM_FILE): Delete.
4775 * config/i386/fbsd64.mh (XM_FILE): Delete.
4776 * config/i386/nto.mh (XM_FILE): Delete.
4777 * config/i386/obsd.mh (XM_FILE): Delete.
4778 * config/i386/linux64.mh (XM_FILE): Delete.
4779 * config/i386/linux.mh (XM_FILE): Delete.
4780 * config/i386/i386sol2.mh (XM_FILE): Delete.
4781 * config/i386/i386gnu.mh (XM_FILE): Delete.
4782 * config/i386/fbsd.mh (XM_FILE): Delete.
4783 * config/i386/nbsd64.mh (XM_FILE): Delete.
4784
4785 2004-07-29 Andrew Cagney <cagney@gnu.org>
4786
4787 * config/pa/xm-linux.h: Do not include "floatformat.h".
4788 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4789 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4790 * config/i386/xm-i386.h: Do not include "floatformat.h".
4791 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4792 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4793 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4794 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4795 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4796 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4797 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4798 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4799 * configure, config.in: Regenerate.
4800 * configure.host (gdb_host_float_format, gdb_host_double_format)
4801 (gdb_host_long_double_format): Set according to the host.
4802
4803 2004-07-29 Andrew Cagney <cagney@gnu.org>
4804
4805 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4806
4807 2004-07-28 Andrew Cagney <cagney@gnu.org>
4808
4809 * PROBLEMS: Mention threads/1650.
4810 * NEWS: Mention the NPTL fix.
4811
4812 2004-07-28 Andrew Cagney <cagney@gnu.org>
4813
4814 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4815 (add_setshow_cmd_full): Make static.
4816 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4817 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4818 * cli/cli-decode.c (add_setshow_filename_cmd)
4819 (add_setshow_string_cmd): New functions.
4820 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4821 * mips-tdep.c (_initialize_mips_tdep): Update.
4822 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4823 * cli/cli-logging.c (_initialize_cli_logging): Update.
4824 * complaints.c (_initialize_complaints): Update.
4825 * remote.c (_initialize_remote): Update.
4826
4827 2004-07-28 Andrew Cagney <cagney@gnu.org>
4828
4829 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4830 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4831 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4832 print parameters. Make string parameters constant.
4833 * command.h: Update. Update copyright.
4834 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4835 * observer.c (_initialize_observer): Ditto.
4836 * frame.c (_initialize_frame): Ditto.
4837 * complaints.c (_initialize_complaints): Ditto.
4838 * maint.c (_initialize_maint_cmds): Ditto.
4839 * target.c (initialize_targets): Ditto.
4840 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4841 * infcall.c (_initialize_infcall): Ditto.
4842 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4843 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4844 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4845 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4846 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4847
4848 2004-07-28 Andrew Cagney <cagney@gnu.org>
4849
4850 * gdbtypes.c (lookup_primitive_typename): Delete function.
4851 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4852 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4853 * gdbtypes.c (lookup_typename): Ditto.
4854 * f-exp.y (yylex): Ditto.
4855 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4856
4857 * scm-lang.c (c_builtin_types): Delete extern declaration.
4858 (scm_language_defn): Replace
4859 string_char_type and primitive_type_vector with
4860 la_language_arch_info.
4861 * jv-lang.c (java_language_defn): Replace
4862 string_char_type and primitive_type_vector with
4863 la_language_arch_info.
4864 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4865 c_builtin_types in comment.
4866 * c-lang.h (struct language_arch_info): Declare opaque.
4867 (c_language_arch_info): Declare.
4868 (c_builtin_types): Delete declaration.
4869 * c-lang.c (c_language_arch_info): Set string_char_type to
4870 builtin_char, not builtin_true_char. Make global.
4871 (c_builtin_types): Delete array.
4872 (asm_language_defn, minimal_language_defn): Replace
4873 string_char_type and primitive_type_vector with
4874 la_language_arch_info.
4875
4876 2004-07-28 Andrew Cagney <cagney@gnu.org>
4877
4878 * gdbtypes.h (struct builtin_type): Rename true_char to
4879 builtin_true_char.
4880 * gdbtypes.c (gdbtypes_post_init): Update.
4881 * c-lang.c (arch_info): New function.
4882 (enum c_primitive_types): New enum.
4883 (c_language_defn): Instead of string_char_type and
4884 primitive_type_vector set la_language_arch_info.
4885
4886 2004-07-28 Andrew Cagney <cagney@gnu.org>
4887
4888 * language.h (struct language_arch_info): Fix typo
4889 s/primative/primitive/.
4890 * gdbtypes.c (lookup_primitive_typename): Ditto.
4891 * language.c (language_lookup_primitive_type_by_name)
4892 (unknown_language_arch_info): Ditto.
4893
4894 2004-07-27 Andrew Cagney <cagney@gnu.org>
4895
4896 * defs.h (enum language): Add nr_languages.
4897 * language.h (struct language_arch_info): Define.
4898 (struct language_defn): Add la_language_arch_info.
4899 (language_lookup_primative_type_by_name): Declare.
4900 (language_string_char_type): Declare.
4901 * language.c (_initialize_language, language_gdbarch_post_init)
4902 (struct language_gdbarch, language_gdbarch_data): Implement
4903 per-architecture language information.
4904 (unknown_language_arch_info, language_string_char_type)
4905 (language_lookup_primative_type_by_name): New functions.
4906 (unknown_language_defn, auto_language_defn)
4907 (local_language_defn): Set la_language_arch_info to
4908 unknown_language_arch_info.
4909 (unknown_builtin_types): Delete.
4910 * gdbtypes.c (lookup_primitive_typename): Use
4911 language_lookup_primative_type_by_name.
4912 (create_string_type): Use language_string_char_type.
4913 * values.c (value_from_string): Use language_string_char_type.
4914 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4915 * p-lang.c (pascal_language_defn): Ditto.
4916 * m2-lang.c (m2_language_defn): Ditto.
4917 * jv-lang.c (java_language_defn): Ditto.
4918 * objc-lang.c (objc_language_defn): Ditto.
4919 * f-lang.c (f_language_defn): Ditto.
4920 * c-lang.c (c_language_defn, cplus_language_defn)
4921 (asm_language_defn, minimal_language_defn): Ditto.
4922
4923 2004-07-27 Andrew Cagney <cagney@gnu.org>
4924
4925 * gdbtypes.h (struct builtin_type): Declare.
4926 (builtin_type): Declare.
4927 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4928 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4929 (gdbtypes_post_init): New function.
4930 (builtin_type): New function.
4931
4932 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4933
4934 * remote-m32r-sdi.c: Fix breakpoint bug.
4935 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4936 recv_char_data, recv_long_data): New functions to replace communication
4937 sequences.
4938
4939 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4940
4941 Document PR threads/1650.
4942 * PROBLEMS (Threads): Document problem with many threads
4943
4944 2004-07-26 Andrew Cagney <cagney@gnu.org>
4945
4946 * gdb-mi.el: Move from here ...
4947 * mi/gdb-mi.el: ... to here.
4948
4949 2004-07-26 Andrew Cagney <cagney@gnu.org>
4950
4951 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4952 * main.c (captured_main): When in batch mode always detach.
4953
4954 2004-07-26 Andrew Cagney <cagney@gnu.org>
4955
4956 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4957 and h8300 as broken.
4958 * NEWS: END-OF-LIFE frame compatibility module.
4959 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4960 specific comments.
4961
4962 2004-07-26 Andrew Cagney <cagney@gnu.org>
4963
4964 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4965 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4966 * wince.c (_initialize_wince): Update.
4967 * win32-nat.c (_initialize_win32_nat): Update.
4968 * varobj.c (_initialize_varobj): Update.
4969 * valops.c (_initialize_valops): Update.
4970 * utils.c (initialize_utils, initialize_utils): Update.
4971 * tui/tui-win.c (_initialize_tui_win): Update.
4972 * top.c (init_main): Update.
4973 * symfile.c (_initialize_symfile): Update.
4974 * source.c (_initialize_source): Update.
4975 * somsolib.c (_initialize_som_solib): Update.
4976 * solib.c (_initialize_solib): Update.
4977 * solib-frv.c (_initialize_frv_solib): Update.
4978 * serial.c (_initialize_serial): Update.
4979 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4980 * remote.c (_initialize_remote, _initialize_remote): Update.
4981 * remote-vx.c (_initialize_vx): Update.
4982 * remote-utils.c (_initialize_sr_support): Update.
4983 * remote-sds.c (_initialize_remote_sds): Update.
4984 * remote-mips.c (_initialize_remote_mips): Update.
4985 * remote-e7000.c (_initialize_remote_e7000): Update.
4986 * proc-api.c (_initialize_proc_api): Update.
4987 * printcmd.c: Update.
4988 * parse.c (_initialize_parse): Update.
4989 * pa64solib.c (_initialize_pa64_solib): Update.
4990 * p-valprint.c (_initialize_pascal_valprint): Update.
4991 * monitor.c (_initialize_remote_monitors): Update.
4992 * mips-tdep.c (_initialize_mips_tdep): Update.
4993 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4994 * maint.c (_initialize_maint_cmds): Update.
4995 * lin-lwp.c (_initialize_lin_lwp): Update.
4996 * language.c (_initialize_language): Update.
4997 * kod.c (_initialize_kod): Update.
4998 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4999 * i386-tdep.c (_initialize_i386_tdep): Update.
5000 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5001 * gdbarch.sh: Update.
5002 * gdbarch.c: Re-generate.
5003 * gdb-events.sh: Update.
5004 * gdb-events.c: Re-generate.
5005 * frame.c (_initialize_frame): Update.
5006 * exec.c: Update.
5007 * demangle.c (_initialize_demangler): Update.
5008 * dcache.c (_initialize_dcache): Update.
5009 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5010 * cp-valprint.c (_initialize_cp_valprint): Update.
5011 * corefile.c (_initialize_core): Update.
5012 * command.h: Update.
5013 * cli/cli-decode.h: Update.
5014 * cli/cli-cmds.c (init_cli_cmds): Update.
5015 * charset.c (_initialize_charset): Update.
5016 * breakpoint.c (_initialize_breakpoint): Update.
5017 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5018 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5019 * aix-thread.c (_initialize_aix_thread): Update.
5020
5021 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5022
5023 Partial fix for PR backtrace/1718.
5024 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5025 that GCC migrates into the prolugue. Don't handle any
5026 instructions that clobber %ebx.
5027
5028 2004-07-23 Andrew Cagney <cagney@gnu.org>
5029
5030 Use regcache_raw_collect instead of regcache_collect.
5031 * regcache.h (regcache_collect): Delete declaration.
5032 * regcache.c (regcache_colect): Delete function.
5033 * win32-nat.c (do_child_store_inferior_registers): Update.
5034 * sol-thread.c (sol_thread_store_registers): Update.
5035 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5036 * rs6000-nat.c (store_register): Update.
5037 * remote.c (store_register_using_P, remote_store_registers): Update.
5038 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5039 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5040 (fill_vrregset, store_spe_registers, fill_gregset)
5041 (fill_gregset): Update.
5042 * nto-procfs.c (procfs_store_registers): Update.
5043 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5044 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5045 * m68klinux-nat.c (store_register, fill_gregset): Update.
5046 * m68k-tdep.c (fill_gregset): Update.
5047 * infptrace.c (store_register): Update.
5048 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5049 * i386-linux-nat.c (store_register, fill_gregset): Update.
5050 * hppa-linux-nat.c (fill_gregset): Update.
5051 * go32-nat.c (store_register): Update.
5052 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5053 (store_fp_regs): Update.
5054 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5055 (store_nwfpe_extended, store_fpregister, store_fpregs)
5056 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5057 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5058 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5059 (store_regs_user_thread, store_regs_kernel_thread): Update.
5060
5061 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5062
5063 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5064 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5065 encoding.
5066 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5067 member of `struct comp_unit'.
5068
5069 2004-07-23 Andrew Cagney <cagney@gnu.org>
5070
5071 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5072 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5073
5074 2004-07-23 Martin Hunt <hunt@redhat.com>
5075 Kevin Buettner <kevinb@redhat.com>
5076
5077 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5078 alignment was being added to the offset instead of multiplied.
5079
5080 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5081
5082 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5083 changed signal trampoline in OpenBSD 3.5-current.
5084
5085 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5086 <machine/pcb.h> and "bsd-kvm.h".
5087 (sparc64nbsd_supply_pcb): New function.
5088 (_initialize_sparc64nbsd_nat): Renamed from
5089 _initialize_sparcnbsd_nat. Enable libkvm interface.
5090 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5091 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5092 (LOADLIBES): New variable.
5093
5094 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5095
5096 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5097
5098 2004-07-21 Andrew Cagney <cagney@gnu.org>
5099
5100 Use regcache_raw_supply instead of supply_register.
5101 * regcache.h (supply_register): Delete declaration.
5102 * regcache.c (supply_register): Delete function.
5103 * wince.c (do_child_fetch_inferior_registers): Update.
5104 * win32-nat.c (do_child_fetch_inferior_registers)
5105 (fetch_elf_core_registers): Update.
5106 * v850ice.c (v850ice_fetch_registers): Update.
5107 * thread-db.c (thread_db_store_registers): Update.
5108 * sol-thread.c (sol_thread_store_registers): Update.
5109 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5110 * rs6000-nat.c (fetch_register): Update.
5111 * rom68k-rom.c (rom68k_supply_one_register): Update.
5112 * remote.c (remote_wait, remote_async_wait): Update.
5113 * remote-st.c (get_hex_regs): Update.
5114 * remote-sim.c (gdbsim_fetch_register): Update.
5115 * remote-sds.c (sds_fetch_registers): Update.
5116 * remote-rdp.c (remote_rdp_fetch_register): Update.
5117 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5118 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5119 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5120 * remote-hms.c (init_hms_cmds): Update.
5121 * remote-est.c (init_est_cmds): Update.
5122 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5123 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5124 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5125 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5126 (fetch_register, supply_vrregset, supply_vrregset)
5127 (fetch_spe_registers): Update.
5128 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5129 * monitor.c (monitor_supply_register): Update.
5130 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5131 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5132 (mipsnbsd_supply_fpreg): Update.
5133 * mips-nat.c (fetch_inferior_registers)
5134 (fetch_core_registers): Update.
5135 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5136 (supply_fpregset, mips64_supply_gregset)
5137 (mips64_supply_fpregset): Update.
5138 * m68klinux-nat.c (fetch_register, supply_gregset)
5139 (supply_fpregset): Update.
5140 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5141 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5142 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5143 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5144 * infptrace.c (fetch_register): Update.
5145 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5146 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5147 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5148 (gnu_fetch_registers, gnu_store_registers): Update.
5149 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5150 * i386-linux-nat.c (fetch_register, supply_gregset)
5151 (dummy_sse_values): Update.
5152 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5153 * hppah-nat.c (fetch_register): Update.
5154 * hppa-linux-nat.c (fetch_register, supply_gregset)
5155 (supply_fpregset): Update.
5156 * go32-nat.c (fetch_register): Update.
5157 * dve3900-rom.c (fetch_bitmapped_register)
5158 (_initialize_r3900_rom): Update.
5159 * cris-tdep.c (supply_gregset): Update.
5160 * abug-rom.c (init_abug_cmds): Update.
5161 * core-aout.c (fetch_core_registers): Update.
5162 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5163 (fetch_register, fetch_fp_register): Update.
5164 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5165 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5166 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5167 * alphanbsd-tdep.c (fetch_core_registers): Update.
5168 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5169 * alpha-nat.c (fetch_osf_core_registers)
5170 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5171 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5172 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5173
5174 2004-07-21 Andrew Cagney <cagney@gnu.org>
5175
5176 * PROBLEMS: Mention breakpoints/1702.
5177 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5178 that is known to work.
5179
5180 2004-07-21 Andrew Cagney <cagney@gnu.org>
5181
5182 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5183 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5184 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5185 (handle_inferior_event): Wrap call to deprecated
5186 IGNORE_HELPER_CALL in #ifdef.
5187 * config/mips/tm-nbsd.h: Update.
5188
5189 2004-07-20 Jim Blandy <jimb@redhat.com>
5190
5191 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5192 bfd_mach_ppc has no segment registers.
5193
5194 Include PowerPC SPR numbers for special-purpose registers.
5195 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5196 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5197 new member in initializer.
5198 (S, S4, SN4, S64): New macros for defining special-purpose
5199 registers.
5200 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5201 registers_403, registers_403GC, registers_505, registers_860,
5202 registers_601, registers_602, registers_603, registers_604,
5203 registers_750, registers_e500): Use them.
5204
5205 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5206 replace references with expression used to initialize variable.
5207
5208 2004-07-20 Andrew Cagney <cagney@gnu.org>
5209
5210 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5211 read_memory_nobpt.
5212 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5213 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5214 (s390_sigtramp_frame_sniffer): Update.
5215 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5216 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5217 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5218 (mips32_fetch_instruction): Update.
5219 * mcore-tdep.c (get_insn): Update.
5220 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5221 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5222 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5223 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5224 (i386_linux_rt_sigtramp_start): Update.
5225 * i386-linux-nat.c (child_resume): Update.
5226 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5227 * hppa-linux-tdep.c (insns_match_pattern): Update.
5228 * gdbcore.h: Update.
5229 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5230 * frame.c (safe_frame_unwind_memory): Update.
5231 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5232 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5233 * alpha-tdep.c (alpha_read_insn): Update.
5234
5235 2004-07-20 Andrew Cagney <cagney@gnu.org>
5236
5237 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5238 containing both bytes and mask. Add "frame_type".
5239 * tramp-frame.c (tramp_frame_start): Update.
5240 (tramp_frame_prepend_unwinder): Update.
5241 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5242 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5243 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5244 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5245
5246 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5247
5248 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5249 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5250 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5251 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5252
5253 2004-07-17 Andrew Cagney <cagney@gnu.org>
5254
5255 * NEWS, PROBLEMS: Update for 6.2.
5256
5257 * README: Update to 6.2.
5258
5259 * utils.c (xvasprintf): Call xstrvprintf.
5260
5261 * parse.c: Update copyright.
5262 (null_post_parser): Eliminate ARGSUSED.
5263
5264 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5265 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5266 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5267
5268 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5269 * ppc-linux-nat.c: Use "Linux kernel".
5270 * hppa-linux-tdep.c: Use GNU/Linux.
5271 * hppa-linux-nat.c: Use GNU/Linux.
5272 * dwarfread.c: Add [sic] to use of Linux.
5273
5274 * hppa-linux-nat.c: Do not include <string.h>.
5275 (supply_fpregset): Remove "register" attribute.
5276
5277 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5278
5279 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5280
5281 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5282 * configure, config.in: Regenerated.
5283
5284 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5285 "bsd-kvm.h".
5286 (vaxbsd_supply_pcb): New function.
5287 (_initialize_vaxbsd_nat): New prototype and function.
5288 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5289 solib-sunos.o.
5290 (LOADLIBES): New variable.
5291 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5292 (LOADLIBES): New variable.
5293 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5294 (LOADLIBES): New variable.
5295 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5296
5297 2004-07-16 Andrew Cagney <cagney@gnu.org>
5298
5299 * defs.h (event_loop_p): Replace variable declaration with macro,
5300 always 1.
5301 * main.c (captured_main): Delete options "-async" and "-noasync".
5302 (event_loop_p): Delete variable.
5303 * NEWS: Mention that "-async" and "-noasync" were removed.
5304
5305 2004-07-16 Andrew Cagney <cagney@gnu.org>
5306
5307 * remote-m32r-sdi.c: Re-indent.
5308
5309 2004-07-16 Jim Blandy <jimb@redhat.com>
5310
5311 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5312 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5313 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5314 missing MPC823 SPRs.
5315 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5316 incorrect. (This was corrected in GDB's register name tables on
5317 2004-07-14.)
5318
5319 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5320 should be "esasrr" ("ESA Save and Restore Register").
5321
5322 2004-07-16 Andrew Cagney <cagney@gnu.org>
5323
5324 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5325 calls, no longer applicable. Update comments and rename parameter
5326 "step_frame" to "return_frame".
5327
5328 2004-07-16 Andrew Cagney <cagney@gnu.org>
5329
5330 * frame.c (fprint_field): New function.
5331 (fprint_frame_id): Use fprint_field.
5332
5333 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5334
5335 * ada-lang.c (ada_language_defn): Remove commented out code.
5336
5337 2004-07-15 Jim Blandy <jimb@redhat.com>
5338
5339 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5340 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5341
5342 2004-07-14 Jim Blandy <jimb@redhat.com>
5343
5344 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5345
5346 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5347
5348 * ppc-tdep.h (ppc_num_srs): New enum constant.
5349
5350 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5351 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5352 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5353 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5354 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5355 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5356 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5357 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5358 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5359 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5360 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5361 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5362 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5363 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5364 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5365 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5366 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5367 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5368 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5369 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5370 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5371 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5372 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5373 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5374 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5375 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5376 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5377 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5378 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5379 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5380 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5381 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5382 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5383 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5384 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5385 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5386 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5387 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5388 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5389 special-purpose register numbers.
5390
5391 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5392 manual mentions 'md_twb', but many mention 'm_twb', and at that
5393 point in the register list.)
5394
5395 2004-07-14 Andrew Cagney <cagney@gnu.org>
5396
5397 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5398 instead of "internal-error".
5399
5400 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5401
5402 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5403 that was inserted inside a comment.
5404
5405 2004-07-10 Randolph Chung <tausq@debian.org>
5406
5407 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5408 function.
5409 (hppa_hpux_push_dummy_code): New function.
5410 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5411 Set find_global_pointer method.
5412
5413 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5414
5415 * NEWS: Mention BSD libkvm interface.
5416
5417 2004-07-10 Michael Snyder <msnyder@redhat.com>
5418
5419 * symfile.c (generic_load): Comment typo.
5420 * stack.c (get_selected_block): Ditto.
5421 * regcache.c (regcache_cooked_read): Ditto.
5422 * monitor.c (monitor_debug): Ditto.
5423 * mips-tdep.c (mips_read_pc): Ditto.
5424 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5425 * gdb_mbuild.sh: Ditto.
5426 * gdbarch.sh: Ditto.
5427 * gdbarch.h: Ditto.
5428
5429 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5430
5431 * ada-tasks.c: Remove file.
5432
5433 Remove ARI problems:
5434
5435 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5436 beginning of line.
5437
5438 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5439 Add comment.
5440 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5441 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5442 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5443 (UMIN_OF_SIZE): Remove.
5444 (max_of_type): New function to replace orphan macro in gdbtypes.h
5445 (min_of_type): Ditto.
5446 (discrete_type_high_bound): Use max_of_type.
5447 (discrete_type_low_bound): Use min_of_type.
5448 (possible_user_operator_p): Move operator to beginning of line.
5449 (ada_is_variant_part): Ditto.
5450 (ensure_lval): Rewrite to avoid deprecated operations.
5451 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5452 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5453 (ada_enum_name): Remove assignments in 'if' statements.
5454 (build_ada_types): Add gdbarch parameter.
5455 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5456 with gdbarch_data_register_post_init.
5457 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5458 add_show_from_set.
5459
5460 * ada-valprint.c (inspect_it): Remove declaration.
5461 (repeat_count_threshold): Remove declaration.
5462 (ada_print_floating): Remove assignments in 'if' statements.
5463 (print_str): Move operator to beginning of line.
5464
5465 2004-07-08 Jim Blandy <jimb@redhat.com>
5466
5467 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5468
5469 2004-07-08 Bob Rossi <bob@brasko.net>
5470
5471 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5472
5473 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5474
5475 * language.h (struct_language_defn): Add new function pointer:
5476 la_class_name_from_physname. Also add new prototype for
5477 language_class_name_from_physname.
5478 * language.c (language_class_name_from_physname): New function.
5479 (unk_lang_class_name): Ditto.
5480 (unknown_language_defn, auto_language_defn): Change
5481 to add unk_lang_class_name function pointer for
5482 la_class_name_from_physname.
5483 (local_language_defn): Ditto.
5484 * dwarf2read.c (guess_structure_name): Change to call
5485 language_class_name_from_physname.
5486 (determine_class_name): Ditto.
5487 * cp-support.c (class_name_from_physname): Renamed.
5488 (cp_class_name_from_physname): New name of function.
5489 * cp-support.h: Ditto.
5490 * c-lang.c (c_language_defn): Change to add NULL
5491 for class_name_from_physname function pointer.
5492 (cplus_language_defn): Change to add cp_class_name_from_physname.
5493 * jv-lang.c (java_class_name_physname): New function.
5494 (java_find_last_component): New static routine.
5495 (java_language_defn): Add java_class_name_from_physname pointer.
5496 * ada-lang.c (ada_language_defn): Change to add NULL
5497 for class_name_from_physname function pointer.
5498 * f-lang.c (f_language_defn): Ditto.
5499 * m2-lang.c (m2_language_defn): Ditto.
5500 * objc-lang.c (objc_language_defn): Ditto.
5501 * p-lang.c (pascal_language_defn): Ditto.
5502 * scm-lang.c (scm_language_defn): Ditto.
5503
5504 2004-07-06 Andrew Cagney <cagney@gnu.org>
5505
5506 Patch from Bart Robinson.
5507 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5508 (O_LARGEFILE): Define to 0, if not defined.
5509
5510 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5511
5512 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5513 <machine/pcb.h> and "bsd-kvm.h".
5514 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5515 (m68kbsd_supply_pcb): New function.
5516 (_initialize_m68kbsd_nat): New prototype and function.
5517 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5518 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5519 (LOADLIBES): New variable.
5520 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5521 (LOADLIBES): New variable.
5522
5523 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5524
5525 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5526
5527 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5528 <sys/proc.h>.
5529 (bsd_kvm_cmdlist): New variable.
5530 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5531 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5532 command and "kvm proc" command.
5533 * Makefile.in (bsd-kvm.o): Update dependencies.
5534
5535 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5536
5537 * osabi.c: Update copyright year.
5538 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5539 notes if EI_OSABI is set to ELFOSABI_HPUX.
5540
5541 2004-07-01 Michael Snyder <msnyder@redhat.com>
5542
5543 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5544 that seems to have gotten whacked out of line.
5545
5546 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5547
5548 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5549 code.
5550
5551 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5552
5553 * ada-lang.c (decode_packed_array): Minor change to comment.
5554 (ada_value_slice_ptr): New function.
5555 (ada_value_slice): New function.
5556 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5557 test. Don't know why it is there.
5558 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5559 to avoid dereferencing huge arrays from which one is slicing.
5560 (empty_array): Correct to return an array rather than
5561 a subrange value.
5562 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5563 on empty arrays (let'em use 'FIRST instead).
5564
5565 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5566
5567 Address complaints from gdb_ari.sh:
5568
5569 * ada-exp.y: Include gdb_string.h rather than string.h.
5570 (convert_char_literal): Reformat declaration.
5571 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5572 * ada-lex.l: Change use of free to xfree (the macro would do so
5573 anyway, but this is harmless).
5574 Include gdb_string.h rather than string.h.
5575 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5576
5577 * ada-lang.c (parse): Remove K&Rism in parameter list.
5578 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5579
5580 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5581
5582 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5583 dead code.
5584
5585 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5586
5587 * alphabsd-nat.c: Update copyright year.
5588 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5589
5590 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5591
5592 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5593 (i386_cygwin_in_solib_call_trampoline): New function.
5594 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5595 and skip_trampoline_code gdbarch methods.
5596
5597 2004-06-29 Jim Blandy <jimb@redhat.com>
5598
5599 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5600 name actually used in the dependency lists.
5601
5602 2004-06-29 Randolph Chung <tausq@debian.org>
5603
5604 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5605
5606 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5607
5608 * win32-nat.c (child_pid_to_exec_file): New function.
5609 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5610 functionality.
5611
5612 2004-06-28 Andrew Cagney <cagney@gnu.org>
5613
5614 * defs.h (xstrvprintf): Declare.
5615 * utils.c (xstrvprintf): New function.
5616 (internal_vproblem, xstrprintf, xasprintf)
5617 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5618 * serial.c (serial_printf): Ditto.
5619 * complaints.c (vcomplaint): Ditto.
5620
5621 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5622
5623 * infcmd.c (attach_command): Move call to target_terminal_inferior
5624 behind loading symbol table.
5625
5626 2004-06-28 Andrew Cagney <cagney@gnu.org>
5627
5628 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5629 change - add back extern deprecated_ui_loop_hook declaration.
5630
5631 2004-06-28 Andrew Cagney <cagney@gnu.org>
5632
5633 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5634 xstrprintf.
5635 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5636 (c_value_of_variable): Ditto.
5637 * utils.c (internal_vproblem): Ditto.
5638 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5639 * remote.c (add_packet_config_cmd): Ditto.
5640 * remote-rdp.c (rdp_set_command_line): Ditto.
5641 * regcache.c (regcache_dump): Ditto.
5642 * frv-tdep.c (new_variant, new_variant): Ditto.
5643 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5644 (fbsd_find_memory_regions): Ditto.
5645 * breakpoint.c (create_thread_event_breakpoint)
5646 (create_breakpoints): Ditto.
5647 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5648 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5649
5650 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5651
5652 * ada-lang.c: Re-indent file, with some massaging to help indent
5653 a bit when the result is otherwise really too ugly.
5654
5655 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5656
5657 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5658 code_addr_p and special_addr_p to 'unsigned int'.
5659
5660 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5661
5662 * i386v4-nat.c: Update copyright year and tweak comment.
5663 (regmap): Remove trailing comma.
5664 (supply_gregset): Rename local variable i to regnum. Call
5665 regcache_raw_supply instead of supply_register.
5666 (fill_gregset): Rename argument regno to regnum. Call
5667 regcache_raw_collect instead of regcache_collect.
5668
5669 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5670
5671 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5672 and special_addr_p.
5673 (frame_id_build, frame_id_build_special): Update comments.
5674 (frame_id_build_wild): New prototype.
5675 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5676 struct frame_id fields.
5677 (frame_id_build_wild): New function.
5678 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5679
5680 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5681
5682 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5683 hppabsd-tdep.c.
5684
5685 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5686
5687 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5688
5689 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5690
5691 * ada-lang.c: Re-indent file.
5692
5693 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5694
5695 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5696 (no_symtab_msg): Likewise.
5697
5698 2004-06-27 Andreas Schwab <schwab@suse.de>
5699
5700 * source.c: Fix whitespace.
5701
5702 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5703
5704 * configure.in: Include <sys/param.h> for td_pcb test.
5705 * configure: Regenerated.
5706
5707 * i386nbsd-nat.c: New file.
5708 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5709 i386obsd-nat.c and i386obsd-tdep.c.
5710 (i386nbsd-nat.o): New dependency.
5711 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5712 bsd-kvm.o.
5713 (LOADLIBES): New variable.
5714 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5715 bsd-kvm.o.
5716 (LOADLIBES): New variable.
5717
5718 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5719 (LOADLIBES): New variable.
5720
5721 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5722 fetching from BSD_KVM_PADDR. Correctly lookup address for
5723 "_thread0".
5724
5725 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5726 "bsd-kvm.h".
5727 (amd64fbsd_supply_pcb): New funcion.
5728 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5729
5730 2004-06-27 <david@streamline-computing.com>
5731
5732 Partial fix for PR cli/1056.
5733 * valarith.c: Check for zero in division and remainder
5734 evaluation.
5735
5736 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5737
5738 * i387-tdep.c: Remove excessive whitespace.
5739
5740 2004-06-26 Andrew Cagney <cagney@gnu.org>
5741
5742 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5743 * gdb-events.h, gdb-events.c: Re-generate.
5744 * tui/tui-hooks.c (tui_install_hooks): Update.
5745 (tui_remove_hooks): Update.
5746 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5747
5748 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5749
5750 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5751 (gregset_t, fpregset_t): Remove typedefs.
5752 (REG_OFFSET): Rename argument.
5753 (amd64bsd_r_reg_offset): Rename from reg_offset.
5754 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5755 Remove functions.
5756 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5757 of reg_offset.
5758 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5759
5760 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5761
5762 * vax-tdep.c: Tweak comment.
5763
5764 Add OpenBSD/hppa support.
5765 * NEWS (New native configurations): Mention OpenBSD/hppa.
5766 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5767 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5768 files.
5769 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5770 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5771 * configure.host: Add hppa*-*-openbsd*.
5772 * configure.tgt: Add hppa*-*-openbsd*.
5773
5774 2004-06-25 Andrew Cagney <cagney@gnu.org>
5775
5776 * defs.h (deprecated_ui_loop_hook): Deprecated.
5777 * wince.c (child_wait): Update.
5778 * win32-nat.c (child_wait): Update.
5779 * v850ice.c (v850ice_wait): Update.
5780 * top.c (deprecated_ui_loop_hook): Update.
5781 * serial.h: Update.
5782 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5783 (do_unix_readchar): Update.
5784 * ser-tcp.c (net_open): Update.
5785 * remote-sim.c (gdb_os_poll_quit): Update.
5786 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5787
5788 2004-06-24 Andrew Cagney <cagney@gnu.org>
5789
5790 * defs.h (deprecated_pre_add_symbol_hook)
5791 (deprecated_post_add_symbol_hook): Deprecated.
5792 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5793 (symbol_file_add_with_addrs_or_offsets): Update references.
5794
5795 2004-06-24 Andrew Cagney <cagney@gnu.org>
5796
5797 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5798 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5799 * wince.c (ui_loop_hook): Delete extern declaration.
5800 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5801 * v850ice.c (ui_loop_hook): Delete extern declaration..
5802 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5803 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5804 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5805 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5806 ui_loop_hook declaration.
5807
5808 2004-06-24 Andrew Cagney <cagney@gnu.org>
5809
5810 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5811 entry_func_highpc fields.
5812 * objfiles.c (init_entry_point_info): Do not clear
5813 entry_func_lowpc and entry_func_highpc.
5814 (objfile_relocate): Do not relocate entry_func_lowpc and
5815 entry_func_highpc.
5816 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5817 entry_func_highpc.
5818 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5819 entry_func_highpc.
5820 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5821 entry_func_lowpc and entry_func_highpc with call to
5822 inside_entry_func.
5823
5824 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5825
5826 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5827 quad-precision floating point arguments in registers.
5828
5829 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5830
5831 From Michael Mueller <m.mueller99@kay-mueller.de>:
5832 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5833 account.
5834
5835 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5836
5837 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5838 to -1.
5839 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5840 untriggered watchpoints to a separate if clause. Update function
5841 comment regarding STOPPED_BY_WATCHPOINT argument.
5842
5843 2004-06-22 Jim Blandy <jimb@redhat.com>
5844
5845 * gdbarch.sh: Doc fix.
5846
5847 2004-06-21 Martin Hunt <hunt@redhat.com>
5848 Kevin Buettner <kevinb@redhat.com>
5849
5850 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5851 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5852 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5853 to set_gdbarch_sp_regnum(). Use cooked register number.
5854 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5855
5856 2004-06-21 Andrew Cagney <cagney@gnu.org>
5857
5858 * gdbarch.sh: When the macro field is empty, do not generate a
5859 macro definition. When the macro field is "=", generate the macro
5860 name from the upper-case function name.
5861 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5862 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5863 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5864 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5865 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5866 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5867 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5868 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5869 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5870 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5871 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5872 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5873 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5874 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5875 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5876 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5877 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5878 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5879 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5880 (DEPRECATED_USE_STRUCT_CONVENTION)
5881 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5882 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5883 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5884 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5885 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5886 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5887 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5888 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5889 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5890 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5891 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5892 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5893 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5894 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5895 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5896 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5897 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5898 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5899
5900 2004-06-21 Andrew Cagney <cagney@gnu.org>
5901
5902 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5903 macro name, and the function rather than macro value. Only wrap
5904 macro print statements in #ifdef. Move format logic to where it
5905 is needed.
5906 * gdbarch.c: Re-generate.
5907
5908 * gdbarch.sh (read): Delete "print_p" and "description", add
5909 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5910 Delete references to print_p.
5911 (TARGET_ARCHITECTURE): Delete print predicate.
5912 * gdbarch.c: Re-generate.
5913
5914 * gdbarch.sh: Check that multi-arch methods do not provide a
5915 macro.
5916 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5917 (print_registers_info, print_float_info, print_vector_info)
5918 (adjust_breakpoint_address, remote_translate_xfer_address)
5919 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5920 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5921 name from the multi-arch definition.
5922
5923 2004-06-20 Andrew Cagney <cagney@gnu.org>
5924
5925 * gdbarch.sh: Sort by the function, instead of macro name.
5926 * gdbarch.c: Re-generate.
5927
5928 2004-06-20 Andrew Cagney <cagney@gnu.org>
5929
5930 * gdbarch.sh: Use the function, instead of macro name in
5931 errors and the log file.
5932 (return_value): Remove stray ":" in spec.
5933
5934 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5935 * gdbarch.h, gdbarch.c: Re-generate.
5936 * Makefile.in (arch-utils.o): Update dependencies.
5937 * values.c (using_struct_return): Move code calling
5938 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5939 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5940 to legacy_return_value, simplify.
5941 * infcmd.c (print_return_value): Move code calling
5942 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5943 to legacy_return_value, simplify.
5944 * infcall.c (call_function_by_hand): Move code calling
5945 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5946 * arch-utils.c: Update copyright. Include "gdbcore.h".
5947 (legacy_return_value): New function.
5948 * arch-utils.h: Update copyright.
5949 (legacy_return_value): Declare.
5950
5951 2004-06-20 Andrew Cagney <cagney@gnu.org>
5952
5953 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5954 * gdbarch.h, gdbarch.c: Re-generate.
5955 * values.c (using_struct_return): Update call.
5956 * mcore-tdep.c: Update comment.
5957 * infcall.c (call_function_by_hand): Update comment.
5958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5959 * arch-utils.h (always_use_struct_convention): Update.
5960 * v850-tdep.c (v850_gdbarch_init): Update.
5961 * sh64-tdep.c (sh64_gdbarch_init): Update.
5962 * sh-tdep.c (sh_gdbarch_init): Update.
5963 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5964 * mips-tdep.c (mips_gdbarch_init): Update.
5965 * mcore-tdep.c (mcore_gdbarch_init): Update.
5966 * m32r-tdep.c (m32r_gdbarch_init): Update.
5967 * ia64-tdep.c (ia64_gdbarch_init): Update.
5968 * h8300-tdep.c (h8300_gdbarch_init): Update.
5969 * frv-tdep.c (frv_gdbarch_init): Update.
5970 * cris-tdep.c (cris_gdbarch_init): Update.
5971 * arm-tdep.c (arm_gdbarch_init): Update.
5972 * alpha-tdep.c (alpha_gdbarch_init): Update.
5973
5974 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5975
5976 * PROBLEMS: Add more specific information, and a work-around,
5977 for PR gdb/1458.
5978
5979 2004-06-18 Andrew Cagney <cagney@gnu.org>
5980
5981 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5982 * gdbarch.h, gdbarch.c: Re-generate.
5983 * ada-lang.c (ada_finish_decode_line_1): Update.
5984 * infrun.c (handle_inferior_event): Update.
5985 * infcall.c (find_function_addr): Update.
5986 * linespec.c (minsym_found): Update.
5987 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5988 Update.
5989 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5990 * cli/cli-cmds.c (disassemble_command): Update.
5991 * vax-tdep.c (vax_gdbarch_init): Update.
5992
5993 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5994
5995 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5996
5997 2004-06-17 Andrew Cagney <cagney@gnu.org>
5998
5999 GDB 6.1.1 released from the GDB 6.1 branch.
6000 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6001 * PROBLEMS: Ditto.
6002
6003 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6004
6005 PR gdb/1658
6006 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6007 operation as a uleb128. Found by Michael Coulter.
6008
6009 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6010
6011 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6012 make it non-static.
6013 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6014 to ada-lang.h; this is needed to be able to implement the kill command
6015 in multi-task mode.
6016 (task_ptid): Ditto.
6017 (task_entry): Ditto.
6018 (task_list): Ditto.
6019 (ada_build_task_list): Ditto.
6020
6021 * ada-lang.c: Conditionalize routines and data structures related
6022 to breakpoints, exceptions, completion, and symbol caching on
6023 GNAT_GDB, since these are not yet used in the submitted public sources.
6024 (ada_main_name): Editorial: Move definition out of exception-related
6025 code.
6026
6027 2004-06-15 Andrew Cagney <cagney@gnu.org>
6028
6029 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6030 deprecated_pc_in_call_dummy.
6031
6032 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6033
6034 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6035 bfd_get_section_size_before_reloc or _raw_size.
6036 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6037 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6038 (dwarf2_read_section): Likewise.
6039 * elfread.c (elf_locate_sections): Likewise.
6040 * gcore.c (derive_heap_segment): Likewise.
6041 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6042 * remote-e7000.c (e7000_load): Likewise.
6043 * remote-m32r-sdi.c (m32r_load): Likewise.
6044 * remote-mips.c (mips_load_srec): Likewise.
6045 (pmon_load_fast): Likewise.
6046 * remote.c (compare_sections_command): Likewise.
6047 * symfile.c (add_section_size_callback): Likewise.
6048 (load_section_callback): Likewise.
6049 (pc_in_unmapped_range): Likewise.
6050 (pc_in_mapped_range): Likewise.
6051 (sections_overlap): Likewise.
6052 (list_overlays_command): Likewise.
6053 (simple_overlay_update_1): Likewise.
6054 (simple_overlay_update): Likewise.
6055 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6056 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6057
6058 2004-06-14 Randolph Chung <tausq@debian.org>
6059
6060 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6061 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6062 static.
6063 (hppa_hpux_inferior_created): New function.
6064 (hppa_hpux_init_abi): Register observer.
6065 * symfile.c (hp_cxx_exception_support_initialized)
6066 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6067 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6068
6069 2004-06-14 Randolph Chung <tausq@debian.org>
6070
6071 * MAINTAINERS (Write After Approval): Alphabetize my entry
6072 correctly.
6073
6074 2004-06-14 Andrew Cagney <cagney@gnu.org>
6075
6076 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6077 testsuite maintainer.
6078
6079 2004-06-13 Andrew Cagney <cagney@gnu.org>
6080
6081 * infcmd.c (print_return_value): Fix logic, allow
6082 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6083
6084 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6085 defining any macros.
6086 * gdbarch.h: Re-generate.
6087
6088 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6089 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6090 * gdbarch.h: Re-generate.
6091
6092 * values.c (generic_use_struct_convention): Don't check gcc_p.
6093
6094 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6095 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6096 * gdbarch.h, gdbarch.c: Regenerate.
6097 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6098 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6099 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6100 deprecated_max_register_raw_size and
6101 deprecated_max_register_virtual_size.
6102 * v850-tdep.c (v850_gdbarch_init): Ditto.
6103 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6104 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6105 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6106 * cris-tdep.c (cris_gdbarch_init): Ditto.
6107
6108 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6109 * gdbarch.h, gdbarch.c: Re-generate.
6110 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6111 (m68hc11_use_struct_convention): Delete function.
6112 (m68hc11_extract_struct_value_address): Delete function.
6113 (m68hc11_return_value): New function.
6114 (m68hc11_gdbarch_init): Instead of store_return_value,
6115 extract_return_value, return_value_on_stack,
6116 deprecated_extract_struct_value_address and use_struct_convention,
6117 set return_value.
6118 * values.c (using_struct_return): Do not call
6119 RETURN_VALUE_ON_STACK.
6120 * arch-utils.h (generic_return_value_on_stack_not): Delete
6121 declaration.
6122 * arch-utils.c (generic_return_value_on_stack_not): Delete
6123 function.
6124
6125 2004-06-12 Andrew Cagney <cagney@gnu.org>
6126
6127 * values.c (register_value_being_returned): Delete function.
6128 * infcmd.c (legacy_return_value): Delete function.
6129 * infcall.c (call_function_by_hand): Inline
6130 "register_value_being_returned", simplify.
6131 * values.c (using_struct_return): Update comment, refer to
6132 print_return_value instead of register_value_being_returned.
6133 * infcmd.c (print_return_value): Inline calls to
6134 register_value_being_returned and legacy_return_value. Simplify.
6135
6136 2004-06-11 Randolph Chung <tausq@debian.org>
6137
6138 * somread.c (som_symtab_read): Exclude gcc local symbols.
6139
6140 2004-06-11 Randolph Chung <tausq@debian.org>
6141
6142 * infrun.c (handle_inferior_event): Handle the case when a
6143 trampoline ends up in the runtime resolver, and if the trampoline
6144 has no name. Rearrange the code so that all the trampoline
6145 processing happens before other step-out-of-range handling.
6146
6147 2004-06-11 Martin Hunt <hunt@redhat.com>
6148
6149 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6150 has no fpu.
6151
6152 2004-06-10 Andrew Cagney <cagney@gnu.org>
6153
6154 * blockframe.c (legacy_inside_entry_func): Delete.
6155 (legacy_frame_chain_valid): Inline call to
6156 legacy_inside_entry_func, simplify.
6157
6158 2004-06-10 Bob Rossi <bob@brasko.net>
6159
6160 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6161 * dwarf2read.c (partial_die_info): Add dirname field.
6162 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6163 (read_partial_die): Save away DW_AT_comp_dir.
6164 * defs.h (symtab_to_filename): Removed.
6165 * source.c (find_and_open_source): Added.
6166 (open_source_file): Just calls find_and_open_source.
6167 (symtab_to_filename): Removed.
6168 (symtab_to_fullname, psymtab_to_fullname): Added.
6169 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6170 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6171 symtab_to_filename.
6172 * symtab.h (partial_symtab): Add dirname field.
6173 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6174 (mi_cmd_file_list_exec_source_file): Call new function
6175 symtab_to_fullname to find fullname.
6176 (mi_cmd_file_list_exec_source_files): Added.
6177 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6178 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6179
6180 2004-06-10 Andrew Cagney <cagney@gnu.org>
6181
6182 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6183 to generic_use_struct_convention, the default value.
6184
6185 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6186 of abort.
6187
6188 * ns32k-tdep.c (ns32k_push_arguments): New function.
6189 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6190 * infcall.c (call_function_by_hand): Call error instead of
6191 legacy_push_arguments.
6192 * value.h (legacy_push_arguments): Delete declaration.
6193 * valops.c (legacy_push_arguments): Delete function.
6194 (value_push): Delete function.
6195
6196 2004-06-10 Brian Ford <ford@vss.fsi.com>
6197
6198 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6199 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6200 info.
6201 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6202
6203 2004-06-10 Andrew Cagney <cagney@gnu.org>
6204
6205 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6206 * gdbarch.h, gdbarch.c: Re-generate.
6207 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6208 parameters.
6209 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6210 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6211 deprecated_pc_in_call_dummy instead of
6212 DEPRECATED_PC_IN_CALL_DUMMY.
6213 (arm_skip_prologue): Ditto.
6214 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6215 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6216 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6217 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6218 Ditto.
6219 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6220 (sh64_init_extra_frame_info, sh64_get_saved_register)
6221 (sh64_pop_frame): Ditto.
6222 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6223 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6224 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6225 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6226 (h8300_pop_frame): Ditto.
6227 * blockframe.c (legacy_inside_entry_func)
6228 (legacy_frame_chain_valid): Ditto.
6229 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6230 to deprecated_pc_in_call_dummy.
6231
6232 2004-06-09 Andrew Cagney <cagney@gnu.org>
6233
6234 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6235 provide a default value.
6236 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6237 * gdbarch.h, gdbarch.c: Re-generate.
6238 * arch-utils.c (generic_convert_register_p): Rename
6239 legacy_convert_register_p
6240 (legacy_register_to_value, legacy_value_to_register): Delete
6241 functions.
6242 * arch-utils.h (generic_convert_register_p): Rename
6243 legacy_convert_register_p.
6244 (legacy_register_to_value, legacy_value_to_register): Delete
6245 declarations.
6246
6247 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6248 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6249 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6250 * gdbarch.h, gdbarch.c: Re-generate.
6251 * infcmd.c (default_print_registers_info): Simplify.
6252 * findvar.c (value_of_register): Simplify.
6253 * mi/mi-main.c (get_register): Simplify.
6254 * arch-utils.c (legacy_convert_register_p): Always return 0.
6255 (legacy_register_to_value, legacy_value_to_register): Always call
6256 internal_error.
6257
6258 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6259 #ifdef CLEAR_INSN_CACHE code.
6260 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6261 Delete #ifdef CLEAR_DEFERRED_STORES code.
6262
6263 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6264
6265 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6266 copyright.
6267 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6268
6269 * config/mips/mipsv4.mh: Delete file.
6270
6271 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6272 unreferenced macro.
6273 (hpread_adjust_stack_address): Delete declaration.
6274
6275 2004-06-08 Andrew Cagney <cagney@gnu.org>
6276
6277 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6278 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6279 PTRACE_ATTACH / PTRACE_DETACH available call error.
6280 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6281 * infttrace.c (update_thread_state_after_attach, attach, detach):
6282 Remove #ifdef wrappers.
6283 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6284 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6285 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6286 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6287 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6288 * config/nm-linux.h (ATTACH_DETACH): Delete.
6289 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6290 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6291 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6292 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6293 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6294
6295 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6296
6297 * configure.in: Set $configdir to the right OS specific value.
6298 Use value when setting $tcldir and $tkdir.
6299 * configure: Regenerate.
6300
6301 2004-06-06 Paul Brook <paul@codesourcery.com>
6302
6303 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6304 records.
6305
6306 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6307
6308 * ada-lang.c (lookup_symbol_in_language): New function to allow
6309 re-use of another language's symbol lookup code. (Placed here
6310 temporarily while Ada support is being integrated into the public
6311 tree).
6312 (restore_language): New auxiliary function for
6313 lookup_symbol_in_language.
6314 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6315 temporarily while Ada support is being integrated into the public
6316 tree).
6317
6318 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6319
6320 * Makefile.in (check//%): New.
6321
6322 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6323 (mn10300_store_return_value): Rewrite.
6324 (mn10300_type_align): New.
6325 (mn10300_use_struct_convention): Rewrite.
6326 (mn10300_return_value): New, using all of the above.
6327 (mn10300_pop_frame_regular): Add saved_regs_size.
6328 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6329
6330 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6331 regs if PC is on movm.
6332
6333 2004-06-07 Jim Blandy <jimb@redhat.com>
6334
6335 Add native Linux support for the PowerPC E500.
6336 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6337 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6338 all architectures except the E500.
6339 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6340 #definitions.
6341 (struct gdb_evrregset_t): New type.
6342 (have_ptrace_getsetevrregs): New variable.
6343 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6344 fetch_spe_registers): New functions.
6345 (fetch_register): Call fetch_spe_register as appropriate.
6346 Assert that we're only passed raw register numbers.
6347 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6348 Don't fetch gprs if they're pseudoregisters.
6349 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6350 store_spe_registers): New functions.
6351 (store_register): Call store_spe_register as appropriate.
6352 Assert that we're only passed raw register numbers.
6353 (store_ppc_registers): Call store_spe_registers as appropriate.
6354 Don't store gprs if they're pseudoregisters.
6355
6356 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6357
6358 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6359 struct if one exists, even if we are dealing with a zombie thread.
6360
6361 2004-06-07 Andrew Cagney <cagney@gnu.org>
6362
6363 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6364 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6365 Rename PC_REQUIRES_RUN_BEFORE_USE.
6366 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6367 #ifdef.
6368
6369 2004-06-07 Randolph Chung <tausq@debian.org>
6370
6371 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6372 unwinding after sp has been saved to the stack but before the end
6373 of the prologue, and after the fp has been modified but before it has
6374 been saved to the stack.
6375 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6376 Remove superfluous definitions.
6377 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6378
6379 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6380
6381 Committed by Randolph Chung.
6382 * hppa-linux-nat.c: Include the correct version of the header file
6383 depending on the kernel version.
6384
6385 2004-06-06 Randolph Chung <tausq@debian.org>
6386
6387 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6388 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6389
6390 2004-06-06 Randolph Chung <tausq@debian.org>
6391
6392 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6393 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6394 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6395 * hppa-tdep.c (hppa_symbol_address): New function definition.
6396 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6397
6398 2004-06-06 Randolph Chung <tausq@debian.org>
6399
6400 * hppa-tdep.h (struct value): Forward declaration.
6401 (gdbarch_tdep): Define tdep find_global_pointer method.
6402 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6403 associated with the function we are trying to call, and write it
6404 to the gp register.
6405 (hppa32_convert_from_funct_ptr_addr): New function.
6406 (hppa_find_global_pointer): New function.
6407 (hppa_gdbarch_init): Set default find_global_pointer method; set
6408 convert_from_func_ptr_addr method.
6409 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6410 (hppa_linux_init_abi): Set find_global_pointer method.
6411 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6412
6413 2004-06-06 Randolph Chung <tausq@debian.org>
6414
6415 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6416 to struct value *function.
6417 * gdbarch.c: Regenerate.
6418 * gdbarch.h: Likewise.
6419 * infcall.c (call_function_by_hand): Pass entire function value
6420 to push_dummy_call.
6421
6422 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6423 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6424 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6425 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6426 * arm-tdep.c (arm_push_dummy_call): Likewise.
6427 * avr-tdep.c (avr_push_dummy_call): Likewise.
6428 * cris-tdep.c (cris_push_dummy_call): Likewise.
6429 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6430 * frv-tdep.c (frv_push_dummy_call): Likewise.
6431 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6432 * hppa-tdep.c (hppa32_push_dummy_call)
6433 (hppa64_push_dummy_call): Likewise.
6434 * i386-tdep.c (i386_push_dummy_call): Likewise.
6435 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6436 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6437 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6438 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6439 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6440 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6441 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6442 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6443 (ppc64_sysv_abi_push_dummy_call): Likewise.
6444 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6445 (ppc64_sysv_abi_push_dummy_call): Likewise.
6446 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6447 * s390-tdep.c (s390_push_dummy_call): Likewise.
6448 * sh-tdep.c (sh_push_dummy_call_fpu)
6449 (sh_push_dummy_call_nofpu): Likewise.
6450 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6451 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6452 * vax-tdep.c (vax_push_dummy_call): Likewise.
6453
6454 2004-06-04 Jim Blandy <jimb@redhat.com>
6455
6456 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6457 gdbarch argument to register_size.
6458
6459 * rs6000-tdep.c (rs6000_store_return_value): Use
6460 regcache_cooked_write_part instead of
6461 deprecated_write_register_bytes.
6462 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6463 not gdbarch_deprecated_store_return_value.
6464
6465 * ppc-linux-nat.c (store_register, fetch_register): Remove
6466 incorrect assertions. Simplify and generalize handling of
6467 transfers whose sizes are not multiples of, or less than, sizeof
6468 (PTRACE_XFER_TYPE).
6469
6470 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6471
6472 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6473 as a new thread event.
6474 * thread-db.c (thread_get_info_callback): If the thread is a
6475 zombie, return TD_THR_ZOMBIE.
6476 (thread_from_lwp): If thread_get_info_callback returns
6477 TD_THR_ZOMBIE, check if the thread is still on the thread list
6478 and return a -1 ptid if not found.
6479 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6480 change the status to TARGET_WAITKIND_SPURIOUS.
6481
6482 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6483
6484 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6485 double values in little endian mode.
6486
6487 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6488
6489 Committed by Andrew Cagney.
6490 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6491 after last enum constant to avoid error from IBM C
6492 compiler.
6493
6494 2004-06-02 Jim Blandy <jimb@redhat.com>
6495
6496 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6497 to 'message', and make it local to the lone block that uses it.
6498
6499 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6500
6501 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6502
6503 * ada-exp.y: Update copyright notice.
6504 Include block.h.
6505
6506 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6507 SPECIAL_VARIABLE and unify the treatment of these cases.
6508
6509 (write_attribute_call0): Remove.
6510 (write_attribute_call1): Remove.
6511 (write_attribute_calln): Remove.
6512 (save_qualifier): Add missing semicolon.
6513
6514 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6515 temporarily disabled to allow compilation with FSF head version.
6516
6517 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6518 use individual operators (OP_*) for all attributes.
6519 (exp syntax): Use write_int.
6520 Handle STRING literals with OP_STRING.
6521 (variable syntax): Add limit parameter to calls to
6522 write_object_renaming.
6523
6524 (temp_parse_space): New definition to hold entities that need
6525 only live until the next call to ada_parse.
6526 (string_to_operator): Rename fields of ada_opname_table entries.
6527
6528 (write_var_from_sym): Record block.
6529 (write_var_from_name): Minor reformatting.
6530 Make sure saved name is properly encoded in the case of multiple
6531 matches, and set its language to Ada.
6532 Update comment.
6533 Modify to indicate unresolved name as symbol in the UNRESOLVED
6534 namespace, allocated in temp_parse_space.
6535 (write_int): New function.
6536
6537 (write_object_renaming): Add max_depth parameter to limit
6538 chains of object renamings.
6539 Handle case where root of renaming expression is itself a renaming.
6540 Use temp_parse_space for temporary name buffer.
6541 Handle renamings to dereferenced pointers (___XEXA suffices).
6542
6543 (ada_parse, yyerror, string_to_operator,
6544 write_var_from_sym, write_var_from_name, write_attribute_call0,
6545 write_attribute_call1, write_attribute_calln,
6546 write_object_renaming): Protoize.
6547
6548 (_initialize_ada_exp): New function.
6549
6550 * ada-lang.c: Update copyright notice.
6551 General terminology change to conform to GNAT compiler usage:
6552 mangle => encode, demangle => decode
6553 Include gdb_obstack.h.
6554 Include gdb_regex.h
6555 Include frame.h
6556 Include hashtab.h
6557 Include completer.h
6558 Include gdb_stat.h
6559 Include block.h
6560 Include infcall.h
6561
6562 (ADA_RETAIN_DOTS): Make sure this is defined.
6563 (TRUNCATION_TOWARDS_ZERO): Define.
6564 (struct string_vector): Define.
6565 (unresolved_names): Remove definition.
6566 (xnew_string_vector): New function.
6567 (string_vector_append): New function.
6568 (extract_string): Make static.
6569 (ada_unqualified_name): New function.
6570 (add_angle_brackets): New function.
6571 (function_name_from_pc): New function.
6572 (place_on_stack): Rename to ensure_lval.
6573
6574 (ensure_lval): Renamed from place_on_stack.
6575 Make identity on lvals.
6576 Update comment.
6577 (is_nonfunction): New interface.
6578 Only symbols in LOC_CONST class can be enumerals.
6579 (fill_in_ada_prototype): Remove; now independent of language.
6580 (add_defn_to_vec): Add obstack and symtab arguments.
6581 Use obstack to hold collected definitions.
6582 (num_defns_collected): New function.
6583 (defns_collected): New function.
6584 (ada_resolve_subexp): Rename to resolve_subexp.
6585 (resolve_subexp): Renamed from ada_resolve_subexp.
6586 (ada_op_name): Return non-const result.
6587 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6588 other purposes.
6589
6590 (to_fixed_array_type): Add declaration.
6591 (coerce_unspec_val_to_type): Remove offset parameter.
6592 (find_sal_from_funcs_and_line): New interface.
6593 (find_line_in_linetable): Ditto.
6594
6595 (all_sals_for_line): Rename to ada_sals_for_line and make
6596 global.
6597 Add new parameter. When set, do not ask the user to choose the
6598 instance, but use the first one found instead.
6599 Use given line number in returned sals.
6600 Fix comment.
6601 Skip the prologue if funfirstline is set.
6602 Correct for memory leak when 0 lines found.
6603
6604 (value_pos_atr): Use pos_atr.
6605 (pos_atr): New function.
6606 (standard_lookup): Add block parameter.
6607
6608 (makeTimeStart): Remove declaration and uses.
6609 (makeTimeStop): Remove declaration and uses.
6610
6611 (ada_completer_word_break_characters): Allow for VMS.
6612 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6613 (raise_sym_name): New constant.
6614 (raise_unhandled_sym_name): New constant.
6615 (raise_assert_sym_name): New constant.
6616 (process_raise_exception_name): New constant.
6617 (longest_exception_template): New constant.
6618 (warning_limit): New variable to limit warnings during expression
6619 evaluation.
6620 (warnings_issued): New variable to keep track of warnings issued.
6621 (known_runtime_file_name_patterns): New constant.
6622 (known_auxiliary_function_name_patterns): New constant.
6623 (symbol_list_obstack): New variable.
6624
6625 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6626 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6627 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6628 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6629 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6630 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6631 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6632 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6633 and strcmp.
6634
6635 (ada_get_field_index): New function.
6636 (lim_warning): New function.
6637 (ada_translate_error_message): New function.
6638 (MAX_OF_SIZE): New function.
6639 (MIN_OF_SIZE): New function.
6640 (UMAX_OF_SIZE): New function.
6641 (UMIN_OF_SIZE): New function.
6642 (discrete_type_high_bound): New function.
6643 (discrete_type_low_bound): New function.
6644 (base_type): New function.
6645 (do_command): Remove.
6646
6647 (ada_update_initial_language): Use language_ada, not language_unknown.
6648 (ada_encode): Renamed from ada_mangle.
6649 Obey ADA_RETAIN_DOTS.
6650 (ada_decode): Renamed from ada_demangle.
6651 Update coding conventions.
6652 (decoded_names_store): New hash table.
6653 (ada_decode_symbol): New function.
6654 (ada_la_decode): New function.
6655
6656 (modify_general_field): Correct computations of offset and bit
6657 position.
6658 (desc_base_type): Handle ref types, too.
6659 (ada_is_direct_array_type): New function.
6660
6661 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6662 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6663 (ada_is_bogus_array_descriptor,ada_type_of_array,
6664 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6665 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6666 ada_is_array_descriptor_type.
6667
6668 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6669 (ada_is_packed_array_type): Handle pointers or
6670 references to packed arrays as well.
6671 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6672 (decode_packed_array_type): Search for the packed array type
6673 symbol in the currently selected block and associated
6674 superblocks too.
6675 Use lookup_symbol again.
6676
6677 (decode_packed_array): Handle pointers and references.
6678 Update call to coerce_unspec_val_to_type.
6679 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6680 (ada_value_primitive_packed_val): Improve comment.
6681
6682 (ada_index_type): Substitute int type for "undefined".
6683 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6684 ada_array_langth, ada_is_string_type): Use renamed
6685 ada_is_simple_array_type.
6686 (empty_array): New function.
6687
6688 (ada_resolve): Rename to resolve.
6689 (resolve): Make static.
6690 Call renamed resolve_subexp.
6691 Update comment.
6692 (ada_resolve_subexp): Rename to resolve_subexp.
6693 (resolve_subexp): Update comment.
6694 Decomment disabled code.
6695 Add LOC_COMPUTED* cases.
6696 Modify to use temporary struct symbols (marked as being in
6697 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6698 OP_UNRESOLVED_VALUE.
6699 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6700 Add OP_STRING case.
6701 Remove OP_ARRAY.
6702 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6703 Use new ada_lookup_symbol_list interface.
6704 Use new ada_resolve_function interface.
6705 Remove OP_TYPE case.
6706
6707 (ada_args_match): Idiot proof against null actuals.
6708 Use intermediate variables to clarify.
6709 (ada_resolve_function): Update comment and interface.
6710 (mangled_ordered_before): Rename to encoded_ordered_before and
6711 update comment.
6712 (sort_choices): Update comment and interface.
6713 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6714 (user_select_syms): New interface.
6715 Use new sort_choices interface.
6716 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6717 (possible_user_operator_p): Idiot-proof against null values.
6718 (ada_simple_renamed_entity): Don't make cleanup; rely on
6719 caller to free result string.
6720 Remove const from return type.
6721 (make_array_descriptor): Rename uses of place_on_stack to
6722 ensure_lval.
6723 Make sure that arrays are on stack.
6724
6725 (HASH_SIZE): Define.
6726 (struct cache_entry): Define.
6727 (cache_space): Define.
6728 (cache): Define.
6729 (clear_ada_sym_cache): New function.
6730 (find_entry): New function.
6731 (lookup_cached_symbol): New function.
6732 (defn_vector_size): Define.
6733 (cache_symbol): New function.
6734 (defn_symbols): Remove.
6735
6736 (standard_lookup): Use lookup_symbol_in_language to get effect of
6737 C lookup.
6738 Cache results.
6739
6740 (symbol_completion_match): New function.
6741 (symbol_completion_add): New function.
6742 (ada_make_symbol_completion_list): New function.
6743
6744 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6745 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6746 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6747 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6748
6749 (ada_lookup_simple_minsym): New function.
6750 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6751
6752 (add_symbols_from_enclosing_procs): New interface.
6753 Conditionalize more helpfully.
6754 Don't bother if program isn't running.
6755 Use new interface to get_frame_block.
6756 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6757
6758 (remove_extra_symbols): New interface.
6759 (xget_renaming_scope): New function.
6760 (is_package_name): New function.
6761 (renaming_is_visible): New function.
6762 (remove_out_of_scope_renamings): New function.
6763
6764 (ada_lookup_symbol_list): New interface.
6765 Properly reinitialize the symbol list obstack.
6766 Don't call add_symbols_from_enclosing_procs if we start from a
6767 static or global block.
6768 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6769 add_symbols_from_enclosing_procs.
6770 Add symtab data to cached entries.
6771 Handle symbols prefixed with
6772 "standard__" specially; strip prefix and don't look in local symbols.
6773 Do not include out of scope renaming symbols in list of
6774 symbols returned.
6775 Add const to block parameter.
6776 Move check for non-local, non-global symbols earlier.
6777 Remove timing stuff.
6778 (ada_lookup_symbol): New interface.
6779 Find symtab as well.
6780 (ada_lookup_symbol_nonlocal): New function.
6781
6782 (is_name_suffix): Enhance suffix detection to recognize
6783 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6784 (is_dot_digits_suffix): New function.
6785 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6786
6787 (ada_add_block_symbols): New interface. Use obstack to return results
6788 in a vector of struct ada_symbol_infos. Add symtab argument.
6789 Use new interface to add_defn_to_vec.
6790 Remove calls to fill_in_ada_prototype.
6791 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6792
6793 (ada_finish_decode_line_1): Add const qualification to local to fix
6794 warning.
6795 Start looking in static block for functions to avoid attempts
6796 to search frame chain for up-level variables.
6797 Adapt to new ada_sals_for_line interface.
6798 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6799 Handle quoting of the function name inside the spec string.
6800 Skip prologue when funfirstline is set and update the
6801 function documentation to that effect.
6802
6803 (debug_print_lines, debug_print_block, debug_print_blocks,
6804 debug_print_symtab): Remove.
6805
6806 (ada_main_name): New function.
6807 (ada_exception_breakpoint_type): New function.
6808 (is_known_support_routine): New function.
6809 (ada_find_printable_frame): Renamed from find_printable_frame and made
6810 global.
6811 Remove level parameter.
6812 Use new interface to select_frame.
6813
6814 (begin_command): Remove.
6815 (ada_adjust_exception_stop): New function.
6816 (ada_print_exception_stop): New function.
6817 (exception_name_from_cond): New function.
6818 (ada_report_exception_break): Replace disabled code with
6819 conditionalization on GNAT_GDB.
6820 Get the exception name from the condition string.
6821 Remove and move functionality into new functions
6822 ada_print_exception_breakpoint_task and
6823 ada_print_exception_breakpoint_nontask.
6824 (error_breakpoint_runtime_sym_not_found): New function.
6825 (is_runtime_sym_defined): New function.
6826 (ada_breakpoint_rewrite): Uncomment suppressed code.
6827 Use symbolic error-message and runtime-symbol names.
6828 Surround runtime symbol names in quotes.
6829 Allow non-specific breakpoints on exceptions and assertions before
6830 program starts.
6831
6832 (ada_is_tagged_type): Add parameter.
6833 (ada_is_tag_type): New function.
6834 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6835 (ada_variant_discrim_type): Ditto.
6836 (value_tag_from_contents_and_address): New function.
6837 (type_from_tag): New function.
6838 (struct tag_args): New structure used to communicate with
6839 ada_tag_name_1.
6840 (ada_tag_name_1): New function.
6841 (ada_tag_name): New function.
6842
6843 (ada_scan_number): Update comment.
6844 (find_struct_field): New function.
6845 (ada_search_struct_field): Make static.
6846 (ada_value_struct_elt): New version that returns references when
6847 given pointers or references to structs.
6848 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6849 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6850 interface.
6851 (ada_value_ind): Use new ada_to_fixed_value interface.
6852 (ada_coerce_ref): Ditto.
6853 (field_offset): Remove.
6854
6855 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6856 (ada_find_renaming_symbol): New function.
6857 (ada_prefer_type): Prefer named types over unnamed ones.
6858 (variant_field_index): New function.
6859 (contains_variant_part): Removed: subsumed by variant_field_index.
6860 (ada_template_to_fixed_record_type): New function, mostly from
6861 template_to_fixed_record_type.
6862 (template_to_fixed_record_type):
6863 Do not scan the type fields beyond the last one; prevents a
6864 potential SEGV.
6865 Handle case where variant field is listed BEFORE discriminant it
6866 depends on.
6867 Fix calculation of record length when bit length is
6868 not evenly divisible by char length.
6869 Move code to ada_template_to_fixed_record_type and call it.
6870
6871 (template_to_static_fixed_type): Revise comment.
6872 Modify to work on ordinary record types as well as templates,
6873 so as to handle fields that use ___XVE or ___XVU encodings.
6874 (to_record_with_fixed_variant_part): Fill out comment.
6875 Initialize C++ stuff in right type.
6876 Allow case where DVAL is null.
6877 Handle case where variant field is not last.
6878 Fix typo concerning record length.
6879 (to_fixed_record_type): Decomment disabled code.
6880 (to_fixed_record_type): Use variant_field_index instead of
6881 contains_variant_part.
6882 (to_fixed_variant_branch_type): Ditto.
6883 (to_fixed_array_type): Decomment disabled code.
6884 (ada_to_fixed_type): Convert tagged types to the specific type.
6885 Deactivate the size-check for array types in order to avoid
6886 some false size alarms.
6887 (to_static_fixed_type): Decomment disabled code.
6888 Modify to call template_to_static_fixed_type
6889 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6890 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6891 Remove valaddr argument, as it is never really used.
6892 (ada_to_fixed_value): Change interface to act on single struct value*
6893 operand.
6894 (adjust_pc_past_prologue): New function.
6895 (ada_attribute_name): Modify to take enum exp_opcode argument.
6896
6897 (ada_enum_name): Recognize new homonym-distinguishing convention.
6898 Adjust local variable's type to remove compiler warning.
6899 Fix a small problem in the part that unqualifies the enumeration name.
6900 (ada_value_binop): New function.
6901 (ada_value_equal): New function.
6902
6903 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6904 Don't give error message when not doing normal evaluation
6905 and a tagged type doesn't seem to contain a structure member.
6906 Give error message for packed arrays.
6907 For indexing arrays, handle pointers to packed arrays correctly.
6908 Handle case of 'first and 'last attributes of bare integral type
6909 without encoded subtype info.
6910 Remove some unnecessary casts.
6911 Fix uninitialized value of type in computing 'first, 'last, or 'length
6912 of array object.
6913 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6914 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6915 calls.
6916 Attributes are now exp_opcode values.
6917 Correct treatment of 'modulus.
6918 Better error message for taking 'length of wrong kind of type;
6919 improve comment.
6920 Change EVAL_NORMAL to noside for consistency.
6921 Use ada_value_binop for DIV, MOD, REM.
6922 Make special case out of array of length 0, since an argument
6923 of 0 upsets some platforms' malloc.
6924 Use OP_STRING instead of OP_ARRAY.
6925 For slice, add check that we have an array type before extracting
6926 a slice out of it. Avoids a SEGV.
6927 When evaluating an array slice, if the array type is a reference to
6928 an aligner type, then replace the aligner type by the actual type.
6929 Decomment disabled code.
6930 Remove some dead code.
6931 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6932 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6933 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6934 and UNOP_MBR to UNOP_IN_RANGE.
6935 If an array type has a parallel ___XVE type, then use it.
6936 Turn arrays into pointers for lvalue arrays.
6937 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6938 bounds error and handle 0-length slices.
6939 Use lim_warning.
6940 When selecting fields, apply ada_to_fixed_value (because the fields
6941 might have ___XVU or ___XVE encodings even if not dynamic.)
6942 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6943 (ada_is_system_address_type): New function.
6944
6945 (get_var_value): Use new interface to ada_lookup_symbol_list.
6946 (get_int_var_value): New interface.
6947 (to_fixed_range_type): Allow unknown bound, with warning.
6948 (ada_is_modular_type): Decomment disabled code.
6949 (ADA_OPERATORS): New definition.
6950 (ada_operator_length): New function.
6951 (ada_expr_op_name): New function.
6952 (ada_forward_operator_length): New function.
6953 (ada_dump_subexp_body): New function.
6954 (ada_print_subexp): New function.
6955 (ada_exp_descriptor): New constant.
6956 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6957 (ada_language_defn): Add ada_exp_descriptor entry.
6958 Change ada_parse => parse.
6959 Add post-parser entry.
6960 Use ada-specific non-local symbol lookup.
6961 Don't use C-style arrays.
6962 String lower-bound is 1.
6963 Decomment disabled code.
6964 (parse): New function.
6965 New fields ada_translate_error_message, ada_lookup_symbol,
6966 ada_lookup_minimal_symbol.
6967
6968 * ada-lang.h: Update copyright dates.
6969 Replace the mangle/demangle terminology throughout by the
6970 more appropriate encode/decode one.
6971 Include breakpoint.h.
6972 Forward declare struct partial_symbol, struct block.
6973 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6974 (EXTRACT_ADDRESS): Remove.
6975 (EXTRACT_INT): Remove.
6976 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6977 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6978 (MAX_RENAMING_CHAIN_LENGTH): Define.
6979 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6980
6981 (enum task_states): Remove.
6982 ada_task_states: Remove.
6983 (fat_string): Remove.
6984 (struct entry_call): Remove.
6985 (struct task_fields): Remove.
6986 (struct task_entry): Remove.
6987
6988 (struct ada_symbol_info): Define.
6989 (enum ada_attribute): Remove.
6990 (enum ada_operator): Define.
6991
6992 (ada_get_field_index): Declare.
6993 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6994 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6995 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6996 (ada_lookup_symbol_list): New interface.
6997 (ada_decode_symbol): Declare.
6998 (ada_decode): Declare.
6999 (ada_lookup_symbol): New interface.
7000 (ada_update_initial_language): Declare.
7001 (ada_lookup_simple_minsym): Declare.
7002 (user_select_syms): New interface.
7003 (ada_sals_for_line): Declare.
7004 (ada_is_tagged_type): New interface.
7005 (ada_tag_name): Declare.
7006 (ada_lookup_struct_elt_type): Remove declaration.
7007 (ada_search_struct_field): Remove declaration.
7008 (ada_attribute_name): New interface.
7009 (ada_is_system_address_type): Declare.
7010 (ada_to_fixed_value): Remove declaration.
7011 (ada_template_to_fixed_record_type_1): Declare.
7012 (get_int_var_value): New interface.
7013 (ada_find_any_symbol): Declare.
7014 (ada_find_renaming_symbol): Declare.
7015 (ada_mangle): Rename to ada_encode.
7016 (ada_simple_renamed_entity): Remove const.
7017 (ada_main_name): Declare.
7018 (get_current_task): Rename to ada_get_current_task.
7019 (get_entry_number): Remove declaration.
7020 (ada_report_exception_break): Remove declaration.
7021 (ada_print_exception_breakpoint_nontask): Declare.
7022 (ada_print_exception_breakpoint_task): Declare.
7023 (ada_find_printable_frame): Declare.
7024
7025 * ada-lex.l: Update copyright notices.
7026 Use xmalloc and xfree instead of malloc and free.
7027 Use new interface to name_lookup.
7028 Use new interface to
7029 ada_mangle=>ada_encode.
7030 Redo handling of '$...' variable to parallel current treatment
7031 in c-exp.y.
7032 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7033 digit_to_int, strtoulst, processInt, processReal, processId,
7034 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7035 yywrap): Protoize.
7036
7037 (processInt): Use cast to remove harmless warning.
7038 (processReal): Modify to get rid of compiler warning on scan formats.
7039
7040 (processId): Replace xmalloc with obstack_alloc for name and remove
7041 call to ada_name_string_cleanup.
7042 Remove obsolete disabled code.
7043 (name_lookup): Ditto.
7044 New interface.
7045 Use obsavestring on temp_parse_space instead of savestring
7046 on name, and remove call to ada_name_string_cleanup.
7047 Free string returned from ada_simple_renamed_entity.
7048 Use new interface to ada_lookup_symbol_list.
7049 Decomment disabled code.
7050 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7051 not types.
7052 When a type name lookup succeeds as a result of
7053 lookup_primitive_typename, check for regular type entry that has not
7054 yet been read in.
7055 Limit length of chain of renamed symbols we are willing to follow.
7056 Do not break names beginning with "standard__" into segments.
7057 (block_lookup): Use new interface to ada_lookup_symbol_list.
7058
7059 * ada-typeprint.c: Update copyright notice.
7060 (demangled_type_name): Rename to decoded_type_name.
7061 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7062 (print_range_bound): Correct handling of negative
7063 bounds that make the index type looked unsigned under STABS.
7064 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7065 (print_range_type_named): Use the builtin int type if no type
7066 corresponding to the given type name could be found.
7067 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7068 Add some bullet-proofing.
7069 (print_variant_clauses): Allow for variant branches with ___XVU
7070 encodings that are not dynamic fields.
7071 Use new interface to ada_is_tagged_type.
7072 (print_record_type): Allow for fields with ___XVE encodings that
7073 are not dynamic fields.
7074 Use new interface to ada_is_tagged_type.
7075 (ada_print_type): ada_is_array_descriptor =>
7076 ada_is_array_descriptor_type.
7077
7078 * ada-valprint.c: Update copyright notice.
7079 Include gdb_string.h
7080 Include infcall.h
7081 (ui_memcpy): New function.
7082 (ada_print_floating): New function.
7083 (ada_print_str): Order arguments correctly.
7084 Correct handling of empty arrays and arrays of 0-length items.
7085 ada_is_array_descriptor => ada_is_array_descriptor_type
7086 Print values of type System.Address in hexadecimal format.
7087 Use ada_print_floating to print floating-point numbers in Ada format.
7088 Print class tag values with type names.
7089 No longer print the address of reference values. Avoids
7090 a potential confusion.
7091 (ada_value_print): Stop printing the object type for reference
7092 values, but preserve that behavior for access types. Avoids
7093 a potential confusion.
7094 Simplify one conditional expression, as the first part is now
7095 necessarily true.
7096 ada_is_array_descriptor => ada_is_array_descriptor_type
7097 Add check for arrays for null records, and print them by hand.
7098
7099 2004-06-01 Jim Blandy <jimb@redhat.com>
7100
7101 * ppc-tdep.h: Delete unused 'regoff' member.
7102 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7103
7104 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7105
7106 Fix PR symtab/1661.
7107 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7108 (hpread_read_struct_type): Likewise.
7109
7110 2004-06-01 Andrew Cagney <cagney@gnu.org>
7111
7112 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7113 instead of xasprintf.
7114 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7115 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7116 (mi_cmd_data_list_register_names)
7117 (mi_cmd_data_list_changed_registers)
7118 (mi_cmd_data_list_register_values)
7119 (get_register, mi_cmd_data_write_register_values)
7120 (mi_cmd_data_write_register_values)
7121 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7122 (mi_cmd_target_download, mi_cmd_target_select)
7123 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7124 (mi_execute_cli_command, mi_execute_async_cli_command)
7125 (mi_execute_async_cli_command): Ditto.
7126 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7127 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7128
7129 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7130 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7131 error_last_message instead of mi_error_last_message.
7132 * mi/mi-main.c (mi_error_last_message): Delete function.
7133
7134 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7135 "invalid number of columns" error. Delete redundant "out of
7136 memory" check.
7137
7138 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7139
7140 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7141 (gregset_t, fpregset_t): Remove typedefs.
7142 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7143 (REG_OFFSET): Rename argument.
7144 (i386bsd_r_reg_offset): Rename from reg_offset.
7145 (REG_ADDR): Remove macro.
7146 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7147 functions.
7148 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7149 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7150 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7151 instead of supply_gregset.
7152 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7153 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7154 instead of fill_gregset.
7155 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7156
7157 * i386bsd-nat.c: Don't include "gregset.h".
7158 (supply_gregset, fill_gregset): Make static.
7159 (supply_fpregset, fill_fpregset): Remove.
7160 * Makefile.in (i386bsd-nat.o): Update dependencies.
7161
7162 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7163
7164 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7165 "gdb_assert.h". Con't include "gregset.h".
7166 (fbsd_make_corefile_notes): Use regset-based core file support
7167 instead off fill_gregset and fill_fpregset.
7168 * Makefile.in (fbsd-proc.o): Update dependencies.
7169
7170 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7171 instructions.
7172 (m88k_frame_prev_register): Simplify code a bit.
7173
7174 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7175 (amd64_collect_fpregset): New function.
7176 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7177
7178 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7179
7180 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7181 (i386_collect_gregset): New function.
7182 (i386_supply_fpregset): Adjust comment.
7183 (i386_collect_fpregset): New function.
7184 (i386_regset_from_core_section): Use i386_collect_gregset and
7185 i386_collect_fpregset.
7186
7187 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7188 handle VALUEP being null.
7189
7190 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7191
7192 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7193
7194 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7195
7196 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7197 assembler in OpenBSD 3.5-current.
7198 (amd64obsd_sigcontext_addr): Likewise.
7199
7200 2004-05-28 Jim Blandy <jimb@redhat.com>
7201
7202 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7203 register set, so our regcache isn't declared "legacy" and our E500
7204 pseudoregister read and write functions aren't ignored.
7205 (rs6000_register_byte, rs6000_register_raw_size,
7206 rs6000_register_virtual_type, rs6000_register_convertible,
7207 rs6000_register_convert_to_virtual,
7208 rs6000_register_convert_to_raw): Deleted.
7209 (rs6000_register_type, rs6000_convert_register_p,
7210 rs6000_register_to_value, rs6000_value_to_register): New
7211 functions.
7212 (rs6000_gdbarch_init): Don't register
7213 gdbarch_deprecated_register_size,
7214 gdbarch_deprecated_register_bytes,
7215 gdbarch_deprecated_register_byte,
7216 gdbarch_deprecated_register_raw_size,
7217 gdbarch_deprecated_register_virtual_type,
7218 gdbarch_deprecated_register_convertible,
7219 gdbarch_deprecated_register_convert_to_virtual, or
7220 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7221 register gdbarch_register_type, gdbarch_convert_register_p,
7222 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7223
7224 2004-05-26 Jim Blandy <jimb@redhat.com>
7225
7226 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7227 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7228 functions, updated to match the register numberings used in GCC.
7229 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7230 rs6000_dwarf2_reg_to_regnum as register number conversions
7231 functions for STABS and Dwarf2.
7232
7233 2004-05-26 Randolph Chung <tausq@debian.org>
7234
7235 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7236 in header file.
7237
7238 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7239
7240 * NEWS: Document new "start" command.
7241
7242 2004-05-25 Randolph Chung <tausq@debian.org>
7243
7244 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7245 hppa-linux.
7246
7247 2004-05-25 Randolph Chung <tausq@debian.org>
7248
7249 * hppa-hpux-tdep.c (offsetof): Define.
7250 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7251 (hppa32_hpux_frame_base_before_sigtramp)
7252 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7253 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7254 (hppa64_hpux_frame_base_before_sigtramp)
7255 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7256 functions.
7257 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7258 (hppa_hpux_sigtramp_frame_unwind_cache)
7259 (hppa_hpux_sigtramp_frame_this_id)
7260 (hppa_hpux_sigtramp_frame_prev_register)
7261 (hppa_hpux_sigtramp_frame_unwind)
7262 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7263 (hppa_hpux_init_abi): Register sigtramp unwinder.
7264 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7265
7266 2004-05-25 Randolph Chung <tausq@debian.org>
7267
7268 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7269 and multiple stack unwinds.
7270 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7271
7272 2004-05-25 Andrew Cagney <cagney@gnu.org>
7273
7274 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7275 * symfile-mem.h: Delete file.
7276 * symfile-mem.c: Do not include "symfile-mem.h".
7277 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7278 "struct bfd_section". When an error do not bother returning NULL.
7279 (add_symbol_file_from_memory_command): Use "struct bfd" and
7280 "struct bfd_section".
7281 * Makefile.in (symfile_mem_h): Delete.
7282 (symfile-mem.o): Update dependencies.
7283
7284 2004-05-25 Nick Roberts <nickrob@gnu.org>
7285
7286 * gdb-mi.el: New file.
7287
7288 2004-05-25 Andrew Cagney <cagney@gnu.org>
7289
7290 * inftarg.c: Include "observer.h".
7291 (child_attach, child_create_inferior): Notify inferior_created.
7292 * corelow.c: Include "observer.h".
7293 (core_open): Notify inferior_created.
7294 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7295
7296 2004-05-25 Andrew Cagney <cagney@gnu.org>
7297
7298 * target.h (struct target_ops): Add from_tty to
7299 to_create_inferior.
7300 (target_create_inferior, find_default_create_inferior): Update.
7301 * infcmd.c (run_command): Update.
7302 * wince.c (child_create_inferior): Update.
7303 * win32-nat.c (child_create_inferior): Update.
7304 * uw-thread.c (uw_thread_create_inferior): Update.
7305 * thread-db.c (thread_db_create_inferior): Update.
7306 * target.c (debug_to_create_inferior)
7307 (find_default_create_inferior): Update.
7308 (maybe_kill_then_create_inferior): Update.
7309 * sol-thread.c (sol_thread_create_inferior): Update.
7310 * remote.c (extended_remote_async_create_inferior)
7311 (extended_remote_create_inferior): Update.
7312 * remote-vx.c (vx_create_inferior): Update.
7313 * remote-st.c (st2000_create_inferior): Update.
7314 * remote-sim.c (gdbsim_create_inferior): Update.
7315 * remote-sds.c (sds_create_inferior): Update.
7316 * remote-rdp.c (remote_rdp_create_inferior): Update.
7317 * remote-rdi.c (arm_rdi_create_inferior): Update.
7318 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7319 * remote-e7000.c (e7000_create_inferior): Update.
7320 * procfs.c (procfs_create_inferior): Update.
7321 * ocd.c (ocd_create_inferior): Update.
7322 * ocd.h (ocd_create_inferior): Update.
7323 * nto-procfs.c (procfs_create_inferior): Update.
7324 * monitor.c (monitor_create_inferior): Update.
7325 * lin-lwp.c (lin_lwp_create_inferior): Update.
7326 * inftarg.c (child_create_inferior): Update.
7327 * hpux-thread.c (hpux_thread_create_inferior): Update.
7328 * gnu-nat.c (gnu_create_inferior): Update.
7329
7330 2004-05-25 Andrew Cagney <cagney@gnu.com>
7331
7332 * MAINTAINERS: Update e-mail address.
7333
7334 2004-05-24 Randolph Chung <tausq@debian.org>
7335
7336 * thread.c (info_threads_command, thread_apply_all_command)
7337 (thread_apply_command, thread_command, do_captured_thread_select):
7338 Remove HPUXHPPA-specific code.
7339
7340 2004-05-24 Randolph Chung <tausq@debian.org>
7341
7342 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7343 unused symbols.
7344 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7345 references.
7346
7347 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7348
7349 * infcmd.c (kill_if_already_running): New function, extracted
7350 from run_command().
7351 (run_command): Replace extracted code by call to
7352 kill_if_already_running().
7353 (start_command): New function.
7354 (_initialize_infcmd): Add "start" command.
7355
7356 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7357
7358 Add OpenBSD/m88k support.
7359 * NEWS (New native configurations): Mention OpenBSD/m88k.
7360 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7361 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7362 * Makefile.in (m88k_tdep_h): New variable.
7363 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7364 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7365 * configure.host: Add m88*-*-openbsd*.
7366 * configure.tgt: Add m88*-*-openbsd*.
7367
7368 2004-05-24 Jim Blandy <jimb@redhat.com>
7369
7370 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7371 to approve changes.
7372
7373 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7374
7375 * symtab.c (fixup_section): Search section table when lookup by
7376 name fails.
7377
7378 2004-05-24 Randolph Chung <tausq@debian.org>
7379
7380 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7381 be "small_struct".
7382
7383 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7384
7385 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7386 register number in regcache_raw_collect call.
7387 (m68kbsd_collect_fpregset): Likewise.
7388 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7389
7390 * regset.h (struct regset): Add back `regset' member.
7391
7392 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7393
7394 * configure.in: Check for td_pcb in `struct thread'.
7395 * configure, config.in: Regenerated.
7396
7397 * dpx2-nat.c: Remove file.
7398 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7399 (dpx2-nat.o): Remove dependencies.
7400
7401 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7402 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7403 (amd64obsd_supply_pcb): New function.
7404 (_initialize_amd64obsd_nat): Enable libkvm interface.
7405 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7406 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7407 (LOADLIBES): New variable.
7408
7409 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7410 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7411 (sparc32nbsd_supply_pcb): New function.
7412 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7413 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7414 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7415 (LOADLIBES): New variable.
7416
7417 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7418
7419 * bsd-kvm.c, bsd-kvm.h: New files.
7420 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7421 "bsd-kvm.h".
7422 (i386fbsd_supply_pcb): New function.
7423 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7424 (i386fbsd-nat.o): Update dependencies.
7425 (bsd_kvm_h): New variable.
7426 (bsd-kvm.o): New dependency.
7427 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7428 (LOADLIBES): New variable.
7429
7430 * regset.c: Tweak comment.
7431 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7432 macro.
7433 * regset.h: Update copyright year.
7434 (struct regset): Remove `descr' member, add `gdbarch' member.
7435 (regset_alloc): Adjust prototype and comment.
7436 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7437 (i386_supply_fpregset): Likewise.
7438 (i386_regset_from_core_section): Update call to regset_alloc.
7439 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7440 REGSET->arch.
7441 (i386obsd_aout_regset_from_core_section): Update call to
7442 regset_alloc.
7443 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7444 REGSET->arch.
7445 (i386nbsd_aout_regset_from_core_section): Update call to
7446 regset_alloc.
7447 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7448 REGSET->arch.
7449 (amd64_regset_from_core_section): Update call to regset_alloc.
7450 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7451 REGSET->arch.
7452 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7453 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7454 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7455 (sparc32nbsd_init_abi): Update call to regset_alloc.
7456 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7457 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7458 (sparc64obsd_init_abi): Update call to regset_alloc.
7459 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7460 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7461 (sparc64nbsd_init_abi): Update call to regset_alloc.
7462 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7463 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7464 (sparc64fbsd_init_abi): Update call to regset_alloc.
7465
7466 2004-05-22 Jim Blandy <jimb@redhat.com>
7467
7468 * ppc-tdep.h (spe_register_p): New declaration.
7469 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7470 ppc_spefscr_regnum.
7471 * rs6000-tdep.c (spe_register_p): New function.
7472 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7473 spefscr.
7474 (rs6000_gdbarch_init): Initialize the new members of the tdep
7475 structure.
7476
7477 2004-05-21 Jim Blandy <jimb@redhat.com>
7478
7479 * ppc-linux-nat.c (fetch_register): Move code back to be next
7480 to the comment that describes it. (Moved code, instead of
7481 comment, for symmetry with store_register.)
7482
7483 Allocate regset structures in the gdbarch's obstack, not using
7484 xmalloc.
7485 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7486 Add 'arch' argument. Allocate the regset on arch's obstack, not
7487 using xmalloc.
7488 * regset.h (regset_alloc): Update declaration.
7489 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7490 gdbarch argument.
7491 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7492 * i386-tdep.c (i386_regset_from_core_section): Same.
7493 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7494 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7495 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7496 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7497 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7498 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7499
7500 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7501
7502 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7503
7504 2004-05-21 Jim Blandy <jimb@redhat.com>
7505
7506 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7507 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7508
7509 2004-05-20 Jim Blandy <jimb@redhat.com>
7510
7511 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7512
7513 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7514
7515 * regset.h: Make prototype const-correct.
7516 * regset.c (regset_xmalloc): Make const-correct.
7517
7518 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7519
7520 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7521 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7522 (symbol_search_name): Declare.
7523
7524 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7525 (iter_name_next_hashed): Ditto.
7526 (iter_name_next_linear): Ditto.
7527 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7528
7529 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7530 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7531 (symbol_search_name): New function.
7532
7533 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7534
7535 * minsyms.c (build_minimal_symbol_hash_tables): Change
7536 test for adding to demangled hash table to check for difference
7537 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7538
7539 2004-05-19 Jim Blandy <jimb@redhat.com>
7540
7541 Use a constructor function to create regset structures.
7542 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7543 (struct regset): Use supply_regset_ftype. Add new
7544 'collect_regset' member.
7545 (regset_xmalloc): New declaration.
7546 * regset.c: New file.
7547 * am64-tdep.c (amd64_regset_from_core_section): Use
7548 regset_xmalloc to construct regset structures.
7549 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7550 * i386-tdep.c (i386_regset_from_core_section): Same.
7551 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7552 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7553 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7554 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7555 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7556 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7557 * Makefile.in (COMMON_OBS): Add regset.o.
7558 (regset.o): New rule.
7559
7560 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7561
7562 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7563 and pthread_cond_wait.c.
7564
7565 2004-05-18 Jim Blandy <jimb@redhat.com>
7566
7567 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7568 before the mach-specific switch, and then let the individual cases
7569 override the defaults, rather than leaving them uninitialized
7570 until the switch and then setting them in each case.
7571
7572 2004-05-18 Randolph Chung <tausq@debian.org>
7573
7574 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7575 millicode functions.
7576
7577 2004-05-18 Randolph Chung <tausq@debian.org>
7578
7579 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7580 references to dld_flags_buffer consistent.
7581
7582 2004-05-18 Randolph Chung <tausq@debian.org>
7583
7584 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7585 it for unwinding the stack.
7586
7587 2004-05-18 Randolph Chung <tausq@debian.org>
7588
7589 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7590 Undefine these so we can overide them using gdbarch.
7591
7592 2004-05-18 Randolph Chung <tausq@debian.org>
7593
7594 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7595 handling for 64-bit HPUX (elf).
7596
7597 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7598
7599 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7600 constants.
7601 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7602 * ia64-tdep.c (examine_prologue): Likewise.
7603 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7604 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7605
7606 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7607
7608 * vax-tdep.c (vax_return_value): Implement
7609 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7610
7611 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7612
7613 * vax-tdep.c (vax_return_value): Fix typo.
7614
7615 2004-05-17 Andrew Cagney <cagney@redhat.com>
7616
7617 * MAINTAINERS: Mark Salter was also responsible for
7618 testsuite/config/
7619
7620 * NEWS: Mention signal fixes.
7621
7622 2004-05-17 Randolph Chung <tausq@debian.org>
7623
7624 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7625 check to see if we are unwinding an export stub. Export stubs clobber
7626 the %rp in the call path and stores the original rp in a stack slot.
7627
7628 2004-05-17 Jim Blandy <jimb@redhat.com>
7629
7630 * MAINTAINERS: Update address for J.T. Conklin.
7631
7632 2004-05-17 Randolph Chung <tausq@debian.org>
7633
7634 * hppa-tdep.c: Remove superfluous #include's.
7635 * Makefile.in (hppa-tdep.o): Update dependencies.
7636
7637 2004-05-17 Randolph Chung <tausq@debian.org>
7638
7639 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7640 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7641 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7642 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7643 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7644 Remove static function declarations.
7645
7646 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7647
7648 * alphabsd-nat.c: Update copyright year.
7649 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7650
7651 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7652 and M68K_A2_REGNUM.
7653
7654 * m68k-tdep.c (m68k_svr4_return_value): Implement
7655 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7656
7657 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7658
7659 * sol-thread.c Update copyright year. Fix various coding
7660 standards violations. Tweak a few comments.
7661 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7662 Delete prototypes.
7663
7664 2004-05-15 Randolph Chung <tausq@debian.org>
7665
7666 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7667 as pointer instead of array reference since HPUX compiler does
7668 not accept unsized array arguments.
7669 * somsolib.c (dld_flags_buffer): Use constant array size.
7670
7671 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7672
7673 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7674 offset with decimal offset.
7675 (amd64obsd_sigcontext_addr): Return correct address for entire
7676 signal trampoline.
7677
7678 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7679 instead of get_frame_base.
7680
7681 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7682 (fill_gregset): Use regcache_raw_collect.
7683
7684 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7685 ppcobsd-tdep.c.
7686
7687 * config/sparc/tm-nbsd64.h: Remove file.
7688 * config/tm-sunos.h: Remove file.
7689
7690 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7691
7692 * rs6000-tdep.c (store_param_on_stack_p): New function,
7693 an improved version of some code extracted from skip_prologue().
7694 (skip_prologue): Use store_param_on_stack_p() to detect
7695 instructions saving a parameter on the stack. Detect when r0
7696 is used to save a parameter.
7697 Do not mark "li rx, SIMM" instructions as part of the prologue,
7698 unless the following instruction is also part of the prologue.
7699
7700 2004-05-14 Andrew Cagney <cagney@redhat.com>
7701
7702 * infrun.c (handle_inferior_event): Simplify
7703 STEP_OVER_UNDEBUGGABLE.
7704
7705 * infrun.c (handle_step_into_function): Delete function.
7706 (handle_inferior_event): Inline calls to
7707 handle_step_into_function.
7708
7709 2004-05-14 Jerome Guitton <guitton@gnat.com>
7710
7711 * rs6000-nat.c: Fix a comment.
7712
7713 2004-05-12 David Anderson <davea@sgi.com>
7714
7715 Committed by Jim Blandy <jimb@redhat.com>:
7716 * regcache.c (struct regcache_descr): fix comment spelling.
7717
7718 2004-05-13 J. Brobecker <brobecker@gnat.com>
7719
7720 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7721 Fixes a link link failure.
7722
7723 2004-05-13 J. Brobecker <brobecker@gnat.com>
7724
7725 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7726 error that was causing the build to fail.
7727
7728 2004-05-13 J. Brobecker <brobecker@gnat.com>
7729
7730 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7731 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7732
7733 2004-05-13 Andrew Cagney <cagney@redhat.com>
7734
7735 * infrun.c (handle_inferior_event): Check for
7736 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7737 calls. Update comments.
7738
7739 2004-05-13 Jim Blandy <jimb@redhat.com>
7740
7741 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7742 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7743 (store_regs_user_thread, store_regs_kernel_thread): Use
7744 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7745 * ppc-linux-nat.c (fill_gregset): Same.
7746 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7747 (ppc_linux_sigtramp_cache): Same.
7748 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7749 (ppcnbsd_sigtramp_cache_init): Same.
7750 * rs6000-nat.c (fetch_core_registers): Same.
7751 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7752 (rs6000_frame_cache): Same.
7753
7754 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7755 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7756 of assuming that the gprs are numbered starting with zero.
7757 * ppc-linux-nat.c (fill_gregset): Same.
7758 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7759 * ppcnbsd-nat.c (getregs_supplies): Same.
7760 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7761 * rs6000-nat.c (fetch_core_registers): Same.
7762 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7763
7764 2004-05-07 Michael Snyder <msnyder@redhat.com>
7765
7766 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7767 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7768
7769 2004-05-13 Andrew Cagney <cagney@redhat.com>
7770
7771 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7772
7773 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7774
7775 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7776 base_address for shared libraries.
7777
7778 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7779
7780 * MAINTAINERS (write after approval): Add myself.
7781
7782 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7783
7784 * breakpoint.c (bpstat_stop_status): Add new argument
7785 STOPPED_BY_WATCHPOINT. Use it instead of testing
7786 target_stopped_data_address agaist 0 to check whether
7787 or not we stopped due to a hardware watchpoint.
7788 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7789 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7790 with new argument.
7791
7792 2004-05-12 Jim Blandy <jimb@redhat.com>
7793
7794 * configure.in: When checking whether we should use the -bbigtoc
7795 option, don't forget to restore the original value of LDFLAGS.
7796 * configure: Regenerated.
7797
7798 2004-05-12 Andrew Cagney <cagney@redhat.com>
7799
7800 * thread.c (load_infrun_state): Delete step_sp.
7801 * infrun.c (context_switch): Ditto.
7802 * inferior.h (step_sp): Ditto.
7803 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7804 * gdbthread.h (struct thread_info, save_infrun_state)
7805 (restore_infrun_state): Ditto.
7806
7807 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7808
7809 * MAINTAINERS (write after approval): Add myself.
7810
7811 2004-05-12 Andrew Cagney <cagney@redhat.com>
7812
7813 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7814 eliminate reference to step_sp.
7815 (struct execution_control_state, init_execution_control_state)
7816 (handle_inferior_event, keep_going): Delete update_step_sp and
7817 step_sp.
7818 * infcmd.c (step_sp): Note that variable is unused.
7819
7820 2004-05-11 Andrew Cagney <cagney@redhat.com>
7821
7822 * infrun.c (step_over_function): Delete function.
7823 (handle_step_into_function): Use insert_step_resume_breakpoint.
7824 (insert_step_resume_breakpoint): Fix assertion.
7825
7826 2004-05-11 Nick Roberts <nickrob@gnu.org>
7827
7828 * utils.c (defaulted_query): Just use the normal query input type
7829 when printing the annotations.
7830
7831 2004-05-11 Andrew Cagney <cagney@redhat.com>
7832
7833 * infrun.c (handle_inferior_event): Simplify code handling
7834 step-into or return-from a signal trampoline.
7835
7836 2004-05-11 Andrew Cagney <cagney@redhat.com>
7837
7838 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7839 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7840
7841 2004-05-10 Jim Blandy <jimb@redhat.com>
7842
7843 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7844 with a call to internal_error.
7845
7846 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7847 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7848 processor variant lacks those registers.
7849 (ppc_floating_point_unit_p): Change description to make it clear
7850 that this returns info about the ISA, not the ABI.
7851 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7852 return true or false by checking tdep->ppc_fp0_regnum and
7853 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7854 arch/mach switching done in rs6000_gdbarch_init; it's better to
7855 keep that logic there, and just check the results here.
7856 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7857 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7858 floating-point registers.
7859 (ppc_supply_fpregset, ppc_collect_fpregset)
7860 (rs6000_push_dummy_call, rs6000_extract_return_value)
7861 (rs6000_store_return_value): Assert that we have floating-point
7862 registers.
7863 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7864 (rs6000_frame_cache): Don't note the locations at which
7865 floating-point registers were saved if we have no fprs.
7866 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7867 registers.
7868 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7869 (store_regs_user_thread, store_regs_kernel_thread): Only call
7870 supply_fprs / fill_fprs if we actually have floating-point
7871 registers.
7872 (special_register_p): Check ppc_fpscr_regnum before matching
7873 against it.
7874 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7875 supply / collect fpscr if we don't have it.
7876 * ppc-bdm.c: #include "gdb_assert.h".
7877 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7878 have floating-point registers, since I can't test this code on
7879 FP-free systems to adapt it.
7880 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7881 fpscr and floating point register numbers if they don't exist.
7882 (fetch_register): Assert that we have floating-point registers
7883 before we reach the code that handles them.
7884 (store_register): Same. And use tdep instead of calling
7885 gdbarch_tdep again.
7886 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7887 don't have them.
7888 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7889 fprs and fpscr if we don't have them.
7890 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7891 don't have them.
7892 * ppcnbsd-nat.c: #include "gdb_assert.h".
7893 (getfpregs_supplies): Assert that we have floating-point registers.
7894 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7895 * ppcobsd-tdep.c: #include "gdb_assert.h".
7896 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7897 have floating-point registers.
7898 * rs6000-nat.c (regmap): Don't match against the fpscr and
7899 floating point register numbers if they don't exist.
7900 (fetch_inferior_registers, store_inferior_registers,
7901 fetch_core_registers): Only fetch / store / supply the
7902 floating-point registers and the fpscr if we have them.
7903 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7904 (ppcobsd-tdep.o): Update dependencies.
7905
7906 2004-05-10 Andrew Cagney <cagney@redhat.com>
7907
7908 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7909 (context_switch): Do not switch through_sigtramp_breakpoint.
7910 * gdbthread.h (save_infrun_state, load_infrun_state)
7911 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7912 and structure member.
7913 * thread.c (load_infrun_state, save_infrun_state): Update.
7914
7915 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7916
7917 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7918
7919 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7920
7921 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7922 throughout.
7923 * aclocal.m4: Regenerate.
7924
7925 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7926
7927 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7928
7929 2004-05-10 Andrew Cagney <cagney@redhat.com>
7930
7931 * infrun.c (check_sigtramp2): Delete function.
7932 (handle_inferior_event): When single stepping, and taking a
7933 signal, set a breakpoint at the signal return address. Delete
7934 redundant calls to check_sigtramp2.
7935 (insert_step_resume_breakpoint): New function.
7936 (through_sigtramp_breakpoint, handle_inferior_event)
7937 (follow_exec, wait_for_inferior, fetch_inferior_event)
7938 (currently_stepping, keep_going): Delete most uses of
7939 through_sigtramp_breakpoint, not that it should be deleted.
7940 (delete_breakpoint_current_contents): Delete function.
7941
7942 2004-05-10 Randolph Chung <tausq@debian.org>
7943
7944 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7945 target.
7946 * config/pa/tm-linux.h: New file.
7947
7948 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7949
7950 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7951 of prefixes. Don't print the prefix twice in the CLI.
7952
7953 2004-05-10 Jim Blandy <jimb@redhat.com>
7954
7955 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7956 collect all the gprs.
7957
7958 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7959 loop collecting gprs.
7960
7961 2004-05-09 Andrew Cagney <cagney@redhat.com>
7962
7963 * remote-vx.c (net_step): Delete step-range code.
7964 * remote.c (remote_resume, init_all_packet_configs)
7965 (set_remote_protocol_E_packet_cmd)
7966 (show_remote_protocol_E_packet_cmd)
7967 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7968 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7969 (show_remote_protocol_e_packet_cmd): Ditto.
7970
7971 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7972
7973 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7974
7975 * hppa-tdep.h: Update copyright year.
7976 (struct trad_frame_saved_reg): Add opaque declaration.
7977
7978 * amd64-tdep.c (amd64_return_value): Implement
7979 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7980
7981 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7982 (m68k_value_to_register): New functions.
7983 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7984 value_to_register.
7985
7986 * defs.h (enum return_value_convention): Add
7987 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7988 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7989 * infcmd.c (legacy_return_value): New function.
7990 (print_return_value): Rwerite to implement
7991 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7992 * values.c (using_struct_return): Check for inequality to
7993 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7994 RETURN_VALUE_STRUCT_CONVENTION.
7995 * i386-tdep.c (i386_return_value): Implement
7996 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7997
7998 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7999 include "symtab.h", "opcode/vax.h" and "inferior.h".
8000 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8001 to read_memory_unsigned_integer.
8002 (vax_gdbarch_init): Reorder.
8003 (_initialize_vax_tdep): Spell out prototype.
8004 * Makefile.in (vax-tdep.o): Update dependencies.
8005
8006 2004-05-08 Andrew Cagney <cagney@redhat.com>
8007
8008 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8009 * target.c (target_detach, target_disconnect): Ditto.
8010
8011 * infcall.c (call_function_by_hand): When no
8012 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8013 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8014 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8015 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8017
8018 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8019 * gdbarch.h, gdbarch.c: Re-generate.
8020 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8021 deprecated_fix_call_dummy.
8022 * v850-tdep.c (v850_gdbarch_init): Ditto.
8023 * infcall.c (call_function_by_hand): Do not call
8024 DEPRECATED_FIX_CALL_DUMMY.
8025
8026 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8027 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8028 * gdbarch.h, gdbarch.c: Re-generate.
8029 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8030 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8031 deprecated_sizeof_call_dummy_words.
8032 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8033 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8034 * v850-tdep.c (v850_gdbarch_init): Ditto.
8035 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8036 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8037 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8038 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8039 * arch-utils.h (legacy_call_dummy_words)
8040 (legacy_sizeof_call_dummy_words): Delete declarations.
8041 * arch-utils.c (legacy_call_dummy_words)
8042 (legacy_sizeof_call_dummy_words): Delete variables.
8043
8044 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8045 * gdbarch.h, gdbarch.c: Re-generate.
8046 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8047 * infcall.c (call_function_by_hand): Eliminate call to
8048 DEPRECATED_PUSH_DUMMY_FRAME.
8049 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8050 push_dummy_frame.
8051 (ns32k_push_dummy_frame): Delete function.
8052
8053 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8054 deprecated_call_dummy_breakpoint_offset or
8055 deprecated_call_dummy_start_offset.
8056 * dummy-frame.c, arm-tdep.c: Update comments.
8057 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8058 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8059 * gdbarch.h, gdbarch.c: Re-generate.
8060
8061 * infcall.c (legacy_push_dummy_code): Delete function.
8062 (push_dummy_code): Delete call.
8063
8064 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8065 * gdbarch.h, gdbarch.c: Re-generate.
8066 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8067 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8068 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8069 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8070
8071 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8072 (struct frame_info): Delete opaque declaration.
8073 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8074 * frame.c (get_frame_type): Delete call.
8075
8076 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8077 pc_in_call_dummy.
8078 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8079 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8080
8081 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8082
8083 * alphanbsd-tdep.c: Include "gdb_string.h".
8084 * armnbsd-tdep.c: Update copyright year.
8085 Include "gdb_string.h".
8086 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8087 dependencies.
8088
8089 * delta68-nat.c: Remove file.
8090 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8091 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8092 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8093 (delta68-nat.o): Remove dependency.
8094
8095 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8096 function.
8097 (m68k_gdbarch_init): Don't set
8098 deprecated_frameless_function_invocation.
8099
8100 2004-05-07 Randolph Chung <tausq@debian.org>
8101
8102 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8103 read_memory_nobpt for code reading when doing frame unwinding.
8104 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8105
8106 2004-05-07 Randolph Chung <tausq@debian.org>
8107
8108 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8109 instead of sp, handle sigaltstack case.
8110 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8111 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8112 signal handler and not that of the caller.
8113 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8114 hppa_linux_sigtramp_find_sigcontext.
8115
8116 2004-05-07 Randolph Chung <tausq@debian.org>
8117
8118 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8119 hppa-linux-nat.c.
8120 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8121 * hppa-linux-nat.c (fetch_register, store_register): Define.
8122 (fetch_inferior_registers, store_inferior_registers): Define.
8123 (supply_gregset): Add comment and clean up some unneeded code.
8124 (fill_gregset): Add comment and fix so that it saves registers in
8125 the right place in the gregset.
8126 (fill_fpregset): Fix buffer overrun problem.
8127 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8128
8129 2004-05-07 Randolph Chung <tausq@debian.org>
8130
8131 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8132 do common handling of the pcoqt register.
8133 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8134 to use helper function.
8135 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8136 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8137 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8138 generic fallback unwinder when all else fails.
8139 (hppa_gdbarch_init): Add fallback sniffer.
8140 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8141 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8142 to use helper function.
8143
8144 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8145
8146 * config/djgpp/fnchange.lst: Add translation rules for
8147 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8148
8149 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8150
8151 * frame.c (get_prev_frame_1): Work around GCC bug.
8152 * frame.h: Add comment about GCC bug.
8153
8154 2004-05-07 Andrew Cagney <cagney@redhat.com>
8155
8156 * observer.c: Include "commands.h" and "gdbcmd.h".
8157 (observer_debug, _initialize_observer): Add the
8158 command "set/show debug observer".
8159 * observer.sh: When observer debugging, log notify calls.
8160 * Makefile.in (observer.o): Update dependencies.
8161
8162 2004-05-07 Jason Molenda (jmolenda@apple.com)
8163
8164 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8165
8166 2004-05-07 Jim Blandy <jimb@redhat.com>
8167
8168 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8169 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8170 to recognize gpr regnums, instead of assuming that
8171 tdep->ppc_fp0_regnum marks the end of the general-purpose
8172 registers.
8173
8174 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8175 the given architecture has floating-point registers.
8176
8177 2004-05-07 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8180 macro defined to 1.
8181 * gdbarch.h, gdbarch.c: Re-generate.
8182 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8183 deprecated_use_generic_dummy_frames.
8184
8185 2004-05-07 Brian Ford <ford@vss.fsi.com>
8186
8187 * NEWS: Mention Cygwin DWARF 2 support.
8188
8189 2004-05-07 Andrew Cagney <cagney@redhat.com>
8190
8191 * objfiles.h (struct entry_info): Delete unused fields
8192 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8193 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8194 * mipsread.c (mipscoff_symfile_read): Update.
8195 * mdebugread.c (parse_partial_symbols): Update.
8196 * dwarfread.c (read_file_scope): Update.
8197 * dwarf2read.c (read_file_scope): Update.
8198 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8199 * coffread.c (complete_symtab): Update.
8200
8201 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8202
8203 * infcall.c (_initialize_infcall): Fix typo.
8204
8205 2004-05-07 Andrew Cagney <cagney@redhat.com>
8206
8207 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8208 * command.h (add_setshow_zinteger_cmd): Declare.
8209
8210 2004-05-06 Randolph Chung <tausq@debian.org>
8211
8212 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8213 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8214 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8215 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8216 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8217 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8218 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8219 definitions ...
8220 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8221 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8222 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8223 (hppa64_hpux_frame_find_saved_regs_in_sig)
8224 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8225 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8226 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8227 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8228 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8229 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8230 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8231 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8232 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8233 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8234 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8235 (hppa32_register_type, hppa_cannot_store_register)
8236 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8237 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8238 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8239 * pa64solib.c (pa64_solib_have_load_event)
8240 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8241 (pa64_solib_unloaded_library_pathname): Likewise.
8242 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8243 (som_solib_library_pathname): Likewise.
8244
8245 2004-05-05 Jim Ingham <jingham@apple.com>
8246
8247 * breakpoint.c (create_breakpoints): Copy the ignore count and
8248 thread id over from the pended breakpoint to the actual
8249 breakpoint.
8250
8251 2004-05-05 Andrew Cagney <cagney@redhat.com>
8252
8253 * gdbarch.sh (PARM_BOUNDARY): Delete.
8254 gdbarch.h, gdbarch.c: Re-generate.
8255 * valops.c (PARM_BOUNDARY): Delete macro.
8256 (value_push): Delete PARM_BOUNDARY code.
8257 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8258
8259 2004-05-04 Jim Blandy <jimb@redhat.com>
8260
8261 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8262 Don't assume that the gprs, fprs, and UISA sprs are
8263 contiguous, start at register number zero, and end with fpscr.
8264 Instead, use the numbers from the tdep structure.
8265
8266 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8267 should no longer be used in code specific to the RS6000 and its
8268 derivatives.
8269 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8270 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8271 tdep->ppc_fp0_regnum.
8272 (ppc_supply_fpregset, ppc_collect_fpregset)
8273 (rs6000_push_dummy_call, rs6000_extract_return_value)
8274 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8275 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8276 FP0_REGNUM.
8277 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8278 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8279 Same.
8280 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8281 bdm_ppc_store_registers): Same.
8282 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8283 (store_register, fill_fpregset): Same.
8284 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8285 (ppc_linux_supply_fpregset): Same.
8286 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8287 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8288 Same.
8289 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8290 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8291 ppc64_sysv_abi_return_value): Same.
8292 * rs6000-nat.c (regmap, fetch_inferior_registers)
8293 (store_inferior_registers, fetch_core_registers): Same.
8294
8295 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8296
8297 * m68knbsd-nat.c: Remove file.
8298 * m68knbsd-tdep.c: Remove file.
8299 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8300 dependencies.
8301 * configure.host: Add m68k-*-netbsdelf*.
8302 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8303 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8304 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8305 (XM_FILE): Remove.
8306 * config/m68k/nbsdelf.mh: New file.
8307 * config/m68k/nbsd.mt: New file.
8308 * config/m68k/nbsdaout.mt: Remove file.
8309 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8310 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8311 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8312 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8313 (use_struct_convention): Remove prototype.
8314 (USE_STRUCT_CONVENTION): Remove define.
8315 * config/m68k/xm-nbsd.h: Remove file.
8316
8317 2004-05-04 Michael Snyder <msnyder@redhat.com>
8318
8319 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8320 reg_struct_return method (as gcc usually does for cross targets).
8321
8322 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8323
8324 Committed by Andrew Cagney.
8325 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8326 alignment padding when accessing ucontext struct members.
8327
8328 2004-05-04 Jim Blandy <jimb@redhat.com>
8329
8330 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8331 'ppc_gplast_regnum' member.
8332 (ppc_num_gprs): New enum constant.
8333 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8334 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8335 * rs6000-nat.c (regmap, fetch_inferior_registers,
8336 store_inferior_registers): Same.
8337 * rs6000-tdep.c (e500_pseudo_register_read)
8338 (e500_pseudo_register_write): Same.
8339 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8340
8341 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8342 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8343 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8344 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8345 FPLAST_REGNUM.
8346 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8347 Same.
8348 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8349 * rs6000-nat.c (regmap, fetch_inferior_registers)
8350 (store_inferior_registers): Same.
8351
8352 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8353 with FPLAST_REGNUM.
8354
8355 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8356
8357 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8358 failure detected by recent versions of GCC.
8359 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8360 to be consistent with the usage in dwarf2_create_include_psymtab.
8361
8362 2004-05-03 Michael Snyder <msnyder@redhat.com>
8363
8364 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8365 (heuristic_proc_start): Whitespace cleanup.
8366
8367 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8368
8369 * sun3-nat.c: Remove file.
8370 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8371 dependencies.
8372 (ALLDEPFILES): Remove sun3-nat.c.
8373 (sun3-nat.o): Remove dependencies.
8374
8375 * i386-interix-nat.c, i386-interix-tdep.c,
8376 config/i386/nm-interix.h, config/i386/interix.mh,
8377 config/i386/interix.mt: Remove files.
8378 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8379 dependencies.
8380
8381 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8382
8383 * m68k-tdep.h (struct gdbarch_tdep): Add member
8384 struct_value_regnum.
8385 (m68k_svr4_init_abi): New prototype.
8386 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8387 different calling conventions.
8388 (m68k_extract_return_value): Remove code dealing with single-field
8389 structs.
8390 (m68k_store_return_value): Remove code dealing with single-field
8391 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8392 (m68k_extract_struct_value_address): Remove function.
8393 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8394 (m68k_reg_struct_return_p, m68k_return_value)
8395 (m68k_svr4_return_value): New functions.
8396 (m68k_use_struct_convention): Remove function.
8397 (m68k_push_dummy_call): Use new struct_value_regnum member of
8398 `struct gdbarch_tdep' instead of hardcoded register number to
8399 store STRUCT_ADDR.
8400 (m68k_svr4_init_abi): New function.
8401 (m68k_gdbarch_init): Don't set extract_return_value,
8402 store_return_values, deprecated_extract_struct_value_address and
8403 use_struct_convention. Set return_value instead. Initialize new
8404 struct_value_regnum member of `struct gdbarch_tdep'.
8405 * m68klinux-tdep.c: Update copyright year.
8406 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8407 (m68k_linux_extract_struct_value_address): Remove function.
8408 (m68k_linux_init_abi): Don't set extract_return_value,
8409 store_return_values, deprecated_extract_struct_value_address and
8410 use_struct_convention. Call m68k_svr4_init_abi but override the
8411 new struct_value_regnum member of `struct gdbarch_tdep'.
8412 * Makefile.in (m68k-tdep.o): Update dependencies.
8413
8414 2004-05-03 J. Brobecker <brobecker@gnat.com>
8415
8416 * dwarf2read.c (line_header): Add new included_p field in
8417 field file_names.
8418 (partial_die_info): New field has_stmt_list. New field line_offset.
8419 (dwarf2_create_include_psymtab): New function.
8420 (dwarf2_build_include_psymtabs): New function.
8421 (add_file_name): Add forward declaration. Initialize new field.
8422 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8423 to be able to determine the list of files included by the
8424 given unit, and build their associated psymtabs.
8425 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8426 files as well.
8427 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8428 (read_file_scope): Update call to dwarf_decode_lines.
8429 (read_partial_die): Handle DW_AT_stmt_list attributes.
8430
8431 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8432
8433 Unfix PR gdb/1626.
8434 * configure.in: Revert special case for osf5.*.
8435 * configure: Regenerate.
8436
8437 2004-05-02 Jim Blandy <jimb@redhat.com>
8438
8439 Move the symbol-file-from-memory functions into their own file.
8440 * symfile-mem.c, symfile-mem.h: New files.
8441 * symfile.c (symbol_file_add_from_bfd): New function.
8442 (symbol_file_add): Call symbol_file_add_from_bfd.
8443 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8444 Moved to symfile-mem.c.
8445 (_initialize_symfile): Move definition of
8446 add-symbol-file-from-memory command to symfile-mem.c.
8447 * symfile.h (symbol_file_add_from_bfd): New declaration.
8448 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8449 * config/powerpc/linux.mt (TDEPFILES): Same.
8450 * Makefile.in (SFILES): Add symfile-mem.c.
8451 (symfile_mem_h): New variable.
8452 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8453 (symfile-mem.o): New rule.
8454
8455 2004-05-01 Andrew Cagney <cagney@redhat.com>
8456
8457 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8458 frame_find_by_id instead of frame_relative_level.
8459 (do_enable_breakpoint): Ditto.
8460 * thread.c: Update copyright.
8461 (info_threads_command): Ditto, simplify.
8462
8463 * frame.c (deprecated_generic_get_saved_register): Delete
8464 function, moved to "xstormy16-tdep.c".
8465 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8466 deprecated_generic_get_saved_register from "frame.c".
8467 (xstormy16_frame_saved_register): Call
8468 xstormy16_get_saved_register.
8469 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8470 static.
8471 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8472 * frame.h (deprecated_generic_get_saved_register): Delete.
8473
8474 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8475
8476 * dwarfread.c: Update documentation on the state of dwarf-1.
8477
8478 2004-05-01 Andrew Cagney <cagney@redhat.com>
8479
8480 * stack.c (select_frame_command): Delete call to
8481 frame_relative_level.
8482 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8483 Delete #if0 code.
8484 (frame_info): Do not print FRAMELESS.
8485 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8486 (catch_info): Delete #if0 code.
8487
8488 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8489 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8490 of frame_relative_level.
8491 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8492 to SENTINEL_FRAME.
8493 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8494 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8495 frame_relative_level.
8496
8497 * frame.h (deprecated_set_frame_type): Delete declaration.
8498 * frame.c (deprecated_set_frame_type): Delete function, update
8499 comments.
8500
8501 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8502 * gdbarch.h, gdbarch.c: Re-generate.
8503 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8504 (shnbsd_pc_in_sigtramp): Delete.
8505 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8506 pc_in_sigtramp.
8507 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8508 pc_in_sigtramp.
8509 * frame.h: Update comments.
8510 * ppc-linux-tdep.c: Update comments.
8511 * breakpoint.c (bpstat_what): Update comments.
8512
8513 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8514 m68klinux-tdep.o's dependencies, were previously added to
8515 m68klinux-nat.o.
8516
8517 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8518 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8519 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8520 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8521 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8522
8523 * Makefile.in (m68klinux-nat.o): Update dependencies.
8524 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8525 (m68k_linux_sigtramp_frame_cache)
8526 (m68k_linux_sigtramp_frame_this_id)
8527 (m68k_linux_sigtramp_frame_prev_register)
8528 (m68k_linux_sigtramp_frame_unwind)
8529 (m68k_linux_sigtramp_frame_sniffer)
8530 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8531 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8532 names, use trad-frame.h.
8533 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8534 (struct m68k_sigtramp_info): Delete.
8535 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8536 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8537 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8538 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8539 "m68klinux-tdep.c".
8540
8541 * infrun.c (check_sigtramp2): Delete check for
8542 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8543
8544 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8545
8546 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8547
8548 2004-05-01 Andrew Cagney <cagney@redhat.com>
8549
8550 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8551 (frv_linux_sigtramp_frame_cache)
8552 (frv_linux_sigtramp_frame_this_id)
8553 (frv_linux_sigtramp_frame_prev_register)
8554 (frv_linux_sigtramp_frame_unwind)
8555 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8556 include "linux" in function and variable names, directly call
8557 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8558 the latest trad-frame code.
8559 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8560 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8561 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8562 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8563 * frv-tdep.c (frv_sigtramp_frame_cache)
8564 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8565 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8566 frv-linux-tdep.c.
8567 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8568 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8569 (frv_set_sigcontext_reg_addr): Delete function.
8570
8571 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8572 (DEPRECATED_SIGTRAMP_END): Delete.
8573 * gdbarch.h, gdbarch.c: Re-generate.
8574 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8575 * config/vax/tm-vaxbsd.h: Update copyright.
8576 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8577 (DEPRECATED_IN_SIGTRAMP): Define.
8578 * config/m68k/tm-nbsd.h: Update copyright.
8579 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8580 (DEPRECATED_IN_SIGTRAMP): Define.
8581
8582 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8583
8584 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8585 encondings. Fixes PR gdb/1628.
8586
8587 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8588 DW_CFA_restore state without a matching DW_CFA_remember_state
8589 instead of aborting. Fixes PR backtrace/1589.
8590
8591 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8592
8593 * MAINTAINERS: Add self as AIX maintainer.
8594 Update my e-mail address in write-after-approval section.
8595
8596 2004-04-30 Andrew Cagney <cagney@redhat.com>
8597
8598 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8599 (legacy_get_prev_frame): Ditto.
8600
8601 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8602 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8603 * mipsread.c (sigtramp_address): Delete extern variable.
8604 (mipscoff_new_init): Delete reference.
8605 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8606 (fixup_sigtramp): Delete function.
8607 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8608 (fixup_sigtramp): Delete declarations.
8609
8610 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8611 deprecated_pc_in_sigtramp.
8612 (ppcnbsd_pc_in_sigtramp): Delete function.
8613
8614 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8615
8616 * config/m68k/nm-nbsd.h: Tweak comments.
8617 * config/m68k/nm-nbsdaout.h: Likewise.
8618
8619 2004-04-30 Andrew Cagney <cagney@redhat.com>
8620
8621 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8622 legacy_pc_in_sigtramp.
8623 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8624
8625 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8626
8627 Add OpenBSD/m68k support.
8628 * NEWS (New native configurations): Mention OpenBSD/m68k.
8629 * m68kbsd-tdep.c: New file.
8630 * m68kbsd-nat.c: New file.
8631 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8632 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8633 * configure.host: Add m68k-*-openbsd.
8634 * configure.tgt: Add m68k-*-openbsd.
8635 * config/m68k/tm-obsd.h: New file.
8636 * config/m68k/obsd.mt: New file.
8637 * config/m68k/obsd.mh: New file.
8638 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8639 m68kbsd-tdep.c.
8640
8641 2004-04-30 Andrew Cagney <cagney@redhat.com>
8642
8643 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8644 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8645
8646 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8647
8648 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8649 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8650
8651 2004-04-30 Brian Ford <ford@vss.fsi.com>
8652
8653 Revert 2004-04-16 change.
8654 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8655 (i386_coff_init_abi): Remove.
8656 * i386-tdep.h (i386_coff_init_abi): Remove.
8657 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8658
8659 2004-04-30 Andrew Cagney <cagney@redhat.com>
8660
8661 * blockframe.c (find_pc_partial_function): Delete use of
8662 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8663 DEPRECATED_SIGTRAMP_END.
8664
8665 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8666 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8667 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8668 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8669 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8670
8671 * defs.h (deprecated_inside_entry_file): Delete declaration.
8672 * blockframe.c (deprecated_inside_entry_file): Delete function.
8673 (legacy_frame_chain_valid): Delete call.
8674 * sh64-tdep.c (sh64_frame_chain): Delete call.
8675 * objfiles.h: Update comments.
8676 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8677 call.
8678 * frame.c (get_prev_frame): Delete call, update comments.
8679
8680 2004-04-30 Brian Ford <ford@vss.fsi.com>
8681
8682 * MAINTAINERS (Write After Approval): Add myself.
8683
8684 2004-04-30 Andrew Cagney <cagney@redhat.com>
8685
8686 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8687 * gdbarch.h, gdbarch.c: Re-generate.
8688 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8689 code.
8690
8691 2004-04-30 Andrew Cagney <cagney@redhat.com>
8692
8693 * gdb-events.sh (selected_thread_changed)
8694 (selected_frame_level_changed, target_changed): Delete.
8695 * gdb-events.h, gdb-events.c: Re-generate.
8696 * valops.c (value_assign): Update.
8697 * stack.c (select_frame_command, up_silently_base)
8698 (down_silently_base): Update.
8699
8700 2004-04-29 Andrew Cagney <cagney@redhat.com>
8701
8702 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8703 registers correctly.
8704 (print_gp_register_row, mips32_heuristic_proc_desc)
8705 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8706 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8707 references to mips_isa_regsize.
8708
8709 2004-04-29 Andrew Cagney <cagney@redhat.com>
8710
8711 * mips-tdep.c (struct gdbarch_tdep): Delete
8712 mips_fp_register_double.
8713 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8714 mips_abi_regsize.
8715 (mips_gdbarch_init): Do not set mips_fp_register_double.
8716 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8717
8718 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8719
8720 Committed by Andrew Cagney.
8721 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8722 function calls.
8723
8724 2004-04-29 Andrew Cagney <cagney@redhat.com>
8725
8726 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8727 gdbarch, use mips_abi, update callers.
8728 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8729 mips_abi_regsize, update callers.
8730 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8731 mips_default_abi_regsize.
8732 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8733 mips_default_abi_regsize.
8734
8735 2004-04-29 Andrew Cagney <cagney@redhat.com>
8736
8737 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8738 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8739 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8740 mips_default_abi_regsize.
8741 (mips_isa_regsize): Rename mips_regisze.
8742 * mipsnbsd-tdep.c: Update.
8743 * mips-linux-tdep.c: Update.
8744 * irix5-nat.c: Update.
8745 * mips-tdep.h (mips_isa_regsize): Update.
8746
8747 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8748 Delete all disabled code.
8749 * gdb-events.h, gdb-events.c: Re-generate.
8750
8751 2004-04-19 Jerome Guitton <guitton@gnat.com>
8752 Mark Kettenis <kettenis@gnu.org>
8753
8754 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8755 the function begins with a branch instruction.
8756
8757 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8758
8759 * i386-tdep.c: Fix spelling mistakes.
8760
8761 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8762 Andrew Cagney <cagney@redhat.com>
8763
8764 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8765 <sys/proc.h>.
8766 * acconfig.h: Provide default _KMEMUSER value.
8767 * config.in, configure: Re-generate.
8768 * NEWS: Mention fix.
8769
8770 2004-04-24 Randolph Chung <tausq@debian.org>
8771
8772 * configure.host (hppa*-*-linux*): New target.
8773 * configure.tgt (hppa*-*-linux*): Likewise.
8774 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8775 gdbarch_init_osabi() call earlier so that osabi-specific frame
8776 unwinders can be registered first.
8777 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8778 hppa-linux-nat.c.
8779 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8780 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8781 * config/pa/linux.mh: New file.
8782 * config/pa/linux.mt: New file.
8783 * config/pa/nm-linux.h: New file.
8784 * config/pa/xm-linux.h: New file.
8785 * hppa-linux-nat.c: New file.
8786 * hppa-linux-tdep.c: New file.
8787
8788 2004-04-28 Randolph Chung <tausq@debian.org>
8789
8790 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8791 return values.
8792 (hppa32_push_dummy_call): Fix small struct and floating point argument
8793 passing, and make sure the stack frame is properly aligned.
8794
8795 2004-04-28 Andrew Cagney <cagney@redhat.com>
8796
8797 * stack.c (print_stack_frame): Fix description.
8798
8799 * NEWS: Mention gdb/gdbserver/configure execute permission
8800 changed. PR server/519.
8801
8802 2004-04-28 Andrew Cagney <cagney@redhat.com>
8803
8804 * stack.c (print_stack_frame_stub): Delete declaration.
8805 (struct print_stack_frame_args, print_stack_frame)
8806 (print_frame_info, print_frame): Replace "source" with print what.
8807 Replace "print" with "print_level". Replace "args" with
8808 "print_args".
8809 * frame.h (show_and_print_stack_frame, print_stack_frame)
8810 (print_frame_info): Update declarations.
8811 * stack.c (select_and_print_frame, frame_command)
8812 (current_frame_command, up_command, down_command): Update calls -
8813 use get_selected_frame, pass "enum print_what" for source, do not
8814 call frame_relative_level.
8815 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8816 * remote-rdp.c (remote_rdp_open): Ditto.
8817 * remote-mips.c (common_open): Ditto.
8818 * remote-e7000.c (e7000_start_remote): Ditto.
8819 * ocd.c (ocd_start_remote): Ditto.
8820 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8821 * infrun.c (normal_stop): Ditto.
8822 * inflow.c (kill_command): Ditto.
8823 * infcmd.c (finish_command): Ditto.
8824 * corelow.c (core_open): Ditto.
8825 * tracepoint.c (finish_tfind_command): Ditto.
8826 * thread.c (info_threads_command, info_threads_command)
8827 (restore_current_thread, do_captured_thread_select): Ditto.
8828 * ada-tasks.c (task_command): Ditto.
8829
8830 2004-04-26 Orjan Friberg <orjanf@axis.com>
8831
8832 * frame.c: Include "observer.h".
8833 (frame_observer_target_changed): New function.
8834 (_initialize_frame): Attach target_changed observer.
8835 * regcache.c: Include "observer.h".
8836 (regcache_observer_target_changed): New function.
8837 (_initialize_regcache): Attach target_changed observer.
8838 * valops.c: Include "observer.h".
8839 (value_assign): Notify target_changed event when modifying register.
8840 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8841
8842 2004-04-26 Orjan Friberg <orjanf@axis.com>
8843
8844 From Paul Koning <pkoning@equallogic.com>:
8845 * breakpoint.c (free_valchain): New function.
8846 (insert_bp_location, delete_breakpoint): Use free_valchain.
8847 (remove_breakpoint): Do not remove the valchain.
8848 (bpstat_stop_status): If not stopped by watchpoint, skip
8849 watchpoints when generating stop status list.
8850 * infrun.c (handle_inferior_event): Make
8851 stepped_after_stopped_by_watchpoint a global variable.
8852 * remote.c (remote_stopped_data_address): Return watch data
8853 address rather than zero if stepped_after_stopped_by_watchpoint is
8854 set.
8855
8856 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8857
8858 Fix PR gdb/1626.
8859 * configure.in: Check for curses after termcap.
8860 On osf5.*, do not check for ncurses.
8861 * configure: Regenerate.
8862
8863 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8864
8865 * ppcobsd-nat.c: Include "ppc-tdep.h".
8866 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8867
8868 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8869 Fixes PR tdep/1623 and PR tdep/1624.
8870
8871 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8872
8873 * xmodem.h, xmodem.c: Remove files.
8874 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8875
8876 2004-04-23 Randolph Chung <tausq@debian.org>
8877
8878 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8879 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8880 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8881 for handling stackless frames.
8882 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8883
8884 2004-04-23 Randolph Chung <tausq@debian.org>
8885
8886 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8887 starts at a pc before the frame is created.
8888
8889 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8890
8891 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8892
8893 2004-04-23 Jerome Guitton <guitton@gnat.com>
8894
8895 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8896 use convert_typed_floating to get the appropriate format.
8897
8898 2004-04-22 Randolph Chung <tausq@debian.org>
8899
8900 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8901 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8902 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8903 (hppa_sign_extend): Add prototype.
8904 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8905 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8906 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8907 hppa targets will also use these functions.
8908 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8909 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8910 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8911 (hppa_gdbarch_init): Remove gdbarch setting of
8912 skip_trampoline_code, in_solib_call_trampoline and
8913 in_solib_return_trampoline.
8914 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8915 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8916 hppa_in_solib_call_trampoline.
8917 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8918 Moved from hppa-tdep.c.
8919 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8920 in_solib_call_trampoline and in_solib_return_trampoline.
8921
8922 2004-04-22 Randolph Chung <tausq@debian.org>
8923
8924 * hppa-tdep.c (hppa_debug): New variable.
8925 (find_unwind_entry, hppa_frame_cache): Add debug output.
8926 (_initialize_hppa_tdep): Add command to set debug flag.
8927
8928 2004-04-22 Andrew Cagney <cagney@redhat.com>
8929
8930 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8931 "trad-frame.h".
8932 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8933 signal trampoline unwinder.
8934 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8935
8936 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8937
8938 Add OpenBSD/powerpc support.
8939 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8940 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8941 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8942 (ppc_collect_fpregset): New prototypes.
8943 * ppcobsd-nat.c: New file.
8944 * ppcobsd-tdep.c: New file.
8945 * ppcobsd-tdep.h: New file.
8946 * rs6000-tdep.c: Include "regset.h".
8947 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8948 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8949 New functions.
8950 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8951 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8952 (rs6000-tdep.o): Update dependencies.
8953 * configure.host: Add powerpc-*-openbsd.
8954 * configure.tgt: Add powerpc-*-openbsd.
8955 * config/powerpc/obsd.mh: New file.
8956 * config/powerpc/nm-obsd.h: New file.
8957 * config/powerpc/obsd.mt: New file.
8958
8959 2004-04-22 Andrew Cagney <cagney@redhat.com>
8960
8961 * frame.h (show_frame_info): Delete declaration.
8962
8963 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8964 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8965 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8966 * frv-tdep.c (frv_frame_this_id): Ditto.
8967 * avr-tdep.c (avr_frame_this_id): Ditto.
8968
8969 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8970
8971 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8972
8973 2004-04-22 Jim Blandy <jimb@redhat.com>
8974
8975 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8976 register number zero.
8977
8978 2004-04-21 Michael Snyder <msnyder@redhat.com>
8979
8980 * mips-tdep.c (heuristic_proc_start):
8981 Warning() already prefixes "Warning: ".
8982
8983 2004-04-21 Andrew Cagney <cagney@redhat.com>
8984
8985 * annotate.h (deprecated_annotate_starting_hook)
8986 (deprecated_annotate_stopped_hook)
8987 (deprecated_annotate_exited_hook)
8988 (deprecated_annotate_signal_hook)
8989 (deprecated_annotate_signalled_hook): Deprecate.
8990 * tracepoint.h (deprecated_create_tracepoint_hook)
8991 (deprecated_delete_tracepoint_hook)
8992 (deprecated_modify_tracepoint_hook)
8993 (deprecated_trace_find_hook)
8994 (deprecated_trace_start_stop_hook): Deprecate.
8995 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8996 * remote.h (deprecated_target_resume_hook)
8997 (deprecated_target_wait_loop_hook): Deprecate.
8998 * gdbcore.h (deprecated_exec_file_display_hook)
8999 (deprecated_file_changed_hook): Deprecate.
9000 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9001 * defs.h (deprecated_modify_breakpoint_hook)
9002 (deprecated_command_loop_hook, deprecated_show_load_progress)
9003 (deprecated_print_frame_info_listing_hook)
9004 (deprecated_query_hook, deprecated_warning_hook)
9005 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9006 (deprecated_delete_breakpoint_hook)
9007 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9008 (deprecated_readline_begin_hook, deprecated_readline_hook)
9009 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9010 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9011 (deprecated_context_hook, deprecated_target_wait_hook)
9012 (deprecated_attach_hook, deprecated_detach_hook)
9013 (deprecated_call_command_hook, deprecated_set_hook)
9014 (deprecated_error_hook, deprecated_error_begin_hook)
9015 (deprecated_ui_load_progress_hook): Deprecate.
9016 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9017 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9018 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9019 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9020 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9021 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9022 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9023 * annotate.c, aix-thread.c: Update.
9024
9025 2004-04-21 Andrew Cagney <cagney@redhat.com>
9026
9027 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9028 * vaxnbsd-tdep.c: Include "gdb_string.h".
9029
9030 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9031 (add_symbol_file_from_memory_command): #if 0 function body, call
9032 error instead.
9033
9034 2004-04-21 Andrew Cagney <cagney@redhat.com>
9035
9036 * gdbcore.h: Update copyright.
9037 (deprecated_add_core_fns): Rename add_core_fns.
9038 * win32-nat.c (_initialize_core_win32): Update.
9039 * sun3-nat.c (_initialize_core_sun3): Update.
9040 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9041 * rs6000-nat.c (_initialize_core_rs6000): Update.
9042 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9043 * nto-tdep.c (_initialize_nto_tdep): Update.
9044 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9045 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9046 * mips-nat.c (_initialize_core_mips): Update.
9047 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9048 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9049 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9050 * lynx-nat.c (_initialize_core_lynx): Update.
9051 * irix5-nat.c (_initialize_core_irix5): Update.
9052 * i386-interix-nat.c (_initialize_core_interix): Update.
9053 * cris-tdep.c (_initialize_cris_tdep): Update.
9054 * corelow.c (deprecated_add_core_fns): Update.
9055 * core-regset.c (_initialize_core_regset): Update.
9056 * core-aout.c (_initialize_core_aout): Update.
9057 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9058 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9059 * alpha-nat.c (_initialize_core_alpha): Update.
9060
9061 2004-04-21 Jim Blandy <jimb@redhat.com>
9062
9063 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9064
9065 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9066
9067 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9068 Delete.
9069 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9070 (read_attribute_value): Update calls to dwarf_alloc_block.
9071 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9072 dwarf2_tmp_obstack.
9073 (psymtab_to_symtab_1): Likewise. Clean up using
9074 free_stack_comp_unit.
9075 (add_to_cu_func_list): Use the comp_unit_obstack.
9076
9077 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9078
9079 * dwarf2read.c (dwarf2_flag_true_p): New function.
9080 (die_is_declaration): Use the function above. Add some comments.
9081
9082 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9083
9084 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9085 architecture when registering sparcnbsd_core_osabi_sniffer.
9086 Adjust comment.
9087
9088 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9089
9090 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9091 return value.
9092
9093 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9094 * i386-tdep.c: Correct register numbering scheme comments
9095 throughout.
9096 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9097 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9098 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9099 (i386_gdb_arch_init): Likewise.
9100
9101 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9102 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9103 ppcnbsd-tdep.o.
9104
9105 * m68k-tdep.h: Tweak comments.
9106 * m68k-tdep.c: Tweak comment.
9107
9108 2004-04-17 Randolph Chung <tausq@debian.org>
9109
9110 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9111 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9112 (hppa_hpux_som_init_abi): Set is_elf to 0.
9113 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9114 * hppa-tdep.c (low_text_segment_address): Remove global.
9115 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9116 section offset to calculate segment address.
9117 (internalize_unwinds): Define low_text_segment_address as local and
9118 pass to record_text_segment_lowaddr for ELF targets.
9119 (hppa_gdbarch_init): Zero fill tdep structure.
9120 (hppa_dump_tdep): Print tdep structure.
9121 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9122
9123 2004-04-17 Randolph Chung <tausq@debian.org>
9124
9125 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9126 (hppa_gdbarch_init): Set pseudo_register_read.
9127 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9128 * regcache.c (supply_register): Remove check for
9129 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9130
9131 2004-04-17 Randolph Chung <tausq@debian.org>
9132
9133 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9134 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9135 (hpread_adjust_stack_address): Move to hpread.c.
9136 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9137 obj_private_struct): Move from tm-hppa.h.
9138 * hpread.c (hppa-tdep.h): Include.
9139 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9140 (hpread_read_function_type, hpread_read_doc_function_type)
9141 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9142 directly.
9143 * pa64solib.c (hppa-tdep.h): Include.
9144 * somsolib.c (hppa-tdep.h): Include.
9145 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9146 inferior_status): Remove unused forward declarations.
9147 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9148 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9149 obj_private_struct): Move to hppa-tdep.h.
9150 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9151
9152 2004-04-17 Randolph Chung <tausq@debian.org>
9153
9154 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9155 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9156 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9157 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9158 Remove forward declaration and make static.
9159 (hppa_reg_struct_has_addr): Remove.
9160
9161 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9162
9163 * observer.sh: Move comments in sed command to first column.
9164
9165 2004-04-16 Jason Molenda (jmolenda@apple.com)
9166
9167 * frame.c: Minor typeo corrections in comments.
9168
9169 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9170
9171 * observer.c (observer_test_first_notification_function): Update
9172 function profile.
9173 (observer_test_second_notification_function): Likewise.
9174 (observer_test_third_notification_function): Likewise.
9175
9176 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9177
9178 From Brian Ford <ford@vss.fsi.com>:
9179 * i386-tdep.c (i386_coff_init_abi): New function.
9180 * i386-tdep.h (i386_coff_init_abi): New prototype.
9181 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9182 register number translation functions for DWARF and DWARF 2.
9183
9184 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9185
9186 * dwarf2read.c: Back out my previous change, it was incorrect.
9187
9188 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9189
9190 * dwarf2read.c: Include "hashtab.h".
9191 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9192 has_namespace_info.
9193 (struct partial_die_info): Add comments. Use bitfields to reduce
9194 memory footprint. Add scope, scope_set, has_specification,
9195 spec_offset, die_parent, die_child, and die_sibling.
9196 (peek_die_abbrev): Add prototype.
9197 (partial_read_comp_unit_head): New function, broken out from
9198 dwarf2_build_psymtabs_hard.
9199 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9200 Use partial_read_comp_unit_head. Initialize the CU and
9201 comp_unit_obstack. Update calls to read_partial_die and
9202 scan_partial_symbols. Use free_stack_comp_unit and
9203 load_partial_dies.
9204 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9205 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9206 Update calls to helper functions. Remove NAMESPACE argument.
9207 Update comments.
9208 (partial_die_parent_scope, partial_die_full_name): New functions.
9209 (add_partial_symbol): Remove namespace argument. Update call to
9210 pdi_needs_namespace. Use partial_die_full_name. Handle
9211 DW_TAG_namespace. Check has_namespace_info flag.
9212 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9213 tag. Handle namespaces.
9214 (add_partial_namespace, add_partial_enumeration): Simplify.
9215 (guess_structure_name): New function, derived from
9216 add_partial_structure.
9217 (add_partial_structure): Remove.
9218 (determine_class_name): Update comment.
9219 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9220 (is_type_tag_for_partial, load_partial_dies): New functions.
9221 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9222 Record specifications instead of following them immediately.
9223 (find_partial_die_in_comp_unit, find_partial_die)
9224 (fixup_partial_die, free_stack_comp_unit)
9225 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9226 (partial_die_hash, partial_die_eq): New functions.
9227 * Makefile.in (hashtab_h): Define.
9228 (dwarf2read.o): Update dependencies.
9229 (observer_inc, observer_h): Move to the correct section.
9230
9231 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9232
9233 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9234 (die_is_declaration): Use the function above. Add comment.
9235
9236 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9237
9238 * dwarf2read.c (read_structure_scope): Identify stub types
9239 using die_is_declaration() only.
9240
9241 2004-04-15 Roland McGrath <roland@redhat.com>
9242
9243 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9244 argument instead of NAME.
9245 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9246 in call to symbol_file_add_with_addrs_or_offsets.
9247 (build_addr_info): New function, helper for ...
9248 (symbol_file_add_from_memory): New function.
9249 (add_symbol_file_from_memory_command): New function using that.
9250 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9251 (pre_add_symbol_hook): Add const to argument type.
9252 * symfile.h (symbol_file_add_from_memory): Declare it.
9253
9254 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9255
9256 * NEWS (New native configurations): Mention OpenBSD/vax.
9257 * configure.host: Add vax-*-openbsd*.
9258 * config/vax/obsd.mh: New file.
9259 * config/vax/nm-obsd.h: New file.
9260
9261 * vax-tdep.c: Include "regset.h".
9262 (vax_supply_gregset): New function.
9263 (vax_gregset): New variable.
9264 (vax_regset_from_core_section): New function.
9265 (vax_gdbarch_init): Set regset_from_core_section.
9266 * Makefile.in (vax-tdep.o): Update dependencies.
9267
9268 2004-04-15 Andrew Cagney <cagney@redhat.com>
9269
9270 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9271 (observer_normal_stop_notification_stub)
9272 (observer_attach_normal_stop, observer_detach_normal_stop):
9273 Delete, replaced by #include "observer.inc".
9274 * infrun.c (normal_stop): Pass "stop_bpstat" to
9275 observer_notify_normal_stop.
9276 * Makefile.in (observer_inc): Define.
9277 (observer.o): Update dependencies.
9278 (observer.h, observer.inc): New rules.
9279 * observer.h: Delete file.
9280 * observer.sh: New file.
9281
9282 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9283
9284 * vax-tdep.c (vax_frame_cache): Fix typo.
9285
9286 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9287
9288 * NEWS (New native configurations): Mention NetBSD/vax.
9289 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9290 * config/vax/nbsdelf.mh: New file.
9291 * config/vax/nbsdaout.mh: New file.
9292 * config/vax/nm-nbsd.h: New file.
9293 * config/vax/nm-nbsdaout.h: New file.
9294
9295 * vaxnbsd-tdep.c: New file.
9296 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9297 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9298 * config/vax/nbsd.mt: New file.
9299 * config/vax/tm-nbsd.h: New file.
9300
9301 * Makefile.in (vaxbsd-nat.o): New dependency.
9302
9303 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9304 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9305 struct_addr arguments. Don't push return value address.
9306 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9307 arguments to vax_store_arguments. Store return value address in
9308 R1.
9309 (vax_store_struct_return, vax_extract_return_value)
9310 (vax_store_return_value): Remove functions.
9311 (vax_return_value): New function.
9312 (vax_gdbarch_init): Set return value. Don't set
9313 deprecated_store_struct_return, deprecated_extract_struct_return
9314 and deprecated_store_return_value.
9315
9316 2004-04-14 Andreas Schwab <schwab@suse.de>
9317
9318 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9319 value buffer.
9320 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9321
9322 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9323
9324 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9325 (vax_unwind_dummy_id): New functions.
9326 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9327 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9328 variables.
9329 (vax_fix_call_dummy): Remove function.
9330 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9331 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9332 call_dummy_location, deprecated_call_dummy_words,
9333 deprecated_sizeof_call_dummy_words,
9334 deprecated_call_dummy_breakpoint_offset,
9335 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9336 and deprecated_dummy_write_sp.
9337
9338 2004-04-13 David Carlton <carlton@kealia.com>
9339
9340 * MAINTAINERS: Move myself to "paper trail" section.
9341
9342 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9343
9344 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9345 "trad-frame.h".
9346 (vax_frame_init_saved_regs): Remove function.
9347 (vax_sigtramp_saved_pc): Remove function.
9348 (vax_frame_saved_pc): Remove function.
9349 (vax_frame_args_address): Remove function.
9350 (vax_frame_num_args): Rewrite.
9351 (vax_frame_chain): Remove function.
9352 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9353 VAX_FP_REGNUM.
9354 (vax_pop_frame): Likewise.
9355 (vax_saved_pc_after_call): Remove function.
9356 (struct vax_frame_cache): New structure.
9357 (vax_frame_cache): New function.
9358 (vax_frame_this_id): New function.
9359 (vax_frame_prev_register): New function.
9360 (vax_frame_unwind): New variable.
9361 (vax_frame_sniffer): New function.
9362 (vax_frame_base_address): New function.
9363 (vax_frame_args_address): New function.
9364 (vax_frame_base): New variable.
9365 (vax_unwind_pc): New function.
9366 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9367 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9368 deprecated_frame_chain, deprecated_frame_saved_pc,
9369 deprecated_frame_args_address and
9370 deprecated_frame_init_saved_regs.
9371 * Makefile.in (vax-tdep.o): Update dependencies.
9372
9373 * vaxbsd-nat.c: New file.
9374
9375 * vax-tdep.h: Update copyright year. Adjust comments.
9376 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9377 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9378 (vax_regnum): New enum. Replacing...
9379 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9380 (VAX_PS_REGNUM): ... these removed macros.
9381 * vax-tdep.c (vax_register_name): Remove prototype.
9382 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9383 (vax_register_byte, vax_register_raw_size,
9384 vax_register_virtual_size, vax_register_virtual_type): Remove
9385 functions.
9386 (vax_register_type): New function.
9387 (vax_breakpoint_from_pc): Reorganize.
9388 (vax_gdbarch_init): Set register_type. Don't set
9389 deprecated_register_size, deprecated_register_bytes,
9390 deprecated_register_byte, deprecated_register_raw_size,
9391 deprecated_max_register_raw_size,
9392 deprecated_register_virtual_size,
9393 deprecated_max_register_virtual_size and
9394 deprecated_register_virtual_type. Add comment on stack direction.
9395
9396 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9397
9398 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9399 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9400 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9401
9402 2004-04-10 Randolph Chung <tausq@debian.org>
9403
9404 * MAINTAINERS (write after approval): Add myself.
9405
9406 2004-04-07 Randolph Chung <tausq@debian.org>
9407
9408 * hppa-tdep.c (hppa_inner_than): Remove.
9409 (is_pa_2): Remove unused static variable.
9410 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9411
9412 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9413
9414 * language.h (language_defn): Add new la_post_parser field.
9415 * parser-defs.h (null_post_parser): New declaration (default for
9416 la_post_parser).
9417
9418 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9419 insert call to that function.
9420 (parse_exp_in_context): New function, including code formerly in
9421 parse_exp_1. Calls language-dependent post-parser after
9422 prefixification.
9423 (parse_expression_in_context): New exported function.
9424 (null_post_parser): New definition.
9425 * expression.h (parse_expression_in_context): Add declaration.
9426
9427 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9428 * c-lang.c (c_language_defn): Ditto.
9429 (cplus_language_defn): Ditto.
9430 (asm_language_defn): Ditto.
9431 (minimal_language_defn): Ditto.
9432 * f-lang.c (f_language_defn): Ditto.
9433 * jv-lang.c (java_language_defn): Ditto.
9434 * language.c (unknown_language_defn): Ditto.
9435 (auto_language_defn): Ditto.
9436 (local_language_defn): Ditto.
9437 * m2-lang.c (m2_language_defn): Ditto.
9438 * scm-lang.c (scm_language_defn): Ditto.
9439 * obj-lang.c (objc_language_defn): Ditto.
9440
9441 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9442
9443 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9444 (amd64nbsd_mcontext_addr): New function.
9445 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9446 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9447 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9448
9449 * corelow.c (core_xfer_partial): Fix coding standards violation.
9450 Add support for TARGET_OBJECT_WCOOKIE.
9451
9452 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9453 deprecated_pc_in_sigtramp.
9454 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9455 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9456 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9457 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9458 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9459 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9460 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9461
9462 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9463 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9464 Fix typo.
9465
9466 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9467 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9468 (amd64_collect_fxsave): Likewise.
9469
9470 * i386-sol2-tdep.c: Include "gdb_string.h".
9471 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9472 name.
9473 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9474
9475 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9476
9477 * i386-sol2-tdep.c: Include "solib-svr4.h".
9478 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9479 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9480 * config/i386/tm-i386sol2.h: Include :solib.h".
9481 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9482 solib-svr4.o and solib-legacy.o.
9483 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9484 solib-svr4.o.
9485
9486 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9487
9488 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9489 whether a register is supplied by PTRACE_GETFPREGS.
9490 (store_inferior_registers): Likewise.
9491 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9492 whether a register is supplied by PT_GETFPREGS.
9493 (store_inferior_registers): Likewise.
9494
9495 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9496 * config/i386/linux64.mt (TDEPFILES): Likewise.
9497
9498 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9499
9500 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9501 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9502 the program counter is in the range specified by `struct
9503 gdbarch_tdep'.
9504 * amd64-linux-tdep.c: Include "symtab.h".
9505 (amd64_linux_pc_in_sigtramp): Remove function.
9506 (amd64_linux_sigtramp_p): New function.
9507 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9508 deprecated_pc_in_sigtramp.
9509 * amd64nbsd-tdep.c: Include "symtab.h".
9510 (amd64nbsd_sigtramp_p): New function.
9511 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9512 deprecated_pc_in_sigtramp.
9513 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9514 few comments.
9515 (amd64obsd_pc_in_sigtramp): Remove function.
9516 (amd64obsd_sigtramp_p): New function.
9517 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9518 deprecated_pc_in_sigtramp.
9519 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9520 (i386bsd_pc_ins_sigtramp): Remove prototype.
9521 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9522 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9523 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9524 the program counter is in the range specified by `struct
9525 gdbarch_tdep'.
9526 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9527 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9528 (i386_go32_pc_in_sigtramp): Remove function.
9529 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9530 Initialize TDEP->sigtramp_p.
9531 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9532 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9533 deprecated_pc_in_sigtramp.
9534 * i386-linux-tdep.c: Adjust comments.
9535 (i386_linux_pc_in_sigtramp): Remove function.
9536 (i386_linux_sigtramp_p): New function.
9537 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9538 deprecated_pc_in_sigtramp.
9539 * i386-nto-tdep.c: Update copyright year.
9540 (i386nto_pc_in_sigtramp): Remove function.
9541 (i386nto_sigtramp_p): New function.
9542 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9543 SP_REGNUM.
9544 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9545 deprecated_pc_in_sigtramp.
9546 * i386-sol2-tdep.c: Update copyright year.
9547 (i386_sol2_pc_in_sigtramp): Remove function.
9548 (i386_sol2_sigtramp_p): New function.
9549 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9550 deprecated_pc_in_sigtramp.
9551 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9552 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9553 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9554 deprecated_sigtramp_start and deprecated_sigtramp_end.
9555 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9556 (i386nbsd_pc_in_sigtramp): Remove function.
9557 (i386nbsd_sigtramp_p): New function.
9558 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9559 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9560 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9561 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9562 (i386obsd_pc_in_sigtramp): Remove function.
9563 (i386obsd_sigtramp_p): New function.
9564 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9565 functions.
9566 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9567 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9568 TDEP->sigtramp_p.
9569 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9570 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9571 dependencies.
9572
9573 * config/i386/i386aout.mt: Remove file.
9574
9575 * configure.tgt: Remove i[34567]86-*-go32*,
9576 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9577 and i[34567]86-*-isc*. Set gdb_target to i386 for
9578 i[34567]86-*-netware* and i[34567]86-*-*.
9579 * config/i386/i386.mt: New file.
9580 * config/i386/embed.mt: Remove file.
9581 * config/i386/go32.mt: Remove file.
9582 * config/i386/i386nw.mt: Remove file.
9583 * config/i386/i386v.mt: Remove file.
9584 * config/i386/tm-go32.h: Remove file.
9585
9586 * tui/tui-hooks.c: Include "readline/readline.h" after
9587 "gdb_curses.h" instead of before.
9588 * tui/tui-io.c: Likewise.
9589
9590 * tui/tui.c: Fix typo in comment.
9591
9592 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9593
9594 2004-04-08 Andrew Cagney <cagney@redhat.com>
9595
9596 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9597 (deprecated_exception_support_initialized): Declare.
9598 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9599 (initialize_hp_cxx_exception_support)
9600 (child_enable_exception_callback): Update.
9601 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9602 (deprecated_exception_support_initialized): Rename
9603 deprecated_exception_catchpoints_are_fragile and
9604 deprecated_exception_support_initialized.
9605 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9606
9607 * symtab.c (deprecated_hp_som_som_object_present): Rename
9608 hp_som_som_object_present.
9609 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9610 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9611 Update. Delete extern declaration.
9612 * valops.c (hp_som_som_object_present): Ditto.
9613 * parse.c (deprecated_hp_som_som_object_present)
9614 (parse_nested_classes_for_hpacc): Ditto.
9615 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9616 * hppa-hpux-tdep.c (hp_som_som_object_present)
9617 (initialize_hp_cxx_exception_support): Ditto.
9618 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9619 * cp-valprint.c (hp_som_som_object_present)
9620 (cp_print_class_method): Ditto.
9621 * c-typeprint.c (hp_som_som_object_present):
9622 (c_type_print_base): Ditto.
9623 * c-exp.y (hp_som_som_object_present): Ditto.
9624
9625 2004-04-08 Andrew Cagney <cagney@redhat.com>
9626
9627 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9628 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9629 (frame_unwind_find_by_frame): Re-implement the unwind code so
9630 that it can both prepend and append sniffers. Replace
9631 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9632 * tramp-frame.c (tramp_frame_append): Use
9633 frame_unwind_prepend_unwinder.
9634 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9635 frame_unwind_register_unwinder.
9636 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9637 tramp_frame_append.
9638 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9639 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9640 (mips_linux_init_abi): Update.
9641
9642 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9643
9644 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9645 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9646 file support.
9647
9648 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9649
9650 * ia64-tdep.c (elf.h): Don't include.
9651 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9652
9653 2004-04-07 Jason Molenda (jmolenda@apple.com)
9654
9655 * frame.h: Typeo corrections in comments.
9656
9657 2004-04-07 Jim Blandy <jimb@redhat.com>
9658
9659 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9660 %esp and %ebp
9661
9662 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9663
9664 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9665 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9666 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9667 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9668 and solib-legacy.o.
9669 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9670 solib-svr4.o.
9671 * config/sparc/tm-sol2.h: Update copyright year. Include
9672 "solib.h".
9673
9674 * sparc-sol2-tdep.c: Update copyright year. Include
9675 "solib-svr4.h".
9676 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9677 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9678 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9679 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9680 dependencies.
9681
9682 2004-04-06 Andrew Cagney <cagney@redhat.com>
9683
9684 * infttrace.c: Include "infttrace.h".
9685 * infttrace.h: Include "target.h".
9686 * Makefile.in (infttrace_h): Update.
9687 (infttrace.o): Update.
9688
9689 2004-04-06 Andrew Cagney <cagney@redhat.com>
9690
9691 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9692 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9693 move extern declarations from here ...
9694 * infttrace.h: ... to here.
9695 * Makefile.in (hppah-nat.o): Update dependencies.
9696
9697 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9698 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9699 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9700 (hppa_breakpoint_from_pc): Delete.
9701
9702 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9703
9704 2004-04-05 Andrew Cagney <cagney@redhat.com>
9705
9706 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9707 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9708 <sys/file.h>.
9709
9710 2004-04-06 Randolph Chung <tausq@debian.org>
9711
9712 Committed by Andrew Cagney (mechanical change).
9713 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9714 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9715 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9716 child_enable_exception_callback, current_ex_event,
9717 null_symtab_and_line, child_get_current_exception_event,
9718 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9719 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9720 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9721 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9722 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9723 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9724 Move hpux-specific definitions ...
9725 * hppa-hpux-tdep.c: ... to here.
9726
9727 2004-04-05 Andrew Cagney <cagney@redhat.com>
9728
9729 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9730 skip_prologue_using_sal.
9731
9732 2004-04-05 Andrew Cagney <cagney@redhat.com>
9733
9734 * config/i386/tm-i386.h: Delete file.
9735 * config/i386/tm-vxworks.h: Update copyright, do not include
9736 "tm-i386.h".
9737 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9738 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9739 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9740 * config/i386/ncr3000.mt (TM_FILE): Delete.
9741 * config/i386/interix.mt (TM_FILE): Delete.
9742 * config/i386/i386v.mt (TM_FILE): Delete.
9743 * config/i386/i386nw.mt (TM_FILE): Delete.
9744 * config/i386/i386gnu.mt (TM_FILE): Delete.
9745 * config/i386/i386aout.mt (TM_FILE): Delete.
9746 * config/i386/embed.mt (TM_FILE): Delete.
9747
9748 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9749
9750 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9751 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9752 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9753 (accg7_regnum): New constants.
9754 (last_spr_regnum, last_pseudo_regnum): Update.
9755 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9756 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9757 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9758 for accg registers.
9759 (frv_register_sim_regno): Update spr_map[].
9760
9761 2004-04-04 Andrew Cagney <cagney@redhat.com>
9762
9763 * config/mips/xm-riscos.h: Delete.
9764 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9765 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9766 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9767 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9768 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9769 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9770 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9771 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9772 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9773 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9774 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9775 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9776 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9777 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9778 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9779 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9780 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9781 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9782 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9783 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9784 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9785 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9786 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9787 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9788 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9789 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9790
9791 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9792 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9793 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9794 * configure.host: Remove m680[01]0-sun-sunos3*,
9795 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9796 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9797 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9798 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9799 mips-*-riscos*.
9800 * NEWS: Mention removed systems.
9801
9802 2004-04-04 Andrew Cagney <cagney@redhat.com>
9803
9804 GDB 6.1 release created from 6.1 branch.
9805
9806 2004-04-04 Andrew Cagney <cagney@redhat.com>
9807
9808 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9809 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9810 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9811
9812 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9813 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9814 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9815
9816 2004-04-03 Jim Blandy <jimb@redhat.com>
9817
9818 * MAINTAINERS: Chris Faylor has changed employers; add him to
9819 "paper trail" section, and update his E-mail address.
9820
9821 2004-04-03 Andrew Cagney <cagney@redhat.com>
9822
9823 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9824 generic dummy frames.
9825 * dummy-frame.c: Update copyright.
9826 (dummy_frame_sniffer): Delete check for generic dummy frames.
9827
9828 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9829 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9830 (REG_PARM_STACK_SPACE): Delete.
9831 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9832 Inline reference to REG_PARM_STACK_SPACE.
9833
9834 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9835 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9836 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9837 (FRAME_BASE_BEFORE_SIGTRAMP)
9838 (hppa32_hpux_frame_base_before_sigtramp)
9839 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9840 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9841 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9842 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9843 (FRAME_BASE_BEFORE_SIGTRAMP)
9844 (hppa64_hpux_frame_base_before_sigtramp)
9845 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9846
9847 2004-04-03 Andrew Cagney <cagney@redhat.com>
9848
9849 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9850
9851 2004-04-02 Andrew Cagney <cagney@redhat.com>
9852
9853 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9854 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9855 * dummy-frame.h: Delete out-of-date comments.
9856 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9857 * gdbarch.h, gdbarch.c: Re-generate.
9858
9859 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9860
9861 Committed by Andrew Cagney <cagney@redhat.com>.
9862 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9863 into account an instruction saving a register if we have already
9864 seen an earlier instruction saving that same register.
9865
9866 2004-04-02 Andrew Cagney <cagney@redhat.com>
9867
9868 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9869 * gdbarch.h, gdbarch.c: Re-generate.
9870 * frame.c (legacy_get_prev_frame): Delete references to
9871 DEPRECATED_INIT_FRAME_PC_FIRST.
9872
9873 * infrun.c (pc_in_sigtramp): Delete function.
9874 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9875 get_frame_type.
9876
9877 2004-04-02 Andrew Cagney <cagney@redhat.com>
9878
9879 * infrun.c (handle_step_into_function): Delete code conditional on
9880 legacy_frame_p.
9881 (handle_inferior_event, step_over_function): Ditto.
9882
9883 2004-04-02 Andrew Cagney <cagney@redhat.com>
9884
9885 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9886 "previous frame inner to this frame" test.
9887
9888 2004-04-02 Andrew Cagney <cagney@redhat.com>
9889
9890 * frame.c (safe_frame_unwind_memory): New function.
9891 * frame.h (safe_frame_unwind_memory): Declare. Update description
9892 of /safe_/ methods.
9893 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9894 "next_frame". Use safe_frame_unwind_memory.
9895 (tramp_frame_sniffer): Update call to tramp_frame_start.
9896
9897 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9898
9899 * dwarf2read.c (dwarf2_objfile_data_key): New.
9900 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9901 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9902 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9903 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9904 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9905 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9906 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9907 Remove variables.
9908 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9909 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9910 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9911 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9912 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9913 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9914 Remove macros.
9915 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9916 data.
9917 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9918 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9919 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9920 (read_partial_die, read_full_die, read_indirect_string)
9921 (dwarf_decode_line_header, dwarf_decode_macros)
9922 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9923 Update uses of removed variables.
9924 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9925 of removed macros.
9926 (_initialize_dwarf2_read): New function.
9927 * symfile.h (dwarf2_has_info): Update prototype.
9928 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9929 * elfread.c (elf_symfile_read): Likewise.
9930
9931 2004-04-01 Jim Blandy <jimb@redhat.com>
9932
9933 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9934 function for register numbers on all the rs6000-derived targets.
9935 (rs6000_gdbarch_init): Don't register a separate
9936 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9937 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9938 variants.
9939
9940 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9941 numbering.
9942
9943 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9944
9945 * valarith.c: Update copyright notice.
9946 (value_add): Handle range types.
9947 (value_sub): Ditto.
9948 (value_equal): Ditto.
9949 (value_less): Ditto.
9950 (value_neg): Ditto.
9951 (value_complement): Ditto.
9952 (value_binop): Simplify slightly by using is_integral_type and
9953 eliminiating unnecessary COERCE_ENUMs.
9954
9955 2004-03-31 Andrew Cagney <cagney@redhat.com>
9956
9957 * frame.h (frame_unwind_id): Declare.
9958 * frame.c (frame_unwind_id): New function.
9959 (get_prev_frame_1): New function.
9960 (frame_debug_got_null_frame): New function.
9961 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9962 code proper to prev_frame, update description.
9963 * infrun.c (step_over_function): Use frame_unwind_id.
9964
9965 2004-04-31 J. Brobecker <brobecker@gnat.com>
9966
9967 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9968 (hppa64_push_dummy_call): Likewise.
9969
9970 2004-03-30 Jim Blandy <jimb@redhat.com>
9971
9972 From Ulrich Weigand:
9973 * utils.c (query): Do not use a va_list variable multiple times.
9974
9975 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * Makefile.in (linux_nat_h): Update dependencies.
9978 * configure.in: Check for <gnu/libc-version.h>.
9979 * configure: Regenerate.
9980 * config.in: Regenerate.
9981 * linux-nat.h: Include "target.h". Add waitstatus field to
9982 struct lwp_info.
9983 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9984 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9985 to.
9986 (lin_lwp_handle_extended): New function. Handle clone events.
9987 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9988 thread exit events.
9989 (child_wait): Handle clone events.
9990 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9991 * linux-nat.c (linux_enable_event_reporting): Turn on
9992 PTRACE_O_TRACECLONE.
9993 (linux_handle_extended_wait): Handle clone events.
9994 * thread-db.c: Include <gnu/libc-version.h>.
9995 (struct private_thread_info): Add dying flag.
9996 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9997 higher.
9998 (attach_thread): Update comments. Handle dying threads.
9999 (detach_thread): Set the dying flag.
10000 (check_event): Always call attach_thread.
10001
10002 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10003
10004 * mips-tdep.c (mips_pdr_data): New.
10005 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10006 (_initialize_mips_tdep): Initialize mips_pdr_data.
10007
10008 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10009
10010 * minsyms.c (install_minimal_symbols): Move dropping leading
10011 char from linkage name from here...
10012 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10013 test for "__gnu_compiled*" symbols.
10014
10015 2004-03-28 Jim Blandy <jimb@redhat.com>
10016
10017 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10018 registers to temp register r0 and byte stores as prologue
10019 instructions.
10020
10021 2004-03-28 Andrew Cagney <cagney@redhat.com>
10022
10023 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10024 arm*-*-*.
10025
10026 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10027
10028 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10029 and switch the layout to force a display of register window.
10030
10031 2004-02-26 J. Brobecker <brobecker@gnat.com>
10032
10033 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10034 of the INTEGER class.
10035
10036 2004-03-26 Jim Blandy <jimb@redhat.com>
10037
10038 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10039 bytes long on PPC GNU/Linux.
10040
10041 2004-03-26 David Carlton <carlton@kealia.com>
10042
10043 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10044
10045 2004-03-25 Andrew Cagney <cagney@redhat.com>
10046
10047 * PROBLEMS: Add general section titles, remove references to
10048 specific releases.
10049
10050 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10053 INT_REGISTER_SIZE.
10054 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10055 FP_REGISTER_VIRTUAL_SIZE.
10056 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10057 of DEPRECATED_REGISTER_RAW_SIZE.
10058 (arm_register_type): Add gdbarch argument.
10059 (arm_register_raw_size, arm_register_virtual_size): Delete.
10060 (arm_register_byte, arm_extract_return_value)
10061 (arm_store_return_value, arm_get_longjmp_target): Update references
10062 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10063 (arm_gdbarch_init): Likewise. Don't set
10064 deprecated_register_raw_size, deprecated_register_virtual_size,
10065 deprecated_max_register_raw_size,
10066 deprecated_max_register_virtual_size, or
10067 deprecated_max_register_virtual_type. Do set register_type.
10068 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10069 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10070 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10071 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10072 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10073 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10074 INT_REGISTER_SIZE.
10075 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10076 (remote_rdp_store_register): Likewise.
10077
10078 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10079
10080 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10081 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10082 to after osabi initialization.
10083 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10084 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10085 functions.
10086 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10087 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10088 variables.
10089 (mips_linux_init_abi): Append signal trampoline unwinders.
10090
10091 2004-03-24 Andrew Cagney <cagney@redhat.com>
10092
10093 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10094 * tramp-frame.c: Include "gdb_assert.h".
10095 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10096 correct sizeof.
10097 (tramp_frame_append): Validate the tramp frame's instructions.
10098 * Makefile.in (tramp-frame.o): Update dependencies.
10099
10100 2004-03-23 Andrew Cagney <cagney@redhat.com>
10101
10102 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10103
10104 2004-03-23 Andrew Cagney <cagney@redhat.com>
10105
10106 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10107 Nasser as past testsuite/lib/ (and other) maintainers.
10108
10109 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10110
10111 * infcmd.c (attach_command): Reread symbols if we already have
10112 an exec file.
10113
10114 2004-03-23 Andrew Cagney <cagney@redhat.com>
10115
10116 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10117
10118 2004-03-23 Andrew Cagney <cagney@redhat.com>
10119
10120 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10121 * gdbarch.h, gdbarch.c: Re-generate.
10122 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10123 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10124 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10125 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10126 (DEPRECATED_SIGTRAMP_START): Update.
10127 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10128 (DEPRECATED_SIGTRAMP_START): Update.
10129 * blockframe.c (find_pc_sect_partial_function): Update.
10130 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10131
10132 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10133
10134 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10135 if necessary.
10136
10137 2004-03-23 Andrew Cagney <cagney@redhat.com>
10138
10139 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10140 predicate, deprecate.
10141 * gdbarch.h, gdbarch.c: Re-generate.
10142 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10143 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10144 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10145 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10146 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10147 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10148 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10149 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10150 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10151 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10152 * blockframe.c (find_pc_partial_function): Update.
10153 * breakpoint.c (bpstat_what): Update.
10154 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10155 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10156 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10157 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10158 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10159 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10160 * i386-nto-tdep.c (i386nto_init_abi): Update.
10161 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10162 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10163 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10164 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10165 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10166 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10167 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10168 * infrun.c (pc_in_sigtramp): Update.
10169 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10170 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10171 * mips-tdep.c (mips_gdbarch_init): Update.
10172 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10173 * ppc-linux-tdep.c: Update comment.
10174 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10175 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10176 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10177 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10178 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10179 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10180 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10181 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10182 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10183 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10184
10185 2004-03-23 Andrew Cagney <cagney@redhat.com>
10186
10187 * tramp-frame.h, tramp-frame.h: New files.
10188 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10189 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10190
10191 * Makefile.in: Update all dependencies.
10192
10193 2004-03-23 Andrew Cagney <cagney@redhat.com>
10194
10195 * Makefile.in (trad_frame_h): Add $(frame_h).
10196 * trad-frame.h: Update copyright. Include "frame.h".
10197 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10198 (trad_frame_set_id, trad_frame_get_id): Declare.
10199 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10200 * trad-frame.c: Update copyright.
10201 (struct trad_frame_cache): Define.
10202 (trad_frame_cache_zalloc): New function.
10203 (trad_frame_set_id, trad_frame_get_id): New functions.
10204 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10205
10206 2004-03-22 Andrew Cagney <cagney@redhat.com>
10207
10208 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10209 s390_pltstub_unwind_cache.
10210 (s390_stub_frame_unwind_cache): Rename
10211 s390_pltstub_frame_unwind_cache.
10212 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10213 (s390_stub_frame_prev_register): Rename
10214 s390_pltstub_frame_prev_register.
10215 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10216 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10217
10218 From Ulrich Weigand:
10219 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10220 pointer calls like PLT calls.
10221
10222 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10223
10224 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10225 PC rather than the partial function start address. Use the start
10226 address to sanity check the found PDR.
10227
10228 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10229
10230 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10231 linux_handle_extended_wait.
10232
10233 2004-03-22 Andrew Cagney <cagney@redhat.com>
10234
10235 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10236 function.
10237
10238 * frame.h (generic_pop_current_frame): Delete declaration.
10239 (deprecate_pop_dummy_frame): Deprecate
10240 generic_pop_dummy_frame.
10241 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10242 (generic_pop_current_frame): Delete function.
10243 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10244 generic_pop_current_frame.
10245 * v850-tdep.c (v850_pop_frame): Update.
10246 * mcore-tdep.c (mcore_pop_frame): Update.
10247 * sh64-tdep.c (sh64_pop_frame): Update.
10248 * h8300-tdep.c (h8300_pop_frame): Update.
10249
10250 2004-03-22 Andrew Cagney <cagney@redhat.com>
10251
10252 * frame.h (deprecated_pc_in_call_dummy): Rename
10253 generic_pc_in_call_dummy.
10254 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10255 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10256 generic_pc_in_call_dummy.
10257 (pc_in_dummy_frame): Make static.
10258 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10259 * gdbarch.h, gdbarch.c: Re-generate.
10260 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10261 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10262 (legacy_get_prev_frame): Ditto.
10263 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10264 comment.
10265
10266 2004-03-21 Andrew Cagney <cagney@redhat.com>
10267
10268 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10269 declaration and out-of-date comment.
10270 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10271 Delete function.
10272 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10273 deprecated_pc_in_call_dummy.
10274
10275 * infrun.c (handle_inferior_event): For non legacy frames, use the
10276 frame ID and frame type to identify a signal trampoline. Update
10277 comments.
10278
10279 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10280
10281 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10282 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10283
10284 2004-03-21 Andrew Cagney <cagney@redhat.com>
10285
10286 * frame-unwind.h: Update copyright.
10287 (struct frame_data): Add opaque declaration.
10288 (frame_sniffer_ftype): Declare.
10289 (struct frame_unwind): Add "unwind_data" and "sniffer".
10290 (frame_unwind_register_unwinder): Declare.
10291 (frame_unwind_find_by_frame): Add parameter "this_cache".
10292 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10293 (legacy_get_prev_frame, legacy_get_prev_frame)
10294 (get_frame_type): Pass the prologue_cache to
10295 frame_unwind_find_by_frame.
10296 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10297 "unwinder".
10298 (frame_unwind_register_unwinder): New function.
10299 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10300
10301 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10302
10303 * bcache.c (print_percentage): Use floating point to avoid
10304 incorrect results when portion*100 overflows.
10305
10306 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10307
10308 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10309 (ppc_linux_init_extra_frame_info)
10310 (ppc_linux_frameless_function_invocation)
10311 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10312 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10313 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10314 (rs6000_frame_chain): Delete declarations.
10315 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10316 (ppc_linux_init_extra_frame_info)
10317 (ppc_linux_frameless_function_invocation)
10318 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10319 (ppc_linux_init_abi): Remove registration of above deleted functions.
10320 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10321 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10322 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10323 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10324 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10325 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10326 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10327 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10328 frame management for all OSABIs.
10329
10330 2004-03-19 Andrew Cagney <cagney@redhat.com>
10331
10332 Committed by Kevin Buettner <kevinb@redhat.com>.
10333
10334 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10335 Update copyright.
10336 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10337 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10338 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10339 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10340 unwinders. #ifdef legacy frame code.
10341 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10342 "frame-base.h".
10343 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10344 (struct rs6000_frame_cache, rs6000_frame_cache)
10345 (rs6000_frame_this_id, rs6000_frame_prev_register)
10346 (rs6000_frame_sniffer, rs6000_frame_unwind)
10347 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10348 (rs6000_frame_base): Implement a traditional frame unwinder.
10349 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10350 frame unwinder.
10351
10352 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10353
10354 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10355 breakpoint address for watchpoints or the catch eventpoints.
10356 Add new paramter ``bptype''. Adjust all callers.
10357
10358 2004-03-19 Andrew Cagney <cagney@redhat.com>
10359
10360 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10361
10362 * PROBLEMS: Delete note that ARM does not use frame code, problem
10363 fixed.
10364
10365 2004-03-18 Andrew Cagney <cagney@redhat.com>
10366
10367 * stack.c (return_command): Delete code wrapped in #ifdef
10368 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10369
10370 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10371
10372 2004-03-18 Andrew Cagney <cagney@redhat.com>
10373
10374 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10375 DEPRECATED_IN_SIGTRAMP.
10376 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10377 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10378 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10379 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10380 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10381 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10382 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10383 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10384 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10385 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10386
10387 2004-03-18 Andrew Cagney <cagney@redhat.com>
10388
10389 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10390 (struct frame_base_table_entry): Define.
10391 (struct frame_base_table): Re-implement as a linked list.
10392 (frame_base_init): Re-implement.
10393 (frame_base_table): Delete function.
10394 (append_predicate): Delete function.
10395 (frame_base_append_sniffer): Update.
10396 (frame_base_set_default): Update.
10397 (frame_base_find_by_frame): Update.
10398 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10399 * Makefile.in (frame-base.o): Update dependencies.
10400
10401 2004-03-17 Andrew Cagney <cagney@redhat.com>
10402
10403 * frame.c (legacy_get_prev_frame): Pass correct frame to
10404 frame_unwind_find_by_frame.
10405
10406 2004-03-17 David Carlton <carlton@kealia.com>
10407
10408 * NEWS: Mention C++ nested types and namespaces
10409
10410 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10411
10412 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10413 and "Regressions since gdb 5.3.". Add known regressions since
10414 gdb 6.0.
10415
10416 2004-03-16 David Carlton <carlton@kealia.com>
10417
10418 * dwarf2read.c (process_structure_scope): Process children even
10419 when we're a declaration.
10420
10421 2004-03-16 Andrew Cagney <cagney@redhat.com>
10422
10423 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10424 * blockframe.c (find_pc_partial_function)
10425 (find_pc_sect_partial_function): Merge into a single
10426 find_pc_partial_function.
10427
10428 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10429
10430 * i386bsd-nat.c: s/regno/regnum/g.
10431 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10432 FP0_REGNUM.
10433 (store_inferior_registers): Likewise.
10434
10435 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10436
10437 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10438 of i387_fill_fsave.
10439 (store_inferior_registers): Call i387_collect_fsave and
10440 i387_collect_fxsave instead of i387_fill_fsave and
10441 i387_fill_fxsave.
10442
10443 2004-03-15 Andrew Cagney <cagney@redhat.com>
10444
10445 * Makefile.in (frame-unwind.o): Update dependencies.
10446 * frame-unwind.c: Include "gdb_obstack.h".
10447 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10448 parameter.
10449 (append_predicate): Delete function.
10450 (struct frame_unwind_table_entry): New structure.
10451 (struct frame_unwind_table): Replace "sniffer" with "head" and
10452 "tail".
10453 (frame_unwind_append_sniffer): Update.
10454 (frame_unwind_find_by_frame): Update.
10455 (_initialize_frame_unwind): Registe frame_unwind_init using
10456 gdbarch_data_register_pre_init.
10457
10458 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10459
10460 * i386bsd-nat.c: Update copyright year.
10461 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10462 define unconditionally.
10463
10464 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10465
10466 * i387-tdep.h (i387_collect_fsave): New prototype.
10467 * i387-tdep.c (i387_collect_fsave): New function containing most
10468 of the code from i387_fill_fsave.
10469 (i387_fill_fsave): Call i387_collect_fsave.
10470
10471 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10472
10473 * i386-linux-tdep.c: Update copyright year.
10474 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10475 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10476 svr4_ilp32_link_map_offsets instead of
10477 i386_linux_svr4_fetch_link_map_offsets.
10478
10479 2004-03-15 David Carlton <carlton@kealia.com>
10480
10481 Fix for PR c++/1553:
10482 * dwarf2read.c (read_structure_type): Determine type name by
10483 calling determine_class_name.
10484 (determine_class_name): New.
10485 (determine_prefix): Look at TYPE_TAG_NAME and call
10486 determine_class_name when appropriate.
10487 (determine_prefix_aux, class_name): Delete.
10488 (read_namespace): Set die->type.
10489
10490 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10491
10492 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10493 unused macro definition. The definition in target.h (or perhaps
10494 elsewhere) takes precedence.
10495
10496 2004-03-15 Andrew Cagney <cagney@redhat.com>
10497
10498 * ppc-tdep.h: Update copyright.
10499 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10500 function signatures to match "regsets.h".
10501 * ppc-linux-tdep.c: Include "regset.h".
10502 (ELF_GREGSET_SIZE): Delete.
10503 (right_supply_register): New function.
10504 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10505 using right_supply_register.
10506 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10507 functions.
10508 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10509 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10510 (_initialize_ppc_linux_tdep): Do not register
10511 ppc_linux_regset_core_fns.
10512 (ppc_linux_regset_from_core_section): Replace
10513 fetch_core_registers.
10514 (ppc_linux_regset_core_fns): Delete.
10515 * ppc-linux-nat.c: (right_fill_reg): New function.
10516 (supply_gregset): Update call to ppc_linux_supply_gregset.
10517 (fill_gregset): Clear the register set, use right_fill_reg.
10518 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10519 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10520
10521 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10522 unsigned.
10523
10524 2004-03-15 Andrew Cagney <cagney@redhat.com>
10525
10526 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10527 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10528 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10529 and register_gdbarch_data.
10530 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10531 (struct gdbarch_data): Replace "init" by "pre_init" and
10532 "post_init".
10533 * gdbarch.h, gdbarch.c: Re-generate.
10534 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10535 with"obstack", use OBSTACK_ZALLOC.
10536 (dwarf2_frame_ops): Delete.
10537 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10538 (dwarf2_frame_init_reg): Use gdbarch_data.
10539 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10540 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10541 (_initialize_svr4_solib): Update.
10542 * user-regs.c (_initialize_user_regs): Update.
10543 * reggroups.c (_initialize_reggroup): Update.
10544 * regcache.c (_initialize_regcache): Update.
10545 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10546 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10547 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10548 * frame-unwind.c (_initialize_frame_unwind): Update.
10549 * frame-base.c (_initialize_frame_base): Update.
10550 * user-regs.c (user_reg_add): Update.
10551 * reggroups.c (reggroup_add): Update.
10552 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10553 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10554 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10555 * frame-base.c (frame_base_table): Update.
10556 * remote.c (_initialize_remote): Update.
10557 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10558
10559 2004-03-15 Andrew Cagney <cagney@redhat.com>
10560
10561 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10562
10563 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10564
10565 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10566 * frv-linux-tdep.c: New file.
10567 * frv-tdep.c (struct gdbarch_tdep): Add new field
10568 ``sigcontext_reg_addr''.
10569 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10570 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10571 (frv_sigramp_frame_sniffer): New functions.
10572 (frv_sigtramp_frame_unwind): New static global.
10573 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10574 sniffers.
10575 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10576 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10577
10578 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10579
10580 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10581 but not via a call to error(), when unable to read memory.
10582
10583 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10584
10585 * frv-tdep.c (frv_call_dummy_words): Delete.
10586 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10587
10588 2004-03-15 Andrew Cagney <cagney@redhat.com>
10589
10590 * infrun.c (handle_step_into_function, step_over_function): Only
10591 update and use STEP_FRAME_ID when the system is using legacy
10592 frames. Update comments.
10593
10594 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10595
10596 * amd64-linux-tdep.h: Remove file.
10597 * amd64-linux-tdep.c: Don't include "inferior.h" and
10598 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10599 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10600 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10601 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10602 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10603 macros.
10604 (user_to_gdb_regmap): Remove variable.
10605 (amd64_linux_gregset_reg_offset): New variable.
10606 (amd64_core_fns): Remove variable.
10607 (fetch_core_registers): Remove function.
10608 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10609 functions.
10610 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10611 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10612 * Makefile.in (amd64_linux_tdep_h): Remove.
10613 (amd64-linux-nat.o): Update dependencies.
10614 (amd64-linux-tdep.o): Update dependencies.
10615
10616 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10617 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10618 functions.
10619 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10620
10621 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10622 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10623
10624 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10625
10626 * dwarf2read.c (read_structure_type): Rename from
10627 read_structure_scope. Don't create a symbol or call process_die.
10628 Return immediately if die->type is set. Call read_type_die before
10629 dwarf2_add_member_fn.
10630 (process_structure_scope): New function.
10631 (read_enumeration_type, process_enumeration_scope): New functions,
10632 broken out from read_enumeration. Don't create the enumeration
10633 type if it has already been created.
10634 (read_enumeration): Removed.
10635 (process_die): Call read_structure_type, process_structure_scope,
10636 read_enumeration_type, and process_enumeration_scope. Just call
10637 new_symbol for base and subrange types. Add a comment about other
10638 type dies.
10639 (read_type_die): Call read_enumeration_type.
10640 (add_partial_structure, new_symbol): Update comments.
10641
10642 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10643
10644 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10645
10646 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10647
10648 * tui/tui-win.h (tui_get_cmd_list): Declare.
10649 * tui/tui-win.c (tui_command): New function.
10650 (tui_get_cmd_list): New function.
10651 (_initialize_tui_win): Moved initialization of tui command in
10652 tui_get_cmd_list.
10653
10654 * tui/tui-data.c (init_content_element): Setup new data members.
10655 (init_win_info): Likewise.
10656 (free_content_elements): Free it.
10657 * tui/tui-data.h (struct tui_data_element): Store the register
10658 content to print.
10659 (struct tui_data_info): Keep the current register group.
10660
10661 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10662
10663 * tui/tui-regs.h (tui_show_registers): Update prototype.
10664 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10665 (tui_resize_all): No need to calculate anything for register window.
10666 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10667 (tui_set_register_element, tui_set_general_regs_content): Remove.
10668 (tui_set_special_regs_content): Remove.
10669 (tui_set_general_and_special_regs_content): Remove.
10670 (tui_set_float_regs_content): Remove.
10671 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10672 (tui_set_regs_content): Remove.
10673 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10674 (tui_v_show_registers_command_support): Remove.
10675 (tui_show_registers): Use a reggroup to specify the registers to show.
10676 (tui_show_register_group): New function.
10677 (tui_display_registers_from): Compute the layout of register window
10678 and refresh with new API; be sure to delete old register windows.
10679 (tui_check_register_values): Update to use tui_get_register and
10680 tui_display_data.
10681 (tui_display_register): Just refresh the register window part.
10682 (tui_register_format): Format registers and save in tui_data_element.
10683 (tui_get_register): New to combine tui_reg_value_has_changed and
10684 tui_get_register_raw_value; fix to use the new gdb API.
10685 (tui_show_float_command): Renamed tui_reg_float_command.
10686 (tui_show_general_command): Renamed tui_reg_general_command.
10687 (tui_show_special_command): Renamed tui_reg_system_command.
10688 (_initialize_tui_regs): Remove unused commands.
10689
10690 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10691
10692 * NEWS (New native configurations): Mention OpenBSD/amd64.
10693
10694 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10695 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10696 Remove defines.
10697 * config/i386/nm-fbsd64.h: Likewise.
10698 * config/i386/nm-obsd.h: Likewise.
10699 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10700 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10701
10702 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10703
10704 * frv-tdep.c (set_variant_scratch_registers): New function.
10705 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10706 New constants.
10707
10708 From Richard Sandiford <rsandifo@redhat.com>:
10709 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10710
10711 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10712
10713 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10714 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10715 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10716 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10717 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10718 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10719 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10720 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10721 definitions from frv-tdep.c to frv-tdep.h.
10722
10723 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10724
10725 Add shared library support for FR-V FDPIC ABI:
10726 * Makefile.in (solib-frv.o): Add dependencies.
10727 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10728 New functions.
10729 (frv_push_dummy_call): Add support for FDPIC ABI.
10730 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10731 for FDPIC ABI.
10732 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10733 (frv_fdpic_find_canonical_descriptor): Declare.
10734 * solib-frv.c: New file.
10735 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10736 * config/frv/tm-frv.h (solib.h): Include.
10737
10738 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10739
10740 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10741 (frv-tdep.o): Update dependencies.
10742 * frv-tdep.h: New file.
10743 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10744 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10745 constants.
10746 (struct gdbarch_tdep): Add new member ``frv_abi''.
10747 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10748 functions.
10749 (new_variant): Set ``frv_abi'' field.
10750 (gdb_arch_init): Detect FDPIC executables.
10751
10752 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10753
10754 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10755 wrapper.
10756
10757 2004-03-11 Andrew Cagney <cagney@redhat.com>
10758
10759 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10760
10761 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10762
10763 * solist.h (master_so_list): New function.
10764 * solib.c (master_so_list): Likewise.
10765 * solib-svr4.c (enable_break): Iterate over so_list entries
10766 obtained from master list instead of entries obtained directly
10767 via svr4_current_sos().
10768
10769 2004-03-10 Ben Elliston <bje@gnu.org>
10770
10771 * MAINTAINERS: Update my mail address.
10772
10773 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10774
10775 * remote-m32r-sdi.c: Support hardware watchpoint.
10776
10777 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * user-regs.c: Update copyright years.
10780 (struct user_regs): Rename to gdb_user_regs.
10781 (append_user_reg, builtin_user_regs, user_regs_init)
10782 (user_reg_add, user_reg_map_name_to_regnum)
10783 (usernum_to_user_reg): Update.
10784
10785 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10786
10787 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10788 (skip_children): New functions.
10789 (locate_pdi_sibling): Call skip_children.
10790
10791 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10794 * gdbtypes.c (check_typedef): Update comments.
10795
10796 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10799 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10800 pointer. Update comment about comp_unit_head.
10801 (struct abbrev_info): Shorten two int flags.
10802 (dwarf_alloc_abbrev): Take a CU argument.
10803 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10804 each time through the loop. Update cleanup argument.
10805 (psymtab_to_symtab_1): Update cleanup call.
10806 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10807 abbrev_obstack.
10808 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10809 Just call obstack_free and clear the pointer.
10810
10811 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10812
10813 * infrun.c (handle_inferior_event): Remove short-circuit code for
10814 events in a different thread.
10815
10816 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10817
10818 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10819 print the whole transfer.
10820 (initialize_targets): Update description of "set debug target".
10821
10822 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10823
10824 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10825
10826 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10827
10828 * MAINTAINERS (write after approval): Add myself.
10829
10830 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10831
10832 * sh-tdep.c (sh_print_registers_info): Use for loop.
10833 Don't skip multiple registers when a float register is encountered.
10834
10835 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10836
10837 Fix PR tdep/1291.
10838 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10839 to official SH documentation.
10840
10841 2004-03-07 Andrew Cagney <cagney@redhat.com>
10842
10843 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10844 unused function.
10845
10846 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10849 (arm_get_next_pc): Handle BX and BLX.
10850
10851 2004-03-07 Andrew Cagney <cagney@redhat.com>
10852
10853 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10854 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10855 HPPA_SP_REGNUM.
10856 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10857 (hppa_target_read_fp): Delete.
10858 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10859 register_virtual_size, max_register_raw_size,
10860 max_register_virtual_size, register_byte, register_size,
10861 target_read_fp, fp_regnum, and register_bytes. Set register_type
10862 instead of register_virtual_type.
10863 (hppa32_register_type, hppa64_register_type): Replace
10864 hppa32_register_virtual_type and hppa64_register_virtual_type.
10865 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10866 (HPPA_FP_REGNUM): Define.
10867
10868 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10869
10870 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10871 (pa_do_registers_info): Delete.
10872 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10873 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10874 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10875
10876 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10877 GDB_TARGET_IS_HPPA code.
10878 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10879 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10880 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10881 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10882 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10883 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10884 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10885 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10886 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10887 (hppa_frameless_function_invocation, hppa64_store_return_value)
10888 (hppa_store_struct_return, hppa64_extract_return_value)
10889 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10890 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10891 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10892 (find_proc_framesize, deposit_21, restore_pc_queue)
10893 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10894 (rp_saved, pc_in_linker_stub): Delete.
10895
10896 Unconditionally enable 64-bit frame and ABI code.
10897 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10898 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10899 push_dummy_frame, fix_call_dummy, push_arguments,
10900 call_dummy_location, extract_return_value, use_struct_convention,
10901 store_return_value, store_struct_return, saved_pc_after_call,
10902 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10903 frame_chain, frame_chain_valid, frameless_function_invocation,
10904 frame_saved_pc, and pop_frame.
10905
10906 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10907 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10908 (hppa_gdbarch_init): Do not set PC_REGNUM.
10909
10910 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10911
10912 * config/alpha/tm-fbsd.h: Remove file.
10913 * config/alpha/fbsd.mt: Tweak comment.
10914 (TM_FILE): Set to tm-alpha.h.
10915
10916 2004-03-05 Andrew Cagney <cagney@redhat.com>
10917
10918 * infrun.c (step_over_function): When non-legacy code, and no
10919 step_frame_id, use the unwinder to get the caller's frame ID.
10920
10921 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10922
10923 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10924 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10925 bfd_arch_unknown. Adjust comment.
10926
10927 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10928 * i386obsd-tdep.c: Correct spelling in comment.
10929 * i386nbsd-tdep.c: Correct spelling in comment.
10930 * sparc-tdep.c: Correct spelling in comments.
10931
10932 2004-03-05 David Carlton <carlton@kealia.com>
10933
10934 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10935 bug.
10936
10937 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10938
10939 * sparc-tdep.c: Fix typo in comment.
10940
10941 2004-03-04 J. Brobecker <brobecker@gnat.com>
10942
10943 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10944
10945 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * dwarf2read.c: Add comment describing memory lifetimes.
10948 (struct dwarf2_pinfo): Update comment.
10949 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10950 (read_enumeration, new_symbol): Don't use obsavestring.
10951
10952 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10953
10954 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10955 instead of amd64_fill_fxsave.
10956 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10957 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10958
10959 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10960 Reorganize code a bit.
10961
10962 2004-03-04 Orjan Friberg <orjanf@axis.com>
10963
10964 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10965 when the frame pointer is pushed. Don't set the frame pointer's
10966 address on the stack unless it's actually located there.
10967 Set the SRP's address on the stack correctly when the PC is still in
10968 the prologue.
10969 (cris_return_value): New function.
10970 (cris_gdbarch_init): Clear deprecated store_return_value,
10971 extract_return_value.
10972
10973 2004-03-02 Jim Blandy <jimb@redhat.com>
10974
10975 * stabsread.c (reg_value_complaint): The maximum register number
10976 is one less than the number of registers.
10977
10978 2004-03-02 Andrew Cagney <cagney@redhat.com>
10979
10980 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10981 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10982 trailing comma and redundant assignment of I386_ST0_REGNUM.
10983 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10984 32-bit segment registers.
10985
10986 2004-03-01 Andrew Cagney <cagney@redhat.com>
10987
10988 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10989 use frame_relative_level and get_next_frame.
10990
10991 2004-02-29 Andrew Cagney <cagney@redhat.com>
10992
10993 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10994 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10995 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10996 Delete macro.
10997
10998 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * inflow.c (terminal_inferior): Don't give up the terminal if we
11001 previously couldn't get the inferior's terminal state.
11002
11003 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11006 PC_REGNUM.
11007
11008 2004-02-28 Andrew Cagney <cagney@redhat.com>
11009
11010 * NEWS: Refer to GDB 6.1.
11011 * README: Refer to GDB 6.1.
11012 * PROBLEMS: Refer to GDB 6.1.
11013
11014 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11015
11016 * thread-db.c (disable_thread_signals): Remove unused function.
11017
11018 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11019
11020 * amd64-nat.c: Include "gdb_string.h".
11021 (amd64_collect_native_gregset): Zero-extend the 32-bit
11022 general-purpose registers and %eip.
11023
11024 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11025 * amd64-tdep.c (amd64_collect_fxsave): New function.
11026 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11027
11028 * i387-tdep.h: Update copyright year.
11029 (i387_collect_fxsave): New prototype.
11030 * i387-tdep.c: Update copyright year.
11031 (i387_collect_fxsave): New function containing most of the code
11032 from i387_fill_fxsave.
11033 (i387_fill_fxsave): Call i387_collect_fxsave.
11034
11035 2004-02-28 Andrew Cagney <cagney@redhat.com>
11036
11037 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11038 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11039
11040 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11041
11042 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11043
11044 2004-02-28 Andrew Cagney <cagney@redhat.com>
11045
11046 * utils.c: Use "", instead of <>, to include readline.
11047 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11048 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11049 * source.c, solib.c, exec.c, event-top.c: Ditto.
11050 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11051 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11052 * Makefile.in: Update all dependencies.
11053 (readline_tilde_h, readline_history_h): Define.
11054 (readline_headers): Delete.
11055
11056 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11057
11058 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11059 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11060 "config/i386/tm-lx64.h".
11061
11062 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11063 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11064 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11065
11066 2004-02-28 Andrew Cagney <cagney@redhat.com>
11067
11068 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11069
11070 * breakpoint.c (_initialize_breakpoint): Use
11071 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11072 Add help to show command.
11073
11074 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11075
11076 * i386-nat.c: Reformat to be closer to coding standards.
11077 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11078 `retval'. Make variables `align' and `size' local to while-loop.
11079 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11080 (_initialize_i386_nat): New prototype.
11081
11082 * tui/tui.c: Include <readline/readline.h> instead of
11083 "readline/readline.h". Include it after <term.h> and
11084 "gdb_curses.h".
11085
11086 2004-02-27 Andrew Cagney <cagney@redhat.com>
11087
11088 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11089 the new frame unwind code.
11090 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11091 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11092 PCOQ_HEAD_REGNUM.
11093
11094 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11095 "return_value" and "push_dummy_call".
11096 (hppa32_use_struct_convention): Delete unused function.
11097 (hppa32_store_return_value): Delete unused function.
11098 (hppa32_extract_return_value): Delete unused function.
11099 (hppa32_stack_align): Delete function.
11100
11101 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11102
11103 * coffread.c (enter_linenos): Don't let rawptr reference memory
11104 outside linetab[]'s limits.
11105
11106 2004-02-27 Andrew Cagney <cagney@redhat.com>
11107
11108 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11109 inferior stack space - the stack needs to grow upwards.
11110 (hppa32_frame_align): New function.
11111 (hppa64_frame_align): Replace hppa_frame_align.
11112 (hppa_gdbarch_init): Update.
11113
11114 2004-02-26 Orjan Friberg <orjanf@axis.com>
11115
11116 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11117 (dwarf2-frame.h): Include.
11118 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11119 Remove static variables related to ABI setting.
11120 (struct gdbarch_tdep): Remove cris_abi member.
11121 (struct frame_extra_info): Remove.
11122 (cris_unwind_cache, stack_item): New structs.
11123 (cris_frame_unwind, cris_frame_base): New variables.
11124 (push_stack_item, pop_stack_item)
11125 (cris_frame_unwind_cache, cris_frame_this_id)
11126 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11127 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11128 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11129 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11130 (cris_reg_struct_has_addr): New functions.
11131 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11132 (cris_frame_saved_pc, cris_saved_pc_after_call,
11133 (cris_store_struct_return, cris_frameless_function_invocation)
11134 (cris_pop_frame, cris_skip_prologue_main)
11135 (cris_abi_original_store_return_value)
11136 (cris_abi_v2_store_return_value)
11137 (cris_abi_original_extract_return_value)
11138 (cris_abi_v2_extract_return_value)
11139 (cris_abi_original_reg_struct_has_addr)
11140 (cris_abi_v2_reg_struct_has_addr)
11141 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11142 (cris_push_return_address, cris_abi_update): Remove.
11143 (_initialize_cris_tdep): Remove ABI command.
11144 (cris_dump_tdep): Ditto.
11145 (cris_gdbarch_init): Remove ABI command.
11146 Set store_return_value, extract_return_value, push_dummy_code,
11147 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11148 frame_unwind_append_sniffer, frame_base_set_default.
11149 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11150 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11151 sizeof_call_dummy_words, get_saved_register, push_return_address,
11152 pop_frame, store_struct_return, frame_init_saved_regs,
11153 init_extra_frame_info, frameless_function_invocation, frame_chain,
11154 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11155 dummy_write_sp.
11156
11157 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11158
11159 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11160 * valprint.c (print_hex_chars): Change from static to external.
11161 (print_char_chars): New function.
11162 * printcmd.c (print_scalar_formatted): For integer and enum types
11163 that are longer than LONGEST, perform processing via appropriate
11164 print_*_chars routines.
11165
11166 2004-02-26 Andrew Cagney <cagney@redhat.com>
11167
11168 * Makefile.in: Update dependencies.
11169 Changes from Ulrich Weigand,
11170 * s390-tdep.c: Include "dwarf2-frame.h".
11171 (s390_dwarf2_frame_init_reg): New function.
11172 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11173 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11174
11175 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11176
11177 * breakpoint.c (pending_break_support): New setting variable.
11178 (break_command_1): Account for pending_break_support setting
11179 when creating pending breakpoints.
11180 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11181 (_initialize_breakpoint): Add "set breakpoint pending" and
11182 "show breakpoint pending" commands.
11183
11184 2004-02-26 Andrew Cagney <cagney@redhat.com>
11185
11186 Fix PR i18n/1570.
11187 * charset.c (backslashable, backslashed, represented): Remove 'e'
11188 from list of escaped characters, not part of ISO-C.
11189
11190 2004-02-25 J. Brobecker <brobecker@gnat.com>
11191
11192 From Peter Schauer <schauer@pdf.de>:
11193 * tui/tui.c: Move system header includes after local includes.
11194 Fixes a build failure on solaris systems.
11195
11196 2004-02-25 J. Brobecker <brobecker@gnat.com>
11197
11198 * configure.in: Refine the previous change.
11199 * configure: Regenerate.
11200
11201 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11202
11203 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11204 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11205 "amd64-tdep.h" instead of "x86-64-tdep.h".
11206 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11207 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11208 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11209 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11210 and "x86-64-tdep.c".
11211 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11212 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11213 and "x86-64-tdep.c".
11214 * amd64bsd-nat.c: Update copyright year.
11215 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11216 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11217 "x86-64-tdep.h".
11218 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11219 "x86-64-tdep.h".
11220 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11221 "x86-64-tdep.h".
11222 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11223 "x86-64-tdep.h".
11224 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11225 "x86-64-tdep.h".
11226 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11227 "x86-64-tdep.h".
11228 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11229 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11230 * Makefile.in (amd64_linux_tdep_h): Renamed from
11231 x86_64_linux_tdep_h.
11232 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11233 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11234 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11235 (amd64obsd-tdep.o): Update dependencies.
11236 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11237 dependencies.
11238 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11239 dependencies.
11240 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11241 amd64-linux-nat.c amd64-linux-tdep.c.
11242 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11243 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11244 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11245 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11246 amd64-tdep.o and amd64-linux-tdep.o.
11247 (TM_FILE): Set to tm-linux64.h.
11248 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11249 (NAT_FILE): Set to nm-linux64.h.
11250 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11251 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11252 amd64-tdep.o.
11253 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11254 amd64-tdep.o.
11255 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11256 amd64-tdep.o.
11257
11258 2004-02-25 Roland McGrath <roland@redhat.com>
11259
11260 * remote.c (remote_protocol_qPart_auxv): New variable.
11261 (init_all_packet_configs): Initialize it.
11262 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11263 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11264 (show_remote_cmd): Call it.
11265 (_initialize_remote): Initialize commands.
11266 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11267 service TARGET_OBJECT_AUXV requests.
11268
11269 2004-02-25 J. Brobecker <brobecker@gnat.com>
11270
11271 * configure.in: Make sure that the wborder function is available.
11272 Otherwise, search for it in the cur_colr library.
11273 * configure: Regenerate.
11274
11275 2004-02-25 Andrew Cagney <cagney@redhat.com>
11276
11277 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11278
11279 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11280
11281 * config/i386/tm-x86-64linux.h: Tweak comments.
11282
11283 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11284
11285 * MAINTAINERS: Add self to write-after-approval list.
11286
11287 2004-02-25 Andrew Cagney <cagney@redhat.com>
11288
11289 PR cli/1566. Problem found, and fix suggested by David Allan.
11290 * cli/cli-script.c (execute_control_command): Unconditionally
11291 install a cleanup. Default "ret" to "invalid_control". Use
11292 "break" instead of "return" to escape from the switch.
11293
11294 2004-02-24 J. Brobecker <brobecker@gnat.com>
11295
11296 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11297 with the lines macro defined in term.h on AiX.
11298 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11299 a collision with the label_width macro defined in term.h on AiX.
11300
11301 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11302
11303 Committed by Kevin Buettner <kevinb@redhat.com>.
11304
11305 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11306 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11307 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11308 instead of ia64_write_pc().
11309 * ia64-linux-tdep.c (regcache.h): Include.
11310 (ia64_linux_write_pc): New function.
11311
11312 2004-02-23 Roland McGrath <roland@redhat.com>
11313
11314 * auxv.c (info_auxv_command): Fix typos in error messages.
11315
11316 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11317
11318 * x86-64-tdep.h: Tweak comment.
11319 (enum amd64_regnum): New.
11320 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11321 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11322 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11323 (X86_64_XMM1_REGNUM): Removed.
11324 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11325 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11326 prototypes for renamed functions.
11327 * x86-64-tdep.c: Fix typo.
11328 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11329 register numbers.
11330 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11331 Use constants from `enum amd64_regnum' for register numbers.
11332 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11333 (amd64_analyze_prologue, amd64_frame_cache,
11334 amd64_sigtramp_frame_cache): Use constants from `enum
11335 amd64_regnum' for register numbers.
11336 (amd64_supply_fpregset): Adjust for renamed functions.
11337 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11338 `enum amd64_regnum' for register numbers.
11339 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11340 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11341 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11342 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11343 (amd64_linux_fill_gregset): Adjust for renamed macros.
11344 (fetch_core_registers): Adjust for renamed functions.
11345 (amd64_linux_init_abi): Adjust for renamed functions.
11346 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11347 renamed functions.
11348 * amd64-nat.c: Adjust for renamed macros.
11349 * amd64bsd-nat.c (fetch_inferior_registers)
11350 (store_inferior_registers): Use constants from `enum amd64_regnum'
11351 for register numbers. Adjust for renamed variables.
11352 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11353 renamed variables.
11354 (_initialize_amd64fbsd_nat): Use constants from `enum
11355 amd64_regnum' for register numbers.
11356 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11357 `enum amd64_regnum' for register numbers.
11358 (amd64fbsd_init_abi): Adjust for renamed functions.
11359 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11360 `enum amd64_regnum' for register numbers.
11361 (amd64nbsd_init_abi): Adjust for renamed functions.
11362 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11363 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11364 `enum amd64_regnum' for register numbers.
11365 (amd64obsd_init_abi): Adjust for renamed functions.
11366 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11367
11368 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11369
11370 * breakpoint.c (print_one_breakpoint): Do not output spaces
11371 after printing <PENDING> for a pending breakpoint.
11372
11373 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11374
11375 * printcmd.c (print_scalar_formatted): Initialize val_long
11376 to remove compiler warning message.
11377
11378 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11379
11380 * defs.h (nquery, yquery): New prototypes.
11381 * breakpoint.c (break_command_1): Use new nquery interface.
11382 * utils.c (defaulted_query, nquery, yquery): New functions.
11383
11384 2004-02-23 Andrew Cagney <cagney@redhat.com>
11385
11386 * hppa-tdep.c (hppa_frame_align): New function.
11387 (hppa32_push_dummy_call): New function.
11388 (hppa64_push_dummy_call): New function.
11389 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11390 disabled.
11391
11392 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11393 FIX_CALL_DUMMY when push_dummy_call is available.
11394 (call_function_by_hand, push_dummy_code): Ditto.
11395
11396 2004-02-22 Andrew Cagney <cagney@redhat.com>
11397
11398 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11399 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11400 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11401 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11402 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11403 call_dummy_location to ON_STACK.
11404
11405 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11406
11407 * x86-64-linux-tdep.c: Tweak comment.
11408 (amd64_linux_supply_gregset): Renamed from
11409 x86_64_linux_supply_gresget.
11410 (amd64_linux_fill_gregset): Renamed from
11411 x86_64_linux_fill_gregset.
11412 (fetch_core_registers): Adjust for renamed functions.
11413 (amd64_core_fns): Renamed from x86_64_core_fns.
11414 (amd64_linux_sigtramp_start): Renamed from
11415 x86_64_linux_sigtramp_start.
11416 (amd64_linux_pc_in_sigtramp): Renamed from
11417 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11418 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11419 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11420 (amd64_linux_sigcontext_addr): Renamed from
11421 x86_64_linux_sigcontext_addr.
11422 (amd64_linux_sc_reg_offset): Renamed from
11423 x86_64_linux_sc_reg_offset.
11424 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11425 Adjust for renamed functions and variables.
11426 (_initialize_amd64_linux_tdep): Renamed from
11427 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11428 variables.
11429 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11430 Adjust for renamed functions.
11431
11432 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11433 from x86_64_linux_gregset64_reg_offset.
11434 (amd64_linux_gregset32_reg_offset): Rename from
11435 x86_64_linux_gregset64_reg_offset.
11436 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11437 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11438 (amd64_linux_dr_set_control): Renamed from
11439 x86_64_linux_dr_set_control. Adjust for renamed functions.
11440 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11441 Adjust for renamed functions.
11442 (amd64_linux_dr_reset_addr): Renamed from
11443 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11444 (amd64_linux_dr_get_status): Renamed from
11445 x86_64_linux_dr_get_status. Adjust for renamed functions.
11446 (_initialize_amd64_linux_nat): Renamed from
11447 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11448 functions.
11449 * config/i386/nm-x86-64linux.h: Update copyright year.
11450 Adjust for renamed functions.
11451
11452 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11453 amd64fbsd_sigtramp_start.
11454 (amd64fbsd_sigtramp_end_addr): Renamed from
11455 amd64fbsd_sigtramp_end.
11456 (amd64fbsd_init_abi): Adjust for renamed variables.
11457 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11458 variables.
11459 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11460 amd64fbsd_sigtramp_start.
11461 (amd64fbsd_sigtramp_end_addr): Renamed from
11462 amd64fbsd_sigtramp_end.
11463
11464 2004-02-22 Andrew Cagney <cagney@redhat.com>
11465
11466 * hppa-tdep.c (hppa32_return_value): New function.
11467 (hppa64_return_value): New function.
11468 (hppa_gdbarch_init): Set return_value; keep disabled.
11469
11470 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11471 struct-return and inferior function call methods.
11472
11473 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11474 "frame-base.h".
11475 (struct hppa_frame_cache): Define.
11476 (hppa_frame_cache, hppa_frame_this_id): New functions.
11477 (hppa_frame_prev_register): New function.
11478 (hppa_frame_unwind, hppa_frame_base): New variables.
11479 (hppa_frame_unwind_sniffer): New function.
11480 (hppa_frame_base_address, hppa_unwind_pc): New function.
11481 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11482 sniffer, and frame base sniffer; keep disabled.
11483 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11484 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11485
11486 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11487 to predicates for "seriously old code".
11488
11489 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11490 runtime if(0).
11491
11492 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11493 unsigned.
11494 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11495
11496 * config/pa/tm-hppa.h: Update copyright.
11497 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11498 (deprecated_init_frame_pc_default): Delete declaration.
11499 (hppa_frame_init_saved_regs): Delete declaration.
11500 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11501 * hppa-tdep.c: Include "arch-utils.h".
11502 (hppa_gdbarch_init): Set deprecated init_frame_pc
11503 and deprecated frame_init_saved_regs.
11504 (hppa_frame_init_saved_regs): Make static.
11505
11506 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11507
11508 Remove old 386BSD support.
11509 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11510 * configure.host: Remove i[34567]86-*-bsd*.
11511 * configure.tgt: Remove i[34567]86-*-bsd*.
11512 * i386b-nat.c: Removed.
11513 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11514 (i386b-nat.o): Remove dependencies.
11515
11516 * config/i386/i386bsd.mh: Removed.
11517 * config/i386/i386bsd.mt: Removed.
11518 * config/i386/nm-i386bsd.h: Removed.
11519 * config/i386/tm-i386bsd.h: Removed.
11520 * config/i386/xm-i386bsd.h: Removed.
11521
11522 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11523
11524 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11525 (amd64fbsd_init_abi): Set link map offsets.
11526 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11527 (amd64nbsd_init_abi): Set link map offsets.
11528 * amd64obsd-tdep.c: Include "solib-svr4.h".
11529 (amd64obsd_init_abi): Set link map offsets.
11530 * i386fbsd-tdep.c: Include "solib-svr4.h".
11531 (i386fbsd_init_abi): Set link map offsets.
11532 * i386nbsd-tdep.c: Include "solib-svr4.h".
11533 (i386nbsdelf_init_abi): Set link map offsets.
11534 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11535 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11536 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11537 solib-legacy.o and core-aout.o. Reformat.
11538 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11539 solib-svr4.o, solib-legacy.o. Reformat.
11540 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11541 * config/i386/nbsdelf.mh: Reformat.
11542 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11543 solib-svr4.o, solib-legacy.o and corelow.o.
11544 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11545 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11546 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11547 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11548 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11549 (TM_FILE): Set to tm-fbsd.h.
11550 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11551 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11552 solib-svr4.o.
11553 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11554 solib-svr4.o.
11555 (TM_FILE): Set to nm-nbsd.h.
11556 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11557 Simplify shared library support. Don't include "elf/common.h".
11558 (SVR4_SHARED_LIBS): Don't define.
11559 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11560 "solib.h".
11561 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11562 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11563 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11564 Don't include "i386/tm-i386.h". Include "solib.h".
11565 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11566 Don't include "i386/tm-i386.h".
11567 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11568 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11569 Include "i386/xm-i386.h".
11570 (HOST_LONG_DOUBLE_FORMAT): Remove.
11571
11572 Fix OpenBSD/i386 sigtramp recognition.
11573 * i386-tdep.h: Update copyright year.
11574 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11575 (i386bsd_sigtramp_end): New prototypes.
11576 (i386fbsd_sigtramp_start_addr): Renamed from
11577 i386fbsd_sigtramp_start.
11578 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11579 (i386obsd_sigtramp_start_addr): Renamed from
11580 i386obsd_sigtramp_start.
11581 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11582 * i386bsd-tdep.c: Update copyright year.
11583 (i386bsd_pc_in_sigtramp): Make public.
11584 * i386fbsd-nat.c: Update copyright year.
11585 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11586 * i386fbsd-tdep.c: Update copyright year.
11587 (i386fbsd_sigtramp_start_addr): Renamed from
11588 i386fbsd_sigtramp_start.
11589 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11590 (i386fbsdaout_init_abi): Adjust for renamed variables.
11591 * i386obsd-nat.c: Update copyright year.
11592 (_initialize_i386obsd_nat): Adjust for renamed variables.
11593 * i386obsd-tdep.c: Include "target.h".
11594 (i386obsd_page_size): New variable.
11595 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11596 (i386obsd_sigtramp_end): New functions.
11597 (i386obsd_sigtramp_start_addr): Renamed from
11598 i386obsd_sigtramp_start.
11599 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11600 (i386obsd_init_abi): Adjust for renamed variables. Set
11601 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11602 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11603
11604 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11605 trampoline change in OpenBSD kernel.
11606
11607 * amd64-nat.c: Update copyright year.
11608 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11609 architecture from REGCACHE.
11610
11611 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11612 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11613
11614 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11615
11616 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11617 i[34567]86-*-openbsd3.[0-3].
11618 * config/i386/obsdaout.mh: New file.
11619
11620 * config/i386/obsd.mh (MH_FLAGS): Remove.
11621
11622 Fix PR build/1549.
11623 * i386obsd-tdep.c: Update copyright years. Include
11624 "solib-svr4.h".
11625 (i386obsd_init_abi): Don't set regset_from_core_section here.
11626 (i386obsd_aout_init_abi): New function. Set
11627 regset_from_core_section here.
11628 (i386obsd_elf_init_abi): New function.
11629 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11630 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11631 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11632 (TM_FILE): Set to tm-nbsd.h.
11633
11634 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11635 solib-sunos.o.
11636
11637 * solib-svr4.h: Update copyright year.
11638 (svr4_ilp32_fetch_link_map_offsets)
11639 (svr4_lp64_fetch_link_map_offsets): New prototype.
11640 * solib-svr4.c: Update copyright year.
11641 (svr4_ilp32_fetch_link_map_offsets)
11642 (svr4_lp64_fetch_link_map_offsets): New function.
11643
11644 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11645
11646 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11647 to the partial symbol table.
11648
11649 2004-02-20 J. brobecker <brobecker@gnat.com>
11650
11651 * PROBLEMS: Add description of problem documented under gdb/1560.
11652
11653 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11654
11655 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11656 comments.
11657 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11658 functions.
11659 (amd64obsd_init_abi): Reorder initializations. Use
11660 amd64obsd_r_reg_offset to initialize the general-purpose register
11661 set details. Set regset_from_core_section.
11662 (_initialize_amd64obsd_tdep): Rename from
11663 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11664 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11665 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11666
11667 * NEWS (New native configurations): Mention OpenBSD/alpha.
11668 * configure.tgt: Add alpha*-*-openbsd*.
11669 * configure.host: Add alpha*-*-openbsd*.
11670 * alphanbsd-tdep.c: Update copyright year.
11671 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11672
11673 2004-02-20 Andrew Cagney <cagney@redhat.com>
11674
11675 Fix PR tdep/1372.
11676 * configure.tgt: Delete target "none-*-*".
11677 * configure.host: Delete host "none-*-*".
11678 * config/none/none.mh: Delete file.
11679 * config/none/none.mt: Delete file.
11680 * config/none/xm-none.h: Delete file.
11681 * config/none/tm-none.h: Delete file.
11682 * config/none/nm-none.h: Delete file.
11683
11684 2004-02-19 Fred Fish <fnf@redhat.com>
11685
11686 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11687 cache->uses_fp prior to setting it.
11688
11689 2004-02-19 Fred Fish <fnf@redhat.com>
11690
11691 Fix for PR breakpoint/1558.
11692 * sh-tdep.c (IS_JSR): New macro.
11693 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11694
11695 2004-02-19 Jim Blandy <jimb@redhat.com>
11696
11697 * findvar.c (value_from_register): Doc fix.
11698
11699 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11700
11701 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11702 type being greater than sizeof of host's LONGEST. Always use
11703 unpack_long() unless format 'f' chosen.
11704
11705 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11706
11707 Committed by Elena Zannoni <ezannoni@redhat.com>
11708
11709 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11710 contains a symbol wich is the best, non-exact match for the given
11711 pc. Update comments.
11712
11713 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11714
11715 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11716 macro, which was part of the now removed Mach 3 port.
11717 * utils.c (request_quit): Ditto.
11718
11719 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11720
11721 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11722 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11723
11724 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11725
11726 Committed by Mark Kettenis <kettenis@gnu.org>.
11727
11728 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11729 Define.
11730
11731 2004-02-18 Andrew Cagney <cagney@redhat.com>
11732
11733 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11734 CONFIG_INSTALL and CONFIG_UNINSTALL.
11735 * configure: Re-generate.
11736 * interps.h (INTERP_TUI): Define.
11737 * Makefile.in: Update dependencies.
11738 (TUI): New macro.
11739 (tui-main.o): Specify dependencies.
11740 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11741 * tui/tui-main.c: New file.
11742
11743 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11744
11745 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11746 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11747 dependencies.
11748 * configure.host: Add x86_64-*-openbsd*.
11749 * configure.tgt: Add x86_64-*-openbsd*.
11750 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11751
11752 * tui/tui.c: Don't include <malloc.h>.
11753
11754 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11755 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11756 amd64nbsd-tdep.c.
11757
11758 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11759 static. Remove extraneous whitespace.
11760 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11761 static.
11762
11763 2004-02-17 Jim Blandy <jimb@redhat.com>
11764
11765 * findvar.c (value_from_register): Doc fix.
11766
11767 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11768
11769 Committed by Jim Blandy <jimb@redhat.com>.
11770
11771 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11772 CORE_ADDR as type for selectors. Correct types for GNU run time
11773 message lookup function to use double indirection.
11774 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11775 * objc-lang.h (lookup_child_selector): Adapt prototype.
11776
11777 * s390-nat.c (SUBOFF): New macro.
11778 (supply_gregset, fill_gregset): Use it to handle debugging
11779 of 32-bit exectuables running under a 64-bit kernel.
11780 * s390-tdep.c: Include "solib-svr4.h".
11781 (s390_svr4_fetch_link_map_offset): New function.
11782 (s390x_svr_fetch_link_map_offset): Likewise.
11783 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11784 * Makefile.in (s390-tdep.o): Update dependencies.
11785
11786 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11787 "frame-unwind.h".
11788 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11789 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11790 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11791 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11792 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11793 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11794 S390_SIGNAL_FRAMESIZE,
11795 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11796 (struct frame_extra_info): Remove.
11797 (s390_memset_extra_info): Remove.
11798 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11799 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11800 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11801 (is_rse): Renamed to ...
11802 (is_rsy): ... this. Support long displacements.
11803 (is_rxe): Renamed to ...
11804 (is_rxy): ... this. Support long displacements.
11805 (compute_x_addr): Support long displacements.
11806 (struct s390_prologue_data): New data type.
11807 (s390_on_stack): Change API to use struct s390_prologue_data.
11808 (s390_store): Reimplement.
11809 (s390_load): New function.
11810 (s390_get_signal_frame_info): Remove.
11811 (s390_get_frame_info): Remove, replace by ...
11812 (s390_analyze_prolog): ... this new function.
11813 (s390_check_function_end): Remove.
11814 (s390_function_start): Remove.
11815 (s390_frameless_function_invokation): Remove.
11816 (s390_is_sigreturn): Remove.
11817 (s390_init_frame_pc_first): Remove.
11818 (s390_init_frame_extra_info): Remove.
11819 (s390_frame_init_saved_regs): Remove.
11820 (s390_frame_saved_pc_nofix): Remove.
11821 (s390_frame_saved_pc): Remove.
11822 (s390_frame_chain): Remove.
11823 (s390_fp_regnum, s390_read_fp): Remove.
11824 (s390_pop_frame_regular, s390_pop_frame): Remove.
11825 (s390_saved_pc_after_call): Remove.
11826 (s390_skip_prologue): Reimplement.
11827 (s390_in_function_epilogue_p): Support long displacements.
11828 (struct s390_unwind_cache): New data structure.
11829 (s390_frame_unwind_cache): New function.
11830 (s390_prologue_frame_unwind_cache): Likewise.
11831 (s390_backchain_frame_unwind_cache): Likewise.
11832 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11833 (s390_frame_unwind): Define.
11834 (s390_frame_sniffer): New function.
11835 (struct s390_pltstub_unwind_cache): New data structure.
11836 (s390_pltstub_frame_unwind_cache): New function.
11837 (s390_pltstub_frame_this_id): Likewise.
11838 (s390_pltstub_frame_prev_register): Likewise.
11839 (s390_pltstub_frame_unwind): Define.
11840 (s390_pltstub_frame_sniffer): New function.
11841 (struct s390_sigtramp_unwind_cache): New data structure.
11842 (s390_sigtramp_frame_unwind_cache): New function.
11843 (s390_sigtramp_frame_this_id): Likewise.
11844 (s390_sigtramp_frame_prev_register): Likewise.
11845 (s390_sigtramp_frame_unwind): Define.
11846 (s390_sigtramp_frame_sniffer): New function.
11847 (s390_frame_base_address, s390_local_base_address): New functions.
11848 (s390_frame_base): Define.
11849 (s390_unwind_pc, s390_unwind_sp): New function.
11850 (s390_push_dummy_call): Use new frame base location.
11851 (s390_unwind_dummy_id): Likewise.
11852 (s390_gdbarch_init): Remove calls to:
11853 set_gdbarch_frameless_function_invocation,
11854 set_gdbarch_deprecated_init_frame_pc,
11855 set_gdbarch_deprecated_frame_chain,
11856 set_gdbarch_deprecated_frame_init_saved_regs,
11857 set_gdbarch_deprecated_pop_frame,
11858 set_gdbarch_deprecated_init_extra_frame_info,
11859 set_gdbarch_deprecated_init_frame_pc_first,
11860 set_gdbarch_deprecated_target_read_fp,
11861 set_gdbarch_deprecated_frame_saved_pc,
11862 set_gdbarch_deprecated_saved_pc_after_call,
11863 set_gdbarch_deprecated_fp_regnum.
11864 Add calls to:
11865 set_gdbarch_in_solib_call_trampoline,
11866 frame_unwind_append_sniffer,
11867 frame_base_set_default,
11868 set_gdbarch_unwind_pc,
11869 set_gdbarch_unwind_sp.
11870 * Makefile.in (s390-tdep.o): Update dependencies.
11871
11872 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11873 (S390_STACK_FRAME_OVERHEAD): Remove.
11874 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11875 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11876 (s390_promote_integer_argument): Remove.
11877 (s390_cannot_extract_struct_value_address): Remove.
11878 (s390_use_struct_convention, s390_store_struct_return): Remove.
11879 (s390_extract_return_value, s390_store_return_value): Remove.
11880 (s390_return_value_convention, s390_return_value): New functions.
11881 (is_float_singleton): Handle typedefs.
11882 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11883 Remove, replace by ...
11884 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11885 s390_function_arg_integer): ... these new functions.
11886 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11887 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11888 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11889 Fill in tdep->abi.
11890 Remove calls to:
11891 set_gdbarch_deprecated_store_struct_return,
11892 set_gdbarch_deprecated_extract_return_value,
11893 set_gdbarch_deprecated_store_return_value,
11894 set_gdbarch_use_struct_convention,
11895 set_gdbarch_extract_struct_value_address,
11896 set_gdbarch_deprecated_pc_in_call_dummy,
11897 set_gdbarch_deprecated_push_arguments,
11898 set_gdbarch_deprecated_save_dummy_frame_tos,
11899 set_gdbarch_deprecated_push_return_address,
11900 set_gdbarch_deprecated_sizeof_call_dummy_words,
11901 set_gdbarch_deprecated_call_dummy_words,
11902 set_gdbarch_deprecated_dummy_write_sp.
11903 Add calls to:
11904 set_gdbarch_push_dummy_call,
11905 set_gdbarch_unwind_dummy_id,
11906 set_gdbarch_return_value.
11907
11908 * config/s390/nm-linux.h: Update comments.
11909 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11910 (STOPPED_BY_WATCHPOINT): Redefine.
11911 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11912 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11913 (s390_stopped_by_watchpoint): Likewise.
11914 (watch_area_cnt): Remove.
11915 * s390-nat.c: Update comments.
11916 (watch_area): Remove typedef.
11917 Global replace watch_area by struct watch_area.
11918 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11919 (s390_stopped_by_watchpoint): Remove pid argument,
11920 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11921 (s390_fix_watch_points): Remove pid argument,
11922 use s390_inferior_tid. Recompute area spanned by watchpoints.
11923 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11924 argument. Reimplement.
11925
11926 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11927 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11928 (FETCH_INFERIOR_REGISTERS): Define.
11929 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11930 core-regset.o.
11931 * config/s390/s390x.mt: Remove.
11932 * config/s390/tm-s390.h: Remove.
11933 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11934 (TARGET_ELF64): Remove.
11935 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11936 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11937 s390*-*-* case; always set gdb_target to s390.
11938 * regformats/reg-s390.dat: Remove control registers.
11939 * regformats/reg-s390x.dat: Likewise.
11940 * s390-tdep.h: New file.
11941 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11942 Include "inferior.h" and "s390-tdep.h".
11943 Remove private definition of offsetof.
11944 (s390_register_u_addr): Remove.
11945 (regmap_gregset, regmap_fpregset): Define.
11946 (supply_gregset, fill_gregset): Reimplement.
11947 (supply_fpregset, fill_fpregset): Likewise.
11948 (s390_inferior_tid): New function.
11949 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11950 (fetch_inferior_registers, store_inferior_registers): Likewise.
11951 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11952 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11953 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11954 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11955 (struct gdbarch_tdep): Define.
11956 (struct s390_register_info): Define.
11957 (s390_register_info): New variable.
11958 (s390_register_name): Reimplement.
11959 (s390_register_type): New function.
11960 (s390_register_raw_size, s390x_register_raw_size): Remove.
11961 (s390_cannot_fetch_register): Remove.
11962 (s390_register_byte): Remove.
11963 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11964 (s390_dwarf_regmap): New variable.
11965 (s390_dwarf_reg_to_regnum): New function.
11966 (s390_stab_reg_to_regnum): Remove.
11967 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11968 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11969 (s390_convert_register_p): Likewise.
11970 (s390_register_to_value, s390_value_to_register): Likewise.
11971 (s390_register_reggroup_p): Likewise.
11972 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11973 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11974 (s390_supply_regset, s390_regset_from_core_section): New functions.
11975 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11976 (S390_FPR_SIZE): Likewise.
11977 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11978 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11979 (S390_NUM_GPRS): Move here from tm-s390.h.
11980 (S390_NUM_FPRS): Likewise.
11981 (s390_in_function_epilogue_p): New function.
11982 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11983 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11984 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11985 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11986 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11987 Remove calls to:
11988 set_gdbarch_deprecated_max_register_raw_size,
11989 set_gdbarch_deprecated_max_register_virtual_size,
11990 set_gdbarch_deprecated_register_byte,
11991 set_gdbarch_cannot_fetch_register,
11992 set_gdbarch_cannot_store_register,
11993 set_gdbarch_deprecated_register_size,
11994 set_gdbarch_deprecated_register_raw_size,
11995 set_gdbarch_deprecated_register_virtual_size,
11996 set_gdbarch_deprecated_register_virtual_type,
11997 set_gdbarch_deprecated_register_bytes.
11998 Add calls to:
11999 set_gdbarch_num_pseudo_regs,
12000 set_gdbarch_register_type,
12001 set_gdbarch_convert_register_p,
12002 set_gdbarch_register_to_value,
12003 set_gdbarch_value_to_register,
12004 set_gdbarch_register_reggroup_p,
12005 set_gdbarch_regset_from_core_section,
12006 set_gdbarch_pseudo_register_read,
12007 set_gdbarch_pseudo_register_write,
12008 set_gdbarch_in_function_epilogue_p.
12009 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12010 (s390_tdep_h): New variable.
12011
12012 2004-02-17 Jim Blandy <jimb@redhat.com>
12013
12014 * findvar.c (value_from_register): If the type has no length, just
12015 return an acceptable value --- don't report an internal error.
12016
12017 * stabsread.c (read_type): If we find any type numbers that are
12018 forward references, complain if the references aren't resolved by
12019 the time we're finished reading.
12020 (cleanup_undefined_types): Make error message more appropriate for
12021 a complaint.
12022
12023 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12024
12025 * Makefile.in (defs_h): Remove dependency on progress_h.
12026 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12027 progress.h.
12028 * main.c (captured_main): Delete use of START_PROGRESS and
12029 END_PROGRESS.
12030
12031 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12032
12033 * objfiles.c (terminate_minimal_symbol_table): Add back
12034 initialization of MSYMBOL_TYPE.
12035
12036 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12037
12038 Committed by Andrew Cagney.
12039 * Makefile.in (ia64_tdep_h): New macro.
12040 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12041 (ia64-tdep.o): Likewise.
12042 * ia64-tdep.h: New file.
12043 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12044 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12045 (ia64_aix_sigcontext_register_address): Likewise.
12046 (ia64_linux_getunwind_table): Delete declaration.
12047 * ia64-linux-tdep.c: Likewise.
12048
12049 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12050
12051 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12052 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12053 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12054
12055 2004-02-17 Andrew Cagney <cagney@redhat.com>
12056
12057 * symtab.c (skip_prologue_using_sal): New function.
12058 * symtab.h (skip_prologue_using_sal): Declare.
12059 * frv-tdep.c: Include "symtab.h".
12060 (skip_prologue_using_sal): Delete function.
12061 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12062 * rs6000-tdep.c (refine_prologue_limit): Mention
12063 skip_prologue_using_sal.
12064 * ia64-tdep.c (refine_prologue_limit): Ditto.
12065 * Makefile.in: Update dependencies.
12066
12067 2004-02-16 Andrew Cagney <cagney@redhat.com>
12068
12069 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12070 START_INFERIOR_TRAPS_EXPECTED.
12071 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12072 START_INFERIOR_TRAPS_EXPECTED.
12073 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12074 Delete macro.
12075 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12076 macro, moved to "nm-osf.h". Update copyright.
12077 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12078 update copyright.
12079
12080 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12081 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12082 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12083 frameless_look_for_prologue.
12084 * frame.h (legacy_frameless_look_for_prologue): Rename
12085 frameless_look_for_prologue.
12086 * gdbarch.h, gdbarch.c: Re-generate.
12087 * sh64-tdep.c (sh64_gdbarch_init): Update.
12088 * sh-tdep.c (sh_gdbarch_init): Update.
12089 * s390-tdep.c (s390_gdbarch_init): Update.
12090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12091 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12092 * m68k-tdep.c (m68k_gdbarch_init): Update.
12093 (delta68_frame_args_address): Update.
12094 * m32r-tdep.c (m32r_gdbarch_init): Update.
12095 * hppa-tdep.c (hppa_gdbarch_init): Update.
12096 * h8300-tdep.c (h8300_gdbarch_init): Update.
12097 * frv-tdep.c (frv_gdbarch_init): Update.
12098 (frv_frameless_function_invocation): Update.
12099 * cris-tdep.c (cris_gdbarch_init): Update.
12100 (cris_frameless_function_invocation): Update.
12101 * avr-tdep.c (avr_gdbarch_init): Update.
12102 * arm-tdep.c (arm_gdbarch_init): Update.
12103 * stack.c (frame_info): Update, call predicate.
12104 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12105 * frame.c (legacy_get_prev_frame): Update, call predicate..
12106 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12107 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12108 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12109 invocation.
12110 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12111 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12112 * vax-tdep.c (vax_gdbarch_init): Ditto.
12113
12114 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12115 function.
12116
12117 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12118
12119 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12120 initializations.
12121
12122 2004-02-16 Andrew Cagney <cagney@redhat.com>
12123
12124 * tui/tui-windata.c: Include "gdb_string.h".
12125 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12126 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12127 * Makefile.in: Update dependencies.
12128
12129 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12130
12131 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12132 * infrun.c: Include "gdb_assert.h".
12133 (singlestep_ptid, saved_singlestep_ptid)
12134 (stepping_past_singlestep_breakpoint): New variables.
12135 (resume): Set singlestep_ptid. Check for singlestep thread
12136 hop.
12137 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12138 (handle_inferior_event): Handle singlestep thread hop.
12139
12140 2004-02-16 Andrew Cagney <cagney@redhat.com>
12141
12142 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12143 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12144 (dwarf2_frame_init_reg): Ditto.
12145
12146 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12147 suggested by Joshua Neuheisel
12148
12149 * configure.in: Always check for curses, including pdcurses.
12150 Warn, instead of error, when no curses are found. Enable TUI when
12151 curses is available.
12152 * configure: Re-generate.
12153
12154 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12155
12156 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12157 sh_sh4_register_convert_to_virtual.
12158 (sh_register_convert_to_raw): Rename from
12159 sh_sh4_register_convert_to_raw.
12160 (sh_pseudo_register_read): Accomodate above name change.
12161 (sh_pseudo_register_write): Ditto.
12162
12163 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12164
12165 * sh-tdep.c (sh_generic_register_name): Remove.
12166 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12167
12168 2004-02-15 Andrew Cagney <cagney@redhat.com>
12169
12170 * configure.in (build_warnings): Add -Wunused-function.
12171 * configure: Re-generate.
12172
12173 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12174 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12175
12176 * procfs.c (procfs_init_inferior): Assume that
12177 START_INFERIOR_TRAPS_EXPECTED is defined.
12178 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12179 * config/ns32k/tm-nbsd.h: Delete file,
12180 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12181
12182 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12183 * config/vax/tm-vax.h: Delete file.
12184
12185 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12186 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12187 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12188 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12189 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12190 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12191 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12192
12193 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12194
12195 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12196 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12197 (struct dwarf2_frame_ops): New.
12198 (dwarf2_frame_default_init_reg): New function, based on
12199 dwarf2_frame_init_reg.
12200 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12201 (dwarf2_frame_init_reg): Call architecture-specific function.
12202 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12203 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12204 instead of dwarf2_frame_data.
12205 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12206 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12207
12208 2004-02-15 Andrew Cagney <cagney@redhat.com>
12209
12210 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12211 register_gdbarch_swap.
12212 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12213 * f-lang.c (_initialize_f_language): Update, use
12214 DEPRECATED_REGISTER_GDBARCH_SWAP.
12215 * remote.c (_initialize_remote): Ditto.
12216 * regcache.c (_initialize_regcache): Ditto.
12217 * parse.c (_initialize_parse): Ditto.
12218 * infrun.c (_initialize_infrun): Ditto.
12219 * mi/mi-main.c (_initialize_mi_main): Ditto.
12220 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12221
12222 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12223 poking .cacheable directly.
12224 * symfile.c (symfile_bfd_open): Ditto.
12225
12226 * Makefile.in: Update all dependencies.
12227
12228 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12229 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12230 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12231 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12232 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12233
12234 2004-02-14 Andrew Cagney <cagney@redhat.com>
12235
12236 * arch-utils.c (legacy_convert_register_p): Check
12237 DEPRECATED_REGISTER_CONVERTIBLE_P.
12238 * findvar.c (value_of_register): Ditto.
12239
12240 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12241 * gdbarch.h, gdbarch.c: Re-generate.
12242 * arch-utils.c (deprecated_register_convertible_not): Delete.
12243 * arch-utils.h (deprecated_register_convertible_not): Delete.
12244 * mi/mi-main.c (get_register): Update. Update copyright.
12245 * infcmd.c (default_print_registers_info): Update.
12246
12247 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12248 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12249 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12250 * gdbarch.h, gdbarch.c: Re-generate.
12251 * frame.c (deprecated_get_next_frame_hack): Delete function.
12252 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12253 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12254 Update.
12255 * infcall.c (call_function_by_hand): Update.
12256
12257 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12258
12259 * symfile.c (init_entry_point_info, entry_point_address): Move
12260 from here...
12261 * objfiles.c (init_entry_point_info, entry_point_address):..to
12262 here.
12263 * symfile.h (init_entry_point_info, entry_point_address): Remove
12264 prototypes.
12265 * objfiles.h (init_entry_point_info, entry_point_address):Add
12266 prototypes.
12267 * cris-tdep.c: Remove include of symfile.h. Add include of
12268 objfiles.h.
12269 * infcall.c: Ditto.
12270 * mcore-tdep.c: Ditto.
12271 * mn10300-tdep.c: Ditto.
12272 * sh64-tdep.c: Ditto.
12273 * v850-tdep.c: Ditto.
12274 * arm-tdep.c: Remove include of symfile.h.
12275 * blockframe.c: Ditto.
12276 * coffread.c: Ditto.
12277 * dbxread.c: Ditto.
12278 * dwarf2read.c: Ditto.
12279 * dwarfread.c: Ditto.
12280 * frv-tdep.c: Ditto.
12281 * ia64-tdep.c: Ditto.
12282 * mdebugread.c: Ditto.
12283 * mipsread.c: Ditto.
12284 * rs6000-tdep.c: Ditto.
12285 * s390-tdep.c: Ditto.
12286 * sh-tdep.c: Ditto.
12287 * xstormy16-tdep.c: Ditto.
12288 * gdbarch.sh: Remove include of symfile.h.
12289 * gdbarch.c: Regenerate.
12290 * solib-irix.c (enable_break): Use entry_point_address().
12291 Add comment about include file.
12292 * xcoffread.c: Add comment about include file.
12293 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12294 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12295 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12296 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12297 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12298
12299 2004-02-13 Andrew Cagney <cagney@redhat.com>
12300
12301 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12302 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12303 copyright.
12304 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12305
12306 2004-02-12 Fred Fish <fnf@redhat.com>
12307
12308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12309 set_gdbarch_store_return_value.
12310
12311 2004-02-12 Andrew Cagney <cagney@redhat.com>
12312
12313 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12314 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12315 (interrupt_query): Ditto.
12316 (ofunc): Delete unused variable.
12317 * cris-tdep.c (cris_abi): Delete unused function.
12318 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12319 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12320 (cris_get_asr_quick_shift_steps): Ditto.
12321 (cris_skip_prologue_frameless_p): Ditto.
12322 * arm-tdep.c (arm_push_return_address): Delete unused function.
12323 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12324 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12325 * s390-tdep.c (s390_function_start): Delete unused function.
12326
12327 2004-02-12 Andrew Cagney <cagney@redhat.com>
12328
12329 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12330 gdbarch.h, gdbarch.c: Re-generate.
12331 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12332 to generic_prologue_frameless_p.
12333 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12334 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12335
12336 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * mips-linux-tdep.c: Include "frame.h".
12339 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12340 (mips_linux_skip_resolver): New functions.
12341 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12342 and set_gdbarch_in_solib_call_trampoline.
12343 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12344 to after set_gdbarch_in_solib_return_trampoline. Only set the
12345 solib hooks to mips16 functions if the OS ABI is unknown.
12346 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12347 including "config/tm-linux.h".
12348 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12349 * Makefile.in (mips-linux-tdep.o): Update.
12350
12351 2004-02-11 David Carlton <carlton@kealia.com>
12352
12353 * linespec.c (decode_compound): Only look for a class symbol when
12354 considering all but the rightmost component.
12355
12356 2004-02-11 Andrew Cagney <cagney@redhat.com>
12357
12358 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12359 abi code are are separatly grouped.
12360
12361 2004-02-11 Andrew Cagney <cagney@redhat.com>
12362
12363 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12364 * gdbarch.h, gdbarch.c: Re-generate.
12365 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12366 * v850-tdep.c (v850_gdbarch_init): Update.
12367 * sh64-tdep.c (sh64_gdbarch_init): Update.
12368 * sh-tdep.c (sh_gdbarch_init): Update.
12369 * s390-tdep.c (s390_gdbarch_init): Update.
12370 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12371 * mips-tdep.c (mips_gdbarch_init): Update.
12372 * mcore-tdep.c (mcore_gdbarch_init): Update.
12373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12374 * m32r-tdep.c (m32r_gdbarch_init): Update.
12375 * ia64-tdep.c (ia64_gdbarch_init): Update.
12376 * hppa-tdep.c (hppa_gdbarch_init): Update.
12377 * h8300-tdep.c (h8300_gdbarch_init): Update.
12378 * frv-tdep.c (frv_gdbarch_init): Update.
12379 * d10v-tdep.c (d10v_gdbarch_init): Update.
12380 * cris-tdep.c (cris_gdbarch_init): Update.
12381 * avr-tdep.c (avr_gdbarch_init): Update.
12382 * arm-tdep.c (arm_gdbarch_init): Update.
12383 * alpha-tdep.c (alpha_gdbarch_init): Update.
12384
12385 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12386
12387 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12388 comma.
12389 (sh_sh4al_dsp_register_name): Ditto.
12390
12391 2004-02-10 Andrew Cagney <cagney@redhat.com>
12392
12393 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12394 (mips_init_frame_pc_first): Delete function.
12395 (mips_frame_saved_pc): Delete function.
12396 (mips_frame_chain): Delete function.
12397 (mips_init_extra_frame_info): Delete function.
12398 (mips_xfer_register): Delete unused variable "reg".
12399 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12400 (mips_n32n64_return_value): Delete unused variable "reg".
12401 (mips_n32n64_return_value): Delete unused variable "pos".
12402 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12403 (mips_o32_return_value): Delete unused variable "pos".
12404 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12405 (mips_print_fp_register): Delete unused variable "namelen"
12406 (mips_print_fp_register): Delete unused variable "flt2"
12407 (get_frame_pointer): Delete function.
12408 (cached_proc_desc): Delete static variable.
12409 (mips_pop_frame): Delete function.
12410 (mips_find_saved_regs): Delete function.
12411 (mips_get_saved_register): Delete function.
12412 (mips_saved_pc_after_call): Delete function.
12413 (SIGFRAME_BASE): Delete macro.
12414 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12415 (SIGFRAME_PC_OFF): Delete macro.
12416 (SIGFRAME_REGSAVE_OFF): Delete macro.
12417 (mips_dump_tdep): Do not print deleted macro definitions.
12418
12419 2004-02-10 Andrew Cagney <cagney@redhat.com>
12420
12421 * Makefile.in (SFILES): Remove explictly listed tui files.
12422 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12423
12424 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12425
12426 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12427 to use paddr functions to format ia64 addresses and long values.
12428 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12429 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12430 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12431 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12432 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12433
12434 2004-02-10 Andrew Cagney <cagney@redhat.com>
12435
12436 * defs.h: Do not include "tui.h".
12437 * gdb_curses.h: New file.
12438 * tui/tui-hooks.h: New file.
12439 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12440 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12441 (tui_initialize_io): Delete declaration.
12442 (tui_initialize_readline: Delete redundant declaration.
12443 (struct tui_point): Delete definition.
12444 * tui/tui-data.h (struct tui_point): Define.
12445 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12446 * utils.c: Include "tui/tui.h".
12447 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12448 * printcmd.c [TUI]: Include "tui/tui.h".
12449 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12450 * tui/tui-command.c: Include "gdb_curses.h".
12451 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12452 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12453 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12454 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12455 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12456 * Makefile.in: Update all dependencies.
12457 (tui_hooks_h, gdb_curses_h): Define.
12458 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12459
12460 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12461
12462 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12463 auxf2. Add comments about some other rarely used fields.
12464
12465 2004-02-10 Andrew Cagney <cagney@redhat.com>
12466
12467 * Makefile.in (init.c): Fix script removing duplicates. Problem
12468 reported by Peter Schauer.
12469
12470 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12471
12472 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12473 obstack_specify_allocation.
12474 * objfiles.c (allocate_objfile): Ditto.
12475 * solib-sunos.c (solib_add_common_symbols)
12476 (allocate_rt_common_objfile): Ditto.
12477 * symfile.c (reread_symbols): Ditto.
12478 * gdb_obstack.h: Add comment.
12479
12480 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12481
12482 * linespec.c (decode_line_1, locate_first_half)
12483 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12484 commented out code.
12485
12486 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12487
12488 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12489 obstack_free.
12490
12491 2004-02-09 Andrew Cagney <cagney@redhat.com>
12492
12493 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12494 fails, try find_pc_section. Fix PR c++/1267.
12495 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12496 instead of find_pc_mapped_section.
12497 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12498 not default to the section containing PC. Fix PR symtab/1519.
12499
12500 2004-02-09 Andrew Cagney <cagney@redhat.com>
12501
12502 * Makefile.in (mips-tdep.o): Update dependencies.
12503 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12504 "trad-frame.h".
12505 (mips_unwind_pc): Return the pseudo PC register.
12506 (mips_unwind_dummy_id): New function.
12507 (mips16_fetch_instruction): New function.
12508 (mips32_fetch_instruction): New function.
12509 (struct mips_frame_cache): Define.
12510 (mips_mdebug_frame_cache): New function.
12511 (mips_mdebug_frame_this_id): New function.
12512 (mips_mdebug_frame_prev_register): New function.
12513 (mips_mdebug_frame_unwind): Define.
12514 (mips_mdebug_frame_sniffer): New function.
12515 (mips_mdebug_frame_base_address): New function.
12516 (mips_mdebug_frame_base): Define.
12517 (mips_mdebug_frame_base_sniffer): New function.
12518 (mips_gdbarch_init): Append unwind and base sniffers. Set
12519 unwind_dummy_id.
12520
12521 2004-02-08 Andrew Cagney <cagney@redhat.com>
12522
12523 * frame.c: Print both the register number and name.
12524
12525 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12526 and a sed into a single sed. Make .c and .o patterns more robust.
12527 (OBS): Delete.
12528 (INIT_FILES): Replace OBS with COMMON_OBS.
12529 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12530
12531 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12532
12533 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12534 the PT_WCOOKIE request.
12535
12536 2004-02-08 Andrew Cagney <cagney@redhat.com>
12537
12538 * mips-tdep.c (mips_unwind_pc): New function.
12539 (mips_gdbarch_init): Set mips_unwind_pc.
12540
12541 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12542 (get_frame_id): Allow the UNKNOWN_FRAME.
12543 (frame_register_unwind, get_frame_type): Ditto.
12544
12545 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12546 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12547 unwind_dummy_id indicates a legacy frame.
12548
12549 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12550 * configure: Re-generate.
12551
12552 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12553 methods.
12554
12555 2004-02-08 Andrew Cagney <cagney@redhat.com>
12556
12557 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12558 makefile macro.
12559 * configure: Re-generate.
12560 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12561 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12562 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12563 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12564 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12565 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12566 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12567 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12568 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12569 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12570
12571 2004-02-07 Andrew Cagney <cagney@redhat.com>
12572
12573 * Makefile.in: Update all dependencies.
12574
12575 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12576 * configure: Re-generate.
12577 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12578 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12579 (COMMON_OBS): Add "main.o" and "annotate.o".
12580 (ANNOTATE_OBS): Delete.
12581 (OBS): Remove ANNOTATE_OBS.
12582 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12583 CONFIG_INITS.
12584 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12585 against CONFIG_OBS and "main.o".
12586 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12587 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12588
12589 * tui/tui-command.c: Include "gdb_string.h", delete register
12590 attribute, use ISO-C function signatures.
12591 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12592 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12593 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12594 * tui/tui.c: Ditto.
12595
12596 * tui/tui-command.c: Change variable and function names to lower
12597 case.
12598 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12599 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12600 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12601 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12602 * tui/tui-winsource.c, tui/tui.c: Ditto.
12603
12604 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12605
12606 * buildsym.c (free_pending_blocks, finish_block)
12607 (record_pending_block, make_blockvector, end_symtab): Replace
12608 symbol_obstack with objfile_obstack.
12609 * coffread.c (process_coff_symbol, coff_read_struct_type)
12610 (coff_read_enum_type): Ditto.
12611 * cp-namespace.c (initialize_namespace_symtab)
12612 (check_one_possible_namespace_symbol): Ditto.
12613 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12614 (dwarf2_symbol_mark_computed): Ditto.
12615 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12616 * elfread.c (elf_symtab_read): Ditto.
12617 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12618 (hpread_read_enum_type, hpread_read_function_type)
12619 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12620 Ditto.
12621 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12622 (java_link_class_type): Ditto.
12623 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12624 (new_symbol): Ditto.
12625 * minsyms.c (install_minimal_symbols): Ditto.
12626 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12627 (terminate_minimal_symbol_table): Replace symbol_obstack with
12628 objfile_obstack.
12629 (free_objfile): Remove freeing of symbol_obstack.
12630 * objfiles.h: Remove symbol_obstack field.
12631 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12632 objfile_obstack.
12633 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12634 symbol_obstack.
12635 (solib_add_common_symbols): Replace symbol_obstack with
12636 objfile_obstack.
12637 * somsolib.c (som_solib_add): Ditto.
12638 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12639 (common_block_start, common_block_end): Ditto.
12640 * symfile.c (reread_symbols): Remove freeing and init of
12641 symbol_obstack.
12642 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12643 * symfile.h: Update comment.
12644 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12645 stats printing.
12646 * symtab.c (symbol_set_names): Replace symbol_obstack with
12647 objfile_obstack.
12648 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12649 Update comments.
12650 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12651 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12652 objfile_obstack.
12653
12654 2004-02-07 Andrew Cagney <cagney@redhat.com>
12655
12656 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12657 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12658 fields and variables.
12659 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12660 (m_beInvisible): Delete macro.
12661 * tui/tui-data.h: Fix case case fields and variables.
12662 (m_genWinPtrIsNull): Delete macro.
12663 (tui_win_list): Rename winList.
12664 (TUI_SRC_WIN): Rename srcWin.
12665 (TUI_DISASM_WIN): Rename disassemWin.
12666 (TUI_DATA_WIN): Rename dataWin.
12667 (TUI_CMD_WIN): Rename cmdWin.
12668 (m_genWinPtrNotNull): Delete macro.
12669 (m_winPtrIsNull): Delete macro.
12670 (m_winPtrNotNull): Delete macro.
12671 (tui_win_is_source_type): Replace m_winIsSourceType
12672 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12673 (tui_win_has_locator): Replace m_hasLocator.
12674 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12675 m_setWinHighlightOff.
12676 * tui/tui-data.c: Update references.
12677 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12678 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12679 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12680 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12681 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12682 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12683 * tui/tui-winsource.c, tui/tui.c: Ditto.
12684
12685 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12686
12687 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12688 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12689 StackGhost.
12690
12691 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12692 variable `i6' to `i7'.
12693 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12694
12695 2004-02-07 Andrew Cagney <cagney@redhat.com>
12696
12697 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12698 (TuiPoint, TuiPointPtr): Ditto.
12699 (TuiStatus, TuiStatusPtr): Ditto.
12700 (TuiWinType, TuiWinTypePtr): Ditto.
12701 (struct tui_point): Rename _TuiPoint.
12702 (tui_get_low_disassembly_address): Rename
12703 tuiGetLowDisassemblyAddress.
12704 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12705 (tuiFree): Delete declaration.
12706 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12707 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12708 * tui/tui.c (tuiFree): Delete function.
12709 * cli/cli-cmds.c (disassemble_command): Update references.
12710 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12711 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12712 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12713 * tui/tui-winsource.c: Ditto.
12714
12715 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12716
12717 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12718 coffstab_build_psymtabs, elfstab_build_psymtabs)
12719 (stabsect_build_psymtabs): Replace psymbol_obstack with
12720 objfile_obstack.
12721 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12722 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12723 Ditto.
12724 * dwarfread.c (scan_compilation_units): Ditto.
12725 * elfread.c (elfstab_offset_sections): Ditto.
12726 * hppa-tdep.c (read_unwind_info): Ditto.
12727 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12728 (hpread_end_psymtab): Ditto.
12729 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12730 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12731 Ditto.
12732 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12733 * objfiles.c (add_to_objfile_sections)
12734 (build_objfile_section_table): Ditto.
12735 (allocate_objfile): Remove init of psymbol_obstack.
12736 (free_objfile): Remove freeing of psymbol_obstack.
12737 * objfiles.h (struct objfile): Remove field
12738 psymbol_obstack. Update comments.
12739 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12740 psymbol_obstack with objfile_obstack.
12741 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12742 psymbol_obstack.
12743 * somread.c (som_symfile_offsets, init_import_symbols)
12744 (init_export_symbols): Replace psymbol_obstack with
12745 objfile_obstack.
12746 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12747 * symfile.c (default_symfile_offsets, syms_from_objfile)
12748 (reread_symbols): Remove freeing and init of psymbol_obstack.
12749 (cashier_psymtab): Update comment.
12750 * symmisc.c (print_objfile_statistics): Don't report stats for
12751 psymbol obstack.
12752 * symtab.h (struct general_symbol_info, struct partial_symtab):
12753 Update comments.
12754 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12755 (xcoff_symfile_offsets): Replace psymbol_obstack with
12756 objfile_obstack.
12757
12758 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12759
12760 * objfiles.h (struct objfile): Add objfile_obstack field.
12761 Remove type_obstack field.
12762
12763 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12764 read_structure_scope read_enumeration, new_symbol): Replace
12765 type_obstack with objfile_obstack.
12766 * dwarfread.c (struct_type, enum_type): Ditto.
12767 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12768 (lookup_fundamental_type): Ditto.
12769 * gdbtypes.h (TYPE_ALLOC): Ditto.
12770 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12771 (hpread_read_doc_function_type, hpread_read_struct_type)
12772 (fix_static_member_physnames, hpread_read_array_type)
12773 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12774 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12775 (java_link_class_type): Ditto.
12776 * mdebugread.c (parse_type): Ditto.
12777 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12778 * solib-sunos.c (solib_add_common_symbols): Ditto.
12779 * stabsread.c (define_symbol, read_type, read_member_functions,
12780 read_cpp_abbrev, read_one_struct_field): Ditto.
12781 * symfile.c (reread_symbols): Ditto.
12782 * symmisc.c (print_objfile_statistics): Ditto.
12783
12784 2004-02-07 Andrew Cagney <cagney@redhat.com>
12785
12786 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12787 (tui_exec_info_content): Rename TuiExecInfoContent.
12788 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12789 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12790 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12791 (TuiList, TuiListPtr): Ditto.
12792 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12793 (TuiDataType, TuiDataTypePtr): Ditto.
12794 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12795 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12796 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12797 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12798 (TuiDataElement, TuiDataElementPtr): Ditto.
12799 (TuiWinElement, TuiWinElementPtr): Ditto.
12800 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12801 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12802 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12803 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12804 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12805 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12806 * tui/tui-command.c, tui/tui-data.c: Update references.
12807 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12808 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12809 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12810 * tui/tui-winsource.c, tui/tui.c: Ditto.
12811
12812 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12813
12814 * dwarf2-frame.h: Update copyright.
12815 (enum dwarf2_frame_reg_rule): New.
12816 (struct dwarf2_frame_state_reg): New.
12817 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12818 * dwarf2-frame.c: Update copyright.
12819 (enum dwarf2_reg_rule): Remove.
12820 (struct dwarf2_frame_state): Remove defenition of `struct
12821 dwarf2_frame_state_reg'.
12822 (read_reg): Call get_frame_arch to get the architecture instead of
12823 using CURRENT_GDBARCH.
12824 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12825 DWARF2_FRAME_.
12826 (dwarf2_frame_init_reg): New function.
12827 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12828 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12829 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12830 tags with DWARF2_FRAME_.
12831 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12832 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12833 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12834
12835 2004-02-06 Andrew Cagney <cagney@redhat.com>
12836
12837 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12838 (enum tui_data_type): Rename _TuiDataType.
12839 (struct tui_layout_def): Rename _TuiLayoutDef.
12840 (struct tui_source_element): Rename _TuiSourceElement.
12841 (struct tui_data_element): Rename _TuiDataElement.
12842 (struct tui_command_element): Rename _TuiCommandElement.
12843 (struct tui_locator_element): Rename _TuiLocatorElement.
12844 (union tui_which_element): Define.
12845 (struct tui_win_element): Rename _TuiWinElement.
12846 (struct tui_data_info): Rename _TuiDataInfo.
12847 (struct tui_source_info): Rename _TuiSourceInfo.
12848 (struct tui_command_info): Rename _TuiCommandInfo.
12849 (tui_initialize_static_data): Rename initializeStaticData.
12850 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12851 (tui_alloc_win_info): Rename allocWinInfo.
12852 (tui_init_generic_part): Rename initGenericPart.
12853 (tui_init_win_info): Rename initWinInfo.
12854 (tui_alloc_content): Rename allocContent.
12855 (tui_add_content_elements): Rename addContentElements.
12856 (tui_init_content_element): Rename initContentElement.
12857 (tui_free_window): Rename freeWindow.
12858 (tui_free_win_content): Rename freeWinContent.
12859 (tui_free_data_content): Rename freeDataContent.
12860 (tui_free_all_source_wins_content): Rename
12861 freeAllSourceWinsContent.
12862 (tui_del_window): Rename tuiDelWindow.
12863 (tui_del_data_windows): Rename tuiDelDataWindows.
12864 (tui_partial_win_by_name): Rename partialWinByName.
12865 (tui_win_name): Rename winName.
12866 (tui_current_layout): Rename currentLayout.
12867 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12868 (tui_term_height): Rename termHeight.
12869 (tui_set_term_height_to): Rename setTermHeightTo.
12870 (tui_term_width): Rename termWidth.
12871 (tui_set_term_width_to): Rename setTermWidthTo.
12872 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12873 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12874 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12875 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12876 (tui_source_windows): Rename sourceWindows.
12877 (tui_clear_source_windows): Rename clearSourceWindows.
12878 (tui_clear_source_windows_detail): Rename
12879 clearSourceWindowsDetail.
12880 (tui_clear_win_detail): Rename clearWinDetail.
12881 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12882 (tui_default_tab_len): Rename tuiDefaultTabLen.
12883 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12884 (tui_win_with_focus): Rename tuiWinWithFocus.
12885 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12886 (tui_layout_def): Rename tuiLayoutDef.
12887 (tui_win_resized): Rename tuiWinResized.
12888 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12889 (tui_next_win): Rename tuiNextWin.
12890 (tui_prev_win): Rename tuiPrevWin.
12891 (tui_add_to_source_windows): Rename addToSourceWindows.
12892 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12893 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12894 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12895 * tui/tui.c, tui/tui-data.c: Ditto.
12896 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12897 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12898
12899 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12900 (struct symtab): Declare.
12901 (tui_set_source_content): Rename tuiSetSourceContent.
12902 (tui_show_symtab_source): Rename tuiShowSource.
12903 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12904 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12905 * tui/tui-source.c: Update copyright. Update references.
12906 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12907 * tui/tui-stack.c: Update references.
12908
12909 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12910 (struct tui_win_info): Declare.
12911 (tui_scroll_forward): Rename tuiScrollForward.
12912 (tui_scroll_backward): Rename tuiScrollBackward.
12913 (tui_scroll_left): Rename tuiScrollLeft.
12914 (tui_scroll_right): Rename tuiScrollRight.
12915 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12916 (tui_resize_all): Rename tuiResizeAll.
12917 (tui_refresh_all_win): Rename tuiRefreshAll.
12918 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12919 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12920 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12921 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12922
12923 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12924 (tui_erase_data_content): Rename tuiEraseDataContent.
12925 (tui_display_all_data): Rename tuiDisplayAllData.
12926 (tui_check_data_values): Rename tuiCheckDataValues.
12927 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12928 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12929 (tui_first_data_element_no_in_line): Rename
12930 tuiFirstDataElementNoInLine.
12931 (tui_delete_data_content_windows): Rename
12932 tuiDeleteDataContentWindows.
12933 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12934 (tui_display_data_from): Rename tuiDisplayDataFrom.
12935 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12936 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12937 * tui/tui-win.c, tui/tui-regs.c: Update references.
12938 * tui/tui-layout.c, tui/tui.c: Update references.
12939
12940 * tui/tui-wingeneral.h: Update copyright.
12941 (m_allBeVisible): Delete macro.
12942 (m_allBeInvisible): Delete macro.
12943 (struct tui_gen_win_info): Declare.
12944 (struct tui_win_info): Declare.
12945 (tui_unhighlight_win): Rename unhighlightWin.
12946 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12947 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12948 (tui_make_window): Rename makeWindow.
12949 (tui_copy_win): Rename copyWin.
12950 (tui_box_win): Rename boxWin.
12951 (tui_highlight_win): Rename highlightWin.
12952 (tui_check_and_display_highlight_if_needed): Rename
12953 checkAndDisplayHighlightIfNeeded.
12954 (tui_refresh_all): Rename refreshAll.
12955 (tui_delete_win): Rename tuiDelwin.
12956 (tui_refresh_win): Rename tuiRefreshWin.
12957 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12958 (tui_make_visible, tui_make_invisible): New functions.
12959 (tui_make_all_visible, tui_make_all_invisible): New functions.
12960 (make_all_visible): Rename makeAllVisible.
12961 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12962 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12963 * tui/tui-windata.c, tui/tui-win.c: Update references.
12964 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12965 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12966
12967 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12968
12969 * proc-api.c (write_with_trace): Initialize local variable to
12970 silence compiler warning.
12971
12972 2004-02-06 Andrew Cagney <cagney@redhat.com>
12973
12974 * tui/tui-source.h: Do not include "defs.h".
12975 (struct tui_win_info): Declare.
12976 (tui_set_source_content_nil): Declare.
12977 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12978 (union tui_line_or_address): Rename _TuiLineOrAddress.
12979 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12980 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12981 (tui_update_source_window_as_is): Rename
12982 tuiUpdateSourceWindowAsIs.
12983 (tui_update_source_windows_with_addr): Rename
12984 tuiUpdateSourceWindowsWithAddr.
12985 (tui_update_source_windows_with_line): Rename
12986 tuiUpdateSourceWindowsWithLine.
12987 (tui_clear_source_content): Rename tuiClearSourceContent.
12988 (tui_erase_source_content): Rename tuiEraseSourceContent.
12989 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12990 (tui_show_source_content): Rename tuiShowSourceContent.
12991 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12992 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12993 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12994 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12995 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12996 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12997 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12998 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12999 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13000 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13001 (struct tui_win_info): Declare.
13002 * tui/tui-stack.c: Update references.
13003 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13004 * tui/tui-win.c, tui/tui-source.c: Ditto.
13005 * tui/tui.c, tui/tui-disasm.c: Ditto.
13006
13007 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13008
13009 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13010 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13011
13012 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13013
13014 * infrun.c (handle_inferior_event): Allow for breakpoint
13015 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13016 and SIGEMT. Update comments.
13017 * NEWS (Revised SPARC target): Mention support for non-executable
13018 stack.
13019
13020 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13021
13022 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13023 * inftarg.c: Update copyright year.
13024 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13025 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13026 (sparc_xfer_wcookie): New function.
13027 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13028 * Makefile.in (sparc-nat.o): Update dependencies.
13029 * config/sparc/nm-nbsd.h: Include "target.h".
13030 (NATIVE_XFER_WCOOKIE): New define.
13031 (sparc_xfer_wcookie): New prototype.
13032
13033 2004-02-04 Andrew Cagney <cagney@redhat.com>
13034
13035 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13036 SYSCALL_TRAP function.
13037 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13038
13039 2004-02-04 Andrew Cagney <cagney@redhat.com>
13040 Daniel Jacobowitz <drow@mvista.com>
13041
13042 * objfiles.h: Delete comments refering to inside_entry_func and
13043 DEPRECATED_FRAME_CHAIN_VALID.
13044 * defs.h (inside_entry_func): Update prototype..
13045 * blockframe.c (inside_entry_func): Rename to
13046 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13047 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13048
13049 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13050
13051 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13052 outside of #ifdef SOLIB_ADD region.
13053 (do_restore_lang_radix_cleanup): Ditto.
13054 (resolve_pending_breakpoint): Ditto.
13055
13056 2004-02-03 Andrew Cagney <cagney@redhat.com>
13057
13058 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13059 (process_note_abi_tag_sections): Delete unused function.
13060 (ia64_read_fp): Delete unused function.
13061 (gdbarch_extract_struct_value_address): Delete declaration.
13062
13063 2004-02-02 Andrew Cagney <cagney@redhat.com>
13064
13065 * vax-tdep.c (vax_frame_chain): Delete call to
13066 deprecated_inside_entry_file.
13067 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13068
13069 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13070
13071 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13072 column that's "empty" or "same value" when eliminating REG_RA
13073 rules.
13074
13075 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13076
13077 * NEWS: Add information about new pending breakpoint support.
13078
13079 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13080
13081 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13082 and pending fields for pending breakpoint support.
13083 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13084 (condition_command): Only parse condition if not a pending
13085 breakpoint.
13086 (print_one_breakpoint): Add support for pending breakpoints.
13087 (describe_other_breakpoints): Add checks to verify we are not
13088 dealing with pending breakpoints.
13089 (check_duplicates): Don't check pending breakpoints.
13090 (set_raw_breakpoint): Initialize pending flag.
13091 (do_restore_lang_radix_cleanup): New cleanup routine.
13092 (resolve_pending_breakpoint): New function.
13093 (re_enable_breakpoints_in_shlibs): Try and resolve any
13094 pending breakpoints via resolve_pending_breakpoint.
13095 (mention): Add pending breakpoint support.
13096 (parse_breakpoint_sals): Add new parameter to pass to
13097 decode_line_1 to indicate silent errors when files or functions
13098 are not found. Change all callers.
13099 (do_captured_parse_breakpoint): New function.
13100 (break_command_1): Change prototype to return an rc value and to
13101 take an optional pending breakpoint pointer. Support creating
13102 a pending breakpoint if a "not found" form of error occurs when
13103 parsing the breakpoint. Also support resolving an existing pending
13104 breakpoint and be silent if the resolution fails.
13105 (create_breakpoints): Change prototype to take pending breakpoint
13106 pointer. When resolving a pending breakpoint, use the new pointer
13107 to provide a conditional or commands added by the end-user.
13108 (delete_breakpoint): Add appropriate check for pending.
13109 (breakpoint_re_set_one): Ditto.
13110 (do_enable_breakpoint): Ditto.
13111
13112 2004-02-02 David Carlton <carlton@kealia.com>
13113
13114 * valops.c (enum oload_classification): New.
13115 (find_overload_match): Break implementation into separate
13116 functions; delete #if 0'd code; look for symbols within
13117 namespaces.
13118 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13119 (find_oload_champ,oload_method_static,classify_oload_match): New.
13120 * cp-support.h: Add declaration for cp_func_name; update
13121 declaration for make_symbol_overload_list.
13122 * cp-support.c (cp_func_name): New.
13123 (overload_list_add_symbol): Fix comment, use
13124 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13125 (make_symbol_overload_list): Take a function name and a namespace
13126 instead of a symbol; change implementation.
13127 (make_symbol_overload_list_using): New.
13128 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13129
13130 2004-02-02 Fred Fish <fnf@redhat.com>
13131
13132 * main.c (gdb_stdtarg): Move definition to group with other
13133 gdb_stdtarg definitions and update copyright years.
13134 * remote-sim.c (gdb_os_write_stderr): Write output to
13135 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13136 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13137 gdb_stderr stream and update copyright years.
13138
13139 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13140
13141 * Makefile.in (mips-linux-nat.o): Update dependencies.
13142 * mips-linux-nat.c: Include mips-tdep.h.
13143
13144 2004-02-01 Roland McGrath <roland@redhat.com>
13145
13146 * sol-thread.c (sol_thread_xfer_partial): New function.
13147 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13148 (init_sol_core_ops): Likewise.
13149
13150 * procfs.c (procfs_xfer_partial): New function.
13151 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13152 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13153
13154 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13155 procfs_xfer_auxv function.
13156
13157 * procfs.c (procfs_make_note_section): If we can read
13158 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13159 * linux-proc.c (linux_make_note_section): Likewise.
13160
13161 * auxv.h: New file.
13162 * auxv.c: New file.
13163 * Makefile.in (auxv_h): New variable.
13164 (COMMON_OBS): Add auxv.o here.
13165 (auxv.o): New target.
13166
13167 * corelow.c (core_xfer_partial): New function.
13168 (init_core_ops): Use it for core_ops.to_xfer_partial.
13169
13170 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13171 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13172 macro if that is defined.
13173
13174 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13175
13176 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13177 and check the specified thread for each breakpoint.
13178 * breakpoint.h (bpstat_stop_status): Update prototype.
13179 * infrun.c (handle_inferior_event): Update calls to
13180 bpstat_stop_status.
13181
13182 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13183
13184 * Makefile.in (cli-cmds.o): Add $(readline_h).
13185
13186 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13187
13188 * cli/cli-cmds.c: Include readline.h.
13189 (complete_command): Pass the start of the last word to
13190 complete_line.
13191
13192 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13193
13194 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13195 argument, and change first argument to a CORE_ADDR.
13196 * breakpoint.h (bpstat_stop_status): Update prototype.
13197 * infrun.c (adjust_pc_after_break): Add a new comment.
13198 (handle_inferior_event): Update calls to bpstat_stop_status.
13199
13200 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13201
13202 * breakpoint.h: Update copyright years.
13203
13204 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13205
13206 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13207 (bpstat_stop_status): Don't decrement PC.
13208 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13209 prototype.
13210 * infrun.c (adjust_pc_after_break): New function.
13211 (handle_inferior_event): Call it, early. Remove later references
13212 to DECR_PC_AFTER_BREAK.
13213 (normal_stop): Add commentary.
13214
13215 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13216
13217 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13218 2004-01-27 double-free fix.
13219
13220 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13221
13222 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13223 (sparc32_frame_prev_register): Handle StackGhost.
13224 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13225
13226 2004-01-29 Roland McGrath <roland@redhat.com>
13227
13228 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13229 * configure: Regenerated.
13230
13231 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13232 * Makefile.in (procfs.o): Add dep.
13233
13234 2004-01-28 Andrew Cagney <cagney@redhat.com>
13235
13236 * tui/tui-stack.h: Update copyright.
13237 (struct frame_info): Add opaque declaration.
13238 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13239 (tui_show_locator_content): Rename tuiShowLocatorContent.
13240 (tui_show_frame_info): Rename tuiShowFrameInfo.
13241 * tui/tui-stack.c: Update copyright. Update references.
13242 * tui/tui-winsource.c: Update references.
13243 * tui/tui-win.c: Update references.
13244 * tui/tui-layout.c: Update references.
13245 * tui/tui-hooks.c: Update copyright, update references.
13246 * tui/tui.c: Update copyright, update references.
13247 * tui/tui-disasm.c: Update references.
13248
13249 2004-01-28 David Carlton <carlton@kealia.com>
13250
13251 * dwarf2read.c (add_partial_structure): Use demangled name if
13252 namespace equals "".
13253
13254 2004-01-27 Jim Blandy <jimb@redhat.com>
13255
13256 Clean up misapplied patch:
13257 * dwarf2read.c (determine_prefix): Change one of the two forward
13258 declarations for 'determine_prefix_aux' to a declaration for this.
13259 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13260 argument to 'die_specification'.
13261
13262 * dwarf2read.c (read_func_scope): Re-indent comment.
13263
13264 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13265
13266 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13267 b->exp to NULL after freeing so that error during re-parsing or
13268 evaluation of expressions associated with breakpoint don't
13269 eventually lead to re-freeing of storage.
13270 Committed by Andrew Cagney.
13271
13272 2004-01-27 Andrew Cagney <cagney@redhat.com>
13273
13274 * source.c (ambiguous_line_spec): Delete undefined declaration.
13275 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13276 (m32r_set_server_address, m32r_set_download_path): Ditto.
13277 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13278
13279 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13280
13281 * dwarf2read.c: Update calls to changed and renamed functions, and
13282 references to moved variables.
13283
13284 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13285 language, language_defn, list_in_scope, and ftypes members.
13286 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13287 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13288 (baseaddr): Remove globals.
13289
13290 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13291 (set_cu_language, die_is_declaration, die_specification)
13292 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13293 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13294 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13295 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13296
13297 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13298 cu.list_in_scope. Don't initialize cu_header_offset.
13299 (add_partial_symbol): Add local baseaddr.
13300 (psymtab_to_symtab_1): Add local baseaddr. Use
13301 objfile->section_offsets for consistency. Don't initialize
13302 cu_header_offset; do initialize cu.header.offset and
13303 cu.list_in_scope.
13304 (read_file_scope, read_func_scope, read_lexical_block_scope)
13305 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13306
13307 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13308
13309 * PROBLEMS: Add gdb/1516.
13310
13311 2003-12-29 Robert Millan <robertmh@gnu.org>
13312
13313 Patch committed by Andrw Cagney.
13314 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13315 * configure.tgt: Match knetbsd*-gnu.
13316
13317 2004-01-26 Andrew Cagney <cagney@redhat.com>
13318
13319 * breakpoint.c (catch_command_1): Delete #ifdef code.
13320 (catch_fork_command_1): Delete #ifdef wrapper.
13321 (catch_exec_command_1): Ditto.
13322 (catch_load_command_1): Ditto.
13323 (catch_unload_command_1): Ditto.
13324
13325 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13326 (catch_breakpoint): Delete #if0ed function.
13327 (disable_catch_breakpoint): Ditto.
13328 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13329 (disable_catch, enable_catch, delete_catch): Ditto.
13330
13331 2004-01-26 Andrew Cagney <cagney@redhat.com>
13332
13333 * remote.c (echo_check, quit_flag): Delete variables.
13334 (cisco_kernel_mode): Delete variable.
13335 (minitelnet_return, tty_input, escape_count): Delete variables.
13336 (remote_cisco_mode): Delete variable.
13337 (remote_cisco_open, remote_cisco_close): Delete function.
13338 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13339 (init_remote_cisco_ops): Delete function.
13340 (_initialize_remote): Do not install "remote cisco" code.
13341 (read_frame): Delete cisco specific code.
13342 (remote_info_process): Delete function.
13343 (remote_wait): Delete cisco specific code.
13344 (remote_cisco_section_offsets): Delete function.
13345 (remote_cisco_objfile_relocate): Delete function.
13346 (remote_async_wait): Delete cisco specific code.
13347 (minitelnet, readtty, readsocket): Delete function.
13348
13349 2004-01-26 Andrew Cagney <cagney@redhat.com>
13350
13351 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13352 comments mentioning extract_returned_value_address.
13353 * infcmd.c (print_return_value): Update. Add comments on
13354 extract_returned_value_address.
13355 * stack.c (return_command): Add comments on
13356 extract_returned_value_address.
13357 * values.c: Update comment.
13358 * m32r-tdep.c: Update comment.
13359 * sparc-tdep.c: Update comment.
13360 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13361 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13362 * sh64-tdep.c (sh64_gdbarch_init): Update.
13363 * sh-tdep.c (sh_gdbarch_init): Update.
13364 * s390-tdep.c (s390_gdbarch_init): Update.
13365 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13366 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13367 * m68k-tdep.c (m68k_gdbarch_init): Update.
13368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13369 * m32r-tdep.c (m32r_gdbarch_init): Update.
13370 * ia64-tdep.c (ia64_gdbarch_init): Update.
13371 * h8300-tdep.c (h8300_gdbarch_init): Update.
13372 * frv-tdep.c (frv_gdbarch_init): Update.
13373 * arm-tdep.c (arm_gdbarch_init): Update.
13374 * alpha-tdep.c (alpha_gdbarch_init): Update.
13375
13376 2004-01-26 Andrew Cagney <cagney@redhat.com>
13377
13378 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13379 SYMBOL_LOCATION_FUNCS
13380 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13381 "struct symbol_ops".
13382 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13383 type to "struct symbol_ops".
13384 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13385 (struct symbol): Replace ".aux_value.loc.funcs" and
13386 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13387 (SYMBOL_OBJFILE): Delete macro.
13388 (SYMBOL_LOCATION_FUNCS): Delete macro.
13389 (SYMBOL_LOCATION_BATON): Update.
13390 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13391 intead of SYMBOL_LOCATION_FUNCS.
13392 * ax-gdb.c (gen_var_ref): Ditto.
13393 * printcmd.c (address_info): Ditto.
13394 * findvar.c (read_var_value): Ditto.
13395 (symbol_read_needs_frame): Ditto.
13396
13397 2004-01-26 Andrew Cagney <cagney@redhat.com>
13398
13399 * dwarf2read.c (read_func_scope): Document frame-base hack.
13400
13401 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13402
13403 * infcmd.c (print_return_value): Plug memory leak; delete
13404 ui_stream object. Rename argument `structure_return' to
13405 `struct_return'.
13406
13407 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13408
13409 * infcmd.c (print_return_value): Wrap long lines.
13410 (finish_command_continuation, finish_command): Remove unused
13411 variable `funcaddr'. Fix some coding-standards problems.
13412
13413 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13414 SECT_SIZE is large enough, not whether it's exactly the right size.
13415 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13416 TDEP->fpregset to zero.
13417
13418 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13419 floating-point registers for traditional NetBSD core files.
13420 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13421 TDEP->sizeof_fpregset here.
13422
13423 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13424
13425 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13426 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13427 function with code split out from
13428 sparc32nbsd_sigcontext_frame_cache.
13429 (sparc32nbsd_sigcontext_frame_cache): Use
13430 sparc32nbsd_sigcontext_saved_regs.
13431 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13432 OpenBSD.
13433 * sparcobsd-tdep.c: New file.
13434 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13435 (sparcobsd-tdep.o): New dependency.
13436 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13437 * config/sparc/obsd.mt: New file.
13438
13439 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13440 TDEP->fpregset to be initialized to enable core file register
13441 sets.
13442
13443 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13444
13445 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13446 Add opaque declarations.
13447 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13448 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13449 function with code split out from
13450 sparc64nbsd_sigcontext_frame_cache.
13451 (sparc64nbsd_sigcontext_frame_cache): Use
13452 sparc64nbsd_sigcontext_saved_regs.
13453 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13454 OpenBSD.
13455 * sparc64obsd-tdep.c: New file.
13456 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13457 (sparc64obsd-tdep.o): New dependency.
13458 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13459 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13460 * config/sparc/obsd64.mt: New file.
13461
13462 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13463 read the instruction at PC.
13464
13465 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13466 value of GDB_OSABI_DEFAULT.
13467 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13468 instead of GDB_OSABI_NETBSD_AOUT.
13469
13470 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13471
13472 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13473 copyright.
13474
13475 2004-01-23 Andrew Cagney <cagney@redhat.com>
13476
13477 * printcmd.c (display_command): Replace tui_set_display call with
13478 tui_set_layout_for_display_command.
13479 * tui/tui.h (enum tui_win_type): Define.
13480 (tui_set_layout): Delete declaration.
13481 (tui_set_layout_for_display_command): Rename set_tui_layout.
13482 * tui/tui-data.h (enum tui_layout_type): Define.
13483 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13484 "tui.h".
13485 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13486 (tui_default_win_height): Rename tuiDefaultWinHeight.
13487 (tui_default_win_viewport_height): Rename
13488 tuiDefaultWinViewportHeight.
13489 (tui_set_layout): RenametuiSetLayout.
13490 * tui/tui-layout.c: Update references.
13491 * tui/tui.c: Update references.
13492 * tui/tui-disasm.c: Update references.
13493
13494 2004-01-23 David Carlton <carlton@kealia.com>
13495
13496 Partial workaround for PR c++/1511:
13497 * cp-namespace.c: Include frame.h.
13498 (cp_lookup_transparent_type): New
13499 (cp_lookup_transparent_type_loop): New.
13500 * cp-support.h: Declare cp_lookup_transparent_type.
13501 * symtab.c (basic_lookup_transparent_type): Renamed from
13502 lookup_transparent_type.
13503 (lookup_transparent_type): Replace old body by a call to
13504 current_language->la_lookup_transparent_type.
13505 * symtab.h: Update copyright. Declare
13506 basic_lookup_transparent_type.
13507 * language.h: Update copyright.
13508 (struct language_defn): Add la_lookup_transparent_type.
13509 * language.c: Update copyright.
13510 (unknown_language_defn): Add basic_lookup_transparent_type.
13511 (auto_language_defn): Add basic_lookup_transparent_type.
13512 (local_language_defn): Add basic_lookup_transparent_type.
13513 * ada-lang.c: Update copyright.
13514 (ada_language_defn): Add basic_lookup_transparent_type.
13515 * c-lang.c: Update copyright.
13516 (c_language_defn): Add basic_lookup_transparent_type.
13517 (cplus_language_defn): Add basic_lookup_transparent_type.
13518 (asm_language_defn): Add basic_lookup_transparent_type.
13519 (minimal_language_defn): Add basic_lookup_transparent_type.
13520 * f-lang.c: Update copyright.
13521 (f_language_defn): Add basic_lookup_transparent_type.
13522 * jv-lang.c: Update copyright.
13523 (java_language_defn): Add basic_lookup_transparent_type.
13524 * m2-lang.c: Update copyright.
13525 (m2_language_defn): Add basic_lookup_transparent_type.
13526 * objc-lang.c: Update copyright.
13527 (objc_language_defn): Add basic_lookup_transparent_type.
13528 * p-lang.c: Update copyright.
13529 (p_language_defn): Add basic_lookup_transparent_type.
13530 * scm-lang.c: Update copyright.
13531 (scm_language_defn): Add basic_lookup_transparent_type.
13532 * Makefile.in (cp-namespace.o): Depend on frame.h.
13533
13534 2004-01-23 David Carlton <carlton@kealia.com>
13535
13536 Patch for PR c++/1520:
13537 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13538 properly if we have a specification die.
13539 (determine_prefix_aux): Rename from determine_prefix.
13540 (determine_prefix): Like the old determine_prefix, but never
13541 returns NULL.
13542
13543 2004-01-23 Theodore A. Roth <troth@openavr.org>
13544
13545 * avr-tdep.c: Update copyright.
13546 (avr_iaddr_p): Delete unused function.
13547 (avr_saddr_p): Delete unused function.
13548
13549 2004-01-23 David Carlton <carlton@kealia.com>
13550
13551 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13552 Fix for PR symtab/1534.
13553
13554 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13555
13556 * NEWS (New native configurations): Mention OpenBSD/sparc and
13557 OpenBSD/sparc64.
13558 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13559 * configure.host: Likewise.
13560 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13561 handler for OpenBSD.
13562 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13563
13564 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13565
13566 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13567 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13568
13569 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13570 * cli/cli-cmds.c (shell_escape): Likewise.
13571
13572 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13573 OpenBSD .note.openbsd.ident sections.
13574
13575 2004-01-22 David Carlton <carlton@kealia.com>
13576
13577 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13578 get_scope_pc_bounds.
13579 (read_file_scope): Ditto.
13580 (get_scope_pc_bounds): New function, produced by extracting code
13581 from the above two functions, consolidating it, and adding support
13582 for DW_TAG_namespace.
13583
13584 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13585
13586 * osabi.c (MAX_NOTESZ): New define.
13587 (check_note): New function.
13588 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13589 check_note.
13590
13591 2004-01-21 Roland McGrath <roland@redhat.com>
13592
13593 * MAINTAINERS (write after approval): Add myself.
13594
13595 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13596
13597 * utils.c (init_page_info): Move declarations of `rows' and
13598 `cols' before the __GO32__-specific code. Move the closing brace
13599 outside the #ifdef __GO32__..#endif block.
13600 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13601
13602 2004-01-21 Paul Brook <paul@codesourcery.com>
13603
13604 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13605 BPSTAT_WHAT_CHECK_SHLIBS.
13606
13607 2004-01-21 Paul Brook <paul@codesourcery.com>
13608
13609 * MAINTAINERS: Add myself to write-after-approval.
13610
13611 2004-01-20 Andrew Cagney <cagney@redhat.com>
13612
13613 * ax-gdb.c (print_axs_value): Delete unused function.
13614 * jv-lang.c (java_lookup_type): Delete unused function.
13615 * cli/cli-dump.c (dump_filetype): Delete unused function.
13616 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13617 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13618 (mips_getstring): Delete unused function.
13619 (pmon_insert_breakpoint): Delete #if0ed function.
13620 (PMON_MAX_BP): Delete #if0ed MACRO.
13621 (mips_pmon_bp_info): Delete #if0ed variable.
13622 (pmon_remove_breakpoint): Delete #if0ed function.
13623 * monitor.c (monitor_write_even_block): Delete unused function.
13624 (monitor_write_memory_block): Delete #if0ed code.
13625 * dink32-rom.c (dink32_load): Delete unused function.
13626 (_initialize_dink32_rom): Delete #if0ed code.
13627 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13628
13629 * tui/tui-command.c: Update references.
13630 * tui/tui-io.c: Update references.
13631 * tui/tui-command.h: Update copyright.
13632 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13633
13634 * source.c (ambiguous_line_spec): Delete never-defined function.
13635 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13636 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13637 * cli/cli-cmds.c (validate_comname): Ditto.
13638
13639 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13640 "tui-data.h".
13641 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13642 (tui_show_disassem): Rename tuiShowDisassem.
13643 (tui_show_disassem_and_update_source): Rename
13644 tuiVerticalDisassemScroll.
13645 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13646 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13647 * tui/tui.h: Update copyright.
13648 (enum tui_status): Define.
13649 * tui/tui-data.h (enum tui_scroll_direction): Define.
13650 * tui/tui-disasm.c: Update copyright. Update references.
13651 * tui/tui-winsource.c: Update copyright. Update references.
13652 * tui/tui-win.c: Update references.
13653 * tui/tui-layout.c: Update references.
13654
13655 2004-01-20 Andrew Cagney <cagney@redhat.com>
13656
13657 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13658 sym2 to start of block.
13659
13660 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13661
13662 * MAINTAINERS: Delete mmalloc.
13663 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13664 * NEWS: Mention removal of --with-malloc.
13665 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13666 * config.in: Regenerate.
13667 * configure: Regenerate.
13668 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13669 USE_MMALLOC, MMCHECK_FORCE.
13670 * gdbinit.in: Remove mmalloc.
13671 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13672 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13673 * config/i386/go32.mh: Likewise.
13674 * config/i386/interix.mh: Likewise.
13675 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13676
13677 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13678
13679 * linespec.c (decode_variable, symtab_from_filename): Call
13680 error_silent with error message instead of throwing an exception
13681 directly.
13682 * defs.h (error_silent, error_output_message): Add prototypes.
13683 (catch_exceptions_with_msg): Ditto.
13684 * utils.c (error_silent, error_output_message): New functions.
13685 * top.c (catch_exceptions_with_msg): New function.
13686
13687 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13688
13689 * mi/mi-cmds.h (enum print_values): Add definition.
13690
13691 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13692 type and value for simple data types and just the name and type
13693 for complex ones, if required.
13694
13695 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13696 children, if required.
13697
13698 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13699
13700 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13701 unused declarations.
13702
13703 2004-01-19 Andrew Cagney <cagney@redhat.com>
13704
13705 * top.h (mapped_symbol_files): Delete declaration.
13706 * main.c (captured_main): Delete option "m" and "mapped".
13707 * objfiles.c (mapped_symbol_files): Delete variable.
13708 * symfile.c (symbol_file_command): Delete mmap code.
13709 (symbol_file_add_with_addrs_or_offsets): Ditto.
13710 (add_symbol_file_command, reread_separate_symbols): Ditto.
13711 * objfiles.h (OBJF_MAPPED): Delete.
13712 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13713 (free_objfile) [USE_MMALLOC]: Ditto.
13714 (open_existing_mapped_file): Delete function.
13715 (open_mapped_file): Delete function.
13716 (map_to_file): Delete function.
13717
13718 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13719
13720 * infrun.c (step_into_function): Account for possible breakpoint
13721 adjustment when computing ``stop_func_start''.
13722
13723 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13724
13725 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13726 the region size against the size of a pointer, not the size of
13727 a register as given by DEPRECATED_REGISTER_SIZE.
13728
13729 2004-01-19 Andrew Cagney <cagney@redhat.com>
13730
13731 * tui/tui-regs.h: Include "tui-data.h".
13732 (tuiFirstRegElementNoInLine): Delete declaration.
13733 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13734 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13735 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13736 (tui_calculate_regs_column_count): Rename
13737 tuiCalculateRegsColumnCount.
13738 (tui_check_register_values): Rename tuiCheckRegisterValues.
13739 (tui_show_registers): Rename tuiShowRegisters.
13740 (tui_display_registers_from_line): Rename
13741 tuiDisplayRegistersFromLine.
13742 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13743 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13744 (tui_first_reg_element_no_inline): Rename
13745 tuiFirstRegElementNoInLine.
13746 * tui/tui-data.h: Update copyright.
13747 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13748 * tui/tui-windata.c: Update copyright, update references.
13749 * tui/tui-regs.c: Update copyright, update references.
13750 * tui/tui-win.c: Update copyright, update references.
13751 * tui/tui-layout.c: Update copyright, update references.
13752
13753 2004-01-18 Andrew Cagney <cagney@redhat.com>
13754
13755 * tui/tui-io.c: Update copyright.
13756 (key_is_end_sequence, key_is_backspace): New functions.
13757 (key_is_command_char, key_is_start_sequence): New function.
13758 (tui_getc): Update references.
13759 * tui/tui-io.h: Update copyright.
13760 (m_tuiStartNewLine): Delete macro.
13761 (m_isBackspace, m_isDeleteChar): Delete macros.
13762 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13763 (m_isNextPage, m_isPrevPage): Delete macros.
13764 (m_isLeftArrow, m_isRightArrow): Delete macros.
13765 (m_isXdbStyleCommandChar): Delete macro.
13766 (key_is_start_sequence): Declare, replace m_isStartSequence.
13767 (key_is_end_sequence): Declare, replace m_isEndSequence.
13768 (key_is_backspace): Declare ,replace m_isBackspace.
13769 (key_is_command_char): Declare, replace m_isCommandChar.
13770 * tui/tui-command.c: Update copyright.
13771 (tuiDispatchCtrlChar): Update references.
13772
13773 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13774 tuiSourceWin.h.
13775
13776 * tui/tui-command.c: Rename tui/tuiCommand.c.
13777 * tui/tui-command.h: Rename tui/tuiCommand.h.
13778 * tui/tui-data.c: Rename tui/tuiData.c.
13779 * tui/tui-data.h: Rename tui/tuiData.h.
13780 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13781 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13782 * tui/tui-io.c: Rename tui/tuiIO.c.
13783 * tui/tui-io.h: Rename tui/tuiIO.h.
13784 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13785 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13786 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13787 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13788 * tui/tui-source.c: Rename tui/tuiSource.c.
13789 * tui/tui-source.h: Rename tui/tuiSource.h.
13790 * tui/tui-stack.c: Rename tui/tuiStack.c.
13791 * tui/tui-stack.h: Rename tui/tuiStack.h.
13792 * tui/tui-win.c: Rename tui/tuiWin.c.
13793 * tui/tui-win.h: Rename tui/tuiWin.h.
13794 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13795 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13796 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13797 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13798 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13799 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13800 * tui/tui-file.c: Update includes.
13801 * tui/tui-hooks.c: Update includes.
13802 * tui/tui-interp.c: Update includes.
13803 * tui/tui.c: Update includes.
13804 * Makefile.in: Update all tui/ dependencies.
13805 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13806
13807 * Makefile.in: Update copyright. Update dependencies.
13808
13809 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13810 problem.
13811
13812 2004-01-18 Andrew Cagney <cagney@redhat.com>
13813
13814 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13815 instead of register_gdbarch_init.
13816
13817 * remote-sds.c (tohex): Delete unused function. Update copyright.
13818 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13819 * v850-tdep.c (v850_register_virtual_size): Ditto.
13820 * target.c (normal_target_post_startup_inferior): Ditto.
13821 * source.c (ambiguous_line_spec): Ditto.
13822 * remote.c (adapt_remote_get_threadinfo): Ditto.
13823 * mi/mi-out.c (out_field_fmt): Ditto.
13824 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13825 (output_control_change_notification): Ditto.
13826 * m68k-tdep.c (m68k_register_byte): Ditto.
13827 (m68k_remote_breakpoint_from_pc): Ditto.
13828 * ui-out.c (init_ui_out_state): Delete unused declaration.
13829 * stabsread.c (search_value): Ditto.
13830 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13831 * maint.c (print_section_table): Ditto.
13832 * infrun.c (set_follow_fork_mode_command): Ditto.
13833
13834 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13835
13836 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13837 DW_CFA_def_cfa_exporession. Add support for
13838 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13839 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13840
13841 2004-01-18 Andrew Cagney <cagney@redhat.com>
13842
13843 * ocd.c: Update copyright.
13844 (bdm_read_register_command): Delete unused function.
13845 (_initialize_remote_ocd): Delete commented out reference.
13846 (get_quoted_char, reset_packet): Delete #if0ed function.
13847 (output_packet, put_quoted_char): Delete #if0ed function.
13848 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13849 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13850 (BDM_BREAKPOINT): Delete #if0ed macro.
13851 (remote_timeout): Delete #if0ed variable.
13852
13853 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13854
13855 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13856 (core-sol2.o): Remove dependency.
13857 * core-sol2.c: Remove file.
13858
13859 2004-01-17 Andrew Cagney <cagney@redhat.com>
13860
13861 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13862 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13863 enums.
13864
13865 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13866
13867 * remote.c: Update copyright years.
13868
13869 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13870
13871 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13872
13873 2004-01-17 Andrew Cagney <cagney@redhat.com>
13874
13875 * mdebugread.c: Update copyright.
13876 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13877 (parse_type, parse_procedure): Ditto.
13878 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13879
13880 * cris-tdep.c (cris_store_struct_return): Put back accidently
13881 deleted function.
13882
13883 * gdbarch.sh: Update copyright year.
13884 * gdbarch.h, gdbarch.c: Re-generate.
13885
13886 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13887
13888 Suggested by George Anzinger.
13889 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13890 correct stack offset. Include unknown opcode numbers in the error
13891 message.
13892
13893 2004-01-17 Andrew Cagney <cagney@redhat.com>
13894
13895 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13896 extract_struct_value_address, i386 does not set it.
13897 * sparc64-tdep.c (sparc64_init_abi): Do not set
13898 extract_struct_value_address, never called.
13899 (sparc64_extract_struct_value_address): Delete function.
13900 * m68hc11-tdep.c: Update copyright.
13901 (m68hc11_gdbarch_init): Delete redundant assignment of
13902 extract_struct_value_address.
13903 * i386-tdep.c: Update copyright.
13904 (i386_gdbarch_init): Do not set extract_struct_value_address,
13905 never called.
13906 (i386_extract_struct_value_address): Delete function.
13907 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13908 extract_struct_value_address, never called.
13909 (sparc32_extract_struct_value_address): #if 0 function. Add
13910 comments explaining its future.
13911
13912 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13913
13914 * arm-tdep.c (arm_write_pc): New function.
13915 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13916
13917 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13918
13919 * breakpoint.c (must_shift_inst_regs): Delete.
13920 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13921 and SHIFT_INST_REGS.
13922 * infcmd.c (step_1, step_1_continuation): Delete references to
13923 SHIFT_INST_REGS.
13924 * infrun.c (keep_going): Likewise.
13925 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13926 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13927
13928 2004-01-17 Andrew Cagney <cagney@redhat.com>
13929
13930 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13931 * gdbarch.h, gdbarch.c: Re-generate.
13932 * infcmd.c (print_return_value): Delete reference to
13933 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13934
13935 * cris-tdep.c (cris_gdbarch_init): Do not set
13936 deprecated_extract_struct_value_address.
13937
13938 * xstormy16-tdep.c: Update copyright.
13939 (xstormy16_extract_struct_value_address): Update to current
13940 extract struct value address interface.
13941 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13942 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13943 current extract struct value address interface.
13944 (sh64_gdbarch_init): Set extract_struct_value_address.
13945
13946 * cris-tdep.c: Update copyright.
13947 (cris_extract_struct_value_address): Delete function.
13948 (struct_return_address): Delete variable.
13949 (cris_store_struct_return): Do not set struct_return_address.
13950
13951 * mcore-tdep.c: Update copyright.
13952 (mcore_extract_struct_value_address): Delete function. Update
13953 comments.
13954 (mcore_gdbarch_init): Update.
13955 * mn10300-tdep.c: Update copyright.
13956 (mn10300_extract_struct_value_address): Delete function.
13957 (mn10300_gdbarch_init): Update.
13958 * v850-tdep.c: Update copyright.
13959 (v850_extract_struct_value_address): Delete.
13960 (v850_gdbarch_init): Update.
13961 * ns32k-tdep.c: Update copyright.
13962 (ns32k_extract_struct_value_address): Delete.
13963 (ns32k_gdbarch_init): Update.
13964 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13965 (hppa_gdbarch_init): Update.
13966 * vax-tdep.c: Update copyright.
13967 (vax_extract_struct_value_address): Delete.
13968 (vax_gdbarch_init): Update.
13969
13970 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13971 * gdbarch.h, gdbarch.c: Re-generate.
13972 * procfs.c (procfs_fetch_registers): Delete reference to
13973 DEPRECATED_NPC_REGNUM.
13974 (procfs_store_registers): Ditto.
13975 * regcache.c (generic_target_write_pc): Simplify.
13976 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13977
13978 * core-sol2.c (fetch_core_registers): Replace
13979 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13980
13981 * hppa-tdep.c: Update copyright year.
13982 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13983 NPC_REGNUM.
13984 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13985
13986 * mips-tdep.c (mips_write_pc): New function.
13987 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13988 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13989 (mips_find_saved_regs, mips_software_single_step: Ditto.
13990 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13991 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13992
13993 2004-01-17 Andrew Cagney <cagney@redhat.com>
13994
13995 * mips-tdep.c: Re-indent. Group functions by ABI.
13996
13997 2004-01-17 Andrew Cagney <cagney@redhat.com>
13998
13999 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14000 * gdbarch.c: Re-generate.
14001 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14002 DECR_PC_AFTER_BREAK to zero.
14003 * vax-tdep.c (vax_gdbarch_init): Ditto.
14004 * v850-tdep.c (v850_gdbarch_init): Ditto.
14005 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14006 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14007 * sh-tdep.c (sh_gdbarch_init): Ditto.
14008 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14009 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14010 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14011 * mips-tdep.c (mips_gdbarch_init): Ditto.
14012 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14014 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14015 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14016 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14017 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14018 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14019 * frv-tdep.c (frv_gdbarch_init): Ditto.
14020 * cris-tdep.c (cris_gdbarch_init): Ditto.
14021 * avr-tdep.c (avr_gdbarch_init): Ditto.
14022 * arm-tdep.c (arm_gdbarch_init): Ditto.
14023 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14024
14025 2004-01-17 J. Brobecker <brobecker@gnat.com>
14026
14027 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14028 Delete, no longer used.
14029 (read_subrange_type): New function, mostly extracted from
14030 read_array_type().
14031 (read_array_type): Replace extracted code by call to
14032 read_subrange_type().
14033 (dwarf2_get_attr_constant_value): New function.
14034 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14035 (add_partial_symbol): Likewise.
14036 (process_die): Likewise.
14037 (new_symbol): Likewise.
14038 (read_type_die): Likewise.
14039
14040 2004-01-16 Andrew Cagney <cagney@redhat.com>
14041
14042 * symfile.c: Update copyright year.
14043 (compare_symbols): Delete unused function.
14044 * stabsread.c: Update copyright year.
14045 (lrs_general_complaint): Delete unused function.
14046 (ref_search_value): Ditto.
14047 (get_substring): Delete declaration.
14048 * sh64-tdep.c: Update copyright year.
14049 (sh64_get_gdb_regnum): Delete unused function.
14050 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14051 Delete unused function.
14052
14053 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14054
14055 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14056 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14057
14058 2004-01-16 Andrew Cagney <cagney@redhat.com>
14059
14060 Changes from Peter Schauer.
14061 * rs6000-tdep.c: Update copyright year.
14062 (rs6000_push_dummy_call): Update the stack pointer before
14063 accessing the corresponding stack region.
14064 * rs6000-nat.c: Update copyright year.
14065 (set_host_arch): Set "info.abfd" to "exec_bfd".
14066
14067 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14068
14069 * blockframe.c: Update copyright year.
14070 (inside_entry_func): Don't treat a zero PC specially.
14071
14072 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14073
14074 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14075 variable.
14076 (gcore_create_callback): Ditto. Skip any memory segment that has
14077 no permissions set.
14078
14079 2004-01-14 David Carlton <carlton@kealia.com>
14080
14081 Change symbols for C++ nested types to contain the fully qualified
14082 name, if possible. (At least in the DWARF-2 case.) Partial fix
14083 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14084 c++/895.
14085 * c-exp.y (qualified_type): Handle types nested within classes.
14086 * cp-namespace.c: Update comments.
14087 (cp_set_block_scope): Delete #if 0.
14088 (cp_lookup_nested_type): Handle types nested within classes.
14089 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14090 when appropriate.
14091 (add_partial_symbol): Add the name of the enclosing namespace to
14092 types.
14093 (pdi_needs_namespace): New.
14094 (add_partial_namespace): Tweak comment.
14095 (add_partial_structure): New.
14096 (psymtab_to_symtab_1): Initialize processing_current_prefix
14097 here...
14098 (process_die): instead of here.
14099 (read_structure_scope): Try to figure out the name of the class or
14100 namespace that the structure might be defined within.
14101 (read_enumeration): Generate fully-qualified names, if possible.
14102 (read_namespace): Don't set name to NULL.
14103 (die_specification): New.
14104 (new_symbol): Generate fully-qualified names for types.
14105 (read_type_die): Determine appropriate prefix.
14106 (determine_prefix): New.
14107 (typename_concat): New.
14108 (class_name): New.
14109 * valops.c (value_aggregate_elt): Pass NOSIDE to
14110 value_struct_elt_for_reference.
14111 (value_struct_elt_for_reference): Make static, add NOSIDE
14112 parameter, call value_maybe_namespace_elt as a last resort.
14113 (value_namespace_elt): Break out code into
14114 value_maybe_namespace_elt.
14115 (value_maybe_namespace_elt): New.
14116
14117 2004-01-12 Andrew Cagney <cagney@redhat.com>
14118
14119 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14120 cooked floating-point registers.
14121 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14122 and value_to_register.
14123
14124 2004-01-13 Andrew Cagney <cagney@redhat.com>
14125
14126 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14127 * gdbarch.c: Re-generate.
14128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14129 FUNCTION_START_OFFSET.
14130 * v850-tdep.c (v850_gdbarch_init): Ditto.
14131 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14132 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14133 * sh-tdep.c (sh_gdbarch_init): Ditto.
14134 * s390-tdep.c (s390_gdbarch_init): Ditto.
14135 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14136 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14138 * mips-tdep.c (mips_gdbarch_init): Ditto.
14139 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14140 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14142 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14143 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14144 * i386-tdep.c (i386_gdbarch_init): Ditto.
14145 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14146 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14147 * frv-tdep.c (frv_gdbarch_init): Ditto.
14148 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14149 * cris-tdep.c (cris_gdbarch_init): Ditto.
14150 * avr-tdep.c (avr_gdbarch_init): Ditto.
14151 * arm-tdep.c (arm_gdbarch_init): Ditto.
14152 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14153
14154 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14155
14156 * infrun.c (follow_fork_mode_ask): Remove.
14157 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14158 (follow_fork): Simplify and remove internal error for
14159 follow_fork_mode_ask.
14160 (_initialize_infrun): Update "set follow-fork-mode" help text.
14161
14162 2004-01-13 Andrew Cagney <cagney@redhat.com>
14163
14164 * configure.in: Update copyright year.
14165 (build_warnings): Add -Wunused-label.
14166 * configure: Re-generate.
14167
14168 2004-01-12 Andrew Cagney <cagney@redhat.com>
14169
14170 * exec.h (exec_ops): Make "extern".
14171
14172 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14173 the function is void.
14174 (mips_pseudo_register_write): Ditto.
14175
14176 2004-01-12 Andrew Cagney <cagney@redhat.com>
14177
14178 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14179 call. Never defined.
14180 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14181 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14182 (struct sparc_gregset, struct regcache): Ditto.
14183 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14184
14185 2004-01-12 Andrew Cagney <cagney@redhat.com>
14186
14187 * mi/ChangeLog: Delete file. Renamed to ...
14188 * mi/ChangeLog-1999-2003: New file.
14189 * tui/ChangeLog: Delete file. Renamed to ...
14190 * tui/ChangeLog-1998-2003: New file.
14191
14192 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14193
14194 * sparc64nbsd-tdep.c: Include "regset.h".
14195 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14196 Remove variables.
14197 (fetch_core_registers): Remove function.
14198 (sparc64nbsd_core_fns): Remove variable.
14199 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14200 functions.
14201 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14202 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14203 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14204
14205 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14206 sparc_extract_struct_value_address.
14207 (sparc32_gdbarch_init): Set extract_struct_value_address.
14208 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14209 function.
14210 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14211 return_value_on_stack.
14212
14213 * NEWS: Mention that %cs and %ss have been added to the AMD64
14214 configurations
14215
14216 * frame.c: Update copyright year.
14217 (get_prev_frame): Improve comment.
14218
14219 * sparc64fbsd-tdep.c: Include "regset.h".
14220 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14221 Remove variables.
14222 (fetch_core_registers): Remove function.
14223 (sparc64fbsd_core_fns): Remove variable.
14224 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14225 functions.
14226 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14227 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14228 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14229
14230 * sparcnbsd-tdep.c: Include "regset.h".
14231 (fetch_core_registers): Remove function.
14232 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14233 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14234 functions.
14235 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14236 TDEP->fpregset.
14237 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14238
14239 * sparc-tdep.h (struct regset): Provide opaque declaration.
14240 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14241 fpregset and sizeof_fpregset members.
14242 * sparc-tdep.c (struct regset): Provide opaque declaration.
14243 (sparc_regset_from_core_section): New function.
14244 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14245 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14246 Set regset_from_core_section when appropriate.
14247
14248 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14249
14250 * x86-64-tdep.c (amd64_non_pod_p): New function.
14251 (amd64_classify_aggregate): Return class memory for non-POD
14252 C++ structure types.
14253
14254 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14255 argument. Use it to reserve a register if necessary.
14256 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14257 amd64_push_arguments.
14258
14259 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14260
14261 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14262 register numbers in comments.
14263 * x86-64-tdep.h: Update copyright year.
14264 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14265 Adjust for addition of %cs and %ss.
14266 * amd64fbsd-nat.c: Update copyright year.
14267 (reg_offset): Add register offsets for %cs and %ss.
14268 * amd64fbsd-tdep.c: Update copyright year.
14269 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14270 (amd64fbsd_sc_reg_offset): Likewise.
14271 * x86-64-linux-nat.c: Update copyright year.
14272 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14273 and %ss.
14274 * amd64nbsd-nat.c: Update copyright year.
14275 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14276 * amd64nbsd-tdep.c: Update copyright year.
14277 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14278 * x86-64-linux-tdep.c: Update copyright year.
14279 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14280 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14281 * regformats/reg-x86-64.dat: Add %cs and %ss.
14282
14283 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14284 variables to prevent long lines. Update comments to reflect
14285 reality.
14286
14287 2004-01-09 David Carlton <carlton@kealia.com>
14288
14289 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14290 * dwarf2read.c (read_namespace): Pull out name-generating code
14291 into namespace_name. Rename previous_namespace to previous_prefix
14292 and processing_current_namespace to processing_current_prefix..
14293 (namespace_name): New function.
14294 (add_partial_symbol): Substitute uses of pdi->name with
14295 actual_name.
14296 * cp-support.h: Rename processing_current_namespace to
14297 processing_current_prefix.
14298 Update copyright year.
14299 * cp-namespace.c: Rename processing_current_namespace to
14300 processing_current_prefix.
14301 Update copyright year.
14302
14303 2004-01-09 Andrew Cagney <cagney@redhat.com>
14304
14305 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14306
14307 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14308
14309 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14310 complaining.
14311 (process_one_symbol): Deal with N_PATCH stabs.
14312
14313 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14314
14315 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14316 ifdeffed code.
14317 Update copyright year.
14318
14319 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14320
14321 * config/pa/tm-hppa.h: Update extern declarations for
14322 hppa32_hpux_frame_saved_pc_in_sigtramp,
14323 hppa32_hpux_frame_base_before_sigtramp, and
14324 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14325
14326 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14327
14328 * config/pa/tm-hppah.h: Update copyright years.
14329
14330 2004-01-08 Andrew Cagney <cagney@redhat.com>
14331
14332 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14333 (mips_o32_reg_struct_has_addr): Delete function.
14334 (mips_gdbarch_init): Update.
14335 (mips_extract_struct_value_address): Delete function.
14336
14337 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14338
14339 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14340 reality.
14341
14342 2004-01-07 Andrew Cagney <cagney@redhat.com>
14343
14344 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14345 architecture's elf flags (when available).
14346
14347 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14348 FPU to the start, check the MIPS FPU when looking for an old
14349 architecture.
14350 (set_mipsfpu_single_command): Update the architecture.
14351 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14352
14353 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14354 (mips_mask_address_p): Add "tdep" parameter.
14355 (show_mask_address, mips_addr_bits_remove): Update.
14356 (mips_dump_tdep): Update.
14357 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14358 (MIPS_STACK_ARGSIZE): Delete macro.
14359 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14360 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14361 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14362 (mips_dump_tdep): Update.
14363 (MIPS_SAVED_REGSIZE): Delete macro.
14364 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14365 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14366 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14367 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14368 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14369 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14370 (mips_pop_frame, return_value_location): Update.
14371 (mips_n32n64_return_value, mips_dump_tdep): Update.
14372
14373 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14374 MIPS ABI.
14375
14376 * mips-tdep.c: Update copyright.
14377 (mips_gdbarch_init): Merge two code blocks handling the register
14378 name and number layout.
14379
14380 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14381
14382 * tracepoint.c (validate_actionline): Fix segv at EOF
14383
14384 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14385
14386 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14387 properly for static fields.
14388
14389 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14390 Jason Molenda <jmolenda@apple.com>
14391
14392 * disasm.c: Update copyright to include 2004.
14393 (do_mixed_source_and_assembly): For uiout asm list
14394 and tuple cleanups, initialize to null_cleanup instead of
14395 NULL and do so prior to loop. Only reset when we close off
14396 the tuple/list. Move check for whether to close off the
14397 asm tuple/list to after dump_insns call where it will be run
14398 on each loop iteration.
14399
14400 2004-01-05 Andrew Cagney <cagney@redhat.com>
14401
14402 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14403 should be a switch case and not a label.
14404 * mips-tdep.c (mips32_next_pc): Delete unused labels
14405 "greater_equal_branch" and "less_zero_branch".
14406 * jv-valprint.c (java_print_value_fields): Delete unused label
14407 "flush_it".
14408
14409 * target.c (unpush_target): Only close a target that is in the
14410 target stack.
14411
14412 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14413
14414 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14415 address from [sp + 64] instead of %o2.
14416
14417 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14418 fixes PR backtrace/1476.
14419
14420 2004-01-05 Andrew Cagney <cagney@redhat.com>
14421
14422 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14423 move to start of file.
14424 * i386-tdep.h (struct regcache): Add opaque declaration.
14425 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14426 declaration.
14427 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14428 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14429 * win32-nat.c (fake_create_process): Use ISO C style definition.
14430 * stabsread.c (define_symbol): Delete #ifndef
14431 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14432 stabs_argument_has_addr call, macro never defined.
14433
14434 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14435
14436 * op50-rom.c: Delete.
14437 * w89k-rom.c: Delete.
14438 * Makefile.in: Remove references.
14439
14440 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14441
14442 * x86-64-tdep.c: Update copyright year.
14443 (struct amd64_register_info): Rename from x86_64_register_info.
14444 (amd64_register_info): Rename from x86_64_register_info.
14445 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14446 (amd64_register_name): Rename from x86_64_register_name.
14447 (amd64_register_type): Rename from x86_64_register_type.
14448 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14449 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14450 (amd64_dwarf_reg_to_regnum): Rename from
14451 x86_64_dwarf_reg_to_regnum.
14452 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14453 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14454 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14455 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14456 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14457 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14458 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14459 (amd64_frame_cache): Rename from x86_64_frame_cache.
14460 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14461 (amd64_frame_prev_register): Rename from
14462 x86_64_frame_prev_register.
14463 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14464 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14465 (amd64_sigtramp_frame_cache): Rename from
14466 x86_64_sigtramp_frame_cache.
14467 (amd64_sigtramp_frame_prev_register): Rename from
14468 x86_64_sigtramp_frame_prev_register.
14469 (amd64_sigtramp_frame_unwind): Rename from
14470 x86_64_sigtramp_frame_unwind.
14471 (amd64_sigtramp_frame_sniffer): Rename from
14472 x86_64_sigtramp_frame_sniffer.
14473 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14474 (amd64_frame_base): Rename from x86_64_frame_base.
14475 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14476 (amd64_frame_align): Rename from x86_64_frame_align.
14477 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14478 (amd64_regset_from_core_section): Rename from
14479 x86_64_regset_from_core_section.
14480 (x86_64_init_abi): Update comments.
14481
14482 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14483
14484 * MAINTAINERS (write after approval): Add myself.
14485
14486 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14487
14488 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14489 `float' arguments.
14490
14491 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14492
14493 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14494 such that it mentions a specific version of GCC that exhibits this
14495 bug.
14496
14497 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14498
14499 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14500 structure that has a single `float' member, store it in %f1 in
14501 addition to %f0.
14502
14503 * sparc-sol2-nat.c: Add missing '\'.
14504
14505 * sparc-tdep.c (sparc32_return_value): New function.
14506 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14507 Remove functions.
14508 (sparc32_gdbarch_init): Set return_value, don't set
14509 extract_return_value, store_return_value, use_struct_convention
14510 and return_value_on_stack.
14511
14512 * sparc-sol2-nat.c: Add missing ')'.
14513
14514 2004-01-03 J. Brobecker <brobecker@gnat.com>
14515
14516 * infrun.c (handle_step_into_function): New function.
14517 (handle_inferior_event): Extract out some code into the new
14518 function above.
14519
14520 2004-01-03 J. Brobecker <brobecker@gnat.com>
14521
14522 * infrun.c (handle_inferior_event): Move the declaration of
14523 real_stop_pc inside the if blocks where it is used.
14524
14525 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14526
14527 * sparc64-tdep.c (sparc64_16_byte_align_p)
14528 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14529 Use check_typedef to get subtypes of structures and unions.
14530 (sparc64_store_return_value): Fix calculation of the appropriate
14531 offset into VALBUF when storing a structure or union.
14532 (sparc64_return_value): New function.
14533 (sparc64_use_struct_convention): Remove function.
14534 (sparc64_init_abi): Set return_value, don't set
14535 extract_return_value, store_return_value and
14536 use_struct_convention.
14537
14538 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14539
14540 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14541 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14542 gdb/config/alpha/xm-alphaosf.h,
14543 gdb/config/powerpc/tm-ppcle-eabi.h,
14544 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14545 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14546 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14547 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14548 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14549 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14550 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14551 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14552 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14553 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14554 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14555 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14556 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14557 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14558 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14559 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14560 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14561 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14562 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14563 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14564 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14565 Remove lines for .cvsignore files.
14566
14567 2004-01-03 J. Brobecker <brobecker@gnat.com>
14568
14569 * infrun.c: Back out the previous change.
14570
14571 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14572
14573 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14574 sparc-*-sunos4* to the list of REMOVED configurations.
14575
14576 * configure.tgt: Add back sparc-*-vxworks*.
14577 * remote-vxsparc.c: Remove all includes except for "defs.h",
14578 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14579 Include "sparc-tdep.h".
14580 (SPARC_R_G1): New define.
14581 (vxsparc_gregset): New variable.
14582 (ext_format_sparc): Remove extern declaration.
14583 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14584 sparc32_supply_fpregset.
14585 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14586 sparc_collect_rwindow and sparc32_collect_fpregset.
14587 * config/sparc/tm-vxworks.h: New file, based on recently removed
14588 tm-vxsparc.h.
14589 * config/sparc/vxworks.mt: New file, based on recently removed
14590 vxworks.mt.
14591
14592 2004-01-03 J. Brobecker <brobecker@gnat.com>
14593
14594 * infrun.c (handle_step_into_function): New function.
14595 (handle_inferior_event): Extract out some code into the new
14596 function above.
14597
14598 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14599
14600 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14601 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14602 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14603 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14604 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14605 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14606 (sparc_nat_h): New variable.
14607 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14608 (tm-sun4os4.h): Remove dependency.
14609 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14610 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14611 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14612 sparc-tdep.o): Update dependencies.
14613 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14614 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14615 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14616 dependencies.
14617 * configure.host: Remove existing sparc-*-lynxos*,
14618 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14619 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14620 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14621 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14622 triplets.
14623 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14624 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14625 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14626 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14627 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14628 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14629 sparc64-*-solaris2* and sparc64-*-* triplets.
14630 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14631 "symtab.h" and "objfiles.h".
14632 (BIAS): Remove define.
14633 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14634 (X_DISP19): Remove macros.
14635 (sparc_fetch_instruction): Remove function.
14636 (struct gdbarch_tdep): Remove definition.
14637 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14638 (sparc_breakpoint_from_pc): Remove function.
14639 (struct sparc64_frame_cache): Remove definition.
14640 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14641 sparc64_unwind_pc): Remove functions.
14642 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14643 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14644 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14645 (sparc64_frame_cache): Change return type to `struct
14646 sparc_frame_cache *'. Simply call sparc_frame_cache.
14647 (sparc64_frame_this_id, sparc64_frame_prev_register,
14648 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14649 instead of `struct sparc64_frame_cache.
14650 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14651 sparc_analyze_control_transfer, sparc_software_single_step,
14652 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14653 _initialize_sparc64_tdep): Remove functions.
14654 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14655 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14656 macros.
14657 (sparc64_supply_gregset, sparc64_collect_gregset,
14658 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14659 (sparc64_init_abi): New function.
14660 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14661 inclusion guard. Include "sparc-tdep.h".
14662 (BIAS): Define.
14663 (r_tstate_offset, r_fprs_offset): New defines.
14664 (enum sparc_regnum): Remove defenition.
14665 (enum sparc64_regnum): Reformat.
14666 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14667 (sparc64_init_abi, sparc64_supply_gregset,
14668 sparc64_collect_gregset, sparc64_supply_fpregset,
14669 sparc64_collect_fpregset): New prototypes.
14670 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14671 Add extern declarations.
14672 (sparc64_sol2_init_abi): New prototype.
14673 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14674 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14675 prototypes.
14676 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14677 "sparnbsd-nat.h".
14678 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14679 functions.
14680 (_initialize_sparc64fbsd_nat): Remove initialization of
14681 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14682 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14683 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14684 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14685 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14686 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14687 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14688 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14689 (sparc64fbsd_r_y_offset): Remove variables.
14690 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14691 Make static and const.
14692 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14693 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14694 functions.
14695 (sparc64fbsd_gregset): New variable.
14696 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14697 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14698 and sparc64_supply_fpregset.
14699 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14700 (sparc64fbsd_sigtramp_frame_this_id)
14701 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14702 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14703 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14704 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14705 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14706 * sparcnbsd-tdep.c: Update copyright year. Include
14707 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14708 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14709 "value.h" and "sparcnbsd-tdep.h".
14710 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14711 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14712 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14713 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14714 defines.
14715 (sparcnbsd_gregset): New variable.
14716 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14717 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14718 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14719 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14720 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14721 variables.
14722 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14723 (sparc32nbsd_sigcontext_frame_this_id)
14724 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14725 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14726 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14727 (sparcnbsd_get_longjmp_target_32,
14728 sparcnbsd_get_longjmp_target_64): Remove functions.
14729 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14730 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14731 sparcnbsd_init_elf): Remove.
14732 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14733 (sparcnbsd_elf_init_abi): New functions.
14734 (_initialize_sparcnbsd_tdep): New prototype.
14735 (_initialize_sparnbsd_tdep): Update.
14736 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14737 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14738 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14739 * config/sparc/linux.mh: Update comment.
14740 (XM_FILE, HOST_IPC): Remove variables.
14741 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14742 sparc-linux-nat.o.
14743 * config/sparc/linux.mt: Update comment.
14744 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14745 * config/sparc/nbsd.mt: Reformat.
14746 * config/sparc/nbsd64.mh: Update comment.
14747 (NATDEPFILES): Add sparc-nat.o.
14748 * config/sparc/nbsd64.mt: Update comment.
14749 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14750 (TM_FILE): Set to tm-nbsd.h.
14751 * config/sparc/nbsdelf.mh: Update comment.
14752 (NATDEPFILES): Add sparc-nat.o.
14753 (XM_FILE): Delete.
14754 * config/sparc/nbsdaout.mh: Update comment.
14755 (NATDEPFILES): Add sparc-nat.o
14756 (XM_FILE): Delete.
14757 * config/sparc/nm-linux.h: Update copyright year. Don't include
14758 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14759 inclusion.
14760 (KERNEL_U_SIZE): Remove define.
14761 (kernel_u_size): Remove prototype.
14762 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14763 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14764 "regcache.h".
14765 (CHILD_PREPARE_TO_STORE): Remove define.
14766 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14767 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14768 sparcnbsd-nat.c: Rewrite files.
14769 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14770 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14771 sparcnbsd-tdep.h: Remove files.
14772 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14773 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14774 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14775 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14776 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14777 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14778 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14779 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14780 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14781 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14782 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14783 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14784 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14785 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14786 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14787 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14788 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14789 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14790 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14791
14792 2004-01-02 Andrew Cagney <cagney@redhat.com>
14793
14794 From 2003-12-18 Kazuhiro Inaoka:
14795 * configure.host: Add m32r-linux target.
14796
14797 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14798
14799 * top.c (print_gdb_version): Update year to 2004.
14800
14801 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14802
14803 * MAINTAINERS: Add myself to the write-after-approval category.
14804
14805 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14806
14807 From Bernardo Innocenti <bernie@develer.com>:
14808 * configure.tgt: Add uClinux target.
14809
14810 2004-01-02 Andrew Cagney <cagney@redhat.com>
14811
14812 * utils.c (do_my_cleanups): Make static, add forward declaration.
14813 * defs.h (do_my_cleanups): Delete declaration.
14814
14815 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14816
14817 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14818 bfd/ChangeLog-0203.
14819
14820 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14821
14822 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14823 in <machine/reg.h>.
14824 * configure, config.in: Regenerate.
14825
14826 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14827 tui/ChangeLog-1998-2003.
14828 \f
14829 Local Variables:
14830 mode: change-log
14831 left-margin: 8
14832 fill-column: 74
14833 version-control: never
14834 End: